/* ==========================================================================
   gates of hades - visual layers
   file   : css/gates-of-hades-layers-89a40a.css
   prefix : shell40a55-
   canvas : 320-430px mobile first, wide screens keep the phone canvas centred
   palette: #A0522D sienna | #FF7F50 ember | #3A3A3A stone | #FFB74D amber
            #B03060 mulberry  (darks carry surfaces, lights carry type)
   voice  : high-contrast display type + readable body, small-mid radii,
            compact square game catalogue, intro-sectioned rhythm,
            restrained fade feedback, light-rounded CTA groups
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. design tokens
   -------------------------------------------------------------------------- */
:root {
  --shell40a55-bg: #211914;
  --shell40a55-bg-deep: #150f0c;
  --shell40a55-surface: #2c221d;
  --shell40a55-surface-2: #372a24;
  --shell40a55-surface-3: #43332b;
  --shell40a55-line: #524036;
  --shell40a55-line-soft: #3d2f28;
  --shell40a55-sienna: #a0522d;
  --shell40a55-ember: #ff7f50;
  --shell40a55-ember-deep: #e2623a;
  --shell40a55-amber: #ffb74d;
  --shell40a55-mulberry: #b03060;
  --shell40a55-ink: #f8efe6;
  --shell40a55-ink-soft: #dcc9ba;
  --shell40a55-ink-mute: #a5917f;
  --shell40a55-radius-s: 8px;
  --shell40a55-radius-m: 13px;
  --shell40a55-radius-l: 19px;
  --shell40a55-topbar-h: 58px;
  --shell40a55-rail-h: 64px;
  --shell40a55-font-display: "Trebuchet MS", "Segoe UI", system-ui, sans-serif;
  --shell40a55-font-body: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --shell40a55-shadow-1: 0 2px 10px rgba(12, 7, 5, 0.38);
  --shell40a55-shadow-2: 0 8px 26px rgba(12, 7, 5, 0.5);
  --shell40a55-glow-ember: 0 0 0 1px rgba(255, 127, 80, 0.35), 0 6px 18px rgba(255, 127, 80, 0.16);
}

/* --------------------------------------------------------------------------
   2. base / reset
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: var(--shell40a55-font-body);
  font-size: 15px;
  line-height: 1.62;
  color: var(--shell40a55-ink-soft);
  background: var(--shell40a55-bg-deep);
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4, p, ol, ul, dl, figure {
  margin: 0;
}

ul, ol {
  padding: 0;
  list-style: none;
}

a {
  color: var(--shell40a55-amber);
  text-decoration: none;
}

a:hover {
  color: var(--shell40a55-ember);
  text-decoration: underline;
}

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

::selection {
  background: var(--shell40a55-ember);
  color: #1d120c;
}

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

.shell40a55-skip {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 200;
}

.shell40a55-skip:focus {
  left: 10px;
  top: 8px;
  padding: 8px 14px;
  background: var(--shell40a55-amber);
  color: #2a1408;
  border-radius: var(--shell40a55-radius-s);
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   3. phone canvas (stays centred on wide screens)
   -------------------------------------------------------------------------- */
.shell40a55-canvas {
  position: relative;
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
  background:
    radial-gradient(120% 46% at 50% 0%, rgba(160, 82, 45, 0.24), transparent 62%),
    linear-gradient(180deg, #251c16 0%, var(--shell40a55-bg) 34%, #1d1610 100%);
  box-shadow: 0 0 0 1px rgba(255, 183, 77, 0.05);
  overflow-x: hidden;
}

.shell40a55-main {
  display: block;
  padding: calc(var(--shell40a55-topbar-h) + 10px) 14px calc(var(--shell40a55-rail-h) + 34px);
}

/* --------------------------------------------------------------------------
   4. top action band (minimal title strip + actions)
   -------------------------------------------------------------------------- */
.shell40a55-topbar {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: var(--shell40a55-topbar-h);
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px 0 12px;
  background: linear-gradient(180deg, rgba(24, 16, 12, 0.97), rgba(30, 21, 16, 0.94));
  border-bottom: 1px solid rgba(255, 183, 77, 0.14);
  backdrop-filter: blur(8px);
}

.shell40a55-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  margin-right: auto;
}

.shell40a55-brand-logo {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid rgba(255, 183, 77, 0.4);
  box-shadow: 0 2px 8px rgba(255, 127, 80, 0.25);
  flex: none;
}

.shell40a55-brand-name {
  font-family: var(--shell40a55-font-display);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.4px;
  color: var(--shell40a55-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.shell40a55-topbar-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: none;
}

/* CTA pair: light-rounded text buttons */
.shell40a55-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 7px 13px;
  border-radius: 10px;
  font-family: var(--shell40a55-font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.3px;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.shell40a55-btn--ember {
  background: linear-gradient(135deg, var(--shell40a55-ember) 0%, var(--shell40a55-ember-deep) 55%, #c14a2b 100%);
  color: #26100a;
  box-shadow: var(--shell40a55-glow-ember);
}

.shell40a55-btn--ember:active {
  transform: translateY(1px);
}

.shell40a55-btn--ghost {
  background: rgba(255, 183, 77, 0.08);
  color: var(--shell40a55-amber);
  border: 1px solid rgba(255, 183, 77, 0.34);
}

.shell40a55-btn--ghost:active {
  transform: translateY(1px);
}

.shell40a55-menu-toggle {
  width: 40px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid rgba(255, 183, 77, 0.28);
  background: rgba(255, 183, 77, 0.07);
  color: var(--shell40a55-amber);
}

.shell40a55-menu-toggle svg {
  width: 19px;
  height: 19px;
}

.shell40a55-menu-toggle[aria-expanded="true"] {
  background: rgba(255, 127, 80, 0.16);
  border-color: rgba(255, 127, 80, 0.5);
  color: var(--shell40a55-ember);
}

/* --------------------------------------------------------------------------
   5. side drawer menu
   -------------------------------------------------------------------------- */
.shell40a55-drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(10, 6, 4, 0.66);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.shell40a55-drawer {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  z-index: 130;
  height: 100dvh;
  pointer-events: none;
}

.shell40a55-drawer-panel {
  width: min(84vw, 318px);
  height: 100%;
  display: flex;
  flex-direction: column;
  background: linear-gradient(175deg, #2e231d 0%, #211913 70%, #1b1410 100%);
  border-right: 1px solid rgba(255, 183, 77, 0.16);
  box-shadow: var(--shell40a55-shadow-2);
  transform: translateX(-104%);
  transition: transform 0.26s cubic-bezier(0.22, 0.68, 0.32, 1);
  overflow-y: auto;
  overscroll-behavior: contain;
  pointer-events: auto;
}

.shell40a55-drawer--open .shell40a55-drawer-panel {
  transform: translateX(0);
}

.shell40a55-drawer--open ~ .shell40a55-drawer-backdrop,
.shell40a55-drawer-backdrop.shell40a55-drawer-backdrop--open {
  opacity: 1;
  visibility: visible;
}

.shell40a55-drawer-head {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 16px 14px 12px;
  border-bottom: 1px solid var(--shell40a55-line-soft);
}

.shell40a55-drawer-head img {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  object-fit: cover;
  border: 1px solid rgba(255, 183, 77, 0.35);
}

.shell40a55-drawer-title {
  font-family: var(--shell40a55-font-display);
  font-size: 16px;
  font-weight: 800;
  color: var(--shell40a55-ink);
  margin-right: auto;
}

.shell40a55-drawer-close {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--shell40a55-ink-mute);
  border: 1px solid var(--shell40a55-line-soft);
}

.shell40a55-drawer-close svg {
  width: 16px;
  height: 16px;
}

.shell40a55-drawer-group {
  padding: 14px 12px 4px;
}

.shell40a55-drawer-group-label {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--shell40a55-ember);
  padding: 0 10px 8px;
}

.shell40a55-drawer-link {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: var(--shell40a55-radius-s);
  color: var(--shell40a55-ink-soft);
  font-size: 14px;
  font-weight: 600;
  transition: background 0.15s ease, color 0.15s ease;
}

.shell40a55-drawer-link:hover {
  background: rgba(255, 183, 77, 0.09);
  color: var(--shell40a55-amber);
  text-decoration: none;
}

.shell40a55-drawer-link--now {
  background: rgba(255, 127, 80, 0.14);
  color: var(--shell40a55-ember);
  border: 1px solid rgba(255, 127, 80, 0.32);
}

.shell40a55-drawer-link-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--shell40a55-sienna);
  flex: none;
}

.shell40a55-drawer-link--now .shell40a55-drawer-link-dot {
  background: var(--shell40a55-ember);
}

.shell40a55-drawer-foot {
  margin-top: auto;
  padding: 14px;
  border-top: 1px solid var(--shell40a55-line-soft);
}

.shell40a55-drawer-cta {
  width: 100%;
}

body.shell40a55-no-scroll {
  overflow: hidden;
}

/* --------------------------------------------------------------------------
   6. hero carousel
   -------------------------------------------------------------------------- */
.shell40a55-hero {
  position: relative;
  border-radius: var(--shell40a55-radius-l);
  overflow: hidden;
  box-shadow: var(--shell40a55-shadow-1);
  border: 1px solid rgba(255, 183, 77, 0.14);
}

.shell40a55-hero-slide {
  position: relative;
  display: block;
  width: 100%;
  cursor: pointer;
}

.shell40a55-hero-slide img {
  width: 100%;
  height: clamp(150px, 44vw, 205px);
  object-fit: cover;
}

.shell40a55-hero-slide:not(.shell40a55-hero-slide--on) {
  display: none;
}

.shell40a55-hero-cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 26px 14px 10px;
  background: linear-gradient(180deg, transparent, rgba(16, 10, 7, 0.88) 78%);
  text-align: left;
  font-family: var(--shell40a55-font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.3px;
  color: var(--shell40a55-amber);
}

.shell40a55-hero-dots {
  position: absolute;
  right: 10px;
  bottom: 8px;
  display: flex;
  gap: 6px;
  z-index: 2;
}

.shell40a55-hero-dot {
  width: 22px;
  height: 8px;
  border-radius: 6px;
  background: rgba(248, 239, 230, 0.28);
  transition: background 0.2s ease, width 0.2s ease;
}

.shell40a55-hero-dot--on {
  background: var(--shell40a55-ember);
  width: 30px;
}

/* --------------------------------------------------------------------------
   7. intro block (single H1 lives here)
   -------------------------------------------------------------------------- */
.shell40a55-intro {
  margin: 18px 0 6px;
}

.shell40a55-kicker {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  color: var(--shell40a55-ember);
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 127, 80, 0.38);
  background: rgba(255, 127, 80, 0.08);
}

.shell40a55-intro h1 {
  font-family: var(--shell40a55-font-display);
  font-size: 24px;
  line-height: 1.22;
  font-weight: 800;
  letter-spacing: 0.2px;
  color: var(--shell40a55-ink);
  margin: 10px 0 10px;
  text-wrap: balance;
}

.shell40a55-lead {
  font-size: 14.5px;
  color: var(--shell40a55-ink-soft);
}

.shell40a55-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 13px;
}

.shell40a55-cta-row .shell40a55-btn {
  flex: 1 1 130px;
}

/* --------------------------------------------------------------------------
   8. shared section shell
   -------------------------------------------------------------------------- */
.shell40a55-section {
  margin-top: 26px;
}

.shell40a55-section-head {
  padding: 0 2px 10px;
}

.shell40a55-section-title {
  font-family: var(--shell40a55-font-display);
  font-size: 18.5px;
  line-height: 1.3;
  font-weight: 800;
  color: var(--shell40a55-ink);
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.shell40a55-section-title::before {
  content: "";
  flex: none;
  width: 5px;
  height: 17px;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--shell40a55-ember), var(--shell40a55-mulberry));
  transform: translateY(2px);
}

.shell40a55-section-note {
  margin-top: 6px;
  font-size: 13px;
  color: var(--shell40a55-ink-mute);
}

.shell40a55-section-note a {
  color: var(--shell40a55-amber);
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   9. compact square game catalogue
   -------------------------------------------------------------------------- */
.shell40a55-gamegrid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.shell40a55-gamecard {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  border-radius: var(--shell40a55-radius-m);
  background: linear-gradient(180deg, var(--shell40a55-surface-2), var(--shell40a55-surface));
  border: 1px solid var(--shell40a55-line-soft);
  padding: 5px 5px 7px;
  text-align: center;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.shell40a55-gamecard:hover {
  text-decoration: none;
  transform: translateY(-2px);
  border-color: rgba(255, 127, 80, 0.5);
  box-shadow: 0 6px 16px rgba(255, 127, 80, 0.14);
}

.shell40a55-gamecard:active {
  transform: translateY(0);
}

.shell40a55-gamecard-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 9px;
  background: #241b16;
}

.shell40a55-gamecard-name {
  margin-top: 5px;
  font-size: 10.5px;
  line-height: 1.3;
  font-weight: 600;
  color: var(--shell40a55-ink-soft);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 27px;
}

/* --------------------------------------------------------------------------
   10. module: funding ledger (payment conditions)
   -------------------------------------------------------------------------- */
.shell40a55-ledger {
  border-radius: var(--shell40a55-radius-m);
  background: var(--shell40a55-surface);
  border: 1px solid var(--shell40a55-line-soft);
  overflow: hidden;
}

.shell40a55-ledger-row {
  display: flex;
  gap: 12px;
  padding: 12px 13px;
  border-bottom: 1px solid var(--shell40a55-line-soft);
}

.shell40a55-ledger-row:last-child {
  border-bottom: 0;
}

.shell40a55-ledger-key {
  flex: none;
  width: 86px;
  font-family: var(--shell40a55-font-display);
  font-size: 12.5px;
  font-weight: 800;
  color: var(--shell40a55-amber);
  letter-spacing: 0.3px;
  padding-top: 1px;
}

.shell40a55-ledger-val {
  font-size: 13px;
  color: var(--shell40a55-ink-soft);
}

/* --------------------------------------------------------------------------
   11. module: numbered access path (mobile summary)
   -------------------------------------------------------------------------- */
.shell40a55-path {
  counter-reset: shell40a55step;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.shell40a55-path li {
  counter-increment: shell40a55step;
  position: relative;
  padding: 11px 13px 11px 46px;
  border-radius: var(--shell40a55-radius-s);
  background: rgba(160, 82, 45, 0.12);
  border: 1px solid rgba(160, 82, 45, 0.3);
  font-size: 13.5px;
}

.shell40a55-path li::before {
  content: counter(shell40a55step);
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: linear-gradient(140deg, var(--shell40a55-amber), var(--shell40a55-ember));
  color: #2a1408;
  font-family: var(--shell40a55-font-display);
  font-size: 12.5px;
  font-weight: 800;
}

/* --------------------------------------------------------------------------
   12. module: app panel + caution card
   -------------------------------------------------------------------------- */
.shell40a55-apppanel {
  border-radius: var(--shell40a55-radius-m);
  background: linear-gradient(165deg, #33261f, #271d17);
  border: 1px solid rgba(255, 183, 77, 0.16);
  padding: 14px;
}

.shell40a55-apppanel-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 12px;
}

.shell40a55-apppanel-strip figure {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--shell40a55-line-soft);
}

.shell40a55-apppanel-strip img {
  width: 100%;
  height: 92px;
  object-fit: cover;
}

.shell40a55-apppanel-strip figcaption {
  font-size: 10.5px;
  color: var(--shell40a55-ink-mute);
  padding: 5px 7px;
  background: rgba(16, 10, 7, 0.5);
}

.shell40a55-caution {
  margin-top: 12px;
  border-radius: var(--shell40a55-radius-s);
  border: 1px dashed rgba(176, 48, 96, 0.55);
  background: rgba(176, 48, 96, 0.1);
  padding: 11px 12px;
  font-size: 12.5px;
  color: var(--shell40a55-ink-soft);
}

.shell40a55-caution strong {
  color: #ff9d9d;
}

/* --------------------------------------------------------------------------
   13. module: promo offers
   -------------------------------------------------------------------------- */
.shell40a55-offers {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.shell40a55-offer {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 13px;
  border-radius: var(--shell40a55-radius-m);
  background: var(--shell40a55-surface);
  border: 1px solid var(--shell40a55-line-soft);
}

.shell40a55-offer-tag {
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, rgba(255, 183, 77, 0.2), rgba(255, 127, 80, 0.12));
  border: 1px solid rgba(255, 183, 77, 0.3);
}

.shell40a55-offer-tag svg {
  width: 20px;
  height: 20px;
  color: var(--shell40a55-amber);
}

.shell40a55-offer-body {
  flex: 1;
  min-width: 0;
}

.shell40a55-offer-name {
  font-family: var(--shell40a55-font-display);
  font-size: 14px;
  font-weight: 800;
  color: var(--shell40a55-ink);
}

.shell40a55-offer-text {
  font-size: 12px;
  color: var(--shell40a55-ink-mute);
  margin-top: 2px;
}

.shell40a55-offer-claim {
  flex: none;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.4px;
  color: var(--shell40a55-ember);
  padding: 8px 10px;
  border-radius: 9px;
  border: 1px solid rgba(255, 127, 80, 0.42);
  background: rgba(255, 127, 80, 0.09);
}

.shell40a55-offer-claim:hover {
  text-decoration: none;
  background: rgba(255, 127, 80, 0.18);
}

/* --------------------------------------------------------------------------
   14. module: winners board
   -------------------------------------------------------------------------- */
.shell40a55-winboard {
  border-radius: var(--shell40a55-radius-m);
  border: 1px solid var(--shell40a55-line-soft);
  overflow: hidden;
}

.shell40a55-win-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: var(--shell40a55-surface);
  border-bottom: 1px solid var(--shell40a55-line-soft);
  font-size: 12.5px;
}

.shell40a55-win-row:nth-child(even) {
  background: #2a201b;
}

.shell40a55-win-row:last-child {
  border-bottom: 0;
}

.shell40a55-win-who {
  flex: none;
  width: 58px;
  font-weight: 700;
  color: var(--shell40a55-ink-soft);
}

.shell40a55-win-game {
  flex: 1;
  min-width: 0;
  color: var(--shell40a55-ink-mute);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.shell40a55-win-amt {
  flex: none;
  font-family: var(--shell40a55-font-display);
  font-weight: 800;
  color: var(--shell40a55-amber);
}

.shell40a55-win-when {
  flex: none;
  font-size: 10.5px;
  color: var(--shell40a55-ink-mute);
}

/* --------------------------------------------------------------------------
   15. module: fact tiles
   -------------------------------------------------------------------------- */
.shell40a55-factgrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.shell40a55-fact {
  border-radius: var(--shell40a55-radius-s);
  padding: 11px 12px;
  background: rgba(255, 183, 77, 0.06);
  border: 1px solid rgba(255, 183, 77, 0.18);
}

.shell40a55-fact b {
  display: block;
  font-family: var(--shell40a55-font-display);
  font-size: 15px;
  color: var(--shell40a55-amber);
}

.shell40a55-fact span {
  font-size: 11.5px;
  color: var(--shell40a55-ink-mute);
}

/* --------------------------------------------------------------------------
   16. prose blocks used by long-form modules
   -------------------------------------------------------------------------- */
.shell40a55-prose {
  margin-top: 10px;
}

.shell40a55-prose p + p {
  margin-top: 10px;
}

.shell40a55-prose h3 {
  font-family: var(--shell40a55-font-display);
  font-size: 15px;
  font-weight: 800;
  color: var(--shell40a55-amber);
  margin: 16px 0 6px;
}

.shell40a55-hairline {
  border: 0;
  border-top: 1px solid var(--shell40a55-line-soft);
  margin: 22px 0 0;
}

/* --------------------------------------------------------------------------
   17. extended footer (promotions > brand > directory > disclaimer)
   -------------------------------------------------------------------------- */
.shell40a55-vault {
  margin-top: 30px;
  border-radius: var(--shell40a55-radius-l) var(--shell40a55-radius-l) var(--shell40a55-radius-m) var(--shell40a55-radius-m);
  background:
    radial-gradient(90% 60% at 50% 0%, rgba(176, 48, 96, 0.16), transparent 70%),
    linear-gradient(180deg, #2b211b, #1e1712);
  border: 1px solid var(--shell40a55-line-soft);
  padding: 16px 14px 14px;
}

.shell40a55-vault-label {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--shell40a55-ember);
  margin-bottom: 9px;
}

.shell40a55-vault-promos {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 16px;
}

.shell40a55-vault-promos .shell40a55-btn {
  flex: 1 1 44%;
  min-height: 40px;
  font-size: 12.5px;
}

.shell40a55-vault-brand {
  font-size: 12.5px;
  color: var(--shell40a55-ink-mute);
  padding-bottom: 14px;
  border-bottom: 1px solid var(--shell40a55-line-soft);
  margin-bottom: 12px;
}

.shell40a55-vault-dir {
  columns: 2;
  column-gap: 14px;
}

.shell40a55-vault-dir li {
  break-inside: avoid;
  margin-bottom: 3px;
}

.shell40a55-vault-dir a {
  display: block;
  padding: 7px 4px;
  font-size: 12px;
  font-weight: 600;
  color: var(--shell40a55-ink-soft);
  border-bottom: 1px dotted var(--shell40a55-line);
}

.shell40a55-vault-dir a:hover {
  color: var(--shell40a55-amber);
  text-decoration: none;
}

.shell40a55-vault-note {
  margin-top: 13px;
  padding-top: 12px;
  border-top: 1px solid var(--shell40a55-line-soft);
  font-size: 11px;
  line-height: 1.55;
  color: var(--shell40a55-ink-mute);
}

/* --------------------------------------------------------------------------
   18. universal footer strip
   -------------------------------------------------------------------------- */
.shell40a55-unifoot {
  text-align: center;
  padding: 16px 14px 6px;
  font-size: 11.5px;
  color: var(--shell40a55-ink-mute);
}

.shell40a55-unifoot b {
  color: var(--shell40a55-ink-soft);
}

/* --------------------------------------------------------------------------
   19. bottom navigation rail (full-width track, 5 roles)
   -------------------------------------------------------------------------- */
.shell40a55-rail {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  z-index: 95;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  height: calc(var(--shell40a55-rail-h) + env(safe-area-inset-bottom, 0px));
  padding: 6px 6px calc(6px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(180deg, rgba(26, 18, 14, 0.96), rgba(17, 12, 9, 0.99));
  border-top: 1px solid rgba(255, 183, 77, 0.16);
  backdrop-filter: blur(8px);
}

.shell40a55-rail-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: 48px;
  border-radius: var(--shell40a55-radius-m);
  color: var(--shell40a55-ink-mute);
  transition: color 0.16s ease, background 0.16s ease;
}

.shell40a55-rail-item:hover {
  color: var(--shell40a55-amber);
  text-decoration: none;
}

.shell40a55-rail-item svg {
  width: 21px;
  height: 21px;
  transition: transform 0.16s ease;
}

.shell40a55-rail-label {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.35px;
  opacity: 0.85;
  transition: opacity 0.16s ease;
}

.shell40a55-rail-item:hover .shell40a55-rail-label {
  opacity: 1;
}

/* active role sits on a carrying block */
.shell40a55-rail-item--on {
  color: var(--shell40a55-amber);
  background: linear-gradient(165deg, rgba(255, 127, 80, 0.2), rgba(176, 48, 96, 0.14));
  box-shadow: inset 0 0 0 1px rgba(255, 127, 80, 0.34);
}

.shell40a55-rail-item--on svg {
  transform: translateY(-1px);
}

.shell40a55-rail-item--on .shell40a55-rail-label {
  opacity: 1;
  color: var(--shell40a55-ink);
}

/* --------------------------------------------------------------------------
   20. restrained reveal feedback
   -------------------------------------------------------------------------- */
.shell40a55-reveal {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.shell40a55-reveal--in {
  opacity: 1;
  transform: none;
}

/* --------------------------------------------------------------------------
   21. responsive ladder
   -------------------------------------------------------------------------- */

/* wider phones: catalogue breathes to five columns */
@media (min-width: 375px) {
  .shell40a55-gamegrid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 9px;
  }

  .shell40a55-intro h1 {
    font-size: 26px;
  }

  .shell40a55-main {
    padding-left: 16px;
    padding-right: 16px;
  }
}

/* at the 430px canvas edge: lock spacing, keep density stable */
@media (min-width: 430px) {
  .shell40a55-canvas {
    box-shadow: 0 0 0 1px rgba(255, 183, 77, 0.08), 0 24px 70px rgba(0, 0, 0, 0.6);
  }

  .shell40a55-main {
    padding-left: 20px;
    padding-right: 20px;
  }

  .shell40a55-gamegrid {
    gap: 10px;
  }

  .shell40a55-hero-slide img {
    height: 200px;
  }
}

/* desktop keeps the phone canvas centred; rail and topbar stay in canvas */
@media (min-width: 768px) {
  .shell40a55-canvas {
    min-height: 100vh;
  }

  .shell40a55-hero-slide img {
    height: 205px;
  }
}

/* respect users who prefer stillness */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .shell40a55-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .shell40a55-drawer-panel {
    transition: none;
  }

  .shell40a55-gamecard,
  .shell40a55-btn,
  .shell40a55-rail-item svg {
    transition: none;
  }
}
