/* ─── Game Buttons ───────────────────────────────────────── */

.btn-game {
  font-family: var(--font-display);
  font-weight: 700;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  position: relative;
  transition: transform var(--t-fast), box-shadow var(--t-fast);
  -webkit-tap-highlight-color: transparent;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
}

.btn-game:active {
  transform: translateY(2px);
}

.btn-primary {
  background: var(--color-honey-dark);
  color: var(--color-earth-dark);
  box-shadow: var(--shadow-btn-primary);
  padding: 14px 28px;
  font-size: var(--font-size-lg);
}

.btn-primary:active {
  box-shadow: 0 2px 0 0 var(--color-earth-red);
}

.btn-secondary {
  background: var(--color-leaf-dark);
  color: white;
  box-shadow: var(--shadow-btn-secondary);
  padding: 12px 24px;
  font-size: var(--font-size-base);
}

.btn-secondary:active {
  box-shadow: 0 2px 0 0 #3d5a1a;
}

.btn-outline {
  background: rgba(255, 248, 231, 0.9);
  color: var(--color-earth-red);
  border: 2px solid var(--color-earth-red);
  box-shadow: var(--shadow-btn-outline);
  padding: 10px 20px;
  font-size: var(--font-size-sm);
}

.btn-outline:active {
  box-shadow: 0 1px 0 0 var(--color-earth-red);
}

/* ─── Narrative bar internals ────────────────────────────── */

.bar-icon-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-honey-light);
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  transition: color var(--t-fast), background var(--t-fast);
  -webkit-tap-highlight-color: transparent;
  min-width: 44px;
  min-height: 44px;
  flex-shrink: 0;
}

.bar-icon-btn:hover  { color: var(--color-honey-main); }
.bar-icon-btn:active { background: rgba(255,255,255,0.08); }

.bar-lang-btn {
  font-family: var(--font-display);
  font-size: var(--font-size-xs);
  font-weight: 700;
  letter-spacing: 0.05em;
}

/* Marquee wrapper */
.bar-marquee-wrap {
  flex: 1;
  overflow: hidden;
  height: 100%;
  display: flex;
  align-items: center;
  position: relative;
}

.bar-marquee {
  color: var(--bar-text-color);
  font-family: var(--font-body);
  font-size: var(--font-size-sm);
  font-weight: 500;
  white-space: nowrap;
  will-change: transform;
  transition: opacity 400ms ease;
}

/* Scrubber */
.bar-scrubber {
  flex-shrink: 0;
  width: 80px;
  height: 4px;
  -webkit-appearance: none;
  appearance: none;
  background: rgba(251, 221, 140, 0.3);
  border-radius: var(--radius-pill);
  cursor: pointer;
  outline: none;
}

.bar-scrubber::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--color-honey-main);
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0,0,0,0.4);
  transition: transform var(--t-fast);
}

.bar-scrubber::-webkit-slider-thumb:active {
  transform: scale(1.3);
}

.bar-scrubber::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--color-honey-main);
  cursor: pointer;
  border: none;
}

/* ─── Spread thumbnail card ──────────────────────────────── */

.spread-thumb-card {
  border: 3px solid transparent;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  transition: border-color var(--t-fast), transform var(--t-fast);
  background: var(--color-earth-dark);
  -webkit-tap-highlight-color: transparent;
}

.spread-thumb-card:hover  { transform: scale(1.03); }
.spread-thumb-card.active { border-color: var(--color-honey-main); }

.spread-thumb-img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
}

.spread-thumb-label {
  padding: 0.4rem 0.6rem;
  font-family: var(--font-display);
  font-size: var(--font-size-xs);
  font-weight: 700;
  color: var(--color-honey-light);
  background: var(--color-earth-dark);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ─── Section content typography ─────────────────────────── */

.section-content h1,
.section-content h2,
.section-content h3 {
  font-family: var(--font-display);
  color: var(--color-earth-dark);
  margin-bottom: 0.75rem;
}

.section-content h1 { font-size: var(--font-size-xl); }
.section-content h2 { font-size: var(--font-size-lg); margin-top: 1.5rem; }
.section-content h3 { font-size: var(--font-size-base); margin-top: 1rem; }

.section-content p  { margin-bottom: 1rem; }
.section-content ul { padding-left: 1.5rem; margin-bottom: 1rem; }
.section-content li { margin-bottom: 0.4rem; }

.section-content a {
  color: var(--color-earth-red);
  text-decoration: underline;
}

/* ─── NProgress override ─────────────────────────────────── */

#nprogress .bar {
  background: var(--color-honey-main) !important;
  height: 3px !important;
}
