*{margin:0;padding:0;box-sizing:border-box}body{overflow-x:hidden;min-height:100vh;background:#050f1a;font-family:Georgia,serif;color:#e8d5a3}#canvas-container{position:fixed;top:0;left:0;width:100%;height:100%}#hud{position:fixed;top:0;left:0;right:0;padding:14px 20px;display:flex;justify-content:space-between;align-items:flex-start;pointer-events:none;z-index:10}.hud-panel{background:#051923d1;border:2px solid rgba(78,201,176,.55);border-radius:10px;padding:10px 16px;color:#e8d5a3}#score-display{font-size:22px;font-weight:700}#level-display{font-size:13px;color:#8ee;margin-top:3px}#multiplier-display{font-size:12px;color:gold;margin-top:2px;min-height:16px}#health-display{display:flex;gap:6px;font-size:26px}.heart{transition:all .3s;display:inline-block}.heart.lost{opacity:.18;filter:grayscale(1);transform:scale(.85)}#compass{position:fixed;top:14px;left:50%;transform:translate(-50%);z-index:10;pointer-events:none}#minimap-container{position:fixed;bottom:18px;right:18px;z-index:10;border:2px solid rgba(78,201,176,.65);border-radius:8px;overflow:hidden;box-shadow:0 0 18px #0009}#minimap{display:block;background:#093530}#message-overlay{position:fixed;top:40%;left:50%;transform:translate(-50%,-50%);z-index:20;text-align:center;pointer-events:none}#message-text{font-size:52px;font-weight:700;color:#fff;text-shadow:0 0 22px rgba(255,200,0,.9),0 2px 6px rgba(0,0,0,.9);opacity:0;transition:opacity .25s}#streak-display{position:fixed;top:82px;left:50%;transform:translate(-50%);z-index:10;pointer-events:none;text-align:center;min-height:28px}.streak-text{font-size:17px;color:gold;text-shadow:0 0 10px rgba(255,215,0,.7);font-weight:700}#pause-btn{position:fixed;top:14px;right:14px;z-index:15;width:46px;height:46px;border-radius:50%;background:#051923d9;border:2px solid rgba(78,201,176,.6);color:#4ec9b0;font-size:20px;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:background .15s,transform .12s}#pause-btn:hover{background:#4ec9b040;transform:scale(1.1)}#pause-overlay{position:fixed;inset:0;z-index:45;background:#000a14bf;display:none;flex-direction:column;justify-content:center;align-items:center;gap:24px}#pause-overlay.active{display:flex}.pause-title{font-size:72px;color:#4ec9b0;font-family:Georgia,serif;text-shadow:0 0 30px rgba(78,201,176,.7);font-weight:700}.pause-resume-btn{padding:14px 52px;font-size:22px;background:linear-gradient(135deg,#4ec9b0,#2a9d8f);color:#fff;border:none;border-radius:10px;cursor:pointer;font-family:Georgia,serif;transition:transform .12s,box-shadow .12s}.pause-resume-btn:hover{transform:scale(1.06);box-shadow:0 4px 20px #4ec9b080}#controls-hint{position:fixed;bottom:40px;left:18px;z-index:10;background:#051923bf;border:1px solid rgba(78,201,176,.4);border-radius:8px;padding:8px 12px;color:#aed;font-size:12px;line-height:1.7;pointer-events:none}.touch-controls{position:fixed;right:18px;bottom:18px;z-index:15;display:grid;grid-template-columns:repeat(3,48px);gap:6px}.touch-controls button{width:48px;height:44px;border:2px solid #4ec9b0;border-radius:10px;background:#051923d1;color:#e8d5a3;font:28px/1 Georgia,serif;touch-action:none;user-select:none;-webkit-user-select:none}.touch-controls button:nth-child(1){grid-column:1;grid-row:2}.touch-controls button:nth-child(2){grid-column:2;grid-row:1}.touch-controls button:nth-child(3){grid-column:3;grid-row:2}.touch-controls button:nth-child(4){grid-column:2;grid-row:3}.touch-controls button.pressed{background:#2a9d8f;transform:translateY(2px)}#battle-modal{position:fixed;inset:0;background:#000f19e0;z-index:30;display:none;justify-content:center;align-items:center}#battle-modal.active{display:flex}.battle-box{background:linear-gradient(145deg,#152d3d,#0c1e2d);border:3px solid #4ec9b0;border-radius:16px;padding:38px 58px;text-align:center;color:#e8d5a3;box-shadow:0 0 50px #4ec9b059,0 0 100px #00000080;max-width:500px;width:92%}.battle-title{font-size:30px;font-weight:700;color:#ff6b35;margin-bottom:6px;text-shadow:0 0 12px rgba(255,107,53,.6)}.battle-enemy-info{font-size:14px;color:#8ee;margin-bottom:18px}.battle-question{font-size:56px;font-weight:700;color:#fff;margin:18px 0;letter-spacing:4px}#battle-timer{font-size:18px;color:#ff8c55;margin-bottom:8px}.timer-bar-wrap{background:#ffffff1a;border-radius:5px;height:9px;margin-bottom:24px;overflow:hidden}#timer-bar{height:100%;background:linear-gradient(90deg,#f44,#ff6b35,gold);border-radius:5px;transition:width .15s linear;width:100%}#battle-input{width:160px;min-height:66px;margin:0 auto;padding:13px;font-size:30px;line-height:1.2;text-align:center;background:#ffd70014;border:2px solid #ffd700;border-radius:8px;color:#fff;user-select:none;-webkit-user-select:none}#battle-input:empty:before{content:"?";opacity:.4}.pad-focus{outline:3px solid #ffd700;outline-offset:2px}.numeric-keypad{width:210px;margin:12px auto 0;display:grid;grid-template-columns:repeat(3,1fr);gap:6px}.numeric-keypad button{min-height:42px;border:1px solid #4ec9b0;border-radius:7px;background:#4ec9b01f;color:#e8d5a3;font:22px Georgia,serif;cursor:pointer;touch-action:manipulation}.numeric-keypad button:active{background:#2a9d8f;color:#fff;transform:scale(.96)}#battle-submit{display:block;margin:16px auto 0;padding:13px 44px;font-size:18px;background:linear-gradient(135deg,#e05c28,#c04010);color:#fff;border:none;border-radius:9px;cursor:pointer;font-family:Georgia,serif;transition:transform .1s,box-shadow .1s;pointer-events:all}#battle-submit:hover{transform:scale(1.06);box-shadow:0 4px 18px #ff6b3573}.battle-hint{font-size:12px;color:#7ab;margin-top:10px}#battle-outcome{display:none;margin-top:20px;font-size:44px;font-weight:700;text-shadow:0 0 22px currentColor;letter-spacing:2px}#battle-outcome.active{display:block}#battle-outcome.win{color:#4f8}#battle-outcome.lose{color:#f44}#battle-result{position:fixed;inset:0;z-index:36;display:none;justify-content:center;align-items:center;flex-direction:column;background:#0000008c}#battle-result.active{display:flex}.result-text{font-size:80px;font-weight:700;text-shadow:0 0 35px currentColor}.result-text.win{color:gold}.result-text.lose{color:#f44}.result-points{font-size:26px;color:#fff;margin-top:12px;text-shadow:0 2px 8px rgba(0,0,0,.8)}#reward-modal{position:fixed;inset:0;background:#000f19e0;z-index:40;display:none;justify-content:center;align-items:center}#reward-modal.active{display:flex}.reward-box{background:linear-gradient(145deg,#1a3a20,#0c2014);border:3px solid #27ae60;border-radius:16px;padding:42px 58px;text-align:center;color:#e8d5a3;box-shadow:0 0 50px #27ae6073,0 0 100px #00000080;max-width:480px;width:92%}.reward-title{font-size:32px;font-weight:700;color:gold;margin-bottom:10px;text-shadow:0 0 14px rgba(255,215,0,.7)}.reward-sub{font-size:15px;color:#aed;margin-bottom:28px}.reward-buttons{display:flex;gap:20px;justify-content:center;flex-wrap:wrap}.reward-btn{padding:18px 32px;font-size:20px;border:2px solid;border-radius:12px;cursor:pointer;font-family:Georgia,serif;transition:transform .12s,box-shadow .12s;pointer-events:all}#reward-heart-btn{background:linear-gradient(135deg,#8b0000,#c0392b);border-color:#ff6b6b;color:#fff}#reward-time-btn{background:linear-gradient(135deg,#1a4a6b,#2980b9);border-color:#7ec8e3;color:#fff}.reward-btn:hover{transform:scale(1.07);box-shadow:0 4px 18px #fff3}#game-over{position:fixed;inset:0;background:#000000e0;z-index:50;display:none;justify-content:center;align-items:center;flex-direction:column}#game-over.active{display:flex}.game-over-title{font-size:80px;color:#f44;text-shadow:0 0 35px rgba(255,68,68,.8);margin-bottom:18px}.game-over-score{font-size:28px;color:#e8d5a3;margin-bottom:32px}#restart-btn{padding:14px 52px;font-size:22px;background:linear-gradient(135deg,#4ec9b0,#2a9d8f);color:#fff;border:none;border-radius:10px;cursor:pointer;font-family:Georgia,serif;transition:transform .12s,box-shadow .12s}#restart-btn:hover{transform:scale(1.06);box-shadow:0 4px 20px #4ec9b080}#loading-screen{position:fixed;inset:0;background:#0a2a28;z-index:100;display:flex;justify-content:center;align-items:center;flex-direction:column}#loading-screen.hidden{display:none}.loading-title{font-size:60px;color:#4ec9b0;text-shadow:0 0 25px rgba(78,201,176,.6);margin-bottom:12px}.loading-sub{font-size:18px;color:#e8d5a3;margin-bottom:30px}.loading-bar-wrap{width:300px;height:8px;background:#ffffff1a;border-radius:5px;overflow:hidden}.loading-bar{height:100%;background:linear-gradient(90deg,#4ec9b0,gold);border-radius:5px;width:0%;transition:width .3s}@media(hover:hover)and (pointer:fine){.touch-controls{display:none}}@media(max-width:560px){.battle-box{padding:24px 18px}.battle-question{font-size:44px}.numeric-keypad{width:190px}}.seo-content{position:relative;z-index:1;max-width:900px;min-height:80vh;margin:100vh auto 0;padding:36px 24px 56px;background:#050f1a;color:#e8d5a3;font:17px/1.65 Georgia,serif}.seo-content h1,.seo-content h2{color:#4ec9b0;line-height:1.2}.seo-content h1{font-size:clamp(1.8rem,5vw,2.6rem)}.seo-content h2{margin-top:1.8em}.seo-content a{color:gold}.seo-content li{margin-block:8px}@media(max-width:560px){.seo-content{padding:28px 18px 44px}}
