/* ---------- Jetons ---------- */

:root {
  --font-display: 'Unbounded Variable', 'Arial Black', system-ui, sans-serif;
  --font-body: 'Figtree Variable', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --step--1: 0.8125rem;
  --step-0: 1rem;
  --step-1: 1.25rem;
  --step-2: 1.5625rem;
  --step-3: 1.953rem;

  --plum-950: #1b1026;
  --plum-900: #261737;
  --plum-800: #352149;
  --plum-700: #4a3263;
  --plum-300: #bbaed0;
  --plum-200: #dcd3e8;
  --plum-100: #ede8f4;
  --plum-50: #f6f3fa;
  --magenta: #c81f65;
  --gold: #f2b705;
  --vinyl: #120b19;
  --groove: #261b31;

  --choice-0: #d7263d;
  --choice-1: #2b59c3;
  --choice-2: #e0a100;
  --choice-3: #138562;
  --choice-4: #7b4fd6;
  --choice-5: #c4561b;

  --topbar-h: 60px;
  --ease-out: cubic-bezier(0.2, 0.9, 0.25, 1);
  color-scheme: light dark;
}

[data-theme='light'] {
  color-scheme: light;
  --bg: var(--plum-50);
  --surface: #ffffff;
  --surface-2: var(--plum-100);
  --line: var(--plum-200);
  --text: var(--plum-950);
  --text-2: #5b4b6e;
  --accent: var(--magenta);
  --accent-ink: var(--magenta);
  --accent-soft: #fbe4ee;
  --score: #8a6100;
  --good: #138562;
  --bad: #c0283c;
  --focus: #2b59c3;
  --tile: var(--plum-950);
  --tile-text: var(--plum-50);
}

[data-theme='dark'] {
  color-scheme: dark;
  --bg: var(--plum-950);
  --surface: var(--plum-900);
  --surface-2: var(--plum-800);
  --line: var(--plum-700);
  --text: var(--plum-50);
  --text-2: var(--plum-300);
  --accent: var(--magenta);
  --accent-ink: #ff7fb0;
  --accent-soft: #3b1730;
  --score: var(--gold);
  --good: #3dd39b;
  --bad: #ff6b7d;
  --focus: #ffc93c;
  --tile: var(--plum-800);
  --tile-text: var(--plum-50);
}

/* ---------- Base ---------- */

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

html {
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  -webkit-tap-highlight-color: transparent;
  display: flex;
  flex-direction: column;
}

h1,
h2,
h3,
p,
ul,
ol,
fieldset {
  margin: 0;
}

ul,
ol {
  padding: 0;
}

fieldset {
  border: 0;
  padding: 0;
  min-width: 0;
}

img {
  display: block;
  max-width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

a {
  color: var(--accent-ink);
}

[hidden] {
  display: none !important;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 50;
  padding: 0.6rem 1rem;
  border-radius: 10px;
  background: var(--text);
  color: var(--bg);
  font-weight: 700;
}

.skip-link:focus {
  top: 0.5rem;
}

.muted {
  color: var(--text-2);
}

.small {
  font-size: var(--step--1);
}

.lead {
  font-size: 1.125rem;
  line-height: 1.45;
  color: var(--text-2);
}

.display {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 7vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
}

.display--sm {
  font-size: clamp(1.5rem, 5vw, 1.953rem);
}

.section-title,
.card__title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--step-1);
  font-weight: 700;
  line-height: 1.25;
}

.link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-2);
  font-weight: 600;
  text-decoration: none;
}

.link:hover {
  color: var(--text);
  text-decoration: underline;
}

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

/* ---------- Icônes ---------- */

.icon {
  display: inline-block;
  flex: none;
  width: 1.25em;
  height: 1.25em;
  background: currentColor;
  -webkit-mask: var(--icon) center / contain no-repeat;
  mask: var(--icon) center / contain no-repeat;
}

.icon--lg {
  width: 2rem;
  height: 2rem;
}

.icon--xl {
  width: 4rem;
  height: 4rem;
  color: var(--accent-ink);
}

/* ---------- Structure ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  height: var(--topbar-h);
  padding: 0 max(0.75rem, env(safe-area-inset-right)) 0 max(0.75rem, env(safe-area-inset-left));
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
}

.brand img {
  border-radius: 8px;
}

.topbar__end {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}

.view {
  flex: 1;
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 1.25rem 1rem 2rem;
  outline: none;
}

.view--live {
  max-width: 600px;
  display: flex;
  flex-direction: column;
  padding-bottom: 0;
}

.stack {
  display: grid;
  gap: 0.9rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.15rem;
}

.card__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.sticky-actions {
  position: sticky;
  bottom: 0;
  z-index: 5;
  display: grid;
  gap: 0.5rem;
  padding: 1.5rem 0 calc(0.9rem + env(safe-area-inset-bottom));
  background: linear-gradient(to bottom, transparent, var(--bg) 1.25rem);
}

/* ---------- Boutons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.6rem 1.05rem;
  border: 1px solid transparent;
  border-radius: 12px;
  font-weight: 650;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, transform 0.08s;
}

.btn:active:not(:disabled) {
  transform: translateY(1px);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn--primary {
  background: var(--accent);
  color: #fff;
}

.btn--primary:hover:not(:disabled) {
  background: #b01858;
}

.btn--ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--text);
}

.btn--ghost:hover:not(:disabled) {
  background: var(--surface-2);
}

.btn--danger {
  background: var(--bad);
  color: #fff;
}

[data-theme='dark'] .btn--danger {
  background: #c0283c;
}

.btn--danger-text {
  color: var(--bad);
  justify-self: start;
}

.btn--lg {
  min-height: 54px;
  padding-inline: 1.4rem;
  font-size: 1.0625rem;
}

.btn--block {
  width: 100%;
}

.icon-btn {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--text-2);
  cursor: pointer;
  text-decoration: none;
}

.icon-btn:hover:not(:disabled) {
  background: var(--surface-2);
  color: var(--text);
}

.icon-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.icon-btn.is-done {
  color: var(--good);
  opacity: 1;
}

.icon-btn--sm {
  width: 36px;
  height: 36px;
}

.profile-btn {
  color: var(--text);
  background: var(--surface-2);
  border-radius: 50%;
}

/* ---------- Formulaires ---------- */

.field {
  display: grid;
  gap: 0.35rem;
  min-width: 0;
}

.field__label {
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 0;
}

.field__hint {
  color: var(--text-2);
  font-size: 0.875rem;
  line-height: 1.4;
}

.input {
  width: 100%;
  min-height: 44px;
  padding: 0.55rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
}

.input::placeholder {
  color: var(--text-2);
  opacity: 0.75;
}

.input:focus-visible {
  outline-offset: 0;
  border-color: var(--focus);
}

textarea.input {
  resize: vertical;
  min-height: 5rem;
}

select.input {
  cursor: pointer;
}

.input--sm {
  min-height: 38px;
  padding: 0.35rem 0.6rem;
  font-size: 0.9375rem;
}

.input--title {
  font-size: var(--step-2);
  font-weight: 700;
  padding-block: 0.5rem;
}

.input--code {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2.25rem;
  letter-spacing: 0.35em;
  text-indent: 0.35em;
  text-align: center;
  text-transform: uppercase;
}

.form-error {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  color: var(--bad);
  font-weight: 600;
  outline: none;
}

.form-error .icon {
  margin-top: 0.1em;
}

.number {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.number .input {
  width: 6rem;
}

.number__suffix {
  color: var(--text-2);
  font-weight: 600;
}

.segmented {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 4px;
  border-radius: 12px;
  background: var(--surface-2);
}

.segmented__option {
  position: relative;
  flex: 1 1 0;
  min-width: max-content;
}

.segmented__option input,
.choice-card input,
.switch input,
.device input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.segmented__option span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 38px;
  padding: 0.35rem 0.75rem;
  border-radius: 9px;
  color: var(--text-2);
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.segmented__option input:checked + span {
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 1px 3px rgb(27 16 38 / 0.18);
}

.segmented__option input:focus-visible + span {
  outline: 3px solid var(--focus);
}

.segmented--sm .segmented__option span {
  min-height: 34px;
  padding-inline: 0.55rem;
}

.choice-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 0.6rem;
}

.choice-card {
  position: relative;
  display: grid;
  gap: 0.2rem;
  padding: 0.8rem 0.9rem;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  cursor: pointer;
}

.choice-card:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.choice-card:has(input:focus-visible) {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.choice-card__title {
  font-weight: 700;
}

.choice-card__title::first-letter {
  text-transform: uppercase;
}

.choice-card__text {
  color: var(--text-2);
  font-size: 0.875rem;
  line-height: 1.4;
}

.switch {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 0.85rem;
  cursor: pointer;
}

.switch__track {
  position: relative;
  width: 46px;
  height: 28px;
  margin-top: 0.05rem;
  border-radius: 999px;
  background: var(--line);
  transition: background-color 0.2s;
}

.switch__track::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgb(0 0 0 / 0.25);
  transition: transform 0.2s var(--ease-out);
}

.switch input:checked + .switch__track {
  background: var(--accent);
}

.switch input:checked + .switch__track::after {
  transform: translateX(18px);
}

.switch input:focus-visible + .switch__track {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.switch__text {
  display: grid;
  gap: 0.15rem;
  font-weight: 600;
}

.switch__text .field__hint {
  font-weight: 400;
}

/* ---------- Petits éléments ---------- */

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  list-style: none;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: var(--surface-2);
  font-size: 0.875rem;
  font-weight: 600;
}

.chip--warn {
  color: var(--bad);
}

.chip--away {
  opacity: 0.55;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
}

.tag--lg {
  font-size: 0.875rem;
  padding: 0.3rem 0.75rem;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  list-style: none;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  background: var(--surface-2);
  font-size: 0.9375rem;
  font-weight: 600;
}

.badge--warn {
  color: var(--bad);
}

.badge--gold {
  color: var(--score);
}

.banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--accent);
  border-radius: 14px;
  background: var(--accent-soft);
}

.banner p {
  flex: 1;
  min-width: 12rem;
  font-weight: 600;
}

.checklist {
  display: grid;
  gap: 0.6rem;
  list-style: none;
  color: var(--text-2);
}

.checklist li {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
}

.checklist .icon {
  color: var(--good);
  margin-top: 0.15em;
}

.disclosure summary {
  cursor: pointer;
  font-weight: 600;
  padding: 0.5rem 0;
}

.disclosure .field__hint {
  margin-bottom: 0.5rem;
}

.plain-list {
  list-style: disc;
  padding-left: 1.25rem;
  color: var(--text-2);
}

.save-status {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-2);
  white-space: nowrap;
}

.save-status[data-kind='saved'] .icon {
  color: var(--good);
}

.save-status[data-kind='error'] {
  color: var(--bad);
}

/* ---------- États ---------- */

.state {
  display: grid;
  justify-items: center;
  gap: 0.75rem;
  padding: 2.5rem 1rem;
  text-align: center;
  color: var(--text-2);
}

.state--error {
  color: var(--text);
}

.state--error .icon {
  color: var(--bad);
}

.state--empty {
  padding: 1.75rem 1rem;
  border: 1.5px dashed var(--line);
  border-radius: 14px;
}

.spinner {
  display: inline-block;
  width: 26px;
  height: 26px;
  border: 3px solid var(--line);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.spinner--sm {
  width: 16px;
  height: 16px;
  border-width: 2px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.toasts {
  position: fixed;
  left: 50%;
  bottom: calc(1rem + env(safe-area-inset-bottom));
  z-index: 60;
  display: grid;
  gap: 0.5rem;
  width: min(420px, calc(100% - 2rem));
  transform: translateX(-50%);
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.8rem 1rem;
  border-radius: 12px;
  background: var(--text);
  color: var(--bg);
  font-weight: 600;
  box-shadow: 0 10px 30px -10px rgb(0 0 0 / 0.5);
  animation: toast-in 0.25s var(--ease-out);
}

.toast--error .icon {
  color: #ff8a98;
}

[data-theme='dark'] .toast--error .icon {
  color: var(--magenta);
}

.toast.is-leaving {
  opacity: 0;
  transition: opacity 0.3s;
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}

/* ---------- Dialogues ---------- */

.dialog {
  width: min(560px, calc(100% - 2rem));
  max-height: min(88dvh, 900px);
  padding: 0;
  border: 0;
  border-radius: 20px;
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 30px 80px -20px rgb(0 0 0 / 0.55);
}

.dialog[open] {
  display: flex;
  flex-direction: column;
}

.dialog::backdrop {
  background: rgb(14 7 20 / 0.62);
}

.dialog__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0.75rem 0.25rem 1.25rem;
}

.dialog__title {
  font-size: var(--step-1);
  font-weight: 700;
}

.dialog__body {
  padding: 0.5rem 1.25rem 1.25rem;
  overflow-y: auto;
}

.dialog__actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0 1.25rem 1.25rem;
}

.dialog__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.dialog--side {
  margin: 0;
  width: min(380px, 92vw);
  height: 100dvh;
  max-height: 100dvh;
  border-radius: 0 20px 20px 0;
}

.dialog--side[open] {
  animation: slide-in 0.28s var(--ease-out);
}

@keyframes slide-in {
  from {
    transform: translateX(-100%);
  }
}

.dialog--wide {
  width: min(720px, calc(100% - 2rem));
  height: min(88dvh, 900px);
}

.profile {
  display: grid;
  gap: 1.4rem;
}

.profile__section {
  display: grid;
  gap: 0.75rem;
  justify-items: start;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
}

.profile__heading {
  font-size: 1rem;
  font-weight: 700;
}

.profile__account {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* ---------- Onglets et listes ---------- */

.tabs {
  display: flex;
  gap: 0.25rem;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
}

.tabs__tab {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 46px;
  padding: 0.5rem 0.9rem;
  border: 0;
  border-bottom: 3px solid transparent;
  background: none;
  color: var(--text-2);
  font-weight: 650;
  cursor: pointer;
  white-space: nowrap;
}

.tabs__tab[aria-selected='true'] {
  color: var(--text);
  border-bottom-color: var(--accent);
}

.tabs__count {
  min-width: 1.5rem;
  padding: 0 0.4rem;
  border-radius: 999px;
  background: var(--surface-2);
  font-size: 0.8125rem;
  text-align: center;
}

.tab-panel {
  display: grid;
  gap: 1rem;
  padding-top: 1rem;
}

.panel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.panel-head p {
  flex: 1;
  min-width: 14rem;
}

.rows {
  list-style: none;
  display: grid;
}

.row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line);
}

.rows--compact .row {
  padding: 0.6rem 0;
}

.row__cover {
  width: 56px;
  height: 56px;
  flex: none;
  border-radius: 8px;
  object-fit: cover;
}

.rows--compact .row__cover {
  width: 48px;
  height: 48px;
}

.row__cover--empty,
.cover--empty {
  display: grid;
  place-items: center;
  background: var(--surface-2);
  color: var(--text-2);
}

.row__main {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 0.15rem;
}

.row__title {
  color: var(--text);
  font-weight: 700;
  font-size: 1.0625rem;
  text-decoration: none;
  overflow-wrap: anywhere;
}

a.row__title:hover {
  text-decoration: underline;
}

.row__meta {
  color: var(--text-2);
  font-size: 0.9375rem;
}

.row__themes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-top: 0.25rem;
}

.row__warn {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  color: var(--bad);
  font-size: 0.875rem;
  font-weight: 600;
}

.row__actions {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.row__actions .btn {
  margin-right: 0.35rem;
}

/* ---------- Accueil et rejoindre ---------- */

.join {
  display: grid;
  gap: 1.75rem;
  max-width: 440px;
  margin: 0 auto;
  padding-top: 0.75rem;
}

.join__hero {
  display: grid;
  justify-items: center;
  gap: 1.1rem;
  text-align: center;
}

.join__title {
  font-size: clamp(1.75rem, 7.5vw, 2.4rem);
}

.join__form {
  display: grid;
  gap: 1.1rem;
}


.host-home {
  display: grid;
  gap: 1.25rem;
}

.notfound {
  display: grid;
  justify-items: center;
  gap: 1rem;
  padding: 3rem 1rem;
  text-align: center;
}

/* ---------- Le vinyle ---------- */

.vinyl {
  position: relative;
  width: var(--disc, 220px);
  aspect-ratio: 1;
}

.vinyl--hero {
  --disc: 150px;
}

.vinyl__disc {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle, transparent 0 31%, rgb(255 255 255 / 0.07) 31.5% 32.2%, transparent 32.7% 96%, rgb(255 255 255 / 0.08) 97%, transparent 98%),
    repeating-radial-gradient(circle, var(--vinyl) 0 1.6px, var(--groove) 1.6px 2.6px);
  box-shadow: 0 22px 46px -20px rgb(10 4 16 / 0.75);
}

.vinyl::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(
    from 210deg,
    transparent 0deg,
    rgb(255 255 255 / 0.13) 30deg,
    transparent 70deg,
    transparent 180deg,
    rgb(255 255 255 / 0.09) 215deg,
    transparent 255deg
  );
  pointer-events: none;
}

.vinyl__label {
  position: absolute;
  inset: 33%;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgb(0 0 0 / 0.25);
}

.vinyl__label::after {
  content: '';
  width: 11%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--bg);
}

.vinyl__art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vinyl.is-spinning .vinyl__disc {
  animation: spin 1.8s linear infinite;
}

.disc-stage {
  position: relative;
  display: grid;
  place-items: center;
  width: min(62vw, 250px);
  aspect-ratio: 1;
  margin: 0.5rem auto;
}

.disc-stage .vinyl {
  --disc: 86%;
}

.view--live .disc-stage::before {
  content: '';
  position: absolute;
  inset: -20%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 22%, transparent), transparent);
}

.ring {
  position: absolute;
  inset: 0;
  transform: rotate(-90deg);
}

.ring__track,
.ring__bar {
  fill: none;
  stroke-width: 3.2;
}

.ring__track {
  stroke: var(--line);
}

.ring__bar {
  stroke: var(--score);
  stroke-linecap: round;
  transition: stroke 0.3s;
}

.disc-stage.is-urgent .ring__bar {
  stroke: var(--bad);
}

.disc-stage__count {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
}

.disc-stage__num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.4rem, 6.5vw, 2rem);
  color: #fff;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 1px 2px rgb(0 0 0 / 0.3);
}

.disc-stage.is-revealed .vinyl__label {
  animation: label-open 0.9s var(--ease-out) both;
}

.disc-stage.is-revealed .vinyl__label::after {
  display: none;
}

@keyframes label-open {
  from {
    inset: 33%;
  }
  to {
    inset: 7%;
  }
}

/* ---------- Partie en direct ---------- */

.live {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.live > section {
  display: grid;
  gap: 1rem;
  align-content: start;
  padding-bottom: 1.25rem;
}

.conn-banner {
  position: fixed;
  top: calc(var(--topbar-h) + 0.6rem);
  left: 50%;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: var(--text);
  color: var(--bg);
  font-weight: 600;
  transform: translateX(-50%);
  box-shadow: 0 10px 30px -10px rgb(0 0 0 / 0.5);
}

.score-chip {
  display: inline-flex;
  align-items: baseline;
  gap: 0.45rem;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  background: var(--surface-2);
}

.score-chip__rank {
  color: var(--text-2);
  font-weight: 700;
  font-size: 0.875rem;
}

.score-chip__pts {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--score);
  font-variant-numeric: tabular-nums;
}

.lobby {
  display: grid;
  gap: 1rem;
}

.lobby--player {
  justify-items: center;
  text-align: center;
  padding-top: 1rem;
}

.lobby--player .disc-stage {
  width: 150px;
}

.lobby--player .chips {
  justify-content: center;
}

.lobby__join {
  display: grid;
  justify-items: center;
  gap: 0.8rem;
  text-align: center;
}

.lobby__code {
  display: grid;
  gap: 0.4rem;
}

.room-code {
  display: flex;
  justify-content: center;
  gap: 0.4rem;
}

.room-code span {
  display: grid;
  place-items: center;
  width: 1.2em;
  height: 1.42em;
  border-radius: 10px;
  background: var(--tile);
  color: var(--tile-text);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.2rem, 11vw, 3.1rem);
  line-height: 1;
  box-shadow: inset 0 -4px 0 rgb(255 255 255 / 0.08);
}

.lobby__qr {
  width: 168px;
  height: 168px;
  padding: 8px;
  border-radius: 14px;
  background: #fff;
}

.lobby__url {
  color: var(--text-2);
}

.lobby__url strong {
  color: var(--text);
}

.devices {
  display: grid;
  gap: 0.5rem;
}

.device {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0.9rem;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
}

.device.is-selected {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.device:has(input:focus-visible) {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.device__name {
  flex: 1;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.intro,
.round-end,
.loading-screen {
  text-align: center;
  justify-items: center;
  padding-top: 1.5rem;
}

.intro {
  min-height: 55dvh;
  align-content: center !important;
}

.intro__step {
  color: var(--text-2);
  font-weight: 650;
}

.intro__name {
  font-size: clamp(2.3rem, 12vw, 4rem);
}

.progress {
  width: 100%;
  max-width: 360px;
  height: 6px;
  overflow: hidden;
  border-radius: 3px;
  background: var(--surface-2);
}

.progress__bar {
  height: 100%;
  background: var(--accent);
  transform-origin: left;
}

.round-end .ranking,
.end .ranking {
  width: 100%;
}

.q-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-weight: 600;
  color: var(--text-2);
}

.q-head__round {
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.q-head__count {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.prompt {
  text-align: center;
  font-size: var(--step-1);
  font-weight: 700;
}

.choices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}

.choices--2,
.choices--3 {
  grid-template-columns: 1fr;
}

.choices--5 > :last-child {
  grid-column: span 2;
}

.choice--0 {
  --c: var(--choice-0);
}
.choice--1 {
  --c: var(--choice-1);
}
.choice--2 {
  --c: var(--choice-2);
}
.choice--3 {
  --c: var(--choice-3);
}
.choice--4 {
  --c: var(--choice-4);
}
.choice--5 {
  --c: var(--choice-5);
}

.choice {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 86px;
  padding: 0.75rem 0.85rem;
  border: 0;
  border-radius: 14px;
  background: var(--c);
  color: #fff;
  text-align: left;
  font-weight: 700;
  font-size: 1.0625rem;
  line-height: 1.2;
  box-shadow: 0 4px 0 rgb(0 0 0 / 0.3);
  transition: transform 0.08s, box-shadow 0.08s, opacity 0.2s;
}

button.choice {
  cursor: pointer;
}

.choice.choice--2 {
  color: var(--plum-950);
}

button.choice:active:not(:disabled) {
  transform: translateY(3px);
  box-shadow: 0 1px 0 rgb(0 0 0 / 0.3);
}

button.choice:disabled {
  cursor: default;
}

.choice:focus-visible {
  outline-offset: 3px;
}

.choice__shape {
  display: grid;
  flex: none;
}

.shape {
  width: 26px;
  height: 26px;
  fill: currentColor;
}

.choice__text {
  min-width: 0;
  display: grid;
  gap: 0.15rem;
}

.choice__label {
  display: -webkit-box;
  overflow: hidden;
  overflow-wrap: anywhere;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.choice__sub {
  display: block;
  font-weight: 500;
  font-size: 0.875rem;
  opacity: 0.92;
}

.has-answer .choice:not(.is-chosen) {
  opacity: 0.3;
}

.choice.is-chosen {
  outline: 3px solid var(--text);
  outline-offset: 3px;
  transform: translateY(3px);
  box-shadow: 0 1px 0 rgb(0 0 0 / 0.3);
}

.locked-note,
.paused-note {
  display: inline-flex;
  justify-self: center;
  align-items: center;
  gap: 0.45rem;
  font-weight: 650;
}

.locked-note {
  color: var(--good);
}

.paused-note {
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: var(--surface-2);
}

.answered {
  text-align: center;
  color: var(--text-2);
  font-size: 0.9375rem;
  font-variant-numeric: tabular-nums;
}

.alert {
  display: grid;
  justify-items: center;
  gap: 0.6rem;
  padding: 1.25rem;
  border: 1.5px solid var(--bad);
  border-radius: 18px;
  background: var(--surface);
  text-align: center;
}

.alert > .icon {
  color: var(--bad);
}

.alert h2 {
  font-size: var(--step-1);
}

.alert__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.4rem;
}

.reveal__track {
  text-align: center;
  display: grid;
  gap: 0.15rem;
}

.reveal__title {
  font-size: var(--step-2);
  font-weight: 800;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.reveal__artist {
  color: var(--text-2);
  font-weight: 600;
  font-size: 1.0625rem;
}

.result {
  display: grid;
  justify-items: center;
  gap: 0.2rem;
}

.result__delta {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.4rem, 11vw, 3.4rem);
  line-height: 1;
  color: var(--score);
  font-variant-numeric: tabular-nums;
}

.result--bad .result__delta {
  color: var(--bad);
}

.result--none .result__delta {
  color: var(--text-2);
}

.result__text {
  color: var(--text-2);
  font-weight: 650;
}

.tally {
  list-style: none;
  display: grid;
  gap: 0.4rem;
}

.tally__row {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  grid-template-rows: auto 6px;
  column-gap: 0.7rem;
  row-gap: 0.35rem;
  align-items: center;
  padding: 0.55rem 0.7rem;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}

.tally__shape {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--c);
  color: #fff;
}

.tally__shape.choice--2 {
  color: var(--plum-950);
}

.tally__shape .shape {
  width: 18px;
  height: 18px;
}

.tally__label {
  font-weight: 650;
  min-width: 0;
  overflow-wrap: anywhere;
}

.tally__bar {
  grid-column: 2 / 4;
  position: relative;
  height: 6px;
  overflow: hidden;
  border-radius: 3px;
  background: var(--surface-2);
}

.tally__bar::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--text-2);
  transform: scaleX(var(--share, 0));
  transform-origin: left;
}

.tally__count {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.tally__row.is-correct {
  border-color: var(--good);
  background: color-mix(in srgb, var(--good) 13%, var(--surface));
}

.tally__row.is-correct .tally__bar::after {
  background: var(--good);
}

.tally__row.is-mine:not(.is-correct) {
  border-color: var(--bad);
}

.ranking {
  list-style: none;
  display: grid;
  gap: 0.2rem;
}

.ranking__row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 46px;
  padding: 0.45rem 0.75rem;
  border-radius: 12px;
}

.ranking__row:nth-child(odd) {
  background: var(--surface);
}

.ranking__row.is-me {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

.ranking__row.is-away {
  opacity: 0.55;
}

.ranking__rank {
  width: 1.75rem;
  flex: none;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--text-2);
}

.ranking__name {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 0.4rem;
  font-weight: 650;
  overflow-wrap: anywhere;
  text-align: left;
}

.ranking__stats {
  flex-basis: 100%;
  display: flex;
  flex-wrap: wrap;
  column-gap: 0.75rem;
  color: var(--text-2);
  font-size: 0.8125rem;
  font-weight: 500;
}

.ranking__delta {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-2);
  font-variant-numeric: tabular-nums;
}

.ranking__delta.is-up {
  color: var(--good);
}

.ranking__delta.is-down {
  color: var(--bad);
}

.ranking__score {
  font-weight: 750;
  font-variant-numeric: tabular-nums;
}

.end {
  text-align: center;
  justify-items: center;
  padding-top: 1rem;
}

.end__actions {
  display: grid;
  gap: 0.6rem;
  width: 100%;
  max-width: 360px;
}

.host-bar {
  position: sticky;
  bottom: 0;
  z-index: 10;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  margin: auto -1rem 0;
  padding: 0.7rem 1rem calc(0.7rem + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: var(--bg);
}

.host-bar .btn {
  min-height: 42px;
  padding-inline: 0.85rem;
}

.live > section + .host-bar {
  margin-top: auto;
}

/* ---------- Éditeurs ---------- */

.editor {
  display: grid;
  gap: 1.25rem;
}

.back {
  justify-self: start;
}

.tracks {
  list-style: none;
  display: grid;
}

.track {
  border-bottom: 1px solid var(--line);
}

.track__line {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0;
}

.cover {
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 6px;
  object-fit: cover;
}

.track__text {
  flex: 1;
  min-width: 0;
  display: grid;
}

.track__title,
.track__artist {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.track__title {
  font-weight: 650;
}

.track__artist {
  color: var(--text-2);
  font-size: 0.875rem;
}

.track__answer {
  width: 38%;
  max-width: 240px;
}

.track__more {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.75rem;
  padding: 0.25rem 0 1rem calc(44px + 0.6rem);
}

.search-form {
  display: flex;
  gap: 0.5rem;
}

.add-body {
  display: grid;
  gap: 0.75rem;
}

.rounds {
  list-style: none;
  display: grid;
  gap: 1rem;
}

.round {
  display: grid;
  gap: 1rem;
}

.round__head {
  display: flex;
  align-items: flex-end;
  gap: 0.75rem;
}

.round__num {
  display: grid;
  place-items: center;
  flex: none;
  width: 2.25rem;
  height: 2.25rem;
  margin-bottom: 0.2rem;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
}

.round__theme {
  flex: 1;
}

.round__tools {
  display: flex;
}

.round__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
}

.round__malus {
  display: grid;
  gap: 0.9rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
}

.summary {
  text-align: center;
  color: var(--text-2);
  font-weight: 650;
}

/* ---------- Écrans larges et petits ---------- */

@media (min-width: 720px) {
  .view {
    padding: 2rem 1.5rem 2.5rem;
  }
  .view--live {
    padding-bottom: 0;
  }
  .host-bar {
    margin-inline: 0;
    border: 1px solid var(--line);
    border-bottom: 0;
    border-radius: 16px 16px 0 0;
  }
}

@media (max-width: 560px) {
  .row {
    flex-wrap: wrap;
  }
  .row__actions {
    width: 100%;
    justify-content: flex-end;
  }
  .row__cover + .row__main + .row__actions {
    padding-left: calc(56px + 0.85rem);
  }
  .track__line {
    flex-wrap: wrap;
  }
  .track__answer {
    order: 10;
    flex: 1 1 100%;
    width: auto;
    max-width: none;
    margin: 0 0 0.25rem calc(44px + 0.6rem);
  }
  .track__more {
    padding-left: 0;
  }
  .round__head {
    flex-wrap: wrap;
  }
  .round__tools {
    margin-left: auto;
  }
  .brand__name {
    display: none;
  }
  .choice {
    min-height: 78px;
    font-size: 1rem;
  }
}

@media (max-width: 360px) {
  .choices {
    grid-template-columns: 1fr;
  }
  .choices--5 > :last-child {
    grid-column: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .spinner {
    animation: spin 1.6s linear infinite !important;
  }
}

/* ---------- Marque : le vinyle aux yeux bandés ---------- */

.hero-mark {
  position: relative;
  width: var(--disc, 150px);
  aspect-ratio: 1;
  /* les rubans dépassent à droite : on recentre l'ensemble */
  transform: translateX(-12%);
}

.hero-mark .vinyl {
  --disc: 100%;
}

.vinyl.is-slow .vinyl__disc {
  animation-duration: 6s;
}

.blindfold {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
  filter: drop-shadow(0 5px 6px rgb(10 4 16 / 0.35));
}

.blindfold__band {
  fill: var(--gold);
}

.blindfold__fold {
  fill: none;
  stroke: #d69800;
  stroke-width: 2.2;
  stroke-linecap: round;
}

.blindfold__tail {
  transform-box: fill-box;
  transform-origin: 0% 50%;
  animation: flutter 1.6s ease-in-out infinite;
}

.blindfold__tail--low {
  animation-delay: -0.5s;
}

@keyframes flutter {
  0%,
  100% {
    transform: rotate(0deg);
  }
  50% {
    transform: rotate(-8deg) scaleX(0.93);
  }
}

/* ---------- Accueil et connexion de l'animateur ---------- */

.join__host {
  display: grid;
  justify-items: center;
  gap: 0.6rem;
  padding: 1rem;
  border: 1.5px dashed var(--line);
  border-radius: 18px;
  color: var(--text-2);
  text-align: center;
  font-weight: 600;
}

.host-login {
  display: grid;
  justify-items: center;
  gap: 1.25rem;
  max-width: 560px;
  margin: 0 auto;
  padding-top: 0.75rem;
  text-align: center;
}

.host-login .hero-mark {
  --disc: 132px;
  margin-bottom: 0.25rem;
}

.host-login__cta {
  width: min(100%, 340px);
}

.steps {
  list-style: none;
  counter-reset: step;
  display: grid;
  gap: 0.6rem;
  width: 100%;
  text-align: left;
}

.step {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.8rem 1rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  counter-increment: step;
}

.step__icon {
  position: relative;
  display: grid;
  place-items: center;
  flex: none;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
}

.step__icon::after {
  content: counter(step);
  position: absolute;
  right: -6px;
  bottom: -6px;
  width: 1.35rem;
  height: 1.35rem;
  border: 2px solid var(--surface);
  border-radius: 50%;
  background: var(--gold);
  color: var(--plum-950);
  font: 800 0.6875rem/1.1rem var(--font-display);
  text-align: center;
}

.step__text {
  display: grid;
  gap: 0.1rem;
}

.step__text span {
  color: var(--text-2);
  font-size: 0.9375rem;
}

.host-login .checklist {
  justify-self: stretch;
  text-align: left;
}

.panel-head__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.row__cover--quiz {
  background: var(--accent-soft);
  color: var(--accent-ink);
}

.chip .icon {
  width: 14px;
  height: 14px;
  margin-right: 0.3rem;
  vertical-align: -2px;
}

.chip--special {
  background: var(--accent-soft);
  color: var(--accent-ink);
}

/* ---------- Thèmes de questions ---------- */

.qcards {
  list-style: none;
  display: grid;
  gap: 0.6rem;
}

.qcard.card {
  padding: 0;
  overflow: hidden;
}

.qcard__head {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding-right: 0.5rem;
}

.qcard__toggle {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 56px;
  padding: 0.6rem 0.4rem 0.6rem 0.85rem;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.qcard__num {
  display: grid;
  place-items: center;
  flex: none;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 50%;
  background: var(--surface-2);
  font: 700 0.8125rem var(--font-display);
}

.qcard.is-open .qcard__num {
  background: var(--accent);
  color: #fff;
}

.qcard__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 2rem;
  height: 2rem;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent-ink);
}

.qcard__icon .icon {
  width: 18px;
  height: 18px;
}

.qcard__prompt {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 650;
}

.qcard__prompt.is-empty {
  color: var(--text-2);
  font-style: italic;
  font-weight: 500;
}

.qcard__problem {
  display: inline-flex;
  color: var(--bad);
}

.qcard__chevron {
  color: var(--text-2);
}

.qcard__tools {
  display: flex;
  flex: none;
}

.qcard__body {
  padding: 0 1rem 1.1rem;
  border-top: 1px solid var(--line);
}

@media (max-width: 560px) {
  .qcard__head {
    flex-wrap: wrap;
    padding-right: 0;
  }
  .qcard__toggle {
    flex-basis: 100%;
  }
  .qcard__tools {
    width: 100%;
    justify-content: flex-end;
    margin-top: -0.6rem;
    padding: 0 0.4rem 0.3rem;
  }
}

/* ---------- Formulaire d'une question ---------- */

.qedit {
  display: grid;
  gap: 1rem;
  padding-top: 0.9rem;
}

.qedit__type {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  color: var(--accent-ink);
  font-weight: 750;
}

.qedit__body {
  display: grid;
  gap: 0.85rem;
}

.qedit__row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.85rem;
}

.qedit__seconds {
  max-width: 240px;
}

.qedit__problem {
  padding: 0.6rem 0.75rem;
  border-radius: 12px;
  background: color-mix(in srgb, var(--bad) 10%, transparent);
}

.textarea {
  min-height: 0;
  padding-block: 0.6rem;
  line-height: 1.4;
  resize: vertical;
}

.textarea--prompt {
  font-weight: 650;
  font-size: 1.0625rem;
}

.qlist {
  display: grid;
  justify-items: start;
  gap: 0.5rem;
}

.qlist__items {
  list-style: none;
  display: grid;
  gap: 0.45rem;
  width: 100%;
}

.qlist__row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.qlist__row .input {
  flex: 1;
  min-width: 0;
}

.qlist__num {
  display: grid;
  place-items: center;
  flex: none;
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 50%;
  background: var(--surface-2);
  font-weight: 750;
  font-size: 0.875rem;
}

.qlist__row.is-correct .input {
  border-color: var(--good);
  box-shadow: inset 0 0 0 1px var(--good);
}

.mark-btn {
  display: grid;
  place-items: center;
  flex: none;
  width: 2.5rem;
  height: 2.5rem;
  border: 2px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: transparent;
  cursor: pointer;
}

.mark-btn:hover {
  border-color: var(--good);
  color: var(--good);
}

.mark-btn[aria-pressed='true'] {
  border-color: var(--good);
  background: var(--good);
  color: #fff;
}

.btn--sm {
  min-height: 40px;
  padding: 0.35rem 0.85rem;
  font-size: 0.9375rem;
}

.pairs {
  list-style: none;
  display: grid;
  gap: 0.45rem;
}

.pairs__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.4rem;
}

.pairs__arrow {
  color: var(--text-2);
}

.groups-edit {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.75rem;
}

.group-edit {
  display: grid;
  justify-items: start;
  gap: 0.5rem;
  padding: 0.75rem;
  border: 1px solid var(--line);
  border-top: 6px solid var(--c);
  border-radius: 14px;
}

.group-edit__head {
  display: flex;
  gap: 0.35rem;
  width: 100%;
}

.group-edit__head .input {
  flex: 1;
  min-width: 0;
  font-weight: 700;
}

.group-edit__items {
  list-style: none;
  display: grid;
  gap: 0.4rem;
  width: 100%;
}

.table-edit {
  display: grid;
  grid-template-columns: repeat(var(--cols, 2), minmax(110px, 1fr));
  gap: 0.35rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
}

.table-edit .is-head {
  background: var(--surface-2);
  font-weight: 750;
}

.table-edit .is-blank {
  border-style: dashed;
  border-color: var(--score);
  background: color-mix(in srgb, var(--gold) 14%, var(--surface));
}

.table-edit__tools {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.pick-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.pick {
  position: relative;
}

.pick input {
  position: absolute;
  opacity: 0;
}

.pick span {
  display: inline-block;
  padding: 0.5rem 0.9rem;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  font-weight: 650;
  cursor: pointer;
}

.pick input:checked + span {
  border-color: var(--good);
  background: var(--good);
  color: #fff;
}

.pick input:focus-visible + span {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.note {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  padding: 0.75rem 0.9rem;
  border-radius: 14px;
  background: var(--surface-2);
  color: var(--text);
  font-weight: 600;
  text-align: left;
}

.note .icon {
  margin-top: 0.1em;
}

.note--gold {
  background: color-mix(in srgb, var(--gold) 24%, var(--surface));
}

/* Choix du type */

.type-picker {
  display: grid;
  gap: 1.25rem;
}

.type-family {
  display: grid;
  gap: 0.6rem;
}

.type-family__title {
  color: var(--text-2);
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.type-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.5rem;
}

.type-card {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  column-gap: 0.7rem;
  row-gap: 0.1rem;
  padding: 0.7rem 0.8rem;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s, transform 0.15s;
}

.type-card:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}

.type-card__icon {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent-ink);
}

.type-card__name {
  font-weight: 750;
}

.type-card__hint {
  color: var(--text-2);
  font-size: 0.8125rem;
  line-height: 1.3;
}

/* ---------- Éditeur de partie : manches spéciales, joueurs, ambiance ---------- */

.round--special {
  border: 1.5px dashed var(--accent);
  background: color-mix(in srgb, var(--accent) 6%, var(--surface));
}

.round--special .round__head {
  align-items: center;
}

.round--special .round__num {
  margin-bottom: 0;
}

.round__special {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
  color: var(--accent-ink);
}

.round--quiz .round__num {
  background: var(--choice-1);
}

.card__subtitle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--step-1);
  font-weight: 750;
  line-height: 1.25;
}

.players-block {
  scroll-margin-top: calc(var(--topbar-h) + 1rem);
}

.ambience-track {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.ambience-track__current {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
}

/* ---------- Salon : titres et questions des joueurs ---------- */

.contrib-panel {
  display: grid;
  gap: 1rem;
  width: 100%;
  text-align: left;
}

.counter {
  margin-left: auto;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  background: var(--surface-2);
  font-size: 0.875rem;
  font-variant-numeric: tabular-nums;
}

.counter.is-done {
  background: var(--good);
  color: #fff;
}

.search-row {
  display: flex;
  gap: 0.5rem;
}

.search-row .input {
  flex: 1;
  min-width: 0;
}

.contrib__results {
  display: grid;
  justify-items: start;
  gap: 0.5rem;
}

.track-list {
  list-style: none;
  display: grid;
  width: 100%;
}

.track-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--line);
}

.track-row.is-mine {
  margin-bottom: 0.35rem;
  padding-inline: 0.5rem;
  border: 0;
  border-radius: 12px;
  background: var(--accent-soft);
}

.track-row__text {
  flex: 1;
  min-width: 0;
  display: grid;
}

.track-row__title,
.track-row__artist {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.track-row__title {
  font-weight: 650;
}

.track-row__artist {
  color: var(--text-2);
  font-size: 0.875rem;
}

.tag--ok {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  background: color-mix(in srgb, var(--good) 18%, transparent);
  color: var(--good);
}

.tag--ok .icon {
  width: 14px;
  height: 14px;
}

.done-note {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--good);
  font-weight: 650;
}

.progress-chips {
  display: inline-flex;
  flex: none;
  gap: 0.3rem;
}

.progress-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--text-2);
  font-size: 0.8125rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.progress-chip .icon {
  width: 13px;
  height: 13px;
}

.progress-chip.is-done {
  background: color-mix(in srgb, var(--good) 18%, transparent);
  color: var(--good);
}

.ranking__avatar {
  display: grid;
  place-items: center;
  flex: none;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  background: var(--vinyl);
  box-shadow: inset 0 0 0 4px var(--groove), inset 0 0 0 6px var(--accent);
  color: #fff;
  font: 700 0.6875rem var(--font-display);
}

@media (max-width: 560px) {
  .sr-only-sm {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
}

/* Code et QR en grand, pour la télé ou l'ordinateur */

.dialog--full {
  width: min(1100px, calc(100% - 1rem));
  max-height: calc(100dvh - 1rem);
}

.dialog--full:fullscreen {
  width: 100vw;
  max-width: none;
  height: 100vh;
  max-height: none;
  border-radius: 0;
}

.join-big {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: clamp(1rem, 3vh, 2rem);
  min-height: 60vh;
  text-align: center;
}

.join-big__lead {
  font-size: clamp(1.1rem, 2.6vw, 1.75rem);
  font-weight: 650;
}

.room-code--xl {
  gap: clamp(0.4rem, 1.5vw, 1rem);
}

.room-code--xl span {
  border-radius: clamp(12px, 2vw, 22px);
  font-size: clamp(3rem, 11vw, 7rem);
}

.join-big__qr {
  width: clamp(200px, 36vh, 380px);
  height: auto;
  padding: 0.75rem;
  border-radius: 18px;
  background: #fff;
}

.join-big__url {
  color: var(--text-2);
  font-weight: 650;
  font-size: clamp(1rem, 2vw, 1.35rem);
  overflow-wrap: anywhere;
}

/* ---------- Questions en direct ---------- */

.q-tag {
  display: inline-flex;
  justify-self: center;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.8rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-weight: 700;
  font-size: 0.9375rem;
}

.q-tag--reveal {
  background: color-mix(in srgb, var(--gold) 24%, transparent);
  color: var(--text);
  animation: pop 0.5s var(--ease-out) 0.4s both;
}

.qhead {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.qhead__text {
  display: grid;
  justify-items: start;
  gap: 0.35rem;
  min-width: 0;
}

.qhead__text .q-tag {
  justify-self: start;
}

.qhead__type {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-2);
  font-weight: 700;
  font-size: 0.9375rem;
}

.reveal--quiz > .qhead__type {
  justify-self: start;
}

.disc-stage--mini {
  flex: none;
  width: 68px;
  margin: 0;
}

.view--live .disc-stage--mini::before {
  display: none;
}

.disc-stage--mini .disc-stage__num {
  color: var(--text);
  font-size: 1.35rem;
  text-shadow: none;
}

.prompt--quiz {
  font-size: clamp(1.3rem, 5vw, 1.65rem);
  line-height: 1.25;
  text-align: left;
  overflow-wrap: anywhere;
}

.choices--names {
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
}

.choices--names .choice {
  min-height: 64px;
}

.answer {
  display: grid;
  gap: 0.75rem;
}

.answer--text {
  justify-self: center;
  width: 100%;
  max-width: 480px;
}

.answer__hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  color: var(--text-2);
  font-weight: 650;
}

.input--lg {
  min-height: 58px;
  font-size: 1.25rem;
  font-weight: 650;
  text-align: center;
}

.number--lg .input {
  width: 100%;
}

.order-list {
  list-style: none;
  display: grid;
  gap: 0.4rem;
}

.order-list__row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 54px;
  padding: 0.4rem 0.5rem 0.4rem 0.6rem;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  text-align: left;
}

.order-list__num {
  display: grid;
  place-items: center;
  flex: none;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font: 700 0.875rem var(--font-display);
}

.order-list__label {
  flex: 1;
  min-width: 0;
  font-weight: 650;
  overflow-wrap: anywhere;
}

.order-list__tools {
  display: flex;
}

.match-list,
.sort-list {
  list-style: none;
  display: grid;
  gap: 0.5rem;
}

.match-list__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  align-items: center;
  gap: 0.6rem;
  text-align: left;
}

.match-list--solution .match-list__row {
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto;
}

.match-list__left {
  font-weight: 700;
  overflow-wrap: anywhere;
}

.sort-list__row {
  display: grid;
  gap: 0.4rem;
  padding: 0.65rem;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  text-align: left;
}

.sort-list__label {
  font-weight: 700;
}

.sort-list__groups {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.group-pill {
  position: relative;
}

.group-pill input {
  position: absolute;
  opacity: 0;
}

.group-pill span {
  display: inline-block;
  padding: 0.45rem 0.85rem;
  border: 2px solid var(--c);
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
}

.group-pill input:checked + span {
  background: var(--c);
  color: #fff;
}

.group-pill.choice--2 input:checked + span {
  color: var(--plum-950);
}

.group-pill input:focus-visible + span {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.group-pill input:disabled + span {
  cursor: default;
}

.gap-text {
  font-size: 1.125rem;
  line-height: 2.4;
  text-align: left;
  overflow-wrap: anywhere;
}

.gap-text__blank {
  display: inline-block;
  width: 8.5rem;
  max-width: 100%;
  min-height: 2.3rem;
  margin: 0 0.25rem;
  padding: 0.15rem 0.5rem;
  vertical-align: baseline;
}

.gap-text__solution {
  padding: 0.1rem 0.45rem;
  border-radius: 6px;
  background: color-mix(in srgb, var(--gold) 30%, transparent);
}

.gap-text__solution.is-ok,
.qtable .is-ok {
  background: color-mix(in srgb, var(--good) 22%, transparent);
}

.gap-text__solution.is-ko,
.qtable .is-ko {
  background: color-mix(in srgb, var(--bad) 20%, transparent);
}

.table-wrap {
  overflow-x: auto;
}

.qtable {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.qtable th,
.qtable td {
  padding: 0.45rem 0.55rem;
  border: 1px solid var(--line);
}

.qtable th {
  background: var(--surface-2);
}

.qtable .is-blank {
  padding: 0.25rem;
}

.qtable .is-blank .input {
  width: 100%;
  min-width: 5.5rem;
}

.qtable .is-solution {
  font-weight: 750;
}

.scale {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem;
}

.scale__step {
  display: grid;
  place-items: center;
  min-width: 3.4rem;
  height: 3.4rem;
  padding: 0 0.5rem;
  border: 2px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  color: var(--text);
  font: 800 1.25rem var(--font-display);
  cursor: pointer;
}

.scale__step:disabled {
  cursor: default;
}

.scale--stars .scale__step {
  min-width: 3rem;
  border: 0;
  background: none;
  color: var(--text-2);
}

.scale--stars .scale__step .icon {
  width: 2.5rem;
  height: 2.5rem;
}

.scale--stars .scale__step.is-on,
.scale--stars:hover .scale__step:not(:disabled) {
  color: var(--gold);
}

.scale--stars .scale__step:not(:disabled):hover ~ .scale__step {
  color: var(--text-2);
}

.scale--numbers .scale__step.is-chosen {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.scale__labels {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--text-2);
  font-weight: 600;
  font-size: 0.9375rem;
}

.slide-body {
  padding: 1.25rem;
  border-radius: 18px;
  background: var(--surface);
  font-size: 1.125rem;
  line-height: 1.5;
  white-space: pre-line;
  text-align: center;
}

/* Révélation */

.reveal-panel {
  display: grid;
  gap: 0.85rem;
  width: 100%;
}

.solution {
  display: grid;
  gap: 0.5rem;
  padding: 1rem;
  border: 2px solid var(--good);
  border-radius: 18px;
  background: color-mix(in srgb, var(--good) 9%, var(--surface));
  text-align: left;
  animation: pop 0.45s var(--ease-out) both;
}

.solution__label {
  color: var(--good);
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.solution__big {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.5rem, 7vw, 2.2rem);
  line-height: 1.15;
  text-align: center;
  overflow-wrap: anywhere;
}

.is-gold {
  color: var(--gold);
}

.given {
  display: grid;
  gap: 0.5rem;
  text-align: left;
}

.given__title {
  font-size: 1rem;
  font-weight: 750;
}

.given__list {
  list-style: none;
  display: grid;
  gap: 0.3rem;
}

.given__item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.65rem;
  border-radius: 12px;
  background: var(--surface);
  font-weight: 650;
}

ol.given__list {
  counter-reset: near;
}

ol.given__list .given__item::before {
  counter-increment: near;
  content: counter(near);
  width: 1.4rem;
  color: var(--text-2);
  font-family: var(--font-display);
  font-weight: 700;
  text-align: center;
}

.given__count {
  margin-left: auto;
  color: var(--text-2);
  font-variant-numeric: tabular-nums;
}

.mark {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 1.45rem;
  height: 1.45rem;
  border-radius: 50%;
  color: #fff;
}

.mark .icon {
  width: 14px;
  height: 14px;
}

.mark--ok {
  background: var(--good);
}

.mark--ko {
  background: var(--bad);
}

.order-list--solution .order-list__row {
  border-color: color-mix(in srgb, var(--good) 45%, var(--line));
}

.sort-solution {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.6rem;
}

.sort-solution__group {
  padding: 0.6rem 0.75rem;
  border-top: 6px solid var(--c);
  border-radius: 12px;
  background: var(--surface);
}

.sort-solution__group h3 {
  margin-bottom: 0.3rem;
  font-size: 1rem;
}

.sort-solution__group ul {
  list-style: none;
  display: grid;
  gap: 0.15rem;
}

.stars {
  display: inline-flex;
  color: var(--gold);
}

.stars .icon {
  width: 16px;
  height: 16px;
}

.tally__row.is-leader {
  border-color: var(--gold);
  background: color-mix(in srgb, var(--gold) 14%, var(--surface));
}

.tally__row.is-leader .tally__shape {
  background: var(--gold);
  color: var(--plum-950);
}

.tally__row.is-leader .tally__bar::after {
  background: var(--gold);
}

.elected {
  display: inline-flex;
  justify-self: center;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  background: var(--gold);
  color: var(--plum-950);
  font-family: var(--font-display);
  font-weight: 800;
  text-align: center;
  animation: pop 0.5s var(--ease-out) both;
}

.cloud {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.35rem 1rem;
  padding: 1.1rem;
  border-radius: 18px;
  background: var(--surface);
}

.cloud__word {
  color: var(--ink, var(--text));
  font-family: var(--font-display);
  font-weight: 700;
  font-size: calc(0.9rem + 1.8rem * var(--weight, 0.5));
  line-height: 1.1;
  animation: pop 0.5s var(--ease-out) both;
}

.choice-ink--0 { --ink: var(--choice-0); }
.choice-ink--1 { --ink: var(--choice-1); }
.choice-ink--2 { --ink: var(--score); }
.choice-ink--3 { --ink: var(--good); }
.choice-ink--4 { --ink: var(--choice-4); }
.choice-ink--5 { --ink: var(--choice-5); }

[data-theme='dark'] .choice-ink--0 { --ink: #ff6b7d; }
[data-theme='dark'] .choice-ink--1 { --ink: #86a8ff; }
[data-theme='dark'] .choice-ink--4 { --ink: #bea2ff; }
[data-theme='dark'] .choice-ink--5 { --ink: #ff9a5c; }

.ideas {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

.idea {
  padding: 0.55rem 0.9rem;
  border-radius: 14px 14px 14px 4px;
  background: var(--c);
  color: #fff;
  font-weight: 650;
  overflow-wrap: anywhere;
  animation: pop 0.4s var(--ease-out) both;
}

.idea.choice--2 {
  color: var(--plum-950);
}

.result > .icon {
  width: 32px;
  height: 32px;
  color: var(--accent-ink);
}

@keyframes pop {
  from {
    opacity: 0;
    transform: scale(0.85);
  }
}

.intro__icon {
  display: grid;
  place-items: center;
  justify-self: center;
  width: 5.5rem;
  height: 5.5rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 10px var(--accent-soft);
  animation: pop 0.6s var(--ease-out) both;
}

.intro__icon .icon {
  width: 2.6rem;
  height: 2.6rem;
  color: #fff;
}

/* ---------- Fin de partie : podium ---------- */

.end__title {
  margin-bottom: 0.25rem;
}

.podium-stage {
  position: relative;
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
}

.podium {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: end;
  gap: 0.5rem;
  padding-top: 2.75rem;
}

.podium--1 {
  grid-template-columns: minmax(0, 1fr);
  max-width: 170px;
  margin: 0 auto;
}

.podium--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 320px;
  margin: 0 auto;
}

.podium__spot {
  display: grid;
  justify-items: center;
  gap: 0.4rem;
  min-width: 0;
  animation: podium-rise 0.8s var(--ease-out) var(--delay, 0s) both;
}

.podium__who {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 0.15rem;
  max-width: 100%;
  animation: pop 0.5s var(--ease-out) calc(var(--delay, 0s) + 0.5s) both;
}

.podium__crown {
  position: absolute;
  top: -2.1rem;
  width: 36px;
  height: 36px;
  color: var(--gold);
  filter: drop-shadow(0 3px 4px rgb(10 4 16 / 0.35));
  animation: crown-drop 0.7s var(--ease-out) calc(var(--delay, 0s) + 0.8s) both;
}

.podium__avatar {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: repeating-radial-gradient(circle, var(--vinyl) 0 1.5px, var(--groove) 1.5px 2.6px);
  box-shadow: 0 12px 22px -10px rgb(10 4 16 / 0.7);
}

.podium__avatar span {
  display: grid;
  place-items: center;
  width: 60%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--spot);
  color: var(--spot-ink, #fff);
  font: 800 0.9rem var(--font-display);
}

.podium__spot--1 .podium__avatar {
  width: 86px;
  height: 86px;
}

.podium__spot--1 .podium__avatar span {
  font-size: 1.15rem;
}

.podium__name {
  max-width: 100%;
  font-weight: 800;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.podium__score {
  color: var(--text-2);
  font-size: 0.875rem;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}

.podium__block {
  position: relative;
  display: grid;
  place-items: start center;
  width: 100%;
  padding-top: 0.6rem;
  overflow: hidden;
  border-radius: 14px 14px 4px 4px;
  background: var(--spot);
  color: var(--spot-ink, #fff);
  box-shadow: inset 0 -10px 0 rgb(0 0 0 / 0.12);
}

.podium__block::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgb(255 255 255 / 0.3) 45%, transparent 60%);
  transform: translateX(-120%);
  animation: shine 3s ease-in-out calc(var(--delay, 0s) + 1s) infinite;
}

.podium__rank {
  font: 800 2.4rem/1 var(--font-display);
}

.podium__spot--1 {
  --spot: var(--gold);
  --spot-ink: var(--plum-950);
}

.podium__spot--1 .podium__block {
  height: 150px;
}

.podium__spot--2 {
  --spot: var(--plum-300);
  --spot-ink: var(--plum-950);
}

.podium__spot--2 .podium__block {
  height: 108px;
}

.podium__spot--3 {
  --spot: var(--choice-5);
}

.podium__spot--3 .podium__block {
  height: 76px;
}

@keyframes podium-rise {
  from {
    opacity: 0;
    transform: translateY(45%);
  }
}

@keyframes crown-drop {
  from {
    opacity: 0;
    transform: translateY(-26px) rotate(-25deg);
  }
}

@keyframes shine {
  0%,
  55% {
    transform: translateX(-120%);
  }
  100% {
    transform: translateX(120%);
  }
}

.confetti {
  position: absolute;
  inset: -1rem -1rem 25%;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.confetti span {
  position: absolute;
  top: -14px;
  left: var(--x);
  width: 8px;
  height: 14px;
  border-radius: 2px;
  background: var(--c);
  opacity: 0;
  animation: confetti-fall 2.6s cubic-bezier(0.3, 0.6, 0.6, 1) calc(2.4s + var(--d)) 2 both;
}

.confetti span:nth-child(3n) {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

@keyframes confetti-fall {
  0% {
    opacity: 1;
    transform: translate(0, 0) rotate(var(--r)) scale(var(--s));
  }
  85% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(var(--drift), 340px) rotate(calc(var(--r) + 540deg)) scale(var(--s));
  }
}

.end__me {
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-weight: 750;
  animation: pop 0.5s var(--ease-out) 2.6s both;
}

.awards {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.6rem;
  width: 100%;
}

.award {
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 0.15rem;
  padding: 0.9rem 0.6rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  text-align: center;
  animation: pop 0.5s var(--ease-out) var(--delay, 0s) both;
}

.award__icon {
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  margin-bottom: 0.25rem;
  border-radius: 50%;
  background: color-mix(in srgb, var(--gold) 26%, transparent);
  color: var(--score);
}

.award__title {
  color: var(--text-2);
  font-size: 0.8125rem;
  font-weight: 700;
}

.award__name {
  font-weight: 800;
  overflow-wrap: anywhere;
}

.award__value {
  color: var(--text-2);
  font-size: 0.875rem;
}

.ranking--final .ranking__row.is-top .ranking__rank {
  display: grid;
  place-items: center;
}

.ranking--final .ranking__row.is-top .shape {
  width: 20px;
  height: 20px;
}

.ranking--final .is-top-1 .ranking__rank {
  color: var(--score);
}

.ranking--final .is-top-2 .ranking__rank {
  color: var(--text-2);
}

.ranking--final .is-top-3 .ranking__rank {
  color: var(--choice-5);
}

/* ---------- Page introuvable ---------- */

.nf {
  --nf-disc: clamp(5.5rem, 25vw, 8.5rem);
  display: grid;
  justify-items: center;
  gap: 1.1rem;
  max-width: 560px;
  margin: 0 auto;
  padding-top: 0.5rem;
  text-align: center;
}

.nf__code {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.nf__digit {
  color: var(--accent-ink);
  font: 800 calc(var(--nf-disc) * 0.95) / 1 var(--font-display);
  letter-spacing: -0.04em;
}

.nf__disc {
  position: relative;
  width: var(--nf-disc);
  aspect-ratio: 1;
  /* place pour les rubans du bandeau */
  margin-right: calc(var(--nf-disc) * 0.3);
}

.nf__disc .vinyl {
  --disc: 100%;
}

.vinyl.is-scratching .vinyl__disc {
  animation: scratch 2.6s cubic-bezier(0.5, 0, 0.5, 1) infinite;
}

@keyframes scratch {
  0% {
    transform: rotate(0deg);
  }
  35% {
    transform: rotate(250deg);
  }
  42% {
    transform: rotate(205deg);
  }
  48% {
    transform: rotate(250deg);
  }
  54% {
    transform: rotate(205deg);
  }
  60% {
    transform: rotate(250deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.nf__quiz {
  display: grid;
  gap: 0.85rem;
  width: 100%;
  text-align: left;
}

.nf__prompt {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--step-1);
}

.nf .choice {
  min-height: 72px;
  font-size: 1rem;
}

.choice.is-wrong {
  opacity: 0.35;
  animation: shake 0.45s;
}

.choice.is-correct {
  outline: 4px solid var(--good);
  outline-offset: 3px;
  animation: pop 0.4s var(--ease-out);
}

@keyframes shake {
  20%,
  60% {
    transform: translateX(-8px);
  }
  40%,
  80% {
    transform: translateX(8px);
  }
}

.nf-feedback {
  min-height: 1.5em;
  font-weight: 750;
  text-align: center;
}

.nf-feedback[data-kind='bad'] {
  color: var(--bad);
}

.nf-feedback[data-kind='good'] {
  color: var(--good);
}

@media (prefers-reduced-motion: reduce) {
  .podium__spot,
  .podium__who,
  .podium__crown,
  .award,
  .end__me,
  .q-tag--reveal {
    animation-delay: 0s !important;
  }
  .blindfold__tail,
  .podium__block::before {
    animation: none !important;
  }
}

.qedit__seconds .number .input {
  width: 11.5rem;
}

@media (min-width: 720px) {
  .view--live .host-bar {
    margin-inline: -2.5rem;
  }
}
