/* GeoGames — Harita Royale (oyuna özel stiller; ortak parçalar /shared/gs-game.css) */

:root {
    --gs-a: #6d28d9;
    --gs-b: #db2777;
}

#login-screen.gg-intro .hr-modes { grid-template-columns: repeat(3, 1fr) !important; }
@media (max-width: 460px) {
    #login-screen.gg-intro .hr-modes { grid-template-columns: 1fr !important; }
}
#login-screen.gg-intro .gg-field[hidden] { display: none !important; }
#login-screen.gg-intro .hr-code-input {
    text-transform: uppercase !important;
    letter-spacing: .3em !important;
    font-weight: 900 !important;
    font-size: 22px !important;
    text-align: center !important;
}

/* ---------- Lobi ---------- */
.hr-lobby {
    position: fixed;
    inset: 0;
    align-items: center;
    justify-content: center;
    padding: 16px;
    overflow-y: auto;
    background:
        radial-gradient(circle at 15% 85%, rgba(236, 72, 153, .4), transparent 45%),
        radial-gradient(circle at 85% 15%, rgba(139, 92, 246, .5), transparent 45%),
        linear-gradient(160deg, #0f0a2e 0%, #3b0764 50%, #831843 100%);
}
.hr-lobby-card {
    width: min(760px, 100%);
    padding: 22px;
    border-radius: 28px;
    background: #fff;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .45);
    text-align: center;
}
.hr-lobby-eyebrow { font-size: 13px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; color: var(--gs-b); }
.hr-lobby-url { font-size: 16px; font-weight: 800; color: #475569; }
.hr-lobby-main { display: flex; align-items: center; justify-content: center; gap: 24px; flex-wrap: wrap; margin: 12px 0; }
.hr-lobby-label { font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.hr-room-code {
    font: 700 clamp(48px, 10vw, 84px)/1 var(--display);
    letter-spacing: .12em;
    color: var(--gs-a);
}
.hr-lobby-link { margin-top: 6px; font-size: 12px; font-weight: 800; color: var(--muted); word-break: break-all; }
.hr-qr { padding: 8px; border-radius: 14px; background: #fff; box-shadow: 0 0 0 2px #ede9fe; }
.hr-qr[hidden] { display: none; }
.hr-qr img, .hr-qr canvas { display: block; }
.hr-lobby-settings { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-bottom: 10px; }
.hr-seg { display: flex; gap: 4px; padding: 4px; border-radius: 14px; background: #f5f3ff; }
.hr-seg button { padding: 8px 12px; border: 0; border-radius: 10px; background: none; font-weight: 900; color: #6b7280; }
.hr-seg button.active { background: #fff; color: var(--gs-a); box-shadow: 0 2px 8px rgba(109, 40, 217, .2); }
.hr-lobby-count { font-weight: 900; color: var(--navy); }
.hr-lobby-count b { font: 700 26px var(--display); color: var(--gs-b); }
.hr-lobby-players {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
    max-height: 200px;
    overflow-y: auto;
    margin: 10px 0;
}
.hr-lobby-players li {
    padding: 6px 12px;
    border-radius: 999px;
    background: #ede9fe;
    color: #4c1d95;
    font-weight: 900;
    animation: popIn .35s cubic-bezier(.2, 1.4, .5, 1);
}
.hr-lobby-card .gs-result-actions { justify-content: center; }
.hr-lobby-status { margin-top: 10px; font-size: 13px; font-weight: 800; color: var(--muted); }

/* ---------- Oyun ---------- */
.hr-game {
    background:
        radial-gradient(circle at 90% 0%, rgba(236, 72, 153, .3), transparent 40%),
        linear-gradient(160deg, #0f0a2e 0%, #3b0764 55%, #831843 100%);
}
.hr-brand { font: 700 16px var(--display); color: #fff; white-space: nowrap; }
.hr-room-chip { padding: 4px 10px; border-radius: 999px; background: #fde047; color: #713f12; font-weight: 900; font-size: 13px; letter-spacing: .08em; }
.hr-room-chip[hidden], .gs-hud-item[hidden] { display: none; }

.hr-main {
    flex: 1;
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 12px;
    padding: 12px;
    padding-bottom: max(12px, env(safe-area-inset-bottom));
}
@media (max-width: 820px) {
    .hr-main { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) auto; padding: 8px; gap: 8px; }
    .hr-side { max-height: 26vh; }
}

.hr-play { display: flex; flex-direction: column; gap: 8px; min-height: 0; }
.hr-question {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 4px 12px;
    padding: 10px 14px;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 10px 26px rgba(0, 0, 0, .35);
}
.hr-round { padding: 4px 10px; border-radius: 999px; background: #ede9fe; color: var(--gs-a); font-weight: 900; font-size: 13px; white-space: nowrap; }
.hr-prompt { font: 500 clamp(17px, 2.6vw, 24px)/1.25 var(--display); color: var(--navy); }
.hr-prompt b { color: var(--gs-b); }
.hr-timer { grid-column: 1 / -1; height: 8px; border-radius: 999px; background: #f1f5f9; overflow: hidden; }
.hr-timer i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #22c55e, #eab308, #ef4444); border-radius: inherit; }

.hr-map-wrap {
    position: relative;
    flex: 1;
    min-height: 200px;
    border-radius: 22px;
    overflow: hidden;
    background:
        repeating-linear-gradient(45deg, rgba(139, 92, 246, .14) 0 10px, transparent 10px 20px),
        #2e1065;
    box-shadow: 0 14px 34px rgba(0, 0, 0, .4);
}
.hr-map { display: block; width: 100%; height: 100%; touch-action: manipulation; }
.hr-prov { stroke: #475569; stroke-width: .7; vector-effect: non-scaling-stroke; transition: fill .25s; }
.hr-prov.in { fill: #f8fafc; cursor: pointer; }
.hr-prov.in:hover { fill: #fde68a; }
.hr-prov.out { fill: #4c1d95; fill-opacity: .55; stroke: #6d28d9; }
.hr-prov.ref { fill: #c4b5fd; }
.hr-prov.picked { fill: #fb923c; }
.hr-prov.ans { fill: #4ade80; }
.hr-prov.wrong { fill: #f87171; }
.hr-heat, .hr-ref {
    font-family: var(--ui);
    font-weight: 900;
    fill: #0f172a;
    paint-order: stroke;
    stroke: #fff;
    stroke-linejoin: round;
    pointer-events: none;
}
.hr-heat.ok { fill: #166534; }
.hr-ref { fill: #4c1d95; }

.hr-storm-badge {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    padding: 10px 18px;
    border-radius: 999px;
    background: #7c3aed;
    color: #fff;
    font: 700 18px var(--display);
    box-shadow: 0 10px 30px rgba(124, 58, 237, .6);
}
.hr-storm-badge[hidden] { display: none; }
.hr-storm-badge.show { animation: popIn .5s cubic-bezier(.2, 1.4, .5, 1); }

.hr-status {
    min-height: 44px;
    padding: 10px 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, .95);
    font-weight: 900;
    font-size: 15px;
    color: var(--navy);
}
.hr-status.good { background: #dcfce7; color: #166534; }
.hr-status.bad { background: #fee2e2; color: #991b1b; }
.hr-status.warn { background: #fef3c7; color: #92400e; }

.hr-side {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 0;
    overflow-y: auto;
    padding: 12px;
    border-radius: 22px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 14px 34px rgba(0, 0, 0, .35);
}
.hr-side h3 { font: 700 17px var(--display); color: var(--navy); }
.hr-board { list-style: none; display: grid; gap: 4px; }
.hr-board li {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 6px;
    padding: 6px 8px;
    border-radius: 10px;
    background: #f8fafc;
    font-size: 13.5px;
    font-weight: 800;
}
.hr-board li.me { box-shadow: inset 0 0 0 2px var(--gs-a); background: #f5f3ff; }
.hr-board li.out { opacity: .5; }
.hr-board li.ok { background: #f0fdf4; }
.hr-board li.no { background: #fef2f2; }
.hr-b-rank { color: var(--muted); font-weight: 900; }
.hr-b-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--navy); }
.hr-b-lives { font-size: 12px; }
.hr-b-score { color: var(--gs-a); font-weight: 900; font-variant-numeric: tabular-nums; }
.hr-feed { font-size: 13px; font-weight: 800; color: #6b21a8; }

/* ---------- Sonuç ---------- */
.hr-podium { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 16px 0; align-items: end; }
.hr-podium li { display: grid; justify-items: center; gap: 2px; padding: 12px 6px; border-radius: 16px; background: #f5f3ff; text-align: center; }
.hr-podium li.p1 { order: 2; padding-top: 22px; background: #fef9c3; }
.hr-podium li.p2 { order: 1; }
.hr-podium li.p3 { order: 3; }
.hr-podium li.me { box-shadow: inset 0 0 0 3px var(--gs-a); }
.hr-medal { font-size: 34px; }
.hr-podium b { font-weight: 900; color: var(--navy); overflow-wrap: anywhere; }
.hr-podium small { font-weight: 800; color: var(--muted); }
.hr-final { display: grid; gap: 4px; max-height: 220px; overflow-y: auto; padding-left: 28px; }
.hr-final li { padding: 4px 8px; border-radius: 8px; font-weight: 800; color: var(--navy); }
.hr-final li span { display: inline-block; min-width: 60%; }
.hr-final li b { color: var(--gs-a); float: right; }
.hr-final li.me { background: #f5f3ff; }
.gs-result-actions .gs-btn[hidden] { display: none; }
.hr-skip {
    margin-left: 8px;
    padding: 6px 12px;
    border: 0;
    border-radius: 10px;
    background: var(--gs-a);
    color: #fff;
    font-weight: 900;
}
