* { box-sizing: border-box; } html, body { margin: 0; padding: 0; background: #0a0a0d; color: #e6e2c8; font-family: 'Courier New', monospace; overflow: hidden; height: 100%; } #wrap { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 100vh; padding: 16px; } h1 { font-size: 26px; letter-spacing: 4px; margin: 0 0 4px 0; color: #f2c14e; text-shadow: 0 0 10px rgba(242,193,78,0.6), 0 0 2px #000; } .subtitle { font-size: 11px; color: #8a8672; margin-bottom: 12px; letter-spacing: 2px; } #stage { position: relative; width: 760px; max-width: 94vw; height: 460px; border: 4px solid #3a3323; box-shadow: 0 0 0 4px #0a0a0d, 0 0 40px rgba(242,193,78,0.15), inset 0 0 60px rgba(0,0,0,0.9); background: #050506; overflow: hidden; } #viewport { width: 100%; height: 100%; } #viewport canvas { display: block; width: 100% !important; height: 100% !important; cursor: crosshair; } #crosshair { position: absolute; top: 50%; left: 50%; width: 16px; height: 16px; transform: translate(-50%,-50%); pointer-events: none; z-index: 5; } #crosshair::before, #crosshair::after { content: ''; position: absolute; background: rgba(242,193,78,0.85); } #crosshair::before { top: 7px; left: 0; width: 16px; height: 2px; } #crosshair::after { left: 7px; top: 0; width: 2px; height: 16px; } #hud { display: flex; justify-content: space-between; width: 760px; max-width: 94vw; margin-top: 10px; font-size: 13px; letter-spacing: 1px; } #hud span { color: #f2c14e; } .overlay { position: absolute; inset: 0; background: rgba(5,5,6,0.94); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 24px; gap: 14px; z-index: 10; } .hidden { display: none !important; } .panel-title { font-size: 22px; color: #f2c14e; letter-spacing: 3px; text-shadow: 0 0 12px rgba(242,193,78,0.6); } .panel-text { font-size: 13px; line-height: 1.7; color: #cfc9a8; max-width: 480px; } button.game-btn { background: #1c1810; color: #f2c14e; border: 2px solid #f2c14e; padding: 10px 22px; font-family: inherit; font-size: 14px; letter-spacing: 2px; cursor: pointer; transition: 0.15s; } button.game-btn:hover { background: #f2c14e; color: #1c1810; } #mathBox { background: #12100a; border: 3px solid #f2c14e; padding: 20px 26px; max-width: 420px; box-shadow: 0 0 30px rgba(242,193,78,0.35); } #mathQ { font-size: 22px; color: #fff; margin-bottom: 16px; letter-spacing: 1px; } #mathChoices { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; } #mathChoices button { padding: 12px; font-size: 16px; background: #221d12; border: 2px solid #6b5d33; color: #e6e2c8; cursor: pointer; font-family: inherit; } #mathChoices button:hover { border-color: #f2c14e; background: #33291a; } #mathTimerBar { height: 6px; background: #3a3323; margin-top: 14px; overflow: hidden; } #mathTimerFill { height: 100%; background: #d9534f; width: 100%; } #scareFlash { position: absolute; inset: 0; background: radial-gradient(circle, rgba(255,255,255,0.95), rgba(140,0,0,0.95)); opacity: 0; pointer-events: none; z-index: 8; }