/* GeoGames — Türkiye Sanayi Kartları (oyuna özel stiller; ortak parçalar /shared/gs-game.css) */

:root { --gs-a: #ea580c; --gs-b: #0e7490; }

.sk-stage {
    flex: 1;
    min-height: 0;
    display: grid;
    grid-template-columns: 1fr minmax(300px, 34%);
    gap: 14px;
    padding: 14px;
    padding-bottom: max(14px, env(safe-area-inset-bottom));
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
}

/* ---------- Harita ---------- */
.sk-map-panel {
    position: relative;
    min-height: 0;
    display: flex;
    align-items: center;
    padding: 56px 12px 40px;
    border-radius: 26px;
    background: linear-gradient(180deg, #e0f2fe 0%, #bae6fd 100%);
    border: 4px solid rgba(255, 255, 255, .85);
    box-shadow: 0 16px 36px -14px rgba(2, 20, 60, .6);
    overflow: hidden;
}
.sk-map { display: block; width: 100%; height: auto; max-height: 100%; }

.sk-prov {
    fill: #f8fafc;
    stroke: #94a3b8;
    stroke-width: 1;
    stroke-linejoin: round;
    cursor: pointer;
    transition: fill .3s;
}
.sk-prov:hover { fill: #fed7aa; }
.sk-prov.hover { fill: #fdba74; stroke: #9a3412; }

.sk-prov.m-off { fill: #f1f5f9; }
.sk-prov.m-main, .sk-legend .lm { fill: #c2410c; background: #c2410c; }
.sk-prov.m-also, .sk-legend .la { fill: #fdba74; background: #fdba74; }
.sk-prov.chosen { stroke: #1d4ed8; stroke-width: 3.5; }
.sk-legend .lc { background: transparent; box-shadow: inset 0 0 0 2.5px #1d4ed8; }

.sk-label {
    font: 800 15px var(--ui);
    fill: var(--navy);
    text-anchor: middle;
    paint-order: stroke;
    stroke: #fff;
    stroke-width: 4px;
    stroke-linejoin: round;
    pointer-events: none;
}
.sk-label.main { fill: #7c2d12; }
.sk-label.pick { fill: #1d4ed8; font-size: 13px; }

.sk-legend {
    position: absolute;
    left: 12px;
    bottom: 10px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 12px;
    padding: 5px 10px;
    border-radius: 14px;
    background: rgba(255, 255, 255, .92);
    font-size: 11.5px;
    font-weight: 800;
    color: var(--navy);
}
.sk-legend[hidden] { display: none; }
.sk-legend span { display: inline-flex; align-items: center; gap: 5px; }
.sk-legend i { display: inline-block; width: 16px; height: 11px; border-radius: 3px; }
.sk-legend.no-also span:nth-child(2) { display: none; }

/* ---------- Yan panel ---------- */
.sk-side {
    position: relative;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow-y: auto;
    padding: 2px 2px 4px;
}

.sk-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 22px;
    background: linear-gradient(135deg, #fff 0%, #fff7ed 100%);
    border: 3px solid #fdba74;
    box-shadow: 0 6px 0 rgba(154, 52, 18, .35), 0 16px 30px -16px rgba(2, 20, 60, .6);
}
.sk-card.flip { animation: cardIn .45s cubic-bezier(.2, 1.3, .5, 1); }
@keyframes cardIn { from { transform: rotateY(80deg) scale(.9); opacity: 0; } to { transform: none; opacity: 1; } }
.sk-card-icon {
    flex: none;
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background: #fff;
    box-shadow: inset 0 0 0 2px #fed7aa;
    font-size: 38px;
}
.sk-card-body { min-width: 0; }
.sk-card-group { font-size: 11.5px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; color: #c2410c; }
.sk-card-name { font: 700 clamp(18px, 2.3vw, 24px)/1.15 var(--display); color: var(--navy); margin: 2px 0 4px; overflow-wrap: anywhere; }
.sk-card-total { font-size: 13px; font-weight: 800; color: var(--muted); }
.sk-card-total[hidden] { display: none; }

.sk-question { color: #fff; font-weight: 800; font-size: 14px; line-height: 1.4; }

.sk-result {
    padding: 12px 14px;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 5px 0 rgba(11, 42, 91, .22);
}
.sk-result[hidden] { display: none; }
.sk-result h3 { font-size: 12px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 2px 0 6px; }
.sk-result h3[hidden] { display: none; }
.sk-result h3 + * { margin-bottom: 10px; }

.sk-centers { list-style: none; display: flex; flex-wrap: wrap; gap: 5px; }
.sk-centers li {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    padding: 4px 9px;
    border-radius: 999px;
    font-size: 13px;
    background: #ffedd5;
}
.sk-centers li.main { background: #c2410c; color: #fff; }
.sk-c-name { font-weight: 900; }
.sk-c-tag { font-size: 11px; font-weight: 800; opacity: .8; }

.sk-why { list-style: none; display: flex; flex-wrap: wrap; gap: 5px; }
.sk-why[hidden] { display: none; }
.sk-why li { padding: 3px 9px; border-radius: 999px; background: #e0f2fe; color: #075985; font-size: 12.5px; font-weight: 900; }

.sk-note { font-size: 13.5px; line-height: 1.45; font-weight: 700; color: var(--navy); }
.sk-src { margin-top: 6px; font-size: 11.5px; font-weight: 700; color: var(--muted); }

/* Tur sonu kartı üretim listesinin üstüne binmesin: akış içinde, listenin üstünde ve kompakt durur.
   Önceden yapışkan (sticky) kart "En çok üreten 5" listesini ve payları kapatıyordu. */
.sk-side .gs-round-end { position: static; order: 1; padding: 0; flex-shrink: 0; }
.sk-side #result-box { order: 2; }
.sk-side .gs-round-card { padding: 10px 14px; gap: 4px 12px; border-width: 3px; border-radius: 18px; box-shadow: 0 8px 20px -10px rgba(2, 20, 60, .6); }
.sk-side .gs-round-card > img { width: 48px; height: 48px; }
.sk-side .gs-round-title { font-size: 17px; }
.sk-side .gs-round-answer { font-size: 15px; margin-top: 2px; }
.sk-side .gs-round-points { font-size: 22px; }
.sk-side .gs-next { height: 44px; }
/* Cevap verildikten sonra soru metnine gerek yok: yer listeye kalsın */
.sk-side:has(.gs-round-end:not([hidden])) .sk-question { display: none; }

/* ---------- Duyarlı düzen ---------- */
@media (max-width: 900px), (orientation: portrait) and (max-width: 1100px) {
    .sk-stage { grid-template-columns: 1fr; grid-template-rows: auto 1fr; gap: 10px; padding: 10px; }
    .sk-map-panel { padding: 50px 8px 34px; border-radius: 22px; }
}

@media (max-width: 560px) {
    .sk-card { padding: 10px 12px; gap: 10px; }
    .sk-card-icon { width: 52px; height: 52px; font-size: 30px; }
    .sk-label { font-size: 22px; }
    .sk-legend { font-size: 10.5px; gap: 3px 8px; }
}

@media (max-height: 520px) and (orientation: landscape) {
    .sk-stage { grid-template-columns: 1fr 42%; grid-template-rows: none; gap: 8px; padding: 8px; }
    .sk-map-panel { padding: 44px 8px 30px; }
}
