/* Palette follows the dark WebGL board and its colorful arrows. */
:root { color-scheme: dark; --board: #0c0e1b; --surface: #242738; --line: #303449; --text: #f2f2fa; --muted: #a2a5bd; --blue: #42b8f5; --yellow: #f2e84e; font-family: "Avenir Next", Avenir, "Segoe UI", sans-serif; color: var(--text); background: var(--board); font-synthesis: none; }
* { box-sizing: border-box; }
body { margin: 0; min-width: 280px; background: radial-gradient(ellipse at 90% 22%, #1c254533 0, transparent 46%), radial-gradient(ellipse at 16% 50%, #1c35461a 0, transparent 43%), var(--board); }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 3px solid var(--blue); outline-offset: 7px; }
.page-shell { max-width: 1440px; min-height: 100vh; min-height: 100svh; margin: auto; padding: 0 64px; display: flex; flex-direction: column; }
.site-header { display: flex; justify-content: space-between; align-items: center; padding: 34px 0; }
.brand { display: flex; align-items: center; gap: 14px; font-size: 19px; font-weight: 700; letter-spacing: -.5px; }
.brand img { border-radius: 14px; box-shadow: 0 4px 12px #00000040; }
.brand small { display: block; margin-top: 3px; font-size: 11px; font-weight: 500; letter-spacing: 1px; color: var(--muted); }
.header-link { display: inline-flex; gap: 18px; align-items: center; min-height: 44px; font-size: 14px; font-weight: 600; }
.header-link:hover, .site-footer a:hover { color: var(--blue); }
.hero { flex: 1; display: grid; grid-template-columns: 1.03fr 1fr; gap: 30px; align-items: center; padding: 32px 0 62px; }
.hero-copy { padding-left: 24px; max-width: 590px; }
.eyebrow { display: flex; align-items: center; gap: 8px; font-size: 10px; font-weight: 700; letter-spacing: 1.5px; color: #afb2c8; margin: 0 0 25px; }
.eyebrow span { width: 7px; height: 7px; border-radius: 50%; background: var(--blue); flex-shrink: 0; }
h1 { margin: 0; font-size: clamp(44px, 4.9vw, 70px); line-height: 1.09; font-weight: 650; letter-spacing: -3px; }
h1 em { font-style: normal; color: var(--blue); }
.intro { font-size: 21px; line-height: 1.6; margin: 25px 0 13px; font-weight: 500; letter-spacing: -.35px; }
.description { max-width: 440px; color: #afb2c8; font-size: 15px; line-height: 1.85; margin: 0 0 29px; }
.store-links { display: flex; flex-wrap: wrap; gap: 14px; }
.store-links a { display: block; border-radius: 9px; transition: transform .18s ease; }
.store-links a:hover { transform: translateY(-3px); }
.store-links img { display: block; width: 120px; height: auto; }
.play-action { margin-top: 26px; }
.play-online { display: inline-flex; min-height: 66px; min-width: 292px; padding: 17px 26px; align-items: center; justify-content: center; gap: 18px; border-radius: 16px; background: var(--blue); color: var(--board); font-size: 20px; font-weight: 700; box-shadow: 0 10px 24px #42b8f51a; transition: background .18s ease, transform .18s ease; }
.play-online:hover { background: #72c9f6; transform: translateY(-2px); }
.play-online:active { transform: translateY(0); }
.play-icon { font-size: 17px; }
.play-note { margin: 13px 0 0; color: var(--muted); font-size: 12px; }
.mobile-downloads { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 18px 30px; padding: 22px 0; border-top: 1px solid var(--line); }
.mobile-downloads p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
.mobile-downloads p span { display: block; font-size: 11px; color: var(--muted); }
.mobile-downloads .store-links { align-items: center; gap: 10px; }
.mobile-downloads .store-links a { display: flex; align-items: center; min-height: 44px; }
.puzzle-details { display: flex; gap: 0; margin-top: 36px; color: var(--muted); font-size: 11px; line-height: 1.7; }
.puzzle-details span { padding: 0 22px; border-left: 1px solid var(--line); }
.puzzle-details span:first-child { padding-left: 0; border: 0; }
.puzzle-details span:nth-child(2) strong { color: #8cdb83; }
.puzzle-details span:nth-child(3) strong { color: var(--yellow); }
.puzzle-details strong { display: block; color: var(--text); font-size: 13px; font-weight: 600; }
.hero-visual { position: relative; width: 100%; padding: 0 0 0 15px; }
.visual-orbit { position: absolute; width: 100%; aspect-ratio: 1; top: 12%; left: 0; border: 1px solid #292d43; border-radius: 50%; background: #171a2b80; }
.visual-orbit::after { content: ""; position: absolute; inset: 32px; border: 1px solid #292d43; border-radius: 50%; }
.game-preview { display: block; position: relative; width: 100%; height: 514px; border-radius: 24px; }
.preview-front, .preview-back { position: absolute; width: 254px; height: auto; border: 5px solid #3b3e52; border-radius: 23px; box-shadow: 0 24px 45px -16px #000000b3; transition: transform .25s ease; }
.preview-back { width: 226px; top: 17px; left: 9%; transform: rotate(-12deg); }
.preview-front { top: 30px; right: 9%; transform: rotate(7deg); }
.game-preview:hover .preview-front { transform: translateY(-6px) rotate(4deg); }
.game-preview:hover .preview-back { transform: translateY(-3px) rotate(-14deg); }
.preview-caption { position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); display: flex; align-items: center; justify-content: space-between; gap: 28px; width: max-content; padding: 16px 24px; background: var(--surface); border: 1px solid #44485f; border-radius: 50px; font-size: 14px; font-weight: 600; box-shadow: 0 8px 25px #00000040; }
.preview-caption span { color: var(--blue); font-size: 21px; line-height: 1; }
.preview-note { position: relative; text-align: center; font-size: 11px; color: var(--muted); margin: 17px 0 0; }
.trail { position: absolute; width: 106px; height: 60px; pointer-events: none; }
.trail-top { right: 2%; top: -14px; color: var(--blue); transform: rotate(-12deg); }
.trail-bottom { left: 0; bottom: 54px; color: #8cdb83; transform: rotate(8deg); }
.site-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; min-height: 84px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.site-footer p { margin: 0; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 24px; }
.site-footer a { display: inline-flex; align-items: center; min-height: 44px; }
.contact { gap: 12px; }
.skip-link { position: absolute; top: 8px; left: 12px; padding: 12px; background: var(--surface); z-index: 10; transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
@media (min-width: 1500px) { .hero { padding-top: 60px; padding-bottom: 90px; } .game-preview { height: 560px; } .preview-front { width: 280px; } .preview-back { width: 250px; } }
@media (max-width: 1100px) { .page-shell { padding: 0 36px; } .hero-copy { padding-left: 0; } .hero { gap: 15px; } h1 { letter-spacing: -2px; } .preview-front { width: 224px; right: 4%; } .preview-back { width: 198px; left: 3%; } .game-preview { height: 465px; } .store-links { gap: 10px; }  .puzzle-details span { padding: 0 16px; } }
@media (max-width: 760px) {
  .page-shell { padding: 0 max(24px, env(safe-area-inset-left)) 0 max(24px, env(safe-area-inset-right)); }
  .site-header { padding: 22px 0; }
  .brand { font-size: 16px; gap: 10px; }
  .brand img { width: 44px; height: 44px; border-radius: 11px; }
  .brand small { font-size: 9px; }
  .header-link { font-size: 12px; gap: 6px; }
  .hero { grid-template-columns: 1fr; gap: 42px; padding: 35px 0 40px; }
  .hero-copy { max-width: 500px; margin: auto; text-align: center; }
  .eyebrow { justify-content: center; font-size: 8px; letter-spacing: 1px; margin-bottom: 19px; }
  h1 { font-size: clamp(42px, 8.7vw, 62px); letter-spacing: -2px; }
  .intro { font-size: 18px; margin-top: 21px; }
  .description { font-size: 14px; margin: 0 auto 24px; max-width: 380px; }
  .store-links { justify-content: center; }
  .mobile-downloads { text-align: center; gap: 12px; }
  .mobile-downloads p { width: 100%; }
  .play-online { width: 100%; min-width: 0; max-width: 350px; }
  .puzzle-details { justify-content: center; margin-top: 25px; }
  .hero-visual { max-width: 430px; margin: auto; padding-left: 0; }
  .preview-front { right: 9%; }
  .preview-back { left: 9%; }
  .trail-top { right: 0; top: -10px; }
  .trail-bottom { left: 0; }
  .site-footer { justify-content: center; gap: 2px 20px; padding: 18px 0; text-align: center; }
  .site-footer nav { order: -1; width: 100%; justify-content: center; gap: 18px; }
}
@media (max-width: 359px) { h1 { font-size: 37px; } .page-shell { padding-left: 16px; padding-right: 16px; } .brand { font-size: 14px; } .header-link { font-size: 11px; } .preview-front { width: 196px; right: 3%; } .preview-back { width: 176px; left: 3%; } .game-preview { height: 415px; } .puzzle-details span { padding: 0 12px; } .site-footer nav { gap: 12px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }
