@font-face {
  font-family: BlackOpsOne;
  src: url("BlackOpsOne-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

/* Color, shape and typography references: lib/app/app_design_tokens.dart. */
:root {
  color-scheme: dark;
  --bg: #07090d;
  --card: #181b23;
  --surface-high: #20242e;
  --line: #3a3d45;
  --text: #ffffff;
  --muted: #b7bbc4;
  --dim: #858a94;
  --primary: #128a3a;
  /* Slightly deeper action fill keeps small white labels above 4.5:1. */
  --action: #118839;
  --bright: #19b95a;
  --radius: 15px;
  font-family: Roboto, "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font-size: 15px; line-height: 1.65; min-height: 100vh; }
a { color: inherit; }
.topbar { width: min(100%, 1080px); margin: auto; padding: 28px 32px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid #242831; }
.brand { border-left: 3px solid var(--bright); padding-left: 13px; display: flex; flex-direction: column; text-decoration: none; }
.brand-caption { color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: 1.7px; }
.wordmark { font: 400 30px/1.2 BlackOpsOne, sans-serif; }
.badge { display: inline-flex; align-items: center; gap: 8px; border: 1px solid #254833; background: #0e2016; color: #bce7c9; border-radius: 999px; padding: 7px 12px; font-size: 11px; font-weight: 600; white-space: nowrap; }
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--bright); display: inline-block; flex-shrink: 0; }
main { max-width: 1000px; margin: auto; padding: 0 32px; }
.intro { min-height: 320px; position: relative; display: flex; align-items: center; isolation: isolate; overflow: hidden; }
.intro::after { content: ""; z-index: -1; position: absolute; inset: 0 -1px 0 30%; background: linear-gradient(90deg, var(--bg) 0%, #07090d75 34%, #07090d18 76%), linear-gradient(0deg, var(--bg), transparent 35%, transparent 80%, var(--bg)), url("hero.webp") right 40% / cover no-repeat; opacity: .85; }
.intro-content { max-width: 590px; padding: 34px 0 36px; }
.eyebrow, .section-label { margin: 0 0 10px; color: var(--bright); font-size: 10px; font-weight: 700; letter-spacing: 1.6px; }
h1 { font: 400 clamp(30px, 4.5vw, 46px)/1.15 BlackOpsOne, sans-serif; margin: 0 0 18px; letter-spacing: -.4px; }
.lead { max-width: 420px; color: var(--muted); margin: 0 0 20px; font-size: 15px; }
.intro-meta { display: flex; align-items: center; gap: 9px; color: var(--dim); font-size: 11px; }
.meta-line { width: 22px; height: 2px; background: var(--bright); flex-shrink: 0; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; margin-bottom: 20px; }
.card-head { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 25px; }
.card-head > div { min-width: 0; }
.section-icon { display: grid; place-items: center; width: 44px; min-width: 44px; height: 44px; background: var(--surface-high); border: 1px solid var(--line); border-radius: 12px; color: var(--bright); }
.section-icon svg { width: 23px; height: 23px; }
h2 { font: 400 23px/1.3 BlackOpsOne, sans-serif; margin: 0 0 9px; overflow-wrap: anywhere; }
.card p { margin: 0 0 18px; color: var(--muted); }
.card-head p { margin-bottom: 0; }
.card .section-label { color: var(--bright); margin-bottom: 7px; }
.platform { color: var(--muted); background: var(--surface-high); border: 1px solid var(--line); border-radius: 6px; padding: 5px 9px; margin-left: auto; font-size: 9px; letter-spacing: 1px; flex-shrink: 0; }
label { display: block; font-size: 12px; font-weight: 600; margin-bottom: 8px; color: #e6e7ea; }
.input-row { display: flex; gap: 12px; }
input { width: 100%; min-width: 0; min-height: 52px; background: linear-gradient(110deg, #20252d, #171b22); border: 1px solid #454a54; color: var(--text); border-radius: var(--radius); padding: 14px 16px; font: inherit; }
input::placeholder { color: var(--dim); opacity: 1; }
input:focus { outline: 2px solid var(--bright); outline-offset: 2px; }
button, .button { display: inline-flex; align-items: center; justify-content: center; gap: 22px; min-height: 52px; padding: 13px 22px; background: var(--action); color: white; border: 1px solid transparent; border-radius: var(--radius); font: 700 14px/1.4 Roboto, "Segoe UI", Arial, sans-serif; text-decoration: none; cursor: pointer; white-space: nowrap; transition: background .14s, border-color .14s; }
button:hover, .button:hover { background: #107a33; }
button:disabled { opacity: .6; cursor: wait; }
button:focus-visible, a:focus-visible, summary:focus-visible { outline: 2px solid var(--bright); outline-offset: 4px; }
button span, .button span { font-size: 20px; line-height: 1; font-weight: 400; }
.card-footnote { display: flex; align-items: center; gap: 9px; border-top: 1px solid var(--line); margin-top: 24px; padding-top: 16px; color: var(--dim); font-size: 11px; }
#code-form { border-top: 1px solid var(--line); margin-top: 24px; padding-top: 22px; }
#code { letter-spacing: 6px; }
.card .hint { font-size: 12px; margin: 10px 0 16px; }
#notice:empty { display: none; }
#notice { border: 1px solid #315341; border-left: 3px solid var(--bright); background: #12221a; border-radius: 10px; padding: 12px 16px; font-size: 13px; margin: 0 0 20px; white-space: pre-wrap; }
.release-notes { white-space: pre-wrap; }
.download-note { display: flex; gap: 13px; padding: 18px; border: 1px solid #38463e; background: #141e1a; border-radius: 12px; margin: 24px 0; }
.note-icon { color: var(--bright); flex-shrink: 0; width: 21px; padding-top: 2px; }
.note-icon svg { width: 21px; height: 21px; }
.download-note h3 { font-size: 13px; font-weight: 700; margin: 0 0 7px; }
.download-note p { font-size: 12px; line-height: 1.7; margin-bottom: 8px; }
.download-note p:last-child { margin-bottom: 0; }
.download-note strong { color: #dce3de; overflow-wrap: anywhere; }
.download-action { display: flex; gap: 16px; align-items: center; }
.download-caption { color: var(--dim); font-size: 11px; }
details { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13px; }
summary { cursor: pointer; color: var(--muted); }
details p { margin-top: 12px !important; }
.session-row { display: flex; align-items: center; justify-content: space-between; gap: 15px; border-top: 1px solid var(--line); margin-top: 22px; padding-top: 16px; font-size: 11px; color: var(--muted); overflow-wrap: anywhere; }
.session-row strong { font-weight: 500; color: var(--text); }
.text-button { color: var(--muted); background: var(--surface-high); border: 1px solid var(--line); padding: 7px 14px; min-height: 36px; font-size: 12px; border-radius: 10px; }
.text-button:hover { background: #29303b; color: white; }
.tester-list { margin-top: 22px; }
.tester-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); font-size: 13px; overflow-wrap: anywhere; }
.tester-row span { min-width: 0; }
.tester-row small { display: block; font-size: 11px; color: var(--muted); }
.tester-row button { background: var(--surface-high); border: 1px solid var(--line); color: var(--muted); padding: 9px 13px; font-size: 11px; min-height: 40px; border-radius: 10px; }
.tester-row button:hover { color: white; border-color: #6c727e; }
footer { display: flex; justify-content: space-between; gap: 16px; color: var(--dim); padding: 9px 2px 30px; font-size: 10px; }
footer a { color: var(--dim); text-decoration: none; }
footer a:hover { color: var(--muted); text-decoration: underline; }
[hidden] { display: none !important; }
@media (max-width: 600px) {
  .topbar { padding: 20px; gap: 12px; }
  .brand-caption { font-size: 7px; letter-spacing: 1px; }
  .wordmark { font-size: 25px; }
  .badge { font-size: 9px; padding: 6px 9px; gap: 6px; }
  main { padding: 0 18px; }
  .intro { min-height: 280px; }
  .intro::after { inset: 0 -1px 0 15%; background-position: right 35%; opacity: .45; }
  .intro-content { padding: 30px 2px; }
  h1 { font-size: clamp(27px, 7.9vw, 39px); }
  .lead { max-width: 300px; font-size: 13px; }
  .intro-meta { font-size: 10px; }
  .card { padding: 23px 20px; }
  .card-head { gap: 12px; margin-bottom: 22px; }
  .section-icon { width: 38px; min-width: 38px; height: 38px; border-radius: 10px; }
  .section-icon svg { width: 21px; height: 21px; }
  h2 { font-size: 20px; }
  .card p { font-size: 13px; }
  .card .section-label { font-size: 9px; }
  .platform { display: none; }
  .input-row { flex-direction: column; gap: 10px; }
  input { font-size: 16px; }
  .download-note { padding: 15px; gap: 10px; }
  .download-note p { font-size: 12px; }
  .download-action { flex-direction: column; align-items: stretch; gap: 10px; }
  .download-caption { text-align: center; }
  .session-row { align-items: flex-start; flex-direction: column; gap: 12px; }
  .tester-row { gap: 10px; }
  .tester-row button { max-width: 120px; white-space: normal; }
  footer { font-size: 10px; padding-bottom: 24px; }
}
@media (prefers-reduced-motion: reduce) { button, .button { transition: none; } }
