/* Geo Guesser — page styles
   (space background comes from ../multiverse-bg.css) */

body {
    margin: 0;
    font-family: "Trebuchet MS", "Segoe UI", system-ui, sans-serif;
    color: #f2efff;
}

#game {
    max-width: 860px;
    margin: 0 auto;
    padding: 20px 16px 40px;
}

#hud {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}

#hud h1 {
    font-size: 30px;
    margin: 0;
    letter-spacing: .04em;
    background: linear-gradient(180deg, #fff6dd 10%, #e8cf94 90%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

#hudStats {
    display: flex;
    gap: 18px;
    font-size: 15px;
    color: #a09ac2;
}

#scoreInfo {
    color: #e8cf94;
    font-weight: bold;
}

#prompt {
    text-align: center;
    font-size: 22px;
    margin: 18px 0 14px;
}

#countryName {
    color: #e8cf94;
    font-weight: bold;
    letter-spacing: .08em;
    text-transform: uppercase;
}

#mapWrap {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 0 70px rgba(122,92,255,.28), 0 0 26px rgba(53,196,255,.14);
}

#map {
    display: block;
    width: 100%;
    height: auto;
    touch-action: manipulation;
    cursor: crosshair;
}

#overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

#feedback {
    min-height: 30px;
    text-align: center;
    font-size: 18px;
    font-weight: bold;
    margin-top: 14px;
}

#feedback.hit  { color: #7ed957; }
#feedback.cold { color: #ff8a94; }

#controls {
    display: flex;
    justify-content: center;
    margin-top: 6px;
}

button {
    font-family: inherit;
    font-size: 16px;
    font-weight: bold;
    color: #0c0a14;
    background: linear-gradient(120deg, #e8cf94, #d9b45b);
    border: none;
    border-radius: 999px;
    padding: 12px 30px;
    cursor: pointer;
    transition: transform .2s, box-shadow .2s;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px -10px rgba(217,180,91,.5);
}

/* ---------- overlay screens ---------- */

.screen {
    position: fixed;
    inset: 0;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 24px;
    background: rgba(7,7,15,.82);
    backdrop-filter: blur(6px);
}

.screen[hidden] {
    display: none;
}

.screen h2 {
    font-size: 44px;
    margin: 0 0 10px;
    background: linear-gradient(180deg, #fff6dd 10%, #d9b45b 90%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.screen .lede {
    font-size: 20px;
    margin: 0 0 10px;
}

.screen p {
    color: #a09ac2;
    max-width: 460px;
    margin: 0 0 10px;
}

.screen button {
    margin-top: 18px;
}

#endScore {
    font-size: 28px;
    color: #f2efff;
    font-weight: bold;
}

#endBest {
    color: #e8cf94;
}

#roundRecap {
    margin: 14px 0 0;
    max-height: 190px;
    overflow-y: auto;
    text-align: left;
    font-size: 14px;
    max-width: 420px;
    width: 100%;
}

#roundRecap p {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin: 4px 0;
    color: #a09ac2;
}

#roundRecap .pts {
    color: #e8cf94;
    font-weight: bold;
}
