/* ============================================================
   app 789club - dynamic-cae2f7-surface.css
   Mobile-first surface layer for app789club.click
   Palette: #48D1CC / #20B2AA / #2E4057 (deep ink background)
   Style: outlined tile game cards, small-medium radii,
   monospace accent labels, compact icon+text CTAs,
   top indicator line for active nav, quick scale feedback.
   All classes and variables use the shellae2f7- prefix.
   ============================================================ */

:root {
  --shellae2f7-ink: #2E4057;
  --shellae2f7-ink-deep: #22314486;
  --shellae2f7-ink-deepx: #22314a;
  --shellae2f7-teal: #20B2AA;
  --shellae2f7-aqua: #48D1CC;
  --shellae2f7-foam: #E6F6F4;
  --shellae2f7-mist: #A9C9C6;
  --shellae2f7-line: rgba(72, 209, 204, 0.34);
  --shellae2f7-line-soft: rgba(72, 209, 204, 0.18);
  --shellae2f7-gold: #E8C766;
  --shellae2f7-radius-s: 8px;
  --shellae2f7-radius-m: 12px;
  --shellae2f7-radius-l: 16px;
  --shellae2f7-font-body: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --shellae2f7-font-mono: ui-monospace, "Cascadia Mono", "SF Mono", Consolas, "Courier New", monospace;
  --shellae2f7-canvas: 430px;
  --shellae2f7-header-h: 108px;
  --shellae2f7-bottomnav-h: 62px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--shellae2f7-font-body);
  background: #1b2942;
  color: var(--shellae2f7-foam);
  font-size: 15px;
  line-height: 1.62;
  min-height: 100vh;
}

/* Phone canvas stays centered on wide screens */
.shellae2f7-page {
  max-width: var(--shellae2f7-canvas);
  margin: 0 auto;
  background:
    radial-gradient(circle at 12% 4%, rgba(72, 209, 204, 0.14), transparent 42%),
    radial-gradient(circle at 92% 26%, rgba(32, 178, 170, 0.12), transparent 46%),
    linear-gradient(180deg, #25384f 0%, #2E4057 34%, #273850 100%);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

.shellae2f7-main {
  padding: calc(var(--shellae2f7-header-h) + 10px) 12px calc(var(--shellae2f7-bottomnav-h) + 46px);
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--shellae2f7-aqua);
  text-decoration: none;
}

a:hover,
a:focus-visible {
  text-decoration: underline;
}

button {
  font-family: inherit;
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--shellae2f7-aqua);
  outline-offset: 2px;
}

/* Monospace accent kicker used above headings */
.shellae2f7-kicker {
  font-family: var(--shellae2f7-font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--shellae2f7-aqua);
  display: block;
  margin-bottom: 6px;
}

.shellae2f7-skip {
  position: absolute;
  left: -9999px;
  top: 0;
}

.shellae2f7-skip:focus {
  left: 8px;
  top: 8px;
  z-index: 300;
  background: var(--shellae2f7-teal);
  color: #06232b;
  padding: 8px 14px;
  border-radius: var(--shellae2f7-radius-s);
}

/* ------------------------------------------------------------
   Header: centered identity bar + separate action row
   ------------------------------------------------------------ */
.shellae2f7-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--shellae2f7-canvas);
  z-index: 120;
  background: linear-gradient(180deg, rgba(24, 36, 54, 0.98), rgba(38, 56, 80, 0.96));
  border-bottom: 1px solid var(--shellae2f7-line);
  backdrop-filter: blur(6px);
}

.shellae2f7-idbar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 9px 12px 6px;
}

.shellae2f7-logo {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  border: 1px solid var(--shellae2f7-line);
  object-fit: cover;
  flex: 0 0 auto;
}

.shellae2f7-brand {
  font-family: var(--shellae2f7-font-mono);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--shellae2f7-foam);
  white-space: nowrap;
}

.shellae2f7-brand em {
  font-style: normal;
  color: var(--shellae2f7-aqua);
}

.shellae2f7-actionrow {
  display: grid;
  grid-template-columns: 1fr 1fr 52px;
  gap: 8px;
  align-items: stretch;
  padding: 0 12px 9px;
}

/* Compact icon+text CTA buttons */
.shellae2f7-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 9px 10px;
  border-radius: var(--shellae2f7-radius-s);
  font-size: 13.5px;
  font-weight: 700;
  border: 1px solid transparent;
  transition: transform 0.12s ease, filter 0.12s ease;
  text-decoration: none;
}

.shellae2f7-btn:active {
  transform: scale(0.94);
}

.shellae2f7-btn svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

.shellae2f7-btn-register {
  background: linear-gradient(135deg, #48D1CC, #20B2AA);
  color: #0a2733;
}

.shellae2f7-btn-login {
  background: transparent;
  color: var(--shellae2f7-aqua);
  border-color: var(--shellae2f7-line);
}

.shellae2f7-btn-ghost {
  background: rgba(72, 209, 204, 0.08);
  border-color: var(--shellae2f7-line-soft);
  color: var(--shellae2f7-foam);
  font-weight: 600;
}

/* Expandable navigation bar */
.shellae2f7-menubtn {
  background: rgba(72, 209, 204, 0.08);
  border: 1px solid var(--shellae2f7-line-soft);
  border-radius: var(--shellae2f7-radius-s);
  color: var(--shellae2f7-foam);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
}

.shellae2f7-menubtn svg {
  width: 20px;
  height: 20px;
  transition: transform 0.18s ease;
}

.shellae2f7-menubtn[aria-expanded="true"] svg {
  transform: rotate(90deg);
}

.shellae2f7-menu {
  display: none;
  border-top: 1px dashed var(--shellae2f7-line-soft);
  background: rgba(20, 31, 47, 0.98);
  padding: 8px 12px 12px;
}

.shellae2f7-menu[data-open="true"] {
  display: block;
}

.shellae2f7-menu-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.shellae2f7-menu a {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 10px;
  border-radius: var(--shellae2f7-radius-s);
  border: 1px solid var(--shellae2f7-line-soft);
  color: var(--shellae2f7-foam);
  font-size: 13px;
  background: rgba(46, 64, 87, 0.45);
}

.shellae2f7-menu a span.shellae2f7-menu-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--shellae2f7-teal);
  flex: 0 0 auto;
}

.shellae2f7-menu a[aria-current="page"] {
  border-color: var(--shellae2f7-aqua);
  box-shadow: inset 0 2px 0 var(--shellae2f7-aqua);
  color: #ffffff;
}

.shellae2f7-menu a:active {
  transform: scale(0.97);
}

/* ------------------------------------------------------------
   Hero carousel
   ------------------------------------------------------------ */
.shellae2f7-hero {
  position: relative;
  border: 1px solid var(--shellae2f7-line);
  border-radius: var(--shellae2f7-radius-m);
  overflow: hidden;
  background: #1c2c42;
  margin-bottom: 14px;
}

.shellae2f7-slides {
  display: flex;
  transition: transform 0.4s ease;
  touch-action: pan-y;
}

.shellae2f7-slide {
  flex: 0 0 100%;
  position: relative;
}

.shellae2f7-slide img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.shellae2f7-slide-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 26px 12px 10px;
  background: linear-gradient(180deg, transparent, rgba(18, 28, 42, 0.92));
  font-size: 12.5px;
  color: var(--shellae2f7-foam);
  text-align: center;
  font-family: var(--shellae2f7-font-mono);
  letter-spacing: 0.03em;
}

.shellae2f7-hero-dots {
  position: absolute;
  bottom: 6px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 6px;
  z-index: 4;
}

.shellae2f7-hero-dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--shellae2f7-aqua);
  background: transparent;
}

.shellae2f7-hero-dots button[data-on="true"] {
  background: var(--shellae2f7-aqua);
}

/* ------------------------------------------------------------
   Typography blocks
   ------------------------------------------------------------ */
.shellae2f7-h1 {
  font-size: 21px;
  line-height: 1.32;
  font-weight: 800;
  margin: 4px 0 10px;
  color: #ffffff;
}

.shellae2f7-h2 {
  font-size: 17.5px;
  line-height: 1.4;
  font-weight: 750;
  margin: 0 0 8px;
  color: #ffffff;
  padding-left: 10px;
  border-left: 3px solid var(--shellae2f7-aqua);
}

.shellae2f7-h3 {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--shellae2f7-aqua);
  margin: 14px 0 5px;
}

.shellae2f7-section {
  margin-bottom: 22px;
}

.shellae2f7-lead {
  font-size: 14px;
  color: var(--shellae2f7-mist);
  margin-bottom: 10px;
}

.shellae2f7-prose p {
  margin-bottom: 10px;
}

.shellae2f7-prose strong {
  color: var(--shellae2f7-aqua);
  font-weight: 700;
}

/* Short-list rhythm blocks */
.shellae2f7-list {
  list-style: none;
  margin: 6px 0 12px;
}

.shellae2f7-list li {
  position: relative;
  padding: 7px 8px 7px 24px;
  border: 1px solid var(--shellae2f7-line-soft);
  border-radius: var(--shellae2f7-radius-s);
  margin-bottom: 6px;
  font-size: 13.5px;
  background: rgba(34, 49, 74, 0.4);
}

.shellae2f7-list li::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 13px;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  border: 1px solid var(--shellae2f7-aqua);
  background: rgba(72, 209, 204, 0.25);
}

.shellae2f7-steps {
  counter-reset: shellae2f7step;
  list-style: none;
}

.shellae2f7-steps li {
  counter-increment: shellae2f7step;
  position: relative;
  padding: 8px 8px 8px 38px;
  margin-bottom: 6px;
  border: 1px solid var(--shellae2f7-line-soft);
  border-radius: var(--shellae2f7-radius-s);
  font-size: 13.5px;
  background: rgba(34, 49, 74, 0.4);
}

.shellae2f7-steps li::before {
  content: counter(shellae2f7step, decimal-leading-zero);
  position: absolute;
  left: 9px;
  top: 9px;
  font-family: var(--shellae2f7-font-mono);
  font-size: 12px;
  color: var(--shellae2f7-aqua);
  border: 1px solid var(--shellae2f7-line);
  border-radius: 6px;
  padding: 1px 4px;
}

/* ------------------------------------------------------------
   Game areas: outlined tile cards, stable 4-column tracks
   ------------------------------------------------------------ */
.shellae2f7-gamecat {
  margin-bottom: 24px;
}

.shellae2f7-cathead {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 4px;
}

.shellae2f7-catcount {
  font-family: var(--shellae2f7-font-mono);
  font-size: 10.5px;
  color: var(--shellae2f7-mist);
  letter-spacing: 0.08em;
}

.shellae2f7-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.shellae2f7-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 7px 4px 8px;
  border: 1px solid var(--shellae2f7-line-soft);
  border-radius: var(--shellae2f7-radius-m);
  background: rgba(30, 45, 66, 0.55);
  text-align: center;
  transition: transform 0.12s ease, border-color 0.12s ease;
  color: var(--shellae2f7-foam);
  font-size: 11px;
  line-height: 1.28;
  min-height: 44px;
}

.shellae2f7-tile:active {
  transform: scale(0.93);
  border-color: var(--shellae2f7-aqua);
}

.shellae2f7-tile img {
  width: 54px;
  height: 54px;
  border-radius: 10px;
  border: 1px solid var(--shellae2f7-line);
  object-fit: cover;
  background: #16233a;
}

.shellae2f7-tile span {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}

/* ------------------------------------------------------------
   Info modules (varied shapes, not one repeated card)
   ------------------------------------------------------------ */
.shellae2f7-panel {
  border: 1px solid var(--shellae2f7-line-soft);
  border-radius: var(--shellae2f7-radius-l);
  background: rgba(28, 43, 64, 0.5);
  padding: 14px 13px;
  margin-top: 10px;
}

.shellae2f7-panel-lite {
  border-top: 1px dashed var(--shellae2f7-line);
  border-bottom: 1px dashed var(--shellae2f7-line);
  padding: 12px 2px;
  margin-top: 10px;
}

.shellae2f7-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 10px 0;
}

.shellae2f7-duo-item {
  border: 1px solid var(--shellae2f7-line-soft);
  border-radius: var(--shellae2f7-radius-m);
  padding: 10px;
  background: rgba(34, 49, 74, 0.42);
}

.shellae2f7-duo-item h3 {
  margin: 0 0 4px;
}

.shellae2f7-duo-item p {
  font-size: 12.5px;
  color: var(--shellae2f7-mist);
  margin: 0;
}

.shellae2f7-statrow {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  margin: 10px 0;
}

.shellae2f7-stat {
  border: 1px solid var(--shellae2f7-line-soft);
  border-radius: var(--shellae2f7-radius-m);
  padding: 9px 6px;
  text-align: center;
  background: rgba(34, 49, 74, 0.42);
}

.shellae2f7-stat b {
  display: block;
  font-family: var(--shellae2f7-font-mono);
  font-size: 16px;
  color: var(--shellae2f7-aqua);
}

.shellae2f7-stat small {
  font-size: 10.5px;
  color: var(--shellae2f7-mist);
  letter-spacing: 0.04em;
}

.shellae2f7-rel {
  display: grid;
  gap: 7px;
  margin: 10px 0;
}

.shellae2f7-rel-row {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--shellae2f7-line-soft);
  border-radius: var(--shellae2f7-radius-s);
  padding: 8px 10px;
  font-size: 12.5px;
  background: rgba(34, 49, 74, 0.42);
}

.shellae2f7-rel-row b {
  font-family: var(--shellae2f7-font-mono);
  color: var(--shellae2f7-aqua);
  font-size: 11px;
  white-space: nowrap;
}

.shellae2f7-rel-arrow {
  color: var(--shellae2f7-teal);
  font-family: var(--shellae2f7-font-mono);
}

/* Inline promo link inside prose */
.shellae2f7-promolink {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 700;
  color: var(--shellae2f7-gold);
  min-height: 44px;
  padding: 0 4px;
}

.shellae2f7-promolink svg {
  width: 14px;
  height: 14px;
}

/* ------------------------------------------------------------
   Extended site footer (home only)
   ------------------------------------------------------------ */
.shellae2f7-extfoot {
  margin-top: 26px;
  border: 1px solid var(--shellae2f7-line-soft);
  border-radius: var(--shellae2f7-radius-l);
  background: rgba(24, 37, 56, 0.72);
  padding: 15px 13px;
}

.shellae2f7-extfoot-section {
  margin-bottom: 14px;
}

.shellae2f7-extfoot-section:last-child {
  margin-bottom: 0;
}

.shellae2f7-extfoot h2 {
  font-size: 15px;
  margin-bottom: 7px;
  color: var(--shellae2f7-aqua);
  border-left: none;
  padding-left: 0;
}

.shellae2f7-extfoot p {
  font-size: 12.5px;
  color: var(--shellae2f7-mist);
}

.shellae2f7-dirlist {
  display: grid;
  grid-template-columns: 1fr;
  gap: 5px;
}

.shellae2f7-dirlist a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 10px;
  border: 1px solid var(--shellae2f7-line-soft);
  border-radius: var(--shellae2f7-radius-s);
  background: rgba(34, 49, 74, 0.4);
  font-size: 12.5px;
  color: var(--shellae2f7-foam);
}

.shellae2f7-dirlist a::after {
  content: "\2192";
  font-family: var(--shellae2f7-font-mono);
  color: var(--shellae2f7-teal);
}

.shellae2f7-dirlist a:active {
  transform: scale(0.98);
}

.shellae2f7-promoactions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}

.shellae2f7-promoactions .shellae2f7-btn {
  width: 100%;
  font-size: 12.5px;
}

.shellae2f7-disclaimer {
  border-top: 1px dashed var(--shellae2f7-line);
  padding-top: 10px;
  font-size: 11.5px;
  color: var(--shellae2f7-mist);
  font-family: var(--shellae2f7-font-mono);
}

/* ------------------------------------------------------------
   Common footer + fixed outlined bottom function bar
   ------------------------------------------------------------ */
.shellae2f7-footer {
  text-align: center;
  padding: 14px 12px calc(var(--shellae2f7-bottomnav-h) + 22px);
  font-size: 11.5px;
  color: var(--shellae2f7-mist);
  border-top: 1px solid var(--shellae2f7-line-soft);
}

.shellae2f7-footer b {
  color: var(--shellae2f7-foam);
  font-family: var(--shellae2f7-font-mono);
}

.shellae2f7-bottomnav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--shellae2f7-canvas);
  height: var(--shellae2f7-bottomnav-h);
  z-index: 130;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
  padding: 6px 8px calc(6px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(180deg, rgba(23, 35, 52, 0.97), rgba(17, 26, 40, 0.99));
  border-top: 1px solid var(--shellae2f7-line);
}

.shellae2f7-bottomnav a,
.shellae2f7-bottomnav button {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: 44px;
  border: 1px solid var(--shellae2f7-line-soft);
  border-radius: var(--shellae2f7-radius-s);
  background: transparent;
  color: var(--shellae2f7-mist);
  font-size: 10px;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: transform 0.12s ease, color 0.12s ease, border-color 0.12s ease;
}

.shellae2f7-bottomnav a:active,
.shellae2f7-bottomnav button:active {
  transform: scale(0.9);
}

.shellae2f7-bottomnav svg {
  width: 20px;
  height: 20px;
}

/* Active page: top indicator line */
.shellae2f7-bottomnav a[aria-current="page"] {
  color: #ffffff;
  border-color: var(--shellae2f7-aqua);
}

.shellae2f7-bottomnav a[aria-current="page"]::before {
  content: "";
  position: absolute;
  top: 0;
  left: 22%;
  right: 22%;
  height: 2px;
  border-radius: 0 0 3px 3px;
  background: var(--shellae2f7-aqua);
}

.shellae2f7-bottomnav .shellae2f7-bn-promo {
  color: var(--shellae2f7-gold);
}

/* ------------------------------------------------------------
   Utilities
   ------------------------------------------------------------ */
.shellae2f7-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* 375px and up: slightly roomier tiles */
@media (min-width: 375px) {
  .shellae2f7-tile img {
    width: 60px;
    height: 60px;
  }
}

/* From 400px up to the 430px canvas edge: five game columns fit comfortably */
@media (min-width: 400px) {
  .shellae2f7-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
  .shellae2f7-h1 {
    font-size: 22.5px;
  }
}

/* Wide screens: keep the phone canvas centered, nothing else changes */
@media (min-width: 431px) {
  body {
    background: #141f31;
  }
  .shellae2f7-page {
    box-shadow: 0 0 34px rgba(0, 0, 0, 0.45);
  }
}

@media (prefers-reduced-motion: reduce) {
  .shellae2f7-slides {
    transition: none;
  }
  * {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
