/* ------------------------------------------------------------------
   Dino-Spiel – minimales, monochromes Layout im Stil des Original-
   Chrome-Offline-Spiels.
   ------------------------------------------------------------------ */

:root {
    --bg: #ffffff;
    --fg: #535353;
    --fg-light: #b8b8b8;
    --line: #e2e2e2;
    color-scheme: light;
}

* {
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--fg);
    font-family: 'JetBrains Mono', 'Consolas', 'Courier New', monospace;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 24px;
}

.game-shell {
    width: 100%;
    max-width: 640px;
}

.game-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 10px;
}

.game-header h1 {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin: 0;
    text-transform: uppercase;
}

.game-header .subtitle {
    font-size: 11px;
    color: var(--fg-light);
}

.stage {
    position: relative;
    border: 1px solid var(--line);
    background: var(--bg);
    overflow: hidden;
}

#game-canvas {
    display: block;
    width: 100%;
    image-rendering: pixelated;
}

.overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
    text-align: center;
}

.overlay.hidden {
    display: none;
}

.overlay-title {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.overlay-hint {
    font-size: 11px;
    color: var(--fg-light);
}

.hud {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    font-size: 11px;
    color: var(--fg-light);
}

.hud .score {
    color: var(--fg);
    font-weight: 700;
    letter-spacing: 1px;
}

.hud kbd {
    border: 1px solid var(--line);
    border-radius: 3px;
    padding: 1px 5px;
    font-family: inherit;
    font-size: 10px;
}

.debug-panel {
    margin-top: 14px;
    border: 1px solid var(--line);
    padding: 10px 12px;
    font-size: 10.5px;
    color: var(--fg-light);
    line-height: 1.6;
}

.debug-panel strong {
    color: var(--fg);
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}
