* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Rye', cursive, system-ui, sans-serif; overflow: hidden; background: #2c1a12; touch-action: none; color: #fff; }
#game-root { position: relative; width: 100vw; height: 100vh; }
canvas { display: block; width: 100%; height: 100%; }

.screen { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; background: rgba(20, 10, 5, 0.85); backdrop-filter: blur(8px); z-index: 10; transition: opacity 0.3s; }
.hidden { opacity: 0; pointer-events: none; }

h1 { font-size: 3.5rem; margin-bottom: 1rem; text-align: center; color: #ffaa00; text-shadow: 0 0 20px rgba(255, 170, 0, 0.5); letter-spacing: 2px; }
p { font-size: 1.2rem; margin-bottom: 2.5rem; text-align: center; max-width: 450px; color: #e2e8f0; line-height: 1.6; font-family: system-ui, sans-serif; }

.ui-btn { font-family: 'Rye', cursive; padding: 15px 45px; font-size: 1.6rem; color: #111; background: linear-gradient(180deg, #ffcc00, #b86b0b); border: 3px solid #fff; border-radius: 8px; cursor: pointer; box-shadow: 0 6px 20px rgba(255, 170, 0, 0.4); transition: transform 0.1s, filter 0.2s; letter-spacing: 2px; }
.ui-btn:active { transform: translateY(4px); box-shadow: 0 2px 10px rgba(255, 170, 0, 0.4); }
.ui-btn:hover { filter: brightness(1.2); }

#hud { position: absolute; top: 20px; left: 20px; right: 20px; display: flex; justify-content: space-between; z-index: 5; pointer-events: none; }
.hud-card { background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(6px); padding: 12px 24px; border: 2px solid rgba(255, 170, 0, 0.3); border-radius: 8px; font-weight: bold; font-size: 1.4rem; color: #ffaa00; font-family: 'Rye', cursive; text-shadow: 0 2px 4px rgba(0,0,0,0.8); }

#flash-overlay { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; z-index: 20; transition: opacity 0.1s ease-out; }
