:root {
  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
  color: #202820;
  background: #f6f3ea;
  font-synthesis: none;
  line-height: 1.5;
  --paper: #f6f3ea;
  --ink: #202820;
  --muted: #60645b;
  --panel: #eeebdf;
  --accent: #d6f268;
  --border: #d8d8ca;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
a {
  -webkit-tap-highlight-color: transparent;
}
button,
input {
  font: inherit;
}
button,
a,
input,
summary {
  touch-action: manipulation;
}
a {
  color: inherit;
  text-underline-offset: 4px;
}
button,
.button {
  min-height: 54px;
  border: 1px solid var(--ink);
  border-radius: 12px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 700;
  padding: 13px 19px;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  cursor: pointer;
}
button:hover,
.button:hover {
  filter: brightness(0.92);
}
button:disabled {
  opacity: 0.45;
  cursor: default;
}
button.secondary,
.button.secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--border);
  justify-content: center;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 3px solid #698414;
  outline-offset: 4px;
}
.brand {
  max-width: 560px;
  margin: auto;
  padding: 30px 24px 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.brand a {
  text-decoration: none;
  font-weight: 800;
  font-size: 14px;
  line-height: 1.25;
  letter-spacing: -0.3px;
}
.brand-indent {
  padding-left: 32px;
}
.record {
  display: inline-grid;
  place-items: center;
  background: var(--ink);
  border-radius: 50%;
  color: var(--accent);
  width: 25px;
  height: 25px;
  margin-right: 4px;
  font-size: 12px;
}
.badge {
  font-size: 11px;
  font-weight: 700;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 5px 9px;
  color: var(--muted);
}
main {
  max-width: 520px;
  margin: 0 auto;
  padding: 38px 24px 24px;
}
h1 {
  font-size: clamp(38px, 10.5vw, 54px);
  line-height: 1.04;
  letter-spacing: -2.3px;
  margin: 14px 0 22px;
  font-weight: 800;
  overflow-wrap: anywhere;
}
h2 {
  font-size: 27px;
  line-height: 1.2;
  letter-spacing: -1px;
  margin: 8px 0 20px;
}
p {
  margin: 0 0 22px;
}
.intro {
  font-size: 18px;
  max-width: 400px;
  color: var(--muted);
}
.accent {
  color: #6b8618;
}
.eyebrow {
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 1.4px;
  margin-bottom: 20px;
  overflow-wrap: anywhere;
}
.code {
  background: var(--panel);
  padding: 4px 7px;
  border-radius: 5px;
  letter-spacing: 2px;
  margin-left: 5px;
  white-space: nowrap;
}
.steps {
  padding: 7px 0 22px;
  list-style: none;
  margin: 0 0 10px;
}
.steps li {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 15px;
  margin-bottom: 14px;
}
.steps span {
  font-size: 11px;
  font-weight: 750;
  background: var(--accent);
  color: #202820;
  border-radius: 50%;
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
}
form {
  display: grid;
  gap: 12px;
}
label {
  display: block;
  font-size: 14px;
  font-weight: 650;
}
input {
  width: 100%;
  min-height: 54px;
  padding: 13px 15px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--ink);
  font-size: 16px;
}
input::placeholder {
  color: var(--muted);
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 13px;
}
.center {
  text-align: center;
}
.spread {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.spread p {
  margin-bottom: 12px;
  font-size: 14px;
}
.count {
  font-weight: 750;
  white-space: nowrap;
}
.progress {
  display: flex;
  gap: 6px;
  margin-bottom: 20px;
}
.progress span {
  height: 5px;
  flex: 1;
  background: var(--border);
  border-radius: 5px;
}
.progress .filled {
  background: #728d24;
}
.slots {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
}
.slots li {
  display: flex;
  gap: 15px;
  padding: 17px 0;
  border-bottom: 1px solid var(--border);
  align-items: center;
  min-height: 88px;
}
.slot-number {
  font-size: 12px;
  letter-spacing: 1px;
  color: var(--muted);
}
.song {
  min-width: 0;
  flex: 1;
}
.song strong {
  display: block;
  font-size: 17px;
  overflow-wrap: anywhere;
  line-height: 1.3;
}
.song > span {
  display: block;
  font-size: 13px;
  color: var(--muted);
}
.song-actions {
  display: flex;
  gap: 18px;
}
.text-button {
  width: auto;
  background: none;
  color: var(--ink);
  border: 0;
  padding: 8px 0;
  min-height: 44px;
  font-size: 12px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.empty-slot {
  background: transparent;
  color: var(--muted);
  border: 1px dashed var(--border);
  font-size: 15px;
  font-weight: 500;
  flex: 1;
}
.slots + button {
  background: var(--accent);
  color: #202820;
  border-color: var(--accent);
}
button + p {
  margin-top: 15px;
}
.big-symbol {
  background: var(--accent);
  color: #202820;
  border-radius: 50%;
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  font-size: 34px;
  margin: 38px 0 26px;
}
.panel {
  background: var(--panel);
  padding: 22px;
  border-radius: 14px;
  margin: 26px 0;
}
.panel p {
  font-size: 14px;
  color: var(--muted);
  margin: 8px 0 0;
}
.invite {
  display: flex;
  gap: 20px;
  align-items: center;
  padding: 16px;
}
.invite canvas {
  width: 120px !important;
  height: 120px !important;
  background: white;
  flex-shrink: 0;
  border-radius: 6px;
}
.invite-code {
  display: block;
  font-size: 30px;
  letter-spacing: 3px;
  line-height: 1.4;
}
.invite a {
  font-size: 12px;
}
.button-pair {
  display: flex;
  gap: 10px;
}
.link-field {
  font-size: 12px;
  min-height: 44px;
  margin-top: 10px;
}
.players {
  margin: 25px 0;
}
.player-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 17px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.player-row strong {
  overflow-wrap: anywhere;
  min-width: 0;
}
.player-row > span {
  white-space: nowrap;
  color: var(--muted);
  font-size: 12px;
}
.player-row .ready {
  background: var(--accent);
  color: #202820;
  border-radius: 20px;
  padding: 5px 10px;
}
.back {
  display: block;
  text-align: center;
  padding: 18px;
}
.warning {
  padding: 16px;
  border-radius: 10px;
  background: var(--panel);
  margin-bottom: 20px;
}
.warning p {
  font-size: 14px;
  margin-bottom: 10px;
}
.check-label {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
}
.check-label input {
  width: 24px;
  height: 24px;
  min-height: 24px;
  flex-shrink: 0;
}
dialog {
  background: var(--paper);
  color: var(--ink);
  border: 0;
  border-radius: 20px;
  padding: 24px;
  width: calc(100% - 24px);
  max-width: 480px;
  max-height: 88dvh;
  box-shadow: 0 15px 60px #0004;
}
dialog::backdrop {
  background: #151e19aa;
}
dialog .icon-button {
  width: 48px;
  min-height: 48px;
  flex-shrink: 0;
  font-size: 25px;
  padding: 4px;
}
dialog h2 {
  margin: 0;
}
dialog label {
  margin: 18px 0 8px;
}
dialog input + p {
  margin-top: 10px;
}
dialog > button + button {
  margin-top: 12px;
}
.result {
  background: transparent;
  color: var(--ink);
  border: 0;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  padding: 15px 0;
  text-align: left;
  gap: 12px;
  min-height: 78px;
}
.result > span:nth-child(2) {
  flex: 1;
  min-width: 0;
}
.result strong {
  font-size: 15px;
  line-height: 1.25;
  display: block;
  overflow-wrap: anywhere;
}
.result small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
  margin-top: 5px;
}
.track-icon {
  width: 40px;
  height: 44px;
  background: var(--panel);
  display: grid;
  place-items: center;
  border-radius: 6px;
  font-size: 24px;
}
.add-icon {
  font-size: 24px;
}
details {
  margin-top: 24px;
  font-size: 13px;
}
summary {
  min-height: 44px;
  cursor: pointer;
  padding: 10px 0;
}
details form {
  margin-top: 10px;
}
footer {
  max-width: 460px;
  margin: 20px auto 0;
  padding: 25px 24px 35px;
  color: var(--muted);
  text-align: center;
  font-size: 12px;
  border-top: 1px solid var(--border);
}
footer span {
  display: block;
  margin-top: 8px;
  font-size: 10px;
}
#notice {
  position: sticky;
  bottom: 14px;
  max-width: 460px;
  margin: 0 auto;
  padding: 0 18px;
  pointer-events: none;
  font-size: 13px;
  text-align: center;
}
#notice.visible {
  background: var(--ink);
  color: var(--paper);
  padding: 12px 18px;
  border-radius: 10px;
  width: calc(100% - 48px);
  box-shadow: 0 3px 12px #0002;
}
#notice.error {
  background: #842a24;
  color: white;
}
noscript {
  display: block;
  padding: 24px;
  text-align: center;
}
@media (max-width: 360px) {
  main {
    padding: 28px 18px;
  }
  .brand {
    padding: 24px 18px 8px;
  }
  .invite {
    gap: 12px;
  }
  .invite canvas {
    width: 100px !important;
    height: 100px !important;
  }
  .invite-code {
    font-size: 24px;
  }
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #1b241f;
    --ink: #f2f1e7;
    --muted: #b6beb0;
    --panel: #28342c;
    --border: #475044;
    background: var(--paper);
    color: var(--ink);
  }
  .record {
    background: var(--accent);
    color: #202820;
  }
  .accent {
    color: var(--accent);
  }
  .progress .filled {
    background: var(--accent);
  }
  button:focus-visible,
  a:focus-visible,
  input:focus-visible,
  summary:focus-visible {
    outline-color: var(--accent);
  }
}

.modal-notice:empty {
  display: none;
}
.modal-notice {
  font-size: 14px;
  padding: 12px;
  border-radius: 8px;
  background: var(--panel);
}
.modal-notice.error {
  background: #842a24;
  color: white;
}

.album-art {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  object-fit: contain;
  border-radius: 0;
}
.spotify-attribution {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  margin: 0 0 14px;
  padding: 8px 0;
}
.spotify-attribution img {
  height: auto;
  width: 90px;
}
.spotify-dark {
  display: none;
}
.spotify-track-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  white-space: nowrap;
}
.song-actions {
  gap: 12px;
  flex-wrap: wrap;
}
.result-row {
  border-bottom: 1px solid var(--border);
  padding-bottom: 4px;
}
.result-row .result {
  border: 0;
}
.result-row .spotify-track-link {
  margin-left: 60px;
}
.owner-check {
  margin: 12px 0 20px;
}
.panel code {
  overflow-wrap: anywhere;
}
@media (prefers-color-scheme: dark) {
  .spotify-light {
    display: none;
  }
  .spotify-dark {
    display: block;
  }
}
