@charset "UTF-8";
/**
 * Full Skin — 007-bingo
 * Theme:   Coral-rose + golden yellow — classroom game night
 * Primary: #f43f5e  |  Accent: #f59e0b
 * Hero:    festive light gradient with confetti decorations
 */

/* ═══════════════════════════════════════════════════════════
   BASE
   ═══════════════════════════════════════════════════════════ */

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

::selection       { background: #fecdd3; color: #be123c; }
::-moz-selection  { background: #fecdd3; color: #be123c; }

*:focus-visible {
  outline: 3px solid var(--site-primary, #f43f5e);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ── Scrollbar ── */
::-webkit-scrollbar         { width: 10px; height: 10px; }
::-webkit-scrollbar-track   { background: #fff1f2; }
::-webkit-scrollbar-thumb   {
  background: linear-gradient(180deg, #f43f5e 0%, #e11d48 100%);
  border-radius: 5px;
  border: 2px solid #fff1f2;
}
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #e11d48 0%, #be123c 100%);
}
html { scrollbar-color: #f43f5e #fff1f2; }


/* ═══════════════════════════════════════════════════════════
   BODY
   ═══════════════════════════════════════════════════════════ */

body {
  background: var(--gradient-surface,
    linear-gradient(160deg, #fff1f2 0%, #ffffff 40%, #fffbeb 100%));
  background-attachment: fixed;
  font-family: var(--font-body);
  color: var(--site-text, #1c0714);
}


/* ═══════════════════════════════════════════════════════════
   TYPOGRAPHY — heading font applied site-wide
   ═══════════════════════════════════════════════════════════ */

h1, h2, h3 {
  font-family: var(--font-heading, 'Fredoka One', 'Nunito', system-ui, sans-serif);
}


/* ═══════════════════════════════════════════════════════════
   PAGE HEADER (detail pages)
   ═══════════════════════════════════════════════════════════ */

.page-header {
  background: var(--gradient-brand, linear-gradient(135deg, #f43f5e 0%, #be123c 100%));
  border-bottom: none;
  border-radius: 16px 16px 0 0;
  padding: 1.75rem 2rem 1.25rem;
  position: relative;
  overflow: hidden;
}

/* Confetti dots — top-right decoration */
.page-header::after {
  content: '';
  position: absolute;
  top: -20px; right: -30px;
  width: 160px; height: 160px;
  background: radial-gradient(circle, rgba(245,158,11,0.2) 0%, transparent 65%);
  border-radius: 50%;
  pointer-events: none;
}

.page-header h1 {
  font-size: 2rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.25;
  letter-spacing: -0.01em;
  font-family: var(--font-heading, 'Fredoka One', 'Nunito', system-ui, sans-serif);
  position: relative;
  z-index: 1;
}

.page-header .subtitle {
  color: #fecdd3;
  font-size: 1.05rem;
  margin-top: 0.4rem;
  position: relative;
  z-index: 1;
}

.page-header .breadcrumb {
}
.page-header .breadcrumb a { color: #fecdd3; }
.page-header .breadcrumb li:last-child { color: #ffffff; }


/* ═══════════════════════════════════════════════════════════
   HERO (homepage)
   ═══════════════════════════════════════════════════════════ */

.hero {
  background: var(--gradient-hero,
    linear-gradient(160deg, #fff1f2 0%, #fce7f3 50%, #fffbeb 100%));
  border-bottom: 2px solid var(--site-primary-border, #fecdd3);
  padding: 4.5rem 2rem 3.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Large confetti glow — left */
.hero::before {
  content: '';
  position: absolute;
  top: -60px; left: -80px;
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(244,63,94,0.12) 0%, transparent 65%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

/* Golden glow — right */
.hero::after {
  content: '';
  position: absolute;
  bottom: -40px; right: -60px;
  width: 220px; height: 220px;
  background: radial-gradient(circle, rgba(245,158,11,0.14) 0%, transparent 65%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--site-primary, #f43f5e);
  line-height: 1.15;
  letter-spacing: -0.03em;
  font-family: var(--font-heading, 'Fredoka One', 'Nunito', system-ui, sans-serif);
  position: relative;
  z-index: 1;
}

.hero .subtitle {
  font-size: 1.15rem;
  color: var(--site-text-light, #4b5563);
  margin-top: 0.75rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
  position: relative;
  z-index: 1;
}

/* Hero stats */
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.stat-item {
  text-align: center;
  padding: 1rem 1.5rem;
  background: rgba(255, 255, 255, 0.85);
  border: 1.5px solid var(--site-primary-border, #fecdd3);
  border-radius: var(--radius-lg, 20px);
  backdrop-filter: blur(4px);
  transition: transform var(--dur-normal) var(--ease-default),
              box-shadow var(--dur-normal) var(--ease-default);
  min-width: 120px;
}

.stat-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-gold, 0 8px 20px rgba(245,158,11,0.18));
}

.stat-number {
  display: block;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--site-primary, #f43f5e);
  font-family: var(--font-heading, 'Fredoka One', 'Nunito', system-ui, sans-serif);
  font-variant-numeric: tabular-nums lining-nums;
  font-feature-settings: "tnum" 1, "lnum" 1;
}

.stat-label {
  display: block;
  font-size: 0.75rem;
  color: var(--site-text-muted, #6b7280);
  margin-top: 0.2rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-weight: 600;
}


/* ═══════════════════════════════════════════════════════════
   BREADCRUMB
   ═══════════════════════════════════════════════════════════ */

.breadcrumb {
  padding: 0.6rem 1rem;
  margin-bottom: 1rem;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.875rem;
  color: var(--site-text-muted, #6b7280);
}

.breadcrumb a {
  color: var(--site-primary, #f43f5e);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--site-primary-hover, #e11d48);
  text-decoration: underline;
}

.breadcrumb li:not(:last-child)::after {
  content: '›';
  color: var(--site-border-dark, #fbcfe8);
  font-weight: 600;
  margin-left: 0.3rem;
}

.breadcrumb li:last-child {
  color: var(--site-text, #1c0714);
  font-weight: 600;
}


/* ═══════════════════════════════════════════════════════════
   SECTION HEADER
   ═══════════════════════════════════════════════════════════ */

.section-header { margin: 1.5rem 0 1rem; }

.section-header h2 {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--site-text, #1c0714);
  font-family: var(--font-heading, 'Fredoka One', 'Nunito', system-ui, sans-serif);
  letter-spacing: -0.02em;
}

/* Animated accent underline */
.section-header h2::after {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  margin-top: 0.4rem;
  background: var(--gradient-festive, linear-gradient(90deg, #f43f5e, #f59e0b));
  border-radius: 2px;
}

.section-header p {
  color: var(--site-text-muted, #6b7280);
  margin-top: 0.3rem;
}


/* ═══════════════════════════════════════════════════════════
   SET SWITCHER
   ═══════════════════════════════════════════════════════════ */

.set-switcher {
  background: #ffffff;
  border: 1.5px solid var(--site-primary-border, #fecdd3);
  border-radius: var(--radius-card, 16px);
  box-shadow: var(--shadow-sm);
}

.set-switcher-label {
  font-size: 1rem;
  font-weight: 600;
  color: var(--site-text, #1c0714);
}

.set-btn {
  background: #ffffff;
  border: 2px solid var(--site-primary-border, #fecdd3);
  border-radius: var(--radius-sm, 8px);
  color: var(--site-text, #1c0714);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: border-color var(--dur-fast) var(--ease-default),
              background var(--dur-fast) var(--ease-default),
              transform var(--dur-fast) var(--ease-default);
}

.set-btn:hover {
  border-color: var(--site-primary, #f43f5e);
  background: var(--site-primary-light, #fff1f2);
  transform: translateY(-1px);
}

.set-btn.active {
  background: var(--gradient-brand, linear-gradient(135deg, #f43f5e 0%, #e11d48 100%));
  color: white;
  border-color: var(--site-primary-hover, #e11d48);
  box-shadow: var(--shadow-md);
}


/* ═══════════════════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════════════════ */

.btn {
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  border: 2px solid transparent;
  border-radius: var(--radius-button, 12px);
  background: #ffffff;
  color: var(--site-text, #1c0714);
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur-fast) var(--ease-default),
              box-shadow var(--dur-fast) var(--ease-default),
              background var(--dur-fast) var(--ease-default);
  min-height: 44px;
  -webkit-font-smoothing: antialiased;
}

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

.btn:active {
  transform: translateY(0) scale(0.97);
  box-shadow: var(--shadow-sm);
  transition-duration: 80ms;
}

.btn:focus-visible {
  outline: 3px solid var(--site-primary, #f43f5e);
  outline-offset: 3px;
}

.btn-primary {
  background: var(--gradient-brand, linear-gradient(135deg, #f43f5e 0%, #e11d48 100%));
  color: white;
  border-color: var(--site-primary-hover, #e11d48);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #e11d48 0%, #be123c 100%);
  box-shadow: 0 6px 20px rgba(244, 63, 94, 0.35);
}

.btn-primary:active {
  background: var(--site-primary-dark, #be123c);
  box-shadow: 0 2px 8px rgba(244, 63, 94, 0.22);
}

/* "BINGO!" check button — golden */
.btn-success, .btn-answers, .btn-check {
  background: var(--gradient-gold, linear-gradient(135deg, #f59e0b 0%, #d97706 100%));
  color: white;
  border-color: var(--site-accent-hover, #d97706);
}

.btn-success:hover, .btn-answers:hover, .btn-check:hover {
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
  box-shadow: var(--shadow-gold, 0 6px 20px rgba(245,158,11,0.32));
}


/* ═══════════════════════════════════════════════════════════
   INTRO SECTION
   ═══════════════════════════════════════════════════════════ */

.intro, .intro-section {
  background: linear-gradient(135deg, var(--site-primary-light, #fff1f2) 0%, #fce7f3 100%);
  border: 1px solid var(--site-primary-border, #fecdd3);
  border-radius: var(--radius-md, 12px);
  padding: 1.25rem 1.5rem;
  margin: 1rem 0;
}

.intro h3, .intro-section h3 {
  font-weight: 700;
  color: var(--site-primary-dark, #be123c);
  font-family: var(--font-heading, 'Fredoka One', 'Nunito', system-ui, sans-serif);
}

.intro p, .intro-section p {
  color: var(--site-text-light, #4b5563);
  line-height: 1.7;
}

.intro strong, .intro-section strong {
  color: var(--site-primary-dark, #be123c);
}

.intro a, .intro-section a {
  color: var(--site-primary, #f43f5e);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

.intro a:hover, .intro-section a:hover {
  color: var(--site-primary-hover, #e11d48);
  text-decoration: underline;
}


/* ═══════════════════════════════════════════════════════════
   BODY CONTENT
   ═══════════════════════════════════════════════════════════ */

.body-content {
  background: #ffffff;
  border-radius: 0 0 var(--radius-md, 12px) var(--radius-md, 12px);
  border: 1px solid var(--site-primary-border, #fecdd3);
  border-top: none;
}

.problems-grid { border-top: 2px solid var(--site-primary-border, #fecdd3); }

.problem {
  border-bottom: 1px solid #fce7f3;
  font-size: 1.125rem;
  color: var(--site-text, #1c0714);
  transition: transform var(--dur-fast) var(--ease-default);
}

.problem:hover { transform: translateX(2px); }

.problem .num {
  background: var(--site-primary-light, #fff1f2);
  color: var(--site-primary, #f43f5e);
  font-weight: 700;
  font-family: var(--font-heading, 'Fredoka One', 'Nunito', system-ui, sans-serif);
  font-variant-numeric: tabular-nums lining-nums;
  font-feature-settings: "tnum" 1, "lnum" 1;
}

.problem .answer {
  background: #fef3c7;
  color: #92400e;
  font-weight: 700;
  border-radius: 6px;
}


/* ═══════════════════════════════════════════════════════════
   VARIANT CHIP
   ═══════════════════════════════════════════════════════════ */

.variant-chip {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.7rem;
  border-radius: var(--radius-pill, 9999px);
  color: var(--site-primary, #f43f5e);
  background: var(--site-primary-light, #fff1f2);
  border: 1px solid var(--site-primary-border, #fecdd3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
}


/* ═══════════════════════════════════════════════════════════
   CATEGORY CARDS (homepage list)
   ═══════════════════════════════════════════════════════════ */

.categories-section { padding: 0 0.25rem; }

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
  margin: 1rem 0;
}

.category-card {
  background: #ffffff;
  border: 1.5px solid var(--site-primary-border, #fecdd3);
  border-radius: var(--radius-card, 16px);
  padding: 1.75rem;
  text-decoration: none;
  color: inherit;
  display: block;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur-normal) var(--ease-default),
              box-shadow var(--dur-normal) var(--ease-default),
              border-color var(--dur-normal) var(--ease-default);
  animation: fadeInUp 400ms var(--ease-out) both;
}

/* Animated accent bar on hover */
.category-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--gradient-festive, linear-gradient(90deg, #f43f5e, #f59e0b));
  border-radius: 16px 16px 0 0;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--dur-normal) var(--ease-out);
}

.category-card:hover::before { transform: scaleX(1); }

.category-card:hover {
  transform: translateY(-5px) scale(1.01);
  box-shadow: var(--shadow-lg);
  border-color: var(--site-primary, #f43f5e);
}

.category-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: block;
  line-height: 1;
}

.category-card h3 {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--site-text, #1c0714);
  margin: 0 0 0.5rem;
  font-family: var(--font-heading, 'Fredoka One', 'Nunito', system-ui, sans-serif);
}

.category-card p {
  font-size: 0.875rem;
  color: var(--site-text-muted, #6b7280);
  margin: 0 0 1rem;
  line-height: 1.5;
}

.category-meta {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--site-primary, #f43f5e);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1.5px solid var(--site-primary-border, #fecdd3);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.category-card:hover .category-meta { gap: 0.6rem; }


/* ═══════════════════════════════════════════════════════════
   SUBCATEGORY CARDS (list pages)
   ═══════════════════════════════════════════════════════════ */

.subcategories-section { margin: 1.5rem 0; }

.subcategories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.subcategory-card {
  background: #ffffff;
  border: 2px solid var(--site-primary-border, #fecdd3);
  border-left: 4px solid var(--site-primary, #f43f5e);
  border-radius: var(--radius-card, 16px);
  padding: 1.5rem 1.25rem;
  text-decoration: none;
  color: inherit;
  display: block;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur-normal) var(--ease-default),
              box-shadow var(--dur-normal) var(--ease-default),
              border-color var(--dur-normal) var(--ease-default);
  animation: fadeInUp 400ms var(--ease-out) both;
}

.subcategory-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--site-primary, #f43f5e);
  border-left-color: var(--site-accent, #f59e0b);
}

.subcategory-card h3 {
  font-weight: 700;
  color: var(--site-text, #1c0714);
  font-family: var(--font-heading, 'Fredoka One', 'Nunito', system-ui, sans-serif);
  margin: 0 0 0.4rem;
}

.subcategory-card p {
  font-size: 0.875rem;
  color: var(--site-text-muted, #6b7280);
  margin: 0 0 0.75rem;
  line-height: 1.5;
}

.subcategory-arrow {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--site-primary, #f43f5e);
  margin-top: auto;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  transition: gap var(--dur-fast) var(--ease-default);
}

.subcategory-card:hover .subcategory-arrow { gap: 0.6rem; }


/* ═══════════════════════════════════════════════════════════
   WORKSHEET CARDS
   ═══════════════════════════════════════════════════════════ */

.worksheets-section { margin: 1.5rem 0; }

.worksheets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.75rem;
}

.worksheet-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  padding: 1rem 0.75rem;
  background: #ffffff;
  border: 1.5px solid var(--site-primary-border, #fecdd3);
  border-bottom: 3px solid var(--site-primary, #f43f5e);
  border-radius: var(--radius-md, 12px);
  text-decoration: none;
  color: inherit;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur-normal) var(--ease-default),
              box-shadow var(--dur-normal) var(--ease-default),
              border-bottom-color var(--dur-normal) var(--ease-default);
  animation: fadeInUp 400ms var(--ease-out) both;
}

.worksheet-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-bottom-color: var(--site-accent, #f59e0b);
}

.worksheet-number {
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--site-primary, #f43f5e);
  width: 2.4rem;
  height: 2.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--site-primary-light, #fff1f2);
  border-radius: 50%;
  font-variant-numeric: tabular-nums lining-nums;
  font-feature-settings: "tnum" 1, "lnum" 1;
}

.worksheet-card h3 { font-size: 0.8rem; margin: 0; }

.worksheet-problems {
  font-size: 0.72rem;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}


/* ═══════════════════════════════════════════════════════════
   COLLAPSIBLE CONTENT
   ═══════════════════════════════════════════════════════════ */

.body-content--collapsible {
  margin: 1rem 0;
  border: 1px solid var(--site-primary-border, #fecdd3);
  border-radius: var(--radius-md, 12px);
  overflow: hidden;
}

.content-toggle { border: none; }

.content-toggle summary {
  padding: 0.9rem 1.25rem;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--site-primary-dark, #be123c);
  cursor: pointer;
  background: var(--site-primary-light, #fff1f2);
  border-bottom: 1px solid transparent;
  transition: background var(--dur-fast) var(--ease-default);
  list-style: none;
}

.content-toggle summary::-webkit-details-marker { display: none; }

.content-toggle summary::before {
  content: '+';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.3rem;
  height: 1.3rem;
  margin-right: 0.6rem;
  font-size: 1rem;
  font-weight: 800;
  color: white;
  background: var(--site-primary, #f43f5e);
  border-radius: 50%;
  transition: transform var(--dur-normal) var(--ease-default),
              background var(--dur-fast) var(--ease-default);
}

.content-toggle[open] summary::before {
  content: '−';
  background: var(--site-accent, #f59e0b);
  transform: rotate(180deg);
}

.content-toggle summary:hover { background: #fce7f3; }
.content-toggle[open] summary { border-bottom-color: var(--site-primary-border, #fecdd3); }

.content-toggle-panel { padding: 1.25rem 1.5rem; }

.content-toggle-panel h2 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--site-primary-dark, #be123c);
  margin: 1rem 0 0.5rem;
  font-family: var(--font-heading, 'Fredoka One', 'Nunito', system-ui, sans-serif);
}

.content-toggle-panel h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--site-primary, #f43f5e);
  margin: 0.75rem 0 0.4rem;
}

.content-toggle-panel p { line-height: 1.7; color: var(--site-text-light, #4b5563); margin: 0.4rem 0; }
.content-toggle-panel ul, .content-toggle-panel ol { padding-left: 1.25rem; margin: 0.5rem 0; color: var(--site-text-light, #4b5563); }
.content-toggle-panel li { margin: 0.3rem 0; line-height: 1.6; }
.content-toggle-panel strong { color: var(--site-primary-dark, #be123c); }


/* ═══════════════════════════════════════════════════════════
   SCORE PANEL
   ═══════════════════════════════════════════════════════════ */

.score-panel {
  display: none;
  background: #ffffff;
  border: 2px solid var(--site-primary-border, #fecdd3);
  border-radius: var(--radius-card, 16px);
  padding: 1rem 1.5rem;
  margin-top: 1rem;
  text-align: center;
  transition: opacity var(--dur-normal) var(--ease-out),
              transform var(--dur-normal) var(--ease-out);
}

.score-panel.score-visible {
  display: block;
  animation: scoreReveal 350ms var(--ease-out);
}

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

.score-icon { font-size: 2rem; line-height: 1; }
.score-detail { font-size: 1.1rem; font-weight: 600; color: var(--site-text, #1c0714); }

.score-pct {
  font-size: 2rem;
  font-weight: 800;
  color: var(--site-primary, #f43f5e);
  font-family: var(--font-heading, 'Fredoka One', 'Nunito', system-ui, sans-serif);
  font-variant-numeric: tabular-nums lining-nums;
  font-feature-settings: "tnum" 1, "lnum" 1;
}

/* WIN state — golden celebration */
.score-panel.win, .bingo-status.win {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  border-color: var(--site-accent, #f59e0b);
  color: #92400e;
  animation: scoreReveal 350ms var(--ease-out), winCelebrate 0.8s ease-in-out 400ms infinite alternate;
}

@keyframes winCelebrate {
  from { transform: translateY(0) scale(1); }
  to   { transform: translateY(-4px) scale(1.01); }
}

.score-retry {
  background: var(--site-primary-light, #fff1f2);
  color: var(--site-primary, #f43f5e);
  border: 2px solid var(--site-primary-border, #fecdd3);
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease-default),
              color var(--dur-fast) var(--ease-default);
}

.score-retry:hover {
  background: var(--gradient-brand, linear-gradient(135deg, #f43f5e, #e11d48));
  color: white;
  border-color: var(--site-primary, #f43f5e);
}


/* ═══════════════════════════════════════════════════════════
   CONTENT SECTION (SEO prose)
   ═══════════════════════════════════════════════════════════ */

.content-section { padding: 1.5rem; margin: 1rem 0; }

.content-section h2 {
  font-family: var(--font-heading, 'Fredoka One', 'Nunito', system-ui, sans-serif);
  color: var(--site-primary-dark, #be123c);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.content-section h3 {
  color: var(--site-primary, #f43f5e);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.content-section p { line-height: 1.7; color: var(--site-text-light, #4b5563); }

.content-section a, .intro a {
  color: var(--site-primary, #f43f5e);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  text-decoration-color: color-mix(in srgb, var(--site-primary) 35%, transparent);
}

.content-section a:hover, .intro a:hover {
  text-decoration-color: var(--site-primary);
}


/* ═══════════════════════════════════════════════════════════
   INTERACTIVE ANSWER INPUT
   ═══════════════════════════════════════════════════════════ */

.answer-input {
  border: 2px solid var(--site-primary-border, #fecdd3);
  border-radius: var(--radius-sm, 8px);
  background: #ffffff;
  color: var(--site-text, #1c0714);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  transition: border-color var(--dur-fast) var(--ease-default),
              box-shadow var(--dur-fast) var(--ease-default);
}

.answer-input:focus {
  border-color: var(--site-primary, #f43f5e);
  box-shadow: 0 0 0 3px rgba(244, 63, 94, 0.14);
}

.problem.is-correct .answer-input { border-color: var(--color-success, #22c55e); background: #f0fdf4; color: #166534; }
.problem.is-wrong   .answer-input { border-color: var(--color-danger, #ef4444);  background: #fef2f2; color: #991b1b; }
.problem.is-empty   .answer-input { border-color: var(--color-warning, #f59e0b); background: #fffbeb; }
.problem.is-correct { border-left-color: var(--color-success, #22c55e) !important; }
.problem.is-wrong   { border-left-color: var(--color-danger, #ef4444)  !important; }


/* ═══════════════════════════════════════════════════════════
   SEO COMPONENTS
   ═══════════════════════════════════════════════════════════ */

.seo-components  { margin: 1.5rem 0; }
.seo-components--primary  { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.seo-components--secondary { margin-top: 1rem; }
.seo-more-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.25rem; }

.seo-block {
  background: #ffffff;
  border: 1px solid rgba(244, 63, 94, 0.08);
  border-radius: var(--radius-md, 12px);
  padding: 1.25rem 1.4rem;
  box-shadow: var(--shadow-sm), 0 1px 3px rgba(244, 63, 94, 0.04);
  transition: transform var(--dur-normal) var(--ease-default),
              box-shadow var(--dur-normal) var(--ease-default);
  animation: fadeInUp 400ms var(--ease-out) both;
}

.seo-block:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md), 0 2px 6px rgba(244, 63, 94, 0.08);
}

.seo-card {
  background: var(--site-background, #ffffff);
  border-color: var(--site-border, #fce7f3);
  border-top: none;
}

.seo-card::before { background: var(--site-primary, #f43f5e); }

/* Card band colors */
.seo-card.features::before       { background: #f43f5e; }
.seo-card.benefits::before       { background: #f59e0b; }
.seo-card.faq::before            { background: #be123c; }
.seo-card.tips::before           { background: #d97706; }
.seo-card.steps::before          { background: #f43f5e; }
.seo-card.tutorial::before       { background: #f59e0b; }
.seo-card.examples::before       { background: #f43f5e; }
.seo-card.use-cases::before      { background: #ec4899; }
.seo-card.common-mistakes::before{ background: #ef4444; }
.seo-card.practice::before       { background: #f97316; }
.seo-card.requirements::before   { background: #6366f1; }
.seo-card.resources::before      { background: #14b8a6; }
.seo-card.next-steps::before     { background: #f43f5e; }
.seo-card.summary::before        { background: #64748b; }
.seo-card.related::before        { background: #a855f7; }

.seo-components--secondary .seo-block { background: var(--site-primary-light, #fff1f2); }
.seo-block.tutorial       { border-left: 3px solid #f43f5e; }
.seo-block.examples       { border-left: 3px solid #f59e0b; }
.seo-block.use-cases      { border-left: 3px solid #ec4899; }
.seo-block.common-mistakes{ border-left: 3px solid #ef4444; }
.seo-block.practice       { border-left: 3px solid #f97316; }
.seo-block.requirements   { border-left: 3px solid #6366f1; }
.seo-block.resources      { border-left: 3px solid #14b8a6; }
.seo-block.next-steps     { border-left: 3px solid #be123c; }
.seo-block.summary        { border-left: 3px solid #64748b; }
.seo-block.related        { border-left: 3px solid #a855f7; }

/* SEO typography */
.seo-block h2 { font-size: 1.1rem; font-weight: 700; color: var(--site-primary-dark, #be123c); margin: 0 0 0.6rem; font-family: var(--font-heading, 'Fredoka One', 'Nunito', system-ui, sans-serif); }
.seo-block h3 { font-size: 1rem; font-weight: 700; color: var(--site-primary, #f43f5e); margin: 0.6rem 0 0.4rem; }
.seo-block h4 { font-size: 0.95rem; font-weight: 600; color: #e11d48; margin: 0.5rem 0 0.3rem; }
.seo-block p  { font-size: 0.92rem; line-height: 1.7; color: var(--site-text-light, #4b5563); margin: 0.35rem 0; max-width: 68ch; }
.seo-block ul, .seo-block ol { padding-left: 1.2rem; margin: 0.4rem 0; }
.seo-block li { font-size: 0.92rem; line-height: 1.6; color: var(--site-text-light, #4b5563); margin: 0.25rem 0; }
.seo-block strong { color: var(--site-primary-dark, #be123c); }
.seo-block a {
  color: var(--site-primary, #f43f5e);
  text-decoration: none;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  text-decoration-color: color-mix(in srgb, var(--site-primary) 35%, transparent);
}
.seo-block a:hover { text-decoration: underline; text-decoration-color: var(--site-primary); }
.seo-block blockquote {
  border-left: 3px solid var(--site-primary, #f43f5e);
  padding: 0.75rem 1.25rem;
  margin: 1rem 0;
  font-style: italic;
  color: var(--site-text-muted, #6b7280);
  background: color-mix(in srgb, var(--site-primary) 4%, white);
  border-radius: 0 8px 8px 0;
}

/* FAQ details */
.seo-block details { border-bottom: 1px solid #fce7f3; padding: 0.5rem 0; }
.seo-block details:last-child { border-bottom: none; }
.seo-block details summary { font-weight: 700; font-size: 0.92rem; cursor: pointer; list-style: none; color: var(--site-primary, #f43f5e); line-height: 1.4; }
.seo-block details summary::-webkit-details-marker { display: none; }
.seo-block details summary::before { content: "▸"; margin-right: 0.4rem; color: var(--site-primary, #f43f5e); display: inline-block; transition: transform var(--dur-fast) var(--ease-default); }
.seo-block details[open] summary::before { transform: rotate(90deg); }
.seo-block details p { padding: 0.3rem 0 0.3rem 1rem; color: var(--site-text-muted, #6b7280); font-size: 0.88rem; line-height: 1.7; max-width: 60ch; }


/* ═══════════════════════════════════════════════════════════
   PAGE NAVIGATION
   ═══════════════════════════════════════════════════════════ */

.page-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  padding: 1rem;
  background: #ffffff;
  border: 1px solid var(--site-primary-border, #fecdd3);
  border-radius: var(--radius-md, 12px);
  box-shadow: var(--shadow-sm);
}

.btn-nav {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm, 8px);
  color: var(--site-primary, #f43f5e);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background var(--dur-fast) var(--ease-default);
}

.btn-nav:hover { background: var(--site-primary-light, #fff1f2); }
.btn-nav.disabled { color: #d1d5db; cursor: not-allowed; }


/* ═══════════════════════════════════════════════════════════
   BINGO INTERACTION CONTROLS (Phase 1)
   ═══════════════════════════════════════════════════════════ */

.bingo-cell-marked {
  background: rgba(244, 63, 94, 0.18);
  border-radius: 50%;
}

.bingo-cell-win {
  background: rgba(245, 158, 11, 0.25);
  border-radius: 50%;
}

.bingo-called-list {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

.ia-game-controls {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
}

.ia-btn--active {
  background: var(--gradient-gold, linear-gradient(135deg, #f59e0b, #d97706));
  color: white;
  border-color: var(--site-accent-hover, #d97706);
}


/* ═══════════════════════════════════════════════════════════
   ANIMATION KEYFRAMES
   ═══════════════════════════════════════════════════════════ */

@keyframes fadeIn    { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp   { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInUp  { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
@keyframes bingoMark {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.35); }
  70%  { transform: scale(0.9); }
  100% { transform: scale(1); }
}
@keyframes celebrate {
  from { transform: translateY(0); }
  to   { transform: translateY(-4px); }
}

.fade-in  { animation: fadeIn  300ms var(--ease-out); }
.slide-up { animation: slideUp 300ms var(--ease-out); }

/* Staggered card entrance delays */
.category-card:nth-child(1),  .subcategory-card:nth-child(1),  .worksheet-card:nth-child(1),  .seo-block:nth-child(1)  { animation-delay: 0ms;   }
.category-card:nth-child(2),  .subcategory-card:nth-child(2),  .worksheet-card:nth-child(2),  .seo-block:nth-child(2)  { animation-delay: 60ms;  }
.category-card:nth-child(3),  .subcategory-card:nth-child(3),  .worksheet-card:nth-child(3),  .seo-block:nth-child(3)  { animation-delay: 120ms; }
.category-card:nth-child(4),  .subcategory-card:nth-child(4),  .worksheet-card:nth-child(4),  .seo-block:nth-child(4)  { animation-delay: 180ms; }
.category-card:nth-child(5),  .subcategory-card:nth-child(5),  .worksheet-card:nth-child(5),  .seo-block:nth-child(5)  { animation-delay: 240ms; }
.category-card:nth-child(n+6),.subcategory-card:nth-child(n+6),.worksheet-card:nth-child(n+6),.seo-block:nth-child(n+6){ animation-delay: 300ms; }


/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
  .hero h1 { font-size: 2rem; }
  .hero .subtitle { max-width: 100%; }
  .hero-stats { gap: 1rem; }
  .hero::before, .hero::after { display: none; }
  .stat-number { font-size: 1.4rem; }
  .categories-grid  { grid-template-columns: 1fr; }
  .subcategories-grid { grid-template-columns: 1fr; }
  .worksheets-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
  .seo-components--primary { grid-template-columns: 1fr; }
  .seo-more-grid { grid-template-columns: 1fr; }
  .page-navigation { flex-wrap: wrap; justify-content: center; }
}

@media (max-width: 480px) {
  .hero { padding: 2.5rem 1rem 2rem; }
  .hero h1 { font-size: 1.6rem; }
  .hero-stats { flex-direction: column; gap: 0.75rem; }
}


/* ═══════════════════════════════════════════════════════════
   DARK MODE
   ═══════════════════════════════════════════════════════════ */

@media (prefers-color-scheme: dark) {
  :root {
    --site-background: #200810;
    --site-surface:    #2d1020;
    --site-text:       #fce7f3;
    --site-text-muted: #9ca3af;
    --site-text-light: #f3f4f6;
    --site-border:     rgba(244, 63, 94, 0.2);
    --site-border-dark:rgba(244, 63, 94, 0.3);
    --site-primary-light:  rgba(244, 63, 94, 0.12);
    --site-primary-border: rgba(244, 63, 94, 0.25);
  }

  body {
    background: linear-gradient(160deg, #200810 0%, #150510 40%, #1a1005 100%);
    background-attachment: fixed;
    color: #fce7f3;
  }

  .hero {
    background: linear-gradient(160deg, #2d1020 0%, #1a0c14 50%, #1a1005 100%);
    border-bottom-color: rgba(244, 63, 94, 0.3);
  }

  .hero h1 { color: #f43f5e; }
  .hero .subtitle { color: #fce7f3; }

  .page-header {
    background: linear-gradient(135deg, #3d0a1e 0%, #2a0812 100%);
  }

  .page-header .breadcrumb {
  }

  .breadcrumb {
  }

  .breadcrumb ol  { color: #9ca3af; }
  .breadcrumb a   { color: #fb7185; }
  .breadcrumb li:last-child { color: #fce7f3; }

  .stat-item {
    background: rgba(244, 63, 94, 0.10);
    border-color: rgba(244, 63, 94, 0.25);
  }

  .stat-number { color: #fb7185; }
  .stat-label  { color: #9ca3af; }

  .category-card, .subcategory-card, .worksheet-card {
    background: #2d1020;
    border-color: rgba(244, 63, 94, 0.2);
    color: #fce7f3;
  }

  .category-card:hover, .subcategory-card:hover, .worksheet-card:hover {
    background: #3a1528;
    border-color: rgba(244, 63, 94, 0.45);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.5);
  }

  .category-card h3, .subcategory-card h3 { color: #fce7f3; }
  .category-card p, .subcategory-card p   { color: #9ca3af; }
  .category-meta, .subcategory-arrow      { color: #fb7185; }
  .worksheet-number { background: rgba(244, 63, 94, 0.15); color: #fb7185; }
  .worksheet-card h3 { color: #fce7f3; }

  .body-content  { background: #2d1020; border-color: rgba(244, 63, 94, 0.2); }
  .set-switcher  { background: #2d1020; border-color: rgba(244, 63, 94, 0.2); }

  .set-btn {
    background: #2d1020;
    border-color: rgba(244, 63, 94, 0.2);
    color: #fce7f3;
  }

  .set-btn:hover   { background: #3a1528; border-color: #f43f5e; }
  .set-btn.active  { background: linear-gradient(135deg, #f43f5e, #e11d48); color: #fff; }

  .btn { background: #2d1020; color: #fce7f3; box-shadow: 0 1px 3px rgba(0,0,0,0.35); }

  .intro, .intro-section {
    background: linear-gradient(135deg, rgba(244,63,94,0.1) 0%, rgba(244,63,94,0.05) 100%);
    border-color: rgba(244, 63, 94, 0.2);
  }

  .intro h3, .intro-section h3  { color: #fecdd3; }
  .intro p, .intro-section p    { color: #d1d5db; }

  .content-toggle summary        { background: #2d1020; color: #fecdd3; }
  .content-toggle summary:hover  { background: #3a1528; }
  .content-toggle-panel          { background: #2d1020; }
  .content-toggle-panel h2       { color: #fecdd3; }
  .content-toggle-panel h3       { color: #fb7185; }
  .content-toggle-panel p        { color: #d1d5db; }
  .content-toggle-panel strong   { color: #fecdd3; }

  .score-panel { background: #2d1020; border-color: rgba(244, 63, 94, 0.2); }
  .score-pct   { color: #fb7185; }
  .score-detail{ color: #fce7f3; }

  .content-section   { background: #2d1020; }
  .content-section h2{ color: #fecdd3; }
  .content-section h3{ color: #fb7185; }
  .content-section p { color: #d1d5db; }

  .seo-block {
    background: #2d1020;
    border-color: rgba(244, 63, 94, 0.15);
    box-shadow: 0 2px 8px rgba(0,0,0,0.35);
  }

  .seo-block:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.55); }
  .seo-components--secondary .seo-block { background: #200810; }
  .seo-block h2     { color: #fecdd3; }
  .seo-block h3     { color: #fb7185; }
  .seo-block p,
  .seo-block li     { color: #d1d5db; }
  .seo-block strong { color: #fecdd3; }
  .seo-block a      { color: #fb7185; }
  .seo-block details{ border-bottom-color: rgba(244, 63, 94, 0.15); }
  .seo-block details summary { color: #fb7185; }
  .seo-block details p       { color: #9ca3af; }

  .page-navigation { background: #2d1020; border-color: rgba(244, 63, 94, 0.2); box-shadow: 0 1px 3px rgba(0,0,0,0.35); }
  .btn-nav         { color: #fb7185; }
  .btn-nav:hover   { background: #3a1528; }

  .answer-input { background: #200810; border-color: rgba(244, 63, 94, 0.25); color: #fce7f3; }
  .answer-input:focus { border-color: #f43f5e; box-shadow: 0 0 0 3px rgba(244, 63, 94, 0.2); }

  .problem { color: #fce7f3; }
  .problem .num { background: rgba(244, 63, 94, 0.15); color: #fb7185; }
  .variant-chip { background: rgba(244, 63, 94, 0.12); color: #fb7185; border-color: rgba(244, 63, 94, 0.3); }

  .section-header h2  { color: #fce7f3; }
  .section-header p   { color: #9ca3af; }

  ::selection      { background: rgba(244, 63, 94, 0.35); color: #fff; }
  ::-moz-selection { background: rgba(244, 63, 94, 0.35); color: #fff; }
  ::-webkit-scrollbar-track { background: #150510; }
  ::-webkit-scrollbar-thumb { border-color: #150510; }
}


/* ═══════════════════════════════════════════════════════════
   PRINT
   ═══════════════════════════════════════════════════════════ */

@media print {
  body { background: #fff !important; color: #000 !important; }

  .hero::before, .hero::after,
  .page-header::after { display: none !important; }

  .hero {
    background: #fff !important;
    border-bottom: 2pt solid #f43f5e !important;
    padding: 1rem 0 !important;
  }

  .hero h1 { color: #f43f5e !important; }

  .category-card, .subcategory-card, .worksheet-card, .seo-block {
    animation: none !important;
    box-shadow: none !important;
    break-inside: avoid;
    border-color: #fce7f3 !important;
  }

  .category-card::before, .category-card::after { display: none !important; }
  .page-navigation, .set-switcher, .score-retry  { display: none !important; }

  .stat-item {
    background: #fff !important;
    border: 1pt solid #fce7f3 !important;
  }

  .btn { box-shadow: none !important; }

  .section-header h2::after {
    background: #f43f5e !important;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }

  .ia-game-controls,
  .ia-streak-badge,
  .ia-btn,
  .ia-data-panel,
  .no-print { display: none !important; }
}
