/* ============================================================
   WIZ Nagradna Igra — style.css
   Scoped under .wiz-game for Liferay content article embedding
   ============================================================ */

/* ── 1. RESET (scoped) ── */
.wiz-game img, .wiz-game svg { display: block; max-width: 100%; }
.wiz-game button { cursor: pointer; font-family: var(--font); border: none; background: none; }
.wiz-game a { color: var(--wiz-blue); }
.wiz-game input, .wiz-game select { font-family: var(--font); }

/* ── 2. GAME CONTAINER + BRAND TOKENS ── */
.wiz-game {
  /* WIZ brand colors */
  --wiz-teal: #00B4C4;
  --wiz-teal-light: #33C5D2;
  --wiz-teal-dark: #008E9C;
  --wiz-teal-pale: #E0F7F9;
  --wiz-lime: #C8D400;
  --wiz-lime-light: #D8E400;
  --wiz-lime-pale: #F5F9D4;
  --wiz-dark: #3D3530;
  --wiz-taupe: #7B6E6A;
  --wiz-blue: var(--wiz-teal);
  --wiz-blue-light: var(--wiz-teal-light);
  --wiz-blue-dark: var(--wiz-teal-dark);
  --wiz-blue-pale: var(--wiz-teal-pale);
  --wiz-pink: #E8003D;
  --wiz-pink-light: #FF3361;
  --wiz-pink-pale: #FDE8EE;
  --correct: #00B37E;
  --correct-bg: #E6F7F2;
  --wrong: #E8003D;
  --wrong-bg: #FDE8EE;
  --bronze: #CD7F32;
  --bronze-bg: #FDF3E7;
  --silver: #6C757D;
  --silver-bg: #F1F3F5;
  --gold: #B8860B;
  --gold-bg: #FFFBE6;
  --legenda-from: var(--wiz-teal);
  --legenda-to: var(--wiz-lime);
  --white: #FFFFFF;
  --gray-50: #F8F9FA;
  --gray-100: #F1F3F5;
  --gray-200: #E9ECEF;
  --gray-300: #DEE2E6;
  --gray-400: #CED4DA;
  --gray-500: #ADB5BD;
  --gray-600: #6C757D;
  --gray-700: #495057;
  --gray-800: #343A40;
  --black: var(--wiz-dark);
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;
  --shadow-sm: 0 1px 4px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.10);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.14);
  --shadow-blue: 0 4px 20px rgba(0,180,196,0.32);
  --shadow-pink: 0 4px 20px rgba(232,0,61,0.28);
  --transition: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: 150ms ease;
  --transition-slow: 400ms ease;

  /* Layout */
  font-family: var(--font);
  color: var(--wiz-dark);
  -webkit-font-smoothing: antialiased;
  width: 100%;
  max-width: 100%;
  background: var(--white);
  position: relative;
  overflow: hidden;
}

/* ── 3. SCREEN SYSTEM ── */
.wiz-game .screen {
  display: none;
}
.wiz-game .screen.wiz-active {
  display: block;
  animation: wizScreenIn 500ms ease-out both;
}
@keyframes wizScreenIn {
  0%   { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}
.wiz-game .screen-inner {
  padding: 28px 24px 36px;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0;
}

/* ── 4. SHARED COMPONENTS ── */

.wiz-game .screen-logo {
  width: 110px;
  height: auto;
  margin-bottom: 16px;
  object-fit: contain;
}

.wiz-game .wiz-btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 16px 24px;
  background: var(--wiz-blue);
  color: var(--white);
  font-size: 1rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  border: none;
  box-shadow: var(--shadow-blue);
  transition: background var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
  text-decoration: none;
  text-align: center;
  margin-top: auto;
}
.wiz-game .wiz-btn-primary:hover { background: var(--wiz-blue-light); transform: translateY(-1px); box-shadow: 0 6px 24px rgba(0,61,165,0.35); }
.wiz-game .wiz-btn-primary:active { transform: translateY(0); }
.wiz-game .wiz-btn-primary:disabled {
  background: var(--gray-400);
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}
.wiz-game .wiz-btn-primary.wiz-hidden { display: none; }

.wiz-game #btn-score-continue {
  background: #FF9900;
  box-shadow: 0 4px 14px rgba(255, 153, 0, 0.4);
  width: auto;
  padding: 16px 32px;
}
.wiz-game #btn-score-continue:hover {
  background: #FF8800;
  box-shadow: 0 6px 24px rgba(255, 153, 0, 0.5);
}
.wiz-game .score-inner #btn-retry {
  width: auto;
  padding: 13px 32px;
}

.wiz-game .wiz-btn-secondary {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 13px 24px;
  background: transparent;
  color: var(--wiz-blue);
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  border: 2px solid var(--wiz-blue-pale);
  transition: background var(--transition-fast), border-color var(--transition-fast);
  margin-top: 10px;
}
.wiz-game .wiz-btn-secondary:hover { background: var(--wiz-blue-pale); border-color: var(--wiz-blue); }

.wiz-game .wiz-hidden { display: none !important; }

/* ── 5. SPLASH SCREEN ── */
.wiz-game .splash-inner {
  background: linear-gradient(160deg, var(--wiz-blue-pale) 0%, var(--white) 60%);
  gap: 0;
}
.wiz-game .splash-logo-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
  margin-top: 8px;
}
.wiz-game .splash-logo {
  width: 150px;
  height: auto;
  animation: wizLogoPulse 3s ease-in-out infinite;
  object-fit: contain;
}
.wiz-game .splash-illustration {
  display: flex;
  justify-content: center;
  margin-bottom: 12px;
}
.wiz-game .splash-text { text-align: center; margin-bottom: 18px; }
.wiz-game .splash-headline {
  font-size: clamp(1.6rem, 6vw, 2rem);
  font-weight: 900;
  color: var(--black);
  line-height: 1.2;
  margin-bottom: 10px;
  letter-spacing: -0.5px;
}
.wiz-game .splash-subline {
  font-size: 0.95rem;
  color: var(--gray-600);
  line-height: 1.5;
}
.wiz-game .splash-subline.splash-subtitle {
  font-weight: 800 !important;
  color: #1f2937;
  font-size: 1.1rem;
  margin-bottom: 16px;
}
.wiz-game .splash-subline.splash-subtitle strong {
  font-weight: 800;
}
.wiz-game .splash-score-preview {
  margin-top: 8px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.wiz-game .tier-preview-title {
  font-size: 0.9rem;
  color: var(--gray-700);
  margin: 0;
}
.wiz-game .tier-preview {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  font-size: 0.78rem;
  color: var(--gray-600);
  font-weight: 500;
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-full);
  padding: 8px 16px;
}
.wiz-game .tier-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  display: inline-block;
}
.wiz-game .tier-dot.bronze { background: var(--bronze); }
.wiz-game .tier-dot.silver { background: var(--silver); }
.wiz-game .tier-dot.gold { background: #FFD700; }
.wiz-game .tier-dot.legenda { background: linear-gradient(135deg, var(--wiz-teal), var(--wiz-lime)); }
.wiz-game .splash-disclaimer {
  text-align: center;
  font-size: 0.75rem;
  color: var(--gray-500);
  margin-bottom: 12px;
}
.wiz-game .splash-subline.splash-rules {
  text-align: center;
  font-size: 0.75rem;
  margin-top: 10px;
}

/* ── 6. QUIZ SCREEN ── */
.wiz-game .quiz-inner {
  padding: 20px 20px 24px;
  gap: 0;
}
.wiz-game .quiz-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}
.wiz-game .quiz-progress-wrap {
  flex: 1;
  min-width: 0;
}
.wiz-game .quiz-progress-track {
  height: 6px;
  background: var(--gray-200);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: 4px;
}
.wiz-game .quiz-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--wiz-blue), var(--wiz-blue-light));
  border-radius: var(--radius-full);
  transition: width 400ms ease;
  width: 0%;
}
.wiz-game .quiz-question-counter {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--gray-500);
}
.wiz-game .quiz-score-live {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--wiz-blue-pale);
  border-radius: var(--radius-md);
  padding: 6px 12px;
  min-width: 56px;
}
.wiz-game .quiz-score-live .score-label {
  font-size: 0.62rem;
  color: var(--wiz-blue);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.wiz-game .quiz-score-live .score-value {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--wiz-blue);
  line-height: 1;
}

.wiz-game .quiz-timer-wrap { position: relative; width: 48px; height: 48px; flex-shrink: 0; }
.wiz-game .timer-svg { transform: rotate(-90deg); }
.wiz-game .timer-track {
  stroke: var(--gray-200);
  stroke-width: 4;
  fill: none;
}
.wiz-game .timer-ring {
  stroke: var(--wiz-blue);
  stroke-width: 4;
  fill: none;
  stroke-linecap: round;
  stroke-dasharray: 125.6;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 1s linear, stroke 0.3s ease;
}
.wiz-game .timer-label {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--gray-700);
  line-height: 1;
}

.wiz-game .question-wrap { margin-bottom: 16px; }
.wiz-game .question-category {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--wiz-teal-dark);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 8px;
}
.wiz-game .question-text {
  font-size: clamp(1rem, 4vw, 1.15rem);
  font-weight: 700;
  color: var(--black);
  line-height: 1.4;
}

.wiz-game .options-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 12px;
}
.wiz-game .option-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px 16px;
  background: var(--white);
  border: 2px solid var(--gray-300);
  border-radius: var(--radius-md);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--black);
  text-align: left;
  transition: background var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
  cursor: pointer;
  min-height: 52px;
  position: relative;
  overflow: hidden;
}
.wiz-game .option-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: currentColor;
  opacity: 0;
  transition: opacity var(--transition-fast);
}
.wiz-game .option-btn:hover:not(:disabled) {
  border-color: var(--wiz-blue-light);
  background: var(--wiz-blue-pale);
  transform: translateX(3px);
}
.wiz-game .option-btn .option-letter {
  flex-shrink: 0;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--gray-100);
  color: var(--gray-600);
  font-size: 0.78rem;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transition-fast), color var(--transition-fast);
}
.wiz-game .option-btn.correct {
  background: var(--correct-bg);
  border-color: var(--correct);
  color: #005C3F;
}
.wiz-game .option-btn.correct .option-letter {
  background: var(--correct);
  color: white;
}
.wiz-game .option-btn.wrong {
  background: var(--wrong-bg);
  border-color: var(--wrong);
  color: var(--wrong);
}
.wiz-game .option-btn.wrong .option-letter {
  background: var(--wrong);
  color: white;
}
.wiz-game .option-btn.wiz-disabled { opacity: 0.55; cursor: default; transform: none; }
.wiz-game .option-btn.correct, .wiz-game .option-btn.wrong { opacity: 1 !important; }

/* Score delta floating animation */
.wiz-game .score-delta {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--correct);
  pointer-events: none;
  z-index: 999;
  animation: wizScoreDeltaFloat 1.1s ease-out forwards;
  text-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
@keyframes wizScoreDeltaFloat {
  0%   { opacity: 1; transform: translate(-50%, -50%) scale(1.2); }
  60%  { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, calc(-50% - 60px)) scale(0.9); }
}

/* Feedback banner */
.wiz-game .feedback-banner {
  position: fixed;
  bottom: 0; left: 50%;
  transform: translateX(-50%) translateY(100%);
  width: 100%;
  max-width: 100%;
  background: var(--white);
  border-top: 3px solid var(--correct);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  box-shadow: 0 -4px 24px rgba(0,0,0,0.12);
  z-index: 100;
  transition: transform 280ms cubic-bezier(0.34, 1.56, 0.64, 1);
  padding: 0;
}
.wiz-game .feedback-banner.wiz-show { transform: translateX(-50%) translateY(0); }
.wiz-game .feedback-banner.wrong-answer { border-top-color: var(--wrong); }
.wiz-game .feedback-inner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 20px 20px;
}
.wiz-game .feedback-icon {
  flex-shrink: 0;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--correct);
  color: white;
  font-size: 1rem;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.wiz-game .feedback-banner.wrong-answer .feedback-icon { background: var(--wrong); }
.wiz-game .feedback-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1 1 auto;
  min-width: 0;
  text-align: left;
}
.wiz-game .feedback-text strong {
  font-size: 0.9rem;
  color: var(--correct);
  font-weight: 700;
}
.wiz-game .feedback-banner.wrong-answer .feedback-text strong { color: var(--wrong); }
.wiz-game .feedback-text span {
  font-size: 0.82rem;
  color: var(--gray-700);
  line-height: 1.4;
  white-space: pre-line;
}

/* Timer pulse warning */
@keyframes wizTimerPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}
.wiz-game .quiz-timer-wrap.wiz-warning { animation: wizTimerPulse 0.5s ease-in-out infinite; }

/* ── 6b. MATCH QUESTION ── */
.wiz-game .match-container {
  display: flex;
  gap: 12px;
  width: 100%;
}
.wiz-game .match-terms, .wiz-game .match-definitions {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.wiz-game .match-term {
  padding: 12px 14px;
  background: var(--white);
  border: 2px solid var(--wiz-teal);
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--wiz-teal-dark);
  cursor: grab;
  user-select: none;
  touch-action: none;
  text-align: center;
  transition: opacity 0.2s, border-color 0.3s, background 0.3s;
}
.wiz-game .match-term:active { cursor: grabbing; }
.wiz-game .match-term.match-locked {
  cursor: default;
  opacity: 0.7;
}
.wiz-game .match-term.match-correct {
  background: var(--correct-bg);
  border-color: var(--correct);
  color: #005C3F;
  opacity: 1;
}
.wiz-game .match-term.match-dragging {
  position: fixed;
  z-index: 1000;
  pointer-events: none;
  box-shadow: var(--shadow-lg);
  opacity: 1 !important;
  transform-origin: center center;
}
.wiz-game .match-definition {
  padding: 12px 14px;
  background: var(--gray-50);
  border: 2px dashed var(--gray-300);
  border-radius: var(--radius-md);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--gray-700);
  text-align: center;
  transition: border-color 0.2s, background 0.2s;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.wiz-game .match-definition.match-hover {
  border-color: var(--wiz-teal);
  background: var(--wiz-teal-pale);
}
.wiz-game .match-definition.match-correct {
  background: var(--correct-bg);
  border-color: var(--correct);
  border-style: solid;
  color: #005C3F;
}
.wiz-game .match-definition.match-wrong {
  border-color: var(--wrong);
  background: var(--wrong-bg);
  animation: wizMatchShake 0.4s ease;
}
@keyframes wizMatchShake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-6px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(4px); }
}

/* ── 6c. SWIPE QUESTION ── */
.wiz-game .swipe-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 8px 0;
}
.wiz-game .swipe-indicators {
  display: flex;
  justify-content: space-between;
  width: 100%;
  padding: 0 4px;
}
.wiz-game .swipe-indicator {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.wiz-game .swipe-indicator.swipe-false { color: var(--wrong); }
.wiz-game .swipe-indicator.swipe-true { color: var(--correct); }
.wiz-game .swipe-card {
  width: 100%;
  max-width: 340px;
  background: var(--white);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  box-shadow: var(--shadow-md);
  cursor: grab;
  user-select: none;
  touch-action: pan-y;
  transition: transform 0.4s ease, opacity 0.4s ease, box-shadow 0.3s ease;
}
.wiz-game .swipe-card:active { cursor: grabbing; }
.wiz-game .swipe-statement {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--black);
  line-height: 1.5;
  text-align: center;
}
.wiz-game .swipe-btn-row {
  display: flex;
  gap: 12px;
  width: 100%;
}
.wiz-game .swipe-btn {
  flex: 1;
  padding: 12px 16px;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--transition-fast), transform var(--transition-fast);
}
.wiz-game .swipe-btn-false {
  background: var(--wrong-bg);
  color: var(--wrong);
  border: 2px solid var(--wrong);
}
.wiz-game .swipe-btn-false:hover { background: var(--wrong); color: white; }
.wiz-game .swipe-btn-true {
  background: var(--correct-bg);
  color: var(--correct);
  border: 2px solid var(--correct);
}
.wiz-game .swipe-btn-true:hover { background: var(--correct); color: white; }

/* ── 7. SCRATCH CARD SCREEN ── */
.wiz-game .scratch-inner {
  align-items: center;
  text-align: center;
  background: linear-gradient(160deg, var(--wiz-lime-pale) 0%, var(--white) 50%);
}
.wiz-game .scratch-headline {
  font-size: clamp(1.2rem, 5vw, 1.5rem);
  font-weight: 800;
  color: var(--black);
  line-height: 1.3;
  margin-bottom: 8px;
}
.wiz-game .scratch-subline {
  font-size: 0.88rem;
  color: var(--gray-600);
  margin-bottom: 24px;
}
.wiz-game .scratch-card-wrap {
  position: relative;
  width: 300px;
  height: 200px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  margin: 0 auto 16px;
  flex-shrink: 0;
}
.wiz-game .scratch-reveal {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--wiz-teal-pale) 0%, var(--wiz-lime-pale) 100%);
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-lg);
}
.wiz-game .reveal-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.wiz-game .reveal-icon { font-size: 2.5rem; animation: wizRevealPop 0.5s ease; }
.wiz-game .reveal-label { font-size: 0.8rem; font-weight: 700; color: var(--gray-600); text-transform: uppercase; letter-spacing: 1px; }
.wiz-game .reveal-prize {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--wiz-blue);
  letter-spacing: -0.5px;
}
.wiz-game .scratch-canvas {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  border-radius: var(--radius-lg);
  cursor: crosshair;
  touch-action: none;
}
.wiz-game .scratch-progress-wrap { margin-bottom: 8px; }
.wiz-game .scratch-progress-text {
  font-size: 0.8rem;
  color: var(--gray-500);
  font-weight: 500;
}
.wiz-game .scratch-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--gray-600);
  margin-bottom: 20px;
  animation: wizHintBounce 2s ease-in-out infinite;
}
@keyframes wizHintBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}
.wiz-game .scratch-inner .wiz-btn-primary { margin-top: 0; }

@keyframes wizRevealPop {
  0% { transform: scale(0.5); opacity: 0; }
  80% { transform: scale(1.15); }
  100% { transform: scale(1); opacity: 1; }
}

/* ── 8. SCORE REVEAL SCREEN ── */
.wiz-game .score-inner {
  align-items: center;
  text-align: center;
  background: linear-gradient(160deg, var(--wiz-blue-pale) 0%, var(--white) 55%);
}
.wiz-game .score-label-top {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}
.wiz-game .score-display-wrap {
  display: flex;
  align-items: baseline;
  gap: 8px;
  justify-content: center;
  margin-bottom: 24px;
}
.wiz-game .score-display {
  font-size: clamp(3.5rem, 16vw, 5rem);
  font-weight: 900;
  color: var(--wiz-blue);
  letter-spacing: -2px;
  line-height: 1;
}
.wiz-game .score-display-wrap .score-unit {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--gray-500);
}
.wiz-game .score-display-wrap .score-max {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--gray-500);
  margin-right: 2px;
}
.wiz-game .correct-count {
  font-size: 1rem;
  font-weight: 700;
  color: var(--gray-700);
  margin: -8px 0 16px;
  text-align: center;
}
.wiz-game .prizes-list {
  width: 100%;
  box-sizing: border-box;
  background: var(--gray-50);
  border: 1.5px solid #f5d76e;
  border-radius: var(--radius-md);
  padding: 14px 18px;
  margin-top: 4px;
  margin-bottom: 20px;
  text-align: left;
}
.wiz-game .prizes-title {
  font-size: 0.95rem;
  margin: 0 0 8px;
  color: #5a4500;
  text-align: left;
}
.wiz-game .prizes-items {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.9rem;
  color: var(--gray-800);
  line-height: 1.4;
  text-align: left;
}
.wiz-game .tier-reveal { width: 100%; margin-bottom: 20px; }
.wiz-game .tier-badge-wrap { margin-bottom: 12px; }
.wiz-game .tier-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--radius-full);
  font-size: 1rem;
  font-weight: 800;
  animation: wizBadgePop 400ms cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  transform: scale(0);
  opacity: 0;
}
.wiz-game .tier-badge.tier-bronze { background: var(--bronze-bg); color: var(--bronze); border: 2px solid var(--bronze); }
.wiz-game .tier-badge.tier-silver { background: var(--silver-bg); color: var(--silver); border: 2px solid var(--silver); }
.wiz-game .tier-badge.tier-gold   { background: var(--gold-bg); color: var(--gold); border: 2px solid #FFD700; }
.wiz-game .tier-badge.tier-legenda {
  background: linear-gradient(135deg, var(--wiz-teal), var(--wiz-lime));
  color: var(--wiz-dark);
  border: none;
  box-shadow: 0 4px 20px rgba(0,180,196,0.4);
  animation: wizBadgePop 400ms cubic-bezier(0.34, 1.56, 0.64, 1) forwards,
             wizLegendaShimmer 2s ease-in-out 500ms infinite;
}
@keyframes wizBadgePop {
  0%   { transform: scale(0); opacity: 0; }
  70%  { transform: scale(1.12); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}
@keyframes wizLegendaShimmer {
  0%, 100% { box-shadow: 0 4px 20px rgba(0,180,196,0.5); }
  50%       { box-shadow: 0 4px 30px rgba(200,212,0,0.5); }
}
.wiz-game .tier-prize-text {
  font-size: 0.9rem;
  color: var(--gray-700);
  line-height: 1.5;
  padding: 0 8px;
}
.wiz-game .score-breakdown {
  width: 100%;
  background: var(--gray-50);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.wiz-game .breakdown-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
  color: var(--gray-700);
}
.wiz-game .breakdown-row span:last-child { font-weight: 700; color: var(--wiz-blue); }

/* ── 9. LEAD FORM SCREEN ── */
.wiz-game .form-inner { gap: 0; }
.wiz-game .form-header { margin-bottom: 20px; }
.wiz-game .form-headline {
  font-size: clamp(1.1rem, 5vw, 1.35rem);
  font-weight: 800;
  color: var(--black);
  line-height: 1.3;
  margin-bottom: 10px;
}
.wiz-game .form-tier-badge {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gray-600);
}
.wiz-game #lead-form { display: flex; flex-direction: column; gap: 14px; }
.wiz-game .wiz-form-row { display: flex; gap: 12px; }
.wiz-game .wiz-form-row .wiz-form-group { flex: 1; min-width: 0; }
.wiz-game .wiz-form-group { display: flex; flex-direction: column; gap: 4px; }
.wiz-game .wiz-form-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gray-700);
}
.wiz-game .wiz-required { color: var(--wiz-pink); }
.wiz-game .wiz-form-input {
  width: 100%;
  padding: 13px 14px;
  border: 2px solid var(--gray-300);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  color: var(--black);
  background: var(--white);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  outline: none;
}
.wiz-game .wiz-form-input::placeholder { color: var(--gray-400); }
.wiz-game .wiz-form-input:focus-visible {
  border-color: var(--wiz-blue);
  box-shadow: 0 0 0 3px rgba(0,61,165,0.1);
}
.wiz-game.wiz-keyboard .wiz-form-input:focus-visible {
  outline: 3px solid #000;
  outline-offset: 0;
}
.wiz-game .wiz-form-input.wiz-error {
  border-color: var(--wiz-pink);
  box-shadow: 0 0 0 3px rgba(232,0,61,0.1);
}
.wiz-game .wiz-form-error {
  font-size: 0.75rem;
  color: var(--wiz-pink);
  font-weight: 500;
  min-height: 16px;
  display: block;
}

.wiz-game .checkboxes-wrap { display: flex; flex-direction: column; gap: 14px; margin-top: 2px; }
.wiz-game .checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
}
.wiz-game .checkbox-label input[type="checkbox"] { position: absolute; opacity: 0; width: 0; height: 0; }
.wiz-game .checkbox-custom {
  flex-shrink: 0;
  width: 22px; height: 22px;
  border-radius: 5px;
  border: 2px solid var(--gray-300);
  background: var(--white);
  display: flex; align-items: center; justify-content: center;
  transition: border-color var(--transition-fast), background var(--transition-fast);
  margin-top: 1px;
}
.wiz-game .checkbox-label input:checked + .checkbox-custom {
  background: var(--wiz-blue);
  border-color: var(--wiz-blue);
}
.wiz-game .checkbox-label input:checked + .checkbox-custom::after {
  content: '';
  width: 5px; height: 9px;
  border: 2.5px solid white;
  border-top: none;
  border-left: none;
  transform: rotate(45deg) translate(-1px, -1px);
  display: block;
}
.wiz-game .checkbox-text {
  font-size: 0.8rem;
  color: var(--gray-700);
  line-height: 1.5;
}
.wiz-game .checkbox-text a { color: var(--wiz-blue); font-weight: 600; }
.wiz-game .checkbox-text em { color: var(--gray-500); font-style: normal; }
.wiz-game .checkbox-label.wiz-error .checkbox-custom { border-color: var(--wiz-pink); }

.wiz-game .wiz-btn-submit { margin-top: 6px; position: relative; }
.wiz-game .wiz-btn-spinner {
  width: 18px; height: 18px;
  border: 2.5px solid rgba(255,255,255,0.4);
  border-top-color: white;
  border-radius: 50%;
  animation: wizSpin 0.7s linear infinite;
}
@keyframes wizSpin { to { transform: rotate(360deg); } }

.wiz-game .form-privacy-note {
  font-size: 0.72rem;
  color: var(--gray-500);
  text-align: center;
  line-height: 1.4;
  margin-top: 8px;
}

.wiz-game .wiz-toast {
  position: fixed;
  bottom: 20px; left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--gray-800);
  color: white;
  padding: 12px 20px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s;
  white-space: nowrap;
}
.wiz-game .wiz-toast.wiz-show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.wiz-game .wiz-toast.wiz-error { background: var(--wrong); }

/* ── 10. THANK YOU SCREEN ── */
.wiz-game .thankyou-inner {
  align-items: center;
  text-align: center;
  background: linear-gradient(160deg, var(--wiz-blue-pale) 0%, var(--white) 60%);
}
.wiz-game .checkmark-wrap {
  margin: 10px auto 20px;
  width: 80px; height: 80px;
}
.wiz-game .checkmark-svg { width: 80px; height: 80px; }
.wiz-game .checkmark-circle {
  stroke: var(--correct);
  stroke-width: 4;
  fill: none;
  stroke-dasharray: 226;
  stroke-dashoffset: 226;
  animation: wizDrawCircle 0.6s ease 0.2s forwards;
}
.wiz-game .checkmark-path {
  stroke: var(--correct);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  stroke-dasharray: 50;
  stroke-dashoffset: 50;
  animation: wizDrawCheck 0.4s ease 0.8s forwards;
}
@keyframes wizDrawCircle { to { stroke-dashoffset: 0; } }
@keyframes wizDrawCheck  { to { stroke-dashoffset: 0; } }

.wiz-game .thankyou-headline {
  font-size: clamp(1.6rem, 7vw, 2.2rem);
  font-weight: 900;
  color: var(--black);
  margin-bottom: 6px;
}
.wiz-game .thankyou-tier {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--wiz-blue);
  margin-bottom: 14px;
}
.wiz-game .thankyou-body {
  font-size: 0.9rem;
  color: var(--gray-600);
  line-height: 1.6;
  margin-bottom: 28px;
  max-width: 300px;
}
.wiz-game .btn-wiz-link { margin-bottom: 0; text-decoration: none; }
.wiz-game .thankyou-tier-badge {
  margin-top: 20px;
  font-size: 0.82rem;
  color: var(--gray-500);
}

/* ── 11. FROG MASCOT ── */
.wiz-game .frog-mascot {
  display: block;
  width: 140px;
  height: auto;
  margin: 0 auto;
  filter: drop-shadow(0 8px 20px rgba(0,0,0,0.15));
}
.wiz-game .frog-mascot.frog-hero {
  width: 180px;
  animation: wizFrogBounce 3s ease-in-out infinite;
}
.wiz-game .frog-mascot.frog-sm {
  width: 80px;
  position: absolute;
  bottom: -10px;
  right: -10px;
}
.wiz-game .frog-mascot.frog-score {
  width: 110px;
  animation: wizFrogBounce 2s ease-in-out infinite;
  margin-bottom: 4px;
}
.wiz-game .frog-feedback-wrap {
  display: flex;
  align-items: center;
  gap: 0;
}
.wiz-game .frog-mascot.frog-correct {
  width: 52px;
  flex-shrink: 0;
  animation: wizFrogBounce 0.6s ease-in-out 2;
}
.wiz-game .frog-mascot.frog-wrong {
  width: 52px;
  flex-shrink: 0;
  transform: rotate(-15deg);
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.1)) grayscale(0.3);
}
@keyframes wizFrogBounce {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  30%       { transform: translateY(-8px) rotate(-2deg); }
  60%       { transform: translateY(-4px) rotate(1deg); }
}
@keyframes wizFrogWiggle {
  0%, 100% { transform: rotate(-5deg); }
  50%       { transform: rotate(5deg); }
}

/* ── 12. SHARED KEYFRAMES ── */
@keyframes wizLogoPulse {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.04); }
}

/* ── 13. RESPONSIVE TWEAKS ── */
@media (max-width: 360px) {
  .wiz-game .screen-inner { padding: 22px 18px 30px; }
  .wiz-game .quiz-inner { padding: 16px 16px 20px; }
  .wiz-game .wiz-form-row { flex-direction: column; gap: 14px; }
  .wiz-game .scratch-card-wrap { width: 270px; height: 180px; }
}

@media (min-height: 700px) {
  .wiz-game .splash-inner { padding-top: 36px; padding-bottom: 40px; }
}

/* ── 14. DESKTOP LAYOUT (≥768px) ── */
@media (min-width: 768px) {
  .wiz-game {
    max-width: 860px;
    border-radius: 0;
    margin: 0 auto;
  }
  .wiz-game .screen-inner {
    padding: 32px 48px 36px;
    min-height: 100svh;
  }
  .wiz-game .splash-logo { width: 180px; }
  .wiz-game .frog-mascot.frog-hero { width: 200px; }
  .wiz-game .splash-headline { font-size: 2.2rem; }
  .wiz-game .splash-subline { font-size: 1.05rem; }
  .wiz-game .tier-preview { font-size: 0.85rem; padding: 10px 20px; gap: 10px; }
  .wiz-game .quiz-inner { padding: 28px 36px 32px; }
  .wiz-game .options-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .wiz-game .option-btn { padding: 16px 18px; font-size: 0.95rem; }
  .wiz-game .question-text { font-size: 1.2rem; }
  .wiz-game .feedback-banner { max-width: 860px; }
  .wiz-game .scratch-card-wrap { width: 400px; height: 240px; }
  .wiz-game .scratch-headline { font-size: 1.5rem; }
  .wiz-game .score-display { font-size: 5rem; }
  .wiz-game .frog-mascot.frog-score { width: 130px; }
  .wiz-game .tier-badge { padding: 12px 28px; font-size: 1.1rem; }
  .wiz-game .tier-prize-text { font-size: 1rem; }
  .wiz-game .score-breakdown { padding: 18px 24px; }
  .wiz-game .form-headline { font-size: 1.4rem; }
  .wiz-game .wiz-form-row { flex-direction: row; gap: 16px; }
  .wiz-game .wiz-form-input { padding: 14px 16px; font-size: 1rem; }
  .wiz-game .wiz-btn-submit { font-size: 1.05rem; padding: 18px 28px; }
  .wiz-game .thankyou-headline { font-size: 2.2rem; }
  .wiz-game .thankyou-body { max-width: 420px; font-size: 1rem; }
  .wiz-game .match-container { gap: 16px; }
  .wiz-game .match-term { font-size: 0.9rem; padding: 14px 16px; }
  .wiz-game .match-definition { font-size: 0.88rem; padding: 14px 16px; }
  .wiz-game .swipe-card { max-width: 400px; padding: 40px 32px; }
  .wiz-game .swipe-statement { font-size: 1.15rem; }
  .wiz-game .swipe-btn { padding: 14px 20px; font-size: 0.95rem; }
}

/* ── ACCESSIBILITY: KEYBOARD FOCUS ── */
/* Suppress default outlines — restored below only for keyboard users */
.wiz-game button:focus,
.wiz-game a:focus,
.wiz-game input:focus,
.wiz-game select:focus { outline: none; }

/* Show outlines only when keyboard navigation is active (.wiz-keyboard set by JS) */
.wiz-game.wiz-keyboard .wiz-btn-primary:focus,
.wiz-game.wiz-keyboard .wiz-btn-secondary:focus,
.wiz-game.wiz-keyboard .option-btn:focus,
.wiz-game.wiz-keyboard .swipe-btn:focus,
.wiz-game.wiz-keyboard .swipe-btn-false:focus,
.wiz-game.wiz-keyboard .swipe-btn-true:focus,
.wiz-game.wiz-keyboard .match-term:focus,
.wiz-game.wiz-keyboard a:focus {
  outline: 3px solid #000;
  outline-offset: 2px;
}
.wiz-game.wiz-keyboard .wiz-form-input:focus {
  outline: 3px solid #000;
  outline-offset: 0;
}
.wiz-game.wiz-keyboard .checkbox-label input:focus + .checkbox-custom {
  outline: 3px solid #000;
  outline-offset: 2px;
}
