/*
  11+ Verbal Reasoning: The Codebreaker
  Styles & Design System
*/

@font-face {
  font-family: 'Fredoka';
  font-style: normal;
  font-weight: 300;
  font-stretch: normal;
  font-display: swap;
  src: url('../fonts/fredoka-300.ttf') format('truetype');
}
@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: 500;
  font-stretch: normal;
  font-display: swap;
  src: url('../fonts/fredoka-500.ttf') format('truetype');
}
@font-face {
  font-family: 'Fredoka';
  font-style: normal;
  font-weight: 600;
  font-stretch: normal;
  font-display: swap;
  src: url('../fonts/fredoka-600.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;
  
  /* Spy / Detective Color Palette */
  --bg-gradient: linear-gradient(135deg, #1b0a2a 0%, #30104c 100%);
  --panel-bg: rgba(25, 10, 45, 0.85);
  --panel-border: rgba(142, 68, 173, 0.4);
  
  --primary: #8e44ad; /* Magical Purple */
  --primary-hover: #9b59b6;
  --accent-cyan: #00f5d4; /* Neon Spy Cyan */
  --accent-pink: #ff007f; /* Neon Target Pink */
  
  --success: #2ecc71;
  --danger: #e74c3c;
  --text-dark: #f5f6fa;
  --text-light: #ffffff;
  --text-muted: #bdc3c7;
  
  /* Shadows & Radius */
  --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.15);
  --shadow-md: 0 10px 25px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 20px 40px rgba(0, 245, 212, 0.15);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 12px;
  
  /* Transitions */
  --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;
}

html {
  scrollbar-gutter: stable;
}

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(--accent-cyan);
  text-shadow: 0 0 12px rgba(0, 245, 212, 0.4);
  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;
  backdrop-filter: blur(10px);
}

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: 600;
  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 0 15px rgba(142, 68, 173, 0.5);
  transform: scale(1.05);
}

nav button:hover:not(.active) {
  background: rgba(142, 68, 173, 0.2);
  color: var(--accent-cyan);
}

/* Star/Streak Dashboard */
.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: 600;
}

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

.star-count {
  color: #f1c40f;
  font-weight: 700;
  text-shadow: 0 0 8px rgba(241, 196, 15, 0.3);
}

.streak-count {
  color: var(--accent-pink);
  font-weight: 700;
  text-shadow: 0 0 8px rgba(255, 0, 127, 0.3);
}

/* Main Content Area */
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);
  backdrop-filter: blur(10px);
  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.05rem;
  line-height: 1.5;
  max-width: 600px;
}

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

.explore-safe-interface {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(0, 0, 0, 0.25);
  border: 3px solid var(--accent-cyan);
  border-radius: var(--radius-lg);
  padding: 2rem;
  width: 100%;
  max-width: 480px;
  box-shadow: inset 0 0 20px rgba(0, 245, 212, 0.1), var(--shadow-md);
}

.explore-safe-dial {
  font-size: 5rem;
  margin-bottom: 1rem;
  animation: float 4s ease-in-out infinite;
}

.explore-controls-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  margin-bottom: 1.5rem;
}

.word-input-box {
  flex: 2;
  background: #1b0a2a;
  border: 2px solid var(--panel-border);
  color: var(--text-light);
  font-family: var(--font-main);
  font-size: 1.5rem;
  font-weight: 700;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  text-align: center;
  letter-spacing: 2px;
  outline: none;
  transition: border-color 0.2s;
}

.word-input-box:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 10px rgba(0, 245, 212, 0.2);
}

.shift-selector-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.shift-selector-wrapper label {
  font-size: 0.85rem;
  color: var(--accent-cyan);
  font-weight: 600;
  text-transform: uppercase;
}

.shift-dropdown {
  background: #1b0a2a;
  border: 2px solid var(--panel-border);
  color: var(--accent-cyan);
  font-family: var(--font-main);
  font-size: 1.25rem;
  font-weight: 700;
  padding: 0.75rem;
  border-radius: var(--radius-sm);
  outline: none;
  cursor: pointer;
  text-align: center;
}

.explore-result-display {
  width: 100%;
  background: rgba(0, 245, 212, 0.08);
  border: 2px dashed var(--accent-cyan);
  border-radius: var(--radius-md);
  padding: 1.2rem;
  text-align: center;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--accent-cyan);
  letter-spacing: 4px;
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 15px rgba(0, 245, 212, 0.05);
}

.explore-result-display span.empty-placeholder {
  font-size: 1.1rem;
  color: var(--text-muted);
  letter-spacing: 0;
  font-weight: 500;
}

.explore-letter-breakdown {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
  width: 100%;
}

.explore-letter-breakdown span {
  background: rgba(142, 68, 173, 0.15);
  border: 1px solid var(--panel-border);
  color: var(--text-light);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.3rem 0.6rem;
  border-radius: 20px;
}

/* MASCOT COMPONENT */
.speech-bubble-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  width: 100%;
  max-width: 500px;
  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: 600;
  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: var(--accent-cyan);
}

.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 4s ease-in-out infinite;
}

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

.voice-btn {
  background: rgba(0, 245, 212, 0.1);
  color: var(--accent-cyan);
  border: 2px solid var(--accent-cyan);
  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(--accent-cyan);
  color: #1b0a2a;
  box-shadow: 0 0 10px rgba(0, 245, 212, 0.3);
}

.voice-btn:active {
  transform: scale(0.95);
}

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

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

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

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

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

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

.timer-box {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(231, 76, 60, 0.15);
  border: 2px solid var(--danger);
  color: var(--danger);
  font-weight: 700;
  font-size: 1.1rem;
  padding: 0.4rem 0.8rem;
  border-radius: 30px;
}

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

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

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

.highlight-code {
  display: inline-block;
  background: rgba(0, 0, 0, 0.3);
  color: var(--accent-pink);
  font-size: 1.8rem;
  font-weight: 700;
  padding: 0.3rem 1rem;
  border-radius: 8px;
  margin-top: 0.5rem;
  border: 1px solid var(--panel-border);
  text-shadow: 0 0 8px rgba(255, 0, 127, 0.2);
}

.highlight-key {
  font-size: 1.1rem;
  color: var(--text-light);
  line-height: 1.5;
}

.alphabet-guide-bar {
  width: 100%;
  max-width: 600px;
  background: rgba(0, 0, 0, 0.2);
  border: 2px dashed var(--panel-border);
  border-radius: var(--radius-sm);
  padding: 0.8rem;
  text-align: center;
  font-size: 0.85rem;
  letter-spacing: 2px;
  font-weight: 600;
  color: var(--accent-cyan);
  margin: 0.5rem 0;
}

/* INPUT DISPLAY */
.input-readout-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
  width: 100%;
}

.code-display-box {
  width: 100%;
  max-width: 400px;
  background: rgba(0, 0, 0, 0.3);
  border: 3px solid var(--panel-border);
  border-radius: var(--radius-md);
  padding: 1rem;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--accent-cyan);
  text-align: center;
  letter-spacing: 3px;
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-shadow: 0 0 10px rgba(0, 245, 212, 0.3);
  box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.4);
}

.code-display-box.empty {
  color: var(--text-muted);
  font-size: 1.25rem;
  letter-spacing: 0;
  font-weight: 500;
}

/* KEYPAD GRIDS */
.keypad-wrapper {
  width: 100%;
  max-width: 480px;
  margin: 0.5rem auto;
}

.keypad-grid-letters {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.keypad-grid-numbers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
  margin-bottom: 0.5rem;
}

.keypad-action-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.key-btn {
  background: var(--panel-bg);
  border: 2px solid var(--panel-border);
  color: var(--text-light);
  font-family: var(--font-main);
  font-size: 1.4rem;
  font-weight: 700;
  padding: 0.75rem 0.2rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition-bounce);
  user-select: none;
  box-shadow: 0 4px 0 var(--panel-border);
}

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

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

.key-btn.action-clear {
  border-color: #d35400;
  box-shadow: 0 4px 0 #933c04;
}
.key-btn.action-clear:hover {
  background: #e67e22;
  box-shadow: 0 4px 0 #d35400;
}
.key-btn.action-back {
  border-color: #7f8c8d;
  box-shadow: 0 4px 0 #5c6768;
}
.key-btn.action-back:hover {
  background: #95a5a6;
  box-shadow: 0 4px 0 #7f8c8d;
}

.submit-btn-row {
  width: 100%;
  max-width: 400px;
  margin-top: 0.5rem;
}

.btn-primary {
  width: 100%;
  background: var(--accent-cyan);
  color: #1b0a2a;
  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 #02cca0;
  transition: var(--transition-bounce);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 0 #02cca0, 0 0 15px rgba(0, 245, 212, 0.4);
}

.btn-primary:active {
  transform: translateY(2px);
  box-shadow: 0 0px 0 #02cca0;
}

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

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

.sticker-shop-card {
  background: var(--panel-bg);
  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(--accent-cyan);
  background: rgba(0, 245, 212, 0.03);
  transform: rotate(var(--sticker-rotation, 0deg));
}

.sticker-shop-card.unlocked:hover {
  transform: scale(1.05) rotate(0deg);
  border-color: var(--accent-cyan);
  box-shadow: 0 10px 20px rgba(0, 245, 212, 0.15);
}

.sticker-wrapper {
  width: 85px;
  height: 85px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.25);
  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(--accent-cyan);
  box-shadow: 0 0 10px rgba(0, 245, 212, 0.2);
}

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

.locked-badge {
  font-size: 2.2rem;
  opacity: 0.45;
}

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

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

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

.buy-btn {
  background: #2c3e50;
  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: #f1c40f;
  color: #1b0a2a;
  cursor: pointer;
  box-shadow: 0 3px 0 #b7950b;
  transition: var(--transition-bounce);
}

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

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

/* 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: rgba(0, 0, 0, 0.2);
  padding: 1rem 1.5rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--panel-border);
}

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

.difficulty-dropdown {
  background: #1b0a2a;
  border: 2px solid var(--panel-border);
  color: var(--text-light);
  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;
}

.difficulty-dropdown:focus {
  border-color: var(--accent-cyan);
}

.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.3rem;
  margin-bottom: 0.5rem;
}

.parents-warning-card p {
  font-size: 0.95rem;
  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;
}

/* MODAL OVERLAYS */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(12, 6, 22, 0.85);
  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: #1b0a2a;
  border: 3px solid var(--panel-border);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  width: 100%;
  max-width: 480px;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.8);
  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.8rem;
  font-weight: 700;
  color: var(--accent-cyan);
  margin-bottom: 0.75rem;
}

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

.modal-desc strong {
  color: var(--accent-pink);
}

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

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

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

/* Parent switch component */
.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: #34495e;
  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:focus + .slider {
  box-shadow: 0 0 1px var(--success);
}

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

/* 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); }
}

/* Inline Styles Removal CSS Rules */
.btn-explore-launch {
  max-width: 320px;
  margin-top: 1rem;
}

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

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

.alphabet-guide-bar {
  display: none;
}

#keypad-letters {
  display: grid;
}

#keypad-numbers {
  display: none;
}

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

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

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

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

.w-full {
  width: 100%;
}

.spaced-code {
  letter-spacing: 6px;
}

.parents-warning-card {
  margin-top: 1rem;
  padding: 1.5rem;
}
