/*!*************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[10].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[10].use[3]!./app/globals.css ***!
  \*************************************************************************************************************************************************************************************************************************************************************/
@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@400;500;600;700&family=Nunito:wght@400;500;600;700;800&display=swap');

:root {
  color-scheme: dark;

  --bg-deep: #0b0d14;
  --bg-surface: #13151f;
  --bg-elevated: #1a1d2a;
  --bg-hover: #21253a;

  --honey: #f0a830;
  --honey-light: #ffd166;
  --honey-dark: #c07818;
  --honey-glow: rgba(240, 168, 48, 0.12);
  --honey-border: rgba(240, 168, 48, 0.18);

  --success: #34d399;
  --success-bg: rgba(52, 211, 153, 0.1);
  --success-border: rgba(52, 211, 153, 0.2);
  --error: #f87171;
  --error-bg: rgba(248, 113, 113, 0.1);
  --error-border: rgba(248, 113, 113, 0.2);

  --text-primary: #eeeef2;
  --text-secondary: #9295a5;
  --text-muted: #5c5f72;

  --border: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(255, 255, 255, 0.1);
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
  --shadow-glow: 0 0 30px rgba(240, 168, 48, 0.06);

  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 24px;
  --r-pill: 999px;
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg-deep);
  color: var(--text-primary);
  font-family: 'Nunito', -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 15% 5%, rgba(240, 168, 48, 0.07), transparent),
    radial-gradient(ellipse 50% 40% at 90% 85%, rgba(240, 140, 40, 0.04), transparent),
    radial-gradient(ellipse 40% 30% at 60% 40%, rgba(80, 60, 180, 0.025), transparent);
  pointer-events: none;
  z-index: 0;
}

button, input, select { font: inherit; }
a { color: inherit; text-decoration: none; }

/* ========== Page shell ========== */

.page-shell {
  position: relative;
  z-index: 1;
  width: min(1300px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1rem 0 3rem;
}

/* ========== Hero header ========== */

.hero-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  background: var(--bg-surface);
  box-shadow: var(--shadow);
}

.hero-copy {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.hero-copy h1 {
  margin: 0;
  font-family: 'Fredoka', sans-serif;
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--honey);
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.eyebrow {
  margin: 0;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--honey-dark);
  font-weight: 800;
  background: var(--honey-glow);
  border: 1px solid var(--honey-border);
  padding: 0.2rem 0.55rem;
  border-radius: var(--r-pill);
  white-space: nowrap;
}

.hero-summary { display: none; }

.hero-stats {
  display: flex;
  gap: 0.6rem;
  flex-shrink: 0;
}

.stat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1rem;
  padding: 0.45rem 0.9rem;
  border-radius: var(--r-md);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  min-width: 72px;
}

.stat-value {
  font-family: 'Fredoka', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--honey);
  white-space: nowrap;
}

.stat-label {
  font-size: 0.6rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

/* ========== Controls grid ========== */

.controls-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  grid-gap: 0.65rem;
  gap: 0.65rem;
  margin-top: 0.65rem;
}

.panel {
  padding: 0.9rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--bg-surface);
  box-shadow: var(--shadow);
}

.section-kicker {
  margin: 0 0 0.55rem;
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-muted);
  font-weight: 800;
}

.detail-label {
  margin: 0;
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--honey);
  font-weight: 800;
}

/* ---- Mode cards ---- */

.mode-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: 0.45rem;
  gap: 0.45rem;
}

.mode-card {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.65rem 0.7rem;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.18s ease;
  text-align: left;
}

.mode-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-hover);
  transform: none;
}

.mode-card.active {
  background: var(--honey-glow);
  border-color: var(--honey);
  color: var(--text-primary);
  box-shadow: var(--shadow-glow);
}

.mode-title {
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  font-size: 0.82rem;
}

.mode-card.active .mode-title { color: var(--honey); }

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

.mode-card.active .mode-copy { color: var(--text-secondary); }

/* ---- Segmented pills ---- */

.segmented-row {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.segmented {
  flex: 1 1;
  min-height: 44px;
  padding: 0.55rem 0.7rem;
  border-radius: var(--r-pill);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text-secondary);
  cursor: pointer;
  font-weight: 700;
  font-size: 0.82rem;
  transition: all 0.18s ease;
  text-align: center;
}

.segmented:hover {
  border-color: var(--border-hover);
  background: var(--bg-hover);
  transform: none;
}

.segmented.active {
  background: var(--honey);
  border-color: var(--honey);
  color: var(--bg-deep);
}

/* ========== Practice grid ========== */

.practice-grid {
  display: grid;
  grid-template-columns: 1.5fr minmax(270px, 0.7fr);
  grid-gap: 0.65rem;
  gap: 0.65rem;
  margin-top: 0.65rem;
  align-items: start;
}

/* ---- Challenge panel ---- */

.challenge-panel { min-height: 380px; }

.challenge-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.challenge-header h2 {
  margin: 0.2rem 0 0;
  font-family: 'Fredoka', sans-serif;
  font-size: clamp(1.15rem, 2.2vw, 1.6rem);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.25;
}

/* ---- Word meta pills ---- */

.word-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0.65rem 0;
}

.word-meta span {
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 0.6rem;
  border-radius: var(--r-pill);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.7rem;
  font-weight: 700;
}

/* ---- Buttons ---- */

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.65rem;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.65rem 1.15rem;
  border-radius: var(--r-pill);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.18s ease;
  border: none;
  white-space: nowrap;
}

.primary-button {
  background: linear-gradient(140deg, var(--honey), var(--honey-dark));
  color: #1a0e00;
  box-shadow: 0 2px 14px rgba(240, 168, 48, 0.2);
}

.primary-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 22px rgba(240, 168, 48, 0.3);
}

.secondary-button {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-secondary);
}

.secondary-button:hover {
  border-color: var(--honey-border);
  color: var(--honey-light);
  transform: translateY(-1px);
}

.primary-button:disabled,
.secondary-button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

/* ---- Answer form ---- */

.answer-form { margin-top: 1rem; }

.answer-label {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 700;
}

.answer-row {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.answer-input {
  flex: 1 1 200px;
  min-width: 0;
  min-height: 52px;
  padding: 0.8rem 1rem;
  border-radius: var(--r-md);
  border: 2px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text-primary);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.answer-input:focus {
  border-color: var(--honey);
  box-shadow: 0 0 0 3px var(--honey-glow);
}

.answer-input:disabled {
  opacity: 0.45;
  background: var(--bg-deep);
}

.answer-input::placeholder {
  color: var(--text-muted);
  font-weight: 400;
}

/* ---- Results ---- */

.result-banner {
  margin: 0.65rem 0 0;
  padding: 0.7rem 1rem;
  border-radius: var(--r-md);
  font-weight: 700;
  font-size: 0.88rem;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
}

.result-banner.good {
  background: var(--success-bg);
  color: var(--success);
  border-color: var(--success-border);
}

.result-banner.bad {
  background: var(--error-bg);
  color: var(--error);
  border-color: var(--error-border);
}

.result-banner.neutral {
  background: var(--honey-glow);
  color: var(--honey-light);
  border-color: var(--honey-border);
}

.error-text {
  margin: 0.5rem 0 0;
  padding: 0.55rem 0.75rem;
  border-radius: var(--r-sm);
  background: var(--error-bg);
  color: var(--error);
  font-size: 0.82rem;
}

.info-text {
  margin: 0.5rem 0 0;
  padding: 0.55rem 0.75rem;
  border-radius: var(--r-sm);
  background: var(--honey-glow);
  color: var(--text-secondary);
  border: 1px solid var(--honey-border);
  font-size: 0.82rem;
}

.subtle-text {
  color: var(--text-muted);
  font-size: 0.82rem;
  margin: 0.2rem 0;
}

/* ---- Detail cards ---- */

.detail-card {
  display: grid;
  grid-gap: 0.35rem;
  gap: 0.35rem;
}

.detail-card p {
  color: var(--text-secondary);
  font-size: 0.85rem;
  line-height: 1.5;
  margin: 0;
}

.reveal-card {
  margin-top: 0.65rem;
  padding: 0.9rem;
  border-radius: var(--r-lg);
  background: var(--bg-elevated);
  border: 1px solid var(--honey-border);
}

.answer-word {
  margin: 0;
  font-family: 'Fredoka', sans-serif;
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  font-weight: 700;
  color: var(--honey);
}

.completion-card {
  margin-top: 0.65rem;
  padding: 1.1rem;
  border-radius: var(--r-lg);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  text-align: center;
}

.fit-button {
  width: -moz-fit-content;
  width: fit-content;
  margin: 0.4rem auto 0;
}

/* ========== Info sidebar ========== */

.info-column {
  display: grid;
  grid-gap: 0.65rem;
  gap: 0.65rem;
}

.summary-head {
  margin: 0;
  font-family: 'Fredoka', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--honey);
}

/* ---- Scoreboard ---- */

.status-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: 0.4rem;
  gap: 0.4rem;
}

.status-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1rem;
  padding: 0.6rem 0.4rem;
  border-radius: var(--r-md);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
}

.status-number {
  font-family: 'Fredoka', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--honey);
}

.status-caption {
  font-size: 0.55rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 800;
}

/* ---- Summary list ---- */

.summary-list {
  display: grid;
  grid-gap: 0.3rem;
  gap: 0.3rem;
  margin-top: 0.2rem;
}

.summary-item {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.45rem 0.65rem;
  border-radius: var(--r-sm);
  background: var(--bg-elevated);
  color: var(--text-secondary);
  font-size: 0.78rem;
}

/* ========== Responsive ========== */

@media (max-width: 900px) {
  .controls-grid {
    grid-template-columns: 1fr;
  }

  .mode-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: calc(100% - 1rem);
    padding: 0.6rem 0 2rem;
  }

  .hero-panel {
    flex-direction: column;
    align-items: stretch;
    gap: 0.6rem;
    padding: 0.75rem 1rem;
  }

  .hero-copy { justify-content: center; }
  .hero-stats { justify-content: center; }

  .mode-grid { grid-template-columns: 1fr; }
  .practice-grid { grid-template-columns: 1fr; }

  .challenge-header { flex-direction: column; }
}

/* ========== Animations ========== */

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

.hero-panel { animation: fadeUp 0.4s ease both; }
.controls-grid { animation: fadeUp 0.4s ease 0.08s both; }
.practice-grid { animation: fadeUp 0.4s ease 0.16s both; }

