/* ============================================================
   GreenSzolnok — arculat
   Forrás: Claude Design → "GreenSzolnok Arculat.dc.html"
   Mobil-első, build-lépés nélküli CSS.
   ============================================================ */

/* ---------- Fontok (önhosztolt) ----------
   A fontokat NEM a Google CDN-jéről töltjük: az minden oldalletöltésnél
   továbbítaná a játékos IP-címét a Google felé. Gyerekeknek szóló,
   GDPR-érzékeny alkalmazásnál ez felesleges kockázat, ezért a woff2
   fájlok a public/fonts/ alatt helyben vannak. Variable fontok: egy
   fájl fedi le a teljes vastagság-tartományt. */

@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url('../fonts/bricolage-500-latin-ext.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: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url('../fonts/bricolage-500-latin.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 700;
  font-display: swap;
  src: url('../fonts/figtree-400-latin-ext.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 700;
  font-display: swap;
  src: url('../fonts/figtree-400-latin.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;
}

/* ---------- Design tokenek ---------- */
:root {
  /* Alappaletta (04 — Színpaletta) */
  --ink: #16241C;        /* Erdő tinta — alap / szöveg */
  --green: #2FA36B;      /* Levél zöld — elsődleges */
  --lime: #CBF25C;       /* Elektro lime — kiemelés / ZP */
  --blue: #52A6D6;       /* Tisza kék — kvíz / info */
  --coral: #F2915A;      /* Nap korall — jutalom / minijáték */
  --paper: #F4F1E7;      /* Papír — háttér */

  /* Sötét felületek */
  --ink-900: #101B14;
  --ink-800: #16241C;
  --ink-700: #1B3325;
  --ink-600: #24352B;
  --ink-500: #34493C;
  --green-700: #1E7A4E;

  /* Sötét felületen lévő szöveg */
  --on-dark: #F4F1E7;
  --on-dark-soft: #B4C4B8;
  --on-dark-mute: #8FA894;
  --on-dark-nav: #A6B8AB;

  /* Világos felületek / keretek */
  --bg: #E9E5D6;
  --surface: #FFFFFF;
  --surface-alt: #F0ECDD;
  --line: #E4E0D0;
  --line-strong: #DDD8C6;
  --line-soft: #ECE7D8;
  --pill-bg: #DAD5C4;

  /* Világos felületen lévő szöveg */
  --text: #16241C;
  --text-soft: #3A473F;
  --text-mute: #5D6B60;
  --text-dim: #6C7A70;
  --text-faint: #8B9488;
  --text-lock: #9AA396;

  /* Állapotdobozok */
  --ok-bg: #DFF0E5;  --ok-line: #B8DEC7;  --ok-fg: #1E5A3C;
  --info-bg: #EAF3FB; --info-line: #BFE0F2; --info-fg: #2C6A93;
  --warn-bg: #FCF3E4; --warn-line: #F2915A; --warn-fg: #8A5A32;
  --danger: #D14343;

  /* Kukaszínek — a magyar szelektív szabvány szerint */
  --bin-sarga: #E6B02E;
  --bin-kek: #3E8CE0;
  --bin-uveg: #2FA36B;
  --bin-bio: #8A5A2B;
  --bin-kommunalis: #6B7280;

  --display: 'Bricolage Grotesque', system-ui, sans-serif;
  --body: 'Figtree', system-ui, -apple-system, sans-serif;

  --r-pill: 999px;
  --r-sm: 12px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-xl: 30px;
  --shadow-card: 0 10px 24px -16px rgba(0, 0, 0, .2);
  --shadow-lift: 0 30px 70px -30px rgba(22, 36, 28, .3);
  --shadow-dark: 0 40px 90px -30px rgba(22, 36, 28, .6);
}

/* ---------- Alapok ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--green-700); text-decoration: none; }
a:hover { color: var(--ink); }
h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.05;
  margin: 0 0 .4em;
}
:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; border-radius: 6px; }

@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes fadeUp { 0% { transform: translateY(14px); opacity: 0; } 100% { transform: translateY(0); opacity: 1; } }
@keyframes pop { 0% { transform: scale(.85); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: #C7C2AF; border-radius: 8px; }

/* ---------- Logó ---------- */
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; white-space: nowrap; }
.logo-mark {
  width: 32px; height: 32px; border-radius: 10px;
  background: var(--ink); display: inline-flex; align-items: center; justify-content: center; flex: none;
}
.logo-mark::before {
  content: ''; width: 13px; height: 13px;
  border-radius: 4px 13px 4px 13px;   /* stilizált levél = szintlépés-nyíl */
  background: var(--lime); transform: rotate(-45deg);
}
.logo-mark.on-dark { background: var(--lime); }
.logo-mark.on-dark::before { background: var(--ink); }
.logo-text { font-family: var(--display); font-weight: 800; font-size: 19px; letter-spacing: -.03em; color: var(--ink); }
.logo-text em { font-style: normal; color: var(--green); }
.on-dark .logo-text, .logo-text.on-dark { color: var(--on-dark); }
.logo-text.on-dark em { color: var(--lime); }

/* ---------- Fejléc ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px clamp(16px, 4vw, 34px);
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
}
.nav-right { display: flex; align-items: center; gap: clamp(8px, 2vw, 18px); }
.nav-link {
  display: inline-flex; align-items: center; gap: 7px;
  font-weight: 600; font-size: 13.5px; color: var(--text-faint); text-decoration: none;
  padding: 6px 8px; border-radius: 10px;
}
.nav-link:hover { color: var(--ink); background: var(--paper); }
.nav-link.active { color: var(--ink); font-weight: 700; }
.nav-dot { width: 16px; height: 16px; border-radius: 5px; border: 2px solid #C4CBC1; flex: none; }
.nav-link.active .nav-dot { background: var(--green); border-color: var(--green); }
.nav-dot.round { border-radius: 50%; }
.points-chip {
  display: inline-flex; align-items: center; gap: 7px; flex: none;
  background: var(--ink); color: var(--lime);
  font-family: var(--display); font-weight: 700; font-size: 13.5px;
  padding: 8px 14px; border-radius: var(--r-pill);
  white-space: nowrap;
}
.points-chip::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--lime); }

/* ---------- Elrendezés ---------- */
.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 24px clamp(16px, 4vw, 24px) 60px; flex: 1; }
.container.narrow { max-width: 660px; }
.card {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
  padding: clamp(20px, 3vw, 28px);
}
.center { text-align: center; }
.muted { color: var(--text-mute); }
.small { font-size: .87rem; }
.page-head { margin: 4px 0 24px; }
.page-head h1 { font-size: clamp(28px, 4vw, 44px); margin-bottom: 8px; }
.page-head p { color: var(--text-mute); margin: 0; max-width: 520px; line-height: 1.5; }
.back-link { display: inline-block; margin-bottom: 14px; font-size: 14px; font-weight: 700; color: var(--green); }

/* ---------- Gombok ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: none; cursor: pointer; text-decoration: none;
  font-family: var(--display); font-weight: 700; font-size: 16px;
  color: #fff; background: var(--green);
  padding: 15px 26px; border-radius: 15px;
  transition: transform .12s ease, filter .15s ease;
}
.btn:hover { filter: brightness(1.06); color: #fff; }
.btn:active { transform: scale(.98); }
/* Letiltott gomb: nem áttetszőség (az „elrontott” hatást kelt), hanem semleges felület. */
.btn:disabled { background: var(--line); color: var(--text-faint); cursor: not-allowed; transform: none; box-shadow: none; }
.btn:disabled:hover { filter: none; color: var(--text-faint); }
.btn-dark { background: var(--ink); color: var(--lime); }
.btn-dark:hover { color: var(--lime); }
.btn-lime { background: var(--lime); color: var(--ink); }
.btn-lime:hover { color: var(--ink); }
.btn-outline { background: transparent; color: var(--green); box-shadow: inset 0 0 0 2px var(--green); }
.btn-outline:hover { background: var(--ok-bg); color: var(--green-700); }
.btn-big { font-size: 17px; padding: 16px 30px; }
.btn-small { font-size: 13.5px; padding: 9px 16px; border-radius: 12px; }
.btn-block { display: flex; width: 100%; }
.btn-icon {
  width: 38px; height: 38px; padding: 0; border-radius: var(--r-sm);
  background: var(--line); color: var(--ink); font-size: 17px;
}
.btn-icon:hover { background: var(--line-strong); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Chipek, jelvények ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--paper); border: 1.5px solid var(--line);
  border-radius: var(--r-pill); padding: 6px 13px;
  font-size: 12.5px; font-weight: 700; color: var(--text-soft);
}
.chip::before { content: ''; width: 12px; height: 12px; border-radius: 50%; border: 2px solid #C4CBC1; flex: none; }
.chip.done { background: var(--ok-bg); border-color: var(--ok-line); color: var(--ok-fg); }
.chip.done::before { background: var(--green); border-color: var(--green); }
.chip.plain::before { display: none; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-row.center { justify-content: center; }
.badge { font-size: 12px; font-weight: 700; padding: 4px 11px; border-radius: var(--r-pill); }
.badge-crew { background: var(--info-bg); color: var(--info-fg); }
.badge-pro { background: #EDE9FE; color: #5B21B6; }
.badge-explorer { background: var(--ok-bg); color: var(--ok-fg); }

/* ---------- Állapotdobozok ---------- */
.note { border-radius: var(--r-md); padding: 14px 16px; font-size: 13.5px; line-height: 1.45; display: flex; gap: 11px; }
.note-info { background: var(--info-bg); border: 1.5px solid var(--info-line); color: var(--info-fg); }
.note-warn { background: var(--warn-bg); border: 1px solid var(--warn-line); color: var(--warn-fg); }
.note-ok { background: var(--ok-bg); border: 1.5px solid var(--ok-line); color: var(--ok-fg); }
.note-mark {
  flex: none; min-width: 22px; height: 22px; padding: 0 6px; border-radius: var(--r-pill);
  background: var(--coral); color: #fff; font-weight: 800; font-size: 13px;
  display: flex; align-items: center; justify-content: center; white-space: nowrap;
}
.note-ok .note-mark { background: var(--green); }
/* Hosszabb jelölés (pl. „+100") — a design 40px-es lekerekített négyzete. */
.note-mark.wide {
  min-width: 40px; height: 40px; border-radius: var(--r-sm);
  font-family: var(--display); font-size: 14px;
}

/* ============================================================
   00 — FŐKÉPERNYŐ
   ============================================================ */
.hero {
  position: relative; overflow: hidden;
  background: var(--ink); border-radius: var(--r-xl);
  box-shadow: var(--shadow-dark);
  margin-bottom: 20px;
}
.hero::before, .hero::after { content: ''; position: absolute; border-radius: 50%; pointer-events: none; }
.hero::before { top: -120px; right: -80px; width: 420px; height: 420px; background: radial-gradient(circle, rgba(47,163,107,.55), transparent 70%); }
.hero::after { bottom: -140px; left: -60px; width: 380px; height: 380px; background: radial-gradient(circle, rgba(82,166,214,.28), transparent 70%); }
.hero-body {
  position: relative; display: flex; flex-wrap: wrap; gap: 40px; align-items: center;
  padding: clamp(32px, 5vw, 60px) clamp(20px, 4vw, 44px) clamp(36px, 5vw, 60px);
}
.hero-copy { flex: 1 1 380px; }
.hero-tag {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--ink-500); padding: 7px 14px 7px 8px; border-radius: var(--r-pill);
  margin-bottom: 22px; color: var(--lime); font-size: 12.5px; font-weight: 700;
}
.hero-tag::before { content: ''; width: 20px; height: 20px; border-radius: 6px; background: var(--lime); }
.hero h1 { font-size: clamp(38px, 6vw, 72px); line-height: .94; letter-spacing: -.04em; color: var(--on-dark); margin-bottom: 18px; text-wrap: balance; }
.hero h1 em { font-style: normal; color: var(--lime); }
.hero-lead { max-width: 460px; font-size: clamp(15px, 2vw, 18px); line-height: 1.55; color: var(--on-dark-soft); margin: 0 0 30px; text-wrap: pretty; }
.hero-stats { display: flex; gap: clamp(16px, 3vw, 28px); margin-top: 34px; }
.hero-stats > div { min-width: 0; }
.hero-stats .num { font-family: var(--display); font-weight: 800; font-size: 26px; color: var(--lime); line-height: 1; }
.hero-stats .lbl { font-size: 12.5px; color: var(--on-dark-mute); margin-top: 4px; font-weight: 600; }
.hero-sep { width: 1px; background: var(--ink-500); flex: none; }

.hero-visual { position: relative; min-height: 360px; flex: 1 1 300px; }
.float-card {
  position: absolute; top: 0; left: 0; right: 0; margin: 0 auto;
  width: 300px; max-width: 100%;
  background: var(--paper); border-radius: 26px; padding: 22px;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .5);
  animation: floaty 6s ease-in-out infinite;
}
.float-head { display: flex; align-items: center; gap: 13px; }
.ring {
  width: 58px; height: 58px; border-radius: 50%; flex: none;
  background: conic-gradient(var(--green) 66%, #E4E0D0 0);
  padding: 4px; display: flex;
}
.ring > span {
  flex: 1; border-radius: 50%; background: var(--ink);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--display); font-weight: 800; font-size: 20px; color: var(--lime);
}
.float-zp {
  margin-top: 16px; background: var(--ink); border-radius: 15px; padding: 13px 15px;
  display: flex; justify-content: space-between; align-items: center;
}
.float-zp span:first-child { color: var(--on-dark-mute); font-size: 12px; font-weight: 600; }
.float-zp span:last-child { font-family: var(--display); font-weight: 800; font-size: 22px; color: var(--lime); }
.float-pill {
  position: absolute; border-radius: 18px; padding: 13px 17px;
  box-shadow: 0 20px 40px -14px rgba(0, 0, 0, .4);
  animation: floaty 7s ease-in-out infinite .8s;
}
.float-pill.zp { bottom: 20px; right: 0; background: var(--lime); color: var(--ink); }
.float-pill.streak { bottom: 74px; left: 0; background: var(--coral); color: #fff; animation-duration: 5.5s; animation-delay: .3s; }
.float-pill .t { font-family: var(--display); font-weight: 800; font-size: 17px; }
.float-pill .s { font-size: 11.5px; opacity: .8; font-weight: 600; }

.worlds-strip { position: relative; background: var(--ink-900); padding: 24px clamp(20px, 4vw, 44px) 28px; border-top: 1px solid var(--ink-600); }
.worlds-strip h2 { font-size: 12px; color: var(--on-dark-mute); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 14px; font-family: var(--body); }
.worlds-track { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; }
.world-mini {
  flex: 1; min-width: 150px; background: var(--ink); border: 1.5px solid var(--ink-600);
  border-radius: 18px; padding: 15px; text-decoration: none;
}
.world-mini .top { display: flex; align-items: center; justify-content: space-between; }
.world-mini .num {
  width: 34px; height: 34px; border-radius: 10px; background: var(--ink-600); color: var(--on-dark-mute);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--display); font-weight: 800; font-size: 15px;
}
.world-mini .tag { font-size: 11px; font-weight: 700; color: var(--text-mute); }
.world-mini .name { font-family: var(--display); font-weight: 700; font-size: 15px; color: var(--on-dark-mute); margin-top: 12px; }
.world-mini.open { background: var(--ink-700); border-color: var(--green); }
.world-mini.open .num { background: var(--lime); color: var(--ink); }
.world-mini.open .tag { color: var(--lime); }
.world-mini.open .name { color: var(--on-dark); }

.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; margin: 22px 0; }
.feature { text-align: left; }
.feature .ico { width: 48px; height: 48px; border-radius: 14px; display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.feature .ico i { display: block; width: 20px; height: 20px; font-style: normal; }
.feature h3 { font-size: 20px; margin-bottom: 6px; }
.feature p { color: var(--text-mute); font-size: 14.5px; margin: 0; line-height: 1.5; }

/* ---------- Korcsoport-kártyák ---------- */
.group-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; }
.group-card {
  font: inherit; text-align: left; cursor: pointer;
  background: var(--surface); border: 2.5px solid var(--surface-alt);
  border-radius: var(--r-lg); padding: 16px;
  display: flex; gap: 14px; align-items: center;
  box-shadow: 0 2px 0 var(--line);
  transition: border-color .18s, transform .18s;
}
.group-card:hover { transform: translateY(-2px); }
.group-card.selected { border-color: var(--ink); }
.group-card .mark {
  flex: none; width: 50px; height: 50px; border-radius: 15px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--display); font-weight: 800; color: var(--ink); font-size: 19px;
}
.group-card .body { flex: 1; min-width: 0; }
.group-card .name { display: block; font-family: var(--display); font-weight: 700; font-size: 17px; letter-spacing: -.01em; }
.group-card .meta { display: block; font-size: 13px; color: var(--text-mute); margin-top: 2px; }
.group-card .tick {
  flex: none; width: 24px; height: 24px; border-radius: 50%;
  border: 2px solid #CFCBBA; background: var(--surface);
  display: flex; align-items: center; justify-content: center;
}
.group-card.selected .tick { border-color: var(--ink); background: var(--lime); }
.group-card.selected .tick::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: var(--ink); }
.group-card.static { cursor: default; display: block; }
.group-card.static:hover { transform: none; }
.group-card.static .mark { margin-bottom: 12px; }
.group-card p { font-size: 13.5px; color: var(--text-mute); margin: 8px 0 0; line-height: 1.45; }

/* ---------- Űrlapok ---------- */
.form { display: flex; flex-direction: column; gap: 4px; }
.field { display: block; margin-bottom: 16px; }
.field > span { display: block; font-weight: 600; font-size: 13px; margin-bottom: 7px; color: var(--text-soft); }
.field input {
  width: 100%; font: inherit; font-size: 16px;
  border: 2px solid #E0DBC9; background: var(--surface);
  border-radius: 14px; padding: 15px; outline: none;
  transition: border-color .15s;
}
.field input:focus { border-color: var(--green); outline: none; }
.checkbox { display: flex; gap: 11px; align-items: flex-start; font-size: 14px; margin: 4px 0 18px; }
.checkbox input { margin-top: 3px; width: 19px; height: 19px; accent-color: var(--green); flex: none; }

/* ============================================================
   02 — VILÁGTÉRKÉP
   ============================================================ */
.map-stats { display: flex; gap: 10px; flex-wrap: wrap; }
.stat-box {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 12px 16px; text-align: center; min-width: 96px;
}
.stat-box .v { font-family: var(--display); font-weight: 800; font-size: 22px; line-height: 1; color: var(--green); }
.stat-box .v .of { color: #C4CBC1; }
.stat-box .l { font-size: 11.5px; color: var(--text-faint); font-weight: 600; margin-top: 4px; }

.trail { position: relative; }
.trail::before {
  content: ''; position: absolute; left: 33px; top: 20px; bottom: 20px; width: 4px;
  background: repeating-linear-gradient(#CFCBBA 0 8px, transparent 8px 16px);
  border-radius: 4px;
}
.trail-fill { position: absolute; left: 33px; top: 20px; width: 4px; background: var(--green); border-radius: 4px; }
.trail-list { display: flex; flex-direction: column; gap: 18px; position: relative; }
.trail-row { display: flex; gap: clamp(10px, 2vw, 20px); align-items: stretch; }
.trail-node { flex: none; width: 70px; display: flex; justify-content: center; padding-top: 24px; }
.trail-node span {
  width: 54px; height: 54px; border-radius: 50%;
  background: var(--line-strong); border: 4px solid var(--paper);
  box-shadow: 0 0 0 2px var(--line);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--display); font-weight: 800; font-size: 20px; color: var(--text-lock);
  position: relative; z-index: 2;
}
.trail-row.open .trail-node span { background: var(--green); color: #fff; box-shadow: 0 0 0 2px var(--lime); }
.trail-card {
  flex: 1; min-width: 0;
  background: var(--surface-alt); border: 1.5px solid var(--line);
  border-radius: var(--r-lg); padding: 18px 20px;
  display: flex; align-items: center; gap: 16px;
  text-decoration: none; color: inherit;
}
.trail-row.open .trail-card {
  background: var(--surface); border-color: var(--green);
  box-shadow: 0 16px 34px -18px rgba(47, 163, 107, .55);
}
.trail-row.open a.trail-card:hover { transform: translateY(-2px); transition: transform .15s; }
.trail-icon {
  flex: none; width: 58px; height: 58px; border-radius: var(--r-md);
  background: var(--line); display: flex; align-items: center; justify-content: center;
}
.trail-icon i { display: block; width: 24px; height: 24px; background: #B7BEB2; font-style: normal; }
.trail-row.open .trail-icon { background: var(--ok-bg); }
/* A kártya belső elemei span-ek (a kártya maga lehet <a>), ezért explicit blokk kell. */
.trail-body { flex: 1; min-width: 0; display: block; }
.trail-body .name { display: block; font-family: var(--display); font-weight: 700; font-size: clamp(16px, 2.4vw, 20px); letter-spacing: -.02em; color: var(--text-faint); }
.trail-row.open .trail-body .name { color: var(--ink); }
.trail-body .place { display: block; font-size: 13.5px; color: #A6AC9E; margin: 2px 0 12px; }
.trail-body .chip-row { display: flex; }
.trail-row.open .trail-body .place { color: var(--text-mute); }
.trail-go { flex: none; font-size: 26px; font-weight: 700; color: var(--green); }

/* ============================================================
   03 — SZINT / KUKA KOMMANDÓ
   ============================================================ */
.level-head { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.level-head .ico { width: 52px; height: 52px; border-radius: 15px; background: var(--ok-bg); display: flex; align-items: center; justify-content: center; flex: none; }
.level-head .ico i { display: block; width: 22px; height: 22px; border-radius: 6px 22px 6px 22px; background: var(--green); }
.level-head h1 { margin: 0; font-size: clamp(24px, 4vw, 38px); }
.level-head h1 span { color: var(--text-faint); font-weight: 700; }

.duo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.task-card { display: flex; flex-direction: column; }
.task-card .ico { width: 52px; height: 52px; border-radius: 15px; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.task-card.quiz .ico { background: var(--info-bg); }
.task-card.quiz .ico i { display: block; width: 22px; height: 22px; border-radius: 50%; border: 4px solid var(--blue); }
.task-card.game .ico { background: #FCEDE2; }
.task-card.game .ico i { display: block; width: 22px; height: 22px; border-radius: 4px; background: var(--coral); }
.task-card h2 { font-size: 24px; margin-bottom: 8px; }
.task-card p { font-size: 15px; color: var(--text-mute); margin: 0 0 16px; line-height: 1.5; }
.task-card .chip-row { margin-bottom: 18px; }
.task-card .btn { margin-top: auto; }

.rules { list-style: none; padding: 0; margin: 0 0 20px; display: flex; flex-direction: column; gap: 11px; }
.rules li { display: flex; gap: 12px; align-items: baseline; font-size: 15px; line-height: 1.4; color: var(--text-soft); }
.rules li::before { content: ''; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--green); transform: translateY(-2px); }
.rules b { font-family: var(--display); color: var(--ink); }
.bin-legend { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 16px 0 22px; }
.bin-chip {
  display: inline-flex; align-items: center; gap: 8px;
  border-radius: var(--r-pill); padding: 8px 15px;
  font-size: 12px; font-weight: 800; letter-spacing: .03em;
  background: var(--bin); color: #fff;
}
.bin-chip::before { content: ''; width: 14px; height: 14px; border-radius: 4px; background: rgba(255, 255, 255, .55); }

.game-stage { position: relative; background: var(--ink); border-radius: var(--r-xl); padding: 10px; box-shadow: var(--shadow-lift); }
#game-canvas { width: 100%; display: block; border-radius: var(--r-lg); touch-action: none; cursor: grab; }
.game-tip {
  position: absolute; left: 50%; bottom: 120px; transform: translateX(-50%);
  max-width: min(90%, 460px);
  background: var(--ink); color: var(--on-dark);
  font-size: 13.5px; font-weight: 600; padding: 11px 17px; border-radius: 14px;
  text-align: center; pointer-events: none; box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .5);
}
.game-quit {
  position: absolute; top: 62px; left: 22px;
  border: 2px solid var(--green); background: #fff; color: var(--green-700);
  font-family: var(--body); font-weight: 700; font-size: 13px;
  padding: 7px 14px; border-radius: var(--r-pill); cursor: pointer;
}
.game-mute {
  position: absolute; top: 62px; right: 22px;
  border: 2px solid var(--green); background: #fff;
  font-size: 15px; line-height: 1; width: 38px; height: 34px;
  border-radius: var(--r-pill); cursor: pointer; display: grid; place-items: center;
}

/* ---------- Hullám-lista (intro) ---------- */
.wave-list { list-style: none; padding: 0; margin: 0 0 16px; display: flex; flex-direction: column; gap: 7px; }
.wave-list li {
  display: flex; align-items: baseline; gap: 8px; font-size: 14.5px; color: var(--text-soft);
  padding: 8px 12px; border-radius: 12px; background: var(--paper);
}
.wave-list li b { font-family: var(--display); color: var(--ink); }
.wave-list li.boss { background: #FCEDE2; color: var(--coral); font-weight: 700; }
.wave-list li.boss b { color: var(--coral); }

/* ---------- Profil stat-páros ---------- */
.stat-duo { display: flex; gap: 12px; margin: 16px 0 4px; }
.stat-duo .stat-box { flex: 1; }

/* ---------- Nyitó / belépő képernyő (minimál) ---------- */
.start-card { max-width: 420px; margin: 8vh auto 0; }
.start-logo { width: 64px; height: 64px; border-radius: 20px; margin: 0 auto 18px; }
.start-title { font-size: clamp(28px, 6vw, 38px); letter-spacing: -.03em; margin-bottom: 18px; }
.start-form { gap: 12px; }
.start-input {
  width: 100%; font: inherit; font-size: 17px; text-align: center;
  border: 2px solid #E0DBC9; background: var(--surface);
  border-radius: 14px; padding: 16px; outline: none;
  transition: border-color .15s;
}
.start-input:focus { border-color: var(--green); }

/* ---------- Játék nézet: tiszta pálya, semmi ne lógjon rá ---------- */
.in-game .tabbar { display: none !important; }
.in-game .footer { display: none; }
.in-game #app { padding-bottom: env(safe-area-inset-bottom, 0px); }

/* ---------- Játék-intró kompakt szabálysor ---------- */
.intro-rules {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px;
}
.intro-rules span {
  background: var(--paper); border-radius: var(--r-pill);
  padding: 8px 14px; font-size: 13.5px; color: var(--text-soft);
}
.intro-rules b { font-family: var(--display); color: var(--ink); }

/* ---------- Kvíz ---------- */
.quiz-progress { display: flex; align-items: center; gap: 12px; font-weight: 700; color: var(--text-mute); font-size: 13px; }
.progress-bar { flex: 1; height: 8px; background: var(--line); border-radius: var(--r-pill); overflow: hidden; }
.progress-fill { height: 100%; background: var(--green); border-radius: var(--r-pill); transition: width .25s ease; }
.quiz-q { font-size: clamp(20px, 3vw, 26px); margin: 20px 0; letter-spacing: -.025em; }
.quiz-options { display: flex; flex-direction: column; gap: 10px; }
.quiz-option {
  font: inherit; text-align: left; cursor: pointer;
  display: flex; align-items: center; gap: 13px;
  padding: 15px 16px; border-radius: var(--r-md);
  border: 2px solid #E0DBC9; background: var(--surface);
  font-weight: 600; font-size: 15.5px;
  transition: border-color .14s, background .14s;
}
.quiz-option:hover { border-color: var(--green); }
.quiz-option.selected { border-color: var(--ink); background: var(--ok-bg); }
.opt-letter {
  flex: none; width: 30px; height: 30px; border-radius: 9px;
  display: grid; place-items: center;
  background: var(--paper); color: var(--text-mute);
  font-family: var(--display); font-weight: 800; font-size: 14px;
}
.quiz-option.selected .opt-letter { background: var(--ink); color: var(--lime); }
.quiz-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 22px; }

.score-ring {
  width: 132px; height: 132px; margin: 6px auto 18px; border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: conic-gradient(var(--green) var(--pct, 100%), var(--line) 0);
  padding: 9px; animation: pop .4s ease both;
}
.score-ring.fail { background: conic-gradient(var(--coral) var(--pct, 50%), var(--line) 0); }
.score-ring > span {
  flex: 1; width: 100%; border-radius: 50%; background: var(--surface);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.score-big { font-family: var(--display); font-weight: 800; font-size: 30px; line-height: 1; }
.score-pct { color: var(--text-mute); font-weight: 700; font-size: 13px; margin-top: 2px; }
.zp-award {
  display: inline-block; background: var(--lime); color: var(--ink);
  font-family: var(--display); font-weight: 800; font-size: 22px;
  padding: 10px 24px; border-radius: var(--r-pill); margin: 6px 0 4px;
  animation: pop .35s ease both;
}
.results-list { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
.result-item {
  background: var(--surface); border-radius: var(--r-md);
  padding: 15px 17px; border-left: 5px solid var(--green);
  box-shadow: var(--shadow-card);
}
.result-item.bad { border-left-color: var(--coral); }
.result-head { font-family: var(--display); font-weight: 700; font-size: 15.5px; }
.result-ans { font-size: 13.5px; margin-top: 5px; color: var(--text-soft); }
.result-expl { font-size: 13.5px; color: var(--text-mute); margin-top: 7px; line-height: 1.5; }

/* ---------- Ranglista ---------- */
.tabs { display: flex; gap: 6px; flex-wrap: wrap; padding: 5px; background: var(--pill-bg); border-radius: var(--r-pill); margin-bottom: 16px; width: fit-content; max-width: 100%; }
.tab {
  font: inherit; font-weight: 600; font-size: 13px; cursor: pointer;
  border: none; background: transparent; color: var(--text-mute);
  padding: 8px 15px; border-radius: var(--r-pill); transition: background .2s, color .2s;
}
.tab.active { background: var(--ink); color: var(--paper); }
.lb-scroll { overflow-x: auto; }
.lb-table { width: 100%; border-collapse: collapse; }
.lb-table th { text-align: left; font-size: 11.5px; color: var(--text-faint); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 6px 8px; }
.lb-table td { padding: 12px 8px; border-top: 1px solid var(--line-soft); }
.lb-table td:nth-child(2) { word-break: break-word; min-width: 110px; font-weight: 600; }
.lb-table .rank { font-family: var(--display); font-weight: 800; width: 46px; }
.lb-table .points { text-align: right; font-family: var(--display); font-weight: 800; color: var(--green); white-space: nowrap; }
.me-row { background: var(--ok-bg); }
.me-line { margin-top: 14px; padding-top: 14px; border-top: 2px dashed var(--line); font-size: 14px; color: var(--text-mute); }

/* ---------- Profil ---------- */
.profile { text-align: center; }
.avatar {
  width: 78px; height: 78px; margin: 0 auto 12px; border-radius: 50%;
  background: var(--ink); color: var(--lime);
  font-family: var(--display); font-weight: 800; font-size: 30px;
  display: grid; place-items: center;
}
.profile-points { font-family: var(--display); font-weight: 800; font-size: 26px; color: var(--green); margin: 6px 0 14px; }

/* ---------- Lábléc, toast ---------- */
.footer {
  display: flex; justify-content: center; gap: 18px; flex-wrap: wrap;
  padding: 22px 16px; font-size: 13px; color: var(--text-faint);
  border-top: 1px solid var(--line);
}
.toast {
  position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%);
  background: var(--ink); color: var(--on-dark);
  font-weight: 600; font-size: 14.5px;
  padding: 13px 22px; border-radius: var(--r-md);
  box-shadow: 0 16px 40px -12px rgba(0, 0, 0, .45);
  z-index: 100; max-width: 92%; text-align: center;
  animation: fadeUp .25s ease both;
}
.toast-success { background: var(--green); color: #fff; }
.toast-error { background: var(--danger); color: #fff; }

/* ---------- Mobil tab-sáv ---------- */
.tabbar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 60;
  height: calc(72px + env(safe-area-inset-bottom, 0px));
  padding: 11px 26px env(safe-area-inset-bottom, 0px);
  background: rgba(244, 241, 231, .94); backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
  display: none; align-items: flex-start; justify-content: space-between;
}
.tabbar a {
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  color: #A6B0A8; font-size: 10.5px; font-weight: 600; text-decoration: none;
}
.tabbar a .i { width: 22px; height: 22px; border-radius: 7px; border: 2px solid #A6B0A8; }
.tabbar a .i.round { border-radius: 50%; }
.tabbar a.active { color: var(--green); font-weight: 700; }
.tabbar a.active .i { background: var(--green); border-color: var(--green); }

@media (max-width: 720px) {
  body.is-auth .tabbar { display: flex; }
  body.is-auth .container { padding-bottom: 100px; }
  body.is-auth .footer { padding-bottom: 96px; }
  .nav-link.hide-mobile { display: none; }
  .topbar { padding: 12px 14px; gap: 8px; }
  .logo-text { font-size: 17px; }
  .hero-visual { min-height: 320px; }
  .trail::before, .trail-fill { left: 26px; }
  .trail-node { width: 56px; padding-top: 18px; }
  .trail-node span { width: 44px; height: 44px; font-size: 17px; }
  .trail-card { flex-wrap: wrap; padding: 15px; gap: 12px; }
  .trail-icon { width: 46px; height: 46px; }
  .quiz-nav .btn { flex: 1; }
}
