/* Szorzótábla page */
.szt-page { max-width: 960px; margin: 0 auto; }
.szt-hero { text-align: center; padding: 48px 20px; }
.szt-hero h1 { margin-bottom: 8px; }
.szt-hero p { color: var(--muted); margin-bottom: 24px; }

.szt-results { padding: 20px 0; }
.szt-heatmap-section { margin-bottom: 28px; max-width: 400px; }
.szt-heatmap-title { font-size: 14px; font-weight: 700; margin-bottom: 10px; color: var(--saffron); }
.szt-heatmap-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-bottom: 10px;
  font-size: 10px;
  color: var(--muted);
}
.szt-legend-item { display: inline-flex; align-items: center; gap: 5px; }
.szt-swatch {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  border: 1px solid rgba(0, 0, 0, 0.25);
}
.szt-swatch-1 { background: #ffdc00; }
.szt-swatch-2 { background: #ff8c00; }
.szt-swatch-3 { background: #e63214; }
.szt-swatch-4 { background: #9a1414; }
.szt-heatmap-layout {
  display: grid;
  grid-template-columns: 28px 1fr;
  grid-template-rows: auto 1fr;
  column-gap: 8px;
  row-gap: 3px;
}
.szt-heatmap-corner { grid-column: 1; grid-row: 1; }
.szt-heatmap-col-labels {
  grid-column: 2;
  grid-row: 1;
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 3px;
}
.szt-heatmap-col-labels span {
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
}
.szt-heatmap-row-labels {
  grid-column: 1;
  grid-row: 2;
  display: grid;
  grid-template-rows: repeat(8, 1fr);
  gap: 3px;
  width: 28px;
}
.szt-heatmap-row-labels span {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
}
.szt-heatmap-grid-wrap {
  grid-column: 2;
  grid-row: 2;
  position: relative;
  aspect-ratio: 1;
  width: 100%;
  border-radius: 6px;
  overflow: hidden;
}
.szt-heatmap-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.szt-heatmap-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  grid-template-rows: repeat(8, 1fr);
  width: 100%;
  height: 100%;
  gap: 0;
}
.szt-heatmap-cell {
  position: relative;
  aspect-ratio: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(7px, 1.8vw, 10px);
  font-weight: 700;
  color: rgba(255, 255, 255, 0.82);
  text-shadow: 0 0 3px rgba(0, 0, 0, 0.9), 0 1px 2px rgba(0, 0, 0, 0.8);
  border: 1px solid rgba(0, 0, 0, 0.3);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  background: transparent;
  pointer-events: auto;
}
/* Yellow / orange → black labels; red / dark red → white */
.szt-heatmap-cell.szt-cell-tone-dark {
  color: rgba(12, 12, 16, 0.92);
  text-shadow: 0 0 2px rgba(255, 255, 255, 0.45), 0 1px 1px rgba(255, 255, 255, 0.25);
}
.szt-heatmap-cell.szt-cell-tone-light {
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 0 3px rgba(0, 0, 0, 0.9), 0 1px 2px rgba(0, 0, 0, 0.75);
}
.szt-heatmap-cell.szt-cell-tone-none {
  color: rgba(200, 200, 210, 0.55);
  text-shadow: none;
}

.szt-timeline-video-wrap {
  max-width: 420px;
  margin: 0 auto;
}
.szt-timeline-video {
  display: block;
  width: 100%;
  border-radius: 8px;
  background: #16161e;
  border: 1px solid var(--border);
}
.szt-timeline-date { font-weight: 700; font-size: 15px; margin-bottom: 12px; }
.szt-timeline-controls { display: flex; align-items: center; gap: 12px; margin-top: 14px; flex-wrap: wrap; }
.szt-timeline-slider { flex: 1; min-width: 120px; accent-color: var(--saffron); }
.szt-timeline-play {
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--border2); background: rgba(201,168,76,.15);
  color: var(--saffron); cursor: pointer; font-size: 16px;
}
.szt-timeline-play:hover { background: rgba(201,168,76,.28); }

.szt-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 24px; }
.szt-progress-info { text-align: center; color: var(--muted); font-size: 13px; margin-top: 12px; }

/* Quiz overlay extensions — visibility from style.css .quiz-screen.open only */
.szt-quiz-screen.open {
  flex-direction: column;
}

.szt-quiz-screen:not(.open) #sztAnswerView,
.szt-quiz-screen:not(.open) #sztQuizResult {
  display: none !important;
}

.szt-audio-status {
  margin: 0 0 12px;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid var(--border2);
  background: rgba(201, 168, 76, 0.1);
  color: var(--saffron);
  font-size: 14px;
  line-height: 1.4;
  text-align: center;
}

.szt-quiz-screen .quiz-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  width: 100%;
  padding: 0;
  overflow: hidden;
}

.szt-quiz-scroll {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 12px 16px 8px;
}

.szt-quiz-stage {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  gap: 8px;
}

.szt-exercise-area {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px 0;
  container-type: size;
  container-name: szt-exercise;
}

.szt-exercise-question {
  width: 100%;
  height: 100%;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  white-space: nowrap;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  line-height: 1.05;
  color: var(--gold-light);
  letter-spacing: 0.02em;
  font-size: clamp(52px, min(24vw, 32vh), 120px);
}

@container szt-exercise (min-height: 60px) {
  .szt-exercise-question {
    font-size: min(26cqw, 78cqh, 120px);
  }
}

/* Verbal mode — instruction text, not multiplication */
.szt-quiz-screen.szt-mode-verbal .szt-exercise-question {
  font-family: inherit;
  font-size: clamp(20px, 5vw, 28px);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: normal;
  white-space: normal;
}

.szt-answer-strip {
  flex-shrink: 0;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 12px;
  width: 100%;
}

.szt-answer-field {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: stretch;
}

.szt-quiz-screen .quiz-answer-row,
.szt-answer-field .quiz-input-wrap {
  width: 100%;
  max-width: none;
  margin: 0;
  flex: 1;
  display: flex;
}

.szt-answer-field .quiz-input-wrap input {
  width: 100%;
  flex: 1;
}

.szt-sand-clock {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px 12px;
  background: rgba(201,168,76,.08);
  border: 1px solid var(--border2);
  border-radius: 14px;
  min-width: 96px;
}

/* Practice mode — maximize exercise + answer strip */
.szt-quiz-screen.szt-mode-practice .szt-quiz-scroll {
  padding: 10px 14px 6px;
}

.szt-quiz-screen.szt-mode-practice .szt-audio-status {
  flex-shrink: 0;
  margin: 0;
}

.szt-quiz-screen.szt-mode-practice .szt-exercise-area {
  flex: 1;
  padding: 0;
}

.szt-quiz-screen.szt-mode-practice .szt-answer-strip {
  gap: 14px;
  min-height: 96px;
}

.szt-quiz-screen.szt-mode-practice .szt-sand-clock {
  min-width: 108px;
  padding: 12px 14px;
}

.szt-quiz-screen.szt-mode-practice .szt-hourglass {
  width: 64px;
  height: 96px;
  margin-bottom: 6px;
}

.szt-quiz-screen.szt-mode-practice .szt-sand-clock-time {
  font-size: 20px;
}

.szt-quiz-screen.szt-mode-practice .szt-answer-field .quiz-input-wrap input {
  font-size: clamp(32px, 9vw, 48px);
  font-weight: 700;
  padding: 14px 18px;
  min-height: 88px;
  border-radius: 14px;
  text-align: center;
}

/* Test mode — maximize question area */
.szt-quiz-screen:not(.szt-mode-practice):not(.szt-mode-verbal) .szt-exercise-area {
  padding: 0;
}

/* Test mode — answer strip below question */
.szt-quiz-screen:not(.szt-mode-practice) .szt-answer-strip {
  flex-direction: column;
  align-items: center;
}

.szt-quiz-screen:not(.szt-mode-practice) .szt-answer-field {
  width: 100%;
  max-width: 400px;
}

.szt-hourglass {
  width: 56px;
  height: 84px;
  margin: 0 auto 8px;
}

.szt-hourglass-svg {
  width: 100%;
  height: 100%;
  display: block;
}

.szt-hg-glass {
  fill: none;
  stroke: var(--saffron);
  stroke-width: 2;
  opacity: 0.85;
}

.szt-hg-sand-top,
.szt-hg-sand-bottom {
  fill: var(--gold-light);
}

.szt-hg-stream {
  stroke: var(--gold-light);
  stroke-width: 2;
  stroke-linecap: round;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.szt-sand-clock.urgent .szt-hg-glass { stroke: #e74c3c; }
.szt-sand-clock.urgent .szt-hg-sand-top,
.szt-sand-clock.urgent .szt-hg-sand-bottom { fill: #e8a090; }
.szt-sand-clock.running .szt-hg-stream { opacity: 1; }

.szt-sand-clock-time {
  font-family: 'JetBrains Mono', monospace;
  font-size: 22px;
  font-weight: 700;
  color: var(--saffron);
}

.szt-sand-clock.urgent .szt-sand-clock-time {
  color: #e74c3c;
  animation: sztPulse .6s ease infinite;
}

.szt-sand-clock-label { font-size: 11px; color: var(--muted); margin-top: 4px; }
@keyframes sztPulse { 50% { opacity: .6; } }

/* Custom numpad — tall layout, Kész column right of 3/6/9 */
.szt-numpad {
  flex-shrink: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(4, minmax(72px, 1fr));
  gap: 6px;
  min-height: min(42vh, 360px);
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: rgba(14, 14, 14, 0.98);
  border-top: 1px solid var(--border);
  width: 100%;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  position: relative;
  z-index: 5;
}

.szt-key {
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
  font-size: clamp(24px, 6vw, 30px);
  font-weight: 600;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  min-height: 72px;
  position: relative;
  z-index: 1;
}

.szt-key.pressed,
.szt-key:active {
  background: rgba(201, 168, 76, 0.45);
  transform: scale(0.97);
}

.szt-key[data-digit="1"] { grid-column: 1; grid-row: 1; }
.szt-key[data-digit="2"] { grid-column: 2; grid-row: 1; }
.szt-key[data-digit="3"] { grid-column: 3; grid-row: 1; }
.szt-key[data-digit="4"] { grid-column: 1; grid-row: 2; }
.szt-key[data-digit="5"] { grid-column: 2; grid-row: 2; }
.szt-key[data-digit="6"] { grid-column: 3; grid-row: 2; }
.szt-key[data-digit="7"] { grid-column: 1; grid-row: 3; }
.szt-key[data-digit="8"] { grid-column: 2; grid-row: 3; }
.szt-key[data-digit="9"] { grid-column: 3; grid-row: 3; }
.szt-key-del { grid-column: 3; grid-row: 4; font-size: 22px; }
.szt-key-replay { grid-column: 1; grid-row: 4; font-size: 26px; }
.szt-key[data-digit="0"] { grid-column: 2; grid-row: 4; }
.szt-key-done {
  grid-column: 4;
  grid-row: 1 / -1;
  background: linear-gradient(160deg, var(--saffron), var(--gold-light));
  color: var(--on-accent);
  font-size: clamp(18px, 4.5vw, 22px);
  font-weight: 700;
  letter-spacing: 0.06em;
  border-radius: 12px;
}

.szt-key-done.pressed,
.szt-key-done:active {
  filter: brightness(1.12);
  transform: scale(0.98);
}

.szt-numpad.no-replay .szt-key-replay { display: none; }
.szt-numpad.no-replay .szt-key[data-digit="0"] { grid-column: 1 / 3; grid-row: 4; }

.szt-verbal-hint { color: var(--muted); font-style: italic; font-size: 14px; margin-top: 8px; }

.szt-session-timer {
  position: absolute;
  top: 16px;
  right: 16px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 22px;
  font-weight: 700;
  color: var(--saffron);
  z-index: 2;
  padding: 8px 14px;
  background: rgba(201,168,76,.12);
  border: 1px solid var(--border2);
  border-radius: 10px;
}

.szt-review-list { margin: 20px 0; max-height: 50vh; overflow-y: auto; }

.szt-legend { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 10px; font-size: 11px; }
.szt-legend span { display: flex; align-items: center; gap: 4px; }
.szt-legend i { width: 12px; height: 12px; border-radius: 2px; display: inline-block; }

/* Fullscreen correct/wrong feedback */
.szt-feedback-overlay {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s ease, visibility 0.15s ease;
}
.szt-feedback-overlay.show {
  opacity: 1;
  visibility: visible;
}
.szt-feedback-overlay.correct {
  background: radial-gradient(circle at center, rgba(46, 204, 113, 0.35) 0%, rgba(10, 10, 10, 0.88) 70%);
}
.szt-feedback-overlay.wrong {
  background: radial-gradient(circle at center, rgba(231, 76, 60, 0.35) 0%, rgba(10, 10, 10, 0.9) 70%);
}
.szt-feedback-burst {
  position: absolute;
  width: 40vmin;
  height: 40vmin;
  border-radius: 50%;
  opacity: 0;
  transform: scale(0.3);
}
.szt-feedback-overlay.show .szt-feedback-burst {
  animation: sztBurst 0.7s ease-out forwards;
}
.szt-feedback-overlay.correct .szt-feedback-burst {
  background: radial-gradient(circle, rgba(46, 204, 113, 0.5) 0%, transparent 70%);
  box-shadow: 0 0 80px rgba(46, 204, 113, 0.4);
}
.szt-feedback-overlay.wrong .szt-feedback-burst {
  background: radial-gradient(circle, rgba(231, 76, 60, 0.45) 0%, transparent 70%);
  box-shadow: 0 0 60px rgba(231, 76, 60, 0.35);
}
.szt-feedback-icon {
  font-size: clamp(64px, 18vw, 120px);
  line-height: 1;
  transform: scale(0.5);
  opacity: 0;
  z-index: 1;
}
.szt-feedback-overlay.show .szt-feedback-icon {
  animation: sztPopIcon 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) 0.05s forwards;
}
.szt-feedback-text {
  margin-top: 16px;
  font-size: clamp(22px, 5vw, 32px);
  font-weight: 700;
  letter-spacing: 0.04em;
  opacity: 0;
  transform: translateY(12px);
  z-index: 1;
}
.szt-feedback-overlay.show .szt-feedback-text {
  animation: sztSlideText 0.4s ease 0.15s forwards;
}
.szt-feedback-overlay.correct .szt-feedback-text { color: #2ecc71; }
.szt-feedback-overlay.wrong .szt-feedback-text { color: #e74c3c; }

/* Wrong-answer dog video */
.szt-feedback-overlay.wrong-video {
  pointer-events: auto;
  background: rgba(8, 8, 10, 0.94);
  backdrop-filter: blur(8px);
}
.szt-feedback-overlay.wrong-video .szt-feedback-burst,
.szt-feedback-overlay.wrong-video .szt-feedback-icon,
.szt-feedback-overlay.wrong-video .szt-feedback-text {
  display: none;
}
.szt-dog-video-wrap {
  display: none;
  z-index: 2;
  padding: 16px;
}
.szt-feedback-overlay.wrong-video .szt-dog-video-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
}
.szt-dog-video-frame {
  position: relative;
  padding: 10px;
  border-radius: 6px;
  background:
    linear-gradient(135deg, #e8c96a 0%, #c9a84c 22%, #8b6914 50%, #c9a84c 78%, #e8c96a 100%);
  box-shadow:
    0 0 0 2px rgba(201, 168, 76, 0.45),
    0 0 40px rgba(201, 168, 76, 0.35),
    0 24px 80px rgba(0, 0, 0, 0.65);
  animation: sztDogFrameIn 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  transform: scale(0.82);
  opacity: 0;
}
.szt-dog-video-frame::before,
.szt-dog-video-frame::after {
  content: '';
  position: absolute;
  width: 28px;
  height: 28px;
  border: 3px solid rgba(255, 235, 170, 0.9);
  pointer-events: none;
}
.szt-dog-video-frame::before {
  top: 6px;
  left: 6px;
  border-right: none;
  border-bottom: none;
  border-radius: 4px 0 0 0;
}
.szt-dog-video-frame::after {
  bottom: 6px;
  right: 6px;
  border-left: none;
  border-top: none;
  border-radius: 0 0 4px 0;
}
.szt-dog-video {
  display: block;
  width: min(82vw, 400px);
  max-height: min(68vh, 520px);
  border-radius: 3px;
  background: #000;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.5);
  object-fit: contain;
}

@keyframes sztDogFrameIn {
  to { opacity: 1; transform: scale(1); }
}

/* Group-complete level-up celebration */
.szt-feedback-overlay.level-up {
  pointer-events: auto;
  background: radial-gradient(circle at center, rgba(201, 168, 76, 0.22) 0%, rgba(6, 6, 8, 0.96) 65%);
  backdrop-filter: blur(10px);
}
.szt-feedback-overlay.level-up .szt-feedback-burst,
.szt-feedback-overlay.level-up .szt-feedback-icon,
.szt-feedback-overlay.level-up .szt-feedback-text,
.szt-feedback-overlay.level-up .szt-dog-video-wrap {
  display: none;
}
.szt-levelup-wrap {
  display: none;
  position: relative;
  z-index: 2;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}
.szt-feedback-overlay.level-up .szt-levelup-wrap:not(.szt-clever-wrap) {
  display: flex;
}
.szt-feedback-overlay.level-up.clever .szt-levelup-wrap:not(.szt-clever-wrap) {
  display: none;
}
.szt-feedback-overlay.level-up.clever .szt-clever-wrap {
  display: flex;
}
.szt-levelup-rays {
  position: absolute;
  width: 120vmin;
  height: 120vmin;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    rgba(201, 168, 76, 0.14) 18deg,
    transparent 36deg,
    rgba(232, 201, 106, 0.1) 54deg,
    transparent 72deg,
    rgba(201, 168, 76, 0.16) 90deg,
    transparent 108deg,
    rgba(232, 201, 106, 0.12) 126deg,
    transparent 144deg
  );
  animation: sztLevelUpSpin 4s linear infinite;
  opacity: 0;
}
.szt-feedback-overlay.level-up .szt-levelup-rays {
  animation: sztLevelUpSpin 4s linear infinite, sztLevelUpFadeIn 0.5s ease forwards;
}
.szt-levelup-ring {
  position: absolute;
  width: 52vmin;
  height: 52vmin;
  border-radius: 50%;
  border: 2px solid rgba(201, 168, 76, 0.35);
  box-shadow: 0 0 60px rgba(201, 168, 76, 0.25), inset 0 0 40px rgba(201, 168, 76, 0.08);
  transform: scale(0.4);
  opacity: 0;
}
.szt-feedback-overlay.level-up .szt-levelup-ring {
  animation: sztLevelUpRing 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.1s forwards;
}
.szt-levelup-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.szt-levelup-particle {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 8px;
  height: 8px;
  margin: -4px 0 0 -4px;
  border-radius: 50%;
  background: var(--saffron, #c9a84c);
  box-shadow: 0 0 10px rgba(201, 168, 76, 0.8);
  opacity: 0;
  animation: sztLevelUpParticle 1.4s ease-out forwards;
}
.szt-levelup-particle.spark {
  width: 4px;
  height: 14px;
  margin: -7px 0 0 -2px;
  border-radius: 2px;
  background: linear-gradient(180deg, #fff6d0, var(--saffron, #c9a84c));
}
.szt-levelup-card {
  position: relative;
  text-align: center;
  padding: 36px 44px 32px;
  min-width: min(88vw, 360px);
  border-radius: 16px;
  background: linear-gradient(160deg, rgba(28, 24, 16, 0.95) 0%, rgba(12, 11, 10, 0.98) 100%);
  border: 2px solid rgba(201, 168, 76, 0.55);
  box-shadow:
    0 0 0 1px rgba(255, 235, 170, 0.12),
    0 0 80px rgba(201, 168, 76, 0.35),
    0 30px 100px rgba(0, 0, 0, 0.65);
  transform: scale(0.55) translateY(40px);
  opacity: 0;
}
.szt-feedback-overlay.level-up .szt-levelup-card {
  animation: sztLevelUpCard 0.75s cubic-bezier(0.34, 1.56, 0.64, 1) 0.15s forwards;
}
.szt-levelup-star {
  font-size: clamp(40px, 10vw, 56px);
  color: var(--saffron, #c9a84c);
  text-shadow: 0 0 24px rgba(201, 168, 76, 0.8);
  line-height: 1;
  margin-bottom: 8px;
  animation: sztLevelUpStar 1.2s ease-in-out 0.5s infinite alternate;
}
.szt-levelup-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(32px, 8vw, 48px);
  font-weight: 700;
  letter-spacing: 0.06em;
  background: linear-gradient(135deg, #fff6d0 0%, #e8c96a 40%, #c9a84c 70%, #fff6d0 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: sztLevelUpShimmer 2s linear infinite;
}
.szt-levelup-group {
  margin-top: 12px;
  font-size: clamp(20px, 5vw, 26px);
  font-weight: 600;
  color: #f0e6c8;
  letter-spacing: 0.03em;
}
.szt-levelup-sub {
  margin-top: 8px;
  font-size: 14px;
  color: var(--muted, #9a9588);
}
.szt-levelup-bar {
  margin-top: 20px;
  height: 6px;
  border-radius: 3px;
  background: rgba(201, 168, 76, 0.15);
  overflow: hidden;
}
.szt-levelup-bar-fill {
  height: 100%;
  width: 0;
  border-radius: 3px;
  background: linear-gradient(90deg, #8b6914, #e8c96a, #c9a84c);
  box-shadow: 0 0 12px rgba(201, 168, 76, 0.6);
}
.szt-feedback-overlay.level-up .szt-levelup-bar-fill {
  animation: sztLevelUpBar 1.1s cubic-bezier(0.22, 1, 0.36, 1) 0.55s forwards;
}

@keyframes sztLevelUpSpin {
  to { transform: rotate(360deg); }
}
@keyframes sztLevelUpFadeIn {
  to { opacity: 1; }
}
@keyframes sztLevelUpRing {
  0% { opacity: 0; transform: scale(0.4); }
  60% { opacity: 1; }
  100% { opacity: 0.6; transform: scale(1.15); }
}
@keyframes sztLevelUpCard {
  0% { opacity: 0; transform: scale(0.55) translateY(40px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}
@keyframes sztLevelUpStar {
  from { transform: scale(1) rotate(-4deg); }
  to { transform: scale(1.12) rotate(4deg); }
}
@keyframes sztLevelUpShimmer {
  to { background-position: 200% center; }
}
@keyframes sztLevelUpBar {
  to { width: var(--szt-levelup-pct, 100%); }
}

.szt-clever-wrap {
  display: none;
  position: relative;
  z-index: 3;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}
.szt-clever-card {
  min-width: min(90vw, 420px);
}
.szt-clever-title {
  font-size: clamp(26px, 6.5vw, 40px) !important;
}
.szt-clever-levelup {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin: 28px 8px 8px;
  width: min(78vw, 320px);
  margin-left: auto;
  margin-right: auto;
}
.szt-clever-node {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 20px;
  font-weight: 700;
  color: #f0e6c8;
  background: rgba(28, 24, 16, 0.95);
  border: 2px solid rgba(201, 168, 76, 0.55);
  box-shadow: 0 0 16px rgba(201, 168, 76, 0.25);
  z-index: 1;
}
.szt-clever-node-new {
  opacity: 0.45;
  border-color: rgba(201, 168, 76, 0.28);
  box-shadow: none;
  transform: scale(0.92);
  transition: opacity 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease, transform 0.35s ease;
}
.szt-clever-node-new.lit {
  opacity: 1;
  border-color: rgba(232, 201, 106, 0.9);
  box-shadow: 0 0 22px rgba(201, 168, 76, 0.65);
  transform: scale(1.06);
  color: #fff6d0;
}
.szt-clever-bridge {
  position: relative;
  flex: 1 1 auto;
  height: 4px;
  margin: 0 2px;
  min-width: 72px;
}
.szt-clever-bridge-bg {
  position: absolute;
  inset: 0;
  border-radius: 2px;
  background: rgba(201, 168, 76, 0.18);
}
.szt-clever-bridge-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0;
  border-radius: 2px;
  background: linear-gradient(90deg, #8b6914, #e8c96a, #c9a84c);
  box-shadow: 0 0 12px rgba(201, 168, 76, 0.55);
}
@keyframes sztLevelUpParticle {
  0% { opacity: 1; transform: translate(0, 0) scale(1); }
  100% { opacity: 0; transform: translate(var(--tx, 0), var(--ty, -80px)) scale(0.2); }
}

@keyframes sztBurst {
  0% { opacity: 0.8; transform: scale(0.3); }
  100% { opacity: 0; transform: scale(2.2); }
}
@keyframes sztPopIcon {
  0% { opacity: 0; transform: scale(0.4); }
  70% { opacity: 1; transform: scale(1.08); }
  100% { opacity: 1; transform: scale(1); }
}
@keyframes sztSlideText {
  to { opacity: 1; transform: translateY(0); }
}

@media (min-width: 769px) {
  .szt-quiz-stage {
    max-width: 900px;
  }
  .szt-exercise-question {
    font-size: clamp(72px, min(14vw, 22vh), 148px);
  }
  @container szt-exercise (min-height: 80px) {
    .szt-exercise-question {
      font-size: min(18cqw, 82cqh, 148px);
    }
  }
  .szt-quiz-screen.szt-mode-verbal .szt-exercise-question {
    font-size: clamp(22px, 2.8vw, 30px);
  }
  .szt-numpad {
    max-width: 400px;
    min-height: 340px;
    margin: 0 auto 12px;
    border-radius: 14px;
    border: 1px solid var(--border);
    grid-template-rows: repeat(4, minmax(64px, 1fr));
  }
}
