:root { color-scheme: dark; --primary: #9257ff; --ink: #f1edf7; --muted: #b6b0c4; --surface: #1d182a; --border: #3b334d; }
* { box-sizing: border-box; }
body { margin: 0; background: #100c19; color: var(--ink); font-family: system-ui, sans-serif; line-height: 1.55; }
main { max-width: 1056px; margin: auto; padding: 32px 28px; }
header, .section-heading { display: flex; justify-content: space-between; gap: 20px; align-items: center; }
.eyebrow { color: #b895ff; font-size: 12px; font-weight: 700; letter-spacing: .14em; margin: 0; }
h1 { font-size: clamp(32px, 6vw, 52px); line-height: 1.1; margin: 8px 0 16px; letter-spacing: -.04em; }
h2 { font-size: 19px; margin: 0; }
p { margin: 12px 0; }
.intro { max-width: 780px; }
.hint, footer, label { color: var(--muted); font-size: 13px; }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 14px 0; }
button, select, input { border: 1px solid var(--border); border-radius: 9px; padding: 11px 14px; font: inherit; color: var(--ink); background: var(--surface); }
button { cursor: pointer; font-size: 14px; }
button:hover:not(:disabled) { border-color: #b895ff; background: #35254e; }
button:disabled { opacity: .42; cursor: default; }
button:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid #c4a7ff; outline-offset: 3px; }
#attack, #practice { background: var(--primary); color: white; }
label { display: flex; align-items: center; gap: 8px; }
input { width: 100px; }
select { max-width: 150px; font-size: 13px; }
#status { min-height: 26px; color: #d7c5fa; }
.arena { overflow: hidden; border: 1px solid var(--border); border-radius: 16px; background: #171327; }
canvas { display: block; width: 100%; height: auto; }
.stats { display: flex; flex-wrap: wrap; justify-content: space-around; gap: 8px 20px; padding: 14px; border-top: 1px solid var(--border); font-size: 14px; }
.stats b { color: #c4a7ff; margin-left: 6px; }
#outcome { font-weight: 650; }
section:not(.arena) { padding: 22px; border: 1px solid var(--border); border-radius: 14px; margin-top: 22px; background: #16111f; }
.badge { font-size: 11px; color: #c8f39a; border: 1px solid #455c32; border-radius: 20px; padding: 3px 10px; }
.gifts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 18px 0; }
.gifts button { display: grid; gap: 8px; text-align: left; padding: 18px; }
.gifts code { color: #b6b0c4; font-size: 12px; }
pre { overflow-wrap: anywhere; white-space: pre-wrap; font-size: 12px; color: #c8f39a; margin-bottom: 0; }
footer { border-top: 1px solid var(--border); margin-top: 24px; padding-top: 10px; }
[hidden] { display: none !important; }
@media (max-width: 600px) { main { padding: 20px 14px; } header { align-items: flex-start; } header label > span { display: none; } .gifts { grid-template-columns: 1fr; gap: 8px; } .gifts button { display: flex; justify-content: space-between; padding: 14px; } .section-heading { flex-wrap: wrap; gap: 8px; } section:not(.arena) { padding: 16px; } }
