:root {
  --bg: #1D1E2C; --panel: #2F3041; --panel-2: #26273A; --line: rgba(230,239,247,.10); --line-2: rgba(230,239,247,.22);
  --ink: #E6EFF7; --muted: #A3ADC2; --sky: #3AAEF5; --amber: #FFBC00; --amber-ink: #212334;
  --display: "Bricolage Grotesque", "Arial Narrow", sans-serif; --body: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark; accent-color: var(--sky); scrollbar-color: var(--sky) var(--panel-2);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.7 var(--body); }
::selection { background: var(--sky); color: var(--bg); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: .2em; }
h1, h2, h3 { margin: 0; font-family: var(--display); text-wrap: balance; }
p { margin: 0; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }
.muted a { color: var(--sky); font-weight: 600; }
.h2 { font-weight: 800; font-size: clamp(1.7rem, 3.4vw, 2.5rem); line-height: 1.1; letter-spacing: -.02em; margin-bottom: 26px; }
.tag { display: inline-block; font: 600 .78rem/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--sky); border: 1px solid var(--line-2); border-radius: 6px; padding: 7px 10px; margin-bottom: 16px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 12px 22px; border-radius: 8px; font: 600 .97rem/1.2 var(--body); text-decoration: none; border: 1px solid transparent; transition: background-color .2s, border-color .2s; white-space: nowrap; }
.btn:focus-visible, a:focus-visible, summary:focus-visible { outline: 2px solid var(--sky); outline-offset: 3px; }
.btn-amber { background: var(--amber); color: var(--amber-ink); }
.btn-amber:hover { background: #ffd040; }
.btn-ghost { border-color: var(--line-2); color: var(--ink); }
.btn-ghost:hover { border-color: var(--sky); }
.btn-sm { padding: 8px 15px; font-size: .88rem; }
.btn-lg { padding: 15px 28px; font-size: 1.02rem; }

/* header */
.top { position: sticky; top: 0; z-index: 40; background: rgba(29,30,44,.9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 28px; height: 64px; }
.logo img { height: 30px; width: auto; }
.desk { display: flex; gap: 20px; flex: 1; align-self: stretch; }
.desk a { display: flex; align-items: center; color: var(--muted); font-size: .92rem; text-decoration: none; border-bottom: 2px solid transparent; }
.desk a:hover { color: var(--ink); }
.desk a[aria-current] { color: var(--ink); border-bottom-color: var(--sky); }
.auth { display: flex; gap: 8px; margin-left: auto; }
.mnav { display: none; }
.mnav summary { list-style: none; cursor: pointer; width: 44px; height: 44px; border: 1px solid var(--line-2); border-radius: 8px; display: grid; place-content: center; gap: 4px; }
.mnav summary::-webkit-details-marker { display: none; }
.mnav summary span { display: block; width: 18px; height: 2px; background: var(--ink); }
.mnav nav { position: absolute; left: 0; right: 0; top: 64px; background: var(--panel-2); border-bottom: 1px solid var(--line); padding: 4px 24px 16px; display: grid; }
.mnav nav a { padding: 13px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.mnav nav a[aria-current] { color: var(--sky); }

/* hero */
.hero { padding: 64px 0 0; background: radial-gradient(55% 80% at 90% 10%, rgba(58,174,245,.18), transparent 70%), linear-gradient(180deg, #23243a, var(--bg)); }
.hero-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 56px; align-items: center; }
.hero h1 { font-weight: 800; font-size: clamp(2.3rem, 5.4vw, 4.2rem); line-height: 1.02; letter-spacing: -.035em; margin-bottom: 20px; }
.lead { font-size: 1.1rem; color: var(--muted); max-width: 36em; margin-bottom: 28px; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }
.note { margin-top: 20px; font-size: .88rem; color: var(--muted); max-width: 42em; }
.crumb { font-size: .86rem; color: var(--muted); margin-bottom: 16px; }
.crumb a { color: var(--sky); text-decoration: none; }

/* game mosaic */
.mosaic { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; transform: rotate(-2deg); }
.mosaic picture:nth-child(2) { transform: translateY(22px); }
.mosaic picture:nth-child(4) { transform: translateY(22px); }
.mosaic img { width: 100%; aspect-ratio: 688 / 440; object-fit: cover; border-radius: 12px; border: 1px solid var(--line-2); box-shadow: 0 20px 40px -20px rgba(0,0,0,.7); }

/* facts */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); margin: 56px 0 0; border: 1px solid var(--line); border-radius: 12px; background: var(--panel-2); overflow: hidden; }
.facts div { padding: 16px 20px; border-right: 1px solid var(--line); }
.facts div:last-child { border-right: 0; }
.facts dt { font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 4px 0 0; font-weight: 600; }

/* ribbon */
.ribbon { margin-top: 40px; background: var(--amber); color: var(--amber-ink); }
.ribbon-in { display: flex; align-items: center; gap: 28px; padding-top: 14px; padding-bottom: 14px; flex-wrap: wrap; font-size: .93rem; }
.ribbon-in p { flex: 1 1 200px; }
.ribbon .btn-amber { background: var(--amber-ink); color: var(--amber); }

/* sections */
.sec { padding: 64px 0 0; }
.hubs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.hub { background: var(--bg); padding: 22px; text-decoration: none; transition: background-color .2s; }
.hub:hover { background: var(--panel-2); }
.num { font: 800 .85rem/1 var(--display); color: var(--sky); }
.hub h3 { font-size: 1.15rem; margin: 10px 0 4px; }
.hub p { font-size: .9rem; color: var(--muted); }
.tiles { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.tile { text-decoration: none; }
.tile img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; background: var(--panel); transition: transform .25s; }
.tile:hover img { transform: scale(1.03); }
.tile span { display: block; padding-top: 10px; }
.tile b { display: block; font-family: var(--display); }
.tile small { color: var(--muted); }
.app { display: grid; grid-template-columns: 1fr 1.3fr; gap: 40px; align-items: center; background: var(--panel); border-radius: 18px; padding: 36px; }
.app .muted { margin-bottom: 22px; }
.app img { border-radius: 12px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; counter-reset: c; }
.card { counter-increment: c; background: var(--panel-2); border: 1px solid var(--line); border-radius: 14px; padding: 22px; }
.card::before { content: counter(c, decimal-leading-zero); font: 800 .85rem/1 var(--display); color: var(--sky); }
.card h3 { font-size: 1.1rem; margin: 10px 0 6px; }
.card p { color: var(--muted); }
.timeline { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; border-left: 2px solid var(--line-2); counter-reset: t; }
.timeline li { counter-increment: t; position: relative; padding: 0 0 26px 34px; }
.timeline li::before { content: counter(t); position: absolute; left: -15px; top: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--sky); color: var(--bg); display: grid; place-items: center; font: 800 .9rem/1 var(--display); }
.timeline h3 { font-size: 1.1rem; margin-bottom: 4px; }
.timeline p { color: var(--muted); }

/* faq */
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { cursor: pointer; list-style: none; padding: 18px 44px 18px 0; font-weight: 600; position: relative; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: ""; position: absolute; right: 8px; top: 24px; width: 10px; height: 10px; border-right: 2px solid var(--sky); border-bottom: 2px solid var(--sky); transform: rotate(45deg); transition: transform .2s; }
.faq-list details[open] summary::after { transform: rotate(-135deg); top: 28px; }
.faq-list details p { padding: 0 0 18px; color: var(--muted); max-width: 52em; }
.more { margin-top: 18px; }

/* band + footer */
.band { margin-bottom: 64px; border: 1px solid var(--line-2); border-radius: 18px; padding: 40px; text-align: center; background: radial-gradient(70% 120% at 50% 0%, rgba(58,174,245,.2), transparent 70%), var(--panel-2); }
.band h2 { font-weight: 800; font-size: clamp(1.6rem, 3.4vw, 2.4rem); margin-bottom: 8px; }
.band p { color: var(--muted); margin-bottom: 22px; }
.band .btns { justify-content: center; }
.foot { background: #17182A; border-top: 1px solid var(--line); color: var(--muted); padding: 48px 0 96px; font-size: .92rem; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 36px; }
.foot h3 { color: var(--ink); font-size: 1rem; margin: 0 0 12px; }
.foot .logo img { margin-bottom: 14px; }
.foot nav a { display: block; padding: 4px 0; text-decoration: none; }
.foot nav a:hover { color: var(--ink); }
.age { display: flex; align-items: center; gap: 10px; margin-top: 14px; }
.pay { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 22px; }
.pay img { height: 30px; width: auto; background: var(--ink); border-radius: 6px; padding: 4px 6px; }
.provs { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.provs li { border: 1px solid var(--line-2); border-radius: 6px; padding: 3px 9px; font-size: .84rem; }
.copy { margin-top: 32px; padding-top: 18px; border-top: 1px solid var(--line); font-size: .82rem; }
.mbar { display: none; }

@media (max-width: 1000px) {
  .desk { display: none; }
  .mnav { display: block; }
  .tiles { grid-template-columns: repeat(3, 1fr); }
  .facts { grid-template-columns: 1fr 1fr; }
  .facts div:nth-child(2) { border-right: 0; }
  .facts div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 800px) {
  .hero-grid, .app, .foot-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 40px; }
  .mosaic { transform: none; }
  .mosaic picture:nth-child(2), .mosaic picture:nth-child(4) { transform: none; }
  .hubs { grid-template-columns: 1fr 1fr; }
  .auth { display: none; }
  .app { padding: 24px; }
  .mbar { display: flex; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: var(--panel); border-top: 1px solid var(--line-2); }
  .mbar .btn { flex: 1; }
}
@media (max-width: 480px) {
  .wrap { padding: 0 16px; }
  .tiles, .hubs { grid-template-columns: 1fr 1fr; }
  .hub { padding: 16px; }
  .band { padding: 28px 18px; }
  .btn-lg { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
