:root { color-scheme: dark; --ink: #f3ead9; --muted: #9ab4bf; --mint: #a5e3ce; --orange: #ffb86b; }
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: #071d2a; font-family: "Segoe UI", "Microsoft YaHei", sans-serif; }
body::before { content: ""; position: fixed; inset: 0; pointer-events: none; background: radial-gradient(ellipse at 65% 15%, #163c4938, transparent 65%); }
main { max-width: 1180px; padding: 0 32px; margin: auto; position: relative; }
a { color: var(--mint); text-decoration: none; } a:hover { text-decoration: underline; }
button, a, canvas { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, canvas:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
.topbar { display: flex; align-items: center; gap: 26px; min-height: 75px; border-bottom: 1px solid #284350; font-size: 12px; }
.brand { color: var(--ink); font-weight: 750; letter-spacing: 1px; margin-right: auto; } .brand span { color: #86a5b3; font-weight: 400; margin-left: 10px; }
.heading { display: flex; justify-content: space-between; gap: 20px; align-items: center; padding: 34px 0 27px; }
.eyebrow { color: var(--mint); font-size: 10px; font-weight: 650; letter-spacing: 2.3px; margin: 0 0 12px; }
h1 { font-family: Georgia, "Microsoft YaHei", serif; font-size: clamp(32px,4.3vw,56px); font-weight: 500; letter-spacing: -1.8px; line-height: 1.12; margin: 0 0 13px; }
h1 span { color: var(--orange); } .heading p:last-child { color: var(--muted); font-size: 14px; margin: 0; line-height: 1.6; }
.edition { text-align: right; font-size: 9px; letter-spacing: 2px; color: #7d9ca9; } .edition strong { display: block; color: #bdc9c7; font-size: 36px; font-weight: 300; line-height: 1.2; } .edition span { letter-spacing: 0; font-size: 11px; }
.game-shell { border: 1px solid #36545f; border-radius: 14px; overflow: hidden; box-shadow: 0 18px 60px #00121b60; background: #0c2735; }
.hud { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; min-height: 57px; padding: 12px 22px; background: #102d3a; }
.mission { display: flex; gap: 10px; align-items: center; color: var(--mint); font-size: 10px; letter-spacing: 1.2px; }
.pulse { width: 6px; height: 6px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 9px #a5e3ce80; }
.meters { display: flex; gap: 24px; } .meters span { display: flex; gap: 10px; align-items: center; font-size: 9px; color: #9ab4bf; letter-spacing: 1px; } .meters b { color: var(--ink); font-size: 16px; font-weight: 550; font-variant-numeric: tabular-nums; letter-spacing: 0; min-width: 32px; }
.board { position: relative; aspect-ratio: 5/3; background: #143e50; }
canvas { display: block; width: 100%; height: 100%; touch-action: none; cursor: crosshair; }
.overlay { position: absolute; inset: 0; display: grid; place-items: center; padding: 18px; background: #071d2a48; }
.overlay[hidden] { display: none; }
.dialog { text-align: center; max-width: 410px; padding: 30px 34px; background: #0b2537ee; border: 1px solid #507075; border-radius: 14px; box-shadow: 0 18px 60px #00101870; backdrop-filter: blur(8px); }
.dialog-kicker { color: var(--orange); font-size: 10px; letter-spacing: 2px; } .dialog h2 { font-family: Georgia, "Microsoft YaHei", serif; font-size: 31px; line-height: 1.2; font-weight: 500; margin: 15px 0; } .dialog p { color: #b7c9cf; font-size: 14px; line-height: 1.7; margin: 0 0 22px; }
button { font: inherit; border-radius: 6px; cursor: pointer; min-height: 44px; transition: background .15s; }
.primary { color: #172c36; background: var(--orange); padding: 12px 34px; font-weight: 700; border: 1px solid #f6c88d; } .primary:hover { background: #ffce93; }
.dialog-foot { display: block; margin-top: 18px; color: #8daab6; font-size: 11px; }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 18px; }
.toolbar p { font-size: 11px; color: #9ab4bf; } .toolbar > div { display: flex; gap: 8px; }
.toolbar button { color: #c7d8db; border: 1px solid #395462; padding: 8px 13px; font-size: 11px; background: #102e3c; } .toolbar button:hover { background: #254754; } .toolbar button:disabled { cursor: default; opacity: .38; }
.toast { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); border-radius: 20px; color: #102935; background: var(--mint); padding: 9px 20px; font-size: 13px; font-weight: 600; white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity .15s; }
.toast.visible { opacity: 1; } .toast.hit { background: #ffc397; }
.instructions { display: grid; grid-template-columns: repeat(3,1fr); gap: 35px; padding: 30px 0 25px; } .instructions > div { position: relative; padding-left: 37px; }
.step { position: absolute; left: 0; top: 2px; font-family: Georgia,serif; font-size: 20px; color: #668a99; }
h3 { font-size: 13px; margin: 0 0 9px; font-weight: 600; } .instructions p { margin: 0; color: #8daab6; font-size: 12px; line-height: 1.7; }
footer { display: flex; gap: 20px; flex-wrap: wrap; border-top: 1px solid #284350; padding: 21px 0 30px; color: #70929f; font-size: 10px; line-height: 1.7; } footer span { margin-right: auto; } footer a { color: #9fbebf; }
@media (max-width: 650px) {
  main { padding: 0 16px; } .topbar { min-height: 58px; gap: 13px; font-size: 10px; } .brand { letter-spacing: .3px; } .brand span { display: none; } #article-link { font-size: 10px; }
  .heading { padding: 25px 0 20px; } .eyebrow { font-size: 8px; letter-spacing: 1.2px; max-width: 260px; line-height: 1.6; } h1 { letter-spacing: -1px; margin-bottom: 9px; } .heading p:last-child { font-size: 12px; max-width: 300px; } .edition { display: none; }
  .hud { padding: 12px; } .mission { font-size: 8px; } .meters { gap: 14px; width: 100%; justify-content: space-between; } .meters span { font-size: 8px; } .meters b { font-size: 14px; }
  .dialog { padding: 12px 18px; max-width: 290px; border-radius: 9px; } .dialog h2 { font-size: 21px; margin: 6px 0 8px; } .dialog-kicker { font-size: 8px; } .dialog p { font-size: 11px; line-height: 1.5; margin-bottom: 10px; } .dialog-foot { display: none; } .primary { font-size: 12px; min-height: 40px; padding: 8px 25px; }
  .overlay { padding: 8px; } .toolbar { display: block; padding: 7px 10px 10px; } .toolbar p { font-size: 10px; text-align: center; margin: 5px 0 8px; } .toolbar > div { justify-content: center; } .toolbar button { min-height: 44px; padding: 8px 16px; }
  .toast { font-size: 10px; padding: 7px 12px; bottom: 8px; max-width: 96%; white-space: normal; text-align: center; width: max-content; }
  .instructions { grid-template-columns: 1fr; gap: 17px; padding: 24px 0; } .instructions p { font-size: 11px; } h3 { margin-bottom: 5px; } footer { gap: 10px 20px; padding-top: 15px; } footer span { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
