/* 
  Magic Math Adventure - Design System and Styles
  Tailored for a 7-year-old: rounded fonts, warm pastel gradients, bubble animations, and giant friendly buttons.
*/

@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;
  
  /* Color Palette */
  --bg-gradient: linear-gradient(135deg, #a1c4fd 0%, #c2e9fb 100%);
  --panel-bg: rgba(255, 255, 255, 0.85);
  --panel-border: rgba(255, 255, 255, 0.4);
  
  --primary: #6c5ce7;
  --primary-hover: #5b4bc4;
  --secondary: #ff7675;
  --accent-yellow: #fdcb6e;
  --accent-orange: #e17055;
  --success: #2ecc71;
  --danger: #ff7675;
  --text-dark: #2d3436;
  --text-light: #ffffff;
  --text-muted: #636e72;
  
  /* Shadows & Radius */
  --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 20px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 20px 40px rgba(108, 92, 231, 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 {
  /* Reserve scrollbar space at all times so the page never shifts
     when switching between screens of different heights */
  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; /* prevent horizontal shake animation from triggering scrollbar flicker */
  padding: 1rem;
}

/* Header & Navigation */
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 3s ease-in-out infinite;
}

h1 {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--primary);
  text-shadow: 2px 2px 0px rgba(255, 255, 255, 0.8);
  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: 500px;
  backdrop-filter: blur(10px);
}

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

nav button.active {
  background: var(--primary);
  color: var(--text-light);
  box-shadow: var(--shadow-sm);
  transform: scale(1.05);
}

nav button:hover:not(.active) {
  background: rgba(108, 92, 231, 0.1);
  color: var(--primary);
}

/* Main Content Containers */
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;
}

/* Cards & Layout Panels */
.card {
  background: var(--panel-bg);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-lg);
  border: 3px solid var(--panel-border);
  backdrop-filter: blur(10px);
  position: relative;
}

/* User Progress Bar Dashboard */
.progress-bar-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: var(--panel-bg);
  padding: 1rem 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 2px solid var(--panel-border);
  flex-wrap: wrap;
}

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

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

.star-count {
  color: #d8a100;
  text-shadow: 1px 1px 0px white;
}

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

/* Welcome Screen */
.welcome-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.5rem;
}

.welcome-mascot {
  font-size: 5rem;
  animation: float 4s ease-in-out infinite;
}

.welcome-title {
  font-size: 2rem;
  color: var(--primary);
}

.welcome-text {
  font-size: 1.2rem;
  color: var(--text-dark);
  max-width: 500px;
  line-height: 1.6;
}

.game-modes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  width: 100%;
  margin-top: 1rem;
}

.mode-btn {
  border: none;
  background: white;
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  border: 4px solid transparent;
  transition: var(--transition-bounce);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.mode-btn:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.mode-btn.addition { border-color: #ffeaa7; }
.mode-btn.addition .mode-icon { background: #ffeaa7; }
.mode-btn.subtraction { border-color: #ff8787; }
.mode-btn.subtraction .mode-icon { background: #ff8787; }
.mode-btn.multiplication { border-color: #a55eea; }
.mode-btn.multiplication .mode-icon { background: #a55eea; color: white; }

.mode-icon {
  font-size: 2.5rem;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
}

.mode-name {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-dark);
}

.mode-desc {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Play Screen (Game Area) */
.game-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  border-bottom: 2px dashed rgba(108, 92, 231, 0.2);
  padding-bottom: 1rem;
}

.back-btn {
  border: none;
  background: var(--panel-bg);
  padding: 0.6rem 1.2rem;
  border-radius: 50px;
  font-family: var(--font-main);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition-bounce);
  box-shadow: var(--shadow-sm);
}

.back-btn:hover {
  background: var(--primary);
  color: white;
  transform: translateX(-4px);
}

.level-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary);
}

.game-body {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media(min-width: 768px) {
  .game-body {
    grid-template-columns: 2fr 1fr;
  }
}

.question-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  background: rgba(255, 255, 255, 0.6);
  border-radius: var(--radius-md);
  border: 2px dashed rgba(108, 92, 231, 0.15);
}

/* Explanation box — hidden by default, slides in on wrong answer */
.explanation-box {
  display: none;
  background: linear-gradient(135deg, #fff9e6, #fff3cc);
  border: 3px solid var(--accent-yellow);
  border-radius: var(--radius-md);
  padding: 1.2rem 1.5rem;
  margin-top: 1rem;
  text-align: center;
  animation: slideIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.1);
}

.explanation-box.visible {
  display: block;
}

.explanation-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #a06000;
  margin-bottom: 0.75rem;
  letter-spacing: 0.3px;
}

.explanation-visual {
  font-size: 1.4rem;
  line-height: 2;
  color: var(--text-dark);
  word-break: break-word;
}

.explanation-visual .step {
  display: block;
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.explanation-visual .emoji-row {
  display: block;
  font-size: 1.6rem;
  letter-spacing: 2px;
  margin: 0.25rem 0;
}

.explanation-visual .answer-reveal {
  display: inline-block;
  background: var(--primary);
  color: white;
  padding: 0.2rem 0.8rem;
  border-radius: 50px;
  font-size: 1.3rem;
  font-weight: 700;
  margin-top: 0.5rem;
}

/* Next button — hidden until speech finishes */
.explanation-next-btn {
  display: none;
  margin-top: 1.2rem;
  width: 100%;
  padding: 0.85rem 1rem;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 50px;
  font-family: var(--font-main);
  font-size: 1.3rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 0 var(--primary-hover);
  transition: var(--transition-bounce);
  animation: popIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.explanation-next-btn.visible {
  display: block;
}

.explanation-next-btn:hover {
  background: var(--primary-hover);
  transform: translateY(-3px);
  box-shadow: 0 7px 0 #4533a8;
}

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

/* Displaying math formula clearly & largely */
.math-expression {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  font-size: 4rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.number-card {
  background: white;
  min-width: 100px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  border: 4px solid #fff;
  transition: var(--transition-bounce);
}

.math-operator {
  color: var(--secondary);
  font-weight: 800;
  text-shadow: 2px 2px 0 white;
}

.answer-slot {
  min-width: 120px;
  height: 120px;
  background: rgba(108, 92, 231, 0.1);
  border: 4px dashed var(--primary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  color: var(--primary);
  transition: var(--transition-bounce);
}

.answer-slot.filled {
  background: white;
  border: 4px solid var(--primary);
  box-shadow: var(--shadow-md);
  animation: popIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.answer-slot.correct {
  border-color: var(--success);
  color: var(--success);
  background: #e8fbf1;
}

.answer-slot.incorrect {
  border-color: var(--danger);
  color: var(--danger);
  background: #ffebeb;
  animation: shake 0.5s ease;
}

/* Interactive custom keypad */
.keypad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  width: 100%;
  max-width: 340px;
  margin: 1.5rem auto 0;
}

.key-btn {
  aspect-ratio: 1.3;
  border: none;
  background: white;
  border-radius: var(--radius-sm);
  font-family: var(--font-main);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-dark);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  border-bottom: 4px solid #dfe6e9;
  transition: var(--transition-bounce);
  display: flex;
  align-items: center;
  justify-content: center;
}

.key-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-bottom-width: 4px;
}

.key-btn:active {
  /* Press effect using translateY only — no border collapse so layout stays stable */
  transform: translateY(3px);
  box-shadow: none;
}

.key-btn.action-btn {
  background: var(--accent-yellow);
  color: var(--text-dark);
  border-bottom-color: #d1a12c;
  font-size: 1.4rem;
}

.key-btn.submit-btn {
  background: var(--success);
  color: white;
  border-bottom-color: #27ae60;
  grid-column: span 3;
  aspect-ratio: auto;
  padding: 0.8rem;
  font-size: 1.6rem;
}

/* Keep submit button the same size when disabled — prevents layout jump */
.key-btn.submit-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  border-bottom-width: 4px; /* don't collapse the border */
}

/* Mascot Dialog Box */
.mascot-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.mascot-character {
  font-size: 5rem;
  animation: float 3s ease-in-out infinite;
  cursor: pointer;
  transition: transform 0.2s ease;
}

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

.speech-bubble {
  background: white;
  padding: 1rem;
  border-radius: var(--radius-sm);
  position: relative;
  box-shadow: var(--shadow-md);
  font-size: 1.1rem;
  line-height: 1.4;
  text-align: center;
  border: 2px solid rgba(108, 92, 231, 0.1);
  min-width: 200px;
}

.speech-bubble::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  border-width: 15px 15px 0;
  border-style: solid;
  border-color: white transparent;
  display: block;
  width: 0;
}

/* Sticker Book / Album */
.sticker-book-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.sticker-header {
  text-align: center;
}

.sticker-header h2 {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

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

.sticker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 1.5rem;
}

.sticker-slot {
  aspect-ratio: 1;
  background: rgba(255, 255, 255, 0.5);
  border: 3px dashed rgba(108, 92, 231, 0.2);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
  position: relative;
  transition: var(--transition-bounce);
}

.sticker-slot.unlocked {
  background: white;
  border: 3px solid var(--accent-yellow);
  box-shadow: var(--shadow-md);
  transform: rotate(var(--rotation, 0deg));
}

.sticker-slot.unlocked:hover {
  transform: scale(1.1) rotate(0deg);
  z-index: 2;
}

.sticker-visual {
  font-size: 3rem;
  filter: grayscale(100%) opacity(30%);
  transition: var(--transition-bounce);
}

.sticker-slot.unlocked .sticker-visual {
  filter: none;
  animation: unlockPop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.sticker-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-top: 0.5rem;
  text-align: center;
}

.sticker-slot.unlocked .sticker-name {
  color: var(--primary);
}

.lock-overlay {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  cursor: pointer;
  width: 100%;
  height: 100%;
  justify-content: center;
  position: absolute;
  top: 0;
  left: 0;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.1);
  transition: var(--transition-smooth);
}

.lock-overlay:hover {
  background: rgba(108, 92, 231, 0.05);
}

.lock-icon {
  font-size: 1.5rem;
}

.lock-cost {
  font-size: 0.9rem;
  font-weight: 700;
  color: #c98e00;
  background: #ffeaa7;
  padding: 0.2rem 0.6rem;
  border-radius: 50px;
  display: flex;
  align-items: center;
  gap: 0.2rem;
  box-shadow: var(--shadow-sm);
}

/* Settings/Parents Page */
.settings-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.settings-section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  border-bottom: 2px dashed rgba(108, 92, 231, 0.15);
  padding-bottom: 1.5rem;
}

.settings-section:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.settings-section h3 {
  font-size: 1.3rem;
  color: var(--primary);
}

.setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.setting-label {
  font-weight: 600;
  font-size: 1.1rem;
}

.setting-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

/* Custom toggles & selections */
.btn-group {
  display: flex;
  gap: 0.5rem;
  background: #f1f2f6;
  padding: 0.3rem;
  border-radius: 50px;
}

.btn-group button {
  border: none;
  background: transparent;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-family: var(--font-main);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
  color: var(--text-muted);
}

.btn-group button.active {
  background: var(--primary);
  color: white;
  box-shadow: var(--shadow-sm);
}

/* Switch Styles */
.switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
}

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

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

.slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  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);
}

.reset-btn {
  background: var(--danger);
  color: white;
  border: none;
  border-radius: 50px;
  padding: 0.8rem 1.5rem;
  font-family: var(--font-main);
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-bounce);
}

.reset-btn:hover {
  background: #d63031;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Level Completion Overlay / Modal */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.overlay.active {
  display: flex;
}

.modal {
  background: white;
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  max-width: 500px;
  width: 100%;
  text-align: center;
  box-shadow: var(--shadow-lg);
  border: 4px solid var(--accent-yellow);
  animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.modal-mascot {
  font-size: 4.5rem;
  animation: float 2.5s ease-in-out infinite;
}

.modal-title {
  font-size: 2.2rem;
  color: var(--primary);
}

.modal-text {
  font-size: 1.2rem;
  color: var(--text-dark);
}

.modal-stars {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 2rem;
  color: var(--accent-yellow);
  font-weight: 700;
}

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

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-3px);
  box-shadow: 0 8px 15px rgba(108, 92, 231, 0.4);
}

/* Animations */
@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
  100% { transform: translateY(0px); }
}

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

@keyframes popIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes unlockPop {
  0% { transform: scale(0.6); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1) rotate(var(--rotation, 0deg)); }
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-10px); }
  40%, 80% { transform: translateX(10px); }
}

/* Confetti styling for background effects */
.confetti {
  position: absolute;
  width: 10px;
  height: 10px;
  background-color: #f0f;
  border-radius: 50%;
  animation: fall 3s linear infinite;
  pointer-events: none;
  z-index: 99;
}

@keyframes fall {
  0% {
    transform: translateY(-100px) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translateY(100vh) rotate(360deg);
    opacity: 0;
  }
}

/* CSP Compliance Layout and Styling Classes */
.round-progress {
  font-weight: 700;
  color: var(--text-muted);
}

#round-dots-tracker {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.tracker-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(108, 92, 231, 0.4);
  background: transparent;
  display: inline-block;
}

#game-speak-btn {
  font-size: 0.9rem;
  padding: 0.4rem 0.8rem;
  margin-top: -0.5rem;
}

#multiplication-selector-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
  gap: 0.5rem;
}

.multi-table-option {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  background: white;
  padding: 0.4rem 0.6rem;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  font-weight: 700;
  font-size: 1.1rem;
}

.multi-table-checkbox {
  width: 18px;
  height: 18px;
}

#confirm-overlay .modal {
  border-color: var(--primary);
}

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

#confirm-yes-btn {
  background: var(--success);
  flex: 1;
}

#confirm-no-btn {
  margin-top: 0;
  flex: 1;
}

.settings-section > p.setting-desc {
  margin-bottom: 0.5rem;
}

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

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

.tracker-dot-icon {
  font-size: 10px;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}
