:root {
  color-scheme: light;
  --ink: #192131;
  --muted: #667085;
  --line: #e5eaf0;
  --paper: #ffffff;
  --soft: #f6f9fc;
  --surface: #ffffff;
  --surface-raised: rgba(255,255,255,.93);
  --header: rgba(255,255,255,.92);
  --blue-soft: #eaf7ff;
  --blue: #1674cf;
  --coral: #f45f4f;
  --orange: #f6a63c;
  --pink: #e964a3;
  --shadow: 0 24px 70px rgba(34, 62, 92, .12);
  --radius-lg: 34px;
  --radius-md: 24px;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --ink: #f2f6fb;
  --muted: #a9b5c5;
  --line: #2c3746;
  --paper: #0e141d;
  --soft: #131b26;
  --surface: #18212d;
  --surface-raised: rgba(24,33,45,.94);
  --header: rgba(14,20,29,.92);
  --blue-soft: #142a3e;
  --blue: #64b5ff;
  --shadow: 0 24px 70px rgba(0, 0, 0, .34);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  overflow-x: clip;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-rounded, "SF Pro Rounded", "Segoe UI", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
.shell { width: min(1160px, calc(100% - 40px)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 100; padding: 12px 18px; border-radius: 12px; background: #192131; color: white; font-weight: 800; }
.skip-link:focus { top: 16px; }

.site-header { position: relative; z-index: 20; border-bottom: 1px solid var(--line); background: var(--header); backdrop-filter: blur(18px); }
.header-inner { min-height: 84px; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 40px; }
.brand { display: inline-flex; align-items: center; gap: 12px; width: fit-content; }
.brand-mark { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 16px; color: white; font-size: 16px; font-weight: 950; letter-spacing: -.03em; background: linear-gradient(145deg, #309bea, #7f69ed 58%, #ed67a8); box-shadow: 0 10px 24px rgba(52, 126, 224, .25), inset 0 1px 0 rgba(255,255,255,.48); }
.brand-copy { display: grid; gap: 2px; }
.brand-copy strong { font-size: 17px; letter-spacing: -.02em; }
.brand-copy small { color: var(--muted); font-size: 11px; font-weight: 700; }
.site-nav { justify-self: end; display: flex; align-items: center; gap: 22px; color: var(--muted); font-size: 14px; font-weight: 800; }
.site-nav > a:not(.nav-cta):hover { color: var(--blue); }
.nav-cta { padding: 13px 18px; border-radius: 14px; color: white; background: var(--ink); box-shadow: 0 8px 18px rgba(25, 33, 49, .16); }
.nav-cta:hover { transform: translateY(-1px); }
.menu-button { display: none; justify-self: end; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); padding: 12px; cursor: pointer; }
.menu-button > span:not(.sr-only) { display: block; height: 2px; margin: 4px 0; border-radius: 99px; background: var(--ink); }
.theme-toggle { flex: 0 0 auto; width: 40px; height: 40px; display: grid; place-items: center; padding: 0; border: 1px solid var(--line); border-radius: 50%; color: var(--muted); background: var(--surface); box-shadow: 0 5px 14px rgba(35,55,80,.08); cursor: pointer; transition: color .18s ease, transform .18s ease, background .18s ease; }
.theme-toggle:hover { color: var(--blue); transform: translateY(-1px); }
.theme-icon { display: none; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
html[data-theme-mode="auto"] .theme-icon-auto,
html[data-theme-mode="light"] .theme-icon-light,
html[data-theme-mode="dark"] .theme-icon-dark { display: block; }

.hero { min-height: 680px; display: grid; grid-template-columns: .86fr 1.14fr; align-items: center; gap: clamp(48px, 7vw, 96px); padding-block: 84px 96px; }
.eyebrow { margin: 0 0 18px; display: flex; align-items: center; gap: 9px; color: var(--blue); font-size: 12px; font-weight: 900; letter-spacing: .15em; text-transform: uppercase; }
.eyebrow > span { width: 22px; height: 3px; border-radius: 99px; background: linear-gradient(90deg, var(--blue), var(--pink)); }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 24px; font-size: clamp(50px, 6.2vw, 82px); line-height: .96; letter-spacing: -.065em; }
h1 em { color: var(--blue); font-style: normal; }
.hero-text { max-width: 600px; margin-bottom: 32px; color: var(--muted); font-size: clamp(17px, 2vw, 20px); line-height: 1.65; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button { min-height: 52px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 0 22px; border-radius: 16px; font-weight: 900; transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: white; background: linear-gradient(135deg, var(--blue), #5574ed); box-shadow: 0 14px 28px rgba(37, 133, 230, .25); }
.button-secondary { border: 1px solid var(--line); background: var(--surface); }
.button-secondary:hover { box-shadow: 0 12px 30px rgba(34, 62, 92, .09); }
.hero-notes { margin: 28px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 16px; list-style: none; color: var(--muted); font-size: 13px; font-weight: 700; }
.hero-notes span { color: var(--blue); }

.hero-art { position: relative; min-width: 0; }
.hero-card { position: relative; z-index: 2; padding: 12px; overflow: hidden; border: 1px solid var(--line); border-radius: 36px; background: var(--surface-raised); box-shadow: var(--shadow); transform: rotate(1.8deg); }
.hero-card > img { width: 100%; aspect-ratio: 2.048 / 1; object-fit: cover; border-radius: 26px; }
.hero-card-caption { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 17px 10px 8px; }
.hero-card-caption div { display: grid; gap: 3px; }
.hero-card-caption strong { font-size: 16px; }
.hero-card-caption small { color: var(--muted); font-size: 12px; }
.game-dot { width: 12px; height: 12px; border-radius: 50%; }
.game-dot-coral { background: var(--coral); box-shadow: 0 0 0 6px rgba(244,95,79,.12); }
.round-arrow { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; color: white; background: #192131; }
.art-glow { position: absolute; border-radius: 50%; filter: blur(10px); opacity: .8; }
.art-glow-blue { inset: -60px 20% auto -20px; height: 220px; background: #daf3ff; }
.art-glow-pink { width: 250px; height: 250px; right: 0; bottom: -60px; background: #ffe0ef; }
.floating-chip { position: absolute; z-index: 3; padding: 12px 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface-raised); box-shadow: 0 12px 30px rgba(30,64,96,.12); color: var(--muted); font-size: 12px; font-weight: 900; }
.chip-one { left: -28px; top: -24px; transform: rotate(-5deg); }
.chip-two { right: -18px; bottom: 58px; transform: rotate(4deg); }

.games-section { padding: 98px 0; background: var(--soft); border-block: 1px solid var(--line); }
.section-heading { margin-bottom: 42px; display: grid; grid-template-columns: 1.05fr .95fr; align-items: end; gap: 70px; }
.section-heading h2, .about-copy h2, .support-section h2 { margin-bottom: 0; font-size: clamp(38px, 5vw, 60px); line-height: 1; letter-spacing: -.05em; }
.section-heading > p { margin-bottom: 2px; color: var(--muted); font-size: 17px; line-height: 1.65; }
.games-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.game-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); box-shadow: 0 16px 46px rgba(34, 62, 92, .07); transition: transform .22s ease, box-shadow .22s ease; }
.game-card:hover { transform: translateY(-5px); box-shadow: 0 24px 60px rgba(34, 62, 92, .12); }
.game-image { position: relative; display: block; overflow: hidden; margin: 10px 10px 0; border-radius: 26px; background: var(--soft); }
.game-image img { width: 100%; aspect-ratio: 2.048 / 1; object-fit: cover; transition: transform .3s ease; }
.game-card:hover .game-image img { transform: scale(1.025); }
.card-badge { position: absolute; left: 16px; top: 16px; padding: 8px 12px; border-radius: 999px; color: #203245; background: rgba(255,255,255,.9); backdrop-filter: blur(8px); font-size: 11px; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; }
.game-content { padding: 25px 27px 28px; }
.game-type { margin-bottom: 6px; color: var(--blue); font-size: 11px; font-weight: 950; letter-spacing: .13em; text-transform: uppercase; }
.game-content h3 { margin-bottom: 12px; font-size: clamp(26px, 3vw, 36px); letter-spacing: -.04em; }
.game-content > p { min-height: 52px; margin-bottom: 22px; color: var(--muted); line-height: 1.6; }
.text-link { display: inline-flex; gap: 7px; color: var(--ink); font-weight: 900; }
.text-link span { color: var(--blue); transition: transform .18s ease; }
.text-link:hover span { transform: translate(2px, -2px); }
.all-games { margin-top: 22px; padding: 25px 28px; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 28px; border-radius: var(--radius-md); background: var(--blue-soft); }
.all-games > div { display: grid; gap: 5px; }
.all-games span { color: var(--muted); }
.button-dark { color: white; background: #192131; }

.about-section { padding-block: 100px; }
.about-card { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(50px, 8vw, 110px); padding: clamp(34px, 6vw, 72px); border-radius: 42px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line), 0 24px 70px rgba(34,62,92,.08); }
.about-copy > p:last-child { margin: 25px 0 0; color: var(--muted); font-size: 17px; line-height: 1.75; }
.principles { display: grid; }
.principles > div { padding: 22px 0; display: grid; grid-template-columns: 42px 1fr; gap: 4px 14px; border-bottom: 1px solid var(--line); }
.principles > div:last-child { border-bottom: 0; }
.principles span { grid-row: span 2; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 12px; color: var(--blue); background: var(--blue-soft); font-size: 11px; font-weight: 950; }
.principles strong { font-size: 18px; }
.principles p { margin: 0; color: var(--muted); line-height: 1.55; }

.support-section { margin-bottom: 90px; padding: clamp(38px, 6vw, 70px); display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 60px; border-radius: 38px; color: white; background: radial-gradient(circle at 90% 5%, rgba(102,202,255,.24), transparent 20rem), linear-gradient(135deg, #192131, #283b63); overflow: hidden; }
.support-section > div:first-child { max-width: 680px; }
.support-section h2 { margin-bottom: 18px; }
.support-section p:last-child { margin-bottom: 0; color: #c8d2e2; font-size: 17px; line-height: 1.7; }
.eyebrow-light { color: #90d7ff; }
.eyebrow-light > span { background: linear-gradient(90deg, #7bd3ff, #f592c1); }
.support-actions { display: grid; justify-items: start; gap: 18px; }
.button-white { color: #192131; background: white; }
.privacy-link { color: #dbe7f7; font-size: 14px; font-weight: 800; }

.site-footer { padding: 28px 0 40px; border-top: 1px solid var(--line); }
.footer-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 30px; }
.brand-footer .brand-mark { width: 42px; height: 42px; border-radius: 14px; font-size: 14px; }
.footer-inner > p { margin: 0; color: var(--muted); font-size: 13px; text-align: center; }
.footer-links { justify-self: end; display: flex; gap: 18px; color: var(--muted); font-size: 13px; font-weight: 800; }
.footer-links a:hover { color: var(--blue); }

html[data-theme="dark"] .nav-cta { color: #101722; background: #f3f7fc; }
html[data-theme="dark"] .hero-card { border-color: rgba(255,255,255,.10); }
html[data-theme="dark"] .art-glow-blue { background: #123652; opacity: .65; }
html[data-theme="dark"] .art-glow-pink { background: #43223b; opacity: .65; }
html[data-theme="dark"] .game-image { background: #202b39; }
html[data-theme="dark"] .game-card:hover { box-shadow: 0 26px 70px rgba(0,0,0,.34); }
html[data-theme="dark"] .card-badge { color: #e9f2fb; background: rgba(20,29,40,.9); }
html[data-theme="dark"] .principles span { color: #72c5ff; }
html[data-theme="dark"] .all-games span { color: var(--muted); }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
:focus-visible { outline: 3px solid rgba(37,133,230,.36); outline-offset: 4px; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-block: 68px 84px; }
  .hero-copy { max-width: 720px; }
  .hero-art { width: min(720px, 100%); margin-inline: auto; }
  .chip-one { left: 8px; }
  .chip-two { right: 8px; }
  .art-glow-blue { left: 0; }
  .art-glow-pink { right: 0; }
  .about-card { grid-template-columns: 1fr; }
  .support-section { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; justify-items: center; }
  .footer-links { justify-self: center; }
}

@media (max-width: 720px) {
  .shell { width: min(100% - 32px, 1160px); }
  .header-inner { min-height: 74px; }
  .brand-copy small { display: none; }
  .menu-button { display: block; }
  .site-nav { position: absolute; left: 16px; right: 16px; top: 66px; width: auto; justify-self: stretch; display: none; grid-template-columns: 1fr auto; align-items: center; gap: 4px; padding: 12px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); box-shadow: var(--shadow); }
  .site-nav.is-open { display: grid; }
  .site-nav a { padding: 12px 14px; }
  .site-nav > a:not(.nav-cta) { grid-column: 1 / -1; }
  .site-nav .theme-toggle { grid-column: 2; grid-row: 4; margin-right: 2px; }
  .nav-cta { grid-column: 1; grid-row: 4; text-align: center; }
  .hero { min-height: 0; gap: 48px; padding-block: 52px 68px; }
  h1 { font-size: clamp(43px, 13vw, 62px); }
  .hero-text { font-size: 17px; line-height: 1.58; }
  .floating-chip { display: none; }
  .hero-card { border-radius: 26px; padding: 8px; }
  .hero-card > img { border-radius: 20px; }
  .art-glow-blue { left: 0; }
  .art-glow-pink { right: 0; }
  .games-section, .about-section { padding-block: 72px; }
  .section-heading { grid-template-columns: 1fr; gap: 18px; }
  .games-grid { grid-template-columns: 1fr; }
  .game-content > p { min-height: 0; }
  .all-games { grid-template-columns: 1fr; }
  .all-games .button { width: 100%; }
  .about-card { padding: 30px 24px; border-radius: 28px; }
  .support-section { margin-bottom: 60px; padding: 34px 24px; border-radius: 28px; gap: 32px; }
  .support-actions, .button-white { width: 100%; }
  .button-white { padding-inline: 14px; font-size: 12px; overflow-wrap: anywhere; }
  .footer-links { flex-wrap: wrap; justify-content: center; }
}

@media (max-width: 430px) {
  .brand-mark { width: 43px; height: 43px; border-radius: 14px; }
  .brand-copy strong { font-size: 16px; }
  .hero-actions { display: grid; }
  .hero-actions .button { width: 100%; }
  .hero-notes { display: grid; gap: 10px; }
  .hero-card-caption { padding: 14px 7px 6px; }
  .hero-card-caption strong { font-size: 14px; }
  .round-arrow { width: 34px; height: 34px; }
  .section-heading h2, .about-copy h2, .support-section h2 { font-size: 38px; }
  .game-content { padding: 22px 20px 24px; }
  .all-games { padding: 22px 20px; }
  .principles > div { grid-template-columns: 38px 1fr; gap: 4px 10px; }
  .principles p { font-size: 14px; }
}

@media (max-width: 350px) {
  .shell { width: min(100% - 24px, 1160px); }
  h1 { font-size: 40px; }
  .brand-copy { display: none; }
  .site-nav { left: 12px; right: 12px; }
}

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