/* GeoGames — Hafızadan Çiz (oyuna özel stiller; ortak parçalar /shared/gs-game.css) */

:root {
    --gs-a: #be185d;
    --gs-b: #f97316;
}

#login-screen.gg-intro .hc-modes { grid-template-columns: repeat(3, 1fr) !important; }
@media (max-width: 460px) {
    #login-screen.gg-intro .hc-modes { grid-template-columns: 1fr !important; }
}
#login-screen.gg-intro .gg-field[hidden] { display: none !important; }

.hc-game {
    background:
        radial-gradient(circle at 90% 0%, rgba(251, 146, 60, .3), transparent 40%),
        linear-gradient(160deg, #4a044e 0%, #831843 55%, #9a3412 100%);
}

.hc-main {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 10px 12px;
    padding-bottom: max(12px, env(safe-area-inset-bottom));
}

.hc-task { color: #fff; text-align: center; }
.hc-task-eyebrow { font-size: 12px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; color: #fde68a; }
.hc-task-title { font: 700 30px/1.1 var(--display); text-shadow: 0 3px 0 rgba(0, 0, 0, .25); }
.hc-task-sub { margin-top: 2px; font-size: 13.5px; font-weight: 700; opacity: .9; }

.hc-stage {
    position: relative;
    flex: 1;
    min-height: 220px;
    border-radius: 24px;
    overflow: hidden;
    background:
        radial-gradient(circle, #e2e8f0 1.2px, transparent 1.3px) 0 0 / 22px 22px,
        #f8fafc;
    box-shadow: 0 14px 34px rgba(0, 0, 0, .35), inset 0 0 0 3px rgba(255, 255, 255, .6);
}
#board { display: block; touch-action: none; cursor: crosshair; }
.hc-north {
    position: absolute;
    top: 10px;
    right: 12px;
    font: 900 12px/1 var(--ui);
    color: #94a3b8;
    text-align: center;
    pointer-events: none;
}
.hc-score-pop {
    position: absolute;
    top: 12px;
    left: 12px;
    display: grid;
    padding: 8px 16px;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(0, 0, 0, .2);
    text-align: center;
    animation: popIn .45s cubic-bezier(.2, 1.4, .5, 1);
}
.hc-score-pop[hidden] { display: none; }
.hc-score-pop b { font: 700 36px/1 var(--display); color: var(--gs-a); }
.hc-score-pop span { font-size: 11px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

.hc-tools { display: grid; grid-template-columns: repeat(3, auto) 1fr; gap: 8px; }
.hc-tools[hidden] { display: none; }
.hc-tool, .hc-done {
    height: 48px;
    padding: 0 14px;
    border-radius: 14px;
    border: 0;
    font-weight: 900;
    font-size: 15px;
}
.hc-tool { background: rgba(255, 255, 255, .92); color: var(--navy); }
.hc-tool[hidden] { display: none; }
.hc-done {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #fff;
    box-shadow: 0 4px 0 #15803d;
    font-size: 17px;
}
.hc-done:active:not(:disabled) { transform: translateY(3px); box-shadow: 0 1px 0 #15803d; }
.hc-tool:disabled, .hc-done:disabled { opacity: .45; }
@media (max-width: 520px) {
    .hc-tools { grid-template-columns: repeat(3, 1fr); }
    .hc-done { grid-column: 1 / -1; }
    .hc-tool { padding: 0 8px; font-size: 14px; }
    .hc-task-title { font-size: 25px; }
}

.hc-after {
    padding: 12px 14px;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 10px 26px rgba(0, 0, 0, .3);
    animation: popIn .35s ease;
}
.hc-after[hidden] { display: none; }
.hc-after-text { font-size: 14px; font-weight: 700; color: #334155; line-height: 1.45; }
.hc-after-text b { color: var(--navy); }
.hc-after-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.hc-after-actions .gs-btn { flex: 1 1 auto; }

.hc-gallery {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 8px;
    max-height: 300px;
    overflow-y: auto;
}
.hc-gallery li { display: grid; gap: 4px; padding: 6px; border-radius: 14px; background: #f8fafc; text-align: center; }
.hc-gallery canvas { width: 100%; height: auto; border-radius: 10px; background: #fff; }
.hc-gallery span { font-size: 13px; font-weight: 900; color: var(--gs-a); }
.hc-gallery b { color: var(--navy); }

.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; }
