/* =====================================================================
   SPORTOWETYPY — quiz /start/
   Mobile-first. Jeden ekran = jedno pytanie, bez scrolla.
   ===================================================================== */

html, body {
  height: 100%;
  font-family: var(--font);
  background: #DDE5E0;
  overflow: hidden;
  overscroll-behavior: none;
}

.quiz-shell {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  height: 100vh;
  height: 100dvh;
  background: var(--bg);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

@media (min-width: 560px) {
  body { display: block; padding: 30px 0; }
  .quiz-shell {
    height: min(calc(100dvh - 60px), 880px);
    max-height: calc(100dvh - 60px);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-lg);
  }
}

/* =====================================================================
   NAGŁÓWEK
   ===================================================================== */
.quiz-header { flex-shrink: 0; position: relative; z-index: 10; }

.header-top {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: 56px;
  padding: 14px 56px;
  background: var(--card);
  border-bottom: 1px solid var(--line);
}
.header-top .wordmark { font-size: 23px; }

.btn-back {
  position: absolute;
  left: 14px; top: 50%;
  transform: translateY(-50%);
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 2px solid var(--line);
  background: var(--card);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: var(--t);
  -webkit-tap-highlight-color: transparent;
}
.btn-back:hover { border-color: var(--green-400); }
.btn-back.hidden { opacity: 0; pointer-events: none; }

/* ---- Pasek postępu ---- */
.progress-section {
  padding: 13px 20px 12px;
  background: var(--card);
  border-bottom: 1px solid var(--line);
}
.progress-section.hidden { display: none; }

.progress-label {
  text-align: center;
  font-family: var(--font);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 10px;
}

.progress-steps { display: flex; align-items: center; gap: 6px; }

.progress-track {
  flex: 1;
  height: 5px;
  background: var(--line);
  border-radius: 4px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  width: 0%;
  border-radius: 4px;
  background: var(--green-500);
  transition: width .65s var(--ease);
}
.step-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--line);
  flex-shrink: 0;
  transition: var(--t);
}
.step-dot.completed { background: var(--green-500); }

/* =====================================================================
   EKRANY
   ===================================================================== */
.quiz-body { flex: 1; min-height: 0; position: relative; overflow: hidden; }

.screen {
  position: absolute;
  inset: 0;
  padding: 22px 20px 0;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
  opacity: 0;
  pointer-events: none;
  will-change: transform, opacity;
}
.screen.active { opacity: 1; pointer-events: auto; }
.screen.enter-right { animation: enterRight .4s var(--ease) forwards; }
.screen.exit-left   { animation: exitLeft  .35s var(--ease) forwards; }
.screen.enter-left  { animation: enterLeft .4s var(--ease) forwards; }
.screen.exit-right  { animation: exitRight .35s var(--ease) forwards; }

@keyframes enterRight { from { transform: translateX(72px);  opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes exitLeft   { from { transform: none; opacity: 1; } to { transform: translateX(-72px); opacity: 0; } }
@keyframes enterLeft  { from { transform: translateX(-72px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes exitRight  { from { transform: none; opacity: 1; } to { transform: translateX(72px);  opacity: 0; } }

.screen::-webkit-scrollbar { width: 4px; }
.screen::-webkit-scrollbar-thumb { background: var(--line); border-radius: 2px; }

/* =====================================================================
   PYTANIE
   ===================================================================== */
.q-title {
  font-family: var(--font);
  font-size: 25px;
  font-weight: 800;
  line-height: 1.26;
  letter-spacing: -0.02em;
  text-align: center;
  color: var(--ink);
  margin-bottom: 6px;
}
.q-subtitle {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--ink-faint);
  text-align: center;
  margin-top: 8px;
}

/* =====================================================================
   KARTY ODPOWIEDZI
   ===================================================================== */
.options-list { display: flex; flex-direction: column; margin-top: 20px; }
.q-title + .options-list, .q-subtitle + .options-list, .q-title + .options-grid { margin-bottom: auto; }

.option-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 16px;
  margin-bottom: 10px;
  background: var(--card);
  border: 2px solid var(--line);
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: border-color .2s, background .2s, transform .2s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.option-card:hover { border-color: var(--line-strong); }
.option-card.selected {
  border-color: var(--green-500);
  background: var(--green-50);
}
.option-card.selected .card-check {
  background: var(--green-500);
  border-color: var(--green-500);
}
.option-card.selected .card-check svg { opacity: 1; }
.option-card.pulse { animation: cardPulse .25s ease; }
@keyframes cardPulse { 50% { transform: scale(1.015); } }

/* =====================================================================
   ANIMACJE ODPOWIEDZI
   ---------------------------------------------------------------------
   Karty wjeżdżają kaskadą, dotknięcie zostawia falę, a wybór wyraźnie
   oddziela to, co kliknięte, od reszty. Numer karty (--i) ustawia JS.
   ===================================================================== */

.q-title.wjezdza, .q-subtitle.wjezdza, .option-card.wjezdza {
  animation: kartaWjazd .42s var(--ease) both;
  animation-delay: calc(var(--i, 0) * 45ms);
}
@keyframes kartaWjazd {
  from { opacity: 0; transform: translateY(14px) scale(.985); }
  to   { opacity: 1; transform: none; }
}

/* Potrzebne, żeby fala nie wychodziła poza zaokrąglony róg */
.option-card { position: relative; overflow: hidden; }

.fala {
  position: absolute;
  width: 14px; height: 14px;
  margin: -7px 0 0 -7px;
  border-radius: 50%;
  background: var(--green-400);
  opacity: .32;
  pointer-events: none;
  transform: scale(0);
  animation: falaRosnie .6s var(--ease) forwards;
}
@keyframes falaRosnie {
  to { transform: scale(34); opacity: 0; }
}

/* Karta, którą wybrał — wychodzi do przodu */
.option-card.wybrana {
  animation: kartaWybrana .42s var(--ease) both;
  border-color: var(--green-500);
  box-shadow: var(--shadow-green);
  z-index: 2;
}
@keyframes kartaWybrana {
  0%   { transform: none; }
  38%  { transform: scale(1.035); }
  100% { transform: scale(1.012); }
}
.option-card.wybrana .card-icon { animation: ikonaSkok .42s var(--ease) both; }
@keyframes ikonaSkok {
  0%   { transform: none; }
  40%  { transform: scale(1.22) rotate(-7deg); }
  100% { transform: none; }
}
.option-card.wybrana .card-check svg {
  animation: ptaszekRys .3s var(--ease) .06s both;
}
@keyframes ptaszekRys {
  from { transform: scale(0) rotate(-30deg); }
  to   { transform: none; }
}

/* Reszta kart usuwa się w cień */
.option-card.odrzucona {
  animation: kartaOdpada .36s var(--ease) both;
  pointer-events: none;
}
@keyframes kartaOdpada {
  to { opacity: .28; transform: scale(.97); filter: saturate(.35); }
}

.card-icon--img { background: #fff; border: 1px solid var(--line); overflow: hidden; padding: 0; }
.card-icon--img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.option-card.selected .card-icon--img { border-color: var(--green-300); background: #fff; }

.card-icon {
  width: 42px; height: 42px;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  line-height: 1;
  border-radius: 10px;
  background: var(--bg-2);
}
.option-card.selected .card-icon { background: var(--green-100); }

.card-label {
  flex: 1;
  font-family: var(--font);
  font-size: 15.5px;
  font-weight: 650;
  line-height: 1.35;
  color: var(--ink);
}
.card-sub {
  display: block;
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 400;
  color: var(--ink-faint);
  margin-top: 2px;
}

.card-check {
  width: 26px; height: 26px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 2px solid #D4DDD8;
  display: flex; align-items: center; justify-content: center;
  transition: var(--t);
}
.card-check svg { opacity: 0; transition: var(--t); }
.option-card.simple .card-check { display: none; }

/* ---- Siatka 2 kolumny (ligi) ---- */
.options-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 20px; }
.options-grid .option-card {
  margin-bottom: 0;
  flex-direction: column;
  text-align: center;
  padding: 16px 10px;
  gap: 8px;
}
.options-grid .card-icon { width: 46px; height: 46px; font-size: 26px; }
.options-grid .card-label { font-size: 13.5px; line-height: 1.3; }
.options-grid .card-check { display: none; }

/* =====================================================================
   STOPKA QUIZU
   ===================================================================== */
.quiz-footer {
  flex-shrink: 0;
  padding: 12px 20px calc(16px + env(safe-area-inset-bottom, 0px));
  background: var(--bg);
  position: relative;
  z-index: 10;
}
.quiz-footer.hidden { display: none; }

.quiz-error {
  display: none;
  margin-bottom: 10px;
  padding: 10px 14px;
  background: rgba(217,45,32,.07);
  border: 1px solid rgba(217,45,32,.28);
  border-radius: 10px;
  color: var(--error);
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 600;
  text-align: center;
}
.quiz-error.visible { display: block; }

.quiz-legal {
  margin-top: 12px;
  font-size: 11.5px;
  color: var(--ink-faint);
  text-align: center;
}
.quiz-legal a { color: var(--ink-soft); text-decoration: underline; text-underline-offset: 2px; }

/* ---- CTA Telegram ---- */
.btn--telegram {
  background: var(--telegram);
  color: #fff;
  box-shadow: 0 4px 20px rgba(34,158,217,.40);
  animation: tgPulse 1.9s ease-in-out infinite;
}
.btn--telegram:hover { background: #1d8bbf; }
.btn--telegram svg path { stroke: #fff; }
@keyframes tgPulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(34,158,217,.4), 0 0 0 0 rgba(34,158,217,.5); }
  50%      { box-shadow: 0 4px 20px rgba(34,158,217,.5), 0 0 0 14px rgba(34,158,217,0); }
}

/* =====================================================================
   EKRANY-KOMENTARZE
   ===================================================================== */
.inter {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  padding: 22px 8px;
  /* Krótkie ekrany-komentarze siadają na środku, dłuższe zachowują się normalnie. */
  margin-block: auto;
  opacity: 0;
  transform: scale(.97);
  animation: introScale .4s ease forwards;
}
@keyframes introScale { to { opacity: 1; transform: none; } }

.inter h2 {
  font-family: var(--font);
  font-size: 23px;
  font-weight: 800;
  line-height: 1.24;
  letter-spacing: -0.02em;
  max-width: 350px;
  color: var(--ink);
}
.inter h2 em { font-style: normal; color: var(--green-600); }
.inter p {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 350px;
}
.inter p strong { color: var(--ink); font-weight: 700; }

.inter-icon {
  font-size: 54px;
  line-height: 1;
  animation: iconPop 1.1s ease .15s 1 both;
}
@keyframes iconPop {
  0%   { transform: scale(.55); opacity: 0; }
  60%  { transform: scale(1.09); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

/* ---- Liczniki ---- */
.counter-row {
  display: flex;
  gap: 28px;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  margin: 8px 0 2px;
}
.counter-block { text-align: center; }
.counter-value.dobil { animation: dobil .42s var(--ease); }
@keyframes dobil {
  0%   { transform: scale(1); }
  45%  { transform: scale(1.09); }
  100% { transform: scale(1); }
}
.counter-value {
  font-family: var(--font);
  font-size: 46px;
  font-variant-numeric: tabular-nums;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--green-500);
}
.counter-label {
  font-family: var(--font);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-top: 7px;
}

.anim-bar {
  width: 240px;
  height: 8px;
  background: var(--line);
  border-radius: 4px;
  overflow: hidden;
  margin: 4px auto 0;
}
.anim-bar-fill {
  height: 100%;
  width: 0%;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--green-600), var(--green-400));
  transition: width 1.1s var(--ease);
  position: relative;
  overflow: hidden;
}
.anim-bar-fill::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.5), transparent);
  animation: polysk 1.4s linear 2;
}

/* ---- Iskierki ---- */
.sparkles { position: relative; width: 0; height: 0; margin: 0 auto; }
.sparkles span {
  position: absolute;
  width: 7px; height: 7px;
  left: -3.5px; top: -3.5px;
  border-radius: 50%;
  background: var(--cta);
  opacity: 0;
  animation: sparkFly .85s ease-out .1s forwards;
}
.sparkles span:nth-child(1) { --dx:  44px; --dy: -42px; }
.sparkles span:nth-child(2) { --dx: -44px; --dy: -42px; background: var(--green-400); }
.sparkles span:nth-child(3) { --dx:  40px; --dy:  40px; background: var(--green-400); }
.sparkles span:nth-child(4) { --dx: -40px; --dy:  40px; }
@keyframes sparkFly {
  0%   { opacity: 0; transform: translate(0,0) scale(0); }
  30%  { opacity: 1; }
  100% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(1); }
}

/* =====================================================================
   LOADER
   ===================================================================== */
.loader { display: flex; flex-direction: column; align-items: center; width: 100%; padding: 6px 0; }
.loader h2 {
  font-family: var(--font);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-align: center;
  margin-bottom: 22px;
  color: var(--ink);
}

.loader-bar {
  width: 100%;
  margin-bottom: 15px;
  opacity: .45;
  transition: opacity .45s var(--ease);
}
.loader-bar.aktywny, .loader-bar.gotowy { opacity: 1; }
.loader-bar.gotowy .loader-bar-pct { color: var(--green-600); }
.loader-bar.gotowy .loader-bar-pct::after {
  content: ' ✓';
  animation: checkIn .35s var(--ease) both;
  display: inline-block;
}
@keyframes checkIn { from { transform: scale(0) rotate(-25deg); opacity: 0; } }
.loader-bar-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 7px; }
.loader-bar-label { font-family: var(--font-body); font-size: 13px; font-weight: 600; color: var(--ink); }
.loader-bar-pct {
  font-family: var(--font); font-size: 13px; font-weight: 800;
  color: var(--ink-faint);
  font-variant-numeric: tabular-nums;   /* cyfry nie skaczą przy zmianie */
  transition: color .3s;
}
.loader-bar.aktywny .loader-bar-pct { color: var(--green-600); }
.loader-bar-track { height: 8px; background: var(--line); border-radius: 4px; overflow: hidden; }
.loader-bar-fill {
  height: 100%; width: 0%;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--green-600), var(--green-400));
  position: relative;
  overflow: hidden;
}
/* Przesuwający się połysk — pasek wygląda, jakby coś się działo. */
.loader-bar.aktywny .loader-bar-fill::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent);
  animation: polysk 1.1s linear infinite;
}
@keyframes polysk { from { transform: translateX(-100%); } to { transform: translateX(200%); } }

.loader-bar-track { position: relative; }

/* ---- Karuzela opinii ---- */
.loader-reviews { width: 100%; overflow: hidden; margin-top: 18px; border-radius: var(--r); }
.loader-reviews-track { display: flex; transition: transform .5s var(--ease); }
.review-card {
  min-width: 100%;
  padding: 16px;
  background: var(--card);
  border: 2px solid var(--line);
  border-radius: var(--r);
}
.review-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 9px; }
.review-author { font-family: var(--font); font-size: 14px; font-weight: 700; color: var(--ink); }
.review-date   { font-family: var(--font-body); font-size: 12px; color: var(--ink-faint); margin-top: 1px; }
.review-text   { font-family: var(--font-body); font-size: 13px; line-height: 1.6; color: var(--ink-soft); font-style: italic; }

.review-dots { display: flex; justify-content: center; gap: 6px; margin-top: 11px; }
.review-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--line); transition: background .3s; }
.review-dot.active { background: var(--green-500); }

/* ---- Popup w trakcie ładowania ---- */
.popup-overlay {
  position: fixed; inset: 0;
  background: rgba(4,16,31,.5);
  z-index: 100;
  opacity: 0; pointer-events: none;
  transition: opacity .25s;
}
.popup-overlay.visible { opacity: 1; pointer-events: auto; }

.popup {
  position: fixed;
  bottom: 0; left: 50%;
  transform: translate(-50%, 100%);
  width: 100%;
  max-width: 520px;
  background: var(--card);
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  padding: 26px 20px calc(36px + env(safe-area-inset-bottom, 0px));
  z-index: 101;
  box-shadow: 0 -10px 44px rgba(4,16,31,.22);
  transition: transform .35s var(--ease);
}
.popup.visible { transform: translate(-50%, 0); }
.popup-title {
  font-family: var(--font);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-align: center;
  margin-bottom: 18px;
  color: var(--ink);
}
.popup-option {
  width: 100%;
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px;
  margin-bottom: 9px;
  background: var(--card);
  border: 2px solid var(--line);
  border-radius: var(--r-sm);
  font-family: var(--font);
  font-size: 15px;
  font-weight: 650;
  text-align: left;
  cursor: pointer;
  transition: var(--t);
  -webkit-tap-highlight-color: transparent;
}
.popup-option:hover { border-color: var(--green-400); background: var(--green-50); }
.popup-option span { font-size: 22px; flex-shrink: 0; }

/* =====================================================================
   WYNIK
   ===================================================================== */
.result-hero { text-align: center; padding-bottom: 16px; }
.result-hero h2 {
  font-family: var(--font);
  font-size: 25px;
  font-weight: 900;
  line-height: 1.22;
  letter-spacing: -0.025em;
  color: var(--ink);
}
.result-hero em { font-style: normal; color: var(--green-600); }

.result-count {
  text-align: center;
  padding: 22px 20px;
  background: linear-gradient(135deg, var(--green-500), var(--green-400));
  border-radius: var(--r);
  margin-bottom: 16px;
  box-shadow: var(--shadow-green);
}
.result-count-number {
  font-family: var(--font);
  font-size: 60px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.04em;
  color: #fff;
}
.result-count-label {
  font-family: var(--font-body);
  font-size: 14.5px;
  font-weight: 600;
  color: rgba(255,255,255,.92);
  margin-top: 5px;
}

.result-stats {
  background: var(--card);
  border: 2px solid var(--line);
  border-radius: var(--r);
  padding: 2px 18px;
  margin-bottom: 14px;
}
.result-stat-row {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}
.result-stat-row:last-child { border-bottom: none; }
.result-stat-label { font-family: var(--font-body); font-size: 14px; color: var(--ink-faint); }
.result-stat-value { font-family: var(--font); font-size: 14px; font-weight: 700; color: var(--ink); text-align: right; }

.result-profile {
  font-family: var(--font);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--ink);
  background: var(--cta-50);
  border-left: 4px solid var(--cta);
  border-radius: 10px;
  padding: 13px 15px;
}

/* ---- Ekran potwierdzenia ---- */
.result-b {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: 14px;
  padding: 24px 8px;
  margin-block: auto;
  opacity: 0; transform: scale(.97);
  animation: introScale .4s ease forwards;
}
.result-b-icon {
  font-size: 62px; line-height: 1;
  animation: alertPulse 1.6s ease-in-out infinite;
}
@keyframes alertPulse { 50% { transform: scale(1.08); } }
.result-b h2 {
  font-family: var(--font);
  font-size: 26px;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.025em;
  max-width: 350px;
  color: var(--ink);
}
.result-b p {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 350px;
}
.result-b p strong { color: var(--ink); font-weight: 700; }

/* ---- Ramię e-mail ---- */
.email-box {
  margin-top: 16px;
  padding: 18px;
  background: var(--card);
  border: 2px solid var(--line);
  border-radius: var(--r);
  transition: border-color .2s;
}
.email-box:focus-within { border-color: var(--green-500); }
.email-box.error { border-color: var(--error); }
.email-label {
  font-family: var(--font);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 7px;
}
.email-input {
  width: 100%;
  border: none; outline: none;
  background: transparent;
  font-family: var(--font);
  font-size: 17px;
  font-weight: 650;
  color: var(--ink);
}
.email-input::placeholder { color: var(--ink-faint); font-weight: 400; }
.email-note {
  margin-top: 12px;
  font-family: var(--font-body);
  font-size: 12px;
  line-height: 1.5;
  color: var(--ink-faint);
  text-align: center;
}

/* =====================================================================
   MAŁE TELEFONY
   ===================================================================== */
@media (max-width: 380px) {
  .q-title { font-size: 22px; }
  .option-card { padding: 13px 14px; gap: 12px; }
  .card-icon { width: 38px; height: 38px; font-size: 20px; }
  .card-label { font-size: 14.5px; }
  .inter h2 { font-size: 21px; }
  .counter-value { font-size: 40px; }
}

/* Niskie ekrany (stare telefony, 360x640) — zagęszczamy, żeby wszystko weszło */
/* Telefon obrócony poziomo — ekran bardzo niski, układ musi się spłaszczyć */
@media (orientation: landscape) and (max-height: 480px) {
  .quiz-shell { height: 100dvh; }
  .header-top { min-height: 42px; padding: 7px 50px; }
  .header-top .wordmark { font-size: 19px; }
  .progress-section { padding: 7px 20px 6px; }
  .progress-label { margin-bottom: 6px; font-size: 9px; }
  .screen { padding: 10px 18px 0; }
  .q-title { font-size: 18px; }
  .q-subtitle { display: none; }
  .options-list, .options-grid { margin-top: 10px; }
  .options-list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .options-list .option-card { margin-bottom: 0; padding: 9px 12px; }
  .options-grid { grid-template-columns: repeat(3, 1fr); }
  .card-icon { width: 30px; height: 30px; font-size: 16px; }
  .card-label { font-size: 13px; }
  .inter { padding: 6px; gap: 7px; }
  .inter-icon { font-size: 32px; }
  .inter h2 { font-size: 17px; max-width: 520px; }
  .inter p { font-size: 13px; max-width: 520px; }
  .counter-value { font-size: 30px; }
  .quiz-footer { padding: 7px 18px calc(9px + env(safe-area-inset-bottom, 0px)); }
  .btn--lg { height: 44px; font-size: 15px; }
  .quiz-legal { margin-top: 5px; font-size: 10px; }
  .suwak-box { margin-top: 8px; padding: 12px 16px 10px; }
  .suwak-wynik span:first-child { font-size: 34px; }
  .suwak-opis { min-height: 0; margin-top: 8px; font-size: 12.5px; }
  .kupon-img { max-height: 58vh; }
}

@media (max-height: 700px) {
  .screen { padding: 14px 18px 0; }
  .q-title { font-size: 20px; }
  .q-subtitle { font-size: 13px; margin-top: 4px; }
  .options-list, .options-grid { margin-top: 12px; }
  .option-card { padding: 10px 13px; margin-bottom: 7px; gap: 11px; }
  .card-icon { width: 34px; height: 34px; font-size: 18px; border-radius: 9px; }
  .card-label { font-size: 14px; }
  .card-check { width: 22px; height: 22px; }
  .options-grid .option-card { padding: 12px 8px; gap: 5px; }
  .options-grid .card-icon { width: 38px; height: 38px; font-size: 21px; }
  .options-grid .card-label { font-size: 12.5px; }

  .inter { padding: 12px 8px; gap: 10px; }
  .inter-icon { font-size: 42px; }
  .inter h2 { font-size: 20px; }
  .inter p { font-size: 14px; }
  .counter-value { font-size: 36px; }
  .result-b { padding: 14px 8px; gap: 10px; }
  .result-b-icon { font-size: 48px; }
  .result-b h2 { font-size: 22px; }

  .quiz-footer { padding: 10px 18px calc(12px + env(safe-area-inset-bottom, 0px)); }
  .btn--lg { height: 50px; font-size: 16px; }
  .quiz-legal { margin-top: 8px; font-size: 11px; }
  .progress-section { padding: 10px 20px 9px; }
  .header-top { min-height: 48px; padding: 10px 52px; }
}

/* =====================================================================
   SIATKA KLUBÓW (3 kolumny)
   ===================================================================== */
.options-grid--3 { grid-template-columns: repeat(3, 1fr); gap: 9px; }
.options-grid--3 .option-card { padding: 13px 6px; gap: 7px; }
.options-grid--3 .card-icon { width: 46px; height: 46px; font-size: 22px; background: transparent; }
.options-grid--3 .card-icon--img { border: none; background: transparent; }
.options-grid--3 .card-icon--img img { object-fit: contain; }
.options-grid--3 .card-label { font-size: 12.5px; line-height: 1.25; }
.options-grid--3 .option-card.selected .card-icon { background: transparent; }

/* Herb klubu na ekranie-komentarzu */
.inter-herb { width: 76px; height: 76px; object-fit: contain; }

/* =====================================================================
   SUWAK — ile meczów w tygodniu
   ===================================================================== */
.suwak-box {
  margin-top: 26px;
  padding: 26px 20px 22px;
  background: var(--card);
  border: 2px solid var(--line);
  border-radius: var(--r);
  text-align: center;
}
.suwak-wynik {
  display: flex; align-items: baseline; justify-content: center; gap: 8px;
  margin-bottom: 20px;
}
.suwak-wynik span:first-child {
  font-family: var(--font);
  font-size: 58px; font-weight: 900; line-height: 1;
  letter-spacing: -0.04em;
  color: var(--green-600);
  font-variant-numeric: tabular-nums;
}
.suwak-jednostka {
  font-family: var(--font);
  font-size: 16px; font-weight: 700;
  color: var(--ink-faint);
}

.suwak {
  --wypelnienie: 28.5%;
  width: 100%;
  height: 44px;              /* pełne pole dotyku — tyle wymaga iOS */
  margin: 0;
  background: transparent;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}
.suwak::-webkit-slider-runnable-track {
  height: 10px;
  border-radius: 5px;
  background: linear-gradient(90deg, var(--green-500) var(--wypelnienie), var(--line) var(--wypelnienie));
}
.suwak::-moz-range-track {
  height: 10px;
  border-radius: 5px;
  background: linear-gradient(90deg, var(--green-500) var(--wypelnienie), var(--line) var(--wypelnienie));
}
.suwak::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 32px; height: 32px;
  margin-top: -11px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--green-500);
  box-shadow: var(--shadow);
  transition: transform .15s var(--ease);
}
.suwak::-moz-range-thumb {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--green-500);
  box-shadow: var(--shadow);
}
.suwak:active::-webkit-slider-thumb { transform: scale(1.12); }
.suwak:active::-moz-range-thumb { transform: scale(1.12); }

.suwak-skala {
  display: flex; justify-content: space-between;
  font-family: var(--font);
  font-size: 12px; font-weight: 700;
  color: var(--ink-faint);
  margin-top: 2px;
}
.suwak-opis {
  margin-top: 16px;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-soft);
  min-height: 42px;
}

/* =====================================================================
   ZGADYWANKA
   ===================================================================== */
#zgRoot .options-list { width: 100%; margin-top: 16px; }
#zgRoot .option-card {
  transition: opacity .3s var(--ease), max-height .45s var(--ease),
              margin .45s var(--ease), padding .45s var(--ease), border-width .3s;
  max-height: 120px;
  overflow: hidden;
}
/* Po odkryciu niewybrane opcje znikają, żeby wynik zmieścił się bez przewijania. */
#zgRoot.odkryte .option-card.wyblakle {
  opacity: 0;
  max-height: 0;
  margin-bottom: 0;
  padding-top: 0;
  padding-bottom: 0;
  border-width: 0;
}

.zg-wynik {
  width: 100%;
  max-width: 350px;
  margin-top: 4px;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transform: translateY(8px);
  transition: opacity .45s var(--ease), max-height .55s var(--ease), transform .45s var(--ease);
}
#zgRoot.odkryte .zg-wynik {
  opacity: 1;
  max-height: 420px;
  transform: none;
  margin-top: 18px;
}
.zg-komentarz {
  font-family: var(--font);
  font-size: 15px; font-weight: 800;
  margin-top: 12px;
}
.zg-komentarz.trafione { color: var(--green-600); }
.zg-komentarz.pudlo    { color: var(--ink-soft); }
.zg-tresc {
  font-family: var(--font-body);
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin-top: 10px;
}

/* Telefon obrócony poziomo — ekran bardzo niski, układ musi się spłaszczyć */
@media (orientation: landscape) and (max-height: 480px) {
  .quiz-shell { height: 100dvh; }
  .header-top { min-height: 42px; padding: 7px 50px; }
  .header-top .wordmark { font-size: 19px; }
  .progress-section { padding: 7px 20px 6px; }
  .progress-label { margin-bottom: 6px; font-size: 9px; }
  .screen { padding: 10px 18px 0; }
  .q-title { font-size: 18px; }
  .q-subtitle { display: none; }
  .options-list, .options-grid { margin-top: 10px; }
  .options-list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .options-list .option-card { margin-bottom: 0; padding: 9px 12px; }
  .options-grid { grid-template-columns: repeat(3, 1fr); }
  .card-icon { width: 30px; height: 30px; font-size: 16px; }
  .card-label { font-size: 13px; }
  .inter { padding: 6px; gap: 7px; }
  .inter-icon { font-size: 32px; }
  .inter h2 { font-size: 17px; max-width: 520px; }
  .inter p { font-size: 13px; max-width: 520px; }
  .counter-value { font-size: 30px; }
  .quiz-footer { padding: 7px 18px calc(9px + env(safe-area-inset-bottom, 0px)); }
  .btn--lg { height: 44px; font-size: 15px; }
  .quiz-legal { margin-top: 5px; font-size: 10px; }
  .suwak-box { margin-top: 8px; padding: 12px 16px 10px; }
  .suwak-wynik span:first-child { font-size: 34px; }
  .suwak-opis { min-height: 0; margin-top: 8px; font-size: 12.5px; }
  .kupon-img { max-height: 58vh; }
}

@media (max-height: 700px) {
  .suwak-box { margin-top: 16px; padding: 18px 16px 16px; }
  .suwak-wynik span:first-child { font-size: 46px; }
  .suwak-wynik { margin-bottom: 14px; }
  .suwak-opis { font-size: 13px; margin-top: 12px; min-height: 36px; }
  .options-grid--3 .card-icon { width: 40px; height: 40px; }
  .options-grid--3 .card-label { font-size: 11.5px; }
  .inter-herb { width: 60px; height: 60px; }
  .zg-tresc { font-size: 13.5px; }
}

/* Znak zamiast ikony (bukmacherzy — bez ich logo, patrz quiz.js) */
.card-icon--txt {
  background: var(--navy-900); color: var(--green-400);
  font-family: var(--font); font-weight: 900; font-style: italic; font-size: 18px;
}
.option-card.selected .card-icon--txt { background: var(--green-400); color: var(--navy-900); }
.result-count-number small { font-size: .32em; margin-left: 6px; letter-spacing: 0; }

/* Niski ekran (przeglądarka w Messengerze/Instagramie na iPhonie): elementy ekranu nie mogą się
   ściskać — ekran ma się przewijać. Bez tego baner „11 AM ET” (overflow: hidden) tracił środek. */
.screen > * { flex-shrink: 0; }
