/* Schriften liegen selbst gehostet neben der Seite (SIL Open Font License), damit kein Gast-Browser Google anfragt. */
@font-face {
  font-family: 'Schibsted Grotesk';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(/schibsted-grotesk-latin.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: 'Schibsted Grotesk';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(/schibsted-grotesk-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/jetbrains-mono-latin.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 {
  --bg: #0b0b0b;
  --panel: #121212;
  --card: #161616;
  --line: #2a2a2a;
  --faint: #303030;
  --dim: #555555;
  --quiet: #7a7a7a;
  --placeholder: #8a8a87;
  --muted: #9a9a97;
  --text: #f5f5f3;
  --accent: #ff6a2b;
  --accent-ink: #140a04;
  --qr-light: #f5f5f3;
  --radius: 8px;
  --sans: 'Schibsted Grotesk', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, Consolas, monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --spring: cubic-bezier(.3, 1.4, .5, 1);
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font: 16px/1.45 var(--sans);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
p, h1, h2, h3 { margin: 0; }
a { color: inherit; }
a:hover { color: #fff; }
:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
code { font-family: var(--mono); font-size: .85em; word-break: break-all; }

/* Grundgerüst */
.wrap { display: flex; flex-direction: column; gap: 32px; max-width: 640px; margin: 0 auto; padding: 22px 20px 64px; }
.block { display: flex; flex-direction: column; gap: 14px; }
.page-head { display: flex; flex-direction: column; gap: 14px; }
.page-head h1 { font-size: 36px; line-height: 1; font-weight: 800; letter-spacing: -.03em; }
.page-head .top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sub { font-size: 15px; color: var(--muted); }
.muted { color: var(--muted); }
.small { font-size: 13px; line-height: 1.4; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }

.label, .brand, .head {
  font: 500 11px/1.2 var(--mono);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}
.brand { color: var(--text); letter-spacing: .2em; text-decoration: none; }
.head { display: flex; align-items: center; gap: 10px; }
.head::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.count { color: var(--quiet); font-variant-numeric: tabular-nums; }
.role { padding: 5px 8px 4px; border: 1px solid var(--line); border-radius: 4px; color: var(--text); }

.notice { padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); font-size: 14px; line-height: 1.4; }
.notice.error { border-color: var(--accent); }
.notice a { font-weight: 700; }
.banner { padding: 14px 16px; border-radius: var(--radius); background: var(--accent); color: var(--accent-ink); font-size: 15px; font-weight: 700; }
.slidein { animation: slidein .55s var(--ease); }

/* Läuft gerade: Cover, Pegel, Wellenform */
.now { display: flex; flex-direction: column; gap: 18px; }
.player { display: flex; flex-direction: column; gap: 18px; --tone: var(--line); --amp: 1; }
.np { display: flex; align-items: center; gap: 18px; }
.np-cover { position: relative; flex: none; width: 76px; height: 76px; }
.np-glow {
  position: absolute;
  inset: -14%;
  border-radius: 50%;
  background: var(--tone);
  filter: blur(26px);
  opacity: .55;
  animation: breathe 4.8s ease-in-out infinite;
  transition: opacity .8s, background-color 1.2s;
}
.np-art { position: relative; display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 4px; background: var(--faint); }
.np-art.drop { animation: drop .7s var(--ease); }
.np-info { display: flex; flex: 1; flex-direction: column; gap: 6px; min-width: 0; }
.np-status { display: flex; align-items: center; gap: 8px; color: var(--accent); }
.np-status .label { color: var(--accent); }
.np-title { font-size: 21px; line-height: 1.2; font-weight: 700; letter-spacing: -.015em; }
.np-artist { margin-top: 2px; font-size: 15px; color: var(--muted); }
.np-title, .np-artist { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.np-text.rise { animation: risein .6s var(--ease); }
.np-time { display: flex; justify-content: space-between; margin-top: -8px; font: 12px/1 var(--mono); font-variant-numeric: tabular-nums; color: var(--muted); }

.eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 11px; }
.eq i { display: block; width: 3px; height: 100%; background: currentColor; transform-origin: 50% 100%; animation: eq 1s ease-in-out infinite; }
.eq i:nth-child(2) { animation-duration: .72s; animation-delay: -.3s; }
.eq i:nth-child(3) { animation-duration: 1.18s; animation-delay: -.6s; }
.eq i:nth-child(4) { animation-duration: .86s; animation-delay: -.15s; }

.wave { position: relative; display: flex; align-items: center; gap: 2px; height: 44px; transform: scaleY(var(--amp)); transition: transform .35s var(--ease); }
.wave i {
  flex: 1 1 0;
  min-width: 0;
  height: 20%;
  border-radius: 1px;
  background: var(--faint);
  transition: height .8s var(--ease), transform .6s var(--ease), background-color .4s;
}
.wave i.played { background: var(--text); }
.wave i.head { background: var(--accent); }
.wave i.live { animation: live .42s ease-in-out infinite alternate; }
.wave .sweep { position: absolute; top: -6px; bottom: -6px; left: 0; width: 2px; border-radius: 1px; background: var(--accent); opacity: 0; pointer-events: none; }
.wave .sweep.run { animation: sweep 1.1s cubic-bezier(.5, 0, .2, 1); }

.player.paused .np-glow { animation-play-state: paused; opacity: .16; }
.player.paused .eq i, .player.idle .eq i { animation: none; transform: scaleY(.18); }
.player.paused .wave i, .player.idle .wave i { transform: scaleY(.2); animation: none; }
.player.idle .np-status, .player.idle .np-time { visibility: hidden; }
.player.idle .np-glow { opacity: 0; }

.up-next { display: flex; align-items: center; gap: 12px; padding-top: 16px; border-top: 1px solid var(--line); }
.up-next .label { color: var(--accent); }
.up-next-title { margin-top: 4px; font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.up-next-title span { font-weight: 400; color: var(--muted); }

/* Formulare */
.field { display: flex; flex-direction: column; gap: 6px; }
.field > span:first-child { font-size: 13px; color: var(--muted); }
input[type="text"], input[type="search"], select {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  color: var(--text);
  font: 500 16px/1 var(--sans);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
input::placeholder { color: var(--placeholder); }
input:focus, select:focus { border-color: var(--quiet); }
input:focus-visible, select:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
input:disabled { opacity: .5; }
input[type="search"]::-webkit-search-cancel-button { filter: invert(1) grayscale(1); }
.search, .select { position: relative; display: block; }
.search svg { position: absolute; left: 14px; top: 15px; color: var(--placeholder); pointer-events: none; }
.search input { padding-left: 42px; }
.select select { padding-right: 42px; font-size: 15px; cursor: pointer; }
.select svg { position: absolute; right: 14px; top: 15px; color: var(--muted); pointer-events: none; }
.quota { font: 12px/1.5 var(--mono); color: var(--muted); }
input[type="range"] { width: 100%; height: 28px; margin: 0; accent-color: var(--accent); cursor: pointer; }

button, .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  color: var(--text);
  font: 600 14px/1 var(--sans);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color .15s, background-color .2s, color .2s, transform .2s var(--spring);
}
button:hover:not(:disabled), .button:hover { border-color: var(--dim); color: var(--text); }
button:disabled { opacity: .5; cursor: default; }
.primary { border-color: var(--accent); background: var(--accent); color: var(--accent-ink); font-weight: 700; }
.primary:hover:not(:disabled), .button.primary:hover { border-color: var(--accent); color: var(--accent-ink); filter: brightness(1.08); }
.ghost { border-color: transparent; background: transparent; color: var(--muted); }
.ghost:hover:not(:disabled), .button.ghost:hover { border-color: var(--line); color: var(--text); }
.icon { width: 44px; padding: 0; }
.big { height: 52px; padding: 0 22px; font-size: 15px; }
.big:hover { transform: translateY(-2px); }
.big svg { transition: transform .25s var(--spring); }
.big:hover svg { transform: translateX(4px); }
.controls { display: flex; flex-wrap: wrap; gap: 10px; }

/* Listen */
.list { margin: 0; padding: 0; list-style: none; }
.item { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.item-text { flex: 1; min-width: 0; }
.item-title { font-size: 15px; font-weight: 600; }
.item-sub { margin-top: 2px; font-size: 13px; color: var(--muted); }
.item-title, .item-sub { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item-note { margin-top: 3px; font-size: 12px; color: var(--muted); }
.item-note.mine { margin-top: 5px; color: var(--accent); font-weight: 600; }
.item-time { flex: none; font: 12px/1 var(--mono); color: var(--quiet); }
.empty { padding: 12px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.compact .item { padding: 10px 0; }
.compact .item-title { font-size: 14px; }
.explicit {
  display: inline-grid;
  place-items: center;
  width: 16px;
  height: 16px;
  margin-right: 6px;
  border-radius: 3px;
  background: var(--muted);
  color: var(--bg);
  font: 600 10px/1 var(--mono);
  font-style: normal;
  vertical-align: 2px;
}
.cover { flex: none; width: 44px; height: 44px; border-radius: 3px; object-fit: cover; background: var(--faint); }
.compact .cover, .up-next .cover { width: 36px; height: 36px; }

.wish { position: relative; align-items: flex-start; margin: 0 -12px; padding: 14px 12px; }
.wish.is-new { animation: slidein .55s var(--ease); }
.wish.moved-up { animation: flash 1.2s ease-out; }
.rank { flex: none; width: 20px; padding-top: 3px; font: 12px/1.2 var(--mono); color: var(--muted); }
.wish.lead .rank { color: var(--accent); }
.share { height: 2px; margin-top: 10px; border-radius: 1px; background: var(--line); overflow: hidden; }
.share i { display: block; height: 100%; background: var(--dim); transition: width .5s linear, background-color .3s; }
.wish.lead .share i { background: var(--accent); }
.lead-row { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-top: 7px; }
.tag { flex: none; padding: 4px 6px 3px; border-radius: 3px; background: var(--accent); color: var(--accent-ink); font: 600 10px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.lead-note { font: 12px/1.3 var(--mono); color: var(--muted); }
.wish.urgent .tag { animation: urgent .5s ease-in-out infinite alternate; }

.vote { position: relative; flex: none; flex-direction: column; gap: 2px; width: 52px; height: 52px; padding: 0; font: 600 15px/1 var(--mono); }
.vote.on { border-color: var(--accent); background: var(--accent); color: var(--accent-ink); }
.vote.on:hover:not(:disabled) { border-color: var(--accent); color: var(--accent-ink); }
.vote.just-voted .n { animation: pop .4s var(--spring); }
.vote .plus { position: absolute; left: 50%; top: -4px; color: var(--accent); font: 600 12px/1 var(--mono); pointer-events: none; animation: plus .9s var(--ease) forwards; }
.votes { flex: none; min-width: 44px; text-align: right; }
.votes b { display: block; font: 600 19px/1 var(--mono); font-variant-numeric: tabular-nums; }
.votes span { display: block; margin-top: 4px; font: 500 9px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

/* Gastgeber */
.wish.has-actions, .result.has-actions { flex-wrap: wrap; row-gap: 10px; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; width: 100%; }
.wish .actions { padding-left: 88px; }
.result .actions { padding-left: 56px; }
.actions .open { background: var(--line); }
.transport { display: flex; align-items: center; gap: 10px; }
.transport button { width: 56px; height: 56px; padding: 0; border-radius: 10px; }
.device { flex: 1; min-width: 0; padding-left: 6px; }
.device-name { margin-top: 4px; font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.swap { display: inline-flex; animation: swap .28s var(--spring); }
.volume { display: flex; flex-direction: column; gap: 10px; }
.volume-head { display: flex; align-items: baseline; justify-content: space-between; }
.level { display: flex; gap: 3px; height: 10px; }
.level i { flex: 1 1 0; border-radius: 1px; background: var(--faint); transition: background-color .2s; }
.level i.lit { background: var(--text); }
.level i.top { background: var(--accent); }
.level.live i.flicker { animation: flicker .38s ease-in-out infinite alternate; }
.rules { gap: 0; }
.rules .head { margin-bottom: 14px; }
.switch { position: relative; display: flex; align-items: center; gap: 14px; min-height: 56px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 15px; line-height: 1.35; cursor: pointer; }
.switch.last { border-bottom: 1px solid var(--line); }
.switch input { position: absolute; left: 0; top: 50%; width: 44px; height: 26px; margin: -13px 0 0; opacity: 0; cursor: pointer; }
.track { position: relative; flex: none; width: 44px; height: 26px; border-radius: 13px; background: var(--faint); transition: background-color .2s; }
.track::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--text); transition: transform .28s var(--spring), background-color .2s; }
.switch input:checked + .track { background: var(--accent); }
.switch input:checked + .track::after { transform: translateX(18px); background: var(--accent-ink); }
.switch input:focus-visible + .track { outline: 2px solid var(--text); outline-offset: 2px; }
.switch-hint { display: block; font-size: 13px; color: var(--muted); }
.settings-grid { display: grid; gap: 14px; margin-top: 16px; }
@media (min-width: 560px) { .settings-grid.two { grid-template-columns: 1fr 1fr; } }
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.tile { display: flex; flex-direction: column; gap: 12px; min-width: 0; padding: 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); }
.tile button { width: 100%; }
.footer { display: flex; justify-content: flex-end; }

/* QR-Codes: neuer Code wischt diagonal über den alten */
.qr { position: relative; flex: none; align-self: flex-start; padding: 10px; border-radius: 8px; background: var(--qr-light); overflow: hidden; }
.qr img, .qr canvas { display: block; max-width: 100%; height: auto; animation: qrwipe .7s var(--ease); }
.scan { position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--accent); opacity: 0; pointer-events: none; }
.qr-panel:hover .scan { animation: scan 1.8s ease-in-out infinite; }

/* Tablet vorne: groß, zwei Spalten im Querformat */
.kiosk { font-size: 18px; user-select: none; }
.kiosk input { user-select: text; }
.tablet { position: relative; display: flex; flex-direction: column; gap: 26px; min-height: 100vh; padding: 26px 32px 56px; }
.tablet-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.tablet-head .party { margin-left: 14px; font-size: 16px; font-weight: 600; color: var(--muted); }
.clock { font: 16px/1 var(--mono); font-variant-numeric: tabular-nums; color: var(--muted); }
.tablet-grid { display: grid; flex: 1; gap: 32px; }
@media (min-width: 900px) and (orientation: landscape) { .tablet-grid { grid-template-columns: minmax(0, 1fr) 420px; } }
.tablet-col { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.tablet .label { font-size: 12px; }
.tablet .np { gap: 30px; }
.tablet .np-cover { width: 168px; height: 168px; }
.tablet .np-art { border-radius: 6px; }
.tablet .np-glow { filter: blur(44px); opacity: .5; }
.tablet .np-info { gap: 10px; }
.tablet .eq { height: 13px; }
.tablet .np-title { display: -webkit-box; font-size: 40px; line-height: 1.06; font-weight: 800; letter-spacing: -.03em; white-space: normal; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.tablet .np-artist { margin-top: 8px; font-size: 20px; }
.tablet .wave { gap: 3px; height: 60px; }
.tablet .np-time { font-size: 14px; }
.slot { display: flex; flex-direction: column; justify-content: center; min-height: 58px; }
.slot .up-next { padding-top: 0; border-top: 0; }
.slot .up-next .cover { width: 44px; height: 44px; }
.slot .up-next-title { font-size: 18px; }
.slot-idle { font-size: 15px; color: var(--muted); }
.countdown { display: flex; flex-direction: column; gap: 10px; }
.countdown-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.countdown .label { color: var(--accent); }
.countdown.urgent .label { animation: urgent .5s ease-in-out infinite alternate; }
.countdown-lead { font-size: 15px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.countdown-lead b { color: var(--text); font-weight: 600; }
.drain { height: 3px; border-radius: 2px; background: var(--line); overflow: hidden; }
.drain i { display: block; height: 100%; background: var(--accent); transition: width .5s linear; }
.tablet .wish { align-items: center; margin: 0; padding: 10px 0; }
.tablet .wish .share { position: absolute; left: 0; right: 0; top: -1px; margin: 0; background: none; }
.tablet .wish .item-title { font-size: 17px; }
.tablet .wish .item-sub { margin-top: 3px; font-size: 14px; }
.tablet .rank { width: 24px; padding: 0; font-size: 14px; }
.tablet .votes { width: 64px; }
.tablet .votes b { font-size: 22px; }
.tablet .votes span { font-size: 10px; }
.title-row { display: flex; align-items: center; gap: 10px; min-width: 0; }
.title-row .item-title { min-width: 0; }
.panel { display: flex; flex-direction: column; gap: 12px; padding: 22px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.panel input[type="text"], .panel input[type="search"] { height: 50px; background: var(--bg); font-size: 17px; }
.panel .item-title { font-size: 16px; }
.panel button { height: 48px; padding: 0 18px; font-size: 15px; }
.join { flex-direction: row; align-items: center; gap: 22px; }
.join .qr { align-self: center; padding: 11px; }
.join-text { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.join-text .label { color: var(--accent); }
.join-title { font-size: 22px; line-height: 1.15; font-weight: 700; letter-spacing: -.015em; }
.join-note { font: 12px/1.4 var(--mono); color: var(--placeholder); }
.edge { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: flex-end; gap: 3px; height: 26px; padding: 0 32px; pointer-events: none; }
.edge i { flex: 1 1 0; min-width: 0; border-radius: 1px 1px 0 0; background: var(--line); transform-origin: 50% 100%; animation: edge 1.6s ease-in-out infinite alternate; }
.edge.off i { animation: none; transform: scaleY(.12); transition: transform .8s; }

/* Startseite und Übersicht */
.site { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.site-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 76px; border-bottom: 1px solid var(--line); }
.site-head .who { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 15px; }
.nav { padding: 12px 0; color: var(--muted); font-size: 15px; font-weight: 500; text-decoration: none; }
.nav:hover { color: var(--text); }
.hero { display: flex; flex-direction: column; gap: 28px; padding: 88px 0 48px; }
.hero .label { color: var(--accent); }
.hero h1 { max-width: 980px; font-size: clamp(44px, 7.2vw, 92px); line-height: .98; font-weight: 800; letter-spacing: -.04em; }
.hero h1 span { display: block; animation: line .9s var(--ease) both; }
.hero h1 span + span { color: var(--muted); animation-delay: .12s; }
.lede { max-width: 560px; font-size: 19px; line-height: 1.5; color: var(--muted); }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 8px; }
.cta { height: 56px; padding: 0 24px; border-radius: 10px; font-size: 17px; }
.meter { display: flex; align-items: center; gap: 4px; height: 120px; margin: 8px 0 72px; overflow: hidden; }
.meter i { flex: 0 0 6px; border-radius: 1px; background: var(--faint); animation: meter 1.5s ease-in-out infinite alternate; transition: background-color .3s; }
.meter i.played { background: var(--text); }
.meter i.head { background: var(--accent); }
body:has(.cta:hover) .meter i, body:has(.cta:focus-visible) .meter i { animation-duration: .6s; }
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 40px 56px; padding: 56px 0; border-top: 1px solid var(--line); }
.cols > div { display: flex; flex-direction: column; gap: 14px; }
.cols h2 { font-size: 28px; line-height: 1.15; font-weight: 700; letter-spacing: -.02em; }
.cols p:not(.label) { font-size: 17px; line-height: 1.55; color: var(--muted); }
.how { display: flex; flex-direction: column; gap: 32px; padding: 56px 0 96px; border-top: 1px solid var(--line); }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 32px 40px; margin: 0; padding: 0; list-style: none; }
.steps li { padding-top: 18px; border-top: 1px solid var(--line); }
.steps .num { font: 13px/1 var(--mono); color: var(--accent); }
.steps p { margin-top: 12px; font-size: 20px; line-height: 1.35; font-weight: 600; }
.site-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding: 24px 0 40px; border-top: 1px solid var(--line); font: 13px/1.4 var(--mono); color: var(--quiet); }
.site > .notice { margin-top: 24px; }

.party-head { display: flex; flex-direction: column; gap: 20px; padding: 72px 0 48px; }
.party-head h1 { font-size: clamp(44px, 6vw, 76px); line-height: 1; font-weight: 800; letter-spacing: -.04em; overflow-wrap: anywhere; }
.party-head .lede { font-size: 17px; }
.party-head .controls { margin-top: 12px; }
.live-label { display: inline-flex; align-items: center; gap: 12px; }
.live-dot { position: relative; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.live-dot::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: inherit; animation: ping 1.8s cubic-bezier(0, 0, .2, 1) infinite; }
.panels { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); gap: 24px; padding-bottom: 56px; }
.qr-panel { display: flex; flex-wrap: wrap; gap: 24px 28px; padding: 28px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.qr-panel .qr { padding: 12px; }
.qr-panel-text { display: flex; flex: 1; flex-direction: column; gap: 10px; min-width: 200px; }
.qr-panel-text h2 { font-size: 20px; line-height: 1.25; font-weight: 700; }
.qr-panel-text p:not(.label) { font-size: 15px; line-height: 1.45; color: var(--muted); }
.qr-panel-text .controls { margin-top: auto; padding-top: 8px; }
.done svg { color: var(--accent); animation: pop .35s var(--spring); }
.danger { display: flex; flex-direction: column; gap: 14px; padding: 40px 0 88px; border-top: 1px solid var(--line); }
.danger > p:not(.label) { max-width: 560px; font-size: 15px; line-height: 1.5; color: var(--muted); }
.confirm { display: flex; flex-direction: column; gap: 14px; max-width: 560px; padding: 20px; border: 1px solid var(--dim); border-radius: 10px; background: var(--card); }
.confirm-title { font-size: 17px; font-weight: 700; }
.confirm-text { font-size: 15px; line-height: 1.45; color: var(--muted); }
.confirm .yes { border-color: var(--text); background: var(--text); color: var(--bg); }
.confirm .yes:hover:not(:disabled) { border-color: var(--text); color: var(--bg); }
.create { display: flex; flex-direction: column; gap: 20px; max-width: 560px; padding: 72px 0 96px; }
.create h1 { font-size: clamp(40px, 5vw, 60px); line-height: 1; font-weight: 800; letter-spacing: -.04em; }
.create .field { margin-top: 8px; }
.create input[type="text"] { height: 52px; font-size: 17px; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 20;
  max-width: calc(100% - 32px);
  padding: 12px 16px;
  border-radius: var(--radius);
  background: var(--text);
  color: var(--bg);
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  opacity: 0;
  transform: translate(-50%, 16px);
  transition: opacity .2s, transform .25s var(--spring);
  pointer-events: none;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.error { background: var(--accent); color: var(--accent-ink); }

@media (max-width: 400px) {
  .wish .actions, .result .actions { padding-left: 0; }
  .tiles { grid-template-columns: 1fr; }
}

@keyframes eq { 0%, 100% { transform: scaleY(.18); } 50% { transform: scaleY(1); } }
@keyframes live { from { transform: scaleY(.55); } to { transform: scaleY(1); } }
@keyframes sweep { from { left: 0; opacity: 1; } 80% { opacity: 1; } to { left: 100%; opacity: 0; } }
@keyframes breathe { 0%, 100% { transform: scale(.88); } 50% { transform: scale(1.06); } }
@keyframes drop { from { opacity: 0; transform: scale(.86) rotate(-8deg); } to { opacity: 1; transform: none; } }
@keyframes risein { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes slidein { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: .2; transform: translateY(6px) scale(.6); } to { opacity: 1; transform: none; } }
@keyframes plus { from { opacity: 1; transform: translate(-50%, 0); } to { opacity: 0; transform: translate(-50%, -26px); } }
@keyframes flash { from { background-color: rgba(245, 245, 243, .12); } to { background-color: rgba(245, 245, 243, 0); } }
@keyframes urgent { from { opacity: 1; } to { opacity: .45; } }
@keyframes swap { from { opacity: 0; transform: scale(.5) rotate(-30deg); } to { opacity: 1; transform: none; } }
@keyframes flicker { from { opacity: 1; } to { opacity: .35; } }
@keyframes edge { from { transform: scaleY(.15); } to { transform: scaleY(1); } }
@keyframes qrwipe { from { clip-path: polygon(0 0, 0 0, 0 0); } to { clip-path: polygon(0 0, 200% 0, 0 200%); } }
@keyframes scan { 0% { top: 6px; opacity: 0; } 15%, 85% { opacity: .9; } 100% { top: calc(100% - 8px); opacity: 0; } }
@keyframes ping { from { opacity: .7; transform: scale(1); } to { opacity: 0; transform: scale(3.2); } }
@keyframes meter { from { transform: scaleY(.32); } to { transform: scaleY(1); } }
@keyframes line { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
