.hud .fighter[data-character="samurai"]{--fighter-accent:#a8503f;--fighter-tint:#f4ded0}.hud .fighter[data-character="samurai"] .hp b{background:linear-gradient(90deg,#9d5140,#dc9c69)}
.volume-control{position:relative}.volume-panel{position:absolute;right:0;top:calc(100% + 10px);width:240px;padding:16px;border:1px solid #c7d6c9;border-radius:12px;background:#fffdf6;box-shadow:0 10px 32px #31544822;z-index:40}.volume-panel[hidden]{display:none}.volume-panel label{display:flex;justify-content:space-between;font-size:13px;color:#315b50}.volume-panel output{font-variant-numeric:tabular-nums}.volume-panel input{display:block;width:100%;margin:18px 0;accent-color:#479c8b;cursor:pointer}.volume-panel>div{display:flex;justify-content:space-between;gap:16px}.volume-panel button{border:1px solid #c7d6c9;background:#f5f8ee}.moves .move-card{cursor:default}
.round-intro{position:absolute;inset:0;z-index:8;display:grid;place-items:center;pointer-events:none;background:linear-gradient(90deg,#315e5622,transparent 36%,transparent 64%,#315e5622)}
.round-intro[hidden]{display:none}.round-intro>div{display:flex;align-items:center;justify-content:center;gap:clamp(20px,5vw,72px);width:100%;padding:24px 12px;background:linear-gradient(90deg,transparent,#fff9e9eb 25%,#fff9e9eb 75%,transparent);border-block:1px solid #fff8;box-shadow:0 14px 40px #5b725516;color:#315b50}
.round-intro span{width:7em;text-align:center;font-weight:700;font-size:clamp(14px,2.2vw,28px)}.round-intro b{font-size:clamp(24px,4.6vw,60px);letter-spacing:.16em;white-space:nowrap;color:#967025;text-shadow:0 2px #fff8}.round-intro[data-phase="go"] b{color:#bd6d27;animation:round-go .24s ease-out}.round-intro[data-phase="go"] span{opacity:.5}@keyframes round-go{from{transform:scale(1.4);opacity:.3}to{transform:scale(1);opacity:1}}
@media(max-width:600px){.round-intro>div{gap:12px;padding:16px 8px}.round-intro span{width:5em;font-size:13px}.round-intro b{font-size:26px}}

/* Compact corner HUD and warm, readable arcade controls. */
:root{--ink:#284b47;--ink-soft:#5b7770;--cream:#fffdf6;--accent:#c18a28;--mint:#479c8b}
body{background:radial-gradient(ellipse at top left,#fff1d5,transparent 50%),linear-gradient(155deg,#fcfaf3,#eff6ef);color:var(--ink)}
.app{max-width:1480px;padding:0 32px}header{height:96px}.brand{font-size:24px;letter-spacing:2px;gap:12px}.brand small{font-size:9px;letter-spacing:2px;color:var(--ink-soft)}.seal{width:44px;height:44px;border-radius:14px;border:1px solid #dab35e;background:linear-gradient(140deg,#fff4c5,#f4d68a);box-shadow:0 2px 3px #83612412;transform:rotate(-4deg);font-size:26px}.tools{gap:4px}.tools button{font-size:12px;padding:10px 12px;color:var(--ink-soft);border-radius:8px}.tools .outline{border-color:#bacdc1;background:#ffffff77}.header-note{font-size:12px;color:var(--ink-soft)}
.arena{border:1px solid #a9c8b7;border-radius:20px;box-shadow:0 2px 4px #4c72590a,0 16px 40px #4c725914;isolation:isolate}
.arena .hud{position:absolute;inset:20px 20px auto;display:flex;justify-content:space-between;align-items:flex-start;gap:0;filter:none;z-index:2}
.hud .fighter{--fighter-accent:#d9a43b;--fighter-tint:#fff0bc;display:grid;grid-template-columns:56px minmax(0,1fr);column-gap:12px;row-gap:8px;width:29%;max-width:340px;padding:12px;border:1px solid #ffffffd9;border-radius:16px;background:linear-gradient(145deg,#fffdf5f5,#f8f7e9db);box-shadow:0 2px 4px #54694912,0 6px 18px #4e6e4e0d;backdrop-filter:blur(10px)}
.hud .fighter[data-character="dog"]{--fighter-accent:#438fbe;--fighter-tint:#d9eef9}
.portrait{position:relative;width:56px;height:56px;align-self:center;border:2px solid var(--fighter-accent);border-radius:50%;background:radial-gradient(circle at 35% 25%,#fff,var(--fighter-tint));box-shadow:0 1px 2px #5877511a;overflow:visible}.portrait canvas{display:block;width:100%;height:100%;border-radius:50%}.portrait>span{position:absolute;left:50%;bottom:-7px;transform:translateX(-50%);padding:2px 6px;border:1px solid #fff8;border-radius:5px;font:700 8px sans-serif;letter-spacing:.5px;background:var(--fighter-accent);color:#fff;white-space:nowrap}
.vitals{min-width:0;align-self:center}.hud .name{display:flex;align-items:center;justify-content:space-between;gap:4px;margin:0 0 8px;font-family:inherit}.hud .name strong{font-size:16px;font-weight:700;letter-spacing:.5px;color:var(--ink);white-space:nowrap}.fighter-role{font-size:9px;color:var(--ink-soft);white-space:nowrap}.hud .hp{height:12px;padding:2px;border:1px solid #b8c3ab70;border-radius:8px;background:#dce2d2;box-shadow:inset 0 1px 2px #6c725426}.hud .hp b,.hud .hp i{inset:2px;border-radius:4px}.hud .hp b{background:linear-gradient(90deg,#c79330,#f4cd65);box-shadow:inset 0 1px #fff8}.hud .fighter[data-character="dog"] .hp b{background:linear-gradient(90deg,#3f8cbb,#84c9d4)}.hud .hp i{background:#fff6c8}.hp-caption{display:flex;align-items:center;justify-content:space-between;gap:4px;margin-top:4px;font:10px ui-monospace,Consolas,monospace;color:#46655b}.hp-caption .life-label{font-size:7px;letter-spacing:1px;color:#7b8d7b}.hud .meter{grid-column:1/-1;display:flex;justify-content:space-between;gap:8px;margin:0;padding-top:8px;border-top:1px solid #839c7922;color:var(--ink-soft);font-size:9px;line-height:1.2;white-space:nowrap;overflow:hidden}.hud .meter span:last-child{overflow:hidden;text-overflow:ellipsis}
.hud .p2{grid-template-columns:minmax(0,1fr) 56px}.p2 .portrait{grid-column:2;grid-row:1}.p2 .vitals{grid-column:1;grid-row:1}.hud .p2 .name{flex-direction:row-reverse}.hud .p2 .hp b,.hud .p2 .hp i{transform-origin:right}.p2 .hp-caption{flex-direction:row-reverse}
.hud .round{position:absolute;left:50%;top:8px;transform:translateX(-50%);width:64px;padding:8px 4px;color:#617866;background:#fff9e48c;border:1px solid #ffffffa1;border-radius:14px;gap:4px}.round>span{font:7px sans-serif;letter-spacing:1px;color:#6c8373}.round b{font:32px Georgia;line-height:30px;color:#9e843d}.round small{font-size:8px;letter-spacing:2px;color:#6b8172}
.feedback{top:156px;left:24px;background:none;padding:0;border-radius:0}.feedback>span{font-size:10px;color:#728871}.feedback strong{font-size:22px;font-weight:500;letter-spacing:1px;color:#3d6554}.feedback p{font-size:11px;color:#657e69;max-width:250px}.metrics{background:#fff9e8ad;border:1px solid #ffffff80;border-radius:24px;padding:8px 16px;font-size:10px;color:#5a7965}.metrics b{font-size:12px;color:#3e6553}.metrics>i{background:#92a98c55}
.selection{margin:20px 0 0;padding:0;gap:16px}.selection>div{gap:8px}.selection>div:first-child{padding:4px;border:1px solid #c5d3bf;border-radius:12px;background:#eef2e6}.selection>div:first-child>span{padding:0 8px;font-size:11px;color:#6c826a}.selection button{padding:10px 16px;border:1px solid transparent;border-radius:8px;font-size:12px;color:#52745f}.selection button[aria-pressed="true"]{color:#775c20;border-color:#dccb99;background:#fff7dd;box-shadow:0 1px 3px #8a7d4320}.selection p{font-size:11px;color:#778b78}.selection>div:last-child button{border-color:#c3d1bf;background:#fffdf3}
.moves{gap:12px;margin-top:16px}.moves .move-card{padding:16px 12px;border:1px solid #c8d5c3;border-radius:12px;background:#fffdf7;gap:12px;min-height:78px}.moves .move-card>span{display:grid;place-items:center;flex:none;width:36px;height:40px;border-radius:8px;background:#edf2e6;color:#7f957b;font:20px Georgia}.moves strong{font-size:13px;font-weight:600;letter-spacing:.3px;color:#365c46}.moves small{font-size:10px;color:#7b8d74;margin-top:6px}.moves .move-card.active{background:#fff4ce;border-color:#d6ad55}.moves .move-card.active>span{background:#efd58b;color:#7d5c18}.moves .move-card.active strong{color:#806020}.moves .move-card.active small{color:#998143}.moves .move-card>i{height:3px}.moves .skill>span{background:#e3f0e4}.moves .finish>span{background:#f7ead4}
.controls{padding:20px 0;gap:16px;border-color:#bdceb93b}.keys{font-size:11px;color:#6c826e;gap:14px}kbd{font-size:10px;padding:4px 6px;border-color:#bbccb5;background:#fffef6;border-radius:5px;box-shadow:0 2px #aabf9c44}.mouse b{font-size:11px;color:#7b724c}.actions{gap:6px}.actions button{border-radius:8px;padding:10px 12px;font-size:11px;color:#5c7b61;border-color:#bdcfb5;background:#fffdf46b}.actions .primary{padding:12px 16px;background:#e4c36c;color:#5d4d21;border-color:#d6b65d;box-shadow:0 1px 3px #9a7f3524}.actions .primary:hover{background:#efcf79}.charge{border-radius:12px;background:#fffcf1ed;border-color:#d8c58f;padding:12px 16px;width:276px}.charge>div:first-child{font-size:11px}.charge p{font-size:10px;line-height:1.5}.charge-track{height:5px;border-radius:4px}.loading,.result{border-radius:inherit}footer{font-size:10px;color:#82947d}footer p{font-size:10px;color:#698168}
@media(max-width:1050px){.hud .fighter{width:32%;padding:10px;column-gap:8px;grid-template-columns:44px minmax(0,1fr)}.hud .p2{grid-template-columns:minmax(0,1fr) 44px}.portrait{width:44px;height:44px}.hud .name strong{font-size:14px}.fighter-role{font-size:8px}.hud .meter{font-size:8px}.selection p{display:none}.moves{gap:8px}.moves .move-card{padding:12px 8px;gap:8px}.moves strong{font-size:12px}.moves small{font-size:9px}.moves .move-card>span{width:30px;height:36px;font-size:18px}}
@media(max-width:760px){.app{padding:0 10px}header{height:72px;gap:8px}.brand{font-size:18px;gap:8px}.brand small{font-size:7px}.seal{width:34px;height:36px;border-radius:10px;font-size:22px}.tools{gap:0}.tools button{font-size:10px;padding:8px}.arena{border-radius:14px}.arena .hud{inset:12px 12px auto}.hud .fighter{width:32%;padding:8px;column-gap:6px;row-gap:4px;border-radius:12px;grid-template-columns:36px minmax(0,1fr)}.hud .p2{grid-template-columns:minmax(0,1fr) 36px}.portrait{width:36px;height:36px}.portrait>span{font-size:7px;padding:1px 4px;bottom:-5px}.hud .name{margin-bottom:5px}.hud .name strong{font-size:12px;letter-spacing:0}.fighter-role{display:none}.hud .hp{height:9px}.hp-caption{font-size:9px;margin-top:3px}.hp-caption .life-label{display:none}.hud .meter{display:none}.hud .round{width:42px;padding:6px 2px;top:2px;border-radius:10px;gap:2px}.round b{font-size:24px;line-height:24px}.round>span{font-size:5px}.round small{font-size:6px;letter-spacing:1px}.selection{margin-top:12px;gap:8px;flex-wrap:wrap}.selection>div:first-child{padding:3px}.selection>div:first-child>span{font-size:9px;padding:0 4px}.selection button{font-size:11px;padding:8px 10px}.selection>div:last-child{margin-left:auto;gap:4px}.selection>div:last-child button{font-size:10px;padding:8px}.moves{grid-template-columns:repeat(3,1fr);margin-top:12px;gap:8px}.moves .move-card{min-height:68px;padding:12px 8px;border-radius:10px;gap:8px}.moves strong{font-size:11px}.moves small{font-size:9px}.moves .move-card>span{width:28px;height:34px;font-size:17px}.keys{font-size:10px;gap:10px}.mouse b{font-size:10px}.actions{gap:6px}.actions button{font-size:10px;padding:9px 10px}.controls{padding:16px 0;gap:12px}.metrics{font-size:8px;padding:5px 10px;bottom:12px}.metrics b{font-size:9px}.charge{width:224px;right:12px;bottom:40px;padding:10px 12px}.charge>div:first-child{font-size:10px}.charge p{font-size:9px}.review-touch .hud .name strong{font-size:11px}.review-touch .hud .name>span{display:none!important}}
@media(max-width:420px){.arena .hud{inset:8px 8px auto}.hud .fighter{width:34%;padding:6px;column-gap:5px;grid-template-columns:28px minmax(0,1fr)}.hud .p2{grid-template-columns:minmax(0,1fr) 28px}.portrait{width:28px;height:28px}.hud .name strong{font-size:10px}.hp-caption{font-size:8px}.hud .round{width:34px;top:0;padding:4px 2px}.round b{font-size:21px}.round small{display:none}.tools button{font-size:9px;padding:7px}.brand small{display:none}.brand{font-size:16px}.seal{width:28px;height:32px}.moves .move-card{padding:10px 6px;gap:6px}.moves .move-card>span{width:23px;height:30px;font-size:15px}.moves strong{font-size:10px}.moves small{font-size:8px}.selection>div:first-child>span{display:none}}
@media(pointer:coarse) and (orientation:landscape){.arena .hud{inset:10px 16px auto}.hud .fighter{width:29%;max-width:270px}.hud .meter{display:none}.selection{margin:12px}.arena{border-radius:0}header{height:60px}.touch-device .charge{bottom:135px}}

.hp-caption span{white-space:nowrap}.review-touch .hp-caption{font-size:8px}

/* v4.8: battle information stays at the corners; practice tools stay below. */
.energy-line{display:flex;align-items:center;gap:6px;margin-top:6px}.stamina{height:6px;position:relative;flex:1;overflow:hidden;border-radius:4px;background:#bed3c5;box-shadow:inset 0 1px 1px #537e6920}.stamina b{position:absolute;inset:0;background:linear-gradient(90deg,#438d79,#7dc7a3);border-radius:4px;transform-origin:left;transition:transform .08s linear}.stamina i{position:absolute;inset:0;background:linear-gradient(90deg,transparent 29%,#fff9 29%,#fff9 30%,transparent 30%,transparent 59%,#fff9 59%,#fff9 60%,transparent 60%,transparent 89%,#fff9 89%,#fff9 90%,transparent 90%)}.energy-line>span{min-width:29px;font:9px ui-monospace,Consolas,monospace;color:#577964;text-align:right}.p2 .energy-line{flex-direction:row-reverse}.p2 .stamina b{transform-origin:right}.p2 .energy-line>span{text-align:left}.controls .metrics{position:static;transform:none;padding:0;border:0;background:none;font-size:10px;gap:16px}.controls{justify-content:space-between}.controls .actions{flex:1}.actions #no-cd{border-color:#83b39a;background:#e8f3e6;font-weight:600;color:#3d7056;min-width:80px}.actions #no-cd[aria-pressed="true"]{background:#407e63;color:#fff;border-color:#407e63}.round small{letter-spacing:1px}.charge{bottom:24px}.hud .fighter{row-gap:0}.hud .name{margin-bottom:6px}
@media(max-width:760px){.energy-line{gap:4px;margin-top:4px}.energy-line>span{font-size:8px;min-width:25px}.stamina{height:4px}.controls .metrics{font-size:9px}.controls{justify-content:center}.controls .actions{flex-basis:100%}.charge{bottom:18px}}
@media(max-width:420px){.energy-line>span{font-size:7px;min-width:21px}.energy-line{gap:3px}.stamina{height:3px}}

/* A quiet continuation cue on the existing move cards, outside the arena. */
.moves .move-card.ready{border-color:#78a88d;background:#eef7ed}.moves .move-card.ready>span{background:#dceede;color:#4f8062}.moves .move-card.ready>i{background:#71aa8a}

.touch-actions button.low-energy{opacity:.55;filter:grayscale(.45)}

.touch-device #charge-ui{display:none}.touch-actions #touch-charge{white-space:pre-line;line-height:1.25}
.moves .move-card.clickable{cursor:pointer;text-align:left}.moves .move-card.clickable:hover{background:#f9efd6;border-color:#c3a45d}.moves .move-card.clickable:focus-visible{outline:2px solid #b48a3d;outline-offset:3px}
