@font-face { font-family: "Bungee"; src: url("/fonts/bungee.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Pacifico"; src: url("/fonts/pacifico.woff2") format("woff2"); font-display: swap; }

:root {
  --bg: #0e0b16;
  --surface: #1a1526;
  --surface-raised: #251e36;
  --line: #3b3250;
  --text: #f6f3fb;
  --muted: #b9afcb;
  --accent: #c6ff3d;
  --accent-ink: #15200a;
  --pink: #ff5fa8;
  --violet: #8d6bff;
  --danger: #ff9b9b;
  --radius: 14px;
  --display: "Arial Black", "Segoe UI Black", Impact, system-ui, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100dvh;
  background:
    radial-gradient(60rem 40rem at 90% -10%, rgb(141 107 255 / 28%), transparent 70%),
    radial-gradient(50rem 36rem at -10% 110%, rgb(255 95 168 / 18%), transparent 70%),
    var(--bg);
  background-attachment: fixed;
  color: var(--text);
  font: 400 1rem/1.55 var(--body);
}

h1, h2 { margin: 0; line-height: 1.08; font-family: var(--display); letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 7vw, 3.25rem); }
h2 { font-size: 1.3rem; }
p { margin: 0; }
a { color: var(--accent); text-underline-offset: 3px; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 10;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  background: var(--accent);
  color: var(--accent-ink);
}
.skip-link:focus { top: 0.75rem; }

.connection {
  margin: 0;
  padding: 0.5rem 1rem;
  background: var(--pink);
  color: #2a0416;
  font-weight: 600;
  text-align: center;
}

.noscript { padding: 2rem; text-align: center; }

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 60rem;
  margin: 0 auto;
  padding: 1rem 1.25rem;
}
.topbar nav { display: flex; gap: 0.25rem; }
.topbar nav a {
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}
.topbar nav a[aria-current="page"] { background: var(--surface-raised); }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--text);
  font-family: var(--display);
  font-size: 1.1rem;
  text-decoration: none;
}

.bars { display: inline-flex; align-items: center; gap: 3px; height: 2.5rem; }
.bars i { display: block; width: 5px; border-radius: 3px; background: var(--accent); }
.bars i:nth-child(1) { height: 45%; }
.bars i:nth-child(2) { height: 80%; background: var(--pink); }
.bars i:nth-child(3) { height: 100%; background: var(--violet); }
.bars i:nth-child(4) { height: 65%; background: var(--pink); }
.bars i:nth-child(5) { height: 35%; }

.logo { display: grid; line-height: 1; }
.logo-top {
  background: linear-gradient(90deg, var(--accent), var(--pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font: 400 1.28rem/1 "Bungee", var(--display);
  letter-spacing: 0.02em;
}
.logo-bottom { color: var(--text); font: 400 0.82rem/1.15 "Bungee", var(--display); letter-spacing: 0.17em; }

main {
  display: grid;
  gap: 1.5rem;
  max-width: 60rem;
  margin: 0 auto;
  padding: 1rem 1.25rem 3rem;
}
main:focus { outline: none; }
main.narrow { max-width: 27rem; padding-top: 2rem; }

.hero { display: grid; gap: 1.25rem; padding: clamp(1.5rem, 6vw, 4rem) 0 1rem; }
.hero h1 { font-size: clamp(2.6rem, 11vw, 5rem); }
.hero h1 em { color: var(--accent); font-style: normal; }
.hero p { max-width: 34rem; color: var(--muted); font-size: 1.15rem; }

.steps { display: grid; gap: 0.75rem; margin: 0; padding: 0; list-style: none; }
.steps li {
  display: grid;
  gap: 0.2rem;
  padding: 1.1rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.steps strong { font-family: var(--display); font-size: 1.05rem; }
.steps span { color: var(--muted); }

.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.6rem 1.4rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-raised);
  color: var(--text);
  font: 700 1rem var(--body);
  text-decoration: none;
  cursor: pointer;
}
.button.primary { border-color: var(--accent); background: var(--accent); color: var(--accent-ink); }
.button:disabled { opacity: 0.6; cursor: progress; }

.card {
  display: grid;
  gap: 1rem;
  padding: 1.4rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.card p { color: var(--muted); }

form { display: grid; gap: 1.1rem; }
.field { display: grid; gap: 0.35rem; }
.field label { font-weight: 600; }
.field small { color: var(--muted); }

input[type="email"], input[type="password"], input[type="text"], textarea {
  width: 100%;
  min-height: 3rem;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  color: var(--text);
  font: inherit;
}
textarea { min-height: 6rem; resize: vertical; }

.check { display: grid; grid-template-columns: 1.4rem 1fr; gap: 0.6rem; align-items: start; }
.check input { width: 1.25rem; height: 1.25rem; margin: 0.15rem 0 0; accent-color: var(--accent); }

.notice { padding: 0.7rem 0.9rem; border-radius: 10px; font-weight: 600; }
.notice.error { border: 1px solid var(--danger); color: var(--danger); }
.notice.success { border: 1px solid var(--accent); color: var(--accent); }

.alt { color: var(--muted); text-align: center; }

@media (min-width: 42rem) {
  .steps { grid-template-columns: repeat(3, 1fr); }
}

@media (prefers-reduced-motion: no-preference) {
  main { animation: rise 180ms ease-out; }
  @keyframes rise { from { opacity: 0; transform: translateY(6px); } }
}

input[type="url"], input[type="number"], input[type="search"], select {
  width: 100%;
  min-height: 3rem;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  color: var(--text);
  font: inherit;
}

fieldset { min-width: 0; margin: 0; padding: 1rem; border: 1px solid var(--line); border-radius: var(--radius); }
fieldset form, .rounds { display: grid; gap: 1rem; }
.round-settings { display: grid; gap: 1rem; }
legend { padding: 0 0.4rem; color: var(--muted); font-weight: 700; }
.duration { display: grid; grid-template-columns: 1fr 1.4fr; gap: 0.5rem; }

.status-line { color: var(--accent); font-weight: 700; }
.status-line:empty { display: none; }
.stage, .side { display: grid; gap: 1.25rem; min-width: 0; }

.game-list, .players, .song-list { display: grid; gap: 0.6rem; margin: 0; padding: 0; list-style: none; }
.game-card {
  display: grid;
  gap: 0.15rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-raised);
  color: var(--text);
  text-decoration: none;
}
.game-card span { color: var(--muted); }
.challenge-list { margin: 0; padding-left: 1.3rem; }

.players li { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; min-height: 2.25rem; }
.done { color: var(--accent); font-weight: 700; }
.link { margin-left: auto; padding: 0.3rem; border: 0; background: none; color: var(--danger); font: inherit; text-decoration: underline; cursor: pointer; }

.song { display: grid; gap: 0.6rem; padding: 1rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); }
.song h3 { margin: 0; font-size: 1.1rem; overflow-wrap: anywhere; }
.song h3 span { color: var(--muted); font-weight: 400; }
.song-links { display: flex; flex-wrap: wrap; gap: 0.25rem 0.9rem; font-size: 0.92rem; }

.rating { display: flex; gap: 0.4rem; }
.rating label { flex: 1; }
.rating input { position: absolute; opacity: 0; }
.rating span {
  display: grid;
  place-items: center;
  min-height: 2.9rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-raised);
  font-weight: 700;
  cursor: pointer;
}
.rating input:checked + span { border-color: var(--accent); background: var(--accent); color: var(--accent-ink); }
.rating input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }

table { width: 100%; border-collapse: collapse; }
caption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
th, td { padding: 0.5rem 0.4rem; border-bottom: 1px solid var(--line); text-align: left; overflow-wrap: anywhere; }
thead th { color: var(--muted); font-size: 0.85rem; }
tr.me th, tr.me td { color: var(--accent); }
td small, th small { color: var(--muted); font-weight: 400; }

.winner { color: var(--accent) !important; font-family: var(--display); font-size: 1.7rem; line-height: 1.15; overflow-wrap: anywhere; }
.topbar nav a { white-space: nowrap; }
.brand { white-space: nowrap; }



.button.small { min-height: 2.4rem; padding: 0.3rem 0.9rem; font-size: 0.92rem; }
.row-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0.4rem; }
.players li > span:first-child { min-width: 0; overflow-wrap: anywhere; }
.stack { display: grid; gap: 0.75rem; }

.song-head { display: flex; align-items: center; gap: 0.8rem; min-width: 0; }
.song-art { flex: none; width: 3.5rem; height: 3.5rem; border-radius: 8px; object-fit: cover; background: var(--surface-raised); }
.listen { display: grid; gap: 0.5rem; }
.player-frame { width: 100%; max-width: 30rem; aspect-ratio: 16 / 9; min-height: 200px; border: 0; border-radius: 10px; }

.picker { display: grid; gap: 0.8rem; padding: 1rem; border: 1px solid var(--line); border-radius: var(--radius); }
.picker-fields { display: grid; gap: 0.75rem; }
.result-list { display: grid; gap: 0.4rem; margin: 0; padding: 0; list-style: none; }
.result {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  width: 100%;
  padding: 0.5rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-raised);
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.result strong, .result small { display: block; overflow-wrap: anywhere; }
.result small { color: var(--muted); }

.stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem; margin: 0; }
.stat-grid div { display: grid; gap: 0.1rem; padding: 0.9rem; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-raised); }
.stat-grid dt { order: 2; color: var(--muted); font-size: 0.9rem; }
.stat-grid dd { order: 1; margin: 0; font-family: var(--display); font-size: 1.6rem; }

@media (min-width: 42rem) {
  .picker-fields { grid-template-columns: 1fr 1fr; }
  .stat-grid { grid-template-columns: repeat(4, 1fr); }
}
.result .song-art { background: var(--line); }

.button[hidden] { display: none; }
.card { background: rgb(26 21 38 / 90%); }

.listen-buttons { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 0.5rem; }
.listen-buttons > div:has(.player-frame), .listen-buttons > div:has(.preview) { flex-basis: 100%; }
.preview { display: grid; gap: 0.3rem; font-size: 0.9rem; }
.preview-audio { width: 100%; max-width: 30rem; height: 2.75rem; }
.song-note { color: var(--muted); font-size: 0.92rem; }

.admin-open { position: sticky; top: 0.75rem; z-index: 2; justify-self: end; box-shadow: 0 6px 18px rgb(0 0 0 / 45%); }
.admin-menu {
  width: min(34rem, calc(100vw - 1.5rem));
  max-height: calc(100dvh - 1.5rem);
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
}
.admin-menu[open] { display: grid; gap: 1.25rem; }
.admin-menu::backdrop { background: rgb(8 6 14 / 72%); }
.admin-menu h3 { margin: 0; font-size: 1.05rem; }
.admin-menu p { color: var(--muted); }
.admin-menu summary { font-weight: 700; cursor: pointer; }
.admin-menu details[open] > summary { margin-bottom: 0.9rem; }
.admin-group { display: grid; gap: 0.75rem; padding: 1rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-raised); }
.admin-group:last-child { border-color: var(--danger); }
.admin-group summary { padding: 0.35rem 0; }
.button.danger { border-color: var(--danger); color: var(--danger); background: none; }
.admin-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.admin-rounds { display: grid; gap: 0.4rem; margin: 0; padding: 0; list-style: none; }
.admin-rounds li { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; min-height: 2.25rem; overflow-wrap: anywhere; }
.admin-rounds small { flex: none; color: var(--muted); }

.backdrop { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.glow { position: absolute; border-radius: 50%; opacity: 0.5; }
.glow-one { top: -18rem; left: -14rem; width: 42rem; height: 42rem; background: radial-gradient(circle, rgb(141 107 255 / 55%), transparent 68%); }
.glow-two { right: -16rem; bottom: -16rem; width: 46rem; height: 46rem; background: radial-gradient(circle, rgb(255 95 168 / 42%), transparent 68%); }
.glow-three { top: 34%; left: 38%; width: 30rem; height: 30rem; background: radial-gradient(circle, rgb(198 255 61 / 14%), transparent 68%); }
.note { position: absolute; bottom: -3rem; color: var(--violet); opacity: 0.32; animation: none; }
.note:nth-of-type(even) { color: var(--pink); }
.equaliser { position: absolute; right: 0; bottom: 0; left: 0; display: flex; align-items: flex-end; gap: 1.2%; height: 5.5rem; padding: 0 1%; opacity: 0.2; }
.equaliser i { flex: 1; border-radius: 4px 4px 0 0; background: linear-gradient(to top, var(--violet), var(--pink)); transform-origin: bottom; }
.equaliser i:nth-child(6n + 1) { height: 38%; animation-duration: 1.3s; animation-delay: -0.00s; }
.equaliser i:nth-child(6n + 2) { height: 72%; animation-duration: 0.9s; animation-delay: -0.37s; }
.equaliser i:nth-child(6n + 3) { height: 50%; animation-duration: 1.7s; animation-delay: -0.74s; }
.equaliser i:nth-child(6n + 4) { height: 92%; animation-duration: 1.1s; animation-delay: -1.11s; }
.equaliser i:nth-child(6n + 5) { height: 30%; animation-duration: 1.5s; animation-delay: -1.48s; }
.equaliser i:nth-child(6n + 6) { height: 64%; animation-duration: 0.8s; animation-delay: -1.85s; }
.note-1 { left: 6%; --drift: 3rem; animation-duration: 19s; animation-delay: -0s; font-size: 1.4rem; }
.note-2 { left: 18%; --drift: -4rem; animation-duration: 24s; animation-delay: -7s; font-size: 1.9rem; }
.note-3 { left: 31%; --drift: 5rem; animation-duration: 21s; animation-delay: -3s; font-size: 2.4rem; }
.note-4 { left: 44%; --drift: -3rem; animation-duration: 27s; animation-delay: -12s; font-size: 2.9rem; }
.note-5 { left: 57%; --drift: 4rem; animation-duration: 22s; animation-delay: -5s; font-size: 1.4rem; }
.note-6 { left: 69%; --drift: -5rem; animation-duration: 26s; animation-delay: -15s; font-size: 1.9rem; }
.note-7 { left: 82%; --drift: 3rem; animation-duration: 20s; animation-delay: -9s; font-size: 2.4rem; }
.note-8 { left: 93%; --drift: -4rem; animation-duration: 25s; animation-delay: -1s; font-size: 2.9rem; }

@media (prefers-reduced-motion: no-preference) {
  .glow-one { animation: drift 26s ease-in-out infinite alternate; }
  .glow-two { animation: drift 32s ease-in-out infinite alternate-reverse; }
  .glow-three { animation: pulse 9s ease-in-out infinite alternate; }
  .note { animation-name: float-up; animation-timing-function: linear; animation-iteration-count: infinite; }
  .equaliser i { animation-name: bounce; animation-timing-function: ease-in-out; animation-iteration-count: infinite; animation-direction: alternate; }
  @keyframes drift { to { transform: translate(7rem, 5rem) scale(1.12); } }
  @keyframes pulse { from { opacity: 0.2; transform: scale(0.9); } to { opacity: 0.6; transform: scale(1.15); } }
  @keyframes float-up {
    0% { opacity: 0; transform: translate(0, 0) rotate(-10deg); }
    12% { opacity: 0.36; }
    85% { opacity: 0.26; }
    100% { opacity: 0; transform: translate(var(--drift), -112vh) rotate(16deg); }
  }
  @keyframes bounce { from { transform: scaleY(0.25); } to { transform: scaleY(1); } }
}

.icon { display: none; }

/* On phones the main menu becomes app-style buttons, locked to the bottom of the screen. */
@media (max-width: 42rem) {
  .topbar { justify-content: center; padding: 0.8rem 1rem 0.2rem; }
  .topbar nav {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 5;
    display: grid;
    grid-auto-columns: 1fr;
    grid-auto-flow: column;
    gap: 0.25rem;
    padding: 0.35rem 0.5rem calc(0.35rem + env(safe-area-inset-bottom));
    border-top: 1px solid var(--line);
    background: rgb(14 11 22 / 96%);
  }
  .topbar nav a {
    display: grid;
    justify-items: center;
    gap: 0.1rem;
    min-height: 3.25rem;
    padding: 0.35rem 0.25rem;
    color: var(--muted);
    font-size: 0.76rem;
  }
  .topbar nav a[aria-current="page"] { color: var(--accent); }
  .icon { display: block; width: 1.5rem; height: 1.5rem; fill: none; stroke: currentcolor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  main { padding-bottom: calc(6rem + env(safe-area-inset-bottom)); }
  .equaliser { bottom: calc(4.2rem + env(safe-area-inset-bottom)); }
}

.game-title {
  font: 400 clamp(2.1rem, 8vw, 3.4rem)/1.3 "Pacifico", cursive;
  text-align: center;
  overflow-wrap: anywhere;
}

.round-banner {
  display: grid;
  gap: 0.5rem;
  padding: 1.4rem 1.25rem;
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgb(141 107 255 / 38%), rgb(255 95 168 / 26%)), var(--surface);
  box-shadow: 0 0 28px rgb(198 255 61 / 16%);
  text-align: center;
}
.round-toggles { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; margin-top: 0.25rem; }
.round-toggle {
  min-height: 2.5rem;
  padding: 0.3rem 1rem;
  border: 1px solid var(--text);
  border-radius: 999px;
  background: none;
  color: var(--text);
  font: 700 0.92rem var(--body);
  cursor: pointer;
}
.round-toggle::after { content: " ▾"; }
.round-toggle[aria-expanded="true"] { border-color: var(--accent); background: var(--accent); color: var(--accent-ink); }
.round-toggle[aria-expanded="true"]::after { content: " ▴"; }
.round-toggle[hidden], .round-panel[hidden], .round-count[hidden], .round-phase[hidden] { display: none; }
.round-panel { padding: 0.75rem; border-radius: 10px; background: rgb(14 11 22 / 78%); text-align: left; }
.round-count { color: var(--accent); font-size: 0.9rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.round-title { font-size: clamp(1.7rem, 7vw, 2.5rem); overflow-wrap: anywhere; }
.round-note { font-size: 1.05rem; }
.round-note[hidden], .round-clock[hidden] { display: none; }
.round-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; }
.round-phase, .round-clock { padding: 0.25rem 0.8rem; border-radius: 999px; font-size: 0.92rem; font-weight: 700; }
.round-phase { background: var(--accent); color: var(--accent-ink); }
.round-clock { background: rgb(14 11 22 / 70%); color: var(--text); }

.choice-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.choice-row[hidden] { display: none; }
.set-list { display: grid; gap: 0.3rem; margin: 0; padding: 0; list-style: none; }
.set-list li { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; min-height: 2.25rem; overflow-wrap: anywhere; }
.card h3 { margin: 0; font-size: 1.05rem; }

.deck { display: grid; gap: 1rem; }
.deck-progress { color: var(--accent) !important; font-weight: 700; text-align: center; }
.swipe-card {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 0.6rem;
  min-height: 16rem;
  align-content: center;
  padding: 1.5rem 1rem;
  overflow: hidden;
  border: 2px solid var(--line);
  border-radius: 20px;
  background: var(--surface-raised);
  text-align: center;
  touch-action: pan-y;
  user-select: none;
  cursor: grab;
}
.swipe-card .song-art { width: 8rem; height: 8rem; }
.swipe-card h3 { font-family: var(--display); font-size: 1.4rem; overflow-wrap: anywhere; }
.swipe-card .listen-buttons { justify-content: center; }
.swipe-card .preview { justify-items: center; }
.swipe-card.leaning-right { border-color: var(--accent); }
.swipe-card.leaning-left { border-color: var(--pink); }
.swipe-stamp { position: absolute; top: 0.8rem; padding: 0.15rem 0.6rem; border: 2px solid; border-radius: 8px; font-weight: 800; opacity: 0; }
.stamp-right { left: 0.8rem; color: var(--accent); }
.stamp-left { right: 0.8rem; color: var(--pink); }
.leaning-right .stamp-right, .leaning-left .stamp-left { opacity: 1; }
.swipe-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }
.swipe-actions .button { padding-inline: 0.5rem; font-size: 0.95rem; }
.link.back { justify-self: center; margin: 0; color: var(--muted); }

.verdict { font-weight: 800; }
.card .verdict.yes { color: var(--accent); }
.card .verdict.no { color: var(--pink); }

.card[hidden] { display: none; }
.now-playing { color: var(--text) !important; font-weight: 700; overflow-wrap: anywhere; }
.playlist { display: grid; gap: 0.2rem; margin: 0; padding-left: 1.7rem; max-height: 24rem; overflow-y: auto; }
.playlist li { padding: 0.35rem 0.25rem; border-radius: 8px; }
.playlist li > span { display: block; overflow-wrap: anywhere; }
.playlist li a { font-size: 0.88rem; }
.playlist li small { color: var(--muted); }
.playlist li[data-playing] { background: var(--surface-raised); }
.playlist li[data-playing] strong { color: var(--accent); }

@media (prefers-reduced-motion: no-preference) {
  .swipe-card { transition: border-color 120ms; }
  .swipe-card.gone-right { transform: translateX(120%) rotate(16deg) !important; opacity: 0; transition: transform 180ms ease-in, opacity 180ms; }
  .swipe-card.gone-left { transform: translateX(-120%) rotate(-16deg) !important; opacity: 0; transition: transform 180ms ease-in, opacity 180ms; }
}

/* On a phone the card and its buttons must fit above the bottom menu without scrolling. */
@media (max-width: 42rem) {
  .round-banner { gap: 0.3rem; padding: 0.8rem 1rem; }
  .round-title { font-size: 1.5rem; }
  .game-title { font-size: 1.9rem; }
  .card:has(.deck) { gap: 0.6rem; padding: 1rem; }
  .card:has(.deck) > p:not(.deck-progress) { font-size: 0.9rem; line-height: 1.35; }
  .deck { gap: 0.6rem; }
  .swipe-card { gap: 0.35rem; min-height: 11rem; padding: 0.9rem; }
  .swipe-card .song-art { width: 5rem; height: 5rem; }
  .swipe-card h3 { font-size: 1.15rem; }
}

.game-actions { justify-content: center; }
.side:empty { display: none; }
.admin-menu .song h3 { font-size: 1rem; }

.vote-list { display: grid; gap: 0.15rem; margin: 0; padding: 0; color: var(--muted); font-size: 0.92rem; list-style: none; }
.vote-list strong { color: var(--text); }

.rank-card { min-height: 0; cursor: default; touch-action: auto; user-select: auto; }
.rank-list { display: grid; gap: 0.35rem; margin: 0; padding-left: 1.9rem; }
.rank-list li { min-height: 2.5rem; padding: 0.15rem 0; overflow-wrap: anywhere; }
.rank-list li::marker { color: var(--accent); font-weight: 800; }
.rank-list li.filled { color: var(--muted); }
.rank-list li.filled strong { color: var(--text); }

.history-label { margin: 0.4rem 0 0; color: var(--accent); font-size: 0.85rem !important; letter-spacing: 0.06em; text-transform: uppercase; }
td.gain { color: var(--accent); font-weight: 700; }
td.loss { color: var(--pink); font-weight: 700; }
.ranking tr.me th, .ranking tr.me td { color: var(--accent); }
.friend-games { display: grid; gap: 0.5rem; margin: 0; padding: 0; list-style: none; }

.button.google { gap: 0.7rem; border-color: #dadce0; background: #fff; color: #1f1f1f; }
.google-mark { width: 1.25rem; height: 1.25rem; flex: none; }
.divider { color: var(--muted); text-align: center; }
