:root { --bg: #1a1a1a; --text: #4caf50; }
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Outfit', sans-serif; background: var(--bg); color: var(--text); min-height: 100vh; display: flex;
    flex-direction: column; justify-content: flex-start; align-items: center; }
.game-container { width: 100%; max-width: 600px; padding: 1rem; display: flex; flex-direction: column; align-items: center; position: relative; overflow: hidden;}
header { width: 100%; display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.back-btn { text-decoration: none; background: #ffca28; color: white; padding: 10px 20px; border-radius: 20px; font-weight: bold; box-shadow: 0 4px 0 #ffb300; }
.back-btn:active { transform: translateY(4px); box-shadow: 0 0 0; }
h1 { font-size: 2rem; color: #ff8f00; text-shadow: 2px 2px 0 #000; }
.hud { font-size: 1.5rem; font-weight: 900; margin-bottom: 1rem; }
.instruction { font-size: 1.2rem; margin-top: 1rem; font-weight: bold; text-align: center; color: #795548;}

.game-area { width: 100%; height: 250px; background: linear-gradient(to bottom, #81d4fa 0%, #e1f5fe 70%, #8bc34a 70%, #689f38 100%); border-radius: 15px; position: relative; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.1); border: 4px solid #fff;}

.dino { position: absolute; bottom: 20px; left: 30px; font-size: 4rem; z-index: 2; line-height: 1;}
.cactus { position: absolute; bottom: 20px; right: -50px; font-size: 3rem; z-index: 2; line-height: 1;}

.jump { animation: jumpAnim 0.6s linear; }
@keyframes jumpAnim {
    0% { bottom: 20px; }
    40% { bottom: 120px; }
    50% { bottom: 130px; }
    60% { bottom: 120px; }
    100% { bottom: 20px; }
}

.move { animation: moveAnim 2s linear infinite; }
@keyframes moveAnim {
    0% { right: -50px; }
    100% { right: 100%; }
}

.overlay { position: absolute; inset: 0; background: rgba(30,30,30,0.95); display: flex; flex-direction: column; justify-content: center; align-items: center; z-index: 10; border-radius: 10px; }
.overlay h2 { font-size: 2.5rem; color: #ff5722; margin-bottom: 1rem; text-shadow: 2px 2px 0 #000;}
.btn { background: #ff9800; border: none; padding: 15px 40px; font-size: 1.5rem; font-weight: 900; border-radius: 50px; cursor: pointer; color: white; font-family: 'Outfit'; box-shadow: 0 5px 0 #f57c00; }
.btn:active { transform: translateY(5px); box-shadow: none; }
.hidden { display: none !important; }
