@charset "UTF-8";
/**
 * Full Skin — 010-wordjumble
 * Theme:   Warm Amber + Forest Green
 * Feel:    NYT Games meets Wordle — cozy editorial word-game energy
 * Heading: Merriweather serif
 */

/* ═══ Reduced Motion ═══ */
@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 + Scrollbar ═══ */
::selection          { background: #fef3c7; color: #78350f; }
::-moz-selection     { background: #fef3c7; color: #78350f; }

::-webkit-scrollbar       { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #fffbeb; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #d97706 0%, #b45309 100%);
  border-radius: 5px;
  border: 2px solid #fffbeb;
}
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #b45309 0%, #78350f 100%);
}

/* ═══ Focus ═══ */
*:focus-visible {
  outline: 3px solid #d97706;
  outline-offset: 2px;
  border-radius: 4px;
  box-shadow: 0 0 0 5px rgba(217, 119, 6, 0.14);
}

/* ═══ Body Background ═══ */
body {
  background: linear-gradient(160deg, #fffbeb 0%, #ffffff 50%, #f0fdf4 100%);
  background-attachment: fixed;
  color: var(--site-text, #1c1401);
}

/* ═══ Typography ═══ */
.page-header h1 {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--site-primary-dark, #78350f);
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.page-header .subtitle {
  color: var(--site-primary-hover, #b45309);
  font-size: 1.05rem;
  margin-top: 0.4rem;
}

/* ═══ Hero — Editorial, newspaper-grid texture ═══ */
.hero {
  background: #fffdf5;
  /* Subtle newspaper-column grid texture */
  background-image:
    linear-gradient(160deg, #fffbeb 0%, #ffffff 55%, #f0fdf4 100%),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 79px,
      rgba(217, 119, 6, 0.05) 79px,
      rgba(217, 119, 6, 0.05) 80px
    );
  background-blend-mode: normal;
  border-bottom: 2px solid var(--site-primary-border, #fcd34d);
  position: relative;
  overflow: hidden;
}

/* Warm radial glow — top right */
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 460px;
  height: 460px;
  background: radial-gradient(circle, rgba(217, 119, 6, 0.07) 0%, transparent 68%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

/* Soft green accent glow — bottom left */
.hero::after {
  content: '';
  position: absolute;
  bottom: -40%;
  left: -8%;
  width: 340px;
  height: 340px;
  background: radial-gradient(circle, rgba(22, 163, 74, 0.05) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.hero > * { position: relative; z-index: 1; }

.hero h1 {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--site-primary-dark, #78350f);
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.hero .subtitle {
  font-size: 1.1rem;
  color: var(--site-text-light, #57534e);
  margin-top: 0.75rem;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

/* Hero stats */
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 1.75rem;
  flex-wrap: wrap;
}

.stat-item {
  text-align: center;
  padding: 1rem 1.5rem;
  background: #ffffff;
  border: 1.5px solid var(--site-border-dark, #fde68a);
  border-radius: var(--radius-card, 12px);
  box-shadow: var(--shadow-sm);
  min-width: 120px;
  transition: transform var(--dur-normal) var(--ease),
              box-shadow var(--dur-normal) var(--ease);
}

.stat-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.stat-number {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  background: linear-gradient(135deg, #d97706, #b45309);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  display: block;
  font-size: 0.8rem;
  color: var(--site-text-muted, #6b7280);
  margin-top: 0.2rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  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, #d97706); text-decoration: none; }
.breadcrumb a:hover { color: var(--site-primary-hover, #b45309); text-decoration: underline; }
.breadcrumb li:not(:last-child)::after { content: '›'; color: #fcd34d; font-weight: 700; margin-left: 0.3rem; }
.breadcrumb li:last-child { color: var(--site-text, #1c1401); font-weight: 600; }

/* ═══ Set Switcher ═══ */
.set-switcher {
  background: #ffffff;
  border: 1px solid var(--site-border-dark, #fde68a);
  border-radius: var(--radius-card, 12px);
  box-shadow: var(--shadow-sm);
}

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

.set-btn {
  background: #ffffff;
  border: 2px solid var(--site-border-dark, #fde68a);
  border-radius: var(--radius-button, 10px);
  color: var(--site-text, #1c1401);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color var(--dur-fast) var(--ease),
              background var(--dur-fast) var(--ease);
}

.set-btn:hover { border-color: var(--site-primary, #d97706); background: var(--site-primary-light, #fffbeb); }
.set-btn.active { background: var(--site-primary, #d97706); color: #ffffff; border-color: var(--site-primary-hover, #b45309); }

/* ═══ Buttons ═══ */
.btn {
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  border-radius: var(--radius-button, 10px);
  background: #ffffff;
  color: var(--site-text, #1c1401);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur-normal) var(--ease),
              box-shadow var(--dur-normal) var(--ease),
              background var(--dur-fast) var(--ease);
}

.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;
}

/* Primary = golden amber */
.btn-primary {
  background: linear-gradient(180deg, #d97706 0%, #b45309 100%);
  color: #ffffff;
  border-color: #b45309;
}
.btn-primary:hover {
  background: linear-gradient(180deg, #b45309 0%, #78350f 100%);
  box-shadow: 0 6px 18px rgba(217, 119, 6, 0.30);
}

/* Success / Answers / Check = forest green */
.btn-success, .btn-answers, .btn-check {
  background: linear-gradient(180deg, #16a34a 0%, #15803d 100%);
  color: #ffffff;
  border-color: #15803d;
}
.btn-success:hover, .btn-answers:hover, .btn-check:hover {
  background: linear-gradient(180deg, #15803d 0%, #14532d 100%);
  box-shadow: 0 6px 18px rgba(22, 163, 74, 0.28);
}

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

/* ═══ Intro Section ═══ */
.intro, .intro-section {
  background: linear-gradient(135deg, #fffbeb 0%, #fef9f0 100%);
  border: 1px solid var(--site-border-dark, #fde68a);
  border-radius: var(--radius-card, 12px);
  padding: 1.25rem 1.5rem;
  margin: 1rem 0;
}

.intro h3, .intro-section h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--site-primary-dark, #78350f);
}

.intro p, .intro-section p { color: var(--site-text-light, #57534e); line-height: 1.7; }
.intro strong, .intro-section strong { color: var(--site-primary-dark, #78350f); }

/* ═══ Body Content ═══ */
.body-content {
  background: #ffffff;
  border-radius: 0 0 var(--radius-card, 12px) var(--radius-card, 12px);
  border: 1px solid var(--site-border-dark, #fde68a);
  border-top: none;
}

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

.problem {
  border-bottom: 1px solid var(--site-border, #fef3c7);
  font-size: 1.125rem;
  color: var(--site-text, #1c1401);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

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

/* Problem number badge */
.problem .num {
  background: var(--site-primary-light, #fffbeb);
  color: var(--site-primary, #d97706);
  font-weight: 700;
  font-family: var(--font-heading);
}

/* Answer badge */
.problem .answer {
  background: #fefce8;
  color: var(--site-primary-hover, #b45309);
  font-weight: 700;
  border-radius: 8px;
}

/* ═══ Variant Chip ═══ */
.variant-chip {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-pill, 9999px);
  color: var(--site-primary-hover, #b45309);
  background: var(--site-primary-light, #fffbeb);
  border: 1px solid var(--site-primary-border, #fcd34d);
}

/* ═══ Category Cards ═══ */
.section-header { margin: 2rem 0 1rem; }

.section-header h2 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--site-text, #1c1401);
  position: relative;
  padding-bottom: 0.6rem;
  letter-spacing: -0.01em;
}

.section-header h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: linear-gradient(90deg, #d97706, #16a34a);
  border-radius: 2px;
}

.section-header p { color: var(--site-text-muted, #6b7280); margin-top: 0.25rem; }
.categories-section { padding: 0 0.5rem; }

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

.category-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: #ffffff;
  border: 1px solid var(--site-border-dark, #fde68a);
  border-left: 4px solid var(--site-primary, #d97706);
  border-radius: var(--radius-card, 12px);
  box-shadow: var(--premium-shadow-rest);
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
  transition: transform var(--premium-transition),
              box-shadow var(--premium-transition);
}

/* Bottom accent line on hover */
.category-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 12px;
  right: 12px;
  height: 3px;
  background: linear-gradient(90deg, #d97706, #16a34a);
  border-radius: 3px 3px 0 0;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--premium-transition);
}

.category-card:hover {
  border-left-color: var(--site-accent, #16a34a);
  transform: var(--premium-lift);
  box-shadow: var(--premium-shadow-hover);
}

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

.category-icon { font-size: 2.2rem; line-height: 1; flex-shrink: 0; }
.category-card h3 { font-weight: 700; font-size: 1.05rem; color: var(--site-text, #1c1401); margin: 0 0 0.25rem; }
.category-card p  { font-size: 0.85rem; color: var(--site-text-muted, #6b7280); line-height: 1.4; margin: 0; }
.category-meta    { font-size: 0.85rem; font-weight: 600; color: var(--site-primary, #d97706); margin-top: 0.5rem; }

/* ═══ Subcategory Cards ═══ */
.subcategories-section { margin: 1.5rem 0; }
.difficulty-icon { font-size: 1.3rem; }

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

.subcategory-card {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 1.25rem 1rem;
  background: #ffffff;
  border: 1.5px solid var(--site-border-dark, #fde68a);
  border-left: 4px solid var(--site-primary, #d97706);
  border-radius: var(--radius-card, 12px);
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
  box-shadow: var(--premium-shadow-rest);
  transition: transform var(--premium-transition),
              box-shadow var(--premium-transition),
              border-color var(--premium-transition);
}

.subcategory-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 12px;
  right: 12px;
  height: 3px;
  background: linear-gradient(90deg, #d97706, #16a34a);
  border-radius: 3px 3px 0 0;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--premium-transition);
}

.subcategory-card:hover {
  border-color: var(--site-primary-border, #fcd34d);
  transform: var(--premium-lift);
  box-shadow: var(--premium-shadow-hover);
}

.subcategory-card:hover::after { transform: scaleX(1); }

.subcategory-card h3   { font-weight: 700; color: var(--site-text, #1c1401); }
.subcategory-card p    { font-size: 0.85rem; color: var(--site-text-muted, #6b7280); }
.subcategory-arrow     { font-size: 0.85rem; font-weight: 600; color: var(--site-primary, #d97706); margin-top: auto; }

/* ═══ Worksheet Cards ═══ */
.worksheets-section { margin: 1.5rem 0 2rem; }

.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: 0.75rem 0.5rem;
  background: #ffffff;
  border: 1.5px solid var(--site-border-dark, #fde68a);
  border-radius: var(--radius-card, 12px);
  text-decoration: none;
  color: inherit;
  text-align: center;
  box-shadow: var(--premium-shadow-rest);
  transition: transform var(--premium-transition),
              box-shadow var(--premium-transition),
              border-color var(--premium-transition),
              background var(--premium-transition);
}

.worksheet-card:hover {
  border-color: var(--site-primary, #d97706);
  background: var(--site-primary-light, #fffbeb);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px var(--premium-glow);
}

.worksheet-number  { font-weight: 700; font-size: 1.1rem; color: var(--site-primary, #d97706); }
.worksheet-problems{ font-size: 0.8rem; color: var(--site-text-muted, #6b7280); }

/* ═══ Content Toggle ═══ */
.body-content--collapsible {
  margin: 1rem 0;
  border: 1px solid var(--site-border-dark, #fde68a);
  border-radius: var(--radius-card, 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, #78350f);
  cursor: pointer;
  background: var(--site-primary-light, #fffbeb);
  border-bottom: 1px solid transparent;
  transition: background var(--dur-fast) var(--ease);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.content-toggle summary::after {
  content: '⌄';
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--site-primary, #d97706);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  background: var(--site-border-dark, #fde68a);
  border-radius: 50%;
  transition: transform 200ms ease;
}

.content-toggle[open] summary::after { transform: rotate(180deg); }
.content-toggle summary:hover { background: #fef3c7; }
.content-toggle[open] summary { border-bottom-color: var(--site-border-dark, #fde68a); }

.content-toggle-panel { padding: 1.25rem 1.5rem; }
.content-toggle-panel h2 { font-family: var(--font-heading); font-size: 1.3rem; font-weight: 700; color: var(--site-primary-dark, #78350f); margin: 1rem 0 0.5rem; }
.content-toggle-panel h3 { font-size: 1.1rem; font-weight: 700; color: var(--site-primary-hover, #b45309); margin: 0.75rem 0 0.4rem; }
.content-toggle-panel p  { line-height: 1.7; color: var(--site-text-light, #57534e); 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, #57534e); }
.content-toggle-panel li { margin: 0.3rem 0; line-height: 1.6; }
.content-toggle-panel strong { color: var(--site-primary-dark, #78350f); }

/* ═══ Score Panel ═══ */
.score-panel {
  display: none;
  background: #ffffff;
  border: 1px solid var(--site-border-dark, #fde68a);
  border-radius: var(--radius-card, 12px);
  padding: 1.5rem;
  margin-top: 1.5rem;
  transition: all 200ms ease;
}

.score-panel.score-visible { display: block; animation: scoreSlide 300ms ease-out; }

@keyframes scoreSlide {
  from { opacity: 0; transform: translateX(-20px); }
  to   { opacity: 1; transform: translateX(0); }
}

.score-inner    { position: relative; display: flex; align-items: center; gap: 1rem; }
.score-icon     { font-size: 1.5rem; line-height: 1; }
.score-detail   { font-size: 1rem; font-weight: 600; color: var(--site-text, #1c1401); }
.score-pct      { font-size: 1.6rem; font-weight: 700; color: var(--site-primary, #d97706); font-family: var(--font-heading); }

/* ═══ Content Section ═══ */
.content-section { padding: 1.5rem; margin: 1rem 0; }
.content-section h2 { font-family: var(--font-heading); color: var(--site-primary-dark, #78350f); font-weight: 700; margin-bottom: 0.75rem; }
.content-section h3 { color: var(--site-primary-hover, #b45309); font-weight: 700; }
.content-section p  { line-height: 1.7; color: var(--site-text-light, #57534e); }

/* ═══ Answer Input ═══ */
.answer-input {
  border: 2px solid var(--site-border-dark, #fde68a);
  border-radius: var(--radius-sm, 6px);
  background: #ffffff;
  color: var(--site-text, #1c1401);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  transition: border-color var(--dur-fast) var(--ease),
              box-shadow var(--dur-fast) var(--ease);
}

.answer-input:focus {
  border-color: var(--site-primary, #d97706);
  box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.14);
  outline: none;
}

/* Problem states */
.problem.is-correct .answer-input { border-color: var(--site-accent, #16a34a); background: #f0fdf4; color: var(--site-accent-dark, #14532d); }
.problem.is-wrong   .answer-input { border-color: #dc2626; background: #fef2f2; color: #991b1b; }
.problem.is-empty   .answer-input { border-color: var(--site-primary-border, #fcd34d); background: #fffbeb; }
.problem.is-correct { border-left-color: var(--site-accent, #16a34a) !important; }
.problem.is-wrong   { border-left-color: #dc2626 !important; }

/* ═══ Score Retry ═══ */
.score-retry {
  background: var(--site-primary-light, #fffbeb);
  color: var(--site-primary, #d97706);
  border: 2px solid var(--site-primary-border, #fcd34d);
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease);
}

.score-retry:hover {
  background: var(--site-primary, #d97706);
  color: #ffffff;
  border-color: var(--site-primary-hover, #b45309);
}

/* ═══ Word Jumble — Letter-Tile Grid ═══ */
.word-jumble-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  padding: 1rem 0;
}

/* Each word item — tile card aesthetic */
.word-jumble-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  border: 1.5px solid var(--site-border-dark, #fde68a);
  border-radius: var(--radius-card, 12px);
  background: #ffffff;
  box-shadow: var(--premium-shadow-rest);
  transition: transform var(--premium-transition),
              box-shadow var(--premium-transition),
              border-color var(--premium-transition);
}

.word-jumble-item:hover {
  border-color: var(--site-primary-border, #fcd34d);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px var(--premium-glow);
}

.word-jumble-item .num {
  font-weight: 700;
  color: var(--site-text-muted, #6b7280);
  min-width: 2em;
}

/* Jumbled word: letter-tile aesthetic — cream bg, amber border, 3D pressed look */
.jumbled-word {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.18em;
  color: var(--site-primary-dark, #78350f);
  min-width: 6em;
  padding: 0.25rem 0.5rem;
  background: var(--site-surface, #fefce8);
  border: 1.5px solid var(--site-primary-border, #fcd34d);
  border-radius: var(--radius-tile, 8px);
  box-shadow: var(--shadow-tile);
}

/* Word item states */
.word-jumble-item.is-correct               { border-color: var(--site-accent, #16a34a); }
.word-jumble-item.is-correct .answer-input { border-color: var(--site-accent, #16a34a); background: #f0fdf4; }
.word-jumble-item.is-wrong                 { border-color: #dc2626; }
.word-jumble-item.is-wrong .answer-input   { border-color: #dc2626; background: #fef2f2; }
.word-jumble-item.is-empty .answer-input   { border-color: var(--site-primary-border, #fcd34d); background: #fffbeb; }

/* Answer key table */
.word-jumble-answers .answers-table {
  width: 100%;
  border-collapse: collapse;
}

.word-jumble-answers th,
.word-jumble-answers td {
  padding: 0.5rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--site-border-dark, #fde68a);
}

.answer-word {
  font-family: var(--font-mono);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--site-accent, #16a34a);
  letter-spacing: 0.1em;
}

/* Print layout */
.word-jumble-print { display: none; }

.print-table {
  width: 100%;
  border-collapse: collapse;
}

.print-table th,
.print-table td {
  padding: 0.6rem 1rem;
  text-align: left;
  border-bottom: 1px solid #ccc;
}

.print-table .jumbled {
  font-family: var(--font-mono);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.12em;
}

.print-table .blank-line {
  font-family: var(--font-mono);
  color: #ccc;
}

.hint {
  font-size: 0.8em;
  color: var(--site-text-muted, #6b7280);
  font-style: italic;
  white-space: nowrap;
}

/* ═══ Page Navigation ═══ */
.page-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  margin: 2rem 0 1rem;
  padding: 1rem;
  background: #ffffff;
  border: 1px solid var(--site-border-dark, #fde68a);
  border-radius: var(--radius-card, 12px);
  box-shadow: var(--shadow-sm);
}

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

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

/* ═══ SEO Components ═══ */
.seo-components {
  margin: 2.5rem 0;
  border-top: 1px solid var(--site-border, #fef3c7);
  padding-top: 2rem;
}

.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 var(--site-border-dark, #fde68a);
  border-radius: var(--radius-card, 12px);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--dur-normal) var(--ease),
              transform var(--dur-normal) var(--ease);
}

.seo-block:hover { transform: scale(1.015); box-shadow: var(--shadow-md); }

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

.seo-card::before { background: var(--site-primary, #d97706); }
.seo-card:hover   { box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.12); }

/* Card band per SEO type */
.seo-card.features::before      { background: #d97706; }
.seo-card.benefits::before      { background: #16a34a; }
.seo-card.faq::before           { background: #b45309; }
.seo-card.tips::before          { background: #16a34a; }
.seo-card.steps::before         { background: #d97706; }
.seo-card.tutorial::before      { background: #78350f; }
.seo-card.examples::before      { background: #0891b2; }
.seo-card.use-cases::before     { background: #7c3aed; }
.seo-card.common-mistakes::before { background: #dc2626; }
.seo-card.practice::before      { background: #16a34a; }
.seo-card.requirements::before  { background: #6366f1; }
.seo-card.resources::before     { background: #0d9488; }
.seo-card.next-steps::before    { background: #d97706; }
.seo-card.summary::before       { background: #64748b; }
.seo-card.related::before       { background: #b45309; }

.seo-components--secondary .seo-block { background: var(--site-primary-light, #fffbeb); }

/* Left-bar accent by type */
.seo-block.tutorial       { border-left: 3px solid #d97706; }
.seo-block.examples       { border-left: 3px solid #16a34a; }
.seo-block.use-cases      { border-left: 3px solid #7c3aed; }
.seo-block.common-mistakes{ border-left: 3px solid #dc2626; }
.seo-block.practice       { border-left: 3px solid #16a34a; }
.seo-block.requirements   { border-left: 3px solid #6366f1; }
.seo-block.resources      { border-left: 3px solid #0d9488; }
.seo-block.next-steps     { border-left: 3px solid #b45309; }
.seo-block.summary        { border-left: 3px solid #64748b; }
.seo-block.related        { border-left: 3px solid #d97706; }

/* SEO typography */
.seo-block h2 { font-family: var(--font-heading); font-size: 1.1rem; font-weight: 700; color: var(--site-primary-dark, #78350f); margin: 0 0 0.6rem; }
.seo-block h3 { font-size: 1rem; font-weight: 700; color: var(--site-primary-hover, #b45309); margin: 0.6rem 0 0.4rem; }
.seo-block h4 { font-size: 0.95rem; font-weight: 600; color: var(--site-text-light, #57534e); margin: 0.5rem 0 0.3rem; }
.seo-block p  { font-size: 0.92rem; line-height: 1.65; color: var(--site-text-light, #57534e); margin: 0.35rem 0; }
.seo-block ul, .seo-block ol { padding-left: 1.2rem; margin: 0.4rem 0; }
.seo-block li { font-size: 0.92rem; line-height: 1.55; color: var(--site-text-light, #57534e); margin: 0.25rem 0; }
.seo-block strong { color: var(--site-primary-dark, #78350f); }
.seo-block a  { color: var(--site-primary, #d97706); text-decoration: none; }
.seo-block a:hover { text-decoration: underline; }

/* FAQ */
.seo-block details { border-bottom: 1px solid var(--site-border-dark, #fde68a); 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-hover, #b45309); }
.seo-block details summary::-webkit-details-marker { display: none; }
.seo-block details summary::before { content: "▸"; margin-right: 0.4rem; color: var(--site-primary, #d97706); display: inline-block; transition: transform var(--dur-fast) var(--ease); }
.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; }

/* ═══ Staggered Card Entrance ═══ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.category-card,
.subcategory-card,
.worksheet-card,
.seo-block {
  animation: fadeInUp 450ms cubic-bezier(0.4, 0, 0.2, 1) backwards;
}

.category-card:nth-child(1),  .subcategory-card:nth-child(1)  { animation-delay: 60ms; }
.category-card:nth-child(2),  .subcategory-card:nth-child(2)  { animation-delay: 120ms; }
.category-card:nth-child(3),  .subcategory-card:nth-child(3)  { animation-delay: 180ms; }
.category-card:nth-child(4),  .subcategory-card:nth-child(4)  { animation-delay: 240ms; }
.category-card:nth-child(5),  .subcategory-card:nth-child(5)  { animation-delay: 300ms; }
.category-card:nth-child(6),  .subcategory-card:nth-child(6)  { animation-delay: 360ms; }
.category-card:nth-child(n+7),.subcategory-card:nth-child(n+7){ animation-delay: 400ms; }

/* ═══ Utility Animations ═══ */
@keyframes fadeIn  { from { opacity: 0; }                       to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.fade-in  { animation: fadeIn  300ms ease-out; }
.slide-up { animation: slideUp 300ms ease-out; }

/* ═══ Responsive ═══ */
@media (max-width: 768px) {
  .hero h1      { font-size: 2rem; }
  .hero .subtitle { max-width: 100%; }
  .hero-stats   { gap: 1.2rem; }
  .stat-number  { font-size: 1.4rem; }
  .hero::after  { display: none; }
  .categories-grid  { grid-template-columns: 1fr; }
  .subcategories-grid { grid-template-columns: 1fr; }
  .worksheets-grid  { grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); }
  .seo-components--primary { grid-template-columns: 1fr; }
  .seo-more-grid { grid-template-columns: 1fr; }
  .page-navigation { flex-wrap: wrap; justify-content: center; }
  .word-jumble-grid { grid-template-columns: 1fr; }
  .jumbled-word { font-size: 1.2rem; min-width: 4em; }
  .hint { display: block; margin-top: 0.25rem; }
}

@media (max-width: 480px) {
  .hero { padding: 1.5rem 1rem; }
  .hero h1 { font-size: 1.7rem; }
  .hero-stats { flex-direction: column; gap: 0.8rem; }
}

/* ═══ Print Styles ═══ */
@media print {
  /* Word jumble: show print version, hide interactive */
  .word-jumble-grid  { display: none !important; }
  .word-jumble-print { display: block !important; }
  .print-only        { display: block !important; }
  .ia-game-controls,
  .ia-streak-badge,
  .ia-btn,
  .ia-data-panel,
  .no-print          { display: none !important; }

  /* Global print resets */
  * { box-shadow: none !important; text-shadow: none !important; }
  body { background: #fff !important; color: #000 !important; }

  .hero::before, .hero::after { display: none !important; }
  .hero { border-bottom: 2pt solid #b45309 !important; background: #fff !important; }
  .hero h1 { color: #000 !important; -webkit-text-fill-color: #000 !important; }
  .hero .subtitle { color: #333 !important; }

  .category-card,
  .subcategory-card,
  .worksheet-card,
  .seo-block {
    animation: none !important;
    transform: none !important;
  }
  .category-card::after, .subcategory-card::after { display: none !important; }

  .section-header h2::after { background: #b45309 !important; }

  .btn { border: 1px solid #999 !important; background: #fff !important; color: #000 !important; }

  .stat-number {
    background: none !important;
    -webkit-background-clip: unset !important;
    -webkit-text-fill-color: #b45309 !important;
    background-clip: unset !important;
    color: #b45309 !important;
  }

  .section-header, .categories-section, .seo-components, .page-navigation { margin: 0.5rem 0; }
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

@media screen {
  .word-jumble-print { display: none; }
  .print-only        { display: none; }
}

/* ═══ Dark Mode — Warm Amber Dark ═══ */
@media (prefers-color-scheme: dark) {
  :root {
    --premium-glow:         rgba(251, 191, 36, 0.14);
    --premium-glow-strong:  rgba(251, 191, 36, 0.22);
    --premium-shadow-rest:  0 1px 3px rgba(0, 0, 0, 0.30), 0 1px 2px rgba(0, 0, 0, 0.20);
    --premium-shadow-hover: 0 12px 28px rgba(0, 0, 0, 0.40), 0 4px 10px rgba(0, 0, 0, 0.25);
  }

  body {
    background: linear-gradient(160deg, #1a0f00 0%, #111827 55%, #052e16 100%);
    color: #f5f0e8;
  }

  ::selection     { background: #78350f; color: #fef3c7; }
  ::-moz-selection{ background: #78350f; color: #fef3c7; }

  ::-webkit-scrollbar-track { background: #1a0f00; }
  ::-webkit-scrollbar-thumb { background: linear-gradient(180deg, #d97706 0%, #b45309 100%); border-color: #1a0f00; }

  *:focus-visible { outline-color: #fbbf24; box-shadow: 0 0 0 5px rgba(251, 191, 36, 0.18); }

  /* Hero */
  .hero {
    background: linear-gradient(160deg, #1c1100 0%, #111827 55%, #052e16 100%);
    border-bottom-color: #78350f;
  }
  .hero h1 { color: #fef3c7; -webkit-text-fill-color: #fef3c7; }
  .hero .subtitle { color: #d6d3d1; }
  .hero::before { background: radial-gradient(circle, rgba(217, 119, 6, 0.10) 0%, transparent 70%); }
  .hero::after  { background: radial-gradient(circle, rgba(22, 163, 74, 0.07) 0%, transparent 70%); }

  .page-header  { background: #1c1100; border-bottom-color: #78350f; }
  .page-header h1 { color: #fef3c7; }
  .page-header .subtitle { color: #fcd34d; }

  .breadcrumb   { }
  .breadcrumb a { color: #fbbf24; }
  .breadcrumb li:last-child { color: #f5f0e8; }

  /* Cards */
  .category-card,
  .subcategory-card,
  .worksheet-card {
    background: #1c1100;
    border-color: #78350f;
    color: #f5f0e8;
  }
  .category-card   { border-left-color: #d97706; }
  .category-card:hover { border-left-color: #16a34a; }
  .subcategory-card{ border-left-color: #d97706; }
  .category-card h3,  .subcategory-card h3  { color: #f5f0e8; }
  .category-card p,   .subcategory-card p   { color: #a8a29e; }
  .category-meta,     .subcategory-arrow    { color: #fbbf24; }

  .worksheet-card:hover { background: #271500; border-color: #d97706; }
  .worksheet-number { color: #fbbf24; }

  .stat-item  { background: linear-gradient(135deg, #1c1100 0%, #271500 100%); border-color: #78350f; }
  .stat-number{ background: linear-gradient(135deg, #fbbf24, #f59e0b); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
  .stat-label { color: #a8a29e; }

  /* Buttons */
  .btn { background: #1c1100; color: #f5f0e8; border-color: #78350f; }
  .btn-primary { background: linear-gradient(180deg, #d97706 0%, #b45309 100%); color: #fff; border-color: #78350f; }
  .btn-success, .btn-answers, .btn-check { background: linear-gradient(180deg, #16a34a 0%, #15803d 100%); color: #fff; border-color: #14532d; }

  /* Set switcher */
  .set-switcher { background: #1c1100; border-color: #78350f; }
  .set-btn { background: #1c1100; border-color: #78350f; color: #f5f0e8; }
  .set-btn:hover { background: #271500; border-color: #d97706; }
  .set-btn.active { background: #d97706; color: #fff; }

  /* Intro */
  .intro, .intro-section { background: linear-gradient(135deg, #1c1100 0%, #271500 100%); border-color: #78350f; }
  .intro h3, .intro-section h3 { color: #fef3c7; }
  .intro p, .intro-section p { color: #a8a29e; }

  /* Body content */
  .body-content { background: #1a0f00; border-color: #78350f; }
  .content-section h2 { color: #fef3c7; }
  .content-section h3 { color: #fcd34d; }
  .content-section p  { color: #a8a29e; }

  /* Content toggle */
  .content-toggle summary { background: #1c1100; color: #fef3c7; }
  .content-toggle summary:hover { background: #271500; }
  .content-toggle summary::after { background: #78350f; color: #fbbf24; }
  .content-toggle[open] summary { border-bottom-color: #78350f; }
  .content-toggle-panel { background: #1a0f00; }
  .content-toggle-panel h2 { color: #fef3c7; }
  .content-toggle-panel h3 { color: #fcd34d; }
  .content-toggle-panel p  { color: #a8a29e; }
  .content-toggle-panel strong { color: #fef3c7; }

  /* Score */
  .score-panel  { background: #1c1100; border-color: #78350f; }
  .score-detail { color: #f5f0e8; }
  .score-pct    { background: linear-gradient(135deg, #fbbf24, #f59e0b); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

  /* Nav */
  .page-navigation { background: #1c1100; border-color: #78350f; }
  .btn-nav { color: #fbbf24; }
  .btn-nav:hover { background: #271500; }

  /* SEO blocks */
  .seo-block { background: #1c1100; border-color: #78350f; }
  .seo-block:hover { box-shadow: 0 4px 12px rgba(217, 119, 6, 0.22); }
  .seo-block h2 { color: #fef3c7; }
  .seo-block h3 { color: #fcd34d; }
  .seo-block p, .seo-block li { color: #a8a29e; }
  .seo-block strong { color: #fef3c7; }
  .seo-block a  { color: #fbbf24; }
  .seo-block details { border-bottom-color: #78350f; }
  .seo-block details summary { color: #fcd34d; }
  .seo-components--secondary .seo-block { background: #1a0f00; }

  /* Word jumble */
  .word-jumble-item { background: #1c1100; border-color: #78350f; }
  .word-jumble-item:hover { border-color: #d97706; }
  .jumbled-word { color: #fef3c7; background: #271500; border-color: #b45309; }
  .answer-word  { color: #4ade80; }

  /* Misc */
  .variant-chip { background: #271500; color: #fcd34d; border-color: #d97706; }
  .answer-input { background: #1a0f00; border-color: #78350f; color: #f5f0e8; }
  .answer-input:focus { border-color: #d97706; box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.22); }
  .problem .num  { background: #271500; color: #fbbf24; }
  .problem .answer { background: #052e16; color: #4ade80; }

  .score-retry { background: #271500; color: #fbbf24; border-color: #d97706; }
  .score-retry:hover { background: #d97706; color: #fff; }

  .section-header h2 { color: #f5f0e8; }
  .section-header p  { color: #a8a29e; }
}
