/*
 * Guesslandia — súgó, adatkezelés és adatforrások (J24, J25, J27, J30). Csak tokenek (ui/tokens.css), így a világos és a
 * sötét téma is a design system szerint váltakozik.
 */

/* Szerkeszthető szöveg (content.markdown) */
.gl-help__text { display: flex; flex-direction: column; gap: 18px; font-size: 17px; line-height: 26px; }
.gl-help__text p, .gl-help__text ul { margin: 0; }
.gl-help__text--doc { gap: var(--space-3); font-size: 16px; line-height: 24px; }
.gl-help__text--doc h2 { margin-top: var(--space-3); font: 700 18px/24px var(--font-display); }
.gl-help__text--doc h2:first-child { margin-top: 0; }
.gl-help__text a, .gl-help__text a:hover { font-weight: 700; }

/* Nincs regisztráció (J24b, P-R6) */
.gl-help__note { display: flex; gap: var(--space-3); padding: 14px; border-radius: 16px; background: var(--surface-sunken); }
.gl-help__note-icon { display: inline-flex; color: var(--sky); }
.gl-help__note-text { display: flex; flex-direction: column; gap: var(--space-1); font-size: 14px; line-height: 20px; }
.gl-help__note-text strong { font-size: 15px; }
.gl-help__note-text a, .gl-help__note-text a:hover { display: inline-flex; align-items: center; min-height: var(--tap-min); font-weight: 700; }

/* J25 kártyák */
.gl-groups:has(.gl-help-card) { gap: 10px; }
/* A details elemre tett flex-hézagot a Safari nem tartja be (a címkék összeértek a példával), ezért a
   lenyitott tartalom térközét margó adja (G-91). */
.gl-help-card { display: block; padding: 10px var(--space-4) 14px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface-raised); }
.gl-help-card__head { display: flex; flex-direction: column; gap: 6px; cursor: pointer; list-style: none; }
.gl-help-card__head::-webkit-details-marker { display: none; }
.gl-help-card__head:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 4px; border-radius: 8px; }
.gl-help-card__row { display: flex; align-items: center; gap: var(--space-3); min-height: var(--tap-min); }
.gl-help-card__number { font-size: 14px; color: var(--ink-muted); }
.gl-help-card__title { flex: 1; font: 700 17px/22px var(--font-display); }
.gl-help-card__chevron { display: inline-flex; color: var(--ink-muted); transition: transform .15s; }
.gl-help-card[open] .gl-help-card__chevron { transform: rotate(180deg); }
.gl-help-card__text { font-size: 14px; line-height: 20px; color: var(--ink-muted); }
.gl-help-card__text p { margin: 0; }
.gl-help-card[open] .gl-help-card__text { font-size: 15px; line-height: 22px; color: var(--ink); }
.gl-help-card__chips { display: flex; flex-wrap: wrap; gap: var(--space-2); margin: 10px 0 0; }
.gl-help-card__slot { margin-top: 10px; }
.gl-help-card__chip { display: inline-flex; align-items: center; height: 28px; padding: 0 10px; border-radius: 8px; background: var(--surface-sunken); color: var(--ink-muted); font-weight: 700; font-size: 13px; line-height: 16px; }
.gl-help-card__chip--points { color: var(--sky); }
.gl-help-card__try, .gl-help-card__try:hover { display: inline-flex; align-items: center; gap: 6px; min-height: var(--tap-min); font-weight: 700; color: var(--ink); }

/* A példa (H-R2): a játék feladata a kártyán belül */
.gl-demo { display: flex; flex-direction: column; gap: 10px; padding: var(--space-3); border-radius: 16px; background: var(--surface-sunken); }
.gl-demo__label { font-size: 13px; font-weight: 700; color: var(--ink-muted); }
.gl-demo .gl-frame__main { flex: 0 0 auto; gap: 10px; padding: 0; }
.gl-demo .gl-frame__foot { padding: 10px 0 0; border-top: 1px solid var(--line); background: none; }
.gl-demo .gl-options { gap: 6px; }
.gl-demo__chip { justify-content: flex-start; }
.gl-demo__result { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-3) 14px; border-radius: 14px; }
.gl-demo__result--correct { background: var(--correct); color: var(--on-correct); }
.gl-demo__result--partial { background: var(--partial); color: var(--on-partial); }
.gl-demo__result--wrong { background: var(--wrong); color: var(--on-wrong); }
.gl-demo__result-icon { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; flex-shrink: 0; border: 2px solid currentColor; border-radius: 50%; }
.gl-demo__result-text { display: flex; flex: 1; flex-direction: column; min-width: 0; font-size: 14px; line-height: 20px; }
.gl-demo__result-text strong { font: 800 17px/22px var(--font-display); }
.gl-demo__result-points { font-size: 15px; white-space: nowrap; }
.gl-demo__again, a.gl-demo__again:hover { height: var(--tap-min); font-size: 15px; }

/* J24a első látogatás: alulról felcsúszó lap a kezdőképernyőn (H-R6) */
.gl-welcome[hidden] { display: none; }
.gl-welcome__sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 9; width: min(var(--game-max), 100%); margin: 0 auto; box-sizing: border-box; max-height: 90vh; overflow-y: auto; display: flex; flex-direction: column; gap: var(--space-4); padding: 20px 20px 28px; border-radius: var(--radius-xl) var(--radius-xl) 0 0; background: var(--surface-raised); box-shadow: var(--shadow-lift); }
.gl-welcome__grip { align-self: center; width: 40px; height: 5px; border-radius: 3px; background: var(--line); }
.gl-welcome__title { font: 800 26px/32px var(--font-display); letter-spacing: -.03em; }
.gl-welcome__small { font-size: 14px; line-height: 20px; color: var(--ink-muted); }
.gl-welcome__link, a.gl-welcome__link:hover { align-self: center; display: inline-flex; align-items: center; min-height: var(--tap-min); font-weight: 700; color: var(--ink); }

/* J25 alja: link az adatforrásokhoz (J30, G-126) */
.gl-help__sources { margin: var(--space-2) 0 0; color: var(--ink-muted); font-size: 14px; line-height: 20px; text-align: center; }
.gl-help__sources a, .gl-help__sources a:hover { display: inline-flex; align-items: center; min-height: var(--tap-min); font-weight: 700; }
