:root {
  color-scheme: dark;
  --bg: #11131a;
  --surface: #1b1e29;
  --text: #f7f6f2;
  --muted: #aeb4c8;
  --lime: #c8fc68;
  --violet: #c3a2ff;
  --line: #373c4c;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; font-size: 16px; line-height: 1.55; }
[hidden] { display: none !important; }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button, input, textarea { min-height: 48px; }
button { min-width: 48px; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 5px; }
input:focus-visible, textarea:focus-visible { outline-offset: 2px; }
p { margin: 0 0 16px; }
h1, h2, h3 { margin: 0; font-weight: 700; line-height: 1.13; letter-spacing: -.035em; overflow-wrap: anywhere; }
h1 { font-size: clamp(32px, 4vw, 48px); }
h2 { font-size: 26px; margin-bottom: 16px; }
h3 { font-size: 17px; letter-spacing: -.015em; }
strong { font-weight: 650; }
.shell { max-width: 1280px; margin: auto; padding: 0 40px; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 108px; }
.wordmark { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-size: 21px; font-weight: 750; letter-spacing: -.065em; min-height: 48px; }
.wordmark-slash { color: var(--muted); padding: 0 3px; font-weight: 400; }
.brand-mark { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 12px; background: var(--lime); color: var(--bg); font-size: 32px; line-height: 1; }
.brand-dot, .accent { color: var(--lime); }
.badge, .pill { border: 1px solid var(--line); border-radius: 999px; padding: 7px 12px; font-size: 12px; font-weight: 600; white-space: normal; overflow-wrap: anywhere; max-width: 100%; }
.badge { color: var(--lime); letter-spacing: .04em; }
.prototype-note { color: var(--muted); font-size: 13px; border-top: 1px solid var(--line); padding-top: 16px; max-width: 100%; }
.screen { padding: 44px 0 56px; }
.landing { display: grid; grid-template-columns: 1fr 1fr; column-gap: 48px; padding-top: 56px; }
.hero-copy { position: relative; z-index: 1; }
.eyebrow { color: var(--muted); text-transform: uppercase; font-size: 11px; font-weight: 650; letter-spacing: .15em; margin: 0 0 18px; overflow-wrap: anywhere; }
.tiny-line { display: inline-block; vertical-align: middle; width: 22px; height: 2px; background: var(--lime); margin-right: 9px; }
.hero-copy h1 { font-size: clamp(46px, 5.7vw, 76px); line-height: 1.06; letter-spacing: -.055em; }
.intro { color: var(--muted); margin: 28px 0; font-size: 17px; line-height: 1.7; }
.landing-actions { display: flex; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.button { border-radius: 14px; border: 1px solid transparent; min-height: 56px; padding: 14px 22px; font-weight: 650; line-height: 1.3; display: inline-flex; align-items: center; justify-content: center; gap: 24px; transition: background-color 150ms, border-color 150ms; }
.primary { background: var(--lime); color: var(--bg); }
.primary:hover { background: #dcff9f; }
.secondary { background: transparent; border-color: #50576b; color: var(--text); }
.secondary:hover { background: #2a2f3e; }
button:disabled { cursor: default; background: #333c2a; color: #deedcc; }
.fine { color: var(--muted); font-size: 13px; line-height: 1.6; margin-top: 12px; margin-bottom: 0; }
.hero-art { position: relative; isolation: isolate; min-width: 0; height: 480px; margin-top: 12px; border-radius: 36px; background: radial-gradient(ellipse at 50% 45%, #29372c 0, #19221e 38%, #15191c 67%, #15171f 100%); }
.record { position: absolute; width: 310px; height: 310px; top: 74px; left: calc(50% - 155px); border-radius: 50%; background: repeating-radial-gradient(circle at center, #202429 0 1px, #121519 2px 4px); box-shadow: 0 24px 60px #080a0da8; transform: rotate(-17deg); border: 2px solid #3b4143; }
.record::before { content: ''; position: absolute; inset: 12px; border: 1px solid #696f6e; border-radius: 50%; opacity: .3; }
.record-label { position: absolute; inset: 88px; border-radius: 50%; background: var(--lime); color: var(--bg); display: grid; place-content: center; text-align: center; font-size: 22px; font-weight: 800; letter-spacing: -.06em; line-height: 1.1; }
.record-label i { position: absolute; width: 10px; height: 10px; border-radius: 50%; background: #161c1c; top: 62px; left: 62px; border: 2px solid #e6ffc7; }
.art-caption { position: absolute; left: 28px; top: 28px; color: #c1cbbd; font-size: 12px; }
.orbit { position: absolute; inset: 45px 20px; border: 1px solid #7d947244; border-radius: 50%; transform: rotate(-30deg); }
.orbit-two { inset: 80px -5px; transform: rotate(30deg); }
.floating-card { position: absolute; bottom: 52px; left: 24px; right: 24px; background: #252a2f; border: 1px solid #69705b; border-radius: 18px; padding: 16px; display: flex; align-items: center; gap: 12px; transform: rotate(-3deg); box-shadow: 0 20px 30px #080a0a66; }
.floating-card strong { display: block; font-size: 15px; }
.floating-card small { display: block; font-size: 11px; color: #c1c8c9; margin-top: 4px; }
.small-cover { display: grid; place-items: center; flex-shrink: 0; width: 48px; height: 48px; border-radius: 12px; background: #c3a2ff; color: var(--bg); font-size: 35px; }
.art-tag { position: absolute; bottom: 14px; right: 28px; font-size: 11px; color: #c4d0b9; }
.how-strip { grid-column: 1 / -1; display: flex; gap: 40px; justify-content: space-between; border-top: 1px solid var(--line); margin-top: 56px; padding-top: 26px; font-size: 14px; color: var(--muted); }
.how-strip b { color: var(--lime); font-size: 11px; margin-right: 12px; }
.section-heading { display: flex; gap: 24px; justify-content: space-between; align-items: center; margin-bottom: 36px; }
.section-heading .pill { color: var(--lime); }
.lobby-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 24px; }
.stack { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.card { background: var(--surface); border: 1px solid #303543; padding: 28px; border-radius: 24px; min-width: 0; }
.card > p:not(.eyebrow, .fine, .fixture-label, .player) { color: var(--muted); }
.lobby-setup p { margin-bottom: 8px; overflow-wrap: anywhere; }
.lobby-setup .eyebrow { margin-bottom: 10px; }
.lobby-setup strong { color: var(--text); }
.lobby-setup summary { display: flex; align-items: center; min-height: 48px; cursor: pointer; color: var(--lime); font-weight: 650; }
.lobby-setup summary::before { content: '▸'; margin-right: 10px; }
.lobby-setup details[open] summary::before { content: '▾'; }
.lobby-setup .edit-fields label:first-child { margin-top: 12px; }
label { display: block; font-size: 13px; font-weight: 600; margin: 20px 0 8px; }
input, textarea { display: block; border: 1px solid #555d73; border-radius: 12px; padding: 12px 14px; width: 100%; max-width: 100%; background: #151822; color: var(--text); }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: 1; }
textarea { resize: vertical; }
input[readonly] { color: var(--lime); font-size: 13px; }
.row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.spread { justify-content: space-between; }
.spread .eyebrow { margin-bottom: 0; }
.invite-card .row { margin-top: 16px; }
.fixture-label { color: var(--muted); font-size: 12px; margin: 16px 0; }
.song-list { display: grid; gap: 12px; }
.song-row { border: 1px solid var(--line); border-radius: 16px; padding: 16px; min-width: 0; }
.song-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; min-width: 0; }
.song-meta > div:last-child { min-width: 0; }
.song-meta h3, .song-meta p { overflow-wrap: anywhere; }
.song-meta p { margin: 5px 0 0; font-size: 12px; color: var(--muted); }
.song-row .button { min-height: 48px; font-size: 13px; width: 100%; padding: 12px; gap: 8px; }
.song-row .row .button { flex: 1; }
.cover { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; flex-shrink: 0; color: #11131a; font-size: 28px; }
.sun { background: linear-gradient(140deg, #e7b17a, #ef855f 45%, #a66683); }
.violet { background: linear-gradient(140deg, #ccabfa, #9b80d9 45%, #626fbd); }
.lime { background: linear-gradient(140deg, #e1f8b2, #bad58d 45%, #65a693); }
.blue { background: linear-gradient(140deg, #c4e1e5, #86c2d7 45%, #807fb7); }
.join-screen { max-width: 560px; margin: auto; text-align: center; }
.join-screen h1 { margin-bottom: 24px; }
.join-screen > p { color: var(--muted); }
.join-art { width: 80px; height: 80px; border-radius: 26px; background: var(--violet); color: var(--bg); font-size: 64px; display: grid; place-items: center; line-height: 1; margin: 0 auto 24px; transform: rotate(-10deg); }
.join-form { text-align: left; margin-top: 28px; }
.join-form label { margin-top: 0; }
.join-form .button { width: 100%; margin-top: 24px; }
.turn-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 24px; }
.now-card { padding: 24px; }
.now-card .pill { font-size: 11px; }
.track-art { height: 280px; margin: 24px 0 20px; border-radius: 18px; position: relative; overflow: hidden; display: grid; place-items: center; }
.track-art::before, .track-art::after { content: ''; width: 290px; height: 290px; border: 1px solid #191c2744; border-radius: 50%; position: absolute; left: -80px; top: -120px; }
.track-art::after { width: 400px; height: 400px; top: -175px; }
.mini-record { width: 196px; height: 196px; background: repeating-radial-gradient(circle, #252531 0 1px, #11131a 2px 4px); border-radius: 50%; box-shadow: 20px 22px 32px #3b1f3444; display: grid; place-items: center; transform: rotate(-20deg); }
.mini-record span { display: grid; place-items: center; width: 70px; height: 70px; border-radius: 50%; background: var(--text); color: var(--bg); font-size: 52px; line-height: 1; }
.art-number { position: absolute; bottom: 16px; left: 20px; font-size: 11px; color: #171921; font-weight: 650; text-transform: uppercase; letter-spacing: .12em; }
.now-card h2 { font-size: 30px; margin-bottom: 8px; }
.artist { color: var(--muted); font-size: 17px; margin-bottom: 0; }
.theme-card h2 { font-size: 32px; color: var(--lime); }
.divider { height: 1px; background: var(--line); margin: 28px 0; }
.player { display: flex; align-items: center; gap: 12px; }
.avatar { display: grid; place-items: center; background: var(--violet); color: var(--bg); border-radius: 50%; width: 44px; height: 44px; font-size: 16px; font-weight: 700; }
.next-card { margin-top: 20px; display: flex; justify-content: flex-end; }
.next-card .button { min-width: 200px; }
.private-area { margin-top: 40px; }
.private-area h2 { font-size: 23px; margin: 0; }
.privacy-label { font-size: 12px; color: var(--violet); }
.tool-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 20px; }
.tool { display: flex; align-items: center; gap: 18px; text-align: left; padding: 20px; background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: 20px; min-height: 100px; }
.tool:hover { border-color: var(--lime); }
.tool > span:nth-child(2) { flex: 1; min-width: 0; }
.tool strong, .tool small { display: block; }
.tool small { color: var(--muted); font-size: 12px; margin-top: 6px; }
.tool-icon { font-size: 32px; color: var(--lime); width: 32px; flex-shrink: 0; text-align: center; }
.violet-text { color: var(--violet); }
#saved-count { display: inline; color: var(--lime); margin-left: 5px; }
.notice { border-left: 2px solid var(--violet); padding: 12px 16px; background: #252333; border-radius: 0 12px 12px 0; font-size: 14px; margin: 20px 0; overflow-wrap: anywhere; }
footer { padding: 24px 0 32px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 20px; font-size: 11px; color: var(--muted); }
dialog { width: min(600px, calc(100% - 32px)); max-height: calc(100dvh - 32px); border-radius: 28px; padding: 28px; border: 1px solid #52576a; background: var(--surface); color: var(--text); overscroll-behavior: contain; }
dialog::backdrop { background: #05070bbd; }
.sheet-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 24px; }
.sheet-heading h2 { margin: 0; }
.sheet-heading .eyebrow { margin-bottom: 8px; }
.icon-button { background: transparent; color: var(--text); border: 1px solid #52576a; border-radius: 50%; min-width: 48px; }
.vote-options { display: grid; gap: 12px; }
[aria-pressed="true"] { background: #333f28; border-color: var(--lime); color: var(--lime); }
[aria-pressed="true"]::after { content: ' ✓'; }
.preview-text { white-space: pre-wrap; overflow-wrap: anywhere; background: #141720; padding: 18px; border-radius: 12px; min-height: 80px; }
.skip-link { position: fixed; z-index: 5; top: -100px; left: 20px; background: var(--lime); color: var(--bg); padding: 16px; border-radius: 12px; }
.skip-link:focus { top: 12px; }
@media (min-width: 1100px) { .song-picker .song-list { grid-template-columns: 1fr 1fr; } }
@media (max-width: 760px) {
  .shell { padding: 0 20px; }
  .topbar { min-height: 84px; gap: 10px; }
  .wordmark { font-size: 18px; gap: 8px; }
  .brand-mark { width: 32px; height: 32px; font-size: 28px; border-radius: 10px; }
  .badge { padding: 5px 9px; font-size: 10px; }
  .prototype-note { font-size: 12px; }
  .screen { padding: 28px 0 36px; }
  .landing { grid-template-columns: 1fr; gap: 20px; }
  .hero-copy h1 { font-size: 52px; }
  .eyebrow { font-size: 10px; letter-spacing: .12em; }
  .intro { font-size: 15px; margin: 24px 0; }
  .landing-actions { gap: 10px; }
  .landing-actions .button { flex: 1; padding: 14px 12px; gap: 12px; font-size: 14px; }
  .hero-art { height: 340px; margin-top: 16px; }
  .record { width: 230px; height: 230px; top: 44px; left: calc(50% - 115px); }
  .record-label { inset: 65px; font-size: 18px; }
  .record-label i { top: 45px; left: 45px; }
  .art-caption { font-size: 10px; top: 18px; left: 20px; }
  .floating-card { left: 16px; right: 16px; bottom: 43px; padding: 12px; }
  .floating-card strong { font-size: 13px; }
  .floating-card small { font-size: 9px; }
  .how-strip { margin-top: 16px; gap: 16px; flex-direction: column; }
  .lobby-grid, .turn-grid { grid-template-columns: 1fr; }
  #lobby { padding-top: 10px; }
  #lobby .section-heading { gap: 4px; margin-bottom: 10px; }
  #lobby .section-heading .eyebrow { margin-bottom: 3px; }
  #lobby .section-heading h1 { font-size: 26px; }
  #lobby .section-heading .pill { padding: 3px 9px; font-size: 10px; }
  #lobby .lobby-grid, #lobby .stack { gap: 10px; }
  #lobby .card { padding: 12px 16px; border-radius: 18px; }
  #lobby .eyebrow { margin-bottom: 5px; }
  #lobby .lobby-setup p { margin-bottom: 2px; font-size: 13px; line-height: 1.35; }
  #lobby .lobby-setup summary { font-size: 13px; }
  #lobby .invite-card > p:not(.eyebrow, .fine) { font-size: 12px; line-height: 1.35; margin-bottom: 4px; }
  #lobby .invite-card label { margin: 4px 0; font-size: 12px; }
  #lobby .invite-card input { min-height: 44px; padding: 8px 10px; }
  #lobby .invite-card .row { margin-top: 8px; gap: 8px; }
  #lobby .invite-card .button { min-height: 48px; padding: 8px; }
  #lobby .song-picker h2 { font-size: 20px; margin-bottom: 4px; }
  #lobby .song-picker > p:not(.eyebrow, .fixture-label, .fine) { font-size: 12px; line-height: 1.35; margin-bottom: 4px; }
  #lobby .song-picker .fixture-label { margin: 4px 0 8px; font-size: 11px; }
  #lobby .song-row { padding: 8px; }
  #lobby .song-meta { margin-bottom: 6px; gap: 8px; }
  #lobby .song-meta .cover { width: 40px; height: 40px; font-size: 24px; }
  #lobby .song-meta h3 { font-size: 14px; }
  #lobby .song-meta p { margin-top: 1px; font-size: 11px; }
  #lobby .song-meta p:last-child { display: none; }
  #lobby .song-row .button { min-height: 48px; padding: 8px; }
  .section-heading { flex-direction: column; align-items: flex-start; gap: 16px; margin-bottom: 24px; }
  .section-heading h1 { font-size: 32px; }
  .card { padding: 20px; border-radius: 20px; }
  .card h2 { font-size: 25px; }
  .invite-card .row .button { flex: 1; padding: 14px; font-size: 13px; gap: 8px; }
  .song-row { padding: 14px; }
  .track-art { height: 240px; }
  .now-card .row { gap: 10px; }
  .now-card .pill { font-size: 10px; padding: 6px 8px; }
  .now-card h2 { font-size: 28px; }
  .private-area { margin-top: 28px; }
  .private-area h2 { font-size: 21px; }
  #main { padding-top: 20px; }
  #main .section-heading { gap: 10px; margin-bottom: 16px; }
  #main .section-heading h1 { font-size: 24px; }
  #main .section-heading .eyebrow { margin-bottom: 8px; }
  #main .section-heading .pill { padding: 4px 10px; font-size: 11px; }
  .turn-grid { gap: 12px; }
  .now-card { padding: 16px; display: grid; grid-template-columns: 88px minmax(0, 1fr); column-gap: 16px; row-gap: 6px; align-items: center; }
  .now-card > .row { grid-column: 1 / -1; margin-bottom: 6px; }
  .now-card .track-art { grid-column: 1; grid-row: 2 / 5; margin: 0; width: 88px; height: 88px; border-radius: 12px; }
  .now-card .mini-record { width: 68px; height: 68px; }
  .now-card .mini-record span { width: 26px; height: 26px; font-size: 24px; }
  .now-card .art-number, .now-card .fixture-label { display: none; }
  .now-card h2 { grid-column: 2; grid-row: 2; font-size: 22px; margin: 0; align-self: end; }
  .now-card .artist { grid-column: 2; grid-row: 3; font-size: 13px; align-self: start; }
  .theme-card { padding: 14px 16px; }
  .theme-card .eyebrow { margin-bottom: 6px; font-size: 9px; }
  .theme-card h2 { font-size: 20px; margin-bottom: 10px; }
  .theme-card .divider, .theme-card .eyebrow:nth-of-type(2) { display: none; }
  .theme-card .player { font-size: 14px; gap: 8px; margin: 0; }
  .theme-card .avatar { width: 24px; height: 24px; font-size: 11px; }
  #main .private-area { margin-top: 18px; }
  #main .private-area h2 { font-size: 16px; }
  #main .privacy-label { font-size: 10px; }
  .tool-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
  .tool { min-height: 64px; padding: 10px; gap: 8px; text-align: center; justify-content: center; }
  .tool small, .tool > .tool-icon, .tool > span:last-child { display: none; }
  .tool strong { font-size: 14px; }
  .tool:first-child { grid-column: 1 / -1; min-height: 64px; padding: 12px 18px; text-align: left; background: var(--lime); color: var(--bg); }
  .tool:first-child .tool-icon { display: block; color: var(--bg); }
  .tool:first-child strong { font-size: 17px; }
  .tool:first-child small { display: block; color: #333f28; margin-top: 2px; font-size: 11px; }
  .tool:first-child > span:last-child { display: block; }
  .next-card { margin-top: 12px; }
  .next-card .button { min-height: 48px; padding: 10px 16px; font-size: 13px; width: 100%; }
  dialog { padding: 20px; border-radius: 22px; }
  .sheet-heading h2 { font-size: 24px; }
  footer { flex-direction: column; gap: 8px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
