:root {
  color-scheme: light;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  color: #1b2535;
  background: #f6f5f2;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --navy: #101827;
  --ink: #1b2535;
  --muted: #687284;
  --gold: #f0ba55;
  --line: #e4e2dd;
  --surface: #fff;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; }
a { color: inherit; }
.site-header, footer { display: flex; align-items: center; justify-content: space-between; }
.site-header { height: 82px; padding: 0 max(6vw, calc((100vw - 1200px) / 2)); background: #fff; border-bottom: 1px solid #ebe9e5; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; color: var(--navy); font-size: 13px; font-weight: 900; letter-spacing: .11em; }
.brand small { display: block; margin-top: 3px; color: #778091; font-size: 8px; letter-spacing: .17em; }
.brand-mark { display: grid; width: 38px; height: 38px; place-items: center; border: 2px solid var(--gold); border-radius: 50%; background: var(--navy); color: #fff; font-size: 21px; }
nav { display: flex; align-items: center; gap: 32px; color: #626d7c; font-size: 13px; font-weight: 650; }
nav a { text-decoration: none; }
nav a:hover, .text-link:hover { color: #a46b08; }
nav .nav-cta { padding: 11px 17px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); }
.hero { display: grid; grid-template-columns: 1fr .92fr; align-items: center; gap: 6vw; min-height: 548px; padding: 68px max(8vw, calc((100vw - 1120px) / 2)); background: var(--navy); color: #fff; overflow: hidden; }
.hero-copy { max-width: 520px; }
.eyebrow { margin: 0 0 17px; color: #b67e1b; font-size: 10px; font-weight: 850; letter-spacing: .19em; }
.hero .eyebrow { color: var(--gold); }
h1, h2, p { margin-top: 0; }
.hero h1 { margin-bottom: 20px; font-size: clamp(46px, 6vw, 70px); line-height: .99; letter-spacing: -.055em; }
.hero h1 span { color: var(--gold); }
.hero-lede { max-width: 470px; margin-bottom: 28px; color: #c3cad5; font-size: 16px; line-height: 1.7; }
.hero-actions { display: flex; gap: 12px; }
.button { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; padding: 0 19px; border: 1px solid transparent; border-radius: 8px; text-decoration: none; font: inherit; font-size: 13px; font-weight: 750; cursor: pointer; transition: transform .15s ease, background .15s ease; }
.button:hover { transform: translateY(-1px); }
.button-gold { background: var(--gold); color: #222; }
.button-quiet { border-color: #3c4758; color: #f4f5f7; }
.button-quiet:hover { background: #1d293b; }
.hero-footnote { margin: 20px 0 0; color: #8f9bad; font-size: 11px; }
.game-card { max-width: 455px; padding: 23px; border: 1px solid #2a374a; border-radius: 17px; background: linear-gradient(145deg, #19263a, #121b2a); box-shadow: 0 30px 70px #050a1370; transform: rotate(1.5deg); }
.game-card-top, .game-card-bottom, .score-row { display: flex; align-items: center; justify-content: space-between; }
.game-card-top { color: #a9b4c4; font-size: 9px; font-weight: 800; letter-spacing: .17em; }
.live-dot { color: #7ce0ae; letter-spacing: .08em; }
.score-row { gap: 12px; margin: 24px 0; }
.score-box { flex: 1; padding: 17px; border: 1px solid #354257; border-radius: 11px; background: #1d2a3e; }
.score-box small, .score-box strong { display: block; }
.score-box small { color: #abb5c3; font-size: 9px; font-weight: 800; letter-spacing: .12em; }
.score-box strong { margin-top: 8px; font-size: 36px; }
.score-box.red strong { color: #fa8878; }
.score-box.blue strong { color: #82aaff; }
.versus { color: #738096; font-size: 10px; font-weight: 850; }
.question-box { min-height: 128px; padding: 19px; border: 1px solid #354257; border-radius: 11px; background: #0e1725; }
.question-box span { display: block; margin-bottom: 12px; color: var(--gold); font-size: 9px; font-weight: 850; letter-spacing: .15em; }
.question-box strong { display: block; font-size: 19px; }
.answer-line { margin-top: 11px; color: #96a2b3; font-size: 11px; }
.game-card-bottom { margin-top: 19px; color: #b4bfcd; font-size: 9px; font-weight: 800; letter-spacing: .1em; }
.feature-strip { display: grid; grid-template-columns: repeat(3, 1fr); padding: 28px max(8vw, calc((100vw - 1120px) / 2)); border-bottom: 1px solid var(--line); background: #fff; }
.feature-strip div { padding-left: 25px; border-left: 2px solid var(--gold); }
.feature-strip strong, .feature-strip span { display: block; }
.feature-strip strong { font-size: 17px; }
.feature-strip span { margin-top: 5px; color: var(--muted); font-size: 12px; }
.section { max-width: 1120px; margin: auto; padding: 94px 24px; }
.about-section { display: grid; grid-template-columns: .8fr 1.2fr; gap: 9vw; }
h2 { margin-bottom: 0; font-size: clamp(32px, 4vw, 46px); letter-spacing: -.04em; line-height: 1.08; }
#hero-title, #about-title { white-space: pre-line; }
.about-copy { max-width: 620px; color: #5d6878; font-size: 15px; line-height: 1.8; }
.about-copy p { margin-bottom: 17px; }
.text-link { color: #92620c; font-size: 13px; font-weight: 750; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.download-section { max-width: none; padding-right: max(8vw, calc((100vw - 1120px) / 2)); padding-left: max(8vw, calc((100vw - 1120px) / 2)); background: #efeee9; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 32px; margin-bottom: 25px; }
.section-heading .eyebrow { margin-bottom: 12px; }
.section-heading > p { max-width: 390px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.65; }
.file-list { display: grid; gap: 10px; }
.file-card { display: flex; align-items: center; gap: 15px; min-width: 0; padding: 17px 18px; border: 1px solid #e5e3dd; border-radius: 11px; background: var(--surface); }
.file-icon { display: grid; width: 39px; height: 39px; flex: 0 0 auto; place-items: center; border-radius: 10px; background: #f7efd9; color: #8a610e; font-size: 22px; }
.file-details { min-width: 0; flex: 1; }
.file-details strong, .file-details span { display: block; }
.file-details strong { overflow-wrap: anywhere; font-size: 13px; }
.file-details span { margin-top: 5px; color: var(--muted); font-size: 11px; }
.button-small { min-height: 36px; padding: 0 14px; background: var(--navy); color: #fff; font-size: 11px; }
.button-outline { border-color: #d8d6d0; background: transparent; color: var(--ink); }
#more-files { margin: 18px auto 0; }
.empty-files, .muted { color: var(--muted); font-size: 13px; }
.error-message { color: #a8392f; font-size: 13px; }
.contact-banner { display: flex; align-items: center; justify-content: space-between; gap: 25px; margin: 50px auto 80px; max-width: 1120px; padding: 37px 42px; border-radius: 15px; background: #e9e6dd; }
.contact-banner .eyebrow { margin-bottom: 10px; }
.contact-banner h2 { font-size: 29px; }
.contact-banner p:last-child { margin: 8px 0 0; color: var(--muted); font-size: 13px; }
footer { min-height: 92px; padding: 20px max(6vw, calc((100vw - 1200px) / 2)); border-top: 1px solid var(--line); background: #fff; }
footer > span { color: var(--muted); font-size: 11px; }
.footer-brand { transform: scale(.86); transform-origin: left center; }
.admin-page { min-height: 100vh; background: #f5f4f1; }
.admin-main { max-width: 940px; margin: 0 auto; padding: 65px 24px 100px; }
.login-card { display: grid; grid-template-columns: 1fr minmax(260px, .8fr); gap: 30px; align-items: center; padding: 28px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.login-card h2 { font-size: 26px; }
.login-card p { margin: 10px 0 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.login-form { display: grid; gap: 10px; }
.login-form label { color: #465163; font-size: 11px; font-weight: 750; }
.login-form input { min-height: 44px; padding: 10px 12px; border: 1px solid #d9dce1; border-radius: 7px; font: inherit; }
.login-form input:focus { outline: 2px solid #e6bb61; outline-offset: 1px; border-color: #b9851d; }
.login-form button { justify-self: start; }
.login-form .message { margin: 0; }
.admin-session-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 20px; padding: 12px 15px; border-radius: 9px; background: #e9f4ec; color: #267349; font-size: 12px; font-weight: 700; }
.admin-session-bar .button { min-height: 34px; font-size: 11px; }
.content-editor { margin-bottom: 30px; padding: 24px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.content-editor .section-heading { align-items: center; margin-bottom: 20px; }
.content-editor .section-heading h2 { font-size: 29px; }
.content-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.content-form label { display: flex; flex-direction: column; gap: 7px; color: #465163; font-size: 11px; font-weight: 750; letter-spacing: .04em; }
.content-form input, .content-form textarea { width: 100%; min-height: 42px; padding: 11px 12px; border: 1px solid #d9dce1; border-radius: 7px; color: var(--ink); background: #fff; font: inherit; font-size: 13px; font-weight: 450; letter-spacing: normal; resize: vertical; }
.content-form input:focus, .content-form textarea:focus { outline: 2px solid #e6bb61; outline-offset: 1px; border-color: #b9851d; }
.content-form-actions { display: flex; grid-column: 1 / -1; align-items: center; gap: 14px; }
.content-form-actions .message { margin: 0; }
.admin-heading { margin-bottom: 30px; }
.admin-heading h1 { margin-bottom: 12px; color: var(--navy); font-size: clamp(34px, 5vw, 50px); letter-spacing: -.05em; }
.admin-heading > p:last-child { max-width: 600px; color: var(--muted); line-height: 1.6; }
.upload-card { padding: 22px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.drop-zone { display: flex; min-height: 185px; flex-direction: column; align-items: center; justify-content: center; gap: 9px; border: 1px dashed #c7c4bb; border-radius: 10px; background: #fbfaf8; text-align: center; cursor: pointer; }
.drop-zone:hover { border-color: #b9851d; background: #fffdf7; }
.drop-zone strong { font-size: 15px; }
.drop-zone > span:not(.upload-symbol) { color: var(--muted); font-size: 11px; }
.upload-symbol { display: grid; width: 37px; height: 37px; place-items: center; border-radius: 50%; background: #f5e9cc; color: #8b640e; font-size: 25px; }
.drop-zone input { max-width: 250px; color: var(--muted); font-size: 11px; }
.upload-progress { margin-top: 20px; }
.progress-caption { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 8px; color: #434d5c; font-size: 12px; }
progress { width: 100%; height: 12px; accent-color: #b9851d; }
#cancel-upload { min-height: 34px; margin-top: 11px; font-size: 11px; }
.message { min-height: 0; margin: 10px 0 0; font-size: 12px; }
.message:empty { display: none; }
.success-message { color: #267349; }
.admin-files { margin-top: 55px; }
.admin-files .section-heading { align-items: center; }
.admin-files .section-heading h2 { font-size: 30px; }
.button-danger { border-color: #efd6d3; background: #fff; color: #9f3028; }
button:disabled { cursor: not-allowed; opacity: .6; }

@media (max-width: 760px) {
  .site-header { height: 70px; padding: 0 20px; }
  nav { gap: 13px; font-size: 11px; }
  nav .nav-cta { padding: 9px 11px; }
  .hero { grid-template-columns: 1fr; gap: 39px; padding: 58px 24px; }
  .hero h1 { font-size: clamp(47px, 12vw, 66px); }
  .game-card { width: 100%; margin: auto; transform: none; }
  .feature-strip { grid-template-columns: 1fr; gap: 20px; padding: 25px 24px; }
  .feature-strip div { padding: 2px 0 2px 15px; }
  .section { padding: 65px 24px; }
  .about-section { grid-template-columns: 1fr; gap: 25px; }
  .section-heading { align-items: start; flex-direction: column; gap: 16px; }
  .download-section { padding-right: 24px; padding-left: 24px; }
  .file-card { gap: 10px; padding: 13px; }
  .file-icon { width: 33px; height: 33px; }
  .button-small { padding: 0 10px; }
  .contact-banner { align-items: flex-start; flex-direction: column; margin: 25px 18px 52px; padding: 26px; }
  footer { align-items: flex-start; flex-direction: column; gap: 8px; padding: 16px 20px; }
  footer > span { padding-left: 2px; }
  .admin-main { padding: 45px 18px 70px; }
  .login-card { grid-template-columns: 1fr; padding: 20px; }
  .admin-session-bar { align-items: flex-start; }
  .content-editor { padding: 16px; }
  .content-form { grid-template-columns: 1fr; }
  .content-form-actions { align-items: flex-start; flex-direction: column; }
  .upload-card { padding: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
