:root {
    --ocean: #a9d3ec;
    --land: #ffffff;
    --land-border: #b8b8b8;
    --ink: #1a1a1a;
    --panel-bg: rgba(255, 255, 255, 0.92);
    --accent: #0056b3;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--ink);
    background: var(--ocean);
    overflow: hidden;
    /* Kiosk: no text selection, no touch callouts. */
    user-select: none;
    -webkit-user-select: none;
    cursor: none;
}

.stage {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100vh;
    width: 100vw;
}

/* Header ------------------------------------------------------------------ */
.stage-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 1.2rem;
    padding: 1.2rem 1.8rem;
    pointer-events: none;
}
.event-logo { max-height: 80px; max-width: 260px; }
.event-name {
    font-size: 2rem;
    font-weight: 700;
    text-shadow: 0 1px 3px rgba(255, 255, 255, 0.8);
}

/* Map --------------------------------------------------------------------- */
.map-wrap {
    flex: 1 1 auto;
    min-height: 0;
    background: var(--ocean);
}
#map { width: 100%; height: 100%; display: block; }

#countries path {
    fill: var(--land);
    stroke: var(--land-border);
    stroke-width: 1;               /* px, constant at every zoom */
    vector-effect: non-scaling-stroke;
    transition: fill 0.4s ease;
}

/* Prompt / input panel ---------------------------------------------------- */
.prompt-panel {
    position: absolute;
    left: 50%;
    bottom: 4.5rem;
    transform: translateX(-50%);
    z-index: 4;
    width: min(92vw, 900px);
    text-align: center;
    background: var(--panel-bg);
    border-radius: 18px;
    padding: 1.4rem 2rem 1.6rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.18);
}
.prompt-text {
    margin: 0 0 0.4rem;
    font-size: 1.7rem;
    font-weight: 600;
    line-height: 1.25;
}
.prompt-hint {
    margin: 0 0 1rem;
    font-size: 1.05rem;
    color: #555;
}
.input-display {
    font-size: 4rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    min-height: 5rem;
    line-height: 5rem;
    font-variant-numeric: tabular-nums;
    color: var(--ink);
}
.input-display[data-empty="true"] .caret { opacity: 0.5; }
.caret {
    display: inline-block;
    color: var(--accent);
    animation: blink 1s step-start infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.status {
    margin: 0.6rem 0 0;
    min-height: 2rem;
    font-size: 1.5rem;
    font-weight: 600;
}
.status.ok { color: #1a7f37; }
.status.err { color: #c1121f; }

/* Shake animation for wrong input */
.shake { animation: shake 0.4s ease; }
@keyframes shake {
    0%, 100% { transform: translateX(-50%); }
    20% { transform: translateX(calc(-50% - 14px)); }
    40% { transform: translateX(calc(-50% + 14px)); }
    60% { transform: translateX(calc(-50% - 10px)); }
    80% { transform: translateX(calc(-50% + 10px)); }
}

/* Footer (styled after the Chaotikum light footer) ------------------------ */
.site-footer {
    position: relative;
    z-index: 3;
    background: #f8f9fa;
    border-top: 1px solid #dee2e6;
    padding: 0.5rem 1.5rem;
    font-size: 0.72rem;
    color: #212529;
}
.site-footer p { margin: 0.15rem 0; }
.footer-links { list-style: none; margin: 0 0 0.3rem; padding: 0; }
.footer-links li { display: inline-block; margin-right: 1rem; }
.site-footer a { color: #0056b3; text-decoration: underline; font-weight: bold; }
.site-footer a:hover, .site-footer a:focus { color: #003d82; }
.footer-attribution { color: #495057 !important; }
