/* ── Reset & Base ──────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:    #0d1b35;
  --blue:    #1a3a6b;
  --blue2:   #2457a4;
  --gold:    #c9a84c;
  --gold2:   #f0c96e;
  --white:   #f5f0e8;
  --text:    #e8e4dc;
  --muted:   #9ab0cc;
  --success: #4caf50;
  --danger:  #e53935;
  --radius:  14px;
  --shadow:  0 4px 24px rgba(0,0,0,0.5);
}

html { font-size: 16px; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--navy);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input  { font-family: inherit; }
a { color: var(--gold2); }

/* ── Utilities ─────────────────────────────────────────────────────────── */
.hidden  { display: none !important; }
.screen  { min-height: 100vh; }

/* ── Auth Screens ──────────────────────────────────────────────────────── */
#screen-login, #screen-register {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: radial-gradient(ellipse at 50% 30%, #1a3a6b 0%, #0d1b35 70%);
  padding: 1rem;
}

.auth-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(201,168,76,0.3);
  border-radius: 20px;
  padding: 2rem 1.5rem;
  width: 100%;
  max-width: 400px;
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}

.auth-logo {
  text-align: center;
  margin-bottom: 1.5rem;
}

.auth-logo-emoji {
  font-size: 3rem;
  display: block;
  margin-bottom: 0.5rem;
  filter: drop-shadow(0 0 12px rgba(201,168,76,0.8));
}

.auth-logo h1 {
  font-size: 1.6rem;
  color: var(--gold2);
  font-weight: 700;
  line-height: 1.2;
}

.auth-logo p {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.25rem;
}

.auth-version {
  font-size: 0.7rem;
  color: var(--muted);
  opacity: 0.6;
  margin-top: 0.25rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.35rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-group input {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  border: 1.5px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.08);
  color: var(--white);
  font-size: 1rem;
  transition: border-color 0.2s;
}

.form-group input:focus {
  outline: none;
  border-color: var(--gold);
}

.form-group input::placeholder { color: rgba(255,255,255,0.3); }

.btn-primary {
  display: block;
  width: 100%;
  padding: 0.9rem;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--blue2), #4a90d9);
  color: white;
  font-size: 1rem;
  font-weight: 700;
  text-align: center;
  transition: transform 0.1s, box-shadow 0.2s;
  box-shadow: 0 4px 15px rgba(36,87,164,0.4);
  letter-spacing: 0.02em;
}

.btn-primary:hover  { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(36,87,164,0.5); }
.btn-primary:active { transform: translateY(0); }

.btn-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold2)) !important;
  color: #1a0a00 !important;
  box-shadow: 0 4px 15px rgba(201,168,76,0.4) !important;
}

.btn-secondary {
  display: inline-block;
  padding: 0.7rem 1.5rem;
  border-radius: 10px;
  border: 1.5px solid rgba(255,255,255,0.2);
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 600;
  transition: background 0.2s;
}

.btn-secondary:hover { background: rgba(255,255,255,0.1); }

.auth-error {
  color: #ff6b6b;
  font-size: 0.85rem;
  text-align: center;
  margin: 0.5rem 0;
  min-height: 1.2em;
}

.auth-switch {
  text-align: center;
  margin-top: 1.25rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.auth-switch button {
  color: var(--gold2);
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ── Welcome Screen ─────────────────────────────────────────────────────── */
#screen-welcome {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: radial-gradient(ellipse at 50% 30%, #1a3a6b 0%, #0d1b35 70%);
  padding: 1.5rem 1rem;
}

.welcome-wrap {
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.welcome-hero {
  text-align: center;
}

.welcome-tree {
  font-size: 4rem;
  filter: drop-shadow(0 0 18px rgba(201,168,76,0.7));
  margin-bottom: 0.5rem;
  animation: pulse 3s ease-in-out infinite;
}

.welcome-title {
  font-size: 2rem;
  color: var(--gold2);
  font-weight: 900;
  line-height: 1.2;
}

.welcome-sub {
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 0.35rem;
}

.welcome-ver {
  font-size: 0.7rem;
  color: var(--muted);
  opacity: 0.5;
  margin-top: 0.2rem;
}

.welcome-section-label {
  font-size: 0.8rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.welcome-profiles {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.welcome-profile-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.8rem 1rem;
  border-radius: 12px;
  background: rgba(255,255,255,0.07);
  border: 1.5px solid rgba(201,168,76,0.25);
  color: var(--text);
  font-size: 1rem;
  font-weight: 600;
  transition: background 0.15s, border-color 0.15s;
  text-align: left;
}

.welcome-profile-btn:hover {
  background: rgba(201,168,76,0.12);
  border-color: rgba(201,168,76,0.5);
}

.wp-avatar { font-size: 1.4rem; }
.wp-name   { flex: 1; }
.wp-stars  { font-size: 0.8rem; color: var(--gold2); }

.welcome-or {
  text-align: center;
  position: relative;
  margin: 0.25rem 0;
}

.welcome-or::before, .welcome-or::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 35%;
  height: 1px;
  background: rgba(255,255,255,0.15);
}

.welcome-or::before { left: 0; }
.welcome-or::after  { right: 0; }

.welcome-or span {
  font-size: 0.8rem;
  color: var(--muted);
  background: transparent;
  padding: 0 0.5rem;
}

.welcome-form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.welcome-input-row {
  display: flex;
  gap: 0.5rem;
}

.welcome-input-row input {
  flex: 1;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1.5px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.08);
  color: var(--white);
  font-size: 1rem;
  transition: border-color 0.2s;
}

.welcome-input-row input:focus {
  outline: none;
  border-color: var(--gold);
}

.welcome-input-row input::placeholder { color: rgba(255,255,255,0.3); }

.welcome-play-btn {
  padding: 0.85rem 1.25rem;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--gold), var(--gold2));
  color: #1a0a00;
  font-size: 1rem;
  font-weight: 800;
  white-space: nowrap;
  box-shadow: 0 4px 15px rgba(201,168,76,0.4);
  transition: transform 0.1s, box-shadow 0.2s;
}

.welcome-play-btn:hover  { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(201,168,76,0.5); }
.welcome-play-btn:active { transform: translateY(0); }

/* ── Game Container ─────────────────────────────────────────────────────── */
#screen-game { background: var(--navy); }
#game-container { min-height: 100vh; }

/* ── Covenant Map ───────────────────────────────────────────────────────── */
.map-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background: linear-gradient(180deg, rgba(13,27,53,1) 0%, rgba(13,27,53,0) 100%);
  position: sticky;
  top: 0;
  z-index: 10;
}

.map-title { font-size: 1.5rem; color: var(--gold2); font-weight: 800; }
.map-subtitle { font-size: 0.75rem; color: var(--muted); }

.btn-profile {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.85rem;
  border-radius: 20px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 600;
}

.avatar { font-size: 1.2rem; }

.map-stars-bar {
  display: flex;
  justify-content: space-between;
  padding: 0.4rem 1rem;
  font-size: 0.8rem;
  color: var(--gold2);
  background: rgba(201,168,76,0.08);
  border-bottom: 1px solid rgba(201,168,76,0.15);
}

/* Tree of Life */
.tree-of-life {
  text-align: center;
  padding: 2rem 1rem 1rem;
  position: relative;
}

.tree-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(201,168,76,0.3) 0%, transparent 70%);
  border-radius: 50%;
  animation: pulse 3s ease-in-out infinite;
}

.tree-emoji { font-size: 4rem; position: relative; z-index: 1; filter: drop-shadow(0 0 16px rgba(201,168,76,0.6)); }
.tree-label { color: var(--gold2); font-weight: 700; font-size: 1rem; margin-top: 0.5rem; }
.tree-label small { color: var(--muted); font-size: 0.75rem; font-weight: 400; }

@keyframes pulse {
  0%, 100% { opacity: 0.5; transform: translate(-50%,-50%) scale(1); }
  50%       { opacity: 1;   transform: translate(-50%,-50%) scale(1.2); }
}

/* Covenant Path */
.covenant-path {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 1rem 1rem;
  gap: 0;
}

.path-connector {
  width: 3px;
  height: 28px;
  background: rgba(255,255,255,0.1);
  border-radius: 2px;
}

.connector-lit {
  background: linear-gradient(180deg, var(--gold), rgba(201,168,76,0.2));
  box-shadow: 0 0 8px rgba(201,168,76,0.4);
}

.path-stop {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.6rem 1rem;
  border-radius: 16px;
  width: 100%;
  max-width: 380px;
  transition: transform 0.1s;
  cursor: pointer;
}

.stop-unlocked {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
}

.stop-unlocked:active { transform: scale(0.97); }

.stop-current {
  background: rgba(201,168,76,0.12);
  border: 1.5px solid rgba(201,168,76,0.4);
  box-shadow: 0 0 16px rgba(201,168,76,0.15);
}

.stop-locked {
  opacity: 0.45;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  cursor: default;
}

.stop-completed {
  background: rgba(76,175,80,0.1);
  border-color: rgba(76,175,80,0.3);
}

.stop-bubble {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  flex-shrink: 0;
  position: relative;
}

.stop-check { position: absolute; bottom: -2px; right: -2px; font-size: 0.9rem; }
.stop-lock  { position: absolute; bottom: -2px; right: -2px; font-size: 0.9rem; }

.stop-label { display: flex; flex-direction: column; }
.stop-label strong { font-size: 1rem; color: var(--white); }
.stop-label span   { font-size: 0.78rem; color: var(--muted); }

.path-start {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 0.5rem;
}

.start-icon  { font-size: 2rem; }
.start-label { font-size: 0.78rem; color: var(--muted); margin-top: 0.25rem; }

/* Map Section — Lessons */
.map-section { padding: 1rem; }
.section-title {
  font-size: 1rem;
  color: var(--gold2);
  font-weight: 700;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.lesson-cards { display: flex; flex-direction: column; gap: 0.6rem; }

.lesson-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}

.lesson-card:hover  { background: rgba(255,255,255,0.09); }
.lesson-card:active { transform: scale(0.98); }

.lesson-emoji { font-size: 1.8rem; }
.lesson-info  { flex: 1; }
.lesson-info strong { font-size: 0.95rem; color: var(--white); }
.lesson-arrow { color: var(--muted); font-size: 1rem; }

.version-footer {
  text-align: center;
  font-size: 0.7rem;
  color: rgba(255,255,255,0.2);
  padding: 1rem;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(30,30,30,0.95);
  color: var(--white);
  padding: 0.75rem 1.25rem;
  border-radius: 20px;
  font-size: 0.9rem;
  z-index: 100;
  box-shadow: 0 4px 16px rgba(0,0,0,0.5);
}

/* ── Stop Screen ────────────────────────────────────────────────────────── */
.stop-screen { min-height: 100vh; }

.stop-screen-header {
  padding: 1rem;
  background: rgba(0,0,0,0.3);
}

.stop-screen-header h2 { font-size: 1.3rem; color: var(--gold2); margin: 0.5rem 0 0.25rem; }
.stop-screen-header p  { font-size: 0.8rem; color: var(--muted); }

.stop-activities { padding: 1rem; }
.stop-activities h3 { font-size: 0.85rem; color: var(--muted); margin-bottom: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; }

.activity-list { display: flex; flex-direction: column; gap: 0.6rem; margin-bottom: 1.5rem; }

.activity-btn {
  display: block;
  width: 100%;
  padding: 1rem;
  border-radius: 12px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--white);
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
  transition: background 0.2s, transform 0.1s;
}

.activity-btn:hover  { background: rgba(255,255,255,0.13); }
.activity-btn:active { transform: scale(0.98); }

.scripture-section { margin: 1.25rem 0; }
.scripture-section h3 { font-size: 0.85rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.75rem; }

.scripture-slider { display: flex; flex-direction: column; gap: 0.75rem; }

.scripture-card {
  background: rgba(255,255,255,0.06);
  border-left: 3px solid var(--gold);
  border-radius: 0 12px 12px 0;
  padding: 1rem;
}

.scripture-text { font-size: 0.95rem; font-style: italic; color: var(--white); line-height: 1.5; margin-bottom: 0.5rem; }
.scripture-ref  { font-size: 0.78rem; color: var(--gold2); font-weight: 600; }

.source-badge {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  background: rgba(201,168,76,0.15);
  border-radius: 10px;
  font-size: 0.7rem;
  color: var(--gold2);
  margin-left: 0.25rem;
}

.conference-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 1rem;
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin: 1rem 0;
}

.conf-icon { font-size: 1.5rem; flex-shrink: 0; }
.conference-card p { font-size: 0.88rem; font-style: italic; color: var(--text); line-height: 1.5; }
.conf-source { font-size: 0.75rem !important; color: var(--gold2) !important; font-style: normal !important; font-weight: 600; margin-top: 0.4rem; }

.completed-banner {
  background: rgba(76,175,80,0.15);
  border: 1px solid rgba(76,175,80,0.3);
  border-radius: 10px;
  padding: 0.75rem;
  text-align: center;
  color: #81c784;
  font-weight: 600;
}

/* ── Game Header ────────────────────────────────────────────────────────── */
.game-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 10;
  gap: 0.5rem;
}

.btn-back {
  padding: 0.5rem 0.8rem;
  border-radius: 10px;
  background: rgba(255,255,255,0.1);
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 600;
  flex-shrink: 0;
  border: 1px solid rgba(255,255,255,0.15);
}

.game-title { display: flex; align-items: center; gap: 0.5rem; flex: 1; min-width: 0; }
.game-title-emoji { font-size: 1.6rem; flex-shrink: 0; }
.game-title h2 { font-size: 1rem; color: var(--white); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.game-title p  { font-size: 0.72rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.score-badge {
  padding: 0.35rem 0.7rem;
  border-radius: 20px;
  background: rgba(201,168,76,0.2);
  border: 1px solid rgba(201,168,76,0.4);
  color: var(--gold2);
  font-size: 0.8rem;
  font-weight: 700;
  flex-shrink: 0;
  white-space: nowrap;
}

/* Lesson Banner */
.lesson-banner {
  padding: 0.65rem 1rem;
  background: rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  font-size: 0.88rem;
  color: var(--text);
  text-align: center;
}

.gold-banner  { background: rgba(201,168,76,0.1); border-color: rgba(201,168,76,0.2); }
.blue-banner  { background: rgba(36,87,164,0.2); border-color: rgba(74,144,217,0.3); }

/* ── Modals ─────────────────────────────────────────────────────────────── */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
  padding: 1rem;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal-content {
  background: linear-gradient(135deg, #1a2a4a, #0d1b35);
  border: 1px solid rgba(201,168,76,0.3);
  border-radius: 20px;
  padding: 1.5rem;
  width: 100%;
  max-width: 380px;
  box-shadow: var(--shadow);
  animation: slideUp 0.25s ease;
}

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

.scripture-popup { text-align: center; }

.win-screen { text-align: center; }
.win-emoji  { font-size: 3rem; margin-bottom: 0.75rem; }
.win-screen h2 { font-size: 1.5rem; color: var(--gold2); margin-bottom: 0.5rem; }
.win-screen p  { color: var(--text); margin-bottom: 1rem; font-size: 0.95rem; }
.win-screen .scripture-card { margin: 1rem 0; text-align: left; }
.win-screen .conference-quote {
  background: rgba(255,255,255,0.05);
  border-radius: 10px;
  padding: 0.85rem;
  margin: 0.75rem 0;
  font-size: 0.85rem;
  font-style: italic;
  text-align: left;
}
.win-screen .btn-primary { margin-top: 1rem; }

/* ── Daily Bread ────────────────────────────────────────────────────────── */
.db-board {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
  padding: 0.75rem;
  max-width: 500px;
  margin: 0 auto;
}

.db-card {
  aspect-ratio: 1;
  cursor: pointer;
  perspective: 600px;
  border-radius: 12px;
}

.db-card-inner {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.5s;
  border-radius: 12px;
}

.db-card.flipped .db-card-inner { transform: rotateY(180deg); }
.db-card.db-matched .db-card-inner { transform: rotateY(180deg); }

.db-card-front, .db-card-back {
  position: absolute;
  inset: 0;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  backface-visibility: hidden;
  padding: 0.5rem;
  gap: 0.35rem;
}

.db-card-front {
  background: linear-gradient(135deg, var(--blue), var(--blue2));
  border: 1.5px solid rgba(201,168,76,0.3);
}

.card-icon { font-size: 2rem; }

.card-problem {
  background: linear-gradient(135deg, #3d1a4a, #6b2d8b);
  border: 1.5px solid rgba(150,80,200,0.4);
  transform: rotateY(180deg);
}

.card-solution {
  background: linear-gradient(135deg, #1a4a3d, #2d8b6b);
  border: 1.5px solid rgba(80,200,150,0.4);
  transform: rotateY(180deg);
}

.card-emoji { font-size: 1.8rem; }
.card-label { font-size: 0.7rem; color: var(--white); text-align: center; font-weight: 600; line-height: 1.2; }

.db-card.db-matched { opacity: 0.7; cursor: default; }

.match-success { text-align: center; }
.match-icons   { font-size: 2rem; margin-bottom: 0.5rem; }
.match-title   { font-size: 1.1rem; color: var(--gold2); font-weight: 700; margin-bottom: 0.5rem; }
.match-text    { font-size: 0.88rem; color: var(--text); line-height: 1.5; }

/* ── Build the Temple ───────────────────────────────────────────────────── */
.bt-layout {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0.75rem;
  max-width: 500px;
  margin: 0 auto;
}

.temple-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin-bottom: 1rem;
}

.temple-row {
  display: flex;
  gap: 4px;
  justify-content: center;
}

.temple-block {
  width: 52px;
  height: 36px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s ease;
  font-size: 0.6rem;
  font-weight: 700;
  text-align: center;
  line-height: 1.2;
}

.block-empty  { background: rgba(255,255,255,0.06); border: 1.5px dashed rgba(255,255,255,0.2); }
.block-filled {
  background: linear-gradient(135deg, #c9a84c, #f0c96e);
  border: 1.5px solid rgba(255,255,255,0.5);
  color: #1a0a00;
  box-shadow: 0 2px 8px rgba(201,168,76,0.4);
}

.block-foundation {
  background: linear-gradient(135deg, #2457a4, #4a90d9) !important;
  color: white !important;
  border-color: rgba(255,255,255,0.6) !important;
  box-shadow: 0 2px 12px rgba(74,144,217,0.5) !important;
}

.foundation-label { font-size: 0.55rem; font-weight: 800; line-height: 1.1; text-align: center; }

@keyframes blockPlace {
  0%   { transform: scale(0.5); opacity: 0; }
  60%  { transform: scale(1.15); }
  100% { transform: scale(1); opacity: 1; }
}

.block-new { animation: blockPlace 0.5s ease; }

.bt-question-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  padding: 1rem;
}

.question-number { font-size: 0.75rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 0.5rem; }

.progress-bar {
  height: 4px;
  background: rgba(255,255,255,0.1);
  border-radius: 2px;
  margin-bottom: 1rem;
  overflow: hidden;
}

.progress-fill { height: 100%; background: var(--gold); border-radius: 2px; transition: width 0.4s ease; }

.question-text {
  font-size: 1rem;
  color: var(--white);
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 1rem;
}

.answer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.answer-btn {
  padding: 0.75rem 0.5rem;
  border-radius: 10px;
  background: rgba(255,255,255,0.07);
  border: 1.5px solid rgba(255,255,255,0.15);
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
  line-height: 1.3;
  transition: background 0.15s, transform 0.1s;
}

.answer-btn:not(:disabled):hover  { background: rgba(255,255,255,0.13); }
.answer-btn:not(:disabled):active { transform: scale(0.97); }
.answer-btn:disabled { opacity: 0.7; cursor: default; }

.question-ref  { font-size: 0.72rem; color: var(--muted); text-align: right; }
.question-modal .question-text { font-size: 0.95rem; color: var(--white); font-weight: 600; margin: 1rem 0; }
.question-header { display: flex; align-items: center; gap: 0.5rem; }
.question-header h3 { font-size: 1rem; color: var(--gold2); }
.question-liahona { font-size: 1.6rem; }

.feedback-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 40;
  padding: 1rem;
}

.feedback-card {
  background: linear-gradient(135deg, #1a2a4a, #0d1b35);
  border-radius: 16px;
  padding: 1.5rem;
  text-align: center;
  width: 100%;
  max-width: 320px;
  border: 1.5px solid rgba(255,255,255,0.15);
}

.feedback-correct { border-color: rgba(76,175,80,0.5) !important; }
.feedback-wrong   { border-color: rgba(229,57,53,0.5) !important; }

.feedback-emoji { font-size: 2.5rem; margin-bottom: 0.75rem; }
.feedback-card h3 { font-size: 1.2rem; color: var(--white); margin-bottom: 0.5rem; }
.feedback-card p  { font-size: 0.88rem; color: var(--text); margin-bottom: 0.75rem; }
.feedback-ref { font-size: 0.78rem; color: var(--gold2); margin-bottom: 1rem; }
.feedback-card .btn-primary { margin-top: 0.75rem; }

/* ── Scripture Sleuth ───────────────────────────────────────────────────── */
.ss-layout {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 110px);
}

.ss-scene-wrap {
  flex: 1;
  overflow: hidden;
  position: relative;
  background: #0a1628;
}

.ss-scene { width: 100%; height: 100%; }

.scene-svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.scene-item { cursor: pointer; transition: opacity 0.3s; }
.scene-item:hover { opacity: 0.85; }
.scene-item.item-found { opacity: 0.35; pointer-events: none; }

.ss-checklist {
  padding: 0.75rem;
  background: rgba(0,0,0,0.5);
  border-top: 1px solid rgba(255,255,255,0.1);
  max-height: 180px;
  overflow-y: auto;
}

.ss-checklist h3 { font-size: 0.8rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 0.5rem; }

#ss-list { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem; }

.ss-item-check {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.3rem 0.6rem;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 20px;
  font-size: 0.8rem;
  color: var(--text);
  transition: all 0.3s;
}

.ss-item-check.ss-found {
  background: rgba(76,175,80,0.2);
  border-color: rgba(76,175,80,0.5);
  color: #81c784;
  text-decoration: line-through;
}

.ss-item-emoji { font-size: 1rem; }

.found-item-popup { text-align: center; }
.found-emoji   { font-size: 3rem; margin-bottom: 0.5rem; }
.found-item-popup h3 { font-size: 1.1rem; color: var(--gold2); margin-bottom: 0.5rem; }
.item-clue { font-size: 0.88rem; color: var(--muted); margin-bottom: 1rem; }

/* ── Liahona Maze ───────────────────────────────────────────────────────── */
.lm-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem;
}

.lm-grid {
  display: grid;
  gap: 2px;
  background: rgba(0,0,0,0.3);
  border-radius: 10px;
  padding: 4px;
  max-width: 380px;
  width: 100%;
  aspect-ratio: 1;
}

.lm-cell {
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  transition: background 0.15s;
}

.lm-wall   { background: rgba(26,58,107,0.9); }
.lm-cell:not(.lm-wall) { background: rgba(74,144,217,0.12); }
.lm-player { background: rgba(201,168,76,0.2) !important; }
.lm-exit   { background: rgba(76,175,80,0.2) !important; }
.lm-fog    { background: rgba(5,10,20,0.92) !important; }

.liahona-icon {
  font-size: 1rem;
  filter: drop-shadow(0 0 6px rgba(201,168,76,0.9));
  animation: liahonaPulse 1.5s ease-in-out infinite;
}

@keyframes liahonaPulse {
  0%,100% { filter: drop-shadow(0 0 4px rgba(201,168,76,0.7)); }
  50%      { filter: drop-shadow(0 0 10px rgba(201,168,76,1)); }
}

.lm-controls { display: flex; flex-direction: column; align-items: center; gap: 0.25rem; }

.dpad { display: grid; grid-template-rows: auto auto; gap: 0.25rem; }
.dpad-up, .dpad-down { display: block; margin: 0 auto; }
.dpad-mid { display: flex; gap: 0.25rem; justify-content: center; }

.dpad-btn {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(255,255,255,0.1);
  border: 1.5px solid rgba(255,255,255,0.2);
  color: var(--white);
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.1s, transform 0.1s;
}

.dpad-btn:active { background: rgba(255,255,255,0.2); transform: scale(0.95); }

.dpad-hint { font-size: 0.72rem; color: var(--muted); text-align: center; }

/* ── Lesson Screen ──────────────────────────────────────────────────────── */
.lesson-screen { min-height: 100vh; }

.lesson-top {
  padding: 1rem;
  background: rgba(0,0,0,0.35);
}

.lesson-hero { text-align: center; padding: 1.25rem 0 0.5rem; }
.lesson-hero-emoji { font-size: 4rem; margin-bottom: 0.5rem; filter: drop-shadow(0 0 12px rgba(255,255,255,0.3)); }
.lesson-hero h1 { font-size: 1.5rem; color: var(--gold2); font-weight: 800; }
.lesson-hero p  { font-size: 0.85rem; color: var(--muted); margin-top: 0.25rem; }

.lesson-body { padding: 1rem; display: flex; flex-direction: column; gap: 1.25rem; }

.christ-connection-banner {
  display: flex;
  gap: 0.75rem;
  padding: 1rem;
  background: rgba(201,168,76,0.1);
  border: 1px solid rgba(201,168,76,0.3);
  border-radius: 14px;
  align-items: flex-start;
}

.connection-icon { font-size: 1.8rem; flex-shrink: 0; }
.connection-text strong { display: block; font-size: 0.8rem; color: var(--gold2); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 0.35rem; }
.connection-text p { font-size: 0.9rem; color: var(--text); line-height: 1.5; }

.key-points-section h2 { font-size: 1rem; color: var(--gold2); margin-bottom: 0.75rem; }

.key-point {
  display: flex;
  gap: 0.75rem;
  padding: 0.75rem;
  background: rgba(255,255,255,0.04);
  border-radius: 12px;
  margin-bottom: 0.5rem;
  align-items: flex-start;
  border-left: 3px solid rgba(255,255,255,0.1);
}

.key-icon { font-size: 1.4rem; flex-shrink: 0; }
.key-point p { font-size: 0.9rem; color: var(--text); line-height: 1.5; }

.lesson-scriptures h2, .deep-connection h2 { font-size: 1rem; color: var(--gold2); margin-bottom: 0.75rem; }
.lesson-scriptures { display: flex; flex-direction: column; gap: 0.75rem; }

.deep-connection { }

.connection-box {
  background: rgba(36,87,164,0.15);
  border: 1px solid rgba(74,144,217,0.3);
  border-radius: 12px;
  padding: 1rem;
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.6;
}

.prayer-prompt {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  padding: 1rem;
  background: rgba(255,255,255,0.05);
  border-radius: 12px;
  border: 1px dashed rgba(255,255,255,0.15);
}

.prayer-icon { font-size: 1.8rem; }
.prayer-prompt p { font-size: 0.9rem; color: var(--text); line-height: 1.5; }

.lesson-done-section { padding-bottom: 1rem; }
.lesson-done-section .btn-primary { display: block; }

/* ── Profile Screen ─────────────────────────────────────────────────────── */
#screen-profile { background: var(--navy); min-height: 100vh; }
#profile-container { }

.profile-screen { padding: 1rem; }

.profile-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.profile-header h2 { font-size: 1.3rem; color: var(--gold2); }

.profile-avatar-section { text-align: center; margin-bottom: 1.5rem; }
.profile-avatar { font-size: 4rem; margin-bottom: 0.5rem; }
.profile-avatar-section h3 { font-size: 1.4rem; color: var(--white); font-weight: 700; }
.profile-username { font-size: 0.85rem; color: var(--muted); }

.profile-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.stat-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 1rem 0.5rem;
  text-align: center;
}

.stat-num   { font-size: 1.8rem; font-weight: 800; color: var(--gold2); }
.stat-label { font-size: 0.72rem; color: var(--muted); margin-top: 0.25rem; }

.profile-path h3 { font-size: 0.85rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 0.75rem; }

.profile-stop {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 1rem;
  border-radius: 10px;
  background: rgba(255,255,255,0.04);
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.stop-done   { color: var(--white); background: rgba(76,175,80,0.1); }
.stop-active { color: var(--gold2); background: rgba(201,168,76,0.1); }

.profile-actions { margin-top: 1.5rem; text-align: center; }

/* ── Responsive: Tablet/Desktop ────────────────────────────────────────── */
@media (min-width: 600px) {
  .db-board { grid-template-columns: repeat(4, 1fr); }
  .ss-layout { flex-direction: row; height: calc(100vh - 130px); }
  .ss-scene-wrap { flex: 1; }
  .ss-checklist { max-height: none; width: 220px; flex-shrink: 0; border-top: none; border-left: 1px solid rgba(255,255,255,0.1); }
  .bt-layout { flex-direction: row; gap: 1rem; }
  #bt-temple-wrap { flex-shrink: 0; }
  #bt-question-area { flex: 1; }
  .auth-card { padding: 2.5rem 2rem; }
}

@media (min-width: 768px) {
  .covenant-path { max-width: 500px; margin: 0 auto; }
  .map-title { font-size: 1.8rem; }
}

/* ── Interactive Lesson Engine ──────────────────────────────────────────── */

.lesson-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header shared across all stages */
.ls-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0.85rem;
  background: rgba(0,0,0,0.35);
  backdrop-filter: blur(8px);
  gap: 0.5rem;
  flex-shrink: 0;
}

.ls-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex: 1;
  justify-content: center;
  overflow: hidden;
}

.ls-crumb {
  font-size: 0.72rem;
  color: var(--muted);
  white-space: nowrap;
}

.ls-crumb.active { color: var(--gold2); font-weight: 700; }
.ls-crumb.done   { color: var(--success); }
.ls-crumb-sep    { color: rgba(255,255,255,0.2); font-size: 0.7rem; }

.ls-stage-badge {
  font-size: 0.72rem;
  color: var(--gold2);
  background: rgba(201,168,76,0.15);
  border: 1px solid rgba(201,168,76,0.3);
  padding: 0.2rem 0.55rem;
  border-radius: 10px;
  flex-shrink: 0;
}

/* ── Story Slides ────────────────────────────────────────────────────────── */

.story-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 0.75rem;
  gap: 0.75rem;
  max-width: 520px;
  margin: 0 auto;
  width: 100%;
}

.story-slide {
  flex: 1;
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  overflow: hidden;
  background: rgba(0,0,0,0.25);
  border: 1px solid rgba(255,255,255,0.1);
}

@keyframes slideEnter {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}

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

.slide-enter { animation: slideEnter 0.25s ease forwards; }
.slide-exit  { animation: slideExit  0.2s  ease forwards; }

.story-scene {
  position: relative;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: rgba(0,0,0,0.2);
}

.story-bg-emoji {
  position: absolute;
  font-size: 6rem;
  opacity: 0.12;
  filter: blur(2px);
  transform: scale(2);
}

.story-main-emoji {
  font-size: 5rem;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 4px 16px rgba(0,0,0,0.5));
  animation: floatEmoji 3s ease-in-out infinite;
}

@keyframes floatEmoji {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}

.story-text-area {
  padding: 1rem;
  flex: 1;
}

.slide-number {
  font-size: 0.7rem;
  color: var(--gold2);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.4rem;
  font-weight: 700;
}

.slide-title {
  font-size: 1.2rem;
  color: var(--white);
  font-weight: 800;
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.slide-text {
  font-size: 0.92rem;
  color: var(--text);
  line-height: 1.55;
  margin-bottom: 0.75rem;
}

.slide-verse {
  background: rgba(201,168,76,0.1);
  border-left: 3px solid var(--gold);
  padding: 0.6rem 0.75rem;
  border-radius: 0 8px 8px 0;
  font-size: 0.82rem;
  font-style: italic;
  color: var(--gold2);
  line-height: 1.4;
}

/* Story Navigation */
.story-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-shrink: 0;
}

.slide-dots {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-shrink: 0;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  transition: all 0.3s;
}

.dot-active {
  background: var(--gold2);
  width: 20px;
  border-radius: 4px;
}

.dot-done { background: rgba(76,175,80,0.6); }

.story-next-btn {
  padding: 0.75rem 1.5rem;
  border-radius: 12px;
  background: rgba(255,255,255,0.1);
  border: 1.5px solid rgba(255,255,255,0.2);
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 700;
  transition: background 0.15s, transform 0.1s;
  flex-shrink: 0;
}

.story-next-btn:active { transform: scale(0.97); }

.story-next-btn.btn-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold2));
  color: #1a0a00;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(201,168,76,0.35);
}

/* ── Scripture Quiz ──────────────────────────────────────────────────────── */

.quiz-shell { background: var(--navy); }

.quiz-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 1rem;
  gap: 1rem;
  max-width: 500px;
  margin: 0 auto;
  width: 100%;
}

.quiz-header-area { text-align: center; padding: 0.5rem 0; }
.quiz-icon   { font-size: 2.5rem; margin-bottom: 0.5rem; }
.quiz-header-area h2 { font-size: 1.2rem; color: var(--gold2); margin-bottom: 0.25rem; }
.quiz-header-area p  { font-size: 0.88rem; color: var(--muted); }

.quiz-verse-card {
  background: rgba(255,255,255,0.06);
  border: 1.5px solid rgba(201,168,76,0.25);
  border-radius: 16px;
  padding: 1.25rem;
}

.quiz-source {
  font-size: 0.75rem;
  color: var(--gold2);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.6rem;
}

.quiz-verse-text {
  font-size: 1.05rem;
  color: var(--white);
  font-style: italic;
  line-height: 1.6;
}

.quiz-blank {
  display: inline-block;
  min-width: 80px;
  border-bottom: 2.5px solid var(--gold);
  text-align: center;
  color: var(--gold2);
  font-weight: 700;
  font-style: normal;
  padding: 0 0.3rem;
  transition: all 0.3s;
}

.blank-filled {
  border-bottom-color: var(--success);
  color: #81c784;
  animation: popIn 0.3s ease;
}

@keyframes popIn {
  0%   { transform: scale(0.8); }
  60%  { transform: scale(1.15); }
  100% { transform: scale(1); }
}

.word-choices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}

.word-chip {
  padding: 0.85rem;
  border-radius: 12px;
  background: rgba(255,255,255,0.07);
  border: 1.5px solid rgba(255,255,255,0.15);
  color: var(--white);
  font-size: 1rem;
  font-weight: 700;
  transition: background 0.15s, transform 0.1s, border-color 0.2s;
}

.word-chip:not(:disabled):hover  { background: rgba(255,255,255,0.13); }
.word-chip:not(:disabled):active { transform: scale(0.97); }
.word-chip:disabled { cursor: default; }

.chip-correct {
  background: rgba(76,175,80,0.25) !important;
  border-color: rgba(76,175,80,0.7) !important;
  color: #81c784 !important;
}

.chip-wrong {
  background: rgba(229,57,53,0.2) !important;
  border-color: rgba(229,57,53,0.6) !important;
  color: #ef9a9a !important;
}

.quiz-result {
  padding: 0.85rem 1rem;
  border-radius: 12px;
  font-size: 0.9rem;
  line-height: 1.5;
  animation: fadeInUp 0.3s ease;
}

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

.result-correct {
  background: rgba(76,175,80,0.15);
  border: 1px solid rgba(76,175,80,0.35);
  color: #a5d6a7;
}

.result-wrong {
  background: rgba(229,57,53,0.12);
  border: 1px solid rgba(229,57,53,0.3);
  color: #ef9a9a;
}

/* ── Symbol Tap Game ────────────────────────────────────────────────────── */

.symbols-shell { background: var(--navy); }

.symbols-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 0.85rem;
  gap: 0.85rem;
  max-width: 520px;
  margin: 0 auto;
  width: 100%;
}

.symbols-header { text-align: center; }
.symbols-icon   { font-size: 2rem; margin-bottom: 0.4rem; }
.symbols-header h2 { font-size: 1.15rem; color: var(--gold2); margin-bottom: 0.25rem; }
.symbols-header p  { font-size: 0.85rem; color: var(--text); line-height: 1.4; }
.symbols-hint      { font-size: 0.78rem !important; color: var(--muted) !important; margin-top: 0.2rem; }

.symbols-progress {
  text-align: center;
  font-size: 0.82rem;
  color: var(--muted);
  background: rgba(255,255,255,0.05);
  border-radius: 20px;
  padding: 0.35rem 0.75rem;
}

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

.sym-card {
  position: relative;
  aspect-ratio: 1;
  border-radius: 16px;
  background: rgba(255,255,255,0.07);
  border: 2px solid rgba(255,255,255,0.12);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  cursor: pointer;
  transition: transform 0.15s, border-color 0.3s, background 0.3s;
  padding: 0.5rem;
}

.sym-card:active:not(.sym-tapped) { transform: scale(0.94); }

.sym-card.sym-christ {
  background: rgba(201,168,76,0.15);
  border-color: rgba(201,168,76,0.55);
  animation: christReveal 0.4s ease;
}

.sym-card.sym-not {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.18);
  opacity: 0.65;
}

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

.sym-emoji { font-size: 2.2rem; }
.sym-label {
  font-size: 0.68rem;
  color: var(--text);
  text-align: center;
  font-weight: 600;
  line-height: 1.2;
}

.sym-indicator {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
}

.sym-ind-yes { background: var(--gold); color: #1a0a00; }
.sym-ind-no  { background: rgba(255,255,255,0.15); color: var(--muted); font-size: 0.9rem; }

/* Symbol popup */
.sym-popup {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.72);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 60;
  padding: 0 0 env(safe-area-inset-bottom, 0);
  animation: fadeIn 0.15s ease;
}

.sym-popup-content {
  background: linear-gradient(170deg, #1a2a4a, #0d1b35);
  border-radius: 24px 24px 0 0;
  padding: 1.5rem;
  width: 100%;
  max-width: 500px;
  border: 1px solid rgba(255,255,255,0.1);
  border-bottom: none;
  animation: sheetUp 0.25s ease;
}

@keyframes sheetUp {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}

.sym-popup-content.popup-christ {
  background: linear-gradient(170deg, #2a2000, #1a0a00);
  border-color: rgba(201,168,76,0.3);
}

.sym-popup-content.popup-not {
  background: linear-gradient(170deg, #1a1a2e, #0d1b35);
}

.popup-emoji  { font-size: 3rem; text-align: center; margin-bottom: 0.6rem; }
.popup-badge  {
  display: inline-block;
  padding: 0.25rem 0.85rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.popup-christ .popup-badge {
  background: rgba(201,168,76,0.25);
  color: var(--gold2);
  border: 1px solid rgba(201,168,76,0.4);
}

.popup-not .popup-badge {
  background: rgba(255,255,255,0.08);
  color: var(--muted);
  border: 1px solid rgba(255,255,255,0.15);
}

.popup-text {
  font-size: 0.92rem;
  color: var(--text);
  line-height: 1.55;
  margin-bottom: 0.75rem;
}

.popup-verse {
  font-size: 0.82rem;
  font-style: italic;
  color: var(--gold2);
  background: rgba(201,168,76,0.08);
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  border-left: 3px solid var(--gold);
}

.popup-close-btn {
  display: block;
  width: 100%;
  padding: 0.85rem;
  border-radius: 12px;
  background: rgba(255,255,255,0.1);
  border: 1.5px solid rgba(255,255,255,0.2);
  color: var(--white);
  font-size: 1rem;
  font-weight: 700;
}

.popup-christ .popup-close-btn {
  background: linear-gradient(135deg, var(--gold), var(--gold2));
  color: #1a0a00;
  border-color: transparent;
}

/* ── Wrap-up Stage ──────────────────────────────────────────────────────── */

.wrap-shell { justify-content: center; align-items: center; }

.wrap-content {
  position: relative;
  padding: 2rem 1.25rem;
  max-width: 500px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.wrap-glow {
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(201,168,76,0.25) 0%, transparent 70%);
  pointer-events: none;
}

.wrap-cross {
  font-size: 3.5rem;
  text-align: center;
  filter: drop-shadow(0 0 16px rgba(201,168,76,0.6));
  animation: floatEmoji 4s ease-in-out infinite;
}

.wrap-title {
  font-size: 1.25rem;
  color: var(--gold2);
  text-align: center;
  font-weight: 800;
}

.wrap-connection {
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.6;
  background: rgba(201,168,76,0.08);
  border: 1px solid rgba(201,168,76,0.2);
  border-radius: 14px;
  padding: 1rem;
}

.wrap-verse { /* uses existing .scripture-card styles */ }

.wrap-quote { /* uses existing .conference-card styles */ }

.wrap-done-btn { margin-top: 0.5rem; }

/* ── Side Games Grid (Map) ──────────────────────────────────────────────── */

.side-games-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}

.side-game-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  padding: 1rem 0.75rem;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s, border-color 0.2s;
  text-align: center;
}

.side-game-card:hover  { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.2); }
.side-game-card:active { transform: scale(0.97); }

.sg-emoji { font-size: 2rem; margin-bottom: 0.35rem; }
.sg-name  { font-size: 0.88rem; font-weight: 700; color: var(--white); margin-bottom: 0.2rem; line-height: 1.2; }
.sg-desc  { font-size: 0.72rem; color: var(--muted); line-height: 1.3; }

/* ── CTR Scenarios ──────────────────────────────────────────────────────── */

.ctr-shell {
  min-height: 100vh;
  background: linear-gradient(160deg, #0d2137 0%, #0a2a1a 100%);
  display: flex;
  flex-direction: column;
}

.ctr-progress {
  height: 4px;
  background: rgba(255,255,255,0.08);
  overflow: hidden;
}

.ctr-bar {
  height: 100%;
  background: linear-gradient(90deg, #4caf50, #81c784);
  transition: width 0.4s ease;
}

.ctr-scene-emoji {
  font-size: 5rem;
  text-align: center;
  padding: 1.25rem 0 0.5rem;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.4));
  animation: floatEmoji 3s ease-in-out infinite;
}

.ctr-scenario-card {
  margin: 0 1rem;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  padding: 1rem 1.1rem;
}

.ctr-scenario-text {
  font-size: 1rem;
  color: var(--white);
  line-height: 1.55;
  font-weight: 500;
}

.ctr-choices {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 0.85rem 1rem;
}

.ctr-choice-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  background: rgba(255,255,255,0.07);
  border: 1.5px solid rgba(255,255,255,0.15);
  color: var(--white);
  font-size: 0.92rem;
  text-align: left;
  transition: background 0.15s, transform 0.1s;
  line-height: 1.35;
}

.ctr-choice-btn:not(:disabled):active { transform: scale(0.98); }
.ctr-choice-btn:not(:disabled):hover  { background: rgba(255,255,255,0.12); }

.ctr-choice-letter {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 800;
  flex-shrink: 0;
}

.ctr-choice-text { flex: 1; }

.ctr-btn-correct {
  background: rgba(76,175,80,0.2) !important;
  border-color: rgba(76,175,80,0.6) !important;
  color: #a5d6a7 !important;
}

.ctr-btn-wrong {
  background: rgba(229,57,53,0.15) !important;
  border-color: rgba(229,57,53,0.5) !important;
  color: #ef9a9a !important;
}

/* CTR result bottom sheet */
.ctr-result-sheet {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 50;
  animation: fadeIn 0.2s ease;
}

.ctr-result-content {
  background: linear-gradient(160deg, #1a2a1a, #0d1b0d);
  border-radius: 24px 24px 0 0;
  padding: 1.5rem;
  width: 100%;
  max-width: 500px;
  border: 1px solid rgba(255,255,255,0.1);
  border-bottom: none;
  animation: sheetUp 0.25s ease;
}

.ctr-result-content.result-right  { background: linear-gradient(160deg, #0d2a14, #0a1f0d); border-color: rgba(76,175,80,0.3); }
.ctr-result-content.result-learn  { background: linear-gradient(160deg, #1a1a0d, #1a2a1a); border-color: rgba(201,168,76,0.3); }

.ctr-result-badge {
  display: inline-block;
  padding: 0.3rem 0.85rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  background: rgba(255,255,255,0.1);
  color: var(--gold2);
}

.result-right .ctr-result-badge { background: rgba(76,175,80,0.2); color: #a5d6a7; }

.ctr-result-text { font-size: 0.92rem; color: var(--text); line-height: 1.55; margin-bottom: 0.5rem; }
.ctr-result-ref  { font-size: 0.78rem; color: var(--gold2); margin-bottom: 1rem; }

.ctr-next-btn {
  display: block;
  width: 100%;
  padding: 0.9rem;
  border-radius: 12px;
  background: rgba(255,255,255,0.1);
  border: 1.5px solid rgba(255,255,255,0.2);
  color: var(--white);
  font-size: 1rem;
  font-weight: 700;
  margin-top: 1rem;
  transition: background 0.15s;
}

.ctr-next-btn.btn-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold2));
  color: #1a0a00;
  border-color: transparent;
}

/* CTR Win Screen */
.ctr-win {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.5rem 1rem;
  gap: 1rem;
  text-align: center;
}

.ctr-win .win-emoji { font-size: 3.5rem; }
.ctr-win h2 { font-size: 1.4rem; color: var(--gold2); }

.ctr-win-score {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.ctr-win-num  { font-size: 3rem; font-weight: 900; color: var(--gold2); line-height: 1; }
.ctr-win-of   { font-size: 0.9rem; color: var(--muted); }

.ctr-win-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  width: 100%;
  max-width: 360px;
}

.conference-quote-inline {
  font-size: 0.85rem;
  font-style: italic;
  color: var(--muted);
  background: rgba(255,255,255,0.04);
  border-radius: 10px;
  padding: 0.75rem;
  line-height: 1.5;
}

/* ── Parable Power ──────────────────────────────────────────────────────── */

.pp-shell {
  min-height: 100vh;
  background: linear-gradient(160deg, #1a0a2e 0%, #2d1b5c 100%);
  display: flex;
  flex-direction: column;
}

.pp-progress {
  display: flex;
  gap: 6px;
  justify-content: center;
  padding: 0.6rem;
}

.pp-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  transition: all 0.3s;
}

.pp-dot-active { background: var(--gold2); width: 20px; border-radius: 4px; }
.pp-dot-done   { background: rgba(76,175,80,0.5); }

.pp-card {
  margin: 0 1rem 0.75rem;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(201,168,76,0.2);
  border-radius: 18px;
  padding: 1rem;
}

.pp-parable-header {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin-bottom: 0.75rem;
}

.pp-emoji  { font-size: 2.5rem; flex-shrink: 0; }
.pp-source { font-size: 0.7rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.pp-title  { font-size: 1.1rem; color: var(--gold2); font-weight: 800; margin: 0.15rem 0; }
.pp-ref    { font-size: 0.75rem; color: var(--muted); }

.pp-story  { font-size: 0.92rem; color: var(--text); line-height: 1.6; }

.pp-question {
  padding: 0 1rem 0.5rem;
  font-size: 0.88rem;
  color: var(--muted);
  font-weight: 600;
}

.pp-choices {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0 1rem;
}

.pp-choice {
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: rgba(255,255,255,0.07);
  border: 1.5px solid rgba(255,255,255,0.12);
  color: var(--white);
  font-size: 0.9rem;
  text-align: left;
  line-height: 1.4;
  transition: background 0.15s, transform 0.1s;
}

.pp-choice:not(:disabled):active { transform: scale(0.98); }
.pp-choice:not(:disabled):hover  { background: rgba(255,255,255,0.12); }
.pp-correct { background: rgba(76,175,80,0.2) !important; border-color: rgba(76,175,80,0.5) !important; color: #a5d6a7 !important; }
.pp-wrong   { background: rgba(229,57,53,0.15) !important; border-color: rgba(229,57,53,0.4) !important; color: #ef9a9a !important; }

.pp-feedback {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 50;
  animation: fadeIn 0.2s ease;
}

.pp-fb-content {
  background: linear-gradient(160deg, #1a0d2a, #0d0a1a);
  border-radius: 24px 24px 0 0;
  padding: 1.5rem;
  width: 100%;
  max-width: 500px;
  border: 1px solid rgba(201,168,76,0.25);
  border-bottom: none;
  animation: sheetUp 0.25s ease;
}

.pp-fb-right { border-color: rgba(76,175,80,0.3) !important; }

.pp-fb-badge {
  display: inline-block;
  padding: 0.3rem 0.85rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  background: rgba(201,168,76,0.15);
  color: var(--gold2);
}

.pp-fb-right .pp-fb-badge { background: rgba(76,175,80,0.2); color: #a5d6a7; }

.pp-fb-explanation { font-size: 0.92rem; color: var(--text); line-height: 1.55; margin-bottom: 0.75rem; }

.pp-fb-christ {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  background: rgba(201,168,76,0.08);
  border-left: 3px solid var(--gold);
  border-radius: 0 8px 8px 0;
  padding: 0.65rem 0.75rem;
  margin-bottom: 1rem;
}

.pp-fb-cross { font-size: 1.2rem; flex-shrink: 0; }
.pp-fb-christ p { font-size: 0.82rem; font-style: italic; color: var(--gold2); line-height: 1.4; }

.pp-next-btn {
  display: block;
  width: 100%;
  padding: 0.9rem;
  border-radius: 12px;
  background: rgba(255,255,255,0.1);
  border: 1.5px solid rgba(255,255,255,0.2);
  color: var(--white);
  font-size: 1rem;
  font-weight: 700;
}

.pp-next-btn.btn-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold2));
  color: #1a0a00;
  border-color: transparent;
}

/* ── Lightning Round ────────────────────────────────────────────────────── */

.lr-shell {
  min-height: 100vh;
  background: linear-gradient(160deg, #0d0d1a 0%, #1a1a0d 100%);
  display: flex;
  flex-direction: column;
}

.lr-progress-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
}

.lr-progress-bar {
  flex: 1;
  height: 4px;
  background: rgba(255,255,255,0.08);
  border-radius: 2px;
  overflow: hidden;
}

.lr-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #ffd700, #ffeb3b);
  transition: width 0.4s ease;
}

.lr-progress-label { font-size: 0.75rem; color: var(--muted); flex-shrink: 0; }

.lr-center {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  gap: 1rem;
}

.lr-lightning {
  font-size: 2.5rem;
  animation: liahonaPulse 1.5s ease-in-out infinite;
}

.lr-question-card {
  width: 100%;
  max-width: 420px;
  background: rgba(255,255,255,0.07);
  border: 1.5px solid rgba(255,215,0,0.2);
  border-radius: 18px;
  padding: 1.5rem 1.25rem;
  text-align: center;
  animation: slideEnter 0.25s ease;
}

.lr-question-text {
  font-size: 1.1rem;
  color: var(--white);
  font-weight: 600;
  line-height: 1.45;
}

.lr-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  width: 100%;
  max-width: 420px;
}

.lr-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 1.25rem 0.5rem;
  border-radius: 18px;
  font-weight: 800;
  transition: transform 0.1s, background 0.2s;
  border: 2px solid transparent;
}

.lr-btn:active { transform: scale(0.95); }

.lr-true  { background: rgba(76,175,80,0.15); border-color: rgba(76,175,80,0.4); }
.lr-false { background: rgba(229,57,53,0.15); border-color: rgba(229,57,53,0.4); }

.lr-btn:not(:disabled):hover.lr-true  { background: rgba(76,175,80,0.25); }
.lr-btn:not(:disabled):hover.lr-false { background: rgba(229,57,53,0.25); }

.lr-btn-icon  { font-size: 1.8rem; }
.lr-btn-label { font-size: 1rem; color: var(--white); letter-spacing: 0.06em; }

.lr-btn-correct.lr-true  { background: rgba(76,175,80,0.35) !important; border-color: rgba(76,175,80,0.8) !important; }
.lr-btn-correct.lr-false { background: rgba(76,175,80,0.35) !important; border-color: rgba(76,175,80,0.8) !important; }
.lr-btn-wrong             { background: rgba(229,57,53,0.25) !important; border-color: rgba(229,57,53,0.7) !important; }

.lr-feedback {
  width: 100%;
  max-width: 420px;
  animation: fadeInUp 0.25s ease;
}

.lr-fact {
  display: flex;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  margin-bottom: 0.6rem;
  align-items: flex-start;
}

.lr-fact-right { background: rgba(76,175,80,0.12); border: 1px solid rgba(76,175,80,0.3); }
.lr-fact-wrong { background: rgba(229,57,53,0.1);  border: 1px solid rgba(229,57,53,0.3); }

.lr-fact-icon { font-size: 1.4rem; flex-shrink: 0; }
.lr-fact strong { font-size: 0.88rem; color: var(--white); display: block; margin-bottom: 0.2rem; }
.lr-fact p      { font-size: 0.82rem; color: var(--text); line-height: 1.45; }

.lr-next-btn {
  display: block;
  width: 100%;
  padding: 0.85rem;
  border-radius: 12px;
  background: rgba(255,255,255,0.1);
  border: 1.5px solid rgba(255,255,255,0.2);
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 700;
}

.lr-next-btn.btn-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold2));
  color: #1a0a00;
  border-color: transparent;
}

.lr-bar-wrap { width: 100%; max-width: 300px; }

.lr-result-bar {
  height: 12px;
  background: rgba(255,255,255,0.08);
  border-radius: 6px;
  overflow: hidden;
}

.lr-result-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--gold2));
  border-radius: 6px;
  transition: width 0.8s ease;
}

/* ── Scripture Scramble ─────────────────────────────────────────────────── */

.ss2-shell {
  min-height: 100vh;
  background: linear-gradient(160deg, #0a1628 0%, #1a2a4a 100%);
  display: flex;
  flex-direction: column;
}

.ss2-progress-bar-wrap { padding: 0.4rem 1rem; }

.ss2-progress-bar {
  height: 4px;
  background: rgba(255,255,255,0.08);
  border-radius: 2px;
  overflow: hidden;
}

.ss2-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--blue2), #4a90d9);
  transition: width 0.4s ease;
}

.ss2-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 0.75rem 1rem;
  gap: 0.65rem;
  max-width: 520px;
  margin: 0 auto;
  width: 100%;
}

.ss2-verse-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.ss2-emoji  { font-size: 2rem; }
.ss2-ref    { font-size: 1rem; color: var(--gold2); font-weight: 700; }
.ss2-source { font-size: 0.75rem; color: var(--muted); }

.ss2-tray-label, .ss2-bank-label {
  font-size: 0.72rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-weight: 700;
}

.ss2-bank-count { color: rgba(255,255,255,0.3); font-weight: 400; text-transform: none; letter-spacing: 0; }

.ss2-tray {
  min-height: 68px;
  background: rgba(255,255,255,0.05);
  border: 1.5px dashed rgba(255,255,255,0.18);
  border-radius: 14px;
  padding: 0.65rem 0.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-content: flex-start;
}

.ss2-tray-hint {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.25);
  font-style: italic;
  align-self: center;
}

.ss2-tray-word {
  display: inline-block;
  padding: 0.3rem 0.6rem;
  border-radius: 8px;
  background: rgba(36,87,164,0.4);
  border: 1px solid rgba(74,144,217,0.5);
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}

.ss2-tray-word:hover  { background: rgba(36,87,164,0.6); }
.ss2-word-ok  { background: rgba(76,175,80,0.3) !important; border-color: rgba(76,175,80,0.6) !important; color: #a5d6a7 !important; }
.ss2-word-err { background: rgba(229,57,53,0.25) !important; border-color: rgba(229,57,53,0.5) !important; color: #ef9a9a !important; }

.ss2-bank {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.ss2-word-chip {
  padding: 0.45rem 0.8rem;
  border-radius: 20px;
  background: rgba(255,255,255,0.08);
  border: 1.5px solid rgba(255,255,255,0.18);
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 600;
  transition: background 0.12s, transform 0.1s;
}

.ss2-word-chip:not(:disabled):hover  { background: rgba(255,255,255,0.14); }
.ss2-word-chip:not(:disabled):active { transform: scale(0.95); }

.ss2-actions {
  display: flex;
  gap: 0.6rem;
}

.ss2-clear-btn {
  padding: 0.75rem 1rem;
  border-radius: 12px;
  background: rgba(255,255,255,0.06);
  border: 1.5px solid rgba(255,255,255,0.15);
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
  flex-shrink: 0;
}

.ss2-check-btn {
  flex: 1;
  padding: 0.75rem;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--blue2), #4a90d9);
  color: white;
  font-size: 0.95rem;
  font-weight: 700;
  border: none;
  transition: opacity 0.2s;
}

.ss2-check-btn.btn-disabled { opacity: 0.4; cursor: default; }

.ss2-result { animation: fadeInUp 0.3s ease; }

.ss2-result-card {
  border-radius: 16px;
  padding: 1rem;
  border: 1px solid rgba(255,255,255,0.1);
}

.ss2-res-right { background: rgba(76,175,80,0.1);  border-color: rgba(76,175,80,0.3); }
.ss2-res-wrong { background: rgba(229,57,53,0.08); border-color: rgba(229,57,53,0.25); }

.ss2-res-icon  { font-size: 1.8rem; text-align: center; margin-bottom: 0.5rem; }
.ss2-res-body  { margin-bottom: 0.75rem; }

.ss2-correct-verse {
  font-size: 0.82rem;
  color: #ef9a9a;
  margin-bottom: 0.6rem;
  line-height: 1.5;
}

.ss2-meaning {
  font-size: 0.88rem;
  color: var(--text);
  line-height: 1.55;
}

.ss2-meaning strong { color: var(--gold2); }

.ss2-next-btn {
  display: block;
  width: 100%;
  padding: 0.85rem;
  border-radius: 12px;
  background: rgba(255,255,255,0.1);
  border: 1.5px solid rgba(255,255,255,0.2);
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 700;
  margin-top: 0.75rem;
}

.ss2-next-btn.btn-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold2));
  color: #1a0a00;
  border-color: transparent;
}

/* ── Build the Ark (Hangman) ────────────────────────────────────────────── */

.ark-shell {
  min-height: 100vh;
  background: linear-gradient(160deg, #0a1628 0%, #0f2c5c 100%);
  display: flex;
  flex-direction: column;
}

/* Scene */
.ark-scene {
  flex-shrink: 0;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  padding: 0 0.5rem;
}

.ark-svg {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 14px;
  overflow: hidden;
}

/* Ark wins — gentle bob animation */
@keyframes arkBob {
  0%, 100% { transform: translateY(0) rotate(-0.5deg); }
  50%       { transform: translateY(-4px) rotate(0.5deg); }
}
.ark-won { animation: arkBob 3s ease-in-out infinite; }

/* Word area */
.ark-word-area {
  padding: 0.6rem 1rem 0;
  max-width: 420px;
  margin: 0 auto;
  width: 100%;
}

.ark-blanks {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem;
  margin-bottom: 0.75rem;
}

.ark-blank {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 32px;
}

.ark-blank span {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--white);
  height: 1.6rem;
  display: flex;
  align-items: flex-end;
  transition: all 0.25s ease;
}

.ark-blank-revealed span {
  color: var(--gold2);
  animation: popIn 0.3s ease;
}

.ark-blank-missed span {
  color: #ef9a9a;
  animation: popIn 0.3s ease;
}

.ark-blank-line {
  width: 100%;
  height: 2.5px;
  border-radius: 2px;
  background: rgba(255,255,255,0.25);
  margin-top: 2px;
}

.ark-blank-revealed .ark-blank-line { background: var(--gold); }
.ark-blank-missed   .ark-blank-line { background: #ef5350; }

.ark-hint-row {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 0.55rem 0.75rem;
  margin-bottom: 0.4rem;
}

.ark-hint-icon { font-size: 1rem; flex-shrink: 0; margin-top: 1px; }
.ark-hint-text { font-size: 0.82rem; color: var(--text); line-height: 1.4; font-style: italic; }

.ark-wrong-letters {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.3rem;
  min-height: 1.8rem;
  margin-bottom: 0.3rem;
}

.ark-wrong-label { font-size: 0.72rem; color: var(--muted); }

.ark-wrong-chip {
  display: inline-block;
  padding: 0.1rem 0.45rem;
  border-radius: 6px;
  background: rgba(229,57,53,0.2);
  border: 1px solid rgba(229,57,53,0.4);
  color: #ef9a9a;
  font-size: 0.8rem;
  font-weight: 700;
}

/* Keyboard */
.ark-keyboard {
  padding: 0.4rem 0.5rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  max-width: 420px;
  margin: 0 auto;
  width: 100%;
}

.ark-kb-row {
  display: flex;
  justify-content: center;
  gap: 0.3rem;
}

.ark-key {
  width: 30px;
  height: 38px;
  border-radius: 7px;
  background: rgba(255,255,255,0.1);
  border: 1.5px solid rgba(255,255,255,0.18);
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 700;
  transition: background 0.1s, transform 0.1s, opacity 0.2s;
  flex-shrink: 0;
}

.ark-key:not(:disabled):hover  { background: rgba(255,255,255,0.18); }
.ark-key:not(:disabled):active { transform: scale(0.9); }

.key-correct {
  background: rgba(76,175,80,0.3)  !important;
  border-color: rgba(76,175,80,0.6) !important;
  color: #a5d6a7 !important;
  opacity: 0.8;
}

.key-wrong {
  background: rgba(229,57,53,0.15) !important;
  border-color: rgba(229,57,53,0.35) !important;
  color: rgba(239,154,154,0.6) !important;
  opacity: 0.5;
}

/* Storm indicator badge */
.ark-storm-badge { white-space: nowrap; }

/* Game over panel */
.ark-gameover {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem 1.25rem 1.5rem;
  gap: 0.75rem;
  max-width: 420px;
  margin: 0 auto;
  width: 100%;
  text-align: center;
}

.ark-win  { }
.ark-lose { }

.ark-go-icon  { font-size: 3rem; filter: drop-shadow(0 0 12px rgba(201,168,76,0.5)); }
.ark-go-title { font-size: 1.3rem; color: var(--gold2); font-weight: 800; }
.ark-go-word  { font-size: 0.9rem; color: var(--text); }
.ark-go-word strong { color: var(--gold2); font-size: 1.1rem; }

.ark-go-fact {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  background: rgba(201,168,76,0.08);
  border: 1px solid rgba(201,168,76,0.2);
  border-left: 3px solid var(--gold);
  border-radius: 0 12px 12px 0;
  padding: 0.85rem 1rem;
  text-align: left;
  width: 100%;
}

.ark-go-fact-icon { font-size: 1.2rem; flex-shrink: 0; }
.ark-go-fact p    { font-size: 0.85rem; color: var(--text); line-height: 1.55; font-style: italic; }

.ark-go-btns {
  display: flex;
  gap: 0.6rem;
  width: 100%;
}

.ark-go-btn {
  flex: 1;
  padding: 0.85rem;
  border-radius: 12px;
  background: rgba(255,255,255,0.1);
  border: 1.5px solid rgba(255,255,255,0.2);
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 700;
  transition: background 0.15s;
}

.ark-go-btn:hover { background: rgba(255,255,255,0.15); }

.ark-go-btn.btn-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold2));
  color: #1a0a00;
  border-color: transparent;
}

/* Responsive keyboard — larger keys on wider screens */
@media (min-width: 400px) {
  .ark-key { width: 34px; height: 42px; font-size: 0.9rem; }
}

@media (min-width: 480px) {
  .ark-key { width: 38px; height: 44px; }
  .side-games-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ── Articles of Faith ──────────────────────────────────────────────────── */

.aof-shell {
  min-height: 100vh;
  background: linear-gradient(180deg, #0d1b35 0%, #0a1225 100%);
  display: flex;
  flex-direction: column;
  padding-bottom: 5rem;
}

/* Intro + challenge button */
.aof-intro {
  padding: 0.75rem 1rem 0.5rem;
  text-align: center;
}

.aof-intro-text {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.6rem;
}

.aof-challenge-btn {
  display: block;
  width: 100%;
  padding: 0.9rem 1rem;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--gold), var(--gold2));
  color: #1a0a00;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  box-shadow: 0 4px 18px rgba(201,168,76,0.45);
  transition: transform 0.1s, box-shadow 0.2s;
}

.aof-challenge-btn:hover  { transform: translateY(-1px); box-shadow: 0 6px 22px rgba(201,168,76,0.55); }
.aof-challenge-btn:active { transform: translateY(0); }

/* List of 13 articles */
.aof-list {
  padding: 0.5rem 1rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.aof-list-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 0.9rem;
  border-radius: 12px;
  background: rgba(255,255,255,0.05);
  border: 1.5px solid rgba(255,255,255,0.09);
  color: var(--text);
  text-align: left;
  transition: background 0.15s, border-color 0.15s;
}

.aof-list-item:hover, .aof-list-item:active {
  background: rgba(201,168,76,0.1);
  border-color: rgba(201,168,76,0.3);
}

.aof-list-num {
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--gold2);
  min-width: 1.8rem;
  text-align: center;
  font-family: 'Cinzel', serif;
}

.aof-list-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.aof-list-topic {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
}

.aof-list-preview {
  font-size: 0.73rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 220px;
}

.aof-list-badge {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--muted);
  background: rgba(255,255,255,0.07);
  border-radius: 8px;
  padding: 0.2rem 0.45rem;
  white-space: nowrap;
}

/* Topic tag shown during scramble */
.aof-topic-tag {
  text-align: center;
  font-size: 0.72rem;
  color: var(--gold2);
  background: rgba(201,168,76,0.1);
  border: 1px solid rgba(201,168,76,0.2);
  border-radius: 20px;
  padding: 0.25rem 0.85rem;
  margin: 0.4rem auto 0.2rem;
  width: fit-content;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-weight: 700;
}

/* Tray — extend the ss2 tray for the AoF context */
.aof-tray {
  min-height: 64px;
  margin: 0.4rem 1rem;
  padding: 0.5rem 0.6rem;
  border-radius: 12px;
  border: 2px dashed rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.03);
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-content: flex-start;
}

.aof-tray-hint {
  color: rgba(255,255,255,0.22);
  font-size: 0.82rem;
  align-self: center;
}

.aof-tray-word {
  cursor: pointer;
  padding: 0.3rem 0.55rem;
  border-radius: 7px;
  background: rgba(36,87,164,0.55);
  border: 1px solid rgba(255,255,255,0.18);
  color: white;
  font-size: 0.88rem;
  font-weight: 600;
  transition: transform 0.1s;
  display: inline-block;
}

.aof-tray-word:active { transform: scale(0.94); }

/* Added by decoupledlane.com: studio credit */
.dls-note { margin: 4px 0 0; font-size: 0.7rem; text-align: center; opacity: 0.7; }
.dls-credit { margin: 24px 0 0; font-size: 0.8rem; text-align: center; }
.dls-credit a { display: inline-flex; align-items: center; gap: 6px; color: inherit; text-underline-offset: 2px; }
.dls-credit img { width: 20px; height: 20px; border-radius: 4px; }
