:root{--bg: #16130f;--panel: #221d17;--line: #3a3128;--text: #ece4d6;--muted: #a39887;--accent: #d9772b;--accent-text: #1a1108;--player: #6fae5c;--rival: #c8503c;--win: #8fcf78;--lose: #e0705c;color-scheme:dark}*{box-sizing:border-box}body{margin:0;min-height:100dvh;background:var(--bg);color:var(--text);font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif;font-size:16px;line-height:1.4}#app{max-width:480px;margin:0 auto;padding:20px 16px calc(24px + env(safe-area-inset-bottom));display:flex;flex-direction:column;gap:16px}h1{margin:0;font-size:2rem;letter-spacing:.02em;color:var(--accent)}p{margin:0}.title{text-align:center}.muted{color:var(--muted);font-size:.875rem}.error{color:var(--lose);min-height:1.4em;font-size:.875rem}.panel{background:var(--panel);border:1px solid var(--line);border-radius:12px;padding:16px;display:flex;flex-direction:column;gap:12px}label{font-weight:600}input[type=text]{width:100%;padding:12px;font-size:1rem;color:var(--text);background:var(--bg);border:1px solid var(--line);border-radius:8px}input[type=text]:focus-visible,button:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.points{font-weight:600;color:var(--accent)}.stat-row{display:flex;align-items:center;justify-content:space-between;gap:12px}.stat-name{display:flex;flex-direction:column}.stepper{display:flex;align-items:center;gap:4px}.stat-value{width:2ch;text-align:center;font-weight:700;font-variant-numeric:tabular-nums}button{font:inherit;cursor:pointer;border-radius:8px;border:1px solid var(--line);min-height:44px;touch-action:manipulation}button:disabled{opacity:.4;cursor:not-allowed}.step{width:44px;font-size:1.25rem;background:var(--bg);color:var(--text)}.primary{width:100%;padding:12px;font-weight:700;font-size:1.05rem;background:var(--accent);border-color:var(--accent);color:var(--accent-text)}.secondary{width:100%;padding:12px;background:transparent;color:var(--text)}.arena{display:grid;grid-template-columns:1fr 1fr;gap:12px}.fighter{background:var(--panel);border:1px solid var(--line);border-radius:12px;padding:12px;display:flex;flex-direction:column;gap:4px;min-width:0}.fighter-name{overflow-wrap:anywhere}.hp-bar{height:12px;margin-top:4px;background:var(--bg);border-radius:6px;overflow:hidden}.hp-fill{height:100%;width:100%;transition:width .3s ease-out}.side-0 .hp-fill{background:var(--player)}.side-1 .hp-fill{background:var(--rival)}.hp-text{font-size:.8125rem;font-variant-numeric:tabular-nums;color:var(--muted)}.fighter.hit{animation:shake .25s}@keyframes shake{25%{transform:translate(-4px)}75%{transform:translate(4px)}}.banner{min-height:2rem;text-align:center;font-size:1.5rem;font-weight:800}.banner.win{color:var(--win)}.banner.lose{color:var(--lose)}.log{list-style:none;margin:0;padding:12px;height:40dvh;overflow-y:auto;background:var(--panel);border:1px solid var(--line);border-radius:12px;display:flex;flex-direction:column;gap:6px;font-size:.9375rem}.log li{padding-left:10px;border-left:3px solid var(--line)}.log .by-0{border-left-color:var(--player)}.log .by-1{border-left-color:var(--rival)}.end-actions{display:flex;flex-direction:column;gap:8px}.mode,.loading{text-align:center}[hidden]{display:none!important}@media(prefers-reduced-motion:reduce){.fighter.hit{animation:none}.hp-fill{transition:none}}
