/* Chrome Dino Game - Authentic Style */

.chrome-dino-card {
    background: #f7f7f7;
    border: none;
    border-radius: 0;
}

.dino-game-wrapper {
    background: #f7f7f7;
    position: relative;
    width: 100%;
    overflow: hidden;
}

#dinoCanvas {
    display: block;
    width: 100%;
    height: auto;
    min-height: 150px;
    cursor: pointer;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
    background: #f7f7f7;
}

/* Start hint text */
.start-hint {
    position: absolute;
    bottom: 50%;
    left: 50%;
    transform: translate(-50%, 50%);
    font-family: 'Courier New', monospace;
    font-size: 14px;
    color: #535353;
    text-align: center;
    pointer-events: none;
    opacity: 0.8;
}

/* Game Over Panel */
.game-over-panel {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 10;
}

.game-over-text {
    font-family: 'Courier New', monospace;
    font-size: 20px;
    font-weight: bold;
    color: #535353;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.restart-btn {
    width: 36px;
    height: 32px;
    background: #535353;
    border: none;
    cursor: pointer;
    position: relative;
    /* Restart icon shape */
    clip-path: polygon(
        35% 0%, 65% 0%, 65% 25%, 100% 25%, 100% 75%, 65% 75%, 65% 100%, 35% 100%, 35% 75%, 0% 75%, 0% 25%, 35% 25%
    );
}

.restart-btn:hover {
    opacity: 0.8;
}

.restart-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    border-left: 8px solid #f7f7f7;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
}

/* Score Display - Chrome Dino Style */
.score-display {
    font-family: 'Courier New', monospace;
    font-size: 1.2rem;
    font-weight: bold;
    color: #535353;
    letter-spacing: 1px;
}

.score-display.hi-score {
    color: #757575;
}

.stat-card {
    border-radius: 4px;
}

/* Mobile Control Buttons */
.mobile-control-btn {
    border-color: #535353;
    color: #535353;
    transition: all 0.1s ease;
}

.mobile-control-btn:active {
    background-color: #535353;
    color: #f7f7f7;
    transform: scale(0.95);
}

/* Keyboard keys */
kbd {
    background: #535353;
    color: #f7f7f7;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.85em;
}

/* Dark Mode Support */
[data-bs-theme="dark"] .chrome-dino-card,
[data-bs-theme="dark"] .dino-game-wrapper,
[data-bs-theme="dark"] #dinoCanvas {
    background: #202124;
}

[data-bs-theme="dark"] .start-hint,
[data-bs-theme="dark"] .game-over-text,
[data-bs-theme="dark"] .score-display {
    color: #e8eaed;
}

[data-bs-theme="dark"] .score-display.hi-score {
    color: #9aa0a6;
}

[data-bs-theme="dark"] .restart-btn {
    background: #e8eaed;
}

[data-bs-theme="dark"] .restart-btn::before {
    border-left-color: #202124;
}

[data-bs-theme="dark"] .mobile-control-btn {
    border-color: #e8eaed;
    color: #e8eaed;
}

[data-bs-theme="dark"] .mobile-control-btn:active {
    background-color: #e8eaed;
    color: #202124;
}

[data-bs-theme="dark"] kbd {
    background: #e8eaed;
    color: #202124;
}

/* Responsive */
@media (max-width: 576px) {
    .score-display {
        font-size: 1rem;
    }

    .game-over-text {
        font-size: 16px;
    }

    .start-hint {
        font-size: 12px;
    }
}

/* Animation for blinking score */
@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.score-blink {
    animation: blink 0.2s linear 4;
}
