:root { color-scheme: light; font-family: system-ui, -apple-system, sans-serif; color: #172f34; background: #f3f6f2; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
main { width: min(100% - 32px, 980px); margin: 32px auto 48px; }
.eyebrow { color: #527260; letter-spacing: .12em; font-size: 12px; font-weight: 750; }
h1 { font-size: clamp(22px, 4vw, 34px); margin: 8px 0; letter-spacing: -.04em; }
h1 span { color: #82958c; font-size: .65em; margin: 0 5px; }
.title-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.description { font-size: 15px; line-height: 1.6; }
.scope, footer { color: #64766c; font-size: 12px; line-height: 1.7; }
.turn-banner { background: #183e36; border-radius: 14px; color: white; padding: 18px 22px; margin: 24px 0 16px; font-weight: 750; font-size: 18px; }
.boards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.card { padding: 24px; border-radius: 20px; border: 2px solid transparent; position: relative; background: #e7eddf; }
.card.lightning { background: #f5edca; }
.card.current { border-color: #2f6652; }
.player-label { text-transform: uppercase; font-size: 12px; font-weight: 750; color: #53695d; }
.card h2 { font-size: 26px; margin: 18px 0 8px; }
.hp { font-size: 20px; font-weight: 750; }
meter { display: block; width: 100%; height: 16px; margin: 6px 0 18px; }
.stats { line-height: 1.9; font-size: 13px; }
.source { display: inline-block; margin-top: 12px; color: #46665a; font-size: 12px; }
.panel { padding: 22px; background: white; border: 1px solid #e0e7df; border-radius: 18px; margin-top: 16px; }
.panel h2 { font-size: 17px; margin: 0 0 12px; }
#hint { font-size: 14px; line-height: 1.6; }
#error { color: #ad3535; }
button { font: inherit; font-weight: 650; min-height: 48px; padding: 12px 18px; background: #245640; color: white; border: 1px solid transparent; border-radius: 12px; cursor: pointer; text-align: left; }
button.secondary { background: #f2f5f0; color: #355246; border-color: #d5dfd5; }
button:disabled { opacity: .45; cursor: not-allowed; }
button:focus-visible, a:focus-visible { outline: 3px solid #557be0; outline-offset: 3px; }
.button-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
ol { margin: 0; padding-left: 24px; font-size: 13px; line-height: 1.9; color: #4b6256; }
footer { margin: 20px 4px; }
@media (max-width: 580px) { main { width: calc(100% - 24px); margin-top: 20px; } .boards { gap: 10px; } .card { padding: 14px; border-radius: 14px; } .card h2 { font-size: 20px; } .hp { font-size: 15px; } .stats { font-size: 12px; } .title-row { align-items: start; } .title-row button { font-size: 12px; padding: 10px; white-space: nowrap; } .panel { padding: 18px; } .button-row button { flex: 1 1 100%; } }
