:root {
  /* Softened Playful Pop / Cozy Toymaker Palette */
  --bg-deep: #e6dfd1;
  --bg-gradient: radial-gradient(circle at 50% 18%, #f1ece1 0%, #e5dfd1 65%, #dad2c2 100%);
  --bg-panel: #fbf9f4;
  --bg-panel-elevated: #f0ebe0;

  --border-subtle: rgba(15, 23, 42, 0.15);
  --border-strong: #1e293b;

  --accent-primary: #0284c7;
  --accent-soft: #0369a1;
  --accent-contrast: #ffffff;

  --origin-highlight: #6d28d9;
  --origin-bg: rgba(109, 40, 217, 0.12);
  --origin-border: #6d28d9;

  --housing-bg: linear-gradient(180deg, #38bdf8 0%, #0284c7 100%);
  --housing-border: #0f172a;
  --barrel-bg: linear-gradient(180deg, #dde5ed 0%, #ffffff 24%, #ffffff 76%, #cbd5e1 100%);
  --barrel-border: #0f172a;

  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;

  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;
  --font-brand: 'Outfit', 'Plus Jakarta Sans', sans-serif;
  --font-num: 'Outfit', 'Plus Jakarta Sans', sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  height: 100dvh;
  max-height: 100dvh;
  overflow: hidden;
  overscroll-behavior: none;
  background-color: var(--bg-deep);
  background-image: var(--bg-gradient);
  color: var(--text-primary);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  position: fixed;
  width: 100%;
  touch-action: manipulation;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

[hidden] {
  display: none !important;
}

.viewport-center {
  position: relative;
  height: 100dvh;
  max-height: 100dvh;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(6px, 1.5vh, 14px) 14px clamp(8px, 1.5vh, 16px);
  overflow: hidden;
  box-sizing: border-box;
}

/* ==========================================
   VIEW 1: START MENU SCREEN
   ========================================== */
.menu-view {
  width: 100%;
  max-width: 460px;
  height: 100%;
  max-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  padding: 6px 4px 28px;
  animation: fadeScaleIn 0.28s cubic-bezier(0.22, 1, 0.36, 1);
  box-sizing: border-box;
}

.menu-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
}

.logo-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  box-shadow: none;
  margin-bottom: 6px;
}

.brand-title {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--text-primary);
}

.brand-title span {
  color: var(--accent-primary);
}

.menu-tagline {
  font-size: 0.92rem;
  color: var(--text-secondary);
  max-width: 340px;
  line-height: 1.45;
  font-weight: 500;
}

/* Unified Player Vault Dossier (Streaks + Trophies) */
.vault-dossier-card {
  width: 100%;
  background: var(--bg-panel);
  border: 2px solid var(--border-strong);
  border-radius: 16px;
  padding: 12px 16px 14px 16px;
  box-shadow: 0 4px 0 var(--border-strong);
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 6px;
}

/* Top Tier: Streaks */
.dossier-streaks-row {
  display: flex;
  align-items: center;
  justify-content: space-around;
  width: 100%;
  cursor: pointer;
  border-radius: 10px;
  padding: 4px 6px;
  transition: background 0.15s ease, transform 0.1s ease;
  user-select: none;
  -webkit-user-select: none;
}

.dossier-streaks-row:hover {
  background: rgba(15, 23, 42, 0.04);
}

.dossier-streaks-row:active {
  transform: scale(0.99);
}

.dossier-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}

.streak-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}

.streak-value {
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--text-primary);
}

.streak-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.dossier-divider {
  width: 1.5px;
  height: 28px;
  background: var(--border-subtle);
}

/* Interior Separator */
.dossier-row-sep {
  width: 100%;
  height: 1px;
  background: rgba(15, 23, 42, 0.08);
}

/* Bottom Tier: Trophies with Inline Criteria */
.dossier-trophies-row {
  display: flex;
  align-items: center;
  justify-content: space-around;
  width: 100%;
  gap: 4px;
}

.dossier-trophy-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 2px;
  flex: 1;
}

.dossier-trophy-val-wrap {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  line-height: 1;
}

.dossier-trophy-icon {
  font-size: 1.05rem;
  line-height: 1;
}

.dossier-trophy-val {
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
}

.dossier-trophy-title {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-primary);
  line-height: 1.2;
}

.dossier-trophy-sub {
  font-size: 0.62rem;
  font-weight: 600;
  color: var(--text-muted);
  line-height: 1;
  margin-top: 1px;
  white-space: nowrap;
}

.dossier-trophy-divider {
  width: 1px;
  height: 32px;
  background: rgba(15, 23, 42, 0.07);
}

.puzzle-menu-list {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: visible;
  padding: 2px 2px 4px 2px;
}

.puzzle-card-btn {
  width: 100%;
  background: var(--bg-panel);
  border: 2px solid var(--border-strong);
  border-radius: 15px;
  padding: 13px 16px;
  color: var(--text-primary);
  font-family: var(--font-sans);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  text-align: left;
  transition: all 0.15s ease;
  box-shadow: 0 4px 0 var(--border-strong);
}

.puzzle-card-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 0 var(--border-strong);
  background: #ffffff;
}

.puzzle-card-btn:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 var(--border-strong);
}

.puzzle-card-btn.is-solved {
  background: #f4f9f5;
}

.puzzle-card-left {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.puzzle-card-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--accent-soft);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.puzzle-card-btn.is-solved .puzzle-card-eyebrow {
  color: #059669;
}

.puzzle-card-title {
  font-size: 1.02rem;
  font-weight: 800;
}

.puzzle-card-sub {
  font-size: 0.76rem;
  color: var(--text-muted);
  font-weight: 600;
}

.puzzle-card-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  flex-shrink: 0;
}

.play-cta-pill {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--accent-contrast);
  background: var(--accent-primary);
  padding: 5px 13px;
  border-radius: 999px;
  border: 1.5px solid var(--border-strong);
  white-space: nowrap;
}

.solved-cta-pill {
  font-family: var(--font-mono);
  font-size: 0.73rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  line-height: 1;
}

.solved-cta-pill .cta-sep {
  opacity: 0.45;
}

.solved-cta-pill .cta-time {
  font-variant-numeric: tabular-nums;
  font-weight: 800;
}

.solved-cta-pill.solved-cta-hints,
.solved-cta-pill.solved-cta-star {
  color: #065f46;
  background: #ecfdf5;
  border: 1.5px solid #059669;
  box-shadow: 0 1px 3px rgba(5, 150, 105, 0.12);
}

.solved-cta-pill.solved-cta-hints .cta-time,
.solved-cta-pill.solved-cta-star .cta-time {
  color: #047857;
}

.solved-cta-pill.solved-cta-star .star-badge-icon {
  display: block;
  flex-shrink: 0;
  filter: drop-shadow(0 0.5px 1px rgba(120, 53, 15, 0.25));
}

/* ==========================================
   VIEW 2: PLAYABLE GAME SCREEN
   ========================================== */
.app-shell {
  width: 100%;
  max-width: 520px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  animation: fadeScaleIn 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

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

/* Top Bar */
.status-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1.5px solid var(--border-subtle);
  min-height: 48px;
}

.brand-top-title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  user-select: none;
  white-space: nowrap;
  font-family: var(--font-brand);
  font-size: 1.55rem;
  font-weight: 900;
  letter-spacing: -0.025em;
  line-height: 1;
}

.brand-archive-title {
  position: static;
  transform: none;
  margin-bottom: 6px;
  font-size: 1.75rem;
}

.brand-word-alpha {
  color: #0f172a;
}

.brand-word-tumbler {
  color: #0284c7;
}

.brand-tumbler-lockup {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: default;
  user-select: none;
}

.brand-mini-wheels {
  display: flex;
  gap: 3px;
  align-items: center;
  justify-content: center;
  background: transparent;
  padding: 0;
  border: none;
  box-shadow: none;
}

.mini-wheel-cell {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 28px;
  background: #ffffff;
  border-radius: 5px;
  border: 1.5px solid #0f172a;
  font-family: var(--font-brand);
  font-weight: 900;
  font-size: 0.96rem;
  color: #0284c7;
  line-height: 1;
  box-shadow:
    0 2px 0 #0f172a,
    inset 0 3px 2px rgba(203, 213, 225, 0.75),
    inset 0 -3px 2px rgba(203, 213, 225, 0.75);
}

.mini-wheel-strip {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  transform: translateY(0);
  will-change: transform;
}

.mini-wheel-char {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 25px;
  font-family: var(--font-brand);
  font-weight: 900;
  font-size: 0.96rem;
  line-height: 1;
  user-select: none;
}

/* Subtle motion blur only on the scrambled spinning charcoal letters */
.mini-wheel-char.char-spin {
  color: #475569;
  filter: blur(0.6px);
  opacity: 0.85;
}

/* Final stopped letter is Ocean Cyan Blue: crisp, pin-sharp, never blurred */
.mini-wheel-char.char-final {
  color: #0284c7;
  filter: none !important;
  opacity: 1;
}

.brand-subtext {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-brand);
  font-size: 0.92rem;
  font-weight: 900;
  color: #0284c7;
  text-transform: uppercase;
  line-height: 1;
  padding: 0 1px;
}

.brand-tumbler-lockup-archive {
  margin-bottom: 2px;
}

.modal-header-centered {
  justify-content: center;
  text-align: center;
}

.archive-pill-btn {
  font-size: 0.82rem;
  font-weight: 800;
  padding: 6px 14px;
}

.header-streak-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 4px 12px;
  background: rgba(245, 158, 11, 0.14);
  border: 1.5px solid rgba(217, 119, 6, 0.4);
  border-radius: 999px;
  user-select: none;
}

.header-streak-icon {
  font-size: 0.95rem;
  line-height: 1;
}

.header-streak-value {
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
  font-size: 0.9rem;
  font-weight: 800;
  color: #78350f;
}

.header-streak-label {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #92400e;
}

.top-right-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  z-index: 2;
}

#back-menu-btn {
  z-index: 2;
}

.action-pill-btn {
  padding: 6px 12px;
  border-radius: 9px;
  border: 1.5px solid var(--border-strong);
  background: var(--bg-panel);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 2px 0 var(--border-strong);
  transition: all 0.12s ease;
}

.action-pill-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 3px 0 var(--border-strong);
  background: #ffffff;
}

.action-pill-btn:active:not(:disabled) {
  transform: translateY(1px);
  box-shadow: 0 1px 0 var(--border-strong);
}

.minimal-icon-btn {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  border: 1.5px solid var(--border-strong);
  background: var(--bg-panel);
  color: var(--text-primary);
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 2px 0 var(--border-strong);
}

.minimal-icon-btn:hover {
  background: #ffffff;
}

.mac-volume-svg {
  display: block;
  width: 17px;
  height: 17px;
  color: var(--text-primary);
  transition: opacity 0.15s ease;
}

.mac-volume-svg.is-muted {
  opacity: 0.45;
}

#sound-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}


/* Main Game Stage */
.game-stage {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* ==========================================
   CONSOLIDATED 3-COLUMN HUD BAR
   Date on Left · Word X of Y Centered · Time on Right
   ========================================== */
.game-info-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0 2px 2px 2px;
}

.hud-item {
  display: flex;
  align-items: center;
}

.hud-left {
  flex: 1;
  justify-content: flex-start;
}

.hud-center {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
}

.hud-right {
  flex: 1;
  justify-content: flex-end;
}

.game-date-subtitle {
  font-family: var(--font-sans);
  font-size: 0.84rem;
  font-weight: 750;
  letter-spacing: 0.01em;
  text-transform: none;
  color: var(--text-secondary);
  white-space: nowrap;
}

.word-step-label {
  font-family: var(--font-sans);
  font-variant-numeric: tabular-nums;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3.5px;
  white-space: nowrap;
  padding: 0;
  background: transparent;
  border: none;
  line-height: 1.15;
}

.step-num-slot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  height: 1.35em;
  line-height: 1.35em;
  min-width: 0.6em;
  position: relative;
  vertical-align: middle;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.step-num-digit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  text-align: center;
}

.step-num-digit.is-static {
  position: relative;
  transform: none;
  opacity: 1;
}

.step-num-digit.is-tumbler-animating {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  will-change: transform, opacity;
}

@keyframes tumblerRollExit {
  0% {
    transform: translateY(0);
    opacity: 1;
  }
  100% {
    transform: translateY(-120%);
    opacity: 0;
  }
}

@keyframes tumblerRollEnter {
  0% {
    transform: translateY(120%);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

.step-num-digit.tumbler-exit {
  animation: tumblerRollExit 0.48s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.step-num-digit.tumbler-enter {
  animation: tumblerRollEnter 0.48s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.word-progress-pips {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 18px;
  margin-top: 3px;
}

.progress-pip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1.5px solid #94a3b8;
  background: transparent;
  color: transparent;
  font-size: 8px;
  font-weight: 900;
  line-height: 1;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-sizing: border-box;
}

.progress-pip.is-current {
  border-color: #0284c7;
  background: #e0f2fe;
  box-shadow: 0 0 0 2.5px rgba(2, 132, 199, 0.22);
  transform: scale(1.15);
}

.progress-pip.is-solved {
  background: #0284c7;
  border-color: #0284c7;
  color: #ffffff;
  transform: scale(1.05);
  box-shadow: 0 1.5px 4px rgba(2, 132, 199, 0.35);
}

.progress-pip.pip-pop {
  animation: pipPopIn 0.52s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes pipPopIn {
  0% { transform: scale(0.9); }
  40% { transform: scale(1.28); box-shadow: 0 0 10px rgba(2, 132, 199, 0.6); }
  75% { transform: scale(0.98); }
  100% { transform: scale(1.05); }
}

/* Flying Checkmark Particle: Clue stamp lifts off and flies to HUD progress pip */
.flying-check-particle {
  position: fixed;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: var(--accent-primary);
  border: 1.5px solid #004d80;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.55);
  color: #ffffff;
  pointer-events: none;
  transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.65s ease;
}


.telemetry-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.telemetry-pill strong {
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--text-primary);
}

.telemetry-pill.hint-pop {
  animation: hintCountPop 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes hintCountPop {
  0% {
    transform: scale(1);
  }
  35% {
    transform: scale(1.24);
    color: #6d28d9;
    text-shadow: 0 0 10px rgba(109, 40, 217, 0.45);
  }
  100% {
    transform: scale(1);
    color: var(--text-secondary);
  }
}

/* Pause Button in HUD */
.timer-pause-group {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hud-pause-btn {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  border: 1.5px solid var(--border-subtle);
  background: rgba(148, 163, 184, 0.16);
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
  padding: 0;
  outline: none;
}

.hud-pause-btn:hover {
  background: rgba(148, 163, 184, 0.28);
  color: var(--text-primary);
  border-color: var(--border-strong);
}

.hud-pause-btn:active {
  transform: scale(0.92);
}

/* Blur overlay when paused */
.app-shell.is-game-paused #game-board-area,
.app-shell.is-game-paused #clue-area,
.app-shell.is-game-paused #cryptex-housing,
.app-shell.is-game-paused #controls-area {
  filter: blur(14px);
  opacity: 0.35;
  pointer-events: none;
  user-select: none;
  transition: filter 0.2s ease, opacity 0.2s ease;
}

/* Pause Modal */
.pause-modal-card {
  text-align: center;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.pause-icon-badge {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(2, 132, 199, 0.12);
  color: #0284c7;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #0284c7;
}

.pause-title {
  font-size: 1.3rem;
  font-weight: 900;
  margin: 0;
  color: var(--text-primary);
}

.pause-subtitle {
  font-size: 0.86rem;
  color: var(--text-secondary);
  margin: 0;
  max-width: 250px;
  line-height: 1.4;
}

.pause-resume-btn {
  margin-top: 6px;
  width: 100%;
  max-width: 220px;
}

/* Victory Trophy Shelf */
.victory-trophy-shelf {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 2px;
  margin-bottom: 16px;
}

.victory-trophy-shelf:empty {
  display: none;
  margin: 0;
}

.victory-trophy-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #f0fdf4;
  border: 1.5px solid #16a34a;
  color: #166534;
  font-weight: 800;
  font-size: 0.78rem;
  padding: 4px 10px;
  border-radius: 999px;
  animation: popIn 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.victory-trophy-pill.is-speed {
  background: #fffbeb;
  border-color: #d97706;
  color: #92400e;
}

.victory-trophy-pill.is-vault {
  background: #eff6ff;
  border-color: #2563eb;
  color: #1e40af;
}

.prompt-section {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.clue-Transition-viewport {
  width: 100%;
  perspective: 700px;
}

.clue-box {
  position: relative;
  width: 100%;
  /* 126px height comfortably accommodates clue text + instruction sub-pill with ZERO layout shift */
  height: 126px;
  min-height: 126px;
  max-height: 126px;
  background: var(--bg-panel);
  border: 2px solid var(--border-strong);
  border-radius: 16px;
  padding: 8px 16px;
  box-shadow: 0 4px 0 var(--border-strong);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  box-sizing: border-box;
}

.clue-header-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 18px;
}

.clue-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  text-transform: uppercase;
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.clue-eyebrow.is-fading-out {
  opacity: 0;
  transform: translateY(-4px);
}

.clue-eyebrow.is-fading-in {
  opacity: 1;
  transform: translateY(0);
}

.clue-check-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: var(--accent-primary);
  border: 1.5px solid #004d80;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.45);
  animation: badgePop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.clue-check-badge svg {
  display: block;
  width: 13px;
  height: 13px;
}

.clue-check-badge svg polyline {
  stroke-dasharray: 20;
  stroke-dashoffset: 20;
  animation: checkDraw 0.45s 0.12s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes checkDraw {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes badgePop {
  0% { transform: scale(0.35); opacity: 0; }
  50% { transform: scale(1.25); opacity: 1; }
  80% { transform: scale(0.95); }
  100% { transform: scale(1); opacity: 1; }
}

.clue-solved-stamp {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 800;
  padding: 1px 8px;
  border-radius: 999px;
  background: #e0f2fe;
  color: #0369a1;
  border: 1.5px solid #0284c7;
}

.clue-text {
  font-size: 1.1rem;
  font-weight: 800;
  line-height: 1.34;
  color: var(--text-primary);
  text-wrap: balance;
  text-align: center;
  transition: opacity 0.45s ease, transform 0.45s ease;
  max-width: 100%;
}

.clue-text.is-fading-out {
  opacity: 0;
  transform: translateY(-4px);
}

.clue-text.is-fading-in {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================
   DYNAMIC WHEEL INSTRUCTION (INSIDE CLUE BOX)
   ========================================== */
.clue-instruction-row {
  margin-top: 5px;
  min-height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wheel-instruction-label {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 750;
  letter-spacing: -0.01em;
  text-transform: none;
  color: #0369a1;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  padding: 3px 12px;
  border-radius: 999px;
  transition: all 0.22s ease;
  line-height: 1.25;
}

.wheel-instruction-label.is-ready {
  color: #0369a1;
  background: #f0f9ff;
  border-color: #bae6fd;
}

.wheel-instruction-label.is-over {
  color: #991b1b;
  background: #fef2f2;
  border-color: #fecaca;
}

.wheel-instruction-label.is-hidden {
  opacity: 0;
  pointer-events: none;
}

/* Hint-Locked Column State: Column is auto-spun & locked in place */
.tumbler-col.is-hint-locked .tumbler-barrel {
  border-color: #0284c7;
  background: linear-gradient(180deg, #e0f2fe 0%, #ffffff 30%, #ffffff 70%, #e0f2fe 100%) !important;
  box-shadow: 0 0 0 2.5px rgba(2, 132, 199, 0.4), 0 3px 0 #0f172a !important;
  cursor: default !important;
  pointer-events: none;
}

.tumbler-col.is-hint-locked .column-origin-cap {
  background: #38bdf8;
  border-color: #0284c7;
  color: #082f49;
  cursor: default;
  box-shadow: 0 2px 0 #0284c7;
}

.tumbler-col.is-hint-locked .tumbler-cell.cell-center {
  color: #0284c7 !important;
}

/* ==========================================
   CLEAN TACTILE WHEEL HOUSING + PER-COLUMN ORIGIN CAP
   ========================================== */
.wheel-section {
  width: 100%;
}

.cryptex-housing {
  position: relative;
  width: 100%;
  background: var(--housing-bg);
  border: 2.5px solid var(--housing-border);
  border-radius: 22px;
  padding: 14px 22px 16px;
  box-shadow: 0 6px 0 var(--housing-border);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Center Reading Window Frame across all reels:
   Height is precisely matched to the 3D projected facet distance between grooves (64px)
   so that when the tumbler is stationary, the top and bottom solid borders (2.5px solid #0f172a)
   physically obscure the grooves. As the wheel rotates, the grooves roll out from beneath the borders! */
.cryptex-housing::before {
  content: '';
  position: absolute;
  left: 12px;
  right: 12px;
  top: 50%;
  height: 64px;
  transform: translateY(-50%);
  border-top: 3px solid #0f172a;
  border-bottom: 3px solid #0f172a;
  background: rgba(254, 243, 199, 0.22);
  border-radius: 8px;
  pointer-events: none;
  z-index: 5;
  transition: opacity 0.35s ease;
}

.alignment-laser-left,
.alignment-laser-right {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.8rem;
  color: #0f172a;
  pointer-events: none;
  user-select: none;
  z-index: 4;
  transition: opacity 0.35s ease;
}

.alignment-laser-left {
  left: 5px;
}

.alignment-laser-right {
  right: 5px;
}

.lock-celebration-toast {
  position: absolute;
  top: 14px;
  height: 26px;
  line-height: 26px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-primary);
  border: 1.5px solid #0369a1;
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 0 16px;
  border-radius: 999px;
  box-shadow: 0 2px 0 #0f172a, 0 0 12px rgba(2, 132, 199, 0.45);
  z-index: 10;
  pointer-events: none;
  animation: correctToastPop 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.lock-celebration-toast[hidden] {
  display: none !important;
}

@keyframes correctToastPop {
  0% {
    opacity: 0;
    transform: translateX(-50%) scale(0.88);
  }
  15% {
    opacity: 1;
    transform: translateX(-50%) scale(1);
  }
  85% {
    opacity: 1;
    transform: translateX(-50%) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateX(-50%) scale(0.95);
  }
}

.tumblers-row {
  display: grid;
  grid-template-columns: repeat(var(--col-count, 5), 1fr);
  gap: 8px;
  width: 100%;
  z-index: 2;
}

.tumbler-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  user-select: none;
  -webkit-user-select: none;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

.tumbler-col:focus,
.tumbler-col:focus-visible {
  outline: none;
}

/* Mechanical detent bumper feedback when attempting to rotate past ±3 ticks */
.tumbler-col.is-at-limit {
  animation: colLimitBump 0.22s ease-in-out;
}

@keyframes colLimitBump {
  0% { transform: translateY(0); }
  35% { transform: translateY(-4px); }
  70% { transform: translateY(3px); }
  100% { transform: translateY(0); }
}

/* iOS Rubber-band tension resistance feedback when pulling past end detents */
.tumbler-col.is-rubber-banding .tumbler-barrel {
  box-shadow: 0 0 14px rgba(245, 158, 11, 0.32), inset 0 0 10px rgba(0, 0, 0, 0.45);
  transition: box-shadow 0.12s ease;
}

/* Tactile 3D Rotary Cylinder Wheel Barrel */
.tumbler-barrel {
  position: relative;
  width: 100%;
  height: 158px;
  border-radius: 12px;
  background-color: #ffffff;
  background: linear-gradient(
    180deg,
    #94a3b8 0%,
    #cbd5e1 10%,
    #f8fafc 32%,
    #ffffff 50%,
    #f8fafc 68%,
    #cbd5e1 90%,
    #94a3b8 100%
  );
  border: 2px solid #334155;
  box-shadow:
    inset 0 6px 8px rgba(15, 23, 42, 0.22),
    inset 0 -6px 8px rgba(15, 23, 42, 0.22),
    0 4px 0 #0f172a;
  overflow: hidden;
  cursor: grab;
  touch-action: none;
  outline: none;
  -webkit-tap-highlight-color: transparent;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  isolation: isolate;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

/* Clean, tactile cylinder rim depth shading (uncluttered, sleek 3D cylinder) */
.tumbler-barrel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 14px;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.28) 0%, rgba(15, 23, 42, 0.05) 75%, transparent 100%);
  pointer-events: none;
  z-index: 6;
  transition: opacity 0.25s ease;
}

.tumbler-barrel::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 14px;
  background: linear-gradient(0deg, rgba(15, 23, 42, 0.28) 0%, rgba(15, 23, 42, 0.05) 75%, transparent 100%);
  pointer-events: none;
  z-index: 6;
  transition: opacity 0.25s ease;
}

/* Tactile Dopamine Sizzle on Correct Word:
   Letters sizzle with electric cyan energy while wheel background stays clean with a soft, refined glow */
@keyframes letterSizzle {
  0% {
    scale: 1;
    color: var(--accent-primary);
    filter: drop-shadow(0 0 0 rgba(2, 132, 199, 0));
  }
  25% {
    scale: 1.25;
    color: #0ea5e9;
    filter: drop-shadow(0 0 6px rgba(56, 189, 248, 0.6)) drop-shadow(0 0 2px rgba(2, 132, 199, 0.4));
  }
  50% {
    scale: 0.95;
    color: #0369a1;
    filter: drop-shadow(0 0 3px rgba(2, 132, 199, 0.35));
  }
  75% {
    scale: 1.08;
    color: var(--accent-primary);
    filter: drop-shadow(0 0 4px rgba(56, 189, 248, 0.4));
  }
  100% {
    scale: 1;
    color: var(--accent-primary);
    filter: drop-shadow(0 1px 0 rgba(255, 255, 255, 0.8));
  }
}

.tumbler-cell.cell-solved-green,
.tumbler-cell.cell-solved-cyan {
  color: var(--accent-primary) !important;
  font-weight: 900 !important;
  -webkit-text-stroke: 0 !important;
  animation: letterSizzle 0.82s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.tumbler-col.is-pin-locked .tumbler-barrel {
  animation: pinLockBounce 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes pinLockBounce {
  0% { transform: translateY(0); }
  35% { transform: translateY(3.5px); }
  65% { transform: translateY(-1.5px); }
  100% { transform: translateY(0); }
}

.tumbler-barrel:active,
.tumbler-barrel.is-dragging {
  cursor: grabbing;
}

/* Crucial: Zero latency during active drag so letters directly follow cursor */
.tumbler-col.is-dragging .tumbler-cell,
.tumbler-barrel.is-dragging .tumbler-cell {
  transition: none !important;
}

.tumbler-col.is-hinted-col .tumbler-barrel {
  animation: hintGlowPulse 1.4s ease-in-out infinite;
  z-index: 5;
}

.tumbler-col.is-hinted-col .column-origin-cap {
  background: #ede9fe !important;
  border-color: #7c3aed !important;
  color: #5b21b6 !important;
  animation: hintCapPulse 1.4s ease-in-out infinite;
}

@keyframes hintGlowPulse {
  0%, 100% {
    border-color: #8b5cf6;
    box-shadow:
      0 0 0 3.5px rgba(139, 92, 246, 0.7),
      0 0 20px rgba(167, 139, 250, 0.85),
      0 0 35px rgba(139, 92, 246, 0.45),
      inset 0 0 12px rgba(167, 139, 250, 0.35),
      0 4px 0 #0f172a;
    transform: translateY(0) scale(1.02);
  }
  50% {
    border-color: #7c3aed;
    box-shadow:
      0 0 0 2px rgba(124, 58, 237, 0.45),
      0 0 10px rgba(139, 92, 246, 0.4),
      0 0 18px rgba(124, 58, 237, 0.25),
      inset 0 0 6px rgba(139, 92, 246, 0.2),
      0 4px 0 #0f172a;
    transform: translateY(-2px) scale(1.035);
  }
}

@keyframes hintCapPulse {
  0%, 100% {
    transform: translateY(0);
    box-shadow: 0 0 12px rgba(139, 92, 246, 0.6), 0 2px 0 #7c3aed;
  }
  50% {
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.9), 0 3px 0 #7c3aed;
  }
}

/* 3D Vertical Cylinder Viewport */
.tumbler-viewport {
  position: relative;
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  perspective: 300px;
  perspective-origin: 50% 50%;
  transform-style: preserve-3d;
  -webkit-mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    black 14%,
    black 86%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    black 14%,
    black 86%,
    transparent 100%
  );
}

.tumbler-drum {
  position: relative;
  width: 100%;
  height: 48px;
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  will-change: transform;
}

.tumbler-cell {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-brand);
  font-size: 1.85rem;
  font-weight: 850;
  color: var(--text-primary);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  user-select: none;
  -webkit-user-select: none;
  pointer-events: none;
  -webkit-tap-highlight-color: transparent;
}

/* Debossed cylinder grooves:
   Permanently visible on all cylinder facets. When the wheel is parked on an integer notch,
   the top and bottom grooves sit directly beneath the solid 3px top/bottom borders of the 
   reading selector rectangle, physically occluding them. As you drag or flick the wheel,
   the grooves naturally roll out into view from under the selector frame! */
.tumbler-cell::before {
  content: '';
  position: absolute;
  top: 0;
  left: 3px;
  right: 3px;
  height: 1.5px;
  background: rgba(100, 116, 139, 0.65);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.95);
  pointer-events: none;
  border-radius: 999px;
}

.tumbler-cell.cell-unreachable {
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Letter Origin Scheme:
   The stage origin letter is ALWAYS black (#0f172a),
   and all alternative reachable letters are ALWAYS Cryptex blue (#0284c7). */

/* ==========================================================================
   Letter Color & Selection Architecture (Option 1: Slate Foundation):
   - When in Center Reading Frame (.cell-center):
     - Origin letter: Refined Slate Charcoal (#475569, font-weight: 850)
     - Alternative letter: Vibrant signature Submit Blue (var(--accent-primary) / #0284c7, font-weight: 900)
       By softening the origin letters to elegant charcoal, the bright blue modified letter
       stands out as the undisputed, vibrant, celebrated hero of the word!
   - When Unselected on Cylinder Barrel (:not(.cell-center)):
     Both letter types receive mild transparency (45%), softly receding into the background.
     - Origin letter: rgba(71, 85, 105, 0.45) (renders as a subtle, clean light-slate)
     - Alternative letter: rgba(2, 132, 199, 0.45) (renders as a soft, secondary blue)
   ========================================================================== */

/* 1. Origin Letter */
.tumbler-cell.cell-origin {
  color: rgba(71, 85, 105, 0.45);
  font-weight: 750;
  transition: color 0.15s ease;
}

.tumbler-cell.cell-origin.cell-center {
  color: #475569;
  font-weight: 850;
}

/* 2. Alternative reachable letters */
.tumbler-cell:not(.cell-origin) {
  color: rgba(2, 132, 199, 0.45);
  font-weight: 750;
  transition: color 0.15s ease;
}

.tumbler-cell:not(.cell-origin).cell-center {
  color: var(--accent-primary);
  font-weight: 900;
}

.tumbler-cell.cell-center {
  filter: none;
}

/* ==========================================
   SOLVED STAGE PRESENTATION:
   All barrels, gradient shadows, borders, selection frames, and filters remain 100% active and stable!
   Only the center solved letters turn vibrant green and pulse out and in.
   ========================================== */

/* Pip stage-solved halo bloom */
.progress-pip.is-pip-bloomed {
  animation: pipBloomHalo 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes pipBloomHalo {
  0% { transform: scale(1); box-shadow: 0 0 0 rgba(2, 132, 199, 0); }
  40% { transform: scale(1.35); box-shadow: 0 0 14px rgba(2, 132, 199, 0.75); }
  100% { transform: scale(1); box-shadow: 0 0 4px rgba(2, 132, 199, 0.3); }
}

/* Checkbox Pips Organic Ripple Wave:
   Refined low-altitude wave where each pip arcs gently (-3.5px) and the next begins as the previous touches down */
.progress-pip.pip-wave-dance {
  animation: pipPianoKeyJump 0.27s cubic-bezier(0.25, 1, 0.5, 1) both;
}

@keyframes pipPianoKeyJump {
  0% {
    transform: translateY(0) scale(1.05);
  }
  42% {
    transform: translateY(-3.5px) scale(1.12);
    box-shadow: 0 3px 8px rgba(2, 132, 199, 0.55), 0 0 6px rgba(56, 189, 248, 0.6);
    filter: brightness(1.15);
  }
  80% {
    transform: translateY(0.5px) scale(1.03);
    box-shadow: 0 1px 3px rgba(2, 132, 199, 0.3);
  }
  100% {
    transform: translateY(0) scale(1.05);
    box-shadow: 0 1.5px 4px rgba(2, 132, 199, 0.35);
  }
}

/* When the column's starting letter is visible above/below on the strip, mark it softly */
.tumbler-cell.is-origin-displaced {
  color: var(--origin-highlight) !important;
  opacity: 0.9 !important;
  cursor: pointer;
}

.tumbler-cell.is-origin-displaced::after {
  content: '';
  position: absolute;
  width: 32px;
  height: 28px;
  border-radius: 6px;
  border: 1.5px dashed var(--origin-border);
  background: var(--origin-bg);
  z-index: -1;
}

/* ==========================================
   BOTTOM CONTROLS: RESET NEXT TO SUBMIT
   ========================================== */
.controls-section {
  width: 100%;
}

.primary-button-row {
  width: 100%;
  display: grid;
  grid-template-columns: 100px 1fr 100px;
  gap: 10px;
  align-items: stretch;
}

.reset-btn {
  width: 100%;
  min-width: 0;
  padding: 14px 6px;
  border-radius: 12px;
  border: 2px solid var(--border-strong);
  background: var(--bg-panel);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 0 var(--border-strong);
  transition: all 0.12s ease;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-sizing: border-box;
}

.reset-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 5px 0 var(--border-strong);
  background: #ffffff;
}

.reset-btn:active:not(:disabled),
.reset-btn.is-resetting {
  transform: translateY(2px);
  box-shadow: 0 2px 0 var(--border-strong) !important;
}

.reset-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}

.submit-wrapper {
  position: relative;
  width: 100%;
  min-width: 0;
  display: flex;
}

.submit-popup {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: #0f172a;
  color: #ffffff;
  padding: 8px 14px;
  border-radius: 8px;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
  pointer-events: none;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.28);
  z-index: 50;
  opacity: 0;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.submit-popup::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 6px;
  border-style: solid;
  border-color: #0f172a transparent transparent transparent;
}

.submit-popup.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.submit-btn {
  width: 100%;
  padding: 14px 16px;
  min-height: 52px;
  border-radius: 12px;
  border: 2px solid var(--border-strong);
  background: var(--accent-primary);
  color: var(--accent-contrast);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  cursor: pointer;
  box-shadow: 0 4px 0 var(--border-strong);
  transition: all 0.12s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-sizing: border-box;
}

.submit-btn:hover:not(.is-disabled):not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 5px 0 var(--border-strong);
  filter: brightness(1.04);
}

.submit-btn:active:not(.is-disabled):not(:disabled) {
  transform: translateY(2px);
  box-shadow: 0 2px 0 var(--border-strong);
}

.submit-btn.is-disabled {
  background: var(--bg-panel-elevated);
  border-color: rgba(15, 23, 42, 0.22);
  color: var(--text-secondary);
  box-shadow: none;
  opacity: 0.55;
  cursor: pointer;
}

.submit-btn:disabled {
  background: var(--bg-panel-elevated);
  border-color: rgba(15, 23, 42, 0.28);
  color: var(--text-secondary);
  box-shadow: none;
  cursor: not-allowed;
}

.submit-btn.submit-over-budget:disabled {
  border-color: #991b1b;
  background: #fee2e2;
  color: #991b1b;
}

.submit-btn.submit-error-flash {
  background: #ef4444 !important;
  border-color: #991b1b !important;
  color: #ffffff !important;
  box-shadow: 0 4px 0 #991b1b !important;
}

/* ==========================================
   SHARE BUTTON (COMPLETED DAILY PUZZLE): GENTLE PULSE
   ========================================== */
.submit-btn.submit-share-gleam {
  position: relative;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
  color: #ffffff !important;
  border-color: #065f46 !important;
  cursor: pointer !important;
  box-shadow: 0 4px 0 #065f46, 0 0 16px rgba(16, 185, 129, 0.4) !important;
  animation: shareButtonPulse 2.4s ease-in-out infinite;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 1.05rem;
  letter-spacing: 0.08em;
}

.submit-btn.submit-share-gleam:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 0 #065f46, 0 0 24px rgba(16, 185, 129, 0.6) !important;
}

.submit-btn.submit-share-gleam:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 #065f46 !important;
}

@keyframes shareButtonPulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 4px 0 #065f46, 0 0 14px rgba(16, 185, 129, 0.35);
  }
  50% {
    transform: scale(1.025);
    box-shadow: 0 4px 0 #065f46, 0 0 24px rgba(16, 185, 129, 0.6);
  }
}

.hint-bottom-btn {
  width: 100%;
  min-width: 0;
  padding: 14px 6px;
  border-radius: 12px;
  border: 2px solid var(--origin-border);
  background: #ede9fe;
  color: #4c1d95;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 0 var(--origin-border);
  transition: all 0.12s ease;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-sizing: border-box;
}

.hint-bottom-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 5px 0 var(--origin-border);
  background: #ddd6fe;
}

.hint-bottom-btn:active:not(:disabled) {
  transform: translateY(2px);
  box-shadow: 0 2px 0 var(--origin-border);
}

.hint-bottom-btn.is-applied {
  background: #ddd6fe !important;
  color: #5b21b6 !important;
  border-color: #7c3aed !important;
  box-shadow: 0 2px 0 #7c3aed !important;
  transform: translateY(2px) !important;
}

.hint-bottom-btn:disabled {
  opacity: 0.65;
  cursor: default;
}

/* ==========================================
   ERROR SHAKE & CELEBRATORY WAVE LOCK
   ========================================== */
@keyframes cryptexShake {
  0%, 100% { transform: translateX(0); }
  15% { transform: translateX(-9px); }
  30% { transform: translateX(8px); }
  45% { transform: translateX(-7px); }
  60% { transform: translateX(6px); }
  75% { transform: translateX(-4px); }
}

@keyframes lockWave {
  0% {
    transform: translateY(0) scale(1);
  }
  45% {
    transform: translateY(-8px) scale(1.04);
    background: #d1fae5;
  }
  100% {
    transform: translateY(0) scale(1);
  }
}

.cryptex-housing.shake-error {
  animation: cryptexShake 0.44s cubic-bezier(0.36, 0.07, 0.19, 0.97);
}

.tumbler-col.wave-lock .tumbler-barrel {
  animation: lockWave 0.54s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.tumbler-col.wave-lock .tumbler-cell.cell-center {
  color: var(--accent-primary) !important;
}

/* ==========================================
   MODALS
   ========================================== */
.modal-dialog {
  margin: auto;
  border: none;
  background: transparent;
  color: var(--text-primary);
  max-width: 420px;
  width: calc(100% - 28px);
  padding: 0;
}

.modal-dialog::backdrop {
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.modal-card {
  background: var(--bg-panel);
  border: 2px solid var(--border-strong);
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 6px 0 var(--border-strong);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-header h2 {
  font-size: 1.15rem;
  font-weight: 800;
}

.modal-close-btn {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1.5px solid var(--border-strong);
  background: var(--bg-panel-elevated);
  color: var(--text-primary);
  font-weight: 800;
  cursor: pointer;
}

.modal-close-circle-btn {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: none;
  background: rgba(148, 163, 184, 0.16);
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.16s ease;
  outline: none;
  padding: 0;
}

.modal-close-circle-btn:hover {
  background: rgba(148, 163, 184, 0.28);
  color: var(--text-primary);
  transform: scale(1.05);
}

.modal-close-circle-btn:active {
  transform: scale(0.94);
}

.modal-close-circle-btn:focus:not(:focus-visible) {
  outline: none;
  box-shadow: none;
}

.modal-close-text-btn {
  background: rgba(2, 132, 199, 0.08);
  border: 1.5px solid rgba(2, 132, 199, 0.25);
  border-radius: 999px;
  padding: 4px 14px;
  font-family: var(--font-brand);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent-primary);
  cursor: pointer;
  transition: all 0.18s ease;
  outline: none;
}

.modal-close-text-btn:hover {
  background: var(--accent-primary);
  color: #ffffff;
}

.modal-close-text-btn:focus:not(:focus-visible) {
  outline: none;
  box-shadow: none;
}

.modal-header h2:focus {
  outline: none;
}

.modal-lead {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.simple-rules {
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

.primary-modal-btn {
  width: 100%;
  padding: 11px;
  border-radius: 10px;
  border: 2px solid var(--border-strong);
  background: var(--accent-primary);
  color: var(--accent-contrast);
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 3px 0 var(--border-strong);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.stat-box {
  background: var(--bg-panel-elevated);
  border: 1.5px solid var(--border-strong);
  border-radius: 10px;
  padding: 10px 6px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.stat-number {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--accent-soft);
}

.stat-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 700;
}

.share-preview-box {
  margin-top: 12px;
  background: var(--bg-panel-elevated);
  border: 1.5px solid var(--border-strong);
  border-radius: 10px;
  padding: 12px 14px;
}

.share-preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
  font-size: 0.74rem;
  color: var(--text-muted);
  font-weight: 700;
}

.copy-confirm-badge {
  color: #059669;
  font-weight: 800;
}

.share-text-preview {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--text-primary);
  white-space: pre-wrap;
  text-align: center;
}

.summary-footer {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

@media (max-width: 520px) {
  .cryptex-housing {
    padding: 12px 14px 14px;
  }

  .tumblers-row {
    gap: 5px;
  }

  .tumbler-barrel {
    height: 146px;
  }

  .tumbler-cell.cell-center {
    font-size: 1.7rem;
  }

  /* 6-letter Saturday layout optimization for narrow viewports */
  .tumblers-row[style*="--col-count: 6"],
  .tumblers-row[style*="--col-count:6"] {
    gap: 4px;
  }

  .tumblers-row[style*="--col-count: 6"] .tumbler-cell,
  .tumblers-row[style*="--col-count:6"] .tumbler-cell {
    font-size: 1.48rem;
  }
}

/* ==========================================
   VICTORY CELEBRATION AREA
   Replaces the active game wheels and controls upon puzzle completion!
   ========================================== */
.game-active-area {
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: opacity 0.3s ease;
}

.game-victory-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  animation: victoryFadeIn 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.game-victory-area[hidden] {
  display: none !important;
}

@keyframes victoryFadeIn {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.victory-card-inner {
  width: 100%;
  background: var(--bg-panel);
  border: 2px solid var(--border-strong);
  border-radius: 22px;
  padding: 34px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.victory-date-badge {
  font-family: var(--font-num);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #78350f;
  background: rgba(245, 158, 11, 0.16);
  border: 1.5px solid rgba(217, 119, 6, 0.3);
  padding: 4px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.victory-confetti-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 9999;
}

.victory-trophy-badge {
  font-size: 3.2rem;
  line-height: 1;
  margin-bottom: 12px;
  filter: drop-shadow(0 6px 14px rgba(245, 158, 11, 0.45));
  animation: trophyCelebrate 1.1s cubic-bezier(0.34, 1.56, 0.64, 1) infinite alternate;
}

@keyframes trophyCelebrate {
  0% { transform: scale(1) rotate(-4deg); }
  100% { transform: scale(1.15) rotate(4deg); }
}

.victory-headline {
  font-family: var(--font-brand);
  font-size: 1.85rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.victory-message {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--text-secondary);
  max-width: 380px;
  line-height: 1.5;
  margin-bottom: 12px;
}

.victory-stats-row {
  display: flex;
  align-items: center;
  justify-content: space-around;
  width: 100%;
  max-width: 360px;
  background: rgba(15, 23, 42, 0.04);
  border: 1.5px solid var(--border-subtle);
  border-radius: 14px;
  padding: 14px 10px;
  margin-bottom: 20px;
}

/* Victory Action Buttons Row (Primary Share + Secondary Archive) */
.victory-buttons-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  max-width: 360px;
  margin-top: 4px;
}

.victory-buttons-row .victory-share-button {
  flex: 1;
  margin-top: 0;
}

.victory-secondary-button {
  flex: 1;
  background: rgba(15, 23, 42, 0.05);
  color: var(--text-primary);
  border: 1.5px solid var(--border-strong);
  border-radius: 14px;
  padding: 13px 18px;
  font-family: var(--font-brand);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 3px 0 var(--border-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.victory-secondary-button:hover {
  background: rgba(15, 23, 42, 0.1);
  transform: translateY(-1px);
}

.victory-secondary-button:active {
  transform: translateY(2px);
  box-shadow: none;
}

.victory-secondary-button.is-primary-cta {
  background: var(--accent-primary) !important;
  color: #ffffff !important;
  border-color: #004d80 !important;
  box-shadow: 0 3px 0 #004d80, 0 6px 14px rgba(2, 132, 199, 0.35) !important;
}

.victory-secondary-button.is-primary-cta:hover {
  background: #0369a1 !important;
  transform: translateY(-1px);
}

.summary-footer .reset-btn.is-primary-cta {
  background: var(--accent-primary) !important;
  color: #ffffff !important;
  border-color: var(--border-strong) !important;
  box-shadow: 0 4px 0 var(--border-strong) !important;
}

.victory-countdown-badge {
  font-family: var(--font-num);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-secondary);
  background: rgba(15, 23, 42, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  padding: 5px 14px;
  margin: 14px 0 6px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.victory-countdown-badge strong {
  color: #d97706;
  font-weight: 850;
}

.victory-stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.victory-stat-num {
  font-family: var(--font-num);
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--text-primary);
}

.victory-stat-label {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.victory-stat-divider {
  width: 1.5px;
  height: 28px;
  background: var(--border-subtle);
}

.victory-share-button {
  flex: 1;
  width: 100%;
  max-width: 360px;
  padding: 13px 18px;
  border-radius: 14px;
  border: 1.5px solid #0284c7;
  background: #0284c7;
  color: #ffffff;
  font-family: var(--font-brand);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  cursor: pointer;
  box-shadow: 0 3px 0 #0369a1;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.victory-share-button:hover {
  background: #0369a1;
  border-color: #0369a1;
  transform: translateY(-1px);
  box-shadow: 0 4px 0 #075985;
}

.victory-share-button:active {
  transform: translateY(2px);
  box-shadow: none;
}


.correct-text-celebration {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-brand);
  font-size: 1.35rem;
  font-weight: 900;
  color: #059669;
  letter-spacing: 0.03em;
  animation: correctPopIn 0.32s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes correctPopIn {
  0% {
    opacity: 0;
    transform: scale(0.85);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* Victory Screen Archive Note */
.victory-archive-hint {
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-top: 24px;
  line-height: 1.5;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.victory-hint-line {
  margin: 0;
}

.victory-archive-link {
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
  font-size: inherit;
  font-weight: 850;
  color: var(--accent-primary);
  text-decoration: underline;
  cursor: pointer;
  display: inline;
}

.victory-archive-link:hover {
  color: var(--accent-soft);
}

/* Help Dialog Archive Shortcut */
.help-archive-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.help-archive-lead {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 600;
  margin: 0;
}

.help-archive-pill-btn {
  background: rgba(2, 132, 199, 0.08);
  color: var(--accent-primary);
  border: 1.5px solid rgba(2, 132, 199, 0.28);
  border-radius: 999px;
  padding: 6px 16px;
  font-family: var(--font-brand);
  font-size: 0.88rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
}

.help-archive-pill-btn:hover {
  background: var(--accent-primary);
  color: #ffffff;
}

/* Streak Dialog Styles */
.streak-modal-banner {
  display: flex;
  align-items: center;
  justify-content: space-around;
  background: #f1f5f9;
  border: 1.5px solid #cbd5e1;
  border-radius: 14px;
  padding: 14px 18px;
  margin-bottom: 18px;
}

.streak-modal-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}

.streak-modal-fire,
.streak-modal-trophy {
  font-size: 1.5rem;
  line-height: 1;
}

.streak-modal-num {
  font-family: var(--font-num);
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--text-primary);
  line-height: 1;
}

.streak-modal-sub {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.streak-modal-divider {
  width: 1.5px;
  height: 42px;
  background: #cbd5e1;
}

.streak-rules-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
}

.streak-rule-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  padding: 10px 14px;
}

.streak-rule-icon {
  font-size: 1.25rem;
  line-height: 1.2;
}

.streak-rule-content strong {
  font-size: 0.88rem;
  color: var(--text-primary);
  display: block;
  margin-bottom: 2px;
}

.streak-rule-content p {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.35;
  margin: 0;
}

.streak-banner {
  cursor: pointer;
}

.victory-stat-item.is-clickable {
  cursor: pointer;
  border-radius: 10px;
  padding: 4px 8px;
  transition: background 0.15s ease, transform 0.15s ease;
}

.victory-stat-item.is-clickable:hover {
  background: rgba(2, 132, 199, 0.08);
  transform: scale(1.05);
}

/* ==========================================
   JBENSOFTWARE BRANDING & HELP MODAL STYLES
   ========================================== */
.help-modal-divider {
  width: 100%;
  height: 1px;
  background: var(--border-subtle);
  margin: 14px 0;
}

.help-branding-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding-top: 4px;
}

.jbensoftware-pill-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 18px;
  background: rgba(2, 132, 199, 0.08);
  border: 1.5px solid rgba(2, 132, 199, 0.28);
  border-radius: 999px;
  font-family: var(--font-brand);
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--accent-primary);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: all 0.18s ease;
}

.jbensoftware-pill-btn:hover {
  background: var(--accent-primary);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.25);
}

.jbensoftware-pill-btn:active {
  transform: scale(0.97);
}

.help-version-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  text-align: center;
  margin-top: 4px;
  letter-spacing: 0.03em;
  opacity: 0.85;
}

/* Main Playing Surface Subtle Unclickable Footer (Pinned to bottom of viewport) */
.game-surface-copyright {
  position: absolute;
  bottom: max(6px, env(safe-area-inset-bottom, 6px));
  left: 0;
  right: 0;
  text-align: center;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-secondary);
  opacity: 0.85;
  user-select: none;
  -webkit-user-select: none;
  pointer-events: none;
  letter-spacing: 0.03em;
  z-index: 1;
}

#menu-view:not([hidden]) ~ .game-surface-copyright,
#game-view[hidden] ~ .game-surface-copyright,
#game-view:has(#game-victory-area:not([hidden])) ~ .game-surface-copyright,
body:has(dialog[open]) .game-surface-copyright {
  display: none !important;
}

/* ==========================================
   DAY THEME BANNER & DIALOG STYLES
   ========================================== */
.game-day-banner-wrap {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 6px;
}

.game-day-banner {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: rgba(2, 132, 199, 0.08);
  border: 1px solid rgba(2, 132, 199, 0.24);
  border-radius: 9999px;
  padding: 3px 12px;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 0.76rem;
  line-height: 1.25;
  color: var(--text-primary);
  transition: all 0.15s ease;
  max-width: 100%;
  text-align: center;
}

.game-day-banner:hover {
  background: rgba(2, 132, 199, 0.14);
  border-color: rgba(2, 132, 199, 0.42);
  transform: translateY(-0.5px);
}

.game-day-banner:active {
  transform: translateY(0.5px);
}

.day-theme-sparkle {
  font-size: 0.78rem;
  line-height: 1;
}

.day-theme-title {
  font-weight: 800;
  color: #0284c7;
  white-space: nowrap;
}

.day-theme-dot {
  color: #94a3b8;
  font-size: 0.7rem;
}

.day-theme-desc {
  font-weight: 600;
  color: #475569;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.day-theme-info-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: rgba(2, 132, 199, 0.18);
  color: #0284c7;
  font-size: 0.62rem;
  font-weight: 800;
  margin-left: 2px;
}

.day-theme-modal-card {
  max-width: 440px;
}

.day-theme-dialog-badge-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 12px;
}

.day-theme-dialog-badge {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(2, 132, 199, 0.12);
  color: #0284c7;
  font-family: var(--font-brand);
  font-weight: 800;
  font-size: 0.82rem;
  border-radius: 9999px;
  border: 1px solid rgba(2, 132, 199, 0.25);
  letter-spacing: 0.02em;
}

.help-lineup-box {
  width: 100%;
  background: rgba(15, 23, 42, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 10px 12px;
  margin-top: 10px;
  margin-bottom: 6px;
}

.help-lineup-header {
  font-family: var(--font-brand);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  margin-bottom: 8px;
  text-align: center;
}

.help-lineup-grid {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.help-lineup-item {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-size: 0.78rem;
  line-height: 1.3;
}

.lineup-day {
  display: inline-block;
  width: 28px;
  font-weight: 800;
  color: #0284c7;
  font-size: 0.76rem;
  flex-shrink: 0;
}

.lineup-name {
  font-weight: 700;
  color: var(--text-primary);
  flex-shrink: 0;
}

.lineup-detail {
  color: var(--text-muted);
  font-size: 0.74rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 380px) {
  .game-day-banner {
    font-size: 0.7rem;
    padding: 2px 8px;
    gap: 4px;
  }
  .day-theme-sparkle {
    display: none;
  }
  .lineup-detail {
    font-size: 0.7rem;
  }
}
