/* Teaser game on the landing page (#spele) — extends styles.css tokens. */

.game-section {
    padding: 5rem 2rem;
    background: linear-gradient(180deg, var(--cream) 0%, var(--mist) 100%);
}

.game-section .section-header {
    margin-bottom: 2.5rem;
}

.game-shell {
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid var(--leaf);
    background: var(--mist);
    box-shadow: 0 30px 70px -25px rgba(26, 58, 47, 0.35);
}

.game-map {
    width: 100%;
    height: 640px;
    /* Stylized (blurred) map of Latvia so the stage never looks empty
       before the real map lazy-loads; the MapLibre canvas covers it. */
    background: var(--mist) url('/img/latvia-teaser.svg') center / cover no-repeat;
}

.game-map .maplibregl-canvas {
    cursor: crosshair;
}

/* The card overlays the map bottom, like the app's answer card. */
.game-card {
    position: absolute;
    left: 50%;
    bottom: 1.1rem;
    transform: translateX(-50%);
    width: min(420px, calc(100% - 1.6rem));
    background: rgba(250, 253, 249, 0.96);
    backdrop-filter: blur(8px);
    border: 1px solid var(--leaf);
    border-radius: 18px;
    padding: 0.85rem 1.1rem;
    box-shadow: 0 18px 45px -12px rgba(26, 58, 47, 0.4);
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.game-card.game-card-enter {
    opacity: 0;
    transform: translateX(-50%) translateY(16px);
}

.game-card h3 {
    font-size: 1.15rem;
    color: var(--forest-deep);
    margin-bottom: 0.35rem;
}

.game-card p {
    color: var(--forest-mid);
    font-size: 0.92rem;
    margin-bottom: 0.9rem;
}

.game-eyebrow {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--forest-light);
    margin-bottom: 0.5rem;
}

.game-score {
    background: var(--mist);
    border: 1px solid var(--leaf);
    border-radius: 30px;
    padding: 0.1rem 0.7rem;
    color: var(--forest-mid);
    text-transform: none;
    letter-spacing: 0;
}

.game-target {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.9rem;
}

.game-target-thumb {
    flex: 0 0 52px;
    width: 52px;
    height: 52px;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--forest-mid), var(--meadow));
    color: rgba(250, 253, 249, 0.95);
}

.game-target-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.game-target-thumb svg {
    width: 26px;
    height: 26px;
}

.game-target-name {
    font-family: 'Lora', serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--forest-deep);
    line-height: 1.25;
}

.game-target-type {
    font-size: 0.82rem;
    color: var(--forest-mid);
}

.game-hint {
    font-size: 0.85rem;
    color: var(--forest-mid);
    margin-bottom: 0.75rem;
}

.game-buttons {
    display: flex;
    gap: 0.7rem;
    flex-wrap: wrap;
}

.game-buttons .btn {
    padding: 0.6rem 1.3rem;
    font-size: 0.95rem;
    border: 0;
    cursor: pointer;
    font-family: inherit;
}

.game-buttons .btn-secondary {
    border: 2px solid var(--meadow);
}

.game-buttons .btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.game-result {
    display: flex;
    align-items: baseline;
    gap: 0.8rem;
    margin-bottom: 0.9rem;
}

.game-result-distance {
    font-family: 'Lora', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--forest-deep);
}

.game-result-points {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--forest-light);
}

.game-final-score {
    font-family: 'Lora', serif;
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--forest-deep);
    line-height: 1.1;
    margin-bottom: 0.3rem;
}

.game-final-rating {
    font-weight: 600;
    color: var(--forest-mid);
    margin-bottom: 0.75rem;
}

.game-card .download-buttons {
    justify-content: flex-start;
    margin-bottom: 0.9rem;
}

.game-card .download-buttons img {
    height: 36px;
}

.game-noscript {
    padding: 1.25rem;
    text-align: center;
    color: var(--forest-mid);
    margin: 0;
}

.game-error {
    color: #a04832;
    font-weight: 600;
}

@media (max-width: 700px) {
    .game-section {
        padding: 4rem 1rem;
    }

    .game-map {
        height: 62vh;
        min-height: 68vh;
    }

    .game-card {
        bottom: 0.7rem;
        padding: 0.9rem 1rem;
    }

    .game-target-name {
        font-size: 1.05rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .game-card {
        transition: none;
    }
}
