:root{--bg: #121016;--panel: #201c2b;--hp: #e74c3c;--xp: #f1c40f;--text: #ecf0f1;--accent: #9b59b6;--gold: #f1c40f}*{box-sizing:border-box;-webkit-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent}body{background-color:var(--bg);color:var(--text);font-family:Courier New,Courier,monospace;margin:0;height:100dvh;display:flex;flex-direction:column;overflow:hidden}h1,h2,h3{font-family:"Press Start 2P",cursive;margin:0}#enemy-zone{flex:2;display:flex;flex-direction:column;align-items:center;justify-content:center;background:radial-gradient(circle,#2c2435,#000);position:relative;border-bottom:4px solid #000}#enemy-canvas{width:128px;height:128px;image-rendering:pixelated;filter:drop-shadow(0 0 10px rgba(0,0,0,.5));transition:transform .1s}.fx-stunned{filter:grayscale(100%) opacity(.5)!important;transform:scale(.9)}.fx-poisoned{filter:drop-shadow(0 0 5px #00ff00)!important}.shake{animation:shake .3s}.hit-anim{animation:flash .2s}#intent-bubble{position:absolute;top:15px;right:15px;background:#222;border:2px solid #fff;border-radius:8px;padding:8px 12px;display:flex;flex-direction:column;align-items:center;box-shadow:0 4px 10px #00000080;z-index:10;transition:all .2s}.intent-icon{font-size:1.5rem;margin-bottom:2px}.intent-text{font-size:.7rem;font-weight:700;font-family:sans-serif;text-transform:uppercase}.intent-danger{border-color:#f44;color:#f44}.intent-safe{border-color:#4f4;color:#4f4}.intent-neutral{border-color:#4af;color:#4af}.intent-stunned{border-color:#ff4;color:#ff4;opacity:.7}#enemy-status-bar{display:flex;justify-content:center;gap:5px;margin-top:5px;height:24px}.status-badge{font-size:.7rem;padding:2px 6px;border-radius:4px;background:#000;border:1px solid #666;display:flex;align-items:center;gap:4px;font-weight:700}.st-poison{border-color:#0f0;color:#0f0;background:#020}.st-stun{border-color:#ff0;color:#ff0;background:#220}.bar-container{height:12px;background:#333;border:2px solid #000;margin-top:5px;position:relative}.bar-fill{height:100%;transition:width .2s}.hp-fill{background:var(--hp)}.xp-fill{background:var(--xp)}#player-zone{flex:1;background:var(--panel);padding:15px;border-bottom:4px solid #000;display:flex;flex-direction:column;justify-content:space-between;position:relative}.stats-row{display:flex;justify-content:space-between;font-weight:700;font-size:1.1rem}.sub-stats{font-size:.85rem;color:#aaa;margin-top:5px;display:flex;gap:10px}#active-perks-bar{display:flex;gap:5px;margin-top:5px;flex-wrap:wrap}.mini-perk{font-size:1rem;padding:4px;border:1px solid #555;border-radius:4px;background:#222;cursor:help;position:relative}.perk-lvl{position:absolute;bottom:-5px;right:-5px;font-size:.6rem;background:gold;color:#000;border-radius:50%;width:14px;height:14px;display:flex;justify-content:center;align-items:center;font-weight:700}.info-btn{background:none;border:1px solid #666;color:#aaa;border-radius:50%;width:20px;height:20px;font-size:.7rem;cursor:pointer;margin-left:10px}#counter-indicator{display:none;position:absolute;top:-10px;right:20px;background:#fc0;color:#000;padding:5px 10px;font-weight:700;font-size:.8rem;border:2px solid #fff;animation:bounce 1s infinite;border-radius:4px;z-index:50}#combat-log{font-size:.8rem;color:#aaa;height:50px;overflow:hidden;border-top:1px solid #444;margin-top:5px;padding-top:5px;display:flex;flex-direction:column-reverse}#controls{flex:0 0 220px;background:#000;padding:15px;display:grid;grid-template-columns:1fr 1fr;grid-template-rows:1fr 1fr;gap:10px}.btn{background:#333;border:2px solid #555;border-radius:8px;color:#fff;font-family:"Press Start 2P",cursive;font-size:.9rem;display:flex;flex-direction:column;align-items:center;justify-content:center;cursor:pointer;transition:.1s}.btn:active{transform:translateY(4px);background:#444}.btn:disabled{opacity:.3;pointer-events:none;filter:grayscale(100%)}.btn-atk{background:#5a2e2e;border-color:#e74c3c}.btn-def{background:#2e405a;border-color:#3498db}.btn-heal{background:#2e5a38;border-color:#2ecc71}.btn-skill{background:#5a2e5a;border-color:#9b59b6}.cooldown{font-size:.6rem;color:#bbb;margin-top:4px}.overlay{position:fixed;top:0;left:0;width:100%;height:100%;background:#000000f2;z-index:100;display:none;flex-direction:column;align-items:center;justify-content:center;padding:20px}.card-container{width:100%;display:flex;flex-direction:column;gap:10px;overflow-y:auto;max-height:80vh}.perk-card{background:var(--panel);border:2px solid var(--accent);padding:15px;border-radius:8px;text-align:left;cursor:pointer;transition:.1s}.perk-card:active{transform:scale(.98);background:#333}.shop-item{display:flex;justify-content:space-between;align-items:center;background:#222;padding:10px;border:1px solid #444}.relic-bought{border-color:gold;color:gold;opacity:.5;pointer-events:none}.floater{position:absolute;font-weight:700;font-size:1.5rem;animation:floatUp 1s forwards;pointer-events:none;z-index:20}@keyframes shake{0%{transform:translate(0)}25%{transform:translate(5px)}75%{transform:translate(-5px)}to{transform:translate(0)}}@keyframes floatUp{0%{opacity:1;transform:translateY(0)}to{opacity:0;transform:translateY(-50px)}}@keyframes flash{0%{filter:brightness(2) sepia(1) hue-rotate(-50deg) saturate(5)}to{filter:none}}@keyframes bounce{0%,to{transform:translateY(0)}50%{transform:translateY(-5px)}}.reset-link{margin-top:20px;font-size:.7rem;color:#555;text-decoration:underline;cursor:pointer}.sheet-section{background:#ffffff08;border:1px solid #333;border-radius:8px;padding:12px;margin-bottom:15px}.stat-row{display:flex;justify-content:space-between;padding:6px 0;border-bottom:1px solid #222;font-size:.85rem}.stat-row:last-child{border-bottom:none}.perk-row{display:flex;gap:10px;padding:10px;background:#0000004d;border-radius:6px;margin-bottom:8px;border:1px solid #333}.perk-row:last-child{margin-bottom:0}.p-icon{font-size:1.5rem;min-width:30px;text-align:center}@media (max-height: 700px) and (max-width: 600px){#controls{flex:0 0 160px;padding:10px;gap:5px}.btn{font-size:.75rem}.btn>div{font-size:.8rem}.btn span{font-size:.55rem!important}}
