/* ============================================================
   Color Game Online - colorgameonline.sbs
   Mobile-first visual layer (320-430px phone canvas)
   Palette: #0C0C0C bg / #90EE90 text / #00FF7F accent /
            #32CD32 action / #BC8F8F muted
   Direction: mono accents, stroke-led corners, grouped cover
   cards, lead-in sections, restrained fades, compact CTAs
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  --shellae30d-ink: #0C0C0C;          /* page background */
  --shellae30d-panel: #12160f;        /* lifted panel tone */
  --shellae30d-panel-2: #171c13;      /* hover / raised tone */
  --shellae30d-mint: #90EE90;         /* primary light text */
  --shellae30d-spring: #00FF7F;       /* hard accent */
  --shellae30d-lime: #32CD32;         /* action green */
  --shellae30d-clay: #BC8F8F;         /* muted rose text */
  --shellae30d-line: rgba(144, 238, 144, 0.20);
  --shellae30d-line-soft: rgba(188, 143, 143, 0.28);
  --shellae30d-wash: rgba(50, 205, 50, 0.10);
  --shellae30d-wash-deep: rgba(0, 255, 127, 0.14);
  --shellae30d-font-body: "Trebuchet MS", "Segoe UI", Arial, sans-serif;
  --shellae30d-font-mono: ui-monospace, "SFMono-Regular", "Cascadia Mono",
    "Roboto Mono", Menlo, Consolas, monospace;
  --shellae30d-r: 8px;                /* restrained corner */
  --shellae30d-r-lg: 10px;
  --shellae30d-r-sm: 6px;
  --shellae30d-top-h: 104px;          /* fixed header height */
  --shellae30d-dock-h: 76px;          /* reserved dock space */
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: #060706;
  color: var(--shellae30d-mint);
  font-family: var(--shellae30d-font-body);
  font-size: 15px;
  line-height: 1.62;
  display: flex;
  justify-content: center;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Phone canvas: hard-clamped to 430px, centered on wide screens */
#shellae30d-shell {
  width: 100%;
  max-width: 430px;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--shellae30d-ink);
  position: relative;
  box-shadow: 0 0 0 1px rgba(144, 238, 144, 0.06);
}

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

button {
  font-family: inherit;
  color: inherit;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

a { color: var(--shellae30d-spring); text-decoration: none; }
a:hover, a:focus-visible { text-decoration: underline; }

:focus-visible {
  outline: 2px solid var(--shellae30d-spring);
  outline-offset: 2px;
  border-radius: 4px;
}

.shellae30d-sr {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* ============================================================
   Fixed top bar - centered identity + outer action zone
   ============================================================ */
.shellae30d-topbar {
  position: fixed;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  z-index: 60;
  background: rgba(12, 12, 12, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--shellae30d-line);
}

.shellae30d-topbar-row {
  display: grid;
  grid-template-columns: 48px 1fr 84px;
  align-items: center;
  min-height: 56px;
  padding: 6px 10px 4px;
  gap: 4px;
}

/* Hamburger - monochrome with accent bars */
.shellae30d-menu-btn {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--shellae30d-line);
  border-radius: var(--shellae30d-r);
  background: var(--shellae30d-panel);
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.shellae30d-menu-btn:active {
  transform: scale(0.93);
  border-color: var(--shellae30d-spring);
}
.shellae30d-menu-box {
  display: flex; flex-direction: column;
  gap: 4px; width: 18px;
}
.shellae30d-menu-box i {
  display: block; height: 2px;
  background: var(--shellae30d-mint);
  border-radius: 2px;
  transition: transform 0.18s ease, opacity 0.18s ease;
}
.shellae30d-menu-box i:nth-child(2) { width: 12px; }
.shellae30d-menu-btn:hover .shellae30d-menu-box i { background: var(--shellae30d-spring); }

/* Centered identity: logo + name only */
.shellae30d-brand {
  display: flex; align-items: center; justify-content: center;
  gap: 9px;
  min-width: 0;
  color: var(--shellae30d-mint);
}
.shellae30d-brand:hover { text-decoration: none; }
.shellae30d-brand-logo {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(188, 143, 143, 0.55);
  padding: 2px;
  background: var(--shellae30d-panel-2);
  flex: 0 0 auto;
}
.shellae30d-brand-name {
  font-family: var(--shellae30d-font-mono);
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.shellae30d-brand-name b { color: var(--shellae30d-spring); font-weight: 600; }

/* Compact login - icon + text, stroke led */
.shellae30d-login-btn {
  justify-self: end;
  display: inline-flex; align-items: center; justify-content: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 12px;
  font-family: var(--shellae30d-font-mono);
  font-size: 12px;
  letter-spacing: 0.03em;
  color: var(--shellae30d-spring);
  border: 1px solid var(--shellae30d-spring);
  border-radius: var(--shellae30d-r);
  background: rgba(0, 255, 127, 0.06);
  transition: transform 0.15s ease, background 0.15s ease;
}
.shellae30d-login-btn:hover { background: var(--shellae30d-wash-deep); text-decoration: none; }
.shellae30d-login-btn:active { transform: scale(0.95); }
.shellae30d-login-btn svg { width: 14px; height: 14px; }

/* Register bar - primary action row under the identity */
.shellae30d-register-bar { padding: 0 10px 8px; }
.shellae30d-register-btn {
  display: flex; align-items: center; justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 42px;
  font-family: var(--shellae30d-font-mono);
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--shellae30d-ink);
  background: var(--shellae30d-lime);
  border: 1px solid var(--shellae30d-lime);
  border-radius: var(--shellae30d-r);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.shellae30d-register-btn:hover { box-shadow: 0 0 0 3px rgba(50, 205, 50, 0.18); }
.shellae30d-register-btn:active { transform: scale(0.97); }
.shellae30d-register-btn svg { width: 15px; height: 15px; }

/* ============================================================
   Stacked overlay menu
   ============================================================ */
.shellae30d-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  max-width: 430px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(9, 10, 9, 0.98);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex; flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}
.shellae30d-overlay.shellae30d-is-open { opacity: 1; visibility: visible; }

.shellae30d-overlay-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 16px 10px;
  border-bottom: 1px solid var(--shellae30d-line);
}
.shellae30d-overlay-title {
  margin: 0;
  font-family: var(--shellae30d-font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--shellae30d-clay);
}
.shellae30d-overlay-close {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--shellae30d-line);
  border-radius: var(--shellae30d-r);
  background: var(--shellae30d-panel);
  transition: transform 0.15s ease;
}
.shellae30d-overlay-close:active { transform: scale(0.92); }
.shellae30d-overlay-close svg { width: 18px; height: 18px; color: var(--shellae30d-mint); }

.shellae30d-overlay-list {
  list-style: none;
  margin: 0;
  padding: 8px 14px 16px;
  overflow-y: auto;
  flex: 1;
}
.shellae30d-overlay-item a {
  display: grid;
  grid-template-columns: 40px 1fr 20px;
  align-items: center;
  gap: 8px;
  min-height: 50px;
  padding: 8px 10px;
  color: var(--shellae30d-mint);
  border: 1px solid transparent;
  border-bottom-color: var(--shellae30d-line);
  border-radius: var(--shellae30d-r);
  transition: background 0.15s ease, transform 0.15s ease;
}
.shellae30d-overlay-item a:hover {
  background: var(--shellae30d-wash);
  text-decoration: none;
}
.shellae30d-overlay-item a:active { transform: scale(0.98); }
.shellae30d-overlay-num {
  font-family: var(--shellae30d-font-mono);
  font-size: 11px;
  color: var(--shellae30d-clay);
  letter-spacing: 0.08em;
}
.shellae30d-overlay-item a span:not(.shellae30d-overlay-num) {
  font-size: 15px;
  font-weight: 500;
}
.shellae30d-overlay-item svg {
  width: 14px; height: 14px;
  color: var(--shellae30d-clay);
}
.shellae30d-overlay-item a[aria-current="page"] {
  background: var(--shellae30d-wash-deep);
  border-color: var(--shellae30d-line-soft);
}
.shellae30d-overlay-item a[aria-current="page"] span:not(.shellae30d-overlay-num) {
  color: var(--shellae30d-spring);
}

.shellae30d-overlay-foot {
  padding: 12px 16px calc(14px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--shellae30d-line);
}
.shellae30d-overlay-foot p {
  margin: 0;
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--shellae30d-clay);
}

/* ============================================================
   Main canvas flow
   ============================================================ */
.shellae30d-main {
  padding: calc(var(--shellae30d-top-h) + 12px) 14px
           calc(var(--shellae30d-dock-h) + 22px);
}

/* ---------- Hero ---------- */
.shellae30d-hero { margin: 2px 0 14px; }
.shellae30d-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--shellae30d-font-mono);
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--shellae30d-clay);
  margin: 0 0 8px;
}
.shellae30d-eyebrow::before {
  content: "";
  width: 18px; height: 1px;
  background: var(--shellae30d-spring);
}
.shellae30d-hero-title {
  margin: 0 0 10px;
  font-size: 25px;
  line-height: 1.22;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #F4FFF4;
}
.shellae30d-hero-title em {
  font-style: normal;
  color: var(--shellae30d-spring);
}
.shellae30d-hero-lede {
  margin: 0 0 12px;
  font-size: 14.5px;
  color: var(--shellae30d-mint);
}
.shellae30d-facts {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.shellae30d-fact {
  font-family: var(--shellae30d-font-mono);
  font-size: 10.5px;
  letter-spacing: 0.05em;
  color: var(--shellae30d-mint);
  border: 1px solid var(--shellae30d-line);
  border-radius: var(--shellae30d-r-sm);
  padding: 5px 9px;
  background: var(--shellae30d-panel);
}
.shellae30d-fact b { color: var(--shellae30d-spring); font-weight: 600; }

/* ---------- Carousel ---------- */
.shellae30d-carousel {
  margin: 4px 0 16px;
  border: 1px solid var(--shellae30d-line);
  border-radius: var(--shellae30d-r-lg);
  background: var(--shellae30d-panel);
  padding: 6px;
}
.shellae30d-track {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--shellae30d-r);
}
.shellae30d-track::-webkit-scrollbar { display: none; }

.shellae30d-slide {
  position: relative;
  flex: 0 0 100%;
  scroll-snap-align: center;
  border-radius: var(--shellae30d-r);
  overflow: hidden;
  border: 1px solid var(--shellae30d-line-soft);
  cursor: pointer;
  -webkit-tap-highlight-color: rgba(0, 255, 127, 0.14);
}
.shellae30d-slide:active .shellae30d-slide-img { transform: scale(1.02); }
.shellae30d-slide-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 0.25s ease;
}
.shellae30d-slide-cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 26px 12px 10px;
  background: linear-gradient(180deg, rgba(12,12,12,0) 0%, rgba(12,12,12,0.88) 62%);
  display: flex; align-items: flex-end; gap: 10px;
  flex-wrap: wrap;
}
.shellae30d-slide-tag {
  font-family: var(--shellae30d-font-mono);
  font-size: 9.5px;
  letter-spacing: 0.18em;
  color: var(--shellae30d-ink);
  background: var(--shellae30d-spring);
  border-radius: var(--shellae30d-r-sm);
  padding: 3px 7px;
}
.shellae30d-slide-line {
  margin: 0;
  flex: 1 1 100%;
  order: 3;
  font-size: 12.5px;
  line-height: 1.4;
  color: #EDFFED;
}
.shellae30d-slide-cta {
  order: 2;
  display: inline-flex; align-items: center; gap: 5px;
  font-family: var(--shellae30d-font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--shellae30d-spring);
  border: 1px solid var(--shellae30d-spring);
  border-radius: var(--shellae30d-r-sm);
  padding: 5px 10px;
  background: rgba(12, 12, 12, 0.55);
}
.shellae30d-slide-cta svg { width: 12px; height: 12px; }

.shellae30d-dots {
  display: flex; justify-content: center; gap: 8px;
  padding: 9px 0 2px;
}
.shellae30d-dot {
  width: 22px; height: 6px;
  border-radius: 3px;
  background: rgba(144, 238, 144, 0.22);
  border: 1px solid var(--shellae30d-line-soft);
  transition: background 0.2s ease;
}
.shellae30d-dot:active { transform: scaleY(0.8); }
.shellae30d-dot.shellae30d-is-on {
  background: var(--shellae30d-spring);
  border-color: var(--shellae30d-spring);
}

/* ---------- Category chip rail ---------- */
.shellae30d-chips {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 2px 0 10px;
  margin: 0 0 6px;
  -webkit-overflow-scrolling: touch;
}
.shellae30d-chips::-webkit-scrollbar { display: none; }
.shellae30d-chip {
  flex: 0 0 auto;
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 38px;
  padding: 0 12px;
  font-family: var(--shellae30d-font-mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: var(--shellae30d-mint);
  border: 1px solid var(--shellae30d-line);
  border-radius: var(--shellae30d-r);
  background: var(--shellae30d-panel);
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.shellae30d-chip:hover {
  border-color: var(--shellae30d-spring);
  text-decoration: none;
}
.shellae30d-chip:active { transform: scale(0.95); }
.shellae30d-chip-n {
  font-size: 10px;
  color: var(--shellae30d-clay);
}

/* ---------- Game groups: grouped cover cards ---------- */
.shellae30d-group {
  margin: 0 0 22px;
  scroll-margin-top: calc(var(--shellae30d-top-h) + 10px);
}
.shellae30d-group-head {
  display: flex; align-items: baseline; gap: 9px;
  border-bottom: 1px solid var(--shellae30d-line);
  padding-bottom: 7px;
  margin-bottom: 9px;
}
.shellae30d-group-index {
  font-family: var(--shellae30d-font-mono);
  font-size: 11px;
  color: var(--shellae30d-clay);
  letter-spacing: 0.1em;
}
.shellae30d-group-title {
  margin: 0;
  font-size: 17.5px;
  line-height: 1.3;
  font-weight: 700;
  color: #EAFEEA;
}
.shellae30d-group-count {
  margin-left: auto;
  font-family: var(--shellae30d-font-mono);
  font-size: 10.5px;
  color: var(--shellae30d-clay);
  white-space: nowrap;
}
.shellae30d-group-note {
  margin: 0 0 11px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--shellae30d-clay);
}
.shellae30d-group-note a { color: var(--shellae30d-spring); }

.shellae30d-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px 7px;
}
.shellae30d-tile { min-width: 0; }
.shellae30d-tile-btn {
  display: block;
  width: 100%;
  text-align: center;
  transition: transform 0.15s ease;
  -webkit-tap-highlight-color: rgba(0, 255, 127, 0.12);
}
.shellae30d-tile-btn:active { transform: scale(0.94); }
.shellae30d-tile-btn:hover .shellae30d-tile-frame {
  border-color: var(--shellae30d-spring);
}
.shellae30d-tile-frame {
  display: block;
  padding: 3px;
  background: var(--shellae30d-panel);
  border: 1px solid var(--shellae30d-line);
  border-radius: var(--shellae30d-r);
  transition: border-color 0.15s ease, background 0.15s ease;
}
.shellae30d-tile-btn:hover .shellae30d-tile-frame { background: var(--shellae30d-panel-2); }
.shellae30d-tile-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 5px;
}
.shellae30d-tile-name {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  margin-top: 5px;
  font-size: 10.8px;
  line-height: 1.3;
  color: var(--shellae30d-mint);
  overflow-wrap: break-word;
}
.shellae30d-tile-btn:hover .shellae30d-tile-name { color: var(--shellae30d-spring); }

/* ============================================================
   Lead-in prose sections
   ============================================================ */
.shellae30d-section {
  margin: 0 0 24px;
  scroll-margin-top: calc(var(--shellae30d-top-h) + 10px);
}
.shellae30d-section-head {
  display: flex; flex-direction: column; gap: 5px;
  margin-bottom: 10px;
}
.shellae30d-section-kicker {
  font-family: var(--shellae30d-font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--shellae30d-clay);
}
.shellae30d-section-title {
  margin: 0;
  font-size: 18.5px;
  line-height: 1.32;
  font-weight: 700;
  color: #EAFEEA;
  padding-left: 10px;
  border-left: 2px solid var(--shellae30d-spring);
}
.shellae30d-lede {
  margin: 0 0 12px;
  font-size: 14.5px;
  color: #D9F8D9;
}
.shellae30d-p {
  margin: 0 0 11px;
  font-size: 13.5px;
  color: var(--shellae30d-mint);
}
.shellae30d-p b { color: #EAFEEA; }

/* Steps - mono numbered rail */
.shellae30d-steps {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
  counter-reset: shellae30d-step;
}
.shellae30d-step {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  padding: 10px 2px;
  border-bottom: 1px dashed var(--shellae30d-line);
}
.shellae30d-step:last-child { border-bottom: none; }
.shellae30d-step-num {
  font-family: var(--shellae30d-font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--shellae30d-spring);
  border: 1px solid var(--shellae30d-line-soft);
  border-radius: var(--shellae30d-r-sm);
  background: var(--shellae30d-panel);
  height: 30px;
  display: flex; align-items: center; justify-content: center;
}
.shellae30d-step-txt {
  font-size: 13px;
  line-height: 1.58;
  color: var(--shellae30d-mint);
}

/* Checks - definition rows (payments) */
.shellae30d-checks {
  border: 1px solid var(--shellae30d-line);
  border-radius: var(--shellae30d-r-lg);
  background: var(--shellae30d-panel);
  padding: 4px 12px;
  margin: 0 0 12px;
}
.shellae30d-check {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--shellae30d-line);
}
.shellae30d-check:last-child { border-bottom: none; }
.shellae30d-check-key {
  font-family: var(--shellae30d-font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--shellae30d-clay);
  padding-top: 2px;
}
.shellae30d-check-txt {
  font-size: 13px;
  line-height: 1.58;
  color: var(--shellae30d-mint);
}

/* Tips - tagged rows */
.shellae30d-tips {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
  display: flex; flex-direction: column; gap: 8px;
}
.shellae30d-tip {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 10px;
  align-items: start;
}
.shellae30d-tip-tag {
  font-family: var(--shellae30d-font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--shellae30d-spring);
  border: 1px solid var(--shellae30d-line-soft);
  border-radius: var(--shellae30d-r-sm);
  padding: 4px 6px;
  text-align: center;
  margin-top: 2px;
}
.shellae30d-tip-txt {
  font-size: 13px;
  line-height: 1.58;
  color: var(--shellae30d-mint);
}

/* Direct answer block - bordered verdict card */
.shellae30d-answer {
  border: 1px solid var(--shellae30d-line-soft);
  border-left: 3px solid var(--shellae30d-lime);
  border-radius: var(--shellae30d-r-lg);
  background: var(--shellae30d-wash);
  padding: 12px 13px;
  margin: 0 0 12px;
}
.shellae30d-answer-head {
  font-family: var(--shellae30d-font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--shellae30d-lime);
  margin: 0 0 6px;
}
.shellae30d-answer-txt {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: #E4FCE4;
}

/* Compact icon-text CTA band */
.shellae30d-cta {
  display: flex; align-items: center; gap: 12px;
  border: 1px solid var(--shellae30d-spring);
  border-radius: var(--shellae30d-r-lg);
  background:
    linear-gradient(135deg, rgba(0,255,127,0.10), rgba(50,205,50,0.05)),
    var(--shellae30d-panel);
  padding: 13px 13px;
  margin: 0 0 24px;
}
.shellae30d-cta-line {
  flex: 1 1 auto;
  min-width: 0;
}
.shellae30d-cta-line strong {
  display: block;
  font-size: 14px;
  line-height: 1.35;
  color: #F0FFF0;
}
.shellae30d-cta-line span {
  display: block;
  margin-top: 3px;
  font-size: 11.5px;
  color: var(--shellae30d-clay);
}
.shellae30d-cta-btn {
  flex: 0 0 auto;
  display: inline-flex; align-items: center; gap: 7px;
  min-height: 44px;
  padding: 0 15px;
  font-family: var(--shellae30d-font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--shellae30d-ink);
  background: var(--shellae30d-spring);
  border-radius: var(--shellae30d-r);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.shellae30d-cta-btn:hover { box-shadow: 0 0 0 3px rgba(0, 255, 127, 0.22); }
.shellae30d-cta-btn:active { transform: scale(0.95); }
.shellae30d-cta-btn svg { width: 14px; height: 14px; }

/* ============================================================
   Homepage extended footer
   ============================================================ */
.shellae30d-ext {
  border-top: 1px solid var(--shellae30d-line);
  margin-top: 26px;
  padding-top: 16px;
}
.shellae30d-ext-brand {
  display: flex; gap: 11px; align-items: flex-start;
  margin-bottom: 16px;
}
.shellae30d-ext-logo {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--shellae30d-line-soft);
  padding: 2px;
  background: var(--shellae30d-panel);
  flex: 0 0 auto;
}
.shellae30d-ext-brand-txt p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--shellae30d-clay);
}
.shellae30d-ext-brand-txt h2 {
  margin: 0 0 4px;
  font-family: var(--shellae30d-font-mono);
  font-size: 13px;
  color: var(--shellae30d-mint);
  letter-spacing: 0.03em;
}

.shellae30d-ext-dir { margin-bottom: 16px; }
.shellae30d-ext-dir-title {
  margin: 0 0 8px;
  font-family: var(--shellae30d-font-mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--shellae30d-clay);
}
.shellae30d-ext-dir-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.shellae30d-ext-link {
  display: block;
  min-height: 40px;
  padding: 8px 10px;
  font-size: 12px;
  line-height: 1.3;
  color: var(--shellae30d-mint);
  border: 1px solid var(--shellae30d-line);
  border-radius: var(--shellae30d-r-sm);
  background: var(--shellae30d-panel);
  transition: border-color 0.15s ease;
}
.shellae30d-ext-link:hover {
  border-color: var(--shellae30d-spring);
  text-decoration: none;
  color: var(--shellae30d-spring);
}

.shellae30d-ext-promos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  margin-bottom: 16px;
}
.shellae30d-ext-promo {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 7px;
  min-height: 44px;
  padding: 0 10px;
  font-family: var(--shellae30d-font-mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.03em;
  border-radius: var(--shellae30d-r);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.shellae30d-ext-promo:active { transform: scale(0.96); }
.shellae30d-ext-promo svg { width: 14px; height: 14px; }
.shellae30d-ext-promo--solid {
  color: var(--shellae30d-ink);
  background: var(--shellae30d-lime);
  border: 1px solid var(--shellae30d-lime);
}
.shellae30d-ext-promo--solid:hover { box-shadow: 0 0 0 3px rgba(50,205,50,0.2); }
.shellae30d-ext-promo--line {
  color: var(--shellae30d-spring);
  border: 1px solid var(--shellae30d-spring);
  background: rgba(0, 255, 127, 0.05);
}
.shellae30d-ext-promo--line:hover { background: var(--shellae30d-wash-deep); }

.shellae30d-ext-note {
  border: 1px dashed var(--shellae30d-line-soft);
  border-radius: var(--shellae30d-r);
  padding: 10px 12px;
}
.shellae30d-ext-note p {
  margin: 0;
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--shellae30d-clay);
}

/* ---------- Common footer ---------- */
.shellae30d-footer {
  padding: 16px 0 4px;
  border-top: 1px solid var(--shellae30d-line);
  text-align: center;
}
.shellae30d-footer p {
  margin: 0;
  font-family: var(--shellae30d-font-mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: var(--shellae30d-clay);
}

/* ============================================================
   Floating dock - 5 roles, monochrome icons + accent block
   ============================================================ */
.shellae30d-dock {
  position: fixed;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  z-index: 70;
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
  background: rgba(12, 12, 12, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--shellae30d-line);
}
.shellae30d-dock-inner {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2px;
}
.shellae30d-dock-item {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 3px;
  min-height: 54px;
  min-width: 44px;
  padding: 4px 2px;
  border-radius: var(--shellae30d-r);
  border: 1px solid transparent;
  color: var(--shellae30d-mint);
  transition: transform 0.15s ease, background 0.15s ease;
}
.shellae30d-dock-item:active { transform: translateY(1px) scale(0.93); }
.shellae30d-dock-ico {
  width: 21px; height: 21px;
  color: var(--shellae30d-clay);
  transition: color 0.15s ease;
}
.shellae30d-dock-label {
  font-family: var(--shellae30d-font-mono);
  font-size: 9.5px;
  letter-spacing: 0.04em;
  color: var(--shellae30d-clay);
  transition: color 0.15s ease;
  white-space: nowrap;
}
.shellae30d-dock-item:hover .shellae30d-dock-ico,
.shellae30d-dock-item:hover .shellae30d-dock-label {
  color: var(--shellae30d-mint);
}
/* Active: background support block + accent icon */
.shellae30d-dock-item.shellae30d-is-active {
  background: var(--shellae30d-wash-deep);
  border-color: var(--shellae30d-line-soft);
}
.shellae30d-dock-item.shellae30d-is-active .shellae30d-dock-ico {
  color: var(--shellae30d-spring);
}
.shellae30d-dock-item.shellae30d-is-active .shellae30d-dock-label {
  color: var(--shellae30d-spring);
}
.shellae30d-dock-item--promo:hover .shellae30d-dock-ico {
  color: var(--shellae30d-lime);
}

/* ============================================================
   Restrained reveal feedback
   ============================================================ */
.shellae30d-reveal {
  opacity: 0;
  transform: translateY(8px);
}
.shellae30d-reveal.shellae30d-in {
  opacity: 1;
  transform: none;
  transition: opacity 0.45s ease, transform 0.45s ease;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .shellae30d-reveal { opacity: 1; transform: none; }
}

/* ============================================================
   Width ladder inside the phone canvas
   ============================================================ */

/* 375px and up: 5-column game grid, slightly larger type */
@media (min-width: 375px) and (max-width: 429px) {
  .shellae30d-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .shellae30d-tile-name { font-size: 11px; }
  .shellae30d-hero-title { font-size: 27px; }
  .shellae30d-section-title { font-size: 19.5px; }
  .shellae30d-check { grid-template-columns: 100px 1fr; }
}

/* 430px and up: canvas is clamped, widen comfortable rhythm */
@media (min-width: 430px) {
  .shellae30d-main { padding-left: 18px; padding-right: 18px; }
  .shellae30d-ext-dir-grid { gap: 8px; }
  .shellae30d-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px 9px; }
  .shellae30d-tile-name { font-size: 11.5px; }
}

/* Very narrow: keep 4 columns but tighten type */
@media (max-width: 340px) {
  .shellae30d-hero-title { font-size: 22.5px; }
  .shellae30d-tile-name { font-size: 10.2px; }
  .shellae30d-check { grid-template-columns: 84px 1fr; }
  .shellae30d-tip { grid-template-columns: 68px 1fr; }
}
