:root { color-scheme:dark; font:16px/1.5 system-ui,sans-serif; color:#faf0da; background:#151524; }
* { box-sizing:border-box; }
[hidden] { display:none!important; }
body { margin:0; }
header { display:flex; justify-content:space-between; align-items:center; padding:.65rem max(1rem,calc((100vw - 66rem)/2)); border-bottom:1px solid #51415f; }
header strong { display:flex; align-items:center; gap:.5rem; }
header img { object-fit:contain; }
a { color:#ffd788; }
main { width:min(1056px,100%); margin:auto; padding:clamp(.75rem,3vw,2rem); }
#intro { display:grid; grid-template-columns:1.2fr 1fr; align-items:center; gap:clamp(1rem,3vw,2rem); background:#242239; border:1px solid #554359; padding:clamp(.8rem,3vw,2rem); border-radius:1rem; }
h1 { font:700 clamp(2.8rem,7vw,5.4rem)/.96 Georgia,serif; margin:0; }
canvas { display:block; width:100%; height:auto; border:1px solid #674e74; border-radius:.65rem; }
button { min-height:44px; border-radius:.48rem; border:1px solid #b39a88; padding:.5rem .8rem; background:#ffcf79; color:#251e31; font:inherit; font-weight:720; cursor:pointer; }
button:disabled { opacity:.55; cursor:default; }
button:focus-visible,a:focus-visible { outline:3px solid #addbe7; outline-offset:3px; }
.buttons,.hud { display:flex; align-items:center; flex-wrap:wrap; gap:.55rem; }
.hud { justify-content:space-between; margin:.55rem 0; }
.health { display:grid; grid-template-columns:repeat(2,1fr); gap:1rem; margin:.6rem 0; }
.health label { font-weight:700; }
.health span { float:right; font-size:.82rem; color:#ead7c0; }
progress { display:block; width:100%; accent-color:#8dc6a6; }
#foe { accent-color:#e6867c; }
.cards { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:.55rem; }
.card { text-align:left; min-height:95px; background:#302840; color:#faf0da; border-color:var(--spell); }
.card strong,.card small { display:block; overflow-wrap:anywhere; }
.card small { color:var(--spell); }
#events { min-height:2.8em; }
#notice { color:#ffcbac; }
details { margin-top:1rem; color:#e9d9c3; }
@media(max-width:680px) { #intro { grid-template-columns:1fr; } .cards { grid-template-columns:repeat(2,minmax(0,1fr)); } }
