/* ==========================================================================
   OMA'S 80E VERJAARDAG - STIJLEN (TOEGANKELIJK, WARM & FEESTELIJK)
   ========================================================================== */

:root {
  --font-base: 18px;
  --color-bg: #fdfaf6;
  --color-card-bg: #ffffff;
  --color-text: #2d1810;
  --color-text-muted: #6b584d;
  --color-primary: #b91c1c; /* feestelijk dieprood */
  --color-primary-soft: #fee2e2;
  --color-accent: #d97706; /* warm goud */
  --color-accent-soft: #fef3c7;
  --color-secondary: #047857; /* rustgevend groen voor goed/succes */
  --color-secondary-soft: #d1fae5;
  --color-border: #e7ded4;
  --color-shadow: rgba(68, 35, 20, 0.08);
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 8px;
  --transition: all 0.25s ease-in-out;
}

/* Toegankelijke lettergroottes */
body.font-normal { --font-base: 18px; }
body.font-large { --font-base: 22px; }
body.font-xlarge { --font-base: 26px; }

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

html {
  font-size: var(--font-base);
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  padding-bottom: 80px;
  overflow-x: hidden;
}

/* ==========================================================================
   TOEGANKELIJKHEIDSBALK BOVENAAN (A- / A+ & GELUID)
   ========================================================================== */
.top-accessibility-bar {
  background: #2b1810;
  color: #fff;
  padding: 10px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.95rem;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

.top-accessibility-bar .brand-mini {
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.accessibility-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sound-btn {
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
  padding: 6px 14px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: bold;
  min-height: 38px;
  transition: var(--transition);
}

.sound-btn:hover, .sound-btn:focus {
  background: rgba(255,255,255,0.35);
  transform: scale(1.04);
}

/* ==========================================================================
   FEESTELIJKE HEADER & HERO BANNER
   ========================================================================== */
.hero-banner {
  background: linear-gradient(135deg, #fff1f2 0%, #fffbeb 50%, #fef2f2 100%);
  border-bottom: 2px solid #fed7aa;
  text-align: center;
  padding: 40px 20px 30px;
  position: relative;
}

.hero-banner .confetti-decor {
  font-size: 2.2rem;
  margin-bottom: 8px;
}

.hero-banner h1 {
  font-size: 2.5rem;
  font-weight: 800;
  color: #991b1b;
  margin-bottom: 10px;
  line-height: 1.2;
}

.hero-banner .hero-subtitle {
  font-size: 1.35rem;
  color: #78350f;
  font-weight: 600;
  margin-bottom: 16px;
}

.hero-counter-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  padding: 10px 22px;
  border-radius: 50px;
  box-shadow: 0 4px 15px rgba(217, 119, 6, 0.18);
  border: 2px solid #fde68a;
  font-size: 1.15rem;
  font-weight: 700;
  color: #92400e;
}

/* ==========================================================================
   NAVIGATIE BALK MET GROTE KNOPPEN
   ========================================================================== */
.main-nav-container {
  max-width: 1000px;
  margin: -15px auto 30px;
  padding: 0 16px;
  position: relative;
  z-index: 10;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  background: #ffffff;
  padding: 12px;
  border-radius: 20px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.06);
  border: 1px solid var(--color-border);
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--color-text);
  background: #fdfaf6;
  border: 2px solid transparent;
  transition: var(--transition);
  min-height: 48px;
}

.nav-link:hover, .nav-link:focus {
  background: var(--color-primary-soft);
  color: var(--color-primary);
  border-color: #fca5a5;
  transform: translateY(-2px);
}

.nav-link.active {
  background: var(--color-primary);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(185, 28, 28, 0.25);
}

/* ==========================================================================
   SECTIES & CONTAINERS
   ========================================================================== */
.site-main {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 16px;
}

.content-section {
  background: var(--color-card-bg);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  margin-bottom: 40px;
  box-shadow: 0 8px 30px var(--color-shadow);
  border: 1px solid var(--color-border);
}

.section-header {
  text-align: center;
  margin-bottom: 28px;
}

.section-tag {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 30px;
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.tag-red { background: var(--color-primary-soft); color: var(--color-primary); }
.tag-gold { background: var(--color-accent-soft); color: #92400e; }
.tag-green { background: var(--color-secondary-soft); color: var(--color-secondary); }

.section-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-text);
  margin-bottom: 6px;
}

.section-desc {
  font-size: 1.15rem;
  color: var(--color-text-muted);
  max-width: 700px;
  margin: 0 auto;
}

/* ==========================================================================
   SECTIE 1: OMA'S GOUDEN HERINNERINGEN (SLIDESHOW)
   ========================================================================== */
.slideshow-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.slideshow-toolbar {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px 18px;
  background: #fdfaf6;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
}

.slideshow-meta {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-accent);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* De grote foto-weergave */
.slideshow-main-viewport {
  position: relative;
  width: 100%;
  height: 520px;
  background: #181210;
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.slideshow-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: opacity 0.35s ease;
  user-select: none;
}

/* Grote navigatieknoppen over de foto */
.slide-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.9);
  color: #2b1810;
  border: 2px solid #ffffff;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0,0,0,0.25);
  transition: var(--transition);
  z-index: 5;
}

.slide-nav-btn:hover, .slide-nav-btn:focus {
  background: #ffffff;
  color: var(--color-primary);
  transform: translateY(-50%) scale(1.1);
}

.slide-prev { left: 16px; }
.slide-next { right: 16px; }

/* Ondertitel banner */
.slideshow-caption-box {
  width: 100%;
  text-align: center;
  padding: 16px 20px;
  background: #fff8f0;
  border: 2px solid #fed7aa;
  border-radius: var(--radius-md);
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slideshow-caption-text {
  font-size: 1.35rem;
  font-weight: 700;
  color: #7c2d12;
}

/* Bedieningsknoppen onder de foto */
.slideshow-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.control-btn {
  background: #fdfaf6;
  border: 2px solid var(--color-border);
  padding: 12px 20px;
  border-radius: 12px;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  transition: var(--transition);
}

.control-btn:hover {
  background: var(--color-primary-soft);
  border-color: #fca5a5;
  color: var(--color-primary);
}

/* Thumbnail strip */
.thumbnails-scroll-container {
  width: 100%;
  overflow-x: auto;
  padding: 10px 4px;
  display: flex;
  gap: 10px;
  scrollbar-width: thin;
}

.thumb-item {
  width: 76px;
  height: 60px;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  border: 3px solid transparent;
  opacity: 0.6;
  transition: var(--transition);
}

.thumb-item.active {
  border-color: var(--color-primary);
  opacity: 1;
  transform: scale(1.08);
}

.thumb-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ==========================================================================
   SECTIE 2: DE DIGITALE KNUFFELKNOP / LIEFDESGENERATOR
   ========================================================================== */
.hug-card {
  background: linear-gradient(135deg, #fff5f5 0%, #fffbf0 100%);
  border: 2px dashed #f87171;
  border-radius: var(--radius-lg);
  padding: 40px 24px;
  text-align: center;
}

.giant-heart-btn {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: #fff;
  border: none;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  font-size: 3.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(220, 38, 38, 0.4);
  transition: var(--transition);
  animation: heartPulse 1.8s infinite;
  margin-bottom: 24px;
}

.giant-heart-btn:hover, .giant-heart-btn:focus {
  transform: scale(1.12);
  box-shadow: 0 14px 36px rgba(220, 38, 38, 0.55);
}

@keyframes heartPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.08); }
  100% { transform: scale(1); }
}

.hug-instruction {
  font-size: 1.35rem;
  font-weight: 800;
  color: #991b1b;
  margin-bottom: 20px;
}

.compliment-bubble {
  background: #ffffff;
  border: 2px solid #fecaca;
  border-radius: 20px;
  padding: 24px 30px;
  font-size: 1.45rem;
  font-weight: 700;
  color: #7f1d1d;
  max-width: 650px;
  margin: 0 auto 20px;
  box-shadow: 0 6px 20px rgba(239, 68, 68, 0.12);
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.hug-counter-badge {
  font-size: 1.05rem;
  color: #92400e;
  font-weight: 700;
}

/* ==========================================================================
   SECTIE 3: TOEN OMA TER WERELD KWAM (19 SEPTEMBER 1946)
   ========================================================================== */
.history-newspaper {
  background: #fffdfa;
  border: 2px solid #d6c7b2;
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: inset 0 0 40px rgba(214, 199, 178, 0.2);
}

.newspaper-header {
  border-bottom: 3px double #8c7355;
  padding-bottom: 16px;
  margin-bottom: 24px;
  text-align: center;
}

.newspaper-name {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 2.2rem;
  font-weight: 900;
  color: #43302b;
  letter-spacing: 1px;
}

.newspaper-date-line {
  font-size: 1.15rem;
  font-weight: 700;
  color: #785845;
  margin-top: 6px;
}

.newspaper-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.history-card {
  background: #ffffff;
  border: 1px solid #e7ded4;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}

.history-card-icon {
  font-size: 2rem;
  margin-bottom: 8px;
}

.history-card-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #2b1810;
  margin-bottom: 8px;
}

.history-card-text {
  font-size: 1.05rem;
  color: #574438;
}

/* ==========================================================================
   SECTIE 4: DE GROTE FAMILIEQUIZ
   ========================================================================== */
.quiz-container {
  max-width: 720px;
  margin: 0 auto;
}

.quiz-progress-bar {
  background: #e7ded4;
  height: 12px;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 24px;
}

.quiz-progress-fill {
  background: var(--color-accent);
  height: 100%;
  width: 20%;
  transition: width 0.3s ease;
}

.quiz-card {
  background: #ffffff;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.04);
}

.quiz-question-text {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--color-text);
  margin-bottom: 24px;
  line-height: 1.4;
}

.quiz-options-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.quiz-option-btn {
  background: #fdfaf6;
  border: 2px solid var(--color-border);
  border-radius: 14px;
  padding: 16px 20px;
  font-size: 1.15rem;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  color: var(--color-text);
  display: flex;
  align-items: center;
  gap: 14px;
  transition: var(--transition);
  min-height: 56px;
}

.quiz-option-btn:hover {
  background: #fef3c7;
  border-color: #f59e0b;
}

.quiz-option-btn.correct {
  background: #d1fae5 !important;
  border-color: #059669 !important;
  color: #065f46 !important;
}

.quiz-option-btn.wrong {
  background: #fee2e2 !important;
  border-color: #dc2626 !important;
  color: #991b1b !important;
}

.quiz-feedback-box {
  padding: 16px 20px;
  border-radius: 12px;
  font-size: 1.15rem;
  font-weight: 700;
  margin-top: 16px;
  display: none;
}

.quiz-feedback-box.correct {
  background: #ecfdf5;
  color: #065f46;
  border: 2px solid #a7f3d0;
  display: block;
}

.quiz-next-btn {
  background: var(--color-primary);
  color: #fff;
  border: none;
  padding: 14px 28px;
  border-radius: 12px;
  font-size: 1.15rem;
  font-weight: 800;
  cursor: pointer;
  margin-top: 20px;
  display: none;
  width: 100%;
}

.quiz-result-view {
  display: none;
  text-align: center;
  padding: 30px;
}

.quiz-medal-icon {
  font-size: 4.5rem;
  margin-bottom: 12px;
}

/* ==========================================================================
   SECTIE 5: GOOI DE BAL NAAR JE KLEINKIND
   ========================================================================== */
.ball-game-field {
  background: linear-gradient(180deg, #e0f2fe 0%, #f0fdf4 100%);
  border: 2px solid #bae6fd;
  border-radius: var(--radius-lg);
  padding: 30px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.game-characters-row {
  display: flex;
  justify-content: space-around;
  align-items: center;
  position: relative;
  min-height: 180px;
  margin-bottom: 20px;
}

.character-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 2;
}

.avatar-circle {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: #ffffff;
  border: 4px solid #38bdf8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  box-shadow: 0 6px 16px rgba(0,0,0,0.1);
}

.avatar-name {
  font-size: 1.25rem;
  font-weight: 800;
  color: #0369a1;
}

.flying-ball {
  position: absolute;
  width: 50px;
  height: 50px;
  font-size: 2.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.7s cubic-bezier(0.25, 1, 0.5, 1);
  z-index: 5;
  cursor: pointer;
}

.ball-cheer-speech {
  background: #ffffff;
  border: 2px solid #38bdf8;
  border-radius: 16px;
  padding: 16px 22px;
  font-size: 1.25rem;
  font-weight: 700;
  color: #0c4a6e;
  max-width: 500px;
  margin: 0 auto 20px;
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.throw-ball-btn {
  background: #0284c7;
  color: #fff;
  border: none;
  padding: 16px 32px;
  border-radius: 50px;
  font-size: 1.25rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(2, 132, 199, 0.35);
  transition: var(--transition);
}

.throw-ball-btn:hover {
  background: #0369a1;
  transform: scale(1.05);
}

/* ==========================================================================
   SECTIE 6: HET PI-RAADSEL
   ========================================================================== */
.pi-board {
  background: #fdfaf6;
  border: 2px solid #fed7aa;
  border-radius: var(--radius-lg);
  padding: 30px;
  text-align: center;
}

.pi-digits-display {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
}

.pi-digit-box {
  width: 52px;
  height: 60px;
  border-radius: 10px;
  border: 2px solid #f59e0b;
  background: #ffffff;
  font-size: 1.8rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #b45309;
}

.pi-digit-box.revealed {
  background: #fef3c7;
  border-color: #d97706;
}

.pi-comma {
  font-size: 2.2rem;
  font-weight: 900;
  color: #b45309;
  padding: 0 4px;
}

.pi-hint-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.pi-hint-card {
  background: #fffbeb;
  border: 2px solid #fde68a;
  border-radius: 14px;
  padding: 18px 24px;
  font-size: 1.25rem;
  font-weight: 700;
  color: #92400e;
  max-width: 550px;
  margin: 0 auto;
  animation: fadeInHint 0.3s ease-in-out;
}

@keyframes fadeInHint {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.pi-keypad {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  max-width: 420px;
  margin: 0 auto 16px;
  gap: 10px;
}

.pi-num-btn {
  background: #ffffff;
  border: 2px solid var(--color-border);
  border-radius: 12px;
  font-size: 1.6rem;
  font-weight: 800;
  padding: 12px;
  cursor: pointer;
  color: var(--color-text);
  transition: var(--transition);
  min-height: 54px;
}

.pi-num-btn:hover {
  background: #fde68a;
  border-color: #f59e0b;
}

/* ==========================================================================
   SECTIE 7: OMA'S SUDOKU PALEIS (MEERDERE NIVEAUS)
   ========================================================================== */
.sudoku-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.sudoku-level-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 6px;
}

.sudoku-lvl-btn {
  background: #fdfaf6;
  border: 2px solid var(--color-border);
  border-radius: 12px;
  padding: 12px 18px;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--color-text);
  cursor: pointer;
  transition: var(--transition);
  min-height: 48px;
}

.sudoku-lvl-btn:hover {
  background: var(--color-accent-soft);
  border-color: var(--color-accent);
}

.sudoku-lvl-btn.active {
  background: #d97706;
  color: #ffffff;
  border-color: #b45309;
  box-shadow: 0 4px 14px rgba(217, 119, 6, 0.35);
}

.sudoku-grid-wrapper {
  max-width: 100%;
  overflow-x: auto;
  padding: 8px;
  display: flex;
  justify-content: center;
}

.sudoku-grid {
  display: grid;
  background: #44342e;
  gap: 2px;
  padding: 5px;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

/* 4x4 Grid */
.sudoku-grid.grid-size-4 {
  grid-template-columns: repeat(4, 68px);
  grid-template-rows: repeat(4, 68px);
}

/* 6x6 Grid */
.sudoku-grid.grid-size-6 {
  grid-template-columns: repeat(6, 52px);
  grid-template-rows: repeat(6, 52px);
}

/* 9x9 Grid */
.sudoku-grid.grid-size-9 {
  grid-template-columns: repeat(9, 42px);
  grid-template-rows: repeat(9, 42px);
}

.sudoku-cell {
  background: #ffffff;
  border: none;
  font-weight: 800;
  color: #2b1810;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  user-select: none;
  transition: var(--transition);
}

.grid-size-4 .sudoku-cell { font-size: 2rem; }
.grid-size-6 .sudoku-cell { font-size: 1.65rem; }
.grid-size-9 .sudoku-cell { font-size: 1.35rem; }

/* Subgrid borders */
.sudoku-cell.border-right-thick {
  border-right: 3px solid #44342e !important;
}

.sudoku-cell.border-bottom-thick {
  border-bottom: 3px solid #44342e !important;
}

.sudoku-cell.fixed {
  background: #f4ece4;
  color: #78350f;
  cursor: default;
}

.sudoku-cell.selected {
  background: #fde68a !important;
  box-shadow: inset 0 0 0 3px #d97706;
}

.sudoku-keypad {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  max-width: 520px;
}

.sudoku-key-btn {
  min-width: 48px;
  height: 52px;
  padding: 0 12px;
  border-radius: 12px;
  border: 2px solid var(--color-border);
  background: #ffffff;
  font-size: 1.6rem;
  font-weight: 800;
  cursor: pointer;
  color: var(--color-primary);
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.sudoku-key-btn:hover {
  background: var(--color-primary-soft);
  border-color: #fca5a5;
  transform: scale(1.05);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  text-align: center;
  padding: 40px 20px;
  color: var(--color-text-muted);
  font-size: 1.05rem;
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES (VOOR MOBIEL & TABLET)
   ========================================================================== */
@media (max-width: 768px) {
  :root {
    --font-base: 17px;
  }

  /* Algemene marges & containers */
  .site-main {
    padding: 0 10px;
  }

  .content-section {
    padding: 22px 14px;
    margin-bottom: 24px;
    border-radius: 16px;
  }

  .section-header {
    margin-bottom: 18px;
  }

  .section-title {
    font-size: 1.6rem;
    line-height: 1.25;
  }

  .section-desc {
    font-size: 1.05rem;
    line-height: 1.45;
  }

  /* Hero & Navigatie */
  .hero-banner {
    padding: 26px 14px 18px;
  }

  .hero-banner h1 {
    font-size: 1.85rem;
  }

  .hero-banner .hero-subtitle {
    font-size: 1.1rem;
    margin-bottom: 12px;
  }

  .hero-counter-badge {
    font-size: 0.98rem;
    padding: 8px 16px;
    max-width: 100%;
    line-height: 1.35;
  }

  .main-nav-container {
    margin: -8px auto 20px;
    padding: 0 10px;
  }

  .main-nav {
    padding: 8px;
    gap: 6px;
    border-radius: 14px;
  }

  .nav-link {
    padding: 9px 12px;
    font-size: 0.92rem;
    min-height: 42px;
    gap: 6px;
    border-radius: 10px;
  }

  /* Diavoorstelling */
  .slideshow-main-viewport {
    height: 310px;
    border-radius: 14px;
  }

  .slide-nav-btn {
    width: 44px;
    height: 44px;
    font-size: 1.3rem;
  }

  .slide-prev { left: 8px; }
  .slide-next { right: 8px; }

  .slideshow-caption-box {
    padding: 10px 14px;
    min-height: auto;
  }

  .slideshow-caption-text {
    font-size: 1.12rem;
  }

  .control-btn {
    padding: 10px 16px;
    font-size: 0.98rem;
    min-height: 44px;
  }

  /* Knuffelgenerator */
  .hug-card {
    padding: 26px 12px;
    border-radius: 16px;
  }

  .giant-heart-btn {
    width: 96px;
    height: 96px;
    font-size: 2.5rem;
    margin-bottom: 16px;
  }

  .hug-instruction {
    font-size: 1.15rem;
    margin-bottom: 14px;
  }

  .compliment-bubble {
    padding: 16px 14px;
    font-size: 1.15rem;
    min-height: 70px;
    border-radius: 14px;
  }

  /* Krant 1946 */
  .history-newspaper {
    padding: 16px 12px;
    border-radius: 14px;
  }

  .newspaper-header {
    padding-bottom: 12px;
    margin-bottom: 16px;
  }

  .newspaper-name {
    font-size: 1.45rem;
    line-height: 1.25;
  }

  .newspaper-date-line {
    font-size: 0.98rem;
  }

  .newspaper-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .history-card {
    padding: 14px 12px;
  }

  /* Quiz */
  .quiz-card {
    padding: 18px 12px;
    border-radius: 14px;
  }

  .quiz-question-text {
    font-size: 1.2rem;
    margin-bottom: 16px;
  }

  .quiz-option-btn {
    padding: 12px 14px;
    font-size: 1.05rem;
    min-height: 50px;
    gap: 10px;
    border-radius: 12px;
  }

  .quiz-feedback-box {
    padding: 12px 14px;
    font-size: 1.05rem;
  }

  /* Balspel */
  .ball-game-field {
    padding: 18px 10px;
    border-radius: 14px;
  }

  .game-characters-row {
    min-height: 130px;
    margin-bottom: 14px;
  }

  .avatar-circle {
    width: 68px;
    height: 68px;
    font-size: 2rem;
    border-width: 3px;
  }

  .avatar-name {
    font-size: 1.1rem;
  }

  .flying-ball {
    width: 38px;
    height: 38px;
    font-size: 1.7rem;
  }

  .ball-cheer-speech {
    padding: 10px 14px;
    font-size: 1.1rem;
    min-height: 50px;
    margin-bottom: 14px;
  }

  .throw-ball-btn {
    padding: 14px 22px;
    font-size: 1.15rem;
    width: 100%;
    max-width: 300px;
  }

  /* Pi-Raadsel */
  .pi-board {
    padding: 18px 10px;
    border-radius: 14px;
  }

  .pi-digits-display {
    gap: 5px;
    margin-bottom: 16px;
  }

  .pi-digit-box {
    width: 34px;
    height: 42px;
    font-size: 1.2rem;
    border-radius: 6px;
  }

  .pi-comma {
    font-size: 1.5rem;
    padding: 0 1px;
  }

  .pi-hint-card {
    padding: 12px 14px;
    font-size: 1.05rem;
  }

  .pi-keypad {
    gap: 6px;
    max-width: 340px;
  }

  .pi-num-btn {
    padding: 8px 4px;
    font-size: 1.35rem;
    min-height: 48px;
  }

  /* Sudoku */
  .sudoku-container {
    gap: 12px;
  }

  .sudoku-level-buttons {
    gap: 6px;
    width: 100%;
  }

  .sudoku-lvl-btn {
    padding: 8px 10px;
    font-size: 0.95rem;
    min-height: 42px;
    flex: 1 1 30%;
    text-align: center;
  }

  .sudoku-grid-wrapper {
    padding: 4px;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    display: flex;
    justify-content: center;
  }

  .sudoku-grid.grid-size-4 {
    grid-template-columns: repeat(4, clamp(52px, 16vw, 68px));
    grid-template-rows: repeat(4, clamp(52px, 16vw, 68px));
    gap: 2px;
    padding: 4px;
  }

  .sudoku-grid.grid-size-6 {
    grid-template-columns: repeat(6, clamp(40px, 12vw, 50px));
    grid-template-rows: repeat(6, clamp(40px, 12vw, 50px));
    gap: 2px;
    padding: 4px;
  }

  .sudoku-grid.grid-size-9 {
    grid-template-columns: repeat(9, clamp(29px, 8.5vw, 38px));
    grid-template-rows: repeat(9, clamp(29px, 8.5vw, 38px));
    gap: 1px;
    padding: 3px;
  }

  .grid-size-4 .sudoku-cell { font-size: 1.7rem; }
  .grid-size-6 .sudoku-cell { font-size: 1.35rem; }
  .grid-size-9 .sudoku-cell { font-size: 1.15rem; }

  .sudoku-keypad {
    gap: 6px;
    max-width: 360px;
  }

  .sudoku-key-btn {
    min-width: 42px;
    height: 48px;
    font-size: 1.35rem;
    padding: 0 8px;
  }
}

/* Extra compacte mobiele schermen (< 380px zoals iPhone SE) */
@media (max-width: 380px) {
  .sudoku-grid.grid-size-9 {
    grid-template-columns: repeat(9, 29px);
    grid-template-rows: repeat(9, 29px);
  }
  .grid-size-9 .sudoku-cell {
    font-size: 1rem;
  }
  .pi-digit-box {
    width: 29px;
    height: 38px;
    font-size: 1.05rem;
  }
  .pi-num-btn {
    min-height: 42px;
    font-size: 1.2rem;
  }
  .nav-link {
    font-size: 0.85rem;
    padding: 7px 10px;
  }
}
