:root { color-scheme: dark; }
body { margin: 0; background: #1a1147; color: #fff; }
[hidden] { display: none !important; }
#site { font-family: Tahoma, Arial, sans-serif; line-height: 1.9; background: radial-gradient(ellipse at 15% 10%, #392178 0, transparent 44%), #140d34; }
#site * { box-sizing: border-box; }
#site a { color: inherit; text-decoration: none; }
#site a:focus-visible, #site summary:focus-visible { outline: 3px solid #ffca28; outline-offset: 6px; }
#site .wrap { width: min(1120px, calc(100% - 40px)); margin: auto; }
#site header { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 28px 0; }
#site .brand { display: flex; align-items: center; gap: 12px; font-size: 30px; font-weight: 700; }
#site .brand img { border-radius: 14px; }
#site nav, #site footer div { display: flex; flex-wrap: wrap; gap: 24px; }
#site nav a, #site footer a { color: #d4cbea; font-size: 14px; }
#site nav a:hover, #site footer a:hover { color: #ffca28; }
#site .hero { display: grid; grid-template-columns: 1.25fr 1fr; align-items: center; gap: 70px; padding: 65px 0 100px; }
#site .eyebrow { color: #ffca28; font-weight: 700; letter-spacing: .4px; margin: 0 0 14px; }
#site h1 { font-size: clamp(44px, 5.7vw, 72px); line-height: 1.4; margin: 0 0 22px; }
#site h1 span { color: #ffca28; }
#site h2 { font-size: clamp(26px, 3.3vw, 36px); line-height: 1.5; margin: 0 0 30px; }
#site h3 { font-size: 21px; margin: 0 0 10px; }
#site p { color: #cfc5e7; }
#site .lead { font-size: 19px; max-width: 540px; margin-bottom: 30px; }
#site .actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
#site .button { display: inline-flex; align-items: center; justify-content: center; gap: 20px; border-radius: 14px; padding: 12px 25px; font-weight: 700; border: 1px solid transparent; }
#site .button.primary { background: #ffca28; color: #22104b; }
#site .button.primary:hover { background: #ffdb70; }
#site .button.secondary { border-color: #6a5599; background: #ffffff05; }
#site .button.secondary:hover { background: #ffffff12; }
#site .platforms { font-size: 13px; margin-top: 20px; }
#site .hero-art { text-align: center; transform: rotate(-4deg); padding: 28px; background: #ffffff05; border: 1px solid #69529980; border-radius: 30px; box-shadow: 0 35px 70px #09031966; }
#site .board-label { font-size: 24px; font-weight: 700; color: #ffca28; margin-bottom: 22px; }
#site .letter-board { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; direction: ltr; }
#site .letter-board span { display: grid; place-items: center; aspect-ratio: 1; background: #3e2981; border-radius: 14px; font-size: 30px; font-weight: 700; }
#site .letter-board .gold { background: #ffca28; color: #241143; }
#site .letter-board .pink { background: #ae5ca7; }
#site .hero-art p { font-size: 14px; margin-bottom: 0; }
#site .section { padding: 52px 0; scroll-margin-top: 25px; }
#site .games { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
#site .games article { padding: 28px; background: #24164f; border: 1px solid #4d3874; border-radius: 22px; }
#site .games article p { font-size: 15px; margin: 0; }
#site .games .featured { grid-column: span 2; background: linear-gradient(120deg, #46298b, #30205f); }
#site .featured h3 { font-size: 28px; }
#site .featured a { display: inline-block; margin-top: 18px; color: #ffca28; font-weight: 700; }
#site .badge { display: inline-block; background: #ffca28; color: #241143; padding: 0 13px; border-radius: 20px; font-size: 12px; font-weight: 700; margin-bottom: 12px; }
#site .game-icon { display: block; font-size: 30px; margin-bottom: 14px; }
#site .steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
#site .steps article > span { display: inline-grid; place-items: center; width: 44px; height: 44px; background: #3c2678; color: #ffca28; font-size: 22px; border-radius: 14px; margin-bottom: 20px; }
#site .steps p { font-size: 15px; margin: 0; }
#site .faq { max-width: 830px; }
#site details { padding: 18px 0; border-bottom: 1px solid #4d3874; }
#site summary { cursor: pointer; font-weight: 700; }
#site details p { margin: 12px 0 0; }
#site .download { display: flex; align-items: center; justify-content: space-between; gap: 28px; margin: 55px 0 65px; padding: 35px; background: #30205f; border-radius: 24px; }
#site .download h2 { font-size: 26px; margin-bottom: 8px; }
#site .download p { margin: 0; }
#site footer { display: flex; align-items: center; justify-content: space-between; gap: 25px; padding: 30px 0; border-top: 1px solid #4d3874; color: #bcaed8; font-size: 14px; }
.app-loading { padding: 48px 24px; text-align: center; font: 18px Tahoma, Arial, sans-serif; }
.app-loading a { color: #ffca28; }
body.app-mode #site { display: none; }
@media (max-width: 780px) {
  #site .hero { grid-template-columns: 1fr; gap: 40px; padding: 35px 0 50px; }
  #site .hero-art { width: min(350px, 90%); margin: auto; }
  #site .games { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #site .steps { grid-template-columns: 1fr; gap: 28px; }
  #site .download, #site footer { display: block; }
  #site .download .actions { margin-top: 25px; }
  #site footer div { margin-top: 15px; }
}
@media (max-width: 480px) {
  #site .wrap { width: calc(100% - 32px); }
  #site header { gap: 12px; }
  #site nav { gap: 12px; }
  #site nav a { font-size: 12px; }
  #site .brand { gap: 8px; font-size: 24px; }
  #site .brand img { width: 40px; height: 40px; }
  #site .games { grid-template-columns: 1fr; }
  #site .games .featured { grid-column: auto; }
  #site .download { padding: 25px; }
  #site .section { padding: 35px 0; }
}
