*{box-sizing:border-box}body{margin:0;background:#fff;color:#2a2328;font-family:system-ui,sans-serif}button{font:inherit;font-weight:700;min-height:44px;border:1px solid #ccd0d7;border-radius:8px;background:#f3f4f6;color:#2a2328;touch-action:manipulation}button:disabled{opacity:.45}[hidden]{display:none!important}main{max-width:480px;margin:auto;padding:4px 8px}.arena{position:relative;min-height:580px;height:calc(100svh - var(--nav-height,72px) - 8px);max-height:850px;display:flex;flex-direction:column;gap:7px;padding:8px;border:2px solid #8c744c;border-radius:12px;color:#f6f0df;background:radial-gradient(ellipse at 50% 28%,#304856,#142336 70%);overflow:hidden}.hud,.stats,.hand-label{display:flex;justify-content:space-between;align-items:center;gap:6px;font-size:13px}.hud button{width:44px}.enemy{flex:1;min-height:140px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px}.enemy strong{font-size:14px}#intent{background:#f7d9b0;color:#5b3025;border:1px solid #d1a253;border-radius:7px;padding:6px 16px;font-size:14px;font-weight:800}#monster{font-size:64px;line-height:1.15;color:#f0cd76;text-shadow:0 3px 0 #936335,0 0 20px #ffde8644}progress{width:160px;height:12px;accent-color:#d6b567}#enemyHp{font-size:12px}.buddy{display:flex;align-items:center;gap:10px;min-height:96px}.buddy img{object-fit:contain;width:104px;height:104px}.buddy strong{font-size:12px;color:#eed393}.buddy p{font-size:13px;line-height:1.5;margin:6px 0}.stats{padding:10px 6px;background:#0e1a2c;border:1px solid #586579;border-radius:8px}.stats strong{color:#ffe49d}.hand-label{font-size:11px;color:#ccd4dc}#hand{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;min-height:192px;align-content:start;max-height:220px;overflow-y:auto;padding:2px}.card{position:relative;min-width:0;height:92px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;border:1px solid #b8a278;background:linear-gradient(#f9f1de,#dccba9);box-shadow:inset 0 0 0 2px #fff7}.card .cost{position:absolute;top:4px;left:5px;background:#173447;color:#fff5cc;border-radius:50%;width:21px;height:21px;display:grid;place-items:center;font-size:12px}.symbol{font-size:24px;line-height:1.1;color:#8f3b39}.guard .symbol,.wall .symbol{color:#2d6685}.draw .symbol,.flow .symbol{color:#547447}.card strong{font-size:13px}.card small{font-size:11px}#end{flex-shrink:0;width:100%;background:#eed7a0;border-color:#ba9653}#overlay{position:absolute;inset:0;background:#09121feb;display:grid;place-items:center;padding:12px}.panel{width:100%;max-width:340px;max-height:100%;overflow:auto;background:#fff;color:#2a2328;border:2px solid #d9ba79;border-radius:12px;text-align:center;padding:16px;display:grid;justify-items:center;gap:12px}.panel h2,.panel p{margin:0}.panel h2{font-size:21px}.panel p{font-size:13px;line-height:1.6}.panel img{object-fit:contain}.panel>button{width:100%;background:#efdbab}.panel small{font-size:12px;color:#6e626a}#rewards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;width:100%}#rewards:empty{display:none}#rewards .card{height:116px}@media(max-height:700px){.arena{min-height:540px;gap:4px}.buddy,.buddy img{height:80px;min-height:80px}.buddy img{width:80px}.enemy{min-height:128px}#monster{font-size:48px}.stats{padding:7px 4px}.panel{gap:8px;padding:12px}.panel>img{width:88px;height:88px}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto}}
