/* Holdvölgy – Kapd el a palackokat! · felület
   Színvilág: mély éjkék és padlizsán, holdfény-arany kiemelés.
   Élénk szín csak a színes palackokon van (azok a 3D jelenetben élnek). */

@font-face { font-family: "Playfair Display"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("../fonts/playfair-display-latin-ext-600-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Playfair Display"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("../fonts/playfair-display-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Playfair Display"; font-style: italic; font-weight: 600; font-display: swap;
  src: url("../fonts/playfair-display-latin-ext-600-italic.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Playfair Display"; font-style: italic; font-weight: 600; font-display: swap;
  src: url("../fonts/playfair-display-latin-600-italic.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/figtree-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/figtree-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("../fonts/figtree-latin-ext-600-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("../fonts/figtree-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --ej: #060a1c;
  --ejkek: #0c1638;
  --padlizsan: #2b1746;
  --arany: #e7cf98;
  --arany-mely: #cfa95e;
  --krem: #f3ecdc;
  --halk: #b6b1cc;
  --vonal: rgba(231, 207, 152, 0.26);
  --jeg: #b4e1ff;
  --hiba: #ff9d9d;
  --cimbetu: "Playfair Display", "Iowan Old Style", Palatino, Georgia, serif;
  --betu: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --also: env(safe-area-inset-bottom, 0px);
  --felso: env(safe-area-inset-top, 0px);
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0; height: 100%; width: 100%;
  background: var(--ej); color: var(--krem);
  font-family: var(--betu); font-size: 16px; line-height: 1.5;
  overflow: hidden; overscroll-behavior: none;
  -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent;
}
body { position: fixed; inset: 0; }

.app {
  position: absolute; inset: 0; overflow: hidden;
  background: linear-gradient(180deg, #03061a 0%, #0c1638 45%, #2b1746 80%, #1b1034 100%);
  user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
}
[hidden] { display: none !important; }

/* ── 3D vászon ─────────────────────────────────────────────── */
.szin { position: absolute; inset: 0; touch-action: none; }
.szin canvas { display: block; width: 100%; height: 100%; touch-action: none; }
.app[data-allapot="jatek"] { cursor: none; touch-action: none; }
.app[data-allapot="jatek"] .szin { cursor: none; }

.villanas { position: absolute; inset: 0; pointer-events: none; opacity: 0; }
.villanas.jeg { background: radial-gradient(ellipse at 50% 85%, rgba(180, 225, 255, 0.5), rgba(180, 225, 255, 0) 65%); animation: villan 0.7s ease-out; }
@keyframes villan { from { opacity: 1; } to { opacity: 0; } }

.hopelyhek { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 4; }

/* ── Lebegő feliratok ──────────────────────────────────────── */
.feliratok { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 3; }
.felirat {
  position: absolute; left: 0; top: 0; white-space: nowrap;
  font-family: var(--cimbetu); font-weight: 600; font-size: clamp(20px, 3.4vmin, 30px);
  color: var(--arany); text-shadow: 0 2px 10px rgba(4, 6, 24, 0.9), 0 0 2px rgba(4, 6, 24, 0.9);
  animation: felusz 1s cubic-bezier(0.2, 0.7, 0.3, 1) forwards;
  will-change: transform, opacity;
}
.felirat.info { color: var(--krem); font-family: var(--betu); font-size: clamp(14px, 2.4vmin, 19px); letter-spacing: 0.04em; }
.felirat.minusz { color: #cdb4ff; }
.felirat.jeg { color: var(--jeg); }
.felirat.kombo { font-size: clamp(26px, 5vmin, 44px); font-style: italic; animation-duration: 1.3s; }
.felirat.nagy { font-size: clamp(30px, 6vmin, 54px); font-style: italic; animation-duration: 1.5s; }
@keyframes felusz {
  0% { opacity: 0; transform: translate(-50%, -30%) scale(0.7); }
  15% { opacity: 1; transform: translate(-50%, -80%) scale(1.08); }
  70% { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, -260%) scale(1); }
}

/* ── HUD ───────────────────────────────────────────────────── */
.hud {
  position: absolute; left: 0; right: 0; top: 0; z-index: 3; pointer-events: none;
  display: flex; justify-content: space-between; align-items: flex-start; gap: 8px;
  padding: calc(10px + var(--felso)) 14px 0;
}
.hud-doboz { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.hud-kicsi span { font-size: clamp(16px, 3vmin, 22px); color: var(--krem); }
.hud-kicsi { padding: 4px 11px 5px; }
.hud-jobb { align-items: flex-end; }
.hud-ertek {
  display: inline-flex; align-items: baseline; gap: 7px;
  padding: 6px 13px 7px; border-radius: 999px;
  background: rgba(8, 11, 34, 0.62); border: 1px solid var(--vonal);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.hud-ertek span { font-family: var(--cimbetu); font-weight: 600; font-size: clamp(22px, 4.2vmin, 32px); line-height: 1; color: var(--arany); font-variant-numeric: tabular-nums; }
.hud-ertek small { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--halk); }
.hud-ertek.ugrik span { animation: ugrik 0.3s ease-out; }
@keyframes ugrik { 0% { transform: scale(1); } 40% { transform: scale(1.25); } 100% { transform: scale(1); } }
.hud-kombo {
  align-self: flex-start; padding: 3px 11px; border-radius: 999px;
  background: linear-gradient(180deg, #f3dfae, #cfa95e); color: #2a1a05;
  font-weight: 600; font-size: 13px; letter-spacing: 0.04em;
  box-shadow: 0 0 18px rgba(255, 211, 107, 0.55);
}
.hud-ido {
  display: inline-flex; align-items: baseline; gap: 5px; min-width: 74px; justify-content: center; padding: 5px 14px 6px; border-radius: 16px; transform-origin: 100% 0;
  background: rgba(8, 11, 34, 0.62); border: 1px solid var(--vonal);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  font-family: var(--cimbetu); font-weight: 600; font-size: clamp(28px, 5.4vmin, 42px); line-height: 1.05;
  color: var(--krem); font-variant-numeric: tabular-nums;
}
.hud-ido small { font-family: var(--betu); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--halk); }
.hud-ido.veszely { color: #ffd9a8; border-color: rgba(255, 190, 120, 0.8); animation: lukt 1s ease-in-out infinite; }
.hud-ido.plusz { animation: ugrik 0.4s ease-out; color: var(--arany); }
@keyframes lukt {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 rgba(255, 180, 100, 0); }
  50% { transform: scale(1.12); box-shadow: 0 0 26px rgba(255, 180, 100, 0.55); }
}

.fagy-jelzo {
  position: absolute; left: 0; top: 0; z-index: 3; pointer-events: none; transform: translate(-50%, -100%);
  padding: 4px 12px; border-radius: 999px; white-space: nowrap;
  background: rgba(10, 30, 60, 0.8); border: 1px solid rgba(180, 225, 255, 0.7); color: var(--jeg);
  font-size: 13px; letter-spacing: 0.06em;
}
.fagy-jelzo b { font-family: var(--cimbetu); font-size: 17px; font-variant-numeric: tabular-nums; }

/* ── Némító gomb ───────────────────────────────────────────── */
.gomb-hang {
  position: absolute; z-index: 7; right: max(10px, env(safe-area-inset-right, 0px)); bottom: calc(10px + var(--also));
  width: 46px; height: 46px; padding: 0; border-radius: 50%; cursor: pointer;
  display: grid; place-items: center; touch-action: manipulation;
  background: rgba(8, 11, 34, 0.62); border: 1px solid var(--vonal); color: var(--arany);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  transition: transform 0.12s ease, background 0.2s ease;
}
/* a menükben a jobb felső sarokban (ott nincs kártya), játék közben jobb alul (fent az óra van) */
.app:not([data-allapot="jatek"]) .gomb-hang { top: calc(10px + var(--felso)); bottom: auto; }
.gomb-hang:hover { background: rgba(8, 11, 34, 0.8); }
.gomb-hang:active { transform: scale(0.94); }
.gomb-hang:focus-visible { outline: 2px solid var(--arany); outline-offset: 3px; }
.gomb-hang svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.gomb-hang .hang-hangszoro { fill: currentColor; }
.gomb-hang .hang-athuzas { display: none; }
.gomb-hang.nemitva { color: var(--halk); }
.gomb-hang.nemitva .hang-hullam { display: none; }
.gomb-hang.nemitva .hang-athuzas { display: inline; }

/* ── Aszuka ────────────────────────────────────────────────── */
.aszuka {
  transition: opacity 0.25s ease;
  position: absolute; left: max(10px, env(safe-area-inset-left, 0px)); bottom: calc(10px + var(--also)); z-index: 2;
  width: clamp(54px, 11vmin, 86px); pointer-events: none;
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.45));
  transform-origin: 50% 100%;
}
.aszuka svg { display: block; width: 100%; height: auto; overflow: visible; }
.aszuka .asz-test { animation: aszLeleg 2.6s ease-in-out infinite; transform-origin: 50% 100%; transform-box: fill-box; }
@keyframes aszLeleg { 0%, 100% { transform: scale(1, 1); } 50% { transform: scale(1.03, 0.97); } }
.aszuka.ugrik { animation: aszUgrik 0.7s cubic-bezier(0.3, 0.6, 0.4, 1); }
@keyframes aszUgrik {
  0% { transform: translateY(0) scale(1, 1); }
  15% { transform: translateY(0) scale(1.12, 0.86); }
  45% { transform: translateY(-46%) scale(0.94, 1.08) rotate(-6deg); }
  75% { transform: translateY(0) scale(1.1, 0.9); }
  100% { transform: translateY(0) scale(1, 1); }
}
.aszuka.didereg { animation: aszDidereg 0.12s linear infinite; }
.aszuka.didereg .asz-szin { fill: url(#asz-jeg); }
.aszuka .asz-fagyos, .aszuka .asz-orul { opacity: 0; }
.aszuka.didereg .asz-fagyos { opacity: 1; }
.aszuka.didereg .asz-mosoly { opacity: 0; }
.aszuka.ugrik .asz-orul { opacity: 1; }
.aszuka.ugrik .asz-mosoly { opacity: 0; }
@keyframes aszDidereg { 0% { transform: translateX(-1.5px) rotate(-1deg); } 50% { transform: translateX(1.5px) rotate(1deg); } 100% { transform: translateX(-1.5px) rotate(-1deg); } }
.app[data-allapot="regisztracio"] .aszuka, .app[data-allapot="toplista"] .aszuka, .app[data-allapot="nev"] .aszuka, .app[data-allapot="kor"] .aszuka { opacity: 0; }

/* ── Képernyők ─────────────────────────────────────────────── */
.kepernyo {
  position: absolute; inset: 0; z-index: 5;
  display: flex; align-items: center; justify-content: center;
  padding: calc(14px + var(--felso)) 14px calc(14px + var(--also));
  overflow-y: auto; -webkit-overflow-scrolling: touch; touch-action: pan-y;
  animation: beuszik 0.35s ease-out;
}
.kepernyo-also { align-items: flex-end; padding-bottom: calc(clamp(18px, 6vh, 64px) + var(--also)); }
.kepernyo-szunet { background: rgba(4, 6, 24, 0.55); cursor: pointer; }
@keyframes beuszik { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.kartya {
  width: min(100%, 460px); max-height: 100%; margin: auto;
  padding: clamp(18px, 4vmin, 30px);
  border-radius: 22px; border: 1px solid var(--vonal);
  background: linear-gradient(180deg, rgba(16, 20, 56, 0.86), rgba(26, 15, 48, 0.9));
  box-shadow: 0 24px 60px rgba(2, 3, 14, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  text-align: center; user-select: text; -webkit-user-select: text;
}
.kepernyo-also .kartya { margin: auto auto 0; }
.kartya-kicsi { width: min(100%, 320px); }
.kartya-oktato { width: min(100%, 620px); }
.kartya-toplista { width: min(100%, 480px); display: flex; flex-direction: column; }
.kartya-urlap { text-align: left; }
.kartya-urlap .cim, .kartya-urlap > .szoveg:first-of-type { text-align: center; }

.felcim { margin: 0 0 6px; font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--arany-mely); }
.cim { margin: 0 0 10px; font-family: var(--cimbetu); font-weight: 600; font-size: clamp(32px, 7vmin, 52px); line-height: 1.08; color: var(--krem); text-wrap: balance; }
.cim-kicsi { font-size: clamp(24px, 4.6vmin, 32px); }
.szoveg { margin: 0 0 16px; color: var(--krem); text-wrap: pretty; }
.halk { color: var(--halk); }
.aprobetu { font-size: 13px; margin-top: 12px; }
.hiba { margin: 10px 0 0; color: var(--hiba); font-size: 14px; }

.gomb {
  appearance: none; border: 0; cursor: pointer; font: inherit; font-weight: 600;
  min-height: 50px; padding: 12px 26px; border-radius: 999px;
  transition: transform 0.12s ease, box-shadow 0.2s ease, background 0.2s ease;
  touch-action: manipulation;
}
.gomb:active { transform: scale(0.97); }
.gomb:focus-visible, .link:focus-visible, a:focus-visible, input:focus-visible { outline: 2px solid var(--arany); outline-offset: 3px; }
.gomb-fo { background: linear-gradient(180deg, #f6e4b6, #cfa95e); color: #2a1a05; box-shadow: 0 8px 26px rgba(207, 169, 94, 0.35); font-size: 17px; }
.gomb-fo:hover { box-shadow: 0 10px 32px rgba(231, 207, 152, 0.5); }
.gomb-masod { background: rgba(231, 207, 152, 0.08); color: var(--arany); border: 1px solid var(--vonal); }
.gomb-masod:hover { background: rgba(231, 207, 152, 0.16); }
.gomb-kicsi { min-height: 40px; padding: 8px 18px; font-size: 14px; margin-bottom: 12px; }
.gomb[disabled] { opacity: 0.5; cursor: default; }
.gombsor { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 16px; }
.gombsor .gomb { flex: 1 1 150px; }

.linksor { display: flex; gap: 22px; justify-content: center; margin-top: 16px; }
.linksor a, .link, .webshop, .kartya a {
  color: var(--arany); background: none; border: 0; padding: 4px 0; font: inherit; cursor: pointer;
  text-decoration: underline; text-decoration-color: rgba(231, 207, 152, 0.45); text-underline-offset: 4px;
}
.linksor a:hover, .link:hover, .webshop:hover { text-decoration-color: var(--arany); }
.korhatar { margin: 14px 0 0; font-size: 13px; color: var(--halk); display: flex; gap: 8px; align-items: center; justify-content: center; }
.korhatar-jel {
  flex: none; display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  border: 1.5px solid var(--arany-mely); color: var(--arany); font-size: 11px; font-weight: 600;
}

/* ── Űrlap ─────────────────────────────────────────────────── */
.mezo { display: block; margin: 12px 0; }
.mezo-cimke { display: block; font-size: 13px; letter-spacing: 0.05em; color: var(--arany); margin-bottom: 5px; }
.mezo input {
  width: 100%; min-height: 48px; padding: 10px 14px; border-radius: 12px;
  border: 1px solid var(--vonal); background: rgba(4, 6, 24, 0.55); color: var(--krem);
  font: inherit; font-size: 16px; user-select: text; -webkit-user-select: text;
}
.mezo input:focus { border-color: var(--arany); outline: none; box-shadow: 0 0 0 3px rgba(231, 207, 152, 0.2); }
.mezo-sugo { display: block; margin-top: 4px; font-size: 12.5px; color: var(--halk); }
.pipa { display: flex; gap: 11px; align-items: flex-start; margin: 11px 0; font-size: 15px; cursor: pointer; }
.pipa input { flex: none; width: 22px; height: 22px; margin: 1px 0 0; accent-color: #cfa95e; cursor: pointer; }

/* ── Oktató ────────────────────────────────────────────────── */
.oktato-racs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 6px 0 14px; }
.oktato-elem { padding: 10px 8px 12px; border-radius: 16px; border: 1px solid rgba(255, 255, 255, 0.08); background: rgba(4, 6, 24, 0.4); }
.oktato-elem.jo { border-color: rgba(231, 207, 152, 0.5); }
.oktato-elem.rossz { border-color: rgba(180, 225, 255, 0.4); }
.oktato-kepek { display: flex; justify-content: center; align-items: center; height: 76px; }
.oktato-kepek img { height: 76px; width: auto; margin: 0 -14px; }
.oktato-elem.vegyes .oktato-kepek img { height: 64px; margin: 0 -8px; }
.oktato-elem h3 { margin: 4px 0 3px; font-family: var(--cimbetu); font-weight: 600; font-size: 18px; color: var(--arany); }
.oktato-elem.rossz h3 { color: var(--jeg); }
.oktato-elem p { margin: 0; font-size: 13px; line-height: 1.4; color: var(--krem); }
.gomb-start { min-width: min(100%, 240px); font-size: 19px; margin-top: 4px; }
.kepernyo-szam { pointer-events: none; overflow: hidden; animation: none; }
.nagy-szam {
  font-family: var(--cimbetu); font-weight: 600; line-height: 1; color: var(--arany);
  font-size: clamp(120px, 34vmin, 260px); font-variant-numeric: tabular-nums;
  text-shadow: 0 6px 40px rgba(4, 6, 24, 0.85), 0 0 60px rgba(231, 207, 152, 0.45);
}
.nagy-szam.ugrik { animation: szamUgrik 0.9s cubic-bezier(0.2, 0.8, 0.3, 1); }
@keyframes szamUgrik { 0% { opacity: 0.85; transform: scale(1.5); } 22% { opacity: 1; transform: scale(1); } 82% { opacity: 1; transform: scale(1); } 100% { opacity: 0.4; transform: scale(0.86); } }
.visszaszamlalo { position: relative; margin: 6px auto 0; width: 100%; }
.visszaszamlalo span { display: block; font-family: var(--cimbetu); font-weight: 600; font-size: 44px; line-height: 1; color: var(--arany); }
.visszaszamlalo i { display: block; height: 4px; margin-top: 10px; border-radius: 4px; background: linear-gradient(90deg, #cfa95e, #f6e4b6); transform-origin: 0 50%; transform: scaleX(0); }

.oktato-lista { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 4px 0 12px; }
.ok-elem { padding: 6px 4px 8px; border-radius: 14px; border: 1px solid rgba(231, 207, 152, 0.35); background: rgba(4, 6, 24, 0.42); }
.ok-elem.semleges { border-color: rgba(255, 255, 255, 0.12); }
.ok-elem.rossz { border-color: rgba(255, 140, 150, 0.45); }
.ok-elem img { display: block; height: 56px; width: auto; margin: 0 auto; }
.ok-ertek { display: block; font-family: var(--cimbetu); font-weight: 600; font-size: 20px; line-height: 1.1; color: var(--arany); font-variant-numeric: tabular-nums; }
.ok-elem.semleges .ok-ertek { color: var(--krem); }
.ok-elem.rossz .ok-ertek { color: #ffb0b8; }
.ok-cimke { display: block; margin-top: 2px; font-size: 11.5px; line-height: 1.25; color: var(--halk); text-wrap: balance; }
.oktato-szorzo { margin: 0 0 10px; padding: 9px 12px; border-radius: 12px; background: rgba(231, 207, 152, 0.1); border: 1px solid var(--vonal); color: var(--krem); font-size: 13.5px; line-height: 1.4; text-wrap: pretty; white-space: pre-line; }
.oktato-szorzo b { font-weight: 600; color: var(--arany); }
.kartya-oktato .szoveg { margin-bottom: 12px; font-size: 14px; }

/* ── Korválasztó, módváltó, fülek ──────────────────────────── */
.gombsor-allo { flex-direction: column; }
.gombsor-allo .gomb { flex: none; width: 100%; }
.gomb-gyerek { background: linear-gradient(180deg, #c9f08e, #7fc23a); box-shadow: 0 8px 26px rgba(127, 194, 58, 0.3); }
.link-vissza { display: inline-block; margin-top: 14px; color: var(--halk); }
.modsor { margin: 12px 0 0; font-size: 14px; color: var(--halk); }
.modsor-also { margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, 0.08); }
.modsor-elvalaszto { margin: 0 8px; }
.app[data-gyerek-valtozat="nincs"] .modsor-also { display: block !important; }
.app[data-gyerek-valtozat="nincs"] .modsor-also > :not(#gomb-kezdolap) { display: none; }
.app[data-mod="gyerek"] .csak-felnott { display: none !important; }
.app[data-gyerek-valtozat="nincs"] .modsor, .app[data-gyerek-valtozat="nincs"] .fulek { display: none !important; }
.fulek { display: inline-flex; gap: 4px; padding: 4px; margin: 0 0 10px; border-radius: 999px; background: rgba(4, 6, 24, 0.5); border: 1px solid rgba(255, 255, 255, 0.08); }
.ful { appearance: none; border: 0; cursor: pointer; font: inherit; font-weight: 600; font-size: 14px; padding: 7px 20px; border-radius: 999px; background: transparent; color: var(--halk); touch-action: manipulation; }
.ful[aria-selected="true"] { background: linear-gradient(180deg, #f6e4b6, #cfa95e); color: #2a1a05; }
.hud-bonusz { background: linear-gradient(180deg, #ffd0d8, #ff6d8a); color: #3a0612; box-shadow: 0 0 18px rgba(255, 109, 138, 0.55); }

.sorsolas-feltetel { margin: 4px 0 0 33px; font-size: 13px; line-height: 1.4; color: var(--halk); }
.urlap-info { margin: 0 0 8px; padding: 8px 12px; border-radius: 12px; background: rgba(231, 207, 152, 0.12); border: 1px solid var(--vonal); color: var(--arany); font-size: 14px; text-align: center; }
.jogosult-jelzes { margin: 6px 0 4px; padding: 8px 12px; border-radius: 12px; background: rgba(231, 207, 152, 0.1); border: 1px solid var(--vonal); font-size: 13.5px; line-height: 1.4; color: var(--krem); }

/* ── Eredmény ──────────────────────────────────────────────── */
.eredmeny-pont { display: flex; align-items: baseline; justify-content: center; gap: 10px; margin: 2px 0 4px; }
.eredmeny-pont span { font-family: var(--cimbetu); font-weight: 600; font-size: clamp(56px, 13vmin, 88px); line-height: 1; color: var(--arany); font-variant-numeric: tabular-nums; }
.eredmeny-pont small { font-size: 14px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--halk); }
.rekord { margin: 0 0 6px; font-family: var(--cimbetu); font-style: italic; font-size: 18px; color: var(--arany); }
.statok { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 12px 0; }
.statok div { padding: 10px 8px; border-radius: 14px; background: rgba(4, 6, 24, 0.4); border: 1px solid rgba(255, 255, 255, 0.08); }
.statok b { display: block; font-family: var(--cimbetu); font-size: 26px; line-height: 1.1; color: var(--krem); }
.statok span { font-size: 12.5px; color: var(--halk); }
.helyezes { min-height: 1.5em; margin: 8px 0 4px; color: var(--krem); }
.helyezes b { color: var(--arany); font-family: var(--cimbetu); font-size: 20px; }
.webshop { display: inline-block; margin-top: 16px; font-size: 14px; color: var(--halk); }

/* ── Toplista ──────────────────────────────────────────────── */
.sajat-hely { margin: 0 0 10px; padding: 8px 12px; border-radius: 12px; background: rgba(231, 207, 152, 0.12); border: 1px solid var(--vonal); color: var(--arany); font-size: 15px; }
.tl-lista {
  flex: 1 1 auto; min-height: 120px; max-height: min(46vh, 420px); overflow-y: auto; -webkit-overflow-scrolling: touch;
  border-radius: 14px; border: 1px solid rgba(255, 255, 255, 0.08); background: rgba(4, 6, 24, 0.4); text-align: left;
}
.tl-sor { display: grid; grid-template-columns: 44px 1fr auto; gap: 8px; align-items: center; padding: 8px 14px; border-bottom: 1px solid rgba(255, 255, 255, 0.05); font-variant-numeric: tabular-nums; }
.tl-sor:last-child { border-bottom: 0; }
.tl-sor .h { color: var(--halk); font-size: 14px; }
.tl-sor .n { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tl-sor .p { font-family: var(--cimbetu); font-weight: 600; color: var(--arany); }
.tl-sor.dobogo .h { color: var(--arany); font-weight: 600; }
.tl-sor.sajat { background: rgba(231, 207, 152, 0.16); box-shadow: inset 3px 0 0 var(--arany); }
.tl-sor.sajat .n::after { content: attr(data-te); margin-left: 8px; padding: 1px 8px; border-radius: 999px; background: var(--arany); color: #2a1a05; font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.tl-uzenet { padding: 26px 16px; text-align: center; color: var(--halk); }
.sorsolas { margin: 12px 0 0; font-size: 14px; color: var(--krem); text-wrap: balance; }

.nincs-js { position: absolute; inset: auto 0 20px; text-align: center; z-index: 9; }

/* ── Kis és fekvő kijelzők ─────────────────────────────────── */
@media (max-width: 520px) {
  .oktato-lista { gap: 6px; }
  .ok-elem img { height: 46px; }
  .ok-ertek { font-size: 17px; }
  .ok-cimke { font-size: 10.5px; }
  .kartya-oktato { padding: 16px 12px; }
  .oktato-racs { grid-template-columns: 1fr; gap: 8px; }
  .oktato-elem { display: grid; grid-template-columns: 116px 1fr; column-gap: 12px; text-align: left; align-items: center; padding: 8px 12px 8px 6px; }
  .oktato-kepek { grid-row: span 2; height: 60px; }
  .oktato-kepek img { height: 60px; margin: 0 -13px; }
  .oktato-elem.vegyes .oktato-kepek img { height: 50px; margin: 0 -7px; }
  .app:not([data-allapot="jatek"]) .aszuka { opacity: 0; }
  .oktato-elem h3 { margin: 0; align-self: end; }
  .oktato-elem p { align-self: start; }
}
@media (max-height: 520px) {
  .oktato-lista { grid-template-columns: repeat(8, 1fr); }
  .ok-elem img { height: 40px; }
  .kartya-oktato { width: min(100%, 760px); }
  .kartya { padding: 14px 20px; }
  .cim { font-size: clamp(24px, 9vh, 36px); margin-bottom: 6px; }
  .szoveg { margin-bottom: 10px; }
  .kartya-kezdo, .kartya-eredmeny { width: min(100%, 560px); }
  .eredmeny-pont span { font-size: clamp(40px, 16vh, 64px); }
  .statok { margin: 8px 0; }
  .statok div { padding: 6px; }
  .tl-lista { max-height: 38vh; min-height: 90px; }
  .oktato-kepek, .oktato-kepek img { height: 52px; }
  .visszaszamlalo span { font-size: 30px; }
  .kepernyo-also { padding-bottom: calc(10px + var(--also)); }
  .korhatar { margin-top: 8px; }
  .linksor { margin-top: 10px; }
}

/* ── Kevesebb mozgás ───────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .kepernyo { animation: none; }
  .hud-ido small { font-family: var(--betu); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--halk); }
.hud-ido.veszely { animation: none; box-shadow: 0 0 18px rgba(255, 180, 100, 0.5); }
  .aszuka .asz-test, .aszuka.didereg { animation: none; }
  .aszuka.ugrik { animation-duration: 0.01s; }
  .villanas.jeg { animation: none; }
  .felirat { animation-name: feluszHalk; }
  .nagy-szam.ugrik { animation: none; }
  .hud-ertek.ugrik span, .hud-ido.plusz { animation: none; }
  @keyframes feluszHalk { 0% { opacity: 0; transform: translate(-50%, -100%); } 15%, 70% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -100%); } }
}
