/*
  11+ & KS2 Fractions Bakery
  Styles & Design System
*/

@font-face {
  font-family: 'Fredoka';
  font-style: normal;
  font-weight: 400;
  font-stretch: normal;
  font-display: swap;
  src: url('../fonts/fredoka-400.ttf') format('truetype');
}
@font-face {
  font-family: 'Fredoka';
  font-style: normal;
  font-weight: 700;
  font-stretch: normal;
  font-display: swap;
  src: url('../fonts/fredoka-700.ttf') format('truetype');
}

:root {
  --font-main: 'Fredoka', system-ui, -apple-system, sans-serif;
  
  /* Bakery Cozy Pastel Palette */
  --bg-gradient: linear-gradient(135deg, #fffcf0 0%, #fef3e2 100%);
  --panel-bg: rgba(255, 255, 255, 0.9);
  --panel-border: #f0d5b9;
  
  --primary: #ff5e7e; /* Strawberry pink */
  --primary-hover: #ff7693;
  --accent-cream: #fbf6f0;
  --accent-chocolate: #4a2c11; /* Text color */
  --accent-gold: #f1c40f;
  
  --success: #2ecc71;
  --danger: #e74c3c;
  --text-dark: #4a2c11;
  --text-light: #ffffff;
  --text-muted: #8e7a68;
  
  /* Layout Shadows & Radius */
  --shadow-sm: 0 4px 6px rgba(74, 44, 17, 0.08);
  --shadow-md: 0 10px 25px rgba(74, 44, 17, 0.12);
  --shadow-lg: 0 20px 40px rgba(255, 94, 126, 0.15);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 12px;
  
  --transition-bounce: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  --transition-smooth: all 0.2s ease;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-main);
  background: var(--bg-gradient);
  background-attachment: fixed;
  color: var(--text-dark);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  overflow-x: hidden;
  padding: 1rem;
}

/* Header Dashboard */
header {
  width: 100%;
  max-width: 900px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1rem;
}

.logo-icon {
  font-size: 3rem;
  animation: float 3.5s ease-in-out infinite;
}

h1 {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--primary);
  text-shadow: 0 0 10px rgba(255, 94, 126, 0.15);
  letter-spacing: 0.5px;
}

nav {
  display: flex;
  background: var(--panel-bg);
  padding: 0.5rem;
  border-radius: 50px;
  box-shadow: var(--shadow-md);
  border: 2px solid var(--panel-border);
  gap: 0.5rem;
  width: 100%;
  max-width: 600px;
}

nav button {
  flex: 1;
  border: none;
  background: transparent;
  padding: 0.75rem 0.5rem;
  border-radius: 50px;
  font-family: var(--font-main);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition-bounce);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

nav button.active {
  background: var(--primary);
  color: var(--text-light);
  box-shadow: 0 5px 15px rgba(255, 94, 126, 0.3);
  transform: scale(1.05);
}

nav button:hover:not(.active) {
  background: rgba(255, 94, 126, 0.1);
  color: var(--primary);
}

/* Star/Streak stats wrapper */
.progress-bar-container {
  display: flex;
  gap: 1.5rem;
  background: var(--panel-bg);
  padding: 0.5rem 1.5rem;
  border-radius: 30px;
  box-shadow: var(--shadow-sm);
  border: 2px solid var(--panel-border);
  font-size: 1.1rem;
}

.progress-stat {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 700;
}

.stat-icon {
  font-size: 1.3rem;
}

.star-count {
  color: #e67e22; /* warm gold */
}

.streak-count {
  color: var(--primary);
}

/* Main layouts container */
main {
  width: 100%;
  max-width: 900px;
  flex-grow: 1;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  margin-bottom: 2rem;
}

.screen {
  width: 100%;
  display: none;
  animation: slideIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.1) forwards;
}

.screen.active {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.card {
  background: var(--panel-bg);
  border: 2px solid var(--panel-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-md);
  width: 100%;
}

/* EXPLORE SCREEN */
.welcome-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.75rem;
}

.welcome-card p {
  color: var(--text-muted);
  font-size: 1.1rem;
  line-height: 1.6;
  max-width: 650px;
}

.explore-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  margin-top: 1rem;
  width: 100%;
}

.explore-workspace {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2.5rem;
  width: 100%;
}

.visual-render-box {
  background: white;
  border: 3px solid var(--panel-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  flex: 1;
  min-width: 280px;
  max-width: 360px;
}

.visual-render-box h3 {
  font-size: 1.25rem;
  color: var(--text-muted);
  font-weight: 700;
}

/* SVG Styling rules */
svg {
  display: block;
}

.pizza-plate {
  fill: #e8dbcd;
  stroke: #d0c0ad;
  stroke-width: 2;
}

.pizza-slice {
  fill: #f5e3a8; /* Dough crust color */
  stroke: #4a2c11; /* dark outlines */
  stroke-width: 2.5;
  cursor: pointer;
  transition: fill 0.2s, transform 0.2s;
  transform-origin: 150px 150px;
}

.pizza-slice.selected {
  fill: #ff7979; /* Red tomato sauce / pepperoni color */
}

.pizza-slice.interactive-slice:hover {
  transform: scale(1.03);
  fill: #ffd2d2;
}

.pizza-slice.interactive-slice.selected:hover {
  fill: #ff5252;
}

.bar-frame {
  fill: #fffdf5;
  stroke: #4a2c11;
  stroke-width: 3;
  rx: 8px;
  ry: 8px;
}

.bar-segment {
  fill: #fff2cc;
  stroke: #4a2c11;
  stroke-width: 2;
  cursor: pointer;
  transition: fill 0.2s;
}

.bar-segment.selected {
  fill: var(--primary);
}

.bar-segment.interactive-segment:hover {
  fill: #ffe3e8;
}

.bar-segment.interactive-segment.selected:hover {
  fill: var(--primary-hover);
}

/* Sliders row styles */
.slider-control-card {
  width: 100%;
  max-width: 500px;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.slider-row {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.slider-label {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  font-size: 1.1rem;
}

.val-bubble {
  color: var(--primary);
  font-size: 1.2rem;
}

input[type="range"] {
  -webkit-appearance: none;
  width: 100%;
  height: 10px;
  background: var(--panel-border);
  border-radius: 5px;
  outline: none;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--primary);
  border: 3px solid white;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  transition: transform 0.1s;
}

input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

/* MASCOT DIALOGUE */
.speech-bubble-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  width: 100%;
  max-width: 550px;
  margin: 0 auto;
}

.speech-bubble {
  background: var(--primary);
  color: var(--text-light);
  border-radius: var(--radius-md);
  padding: 1.2rem 1.8rem;
  font-size: 1.25rem;
  font-weight: 700;
  text-align: center;
  box-shadow: var(--shadow-md);
  position: relative;
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1.5;
  border: 2px solid var(--panel-border);
}

.speech-bubble strong {
  color: #fff2cc;
}

.speech-bubble:after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  border-top: 12px solid var(--primary);
}

.speech-bubble-border {
  position: absolute;
  bottom: -14px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 13px solid transparent;
  border-right: 13px solid transparent;
  border-top: 13px solid var(--panel-border);
  z-index: -1;
}

.mascot-row {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-top: 1.2rem;
}

.mascot-character {
  font-size: 3.5rem;
  cursor: pointer;
  transition: transform 0.2s;
  animation: bounceSlow 4.5s ease-in-out infinite;
}

.mascot-character:hover {
  transform: scale(1.1) rotate(5deg);
}

.voice-btn {
  background: rgba(255, 94, 126, 0.15);
  color: var(--primary);
  border: 2px solid var(--primary);
  font-family: var(--font-main);
  font-size: 1rem;
  font-weight: 700;
  padding: 0.6rem 1.2rem;
  border-radius: 30px;
  cursor: pointer;
  transition: var(--transition-bounce);
}

.voice-btn:hover {
  background: var(--primary);
  color: white;
  box-shadow: 0 5px 10px rgba(255, 94, 126, 0.2);
}

/* QUIZ SCREEN */
.quiz-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin-bottom: 1.2rem;
}

.progress-tracker {
  display: flex;
  gap: 0.5rem;
}

.tracker-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #ecd5bd;
  border: 2px solid var(--panel-border);
  transition: var(--transition-smooth);
}

.tracker-dot.active {
  background: var(--primary);
  box-shadow: 0 0 8px var(--primary);
  transform: scale(1.2);
}

.tracker-dot.correct {
  background: var(--success);
  border-color: var(--success);
}

.tracker-dot.incorrect {
  background: var(--danger);
  border-color: var(--danger);
}

.quiz-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
  padding: 1.5rem;
  min-height: 120px;
  justify-content: center;
}

.quiz-prompt-text {
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.6;
}

.quiz-prompt-text strong {
  color: var(--primary);
}

.prompt-instruction {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 700;
  margin-top: 0.5rem;
  text-transform: uppercase;
}

/* Fractions layout formulas */
.fraction-display {
  display: inline-flex;
  flex-direction: column;
  vertical-align: middle;
  align-items: center;
  font-size: 1.8rem;
  font-weight: 700;
  margin: 0 0.4rem;
}

.fraction-display sup {
  border-bottom: 3.5px solid var(--text-dark);
  padding: 0 6px 1px 6px;
  line-height: 1;
  font-size: 1.5rem;
}

.fraction-display sub {
  padding: 1px 6px 0 6px;
  line-height: 1;
  font-size: 1.5rem;
}

.equiv-eq-box {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.75rem;
}

.equals-sign {
  font-size: 2.2rem;
  margin: 0 0.8rem;
  color: var(--text-dark);
}

.missing-val {
  color: var(--primary);
  font-size: 1.6rem;
  font-weight: 700;
  border-bottom: 3.5px dashed var(--primary) !important;
}

/* QUIZ VISUAL AREA (Cookies / Scales) */
.quiz-visual-render-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 1.5rem 0;
  min-height: 180px;
}

/* Cookie sheet styling */
.quiz-cookies-grid {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  width: 100%;
  max-width: 550px;
}

.cookie-plate {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  background: rgba(255, 255, 255, 0.7);
  border: 3px dashed var(--panel-border);
  border-radius: var(--radius-md);
  padding: 0.6rem;
  min-width: 80px;
  gap: 0.4rem;
  box-shadow: var(--shadow-sm);
}

.cookie-item {
  font-size: 2.2rem;
  cursor: pointer;
  user-select: none;
  transition: transform 0.2s, opacity 0.2s;
}

.cookie-item:hover {
  transform: scale(1.15) rotate(10deg);
}

.cookie-item.eaten {
  opacity: 0.15;
  transform: scale(0.85);
  pointer-events: none; /* Can eat only once */
}

/* NUMBER KEYPAD */
.quiz-input-readout-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
  width: 100%;
}

.quiz-keypad-wrapper {
  width: 100%;
  max-width: 360px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  margin: 0 auto;
}

.readout-box {
  width: 100%;
  background: white;
  border: 3.5px solid var(--panel-border);
  border-radius: var(--radius-md);
  padding: 0.8rem;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--primary);
  text-align: center;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 2px 6px rgba(74, 44, 17, 0.05);
  box-sizing: border-box;
}

.readout-box.empty {
  color: var(--text-muted);
  font-size: 1.35rem;
  font-weight: 500;
}

.keypad-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
  width: 100%;
  margin-top: 0.4rem;
  box-sizing: border-box;
}

.key-btn {
  background: white;
  border: 3.5px solid var(--panel-border);
  color: var(--accent-chocolate);
  font-family: var(--font-main);
  font-size: 1.8rem;
  font-weight: 700;
  padding: 0.8rem 0;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition-bounce);
  user-select: none;
  box-shadow: 0 6px 0 var(--panel-border);
  display: flex;
  align-items: center;
  justify-content: center;
}

.key-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
  box-shadow: 0 6px 0 var(--primary-hover);
  transform: translateY(-2px);
}

.key-btn:active {
  transform: translateY(4px);
  box-shadow: 0 2px 0 var(--primary-hover);
}

.key-btn.action-clear {
  border-color: #f39c12;
  box-shadow: 0 6px 0 #d35400;
}
.key-btn.action-clear:hover {
  background: #e67e22;
  border-color: #e67e22;
  box-shadow: 0 6px 0 #d35400;
  color: white;
}

.key-btn.action-back {
  border-color: #bdc3c7;
  box-shadow: 0 6px 0 #7f8c8d;
}
.key-btn.action-back:hover {
  background: #95a5a6;
  border-color: #95a5a6;
  box-shadow: 0 6px 0 #7f8c8d;
  color: white;
}

.btn-primary {
  width: 100%;
  background: var(--primary);
  color: white;
  border: none;
  font-family: var(--font-main);
  font-size: 1.4rem;
  font-weight: 700;
  padding: 0.9rem;
  border-radius: 50px;
  cursor: pointer;
  box-shadow: 0 5px 0 var(--primary-hover);
  transition: var(--transition-bounce);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 0 var(--primary-hover), 0 0 15px rgba(255, 94, 126, 0.25);
}

.btn-primary:active {
  transform: translateY(2px);
  box-shadow: 0 0px 0 var(--primary-hover);
}

/* STICKER SHOP / ALBUM */
.sticker-book-intro {
  text-align: center;
  color: var(--text-muted);
  line-height: 1.6;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.sticker-shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1.5rem;
  width: 100%;
  padding: 0.5rem 0;
}

.sticker-shop-card {
  background: white;
  border: 2px solid var(--panel-border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-bounce);
  position: relative;
}

.sticker-shop-card.unlocked {
  border-color: var(--primary);
  background: rgba(255, 94, 126, 0.02);
  transform: rotate(var(--sticker-rotation, 0deg));
}

.sticker-shop-card.unlocked:hover {
  transform: scale(1.05) rotate(0deg);
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.sticker-wrapper {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--accent-cream);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px dashed var(--panel-border);
}

.sticker-shop-card.unlocked .sticker-wrapper {
  background: #ffffff;
  border: 2px solid var(--primary);
}

.sticker-badge {
  font-size: 3rem;
  user-select: none;
}

.locked-badge {
  font-size: 2rem;
  opacity: 0.4;
}

.sticker-info h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.25rem;
}

.sticker-info p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.cost-stat {
  font-weight: 700;
  color: #d35400;
}

.buy-btn {
  background: #ecd5bd;
  color: var(--text-muted);
  border: none;
  font-family: var(--font-main);
  font-size: 0.95rem;
  font-weight: 700;
  padding: 0.5rem 1.2rem;
  border-radius: 30px;
  cursor: not-allowed;
  margin-top: 0.8rem;
  width: 100%;
}

.buy-btn.affordable {
  background: var(--accent-gold);
  color: var(--text-dark);
  cursor: pointer;
  box-shadow: 0 3px 0 #d4ac0d;
  transition: var(--transition-bounce);
}

.buy-btn.affordable:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 0 #d4ac0d;
}

.buy-btn.affordable:active {
  transform: translateY(1px);
  box-shadow: 0 0px 0 #d4ac0d;
}

/* PARENTS PANEL */
.settings-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 100%;
  max-width: 550px;
  margin: 0 auto;
}

.setting-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: white;
  padding: 1rem 1.5rem;
  border-radius: var(--radius-sm);
  border: 2px solid var(--panel-border);
}

.setting-row span {
  font-size: 1.15rem;
  font-weight: 700;
}

.difficulty-dropdown {
  background: white;
  border: 2px solid var(--panel-border);
  color: var(--text-dark);
  font-family: var(--font-main);
  font-size: 1.05rem;
  font-weight: 700;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  outline: none;
  cursor: pointer;
}

.parents-warning-card {
  border-color: rgba(231, 76, 60, 0.4);
  background: rgba(231, 76, 60, 0.05);
}

.parents-warning-card h2 {
  color: var(--danger);
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
}

.parents-warning-card p {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 1.2rem;
}

.reset-btn {
  background: var(--danger);
  color: white;
  border: none;
  font-family: var(--font-main);
  font-size: 1.05rem;
  font-weight: 700;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  box-shadow: 0 4px 0 #c0392b;
  transition: var(--transition-bounce);
}

.reset-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 0 #c0392b;
}

.reset-btn:active {
  transform: translateY(2px);
  box-shadow: 0 0px 0 #c0392b;
}

/* OVERLAYS & MODALS */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(74, 44, 17, 0.4);
  backdrop-filter: blur(4px);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  z-index: 100;
  transition: opacity 0.3s ease;
  padding: 1rem;
}

.overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal {
  background: #fffdf5;
  border: 4px solid var(--panel-border);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  width: 100%;
  max-width: 460px;
  box-shadow: 0 25px 50px -12px rgba(74,44,17,0.25);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  animation: bounceIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.modal-mascot {
  font-size: 4.5rem;
  margin-bottom: 1rem;
  animation: float 3s ease-in-out infinite;
}

.modal-title {
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.modal-desc {
  font-size: 1.1rem;
  color: var(--text-dark);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.modal-stars {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: #d35400;
  background: rgba(241, 196, 15, 0.15);
  padding: 0.5rem 1.5rem;
  border-radius: 30px;
  border: 2px dashed var(--accent-gold);
  margin-bottom: 2rem;
}

.confirm-modal-buttons {
  display: flex;
  gap: 1rem;
  width: 100%;
}

.confirm-modal-buttons button {
  flex: 1;
}

/* Switch elements styling */
.switch {
  position: relative;
  display: inline-block;
  width: 56px;
  height: 30px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ecd5bd;
  transition: .4s;
  border-radius: 34px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 22px;
  width: 22px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: var(--success);
}

input:checked + .slider:before {
  transform: translateX(26px);
}

/* Specific CSS utility helpers */
.btn-explore-launch {
  max-width: 320px;
  margin-top: 1.5rem;
}

#quiz-question-number {
  font-weight: 700;
  color: var(--primary);
}

#quiz-timer-box {
  display: none;
}

#quiz-alphabet-clue {
  display: none;
}

#keypad-letters {
  display: none;
}

#keypad-numbers {
  display: grid;
}

#summary-feedback {
  font-weight: 700;
}

.section-title {
  text-align: center;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.section-title.large-gap {
  margin-bottom: 1.5rem;
}

.text-danger {
  color: var(--danger) !important;
}

.w-full {
  width: 100%;
}

/* Animations */
@keyframes slideIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes bounceSlow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes bounceIn {
  from { opacity: 0; transform: scale(0.3); }
  50% { opacity: 1; transform: scale(1.05); }
  70% { transform: scale(0.9); }
  to { transform: scale(1); }
}

/* INTERACTIVE PIZZA SLICER FOR EQUIVALENT FRACTIONS */
.pizza-slicer-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  background: var(--accent-cream);
  border: 2.5px solid var(--panel-border);
  border-radius: 30px;
  padding: 0.4rem 1.2rem;
  margin-top: 1rem;
  box-shadow: var(--shadow-sm);
}

.pizza-slicer-controls .control-label {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.slice-control-btn {
  background: white;
  border: 2px solid var(--panel-border);
  font-size: 1rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 0 var(--panel-border);
  transition: var(--transition-bounce);
}

.slice-control-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
  box-shadow: 0 2px 0 var(--primary-hover);
  transform: scale(1.05);
}

.slice-control-btn:active {
  transform: translateY(2px);
  box-shadow: 0 0px 0 var(--primary-hover);
}

.slice-count-display {
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--primary);
  min-width: 85px;
  text-align: center;
}
