/* ============================================================
   KVÍZ design system – dark, glassy, animated
   ============================================================ */
:root {
  --bg: #0b0716;
  --bg2: #120b26;
  --violet: #6d3aff;
  --violet2: #9b6bff;
  --pink: #ff4d6d;
  --pink2: #c81e5b;
  --orange: #ff9a3d;
  --gold: #ffd700;
  --glass: rgba(255, 255, 255, 0.06);
  --glass2: rgba(255, 255, 255, 0.10);
  --border: rgba(255, 255, 255, 0.12);
  --text: #f4f1ff;
  --muted: rgba(244, 241, 255, 0.56);
  --red: #ff3355; --blue: #3d8bff; --yellow: #ffb020;
  --green: #26d07c; --green2: #12a35b;
  --radius: 20px;
  --radius-s: 14px;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.5);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --font: 'Outfit', 'Segoe UI', system-ui, -apple-system, sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100dvh;
  display: flex; flex-direction: column;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
/* háttér: lassan sodródó színfoltok + fényudvar */
body::before, body::after {
  content: ''; position: fixed; border-radius: 50%;
  filter: blur(100px); z-index: -2; pointer-events: none;
}
body::before {
  width: 78vmax; height: 78vmax; top: -36vmax; left: -24vmax;
  background: radial-gradient(circle, rgba(94, 34, 180, .5) 0%, transparent 68%);
  animation: drift1 30s ease-in-out infinite alternate;
}
body::after {
  width: 66vmax; height: 66vmax; bottom: -30vmax; right: -20vmax;
  background: radial-gradient(circle, rgba(190, 38, 120, .38) 0%, transparent 68%);
  animation: drift2 36s ease-in-out infinite alternate;
}
@keyframes drift1 { from { transform: translate(0, 0) scale(1); } to { transform: translate(9vmax, 7vmax) scale(1.18); } }
@keyframes drift2 { from { transform: translate(0, 0) scale(1.1); } to { transform: translate(-8vmax, -6vmax) scale(.9); } }
h1, h2, h3 { font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
.muted { color: var(--muted); }
.center { text-align: center; }
.small { font-size: .86rem; }
.hidden { display: none !important; }
.pad { padding: 22px; }
.overline {
  font-size: .72rem; font-weight: 800; letter-spacing: .22em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 10px;
}
a.link { color: var(--violet2); text-decoration: none; font-weight: 700; font-size: .92rem; }
a.link:hover { text-decoration: underline; }

.container {
  width: 100%; max-width: 700px; margin: 0 auto; padding: 18px;
  padding-bottom: max(18px, env(safe-area-inset-bottom));
  flex: 1; display: flex; flex-direction: column;
}

/* ---------- wordmark ---------- */
.wordmark {
  text-align: center; padding: 34px 0 6px; font-weight: 900;
  font-size: clamp(3.4rem, 14vw, 5.2rem); line-height: 1; letter-spacing: -.04em;
  background: linear-gradient(115deg, #ff4d6d 5%, #ff9a3d 40%, #c77dff 75%, #9b6bff 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 10px 34px rgba(255, 77, 109, .3));
  animation: riseIn .7s var(--ease) both;
}
.wordmark.small { font-size: clamp(1.9rem, 6vw, 2.6rem); padding: 8px 0; }
@keyframes riseIn { from { opacity: 0; transform: translateY(-16px) scale(.95); } to { opacity: 1; transform: none; } }

/* ============ GOMBOK ============ */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; border: none; border-radius: 16px; padding: 15px 22px;
  font-size: 1rem; font-weight: 800; font-family: var(--font); color: #fff;
  cursor: pointer; width: 100%; text-decoration: none; overflow: hidden;
  background: linear-gradient(160deg, var(--violet) 0%, #4b1fa6 100%);
  box-shadow: 0 5px 0 rgba(24, 6, 66, .95), 0 16px 34px rgba(109, 58, 255, .3),
              inset 0 1px 0 rgba(255, 255, 255, .22);
  transition: transform .1s var(--ease), box-shadow .1s var(--ease), filter .2s;
  letter-spacing: .01em;
}
.btn::after {
  content: ''; position: absolute; top: 0; left: -80%; width: 55%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .16), transparent);
  transform: skewX(-20deg); animation: sheen 5s ease-in-out infinite;
}
@keyframes sheen { 0%, 55% { left: -80%; } 92%, 100% { left: 135%; } }
.btn:active { transform: translateY(4px); box-shadow: 0 1px 0 rgba(24, 6, 66, .95), 0 6px 16px rgba(109, 58, 255, .25), inset 0 1px 0 rgba(255, 255, 255, .18); }
.btn.primary { background: linear-gradient(160deg, #ff4d6d 0%, var(--pink2) 100%);
  box-shadow: 0 5px 0 #5f0b2c, 0 16px 34px rgba(255, 77, 109, .3), inset 0 1px 0 rgba(255, 255, 255, .22); }
.btn.primary:active { box-shadow: 0 1px 0 #5f0b2c, 0 6px 16px rgba(255, 77, 109, .25), inset 0 1px 0 rgba(255, 255, 255, .18); }
.btn.ghost { background: var(--glass); border: 1px solid var(--border);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 18px rgba(0, 0, 0, .25), inset 0 1px 0 rgba(255, 255, 255, .07); color: var(--text); }
.btn.ghost:hover { border-color: var(--violet2); }
.btn.ghost:active { transform: scale(.98); box-shadow: 0 2px 10px rgba(0, 0, 0, .2); }
.btn.big { padding: 18px 26px; font-size: 1.15rem; border-radius: 18px; }
.btn.small { padding: 9px 15px; font-size: .9rem; width: auto; border-radius: 12px; }
.btn.square { width: auto; min-width: 64px; padding: 14px 18px; }
.btn.toggle { background: var(--glass); border: 1.5px solid var(--border); color: var(--text); box-shadow: none; }
.btn.toggle::after, .btn.ghost::after, .btn.wide-toggle::after { display: none; }
.btn:disabled { opacity: .5; cursor: default; }

/* icon gombok */
.icon-btn {
  background: var(--glass); border: 1px solid var(--border); color: #fff;
  border-radius: 12px; padding: 9px 12px; cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: .95rem; font-weight: 700; gap: 6px; font-family: var(--font);
  transition: border-color .2s, transform .12s, background .2s;
}
.icon-btn:hover { border-color: var(--violet2); background: var(--glass2); }
.icon-btn:active { transform: scale(.93); }
.icon-btn.danger:hover { border-color: var(--red); color: var(--red); }
.icon-btn svg { width: 17px; height: 17px; stroke: currentColor; fill: none;
  stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn.flash-on { animation: dangerFlash .5s ease; }
@keyframes dangerFlash { 0%, 100% { box-shadow: none; } 40% { box-shadow: 0 0 0 5px rgba(255, 51, 85, .35); } }

/* ============ KÁRTYÁK ============ */
.card {
  position: relative;
  background: linear-gradient(155deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .03));
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px; margin-bottom: 14px;
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, .09);
  animation: cardIn .5s var(--ease) both;
}
@keyframes cardIn { from { opacity: 0; transform: translateY(16px) scale(.985); } to { opacity: 1; transform: none; } }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.card-title { font-size: 1rem; margin-bottom: 10px; color: var(--muted);
  text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; }

/* ============ ŰRLAPOK ============ */
input, select, textarea {
  width: 100%; padding: 13px 15px; border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, .32); color: #fff; font-size: 1.02rem;
  margin-bottom: 13px; font-family: var(--font);
  transition: border-color .2s, box-shadow .2s;
}
input:focus, textarea:focus, select:focus {
  outline: none; border-color: var(--violet2);
  box-shadow: 0 0 0 4px rgba(155, 107, 255, .18);
}
input::placeholder, textarea::placeholder { color: rgba(244, 241, 255, .35); }
select option { color: #111; }
label { display: block; font-size: .74rem; font-weight: 800; color: var(--muted);
  text-transform: uppercase; letter-spacing: .1em; margin-bottom: 8px; }
input[type=checkbox], input[type=radio] { width: auto; height: auto; accent-color: var(--pink); }
input[type=range] { accent-color: var(--pink); padding: 0; margin: 8px 0 14px; background: transparent; border: none; box-shadow: none; }
input[type=range]:focus { box-shadow: none; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.dbl-check { display: flex; align-items: flex-end; gap: 8px; padding-bottom: 15px; }
.dbl-check input { margin: 0; transform: scale(1.25); }
.dbl-check label { margin: 0; text-transform: none; letter-spacing: 0; font-size: 1rem; }
.inline-check { display: inline-flex; align-items: center; gap: 6px; text-transform: none;
  letter-spacing: 0; font-size: .9rem; font-weight: 600; color: var(--muted); margin: 0; }
.tf-hint { font-size: .85rem; }

/* ============ FLASH / TOAST ============ */
.flash-wrap { position: fixed; top: 14px; left: 50%; transform: translateX(-50%);
  z-index: 200; display: flex; flex-direction: column; gap: 8px; width: min(92vw, 460px); }
.flash { padding: 12px 18px; border-radius: 14px; text-align: center; font-weight: 700;
  background: linear-gradient(155deg, rgba(38, 208, 124, .2), rgba(38, 208, 124, .08));
  border: 1px solid rgba(38, 208, 124, .45); backdrop-filter: blur(14px);
  animation: slideDown .4s var(--ease) both; font-size: .95rem; }
.flash-error { background: linear-gradient(155deg, rgba(255, 51, 85, .22), rgba(255, 51, 85, .08));
  border-color: rgba(255, 51, 85, .5); }
@keyframes slideDown { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: none; } }
.toast-wrap { position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%);
  z-index: 210; display: flex; flex-direction: column; gap: 8px; width: min(92vw, 460px); }
.toast { padding: 11px 18px; border-radius: 14px; text-align: center; font-weight: 700;
  font-size: .92rem; background: rgba(20, 14, 44, .92); border: 1px solid var(--border);
  box-shadow: 0 14px 40px rgba(0, 0, 0, .5); animation: toastIn .35s var(--ease) both; }
.toast.err { border-color: rgba(255, 51, 85, .55); color: #ffb3c1; }
.toast.warn { border-color: rgba(255, 176, 32, .5); color: #ffd9a0; }
.toast.out { animation: toastOut .35s var(--ease) both; }
@keyframes toastIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateY(10px); } }

/* ============ CHIP / MINI ============ */
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 13px;
  border-radius: 999px; background: var(--glass); border: 1px solid var(--border);
  font-size: .8rem; font-weight: 800; white-space: nowrap; }
.chip b.dbl, .dbl-badge { color: var(--gold); }
.chip.is-double { background: rgba(255, 176, 32, .14); border-color: rgba(255, 176, 32, .5); color: #ffe3b0; }
.chip-pts { transition: transform .25s var(--ease); }
.chip-pts.is-double { animation: doublePulse 1.4s ease-in-out infinite; }
@keyframes doublePulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.07); } }
.chip-round { font-variant-numeric: tabular-nums; }
.dbl-badge { display: inline-block; padding: 1px 8px; border-radius: 999px;
  background: rgba(255, 176, 32, .16); border: 1px solid rgba(255, 176, 32, .45);
  font-size: .72rem; font-weight: 900; }
.bonus-chip { border-color: rgba(255, 154, 61, .45); color: #ffd9a0; }
.media-ic { font-size: .85rem; }
.dot-sep { color: rgba(244, 241, 255, .3); padding: 0 2px; }

/* ============ ÓRA ============ */
.timer-ring {
  --p: 1; --tcol: var(--green);
  font-size: 1.7rem; font-weight: 900; color: #fff; font-variant-numeric: tabular-nums;
  width: 74px; height: 74px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: conic-gradient(var(--tcol) calc(var(--p) * 360deg), rgba(255, 255, 255, .08) 0deg);
  position: relative; animation: timerIn .4s var(--ease) both;
}
.timer-ring::before { content: ''; position: absolute; inset: 6px; border-radius: 50%;
  background: #141029; box-shadow: inset 0 4px 14px rgba(0, 0, 0, .55); }
.timer-ring span { position: relative; z-index: 1; }
.timer-ring.urgent { --tcol: var(--red); animation: timerIn .4s both, pulse .55s ease-in-out infinite; }
.timer-ring.done { opacity: .35; }
.screen-ring { width: 120px; height: 120px; font-size: 2.6rem; }
@keyframes timerIn { from { transform: scale(.5); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.09); } }

/* ============ VÁLASZ GOMBOK ============ */
.answer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.answer-btn {
  position: relative; border: none; border-radius: 18px; padding: 0; min-height: 108px;
  cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 10px;
  font-size: 1.08rem; font-weight: 800; font-family: var(--font); color: #fff;
  text-align: center; flex-wrap: wrap;
  transition: transform .12s var(--ease), box-shadow .12s var(--ease), filter .2s;
  box-shadow: 0 5px 0 var(--btn-dark), 0 16px 34px rgba(0, 0, 0, .35),
              inset 0 2px 0 rgba(255, 255, 255, .26), inset 0 -14px 22px rgba(0, 0, 0, .16);
  animation: popIn .45s var(--ease) both;
}
.answer-btn .shape { font-size: 1.7rem; line-height: 1; filter: drop-shadow(0 3px 6px rgba(0, 0, 0, .3)); }
.answer-text { display: inline-block; max-width: calc(100% - 34px); word-break: break-word; }
.answer-btn:nth-child(1) { animation-delay: .05s; }
.answer-btn:nth-child(2) { animation-delay: .15s; }
.answer-btn:nth-child(3) { animation-delay: .25s; }
.answer-btn:nth-child(4) { animation-delay: .35s; }
@keyframes popIn { from { opacity: 0; transform: translateY(20px) scale(.92); } to { opacity: 1; transform: none; } }
.answer-btn:active { transform: translateY(4px) scale(.98); box-shadow: 0 1px 0 var(--btn-dark), 0 8px 18px rgba(0, 0, 0, .28), inset 0 2px 0 rgba(255, 255, 255, .22); }
.answer-btn .shape { font-size: 1.6rem; }
.a0 { --btn-dark: #7e0c26; background: linear-gradient(160deg, #ff5d7e, #d61f45); }
.a1 { --btn-dark: #16427f; background: linear-gradient(160deg, #4f97ff, #2064d4); }
.a2 { --btn-dark: #7c5200; background: linear-gradient(160deg, #ffc046, #e08e00); }
.a3 { --btn-dark: #0b5f3a; background: linear-gradient(160deg, #3ae68f, #12a35b); }
.answer-btn.picked { outline: 4px solid #fff; outline-offset: 3px; transform: scale(.98); animation: none; }
.answer-btn.picked::after { content: '✓'; position: absolute; top: -10px; right: -8px;
  width: 30px; height: 30px; border-radius: 50%; background: #fff; color: #0c0a1a;
  font-weight: 900; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .4); font-size: 1rem; }
.answer-btn.static { cursor: default; }
.answer-grid.is-multi .answer-btn { min-height: 96px; }
.answer-btn.dimmed { filter: grayscale(.8) brightness(.6); }

/* ============ JÁTÉKOS OLDAL ============ */
body.player .container { max-width: 640px; }
.phase { animation: phaseIn .35s var(--ease) both; }
@keyframes phaseIn { from { opacity: 0; } to { opacity: 1; } }
.center-phase { margin: auto 0; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.center-phase h1 { font-size: clamp(1.6rem, 6vw, 2.4rem); }
.join-sub { text-align: center; color: var(--muted); margin: 6px 0 20px; font-size: 1.02rem; }

.pulse-dots { display: flex; gap: 7px; padding: 14px 0 2px; }
.pulse-dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--violet2);
  animation: dotPulse 1.1s ease-in-out infinite; }
.pulse-dots i:nth-child(2) { animation-delay: .18s; }
.pulse-dots i:nth-child(3) { animation-delay: .36s; }
@keyframes dotPulse { 0%, 100% { transform: scale(.75); opacity: .4; } 45% { transform: scale(1.15); opacity: 1; } }

.q-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.q-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.q-text {
  font-size: clamp(1.35rem, 5.4vw, 2rem); font-weight: 900; text-align: center;
  padding: 14px 4px 4px; line-height: 1.22; word-break: break-word;
  animation: qIn .5s var(--ease) both .1s;
}
@keyframes qIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }

.input-card { background: var(--glass); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px; margin-top: 12px; backdrop-filter: blur(10px); }
.text-row { display: flex; gap: 10px; align-items: flex-start; }
.text-row input { margin: 0; flex: 1; }
.sent-note { text-align: center; padding: 44px 10px;
  flex-direction: column; align-items: center; gap: 6px; animation: cardIn .4s var(--ease) both; }
#answerNote.sent-note { display: flex; }
.sent-check { width: 74px; height: 74px; border-radius: 50%; margin-bottom: 10px;
  display: flex; align-items: center; justify-content: center; font-size: 2rem; font-weight: 900;
  background: linear-gradient(160deg, #3ae68f, #12a35b); color: #fff;
  box-shadow: 0 0 0 12px rgba(18, 163, 91, .18), 0 16px 40px rgba(18, 163, 91, .3);
  animation: checkPop .45s var(--ease) both; }
@keyframes checkPop { 0% { transform: scale(0) rotate(-18deg); opacity: 0; }
  60% { transform: scale(1.18) rotate(3deg); } 100% { transform: scale(1); } }
.sent-note h2 { font-size: 1.7rem; }
#answerNote.sent-note { display: flex; }

/* évszám-picker */
.year-picker { text-align: center; }
.year-value { font-size: clamp(3rem, 12vw, 4.4rem); font-weight: 900; line-height: 1.1;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(120deg, #fff, #ffd9a0);
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.year-value.bump { animation: yearBump .18s ease; }
@keyframes yearBump { 30% { transform: scale(1.12); } }
.year-steppers { display: grid; grid-template-columns: repeat(6, 1fr); gap: 7px; margin: 4px 0 2px; }
.year-steppers button { border: 1px solid var(--border); background: var(--glass);
  color: var(--text); border-radius: 12px; padding: 10px 0; font-weight: 800;
  font-size: .95rem; font-family: var(--font); cursor: pointer;
  transition: background .15s, transform .1s; }
.year-steppers button:active { transform: scale(.92); background: var(--glass2); }
.year-picker .hint { margin-top: 0; }

/* ============ FELFEDÉS (játékos) ============ */
.reveal-card { position: relative; text-align: center; padding: 26px 16px;
  background: linear-gradient(155deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .03));
  border: 1px solid var(--border); border-radius: var(--radius);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, .09);
  animation: cardIn .5s var(--ease) both; }
.reveal-card.verdict.good { background: linear-gradient(160deg, rgba(18, 163, 91, .16), rgba(18, 163, 91, .04));
  border-color: rgba(58, 230, 143, .4); }
.reveal-card.verdict.bad { background: linear-gradient(160deg, rgba(214, 31, 69, .14), rgba(214, 31, 69, .03));
  border-color: rgba(255, 77, 109, .35); }
.verdict { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.verdict-icon { width: 108px; height: 108px; border-radius: 50%; margin-top: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: 3.2rem; font-weight: 900; color: #fff;
  animation: verdictIn .55s var(--ease) both; }
.verdict.good .verdict-icon { background: linear-gradient(160deg, #3ae68f, #12a35b);
  box-shadow: 0 0 0 12px rgba(18, 163, 91, .18), 0 18px 46px rgba(18, 163, 91, .35); }
.verdict.bad .verdict-icon { background: linear-gradient(160deg, #ff5d7e, #d61f45);
  box-shadow: 0 0 0 12px rgba(214, 31, 69, .16), 0 18px 46px rgba(214, 31, 69, .3); }
@keyframes verdictIn { 0% { transform: scale(0) rotate(-40deg); opacity: 0; }
  62% { transform: scale(1.16) rotate(5deg); opacity: 1; } 100% { transform: scale(1) rotate(0); } }
.verdict-title { font-size: clamp(1.9rem, 7.5vw, 2.8rem); font-weight: 900; animation: cardIn .4s var(--ease) both .14s; }
.verdict.good .verdict-title { color: #3ae68f; }
.verdict.bad .verdict-title { color: #ff5d7e; }
.verdict-pts { font-size: clamp(2.2rem, 10vw, 3.4rem); font-weight: 900;
  font-variant-numeric: tabular-nums; color: #ffd9a0; animation: popIn .45s var(--ease) both .3s; }
.verdict-pts span { font-size: .6em; vertical-align: .5em; }
.verdict-sub { color: var(--muted); font-weight: 700; animation: cardIn .4s var(--ease) both .45s; }
.verdict-sub b { color: #fff; font-variant-numeric: tabular-nums; }
.rank-now { color: var(--violet2); }
.streak-badge { display: inline-flex; align-items: center; gap: 6px; padding: 7px 16px;
  border-radius: 999px; background: linear-gradient(120deg, rgba(255, 154, 61, .28), rgba(255, 77, 109, .28));
  border: 1px solid rgba(255, 154, 61, .55); font-weight: 800; color: #ffcf9e;
  animation: popIn .4s var(--ease) both .55s; }
.first-badge { display: inline-flex; align-items: center; gap: 6px; padding: 7px 16px;
  border-radius: 999px; background: rgba(199, 125, 255, .18); border: 1px solid rgba(199, 125, 255, .5);
  font-weight: 800; color: #e6c6ff; animation: popIn .4s var(--ease) both .6s; }
.correct-line { font-size: clamp(1.15rem, 4.5vw, 1.6rem); font-weight: 800; color: #fff;
  word-break: break-word; padding: 6px 10px; animation: cardIn .45s var(--ease) both .35s; }
.verdict.bad .correct-line { color: #ffc9d4; }

/* játék vége (játékos) */
.over-title { font-size: clamp(2.2rem, 9vw, 3.4rem); text-align: center; margin: 18px 0 12px;
  background: linear-gradient(120deg, #ff4d6d, #ff9a3d, #c77dff);
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.place-card { display: flex; align-items: center; justify-content: center; gap: 16px;
  text-align: left; }
.place-num { font-size: 3.4rem; font-weight: 900; color: var(--muted); font-variant-numeric: tabular-nums; }
.place-lbl { font-size: 1.3rem; font-weight: 900; }
.place-score { font-weight: 900; font-size: 1.1rem; color: #ffd9a0; font-variant-numeric: tabular-nums; }
.place-card.top1 { border-color: rgba(255, 215, 0, .6); }
.place-card.top1 .place-num { color: #ffd700; }
.place-card.top2 { border-color: rgba(200, 211, 224, .5); }
.place-card.top2 .place-num { color: #d6dee8; }
.place-card.top3 { border-color: rgba(224, 138, 74, .5); }
.place-card.top3 .place-num { color: #e08a4a; }
.section-title { font-size: 1.2rem; margin: 16px 0 10px; letter-spacing: -.01em; }
.my-round { display: flex; align-items: center; gap: 10px; padding: 9px 4px;
  border-bottom: 1px solid rgba(255, 255, 255, .06); font-size: .95rem; }
.my-round:last-child { border-bottom: none; }
.r-idx { width: 26px; flex-shrink: 0; font-weight: 900; color: var(--muted); font-variant-numeric: tabular-nums; }
.r-txt { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.r-pts { font-weight: 900; font-variant-numeric: tabular-nums; }
.my-round.ok .r-pts { color: var(--green); }
.my-round.miss .r-pts { color: rgba(244, 241, 255, .3); }
.my-round.miss .r-idx { color: rgba(244, 241, 255, .2); }

/* ============ RANGLISTA ============ */
.lb-row { display: flex; align-items: center; gap: 13px; padding: 12px 14px;
  background: linear-gradient(155deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .02));
  border: 1px solid var(--border); border-radius: 15px; margin-bottom: 8px;
  animation: lbIn .45s var(--ease) both; }
@keyframes lbIn { from { opacity: 0; transform: translateX(-26px); } to { opacity: 1; transform: none; } }
.lb-medal { width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: .9rem; color: #1a1206; }
.lb-medal.m1 { background: linear-gradient(160deg, #ffe27a, #d4a93a); box-shadow: 0 4px 14px rgba(255, 215, 0, .3); }
.lb-medal.m2 { background: linear-gradient(160deg, #eef2f8, #a9b6c9); }
.lb-medal.m3 { background: linear-gradient(160deg, #f0b183, #b8692e); }
.lb-rank { width: 30px; flex-shrink: 0; text-align: center; font-weight: 800; color: var(--muted); }
.lb-name { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 1.02rem;
  flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-name .dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.lb-name .you-chip { font-style: normal; font-size: .65rem; font-weight: 900; letter-spacing: .06em;
  text-transform: uppercase; color: var(--violet2); border: 1px solid rgba(155, 107, 255, .5);
  border-radius: 999px; padding: 1px 7px; }
.lb-score { font-weight: 900; font-variant-numeric: tabular-nums; }
.lb-row.you { border-color: rgba(155, 107, 255, .6); background: linear-gradient(155deg, rgba(109, 58, 255, .2), rgba(109, 58, 255, .05)); }
.lb-row.top1 { background: linear-gradient(155deg, rgba(255, 215, 0, .18), rgba(255, 215, 0, .04)); border-color: rgba(255, 215, 0, .5); }
.lb-row.top2 { background: linear-gradient(155deg, rgba(200, 211, 224, .14), rgba(200, 211, 224, .03)); border-color: rgba(200, 211, 224, .45); }
.lb-row.top3 { background: linear-gradient(155deg, rgba(224, 138, 74, .14), rgba(224, 138, 74, .03)); border-color: rgba(224, 138, 74, .45); }

/* ============ CSATLAKOZÁS ============ */
.join-container { justify-content: center; max-width: 560px; }
.join-card { padding: 26px 24px; }
.jstep { animation: cardIn .4s var(--ease) both; }
.pin-label { text-align: center; font-size: .8rem; font-weight: 800; letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.pin-box { margin-bottom: 6px; }
.pin-input { text-align: center; font-size: 2.1rem; letter-spacing: .4em; font-weight: 900;
  font-variant-numeric: tabular-nums; text-indent: .4em; padding: 14px 10px; }
.jerr { color: #ff6b81; text-align: center; min-height: 22px; font-size: .92rem;
  font-weight: 600; padding-top: 8px; }
.jerr.shake { animation: shake .4s ease; }
@keyframes shake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-6px); }
  55% { transform: translateX(5px); } 80% { transform: translateX(-3px); } }
.link-back { background: none; border: none; color: var(--muted); cursor: pointer;
  display: block; margin: 4px auto 0; font-size: .85rem; font-family: var(--font); }
.link-back:hover { color: var(--text); }
.ok-burst { position: relative; width: 96px; height: 96px; margin: 8px auto 16px;
  display: flex; align-items: center; justify-content: center; }
.ok-burst b { font-size: 2.4rem; color: #fff; z-index: 1;
  width: 72px; height: 72px; border-radius: 50%; display: flex; align-items: center;
  justify-content: center; background: linear-gradient(160deg, #3ae68f, #12a35b);
  box-shadow: 0 16px 40px rgba(18, 163, 91, .4); animation: checkPop .5s var(--ease) both; }
.ok-ring { position: absolute; inset: 0; border-radius: 50%;
  border: 3px solid rgba(58, 230, 143, .5); animation: ringPulse 1.8s ease-out infinite; }
@keyframes ringPulse { 0% { transform: scale(.7); opacity: 1; } 100% { transform: scale(1.45); opacity: 0; } }
.joined-title { text-align: center; }
#countLine { text-align: center; margin-top: 8px; }
.join-foot { text-align: center; margin-top: 14px; font-size: .9rem; }

/* ============ FEDŐK ============ */
.center-overlay { position: fixed; inset: 0; z-index: 80; display: flex;
  align-items: center; justify-content: center; padding: 24px;
  background: rgba(8, 5, 20, .82); backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px); animation: fadeIn .25s ease both; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.overlay-card { text-align: center; background: var(--glass); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 30px 26px; max-width: 400px; width: 100%;
  backdrop-filter: blur(18px); box-shadow: var(--shadow); display: flex;
  flex-direction: column; gap: 12px; align-items: center; animation: cardIn .4s var(--ease) both; }
.spinner { width: 44px; height: 44px; border-radius: 50%; margin-bottom: 6px;
  border: 4px solid rgba(155, 107, 255, .2); border-top-color: var(--violet2);
  animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.kicked-icon { font-size: 2.6rem; }

.countdown-overlay { position: fixed; inset: 0; z-index: 90;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  background: rgba(9, 5, 22, .78); backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px); }
.countdown-num { font-size: clamp(7rem, 30vw, 16rem); font-weight: 900; line-height: 1;
  background: linear-gradient(170deg, #fff, #9b6bff);
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.countdown-num.cd-anim { animation: cd .9s var(--ease) both; }
@keyframes cd { 0% { opacity: 0; transform: scale(2.2); } 26% { opacity: 1; transform: scale(1); }
  78% { opacity: 1; transform: scale(.96); } 100% { opacity: 0; transform: scale(.72); } }
.countdown-label { font-size: 1.1rem; font-weight: 800; color: var(--muted);
  letter-spacing: .3em; text-transform: uppercase; }

/* ============ HOST OLDAL ============ */
body.host .container { max-width: 1180px; }
.topbar { display: flex; align-items: center; justify-content: space-between;
  padding: 12px 20px; gap: 12px; }
.tb-brand { font-weight: 900; font-size: 1.25rem; letter-spacing: -.02em;
  background: linear-gradient(115deg, #ff4d6d, #ff9a3d, #c77dff);
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.tb-brand span { font-size: .58rem; font-weight: 900; letter-spacing: .26em; color: var(--muted);
  margin-left: 6px; -webkit-text-fill-color: var(--muted); }
.tb-actions { display: flex; gap: 8px; }
.page-title { margin: 6px 0 16px; }

.lobby-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 14px; }
.join-panel { text-align: center; display: flex; flex-direction: column; align-items: center; }
.big-pin {
  font-size: clamp(3.6rem, 10vw, 6.4rem); font-weight: 900; letter-spacing: .16em;
  text-indent: .16em; line-height: 1.05; font-variant-numeric: tabular-nums;
  background: linear-gradient(120deg, #fff 30%, #ffe3c2);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 14px 40px rgba(255, 255, 255, .14));
  animation: pinPop .6s var(--ease) both; }
@keyframes pinPop { from { transform: scale(.8); opacity: 0; } to { transform: none; opacity: 1; } }
.join-url { font-size: .95rem; color: var(--violet2); font-weight: 700; word-break: break-all;
  margin: 4px 0 10px; }
.qr-box { background: #fff; border-radius: 16px; padding: 10px; display: inline-block;
  margin: 4px 0 10px; box-shadow: 0 18px 50px rgba(0, 0, 0, .4); animation: cardIn .5s var(--ease) both .15s; }
.qr-box img { display: block; width: min(210px, 55vw); height: auto; }
.hint { font-size: .85rem; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 8px;
  margin-bottom: 10px; }
.panel-head h2 { font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.panel-head h2.has { color: var(--green); }
.start-big { margin-top: 6px; }
.start-big.busy { opacity: .75; animation: pulse-soft 1s infinite; }
.btn:disabled { cursor: wait; }
@keyframes pulse-soft { 50% { opacity: .45; } }

/* roster */
.roster { display: flex; flex-direction: column; gap: 7px; max-height: 52vh; overflow-y: auto; }
.roster-row { display: flex; align-items: center; gap: 9px; padding: 7px 8px;
  background: rgba(255, 255, 255, .045); border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 13px; transition: border-color .15s, opacity .3s;
  animation: rowIn .3s var(--ease) both; }
@keyframes rowIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.roster-row .avatar { width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-weight: 900; color: #fff;
  font-size: 1rem; box-shadow: inset 0 -3px 8px rgba(0, 0, 0, .2); }
.r-name { flex: 1; min-width: 0; font-weight: 700; font-size: .98rem;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.r-score { font-weight: 900; font-variant-numeric: tabular-nums; color: var(--muted); font-size: .92rem; }
.r-state { width: 22px; text-align: center; }
.ok-dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%;
  background: var(--green); box-shadow: 0 0 8px rgba(38, 208, 124, .8); }
.wait-dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%;
  border: 2px solid rgba(244, 241, 255, .25); }
.kick-btn { border: none; background: none; color: rgba(244, 241, 255, .25);
  font-size: .85rem; cursor: pointer; width: 26px; height: 26px; border-radius: 8px;
  font-family: var(--font); transition: all .15s; opacity: 0; flex-shrink: 0; }
.roster-row:hover .kick-btn, .kick-btn.armed { opacity: 1; }
.kick-btn:hover, .kick-btn.armed { color: #fff; background: rgba(255, 51, 85, .85); }
.roster-row.offline { opacity: .5; }
.roster-row.offline .avatar { filter: grayscale(1); }
.roster-row.answered { border-color: rgba(38, 208, 124, .35); }
.roster-title { font-size: 1rem; margin-bottom: 10px; }
.roster-panel { max-height: 100%; overflow: hidden; }

/* kérdés-nézet (host) */
.q-layout { display: grid; grid-template-columns: 1fr 320px; gap: 14px; align-items: start; }
.side-col { display: flex; flex-direction: column; gap: 14px; position: sticky; top: 12px; }
.side-controls { display: flex; flex-direction: column; gap: 10px; margin-bottom: 0; }
.side-controls .btn { width: 100%; }
.wide-toggle { display: flex; flex-direction: column; align-items: center; gap: 2px;
  background: var(--glass); border: 1.5px solid var(--border); box-shadow: none; }
.wide-toggle .tt { font-size: 1.2rem; }
.wide-toggle .ts { font-size: .72rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.wide-toggle.on { background: linear-gradient(160deg, rgba(255, 176, 32, .35), rgba(255, 154, 61, .18));
  border-color: var(--yellow); box-shadow: 0 0 24px rgba(255, 176, 32, .25); animation: doublePulse 1.6s ease-in-out infinite; }
.wide-toggle.on .tt { color: #ffe3b0; }
.wide-toggle.on .ts { color: #ffcf9e; }
.progress-line { height: 6px; border-radius: 999px; background: rgba(255, 255, 255, .08);
  overflow: hidden; margin: 12px 0 6px; }
.progress-line div { height: 100%; width: 0%; border-radius: 999px;
  background: linear-gradient(90deg, var(--violet2), var(--pink));
  transition: width .45s var(--ease); }
#answeredInfo { transition: color .2s; }
#answeredInfo.full { color: var(--green); font-weight: 900; }
#answeredInfo.full::before { content: '🎉 '; }

/* felfedés (host) */
.reveal-layout { display: grid; grid-template-columns: 1.05fr 1fr; gap: 14px; }
.row-head { display: flex; gap: 8px; margin-bottom: 10px; }
.correct-box { text-align: center; padding: 6px 4px 2px; }
.correct-text { font-size: clamp(1.7rem, 4.6vw, 2.9rem); font-weight: 900; line-height: 1.2;
  word-break: break-word;
  background: linear-gradient(120deg, #fff, #9df0c4);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 10px 26px rgba(58, 230, 143, .16));
  animation: qIn .5s var(--ease) both .1s; }
.stats-box { margin-top: 12px; display: flex; flex-direction: column; gap: 7px; }
.stat-row { display: flex; align-items: center; gap: 10px; }
.stat-shape { font-size: 1rem; font-weight: 900; width: 26px; flex-shrink: 0; }
.stat-shape.a0 { color: #ff7b96; } .stat-shape.a1 { color: #7fb4ff; }
.stat-shape.a2 { color: #ffd166; } .stat-shape.a3 { color: #6fe3a8; }
.stat-track { flex: 1; height: 22px; border-radius: 999px; background: rgba(255, 255, 255, .07);
  overflow: hidden; position: relative; }
.stat-fill { height: 100%; border-radius: 999px; min-width: 0;
  background: linear-gradient(90deg, rgba(255, 93, 126, .85), rgba(214, 31, 69, .85));
  transition: width .8s var(--ease); }
.stat-fill.a1 { background: linear-gradient(90deg, rgba(79, 151, 255, .85), rgba(32, 100, 212, .85)); }
.stat-fill.a2 { background: linear-gradient(90deg, rgba(255, 192, 70, .85), rgba(224, 142, 0, .85)); }
.stat-fill.a3 { background: linear-gradient(90deg, rgba(58, 230, 143, .85), rgba(18, 163, 91, .85)); }
.stat-fill.ok { outline: 2px solid #fff; }
.stat-n { width: 26px; text-align: right; font-weight: 900; font-variant-numeric: tabular-nums; }
.stat-correct { color: var(--green); font-weight: 900; }
.stats-empty { text-align: center; color: var(--muted); padding: 8px 0; }
.first-line { text-align: center; margin-top: 14px; font-size: 1rem; min-height: 22px; }
.first-line .bolt { animation: floaty 2s ease-in-out infinite; display: inline-block; }
.bonus-pill { background: rgba(255, 154, 61, .2); border: 1px solid rgba(255, 154, 61, .5);
  color: #ffd9a0; border-radius: 999px; padding: 1px 9px; font-size: .85rem; font-weight: 900; }
.reveal-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.reveal-actions .btn { width: auto; flex: 1; min-width: 180px; }
#nextDoubleBtn.on { border-color: var(--yellow); color: #ffe3b0; background: rgba(255, 176, 32, .16); }

/* dobogó */
.podium { display: flex; align-items: flex-end; justify-content: center; gap: 14px;
  margin: 36px 0 30px; }
.podium-step { text-align: center; flex: 1; max-width: 260px; min-width: 0; }
.podium-place { display: flex; flex-direction: column; align-items: center; gap: 6px;
  margin-bottom: 10px; }
.podium-step:nth-child(1) .podium-place { animation: popIn .55s var(--ease) both .3s; }
.podium-step:nth-child(2) .podium-place { animation: popIn .55s var(--ease) both .75s; }
.podium-step:nth-child(3) .podium-place { animation: popIn .55s var(--ease) both 1.2s; }
.podium-medal { width: 58px; height: 58px; border-radius: 50%; display: flex;
  align-items: center; justify-content: center; font-weight: 900; font-size: 1.5rem;
  color: #1a1206; box-shadow: 0 10px 26px rgba(0, 0, 0, .4); }
.p1 .podium-medal { background: linear-gradient(160deg, #ffe27a, #c9992a); color: #3d2c00;
  box-shadow: 0 0 34px rgba(255, 215, 0, .4); }
.p2 .podium-medal { background: linear-gradient(160deg, #eef2f8, #93a2b8); color: #1c2531; }
.p3 .podium-medal { background: linear-gradient(160deg, #f0b183, #a9571e); color: #2c1606; }
.podium-name { font-weight: 900; font-size: 1.25rem; max-width: 100%;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  animation: floaty 3.2s ease-in-out infinite; }
.podium-score { font-weight: 800; color: #ffd9a0; font-variant-numeric: tabular-nums;
  animation: floaty 3.2s ease-in-out infinite .4s; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
.podium-bar { border-radius: 16px 16px 0 0; display: flex; align-items: center;
  justify-content: center; font-weight: 900; color: #fff;
  background: linear-gradient(180deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .03));
  border: 1px solid var(--border); border-bottom: none;
  transform-origin: bottom; animation: grow .8s var(--ease) both; }
.p1 .podium-bar { height: 150px; animation-delay: .3s; font-size: 2.8rem;
  background: linear-gradient(180deg, rgba(255, 215, 0, .35), rgba(255, 215, 0, .05));
  border-color: rgba(255, 215, 0, .6); }
.p2 .podium-bar { height: 105px; animation-delay: .75s; font-size: 2.2rem;
  background: linear-gradient(180deg, rgba(200, 211, 224, .25), rgba(200, 211, 224, .04));
  border-color: rgba(200, 211, 224, .5); }
.p3 .podium-bar { height: 76px; animation-delay: 1.2s; font-size: 1.8rem;
  background: linear-gradient(180deg, rgba(224, 138, 74, .3), rgba(224, 138, 74, .05));
  border-color: rgba(224, 138, 74, .5); }
@keyframes grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.end-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.end-actions .btn, .end-actions form { flex: 1; min-width: 210px; }

/* ============ MODÁLIS (körök) ============ */
.modal { position: fixed; inset: 0; z-index: 100; display: flex;
  align-items: center; justify-content: center; padding: 18px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(6, 3, 16, .75);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.modal-card { position: relative; width: min(680px, 100%); max-height: 84vh;
  background: linear-gradient(165deg, #1c1238, #120b26); border: 1px solid var(--border);
  border-radius: 22px; box-shadow: var(--shadow); overflow: hidden;
  display: flex; flex-direction: column; animation: modalIn .3s var(--ease) both; }
@keyframes modalIn { from { opacity: 0; transform: translateY(26px) scale(.97); } to { opacity: 1; transform: none; } }
.modal-head { display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; border-bottom: 1px solid var(--border); }
.modal-body { padding: 14px 20px 20px; overflow-y: auto; }
.recap-item { display: flex; gap: 12px; padding: 12px 4px;
  border-bottom: 1px solid rgba(255, 255, 255, .06); }
.recap-item:last-child { border-bottom: none; }
.recap-idx { width: 34px; height: 34px; flex-shrink: 0; border-radius: 50%;
  background: linear-gradient(160deg, rgba(109, 58, 255, .5), rgba(75, 31, 166, .6));
  display: flex; align-items: center; justify-content: center; font-weight: 900;
  font-variant-numeric: tabular-nums; }
.recap-main { flex: 1; min-width: 0; }
.recap-q { font-weight: 800; line-height: 1.3; }
.recap-answer { color: #9df0c4; font-weight: 700; font-size: .95rem; margin-top: 2px; }
.recap-meta { font-size: .82rem; margin-top: 3px; }

/* ============ HOST INDÍTÁS ============ */
.host-container.narrow { max-width: 640px; }
.launch-options { margin-top: 4px; }
.seg { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 10px; }
.seg button { border: 1px solid var(--border); background: var(--glass); color: var(--text);
  border-radius: 12px; padding: 10px 0; font-weight: 800; cursor: pointer;
  font-family: var(--font); transition: all .15s; font-size: .95rem; }
.seg button.on { background: linear-gradient(160deg, rgba(255, 154, 61, .35), rgba(255, 77, 109, .25));
  border-color: var(--orange); color: #ffe3c2; box-shadow: 0 0 18px rgba(255, 154, 61, .2); }
.quiz-pick-list { display: flex; flex-direction: column; gap: 10px; }
.quiz-pick-btn { width: 100%; display: flex; align-items: center; gap: 14px;
  background: linear-gradient(155deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .03));
  border: 1px solid var(--border); color: var(--text); border-radius: 18px;
  padding: 14px 16px; cursor: pointer; font-family: var(--font); text-align: left;
  transition: transform .12s var(--ease), border-color .2s, box-shadow .2s;
  animation: cardIn .45s var(--ease) both; }
.quiz-pick-btn:hover { border-color: var(--violet2); transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .3); }
.quiz-pick-btn:active { transform: scale(.985); }
.qp-avatar { width: 46px; height: 46px; border-radius: 14px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 1.4rem;
  background: linear-gradient(160deg, var(--violet), #4b1fa6); }
.qp-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.qp-info b { font-size: 1.1rem; }
.qp-info .muted { font-size: .86rem; }
.qp-go { font-size: 1.3rem; color: var(--muted); transition: transform .2s var(--ease); }
.quiz-pick-btn:hover .qp-go { transform: translateX(4px); color: var(--violet2); }

/* ============ ADMIN ============ */
body:not(.host):not(.screen) .container { }
.admin-container { max-width: 820px; }
.page-head { display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin: 6px 0 16px; }
.page-actions { display: flex; gap: 10px; align-items: center; }
.dash-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 8px; }
.admin-list-item { display: flex; align-items: center; gap: 12px; padding: 15px 16px;
  background: linear-gradient(155deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .02));
  border: 1px solid var(--border); border-radius: 17px;
  margin-bottom: 9px; transition: border-color .2s, transform .15s;
  animation: cardIn .4s var(--ease) both; }
.admin-list-item:hover { border-color: var(--violet2); }
.grow { flex: 1; min-width: 0; }
.quiz-name { font-size: 1.1rem; }
.qtype-mini { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 7px; }
.mini-chip { font-size: .68rem; font-weight: 800; color: var(--muted);
  border: 1px solid rgba(255, 255, 255, .14); padding: 2px 8px; border-radius: 999px; }
.meta-card .card-head { margin-bottom: 4px; }
.meta-form .two-col { margin-top: 10px; }
.q-row .q-num { width: 34px; height: 34px; flex-shrink: 0; border-radius: 11px;
  background: linear-gradient(160deg, rgba(109, 58, 255, .45), rgba(75, 31, 166, .5));
  display: flex; align-items: center; justify-content: center; font-weight: 900; }
.q-text { display: block; line-height: 1.3; }
.chips-line { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; margin-top: 3px; }
.media-now { display: flex; align-items: center; gap: 12px; margin: -4px 0 10px;
  background: rgba(0, 0, 0, .25); border-radius: 12px; padding: 8px 12px; }
.media-now img { height: 54px; border-radius: 8px; }
.media-now i { font-size: .85rem; color: var(--muted); }
.answer-row { display: flex; align-items: center; gap: 10px; }
.answer-row input[type=checkbox] { margin: 0; flex: none; width: 18px; height: 18px;
  transform: scale(1.15); }
.answer-row .answer-input { flex: 1; margin: 0 0 9px; min-width: 0; }

/* ============ MÉDIA ============ */
.media-box { border-radius: 18px; overflow: hidden; background: #000;
  display: flex; justify-content: center; align-items: center; position: relative;
  box-shadow: 0 14px 44px rgba(0, 0, 0, .45); animation: cardIn .5s var(--ease) both; }
.media-box img { max-width: 100%; max-height: 34dvh; object-fit: contain; display: block; }
.media-box video { width: 100%; max-height: 38dvh; display: block; }
body.host .media-box img { max-height: 30dvh; }
body.host .media-box video { max-height: 34dvh; }

/* ============ NAGY KÉPERNYŐ ============ */
body.screen { overflow: hidden; background: var(--bg); }
.screen-topbar { position: fixed; top: 0; left: 0; right: 0; z-index: 40;
  display: flex; align-items: center; gap: 14px; padding: 16px 26px;
  background: linear-gradient(180deg, rgba(6, 3, 16, .85), transparent); }
.s-brand { font-weight: 900; font-size: 1.7rem; letter-spacing: -.02em;
  background: linear-gradient(115deg, #ff4d6d, #ff9a3d, #c77dff);
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.s-brand span { font-size: .6rem; letter-spacing: .3em; color: var(--muted);
  margin-left: 8px; -webkit-text-fill-color: var(--muted); }
.s-live { display: flex; align-items: center; gap: 8px; font-weight: 800;
  font-size: .9rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.s-live i { width: 9px; height: 9px; border-radius: 50%; background: var(--red);
  animation: liveBlink 1.6s ease-in-out infinite; }
@keyframes liveBlink { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
#stage { flex: 1; display: flex; min-height: 100dvh; }
.s-phase { flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
  padding: 90px 4vw 40px; position: relative; width: 100%; }

/* lobby */
.s-word { font-weight: 900; font-size: clamp(1.6rem, 4vh, 2.6rem); letter-spacing: .5em;
  text-indent: .5em; color: var(--muted); animation: riseIn .7s var(--ease) both; }
.s-pin { font-size: clamp(7rem, 22vw, 15rem); font-weight: 900; letter-spacing: .14em;
  text-indent: .14em; line-height: 1; font-variant-numeric: tabular-nums;
  background: linear-gradient(120deg, #fff 25%, #ffe3c2);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 22px 60px rgba(255, 255, 255, .16));
  animation: pinPop .7s var(--ease) both .1s; }
.s-sub { font-size: clamp(1.1rem, 3vh, 1.6rem); margin-top: 6px; color: var(--muted); font-weight: 600; }
.s-url { font-size: clamp(1.3rem, 3.4vh, 1.9rem); font-weight: 800; margin-top: 8px;
  background: linear-gradient(120deg, #fff, #c9a6ff);
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.s-count { margin-top: 18px; font-size: clamp(1.6rem, 4.5vh, 2.4rem); font-weight: 900;
  font-variant-numeric: tabular-nums; }
.s-count b { color: var(--green); }
.s-count.bump { animation: countBump .4s var(--ease); }
@keyframes countBump { 40% { transform: scale(1.16); } }
.s-qr { margin-top: 22px; background: #fff; border-radius: 18px; padding: 14px;
  box-shadow: 0 22px 60px rgba(0, 0, 0, .5); display: inline-block; }
.s-qr img { width: clamp(150px, 26vh, 270px); display: block; }

/* kérdés (screen) */
.s-qhead { width: 100%; max-width: 1500px; display: flex; align-items: center;
  justify-content: space-between; margin-bottom: 8px; }
.s-meta { display: flex; gap: 10px; }
.s-media { width: 100%; display: flex; justify-content: center; }
.s-media .media-box { background: transparent; box-shadow: none; }
.s-media img { max-height: 40dvh; max-width: 90vw; }
.s-media video { max-height: 42dvh; }
.s-text { font-size: clamp(1.8rem, 5.6vw, 4.6rem); font-weight: 900; line-height: 1.18;
  max-width: 1500px; word-break: break-word; padding: 6px 2vw;
  animation: qIn .55s var(--ease) both .1s; }
.s-answered { width: min(560px, 80vw); margin-top: 22px; }
.s-answered-top { display: flex; align-items: baseline; justify-content: center;
  gap: 14px; margin-bottom: 8px; }
.s-answered-num { font-size: clamp(1.7rem, 4.5vh, 2.6rem); font-weight: 900;
  font-variant-numeric: tabular-nums; }
.s-answered-num.pulse { animation: countBump .5s var(--ease); }
.s-answered-lbl { font-size: 1rem; font-weight: 800; letter-spacing: .2em;
  text-transform: uppercase; color: var(--muted); }
.s-answered-track { height: 12px; border-radius: 999px; background: rgba(255, 255, 255, .08);
  overflow: hidden; }
.s-answered-track div { height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--violet2), var(--pink), var(--orange));
  border-radius: 999px; transition: width .5s var(--ease); }

/* felfedés (screen) */
.s-reveal-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(20px, 4vw, 70px);
  width: 100%; max-width: 1600px; align-items: start; }
.s-correct { display: flex; align-items: center; justify-content: center; gap: 18px;
  padding: 8px 0; }
.s-correct-badge { width: clamp(54px, 7vh, 84px); height: clamp(54px, 7vh, 84px);
  border-radius: 50%; flex-shrink: 0; display: flex; align-items: center;
  justify-content: center; font-size: clamp(1.8rem, 5vh, 3rem); font-weight: 900;
  background: linear-gradient(160deg, #3ae68f, #12a35b); color: #fff;
  box-shadow: 0 0 0 12px rgba(18, 163, 91, .18), 0 20px 60px rgba(18, 163, 91, .4);
  animation: verdictIn .55s var(--ease) both; }
.s-correct-txt { font-size: clamp(2rem, 6.5vw, 5.2rem); font-weight: 900; line-height: 1.1;
  word-break: break-word;
  background: linear-gradient(120deg, #fff, #9df0c4);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: qIn .55s var(--ease) both .15s; }
.s-stats { margin-top: 26px; display: flex; flex-direction: column; gap: 12px; }
.s-stat-row { display: flex; align-items: center; gap: 14px; }
.s-stat-shape { font-size: clamp(1.2rem, 3vh, 1.8rem); font-weight: 900; width: 40px; text-align: left; }
.s-stat-shape.a0 { color: #ff7b96; } .s-stat-shape.a1 { color: #7fb4ff; }
.s-stat-shape.a2 { color: #ffd166; } .s-stat-shape.a3 { color: #6fe3a8; }
.s-stat-track { flex: 1; height: clamp(22px, 4vh, 34px); border-radius: 999px;
  background: rgba(255, 255, 255, .07); overflow: hidden; }
.s-stat-fill { height: 100%; width: 0; border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 93, 126, .9), rgba(214, 31, 69, .9));
  animation: statGrow .9s var(--ease) both .3s; }
.s-stat-fill.a1 { background: linear-gradient(90deg, rgba(79, 151, 255, .9), rgba(32, 100, 212, .9)); }
.s-stat-fill.a2 { background: linear-gradient(90deg, rgba(255, 192, 70, .9), rgba(224, 142, 0, .9)); }
.s-stat-fill.a3 { background: linear-gradient(90deg, rgba(58, 230, 143, .9), rgba(18, 163, 91, .9)); }
.s-stat-fill.ok { outline: 3px solid #fff; }
@keyframes statGrow { from { width: 0; } }
.s-stat-n { width: 44px; text-align: right; font-weight: 900;
  font-size: clamp(1.2rem, 3vh, 1.7rem); font-variant-numeric: tabular-nums; }
.s-stats-empty { text-align: center; color: var(--muted); margin-top: 20px;
  font-size: 1.2rem; }
.s-first { margin-top: 20px; font-size: clamp(1.2rem, 3.2vh, 1.8rem); min-height: 1em; }
.s-first b { color: #ffd9a0; }
.s-lb { margin-top: 6px; }
.s-lb .lb-row { padding: 18px 22px; border-radius: 18px; margin-bottom: 10px; }
.s-lb .lb-name { font-size: clamp(1.5rem, 4.6vh, 2.6rem); }
.s-lb .lb-score { font-size: clamp(1.5rem, 4.6vh, 2.6rem); }
.s-lb .lb-medal { width: 44px; height: 44px; font-size: 1.2rem; }
.s-next-hint { position: absolute; bottom: 26px; left: 0; right: 0; text-align: center;
  font-weight: 800; letter-spacing: .3em; text-transform: uppercase;
  color: var(--muted); font-size: .95rem; animation: hintPulse 2s ease-in-out infinite; }
@keyframes hintPulse { 0%, 100% { opacity: .5; } 50% { opacity: 1; } }

/* vége (screen) */
.s-over-inner { width: 100%; max-width: 1500px; }
.s-over-title { font-size: clamp(2.6rem, 7vh, 4.6rem); margin-bottom: 10px;
  background: linear-gradient(120deg, #ff4d6d, #ff9a3d, #c77dff);
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.s-podium { display: flex; align-items: flex-end; justify-content: center;
  gap: clamp(16px, 3vw, 50px); margin: 30px 0 24px; }
.s-podium .podium-step { max-width: 320px; }
.s-podium .podium-name { font-size: clamp(1.5rem, 4.5vh, 2.6rem); }
.s-podium .podium-score { font-size: clamp(1.1rem, 3vh, 1.7rem); }
.s-podium .podium-medal { width: 84px; height: 84px; font-size: 2.2rem; }
.s-podium .p1 .podium-bar { height: 220px; }
.s-podium .p2 .podium-bar { height: 155px; }
.s-podium .p3 .podium-bar { height: 110px; }
.s-final { max-width: 760px; margin: 0 auto; }
.s-final .lb-row { padding: 14px 20px; }
.s-final .lb-name { font-size: 1.25rem; }
.s-final .lb-score { font-size: 1.25rem; }

/* ============ KONFETTI ============ */
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 300;
  overflow: hidden; }
.confetti i { position: absolute; top: -16px; opacity: .95;
  animation: confettiFall var(--fall, 2.6s) linear var(--delay, 0s) forwards; }
@keyframes confettiFall {
  0% { transform: translate(0, 0) rotate(0deg); opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translate(var(--sway, 60px), 108vh) rotate(var(--spin, 720deg)); opacity: 0; }
}

/* ============ RESZPONZÍV ============ */
@media (max-width: 940px) {
  .lobby-grid, .q-layout, .reveal-layout { grid-template-columns: 1fr; }
  .side-col { position: static; }
  .dash-grid { grid-template-columns: 1fr; }
  .s-reveal-grid { grid-template-columns: 1fr; gap: 30px; }
  .s-lb-col { order: -1; }
  .s-next-hint { display: none; }
  body.screen { overflow-y: auto; }
  .s-media img { max-height: 26dvh; }
  .s-podium .p1 .podium-bar { height: 150px; }
}
@media (max-width: 560px) {
  .answer-grid { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; gap: 0; }
  .year-steppers { grid-template-columns: repeat(3, 1fr); }
  .topbar { padding: 10px 12px; }
  .end-actions .btn, .end-actions form { min-width: 100%; }
  .media-box img { max-height: 26dvh; }
  .reveal-actions .btn { min-width: 100%; }
}
@media (max-width: 420px) {
  .qr-box img { width: 150px; }
  .tb-actions .icon-btn { padding: 8px 9px; }
}

/* ============ EGYÉB / FINOMÍTÁS ============ */
.row { display: flex; gap: 10px; }
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .16); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, .28); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important;
    animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ============ JELENTKEZÉS / VÁRÓLISTA / LEMONDÁS ============ */
.full-badge { font-size: 3.2rem; line-height: 1; margin: 4px 0 2px;
  animation: floatY 2.8s ease-in-out infinite; }
@keyframes floatY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

.code-row { display: flex; align-items: center; justify-content: center;
  gap: 10px; margin: 14px 0 2px; }
.team-code { display: inline-flex; align-items: center;
  font-family: ui-monospace, 'Cascadia Mono', 'Consolas', 'Courier New', monospace;
  font-size: 1.6rem; font-weight: 800; letter-spacing: .22em;
  padding: .5em .9em .5em 1em; border-radius: 15px; color: #ffe3b0;
  border: 1px solid rgba(255, 215, 0, .4);
  background: linear-gradient(160deg, rgba(255, 215, 0, .13), rgba(255, 176, 32, .04));
  box-shadow: 0 6px 24px rgba(255, 176, 32, .12), inset 0 1px 0 rgba(255, 255, 255, .08);
  animation: codePop .6s var(--ease) .15s both; }
@keyframes codePop {
  0% { opacity: 0; transform: scale(.7); filter: brightness(.6); }
  70% { transform: scale(1.06); }
  100% { opacity: 1; transform: scale(1); filter: brightness(1); }
}

.btn.danger { background: linear-gradient(160deg, #ff5f6d 0%, #c40f33 100%);
  box-shadow: 0 5px 0 #4f0a1e, 0 16px 34px rgba(255, 51, 85, .3),
              inset 0 1px 0 rgba(255, 255, 255, .2); }
.btn.danger:active { box-shadow: 0 1px 0 #4f0a1e, 0 6px 16px rgba(255, 51, 85, .22),
                     inset 0 1px 0 rgba(255, 255, 255, .15); }

.admin-section { font-size: .78rem; font-weight: 800; letter-spacing: .18em;
  text-transform: uppercase; color: var(--muted); margin: 20px 0 10px; }
.mini-chip.code-chip { color: #ffe3b0; border-color: rgba(255, 215, 0, .35);
  letter-spacing: .08em; }
