/* Umpqua Valley Festival of Lights */

@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/poppins-latin-400.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 500; font-display: swap; src: url('/fonts/poppins-latin-500.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/poppins-latin-600.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --night: #070b1c;
  --night-2: #0d1430;
  --night-3: #141d42;
  --line: rgba(255, 226, 150, 0.18);
  --text: #f4efe3;
  --muted: #b9b6c9;
  --gold: #ffd978;
  --gold-deep: #e9b542;
  --cta: #f6e66d;
  --cta-ink: #1a1a1a;
  --red: #e0344a;
  --red-ink: #c4283b;
  --green: #2f9e63;
  --pine: #2b5614;
  --radius: 16px;
  --maxw: 1180px;
  --header-h: 72px;
  --font: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--night);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-underline-offset: 3px; }
a:hover { color: #fff; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 0.5em; font-weight: 600; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.2rem, 6vw, 4rem); }
h2 { font-size: clamp(1.7rem, 4vw, 2.6rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--cta); color: var(--cta-ink); padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { left: 8px; }

#fx { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; }
main, .site-footer, .announce, .updating-bar, .site-header { position: relative; z-index: 1; }

/* header */
.announce { background: var(--red-ink); color: #fff; text-align: center; padding: 10px 16px; font-weight: 500; font-size: 0.95rem; }
.announce a { color: #fff; }
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(7, 11, 28, 0.55); border-bottom: 1px solid transparent; transition: background 0.3s, border-color 0.3s; }
.site-header.scrolled { background: rgba(7, 11, 28, 0.92); border-bottom-color: var(--line); }
.header-inner { max-width: var(--maxw); margin: 0 auto; height: var(--header-h); padding: 0 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand-logo { width: 170px; height: auto; }
.site-nav { display: flex; align-items: center; gap: 22px; }
.site-nav ul { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.site-nav li a { display: block; white-space: nowrap; padding: 8px 10px; color: var(--text); text-decoration: none; font-size: 0.95rem; font-weight: 500; border-radius: 999px; transition: background 0.2s, color 0.2s; }
.site-nav li a:hover { background: rgba(255, 255, 255, 0.08); }
.site-nav li a[aria-current='page'] { color: var(--gold); background: rgba(255, 217, 120, 0.1); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 10px; width: 46px; height: 46px; cursor: pointer; }
.nav-toggle .bars, .nav-toggle .bars::before, .nav-toggle .bars::after { display: block; width: 20px; height: 2px; background: var(--text); border-radius: 2px; position: relative; margin: 0 auto; transition: transform 0.25s, background 0.25s; }
.nav-toggle .bars::before, .nav-toggle .bars::after { content: ''; position: absolute; left: 0; }
.nav-toggle .bars::before { top: -7px; }
.nav-toggle .bars::after { top: 7px; }
.nav-toggle[aria-expanded='true'] .bars { background: transparent; }
.nav-toggle[aria-expanded='true'] .bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded='true'] .bars::after { transform: translateY(-7px) rotate(-45deg); }

/* buttons */
.btn { display: inline-block; background: var(--cta); color: var(--cta-ink); font-weight: 600; font-size: 1.05rem; letter-spacing: 0.08em; text-decoration: none; padding: 15px 38px; border-radius: 999px; border: 2px solid var(--cta); cursor: pointer; font-family: inherit; box-shadow: 0 0 24px rgba(246, 230, 109, 0.35); transition: transform 0.2s, box-shadow 0.2s, background 0.2s; }
.btn:hover { color: var(--cta-ink); transform: translateY(-2px); box-shadow: 0 0 36px rgba(246, 230, 109, 0.6); background: #fff3a0; }
.btn-small { padding: 9px 22px; font-size: 0.9rem; letter-spacing: 0.04em; }
.btn-ghost { background: transparent; color: var(--gold); border-color: var(--gold); box-shadow: none; }
.btn-ghost:hover { background: rgba(255, 217, 120, 0.12); color: #fff; box-shadow: none; }
.link-btn { background: none; border: 0; padding: 0; color: var(--gold); font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.link-btn:hover { color: #fff; }

/* layout */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.section { padding: clamp(56px, 9vw, 110px) 0; }
.section-alt { background: linear-gradient(180deg, rgba(13, 20, 48, 0.88), rgba(13, 20, 48, 0.7)); border-block: 1px solid var(--line); }
.eyebrow { text-transform: uppercase; letter-spacing: 0.32em; font-size: 0.78rem; color: var(--gold); font-weight: 600; margin-bottom: 14px; }
.lead { font-size: 1.2rem; color: #e6e1d3; max-width: 62ch; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }
.glow-text { text-shadow: 0 0 24px rgba(255, 200, 90, 0.35); }

/* hero */
.hero { position: relative; min-height: min(calc(100svh - var(--header-h)), 900px); display: grid; place-items: center; text-align: center; padding: 48px 20px 84px; overflow: hidden; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; filter: saturate(1.15) brightness(0.8); animation: drift 40s ease-in-out infinite alternate; }
.hero::after { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse at 50% 40%, rgba(7, 11, 28, 0.2), rgba(7, 11, 28, 0.82) 80%), linear-gradient(180deg, rgba(7, 11, 28, 0.25), var(--night)); }
@keyframes drift { from { transform: scale(1.04) translate3d(-1%, 0, 0); } to { transform: scale(1.14) translate3d(1.5%, -1.5%, 0); } }
.hero-stack { display: flex; flex-direction: column; align-items: center; }
.hero-logo-wrap { position: relative; isolation: isolate; width: min(780px, 88vw); margin: 0 auto 6px; }
.hero-logo-wrap::before { content: ''; position: absolute; inset: -18% -6%; z-index: -1; background: radial-gradient(closest-side, rgba(255, 190, 80, 0.5), rgba(255, 190, 80, 0) 72%); animation: glow 5s ease-in-out infinite; }
.hero-logo { width: 100%; height: auto; }
@keyframes glow { 0%, 100% { opacity: 0.45; } 50% { opacity: 1; } }
.hero-dates { font-size: clamp(1.9rem, 5vw, 3.1rem); font-weight: 600; margin: 0 0 4px; line-height: 1.15; }
.hero-sub { font-size: clamp(1.02rem, 2.2vw, 1.3rem); margin: 0 0 26px; font-weight: 500; }
.hero-sub .sep { color: var(--gold); margin: 0 0.5em; }
.hero-sub a { font-weight: 600; }
.hero-rotary { display: inline-flex; align-items: center; gap: 12px; color: var(--muted); font-weight: 500; font-size: 0.95rem; margin: 26px 0 0; }
.hero-rotary img { width: 44px; height: 44px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.scroll-cue { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); color: var(--muted); font-size: 0.8rem; letter-spacing: 0.25em; text-transform: uppercase; text-decoration: none; }
.scroll-cue::after { content: ''; display: block; width: 1px; height: 34px; margin: 8px auto 0; background: linear-gradient(var(--gold), transparent); animation: cue 2s ease-in-out infinite; }
@keyframes cue { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* status + countdown */
.countdown { display: flex; gap: 12px; justify-content: center; margin: 0 0 28px; }
.countdown div { min-width: 74px; padding: 12px 8px; background: rgba(7, 11, 28, 0.65); border: 1px solid var(--line); border-radius: 14px; backdrop-filter: blur(6px); }
.countdown b { display: block; font-size: 1.9rem; line-height: 1.1; font-variant-numeric: tabular-nums; color: var(--gold); }
.countdown span { font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }

/* stats */

/* generic columns and cards */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.split.top { align-items: start; }
.card { background: linear-gradient(160deg, rgba(20, 29, 66, 0.9), rgba(13, 20, 48, 0.9)); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.photo { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5); }
.photo img { width: 100%; }
.cards-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; }

.hours { list-style: none; margin: 14px 0; padding: 0; }
.hours li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.hours li span:last-child { color: var(--gold); font-weight: 500; text-align: right; }
.checks { list-style: none; padding: 0; margin: 14px 0; }
.checks li { position: relative; padding: 6px 0 6px 32px; }
.checks li::before { content: ''; position: absolute; left: 0; top: 13px; width: 16px; height: 16px; border-radius: 50%; background: radial-gradient(circle, #fff 0 25%, var(--gold) 28% 60%, transparent 64%); box-shadow: 0 0 10px var(--gold); }

/* route tour */
.tour { position: relative; }
.tour-track { display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 10px 20px 26px; scrollbar-width: thin; scrollbar-color: var(--gold-deep) transparent; -webkit-overflow-scrolling: touch; }
.tour-stop { flex: 0 0 min(440px, 82vw); scroll-snap-align: center; background: var(--night-2); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.tour-stop img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.tour-stop .body { padding: 20px 22px 24px; }
.tour-stop .num { color: var(--gold); font-weight: 600; letter-spacing: 0.2em; font-size: 0.78rem; text-transform: uppercase; }
.tour-controls { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 8px; }
.tour-progress { flex: 1; height: 4px; background: rgba(255, 255, 255, 0.1); border-radius: 4px; overflow: hidden; }
.tour-progress i { display: block; height: 100%; width: 10%; background: linear-gradient(90deg, var(--red), var(--gold), var(--green)); border-radius: 4px; transition: width 0.2s; }
.round-btn { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--gold-deep); background: transparent; color: var(--gold); font-size: 1.3rem; cursor: pointer; transition: background 0.2s; }
.round-btn:hover { background: rgba(255, 217, 120, 0.15); }

/* special nights */
.night-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 22px; margin-top: 36px; }
.night-card { background: var(--night-2); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s; }
.night-card:hover { transform: translateY(-6px); border-color: var(--gold-deep); box-shadow: 0 18px 50px rgba(255, 190, 80, 0.15); }
.night-card.is-past .night-poster img { filter: grayscale(0.85) brightness(0.65); }
.night-card.is-past .night-poster::after { content: 'Past'; position: absolute; right: 12px; top: 12px; background: rgba(7, 11, 28, 0.85); color: #f4efe3; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; }
.night-card.is-tonight { border-color: #52e08e; box-shadow: 0 0 0 2px rgba(82, 224, 142, 0.4); }
.night-poster { position: relative; background: var(--night-3); }
.night-poster img { display: block; width: 100%; aspect-ratio: 331 / 277; object-fit: contain; }
.night-poster.no-poster { aspect-ratio: 331 / 277; background: radial-gradient(circle at 30% 20%, rgba(255, 200, 90, 0.25), transparent 55%), linear-gradient(160deg, var(--night-3), var(--night-2)); }
.night-date { position: absolute; top: 12px; left: 12px; background: var(--red-ink); color: #fff; border-radius: 12px; padding: 6px 12px; text-align: center; line-height: 1.1; font-weight: 600; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45); }
.night-date b { display: block; font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 500; }
.night-body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.night-body h2 { margin: 0; font-size: 1.1rem; }
.night-body p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.night-body .night-sponsor { color: var(--gold); font-size: 0.85rem; }
.night-body .link-btn { margin-top: auto; padding-top: 10px; text-align: left; font-size: 0.92rem; }

/* sponsors */
.sponsor-tier { margin-top: 38px; }
.sponsor-tier h3, .sponsor-tier h2 { text-align: center; text-transform: uppercase; letter-spacing: 0.3em; font-size: 0.95rem; color: var(--gold); background: var(--pine); padding: 14px; border-radius: 10px; }
.sponsor-list { list-style: none; margin: 20px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
.sponsor-presenting .sponsor-list { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.sponsor-logo { background: #fff; border-radius: 12px; padding: 14px; display: grid; place-items: center; min-height: 96px; transition: transform 0.25s, box-shadow 0.25s; }
.sponsor-presenting .sponsor-logo { min-height: 150px; padding: 20px; }
.sponsor-logo:hover { transform: translateY(-4px); box-shadow: 0 0 28px rgba(255, 217, 120, 0.45); }
.sponsor-logo img { max-height: 84px; width: auto; max-width: 100%; object-fit: contain; }
.sponsor-presenting .sponsor-logo img { max-height: 120px; }
.sponsor-names { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.sponsor-name { padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; color: #e6e1d3; font-size: 0.95rem; }

/* gallery */
.gallery { columns: 3 280px; column-gap: 16px; }
.gallery button { display: block; width: 100%; padding: 0; margin: 0 0 16px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: none; cursor: zoom-in; break-inside: avoid; transition: transform 0.25s, box-shadow 0.25s; }
.gallery button:hover { transform: scale(1.02); box-shadow: 0 0 34px rgba(255, 190, 80, 0.3); }
.gallery img { width: 100%; }
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(3, 5, 14, 0.94); display: none; align-items: center; justify-content: center; padding: 20px; }
.lightbox.open { display: flex; }
.lightbox img { max-height: 88vh; max-width: 94vw; width: auto; border-radius: 10px; }
.lightbox .close { position: absolute; top: 14px; right: 14px; }

/* calendar */
.cal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.cal-head h3, .cal-title { margin: 0; font-size: 1.25rem; }
.day-panel .cal-title { margin-bottom: 4px; }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal .dow { text-align: center; font-size: 0.75rem; letter-spacing: 0.12em; color: var(--muted); text-transform: uppercase; padding-bottom: 4px; }
.cal button, .cal .blank { aspect-ratio: 1; min-height: 48px; border-radius: 10px; }
.cal button { position: relative; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.03); color: var(--text); font: inherit; font-weight: 500; cursor: pointer; transition: background 0.2s, border-color 0.2s; }
.cal button:hover { background: rgba(255, 217, 120, 0.14); }
.cal button[disabled] { opacity: 0.28; cursor: default; }
.cal button.special::after { content: ''; position: absolute; bottom: 6px; left: 50%; width: 7px; height: 7px; margin-left: -3.5px; border-radius: 50%; background: var(--red); box-shadow: 0 0 8px var(--red); }
.cal button.village::before { content: ''; position: absolute; top: 6px; right: 6px; width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); }
.cal button.selected { background: var(--cta); color: var(--cta-ink); border-color: var(--cta); }
.cal button.today { border-color: #52e08e; }
.legend { display: flex; flex-wrap: wrap; gap: 16px; color: var(--muted); font-size: 0.88rem; margin-top: 14px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; }
.day-panel { min-height: 220px; }
.day-panel h3 { margin-bottom: 4px; }
.pill { display: inline-block; padding: 3px 12px; border-radius: 999px; font-size: 0.8rem; font-weight: 600; margin: 0 6px 6px 0; }
.pill-red { background: rgba(224, 52, 74, 0.2); color: #ff9aa6; }
.pill-green { background: rgba(47, 158, 99, 0.22); color: #7be0aa; }

/* ticket calculator */
.calc { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 18px 0; }
.calc output { font-size: 2.2rem; font-weight: 600; color: var(--gold); min-width: 110px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.qty button { width: 46px; height: 46px; border: 0; background: transparent; color: var(--gold); font-size: 1.4rem; cursor: pointer; }
.qty button:hover { background: rgba(255, 217, 120, 0.12); }
.qty span { min-width: 48px; text-align: center; font-weight: 600; font-size: 1.1rem; }

/* map */
.map-wrap { position: relative; border: 1px solid var(--line); border-radius: var(--radius); background: #0a1127; overflow: hidden; }
.map-wrap svg { display: block; width: 100%; height: auto; }
.map-pin { cursor: pointer; }
.map-pin circle { transition: r 0.2s; }
.map-pin:hover circle, .map-pin:focus circle, .map-pin.active circle { r: 17; }
.map-info { padding: 18px 22px; border-top: 1px solid var(--line); min-height: 96px; }
.map-info h3 { margin-bottom: 4px; }
.map-info p { margin: 0; color: var(--muted); }

/* faq */
details { border: 1px solid var(--line); border-radius: 12px; padding: 4px 20px; margin-bottom: 12px; background: rgba(255, 255, 255, 0.03); }
summary { cursor: pointer; font-weight: 600; padding: 14px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; color: var(--gold); font-size: 1.4rem; line-height: 1; }
details[open] summary::after { content: '\2212'; }
details p { color: #dad5c6; }

/* forms */
form .field { margin-bottom: 16px; }
label { display: block; font-weight: 500; margin-bottom: 6px; font-size: 0.95rem; }
input[type='text'], input[type='email'], input[type='tel'], textarea { width: 100%; padding: 13px 16px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.06); color: var(--text); font: inherit; }
input:focus, textarea:focus { border-color: var(--gold); outline: none; box-shadow: 0 0 0 3px rgba(255, 217, 120, 0.25); }
.hp { position: absolute; left: -9999px; }
.form-msg { margin-top: 14px; font-weight: 500; }
.form-msg.ok { color: #7be0aa; }
.form-msg.err { color: #ff9aa6; }

/* page header (inner pages) */
.page-hero { text-align: center; padding: clamp(64px, 10vw, 120px) 20px clamp(36px, 6vw, 64px); background: radial-gradient(ellipse at 50% 0%, rgba(255, 190, 80, 0.12), transparent 65%); }
.page-hero .lead { margin-inline: auto; }

.video-frame { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5); background: #000; }
.video-frame video { width: 100%; display: block; }

/* footer */
.site-footer { background: #04060f; border-top: 1px solid var(--line); padding: 60px 20px 28px; }
.footer-inner { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer-logo { width: 230px; margin-bottom: 14px; }
.footer-h { font-size: 0.8rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.site-footer p { color: #cfcbdc; font-size: 0.98rem; }
.social { display: flex; gap: 14px; }
.social a { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; }
.footer-news { max-width: var(--maxw); margin: 36px auto 0; padding-top: 24px; border-top: 1px solid var(--line); }
.footer-news label { color: var(--gold); font-weight: 600; margin-bottom: 8px; }
.news-row { display: flex; gap: 10px; flex-wrap: wrap; max-width: 520px; }
.news-row input[type='email'] { flex: 1 1 220px; }
select { width: 100%; padding: 13px 16px; border-radius: 12px; border: 1px solid var(--line); background: #141d42; color: var(--text); font: inherit; }
.footer-fine { max-width: var(--maxw); margin: 40px auto 0; padding-top: 22px; border-top: 1px solid var(--line); text-align: center; color: var(--muted); font-size: 0.85rem; }

/* reveal */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* responsive */
@media (max-width: 1230px) {
  .nav-toggle { display: block; }
  .site-nav { position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0; flex-direction: column; align-items: stretch; gap: 20px; padding: 24px 20px; background: rgba(7, 11, 28, 0.98); transform: translateX(100%); visibility: hidden; transition: transform 0.3s, visibility 0.3s; overflow-y: auto; }
  .site-nav.open { transform: none; visibility: visible; }
  .site-nav ul { flex-direction: column; }
  .site-nav li a { font-size: 1.2rem; padding: 14px 12px; }
  .nav-cta { text-align: center; }
}
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .brand-logo { width: 150px; }
}
@media (max-width: 520px) {
  body { font-size: 1rem; }
  .countdown div { min-width: 64px; }
  .countdown b { font-size: 1.5rem; }
  .btn { padding: 14px 28px; }
  .cal { gap: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* letter */
.letter-sheet { background: #fffdf6; color: #2a2118; border-radius: 6px; padding: clamp(24px, 5vw, 56px); font-family: Georgia, 'Times New Roman', serif; font-size: 1.2rem; line-height: 1.7; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5); }
.letter-sheet p { margin: 0 0 0.9em; }
.letter-sheet ul { margin: 0 0 1em; padding-left: 1.4em; }
.letter-greet { font-size: 1.5rem; }
.letter-sign { margin-top: 1.4em !important; }
.letter-name { font-size: 1.5rem; font-style: italic; }
.letter-addr { margin-top: 1.6em !important; font-size: 0.9rem; color: #6b5d4d; }

/* tonight */
.tonight-card { padding: 8px 24px; }
.tonight-list { margin: 0; }
.tonight-list div { padding: 14px 0; border-bottom: 1px dashed var(--line); }
.tonight-list div:last-child { border-bottom: 0; }
.tonight-list dt { font-size: 0.78rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); font-weight: 600; }
.tonight-list dd { margin: 2px 0 0; font-size: 1.25rem; font-weight: 500; }
.tonight-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 26px; }
.tonight-actions .btn { flex: 1 1 200px; text-align: center; }

@media print {
  #fx, .site-header, .announce, .updating-bar, .site-footer, .no-print, main > section:not(.letter-section) { display: none !important; }
  body { background: #fff !important; }
  .letter-section { padding: 0 !important; }
  .letter-sheet { box-shadow: none; border: 0; padding: 0; }
}

.footer-credit { max-width: var(--maxw); margin: 10px auto 0; text-align: center; font-size: 0.9rem; color: var(--muted); }
.footer-credit a { color: var(--gold); font-weight: 600; }

.tour-stop img.portrait { object-fit: contain; background: radial-gradient(circle at 50% 30%, #1c274f, #0a1127); }

input::placeholder, textarea::placeholder { color: #9a98ad; opacity: 1; }

.hv-logo { width: min(260px, 70vw); height: auto; }
.hv-logo-lg { width: min(360px, 80vw); margin: 0 auto; filter: drop-shadow(0 0 28px rgba(224, 52, 74, 0.25)); }

/* nav button */
.nav-cta { white-space: nowrap; flex: none; display: inline-block; line-height: 1.2; }

/* string lights */
.light-frame { position: relative; }
.lf-layer { position: absolute; inset: var(--lf-inset, 24px); pointer-events: none; z-index: 2; }
.lf-svg { position: absolute; left: 0; top: 0; overflow: visible; }
.lf-bloom { mix-blend-mode: screen; }
.lf-bloom g { animation: lfglow 2.6s ease-in-out infinite; }
@keyframes lfglow { 0%, 100% { opacity: 0.6; } 50% { opacity: 1; } }
.lf-paused .lf-bloom g { animation-play-state: paused; }
.photo.lit { padding: 38px; background: linear-gradient(160deg, #101a3d, #0a1127); border-radius: 24px; overflow: visible; --lf-inset: 27px; }
.photo.lit img { border-radius: 10px; position: relative; z-index: 1; }

/* opening banner */
.marquee { --lf-inset: 25px; display: inline-block; max-width: 100%; min-width: min(100%, 380px); margin: 0 0 20px; padding: 32px; }
.marquee-body { position: relative; z-index: 1; min-height: 11.6rem; display: flex; flex-direction: column; justify-content: center; padding: 20px 34px 18px; border-radius: 12px; background: linear-gradient(160deg, rgba(40, 16, 32, 0.94), rgba(10, 17, 45, 0.95)); border: 1px solid rgba(255, 217, 120, 0.5);
  box-shadow: inset 0 0 0 4px rgba(7, 11, 28, 0.85), inset 0 0 0 5px rgba(255, 217, 120, 0.22), 0 14px 44px rgba(0, 0, 0, 0.55); }
.marquee-kicker { margin: 0 0 6px; font-size: 0.74rem; letter-spacing: 0.34em; text-transform: uppercase; color: var(--gold); font-weight: 600; }
.marquee-kicker::before, .marquee-kicker::after { content: '\2726'; margin: 0 0.8em; color: #ff7a8a; letter-spacing: 0; }
.marquee-main { margin: 0; font-size: clamp(1.2rem, 3.6vw, 1.85rem); font-weight: 600; line-height: 1.25; text-shadow: 0 0 22px rgba(255, 200, 90, 0.35); }
.marquee.is-open .marquee-main { color: #8cf0b9; text-shadow: 0 0 24px rgba(82, 224, 142, 0.45); }
.marquee .countdown { margin: 16px 0 0; }
.marquee .countdown div { background: rgba(7, 11, 28, 0.7); }

/* empty states */
.nights-empty { margin: 30px auto; max-width: 52ch; }
.sponsor-more[hidden] { display: none; }

/* larger sign on desktop */
@media (min-width: 1000px) {
  .marquee { min-width: 480px; }
  .marquee-main { font-size: 2.05rem; }
  .marquee .countdown div { min-width: 88px; padding: 14px 10px; }
  .marquee .countdown b { font-size: 2.3rem; }
  .marquee .countdown { gap: 14px; }
}

/* short laptop screens: keep the buttons above the fold */
@media (min-width: 1000px) and (max-height: 830px) {
  .hero { padding-top: 26px; padding-bottom: 64px; }
  .hero-logo-wrap { width: min(600px, 60vw); }
  .marquee { padding: 28px; --lf-inset: 21px; margin-bottom: 14px; }
  .marquee-body { min-height: 9.4rem; padding: 14px 30px 12px; }
  .marquee-main { font-size: 1.7rem; }
  .marquee .countdown { margin-top: 10px; }
  .marquee .countdown div { min-width: 74px; padding: 9px 8px; }
  .marquee .countdown b { font-size: 1.9rem; }
  .hero-dates { font-size: 2.3rem; }
  .hero-sub { margin-bottom: 18px; }
  .hero-rotary { margin-top: 16px; }
  .scroll-cue { display: none; }
}

/* sign text: balanced wrapping, tighter on phones */
.marquee-main, .marquee-kicker { text-wrap: balance; }
@media (max-width: 560px) {
  .marquee { padding: 30px; --lf-inset: 23px; }
  .marquee-body { padding: 16px 16px 14px; min-height: 10.6rem; }
  .marquee-kicker { letter-spacing: 0.2em; font-size: 0.7rem; }
  .marquee-kicker::before, .marquee-kicker::after { margin: 0 0.5em; }
  .marquee-main { font-size: 1.2rem; }
  .marquee .countdown { gap: 8px; margin-top: 12px; }
  .marquee .countdown div { min-width: 58px; padding: 8px 6px; }
  .marquee .countdown b { font-size: 1.45rem; }
}

/* sponsor links */
.sponsor-logo a { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 8px; }
.sponsor-logo:focus-within { outline: 3px solid var(--gold); outline-offset: 3px; }
.sponsor-logo a:focus-visible { outline: none; }
.sponsor-name a { color: inherit; text-decoration: none; }
.sponsor-name a:hover, .sponsor-name a:focus-visible { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }

/* the drive: numbers on a road, bulbs light as the car passes */
.route { --num-h: 4.2rem; --mark-h: 68px; position: relative; margin-top: 64px; }
.route > .eyebrow { margin-bottom: 18px; }
.route-stops { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, var(--e0, 0fr)) minmax(0, 1.5fr) minmax(0, var(--e1, 0fr)) minmax(0, 1.5fr) minmax(0, var(--e2, 0fr)) minmax(0, 1.5fr) minmax(0, var(--e3, 0fr)); transition: grid-template-columns 0.7s ease, padding-right 0.7s ease; position: relative; z-index: 2; }
.route-stop { display: grid; grid-template-rows: var(--num-h) var(--mark-h) auto; justify-items: center; text-align: center; }
.stop-num { align-self: end; display: flex; align-items: flex-end; height: var(--num-h); font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 600; line-height: 1; color: var(--gold); opacity: 0.25; transform: translateY(10px); transition: opacity 0.7s ease, transform 0.7s ease, text-shadow 0.7s ease; }
.stop-lamp { position: relative; display: block; width: 58px; height: var(--mark-h); padding: 0; margin: 0; background: none; border: 0; border-radius: 14px; color: inherit; font: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.stop-lamp::before { content: ''; position: absolute; left: 50%; top: 42%; width: 130px; height: 130px; margin: -65px 0 0 -65px; border-radius: 50%; background: radial-gradient(closest-side, var(--c), rgba(0, 0, 0, 0) 72%); mix-blend-mode: screen; opacity: 0; transition: opacity 0.7s ease; pointer-events: none; }
.stop-lamp svg { position: relative; display: block; width: 100%; height: 100%; overflow: visible; filter: grayscale(1) brightness(0.45); transition: filter 0.6s ease, transform 0.2s ease; }
.stop-label { position: relative; margin-top: 16px; padding-bottom: 12px; font-size: clamp(0.95rem, 1.5vw, 1.2rem); letter-spacing: 0.16em; text-transform: uppercase; color: var(--text); font-weight: 600; }
.stop-label::after { content: ''; position: absolute; left: 50%; bottom: 0; width: 36px; height: 3px; margin-left: -18px; border-radius: 2px; background: var(--c); box-shadow: 0 0 10px var(--c); opacity: 0.45; transition: opacity 0.6s ease; }
.route-stop.lit .stop-label::after { opacity: 1; }
.route-stop.lit .stop-num { opacity: 1; transform: none; text-shadow: 0 0 30px rgba(255, 200, 90, 0.5); }
.route-stop.lit .stop-lamp svg { filter: none; }
.route-stop.lit .stop-lamp::before { opacity: 0.5; animation: lfglow 2.8s ease-in-out infinite; }
.no-js .route-stop .stop-num { opacity: 1; transform: none; }
.no-js .route-stop .stop-lamp svg { filter: none; }

.route-road { position: absolute; left: 0; right: 0; top: calc(var(--num-h) + var(--mark-h) + 40px); height: 12px; border-radius: 6px; background: linear-gradient(#232b58, #0b1230); box-shadow: 0 0 0 1px rgba(255, 217, 120, 0.2), 0 8px 22px rgba(0, 0, 0, 0.55); z-index: 1; }
.route-road::after { content: ''; position: absolute; left: 10px; right: 10px; top: 5px; height: 2px; background: repeating-linear-gradient(90deg, rgba(255, 217, 120, 0.75) 0 14px, rgba(0, 0, 0, 0) 14px 28px); }
.route-car { position: absolute; top: calc(var(--num-h) + var(--mark-h) + 19px); left: -9%; width: 70px; height: 28px; z-index: 3; opacity: 0; padding: 0; margin: 0; border: 0; background: none; cursor: pointer; pointer-events: none; -webkit-tap-highlight-color: transparent; border-radius: 6px; }
.car-body { display: block; position: relative; width: 70px; height: 28px; }
@media (hover: hover) { .route-car:hover .car-body { transform: translateY(-1px); } }
.route-car svg { display: block; position: relative; z-index: 1; }
.route-car .beam { position: absolute; left: 66px; bottom: -6px; width: 150px; height: 36px; background: linear-gradient(90deg, rgba(255, 244, 200, 0.8), rgba(255, 244, 200, 0)); clip-path: polygon(0 46%, 100% 8%, 100% 96%); }
.route-car::after { content: ''; position: absolute; left: 58px; top: 8px; width: 18px; height: 18px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 246, 207, 0.95), rgba(255, 246, 207, 0) 70%); }
.route.is-driving .route-car { animation: drive 3.6s linear forwards; pointer-events: auto; }
.route.car-parked .route-car { left: calc(100% - 72px); opacity: 1; animation: none; pointer-events: auto; }
@keyframes drive { 0% { left: -9%; opacity: 1; } 100% { left: calc(100% - 72px); opacity: 1; } }


/* each bulb is a switch */
@media (hover: hover) { .stop-lamp:hover svg { transform: translateY(-2px) scale(1.06); } }
.stop-lamp:active svg { transform: scale(0.97); }

/* the lights game */
.route-game { margin: 34px auto 0; max-width: 560px; text-align: center; }
.game-status { min-height: 1.7em; margin: 0 0 14px; font-size: 1.05rem; font-weight: 500; }
.game-status.good { color: #8cf0b9; }
.game-status.bad { color: #ff9aa6; }
.game-controls { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.game-score { display: flex; gap: 26px; justify-content: center; margin: 16px 0 0; color: var(--muted); font-size: 0.78rem; letter-spacing: 0.2em; text-transform: uppercase; }
.game-score b { margin-left: 0.5em; color: var(--gold); font-size: 1.1rem; letter-spacing: 0; }
.game-cta { margin: 18px 0 0; color: #dad5c6; }
.game-cta .btn { margin-left: 8px; }
.stop-lamp.popped svg { transform: scale(1.14); }
.route.playing .route-stop .stop-lamp svg { filter: grayscale(1) brightness(0.4); transition-duration: 0.1s; }
.route.playing .route-stop .stop-lamp::before { opacity: 0; animation: none; transition-duration: 0.1s; }
.route.playing .route-stop.flash .stop-lamp svg { filter: none; transform: scale(1.1); }
.route.playing .route-stop.flash .stop-lamp::before { opacity: 0.95; }
.route.playing .route-stop.flash .stop-num { text-shadow: 0 0 36px rgba(255, 220, 130, 0.9); }
.route.gameover .stop-lamp svg { animation: lampshake 0.45s ease-in-out 2; }
@keyframes lampshake { 0%, 100% { transform: none; } 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }

/* bulbs can be switched off when no game is running */
.route-stop.lit.off .stop-num { opacity: 0.55; text-shadow: none; }
.route-stop.lit.off .stop-lamp svg { filter: grayscale(1) brightness(0.45); }
.route-stop.lit.off .stop-lamp::before { opacity: 0; animation: none; }
.route-stop.lit.off .stop-label::after { opacity: 0.3; }

/* the horn */
.honk { position: absolute; left: 50%; top: -34px; transform: translate(-50%, 4px); padding: 3px 12px; border-radius: 999px; background: #fff6cf; color: #1a1a1a; font-size: 0.8rem; font-weight: 600; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity 0.12s ease, transform 0.12s ease; }
.route-car.honking .honk { opacity: 1; transform: translate(-50%, -4px); }
.route-car.honking .car-body { animation: carhop 0.5s ease-out; }
@keyframes carhop { 0%, 100% { transform: none; } 20% { transform: translateY(-5px) rotate(-1.5deg); } 45% { transform: translateY(0); } 65% { transform: translateY(-3px) rotate(1deg); } }
.route-car.honking .beam { opacity: 1; filter: brightness(1.4); }

/* leaderboard */
.lb-list { margin: 0; padding: 0; list-style: none; }
.lb-list li { display: grid; grid-template-columns: 2rem 1fr auto; gap: 10px; padding: 7px 6px; border-bottom: 1px dashed var(--line); font-weight: 500; }
.lb-list li:last-child { border-bottom: 0; }
.lb-list .rk { color: var(--muted); }
.lb-list li:nth-child(1) .rk { color: #ffd978; }
.lb-list li:nth-child(2) .rk { color: #d8dbe8; }
.lb-list li:nth-child(3) .rk { color: #e0a070; }
.lb-list .nm { overflow-wrap: anywhere; }
.lb-list .sc { color: var(--gold); font-weight: 600; }
.lb-list li.mine { background: rgba(246, 230, 109, 0.13); border-radius: 8px; }
.lb-empty { margin: 8px 0 0; text-align: center; color: var(--muted); }
.lb-form { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.lb-form label { color: var(--gold); font-size: 0.9rem; }
.lb-row { display: flex; gap: 10px; }
.lb-row input { flex: 1 1 auto; min-width: 0; }

/* leaderboard pop-up */
.lb-dialog { width: min(440px, calc(100vw - 32px)); max-height: calc(100vh - 48px); padding: 0; border: 1px solid var(--line); border-radius: 18px; background: #0d1430; color: var(--text); overflow: auto; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.65); }
.lb-dialog::backdrop { background: rgba(3, 5, 14, 0.82); backdrop-filter: blur(3px); }
.lb-card { position: relative; padding: 28px 24px 24px; }
.lb-close { position: absolute; top: 8px; right: 10px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: none; color: var(--muted); font-size: 1.9rem; line-height: 1; cursor: pointer; }
.lb-close:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }
.lb-title { margin: 0 0 4px; text-align: center; font-size: 1.1rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold); }
.lb-sub { margin: 0 0 14px; text-align: center; color: var(--muted); font-size: 0.88rem; }
.lb-note { margin: 0 0 10px; text-align: center; color: #8cf0b9; font-weight: 600; }
.lb-note:empty { display: none; }

/* the blur lives on a pseudo-element: backdrop-filter on the header itself would make it
   the containing block for the fixed mobile menu and squash the menu into the header bar */
.site-header::before { content: ''; position: absolute; inset: 0; z-index: -1; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); pointer-events: none; }

/* touch: no double-tap zoom, no text selection on the game, hover only where hover exists */
html { touch-action: manipulation; }
.stop-lamp, .route-car, .game-controls button, .lb-dialog button, .route-game .btn { touch-action: manipulation; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }

/* the stage: invisible on desktop, a serpentine road on phones */
.route-stage { display: contents; }
.route-s { display: none; }
.route.turn .route-stop .stop-lamp { animation: ringpulse 1.2s ease-in-out infinite; }
@keyframes ringpulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(246, 230, 109, 0); } 50% { box-shadow: 0 0 0 5px rgba(246, 230, 109, 0.4); } }
.game-status.turn { color: var(--cta); font-weight: 600; }
.game-status.watch { color: #cfe0ff; }

/* phones: must come after the desktop defaults above */
@media (max-width: 720px) {
  .route { --num-h: 2.5rem; --mark-h: 58px; margin-top: 44px; }
  .route > .eyebrow { margin-bottom: 8px; }
  .route-road { display: none; }
  .route-stage { display: block; position: relative; width: 100%; max-width: min(100%, max(300px, calc((100svh - 270px) * 0.93))); aspect-ratio: 360 / 386; margin: 0 auto; }
  .route-s { display: block; position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
  .rs-edge, .rs-road, .rs-dash { fill: none; stroke-linecap: round; stroke-linejoin: round; }
  .rs-edge { stroke: #313c70; stroke-width: 20; }
  .rs-road { stroke: #0f1538; stroke-width: 16; }
  .rs-dash { stroke: rgba(255, 217, 120, 0.7); stroke-width: 2; stroke-dasharray: 9 11; }
  .route-stops { position: absolute; inset: 0; display: block; margin: 0; padding: 0; }
  .route-stop { position: absolute; left: calc(var(--x, 50) * 1%); top: calc(var(--y, 50) * 1%); width: 150px; margin-left: -75px; transform: translateY(calc(-1 * (var(--num-h) + var(--mark-h) - 6px))); }
  .stop-num { font-size: clamp(1.35rem, 6.2vw, 2rem); }
  .stop-label { max-width: 112px; margin: 12px auto 0; padding-bottom: 8px; font-size: clamp(0.7rem, 3.2vw, 0.9rem); letter-spacing: 0.1em; line-height: 1.25; text-wrap: balance; }
  .route-car { position: absolute; left: 0; top: 0; opacity: 0; transform-origin: 50% 50%; pointer-events: auto; animation: none !important; }
  .route.car-parked .route-car { left: 0; }
  .route-game { margin-top: 12px; }
  .game-status { display: flex; align-items: center; justify-content: center; min-height: 2.9em; margin-bottom: 10px; font-size: 1rem; line-height: 1.3; }
  .game-controls { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .game-controls [data-game-play] { grid-column: 1 / -1; min-height: 54px; font-size: 1.1rem; }
  .game-controls [data-lb-add] { grid-column: 1 / -1; }
  .game-controls .btn-small { min-height: 46px; padding: 10px 10px; font-size: 0.9rem; letter-spacing: 0.02em; }
  .game-score { margin-top: 12px; }
}

/* nothing may push the page wider than the screen; any overhang stays dark, never white */
html { background: var(--night); }
main, .site-footer { overflow-x: clip; }
@media (max-width: 720px) {
  .route-stage { overflow-x: clip; overflow-y: visible; }
  .route-car .beam { width: 86px; }
}

/* phone: text scales with the road (container units), so it never outgrows a small stage */
@media (max-width: 720px) {
  .route-stage { container-type: inline-size; }
  .stop-num { font-size: clamp(1.1rem, 6.4cqw, 2rem); }
  .stop-label { font-size: clamp(0.62rem, 3.1cqw, 0.9rem); max-width: 31cqw; }
}

/* phones: grid columns may shrink below their content, and the calendar fits the screen */
.split > * { min-width: 0; }
.cal { grid-template-columns: repeat(7, minmax(0, 1fr)); }
.cal button, .cal .blank { min-width: 0; }
@media (max-width: 900px) {
  .split { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
  .wrap { padding: 0 16px; }
  .section { padding: 44px 0; }
  .page-hero { padding: 52px 20px 26px; }
  .card { padding: 20px; }
  .card:has(.cal) { padding: 14px; }
  .cal { gap: 4px; }
  .cal button, .cal .blank { min-height: 0; border-radius: 9px; }
  .cal-head { gap: 8px; }
  .cal-head h2 { font-size: 1.15rem; }
  .day-panel { min-height: 120px; }
  .legend { gap: 8px 14px; font-size: 0.82rem; }
}

/* review polish: phone */
#t-date { text-wrap: balance; }
@media (max-width: 720px) {
  .hero-sub .sep { display: none; }
  .hero-sub a { display: block; margin-top: 2px; }
  .route-s { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 9%); mask-image: linear-gradient(90deg, transparent 0, #000 9%); }
  .nights-empty { margin: 0 auto 10px; }
  .page-hero + .section { padding-top: 24px; }
}

/* news */
.news-list { display: grid; gap: 18px; }
.news-card { padding: 24px 26px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(160deg, rgba(20, 28, 64, 0.9), rgba(10, 16, 40, 0.9)); transition: transform 0.25s, box-shadow 0.25s; }
.news-card:hover { transform: translateY(-3px); box-shadow: 0 0 28px rgba(255, 217, 120, 0.25); }
.news-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0 0 8px; font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); }
.news-meta time { color: var(--muted); }
.news-card h2 { margin: 0 0 10px; font-size: clamp(1.2rem, 3.4vw, 1.5rem); }
.news-card h2 a { color: inherit; text-decoration: none; }
.news-card h2 a:hover, .news-card h2 a:focus-visible { color: var(--gold); text-decoration: underline; text-underline-offset: 4px; }
.news-card p { margin: 0 0 12px; }
.news-empty[hidden] { display: none; }

/* all-time bulb taps */
.game-taps { margin: 8px 0 0; text-align: center; font-size: 0.92rem; }
.game-taps[hidden] { display: none; }
.stat-link { background: none; border: 0; padding: 4px 6px; font: inherit; color: var(--muted); cursor: pointer; text-decoration: underline; text-decoration-color: rgba(255, 217, 120, 0.5); text-underline-offset: 4px; }
.stat-link b { color: var(--gold); font-variant-numeric: tabular-nums; }
.stat-link:hover, .stat-link:focus-visible { color: #fff; }
.stat-total { margin: 4px 0 2px; text-align: center; display: grid; gap: 2px; }
.stat-total b { font-size: clamp(2rem, 9vw, 2.8rem); line-height: 1.1; color: var(--gold); font-variant-numeric: tabular-nums; }
.stat-total span { color: var(--muted); font-size: 0.88rem; letter-spacing: 0.08em; text-transform: uppercase; }
.stat-top { margin: 10px 0 14px; text-align: center; font-weight: 600; }
.stat-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.stat-row { display: grid; grid-template-columns: 14px 1fr auto auto; gap: 4px 10px; align-items: center; }
.stat-row .dot { width: 14px; height: 14px; border-radius: 50%; background: var(--c); box-shadow: 0 0 10px var(--c); }
.stat-row .name { font-weight: 600; }
.stat-row .n { font-variant-numeric: tabular-nums; }
.stat-row .pct { min-width: 3.2ch; text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }
.stat-row .bar { grid-column: 1 / -1; height: 8px; border-radius: 6px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.stat-row .bar i { display: block; height: 100%; width: 0; background: var(--c); border-radius: 6px; transition: width 0.5s; }
.stat-row.is-top .name::after { content: ' (most tapped)'; font-weight: 500; color: var(--gold); font-size: 0.82rem; }
.stat-row .name { text-align: left; }

/* ticket types */
.ticket-types { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.ticket-type { padding: 22px 22px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(160deg, rgba(20, 28, 64, 0.9), rgba(10, 16, 40, 0.9)); display: flex; flex-direction: column; gap: 6px; }
.ticket-type h3 { margin: 0; font-size: 1.05rem; }
.ticket-type .ticket-price { margin: 0; font-size: 2.2rem; line-height: 1.1; font-weight: 700; color: var(--gold); }
.ticket-type p { margin: 0; }
.ticket-type p:last-child { color: var(--muted); font-size: 0.95rem; }

/* the posters already show their date, so the badge only appears on cards without one */
.night-poster:not(.no-poster) .night-date { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; padding: 0; border: 0; }

/* the next special night card */
.next-night-date { margin: 0 0 4px; font-weight: 600; }
.next-night-item { margin-top: 16px; }
.next-night-item + .next-night-item { padding-top: 18px; border-top: 1px dashed var(--line); }
.next-night-item h2 { margin: 12px 0 6px; font-size: 1.5rem; }
.next-night-item p { margin: 0; }
.next-night-poster { display: block; width: 100%; max-width: 440px; height: auto; margin: 0 auto; border-radius: 12px; border: 1px solid var(--line); box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45); }

/* "we are updating" notice */
.updating-bar { background: var(--gold); color: #1a1500; text-align: center; padding: 10px 16px; font-weight: 600; font-size: 0.95rem; border-bottom: 4px solid transparent; border-image: repeating-linear-gradient(135deg, #1a1500 0 10px, var(--gold) 10px 20px) 1; }
.updating-bar[hidden] { display: none; }

/* difficulty pop-up and leaderboard tabs */
.diff-dialog { width: min(560px, calc(100vw - 32px)); }
.diff-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 8px; }
.diff-btn { display: flex; flex-direction: row; align-items: center; gap: 8px; text-align: left; padding: 8px 10px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255, 255, 255, 0.03); color: var(--text); font: inherit; cursor: pointer; transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s; }
.diff-btn svg { flex: none; width: 26px; height: 42px; filter: drop-shadow(0 0 8px var(--c)); }
.diff-txt { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.diff-btn b { font-size: 1.05rem; color: var(--c); letter-spacing: 0.04em; }
.diff-btn .diff-txt span { font-size: 0.74rem; line-height: 1.25; color: var(--muted); }
.diff-btn:hover, .diff-btn:focus-visible { transform: translateY(-3px); border-color: var(--c); box-shadow: 0 0 26px color-mix(in srgb, var(--c) 45%, transparent); outline: none; }
.diff-btn.is-last { border-color: var(--c); }
.lb-tabs { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; margin: 0 0 14px; }
.lb-tabs button { font: inherit; font-size: 0.82rem; font-weight: 600; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: none; color: var(--muted); cursor: pointer; }
.lb-tabs button[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: #1a1500; }
@media (max-width: 420px) { .diff-grid { gap: 8px; } .diff-btn { padding: 8px 8px; gap: 6px; } .diff-btn svg { width: 22px; height: 36px; } }

/* double the bulbs: four more bulbs, dropped off by the car */
.route-stop.is-extra:not(.is-here) { visibility: hidden; pointer-events: none; }
@media (min-width: 721px) {
  .route.dbl .stop-num { font-size: clamp(1.4rem, 2.7vw, 2.3rem); }
  .route.dbl .stop-label { font-size: clamp(0.7rem, 1.1vw, 0.95rem); letter-spacing: 0.1em; }
}
/* a new bulb pops up out of the road, right behind the car */
.route { --drop: 50px; }
.route-stop.is-extra .stop-lamp { transform-origin: 50% 100%; }
.route-stop.is-extra.dropping .stop-lamp { animation: bulbdrop 0.8s cubic-bezier(0.3, 1.3, 0.5, 1) both; }
@keyframes bulbdrop { 0% { transform: translateY(var(--drop)) scale(0.2); opacity: 0; } 35% { opacity: 1; transform: translateY(calc(var(--drop) * -0.35)) scale(1.1); } 65% { transform: translateY(4px) scale(0.97); } 100% { transform: none; opacity: 1; } }
.route-car.hop .car-body { animation: carhop 0.4s ease-out; }
@media (max-width: 720px) { .route { --drop: 10px; } }
.route.car-exit .route-car { animation: carexit 0.95s ease-in forwards; left: calc(100% - 72px); opacity: 1; }
.route.car-return .route-car { animation: carreturn 5s linear forwards; opacity: 1; }
@media (min-width: 721px) { .route.dbl .route-stops { padding-right: 86px; } }
@keyframes carexit { from { left: calc(100% - 72px); } to { left: 112%; } }
@keyframes carreturn { from { left: -12%; } to { left: calc(100% - 72px); } }
@media (prefers-reduced-motion: reduce) { .route-stop.is-extra.dropping .stop-lamp { animation: none; } }
.diff-caution { display: flex; align-items: center; gap: 12px; margin: 10px 0 0; padding: 8px 12px; border: 3px solid transparent; border-image: repeating-linear-gradient(135deg, #ffd24a 0 12px, #1a1500 12px 24px) 1; background: rgba(255, 210, 74, 0.06); cursor: pointer; text-align: left; }
.diff-caution input { width: 22px; height: 22px; flex: none; accent-color: #ffd24a; cursor: pointer; }
.diff-caution svg { flex: none; }
.diff-caution span { display: flex; flex-direction: column; gap: 2px; }
.diff-caution b { color: #ffd24a; letter-spacing: 0.04em; }
.diff-caution small { font-size: 0.76rem; line-height: 1.3; color: var(--muted); }
.diff-caution:has(input:checked) { background: rgba(255, 210, 74, 0.16); }
.diff-caution:focus-within { outline: 3px solid var(--gold); outline-offset: 3px; }
.lb-double { display: flex; align-items: center; justify-content: center; gap: 8px; margin: -4px 0 12px; font-size: 0.85rem; color: var(--muted); cursor: pointer; }
.lb-double input { width: 18px; height: 18px; accent-color: #ffd24a; }
.stat-honk { margin: 16px 0 0; text-align: center; font-size: 0.82rem; color: var(--muted); }
.stat-honk b { color: var(--gold); font-variant-numeric: tabular-nums; }

.game-score span { white-space: nowrap; }
@media (max-width: 420px) { .game-score { gap: 18px; } }

/* phones: bulbs glide to their places, and a bulb's box never blocks a tap on its neighbour */
@media (max-width: 720px) {
  .route-stop { transition: left 0.7s ease, top 0.7s ease; pointer-events: none; }
  .route-stop .stop-lamp { pointer-events: auto; }
}

/* song mode */
.game-score i { font-style: normal; }
.song-ring { position: absolute; left: 50%; top: 40%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border: 3px solid var(--c); border-radius: 50%; box-shadow: 0 0 14px var(--c), inset 0 0 10px color-mix(in srgb, var(--c) 40%, transparent); pointer-events: none; opacity: 0; transform: scale(2.6); animation-name: songring; animation-timing-function: linear; animation-fill-mode: forwards; z-index: 3; }
@keyframes songring { 0% { transform: scale(2.6); opacity: 0; } 18% { opacity: 0.95; } 100% { transform: scale(1); opacity: 1; } }
.song-ring.hit { animation: songhit 0.38s ease-out forwards; }
@keyframes songhit { from { transform: scale(1); opacity: 1; } to { transform: scale(2.2); opacity: 0; } }
.song-ring.missed { animation: songmiss 0.38s ease-in forwards; border-color: #8a8fa8; box-shadow: none; }
@keyframes songmiss { from { transform: scale(1); opacity: 0.8; } to { transform: scale(0.4); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .song-ring { animation-duration: 1500ms; } }
.diff-songs { margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line); text-align: center; }
.diff-songs-title { margin: 0 0 10px; font-weight: 600; color: var(--gold); letter-spacing: 0.06em; }
.diff-songs-row { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.song-btn { font: inherit; font-weight: 600; font-size: 0.9rem; padding: 9px 14px; border-radius: 999px; border: 1px solid var(--gold-deep); background: rgba(255, 217, 120, 0.08); color: var(--text); cursor: pointer; transition: transform 0.2s, background 0.2s; }
.song-btn:hover, .song-btn:focus-visible { background: rgba(255, 217, 120, 0.22); transform: translateY(-2px); outline: none; }
.diff-songs-note { margin: 10px 0 0; font-size: 0.8rem; line-height: 1.4; color: var(--muted); }

/* a word that floats up from the bulb you tapped (or missed) */
.song-pop { position: absolute; left: 50%; bottom: 100%; transform: translateX(-50%); white-space: nowrap; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.04em; text-shadow: 0 0 8px rgba(0, 0, 0, 0.9); pointer-events: none; z-index: 5; animation: songpop 0.75s ease-out forwards; }
.song-pop.perfect { color: #ffe27a; }
.song-pop.great { color: #8cf0b9; }
.song-pop.good { color: #cfe0ff; }
.song-pop.bad { color: #ff9aa6; }
@keyframes songpop { from { transform: translate(-50%, 6px); opacity: 0; } 20% { opacity: 1; } to { transform: translate(-50%, -22px); opacity: 0; } }

/* the note highway */
.song-stage { display: none; max-width: 520px; margin: 22px auto 0; }
.route.song-on .song-stage { display: block; }
.route.song-on .route-stage { display: none !important; }
.song-stage[hidden] { display: none !important; }
.song-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 2px 8px; }
.song-title { font-size: 1.05rem; color: var(--gold); letter-spacing: 0.04em; }
.song-exit { background: none; border: 0; padding: 4px 2px; font: inherit; font-size: 0.85rem; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.song-exit:hover, .song-exit:focus-visible { color: #fff; }
.song-lanes { display: grid; grid-template-columns: repeat(8, 1fr); gap: 4px; height: 330px; padding: 6px; border: 1px solid var(--line); border-radius: 18px; background: linear-gradient(#070b1d, #0d1430); overflow: hidden; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.5); }
.lane { position: relative; border-radius: 10px; background: linear-gradient(to bottom, rgba(255, 255, 255, 0.015), color-mix(in srgb, var(--c) 13%, transparent)); cursor: pointer; -webkit-tap-highlight-color: transparent; touch-action: none; transition: background 0.1s; }
.lane::after { content: ''; position: absolute; left: 50%; top: 0; bottom: var(--pad, 78px); width: 2px; margin-left: -1px; background: color-mix(in srgb, var(--c) 30%, transparent); }
.lane.hit { background: linear-gradient(to bottom, color-mix(in srgb, var(--c) 10%, transparent), color-mix(in srgb, var(--c) 45%, transparent)); }
.lane-track { position: absolute; left: 0; right: 0; top: 0; bottom: var(--pad, 78px); overflow: visible; z-index: 2; pointer-events: none; }
.pad { position: absolute; left: 0; right: 0; bottom: 0; height: var(--pad, 78px); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; border-top: 3px solid var(--c); border-radius: 0 0 10px 10px; background: rgba(4, 7, 20, 0.7); box-shadow: 0 -4px 14px color-mix(in srgb, var(--c) 35%, transparent); }
.pad svg { width: 26px; height: 42px; overflow: visible; filter: grayscale(1) brightness(0.55); transition: filter 0.1s, transform 0.1s; }
.lane.hit .pad svg { filter: none; transform: scale(1.25); }
.lane.hit .pad { background: color-mix(in srgb, var(--c) 55%, #05081a); }
.lane.perfect .pad { box-shadow: 0 -6px 26px var(--c), inset 0 0 18px rgba(255, 255, 255, 0.55); }
.lane.hit .pad::before { content: ''; position: absolute; left: 50%; top: -2px; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; border: 3px solid #fff; animation: padburst 0.3s ease-out forwards; pointer-events: none; }
@keyframes padburst { from { transform: scale(0.4); opacity: 1; } to { transform: scale(1.5); opacity: 0; } }
.pad-note { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.06em; color: var(--c); }
.gem { position: absolute; left: 50%; top: 0; width: var(--gem, 34px); height: var(--gem, 34px); margin-left: calc(var(--gem, 34px) / -2); border-radius: 50%; background: radial-gradient(circle at 34% 28%, #fff 0, var(--c) 42%, color-mix(in srgb, var(--c) 55%, #000) 100%); box-shadow: 0 0 14px var(--c), 0 0 3px #fff inset; transform: translateY(-48px); animation: gemfall linear forwards, gemfade 0.45s linear forwards; will-change: transform, opacity; pointer-events: none; transition: filter 0.1s; }
@keyframes gemfall { from { transform: translateY(-48px); } to { transform: translateY(var(--fall, 220px)); } }
@keyframes gemfade { from { opacity: 1; } to { opacity: 0; } }
.gem.hit { filter: brightness(1.7) saturate(1.2); box-shadow: 0 0 26px var(--c), 0 0 8px #fff; }
.gem.hit::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 3px solid #fff; animation: gemburst 0.35s ease-out forwards; }
@keyframes gemburst { from { transform: scale(0.8); opacity: 0.9; } to { transform: scale(2); opacity: 0; } }
.gem.missed { background: #6d728a; box-shadow: none; filter: none; }
.song-pop { bottom: 100%; margin-bottom: 4px; }
.lane .song-pop { font-size: 0.72rem; }
@media (max-width: 420px) { .song-lanes { height: 320px; gap: 3px; padding: 5px; } .pad svg { width: 22px; height: 36px; } .song-stage[data-lanes="6"] .pad svg { width: 28px; height: 46px; } }

/* song picker inside the difficulty pop-up */
.diff-songs-open { display: block; width: 100%; margin-top: 10px; font: inherit; font-weight: 600; padding: 10px 14px; border-radius: 999px; border: 1px solid var(--gold-deep); background: rgba(255, 217, 120, 0.08); color: var(--text); cursor: pointer; transition: background 0.2s; }
.diff-songs-open:hover, .diff-songs-open:focus-visible { background: rgba(255, 217, 120, 0.22); outline: none; }
.song-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 4px; }
.song-btn { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; text-align: left; padding: 8px 12px; border-radius: 12px; }
.song-btn b { font-size: 0.9rem; line-height: 1.2; }
.song-btn small { font-size: 0.7rem; color: var(--muted); }
.diff-songs-back { display: block; margin: 12px auto 0; background: none; border: 0; font: inherit; font-size: 0.85rem; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.diff-songs-back:hover, .diff-songs-back:focus-visible { color: #fff; }
[data-diff-main][hidden], [data-diff-songs][hidden] { display: none; }
@media (max-width: 420px) { .diff-dialog .lb-title { font-size: 1.05rem; margin-bottom: 4px; } .diff-dialog .lb-sub { margin: 0 0 8px; font-size: 0.85rem; } }

/* the rating word and the hard-mode box */
.song-board { position: relative; }
.song-rating { position: absolute; left: 0; right: 0; top: 34%; display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; pointer-events: none; z-index: 6; opacity: 0; }
.song-rating b { font-size: 1.7rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; text-shadow: 0 0 14px currentColor, 0 2px 4px rgba(0, 0, 0, 0.9); }
.song-rating small { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: #fff; text-shadow: 0 1px 3px rgba(0, 0, 0, 0.95); min-height: 1em; }
.song-rating.on { animation: ratepop 0.75s ease-out forwards; }
.song-rating.perfect { color: #ffe27a; }
.song-rating.great { color: #8cf0b9; }
.song-rating.good { color: #9fc4ff; }
.song-rating.bad { color: #ff7d8d; }
.song-rating.count { color: #fff; }
@keyframes ratepop { 0% { transform: scale(0.6); opacity: 0; } 14% { transform: scale(1.18); opacity: 1; } 28% { transform: scale(1); } 75% { opacity: 1; } 100% { transform: scale(1) translateY(-10px); opacity: 0; } }
.song-rating.count.on { animation-duration: 0.9s; }
.song-hard { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 0 0 10px; font-size: 0.85rem; color: var(--muted); cursor: pointer; }
.song-hard b { color: #ff7d8d; letter-spacing: 0.04em; }
.song-hard input { width: 18px; height: 18px; accent-color: #ff3341; }
.song-grid { max-height: 46vh; overflow-y: auto; padding-right: 2px; }

/* keyboard hints on the pads (computers only) */
.pad-key { display: none; }
@media (hover: hover) and (pointer: fine) {
  .song-stage { --pad: 98px; }
  .song-stage .song-lanes { height: 360px; }
  .pad-key { display: inline-block; margin-top: 3px; min-width: 22px; padding: 1px 5px; border: 1px solid var(--c); border-bottom-width: 3px; border-radius: 5px; font: 700 0.72rem/1.2 inherit; font-family: inherit; text-align: center; color: #fff; background: rgba(255, 255, 255, 0.06); }
  .lane.hit .pad-key { background: var(--c); color: #05081a; }
}

/* the logo behind the lanes, and the results card */
.song-lanes { position: relative; }
.song-lanes::before { content: ''; position: absolute; left: 6%; right: 6%; top: 8%; height: 56%; background: url(/assets/logo-festival-760.webp) center / contain no-repeat; opacity: 0.14; pointer-events: none; }
.song-result { position: absolute; inset: 0; z-index: 8; display: grid; place-items: center; padding: 12px; background: rgba(4, 7, 20, 0.72); backdrop-filter: blur(3px); border-radius: 18px; animation: srin 0.35s ease-out both; }
.song-result[hidden] { display: none; }
@keyframes srin { from { opacity: 0; } to { opacity: 1; } }
.sr-card { width: min(100%, 360px); padding: 18px 16px 16px; text-align: center; border: 2px solid var(--gold); border-radius: 18px; background: linear-gradient(#10183a, #0a1128); box-shadow: 0 0 40px rgba(255, 217, 120, 0.25); animation: srcard 0.45s cubic-bezier(0.3, 1.4, 0.5, 1) both; }
@keyframes srcard { from { transform: scale(0.8) translateY(14px); opacity: 0; } to { transform: none; opacity: 1; } }
.sr-kicker { margin: 0; font-size: 0.8rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold); }
.sr-name { margin: 4px 0 2px; font-size: 1.15rem; color: #fff; }
.sr-stars { margin: 0; font-size: 2.1rem; line-height: 1.1; letter-spacing: 0.12em; color: #ffd24a; text-shadow: 0 0 16px rgba(255, 210, 74, 0.7); }
.sr-score { margin: 2px 0 0; font-size: 1.6rem; font-weight: 800; color: #fff; }
.sr-new { margin: 4px auto 0; display: inline-block; padding: 2px 12px; border-radius: 999px; background: #2ddc78; color: #04210f; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.sr-new[hidden] { display: none; }
.sr-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 12px 0 8px; }
.sr-grid div { padding: 6px 2px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255, 255, 255, 0.03); }
.sr-grid dt { font-size: 0.68rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.sr-grid dd { margin: 0; font-size: 1.15rem; font-weight: 700; color: #fff; }
.sr-grid div:nth-child(1) dd { color: #ffe27a; } .sr-grid div:nth-child(2) dd { color: #8cf0b9; } .sr-grid div:nth-child(3) dd { color: #9fc4ff; } .sr-grid div:nth-child(4) dd { color: #ff7d8d; }
.sr-meta { margin: 0 0 12px; font-size: 0.8rem; line-height: 1.4; color: var(--muted); white-space: pre-wrap; }
.sr-actions { display: flex; gap: 10px; justify-content: center; }
.sr-actions .btn { min-width: 118px; }
@media (prefers-reduced-motion: reduce) { .sr-card, .song-result { animation: none; } }

/* sound button: obvious on and off */
.sound-btn { display: inline-flex; align-items: center; gap: 8px; }
.sound-btn svg { flex: none; }
.sound-btn .sx { display: none; }
.sound-btn[aria-pressed="true"] { border-color: #2ddc78; color: #7dffb0; background: rgba(45, 220, 120, 0.14); }
.sound-btn[aria-pressed="true"]:hover { background: rgba(45, 220, 120, 0.26); color: #fff; }
.sound-btn[aria-pressed="false"] { border-color: #ff6b7a; color: #ff9aa6; background: rgba(255, 80, 100, 0.12); }
.sound-btn[aria-pressed="false"]:hover { background: rgba(255, 80, 100, 0.24); color: #fff; }
.sound-btn[aria-pressed="false"] .sw { display: none; }
.sound-btn[aria-pressed="false"] .sx { display: inline; }

/* key settings */
.song-head-right { display: flex; align-items: center; gap: 12px; }
.song-gear { display: none; width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 50%; background: rgba(255, 255, 255, 0.04); color: var(--gold); cursor: pointer; place-items: center; transition: transform 0.4s, background 0.2s; }
.song-gear:hover, .song-gear:focus-visible { background: rgba(255, 217, 120, 0.16); color: #fff; transform: rotate(60deg); outline: none; }
@media (hover: hover) and (pointer: fine) { .song-gear { display: grid; } }
.keys-dialog { width: min(480px, calc(100vw - 32px)); }
.keys-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 6px; }
.keys-row { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255, 255, 255, 0.03); color: var(--text); font: inherit; font-size: 0.85rem; cursor: pointer; text-align: left; }
.keys-row:hover, .keys-row:focus-visible { border-color: var(--c); outline: none; }
.keys-row.is-listening { border-color: var(--c); box-shadow: 0 0 18px color-mix(in srgb, var(--c) 55%, transparent); background: color-mix(in srgb, var(--c) 14%, transparent); }
.keys-dot { flex: none; width: 12px; height: 12px; border-radius: 50%; background: var(--c); box-shadow: 0 0 8px var(--c); }
.keys-name { flex: 1; min-width: 0; }
.keys-row kbd { min-width: 28px; padding: 2px 8px; border: 1px solid var(--c); border-bottom-width: 3px; border-radius: 6px; font: 700 0.85rem/1.3 inherit; font-family: inherit; text-align: center; color: #fff; background: rgba(255, 255, 255, 0.06); }
.keys-msg { min-height: 2.6em; margin: 10px 0 4px; font-size: 0.82rem; line-height: 1.35; text-align: center; color: var(--gold); }
.keys-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
@media (max-width: 420px) { .keys-grid { grid-template-columns: 1fr; } }

/* record your own song */
.rec-dot { display: inline-block; width: 11px; height: 11px; margin-right: 7px; border-radius: 50%; background: #ff3341; box-shadow: 0 0 8px #ff3341; vertical-align: -1px; }
.rec-open { margin: 0 0 10px; border-color: #ff6b7a; }
.rec-bar { max-width: 520px; margin: 10px auto 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 14px; text-align: center; }
.rec-bar[hidden] { display: none; }
.rec-status { font-size: 0.9rem; line-height: 1.35; color: var(--muted); flex: 1 1 220px; }
.rec-bar.is-recording .rec-status { color: #ff9aa6; font-weight: 700; }
.rec-bar.is-recording { animation: recglow 1.4s ease-in-out infinite; }
@keyframes recglow { 50% { filter: drop-shadow(0 0 8px rgba(255, 51, 65, 0.6)); } }
.rec-btns { display: inline-flex; gap: 8px; }
.rec-bar .rec-dot { margin-right: 8px; }
.rec-review .sr-card { display: flex; flex-direction: column; gap: 8px; }
.rv-name { display: flex; flex-direction: column; gap: 4px; text-align: left; font-size: 0.78rem; letter-spacing: 0.04em; color: var(--muted); }
.rv-name input { font: inherit; font-size: 1rem; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255, 255, 255, 0.06); color: #fff; }
.rv-name input:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
.rv-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.rv-actions .btn { padding: 9px 8px; font-size: 0.85rem; min-width: 0; }
.rv-actions .btn:disabled { opacity: 0.6; cursor: default; }
.rv-msg { min-height: 1.1em; margin: 0; font-size: 0.78rem; color: var(--gold); }
.rv-close { align-self: center; background: none; border: 0; font: inherit; font-size: 0.85rem; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.rec-review { overflow-y: auto; align-items: center; }
@media (max-width: 420px) { .rec-review .sr-kicker { display: none; } .rec-review .sr-card { padding: 12px; gap: 6px; } }
.rec-list { margin-top: 14px; padding-top: 10px; border-top: 1px dashed var(--line); }
.rec-list[hidden] { display: none; }
.rec-list-title { margin: 0 0 6px; font-weight: 600; font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); }
.rec-item { display: flex; align-items: center; gap: 6px; padding: 6px 0; }
.rec-label { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.rec-name { font-weight: 600; font-size: 0.9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rec-label small { font-size: 0.7rem; color: var(--muted); }
.rec-item button { font: inherit; font-size: 0.78rem; font-weight: 600; padding: 6px 10px; border-radius: 999px; border: 1px solid var(--gold-deep); background: rgba(255, 217, 120, 0.08); color: var(--text); cursor: pointer; }
.rec-item button:hover, .rec-item button:focus-visible { background: rgba(255, 217, 120, 0.22); outline: none; }
.rec-item button[data-rec-del] { border-color: #ff6b7a; color: #ff9aa6; }

/* sharing a song, and opening one that was shared */
.rv-share { grid-column: 1 / -1; }
.rec-item button[data-rec-share] { border-color: #2ddc78; color: #7dffb0; }
.share-dialog { width: min(460px, calc(100vw - 32px)); }
.sh-img { display: block; width: min(220px, 60%); height: auto; margin: 4px auto 12px; border-radius: 14px; border: 1px solid var(--line); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); }
.sh-linkrow { display: flex; gap: 8px; margin-bottom: 12px; }
.sh-linkrow input { flex: 1; min-width: 0; font: inherit; font-size: 0.9rem; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255, 255, 255, 0.06); color: #fff; }
.sh-linkrow .btn { flex: none; padding-left: 16px; padding-right: 16px; }
.sh-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sh-btns .btn { text-align: center; padding: 10px 8px; font-size: 0.86rem; min-width: 0; }
.sh-btns [hidden] { display: none; }
.sh-btns .is-wait { opacity: 0.5; pointer-events: none; }
.sh-mobile { display: none; }
@media (hover: none) and (pointer: coarse) { .sh-mobile { display: inline-block; } }
.sh-msg { min-height: 2.6em; margin: 10px 0 0; font-size: 0.82rem; line-height: 1.35; text-align: center; color: var(--gold); }
.recv-dialog { width: min(420px, calc(100vw - 32px)); }
.recv-dialog .lb-title { letter-spacing: 0.04em; text-transform: none; font-size: 1.4rem; color: #fff; margin: 4px 0; }
.recv-meta { margin: 0 0 14px; text-align: center; font-size: 0.85rem; color: var(--muted); }
.recv-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.recv-more { display: flex; flex-wrap: wrap; gap: 6px 18px; justify-content: center; margin-top: 14px; }
.rec-link { background: none; border: 0; padding: 4px; font: inherit; font-size: 0.85rem; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.rec-link:hover, .rec-link:focus-visible { color: #fff; }
.rec-link:disabled { text-decoration: none; color: #7dffb0; cursor: default; }

/* hitting the notes: every gem has a white centre, and a ring on the line shows where to meet it */
.gem::before { content: ''; position: absolute; left: 50%; top: 50%; width: 30%; height: 30%; margin: -15% 0 0 -15%; border-radius: 50%; background: #fff; box-shadow: 0 0 8px 2px rgba(255, 255, 255, 0.9); }
.lane-track::before { content: ''; position: absolute; left: 50%; bottom: 0; width: calc(var(--gem, 34px) + 8px); height: calc(var(--gem, 34px) + 8px); margin: 0 0 calc((var(--gem, 34px) + 8px) / -2) calc((var(--gem, 34px) + 8px) / -2); border: 3px solid rgba(255, 255, 255, 0.85); border-radius: 50%; box-shadow: 0 0 12px var(--c), inset 0 0 8px rgba(255, 255, 255, 0.25); }
.lane-track::after { content: ''; position: absolute; left: 6%; right: 6%; bottom: -1px; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, 0.9); box-shadow: 0 0 8px var(--c); }
.lane.held .pad { background: color-mix(in srgb, var(--c) 45%, #05081a); }
.lane.held .pad svg { filter: none; transform: scale(1.2); }

/* sound picker */
.inst-bar { max-width: 520px; margin: 10px auto 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 10px; }
.inst-bar[hidden] { display: none; }
.inst-label { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.inst-chips { display: inline-flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.inst-chip { font: inherit; font-size: 0.82rem; font-weight: 600; padding: 6px 13px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.04); color: var(--muted); cursor: pointer; transition: background 0.15s, color 0.15s; }
.inst-chip[hidden] { display: none; }
.inst-chip:hover, .inst-chip:focus-visible { color: #fff; outline: none; border-color: var(--gold); }
.inst-chip[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: #1a1500; }
.inst-bar.is-locked .inst-chip { opacity: 0.55; pointer-events: none; }

/* the review panel now sits under the lanes */
.rec-review { margin-top: 10px; }
.rec-review[hidden] { display: none; }
.rec-review .sr-card { width: 100%; max-width: 520px; margin: 0 auto; }
.rv-tracks { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 0; padding: 0; list-style: none; }
.rv-tracks li { padding: 3px 10px; border: 1px solid var(--line); border-radius: 999px; font-size: 0.78rem; color: var(--text); background: rgba(255, 255, 255, 0.05); }
.rv-lead { display: flex; flex-direction: column; gap: 4px; text-align: left; font-size: 0.78rem; letter-spacing: 0.04em; color: var(--muted); }
.rv-lead[hidden] { display: none; }
.rv-lead select { font: inherit; font-size: 0.95rem; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: #10183a; color: #fff; }

/* keys and notes */
.keys-grid { grid-template-columns: 1fr; gap: 6px; }
.keys-row { cursor: default; }
.keys-row:hover { border-color: var(--line); }
.keys-row.is-listening:hover { border-color: var(--c); }
.keys-key { background: none; border: 0; padding: 0; cursor: pointer; }
.keys-key:hover kbd, .keys-key:focus-visible kbd { background: color-mix(in srgb, var(--c) 30%, transparent); }
.keys-key:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 6px; }
.keys-note { font: inherit; font-size: 0.85rem; padding: 5px 6px; border: 1px solid var(--line); border-radius: 8px; background: #10183a; color: #fff; }
@media (max-width: 420px) { .keys-grid { grid-template-columns: 1fr; } }

/* the studio */
.studio { max-width: 520px; margin: 12px auto 0; padding: 12px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255, 255, 255, 0.03); text-align: center; }
.studio[hidden] { display: none; }
.studio.is-recording { border-color: #ff6b7a; box-shadow: 0 0 22px rgba(255, 51, 65, 0.25); }
.st-transport { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.st-transport .btn { min-width: 108px; }
.st-transport .btn:disabled, .st-foot .btn:disabled { opacity: 0.45; cursor: default; }
.st-rec { border-color: #ff6b7a; }
.st-opts { display: flex; flex-wrap: wrap; gap: 4px 18px; justify-content: center; margin: 10px 0 2px; font-size: 0.82rem; color: var(--muted); }
.st-opts label { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.st-opts input { width: 16px; height: 16px; accent-color: var(--gold); }
.st-status { min-height: 2.6em; margin: 8px 0 6px; font-size: 0.88rem; line-height: 1.35; color: var(--muted); }
.studio.is-recording .st-status { color: #ff9aa6; font-weight: 700; }
.st-layers { list-style: none; margin: 4px 0 10px; padding: 0; display: grid; gap: 6px; text-align: left; }
.st-layers[hidden] { display: none; }
.ly { display: grid; grid-template-columns: 24px 1fr auto; grid-template-areas: "n name btns" "n notes btns"; align-items: center; column-gap: 8px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255, 255, 255, 0.04); }
.ly-num { grid-area: n; width: 24px; height: 24px; border-radius: 50%; background: var(--gold); color: #1a1500; font-weight: 700; font-size: 0.78rem; display: grid; place-items: center; }
.ly-name { grid-area: name; font-weight: 600; font-size: 0.92rem; }
.ly-notes { grid-area: notes; font-size: 0.72rem; color: var(--muted); }
.ly-btns { grid-area: btns; display: inline-flex; gap: 5px; flex-wrap: wrap; justify-content: flex-end; }
.ly-btns button { font: inherit; font-size: 0.74rem; font-weight: 600; padding: 5px 9px; border-radius: 999px; border: 1px solid var(--gold-deep); background: rgba(255, 217, 120, 0.07); color: var(--text); cursor: pointer; }
.ly-btns button:hover, .ly-btns button:focus-visible { background: rgba(255, 217, 120, 0.22); outline: none; }
.ly-btns [data-ly="del"] { border-color: #ff6b7a; color: #ff9aa6; }
.ly-btns .is-sure { background: #ff3341; color: #fff; border-color: #ff3341; }
.ly.is-muted { opacity: 0.55; }
.ly.is-muted .ly-name { text-decoration: line-through; }
.ly.is-redo { border-color: #ff6b7a; box-shadow: 0 0 14px rgba(255, 51, 65, 0.3); }
.st-foot { display: flex; justify-content: center; }
.finish-dialog { width: min(460px, calc(100vw - 32px)); }
.finish-dialog .lb-card { display: flex; flex-direction: column; gap: 10px; }
.finish-dialog .lb-title, .finish-dialog .lb-sub { margin: 0; }
@media (max-width: 420px) { .ly-btns button { padding: 5px 7px; font-size: 0.7rem; } .st-transport .btn { min-width: 96px; } }

/* game menu */
.game-cards { display: grid; gap: 10px; margin-top: 8px; }
.game-card { display: flex; align-items: center; gap: 14px; text-align: left; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255, 255, 255, 0.03); color: var(--text); font: inherit; cursor: pointer; transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s; }
.game-card:hover, .game-card:focus-visible { transform: translateY(-2px); border-color: var(--c); box-shadow: 0 0 22px color-mix(in srgb, var(--c) 40%, transparent); outline: none; }
.game-card svg { flex: none; width: 34px; height: 54px; color: var(--c); filter: drop-shadow(0 0 8px var(--c)); }
.gc-txt { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.gc-txt b { font-size: 1.1rem; color: var(--c); letter-spacing: 0.03em; }
.gc-txt span { font-size: 0.82rem; line-height: 1.35; color: var(--muted); }
[data-diff-home][hidden] { display: none; }

/* song list */
.song-grid { max-height: 52vh; }
.song-group { grid-column: 1 / -1; margin: 8px 0 0; font-weight: 600; font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); }
.song-group:first-child { margin-top: 0; }
.song-btn small { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; }
.lv { font-style: normal; font-weight: 700; font-size: 0.64rem; letter-spacing: 0.06em; text-transform: uppercase; padding: 1px 7px; border-radius: 999px; color: #04210f; }
.lv1 { background: #2ddc78; }
.lv2 { background: #ffd24a; color: #1a1500; }
.lv3 { background: #ff6b7a; color: #2a0409; }

/* keys, notes and drums */
.keys-dialog { width: min(600px, calc(100vw - 32px)); }
.keys-grid { display: grid; grid-template-columns: 1fr; gap: 6px; }
.keys-row { display: grid; grid-template-columns: minmax(70px, 1fr) 70px 90px 118px; align-items: center; gap: 8px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255, 255, 255, 0.03); font-size: 0.85rem; cursor: default; }
.keys-row.keys-head { padding: 0 10px; border: 0; background: none; font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.keys-lane { display: flex; align-items: center; gap: 8px; min-width: 0; }
.keys-dot { flex: none; width: 12px; height: 12px; border-radius: 50%; background: var(--c); box-shadow: 0 0 8px var(--c); }
.keys-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.keys-key { justify-self: start; }
.keys-note, .keys-drum { width: 100%; min-width: 0; }
.keys-actions { flex-wrap: wrap; }
@media (hover: none) and (pointer: coarse) {
  .keys-row { grid-template-columns: minmax(64px, 1fr) 88px 110px; }
  .keys-key, .keys-h-key { display: none; }
}
@media (max-width: 480px) { .keys-row { grid-template-columns: minmax(58px, 1fr) 62px 80px 96px; gap: 6px; padding: 6px 8px; } .keys-name { font-size: 0.8rem; } }
@media (hover: none) and (pointer: coarse) and (max-width: 480px) { .keys-row { grid-template-columns: minmax(56px, 1fr) 84px 104px; } }
.song-gear { display: grid; }
.st-sus.is-off { opacity: 0.45; }
.song-grid { max-height: none; overflow: visible; }
.rec-label { align-items: flex-start; text-align: left; }

.play-as { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 0 0 8px; font-size: 0.85rem; color: var(--muted); }
.play-as select { font: inherit; font-size: 0.9rem; padding: 5px 10px; border: 1px solid var(--line); border-radius: 10px; background: #10183a; color: #fff; }

.song-short b { color: var(--gold); }
.song-short input { accent-color: var(--gold); }

/* mixer and note range */
.mix-btn { display: inline-grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 50%; background: rgba(255, 255, 255, 0.04); color: var(--gold); cursor: pointer; }
.mix-btn:hover, .mix-btn:focus-visible { background: rgba(255, 217, 120, 0.16); color: #fff; outline: none; }
.range-bar { max-width: 520px; margin: 8px auto 0; display: flex; align-items: center; justify-content: center; gap: 8px; }
.range-bar[hidden] { display: none; }
.range-bar input[type="range"] { flex: 1; min-width: 80px; max-width: 280px; accent-color: var(--gold); }
.oct-btn { width: 30px; height: 30px; border: 1px solid var(--line); border-radius: 50%; background: rgba(255, 255, 255, 0.04); color: var(--gold); font: 700 1.1rem/1 inherit; font-family: inherit; cursor: pointer; }
.oct-btn:hover, .oct-btn:focus-visible { background: rgba(255, 217, 120, 0.16); color: #fff; outline: none; }
.range-label { min-width: 92px; font-size: 0.8rem; color: var(--muted); text-align: left; }
.range-bar.is-locked { opacity: 0.55; pointer-events: none; }
.mixer-dialog { width: min(440px, calc(100vw - 32px)); }
.mix-rows { display: grid; gap: 10px; margin: 8px 0 14px; }
.mix-row { display: grid; grid-template-columns: 64px 1fr 46px; align-items: center; gap: 10px; font-size: 0.9rem; }
.mix-row input[type="range"] { width: 100%; accent-color: var(--gold); }
.mix-val { font-size: 0.78rem; color: var(--muted); text-align: right; }
@media (max-width: 420px) { .range-label { min-width: 70px; font-size: 0.72rem; } }

.recv-tip { margin: 14px 0 0; padding: 8px 12px; border: 1px solid var(--gold-deep); border-radius: 10px; background: rgba(255, 217, 120, 0.08); font-size: 0.8rem; line-height: 1.4; color: var(--text); text-align: center; }
.recv-tip[hidden] { display: none; }

/* the speaker button, and scale pickers */
.song-sound { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; cursor: pointer; border: 1px solid #2ddc78; background: rgba(45, 220, 120, 0.14); color: #7dffb0; transition: background 0.2s; }
.song-sound:hover, .song-sound:focus-visible { background: rgba(45, 220, 120, 0.28); color: #fff; outline: none; }
.song-sound .sx { display: none; }
.song-sound[aria-pressed="false"] { border-color: #ff6b7a; background: rgba(255, 80, 100, 0.12); color: #ff9aa6; }
.song-sound[aria-pressed="false"]:hover { background: rgba(255, 80, 100, 0.26); color: #fff; }
.song-sound[aria-pressed="false"] .sw { display: none; }
.song-sound[aria-pressed="false"] .sx { display: inline; }
.song-head-right { gap: 8px; }
.range-bar { flex-direction: column; align-items: stretch; gap: 8px; }
.range-row, .scale-row { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; }
.scale-row select, .keys-scale select { font: inherit; font-size: 0.85rem; padding: 5px 10px; border: 1px solid var(--line); border-radius: 10px; background: #10183a; color: #fff; }
.scale-row select:disabled, .keys-scale select:disabled { opacity: 0.55; }
.keys-scale { display: flex; flex-wrap: wrap; gap: 8px 16px; justify-content: center; margin: 0 0 12px; font-size: 0.85rem; color: var(--muted); }
.keys-scale label { display: inline-flex; align-items: center; gap: 8px; }

.scale-row { flex-wrap: nowrap; }
.scale-row[hidden] { display: none; }
.scale-row select { width: auto; flex: 0 1 auto; min-width: 0; max-width: 46%; }

/* a ring that follows the finger while a wob note is held */
.wob-dot { position: absolute; left: 50%; width: 26px; height: 26px; margin: -13px 0 0 -13px; border-radius: 50%; border: 3px solid #fff; background: color-mix(in srgb, var(--c) 55%, transparent); box-shadow: 0 0 14px var(--c); pointer-events: none; z-index: 4; }

/* the sound slider on phones */
.inst-dial { display: none; flex: 1 1 100%; flex-direction: column; align-items: center; gap: 6px; padding: 2px 10px 0; }
.inst-now { font-size: 1.2rem; letter-spacing: 0.04em; color: var(--gold); min-height: 1.4em; }
.inst-dial input[type="range"] { width: 100%; height: 34px; accent-color: var(--gold); margin: 0; }
.inst-ticks { width: calc(100% - 22px); display: flex; justify-content: space-between; margin-top: -8px; }
.inst-ticks i { width: 2px; height: 9px; border-radius: 1px; background: rgba(255, 255, 255, 0.35); }
.inst-ticks i.on { background: var(--gold); height: 13px; }
@media (max-width: 520px) {
  .inst-chips { display: none; }
  .inst-dial { display: flex; }
  .inst-bar .inst-label { display: none; }
  .inst-bar { gap: 4px 8px; }
}

/* the sound wheel on phones: words you slide, each clicking into the middle */
.inst-wheel { display: none; position: relative; flex: 1 1 100%; margin: 2px 0 0; }
.wheel-track { display: flex; align-items: center; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; padding: 4px 0 12px; touch-action: pan-x; }
.wheel-track::-webkit-scrollbar { display: none; }
.wheel-track.is-locked { pointer-events: none; opacity: 0.6; }
.wheel-pad { flex: none; width: 40%; }
.wheel-item { flex: none; scroll-snap-align: center; scroll-snap-stop: always; padding: 6px 14px; border: 0; background: none; font: inherit; font-size: 1rem; font-weight: 600; letter-spacing: 0.03em; color: var(--muted); opacity: 0.6; cursor: pointer; transition: color 0.15s, font-size 0.15s, opacity 0.15s; white-space: nowrap; }
.wheel-item.is-center { color: var(--gold); font-size: 1.4rem; opacity: 1; text-shadow: 0 0 14px rgba(255, 217, 120, 0.5); }
.wheel-sep { flex: none; width: 4px; height: 4px; border-radius: 50%; background: rgba(255, 255, 255, 0.4); }
.inst-wheel::before, .inst-wheel::after { content: ''; position: absolute; top: 0; bottom: 0; width: 22%; z-index: 2; pointer-events: none; }
.inst-wheel::before { left: 0; background: linear-gradient(to right, #060a1c, rgba(6, 10, 28, 0)); }
.inst-wheel::after { right: 0; background: linear-gradient(to left, #060a1c, rgba(6, 10, 28, 0)); }
.wheel-notch { position: absolute; left: 50%; bottom: 2px; width: 26px; height: 3px; margin-left: -13px; border-radius: 2px; background: var(--gold); box-shadow: 0 0 8px rgba(255, 217, 120, 0.7); z-index: 3; }
.inst-tools { flex: 1 1 100%; display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: nowrap; }
.inst-tools .scale-row { width: auto; flex: 0 1 auto; flex-wrap: nowrap; }
.inst-tools .scale-row .inst-label { display: none; }
.inst-tools .scale-row select { max-width: 40vw; }
@media (max-width: 520px) { .inst-dial { display: none !important; } .inst-wheel { display: block; } .inst-chips { display: none; } .inst-tools .scale-row select { max-width: 46vw; } }
.inst-wheel { min-width: 0; width: 100%; max-width: 100%; overflow: hidden; }
.wheel-track { width: 100%; }

/* the sound wheel, made to look like the focus ring of a camera lens */
.inst-wheel { border-radius: 16px; border: 1px solid rgba(255, 255, 255, 0.16); background: linear-gradient(#0e1536, #070b1d 55%, #0f1738); box-shadow: inset 0 3px 10px rgba(0, 0, 0, 0.7), inset 0 -1px 0 rgba(255, 255, 255, 0.1), 0 2px 10px rgba(0, 0, 0, 0.5); }
.inst-wheel::before { background: linear-gradient(to right, #070b1d 8%, rgba(7, 11, 29, 0)); border-radius: 16px 0 0 16px; }
.inst-wheel::after { background: linear-gradient(to left, #070b1d 8%, rgba(7, 11, 29, 0)); border-radius: 0 16px 16px 0; }
.wheel-track { padding: 16px 0 24px; background-image: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.05) 0 2px, transparent 2px 7px), repeating-linear-gradient(90deg, rgba(255, 217, 120, 0.6) 0 1px, transparent 1px 11px); background-size: auto 100%, auto 8px; background-position: left top, left bottom; background-repeat: repeat-x, repeat-x; background-attachment: local, local; }
.wheel-sep { display: none; }
.wheel-item { position: relative; font-size: 0.92rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; padding: 4px 16px; transition: color 0.12s;
  transform: perspective(240px) rotateY(calc(var(--d, 0) * -44deg)) scale(calc(1.22 - var(--ad, 0) * 0.5)); opacity: calc(1 - var(--ad, 0) * 0.7); text-shadow: none; }
.wheel-item::after { content: ''; position: absolute; left: 50%; bottom: -12px; width: 2px; height: 11px; margin-left: -1px; border-radius: 1px; background: rgba(255, 217, 120, 0.75); }
.wheel-item.is-center { font-size: 0.92rem; color: #ffe9a6; text-shadow: 0 0 12px rgba(255, 217, 120, 0.7); opacity: 1; }
.wheel-item.is-center::after { height: 15px; width: 3px; margin-left: -1.5px; background: #ffd978; box-shadow: 0 0 8px rgba(255, 217, 120, 0.9); }
.wheel-window { position: absolute; top: 7px; bottom: 7px; left: 50%; width: 126px; margin-left: -63px; border-left: 1px solid rgba(255, 255, 255, 0.24); border-right: 1px solid rgba(255, 255, 255, 0.24); border-radius: 10px; background: linear-gradient(rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0) 45%); pointer-events: none; z-index: 2; }
.wheel-notch { top: 0; bottom: auto; width: 0; height: 0; margin-left: -7px; border-left: 7px solid transparent; border-right: 7px solid transparent; border-top: 9px solid #ffd978; border-radius: 0; background: none; box-shadow: none; filter: drop-shadow(0 0 4px rgba(255, 217, 120, 0.8)); z-index: 3; }

/* guitar strum mode */
.strum-ctl { display: inline-flex; align-items: center; gap: 8px; }
.strum-ctl[hidden] { display: none; }
.strum-opt { display: inline-flex; align-items: center; gap: 6px; font-size: 0.85rem; color: var(--gold); font-weight: 600; cursor: pointer; }
.strum-opt input { width: 16px; height: 16px; accent-color: var(--gold); }
.strum-ctl select { font: inherit; font-size: 0.82rem; padding: 4px 8px; border: 1px solid var(--line); border-radius: 10px; background: #10183a; color: #fff; }
.inst-tools { flex-wrap: wrap; }
.song-stage.is-strum .lane::before { content: ''; position: absolute; inset: 0 0 var(--pad, 78px) 0; background: repeating-linear-gradient(to bottom, transparent 0, transparent calc(16.66% - 2px), rgba(255, 255, 255, 0.2) calc(16.66% - 2px), rgba(255, 255, 255, 0.2) 16.66%); pointer-events: none; }
.song-stage.is-strum .pad-note { font-size: 0.95rem; }

/* the six guitar strings drawn in each lane */
.song-stage.is-strum .lane::before { display: none; }
.gstr { display: none; position: absolute; left: 4%; right: 4%; height: 2px; margin-top: -1px; border-radius: 2px; background: rgba(255, 255, 255, 0.34); pointer-events: none; }
.song-stage.is-strum .gstr { display: block; }
.gstr:nth-child(1) { height: 4px; margin-top: -2px; } .gstr:nth-child(2) { height: 3.4px; margin-top: -1.7px; } .gstr:nth-child(3) { height: 2.8px; margin-top: -1.4px; }
.gstr:nth-child(4) { height: 2.2px; margin-top: -1.1px; } .gstr:nth-child(5) { height: 1.7px; margin-top: -0.85px; } .gstr:nth-child(6) { height: 1.3px; margin-top: -0.65px; }
.gstr.ring { animation: gring 0.5s ease-out; }
@keyframes gring { 0% { background: #fff; box-shadow: 0 0 12px var(--c), 0 0 3px #fff; transform: scaleY(2.4); } 40% { transform: scaleY(0.6); } 70% { transform: scaleY(1.5); } 100% { background: rgba(255, 255, 255, 0.34); box-shadow: none; transform: none; } }

/* the low (thick) strings are at the bottom of the lane, the thin high ones at the top */
.gstr:nth-child(1) { height: 1.3px; margin-top: -0.65px; } .gstr:nth-child(2) { height: 1.7px; margin-top: -0.85px; } .gstr:nth-child(3) { height: 2.2px; margin-top: -1.1px; }
.gstr:nth-child(4) { height: 2.8px; margin-top: -1.4px; } .gstr:nth-child(5) { height: 3.4px; margin-top: -1.7px; } .gstr:nth-child(6) { height: 4px; margin-top: -2px; }

/* the drum machine */
.beat-dialog { width: min(720px, calc(100vw - 16px)); }
.beat-dialog .lb-card { padding: 16px 16px 14px; }
.beat-dialog .lb-title { font-size: 1rem; margin: 0 0 12px; }
.bm-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.bm-play { display: inline-flex; align-items: center; gap: 8px; padding: 10px 22px; border: 0; border-radius: 999px; background: var(--cta); color: var(--cta-ink); font: inherit; font-weight: 700; font-size: 0.95rem; cursor: pointer; box-shadow: 0 0 18px rgba(246, 230, 109, 0.35); }
.bm-play.is-playing { background: #ff3341; color: #fff; box-shadow: 0 0 18px rgba(255, 51, 65, 0.45); }
.bm-ico-stop { display: none; } .bm-play.is-playing .bm-ico-play { display: none; } .bm-play.is-playing .bm-ico-stop { display: inline; }
.bm-bpm { display: inline-flex; align-items: center; gap: 4px; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255, 255, 255, 0.04); }
.bm-bpm button { width: 34px; height: 34px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.09); color: var(--gold); font-size: 1.25rem; line-height: 1; cursor: pointer; }
.bm-bpm button:hover { background: rgba(255, 217, 120, 0.2); color: #fff; }
.bm-bpm span { display: flex; flex-direction: column; align-items: center; min-width: 54px; line-height: 1.05; }
.bm-bpm b { font-size: 1.15rem; color: #fff; } .bm-bpm small { font-size: 0.58rem; letter-spacing: 0.14em; color: var(--muted); }
.bm-seg { display: inline-flex; margin-left: auto; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.bm-seg button { padding: 9px 14px; border: 0; background: none; color: var(--muted); font: inherit; font-size: 0.82rem; font-weight: 600; cursor: pointer; }
.bm-seg button.on { background: var(--gold); color: #1a1500; }
.bm-styles { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.bm-styles span { margin-right: 2px; font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.bm-styles button { padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255, 255, 255, 0.04); color: var(--text); font: inherit; font-size: 0.8rem; font-weight: 600; cursor: pointer; }
.bm-styles button.on { background: var(--gold); border-color: var(--gold); color: #1a1500; }
.bm-styles .bm-clear { margin-left: auto; color: #ff9aa6; border-color: rgba(255, 107, 122, 0.5); }
.bm-pages { display: flex; justify-content: center; gap: 6px; margin: 0 0 8px; }
.bm-pages[hidden] { display: none; }
.bm-page { padding: 5px 16px; border: 1px solid var(--line); border-radius: 999px; background: none; color: var(--muted); font: inherit; font-size: 0.78rem; cursor: pointer; }
.bm-page.on { background: rgba(255, 217, 120, 0.18); border-color: var(--gold); color: var(--gold); }
.beat-wrap { padding: 10px 8px 8px; border: 1px solid var(--line); border-radius: 14px; background: #070b1d; }
.beat-grid { display: grid; gap: 5px; width: 100%; }
.bm-row { display: flex; align-items: center; gap: 3px; }
.bm-label { flex: none; width: 54px; height: 34px; margin-right: 4px; padding: 0; border: 0; border-radius: 8px; background: color-mix(in srgb, var(--c) 32%, #0d1430); color: #fff; font: 700 0.62rem/1 inherit; font-family: inherit; letter-spacing: 0.08em; cursor: pointer; }
.bm-label:hover, .bm-label:focus-visible { background: color-mix(in srgb, var(--c) 58%, #0d1430); outline: none; }
.bm-label.bm-blank { visibility: hidden; height: 12px; }
.bm-cell, .bm-num { flex: 1 1 0; min-width: 0; max-width: 48px; }
.bm-cell { height: 34px; padding: 0; border: 0; border-radius: 7px; background: rgba(255, 255, 255, 0.07); cursor: pointer; touch-action: none; transition: background 0.06s, filter 0.06s; }
.bm-cell.alt { background: rgba(255, 255, 255, 0.135); }
.bm-cell.g, .bm-num.g { margin-left: 6px; }
.bm-label + .bm-cell, .bm-label + .bm-num { margin-left: 0; }
.bm-cell.on { background: var(--c); box-shadow: 0 0 10px color-mix(in srgb, var(--c) 60%, transparent), inset 0 -3px 0 rgba(0, 0, 0, 0.25); }
.bm-cell.acc { box-shadow: 0 0 0 2px #fff, 0 0 14px var(--c), inset 0 -3px 0 rgba(0, 0, 0, 0.25); }
.bm-cell.bm-now { filter: brightness(1.7); }
.bm-num { height: 14px; font-size: 0.68rem; line-height: 14px; color: var(--muted); }
.bm-num.is-beat { color: var(--gold); font-weight: 700; }
.bm-num.bm-now { color: #fff; }
.bm-opts { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 14px; margin: 12px 0 2px; font-size: 0.78rem; color: var(--muted); }
.bm-opt { display: inline-flex; align-items: center; gap: 6px; }
.bm-opt input[type="range"] { width: 96px; accent-color: var(--gold); }
.bm-opt b { min-width: 2.4em; color: var(--gold); font-weight: 600; }
.bm-opt select { font: inherit; font-size: 0.82rem; padding: 4px 8px; border: 1px solid var(--line); border-radius: 10px; background: #10183a; color: #fff; }
.bm-chip { padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255, 255, 255, 0.05); color: var(--text); font: inherit; font-size: 0.8rem; font-weight: 600; cursor: pointer; }
.bm-chip.on { background: var(--gold); border-color: var(--gold); color: #1a1500; }
.bm-foot { position: sticky; bottom: -14px; z-index: 4; display: flex; justify-content: center; margin: 8px -16px -14px; padding: 10px 16px 14px; background: linear-gradient(rgba(13, 20, 48, 0), #0d1430 35%); }
.bm-foot .btn { width: min(100%, 320px); text-align: center; }
@media (max-width: 520px) {
  .beat-dialog { width: calc(100vw - 12px); }
  .beat-dialog .lb-card { padding: 14px 10px 12px; }
  .bm-top { gap: 8px; }
  .bm-play { padding: 9px 16px; }
  .bm-seg { margin-left: 0; width: 100%; } .bm-seg button { flex: 1; }
  .bm-label { width: 46px; }
  .bm-cell { height: 36px; } .bm-cell.g, .bm-num.g { margin-left: 5px; }
  .bm-opt input[type="range"] { width: 80px; }
  .bm-foot { margin: 8px -10px -12px; padding: 10px 10px 12px; }
}

/* choosing how many lanes */
.lane-pick { display: inline-flex; align-items: center; gap: 4px; padding: 3px 4px 3px 10px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255, 255, 255, 0.04); }
.lane-pick span { font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-right: 2px; }
.lane-pick button { min-width: 30px; height: 28px; padding: 0 8px; border: 0; border-radius: 999px; background: none; color: var(--muted); font: inherit; font-size: 0.85rem; font-weight: 700; cursor: pointer; }
.lane-pick button.on { background: var(--gold); color: #1a1500; }
.lane-pick button[hidden] { display: none; }
.diff-songs-pane .lane-pick, [data-diff-songs] .lane-pick { display: flex; width: max-content; margin: 0 auto 10px; }
.keys-lanes { display: flex; width: max-content; margin: 0 auto 10px; }
.inst-tools .lane-pick { padding: 2px 3px 2px 8px; }
.song-stage[data-lanes="4"] .pad svg { width: 34px; height: 56px; }
@media (max-width: 420px) { .song-stage[data-lanes="4"] .pad svg { width: 34px; height: 56px; } }
.song-stage:not(.is-rec) .inst-tools .lane-pick { display: none; }

/* the song setup step */
.setup-line { margin: 0 0 12px; text-align: center; font-size: 0.85rem; color: var(--muted); }
.setup-line b { color: var(--gold); font-weight: 600; }
.setup-rows { display: grid; gap: 9px; margin: 0 0 12px; }
.setup-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255, 255, 255, 0.03); }
.setup-row[hidden] { display: none; }
.setup-lab { flex: none; width: 3.6rem; font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.setup-row .lane-pick { padding-left: 4px; margin-left: auto; }
.setup-row .play-as { margin: 0; flex: 1; justify-content: flex-end; }
.setup-row .play-as select { max-width: 100%; }
.seg { display: inline-flex; margin-left: auto; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.seg button { padding: 6px 11px; border: 0; background: none; color: var(--muted); font: inherit; font-size: 0.82rem; font-weight: 600; cursor: pointer; }
.seg button.on { background: var(--gold); color: #1a1500; }
.seg button[data-setup-hard="1"].on { background: #ff3341; color: #fff; }
.setup-range { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; }
.setup-range button { width: 34px; height: 34px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.09); color: var(--gold); font-size: 1.2rem; line-height: 1; cursor: pointer; }
.setup-range button:hover { background: rgba(255, 217, 120, 0.2); color: #fff; }
.setup-range span { min-width: 8.5em; text-align: center; font-size: 0.85rem; color: #fff; }
.setup-best { min-height: 1.2em; margin: 0 0 10px; text-align: center; font-size: 0.78rem; color: var(--muted); }
.setup-start { display: block; width: min(100%, 320px); margin: 0 auto 8px; text-align: center; }
@media (max-width: 520px) {
  .setup-row { padding: 6px 8px; gap: 6px; }
  .setup-lab { width: 3.1rem; }
  .seg button { padding: 6px 8px; font-size: 0.78rem; }
}

/* held notes: a dot with a trail that has to be held */
.tail-clip { position: absolute; left: 50%; top: 0; width: 16px; margin-left: -8px; overflow: hidden; pointer-events: none; z-index: 0; }
.tail { position: absolute; left: 0; right: 0; top: 0; border-radius: 8px 8px 4px 4px; background: linear-gradient(to top, color-mix(in srgb, var(--c) 80%, #fff), color-mix(in srgb, var(--c) 45%, transparent)); box-shadow: 0 0 10px var(--c); opacity: 0.85; transform: translateY(var(--y0, -200px)); animation: tailfall linear forwards; }
.tail.held { opacity: 1; background: linear-gradient(to top, #fff, var(--c)); box-shadow: 0 0 18px var(--c), 0 0 4px #fff; }
.tail.broke { background: #6d728a; box-shadow: none; opacity: 0.55; }
.tail.done { opacity: 0; transition: opacity 0.2s; }
@keyframes tailfall { from { transform: translateY(var(--y0, -200px)); } to { transform: translateY(var(--y1, 300px)); } }
.lane.holding { background: linear-gradient(to bottom, rgba(255, 255, 255, 0.03), color-mix(in srgb, var(--c) 36%, transparent)); }
.lane.holding .pad { filter: brightness(1.7) drop-shadow(0 0 10px var(--c)); }
@media (prefers-reduced-motion: reduce) { .tail { transition: none; } }

/* scales that go together */
.fit-btn { flex: none; min-width: 30px; height: 30px; padding: 0 9px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255, 255, 255, 0.06); color: var(--gold); font: inherit; font-size: 0.78rem; font-weight: 700; cursor: pointer; }
.scale-row .fit-btn { width: 30px; padding: 0; font-size: 0.9rem; }
.fit-btn:hover, .fit-btn:focus-visible { background: rgba(255, 217, 120, 0.2); color: #fff; }
.fit-dialog { width: min(560px, calc(100vw - 16px)); }
.fit-dialog .lb-card { max-height: calc(100dvh - 32px); overflow-y: auto; }
.fit-src { display: flex; flex-wrap: wrap; gap: 8px 14px; justify-content: center; margin: 0 0 10px; font-size: 0.85rem; color: var(--muted); }
.fit-src label { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; }
.fit-src select { text-transform: none; letter-spacing: 0; font: inherit; font-size: 0.88rem; padding: 5px 10px; border: 1px solid var(--line); border-radius: 10px; background: #10183a; color: #fff; max-width: 60vw; }
.fit-layers { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 0 0 10px; }
.fit-layers button { padding: 5px 12px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255, 255, 255, 0.04); color: var(--text); font: inherit; font-size: 0.78rem; cursor: pointer; }
.fit-layers button.on { background: var(--gold); border-color: var(--gold); color: #1a1500; }
.fit-sum { margin: 0 0 12px; padding: 9px 12px; border-radius: 12px; background: rgba(255, 217, 120, 0.08); border: 1px solid rgba(255, 217, 120, 0.25); font-size: 0.85rem; line-height: 1.45; text-align: center; }
.fit-sum b { color: var(--gold); }
.fit-group { margin: 0 0 14px; }
.fit-group h4 { margin: 0 0 2px; font-size: 0.88rem; color: var(--gold); letter-spacing: 0.04em; }
.fit-group p { margin: 0 0 6px; font-size: 0.78rem; line-height: 1.4; color: var(--muted); }
.fit-group.is-warn h4 { color: #ff9aa6; }
.fit-row { display: flex; align-items: center; gap: 8px; padding: 6px 10px; margin: 0 0 4px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255, 255, 255, 0.03); }
.fit-name { flex: 1 1 auto; min-width: 0; font-size: 0.86rem; font-weight: 600; }
.fit-name small { display: block; font-weight: 400; font-size: 0.72rem; color: var(--muted); letter-spacing: 0.06em; }
.fit-row button { flex: none; padding: 5px 12px; border: 0; border-radius: 999px; background: var(--gold); color: #1a1500; font: inherit; font-size: 0.78rem; font-weight: 700; cursor: pointer; }
.ly-notes .ly-scale { color: var(--gold); }

/* a taller play area, and a slimmer sound wheel */
.song-lanes { height: 430px; }
@media (max-width: 420px) { .song-lanes { height: 410px; } }
@media (hover: hover) and (pointer: fine) { .song-stage .song-lanes { height: 450px; } }
.wheel-track { padding: 8px 0 15px; }
.wheel-item { padding: 2px 16px; }
.wheel-item::after { bottom: -8px; height: 7px; }
.wheel-item.is-center::after { height: 10px; }
.wheel-window { top: 4px; bottom: 5px; }
.wheel-notch { border-left-width: 5px; border-right-width: 5px; border-top-width: 7px; margin-left: -5px; }
.sr-diag { margin: 6px 0 4px; font-size: 0.8rem; line-height: 1.45; color: var(--muted); text-align: center; }
.sr-diag b { color: var(--gold); font-weight: 600; }
.sr-fix { display: block; margin: 0 auto 8px; }
.sr-fix[hidden], .sr-diag[hidden] { display: none; }

/* speed slider, and the touch calibration */
.setup-slider { display: flex; align-items: center; gap: 10px; flex: 1; justify-content: flex-end; }
.setup-slider input { width: min(190px, 48vw); accent-color: var(--gold); }
.setup-slider b { min-width: 3em; text-align: right; color: var(--gold); font-weight: 600; font-size: 0.9rem; }
.setup-row .fit-btn { margin-left: 4px; height: 28px; font-size: 0.72rem; }
.cal-dialog { width: min(360px, calc(100vw - 20px)); }
.cal-lane { position: relative; height: 240px; margin: 4px auto 10px; width: 150px; border: 1px solid var(--line); border-radius: 16px; background: linear-gradient(#070b1d, #0d1430); overflow: hidden; touch-action: none; user-select: none; -webkit-user-select: none; cursor: pointer; }
.cal-ring { position: absolute; left: 50%; bottom: 20px; width: 54px; height: 54px; margin-left: -27px; border: 4px solid #fff; border-radius: 50%; box-shadow: 0 0 14px rgba(255, 255, 255, 0.5); }
.cal-dot { position: absolute; left: 50%; top: 0; width: 44px; height: 44px; margin-left: -22px; border-radius: 50%; background: radial-gradient(circle at 34% 28%, #fff 0, #ffd978 45%, #b8860b 100%); box-shadow: 0 0 14px #ffd978; will-change: transform; }
.cal-lane.is-hit .cal-ring { background: rgba(255, 255, 255, 0.25); }
.cal-count { min-height: 1.3em; margin: 0 0 8px; text-align: center; font-size: 0.85rem; color: var(--gold); }

.setup-row { flex-wrap: wrap; row-gap: 4px; }
.setup-row .setup-range span { min-width: 4.5em; }
.setup-slider input { width: min(150px, 38vw); }
@media (max-width: 520px) { .setup-row .seg button { padding: 6px 7px; } .setup-lab { width: 3rem; } .setup-row .play-as select { max-width: 52vw; } }

/* where to tap: the bright band is the "perfect" window, the faint one is "good"; gems light up as they enter each */
.zone-g, .zone-p { position: absolute; left: 3%; right: 3%; bottom: 0; pointer-events: none; border-radius: 10px; transform: translateY(50%); z-index: 0; }
.zone-g { height: var(--zone-g, 90px); background: linear-gradient(to bottom, transparent, color-mix(in srgb, var(--c) 16%, transparent) 30%, color-mix(in srgb, var(--c) 16%, transparent) 70%, transparent); }
.zone-p { height: var(--zone-p, 36px); background: color-mix(in srgb, var(--c) 34%, transparent); box-shadow: 0 0 14px color-mix(in srgb, var(--c) 45%, transparent); border-top: 1px solid color-mix(in srgb, var(--c) 80%, #fff); border-bottom: 1px solid color-mix(in srgb, var(--c) 80%, #fff); }
.gem.in-good { box-shadow: 0 0 14px var(--c), 0 0 0 3px rgba(255, 255, 255, 0.5); }
.gem.in-perfect { box-shadow: 0 0 22px #fff, 0 0 0 4px #ffe27a, 0 0 0 7px rgba(255, 226, 122, 0.35); filter: brightness(1.2); }
.beat-layer { position: absolute; left: 6px; right: 6px; top: 6px; bottom: calc(6px + var(--pad, 78px)); pointer-events: none; z-index: 1; overflow: visible; }
.beat-line { position: absolute; left: 0; right: 0; top: calc(var(--gem, 34px) / 2); height: 1px; background: rgba(255, 255, 255, 0.11); transform: translateY(-48px); animation: gemfall linear forwards; }
.beat-line.is-bar { height: 2px; background: rgba(255, 255, 255, 0.26); }
.pad-fb { position: absolute; left: 50%; bottom: calc(var(--pad, 78px) - 2px); transform: translateX(-50%); font: 800 0.62rem/1 inherit; font-family: inherit; letter-spacing: 0.08em; white-space: nowrap; pointer-events: none; opacity: 0; z-index: 5; text-shadow: 0 1px 3px #000; }
.pad-fb.show { animation: fbpop 0.7s ease-out forwards; }
.pad-fb.is-perfect { color: #7dffa3; } .pad-fb.is-early { color: #7ad7ff; } .pad-fb.is-late { color: #ffb066; }
@keyframes fbpop { 0% { opacity: 0; transform: translate(-50%, 6px); } 15% { opacity: 1; transform: translate(-50%, 0); } 70% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -16px); } }
@media (max-width: 420px) { .pad-fb { font-size: 0.55rem; } }

/* feel: a taller board, a toolbar of buttons, the score on the board, lanes that glow before a gem, gems that shatter */
.song-stage { position: relative; }
.song-stage:not(.is-rec) .song-lanes { height: clamp(400px, calc(100dvh - 300px), 720px); }
@media (hover: hover) and (pointer: fine) { .song-stage:not(.is-rec) .song-lanes { height: clamp(430px, calc(100dvh - 330px), 640px); } }
.song-stage:not(.is-rec):not([hidden]) .inst-tools { display: none; }
.song-stage:not(.is-rec):not([hidden]) ~ .route-game .game-status,
.song-stage:not(.is-rec):not([hidden]) ~ .route-game .game-controls,
.song-stage:not(.is-rec):not([hidden]) ~ .route-game .game-score,
.song-stage:not(.is-rec):not([hidden]) ~ .route-game .game-taps { display: none; }
.song-toolbar { display: flex; gap: 6px; margin: 8px 0 0; }
.song-toolbar[hidden] { display: none; }
.song-toolbar button { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px 2px 7px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255, 255, 255, 0.05); color: var(--text); font: inherit; font-size: 0.68rem; font-weight: 600; letter-spacing: 0.04em; cursor: pointer; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.song-toolbar button:active, .song-toolbar button[aria-expanded="true"] { background: rgba(255, 217, 120, 0.22); border-color: var(--gold); color: #fff; }
.song-toolbar button[aria-pressed="false"] { opacity: 0.6; }
.song-toolbar button[aria-pressed="false"] .tb-wave { display: none; }
.song-stage:not(.is-rec) .range-bar { position: absolute; left: 6px; right: 6px; bottom: 74px; z-index: 30; margin: 0; padding: 10px 12px; border: 1px solid var(--gold); border-radius: 16px; background: rgba(7, 11, 29, 0.97); box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6); }
.song-hud { position: absolute; top: 8px; left: 12px; z-index: 7; display: flex; align-items: baseline; gap: 10px; pointer-events: none; font-weight: 800; text-shadow: 0 1px 4px #000; }
.song-hud b { font-size: 1.15rem; color: #fff; letter-spacing: 0.02em; }
.song-hud span { font-size: 0.72rem; color: var(--gold); letter-spacing: 0.06em; }
.song-rating { top: 9%; }
.song-rating b { font-size: 1.15rem; letter-spacing: 0.1em; }
.song-rating small { font-size: 0.66rem; }
.song-rating.count b { font-size: 2.4rem; }
.lane.coming { background: linear-gradient(to bottom, rgba(255, 255, 255, 0.02), color-mix(in srgb, var(--c) 24%, transparent)); }
.lane.coming .pad svg { filter: drop-shadow(0 0 7px var(--c)); }
.lane.coming .pad { border-top-color: color-mix(in srgb, var(--c) 100%, #fff 25%); }
.lane.miss-flash { background: linear-gradient(to bottom, rgba(255, 51, 65, 0.02), rgba(255, 51, 65, 0.3)); }
.gem.missed { background: #5b6078; opacity: 0.55; box-shadow: none; filter: grayscale(1); }
.gem.missed::before { display: none; }
.gem.missed::after { content: '\00d7'; position: absolute; inset: 0; display: grid; place-items: center; color: #e8ebff; font-size: 1.5em; font-weight: 800; line-height: 1; }
.shatter { position: absolute; left: 50%; width: 0; height: 0; pointer-events: none; z-index: 6; }
.shard { position: absolute; left: -5px; top: -7px; width: 10px; height: 14px; background: var(--c); clip-path: polygon(50% 0, 100% 85%, 0 100%); box-shadow: 0 0 6px var(--c); animation: shard 0.46s ease-out forwards; }
@keyframes shard { 0% { transform: translate(0, 0) rotate(0) scale(1.1); opacity: 1; } 100% { transform: translate(var(--dx), var(--dy)) rotate(var(--rot)) scale(0.25); opacity: 0; } }
.haptic-sw { position: fixed; left: 0; top: 0; width: 2px; height: 2px; overflow: hidden; opacity: 0.01; pointer-events: none; z-index: -1; }
.mix-buzz { display: flex; align-items: center; gap: 8px; justify-content: center; margin: 10px 0 4px; font-size: 0.85rem; color: var(--muted); }
html.song-playing .hero-bg img, html.song-playing .hero-logo-wrap::before, html.song-playing .scroll-cue::after, html.song-playing .lf-bloom g { animation-play-state: paused !important; }
@media (prefers-reduced-motion: reduce) { .shard { animation-duration: 0.2s; } }

.mix-extra { display: grid; gap: 8px; margin: 12px 0 4px; }
.mix-extra label { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 0.85rem; color: var(--muted); }
.mix-extra input { flex: 1; max-width: 55%; accent-color: var(--gold); }
.mix-extra b { min-width: 2.8em; text-align: right; color: var(--gold); font-weight: 600; }

/* the Holiday Village section on the home page */
.village-eyebrow { margin-top: 18px; }
.village-info { display: grid; gap: 2px; margin: 18px 0; padding: 12px 16px; border: 1px solid rgba(255, 217, 120, 0.35); border-radius: 14px; background: rgba(255, 217, 120, 0.06); }
.village-info b { color: var(--gold); font-size: 1.05rem; }
.village-info span { color: var(--muted); font-size: 0.92rem; }
@media (max-width: 900px) {
  #village .village-split { gap: 0; max-width: 560px; }
  #village .village-photo { border-radius: 24px 24px 0 0; border-bottom: 0; box-shadow: none; }
  #village .village-photo img { aspect-ratio: 16 / 10; object-fit: cover; display: block; }
  #village .village-body { position: relative; text-align: center; padding: 0 20px 28px; border: 1px solid var(--line); border-top: 0; border-radius: 0 0 24px 24px; background: linear-gradient(#0d1430, #0a0f26); box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45); }
  #village .village-body::before { content: ''; position: absolute; left: 0; right: 0; top: -46px; height: 46px; background: linear-gradient(to top, #0d1430, rgba(13, 20, 48, 0)); pointer-events: none; }
  #village .hv-logo { position: relative; z-index: 2; display: block; width: min(230px, 62vw); margin: -58px auto 0; filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.7)); }
  #village .village-eyebrow { margin-top: 12px; }
  #village h2 { font-size: clamp(1.5rem, 6.4vw, 1.9rem); margin-bottom: 10px; }
  #village .lead { font-size: 1rem; }
  #village .village-info { text-align: center; }
  #village .village-cta .btn { display: block; width: 100%; text-align: center; }
}
#village .village-info b { color: var(--gold); }
@media (max-width: 900px) { #village .village-cta .btn { white-space: nowrap; font-size: 0.95rem; letter-spacing: 0.03em; padding-left: 12px; padding-right: 12px; } }

/* the "favorite holiday tradition" section: same words, a calmer layout */
.tradition-included { margin: 20px 0; padding: 16px 18px; border-radius: 18px; border: 1px solid rgba(255, 217, 120, 0.3); background: linear-gradient(160deg, rgba(224, 52, 74, 0.14), rgba(255, 217, 120, 0.05)); line-height: 1.55; }
.rotary-note { display: flex; align-items: center; gap: 14px; margin: 0 0 22px; font-size: 0.88rem; line-height: 1.5; color: var(--muted); }
.rotary-note img { flex: none; width: 42px; height: auto; }
.tradition-cta { margin: 0; }
@media (max-width: 900px) {
  #tradition h2 { font-size: clamp(1.6rem, 7vw, 2rem); }
  #tradition .lead { font-size: 1.05rem; line-height: 1.55; }
  #tradition .tradition-cta .btn { display: block; text-align: center; }
}
