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

:root {
    --gs-a: #4338ca;
    --gs-b: #06b6d4;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.gb-game {
    background:
        radial-gradient(circle at 90% 0%, rgba(34, 211, 238, .25), transparent 40%),
        linear-gradient(160deg, #1e1b4b 0%, #3730a3 55%, #0e7490 100%);
}

.gb-main {
    flex: 1;
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 12px;
    padding: 12px;
    padding-bottom: max(12px, env(safe-area-inset-bottom));
}
@media (max-width: 860px) {
    .gb-main { grid-template-columns: 1fr; grid-template-rows: minmax(260px, 1fr) auto; padding: 8px; gap: 8px; }
}

/* ---------- Harita ---------- */
.gb-map-wrap {
    position: relative;
    min-height: 0;
    border-radius: 22px;
    overflow: hidden;
    background: linear-gradient(180deg, #bae6fd, #7dd3fc);
    box-shadow: 0 14px 34px rgba(0, 0, 0, .35);
}
.gb-map { display: block; width: 100%; height: 100%; touch-action: none; cursor: grab; user-select: none; }
.gb-map:active { cursor: grabbing; }
.gb-land { fill: #f1f5f9; stroke: #94a3b8; stroke-width: .8; vector-effect: non-scaling-stroke; }
.gb-grat { stroke: rgba(14, 116, 144, .25); stroke-width: 1; vector-effect: non-scaling-stroke; }
.gb-equator { stroke: #dc2626; stroke-width: 1.8; stroke-dasharray: 6 4; vector-effect: non-scaling-stroke; }
.gb-grat-label { fill: #0e7490; font-family: var(--ui); font-weight: 900; }
.gb-country {
    fill: var(--c);
    fill-opacity: .62;
    stroke: var(--c);
    stroke-width: 2;
    vector-effect: non-scaling-stroke;
    stroke-linejoin: round;
    cursor: move;
    transition: fill-opacity .15s;
}
.gb-country:hover, .gb-country.dragging { fill-opacity: .8; }
.quiz .gb-country { cursor: default; }
.gb-label {
    fill: #0f172a;
    font-family: var(--ui);
    font-weight: 900;
    paint-order: stroke;
    stroke: #fff;
    stroke-linejoin: round;
    pointer-events: none;
}

.gb-zoom { position: absolute; right: 10px; bottom: 10px; display: grid; gap: 6px; }
.gb-zoom button {
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 12px;
    background: #fff;
    color: var(--navy);
    font-size: 20px;
    font-weight: 900;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .2);
}

.gb-banner {
    position: absolute;
    left: 10px;
    right: 60px;
    top: 10px;
    padding: 10px 36px 10px 14px;
    border-radius: 16px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 8px 22px rgba(0, 0, 0, .2);
    font-size: 14px;
    font-weight: 700;
    color: #334155;
    line-height: 1.4;
    animation: popIn .35s ease;
}
.gb-banner[hidden] { display: none; }
.gb-banner.good { border: 3px solid #86efac; }
.gb-banner small { display: block; color: var(--muted); font-weight: 800; }
.gb-banner button {
    position: absolute;
    top: 6px;
    right: 8px;
    border: 0;
    background: none;
    font-weight: 900;
    color: var(--muted);
}

/* ---------- Panel ---------- */
.gb-panel {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 0;
    overflow-y: auto;
    padding: 12px;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 14px 34px rgba(0, 0, 0, .3);
}
.gb-panel[hidden] { display: none; }
@media (max-width: 860px) {
    .gb-panel { max-height: 42vh; }
}

.gb-search { position: relative; }
#country-input {
    width: 100%;
    height: 46px;
    padding: 0 14px;
    border: 2px solid #c7d2fe;
    border-radius: 14px;
    background: #eef2ff;
    font: 800 15px var(--ui);
}
#country-input:focus { outline: none; border-color: var(--gs-a); background: #fff; }
.gb-suggest {
    position: absolute;
    z-index: 10;
    top: 50px;
    left: 0;
    right: 0;
    list-style: none;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 16px 40px rgba(15, 23, 42, .3);
    max-height: 280px;
    overflow-y: auto;
}
.gb-suggest li { display: flex; align-items: center; gap: 8px; padding: 9px 12px; font-weight: 800; cursor: pointer; }
.gb-suggest li span { flex: 1; }
.gb-suggest li small { color: var(--muted); font-weight: 800; }
.gb-suggest li.active, .gb-suggest li:hover { background: #eef2ff; }
.gb-suggest img { border-radius: 3px; box-shadow: 0 0 0 1px #e2e8f0; }

.gb-placed { list-style: none; display: grid; gap: 6px; }
.gb-placed li {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr) auto auto auto;
    align-items: center;
    gap: 6px;
    padding: 6px 8px;
    border-radius: 12px;
    background: #f8fafc;
    border-left: 5px solid var(--c);
}
.gb-placed img { border-radius: 3px; }
.gb-pl-text { display: grid; min-width: 0; }
.gb-pl-text b { font-size: 14px; color: var(--navy); }
.gb-pl-text span { font-size: 11.5px; font-weight: 700; color: var(--muted); }
.gb-placed button { width: 30px; height: 30px; border: 0; border-radius: 8px; background: #e2e8f0; font-size: 13px; }
.gb-placed button:hover { background: #c7d2fe; }

.gb-h { font: 700 16px var(--display); color: var(--navy); margin-top: 4px; }
.gb-missions { list-style: none; display: grid; gap: 6px; }
.gb-missions button {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    width: 100%;
    padding: 9px 10px;
    border: 2px solid #e0e7ff;
    border-radius: 12px;
    background: #fff;
    text-align: left;
    font-size: 13.5px;
    font-weight: 800;
    color: #334155;
}
.gb-missions button:hover { border-color: var(--gs-a); }
.gb-missions li.done button { background: #f0fdf4; border-color: #bbf7d0; color: #166534; }

/* ---------- Hangisi Büyük ---------- */
.gb-quiz-q { font: 700 18px/1.3 var(--display); color: var(--navy); }
.gb-quiz-opts { display: grid; gap: 8px; }
.gb-opt {
    display: grid;
    grid-template-columns: 40px 1fr auto;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border-radius: 16px;
    border: 3px solid var(--c);
    background: color-mix(in srgb, var(--c) 10%, white);
    font-size: 17px;
    font-weight: 900;
    color: var(--navy);
    text-align: left;
    transition: transform .15s;
}
.gb-opt:hover:not(:disabled) { transform: translateY(-2px); }
.gb-opt img { border-radius: 4px; box-shadow: 0 0 0 1px #e2e8f0; }
.gb-opt kbd { font: 900 12px var(--ui); color: var(--muted); padding: 2px 7px; border-radius: 6px; background: #fff; }
.gb-opt.right { background: #dcfce7; border-color: #22c55e; }
.gb-opt.wrong { background: #fee2e2; border-color: #ef4444; }
.gb-opt.dim { opacity: .6; }
.gb-quiz-after { display: grid; gap: 10px; animation: popIn .35s ease; }
.gb-quiz-after[hidden] { display: none; }
.gb-quiz-after p { font-size: 14px; font-weight: 700; color: #334155; line-height: 1.5; }

.gs-toast {
    position: fixed;
    left: 50%;
    bottom: max(24px, env(safe-area-inset-bottom));
    z-index: 400;
    transform: translateX(-50%);
    padding: 12px 18px;
    border-radius: 14px;
    background: #0f172a;
    color: #fff;
    font-weight: 800;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
    animation: popIn .25s ease;
}
.gs-toast[hidden] { display: none; }
