/*
 * Guesslandia — komponens-stílusok. Minden szín, méret és sugár token (tokens.css).
 * Kiindulás: design/system/components/bundle.css (a gl- osztályok változatlanok),
 * a Google Fonts import nélkül (G-51); a betűk: fonts/fonts.css. Az oldal alapstílusa: layout.css.
 * A bundle.css-en túli kiegészítések a fájl végén vannak.
 */
.gl-stack { display: flex; flex-direction: column; gap: var(--space-3); padding: var(--space-4); }
.gl-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); padding: var(--space-4); }
.gl-num { font-family: var(--font-num); font-weight: 600; font-variant-numeric: tabular-nums; }
.gl-overline { display: flex; align-items: center; gap: var(--space-2); font: 700 12px/16px var(--font-display); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-muted); }
.gl-overline::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--coral); }
.gl-icon { width: 20px; height: 20px; flex-shrink: 0; }

/* Fókusz */
.gl-btn:focus-visible, .gl-choice:focus-visible, .gl-field input:focus-visible, .gl-field select:focus-visible, .gl-iconbtn:focus-visible, .gl-drag:focus-visible {
  outline: 2px solid var(--focus-ring); outline-offset: 2px;
}

/* Gomb */
.gl-btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); height: var(--control-h); padding: 0 var(--space-6); border: 0; border-radius: var(--radius-md); font: 800 17px/20px var(--font-display); cursor: pointer; text-decoration: none; box-sizing: border-box; }
.gl-btn--primary { background: var(--coral); color: var(--on-coral); }
.gl-btn--secondary { background: var(--surface-inverse); color: var(--on-inverse); }
.gl-btn--outline { background: transparent; color: var(--ink); border: 2px solid var(--ink); }
.gl-btn--ghost { background: transparent; color: var(--ink); height: var(--tap-min); padding: 0 var(--space-3); font-weight: 700; font-size: 15px; }
.gl-btn--block { width: 100%; }
/* Végleges, nem visszavonható művelet (J26b beváltás, A8 törlés) */
.gl-btn--danger { background: transparent; color: var(--wrong); border: 2px solid var(--wrong); }
.gl-btn--danger:hover { color: var(--wrong); }
.gl-btn[disabled] { background: var(--line); color: var(--ink-disabled); border-color: var(--line); cursor: not-allowed; }
.gl-iconbtn { display: inline-flex; align-items: center; justify-content: center; width: var(--tap-min); height: var(--tap-min); border-radius: var(--radius-sm); border: 2px solid var(--line-control); background: var(--surface-raised); color: var(--ink); cursor: pointer; }

/* Mező */
.gl-field { display: flex; flex-direction: column; gap: var(--space-2); }
.gl-field label { font-weight: 700; font-size: 14px; line-height: 20px; }
.gl-field input, .gl-field select { height: var(--control-h); border: 2px solid var(--line-control); border-radius: var(--radius-md); padding: 0 var(--space-4); font: 16px var(--font-body); color: var(--ink); background: var(--surface-raised); box-sizing: border-box; }
.gl-field input::placeholder { color: var(--ink-muted); }
.gl-field .gl-help { font-size: 14px; line-height: 20px; color: var(--ink-muted); }
.gl-field--error input { border-color: var(--wrong); }
.gl-field--error .gl-help { color: var(--wrong); display: flex; gap: var(--space-1); align-items: center; }

/* Automatikus kiegészítés */
.gl-suggest { list-style: none; margin: 0; padding: var(--space-2); border-radius: var(--radius-md); background: var(--surface-raised); box-shadow: var(--shadow-lift); border: 1px solid var(--line); }
.gl-suggest li { display: flex; align-items: center; min-height: var(--tap-min); padding: 0 var(--space-3); border-radius: var(--radius-sm); }
.gl-suggest li[aria-selected="true"] { background: var(--surface-sunken); }
.gl-suggest mark { background: none; color: inherit; font-weight: 700; }
.gl-suggest .gl-used { color: var(--ink-disabled); }

/* Választható opció (F03–F13) */
.gl-choice { display: flex; align-items: center; gap: var(--space-3); min-height: var(--choice-h); width: 100%; padding: 0 var(--space-4); border: 2px solid var(--line-control); border-radius: var(--radius-md); background: var(--surface-raised); color: var(--ink); font: 400 16px/24px var(--font-body); text-align: left; cursor: pointer; box-sizing: border-box; }
.gl-choice .gl-num { margin-left: auto; }
.gl-choice--selected { border-color: var(--sky); box-shadow: inset 0 0 0 1px var(--sky); }
.gl-choice--correct { background: var(--correct-soft); border-color: var(--correct); font-weight: 700; }
.gl-choice--correct .gl-mark { background: var(--correct); color: var(--on-correct); }
.gl-choice--wrong { background: var(--wrong-soft); border-color: var(--wrong); color: var(--ink); text-decoration: line-through; text-decoration-thickness: 2px; cursor: not-allowed; }
.gl-choice--wrong .gl-mark { background: var(--wrong); color: var(--on-wrong); }
.gl-choice--missed { border-style: dashed; border-color: var(--correct); }
.gl-choice--locked { cursor: default; }
.gl-mark { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; flex-shrink: 0; }
.gl-anchor { display: flex; align-items: center; gap: var(--space-3); min-height: 44px; padding: 0 var(--space-4); border: 2px dashed var(--anchor-line); border-radius: var(--radius-md); background: var(--anchor); color: var(--ink-muted); font-size: 14px; line-height: 18px; }
/* A két sorba törő név (pl. Amerikai Egyesült Államok) is 44 px-en belül marad (G-130) */
.gl-anchor .gl-num { margin-left: auto; color: var(--ink-muted); }

/* Visszajelzés */
.gl-feedback { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-4); border-radius: var(--radius-lg); font-weight: 700; }
.gl-feedback--correct { background: var(--correct); color: var(--on-correct); }
.gl-feedback--partial { background: var(--partial); color: var(--on-partial); }
.gl-feedback--wrong { background: var(--wrong); color: var(--on-wrong); }
.gl-feedback .gl-pts { margin-left: auto; font-family: var(--font-num); font-size: 22px; font-variant-numeric: tabular-nums; }

/* Tipp-sor (F01) */
.gl-guess { display: grid; grid-template-columns: minmax(0,1fr) auto 32px auto; align-items: center; gap: var(--space-3); min-height: 48px; padding: 0 var(--space-4); border-radius: var(--radius-md); background: var(--surface-raised); border: 1px solid var(--line); }
.gl-guess--hit { background: var(--correct-soft); border-color: var(--correct); }
.gl-guess .gl-dir { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: var(--surface-sunken); color: var(--ink); }

/* Állapotjelvény */
.gl-badge { display: inline-flex; align-items: center; gap: var(--space-1); height: 28px; white-space: nowrap; padding: 0 var(--space-2); border-radius: var(--radius-sm); font: 700 13px/16px var(--font-body); }
.gl-badge--correct { background: var(--correct-soft); color: var(--correct); }
.gl-badge--partial { background: var(--partial-soft); color: var(--partial-ink); }
.gl-badge--wrong { background: var(--wrong-soft); color: var(--wrong); }
.gl-badge--neutral { background: var(--surface-sunken); color: var(--ink-muted); }
.gl-badge--info { background: var(--surface-sunken); color: var(--sky); }

/* Kártya, színpad */
.gl-card { background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--space-4); }
.gl-stage { border-radius: var(--radius-lg); background-color: var(--surface-sunken); background-image: radial-gradient(var(--shape-neighbor) 1.5px, transparent 1.5px); background-size: 18px 18px; display: flex; align-items: center; justify-content: center; }

/* Húzható kártya (F08, F10) */
.gl-drag { display: flex; align-items: center; gap: var(--space-3); min-height: 60px; padding: 0 var(--space-2) 0 var(--space-3); border-radius: var(--radius-md); background: var(--surface-raised); border: 2px solid var(--line-control); box-shadow: var(--shadow-card); }
.gl-drag--lifted { box-shadow: var(--shadow-lift); border-color: var(--sky); transform: rotate(-1.5deg); }
.gl-drag .gl-grip { display: inline-flex; align-items: center; flex-shrink: 0; color: var(--ink-muted); }
.gl-drag .gl-pos { font: 600 15px var(--font-num); font-variant-numeric: tabular-nums; color: var(--ink-muted); width: 20px; }

/* Toast */
.gl-toast { display: inline-flex; align-items: center; gap: var(--space-2); padding: var(--space-3) var(--space-4); border-radius: var(--radius-pill); background: var(--surface-inverse); color: var(--on-inverse); font-weight: 700; box-shadow: var(--shadow-lift); }

/* Táblázat (admin) */
.gl-table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 20px; }
.gl-table th { text-align: left; font: 600 12px/16px var(--font-body); color: var(--ink-muted); padding: var(--space-2) var(--space-3); border-bottom: 1px solid var(--line); }
.gl-table td { padding: var(--space-3); border-bottom: 1px solid var(--line); }
.gl-table td.gl-num { text-align: right; }

/* ------------------------------------------------------------------------
 * Kiegészítések a bundle.css-hez (U02)
 * ---------------------------------------------------------------------- */

/* Ikongomb keret nélkül (fejléc, kezdőképernyő témakapcsolója) */
.gl-iconbtn--ghost { border-color: transparent; background: transparent; border-radius: 10px; }

/* A link formájú gomb ne kapjon aláhúzást és linkszínt; rávitt egérnél sem (a layout.css a:hover
   szabálya később töltődik be, és a sötét gombon a szöveg beleolvadna a háttérbe, G-88). */
a.gl-btn--outline, a.gl-btn--outline:hover, a.gl-btn--ghost, a.gl-btn--ghost:hover { color: var(--ink); }
a.gl-btn--primary, a.gl-btn--primary:hover { color: var(--on-coral); }
a.gl-btn--secondary, a.gl-btn--secondary:hover { color: var(--on-inverse); }

/* Témakapcsoló: világosban a hold (sötétre vált), sötétben a nap (világosra vált) */
.gl-theme-toggle__to-dark { display: inline-flex; }
.gl-theme-toggle__to-light { display: none; }
:root[data-theme="dark"] .gl-theme-toggle__to-dark { display: none; }
:root[data-theme="dark"] .gl-theme-toggle__to-light { display: inline-flex; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .gl-theme-toggle__to-dark { display: none; }
  :root:not([data-theme="light"]) .gl-theme-toggle__to-light { display: inline-flex; }
}

/* Logó: jel + szóvédjegy (Sora 800, −0,05em; „landia” coral) */
.gl-logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.gl-logo__mark { display: block; flex-shrink: 0; }
.gl-logo__word { font-family: var(--font-display); font-weight: 800; line-height: 1; letter-spacing: -.05em; font-size: 24px; }
.gl-logo__word span { color: var(--coral); }
/* A jel változata a témához: világos alapra „default”, sötét alapra „on-dark” */
.gl-logo__mark-light, .gl-logo__mark-dark { display: contents; }
.gl-logo__mark-dark { display: none; }
[data-theme="dark"] .gl-logo__mark-light { display: none; }
[data-theme="dark"] .gl-logo__mark-dark { display: contents; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .gl-logo__mark-light { display: none; }
  :root:not([data-theme="light"]) .gl-logo__mark-dark { display: contents; }
}
/* Világos szakasz sötét oldalon belül (mintaoldal) */
:root [data-theme="light"] .gl-logo__mark-light { display: contents; }
:root [data-theme="light"] .gl-logo__mark-dark { display: none; }
.gl-logo--lg { gap: 12px; }
.gl-logo--lg .gl-logo__word { font-size: 32px; }
.gl-logo--sm { gap: 8px; }
.gl-logo--sm .gl-logo__word { font-size: 20px; }
.gl-logo--on-dark { background: var(--surface-inverse); padding: 14px 18px; border-radius: var(--radius-lg); }
.gl-logo--on-dark .gl-logo__word { color: var(--on-inverse); }
.gl-logo--on-dark .gl-logo__word span { color: var(--coral); }

/* Toast: alul középen, az elsődleges gombot nem takarja (a fő CTA fölött marad) */
.gl-toast-region { position: fixed; left: 0; right: 0; bottom: calc(var(--control-h) + var(--space-8)); z-index: 50; display: flex; flex-direction: column; align-items: center; gap: var(--space-2); padding: 0 var(--space-4); pointer-events: none; }
.gl-toast-region .gl-toast { pointer-events: auto; max-width: 100%; }
@media (prefers-reduced-motion: no-preference) {
  .gl-toast-region .gl-toast { animation: gl-toast-in 200ms ease-out; }
}
@keyframes gl-toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Cover: márkaborító (design/system/components/Cover/preview.html) */
.gl-cover { position: relative; height: 288px; overflow: hidden; background: var(--surface); color: var(--ink); border-radius: var(--radius-lg); }
.gl-cover__art { position: absolute; top: 0; left: max(50%, 460px); width: 480px; height: 288px; overflow: hidden; }
.gl-cover__art svg { display: block; width: 480px; height: 288px; }
.gl-cover .navy { fill: var(--surface-inverse); }
.gl-cover .coral { fill: var(--coral); }
.gl-cover .ice { fill: var(--surface-sunken); }
.gl-cover .sky { fill: var(--sky); }
.gl-cover .amber { fill: var(--partial); }
.gl-cover .route { fill: none; stroke-width: 4; stroke-linecap: round; stroke-dasharray: 2 14; }
.gl-cover .route.on-navy { stroke: var(--on-inverse); stroke-opacity: .55; }
.gl-cover .route.on-ground { stroke: var(--sky); }
.gl-cover .stop { fill: var(--surface-raised); stroke: var(--ink); stroke-width: 3; }
.gl-cover .stop.here { fill: var(--coral); stroke: var(--coral-soft); stroke-width: 6; }
.gl-cover__words { position: absolute; left: var(--space-8); bottom: var(--space-8); max-width: 440px; }
.gl-cover__name { margin: 0; font-family: var(--font-display); font-size: 64px; line-height: .92; font-weight: 800; letter-spacing: -.05em; color: var(--ink); }
.gl-cover__name span { color: var(--coral); }
.gl-cover__tag { margin: var(--space-2) 0 0 2px; font-size: 14px; line-height: 20px; color: var(--ink-muted); }
@media (max-width: 599px) {
  .gl-cover__words { left: var(--space-4); right: var(--space-4); bottom: var(--space-4); }
  .gl-cover__name { font-size: 48px; }
}

/* Fókusz a további vezérlőkön is */
a:focus-visible, .gl-logo:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; border-radius: 4px; }

/* Csak képernyőolvasónak */
.gl-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Kódmező (csoportkód, átviteli kód): mono betű, nagybetű (TextField README, G-97) */
.gl-field--code input { font: 600 18px/20px var(--font-mono); letter-spacing: .08em; text-transform: uppercase; }
.gl-field--code input::placeholder { text-transform: none; }

/* Kódok (csoportkód, átviteli kód, hibakód): mono betű, a számoktól eltérően (G-97) */
.gl-code { font-family: var(--font-mono); font-weight: 600; }

/* Sziluett és szomszédtérkép a színpadon (Stage README; F01-R1, F02-R2, G-26: más ország nem látszik) */
.gl-silhouette, .gl-map { display: block; width: 100%; height: 100%; }
.gl-silhouette__shape, .gl-map__home path { fill: var(--shape); }
/* Háttér-szárazföld: a nem szomszéd területek halványan, név nélkül (G-118) */
.gl-map__land path { fill: var(--shape-other); }
.gl-map__neighbor path, .gl-map__marker { fill: var(--shape-neighbor); stroke: var(--surface-sunken); stroke-width: 1; vector-effect: non-scaling-stroke; }
.gl-map__marker { stroke: var(--shape); stroke-width: 2; }
/* Gyűrű a nagyon kicsi országok körül (a szigetek így is megtalálhatók); a szomszédé a napi ország fölött,
   a napi ország alá eső kis szomszédnál (pl. Vatikán) a közepén pötty (G-142) */
.gl-map__halo { fill: none; stroke: var(--shape-neighbor); stroke-width: 2; vector-effect: non-scaling-stroke; }
.gl-map__home .gl-map__halo { stroke: var(--shape); }
/* A szomszéd gyűrűje keretes: a napi ország színű keret a szomszéd színű alapon is kirajzolja (G-143) */
.gl-map__halo-casing { fill: none; stroke: var(--shape); stroke-width: 5; vector-effect: non-scaling-stroke; }
.gl-map__mark--missed .gl-map__halo-casing { stroke: var(--wrong-soft); }
.gl-map__dot { fill: var(--shape-neighbor); stroke: var(--shape); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.gl-map__neighbor--found path, .gl-map__neighbor--found .gl-map__marker, .gl-map__mark--found .gl-map__dot { fill: var(--correct); }
.gl-map__mark--found .gl-map__halo { stroke: var(--correct); }

/* GameHeader (design/system/components/GameHeader): egysoros fejléc játék közben (10.1, J-R9, G-103) */
.gl-gh { position: sticky; top: 0; z-index: 8; display: flex; flex-direction: column; padding: 6px var(--space-4) 4px; background: var(--surface-raised); border-bottom: 1px solid var(--line); }
.gl-gh__row { display: flex; align-items: center; gap: var(--space-3); height: 36px; }
.gl-gh__label { font-size: 13px; line-height: 16px; color: var(--ink-muted); }
.gl-gh .gl-route { max-height: 26px; }
.gl-gh__country { flex: 1; min-width: 0; font: 700 16px/20px var(--font-display); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gl-gh__clock { display: flex; align-items: center; gap: 6px; }
.gl-gh__time, .gl-gh__score { font-size: 20px; }
.gl-gh__bonus { display: inline-flex; align-items: center; height: 22px; padding: 0 6px; border-radius: 6px; background: var(--surface-sunken); color: var(--sky); font: 600 13px var(--font-num); font-variant-numeric: tabular-nums; }
.gl-gh__points { display: flex; align-items: baseline; gap: var(--space-1); padding-left: var(--space-3); border-left: 1px solid var(--line); }

/* RouteProgress: az útvonal állomásai */
.gl-route { display: block; width: 100%; height: auto; max-height: 30px; overflow: visible; }
.gl-route__line, .gl-route__done { stroke-width: 3; stroke-dasharray: 1 7; stroke-linecap: round; fill: none; }
.gl-route__line { stroke: var(--line-control); }
.gl-route__done { stroke: var(--sky); }
.gl-route__stop--correct { fill: var(--correct); }
.gl-route__stop--partial { fill: var(--partial); }
.gl-route__stop--wrong { fill: var(--wrong); }
.gl-route__stop--current { fill: var(--coral); }
.gl-route__halo { fill: var(--coral-soft); }
.gl-route__stop--todo { fill: var(--surface-raised); stroke: var(--line-control); stroke-width: 2; }
.gl-route__mark { fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.gl-route__mark--correct { stroke: var(--on-correct); }
.gl-route__mark--partial { stroke: var(--on-partial); stroke-width: 2.4; }
.gl-route__mark--partial .fill { fill: var(--on-partial); }
.gl-route__mark--wrong { stroke: var(--on-wrong); }

/* Feedback-réteg (J3): a feladatterület alján felcsúszó visszajelzés; a scrim a feladatot takarja, a fejléc (z-index 8) látható marad */
.gl-scrim { position: fixed; inset: 0; z-index: 6; background: var(--scrim); }
.gl-feedback-layer:focus { outline: none; }
.gl-feedback-layer { position: fixed; left: 0; right: 0; bottom: calc(var(--space-6) + env(safe-area-inset-bottom)); z-index: 7; width: min(456px, calc(100% - 2 * var(--space-3))); margin: 0 auto; box-sizing: border-box; display: flex; flex-direction: column; gap: 14px; padding: 20px; border-radius: var(--radius-xl); box-shadow: var(--shadow-lift); animation: gl-slide-up .2s ease-out; }
.gl-feedback-layer--correct { background: var(--correct); color: var(--on-correct); }
.gl-feedback-layer--partial { background: var(--partial); color: var(--on-partial); }
.gl-feedback-layer--wrong { background: var(--wrong); color: var(--on-wrong); }
.gl-feedback-layer__row { display: flex; align-items: center; gap: 14px; }
.gl-feedback-layer__icon { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; flex-shrink: 0; border: 3px solid currentColor; border-radius: 50%; }
.gl-feedback-layer__text { display: flex; flex: 1; flex-direction: column; font-size: 15px; line-height: 20px; }
.gl-feedback-layer__title { font: 800 22px/28px var(--font-display); }
.gl-feedback-layer__pts { font: 600 28px var(--font-num); font-variant-numeric: tabular-nums; }
.gl-feedback-layer__bar { position: relative; height: 4px; border-radius: 2px; background: color-mix(in srgb, currentColor 25%, transparent); overflow: hidden; }
.gl-feedback-layer__bar::after { content: ""; position: absolute; inset: 0; background: currentColor; transform-origin: left; animation: gl-progress 3s linear forwards; }
@keyframes gl-slide-up { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes gl-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* Párbeszédablak (J28c) */
.gl-dialog { position: fixed; left: 0; right: 0; top: 25%; z-index: 9; width: min(448px, calc(100% - 2 * var(--space-4))); margin: 0 auto; box-sizing: border-box; display: flex; flex-direction: column; gap: 14px; padding: 22px; border-radius: var(--radius-xl); background: var(--surface-raised); box-shadow: var(--shadow-lift); }
/* A megerősítő ablak maga kapja a fókuszt (nem a végrehajtó gomb, hogy egy Enter ne hajtsa végre), keret nélkül (G-129). */
.gl-dialog:focus { outline: none; }
.gl-dialog__icon { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: var(--surface-sunken); color: var(--sky); }
.gl-dialog p { color: var(--ink-muted); font-size: 15px; line-height: 22px; }
.gl-dialog__icon--danger { background: var(--wrong-soft); color: var(--wrong); }

/* Riasztás alul (J28a offline) */
.gl-alert { position: fixed; left: 50%; bottom: var(--space-6); z-index: 50; width: min(456px, calc(100% - 2 * var(--space-3))); transform: translateX(-50%); display: flex; gap: var(--space-3); align-items: center; padding: 14px var(--space-4); border-radius: 18px; background: var(--surface-inverse); color: var(--on-inverse); box-shadow: var(--shadow-lift); }
.gl-alert__text { display: flex; flex: 1; flex-direction: column; font-size: 14px; line-height: 20px; }
.gl-alert__text strong { font-size: 15px; }

/* Választós feladat: a sor jobb oldalán kiegészítő adat (lezárva), letiltott opció */
.gl-choice__note { margin-left: auto; font-size: 13px; color: var(--ink-muted); }
.gl-choice--correct .gl-choice__note { color: var(--correct); font-weight: 700; }
.gl-choice[aria-disabled="true"], .gl-choice:disabled { cursor: default; }
.gl-choice--done { border-color: var(--line); }

/* Színpad (Stage README): sziluett 220 px, térkép 300 px; a napi ország neve a lezárt F01-ben (J-R4) */
.gl-stage--silhouette { position: relative; height: 220px; flex-shrink: 0; padding: var(--space-4); overflow: hidden; }
.gl-stage--map { position: relative; height: 300px; flex-shrink: 0; overflow: hidden; touch-action: pan-y; }
.gl-stage--map.is-zoomed { touch-action: none; cursor: grab; }
.gl-stage--map.is-dragging { cursor: grabbing; }
.gl-stage--map:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.gl-stage__name { position: absolute; bottom: var(--space-3); left: 50%; transform: translateX(-50%); max-width: calc(100% - 2 * var(--space-4)); padding: var(--space-1) var(--space-3); border-radius: var(--radius-pill); background: var(--surface-raised); font: 700 15px/22px var(--font-display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gl-stage__zoom { position: absolute; right: 10px; bottom: 10px; display: flex; flex-direction: column; gap: 6px; }
.gl-stage__zoom[hidden] { display: none; }
.gl-stage__zoom .gl-iconbtn:disabled { color: var(--ink-disabled); cursor: default; }

/* Szomszédtérkép: a lezárva meg nem talált szomszéd szaggatott piros (J05d), címkék a neveknek */
.gl-map__neighbor--missed path, .gl-map__neighbor--missed .gl-map__marker { fill: var(--wrong-soft); stroke: var(--wrong); stroke-width: 2; stroke-dasharray: 5 4; }
.gl-map__mark--missed .gl-map__halo { stroke: var(--wrong); }
.gl-map__mark--missed .gl-map__dot { fill: var(--wrong-soft); stroke: var(--wrong); stroke-width: 2; }
.gl-map__labels { pointer-events: none; }
.gl-map__label rect { stroke-width: 1.5; }
.gl-map__label-text { text-anchor: middle; font: 700 11px var(--font-body); }
.gl-map__label--found rect { fill: var(--correct); stroke: var(--surface-sunken); }
.gl-map__label--found text { fill: var(--on-correct); }
.gl-map__label--missed rect { fill: var(--surface-raised); stroke: var(--wrong); }
.gl-map__label--missed text { fill: var(--wrong); }
/* Vezetővonal a horgonytól a névig, ha a név elmozdult (G-125) */
.gl-map__leader, .gl-map__leader-dot { display: none; }
.gl-map__label.is-detached .gl-map__leader, .gl-map__label.is-detached .gl-map__leader-dot { display: inline; }
.gl-map__leader { stroke-width: 1.5; stroke-linecap: round; }
.gl-map__label--found .gl-map__leader { stroke: var(--correct); }
.gl-map__label--found .gl-map__leader-dot { fill: var(--correct); }
.gl-map__label--missed .gl-map__leader { stroke: var(--wrong); }
.gl-map__label--missed .gl-map__leader-dot { fill: var(--wrong); }

/* Tipp-sorok táblázatként (J4): név · km · irány · pontosság, fejléccel */
.gl-guess-table { display: flex; flex-direction: column; gap: 6px; }
.gl-guess-table .gl-guess { grid-template-columns: minmax(0, 1fr) 76px 32px 44px; gap: 10px; padding: 0 var(--space-3) 0 14px; }
.gl-guess-table .gl-guess > :nth-child(2), .gl-guess-table .gl-guess > :nth-child(4) { text-align: right; font-size: 14px; }
.gl-guess-table .gl-guess strong { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gl-guess--head { min-height: 0; border: 0; background: none; font-size: 12px; line-height: 16px; font-weight: 600; color: var(--ink-muted); }
.gl-guess-table .gl-guess.gl-guess--head > * { font-size: 12px; }
.gl-guess--head > :nth-child(3) { text-align: center; }
.gl-guess--hit { border-width: 2px; }
.gl-guess--hit .gl-dir { background: var(--correct); color: var(--on-correct); }
.gl-guess-hint { font-size: 14px; line-height: 20px; color: var(--ink-muted); }
.gl-guess-hint .gl-num { font-size: 14px; color: var(--ink); }

/* GuessInput: a javaslatlista a mező fölött nyílik (a mező a képernyő alján van) */
.gl-guess-form { display: flex; flex-direction: column; gap: 10px; }
.gl-guess-input { position: relative; }
.gl-guess-input__list { position: absolute; left: 0; right: 0; bottom: calc(100% + var(--space-2)); z-index: 5; }
.gl-guess-input__list[hidden] { display: none; }
.gl-suggest li { cursor: pointer; }
.gl-suggest li.gl-used { cursor: default; }
/* Görgethető lista (G-80): a magasságot a guess.js a szabad helyhez igazítja; a kijelölt sorban a kis „Tippelek” */
.gl-guess-input__list { max-height: 302px; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.gl-suggest li { gap: var(--space-2); }
.gl-suggest li > :first-child { flex: 1; min-width: 0; }
.gl-suggest__go { display: none; flex-shrink: 0; align-items: center; height: 32px; padding: 0 var(--space-3); border-radius: var(--radius-pill); background: var(--coral); color: var(--on-coral); font: 800 14px var(--font-display); }
.gl-suggest li[aria-selected="true"] .gl-suggest__go { display: inline-flex; }
/* A nagy „Tippelek” csak JavaScript nélkül látszik; JavaScripttel a lista sorai küldenek (G-81), a gomb a képernyőolvasónak marad */
.gl-js .gl-guess-form > .gl-btn { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
/* Az alsó sáv játék közben minden feladatnál a képernyő alján marad (G-103) */
.gl-frame__foot--sticky { position: sticky; bottom: 0; z-index: 4; }
/* A nyitott javaslatlista a fejlécet is takarhatja (nyitott billentyűzetnél, G-102) */
.gl-frame__foot--sticky:has(.gl-guess-input__list:not([hidden])) { z-index: 9; }

/* F07: jelölt pontok a sziluetten (J10); a pont képpontban rajzolódik, a sziluett egységére váltva */
.gl-stage--points { height: 250px; }
.gl-stage--points svg { overflow: visible; }
.gl-point circle { fill: var(--coral); stroke: var(--surface-raised); stroke-width: 3; }
.gl-point__letter { text-anchor: middle; font: 800 14px var(--font-display); fill: var(--on-coral); }
.gl-point--correct circle { fill: var(--correct); }
.gl-point--correct .gl-point__letter { fill: var(--on-correct); }
.gl-point--wrong circle { fill: var(--wrong); }
.gl-point--wrong .gl-point__letter { fill: var(--on-wrong); }
.is-open .gl-point:not(.gl-point--wrong) { cursor: pointer; }
.gl-point-name rect { fill: var(--surface-raised); }
.gl-point-name__text { text-anchor: middle; font: 700 13px var(--font-body); fill: var(--correct); }

/* DragCard (F08, F10; J11, J13): húzható kártya, lezárva a Choice színeivel */
.gl-drag { min-height: 64px; gap: 10px; padding: 6px var(--space-2) 6px var(--space-3); box-sizing: border-box; }
.gl-drag[data-card] { touch-action: none; user-select: none; -webkit-user-select: none; cursor: grab; }
.gl-drag.is-dragging { position: relative; z-index: 3; cursor: grabbing; }
.gl-drag:not(.is-dragging) { transition: box-shadow .15s ease; }
.gl-drag__text { display: flex; flex: 1; flex-direction: column; min-width: 0; line-height: 20px; }
.gl-drag__text strong { font-size: 16px; }
.gl-drag__text span { font-size: 14px; color: var(--ink-muted); }
.gl-drag__end { display: flex; flex-direction: column; align-items: flex-end; margin-left: auto; text-align: right; }
.gl-drag__end .gl-num { font-size: 14px; }
.gl-drag__note { font-size: 13px; color: var(--ink-muted); }
.gl-drag--correct { background: var(--correct-soft); border-color: var(--correct); }
.gl-drag--wrong { background: var(--wrong-soft); border-color: var(--wrong); }
.gl-drag--missed { border-style: dashed; border-color: var(--correct); }
.gl-drag--correct .gl-mark, .gl-drag--missed .gl-mark { background: var(--correct); color: var(--on-correct); }
.gl-drag--wrong .gl-mark { background: var(--wrong); color: var(--on-wrong); }
.gl-drag .gl-iconbtn:disabled { color: var(--ink-disabled); cursor: default; }
.gl-btn--small { height: var(--tap-min); padding: 0 var(--space-4); font-size: 15px; }

@media (prefers-reduced-motion: reduce) {
  .gl-feedback-layer { animation: none; }
  .gl-feedback-layer__bar::after { animation: none; transform: none; }
}

/* Zászló-lehetőség (F04, J7): a Choice állapotai képpel */
.gl-flag { position: relative; width: 100%; aspect-ratio: 4 / 3; padding: 0; border: 2px solid var(--line-control); border-radius: var(--radius-md); overflow: hidden; background: var(--surface-raised); cursor: pointer; }
.gl-flag img { display: block; width: 100%; height: 100%; object-fit: cover; }
.gl-flag:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 2px; }
.gl-flag:disabled { cursor: default; }
.gl-flag--wrong { border: 3px solid var(--wrong); }
.gl-flag--wrong img { opacity: .45; }
.gl-flag--correct { border: 3px solid var(--correct); }
.gl-flag--missed { border: 3px dashed var(--correct); }
.gl-flag--done { border-color: var(--line); }
.gl-flag__mark { position: absolute; top: 6px; right: 6px; width: 26px; height: 26px; }
.gl-flag--wrong .gl-flag__mark { background: var(--wrong); color: var(--on-wrong); }
.gl-flag--correct .gl-flag__mark, .gl-flag--missed .gl-flag__mark { background: var(--correct); color: var(--on-correct); }
.gl-choice--missed .gl-choice__note { color: var(--correct); font-weight: 700; }
.gl-choice .gl-choice__label { margin-left: 0; }

/* Színjel (ScoreRow, visszanézés, jelmagyarázat): a szín mellett ikon is (10.1); a szín G-75 szerint */
.gl-mark--correct { background: var(--correct); color: var(--on-correct); }
.gl-mark--partial { background: var(--partial); color: var(--on-partial); }
.gl-mark--wrong { background: var(--wrong); color: var(--on-wrong); }
.gl-mark--bonus { background: var(--surface-sunken); color: var(--sky); }
.gl-mark--missed { border: 2px dashed var(--correct); box-sizing: border-box; }

/* ScoreRow (design/system/components/ScoreRow): az összesítő egy sora; az egész sor link a visszanézéshez */
.gl-score-list { display: flex; flex-direction: column; margin-top: var(--space-2); }
.gl-score-row { display: flex; align-items: center; gap: var(--space-3); min-height: 48px; padding: 0 var(--space-1); border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.gl-score-row:last-child { border-bottom: 0; }
a.gl-score-row { color: var(--ink); }
a.gl-score-row:hover { background: var(--surface-sunken); color: var(--ink); }
a.gl-score-row:focus-visible { border-radius: var(--radius-sm); }
.gl-score-row__name { flex: 1; min-width: 0; font-size: 15px; }
.gl-score-row__name .gl-num, .gl-score-row__pts { font-size: 15px; }
.gl-score-row--correct .gl-score-row__pts { color: var(--correct); }
.gl-score-row--partial .gl-score-row__pts { color: var(--partial-ink); }
.gl-score-row--wrong .gl-score-row__pts { color: var(--wrong); }
.gl-score-row__go { display: inline-flex; width: 18px; color: var(--ink-muted); }

/* Figyelmeztető doboz (J20c, J22d, J22e, J26, A1): groups/partials/alert.html */
.gl-callout { display: flex; gap: 10px; padding: var(--space-3) 14px; border-radius: 14px; font-size: 14px; line-height: 20px; }
.gl-callout svg { flex-shrink: 0; margin-top: 1px; }
.gl-callout--wrong { background: var(--wrong-soft); }
.gl-callout--wrong svg { color: var(--wrong); }
.gl-callout--partial { background: var(--partial-soft); }
.gl-callout--partial svg { color: var(--partial-ink); }
.gl-callout a { font-weight: 700; }
