/* Functional corrections for the existing Your Idol presentation. */
.nav-right { flex-wrap: wrap; justify-content: center; }
.lang-toggle { min-height: 44px; min-width: 44px; white-space: nowrap; }
.bubble-text { opacity: 1; font-size: 0.65rem; }
.bubble { transition: box-shadow 200ms ease; }
.bubble:focus-visible { outline: 3px solid var(--color-gold); outline-offset: 4px; }
.bubble-field.is-paused .bubble { animation-play-state: paused; }
#ritual-gate { padding: 24px; text-align: center; }
#ritual-gate-btn { animation: none !important; }
#gate-lang-btn { color: #e8dff0 !important; min-height: 44px; }
#ritual-gate > div:first-of-type { color: var(--color-crimson) !important; }
footer { flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.footer-brand { justify-content: center; }
.table-wrap:focus-visible { outline: 2px solid var(--color-gold); }
@media (max-width: 1000px) {
  .site-nav { flex-wrap: wrap; gap: 12px; justify-content: center; }
  .nav-logo { text-align: center; justify-content: center; font-size: clamp(1rem, 4.7vw, 1.5rem); }
  .nav-right { gap: 10px; }
}
@media (max-width: 480px) {
  .nav-right { gap: 8px; }
  .nav-right .lang-toggle, .nav-tag { font-size: 0.6rem; letter-spacing: 0.1em; padding-left: 6px; padding-right: 6px; }
  .hero, .section-intro, .bubble-arena, .lyric-section, .table-section, .essay-section, .coda-section { padding-left: 20px; padding-right: 20px; }
  .hero-eyebrow { letter-spacing: 0.2em; }
  .hero-eyebrow::before, .hero-eyebrow::after { width: 15px; flex-shrink: 0; }
  .lyric-header { align-items: flex-start; gap: 10px; }
  .lyric-num { min-width: 2rem; }
  .lyric-block-title, .section-heading { overflow-wrap: anywhere; }
  .lyric-card, .analysis-block, .korean-box, .perda-box { padding: 18px; }
  .loss-table { min-width: 630px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-iteration-count: 1 !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  #cursor-flame, .flame-ash, .spark, .burst-halo { display: none !important; }
  html, body, a, button, [role="button"], .bubble, [class*="btn"] { cursor: auto !important; }
  .bubble.exploding { visibility: hidden; }
}
@media (hover: none) { html, body, a, button, [role="button"], .bubble, [class*="btn"] { cursor: auto !important; } }
@media print {
  :root { --color-text: #111; --color-text-muted: #222; --color-text-faint: #333; --color-crimson: #78132f; --color-purple: #4b226d; --color-gold: #62420e; --color-bg: #fff; --color-surface: #fff; --color-surface-2: #fff; }
  html, body { background: #fff !important; color: #111 !important; overflow: visible; }
  #ritual-gate, .site-nav, canvas, #cursor-flame, .flame-ash, .spark, .burst-halo, .bubble-arena, .hero-scroll-hint, .back-button { display: none !important; }
  *, *::before, *::after { animation: none !important; transition: none !important; text-shadow: none !important; box-shadow: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .hero { min-height: 0; padding: 20px 0; }
  .hero::before { display: none; }
  .hero-title { background: none; -webkit-text-fill-color: #111; filter: none; font-size: 36pt; }
  .section-intro, .lyric-section, .essay-section, .table-section, .coda-section { max-width: none; padding: 20px 0; }
  .lyric-cards { grid-template-columns: 1fr; }
  .lyric-card, .analysis-block, .korean-box, .perda-box, .essay-pullquote { background: #fff; break-inside: auto; }
  .table-wrap { overflow: visible; }
  .loss-table { min-width: 0; font-size: 9pt; table-layout: fixed; }
  .loss-table th, .loss-table td { white-space: normal; overflow-wrap: anywhere; padding: 6px; }
  h1, h2, h3 { break-after: avoid; }
  p { orphans: 3; widows: 3; }
}
