/* ==========================================================================
   Ok Panalo APK - mobile-first canvas stylesheet
   Palette anchors: #1C2833 (deep ink background) / #BF360C (ember accent)
   Design voice: geometric display headings + neutral body text,
   pill buttons paired with square-edged cards, question-driven rhythm,
   short-distance transitions only.
   All classes and variables carry the shell030fd- prefix.
   ========================================================================== */

:root {
  --shell030fd-ink: #1c2833;
  --shell030fd-ink-deep: #121b23;
  --shell030fd-ink-raise: #243442;
  --shell030fd-ink-line: rgba(243, 236, 227, 0.14);
  --shell030fd-ember: #bf360c;
  --shell030fd-ember-hot: #e0511b;
  --shell030fd-ember-glow: rgba(224, 81, 27, 0.28);
  --shell030fd-ember-wash: rgba(191, 54, 12, 0.14);
  --shell030fd-paper: #f3ece3;
  --shell030fd-paper-dim: #bfc6cd;
  --shell030fd-paper-faint: #8d99a3;
  --shell030fd-gold: #e8b25c;
  --shell030fd-font-display: "Trebuchet MS", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --shell030fd-font-body: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --shell030fd-pill: 999px;
  --shell030fd-card: 6px;
  --shell030fd-topbar-h: 102px;
  --shell030fd-rail-h: 64px;
  --shell030fd-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- reset + base ---------- */

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  padding: 0;
  background: var(--shell030fd-ink-deep);
  color: var(--shell030fd-paper);
  font-family: var(--shell030fd-font-body);
  font-size: 15px;
  line-height: 1.62;
  overflow-x: hidden;
}

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

a {
  color: var(--shell030fd-ember-hot);
  text-decoration: none;
}

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

h1, h2, h3, h4 {
  font-family: var(--shell030fd-font-display);
  color: var(--shell030fd-paper);
  line-height: 1.24;
  margin: 0 0 0.5em;
  letter-spacing: 0.015em;
}

h1 { font-size: 1.62rem; font-weight: 800; }
h2 { font-size: 1.24rem; font-weight: 800; }
h3 { font-size: 1.02rem; font-weight: 700; }

p { margin: 0 0 0.9em; }

ul, ol { margin: 0 0 1em; padding-left: 1.25em; }

:focus-visible {
  outline: 2px solid var(--shell030fd-ember-hot);
  outline-offset: 2px;
  border-radius: 3px;
}

/* ---------- phone canvas (430px reference width) ---------- */

.shell030fd-canvas {
  position: relative;
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
  background: var(--shell030fd-ink);
  overflow-x: clip;
}

.shell030fd-main {
  padding: calc(var(--shell030fd-topbar-h) + 10px) 16px
           calc(var(--shell030fd-rail-h) + 34px);
}

/* ---------- fixed top identity bar ---------- */

.shell030fd-topbar {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  z-index: 70;
  background: linear-gradient(180deg, #16202a 0%, var(--shell030fd-ink) 100%);
  border-bottom: 1px solid var(--shell030fd-ink-line);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

.shell030fd-identity {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 8px 12px 6px;
}

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

.shell030fd-wordmark {
  font-family: var(--shell030fd-font-display);
  font-size: 1.12rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--shell030fd-paper);
}

.shell030fd-wordmark em {
  font-style: normal;
  color: var(--shell030fd-ember-hot);
}

.shell030fd-actionrail {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 12px 9px;
}

.shell030fd-cta-group {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

/* pill buttons: round CTAs over square cards */
.shell030fd-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 9px 18px;
  border-radius: var(--shell030fd-pill);
  border: 1px solid transparent;
  font-family: var(--shell030fd-font-display);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  background: none;
  color: var(--shell030fd-paper);
  text-decoration: none;
  transition: transform 0.16s var(--shell030fd-ease),
              box-shadow 0.16s var(--shell030fd-ease),
              background 0.16s var(--shell030fd-ease);
}

.shell030fd-btn:hover,
.shell030fd-btn:focus-visible {
  text-decoration: none;
  transform: translateY(-1px);
}

.shell030fd-btn-ember {
  background: linear-gradient(135deg, var(--shell030fd-ember-hot), var(--shell030fd-ember));
  box-shadow: 0 4px 14px var(--shell030fd-ember-glow);
}

.shell030fd-btn-ghost {
  border-color: var(--shell030fd-paper-faint);
  color: var(--shell030fd-paper);
}

.shell030fd-btn-compact {
  min-height: 44px;
  padding: 8px 14px;
  font-size: 0.78rem;
}

.shell030fd-menubtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--shell030fd-pill);
  border: 1px solid var(--shell030fd-ink-line);
  background: var(--shell030fd-ink-raise);
  cursor: pointer;
  flex: 0 0 auto;
}

.shell030fd-menubtn span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--shell030fd-paper);
  border-radius: 2px;
  position: relative;
  transition: transform 0.18s var(--shell030fd-ease);
}

.shell030fd-menubtn span::before,
.shell030fd-menubtn span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: var(--shell030fd-paper);
  border-radius: 2px;
  transition: transform 0.18s var(--shell030fd-ease), width 0.18s var(--shell030fd-ease);
}

.shell030fd-menubtn span::before { top: -6px; }
.shell030fd-menubtn span::after { top: 6px; }

.shell030fd-menubtn:hover span::before { width: 12px; }
.shell030fd-menubtn:hover span::after { width: 14px; }

/* ---------- full-height menu layer ---------- */

.shell030fd-scrim {
  position: fixed;
  inset: 0;
  background: rgba(6, 10, 14, 0.66);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s var(--shell030fd-ease);
  z-index: 80;
}

.shell030fd-scrim.is-shown {
  opacity: 1;
  visibility: visible;
}

.shell030fd-menu {
  position: fixed;
  top: 0;
  right: 0;
  height: 100dvh;
  width: min(316px, 86vw);
  max-width: 430px;
  z-index: 90;
  background: #16212b;
  border-left: 1px solid var(--shell030fd-ink-line);
  transform: translateX(102%);
  transition: transform 0.24s var(--shell030fd-ease);
  overflow-y: auto;
  padding: 14px 18px calc(var(--shell030fd-rail-h) + 22px);
  box-shadow: -14px 0 34px rgba(0, 0, 0, 0.45);
}

.shell030fd-menu.is-open {
  transform: translateX(0);
}

.shell030fd-menu-head {
  display: flex;
  align-items: center;
  gap: 9px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--shell030fd-ink-line);
  margin-bottom: 14px;
}

.shell030fd-menu-head .shell030fd-logo {
  width: 30px;
  height: 30px;
}

.shell030fd-menu-title {
  font-family: var(--shell030fd-font-display);
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  flex: 1;
}

.shell030fd-menu-close {
  width: 40px;
  height: 40px;
  border-radius: var(--shell030fd-pill);
  border: 1px solid var(--shell030fd-ink-line);
  background: var(--shell030fd-ink-raise);
  color: var(--shell030fd-paper);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
}

.shell030fd-menu-label {
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--shell030fd-ember-hot);
  margin: 16px 0 6px;
  font-weight: 700;
}

.shell030fd-menu-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.shell030fd-menu-list li { margin: 0; }

.shell030fd-menu-link {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 10px 12px;
  border-radius: var(--shell030fd-card);
  color: var(--shell030fd-paper);
  font-size: 0.92rem;
  font-weight: 600;
  border: 1px solid transparent;
}

.shell030fd-menu-link i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--shell030fd-ember);
  flex: 0 0 auto;
  transition: transform 0.16s var(--shell030fd-ease);
}

.shell030fd-menu-link:hover,
.shell030fd-menu-link:focus-visible {
  background: var(--shell030fd-ember-wash);
  text-decoration: none;
}

.shell030fd-menu-link:hover i {
  transform: scale(1.45);
}

.shell030fd-menu-cta {
  margin-top: 18px;
  display: grid;
  gap: 10px;
}

/* ---------- hero ---------- */

.shell030fd-hero {
  padding: 6px 0 4px;
}

.shell030fd-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--shell030fd-ember-hot);
  margin-bottom: 8px;
}

.shell030fd-kicker::before {
  content: "";
  width: 18px;
  height: 2px;
  background: var(--shell030fd-ember);
}

.shell030fd-hero-lede {
  color: var(--shell030fd-paper-dim);
  font-size: 0.95rem;
}

.shell030fd-hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0 6px;
}

.shell030fd-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 16px 0 4px;
}

.shell030fd-fact {
  border: 1px solid var(--shell030fd-ink-line);
  border-left: 3px solid var(--shell030fd-ember);
  border-radius: var(--shell030fd-card);
  background: var(--shell030fd-ink-raise);
  padding: 9px 8px;
  text-align: center;
}

.shell030fd-fact b {
  display: block;
  font-family: var(--shell030fd-font-display);
  font-size: 1.05rem;
  color: var(--shell030fd-gold);
  letter-spacing: 0.02em;
}

.shell030fd-fact small {
  display: block;
  font-size: 0.63rem;
  color: var(--shell030fd-paper-faint);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  line-height: 1.4;
}

/* ---------- promo carousel ---------- */

.shell030fd-carousel {
  position: relative;
  margin: 18px 0 6px;
  border-radius: var(--shell030fd-card);
  overflow: hidden;
  border: 1px solid var(--shell030fd-ink-line);
  background: var(--shell030fd-ink-deep);
}

.shell030fd-slides {
  position: relative;
  aspect-ratio: 5 / 3;
  width: 100%;
}

.shell030fd-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateX(14px);
  transition: opacity 0.32s var(--shell030fd-ease),
              transform 0.32s var(--shell030fd-ease);
  display: block;
}

.shell030fd-slide.is-active {
  opacity: 1;
  transform: translateX(0);
}

.shell030fd-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shell030fd-dots {
  position: absolute;
  bottom: 9px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 7px;
  z-index: 2;
}

.shell030fd-dot {
  width: 26px;
  height: 6px;
  border-radius: var(--shell030fd-pill);
  border: 0;
  padding: 0;
  background: rgba(243, 236, 227, 0.34);
  cursor: pointer;
  transition: background 0.18s var(--shell030fd-ease),
              transform 0.18s var(--shell030fd-ease);
}

.shell030fd-dot.is-on {
  background: var(--shell030fd-ember-hot);
  transform: scaleX(1.15);
}

/* ---------- section scaffolding ---------- */

.shell030fd-sect {
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid var(--shell030fd-ink-line);
}

.shell030fd-sect-intro {
  color: var(--shell030fd-paper-dim);
  font-size: 0.92rem;
}

.shell030fd-sect-intro a {
  font-weight: 600;
}

.shell030fd-count-tag {
  display: inline-block;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--shell030fd-paper-faint);
  border: 1px solid var(--shell030fd-ink-line);
  border-radius: var(--shell030fd-pill);
  padding: 2px 10px;
  margin-left: 6px;
  vertical-align: 2px;
}

/* ---------- featured big game card ---------- */

.shell030fd-feature {
  display: flex;
  gap: 12px;
  align-items: stretch;
  border: 1px solid var(--shell030fd-ink-line);
  border-left: 4px solid var(--shell030fd-ember);
  border-radius: var(--shell030fd-card);
  background: linear-gradient(135deg, var(--shell030fd-ink-raise), #1a252f);
  padding: 10px;
  margin: 14px 0;
  transition: border-color 0.18s var(--shell030fd-ease);
}

.shell030fd-feature:hover {
  border-left-color: var(--shell030fd-ember-hot);
}

.shell030fd-feature-thumb {
  width: 96px;
  height: 96px;
  flex: 0 0 auto;
  border-radius: var(--shell030fd-card);
  overflow: hidden;
  border: 1px solid var(--shell030fd-ink-line);
  background: var(--shell030fd-ink-deep);
}

.shell030fd-feature-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shell030fd-feature-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
}

.shell030fd-feature-flag {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--shell030fd-gold);
}

.shell030fd-feature-name {
  font-family: var(--shell030fd-font-display);
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--shell030fd-paper);
}

.shell030fd-feature-note {
  font-size: 0.8rem;
  color: var(--shell030fd-paper-dim);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.shell030fd-feature-go {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--shell030fd-ember-hot);
}

/* ---------- compact game grid (small cards) ---------- */

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

.shell030fd-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.shell030fd-cell-art {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--shell030fd-card);
  overflow: hidden;
  border: 1px solid var(--shell030fd-ink-line);
  background: var(--shell030fd-ink-deep);
  transition: transform 0.16s var(--shell030fd-ease),
              border-color 0.16s var(--shell030fd-ease),
              box-shadow 0.16s var(--shell030fd-ease);
}

.shell030fd-cell-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shell030fd-cell:hover .shell030fd-cell-art,
.shell030fd-cell:focus-visible .shell030fd-cell-art {
  transform: translateY(-4px);
  border-color: var(--shell030fd-ember);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.38);
}

.shell030fd-cell-name {
  font-size: 0.68rem;
  line-height: 1.3;
  text-align: center;
  color: var(--shell030fd-paper-dim);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
}

.shell030fd-deeper {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.shell030fd-deeper a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 7px 13px;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--shell030fd-paper-dim);
  border: 1px dashed var(--shell030fd-ink-line);
  border-radius: var(--shell030fd-pill);
}

.shell030fd-deeper a::before {
  content: "\2192";
  margin-right: 6px;
  color: var(--shell030fd-ember-hot);
  font-weight: 700;
}

.shell030fd-deeper a:hover {
  color: var(--shell030fd-paper);
  border-color: var(--shell030fd-ember);
  text-decoration: none;
}

/* ---------- category highlight rows ---------- */

.shell030fd-match {
  border: 1px solid var(--shell030fd-ink-line);
  border-radius: var(--shell030fd-card);
  overflow: hidden;
  margin-top: 12px;
}

.shell030fd-match-row {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 10px;
  padding: 11px 12px;
  border-bottom: 1px solid var(--shell030fd-ink-line);
  background: var(--shell030fd-ink);
  transition: background 0.16s var(--shell030fd-ease);
}

.shell030fd-match-row:last-child { border-bottom: 0; }

.shell030fd-match-row:hover { background: var(--shell030fd-ink-raise); }

.shell030fd-match-key {
  font-family: var(--shell030fd-font-display);
  font-weight: 800;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--shell030fd-ember-hot);
  align-self: start;
  padding-top: 2px;
}

.shell030fd-match-val {
  font-size: 0.82rem;
  color: var(--shell030fd-paper-dim);
  line-height: 1.5;
}

.shell030fd-match-val b { color: var(--shell030fd-paper); }

/* ---------- steps (app module) ---------- */

.shell030fd-steps {
  list-style: none;
  counter-reset: shell030fdstep;
  padding: 0;
  margin: 12px 0 4px;
}

.shell030fd-steps li {
  counter-increment: shell030fdstep;
  position: relative;
  padding: 0 0 12px 40px;
  font-size: 0.86rem;
  color: var(--shell030fd-paper-dim);
}

.shell030fd-steps li::before {
  content: counter(shell030fdstep);
  position: absolute;
  left: 0;
  top: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--shell030fd-ember);
  color: var(--shell030fd-ember-hot);
  font-family: var(--shell030fd-font-display);
  font-weight: 800;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--shell030fd-ember-wash);
}

.shell030fd-steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 14px;
  top: 30px;
  bottom: 0;
  width: 1px;
  background: var(--shell030fd-ink-line);
}

.shell030fd-steps b { color: var(--shell030fd-paper); }

/* ---------- direct answer block ---------- */

.shell030fd-quick {
  border: 1px solid var(--shell030fd-ember);
  border-radius: var(--shell030fd-card);
  background:
    linear-gradient(160deg, var(--shell030fd-ember-wash), transparent 58%),
    var(--shell030fd-ink-raise);
  padding: 14px;
  margin-top: 12px;
}

.shell030fd-quick p:last-child { margin-bottom: 0; }

.shell030fd-quick-tag {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--shell030fd-ink);
  background: var(--shell030fd-ember-hot);
  border-radius: var(--shell030fd-pill);
  padding: 3px 11px;
  margin-bottom: 9px;
}

/* ---------- entity relationship map ---------- */

.shell030fd-rel {
  display: grid;
  gap: 9px;
  margin-top: 12px;
}

.shell030fd-rel-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  border: 1px solid var(--shell030fd-ink-line);
  border-radius: var(--shell030fd-card);
  padding: 10px 12px;
  background: var(--shell030fd-ink);
}

.shell030fd-rel-node {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--shell030fd-ember);
  color: var(--shell030fd-ember-hot);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--shell030fd-font-display);
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  text-align: center;
  line-height: 1.15;
  background: var(--shell030fd-ember-wash);
  transition: transform 0.16s var(--shell030fd-ease);
}

.shell030fd-rel-item:hover .shell030fd-rel-node {
  transform: translateY(-2px) rotate(-2deg);
}

.shell030fd-rel-text {
  font-size: 0.82rem;
  color: var(--shell030fd-paper-dim);
  line-height: 1.5;
}

.shell030fd-rel-text b { color: var(--shell030fd-paper); }

/* ---------- extended footer ---------- */

.shell030fd-extfoot {
  margin-top: 30px;
  border-top: 3px solid var(--shell030fd-ember);
  background: #131c25;
  padding: 18px 16px 20px;
}

.shell030fd-extfoot-title {
  font-family: var(--shell030fd-font-display);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--shell030fd-ember-hot);
  margin: 0 0 10px;
}

.shell030fd-extbrand {
  font-size: 0.84rem;
  color: var(--shell030fd-paper-dim);
}

.shell030fd-directory {
  columns: 2;
  column-gap: 14px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.shell030fd-directory li {
  margin: 0 0 9px;
  break-inside: avoid;
}

.shell030fd-directory a {
  display: block;
  font-size: 0.76rem;
  line-height: 1.35;
  color: var(--shell030fd-paper-dim);
  padding: 4px 0 4px 12px;
  position: relative;
}

.shell030fd-directory a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 5px;
  height: 5px;
  border-radius: 1px;
  background: var(--shell030fd-ember);
}

.shell030fd-directory a:hover {
  color: var(--shell030fd-paper);
  text-decoration: none;
}

.shell030fd-extblock { margin-top: 18px; }

.shell030fd-promolist {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.shell030fd-promolist button,
.shell030fd-promolist a {
  width: 100%;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 6px;
  padding: 9px 10px;
  border-radius: var(--shell030fd-card);
  border: 1px solid var(--shell030fd-ember);
  background: var(--shell030fd-ember-wash);
  color: var(--shell030fd-paper);
  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1.3;
  cursor: pointer;
  font-family: var(--shell030fd-font-body);
  transition: transform 0.16s var(--shell030fd-ease),
              background 0.16s var(--shell030fd-ease);
}

.shell030fd-promolist button:hover,
.shell030fd-promolist a:hover {
  background: var(--shell030fd-ember);
  transform: translateY(-2px);
  text-decoration: none;
}

.shell030fd-disclaimer {
  margin-top: 18px;
  border-top: 1px solid var(--shell030fd-ink-line);
  padding-top: 12px;
  font-size: 0.7rem;
  line-height: 1.55;
  color: var(--shell030fd-paper-faint);
}

/* ---------- common footer + bottom nav rail ---------- */

.shell030fd-footer {
  text-align: center;
  padding: 14px 16px calc(var(--shell030fd-rail-h) + 20px);
  font-size: 0.7rem;
  color: var(--shell030fd-paper-faint);
  border-top: 1px solid var(--shell030fd-ink-line);
  background: #101820;
}

.shell030fd-footer p { margin: 0 0 4px; }

.shell030fd-rail {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: calc(var(--shell030fd-rail-h) + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: stretch;
  background: rgba(15, 22, 29, 0.97);
  border-top: 1px solid var(--shell030fd-ink-line);
  z-index: 75;
}

.shell030fd-railbtn {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: 44px;
  padding: 7px 2px 5px;
  color: var(--shell030fd-paper-faint);
  background: none;
  border: 0;
  cursor: pointer;
  font-family: var(--shell030fd-font-body);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.16s var(--shell030fd-ease),
              transform 0.16s var(--shell030fd-ease);
}

.shell030fd-railbtn svg {
  width: 22px;
  height: 22px;
  transition: transform 0.18s var(--shell030fd-ease);
}

.shell030fd-railbtn:hover,
.shell030fd-railbtn:focus-visible {
  color: var(--shell030fd-paper);
  text-decoration: none;
}

.shell030fd-railbtn:hover svg {
  transform: translateY(-2px) scale(1.06);
}

/* light active marker + slight lift */
.shell030fd-railbtn::after {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 26px;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: var(--shell030fd-ember-hot);
  transition: transform 0.18s var(--shell030fd-ease);
}

.shell030fd-railbtn.is-here {
  color: var(--shell030fd-paper);
  transform: translateY(-3px);
}

.shell030fd-railbtn.is-here::after {
  transform: translateX(-50%) scaleX(1);
}

.shell030fd-railbtn.is-here svg {
  transform: translateY(-1px) scale(1.08);
  color: var(--shell030fd-ember-hot);
}

/* raised center promo badge (icon state morph on press) */
.shell030fd-railbtn-mid {
  color: var(--shell030fd-paper);
}

.shell030fd-railbtn-mid svg {
  width: 26px;
  height: 26px;
  color: var(--shell030fd-ember-hot);
  filter: drop-shadow(0 3px 7px var(--shell030fd-ember-glow));
}

.shell030fd-railbtn-mid:active svg {
  transform: scale(0.9) rotate(8deg);
}

.shell030fd-railbtn:active svg {
  transform: scale(0.9);
}

/* ---------- in-copy promo text links ---------- */

.shell030fd-inline-go {
  font-weight: 700;
  color: var(--shell030fd-ember-hot);
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
  font-size: inherit;
  font-family: inherit;
  text-decoration: underline;
  text-decoration-color: var(--shell030fd-ember-glow);
  text-underline-offset: 3px;
  min-height: 0;
}

.shell030fd-inline-go:hover {
  color: var(--shell030fd-gold);
}

/* ---------- utilities ---------- */

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

.shell030fd-note {
  font-size: 0.78rem;
  color: var(--shell030fd-paper-faint);
}

/* wider phones: 5 game columns, roomier hero */
@media (min-width: 392px) {
  .shell030fd-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px 10px;
  }

  .shell030fd-feature-thumb {
    width: 108px;
    height: 108px;
  }
}

@media (min-width: 431px) {
  .shell030fd-canvas {
    border-left: 1px solid var(--shell030fd-ink-line);
    border-right: 1px solid var(--shell030fd-ink-line);
    box-shadow: 0 0 60px rgba(0, 0, 0, 0.5);
  }
}

/* short-distance motion only, respect reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
