:root {
  color-scheme: dark;
  --bg: #0d111c;
  --surface: #151d30;
  --panel: #192238;
  --border: #26334e;
  --text: #f5f8ff;
  --muted: #adbcd5;
  --accent: #6bc6ff;
  --font: Inter, "Segoe UI", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-padding-top: 24px; }
body { margin: 0; font: 1rem/1.6 var(--font); color: var(--text); background: radial-gradient(ellipse at 48% 0%, #161d32 0, transparent 560px), var(--bg); }
a { color: var(--accent); text-underline-offset: .22em; }
a:hover { color: #a7dfff; }
button, input { font: inherit; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
.wrap { width: min(1280px, calc(100% - 64px)); margin-inline: auto; }
.skip, .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { z-index: 5; top: 12px; left: 12px; width: auto; height: auto; clip-path: none; background: var(--surface); padding: 10px 16px; }
:focus-visible { outline: 2px solid #a8ddff; outline-offset: 4px; }
.masthead { border-bottom: 1px solid #202b43; background: #101624; }
.mast-inner { min-height: 79px; display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center; }
.logo { display: inline-flex; align-items: center; flex-shrink: 0; }
.logo img { object-fit: contain; }
.primary-nav { display: flex; gap: 4px; justify-self: center; }
.primary-nav a { text-decoration: none; line-height: 1.25; color: #becbe0; white-space: nowrap; padding: 10px; border-radius: 9px; font-size: .89rem; font-weight: 650; }
.primary-nav a:hover, .primary-nav a[aria-current] { color: white; background: #202e4b; }
.actions { display: flex; gap: 9px; flex-wrap: wrap; align-items: center; }
.button { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; border: 1px solid #4eaaff; border-radius: 10px; padding: 8px 16px; background: linear-gradient(145deg,#1269cb,#194fd0); color: white; text-decoration: none; font-weight: 750; font-size: .9rem; white-space: nowrap; }
.button:hover { background: #196bda; color: white; }
.button.ghost { border-color: #547298; background: #13223c; }
.button.ghost:hover { background: #1e3557; }
h1,h2,p,figure { margin: 0; }
h1,h2 { line-height: 1.12; letter-spacing: -.035em; }
h2 { font-size: clamp(1.45rem, 1.2rem + 1vw, 2rem); }
.hero { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center; min-height: 402px; border: 1px solid #30466f; border-radius: 24px; margin-top: 26px; background: linear-gradient(90deg,#101b34 6%,#101b34f0 39%,#11244560 78%, #0d172855), url(/assets/brand/hero-background.webp) center 52% / cover; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse at 79% 65%, #1d94ff55, transparent 38%); }
.hero-copy { position: relative; z-index: 1; padding: clamp(26px, 5vw, 64px); max-width: 690px; }
.eyebrow { color: #b4ddff; font-weight: 700; font-size: .84rem; margin-bottom: 14px; }
.hero h1 { font-size: clamp(3.5rem, 7vw, 6.25rem); font-weight: 850; line-height: .94; }
.hero-lede { font-weight: 750; font-size: clamp(1.2rem, .7rem + 2vw, 2.4rem); margin-top: 13px; letter-spacing: -.035em; }
.hero-desc { color: #cfdbec; max-width: 390px; margin: 8px 0 22px; }
.hero-person { position: absolute; right: 5%; bottom: -24%; height: 129%; width: auto; max-width: 48%; object-fit: contain; object-position: bottom right; filter: drop-shadow(0 0 50px #1873f39c); }
.feature-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; margin-top: 15px; }
.feature { position: relative; overflow: hidden; isolation: isolate; display: flex; flex-direction: column; text-decoration: none; min-height: 142px; border: 1px solid #364465; padding: 19px; border-radius: 16px; color: white; background: #1a2540; }
.feature:hover { color: white; border-color: var(--accent); }
.feature > span:first-child { font-size: .78rem; color: #e0eaff; }
.feature strong { font-size: clamp(1.16rem, .9rem + 1vw, 1.55rem); line-height: 1.2; margin-block: 6px 4px; }
.feature small { color: #d0d9eb; font-size: .8rem; }
.feature img, .pitch { z-index: -1; position: absolute; pointer-events: none; }
.feature.amber { background: linear-gradient(98deg,#262044 38%,#7f3e34); }
.feature.amber img { height: 170%; width: auto; right: -10px; top: 0; }
.feature.aqua { background: linear-gradient(99deg,#172a4b 32%,#19467a); }
.feature.violet { background: linear-gradient(99deg,#252747 45%,#583c88); }
.feature.violet img { right: -2px; bottom: -7px; width: 125px; }
.pitch, .title-pitch { display: block; border: 1px solid #6fbaff64; border-radius: 15px; background: linear-gradient(90deg, transparent 49%, #8bc7ff4d 49% 51%, transparent 51%), radial-gradient(circle at center, transparent 14%, #8bc7ff4d 15% 16%, transparent 17%); transform: rotate(-19deg); }
.pitch { right: -4%; bottom: -8%; width: 40%; height: 90%; }
.home-section { margin-top: 38px; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 15px; margin-bottom: 15px; }
.section-head p, figcaption { color: var(--muted); margin-top: 5px; }
.games { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 13px; }
.game { min-width: 0; overflow: hidden; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); }
.game img { width: 100%; height: 140px; object-fit: cover; object-position: 50% 40%; background: #202643; }
.game > div { display: grid; align-content: start; gap: 4px; padding: 12px; }
.game strong { overflow-wrap: anywhere; line-height: 1.22; }
.game small { color: var(--muted); }
.game a { margin-top: 3px; font-size: .85rem; }
.quick-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; }
.quick-grid a { display: flex; flex-direction: column; padding: 17px; border: 1px solid var(--border); border-radius: 13px; background: var(--surface); color: var(--text); text-decoration: none; }
.quick-grid a:hover { border-color: var(--accent); }
.quick-grid span { color: var(--muted); font-size: .88rem; }
.source-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; padding: 23px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); }
.source-panel p { margin-top: 11px; }
.source-actions { margin-top: 15px; }
.source-panel img { width: 100%; height: auto; border-radius: 10px; }
figcaption { font-size: .82rem; }
.titleband { position: relative; isolation: isolate; overflow: hidden; padding: clamp(20px,5vw,53px); margin-block: 26px 26px; border-radius: 19px; border: 1px solid #2e4063; background: radial-gradient(ellipse at 95% 30%, #28477a, transparent 55%), #141f35; }
.titleband.gold { background: linear-gradient(120deg,#171f37 35%, #41314b); }
.titleband.sport { background: linear-gradient(110deg,#16223b 35%, #194579); }
.crumb { font-size: .88rem; color: var(--muted); margin-bottom: 15px; }
.crumb span { margin-inline: 4px; }
.titleband h1 { font-size: clamp(2.05rem, 1.2rem + 3vw, 3.65rem); max-width: 860px; }
.intro { color: #d1def5; max-width: 68ch; margin-top: 14px; }
.title-art { position: absolute; z-index: -1; top: 0; bottom: 0; right: 0; width: 21%; opacity: .48; mask-image: linear-gradient(90deg, transparent,black 35%); }
.title-art img { width: 100%; height: 100%; object-fit: cover; }
.title-pitch { position: absolute; z-index: -1; right: 2%; width: 24%; height: 145%; bottom: -39%; opacity: .55; }
.reading { display: grid; grid-template-columns: 220px minmax(0,810px); justify-content: start; gap: 26px; }
.reading aside nav { display: grid; gap: 9px; position: sticky; top: 18px; padding: 15px; border: 1px solid var(--border); border-radius: 13px; background: var(--surface); font-size: .87rem; }
.reading aside p { font-weight: 725; }
.reading aside a { color: #c8d6ee; }
article { min-width: 0; }
article section { padding: clamp(17px, 2.5vw, 25px); border: 1px solid var(--border); border-radius: 15px; background: var(--surface); margin-bottom: 13px; overflow-wrap: anywhere; }
article p, article ol, article ul { margin: 13px 0 0; color: #d8e2f3; }
article ol, article ul { padding-left: 24px; }
article li + li { margin-top: 8px; }
article .actions { margin-top: 15px; }
article .games { grid-template-columns: repeat(3,minmax(0,1fr)); }
.table-scroll { margin-top: 13px; overflow: auto; border: 1px solid var(--border); border-radius: 9px; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: .92rem; }
th,td { padding: 10px 12px; vertical-align: top; }
th { background: #21304c; }
td { color: #d8e2f3; border-top: 1px solid var(--border); }
td:first-child { color: white; font-weight: 650; width: 28%; }
.search-tools,.calc { display: grid; gap: 8px; margin: 13px 0; }
.search-tools { grid-template-columns: minmax(0,1fr) auto; align-items: center; }
.search-tools label { grid-column: 1/-1; }
input { min-width: 0; width: 100%; min-height: 44px; color: white; border: 1px solid #52688e; border-radius: 8px; background: #111a2c; padding: 6px 10px; }
.search-tools output, .calc output { color: #c2e5ff; font-size: .9rem; }
.calc { grid-template-columns: repeat(2,minmax(0,1fr)); border-radius: 12px; background: #101929; padding: 13px; }
.calc label { display: block; padding-bottom: 5px; }
.calc output { grid-column: 1/-1; }
.example { background: #1d2c48; padding: 12px; border-radius: 9px; }
.footer { margin-top: 33px; padding-block: 19px 80px; border-top: 1px solid var(--border); color: var(--muted); font-size: .87rem; }
.footer-top { display: flex; flex-wrap: wrap; align-items: center; gap: 15px; justify-content: space-between; padding-bottom: 11px; }
.footer-top nav { display: flex; flex-wrap: wrap; gap: 12px; }
.floating { position: fixed; z-index: 4; right: 13px; bottom: max(10px, env(safe-area-inset-bottom)); display: flex; gap: 10px; align-items: center; max-width: calc(100% - 26px); border: 1px solid #46628a; border-radius: 13px; background: #152238; box-shadow: 0 14px 35px #0007; padding: 7px 9px; font-size: .86rem; }
.floating small { display: block; color: var(--muted); line-height: 1.25; }
.floating button { width: 44px; height: 44px; border: 0; background: transparent; color: white; cursor: pointer; font-size: 1.3rem; }
@media (min-width: 1150px) { .feature { padding: 24px 22px; } .game img { height: 170px; } }
@media (max-width: 920px) {
  .wrap { width: calc(100% - 36px); }
  .mast-inner { min-height: 0; gap: 7px; padding-block: 12px 7px; grid-template-columns: 1fr auto; }
  .primary-nav { grid-row: 2; grid-column: 1/-1; justify-self: stretch; justify-content: flex-start; overflow-x: auto; padding: 3px; }
  .top-actions { grid-column: 2; grid-row: 1; }
  .reading { grid-template-columns: 165px minmax(0,1fr); gap: 14px; }
}
@media (max-width: 650px) {
  .wrap { width: calc(100% - 26px); }
  .hero { min-height: 315px; margin-top: 14px; align-items: end; border-radius: 17px; }
  .hero-person { height: 83%; right: -4%; bottom: 0; max-width: 59%; opacity: .72; mask-image: linear-gradient(106deg,transparent,black 47%); }
  .hero::before { content: ""; position: absolute; z-index: 1; inset: 0; pointer-events: none; background: linear-gradient(90deg,#101b34c9 29%,#101b3444 71%,transparent); }
  .hero-copy { padding: 19px; }
  .hero-desc { max-width: 29ch; }
  .primary-nav { flex-wrap: wrap; overflow: visible; gap: 1px; padding-inline: 0; }
  .primary-nav a { padding: 9px 6px; font-size: .79rem; }
  .feature-grid { grid-template-columns: 1fr; gap: 8px; margin-top: 10px; }
  .feature { min-height: 100px; padding: 12px 14px; }
  .feature.amber img { height: 185%; right: 3%; }
  .feature.violet img { right: 3%; width: 106px; }
  .home-section { margin-top: 25px; }
  .section-head { align-items: start; flex-direction: column; gap: 6px; }
  .games, article .games, .quick-grid, .source-panel { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .game img { height: 105px; }
  .source-panel, .reading { grid-template-columns: minmax(0,1fr); }
  .source-panel { gap: 15px; }
  .reading { gap: 12px; }
  .reading aside nav { position: static; grid-template-columns: 1fr 1fr; }
  .reading aside nav p { grid-column: 1/-1; }
  .titleband { margin-block: 14px 12px; }
  .title-art { width: 34%; opacity: .25; }
  .top-actions .button { padding-inline: 9px; font-size: .8rem; min-height: 40px; }
  .logo img { max-width: min(126px, 36vw); }
}
@media (max-width: 360px) { .hero .button { padding-inline: 10px; } .game > div { padding: 8px; } }

