:root {
  --night: #080c1c; --card: #121a32; --card-light: #19223e;
  --pink: #ef3995; --pink-hover: #ff60ad; --gold: #f7c75b;
  --white: #f8f9ff; --muted: #abb4d0; --border: #27304a;
  --radius: 24px;
  color-scheme: dark; font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--night); color: var(--white);
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: radial-gradient(ellipse at 85% 0, #39163244, transparent 40%), var(--night); }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--pink-hover); }
button, input, select, textarea { font: inherit; }
button, .button { display: inline-flex; justify-content: center; align-items: center; gap: .8rem; min-height: 48px; padding: .8rem 1.3rem; border-radius: 15px; border: 1px solid transparent; font-weight: 750; cursor: pointer; text-align: center; transition: background .15s, transform .15s; }
button:hover, .button:hover { transform: translateY(-1px); }
button:disabled { opacity: .5; cursor: wait; transform: none; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.primary { background: var(--pink); color: white; box-shadow: 0 8px 26px #ef399523; }
.primary:hover { background: var(--pink-hover); color: white; }
.secondary { background: var(--card-light); border-color: var(--border); color: white; }
.text-button { min-height: 44px; padding: .5rem; background: transparent; color: var(--muted); font-size: .85rem; }
.danger { color: #ff9bac; }
.large { min-height: 60px; padding: 1rem 1.8rem; }
.full { width: 100%; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(2rem, 4vw, 3.5rem); line-height: 1.08; letter-spacing: -.045em; margin-bottom: 1.5rem; }
h2 { font-size: 1.35rem; letter-spacing: -.025em; }
h3 { font-size: 1rem; }
p { line-height: 1.65; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.gold-text { color: var(--gold); }
.pink-text { color: var(--pink-hover); }
.lead { color: #d5daed; font-size: 1.2rem; line-height: 1.7; }
.eyebrow { display: block; font-size: .7rem; font-weight: 800; letter-spacing: .16em; margin-bottom: 1rem; }
.quiet-link { color: var(--muted); font-size: .88rem; }
.topbar { max-width: 1180px; margin: auto; height: 96px; display: flex; align-items: center; justify-content: space-between; padding: 0 28px; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .75rem; font-size: 1.65rem; font-weight: 800; letter-spacing: -.065em; }
.brand-sub { display: block; color: var(--muted); font-size: .55rem; letter-spacing: .27em; margin-top: -.15rem; }
.brand-icon { display: grid; place-items: center; background: var(--pink); width: 43px; height: 43px; border-radius: 15px; font-size: 1.8rem; color: white; box-shadow: 0 0 28px #ef399526; }
.landing { max-width: 1180px; margin: 3rem auto; padding: 2rem 28px; display: grid; grid-template-columns: 1.2fr 1fr; align-items: center; gap: 3rem; }
.landing h1 { font-size: clamp(3rem, 5.5vw, 5rem); line-height: 1.07; }
.landing h1 em { color: var(--pink); font-style: normal; }
.landing .button { margin: 1rem 0; min-width: 285px; justify-content: space-between; }
.pulse-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 14px #f7c75b66; margin-right: .5rem; }
.steps { display: flex; gap: 2rem; margin-top: 3rem; color: var(--muted); font-size: .8rem; }
.steps b { display: block; color: var(--gold); font-size: 1.15rem; margin-bottom: .5rem; }
.landing-art { position: relative; display: grid; place-items: center; aspect-ratio: 1; }
.vinyl { display: grid; place-items: center; width: 90%; aspect-ratio: 1; border-radius: 50%; background: repeating-radial-gradient(circle, #151a2c 0 3px, #25253c 4px 5px, #0c1020 6px 9px); border: 1px solid #41405a; box-shadow: 0 0 80px #e42f881a, 20px 30px 50px #0008; transform: rotate(-14deg); }
.vinyl-label { width: 40%; aspect-ratio: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: 50%; background: var(--pink); font-size: 6rem; font-weight: 900; line-height: 1; }
.vinyl-label span { font-size: .55rem; letter-spacing: .2em; }
.floating-note { position: absolute; right: 5%; top: 3%; font-size: 5rem; color: var(--gold); transform: rotate(15deg); }
.art-caption { position: absolute; bottom: 0; padding: 1rem 1.5rem; background: #121a32eb; border: 1px solid var(--border); border-radius: 16px; font-size: .8rem; transform: rotate(-4deg); }
.workspace { max-width: 1120px; padding: 36px 24px 90px; margin: auto; }
.narrow, .form-page { max-width: 540px; }
.narrow { margin: 3rem auto; padding: 0 24px; }
.form-page { margin: 1rem auto 2rem; }
.card { background: var(--card); border: 1px solid var(--border); padding: 24px; border-radius: var(--radius); margin-bottom: 1rem; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); gap: 1rem; margin-bottom: 2rem; }
.card-grid .card { margin: 0; }
.section-heading { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin: 1rem 0; }
.section-heading h2 { margin: 0; }
.button-row { display: flex; gap: .75rem; flex-wrap: wrap; }
.button-row.equal > * { flex: 1; }
.artist-nav { max-width: 1120px; margin: auto; padding: 1rem 24px; display: flex; gap: 1.8rem; border-bottom: 1px solid var(--border); overflow-x: auto; white-space: nowrap; font-size: .88rem; }
.artist-nav a { padding: .4rem 0; }
.card-bottom { display: flex; justify-content: space-between; border-top: 1px solid var(--border); padding-top: 1rem; font-size: .8rem; }
.session-card h2 { margin: 1.3rem 0 .6rem; }
.badge { display: inline-flex; align-items: center; padding: .4rem .7rem; border-radius: 9px; background: #abb4d012; font-size: .68rem; font-weight: 800; color: var(--muted); }
.badge.gold { color: var(--gold); background: #f7c75b13; }
label { display: block; margin: .8rem 0 .5rem; color: #e2e7f7; font-weight: 650; font-size: .86rem; }
input, select, textarea { width: 100%; min-height: 48px; border-radius: 12px; border: 1px solid #34405f; background: #0c1226; color: white; padding: .85rem 1rem; margin-bottom: .7rem; }
textarea { min-height: 110px; resize: vertical; }
input[type=checkbox] { width: 22px; min-height: 22px; vertical-align: middle; accent-color: var(--pink); }
input[type=file] { font-size: .82rem; }
form ul { color: #ffa6b7; font-size: .8rem; padding-left: 1.3rem; }
.form-stack { display: flex; flex-direction: column; }
.form-stack label { margin-top: .3rem; }
form button { margin-top: .4rem; }
.form-stack p { margin: .5rem 0 1.2rem; }
.compact { padding: 16px 22px; }
summary { cursor: pointer; }
.table-scroll { overflow: auto; }
table { border-collapse: collapse; width: 100%; white-space: nowrap; font-size: .85rem; }
th, td { text-align: left; padding: .8rem; border-bottom: 1px solid var(--border); }
th { color: var(--muted); }
.confirm-import { margin: 2rem 0; }
.break-word { overflow-wrap: anywhere; }
.flash-area { max-width: 800px; margin: auto; padding: 0 20px; }
.flash { border-radius: 12px; padding: 1rem; background: #192f32; border: 1px solid #305f57; font-size: .9rem; }
.flash.error { background: #361b31; border-color: #673149; color: #ffd2df; }
.empty { text-align: center; padding: 2.5rem 1.5rem; color: var(--muted); }
.empty h2 { color: white; }
.music-tile { display: inline-grid; place-items: center; width: 58px; height: 58px; border-radius: 18px; background: #ef39951a; border: 1px solid #ef399535; color: var(--pink-hover); font-size: 2rem; margin-bottom: 1.4rem; }
.join-page { text-align: center; }
.join-page .card { text-align: left; }
.code-input { font-size: 2.4rem; text-align: center; letter-spacing: .25em; font-variant-numeric: tabular-nums; padding: .7rem .2rem .7rem .7rem; }
.stage-shell { max-width: 520px; padding: 12px 18px 60px; margin: auto; }
.stage-title { font-size: 1.5rem; margin: 0; }
.stage-shell .eyebrow { margin-bottom: .55rem; }
.connection { color: var(--muted); font-size: .65rem; white-space: nowrap; }
.connection.online { color: #9bdfc5; }
.stage-meta { display: flex; justify-content: space-between; align-items: center; font-size: .8rem; margin: 1rem 0; }
.code-inline { letter-spacing: .13em; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--card); border: 1px solid var(--border); border-radius: 17px; padding: .9rem .3rem; margin-bottom: 1rem; text-align: center; }
.stats b { display: block; font-size: 1.25rem; }
.stats span { font-size: .6rem; color: var(--muted); }
.current-card { background: radial-gradient(ellipse at right top, #f7c75b0e, transparent 80%), var(--card); border-color: #f7c75b44; padding: 22px; }
.current-card h2 { font-size: clamp(1.65rem, 5vw, 2.2rem); margin: .7rem 0 .4rem; line-height: 1.1; }
.current-card p { color: var(--muted); margin: 0; }
.finish-song { min-height: 76px; font-size: 1.05rem; margin: 0 0 1rem; border-radius: 20px; }
.next-card h3 { margin: .7rem 0 .2rem; font-size: 1.25rem; }
.next-card p { margin: .3rem 0 0; font-size: .85rem; }
.up-next { margin: 1.5rem 0; }
.up-next h2 { display: flex; justify-content: space-between; align-items: center; }
.compact-song { display: flex; gap: 1rem; align-items: center; padding: .55rem 0; border-bottom: 1px solid #27304a88; font-size: .8rem; }
.compact-song > div { flex: 1; }
.compact-song small { display: block; color: var(--muted); margin-top: .15rem; }
.stage-footer { display: flex; justify-content: space-between; align-items: center; gap: .6rem; margin-top: 1.5rem; flex-wrap: wrap; }
.stage-footer .button { font-size: .8rem; }
.qr-screen { max-width: 800px; margin: 1rem auto 4rem; text-align: center; padding: 16px 24px; }
.qr-screen:fullscreen { background: var(--night); max-width: none; overflow: auto; margin: 0; }
.qr-screen h1 { margin-bottom: .6rem; }
.qr-frame { background: white; display: inline-block; padding: 10px; border-radius: 24px; box-shadow: 0 0 70px #ef399522; margin-bottom: 1rem; }
.qr-frame img { display: block; max-width: 66vw; height: auto; }
.join-code { color: var(--gold); font-size: clamp(2.8rem, 8vw, 4.5rem); letter-spacing: .18em; font-weight: 800; margin: -.7rem 0 .6rem; }
.qr-current { margin: 2rem 0 1rem; }
.qr-current h2 { font-size: 1.3rem; }
.public-shell { max-width: 760px; margin: auto; padding: 16px 22px 110px; }
.concert-heading { display: flex; align-items: center; gap: 1rem; margin: .5rem 0 2rem; }
.artist-avatar { width: 66px; height: 66px; border-radius: 22px; background: linear-gradient(140deg, #ef3995, #8c308a); display: grid; place-items: center; font-size: 2rem; font-weight: 800; }
.concert-heading h1 { margin: .3rem 0; font-size: 2rem; }
.concert-heading .eyebrow { margin: 0; }
.concert-heading p { font-size: .8rem; margin: 0; }
.filters { display: flex; gap: .5rem; margin-bottom: 1rem; flex-wrap: wrap; }
.filters input { flex: 1 1 250px; }
.filters select { flex: 1 1 160px; width: auto; }
.filters button { margin: 0 0 .7rem; }
.vote-meter { display: flex; justify-content: space-between; align-items: center; padding: 1rem 0; font-size: .8rem; }
.vote-meter b { color: var(--pink-hover); font-size: 1.1rem; }
.song-row { display: flex; align-items: center; gap: .85rem; padding: 14px; border-radius: 18px; margin-bottom: .65rem; }
.song-row.is-voted { border-color: #ef399570; background: #211b36; }
.song-cover { width: 48px; height: 52px; border-radius: 12px; flex-shrink: 0; display: grid; place-items: center; background: linear-gradient(145deg, #283a5a, #3b254c); color: var(--gold); font-size: 1.6rem; }
.song-info { flex: 1; min-width: 0; }
.song-info h3 { margin: 0 0 .2rem; font-size: .94rem; line-height: 1.3; }
.song-info p { margin: 0; color: var(--muted); font-size: .77rem; line-height: 1.4; }
.song-tags { display: flex; gap: .3rem; margin-top: .4rem; flex-wrap: wrap; }
.song-tags span { font-size: .56rem; border-radius: 5px; padding: .2rem .4rem; background: #abb4d00e; color: var(--muted); }
.vote-button { min-width: 53px; min-height: 55px; padding: .4rem .55rem; margin: 0; flex-direction: column; gap: 0; color: var(--pink-hover); background: #ef399511; border-color: #ef399530; border-radius: 14px; }
.vote-button span { font-size: 1.25rem; line-height: 1.2; }
.vote-button b { font-size: .72rem; }
.vote-button small { font-size: .55rem; }
.vote-button.selected { background: var(--pink); color: white; }
.song-number { width: 24px; text-align: center; color: var(--gold); font-weight: 800; flex-shrink: 0; }
.bottom-nav { position: fixed; z-index: 20; bottom: 0; left: 50%; transform: translateX(-50%); width: min(100%, 760px); display: grid; grid-template-columns: repeat(4, 1fr); background: #0f152af7; border: 1px solid var(--border); border-bottom: 0; border-radius: 22px 22px 0 0; padding: .7rem .3rem max(.7rem, env(safe-area-inset-bottom)); backdrop-filter: blur(15px); }
.bottom-nav a { text-align: center; color: var(--muted); font-size: .62rem; padding: .2rem; }
.bottom-nav span { display: block; font-size: 1.45rem; margin-bottom: .25rem; }
.bottom-nav a.active { color: var(--pink-hover); }
.notice { padding: .8rem 1rem; border-radius: 12px; background: #f7c75b13; color: var(--gold); font-size: .8rem; }
.public-current { text-align: center; padding: 2.5rem 1rem; }
.sound-bars { height: 55px; display: flex; align-items: center; justify-content: center; gap: 6px; margin: 1.5rem; }
.sound-bars i { width: 7px; border-radius: 10px; height: 30px; background: var(--gold); }
.sound-bars i:nth-child(2n) { height: 50px; }.sound-bars i:nth-child(3n) { height: 20px; }
.end-screen { text-align: center; padding: 2rem 1.5rem; }
.end-screen h1 { font-size: clamp(2rem, 7vw, 3rem); }
.social-buttons { display: grid; gap: .8rem; margin: 2rem 0; }
.toast { position: fixed; z-index: 100; top: 12px; left: 50%; transform: translateX(-50%); width: min(90%, 500px); padding: 1rem; background: #361b31; border: 1px solid #ef399580; border-radius: 16px; box-shadow: 0 8px 40px #0008; font-size: .9rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
@media (max-width: 700px), (max-width: 1100px) and (pointer: coarse) {
 .topbar { height: 78px; padding: 0 20px; }
 .topbar .brand { font-size: 1.9rem; }
 .topbar .brand-sub { font-size: .66rem; }
 .topbar .quiet-link { font-size: 1.05rem; }
 .landing { margin: 1rem auto; grid-template-columns: 1fr; padding: 1rem 24px 3rem; gap: 1rem; }
 .landing-art { max-width: 280px; margin: 1rem auto; width: 100%; }
 .landing h1 { font-size: 3rem; }.landing .lead { font-size: 1rem; }
 .landing .eyebrow { font-size: .6rem; }.vinyl-label { font-size: 4rem; }
 .section-heading { align-items: flex-start; flex-wrap: wrap; }
 .section-heading h1 { font-size: 2.2rem; }
 .workspace { padding: 20px 18px 60px; }
 .artist-nav { padding: .5rem 20px; gap: 1.4rem; font-size: .8rem; }
 .card { padding: 20px; }
 .song-row .badge { font-size: .55rem; }
 .public-shell { max-width: 920px; padding: 12px 24px 126px; }
 .public-shell h2 { font-size: 2.15rem; line-height: 1.15; }
 .public-shell .concert-heading { margin-bottom: 1.4rem; }
 .public-shell .artist-avatar { width: 72px; height: 72px; font-size: 2.25rem; }
 .public-shell .concert-heading h1 { font-size: 2.7rem; }
 .public-shell .concert-heading p { font-size: 1.45rem; }
 .public-shell .concert-heading .eyebrow { font-size: 1.15rem; }
 .public-shell .filters { display: grid; grid-template-columns: 1fr; gap: .25rem; }
 .public-shell .filters input,
 .public-shell .filters select { width: 100%; min-height: 70px; margin-bottom: .5rem; font-size: 1.45rem; }
 .public-shell .filters button { min-height: 68px; font-size: 1.4rem; }
 .public-shell .vote-meter { padding: 1.25rem .15rem; font-size: 1.4rem; gap: .75rem; }
 .public-shell .vote-meter b { font-size: 1.65rem; }
 .public-shell .vote-meter .badge { padding: .65rem .8rem; font-size: .9rem; }
 .public-shell .small { font-size: 1.35rem; line-height: 1.5; }
 .public-shell .song-row { min-height: 128px; padding: 22px 16px; gap: 1rem; border-radius: 22px; margin-bottom: 1rem; }
 .public-shell .song-cover { width: 68px; height: 76px; border-radius: 17px; font-size: 2.2rem; }
 .public-shell .song-number { width: 40px; font-size: 1.5rem; }
 .public-shell .song-info h3 { margin-bottom: .4rem; font-size: 1.7rem; line-height: 1.2; }
 .public-shell .song-info p { font-size: 1.4rem; line-height: 1.3; }
 .public-shell .song-tags { margin-top: .55rem; gap: .4rem; }
 .public-shell .song-tags span { padding: .42rem .6rem; font-size: 1.02rem; }
 .public-shell .vote-button { min-width: 78px; min-height: 82px; padding: .5rem .65rem; border-radius: 18px; }
 .public-shell .vote-button span { font-size: 2rem; }
 .public-shell .vote-button b { font-size: 1.15rem; }
 .public-shell .vote-button small { font-size: .85rem; }
 .public-shell .notice { font-size: 1.15rem; }
 .bottom-nav { min-height: 100px; padding: .7rem .25rem max(.8rem, env(safe-area-inset-bottom)); }
 .bottom-nav a { display: flex; flex-direction: column; justify-content: center; min-height: 72px; font-size: 1.1rem; font-weight: 700; }
 .bottom-nav span { font-size: 2rem; margin-bottom: .2rem; }
 .narrow { margin-top: 1.5rem; }
 .join-page { max-width: 820px; padding-inline: 32px; }
 .join-page .music-tile { width: 76px; height: 76px; font-size: 2.6rem; }
 .join-page .eyebrow { display: inline-block; padding: .75rem 1.15rem; border-radius: 14px; background: #f7c75b18; font-size: 1.8rem; line-height: 1.2; letter-spacing: .12em; }
 .join-page h1 { font-size: 5rem; line-height: 1.04; }
 .join-page > p { font-size: 1.8rem; }
 .join-page .card { padding: 30px; border-radius: 26px; }
 .join-page label { font-size: 1.55rem; }
 .join-page .code-input { min-height: 118px; font-size: 4.2rem; }
 .join-page button { min-height: 92px; font-size: 1.7rem; }
 .stage-shell .section-heading { flex-wrap: nowrap; }
 .steps { gap: 1.3rem; }
}
@media (max-width: 430px) {
 .public-shell { padding-inline: 14px; }
 .join-page { padding-inline: 18px; }
 .join-page .eyebrow { font-size: 1.3rem; }
 .join-page h1 { font-size: 3.5rem; }
 .join-page > p { font-size: 1.35rem; }
 .join-page .card { padding: 22px; }
 .join-page .code-input { font-size: 2.55rem; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
