/* ==========================================================================
   ff222.homes - compact visuals stylesheet
   Class prefix  : surface37883-
   Mobile canvas : 320-430px, centered on wide screens
   Palette       : #FF8C00 / #D8BFD8 / #D3D3D3 / #98FB98 / #9370DB / #141414
   Direction     : mono accents + regular body / small-medium radii /
                   compact square game tiles / step-driven rhythm /
                   sliding focus indicators / solid primary + outlined CTA
   ========================================================================== */

:root {
  --surface37883-ink: #141414;       /* base dark surface */
  --surface37883-space: #0b0b0c;     /* page behind the phone canvas */
  --surface37883-raise: #1d1c1f;     /* lifted panel */
  --surface37883-raise2: #262329;    /* hovered panel */
  --surface37883-line: #332f38;      /* hairline border */
  --surface37883-text: #d3d3d3;      /* regular body text */
  --surface37883-soft: #a59fa9;      /* dimmed text */
  --surface37883-thistle: #d8bfd8;   /* heading tint */
  --surface37883-flame: #ff8c00;     /* primary accent / CTA */
  --surface37883-mint: #98fb98;      /* positive / focus */
  --surface37883-violet: #9370db;    /* secondary accent */
  --surface37883-font-body: "Noto Sans Bengali", "Hind Siliguri", "Kohinoor Bangla", "Bangla MN", system-ui, -apple-system, "Segoe UI", sans-serif;
  --surface37883-font-mono: "Cascadia Mono", "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --surface37883-r-s: 8px;
  --surface37883-r-m: 12px;
  --surface37883-tap: 44px;
  --surface37883-gutter: 12px;
  --surface37883-topbar-h: 58px;
  --surface37883-bottomnav-h: 74px;
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */
* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--surface37883-space);
  color: var(--surface37883-text);
  font-family: var(--surface37883-font-body);
  font-size: 15px;
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; }

button,
a {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

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

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

.surface37883-skip {
  position: fixed;
  top: -60px;
  left: 12px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--surface37883-flame);
  color: #141414;
  font-weight: 700;
  border-radius: var(--surface37883-r-s);
  text-decoration: none;
  transition: top 0.2s ease;
}

.surface37883-skip:focus { top: 8px; }

/* --------------------------------------------------------------------------
   Phone canvas (centered, capped at 430px on wide screens)
   -------------------------------------------------------------------------- */
.surface37883-canvas {
  position: relative;
  width: 100%;
  max-width: 430px;
  margin-inline: auto;
  background: var(--surface37883-ink);
  min-height: 100vh;
  overflow-x: clip;
  box-shadow: 0 0 0 1px var(--surface37883-line), 0 0 44px rgba(147, 112, 219, 0.12);
}

.surface37883-main {
  display: block;
  padding-top: calc(var(--surface37883-topbar-h) + 8px);
  /* keep content clear of the fixed bottom navigation */
  padding-bottom: calc(var(--surface37883-bottomnav-h) + env(safe-area-inset-bottom, 0px) + 18px);
}

section { scroll-margin-top: calc(var(--surface37883-topbar-h) + 10px); }

/* --------------------------------------------------------------------------
   Top action bar - minimal title + action strip
   -------------------------------------------------------------------------- */
.surface37883-topbar {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  z-index: 90;
  background: rgba(20, 20, 20, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--surface37883-line);
}

.surface37883-topbar-in {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: var(--surface37883-topbar-h);
  padding: 8px var(--surface37883-gutter);
}

.surface37883-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-right: auto;
  text-decoration: none;
  color: var(--surface37883-thistle);
  min-height: var(--surface37883-tap);
  padding: 2px 4px 2px 0;
}

.surface37883-brand img {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  border: 1px solid var(--surface37883-line);
  object-fit: cover;
  display: block;
  background: var(--surface37883-raise);
}

.surface37883-brandname {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0.04em;
  font-family: var(--surface37883-font-mono);
  color: var(--surface37883-thistle);
  line-height: 1.2;
}

.surface37883-topacts {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

/* CTA pair: solid primary + outlined secondary */
.surface37883-btn-register,
.surface37883-btn-login,
.surface37883-menubtn {
  font-family: var(--surface37883-font-body);
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1;
  border-radius: 9px;
  padding: 0 12px;
  min-height: var(--surface37883-tap);
  min-width: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.12s ease, background-color 0.15s ease, border-color 0.15s ease;
}

.surface37883-btn-register {
  background: var(--surface37883-flame);
  border: 1px solid var(--surface37883-flame);
  color: #141414;
}

.surface37883-btn-login {
  background: transparent;
  border: 1px solid var(--surface37883-violet);
  color: var(--surface37883-thistle);
}

.surface37883-btn-register:active,
.surface37883-btn-login:active,
.surface37883-menubtn:active {
  transform: scale(0.94); /* light press feedback */
}

.surface37883-menubtn {
  background: var(--surface37883-raise);
  border: 1px solid var(--surface37883-line);
  color: var(--surface37883-text);
  flex-direction: column;
  gap: 4px;
  padding: 0 10px;
}

.surface37883-menubtn span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 1px;
  background: var(--surface37883-text);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.surface37883-menubtn[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.surface37883-menubtn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.surface37883-menubtn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* --------------------------------------------------------------------------
   Compact route panel (drop-down menu)
   -------------------------------------------------------------------------- */
.surface37883-menupanel {
  position: fixed;
  top: var(--surface37883-topbar-h);
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  z-index: 85;
  background: var(--surface37883-raise);
  border-bottom: 1px solid var(--surface37883-line);
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.28s ease, opacity 0.2s ease;
}

.surface37883-menupanel.surface37883-open {
  max-height: 480px;
  opacity: 1;
}

.surface37883-menuinner {
  padding: 10px var(--surface37883-gutter) 16px;
}

.surface37883-menulabel {
  display: block;
  font-family: var(--surface37883-font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--surface37883-flame);
  margin: 10px 2px 6px;
}

.surface37883-menulinks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.surface37883-menulink {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  min-height: var(--surface37883-tap);
  padding: 8px 10px;
  background: var(--surface37883-ink);
  border: 1px solid var(--surface37883-line);
  border-radius: var(--surface37883-r-s);
  color: var(--surface37883-text);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  transition: transform 0.12s ease, border-color 0.15s ease;
}

.surface37883-menulink:active { transform: scale(0.97); }

.surface37883-menulink[aria-current="page"] {
  border-color: var(--surface37883-flame);
  box-shadow: inset 0 -2px 0 var(--surface37883-flame);
  color: #fff;
}

.surface37883-menuarrow {
  font-family: var(--surface37883-font-mono);
  color: var(--surface37883-violet);
  font-size: 12px;
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   Hero carousel (3 local banners, promo entries)
   -------------------------------------------------------------------------- */
.surface37883-hero {
  position: relative;
  margin: 4px var(--surface37883-gutter) 0;
}

.surface37883-herotrack {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  border-radius: var(--surface37883-r-m);
  border: 1px solid var(--surface37883-line);
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.surface37883-herotrack::-webkit-scrollbar { display: none; }

.surface37883-heroslide {
  position: relative;
  flex: 0 0 100%;
  scroll-snap-align: center;
  display: block;
  padding: 0;
  margin: 0;
  border: 0;
  background: #000;
  cursor: pointer;
  text-align: left;
  width: 100%;
}

.surface37883-heroslide img {
  display: block;
  width: 100%;
  aspect-ratio: 20 / 9;
  object-fit: cover;
}

.surface37883-herocap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 26px 14px 10px;
  background: linear-gradient(180deg, rgba(20, 20, 20, 0) 0%, rgba(20, 20, 20, 0.92) 78%);
  display: flex;
  flex-direction: column;
  gap: 2px;
  pointer-events: none;
}

.surface37883-herocap-title {
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.3;
}

.surface37883-herocap-sub {
  color: var(--surface37883-mint);
  font-family: var(--surface37883-font-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
}

/* dots + sliding focus indicator */
.surface37883-herodots {
  position: relative;
  display: flex;
  justify-content: center;
  gap: 9px;
  margin-top: 10px;
  padding: 2px 0 4px;
}

.surface37883-herodot {
  width: 26px;
  height: 7px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: var(--surface37883-line);
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.surface37883-herodot[aria-current="true"] {
  background: var(--surface37883-violet);
}

.surface37883-heroind {
  position: absolute;
  bottom: -4px;
  left: calc(50% - 43px);
  width: 26px;
  height: 3px;
  border-radius: 2px;
  background: var(--surface37883-flame);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --------------------------------------------------------------------------
   Page head (single H1 block)
   -------------------------------------------------------------------------- */
.surface37883-pagehead {
  padding: 18px var(--surface37883-gutter) 6px;
}

.surface37883-kicker {
  display: inline-block;
  font-family: var(--surface37883-font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--surface37883-ink);
  background: var(--surface37883-mint);
  border-radius: 5px;
  padding: 3px 8px;
  margin-bottom: 10px;
}

.surface37883-h1 {
  margin: 0 0 10px;
  color: #fff;
  font-size: 21px;
  line-height: 1.45;
  font-weight: 800;
}

.surface37883-lede {
  margin: 0 0 10px;
  color: var(--surface37883-text);
  font-size: 14.5px;
}

.surface37883-textlink {
  color: var(--surface37883-thistle);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--surface37883-violet);
  text-underline-offset: 3px;
}

/* --------------------------------------------------------------------------
   Game category sections - compact square tile directory
   -------------------------------------------------------------------------- */
.surface37883-catsec {
  padding: 20px var(--surface37883-gutter) 4px;
}

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

.surface37883-cattag {
  font-family: var(--surface37883-font-mono);
  font-size: 11px;
  font-weight: 700;
  color: #141414;
  background: var(--surface37883-soft);
  border-radius: 5px;
  padding: 2px 7px;
  flex-shrink: 0;
}

.surface37883-catname {
  margin: 0;
  font-size: 17px;
  line-height: 1.4;
  color: #fff;
  font-weight: 800;
  flex: 1 1 auto;
}

.surface37883-catcount {
  font-family: var(--surface37883-font-mono);
  font-size: 10.5px;
  color: var(--surface37883-soft);
  border: 1px solid var(--surface37883-line);
  border-radius: 999px;
  padding: 2px 8px;
  flex-shrink: 0;
  white-space: nowrap;
}

.surface37883-catlede {
  margin: 4px 0 12px;
  font-size: 13px;
  color: var(--surface37883-soft);
  line-height: 1.65;
}

/* per-category accent lines */
.surface37883-catsec--poker .surface37883-cattag { background: var(--surface37883-violet); color: #fff; }
.surface37883-catsec--live .surface37883-cattag { background: var(--surface37883-thistle); color: #141414; }
.surface37883-catsec--slot .surface37883-cattag { background: var(--surface37883-flame); color: #141414; }
.surface37883-catsec--fishing .surface37883-cattag { background: var(--surface37883-mint); color: #141414; }
.surface37883-catsec--hot .surface37883-cattag { background: linear-gradient(90deg, var(--surface37883-flame), var(--surface37883-violet)); color: #fff; }

.surface37883-catsec::after {
  content: "";
  display: block;
  height: 2px;
  margin: 14px calc(-1 * var(--surface37883-gutter)) 0;
  background: linear-gradient(90deg, var(--surface37883-line), transparent);
}

.surface37883-catsec--hot::after {
  background: linear-gradient(90deg, var(--surface37883-flame), var(--surface37883-violet), transparent);
}

.surface37883-gamegrid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 320px canvas keeps 4 columns */
  gap: 10px 8px;
}

.surface37883-gamebtn {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 0;
  background: var(--surface37883-raise);
  border: 1px solid var(--surface37883-line);
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  min-height: var(--surface37883-tap);
  transition: transform 0.12s ease, border-color 0.15s ease, background-color 0.15s ease;
}

.surface37883-gamebtn:active {
  transform: scale(0.95);
  background: var(--surface37883-raise2);
  border-color: var(--surface37883-flame);
}

.surface37883-gamethumb {
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #000;
  border-radius: 9px 9px 0 0;
}

.surface37883-gamethumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.surface37883-gametitle {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-align: center;
  font-size: 11px;
  line-height: 1.4;
  color: var(--surface37883-text);
  padding: 5px 4px 7px;
  min-height: 34px;
}

/* --------------------------------------------------------------------------
   Content modules
   -------------------------------------------------------------------------- */
.surface37883-sec {
  padding: 22px var(--surface37883-gutter) 6px;
}

.surface37883-seclabel {
  display: block;
  font-family: var(--surface37883-font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--surface37883-mint);
  margin-bottom: 6px;
}

.surface37883-h2 {
  margin: 0 0 10px;
  color: var(--surface37883-thistle);
  font-size: 18px;
  line-height: 1.5;
  font-weight: 800;
}

.surface37883-sec p {
  margin: 0 0 12px;
  font-size: 14.5px;
}

.surface37883-h3 {
  margin: 0 0 6px;
  font-size: 15px;
  color: #fff;
  font-weight: 700;
  line-height: 1.5;
}

/* step-by-step rhythm */
.surface37883-steps {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.surface37883-step {
  position: relative;
  display: flex;
  gap: 12px;
  padding: 0 0 18px 0;
}

.surface37883-step::before {
  content: "";
  position: absolute;
  left: 15px;
  top: 32px;
  bottom: 0;
  width: 2px;
  background: var(--surface37883-line);
}

.surface37883-step:last-child::before { display: none; }

.surface37883-stepnum {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  background: var(--surface37883-ink);
  border: 1px solid var(--surface37883-violet);
  color: var(--surface37883-thistle);
  font-family: var(--surface37883-font-mono);
  font-size: 12.5px;
  font-weight: 700;
}

.surface37883-stepbody { flex: 1 1 auto; min-width: 0; }

.surface37883-stepbody p {
  margin: 0;
  font-size: 13.5px;
  color: var(--surface37883-text);
}

/* goal-based selection guide */
.surface37883-guidegrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.surface37883-guidecard {
  background: var(--surface37883-raise);
  border: 1px solid var(--surface37883-line);
  border-radius: var(--surface37883-r-m);
  padding: 12px;
}

.surface37883-guidegoal {
  display: inline-block;
  font-family: var(--surface37883-font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--surface37883-flame);
  margin-bottom: 6px;
}

.surface37883-guidecard p {
  margin: 0;
  font-size: 12.5px;
  color: var(--surface37883-soft);
  line-height: 1.6;
}

/* testimonials */
.surface37883-quotelist {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.surface37883-quote {
  background: var(--surface37883-raise);
  border: 1px solid var(--surface37883-line);
  border-left: 3px solid var(--surface37883-violet);
  border-radius: var(--surface37883-r-s);
  padding: 12px 14px;
}

.surface37883-quotebody {
  margin: 0 0 8px;
  font-size: 13.5px;
  color: var(--surface37883-text);
  line-height: 1.7;
}

.surface37883-quotewho {
  font-family: var(--surface37883-font-mono);
  font-size: 11px;
  color: var(--surface37883-mint);
  letter-spacing: 0.06em;
}

/* tricks list */
.surface37883-tiplist {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.surface37883-tip {
  display: flex;
  gap: 10px;
  background: var(--surface37883-raise);
  border: 1px solid var(--surface37883-line);
  border-radius: var(--surface37883-r-s);
  padding: 11px 12px;
}

.surface37883-tipnum {
  flex-shrink: 0;
  font-family: var(--surface37883-font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--surface37883-flame);
  border: 1px dashed var(--surface37883-flame);
  border-radius: 6px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.surface37883-tip p { margin: 0; font-size: 13.5px; }

/* pros and limitations */
.surface37883-pcwrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin: 14px 0 0;
}

.surface37883-pc {
  border-radius: var(--surface37883-r-m);
  padding: 13px 14px;
  background: var(--surface37883-raise);
  border: 1px solid var(--surface37883-line);
}

.surface37883-pc--pro { border-top: 3px solid var(--surface37883-mint); }
.surface37883-pc--con { border-top: 3px solid var(--surface37883-flame); }

.surface37883-pctitle {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 800;
  color: #fff;
}

.surface37883-pclist {
  margin: 0;
  padding-left: 18px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--surface37883-text);
}

.surface37883-pclist li { margin-bottom: 4px; }

/* decision checklist */
.surface37883-checklist {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.surface37883-checkitem {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border: 1px dashed var(--surface37883-line);
  border-radius: var(--surface37883-r-s);
  padding: 10px 12px;
  background: rgba(29, 28, 31, 0.6);
  font-size: 13.5px;
}

.surface37883-checkicon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: var(--surface37883-mint);
  color: #141414;
  font-size: 13px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

/* --------------------------------------------------------------------------
   Homepage extended footer
   order: promo actions > brand > page directory > conditional note
   -------------------------------------------------------------------------- */
.surface37883-xfoot {
  margin: 26px var(--surface37883-gutter) 0;
  border: 1px solid var(--surface37883-line);
  border-radius: var(--surface37883-r-m);
  background: var(--surface37883-raise);
  overflow: hidden;
}

.surface37883-xfoot-sec {
  padding: 14px 14px 16px;
  border-bottom: 1px solid var(--surface37883-line);
}

.surface37883-xfoot-sec:last-child { border-bottom: 0; }

.surface37883-xfoot-label {
  display: block;
  font-family: var(--surface37883-font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--surface37883-flame);
  margin-bottom: 10px;
}

.surface37883-promorow {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.surface37883-promoact {
  min-height: var(--surface37883-tap);
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.12s ease, background-color 0.15s ease;
}

.surface37883-promoact:active { transform: scale(0.95); }

.surface37883-promoact--solid {
  background: var(--surface37883-flame);
  color: #141414;
  border: 1px solid var(--surface37883-flame);
}

.surface37883-promoact--line {
  background: transparent;
  color: var(--surface37883-thistle);
  border: 1px solid var(--surface37883-violet);
}

.surface37883-promoact--ghost {
  background: transparent;
  color: var(--surface37883-mint);
  border: 1px dashed var(--surface37883-line);
}

.surface37883-brandblurb {
  margin: 0;
  font-size: 13px;
  color: var(--surface37883-soft);
  line-height: 1.7;
}

.surface37883-dirgrid {
  display: grid;
  grid-template-columns: 1fr 1fr; /* two-column directory */
  gap: 8px 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.surface37883-dirlink {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  color: var(--surface37883-text);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  border-bottom: 1px dotted var(--surface37883-line);
}

.surface37883-dirlink span.surface37883-dirarrow {
  font-family: var(--surface37883-font-mono);
  color: var(--surface37883-violet);
  font-size: 11px;
}

.surface37883-dirnote {
  margin: 8px 0 0;
  font-size: 11.5px;
  line-height: 1.65;
  color: var(--surface37883-soft);
  border-left: 3px solid var(--surface37883-flame);
  padding-left: 10px;
}

/* --------------------------------------------------------------------------
   Common footer (copyright only) + fixed bottom navigation
   -------------------------------------------------------------------------- */
.surface37883-footer {
  padding: 18px var(--surface37883-gutter) 10px;
  text-align: center;
}

.surface37883-foottext {
  margin: 0;
  font-family: var(--surface37883-font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--surface37883-soft);
}

.surface37883-bottomnav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  z-index: 95;
  background: rgba(20, 20, 20, 0.98);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--surface37883-line);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

.surface37883-bnlist {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  list-style: none;
  margin: 0;
  padding: 6px 4px 4px;
}

.surface37883-bnlink {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: var(--surface37883-tap);
  padding: 6px 2px 8px;
  text-decoration: none;
  color: var(--surface37883-soft);
  background: none;
  border: 0;
  cursor: pointer;
  font-family: var(--surface37883-font-body);
  transition: transform 0.12s ease, color 0.15s ease;
}

.surface37883-bnlink:active { transform: scale(0.92); }

.surface37883-bnicon {
  width: 25px;
  height: 25px;
  display: block;
}

.surface37883-bnicon svg { width: 100%; height: 100%; display: block; }

.surface37883-bnlabel {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
}

/* active state: underline marker */
.surface37883-bnlink::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 26px;
  height: 3px;
  border-radius: 2px;
  background: var(--surface37883-flame);
  transition: transform 0.2s ease;
}

.surface37883-bnlink.surface37883-active { color: #fff; }
.surface37883-bnlink.surface37883-active::after { transform: translateX(-50%) scaleX(1); }

/* --------------------------------------------------------------------------
   Wide-phone refinements (375px and up: 5 game columns)
   -------------------------------------------------------------------------- */
@media (min-width: 375px) {
  .surface37883-gamegrid { grid-template-columns: repeat(5, 1fr); }
  .surface37883-guidecard p { font-size: 13px; }
}

/* --------------------------------------------------------------------------
   430px phone canvas edge - larger gutters and calmer rhythm
   -------------------------------------------------------------------------- */
@media (min-width: 430px) {
  :root {
    --surface37883-gutter: 16px;
    --surface37883-r-m: 14px;
  }

  .surface37883-h1 { font-size: 23px; }
  .surface37883-h2 { font-size: 19px; }
  .surface37883-herocap-title { font-size: 17px; }
  .surface37883-gamegrid { gap: 12px 10px; }
  .surface37883-gametitle { font-size: 11.5px; }
}

/* beyond the phone canvas: keep the centered 430px column readable */
@media (min-width: 431px) {
  body { font-size: 15.5px; }
}

/* --------------------------------------------------------------------------
   Reduced motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001s !important;
    transition-duration: 0.001s !important;
  }
}
