.back-btn,.hud{font-weight:700}#stats,body{color:#1a2a3a}#message,.back-btn,.tip{font-family:Arial,sans-serif}#game,#mazeCanvas,.pad-btn{touch-action:none;cursor:pointer}#message,#stats,footer,header{text-align:center}body,html{height:100%;margin:0;padding:0;box-sizing:border-box}*,:after,:before{box-sizing:inherit}.ad-placeholder,.hud,.mobile-controls{box-sizing:border-box}body{display:flex;flex-direction:column;font-family:"Arial Black",Impact,sans-serif;background:#f4fcf6;user-select:none;-webkit-user-select:none;overflow-x:hidden}header{background-color:#2e8b57;background-image:repeating-linear-gradient(90deg,rgba(0,0,0,.04),rgba(0,0,0,.04) 50px,transparent 50px,transparent 100px);padding:20px 15px;border-bottom:6px solid #fff;box-shadow:0 6px 0#1a2a3a;width:100%}header h1{margin:0;font-size:clamp(1.8rem,5vw,3rem);letter-spacing:1px;line-height:1.2}.logo-main{color:#fff;text-shadow:4px 4px 0#134226}.logo-flipped{display:inline-block;color:#fffb00;transform:scaleX(-1);margin-left:8px;text-shadow:-4px 4px 0#134226}.back-btn{display:inline-block;margin-top:12px;padding:8px 20px;background:#ff9f43;color:#fff;text-decoration:none;border-radius:12px;border:3px solid #1a2a3a;box-shadow:0 4px 0#1a2a3a;transition:transform .1s}#arcade-cabinet,.hud,.page-layout,main{display:flex;width:100%}.back-btn:active{transform:translateY(3px);box-shadow:0 1px 0#1a2a3a}.page-layout{flex:1;max-width:1500px;margin:0 auto;gap:25px;padding:30px 15px;justify-content:space-between}#arcade-cabinet,main{flex-direction:column;align-items:center}main{flex:1;justify-content:flex-start;min-width:0}#arcade-cabinet{background:#fff;border:4px solid #1a2a3a;border-radius:24px;padding:clamp(15px,4vw,30px);box-shadow:0 8px 0#1a2a3a;max-width:500px;margin:0 auto 25px}.wide-cabinet,.wide-instructions{max-width:860px!important}.hud{gap:clamp(10px,3vw,25px);justify-content:center;margin-bottom:15px;font-size:clamp(.9rem,2.5vw,1.2rem);background:#eef9f1;padding:10px 20px;border:2px dashed #2e8b57;border-radius:12px;max-width:800px}.platformer-hud{justify-content:space-between!important;max-width:800px}#game,#mazeCanvas{border:4px solid #1a2a3a;border-radius:20px;box-shadow:0 6px 0#1a2a3a;max-width:100%;height:auto;display:block;margin:15px auto 0}#instruction-card,.instructions-card,.pad-btn{border:4px solid #1a2a3a;box-shadow:0 6px 0#1a2a3a}#stats{font-size:1.4rem;font-weight:900;margin-top:20px}#message,.tip{font-weight:700}#message{margin-top:10px;font-size:1.1rem;color:#475569;min-height:1.6em}.tip{font-size:.95rem;margin-top:8px;display:inline-block;color:#64748b}#instruction-card,.instructions-card{background:#fff;border-radius:24px;padding:20px 25px;width:100%;max-width:500px;margin:0 auto 25px;font-family:Arial,sans-serif}#instruction-card h3,#instruction-card h4,.instructions-title{font-size:1.3rem;font-weight:900;color:#1a2a3a;margin:0 0 12px;text-transform:uppercase;letter-spacing:.5px;border-bottom:3px solid #e2e8f0;padding-bottom:6px}#instruction-card p,.instructions-card p{font-size:1rem;font-weight:500;color:#334155;line-height:1.5;margin:0 0 12px}.pad-btn,footer{font-weight:700}#instruction-card li:last-child,#instruction-card p:last-child,.instructions-card li:last-child,.instructions-card p:last-child{margin-bottom:0}#instruction-card ul,.instructions-card ul{margin:0;padding-left:20px}#instruction-card li,.instructions-card li{font-size:1rem;font-weight:700;color:#334155;line-height:1.5;margin-bottom:8px}.footer-nav a,footer{font-size:.95rem;font-family:Arial,sans-serif}.mobile-controls{display:flex;width:100%;max-width:800px;margin:15px auto 25px;justify-content:space-between;align-items:center;padding:0 10px}.action-buttons,.dpad-directionals{display:flex;gap:20px}.pad-btn{color:#fff;width:70px;height:70px;background-color:#ff9f43;border-radius:22px;display:flex;align-items:center;justify-content:center;font-size:1.8rem;user-select:none;-webkit-user-select:none;transition:transform .05s,box-shadow .05s}.pad-btn:active{transform:translateY(4px);box-shadow:0 2px 0#1a2a3a;background-color:#e68a22}.btn-jump{background-color:#38bdf8}.btn-jump:active{background-color:#0284c7}.btn-action{background-color:#ef4444}.btn-action:active{background-color:#b91c1c}.side-ad{width:160px;flex-shrink:0;height:600px}.ad-placeholder{background-color:#2e8b57;background-image:repeating-linear-gradient(0deg,rgba(255,255,255,.05),rgba(255,255,255,.05) 20px,transparent 20px,transparent 40px);border:4px solid #1a2a3a;border-radius:20px;display:flex;flex-direction:column;justify-content:center;align-items:center;width:100%;height:100%;box-shadow:0 6px 0#1a2a3a;padding:20px 0}.panel-icon{font-size:2.2rem;margin-bottom:15px}.panel-text{color:#fffb00;font-size:1.4rem;letter-spacing:2px;writing-mode:vertical-rl;text-orientation:mixed;text-shadow:2px 2px 0#1a2a3a}footer{background:#1a2a3a;color:#fff;padding:20px 10px;border-top:5px solid #fffb00;margin-top:auto;width:100%}footer p{margin:0;line-height:1.4}.footer-nav{margin-bottom:15px;display:flex;justify-content:center;gap:20px;flex-wrap:wrap}.footer-nav a{color:#fffb00;text-decoration:none;transition:color .1s}.footer-nav a:hover{color:#fff;text-decoration:underline}@media (max-width:1120px){.page-layout{padding:20px 15px;gap:15px}}@media (max-width:850px){.side-ad{display:none!important}.page-layout{padding:20px 15px}}@media (max-width:480px){#arcade-cabinet{border-radius:16px;padding:15px}#controls{flex-direction:column;gap:8px;align-items:center}#difficulty,#newGameBtn{width:100%;max-width:none}.mobile-controls{margin:10px auto 15px}.pad-btn{width:60px;height:60px;font-size:1.5rem;border-radius:16px}}@media (pointer:fine){.mobile-controls{display:none!important}}game-button,platform{display:none!important;visibility:hidden!important;opacity:0!important;width:0!important;height:0!important}