/* ==========================================================================
   Gold365 · site.css
   Follows the client reference (gold365.game): pure black chrome, an electric
   violet nav strip with a yellow active tab, a light board body, and the blue /
   pink back-lay cell pair as the one recurring ornament.
   D1: .container is the only width cap on the page. Nothing inside a section
   carries its own max-width.
   ========================================================================== */

:root {
  --brand: #8000FF;
  --brand-dark: #5200A8;
  --brand-light: #A557FF;
  --accent: #FFE600;
  --accent-warm: #F5B301;
  --accent-soft: #FFF8C2;
  --back: #72BBEF;
  --lay: #FAA9BA;

  --bg: #EEEEF2;
  --bg-card: #FFFFFF;
  --bg-elevated: #FFFFFF;
  --bg-panel: #0A0A0E;

  --text: #121216;
  --text-muted: #45454F;
  --text-dim: #6A6A76;
  --text-on-dark: #FFFFFF;

  --border: #D4D4DC;
  --border-strong: #121216;
  --border-soft: #E4E4EA;

  --font-body: 'Sofia Sans', 'Hind', system-ui, sans-serif;
  --font-heading: 'Sofia Sans Condensed', 'Khand', 'Sofia Sans', system-ui, sans-serif;

  /* The reference is a square-cornered board, so the radius scale is tight. */
  --r-sm: 4px;
  --r-md: 6px;
  --r-lg: 8px;
  --r-xl: 10px;
  --r-pill: 999px;
  --card-radius: 6px;

  --shadow-soft: 0 1px 2px rgba(18, 10, 40, .06), 0 6px 18px rgba(18, 10, 40, .06);
  --shadow-card: 0 1px 2px rgba(18, 10, 40, .08), 0 10px 26px rgba(40, 0, 90, .08);
  --shadow-card-hover: 0 2px 4px rgba(18, 10, 40, .10), 0 18px 38px rgba(64, 0, 140, .16);
  --shadow-cta: 0 6px 18px rgba(255, 214, 0, .28);

  --container: 1200px;
  --container-wide: 1320px;

  --header-top-h: 2.5rem;   /* violet nav strip */
  --header-main-h: 4.5rem;  /* black brand row */
  --header-h: calc(var(--header-top-h) + var(--header-main-h));

  --ease: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { background: #000; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 1rem); }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.65; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-dark); text-underline-offset: .18em; }
a:hover { color: var(--brand); }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 800; line-height: 1.1; margin: 0; letter-spacing: .005em; }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
::selection { background: var(--brand); color: #fff; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 1.5rem; }

.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 200; background: var(--accent); color: #000; padding: .6rem 1rem; font-weight: 700; border-radius: var(--r-sm); }
.skip-link:focus { top: .6rem; }

/* ---- Ornament: the back/lay cell pair ---------------------------------- */
.bl-pair { display: inline-flex; gap: 2px; flex: none; }
.bl-pair i { display: block; width: 1.05rem; height: .7rem; background: var(--back); }
.bl-pair i + i { background: var(--lay); }
.bl-rule { display: block; height: 4px; margin-top: .75rem; background: linear-gradient(90deg, var(--brand) 0, var(--brand) calc(100% - 5rem), var(--back) calc(100% - 5rem), var(--back) calc(100% - 2.5rem), var(--lay) calc(100% - 2.5rem)); }

/* ---- Buttons ------------------------------------------------------------ */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; font-family: var(--font-heading); font-weight: 800; font-size: 1.05rem; letter-spacing: .04em; text-transform: uppercase; text-decoration: none; white-space: nowrap; padding: .72rem 1.35rem; border-radius: var(--r-sm); border: 2px solid transparent; cursor: pointer; transition: transform .25s var(--ease), background-color .2s, color .2s, box-shadow .25s; }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--accent); color: #000; box-shadow: var(--shadow-cta); }
.btn--primary:hover { background: #fff; color: #000; }
.btn--brand { background: var(--brand); color: #fff; }
.btn--brand:hover { background: var(--brand-dark); color: #fff; }
.btn--light { background: #fff; color: #000; }
.btn--light:hover { background: var(--accent); color: #000; }
.btn--ghost { background: rgba(0, 0, 0, .35); color: #fff; border-color: rgba(255, 255, 255, .7); }
.btn--ghost:hover { background: #fff; color: #000; border-color: #fff; }
.btn--ink { background: #000; color: #fff; }
.btn--ink:hover { background: var(--brand); color: #fff; }

/* ---- Header: black brand row over a violet nav strip -------------------- */
.site-header { position: sticky; top: 0; z-index: 100; background: #000; transition: box-shadow .3s; }
.site-header.is-scrolled { box-shadow: 0 8px 24px rgba(0, 0, 0, .35); }
.header-main { background: #000; }
.header-main-inner { height: var(--header-main-h); display: flex; align-items: center; gap: 1.5rem; }
.logo { display: inline-flex; align-items: center; flex: none; }
.logo img { height: 44px; width: auto; object-fit: contain; }
.header-trust { margin: 0 auto 0 .5rem; display: flex; align-items: center; gap: .55rem; color: #B9B9C4; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.pulse-dot { width: .5rem; height: .5rem; border-radius: 50%; background: var(--accent-warm); box-shadow: 0 0 0 0 rgba(245, 179, 1, .7); animation: pulse 2.4s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 .55rem rgba(245, 179, 1, 0); } 100% { box-shadow: 0 0 0 0 rgba(245, 179, 1, 0); } }
.utility-nav { display: flex; align-items: center; gap: 1.25rem; }
.utility-nav a { color: #fff; text-decoration: none; font-family: var(--font-heading); font-weight: 700; font-size: 1rem; letter-spacing: .03em; }
.utility-nav a:hover, .utility-nav a.active { color: var(--accent); }
.header-cta { padding: .5rem 1.1rem; font-size: 1rem; flex: none; }

.header-nav { background: var(--brand); }
.primary-nav { position: relative; }
.primary-nav ul { list-style: none; display: flex; align-items: stretch; margin: 0 -.9rem; }
.primary-nav ul a { position: relative; z-index: 1; display: block; padding: 0 .9rem; line-height: var(--header-top-h); color: #fff; text-decoration: none; font-family: var(--font-heading); font-weight: 800; font-size: 1rem; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; transition: color .2s; }
.primary-nav ul a.active { color: var(--accent); }
.primary-nav ul a.is-lit { color: #000; }
.nav-indicator { position: absolute; left: -.9rem; top: 0; height: 100%; width: 0; background: var(--accent); opacity: 0; pointer-events: none; transition: transform .35s var(--ease), width .35s var(--ease), opacity .2s; }
.nav-extra { display: none; }

.burger { display: none; width: 2.75rem; height: 2.75rem; margin-left: auto; background: none; border: 2px solid rgba(255, 255, 255, .5); border-radius: var(--r-sm); padding: 0; cursor: pointer; position: relative; flex: none; }
.burger span { position: absolute; left: .6rem; right: .6rem; height: 2px; background: #fff; transition: transform .3s var(--ease), opacity .2s; }
.burger span:nth-child(1) { top: .85rem; }
.burger span:nth-child(2) { top: 1.25rem; }
.burger span:nth-child(3) { top: 1.65rem; }
.nav-open .burger span:nth-child(1) { transform: translateY(.4rem) rotate(45deg); }
.nav-open .burger span:nth-child(2) { opacity: 0; }
.nav-open .burger span:nth-child(3) { transform: translateY(-.4rem) rotate(-45deg); }

/* ---- Hero: exchange console (art-backed headline pane + market board) ---- */
.hero { background: radial-gradient(60rem 26rem at 12% -10%, rgba(128, 0, 255, .38), transparent 70%), radial-gradient(40rem 22rem at 100% 110%, rgba(128, 0, 255, .22), transparent 70%), #050507; padding: 1.75rem 0 5.25rem; color: #fff; }
.console { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); border: 1px solid #2A2A33; border-radius: var(--r-xl); overflow: hidden; background: #000; }
.console-stage { position: relative; min-height: 30rem; display: flex; align-items: flex-end; isolation: isolate; }
.console-art { position: absolute; top: 0; right: 0; bottom: 0; left: auto; width: 66%; height: 100%; object-fit: cover; object-position: 58% 50%; z-index: -2; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 42%); mask-image: linear-gradient(90deg, transparent 0, #000 42%); }
.console-stage::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(5, 5, 7, .88) 0%, rgba(5, 5, 7, .62) 55%, rgba(5, 5, 7, .18) 100%), linear-gradient(0deg, rgba(5, 5, 7, .8) 0%, rgba(5, 5, 7, 0) 50%); }
.console-copy { padding: 2.25rem; width: 100%; }
.hero h1 { font-size: clamp(2.15rem, 4.3vw, 3.6rem); font-weight: 900; line-height: 1.1; text-transform: uppercase; }
.highlight { font-style: italic; color: var(--accent); padding: 0 .14em .08em .04em; background: linear-gradient(transparent 64%, rgba(128, 0, 255, .7) 64%); }
.hero-sub { margin: 1rem 0 0; font-size: 1.05rem; line-height: 1.6; color: #E4E4EC; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }

.console-board { background: #F4F4F7; color: var(--text); display: flex; flex-direction: column; border-left: 1px solid #2A2A33; }
.board-head { display: grid; grid-template-columns: minmax(0, 1fr) 4.75rem 4.75rem; gap: 2px; align-items: center; background: #000; color: #fff; font-family: var(--font-heading); font-weight: 800; font-size: .95rem; letter-spacing: .06em; text-transform: uppercase; padding: .55rem 0 .55rem 1rem; }
.board-head span + span { text-align: center; color: #B9B9C4; font-size: .8rem; }
.board-rows { list-style: none; flex: 1; display: grid; grid-auto-rows: minmax(3.2rem, 1fr); }
.board-rows li { display: grid; grid-template-columns: minmax(0, 1fr) 4.75rem 4.75rem; gap: 2px; align-items: stretch; border-bottom: 1px solid var(--border); }
.board-rows li:last-child { border-bottom: 0; }
.board-name { display: flex; align-items: center; padding: 0 1rem; color: var(--text); text-decoration: none; font-family: var(--font-heading); font-weight: 800; font-size: 1.15rem; letter-spacing: .03em; text-transform: uppercase; transition: background-color .2s, color .2s; }
.board-name:hover { background: var(--brand); color: #fff; }
.cell { display: flex; align-items: center; justify-content: center; color: #000; text-decoration: none; font-family: var(--font-heading); font-weight: 800; font-size: 1rem; letter-spacing: .04em; text-transform: uppercase; transition: background-color .2s; }
.cell--back { background: var(--back); }
.cell--lay { background: var(--lay); }
.cell:hover { background: var(--accent); color: #000; }

/* ---- Stat strip: normal flow, pulled up over the hero ------------------- */
.stat-strip { position: relative; z-index: 2; margin-top: -3.25rem; }
.stat-strip-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: var(--bg-card); border-radius: var(--card-radius); box-shadow: var(--shadow-card); border-top: 5px solid var(--brand); overflow: hidden; }
.stat { padding: 1.1rem 1.4rem 1.2rem; border-left: 1px solid var(--border-soft); display: flex; flex-direction: column; gap: .15rem; }
.stat:first-child { border-left: 0; }
.stat-num { font-family: var(--font-heading); font-weight: 900; font-size: 2.6rem; line-height: 1; color: var(--brand); }
.stat-label { font-size: .86rem; color: var(--text-muted); line-height: 1.35; }

/* ---- Sections ----------------------------------------------------------- */
.sec { padding: 3.25rem 0; }
.sec + .sec { padding-top: .5rem; }
.sec--intro { padding-bottom: 1.5rem; }
.sec-head { margin-bottom: 1.6rem; }
.sec-head h2 { font-size: clamp(1.75rem, 3.1vw, 2.55rem); }
.sec-head p { margin: 1rem 0 0; color: var(--text-muted); }
.sec-head--dark p { color: #D2D2DC; }

.intro-block { background: var(--bg-card); border-left: 6px solid var(--brand); border-radius: var(--card-radius); padding: 1.5rem 1.75rem; font-size: 1.14rem; box-shadow: var(--shadow-soft); }

/* Tiles */
.floor-grid { display: grid; gap: 1.25rem; }
.floor-grid--cols-1 { grid-template-columns: minmax(0, 1fr); }
.floor-grid--cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.floor-grid--cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.floor-grid--cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.floor-grid--rich { grid-template-columns: minmax(0, 1fr); }

.tile, .plain-card { position: relative; overflow: hidden; background: var(--bg-card); border-radius: var(--card-radius); padding: 1.9rem 1.6rem 1.7rem; box-shadow: var(--shadow-card); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.tile::before, .plain-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: linear-gradient(90deg, var(--back) 50%, var(--lay) 50%); transition: background .3s; }
.tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-card-hover); }
.tile:hover::before { background: linear-gradient(90deg, var(--brand) 50%, var(--accent) 50%); }
.tile > *, .plain-card > * { position: relative; z-index: 1; }
.tile h3 { font-size: 1.42rem; margin-bottom: .7rem; }
.tile p { color: var(--text-muted); }
.tile-mark { position: absolute !important; z-index: 0 !important; right: .7rem; bottom: -.9rem; font-family: var(--font-heading); font-style: italic; font-weight: 900; font-size: 5rem; line-height: 1; color: rgba(128, 0, 255, .06); pointer-events: none; transition: color .35s; }
.tile:hover .tile-mark, .plain-card:hover .tile-mark, .rewards-cell--lead:hover .tile-mark { color: rgba(128, 0, 255, .16); }

.floor-grid--rich .tile { padding: 2.4rem; }
.floor-grid--rich .tile h3 { font-size: 1.7rem; }
.tile-kicker { margin: 1.4rem 0 .9rem; padding-top: .8rem; border-top: 2px solid var(--brand); font-size: .9rem; letter-spacing: .18em; text-transform: uppercase; color: var(--brand-dark); }
.sub-cards { list-style: none; display: grid; gap: .6rem; margin: 1rem 0; }
.sub-cards li { position: relative; background: var(--bg); border: 1px solid var(--border-soft); border-radius: var(--r-md); padding: 1rem 1.15rem 1rem 1.45rem; }
.sub-cards li::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: linear-gradient(180deg, var(--back), var(--lay)); }
ol.sub-cards { list-style: decimal inside; }

.plain-card { padding: 2rem; }
.plain-card p { color: var(--text-muted); }

/* Feature check-list */
.feature-check-list { list-style: none; display: grid; gap: .7rem; margin: 1rem 0; }
.feature-check-list li { position: relative; padding-left: 2.2rem; }
.feature-check-list li::before { content: ""; position: absolute; left: 0; top: .18em; width: 1.4rem; height: 1.4rem; border-radius: 50%; background: var(--accent); box-shadow: inset 0 0 0 2px var(--accent-warm); }
.feature-check-list li::after { content: ""; position: absolute; left: .5rem; top: .42em; width: .38rem; height: .68rem; border: solid #000; border-width: 0 2.5px 2.5px 0; transform: rotate(42deg); }
ol.feature-check-list.is-ordered { list-style: decimal; padding-left: 1.5rem; }
ol.feature-check-list.is-ordered li { padding-left: .35rem; }
ol.feature-check-list.is-ordered li::before, ol.feature-check-list.is-ordered li::after { content: none; }
ol.feature-check-list.is-ordered li::marker { font-family: var(--font-heading); font-weight: 800; color: var(--brand); }
.feature-check-list--plain, .split-copy { background: linear-gradient(135deg, var(--accent-soft) 0%, #fff 62%); border-left: 5px solid var(--accent-warm); border-radius: var(--card-radius); padding: 1.75rem 1.9rem; box-shadow: var(--shadow-soft); }
.feature-check-list--plain + .floor-grid { margin-top: 1.25rem; }
.feature-check-list--plain--wide ul.feature-check-list { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 2rem; }

.split-layout { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 1.5rem; align-items: start; }
.split-media { margin: 0; position: sticky; top: calc(var(--header-h) + 1rem); }
.split-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--card-radius); box-shadow: var(--shadow-card); }

/* Image divider (R5b): contained figure + aside, never full bleed */
.image-divider { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 1.5rem; align-items: stretch; margin: 0 0 .5rem; padding: 0 0 3rem; }
.image-divider-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-xl); border: 1px solid var(--border); box-shadow: var(--shadow-card); }
.image-divider-aside { display: flex; flex-direction: column; justify-content: center; gap: .8rem; background: var(--bg-panel); color: #fff; border-radius: var(--r-xl); padding: 2rem; }
.aside-kicker { font-family: var(--font-heading); font-weight: 700; font-size: .85rem; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); }
.aside-title { font-family: var(--font-heading); font-weight: 800; font-size: 1.6rem; line-height: 1.15; color: #fff; text-decoration: none; }
.aside-title:hover { color: var(--accent); }

/* Tables (only if a brief carries one) */
.table-card { overflow-x: auto; background: var(--bg-card); border-radius: var(--card-radius); box-shadow: var(--shadow-card); }
.table-card table { width: 100%; border-collapse: collapse; }
.table-card th, .table-card td { padding: .8rem 1rem; text-align: left; border-bottom: 1px solid var(--border-soft); }
.table-card thead th { background: #000; color: #fff; font-family: var(--font-heading); text-transform: uppercase; letter-spacing: .04em; }
.spec-grid { display: grid; gap: 2px; background: var(--border); }
.spec-grid-head, .spec-cell { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 1rem; background: var(--bg-card); padding: .8rem 1rem; }
.spec-grid-head { background: #000; color: #fff; font-family: var(--font-heading); text-transform: uppercase; }
.spec-key { font-weight: 700; }
.table-note { margin-top: 1rem; color: var(--text-muted); }

/* ---- FAQ ---------------------------------------------------------------- */
.sec--faq { padding-bottom: 4rem; }
.faq-list { display: grid; gap: .6rem; }
.faq-item { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--card-radius); transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s; }
.faq-item[open] { transform: translateY(-2px); box-shadow: var(--shadow-card); border-color: var(--brand); }
.faq-item summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.05rem 1.3rem; font-family: var(--font-heading); font-weight: 700; font-size: 1.22rem; line-height: 1.25; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: ""; flex: none; width: 1.7rem; height: 1.7rem; border-radius: 50%; background: linear-gradient(#000, #000) center / .8rem 2px no-repeat, linear-gradient(#000, #000) center / 2px .8rem no-repeat, var(--accent); box-shadow: inset 0 0 0 2px var(--accent-warm); transition: transform .35s var(--ease); }
.faq-item[open] summary::after { transform: rotate(135deg); }
.faq-answer { padding: 0 1.3rem 1.2rem; color: var(--text-muted); }

/* ---- Home: bespoke sections --------------------------------------------- */
.home-intro { padding: 2.5rem 0 1.5rem; }

.bento-floor { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.floor-card { background: var(--bg-card); border-radius: var(--card-radius); overflow: hidden; box-shadow: var(--shadow-card); display: flex; flex-direction: column; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.floor-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-card-hover); }
.floor-card-art { margin: 0; overflow: hidden; }
.floor-card-art img { width: 100%; height: 100%; aspect-ratio: 5 / 3; object-fit: cover; transition: transform .6s var(--ease); }
.floor-card:hover .floor-card-art img { transform: scale(1.04); }
.floor-card-copy { padding: 1.5rem 1.6rem 1.7rem; border-top: 5px solid var(--brand); }
.floor-card-copy h3 { font-size: 1.6rem; margin-bottom: .6rem; text-transform: uppercase; }
.floor-card-copy p { color: var(--text-muted); }
.floor-card:first-child { grid-column: 1 / -1; flex-direction: row; }
.floor-card:first-child .floor-card-art { flex: 0 0 56%; }
.floor-card:first-child .floor-card-art img { aspect-ratio: auto; min-height: 100%; }
.floor-card:first-child .floor-card-copy { flex: 1; border-top: 0; border-left: 5px solid var(--brand); display: flex; flex-direction: column; justify-content: center; padding: 2rem; }

/* Game lobby: violet title strip over a gapless tile wall (reference layout) */
.lobby { background: #000; border-radius: var(--card-radius); overflow: hidden; box-shadow: var(--shadow-card); }
.lobby-strip { background: var(--brand); color: #fff; font-size: 1.15rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: .6rem 1rem; }
.lobby-wall { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 3px; padding: 3px; }
.lobby-tile { position: relative; overflow: hidden; background: #111; }
.lobby-tile img { width: 100%; aspect-ratio: 500 / 299; object-fit: cover; transition: transform .5s var(--ease); }
.lobby-tile:hover img { transform: scale(1.05); }
.lobby-name { position: relative; display: block; background: var(--brand); color: #fff; text-align: center; font-family: var(--font-heading); font-weight: 700; font-size: .92rem; letter-spacing: .08em; text-transform: uppercase; padding: .3rem .4rem; transition: background-color .2s, color .2s; }
.lobby-tile:hover .lobby-name { background: var(--accent); color: #000; }

.split-layout--home { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 2rem; align-items: stretch; }
.split-layout--home .split-media { position: static; }
.split-layout--home .split-media img { height: 100%; aspect-ratio: 10 / 11; }
.split-layout--home .split-copy { background: none; border: 0; box-shadow: none; padding: 0; display: flex; flex-direction: column; justify-content: center; }
.split-item { padding: 1.5rem 0; border-top: 1px solid var(--border); }
.split-item:first-child { border-top: 0; padding-top: 0; }
.split-item h3 { font-size: 1.75rem; text-transform: uppercase; margin-bottom: .6rem; }
.split-item p { color: var(--text-muted); }

.secure-panel { background: radial-gradient(46rem 22rem at 100% 0%, rgba(128, 0, 255, .42), transparent 70%), var(--bg-panel); color: #fff; border-radius: var(--r-xl); padding: 2.4rem; }
.security-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.security-cell { background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .14); border-radius: var(--card-radius); padding: 1.3rem 1.4rem 1.4rem; }
.security-cell .bl-pair { margin-bottom: .9rem; }
.security-cell p { color: #DCDCE6; }
.secure-login { display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); margin-top: 1rem; background: rgba(128, 0, 255, .2); border: 1px solid var(--brand-light); border-radius: var(--card-radius); overflow: hidden; }
.secure-login-art { margin: 0; }
.secure-login-art img { width: 100%; height: 100%; object-fit: cover; }
.secure-login-copy { padding: 1.9rem 2rem; }
.secure-login-copy h3 { font-size: 1.75rem; margin-bottom: .8rem; color: var(--accent); }
.secure-login-copy p { color: #E6E6EE; }
.secure-login-copy .btn { margin-top: .5rem; }

.support-card { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); background: var(--bg-card); border-radius: var(--r-xl); box-shadow: var(--shadow-card); }
.support-mark { position: absolute; left: -.5rem; bottom: -3.4rem; font-family: var(--font-heading); font-style: italic; font-weight: 900; font-size: clamp(9rem, 22vw, 17rem); line-height: 1; color: rgba(128, 0, 255, .06); pointer-events: none; }
.support-copy { position: relative; padding: 2.4rem; }
.support-copy h2 { font-size: clamp(1.75rem, 3.1vw, 2.55rem); }
.support-copy .bl-rule { margin-bottom: 1.4rem; }
.support-copy p { color: var(--text-muted); }
.support-copy .btn { margin-top: .6rem; }
.support-art { margin: 0; }
.support-art img { width: 100%; height: 100%; object-fit: cover; }

.rewards-bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.rewards-cell { position: relative; overflow: hidden; margin: 0; background: var(--bg-card); border-radius: var(--card-radius); padding: 1.7rem 1.6rem; box-shadow: var(--shadow-card); }
.rewards-cell p { color: var(--text-muted); position: relative; z-index: 1; }
.rewards-cell--lead { grid-column: span 2; background: linear-gradient(120deg, var(--accent) 0%, var(--accent-warm) 100%); padding: 2.2rem; }
.rewards-cell--lead p { color: #000; font-family: var(--font-heading); font-weight: 700; font-size: 1.6rem; line-height: 1.25; }
.rewards-cell--lead .tile-mark { color: rgba(0, 0, 0, .09); font-size: 8rem; bottom: -1.6rem; }
.rewards-cell--lead:hover .tile-mark { color: rgba(128, 0, 255, .3); }
.rewards-cell--art { grid-row: span 2; padding: 0; }
.rewards-cell--art img { width: 100%; height: 100%; object-fit: cover; }
.rewards-cell--strip { grid-column: 1 / -1; background: var(--brand); display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: 1.6rem 2rem; }
.rewards-cell--strip p { color: #fff; font-size: 1.1rem; margin: 0; }
.rewards-cell--strip .btn { flex: none; }

/* ---- Inner page hero ---------------------------------------------------- */
.page-hero { background: #050507; padding: 1.5rem 0 2.25rem; margin-bottom: 2.5rem; }
.page-banner { position: relative; overflow: hidden; isolation: isolate; border: 1px solid #2A2A33; border-radius: var(--r-xl); background: #000; color: #fff; min-height: 21rem; display: flex; align-items: flex-end; }
.page-banner::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(5, 5, 7, .96) 0%, rgba(5, 5, 7, .8) 52%, rgba(5, 5, 7, .22) 100%); }
.page-banner::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: linear-gradient(90deg, var(--brand) 0, var(--brand) calc(100% - 9rem), var(--back) calc(100% - 9rem), var(--back) calc(100% - 4.5rem), var(--lay) calc(100% - 4.5rem)); }
.page-banner-art { position: absolute; top: 0; right: 0; bottom: 0; left: auto; width: 60%; height: 100%; object-fit: cover; object-position: 85% 50%; z-index: -2; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 45%); mask-image: linear-gradient(90deg, transparent 0, #000 45%); }
.page-banner-copy { padding: 2.25rem 2.25rem 2.4rem; width: 100%; }
.crumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; font-family: var(--font-heading); font-weight: 700; font-size: .9rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: .9rem; }
.crumb li + li::before { content: "/"; margin-right: .5rem; color: #8A8A96; }
.crumb a { color: var(--accent); text-decoration: none; }
.crumb span { color: #C9C9D4; }
.page-banner h1 { font-size: clamp(1.95rem, 3.7vw, 3.1rem); font-weight: 900; text-transform: uppercase; }
.page-banner .hero-sub { font-size: 1.05rem; }
.page-meta { margin: 1.1rem 0 0; font-size: .86rem; color: #B9B9C4; }
.page-meta-author { color: #fff; font-weight: 600; }

/* ---- 404 ---------------------------------------------------------------- */
.err { text-align: left; padding: 3rem 0 6rem; }
.err-code { margin: 0; font-family: var(--font-heading); font-style: italic; font-weight: 900; font-size: clamp(8rem, 22vw, 22rem); line-height: .95; padding: 0 .08em .06em 0; background: linear-gradient(100deg, var(--brand) 10%, var(--accent-warm) 90%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.err h1 { font-size: clamp(1.9rem, 4vw, 3rem); margin-bottom: .8rem; text-transform: uppercase; }
.err .btn--ghost { background: #000; }

/* ---- Footer ------------------------------------------------------------- */
.site-footer { background: #000; color: #C9C9D4; margin-top: 6.5rem; padding-bottom: 2rem; }
.footer-cta { position: relative; overflow: hidden; top: -3.5rem; margin-bottom: -1rem; display: flex; align-items: center; justify-content: space-between; gap: 2rem; background: linear-gradient(120deg, var(--accent) 0%, var(--accent-warm) 100%); color: #000; border-radius: var(--r-xl); padding: 2rem 2.4rem; box-shadow: 0 18px 40px rgba(0, 0, 0, .35); }
.footer-cta-mark { position: absolute; right: 8rem; bottom: -3.2rem; font-family: var(--font-heading); font-style: italic; font-weight: 900; font-size: clamp(7rem, 17vw, 13rem); line-height: 1; color: rgba(0, 0, 0, .08); white-space: nowrap; pointer-events: none; }
.footer-cta-copy { position: relative; }
.footer-cta h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); text-transform: uppercase; }
.footer-cta p { margin: .4rem 0 0; color: #1c1c1c; }
.footer-cta .btn { position: relative; flex: none; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 2.5rem; padding: 0 0 2.25rem; }
.footer-brand .logo img { height: 44px; width: auto; object-fit: contain; }
.footer-brand p { margin: 1rem 0; font-size: .95rem; }
.pay-pills, .trust-pills { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; }
.pay-pills li { border: 1px solid #3A3A45; border-radius: var(--r-sm); padding: .25rem .65rem; font-size: .8rem; font-weight: 600; color: #fff; }
.footer-col h3 { position: relative; font-style: italic; font-size: 1.35rem; color: #fff; padding-bottom: .6rem; margin-bottom: .9rem; }
.footer-col h3::after { content: ""; position: absolute; left: 0; bottom: 0; width: 2.2rem; height: 3px; background: var(--accent-warm); }
.footer-col ul { list-style: none; display: grid; gap: .5rem; }
.footer-col a { color: #C9C9D4; text-decoration: none; font-size: .97rem; }
.footer-col a:hover { color: var(--accent); }
.trust-pills { padding: 1.4rem 0; border-top: 1px solid #25252E; border-bottom: 1px solid #25252E; gap: .6rem 1.75rem; }
.trust-pills li { display: inline-flex; align-items: center; gap: .6rem; font-family: var(--font-heading); font-weight: 700; font-size: .95rem; letter-spacing: .06em; text-transform: uppercase; color: #fff; }
.footer-base { padding-top: 1.4rem; font-size: .84rem; color: #8F8F9C; }
.footer-base p { margin: 0 0 .5rem; }

/* ---- Reveal ------------------------------------------------------------- */
.js .reveal { transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--i, 0) * 60ms); }
.js .reveal.is-hidden { opacity: 0; transform: translateY(18px); }

/* ---- Hindi mirror ------------------------------------------------------- */
html[lang="hi"] body { font-family: 'Hind', var(--font-body); }
html[lang="hi"] h1, html[lang="hi"] h2, html[lang="hi"] h3, html[lang="hi"] .btn, html[lang="hi"] .primary-nav ul a, html[lang="hi"] .board-name, html[lang="hi"] .cell { font-family: 'Khand', 'Hind', var(--font-heading); letter-spacing: 0; }
html[lang="hi"] .hero h1 { line-height: 1.25; }
html[lang="hi"] .highlight { font-style: normal; }

/* ==========================================================================
   Breakpoints
   ========================================================================== */
@media (max-width: 1100px) {
  .header-trust { display: none; }
  .utility-nav { margin-left: auto; }
  .primary-nav ul a { padding: 0 .7rem; font-size: .95rem; }
  .primary-nav ul { margin: 0 -.7rem; }
  .nav-indicator { left: -.7rem; }
  .console { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
}

@media (max-width: 900px) {
  .utility-nav, .header-cta { display: none; }
  .burger { display: block; }
  .header-main { border-bottom: 3px solid var(--brand); }
  .header-nav { position: fixed; inset: calc(var(--header-main-h) + 3px) 0 0 0; z-index: 99; background: rgba(12, 0, 28, .96); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); overflow-y: auto; padding: 1.5rem 0 3rem; opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .3s, transform .3s var(--ease), visibility 0s .3s; }
  .nav-open .header-nav { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .nav-open { overflow: hidden; }
  .primary-nav ul { flex-direction: column; margin: 0; }
  .primary-nav ul a { padding: .55rem 0; line-height: 1.3; font-size: 1.9rem; border-bottom: 1px solid rgba(255, 255, 255, .12); white-space: normal; }
  .nav-indicator { display: none; }
  .nav-extra { display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; margin-top: 1.5rem; }
  .nav-extra a { color: var(--accent); text-decoration: none; font-family: var(--font-heading); font-weight: 700; font-size: 1.15rem; }

  .console { grid-template-columns: minmax(0, 1fr); }
  .console-stage { min-height: 24rem; }
  .console-art, .page-banner-art { width: 100%; -webkit-mask-image: none; mask-image: none; }
  .page-banner::before { background: rgba(5, 5, 7, .82); }
  .console-board { border-left: 0; border-top: 1px solid #2A2A33; }
  .floor-grid--cols-3, .floor-grid--cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split-layout, .split-layout--home, .image-divider, .support-card, .secure-login { grid-template-columns: minmax(0, 1fr); }
  .split-media { position: static; }
  .split-layout--home .split-media img { aspect-ratio: 16 / 10; }
  .security-grid { grid-template-columns: minmax(0, 1fr); }
  .floor-card:first-child { flex-direction: column; }
  .floor-card:first-child .floor-card-art { flex: none; }
  .floor-card:first-child .floor-card-art img { aspect-ratio: 5 / 3; }
  .floor-card:first-child .floor-card-copy { border-left: 0; border-top: 5px solid var(--brand); }
  .rewards-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rewards-cell--art { grid-row: auto; grid-column: 1 / -1; }
  .rewards-cell--art img { aspect-ratio: 16 / 9; }
  .support-art img { aspect-ratio: 16 / 9; }
  .secure-login-art img { aspect-ratio: 16 / 9; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-cta-mark { right: 0; }
}

@media (max-width: 700px) {
  body { font-size: 1rem; }
  .stat-strip-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--border-soft); }
  .lobby-wall { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bento-floor { grid-template-columns: minmax(0, 1fr); }
  .feature-check-list--plain--wide ul.feature-check-list { grid-template-columns: minmax(0, 1fr); }
  .footer-cta, .rewards-cell--strip { flex-direction: column; align-items: flex-start; gap: 1.2rem; }
  .secure-panel, .support-copy { padding: 1.6rem; }
  .console-copy, .page-banner-copy { padding: 1.5rem; }
  .floor-grid--rich .tile { padding: 1.6rem; }
  .rewards-cell--lead p { font-size: 1.3rem; }
  .sec { padding: 2.5rem 0; }
}

@media (max-width: 560px) {
  .container { padding: 0 1rem; }
  .floor-grid--cols-2, .floor-grid--cols-3, .floor-grid--cols-4 { grid-template-columns: minmax(0, 1fr); }
  .rewards-bento { grid-template-columns: minmax(0, 1fr); }
  .rewards-cell--lead { grid-column: auto; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 1.75rem; }
  .board-head, .board-rows li { grid-template-columns: minmax(0, 1fr) 4rem 4rem; }
  .hero-ctas .btn { flex: 1 1 auto; }
}

@media (max-width: 480px) {
  .logo img { height: 40px; }
  .stat-num { font-size: 2.1rem; }
  .stat { padding: .9rem 1rem 1rem; }
  .board-name { font-size: 1.02rem; padding: 0 .75rem; }
  .lobby-name { font-size: .8rem; letter-spacing: .04em; }
  .faq-item summary { font-size: 1.1rem; padding: .9rem 1rem; }
  .faq-answer { padding: 0 1rem 1rem; }
}

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