:root {
  color-scheme: dark;
  --bg: #17122b;
  --panel: #2b2347;
  --line: #57499a;
  --text: #ffffff;
  --muted: #c9c2e0;
  --pink: #ff3f86;
  --gold: #ffc23d;
  --mint: #7fe3c0;
  --sky: #8fd3ff;
  --red: #ff8a8a;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.4 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
main { max-width: 560px; margin: 0 auto; padding: 16px; display: flex; flex-direction: column; gap: 14px; }
main.wide { max-width: 860px; }
h1 { font-size: 24px; margin: 0; line-height: 1.15; }
h2 { font-size: 19px; margin: 6px 0 0; }
a { color: var(--sky); }
.muted { color: var(--muted); font-size: 14px; }
.small { font-size: 13px; }
.hidden { display: none !important; }
.show-line { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; color: var(--muted); font-size: 15px; }
.live { color: var(--red); font-weight: 800; white-space: nowrap; }

button, .btn {
  font: inherit; font-weight: 700; color: var(--text); background: #40356b; border: 0; border-radius: 10px;
  padding: 11px 14px; min-height: 44px; cursor: pointer; text-decoration: none; display: inline-block; text-align: center;
}
button:focus-visible, .btn:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, summary:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; }
button[disabled] { opacity: .55; cursor: default; }
.btn-signup { display: block; width: 100%; background: var(--pink); font-size: 23px; font-weight: 800; padding: 20px 12px; border-radius: 14px; }
.btn-tip { display: block; width: 100%; background: var(--gold); color: #241a00; font-size: 21px; font-weight: 800; padding: 16px 12px; border-radius: 14px; }
.btn-quiet { background: transparent; border: 1px solid var(--line); }
.btn-danger { background: transparent; border: 1px solid var(--red); color: var(--red); }
.btn-primary { background: var(--pink); }

.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 14px; }
.place { display: block; width: 100%; text-align: left; font-weight: 400; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 14px; color: inherit; }
.place b { display: block; font-size: 26px; line-height: 1.15; color: var(--mint); }
.place .link { display: block; color: var(--sky); font-weight: 700; font-size: 14px; margin-top: 8px; }

label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 4px; }
input, textarea, select {
  width: 100%; font: inherit; font-size: 16px; color: #111; background: #fff; border: 1px solid #888; border-radius: 8px; padding: 11px; min-height: 44px;
}
textarea { min-height: 70px; resize: vertical; }
.field { margin-bottom: 12px; position: relative; }
.error { color: var(--red); font-weight: 700; margin: 0 0 10px; }
.ok { color: var(--mint); font-weight: 700; }

.suggest { list-style: none; margin: 4px 0 0; padding: 0; background: #fff; color: #111; border-radius: 8px; overflow: hidden; box-shadow: 0 6px 22px rgba(0,0,0,.45); }
.suggest button { display: block; width: 100%; background: #fff; color: #111; text-align: left; font-weight: 400; border-radius: 0; border-bottom: 1px solid #ddd; padding: 10px 12px; }
.suggest button:hover, .suggest button:focus { background: #ffe3ee; }
.suggest b { display: block; font-weight: 700; }
.suggest span { color: #555; font-size: 14px; }

dialog { width: min(520px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); background: #211a3c; color: var(--text); border: 1px solid var(--line); border-radius: 16px; padding: 16px; }
dialog::backdrop { background: rgba(0,0,0,.65); }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.row > .grow { flex: 1 1 160px; }
.dialog-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; }
.dialog-head h2 { margin: 0; }

.list { list-style: none; margin: 8px 0 0; padding: 0; }
.list li { display: flex; gap: 10px; padding: 10px 0; border-top: 1px solid #40356b; align-items: flex-start; }
.list li.mine { background: rgba(127,227,192,.12); border-radius: 8px; padding-left: 8px; padding-right: 8px; }
.num { font-weight: 800; color: var(--mint); min-width: 26px; }
.song { min-width: 0; overflow-wrap: anywhere; }
.song .who { font-weight: 700; }
details summary { cursor: pointer; font-weight: 700; min-height: 28px; }

/* KJ */
.tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.tabs button[aria-selected="true"] { background: var(--pink); }
.q-row { border-top: 1px solid #40356b; padding: 12px 0; }
.q-row:first-child { border-top: 0; }
.q-title { font-size: 18px; font-weight: 800; overflow-wrap: anywhere; }
.q-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.q-actions button { padding: 8px 12px; }
.q-actions .done { background: #15795a; }
.tag { display: inline-block; font-size: 12px; font-weight: 800; padding: 2px 7px; border-radius: 6px; margin-left: 4px; }
.tag-new { background: var(--gold); color: #241a00; }
.tag-get { background: var(--red); color: #300; }
.note { background: #40356b; border-radius: 8px; padding: 6px 9px; margin-top: 6px; font-size: 14px; overflow-wrap: anywhere; }
.qr-box { background: #fff; padding: 14px; border-radius: 12px; display: inline-block; line-height: 0; }
.qr-box svg { width: 220px; height: 220px; }
.venue-card { border-top: 1px solid #40356b; padding: 14px 0; }
.venue-card:first-child { border-top: 0; }
@media print {
  body { background: #fff; color: #000; }
}
