/* ==========================================================================
   dk222.homes — viewport adaptive stylesheet
   File   : css/viewport-adaptive-3ff580.css
   Prefix : surfaceff580- (all classes and custom properties)
   Canvas : mobile-first 320-430px, centered phone frame on wide screens
   Palette: #2C3E50 ink / #FFBF00 gold / #FFF8DC cream / #FFCCCB blush / #FF8C00 flame
   Voice  : poster headings over narrow body, small radii, light floating
            game cards, fact-strip-first modules, segmented action buttons
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */
:root {
  --surfaceff580-ink:        #2C3E50;
  --surfaceff580-ink-deep:   #1E2C3A;
  --surfaceff580-ink-panel:  #2A3B4E;
  --surfaceff580-ink-raise:  #33475D;
  --surfaceff580-gold:       #FFBF00;
  --surfaceff580-gold-soft:  rgba(255, 191, 0, 0.16);
  --surfaceff580-gold-line:  rgba(255, 191, 0, 0.28);
  --surfaceff580-cream:      #FFF8DC;
  --surfaceff580-cream-dim:  rgba(255, 248, 220, 0.72);
  --surfaceff580-cream-faint:rgba(255, 248, 220, 0.46);
  --surfaceff580-blush:      #FFCCCB;
  --surfaceff580-blush-soft: rgba(255, 204, 203, 0.14);
  --surfaceff580-flame:      #FF8C00;
  --surfaceff580-flame-deep: #E67E00;
  --surfaceff580-line:       rgba(255, 248, 220, 0.14);
  --surfaceff580-shadow:     0 10px 22px rgba(12, 20, 30, 0.42);
  --surfaceff580-shadow-lo:  0 4px 10px rgba(12, 20, 30, 0.30);
  --surfaceff580-r-xs:       3px;
  --surfaceff580-r-s:        5px;
  --surfaceff580-r-m:        8px;
  --surfaceff580-gap:        10px;
  --surfaceff580-gap-s:      7px;
  --surfaceff580-pad:        12px;
  --surfaceff580-head-h:     106px;
  --surfaceff580-dock-h:     60px;
  --surfaceff580-ff:         "Hind Siliguri", "Noto Sans Bengali", "SolaimanLipi",
                              "Kalpurush", -apple-system, "Segoe UI", Roboto,
                              Arial, sans-serif;
  --surfaceff580-touch:      44px;
}

/* --------------------------------------------------------------------------
   2. Reset and shell
   -------------------------------------------------------------------------- */
* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--surfaceff580-ff);
  font-size: 14px;
  line-height: 1.65;
  color: var(--surfaceff580-cream);
  background:
    radial-gradient(1200px 500px at 50% -160px, rgba(255, 140, 0, 0.10), transparent 60%),
    var(--surfaceff580-ink-deep);
  min-height: 100vh;
}

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

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

a { color: var(--surfaceff580-gold); }

[hidden] { display: none !important; }

/* Native disclosure rows keep long help content scannable on small screens. */
.surfaceff580-panel details {
  margin: 8px 0;
  padding: 9px 10px;
  background: rgba(255, 248, 220, 0.04);
  border: 1px solid var(--surfaceff580-line);
  border-radius: var(--surfaceff580-r-s);
}

.surfaceff580-panel summary {
  min-height: var(--surfaceff580-touch);
  display: flex;
  align-items: center;
  cursor: pointer;
  color: var(--surfaceff580-cream);
  font-size: 13px;
  font-weight: 800;
}

.surfaceff580-panel details p {
  margin: 8px 0 0;
}

:focus-visible {
  outline: 2px solid var(--surfaceff580-gold);
  outline-offset: 2px;
  border-radius: var(--surfaceff580-r-xs);
}

/* Centered phone canvas: full width on handsets, framed beyond 560px */
.surfaceff580-canvas {
  position: relative;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  background:
    radial-gradient(700px 300px at 85% -120px, rgba(255, 191, 0, 0.07), transparent 62%),
    linear-gradient(180deg, var(--surfaceff580-ink) 0%, #27374A 46%, var(--surfaceff580-ink-deep) 100%);
  box-shadow: var(--surfaceff580-shadow);
  overflow-x: hidden;
  /* keep content clear of the fixed dock rail */
  padding-bottom: calc(var(--surfaceff580-dock-h) + 26px + env(safe-area-inset-bottom));
}

.surfaceff580-main {
  padding: calc(var(--surfaceff580-head-h) + 14px) var(--surfaceff580-pad) 0;
}

/* --------------------------------------------------------------------------
   3. Top bar — centered identity strip + action strip
   -------------------------------------------------------------------------- */
.surfaceff580-topbar {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  z-index: 60;
  background: linear-gradient(180deg, rgba(30, 44, 58, 0.985), rgba(30, 44, 58, 0.94));
  border-bottom: 1px solid var(--surfaceff580-gold-line);
  backdrop-filter: blur(8px);
}

/* identity row: burger — brand — mirror spacer keeps the brand truly centered */
.surfaceff580-identity {
  display: grid;
  grid-template-columns: var(--surfaceff580-touch) 1fr var(--surfaceff580-touch);
  align-items: center;
  min-height: 56px;
  padding: 0 var(--surfaceff580-gap-s);
}

.surfaceff580-burger {
  width: var(--surfaceff580-touch);
  height: var(--surfaceff580-touch);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--surfaceff580-gold-soft);
  border: 1px solid var(--surfaceff580-gold-line);
  border-radius: var(--surfaceff580-r-s);
  color: var(--surfaceff580-gold);
  transition: background 180ms ease, transform 180ms ease;
}

.surfaceff580-burger:active { transform: scale(0.92); }

.surfaceff580-burger svg { width: 20px; height: 20px; }

.surfaceff580-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  color: var(--surfaceff580-cream);
  min-height: var(--surfaceff580-touch);
}

.surfaceff580-logo {
  width: 34px;
  height: 34px;
  object-fit: contain;
  border-radius: var(--surfaceff580-r-s);
  border: 1px solid var(--surfaceff580-gold-line);
  background: rgba(255, 248, 220, 0.06);
}

.surfaceff580-brandname {
  font-size: 21px;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1;
}

.surfaceff580-brandname::after {
  content: "";
  display: block;
  height: 3px;
  width: 74%;
  margin: 3px auto 0;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--surfaceff580-gold), var(--surfaceff580-flame));
}

.surfaceff580-identity-mirror { width: var(--surfaceff580-touch); }

/* action strip: segmented register/login pair */
.surfaceff580-actionstrip {
  display: flex;
  align-items: center;
  gap: var(--surfaceff580-gap-s);
  padding: 0 var(--surfaceff580-gap-s) 9px;
}

.surfaceff580-segcta {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  flex: 1 1 auto;
  border: 1px solid var(--surfaceff580-gold-line);
  border-radius: var(--surfaceff580-r-m);
  overflow: hidden;
  background: rgba(255, 248, 220, 0.04);
}

.surfaceff580-segbtn {
  min-height: 42px;
  border: 0;
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: transparent;
  color: var(--surfaceff580-cream);
  transition: background 180ms ease, color 180ms ease;
}

.surfaceff580-segbtn + .surfaceff580-segbtn {
  border-left: 1px solid var(--surfaceff580-gold-line);
}

.surfaceff580-segbtn--primary {
  background: linear-gradient(160deg, var(--surfaceff580-gold), var(--surfaceff580-flame));
  color: #25200A;
}

.surfaceff580-segbtn:active { filter: brightness(1.08); }

.surfaceff580-headgift {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--surfaceff580-r-m);
  background: var(--surfaceff580-blush-soft);
  border: 1px solid rgba(255, 204, 203, 0.32);
  color: var(--surfaceff580-blush);
}

.surfaceff580-headgift svg { width: 20px; height: 20px; }

/* --------------------------------------------------------------------------
   4. Route panel — compact dropdown navigation
   -------------------------------------------------------------------------- */
.surfaceff580-routepanel {
  position: absolute;
  top: 100%;
  left: var(--surfaceff580-gap-s);
  right: var(--surfaceff580-gap-s);
  z-index: 59;
  padding: 8px;
  background: #20303F;
  border: 1px solid var(--surfaceff580-gold-line);
  border-radius: var(--surfaceff580-r-m);
  box-shadow: var(--surfaceff580-shadow);
}

.surfaceff580-routepanel--open {
  animation: surfaceff580panelIn 200ms ease both;
}

@keyframes surfaceff580panelIn {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.surfaceff580-routegrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
}

.surfaceff580-routelink {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 6px 9px;
  text-decoration: none;
  color: var(--surfaceff580-cream);
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--surfaceff580-r-s);
  background: rgba(255, 248, 220, 0.03);
  border: 1px solid transparent;
  transition: background 160ms ease, border-color 160ms ease;
}

.surfaceff580-routelink:active { background: var(--surfaceff580-gold-soft); }

.surfaceff580-routelink svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  color: var(--surfaceff580-gold);
}

.surfaceff580-routelink--on {
  background: var(--surfaceff580-gold-soft);
  border-color: var(--surfaceff580-gold-line);
}

/* active route: underline marker */
.surfaceff580-routelink--on .surfaceff580-routeword {
  border-bottom: 2px solid var(--surfaceff580-gold);
  padding-bottom: 1px;
}

.surfaceff580-routenote {
  margin: 6px 4px 2px;
  font-size: 11.5px;
  color: var(--surfaceff580-cream-faint);
}

/* --------------------------------------------------------------------------
   5. Hero carousel
   -------------------------------------------------------------------------- */
.surfaceff580-hero {
  position: relative;
  margin: 0 calc(var(--surfaceff580-pad) * -1) 14px;
  background: var(--surfaceff580-ink-deep);
}

.surfaceff580-hero-track {
  position: relative;
  aspect-ratio: 10 / 7;
  overflow: hidden;
}

.surfaceff580-hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  padding: 0;
  border: 0;
  background: var(--surfaceff580-ink-deep);
  opacity: 0;
  transform: translateX(6%);
  transition: opacity 420ms ease, transform 420ms ease;
  pointer-events: none;
}

.surfaceff580-hero-slide--on {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

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

.surfaceff580-hero-cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 26px 14px 12px;
  text-align: left;
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--surfaceff580-cream);
  background: linear-gradient(180deg, transparent, rgba(20, 30, 42, 0.92) 58%);
}

.surfaceff580-hero-cap em {
  font-style: normal;
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #25200A;
  background: linear-gradient(140deg, var(--surfaceff580-gold), var(--surfaceff580-flame));
  border-radius: 999px;
  padding: 3px 9px;
}

.surfaceff580-hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--surfaceff580-gold-line);
  background: rgba(30, 44, 58, 0.72);
  color: var(--surfaceff580-gold);
}

.surfaceff580-hero-arrow svg { width: 16px; height: 16px; }

.surfaceff580-hero-arrow--prev { left: 8px; }
.surfaceff580-hero-arrow--next { right: 8px; }

.surfaceff580-hero-dots {
  position: absolute;
  z-index: 3;
  left: 0;
  right: 0;
  bottom: 8px;
  display: flex;
  justify-content: center;
  gap: 7px;
}

.surfaceff580-hero-dot {
  width: 22px;
  height: 6px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 248, 220, 0.32);
  transition: background 200ms ease, width 200ms ease;
}

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

/* --------------------------------------------------------------------------
   6. Hero lead, fact strip and category chips
   -------------------------------------------------------------------------- */

/* poster-style H1 */
.surfaceff580-h1 {
  margin: 0 0 10px;
  font-size: 21px;
  font-weight: 800;
  line-height: 1.38;
  letter-spacing: 0.01em;
  color: var(--surfaceff580-cream);
}

.surfaceff580-h1::after {
  content: "";
  display: block;
  width: 64px;
  height: 4px;
  margin-top: 7px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--surfaceff580-gold), var(--surfaceff580-flame));
}

.surfaceff580-lede {
  margin: 0 0 12px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--surfaceff580-cream-dim);
}

.surfaceff580-lede strong { color: var(--surfaceff580-cream); }

.surfaceff580-facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin: 0 0 14px;
}

.surfaceff580-fact {
  background: rgba(255, 248, 220, 0.05);
  border: 1px solid var(--surfaceff580-line);
  border-radius: var(--surfaceff580-r-s);
  padding: 8px 4px;
  text-align: center;
}

.surfaceff580-fact b {
  display: block;
  font-size: 15px;
  font-weight: 800;
  color: var(--surfaceff580-gold);
  line-height: 1.2;
}

.surfaceff580-fact span {
  display: block;
  font-size: 10.5px;
  color: var(--surfaceff580-cream-dim);
  margin-top: 2px;
}

.surfaceff580-chiprow {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 2px 0 10px;
  margin: 0 0 6px;
}

.surfaceff580-chiprow::-webkit-scrollbar { display: none; }

.surfaceff580-chip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 4px 13px;
  font-size: 12.5px;
  font-weight: 700;
  text-decoration: none;
  color: var(--surfaceff580-cream);
  background: rgba(255, 248, 220, 0.05);
  border: 1px solid var(--surfaceff580-line);
  border-radius: 999px;
  transition: border-color 160ms ease, color 160ms ease;
}

.surfaceff580-chip b {
  font-weight: 800;
  color: var(--surfaceff580-flame);
}

/* --------------------------------------------------------------------------
   7. Poster section headings
   -------------------------------------------------------------------------- */
.surfaceff580-sec { margin: 0 0 22px; }

.surfaceff580-cathead {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 4px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--surfaceff580-gold-line);
}

.surfaceff580-cathead h2 {
  margin: 0;
  font-size: 19px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: 0.01em;
}

.surfaceff580-cathead h2 small {
  display: block;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--surfaceff580-cream-dim);
  letter-spacing: 0.02em;
  margin-top: 3px;
}

.surfaceff580-catcount {
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 800;
  color: var(--surfaceff580-blush);
  background: var(--surfaceff580-blush-soft);
  border: 1px solid rgba(255, 204, 203, 0.3);
  border-radius: 999px;
  padding: 3px 10px;
  white-space: nowrap;
}

.surfaceff580-catlede {
  margin: 8px 0 12px;
  font-size: 13px;
  color: var(--surfaceff580-cream-dim);
}

.surfaceff580-catlede a { font-weight: 700; }

/* --------------------------------------------------------------------------
   8. Game grid — light floating image cards
   -------------------------------------------------------------------------- */
.surfaceff580-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.surfaceff580-gtile {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 0 0 6px;
  background: linear-gradient(165deg, rgba(255, 248, 220, 0.10), rgba(255, 248, 220, 0.03));
  border: 1px solid var(--surfaceff580-gold-line);
  border-radius: var(--surfaceff580-r-m);
  box-shadow: var(--surfaceff580-shadow-lo);
  transition: transform 170ms ease, border-color 170ms ease, box-shadow 170ms ease;
}

.surfaceff580-gtile:active {
  transform: translateY(2px) scale(0.97);
  border-color: var(--surfaceff580-gold);
}

.surfaceff580-gtile figure { margin: 0; }

.surfaceff580-gtile img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--surfaceff580-r-m) var(--surfaceff580-r-m) 0 0;
  background: #223140;
}

.surfaceff580-gtile-name {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  min-height: 30px;
  padding: 4px 5px 0;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
  color: var(--surfaceff580-cream);
  overflow-wrap: break-word;
  word-break: break-word;
}

.surfaceff580-morelinks {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  margin-top: 12px;
  font-size: 12px;
  color: var(--surfaceff580-cream-faint);
}

.surfaceff580-morelinks a {
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px dashed var(--surfaceff580-gold-line);
  padding-bottom: 1px;
}

/* --------------------------------------------------------------------------
   9. Content modules — fact summary first, then expand
   -------------------------------------------------------------------------- */
.surfaceff580-panel {
  background: rgba(255, 248, 220, 0.045);
  border: 1px solid var(--surfaceff580-line);
  border-radius: var(--surfaceff580-r-m);
  padding: 14px var(--surfaceff580-pad) 16px;
  margin: 0 0 16px;
}

.surfaceff580-panel h2 {
  margin: 0 0 4px;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.35;
}

.surfaceff580-panel h2::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 15px;
  margin-right: 8px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--surfaceff580-gold), var(--surfaceff580-flame));
}

.surfaceff580-brief {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  margin: 10px 0 12px;
  padding: 9px 11px;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--surfaceff580-cream);
  background: var(--surfaceff580-gold-soft);
  border-left: 3px solid var(--surfaceff580-gold);
  border-radius: var(--surfaceff580-r-s);
}

.surfaceff580-brief svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  margin-top: 2px;
  color: var(--surfaceff580-gold);
}

.surfaceff580-panel p {
  margin: 0 0 10px;
  font-size: 13px;
  color: var(--surfaceff580-cream-dim);
}

.surfaceff580-panel p strong { color: var(--surfaceff580-cream); }

.surfaceff580-panel a { font-weight: 700; text-decoration: none; border-bottom: 1px dashed var(--surfaceff580-gold-line); }

/* numbered step rail */
.surfaceff580-steps {
  list-style: none;
  margin: 12px 0;
  padding: 0;
  counter-reset: surfaceff580step;
}

.surfaceff580-steps li {
  counter-increment: surfaceff580step;
  position: relative;
  padding: 0 0 14px 38px;
  font-size: 13px;
  color: var(--surfaceff580-cream-dim);
}

.surfaceff580-steps li::before {
  content: counter(surfaceff580step);
  position: absolute;
  left: 0;
  top: 0;
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  color: #25200A;
  background: linear-gradient(150deg, var(--surfaceff580-gold), var(--surfaceff580-flame));
  border-radius: 50%;
}

.surfaceff580-steps li::after {
  content: "";
  position: absolute;
  left: 12.5px;
  top: 28px;
  bottom: 2px;
  width: 1px;
  background: var(--surfaceff580-gold-line);
}

.surfaceff580-steps li:last-child::after { display: none; }

.surfaceff580-steps li b { color: var(--surfaceff580-cream); }

/* milestone badge cards */
.surfaceff580-miles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 12px 0 4px;
}

.surfaceff580-mile {
  background: rgba(255, 248, 220, 0.05);
  border: 1px solid var(--surfaceff580-line);
  border-radius: var(--surfaceff580-r-s);
  padding: 10px 9px;
}

.surfaceff580-mile svg {
  width: 19px;
  height: 19px;
  color: var(--surfaceff580-flame);
  margin-bottom: 4px;
}

.surfaceff580-mile b {
  display: block;
  font-size: 12.5px;
  font-weight: 800;
  line-height: 1.35;
}

.surfaceff580-mile span {
  display: block;
  font-size: 11px;
  line-height: 1.5;
  color: var(--surfaceff580-cream-faint);
  margin-top: 3px;
}

/* comparison table */
.surfaceff580-cmp {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0 6px;
  font-size: 12px;
}

.surfaceff580-cmp caption {
  caption-side: top;
  text-align: left;
  font-size: 11.5px;
  color: var(--surfaceff580-cream-faint);
  padding-bottom: 6px;
}

.surfaceff580-cmp th,
.surfaceff580-cmp td {
  padding: 8px 7px;
  text-align: left;
  border: 1px solid var(--surfaceff580-line);
  vertical-align: top;
  line-height: 1.5;
}

.surfaceff580-cmp thead th {
  background: var(--surfaceff580-gold-soft);
  color: var(--surfaceff580-gold);
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.surfaceff580-cmp tbody th {
  font-weight: 700;
  color: var(--surfaceff580-cream);
  background: rgba(255, 248, 220, 0.03);
  white-space: nowrap;
}

.surfaceff580-cmp td { color: var(--surfaceff580-cream-dim); }

/* relation map */
.surfaceff580-rels {
  list-style: none;
  margin: 12px 0 6px;
  padding: 0;
}

.surfaceff580-rels li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 7px;
  padding: 8px 2px;
  border-bottom: 1px dashed var(--surfaceff580-line);
  font-size: 12.5px;
  color: var(--surfaceff580-cream-dim);
}

.surfaceff580-rels li:last-child { border-bottom: 0; }

.surfaceff580-rels b { color: var(--surfaceff580-cream); }

.surfaceff580-rels i {
  font-style: normal;
  font-weight: 800;
  color: var(--surfaceff580-flame);
}

/* inline text action inside modules */
.surfaceff580-inlinecta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 4px 14px;
  margin: 4px 0 6px;
  border: 1px solid var(--surfaceff580-gold-line);
  border-radius: 999px;
  background: var(--surfaceff580-gold-soft);
  color: var(--surfaceff580-gold);
  font-size: 12.5px;
  font-weight: 800;
  text-decoration: none;
  transition: background 170ms ease, transform 170ms ease;
}

.surfaceff580-inlinecta:active { transform: scale(0.96); }

/* --------------------------------------------------------------------------
   10. Extended footer — brand, promotion list, directory, disclaimer
   -------------------------------------------------------------------------- */
.surfaceff580-extfoot {
  margin: 26px calc(var(--surfaceff580-pad) * -1) 0;
  padding: 18px var(--surfaceff580-pad) 8px;
  background: linear-gradient(180deg, rgba(30, 44, 58, 0.6), rgba(24, 36, 48, 0.96));
  border-top: 1px solid var(--surfaceff580-gold-line);
}

.surfaceff580-extbrand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.surfaceff580-extbrand img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: var(--surfaceff580-r-s);
  border: 1px solid var(--surfaceff580-gold-line);
  background: rgba(255, 248, 220, 0.06);
}

.surfaceff580-extbrand h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.3;
}

.surfaceff580-extbrand p {
  margin: 2px 0 0;
  font-size: 11.5px;
  color: var(--surfaceff580-cream-faint);
}

.surfaceff580-extlede {
  margin: 0 0 14px;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--surfaceff580-cream-dim);
}

.surfaceff580-exttitle {
  margin: 16px 0 8px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: var(--surfaceff580-blush);
  text-transform: uppercase;
}

.surfaceff580-exttitle::after {
  content: "";
  display: block;
  width: 34px;
  height: 2px;
  margin-top: 4px;
  border-radius: 2px;
  background: var(--surfaceff580-blush);
  opacity: 0.6;
}

/* promotion list — seven distinct actions */
.surfaceff580-plugs { list-style: none; margin: 0; padding: 0; }

.surfaceff580-plug {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px dashed var(--surfaceff580-line);
}

.surfaceff580-plug:last-child { border-bottom: 0; }

.surfaceff580-plug-ico {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--surfaceff580-r-s);
  background: var(--surfaceff580-gold-soft);
  border: 1px solid var(--surfaceff580-gold-line);
  color: var(--surfaceff580-gold);
}

.surfaceff580-plug-ico svg { width: 19px; height: 19px; }

.surfaceff580-plug b {
  display: block;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
}

.surfaceff580-plug span {
  display: block;
  font-size: 11px;
  color: var(--surfaceff580-cream-faint);
  line-height: 1.45;
  margin-top: 1px;
}

.surfaceff580-plugbtn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 38px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 800;
  color: #25200A;
  background: linear-gradient(150deg, var(--surfaceff580-gold), var(--surfaceff580-flame));
  border: 0;
  border-radius: 999px;
  box-shadow: var(--surfaceff580-shadow-lo);
  transition: transform 170ms ease, filter 170ms ease;
}

.surfaceff580-plugbtn:active { transform: scale(0.95); filter: brightness(1.08); }

.surfaceff580-plugbtn svg { width: 13px; height: 13px; }

/* page directory */
.surfaceff580-dirgroups {
  display: grid;
  gap: 10px;
}

.surfaceff580-dirgroup {
  background: rgba(255, 248, 220, 0.04);
  border: 1px solid var(--surfaceff580-line);
  border-radius: var(--surfaceff580-r-s);
  padding: 9px 11px 4px;
}

.surfaceff580-dirgroup h3 {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 800;
  color: var(--surfaceff580-gold);
}

.surfaceff580-dirgroup ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.surfaceff580-dirgroup li { border-bottom: 1px dashed var(--surfaceff580-line); }

.surfaceff580-dirgroup li:last-child { border-bottom: 0; }

.surfaceff580-dirlink {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 42px;
  text-decoration: none;
  color: var(--surfaceff580-cream);
  font-size: 12.5px;
  font-weight: 600;
}

.surfaceff580-dirlink svg {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  color: var(--surfaceff580-flame);
}

/* responsible-entertainment note */
.surfaceff580-notice {
  margin-top: 14px;
  padding: 11px 12px;
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--surfaceff580-blush);
  background: var(--surfaceff580-blush-soft);
  border: 1px solid rgba(255, 204, 203, 0.3);
  border-radius: var(--surfaceff580-r-s);
}

.surfaceff580-notice b { color: #FFE4E3; }

/* --------------------------------------------------------------------------
   11. Common footer
   -------------------------------------------------------------------------- */
.surfaceff580-commonfoot {
  margin: 14px var(--surfaceff580-pad) 0;
  padding: 12px 0 4px;
  border-top: 1px solid var(--surfaceff580-line);
  text-align: center;
  font-size: 11.5px;
  color: var(--surfaceff580-cream-faint);
}

.surfaceff580-commonfoot b { color: var(--surfaceff580-cream-dim); }

/* --------------------------------------------------------------------------
   12. Dock — full-width mobile bottom rail
   -------------------------------------------------------------------------- */
.surfaceff580-dock {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  z-index: 70;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: end;
  min-height: calc(var(--surfaceff580-dock-h) + env(safe-area-inset-bottom));
  padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgba(28, 41, 54, 0.97), rgba(20, 30, 41, 0.99));
  border-top: 1px solid var(--surfaceff580-gold-line);
  backdrop-filter: blur(8px);
}

.surfaceff580-dock-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 2px;
  min-height: 48px;
  padding: 4px 2px 2px;
  text-decoration: none;
  border: 0;
  background: transparent;
  color: var(--surfaceff580-cream-dim);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.surfaceff580-dock-item svg {
  width: 21px;
  height: 21px;
  color: var(--surfaceff580-cream-dim);
  transition: transform 180ms ease, color 180ms ease;
}

/* icon state morph on press */
.surfaceff580-dock-item:active svg {
  transform: scale(1.16) rotate(-7deg);
  color: var(--surfaceff580-gold);
}

/* current page: underline marker */
.surfaceff580-dock-item--on { color: var(--surfaceff580-gold); }
.surfaceff580-dock-item--on svg { color: var(--surfaceff580-gold); }

.surfaceff580-dock-item--on::after {
  content: "";
  width: 20px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--surfaceff580-gold), var(--surfaceff580-flame));
  margin-top: 3px;
}

/* raised center action */
.surfaceff580-dock-item--hot svg {
  width: 26px;
  height: 26px;
  padding: 4px;
  border-radius: 50%;
  color: #25200A;
  background: linear-gradient(150deg, var(--surfaceff580-gold), var(--surfaceff580-flame));
  box-shadow: 0 6px 14px rgba(255, 140, 0, 0.35);
  margin-top: -14px;
}

.surfaceff580-dock-item--hot { color: var(--surfaceff580-gold); }

/* --------------------------------------------------------------------------
   13. Accessibility and motion
   -------------------------------------------------------------------------- */
.surfaceff580-skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--surfaceff580-gold);
  color: #25200A;
  font-weight: 800;
  padding: 9px 14px;
  border-radius: var(--surfaceff580-r-s);
}

.surfaceff580-skip:focus { left: 10px; top: 10px; }

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

/* --------------------------------------------------------------------------
   14. Breakpoints — 375 comfort, 430 density, 560 desktop frame
   -------------------------------------------------------------------------- */

/* comfort bump for 375px+ handsets */
@media (min-width: 375px) {
  .surfaceff580-cathead h2 { font-size: 20px; }
  .surfaceff580-panel h2   { font-size: 19px; }
  .surfaceff580-hero-cap   { font-size: 14px; }
  .surfaceff580-gtile-name { font-size: 11.5px; }
}

/* 430px and up: five game columns, roomier hero caption */
@media (min-width: 430px) {
  .surfaceff580-grid { grid-template-columns: repeat(5, 1fr); }
  .surfaceff580-hero-track { aspect-ratio: 5 / 3; }
  .surfaceff580-hero-cap { font-size: 14.5px; padding-bottom: 16px; }
  .surfaceff580-miles { gap: 10px; }
  .surfaceff580-dirgroups { grid-template-columns: 1fr 1fr; }
  .surfaceff580-main { padding-left: 14px; padding-right: 14px; }
  .surfaceff580-extfoot {
    padding-left: 14px;
    padding-right: 14px;
    margin-left: -14px;
    margin-right: -14px;
  }
}

/* wide screens: keep the centered phone canvas visible as a framed device */
@media (min-width: 560px) {
  body { background: #16212C; }
  .surfaceff580-canvas {
    border-left: 1px solid rgba(255, 191, 0, 0.12);
    border-right: 1px solid rgba(255, 191, 0, 0.12);
  }
}
