/* ==========================================================================
   WAKÍŊYAŊ WÓUŊSPE — Thunder Being's Teachings
   Design System & Styles
   ========================================================================== */

/* --- CSS VARIABLES --- */
:root {
  --night: #06091a;
  --storm: #0d1230;
  --deep-blue: #151d45;
  --cloud: #1a2350;
  --lightning: #a8c8f0;
  --lightning-bright: #dce8ff;
  --lightning-glow: rgba(168, 200, 240, 0.15);
  --warm-glow: #e8dbb8;
  --warm-glow-bright: #f5ecd0;
  --sacred-red: #7a2020;
  --sacred-red-mid: #a83030;
  --sacred-red-light: #c84848;
  --sage: #3d7050;
  --sage-light: #58a070;
  --sage-glow: rgba(88, 160, 112, 0.15);
  --text-primary: #ddd8cc;
  --text-bright: #f0ece0;
  --text-secondary: #6878a0;
  --text-dim: #404868;
  --card-bg: rgba(13, 18, 48, 0.55);
  --card-border: rgba(168, 200, 240, 0.08);
  --card-border-hover: rgba(168, 200, 240, 0.2);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Nunito Sans', -apple-system, sans-serif;
  --transition-fast: 0.2s ease;
  --transition-med: 0.35s ease;
}

/* --- RESET & BASE --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
  font-size: 18px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--text-primary);
  background: var(--night);
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  line-height: 1.65;
}

/* --- BACKGROUND LAYERS --- */
.bg-stars {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.bg-star {
  position: absolute;
  border-radius: 50%;
  background: #fff;
  animation: twinkle var(--dur) ease-in-out infinite alternate;
  animation-delay: var(--delay);
}
@keyframes twinkle {
  0% { opacity: var(--o-min); transform: scale(1); }
  100% { opacity: var(--o-max); transform: scale(1.2); }
}

/* Thunderbird background watermark — faint presence behind everything */
.bg-thunderbird {
  position: fixed;
  top: 12%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 0;
  pointer-events: none;
  opacity: 0.018;
  color: var(--lightning);
  animation: bgBirdDrift 20s ease-in-out infinite;
}
@keyframes bgBirdDrift {
  0%, 100% { opacity: 0.018; transform: translateX(-50%) scale(1); }
  50% { opacity: 0.03; transform: translateX(-50%) scale(1.02); }
}
@keyframes twinkle {
  0% { opacity: var(--o-min); transform: scale(1); }
  100% { opacity: var(--o-max); transform: scale(1.2); }
}

.bg-lightning-1, .bg-lightning-2, .bg-lightning-3 {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
.bg-lightning-1 {
  background: radial-gradient(ellipse 60% 40% at 25% 15%, rgba(168, 200, 240, 0.04) 0%, transparent 70%);
  animation: flash1 9s ease-in-out infinite;
}
.bg-lightning-2 {
  background: radial-gradient(ellipse 50% 35% at 75% 10%, rgba(168, 200, 240, 0.03) 0%, transparent 60%);
  animation: flash2 13s ease-in-out infinite 4s;
}
.bg-lightning-3 {
  background: radial-gradient(ellipse 80% 50% at 50% 5%, rgba(200, 220, 255, 0.06) 0%, transparent 50%);
  animation: flash3 17s ease-in-out infinite 8s;
}
@keyframes flash1 {
  0%,87%,91%,95%,100% { opacity: 0; }
  88% { opacity: 1; }
  89% { opacity: 0.15; }
  90% { opacity: 0.7; }
  92% { opacity: 0; }
  93% { opacity: 0.5; }
  94% { opacity: 0; }
}
@keyframes flash2 {
  0%,78%,82%,86%,100% { opacity: 0; }
  79% { opacity: 0.8; }
  80% { opacity: 0.1; }
  81% { opacity: 0.6; }
  83% { opacity: 0; }
  84% { opacity: 0.3; }
  85% { opacity: 0; }
}
@keyframes flash3 {
  0%,65%,69%,73%,100% { opacity: 0; }
  66% { opacity: 0.5; }
  67% { opacity: 0; }
  68% { opacity: 0.9; }
  70% { opacity: 0.1; }
  71% { opacity: 0.4; }
  72% { opacity: 0; }
}

.bg-clouds {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 55vh;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 130% 45% at 15% -5%, rgba(26, 35, 80, 0.7) 0%, transparent 70%),
    radial-gradient(ellipse 110% 38% at 85% 0%, rgba(13, 18, 48, 0.8) 0%, transparent 60%),
    radial-gradient(ellipse 90% 30% at 50% -10%, rgba(26, 35, 80, 0.5) 0%, transparent 50%);
}

.bg-grain {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 256px;
}

/* --- APP CONTAINER --- */
#app {
  position: relative;
  z-index: 2;
  max-width: 560px;
  margin: 0 auto;
  padding: 0 24px;
  min-height: 100vh;
  min-height: 100dvh;
}

/* --- TYPOGRAPHY --- */
.t-display {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
}
.t-lakota {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--lightning);
  letter-spacing: 0.5px;
}
.t-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: var(--text-secondary);
}

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--transition-fast);
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: linear-gradient(135deg, var(--sacred-red), var(--sacred-red-mid));
  color: var(--text-bright);
  box-shadow: 0 4px 20px rgba(122, 32, 32, 0.3);
}
.btn-primary:hover {
  box-shadow: 0 6px 28px rgba(122, 32, 32, 0.45);
  transform: translateY(-1px);
}

.btn-secondary {
  background: rgba(168, 200, 240, 0.08);
  color: var(--lightning);
  border: 1px solid rgba(168, 200, 240, 0.15);
}
.btn-secondary:hover {
  background: rgba(168, 200, 240, 0.14);
  border-color: rgba(168, 200, 240, 0.25);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  padding: 10px 16px;
}
.btn-ghost:hover { color: var(--text-primary); }

.btn-lg {
  width: 100%;
  padding: 16px;
  font-size: 16px;
  border-radius: var(--radius-md);
}

.btn-success {
  background: linear-gradient(135deg, var(--sage), var(--sage-light));
  color: var(--text-bright);
  box-shadow: 0 4px 20px rgba(61, 112, 80, 0.3);
}

/* --- CARDS --- */
.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* --- DIVIDER --- */
.divider {
  width: 40px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--lightning), transparent);
  margin: 0 auto;
  opacity: 0.25;
}

/* ==========================================================================
   HOME SCREEN
   ========================================================================== */

.home-header {
  padding-top: 40px;
  text-align: center;
  margin-bottom: 40px;
}

/* Thunderbird hero */
.thunderbird-hero {
  display: flex;
  justify-content: center;
  margin-bottom: 8px;
  position: relative;
}
.thunderbird-hero::after {
  content: '';
  position: absolute;
  top: 40%; left: 50%;
  width: 200px; height: 200px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(0, 191, 255, 0.1) 0%, transparent 65%);
  border-radius: 50%;
  pointer-events: none;
}

/* Thunderbird image */
.thunderbird-img {
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 0 16px rgba(0, 191, 255, 0.25));
}
.hero-bird .thunderbird-img {
  animation: heroBirdGlow 5s ease-in-out infinite;
}
@keyframes heroBirdGlow {
  0%, 100% { 
    filter: drop-shadow(0 0 14px rgba(0, 191, 255, 0.2));
  }
  50% { 
    filter: drop-shadow(0 0 28px rgba(0, 191, 255, 0.45))
           drop-shadow(0 0 60px rgba(0, 191, 255, 0.15));
  }
}

/* Lightning bolts from wings */
.wing-bolt {
  opacity: 0;
  pointer-events: none;
  filter: drop-shadow(0 0 10px rgba(200, 220, 255, 1))
         drop-shadow(0 0 25px rgba(168, 200, 240, 0.7))
         drop-shadow(0 0 45px rgba(120, 170, 255, 0.4));
  transform: scaleY(0.3);
  transform-origin: top;
  transition: opacity 0.05s, transform 0.05s;
}
.wing-bolt.striking {
  opacity: 1;
  transform: scaleY(1);
}
.wing-bolt.fading {
  opacity: 0;
  transform: scaleY(0.8);
  transition: opacity 0.25s ease-out, transform 0.25s ease-out;
}

/* Complete bird — warm gold tint */
.complete-bird .thunderbird-img {
  filter: drop-shadow(0 0 20px rgba(232, 219, 184, 0.3))
         brightness(0.8) sepia(0.5) saturate(2) hue-rotate(-20deg);
  animation: completeBirdPulse 3s ease-in-out infinite;
}
@keyframes completeBirdPulse {
  0%, 100% { 
    filter: drop-shadow(0 0 16px rgba(232, 219, 184, 0.2))
           brightness(0.8) sepia(0.5) saturate(2) hue-rotate(-20deg);
  }
  50% { 
    filter: drop-shadow(0 0 30px rgba(232, 219, 184, 0.45))
           brightness(0.9) sepia(0.5) saturate(2) hue-rotate(-20deg);
  }
}

/* Small inline thunderbird */
.thunderbird-sm-img {
  display: inline-block;
  vertical-align: middle;
  object-fit: contain;
  filter: drop-shadow(0 0 4px rgba(0, 191, 255, 0.2));
}

.home-icon {
  font-size: 40px;
  display: block;
  margin-bottom: 14px;
  filter: drop-shadow(0 0 18px rgba(168, 200, 240, 0.35));
  animation: iconGlow 5s ease-in-out infinite;
}
@keyframes iconGlow {
  0%, 100% { filter: drop-shadow(0 0 18px rgba(168, 200, 240, 0.25)); }
  50% { filter: drop-shadow(0 0 28px rgba(168, 200, 240, 0.5)); }
}
.home-title {
  font-size: 30px;
  color: var(--lightning-bright);
  text-shadow: 0 0 40px rgba(168, 200, 240, 0.15);
  margin-bottom: 2px;
}
.home-title-lakota {
  font-size: 16px;
  letter-spacing: 2px;
  opacity: 0.7;
  margin-bottom: 16px;
}
.home-subtitle {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
  max-width: 320px;
  margin: 0 auto;
  font-weight: 300;
}

/* Countdown */
.countdown-card {
  text-align: center;
  padding: 20px;
  margin-bottom: 32px;
}
.countdown-label { margin-bottom: 6px; }
.countdown-number {
  font-family: var(--font-display);
  font-size: 52px;
  font-weight: 700;
  color: var(--warm-glow);
  line-height: 1;
  text-shadow: 0 0 30px rgba(232, 219, 184, 0.15);
}
.countdown-unit {
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 300;
  margin-top: 2px;
}

/* Stats Row — Words Known + Review Button */
.stats-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 28px;
}
.stat-card {
  text-align: center;
  padding: 18px 12px;
}
.stat-number {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 700;
  color: var(--sage-light);
  line-height: 1;
}
.stat-icon {
  font-size: 28px;
  line-height: 1;
  margin-bottom: 2px;
  color: var(--lightning);
}
.stat-icon svg {
  display: block;
  margin: 0 auto;
}
.stat-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 6px;
}
.stat-sub {
  font-size: 11px;
  color: var(--text-dim);
  font-weight: 300;
  margin-top: 2px;
}
.stat-review {
  cursor: pointer;
  transition: all var(--transition-fast);
  border-color: rgba(168, 200, 240, 0.15);
}
.stat-review:hover {
  border-color: var(--lightning);
  background: rgba(168, 200, 240, 0.08);
}
.stat-review.disabled {
  opacity: 0.4;
  pointer-events: none;
}

/* ==========================================================
   FLASHCARD REVIEW SCREEN
   ========================================================== */
.review-screen {
  padding: 16px 0;
  min-height: 100vh;
  min-height: 100dvh;
}
.review-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.review-counter {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
}
.review-progress-bar {
  width: 100%;
  height: 3px;
  background: rgba(168, 200, 240, 0.08);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 20px;
}
.review-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--lightning), var(--sage-light));
  border-radius: 2px;
  transition: width 0.4s ease;
}
.review-module-tag {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-dim);
  text-align: center;
  margin-bottom: 24px;
}

/* Flashcard */
.flashcard {
  perspective: 800px;
  cursor: pointer;
  margin-bottom: 32px;
  -webkit-tap-highlight-color: transparent;
}
.flashcard-inner {
  position: relative;
  width: 100%;
  min-height: 280px;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  transform-style: preserve-3d;
}
.flashcard.flipped .flashcard-inner {
  transform: rotateY(180deg);
}
.flashcard-front, .flashcard-back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 24px;
}
.flashcard-front {
  background: linear-gradient(135deg, rgba(168, 200, 240, 0.06), rgba(168, 200, 240, 0.02));
  border: 1px solid rgba(168, 200, 240, 0.12);
}
.flashcard-back {
  background: linear-gradient(135deg, rgba(88, 160, 112, 0.08), rgba(88, 160, 112, 0.03));
  border: 1px solid rgba(88, 160, 112, 0.2);
  transform: rotateY(180deg);
}
.flashcard-lakota {
  font-size: 40px;
  color: var(--lightning-bright);
  text-align: center;
  margin-bottom: 8px;
  text-shadow: 0 0 30px rgba(168, 200, 240, 0.15);
}
.flashcard-phonetic {
  font-size: 16px;
  font-style: italic;
  color: var(--text-secondary);
  margin-bottom: 20px;
}
.flashcard-audio {
  margin-bottom: 16px;
  padding: 10px 20px;
  font-size: 14px;
}
.flashcard-hint {
  font-size: 12px;
  color: var(--text-dim);
  font-weight: 300;
}
.flashcard-english {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  color: var(--sage-light);
  text-align: center;
  margin-bottom: 12px;
}
.flashcard-lakota-sm {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--text-secondary);
  font-style: italic;
}

/* Review answer buttons */
.review-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: all 0.3s ease;
}
.review-buttons.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.review-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px;
  border-radius: var(--radius-md);
  border: 1px solid;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  -webkit-tap-highlight-color: transparent;
}
.review-btn-learning {
  background: rgba(232, 219, 184, 0.06);
  border-color: rgba(232, 219, 184, 0.15);
  color: var(--warm-glow);
}
.review-btn-learning:hover {
  background: rgba(232, 219, 184, 0.12);
  border-color: rgba(232, 219, 184, 0.3);
}
.review-btn-known {
  background: rgba(88, 160, 112, 0.08);
  border-color: rgba(88, 160, 112, 0.2);
  color: var(--sage-light);
}
.review-btn-known:hover {
  background: rgba(88, 160, 112, 0.15);
  border-color: rgba(88, 160, 112, 0.35);
}

/* Review done screen */
.review-done {
  text-align: center;
  padding: 60px 20px;
}
.review-done-icon {
  font-size: 48px;
  margin-bottom: 16px;
}
.review-done-title {
  font-size: 28px;
  color: var(--text-bright);
  margin-bottom: 12px;
}
.review-done-stat {
  font-size: 18px;
  color: var(--sage-light);
  font-weight: 600;
  margin-bottom: 8px;
}
.review-done-sub {
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 300;
  line-height: 1.6;
  max-width: 320px;
  margin: 0 auto;
}

/* Red Road Progress */
.red-road {
  margin-bottom: 36px;
}
.red-road-track {
  width: 100%;
  height: 5px;
  background: rgba(168, 200, 240, 0.06);
  border-radius: 3px;
  overflow: visible;
  position: relative;
  margin-top: 10px;
}
.red-road-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--sacred-red), var(--sacred-red-light), var(--warm-glow));
  border-radius: 3px;
  position: relative;
  transition: width 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.red-road-dot {
  position: absolute;
  right: -4px; top: 50%;
  transform: translateY(-50%);
  width: 8px; height: 8px;
  background: var(--warm-glow-bright);
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(232, 219, 184, 0.5), 0 0 20px rgba(232, 219, 184, 0.2);
}
.red-road-text {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 8px;
  font-weight: 300;
}

/* Module Cards */
.modules-title {
  font-size: 20px;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.module-card {
  padding: 18px;
  margin-bottom: 12px;
  cursor: pointer;
  transition: all var(--transition-med);
  position: relative;
}
.module-card:active { transform: scale(0.98); }

.module-card.active:hover {
  border-color: var(--card-border-hover);
  box-shadow: 0 6px 28px rgba(168, 200, 240, 0.06);
  transform: translateY(-1px);
}
.module-card.completed {
  background: linear-gradient(135deg, rgba(61, 112, 80, 0.1), var(--card-bg));
  border-color: rgba(88, 160, 112, 0.15);
}
.module-card.locked {
  opacity: 0.4;
  cursor: default;
}
.module-card.locked:active { transform: none; }

.mc-top {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.mc-icon {
  width: 46px; height: 46px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(168, 200, 240, 0.06);
  color: var(--lightning);
}
.mc-icon svg {
  display: block;
}
.module-card.completed .mc-icon {
  background: rgba(88, 160, 112, 0.12);
  color: var(--sage-light);
}
.module-card.locked .mc-icon {
  color: var(--text-dim);
}
.mc-info { flex: 1; min-width: 0; }
.mc-num {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-secondary);
  font-weight: 700;
}
.mc-num .check { color: var(--sage-light); margin-left: 4px; }
.mc-num .lock { opacity: 0.5; margin-left: 4px; }
.mc-title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.25;
  margin: 2px 0 1px;
}
.module-card.completed .mc-title { color: var(--sage-light); }
.module-card.locked .mc-title { color: var(--text-dim); }

.mc-lakota {
  font-size: 13px;
  color: var(--lightning);
  opacity: 0.6;
  font-weight: 600;
  letter-spacing: 0.3px;
}
.module-card.locked .mc-lakota { color: var(--text-dim); opacity: 0.4; }

.mc-desc {
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-top: 8px;
  font-weight: 300;
}
.module-card.locked .mc-desc { display: none; }

.mc-progress {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}
.mc-progress-bar {
  flex: 1;
  height: 3px;
  background: rgba(255,255,255,0.05);
  border-radius: 2px;
  overflow: hidden;
}
.mc-progress-fill {
  height: 100%;
  border-radius: 2px;
  transition: width 0.5s ease;
}
.module-card.active .mc-progress-fill {
  background: linear-gradient(90deg, var(--lightning), var(--lightning-bright));
}
.module-card.completed .mc-progress-fill {
  background: var(--sage);
}
.mc-progress-text {
  font-size: 11px;
  color: var(--text-secondary);
  font-weight: 600;
  min-width: 30px;
  text-align: right;
}

/* Spirit quote */
.spirit-quote {
  text-align: center;
  padding: 36px 16px 48px;
}
.spirit-thunderbird {
  display: flex;
  justify-content: center;
  margin-bottom: 12px;
  color: var(--warm-glow);
  opacity: 0.5;
}
.spirit-quote-text {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  color: var(--warm-glow);
  font-style: italic;
  text-shadow: 0 0 25px rgba(232, 219, 184, 0.08);
}
.spirit-quote-sub {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 8px;
  font-weight: 300;
  letter-spacing: 1px;
}

/* Lightning bolt decorative divider */
.bolt-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 28px 0;
  color: var(--lightning);
  opacity: 0.25;
}
.bolt-divider::before, .bolt-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--lightning), transparent);
}
.bolt-divider svg {
  flex-shrink: 0;
}

/* ==========================================================================
   MODULE DETAIL SCREEN
   ========================================================================== */

.screen-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 0 24px;
}
.back-btn {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(168, 200, 240, 0.06);
  border: 1px solid rgba(168, 200, 240, 0.1);
  color: var(--lightning);
  font-size: 18px;
  cursor: pointer;
  transition: all var(--transition-fast);
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}
.back-btn:hover {
  background: rgba(168, 200, 240, 0.12);
  border-color: rgba(168, 200, 240, 0.2);
}
.screen-header-text { flex: 1; }
.screen-header-title {
  font-size: 22px;
  color: var(--text-bright);
}
.screen-header-lakota {
  font-size: 14px;
  opacity: 0.6;
}

/* Lesson list */
.lesson-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}
.lesson-item {
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.lesson-item:hover {
  border-color: var(--card-border-hover);
  transform: translateY(-1px);
}
.lesson-item.completed {
  border-color: rgba(88, 160, 112, 0.2);
}
.lesson-item.locked {
  opacity: 0.35;
  cursor: default;
}
.lesson-item.locked:hover { transform: none; border-color: var(--card-border); }

.li-number {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
  background: rgba(168, 200, 240, 0.08);
  color: var(--lightning);
}
.lesson-item.completed .li-number {
  background: rgba(88, 160, 112, 0.15);
  color: var(--sage-light);
}
.li-content { flex: 1; min-width: 0; }
.li-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
}
.lesson-item.completed .li-title { color: var(--sage-light); }
.lesson-item.locked .li-title { color: var(--text-dim); }
.li-subtitle {
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 300;
  margin-top: 2px;
}
.li-arrow {
  color: var(--text-dim);
  font-size: 16px;
  flex-shrink: 0;
}
.lesson-item.completed .li-arrow { color: var(--sage); }

/* ==========================================================================
   LESSON SCREEN
   ========================================================================== */

.lesson-progress-bar {
  width: 100%;
  height: 3px;
  background: rgba(168, 200, 240, 0.08);
  border-radius: 2px;
  margin-top: 16px;
  overflow: hidden;
}
.lesson-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--sacred-red), var(--warm-glow));
  border-radius: 2px;
  transition: width 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Exercise container */
.exercise {
  margin-top: 32px;
  animation: fadeIn 0.4s ease;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.exercise-type {
  margin-bottom: 6px;
}
.exercise-prompt {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
  color: var(--text-bright);
  line-height: 1.35;
  margin-bottom: 10px;
}
.exercise-sub {
  font-size: 15px;
  color: var(--text-secondary);
  font-weight: 300;
  margin-bottom: 24px;
  line-height: 1.5;
}

/* Audio play button */
.audio-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: var(--radius-sm);
  background: rgba(168, 200, 240, 0.08);
  border: 1px solid rgba(168, 200, 240, 0.12);
  color: var(--lightning);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  margin-bottom: 24px;
  -webkit-tap-highlight-color: transparent;
  position: relative;
}
.audio-btn:hover {
  background: rgba(168, 200, 240, 0.14);
  border-color: rgba(168, 200, 240, 0.25);
}
.audio-btn.playing {
  background: rgba(168, 200, 240, 0.15);
  border-color: rgba(168, 200, 240, 0.3);
  animation: audioPulse 0.8s ease-in-out infinite;
  pointer-events: none;
}
@keyframes audioPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(168, 200, 240, 0.2); }
  50% { box-shadow: 0 0 0 8px rgba(168, 200, 240, 0); }
}
.audio-btn .speaker { font-size: 18px; }

/* TTS approximation notice */
.tts-notice {
  font-size: 11px;
  color: var(--text-dim);
  font-style: italic;
  margin-top: -18px;
  margin-bottom: 20px;
  font-weight: 300;
}

/* Lakota large display */
.lakota-display {
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 700;
  color: var(--lightning-bright);
  text-align: center;
  padding: 28px 16px;
  margin-bottom: 24px;
  text-shadow: 0 0 30px rgba(168, 200, 240, 0.15);
  border: 1px solid rgba(168, 200, 240, 0.08);
  border-radius: var(--radius-md);
  background: rgba(168, 200, 240, 0.03);
}
.lakota-display .phonetic {
  display: block;
  font-size: 17px;
  font-weight: 400;
  color: var(--text-secondary);
  margin-top: 8px;
  font-style: italic;
  font-family: var(--font-body);
  text-shadow: none;
}

/* Multiple choice options */
.options-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}
.option-btn {
  width: 100%;
  padding: 18px 20px;
  border-radius: var(--radius-md);
  background: rgba(168, 200, 240, 0.05);
  border: 1px solid rgba(168, 200, 240, 0.1);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  text-align: left;
  cursor: pointer;
  transition: all var(--transition-fast);
  -webkit-tap-highlight-color: transparent;
  position: relative;
}
.option-btn:hover {
  background: rgba(168, 200, 240, 0.1);
  border-color: rgba(168, 200, 240, 0.2);
}
.option-btn.selected {
  background: rgba(168, 200, 240, 0.12);
  border-color: var(--lightning);
  color: var(--lightning-bright);
}
.option-btn.correct {
  background: rgba(88, 160, 112, 0.15);
  border-color: var(--sage-light);
  color: var(--sage-light);
}
.option-btn.incorrect {
  background: rgba(168, 32, 32, 0.15);
  border-color: var(--sacred-red-light);
  color: var(--sacred-red-light);
}
.option-btn.disabled {
  pointer-events: none;
}
.option-btn .option-letter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px; height: 28px;
  border-radius: 7px;
  background: rgba(168, 200, 240, 0.08);
  font-size: 13px;
  font-weight: 700;
  margin-right: 14px;
  color: var(--text-secondary);
  vertical-align: middle;
}
.option-btn.selected .option-letter {
  background: rgba(168, 200, 240, 0.2);
  color: var(--lightning);
}
.option-btn.correct .option-letter {
  background: rgba(88, 160, 112, 0.25);
  color: var(--sage-light);
}
.option-btn.incorrect .option-letter {
  background: rgba(168, 32, 32, 0.25);
  color: var(--sacred-red-light);
}

/* Match pairs */
.match-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 24px;
}
.match-item {
  padding: 14px 12px;
  border-radius: var(--radius-sm);
  background: rgba(168, 200, 240, 0.05);
  border: 1px solid rgba(168, 200, 240, 0.1);
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  font-size: 14px;
  -webkit-tap-highlight-color: transparent;
}
.match-item:hover {
  background: rgba(168, 200, 240, 0.1);
  border-color: rgba(168, 200, 240, 0.2);
}
.match-item.selected {
  border-color: var(--lightning);
  background: rgba(168, 200, 240, 0.12);
  color: var(--lightning-bright);
}
.match-item.matched {
  border-color: var(--sage);
  background: rgba(88, 160, 112, 0.1);
  color: var(--sage-light);
  pointer-events: none;
  opacity: 0.7;
}
.match-item.wrong {
  border-color: var(--sacred-red-light);
  background: rgba(168, 32, 32, 0.1);
  animation: shake 0.4s ease;
}
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

/* Fill in blank */
.fill-blank-sentence {
  font-size: 18px;
  color: var(--text-primary);
  line-height: 1.6;
  margin-bottom: 20px;
}
.fill-blank-input {
  display: inline-block;
  min-width: 120px;
  padding: 4px 12px;
  border: none;
  border-bottom: 2px solid var(--lightning);
  background: transparent;
  color: var(--lightning-bright);
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  outline: none;
  text-align: center;
}
.fill-blank-input::placeholder {
  color: var(--text-dim);
  font-weight: 400;
  font-size: 16px;
}

/* Word intro card */
.word-intro-card {
  text-align: center;
  padding: 32px 24px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(168, 200, 240, 0.06), rgba(168, 200, 240, 0.02));
  border: 1px solid rgba(168, 200, 240, 0.12);
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}
.word-intro-card::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  width: 120px; height: 120px;
  transform: translateX(-50%) translateY(-50%);
  background: radial-gradient(circle, rgba(168, 200, 240, 0.12) 0%, transparent 70%);
  pointer-events: none;
}
.word-intro-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--lightning);
  font-weight: 700;
  margin-bottom: 20px;
  position: relative;
}
.word-intro-lakota {
  font-size: 42px;
  color: var(--lightning-bright);
  text-shadow: 0 0 30px rgba(168, 200, 240, 0.2);
  margin-bottom: 8px;
  position: relative;
}
.word-intro-phonetic {
  font-size: 16px;
  font-style: italic;
  color: var(--text-secondary);
  margin-bottom: 20px;
  font-family: var(--font-body);
  position: relative;
}
.word-intro-audio {
  margin: 0 auto 20px;
  display: inline-flex;
  position: relative;
}
.word-intro-divider {
  width: 40px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--lightning), transparent);
  margin: 0 auto 20px;
  opacity: 0.3;
}
.word-intro-meaning {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  color: var(--sage-light);
  margin-bottom: 12px;
  position: relative;
}
.word-intro-association {
  font-size: 14px;
  color: var(--warm-glow);
  font-style: italic;
  font-weight: 300;
  line-height: 1.55;
  max-width: 320px;
  margin: 0 auto;
  position: relative;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: rgba(232, 219, 184, 0.04);
  border: 1px solid rgba(232, 219, 184, 0.08);
}

/* Cultural note */
.cultural-note {
  padding: 24px;
  border-left: 3px solid var(--warm-glow);
  background: rgba(232, 219, 184, 0.04);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin-bottom: 24px;
}
.cultural-note-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--warm-glow);
  font-weight: 700;
  margin-bottom: 8px;
}
.cultural-note-text {
  font-size: 16px;
  color: var(--text-primary);
  line-height: 1.75;
  font-weight: 300;
}

/* Feedback banner */
.feedback {
  padding: 16px 20px;
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  animation: fadeIn 0.3s ease;
  position: relative;
  overflow: hidden;
}
.feedback.correct {
  background: rgba(88, 160, 112, 0.12);
  border: 1px solid rgba(88, 160, 112, 0.25);
}
.feedback.correct::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(168, 200, 240, 0.15) 0%, transparent 60%);
  animation: feedbackFlash 0.6s ease-out;
  pointer-events: none;
}
@keyframes feedbackFlash {
  0% { opacity: 1; }
  100% { opacity: 0; }
}
.feedback.incorrect {
  background: rgba(168, 32, 32, 0.12);
  border: 1px solid rgba(168, 32, 32, 0.25);
}
.feedback-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
}
.feedback.correct .feedback-title { color: var(--sage-light); }
.feedback.incorrect .feedback-title { color: var(--sacred-red-light); }
.feedback-text {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 300;
  line-height: 1.5;
}

/* Lesson complete screen */
.lesson-complete {
  text-align: center;
  padding: 48px 16px;
  animation: fadeIn 0.6s ease;
}
.lesson-complete-icon {
  margin-bottom: 16px;
  display: flex;
  justify-content: center;
}
.lesson-complete-title {
  font-size: 28px;
  color: var(--warm-glow);
  margin-bottom: 8px;
}
.lesson-complete-sub {
  font-size: 15px;
  color: var(--text-secondary);
  font-weight: 300;
  line-height: 1.6;
  margin-bottom: 8px;
  max-width: 300px;
  margin-left: auto;
  margin-right: auto;
}
.lesson-complete-score {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 700;
  color: var(--lightning-bright);
  margin: 20px 0;
}
.lesson-complete-score span {
  font-size: 20px;
  color: var(--text-secondary);
  font-weight: 400;
}
.lesson-complete-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 28px;
}

/* ==========================================================
   SUNDANCE PRACTICE
   ========================================================== */
.stats-row-single {
  margin-bottom: 12px;
}
.stats-row-single .stat-card {
  width: 100%;
}
.stat-sundance {
  cursor: pointer;
  transition: all var(--transition-fast);
  border-color: rgba(232, 219, 184, 0.15);
  background: linear-gradient(135deg, rgba(232, 219, 184, 0.06), var(--card-bg));
}
.stat-sundance:hover {
  border-color: var(--warm-glow);
  background: linear-gradient(135deg, rgba(232, 219, 184, 0.12), var(--card-bg));
  box-shadow: 0 4px 20px rgba(232, 219, 184, 0.08);
}
.stat-sundance .stat-icon { color: var(--warm-glow); }
.stat-sundance .stat-label { color: var(--warm-glow-bright); }
.sundance-situation {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  color: var(--lightning-bright);
  text-align: center;
  padding: 28px 16px 12px;
  margin-bottom: 8px;
  text-shadow: 0 0 30px rgba(168, 200, 240, 0.15);
  border: 1px solid rgba(232, 219, 184, 0.12);
  border-radius: var(--radius-md);
  background: rgba(232, 219, 184, 0.04);
  line-height: 1.3;
}
.scenario-context {
  font-size: 15px;
  color: var(--text-secondary);
  text-align: center;
  font-weight: 300;
  line-height: 1.5;
  margin-bottom: 24px;
  font-style: italic;
}
.scenario-response {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  color: var(--warm-glow);
  text-align: center;
  line-height: 1.35;
  margin-bottom: 8px;
}

/* ==========================================================================
   ENTRANCE ANIMATIONS
   ========================================================================== */

.anim-fade-up {
  opacity: 0;
  transform: translateY(16px);
  animation: animFadeUp 0.65s ease forwards;
}
@keyframes animFadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* Stagger children */
.stagger > *:nth-child(1) { animation-delay: 0.05s; }
.stagger > *:nth-child(2) { animation-delay: 0.1s; }
.stagger > *:nth-child(3) { animation-delay: 0.15s; }
.stagger > *:nth-child(4) { animation-delay: 0.2s; }
.stagger > *:nth-child(5) { animation-delay: 0.25s; }
.stagger > *:nth-child(6) { animation-delay: 0.3s; }
.stagger > *:nth-child(7) { animation-delay: 0.35s; }
.stagger > *:nth-child(8) { animation-delay: 0.4s; }
.stagger > *:nth-child(9) { animation-delay: 0.45s; }
.stagger > *:nth-child(10) { animation-delay: 0.5s; }
.stagger > *:nth-child(11) { animation-delay: 0.55s; }
.stagger > *:nth-child(12) { animation-delay: 0.6s; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

/* Small phones (< 380px) */
@media (max-width: 380px) {
  html { font-size: 16px; }
  #app { padding: 0 16px; }
  .home-title { font-size: 26px; }
  .lakota-display { font-size: 32px; }
  .exercise-prompt { font-size: 22px; }
  .countdown-number { font-size: 44px; }
  .thunderbird-hero .thunderbird-img { width: 100px !important; height: auto !important; }
  .word-intro-lakota { font-size: 32px; }
  .word-intro-meaning { font-size: 20px; }
}

/* Standard mobile (380px - 480px) — this is the default/primary target */

/* Large phones / small tablets (481px - 767px) */
@media (min-width: 481px) {
  #app { max-width: 560px; padding: 0 28px; }
  .home-title { font-size: 34px; }
  .lakota-display { font-size: 46px; }
  .exercise-prompt { font-size: 28px; }
  .option-btn { padding: 20px 22px; font-size: 17px; }
  .cultural-note-text { font-size: 17px; }
  .word-intro-lakota { font-size: 46px; }
  .word-intro-meaning { font-size: 26px; }
}

/* Tablet and up (768px+) */
@media (min-width: 768px) {
  html { font-size: 19px; }
  #app { max-width: 600px; padding: 0 32px; }
  .home-title { font-size: 38px; }
  .countdown-number { font-size: 64px; }
  .exercise-prompt { font-size: 30px; }
  .lakota-display { font-size: 50px; }
  .option-btn { padding: 22px 24px; font-size: 18px; }
  .cultural-note-text { font-size: 18px; line-height: 1.8; }
  .btn-lg { padding: 18px 32px; font-size: 18px; }
  .audio-btn { padding: 16px 28px; font-size: 17px; }
  .feedback { padding: 20px 24px; }
}

/* Desktop (1024px+) */
@media (min-width: 1024px) {
  #app { max-width: 640px; }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
  .option-btn { min-height: 54px; }
  .btn-lg { min-height: 56px; }
  .audio-btn { min-height: 52px; }
  .back-btn { min-height: 44px; min-width: 44px; }
  .match-item { min-height: 50px; }
}

/* Safe area insets for notched phones */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
  body {
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
    padding-bottom: env(safe-area-inset-bottom);
  }
}

/* ==========================================================
   SACRED SITES
   ========================================================== */
/* Home-screen call-to-action card */
.sacred-cta,
.sacred-practice-cta {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  margin-bottom: 28px;
  cursor: pointer;
  border-color: rgba(232, 219, 184, 0.18);
  background: linear-gradient(135deg, rgba(122, 32, 32, 0.12), rgba(13, 18, 48, 0.55));
  transition: all var(--transition-fast);
}
.sacred-practice-cta { margin: 26px 0 8px; }
.sacred-cta:hover,
.sacred-practice-cta:hover {
  border-color: var(--warm-glow);
  transform: translateY(-2px);
}
.sacred-cta-icon { color: var(--warm-glow); flex-shrink: 0; }
.sacred-cta-text { flex: 1; }
.sacred-cta-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-bright);
  line-height: 1.1;
}
.sacred-cta-lakota {
  font-size: 14px;
  color: var(--warm-glow);
  font-style: italic;
  margin: 2px 0 4px;
}
.sacred-cta-sub {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 300;
  line-height: 1.4;
}
.sacred-cta-arrow {
  color: var(--lightning);
  font-size: 22px;
  flex-shrink: 0;
}

/* Site list */
.sacred-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 8px; }
.sacred-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.sacred-card:hover {
  border-color: var(--card-border-hover);
  transform: translateX(3px);
}
.sacred-card-icon { color: var(--lightning); flex-shrink: 0; }
.sacred-card-info { flex: 1; min-width: 0; }
.sacred-card-lakota {
  font-size: 22px;
  font-weight: 600;
  color: var(--text-bright);
  line-height: 1.15;
}
.sacred-card-english {
  font-size: 14px;
  color: var(--text-primary);
  margin-top: 1px;
}
.sacred-card-loc {
  font-size: 12px;
  color: var(--text-dim);
  font-weight: 300;
  margin-top: 2px;
}

/* Single site story */
.sacred-hero {
  text-align: center;
  padding: 12px 16px 24px;
  border-bottom: 1px solid var(--card-border);
  margin-bottom: 24px;
}
.sacred-hero-icon { color: var(--warm-glow); margin-bottom: 8px; }
.sacred-hero-lakota {
  font-size: 38px;
  font-weight: 700;
  color: var(--text-bright);
  line-height: 1.1;
}
.sacred-hero-phonetic {
  font-size: 14px;
  color: var(--lightning);
  letter-spacing: 0.5px;
  margin-top: 4px;
}
.sacred-audio { margin: 14px auto 0; }
.sacred-hero-epithet {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 17px;
  color: var(--warm-glow);
  margin-top: 16px;
  line-height: 1.4;
}
.sacred-hero-loc {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 6px;
}
.sacred-story {
  font-size: 17px;
  line-height: 1.85;
  color: var(--text-primary);
  font-weight: 300;
}
.sacred-reverent {
  margin-top: 24px;
  padding: 18px 20px;
  border-left: 3px solid var(--sacred-red-light);
  background: rgba(122, 32, 32, 0.1);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}
.sacred-reverent-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--sacred-red-light);
  font-weight: 700;
  margin-bottom: 8px;
}
.sacred-reverent-text {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-primary);
  font-weight: 300;
  font-style: italic;
}
.sacred-source {
  margin-top: 22px;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--text-secondary);
  font-weight: 300;
}
.sacred-source-label {
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 11px;
  color: var(--text-dim);
  font-weight: 700;
}
.sacred-site-nav {
  display: flex;
  gap: 12px;
  margin-top: 28px;
}
.sacred-site-nav .btn { flex: 1; }

/* ==========================================================
   SENTENCE BUILDING
   ========================================================== */
.sb-english {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
  color: var(--text-bright);
  text-align: center;
  line-height: 1.25;
  margin: 8px 0 22px;
}
.sb-answer {
  min-height: 64px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: center;
  padding: 14px;
  border-radius: var(--radius-md);
  border: 1px dashed var(--card-border-hover);
  background: rgba(13, 18, 48, 0.4);
  margin-bottom: 22px;
  transition: border-color var(--transition-fast), background var(--transition-fast);
}
.sb-answer.correct {
  border: 1px solid var(--sage-light);
  background: var(--sage-glow);
}
.sb-answer.incorrect {
  border: 1px solid var(--sacred-red-light);
  background: rgba(122, 32, 32, 0.12);
}
.sb-answer-placeholder {
  color: var(--text-dim);
  font-size: 14px;
  font-style: italic;
  font-weight: 300;
}
.sb-bank {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 22px;
  min-height: 48px;
}
.sb-tile {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: var(--text-bright);
  background: var(--cloud);
  border: 1px solid var(--card-border-hover);
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  cursor: pointer;
  transition: all var(--transition-fast);
  min-height: 46px;
}
.sb-tile:hover { border-color: var(--lightning); transform: translateY(-1px); }
.sb-tile:active { transform: scale(0.96); }
.sb-tile.placed {
  background: var(--deep-blue);
  border-color: var(--lightning);
}
.sb-tile.locked { cursor: default; opacity: 0.95; }
.sb-tile.disabled { opacity: 0.3; pointer-events: none; }
.sb-clear {
  display: block;
  margin: 0 auto 12px;
  font-size: 13px;
  padding: 8px 18px;
}
.sb-correct {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 6px 0 10px;
}
.sb-correct-lakota {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--text-bright);
}
.sb-audio {
  width: 40px;
  height: 40px;
  min-height: 40px;
  padding: 0;
  flex-shrink: 0;
}

@media (max-width: 380px) {
  .sb-english { font-size: 22px; }
  .sb-tile { font-size: 18px; padding: 9px 13px; }
  .sacred-hero-lakota { font-size: 32px; }
}

/* Scroll to hide address bar on mobile */
html { height: calc(100% + 1px); }
