*{box-sizing:border-box;margin:0;padding:0;-webkit-user-select:none;user-select:none}body{font-family:Courier New,Courier,monospace;background:#1a1a2e;color:#fff;overflow:hidden}.app-container{width:100vw;height:100vh;max-width:600px;margin:0 auto;background:linear-gradient(135deg,#2b1055,#7597de);position:relative;display:flex;flex-direction:column}.cloud-indicator{position:absolute;top:10px;left:50%;transform:translate(-50%);background:#0009;padding:6px 16px;border-radius:20px;font-size:12px;display:flex;align-items:center;gap:6px;z-index:100;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);border:1px solid rgba(255,255,255,.2)}.spin{animation:spin 2s linear infinite}.pulse{animation:pulse 1s ease-in-out infinite}@keyframes spin{to{transform:rotate(360deg)}}@keyframes pulse{50%{opacity:.5}}.text-red{color:#ff4757}.text-blue{color:#1e90ff}.text-yellow{color:#ffa502}.text-green{color:#2ed573}.w-full{width:100%}.screen{width:100%;height:100%;display:flex;flex-direction:column;padding:20px}.panel-border{background:#14141ee6;border:4px solid #fff;box-shadow:inset -4px -4px #00000080,4px 4px #00000080;padding:12px;border-radius:4px}.inline-icon{width:1em;height:1em;vertical-align:-.125em}button{font-family:inherit;cursor:pointer;border:none;outline:none;transition:transform .1s}button:active{transform:scale(.95)}button:disabled{filter:grayscale(1);cursor:not-allowed;opacity:.7}.btn-primary{background:linear-gradient(to bottom,#ff416c,#ff4b2b);color:#fff;font-size:18px;font-weight:700;padding:15px 30px;border:4px solid #fff;border-radius:4px;box-shadow:4px 4px #000;display:flex;align-items:center;justify-content:center;gap:10px}.btn-secondary{background:#333;color:#fff;font-size:16px;font-weight:700;padding:12px 24px;border:4px solid #fff;border-radius:4px;box-shadow:4px 4px #000;display:flex;align-items:center;justify-content:center;gap:8px}.progress-container{margin:6px 0}.progress-label{font-size:12px;margin-bottom:2px;text-shadow:1px 1px 0 #000;font-weight:700}.progress-bg{width:100%;height:14px;background:#222;border:2px solid #fff;border-radius:2px;overflow:hidden}.progress-fill{height:100%}.bg-red{background:linear-gradient(90deg,#ff0844,#ffb199)}.bg-blue{background:linear-gradient(90deg,#4facfe,#00f2fe)}.start-screen{justify-content:center;align-items:center;text-align:center;gap:30px}.title-box h1{font-size:48px;margin-bottom:10px;color:#fff;text-shadow:0 0 10px #ff416c,0 0 20px #ff416c,4px 4px 0 #000}.subtitle{font-size:20px;letter-spacing:4px;color:gold;text-shadow:2px 2px 0 #000}.high-score-box{background:#0009;padding:20px 40px;border-radius:10px;border:2px dashed #ffd700}.icon-gold{color:gold;margin-bottom:10px}.start-actions{display:flex;flex-direction:column;gap:15px;width:80%;max-width:300px}.modal-overlay{position:absolute;top:0;left:0;width:100%;height:100%;background:#000000d9;display:flex;justify-content:center;align-items:center;z-index:200;padding:20px;-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px)}.modal-content{max-width:400px;width:100%;text-align:left;background:#1a1a2e}.modal-content h2{color:gold;margin-bottom:15px;text-align:center;border-bottom:2px dashed #555;padding-bottom:10px}.tutorial-text{font-size:14px;line-height:1.6;margin-bottom:20px;display:flex;flex-direction:column;gap:12px}.highlight-text{color:#00f2fe;font-weight:700}.tutorial-list{list-style:none;background:#0000004d;padding:10px;border-radius:4px}.tutorial-list li{margin-bottom:8px;display:flex;align-items:flex-start;gap:8px}.top-bar{display:flex;justify-content:space-between;align-items:center;margin-bottom:15px;margin-top:30px}.stat-item{display:flex;align-items:center;gap:6px;font-weight:700}.btn-icon{background:transparent;color:#fff;display:flex;align-items:center;gap:5px;font-size:14px;padding:5px 10px;border:1px solid #fff;border-radius:4px}.battle-arena{flex:1;display:flex;justify-content:space-between;align-items:center;position:relative;margin-bottom:15px}.character-side{width:45%;display:flex;flex-direction:column;gap:10px}.char-info h3{font-size:14px;margin-bottom:5px;text-align:center;border-bottom:2px solid #555;padding-bottom:5px}.stats-grid{display:flex;justify-content:space-around;font-size:12px;margin-top:5px;background:#0000004d;padding:4px;border-radius:4px}.char-sprite{height:150px;display:flex;justify-content:center;align-items:flex-end}.char-sprite img{max-height:100%;max-width:100%;object-fit:contain;filter:drop-shadow(0 10px 10px rgba(0,0,0,.5))}.svg-wrapper{width:120px;height:120px;filter:drop-shadow(0 10px 5px rgba(0,0,0,.5))}.vs-badge{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);font-size:32px;font-weight:700;color:gold;font-style:italic;text-shadow:2px 2px 0 #000;z-index:10}.damage-popup{position:absolute;font-size:24px;font-weight:700;text-shadow:2px 2px 0 #000;pointer-events:none;z-index:20}.damage-popup.player{color:#ff4757}.damage-popup.enemy{color:#fff}.damage-popup.crit{color:gold;font-size:36px}.damage-popup.heal{color:#2ed573}.action-bar{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:15px}.action-btn{padding:12px 5px;font-size:16px;font-weight:700;color:#fff;border:2px solid #fff;border-radius:4px;display:flex;align-items:center;justify-content:center;gap:5px;box-shadow:2px 2px #000}.action-btn.attack{background:#ff4757}.action-btn.defend{background:#1e90ff}.action-btn.skill{background:#ffa502}.action-btn.item{background:#2ed573}.log-box{height:85px;overflow:hidden;font-size:13px;display:flex;flex-direction:column;gap:4px;background:#000c}.log-entry{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.shop-screen{justify-content:center;align-items:center}.shop-panel{width:90%;max-width:400px;text-align:center}.shop-panel h2{margin-bottom:10px;color:gold}.gold-display{margin-bottom:20px;font-weight:700;font-size:18px;background:#00000080;padding:5px;border-radius:4px}.shop-items{display:flex;flex-direction:column;gap:15px}.shop-item{display:flex;align-items:center;justify-content:space-between;background:#0006;padding:12px;border:2px solid #555;text-align:left;border-radius:4px}.shop-item h4{margin:0;font-size:16px;color:#fff}.shop-item p{margin:4px 0 0;font-size:12px;color:#aaa}.btn-buy{background:gold;color:#000;border:2px solid #fff;padding:8px 12px;font-weight:700;border-radius:4px}.gameover-screen{justify-content:center;align-items:center;text-align:center;background:#000000e6}.gameover-title{font-size:50px;color:#ff4757;text-shadow:4px 4px 0 #000;margin-bottom:20px}.results{margin-bottom:30px;font-size:20px;line-height:1.5;width:80%;max-width:300px}.new-record{color:gold;font-weight:700;margin-top:10px;animation:pulse 1s infinite}.mt-4{margin-top:20px}
