/* =============================================================================
   play.css — Online play client (Blindtest Musical)
   ========================================================================== */

.play-body {
  min-height: 100vh;
  background: #000;
}

.play-app {
  --bt: #ff5c8a;
  --bt-soft: rgba(255, 92, 138, 0.12);
  --bt-border: rgba(255, 92, 138, 0.28);
  max-width: 860px;
  margin: 0 auto;
  padding: 88px 20px 80px;
  font-family: inherit;
}

.play-app h1,
.play-app h2,
.play-app .play-brand {
  font-family: inherit;
  letter-spacing: -0.02em;
  font-weight: 700;
}

.play-loading {
  display: grid;
  place-items: center;
  gap: 14px;
  min-height: 40vh;
  color: var(--text-sec);
}

.play-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid rgba(255, 255, 255, 0.12);
  border-top-color: var(--bt, #ff5c8a);
  border-radius: 50%;
  animation: playSpin 0.7s linear infinite;
}

@keyframes playSpin {
  to { transform: rotate(360deg); }
}

.play-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bt);
  margin-bottom: 12px;
}

.play-title {
  font-size: clamp(26px, 4.5vw, 36px);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 10px;
  color: var(--text);
  letter-spacing: -0.02em;
}

.play-sub {
  color: var(--text-sec);
  font-size: 16px;
  line-height: 1.55;
  margin-bottom: 28px;
  max-width: 36em;
}

.play-actions {
  display: grid;
  gap: 12px;
}

.play-header-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.play-btn--compact {
  padding: 8px 12px;
  font-size: 13px;
  flex-shrink: 0;
  white-space: nowrap;
}

.play-btn {
  appearance: none;
  border: 0;
  border-radius: 12px;
  padding: 13px 16px;
  font: inherit;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: background 0.15s ease, opacity 0.15s ease;
  text-decoration: none;
  color: #fff;
}

.play-btn:hover { filter: none; }
.play-btn:active { opacity: 0.88; }
.play-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.play-btn--primary {
  background: #ff5c8a;
}

.play-btn--primary:hover {
  background: #ff4a7c;
}

.play-btn--secondary {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text);
}

.play-btn--secondary:hover {
  background: rgba(255, 255, 255, 0.12);
}

.play-btn--ghost {
  background: transparent;
  color: var(--text-sec);
  border: 1px solid transparent;
}

.play-btn--ghost:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.1);
}

/* Action destructrice : accessible, jamais en concurrence avec l'action
   principale de l'ecran. */
.play-btn--danger {
  background: transparent;
  color: rgba(255, 143, 168, 0.85);
  border: 1px solid rgba(255, 55, 95, 0.22);
}

.play-btn--danger:hover {
  background: rgba(255, 55, 95, 0.1);
  color: #ff8fa8;
  border-color: rgba(255, 55, 95, 0.38);
}

.play-btn--quiet {
  background: transparent;
  color: var(--text-sec);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-weight: 600;
}

.play-btn--quiet:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.16);
}

.play-btn--block {
  width: 100%;
}

.play-btn--lg {
  padding: 16px 20px;
  font-size: 16px;
  border-radius: 14px;
}

/* Fournisseurs d'identite : memes codes visuels que le panel et l'app. */
.play-btn--provider {
  width: 100%;
  gap: 10px;
  font-size: 15px;
  padding: 14px 16px;
}

.play-btn--google {
  background: #fff;
  color: #1f1f1f;
}

.play-btn--google:hover {
  background: #ececf0;
}

.play-btn--apple {
  background: #000;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.play-btn--apple:hover {
  background: #17171a;
}

.play-btn--apple i {
  font-size: 17px;
}

.play-provider-mark {
  display: inline-flex;
  align-items: center;
}

.play-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 18px;
  margin-bottom: 16px;
}

.play-game-pick {
  display: flex;
  gap: 14px;
  align-items: center;
  text-align: left;
  width: 100%;
  cursor: pointer;
  background: #1a0a12;
  border: 1px solid var(--bt-border);
  border-radius: 16px;
  padding: 18px;
  color: #fff;
  font: inherit;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.play-game-pick:hover {
  background: #220e18;
  border-color: rgba(255, 92, 138, 0.45);
}

.play-game-pick__icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.1);
  font-size: 22px;
  flex-shrink: 0;
}

.play-game-pick__name {
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}

.play-game-pick__meta {
  color: rgba(255, 255, 255, 0.55);
  font-size: 13px;
}

.play-field {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.play-field label {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
}

.play-field input[type="text"],
.play-field input[type="url"],
.play-field select {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  padding: 13px 14px;
  font: inherit;
  font-size: 16px;
  outline: none;
}

.play-field input:focus,
.play-field select:focus {
  border-color: var(--bt);
  box-shadow: 0 0 0 3px var(--bt-soft);
}

.play-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.play-toggle-row:last-child { border-bottom: 0; }

.play-toggle-row span {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
}

.play-switch {
  position: relative;
  width: 46px;
  height: 28px;
  flex-shrink: 0;
}

.play-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.play-switch i {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  transition: background 0.15s ease;
  cursor: pointer;
}

.play-switch i::after {
  content: "";
  position: absolute;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  top: 3px;
  left: 3px;
  transition: transform 0.15s ease;
}

.play-switch input:checked + i {
  background: var(--bt);
}

.play-switch input:checked + i::after {
  transform: translateX(18px);
}

/* ── Playlists ───────────────────────────────────────────────────────────── */

.play-playlists {
  display: block;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.play-card > .play-playlists:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.play-playlists__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.play-playlists__title {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}

.play-playlists__title i {
  color: #1db954;
  font-size: 16px;
}

.play-playlists__count {
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--text-sec);
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  padding: 4px 10px;
}

.play-playlists__count.is-full {
  color: #ffd27a;
  background: rgba(255, 159, 10, 0.14);
}

.play-playlists__empty {
  margin: 0 0 12px;
  padding: 16px;
  border: 1px dashed rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-sec);
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
}

.play-playlists__hint {
  margin: 10px 0 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--text-sec);
}

.play-playlist-list {
  display: grid;
  gap: 8px;
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
}

.play-playlist-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: border-color .15s, background .15s;
}

.play-playlist-item:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.14);
}

.play-playlist-item__art {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: cover;
  background: #222;
  flex-shrink: 0;
}

.play-playlist-item__art.is-empty {
  display: grid;
  place-items: center;
  font-size: 18px;
  color: var(--text-sec);
}

.play-playlist-item__meta {
  flex: 1;
  min-width: 0;
}

.play-playlist-item__name {
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.play-playlist-item__owner {
  margin-top: 2px;
  font-size: 12px;
  color: var(--text-sec);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.play-playlist-item__remove {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--text-sec);
  font-size: 14px;
  cursor: pointer;
  transition: color .15s, background .15s, border-color .15s;
}

.play-playlist-item__remove:hover:not(:disabled) {
  color: #ff8fa8;
  background: rgba(255, 55, 95, 0.12);
  border-color: rgba(255, 55, 95, 0.28);
}

.play-playlist-item__remove:disabled {
  opacity: .4;
  cursor: not-allowed;
}

.play-playlist-add {
  display: flex;
  gap: 8px;
}

.play-playlist-add__input {
  flex: 1;
  min-width: 0;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  padding: 12px 14px;
  font: inherit;
  font-size: 15px;
  outline: none;
}

.play-playlist-add__input::placeholder {
  color: rgba(255, 255, 255, 0.32);
}

.play-playlist-add__input:focus {
  border-color: var(--bt);
  box-shadow: 0 0 0 3px var(--bt-soft);
}

.play-playlist-add__input:disabled {
  opacity: .5;
}

.play-playlist-add__btn {
  flex-shrink: 0;
  padding: 12px 18px;
  font-size: 14px;
}

.play-error {
  background: rgba(255, 55, 95, 0.12);
  border: 1px solid rgba(255, 55, 95, 0.28);
  color: #ffb3c4;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 14px;
  margin-bottom: 16px;
}

.play-hint {
  font-size: 13px;
  color: var(--text-sec);
  line-height: 1.45;
  margin-top: -6px;
  margin-bottom: 16px;
}

.play-code-box {
  text-align: center;
  padding: 22px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 18px;
}

.play-code-box__label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 8px;
}

.play-code-box__code {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: clamp(26px, 7vw, 38px);
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #fff;
}

.play-code-box__actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.play-players {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.play-player {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
}

.play-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #2a2a2e;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 13px;
  color: #fff;
  overflow: hidden;
  flex-shrink: 0;
}

.play-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.play-player__name {
  font-weight: 600;
  flex: 1;
}

.play-player__badge {
  font-size: 11px;
  font-weight: 700;
  color: var(--bt);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ── Game UI ─────────────────────────────────────────────────────────────── */

.play-game {
  position: relative;
}

.play-progress {
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 18px;
}

.play-progress > span {
  display: block;
  height: 100%;
  background: #ff5c8a;
  border-radius: inherit;
  transition: width 0.3s ease;
}

.play-game-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.play-round-label {
  font-size: 13px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.55);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.play-timer {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  border: 3px solid rgba(255, 255, 255, 0.12);
  color: #fff;
}

.play-timer.is-warn { border-color: #ff9f0a; color: #ff9f0a; }
.play-timer.is-danger { border-color: #ff375f; color: #ff375f; }

.play-artwork {
  width: min(220px, 55vw);
  aspect-ratio: 1;
  margin: 0 auto 20px;
  border-radius: 18px;
  overflow: hidden;
  background: #1a1a1e;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: grid;
  place-items: center;
  position: relative;
}

.play-artwork img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.play-artwork.is-blurred img {
  filter: blur(18px) saturate(1.2);
  transform: scale(1.15);
}

.play-artwork__pulse {
  position: absolute;
  inset: 22%;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.18);
}

/* ── Timeline des trouvailles ────────────────────────────────────────────── */

.play-timeline {
  position: relative;
  padding: 14px 12px 10px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.play-timeline.is-reveal {
  background: rgba(167, 139, 250, 0.07);
  border-color: rgba(167, 139, 250, 0.22);
}

.play-timeline__head {
  margin-bottom: 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}

/* La bande elle-meme : les reperes sont positionnes par rapport a elle. */
.play-timeline__track {
  position: relative;
  padding-top: 34px;
  overflow: hidden;
}

.play-timeline__wave {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 48px;
  position: relative;
  z-index: 1;
}

.play-timeline__bar {
  flex: 1;
  min-width: 2px;
  border-radius: 999px;
  background: #7c6a99;
  opacity: 0.45;
  transform-origin: bottom center;
}

.play-timeline__bar.is-played {
  opacity: 1;
  background: #a78bfa;
}

.play-timeline__rail {
  height: 3px;
  margin-top: 2px;
  border-radius: 999px;
  background: #6b5a88;
  position: relative;
  z-index: 1;
}

.play-timeline__playhead {
  position: absolute;
  top: 34px;
  bottom: 0;
  width: 2px;
  margin-left: -1px;
  background: rgba(255, 255, 255, 0.85);
  z-index: 3;
  pointer-events: none;
}

.play-timeline__marker {
  position: absolute;
  top: 0;
  z-index: 4;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
}

.play-timeline__marker-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: #2a2a2e;
  overflow: hidden;
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 700;
  color: #fff;
}

.play-timeline__marker-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.play-timeline__marker-time {
  margin-top: 2px;
  font-size: 10px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: rgba(255, 255, 255, 0.72);
  white-space: nowrap;
}

.play-timeline__marker-stem {
  width: 2px;
  flex: 1;
  min-height: 46px;
  background: rgba(255, 255, 255, 0.4);
}

.play-timeline__marker.is-me .play-timeline__marker-avatar {
  border-color: #ff5c8a;
}

.play-timeline__marker.is-me .play-timeline__marker-time {
  color: #ffb3c4;
}

/* Recapitulatif affiche a la revelation. */
.play-timeline__legend {
  display: grid;
  gap: 6px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: none;
}

.play-timeline__legend-item {
  display: grid;
  grid-template-columns: 18px 28px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  font-size: 13px;
}

.play-timeline__legend-item.is-me {
  background: var(--bt-soft);
  border: 1px solid var(--bt-border);
}

.play-timeline__legend-rank {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: rgba(255, 255, 255, 0.4);
  text-align: center;
}

.play-timeline__legend-item .play-avatar {
  width: 28px;
  height: 28px;
  font-size: 11px;
}

.play-timeline__legend-name {
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.play-timeline__legend-time {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #c4b5fd;
}

.play-timeline__empty {
  margin: 14px 0 0;
  font-size: 13px;
  color: var(--text-sec);
  text-align: center;
}

.play-game-topbar {
  position: sticky;
  top: 48px;
  z-index: 20;
  margin: 0 0 18px;
  padding: 0;
  background: transparent;
}

.play-game-topbar .play-game-top {
  margin: 14px 0 0;
}

.play-game-topbar > .play-progress {
  margin: 14px 0 0;
}

.play-lobby-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 16px;
  align-items: start;
}

@media (max-width: 720px) {
  .play-lobby-grid {
    grid-template-columns: 1fr;
  }
}

.play-lobby-grid .play-card {
  margin-bottom: 0;
}

.play-track-reveal {
  text-align: center;
  margin-bottom: 18px;
}

.play-track-reveal h2 {
  font-size: 22px;
  margin-bottom: 4px;
}

.play-track-reveal p {
  color: var(--text-sec);
}

.play-track-reveal.is-personal {
  animation: play-reveal-pop 0.45s ease-out;
}

.play-track-reveal__owner {
  margin-top: 6px;
  font-size: 13px;
  color: var(--text-muted, var(--text-sec));
  opacity: 0.9;
}

@keyframes play-reveal-pop {
  from { opacity: 0; transform: translateY(8px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ── Zone de reponse ─────────────────────────────────────────────────────── */

.play-answer {
  display: grid;
  gap: 10px;
}

.play-guess {
  position: relative;
  display: flex;
  align-items: center;
}

.play-guess__input {
  width: 100%;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.4);
  color: #fff;
  padding: 16px 60px 16px 20px;
  font: inherit;
  font-size: 16px;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}

.play-guess__input::placeholder {
  color: rgba(255, 255, 255, 0.34);
}

.play-guess__input:focus {
  border-color: var(--bt);
  box-shadow: 0 0 0 3px var(--bt-soft);
}

.play-guess__send {
  position: absolute;
  right: 6px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--bt);
  color: #fff;
  font-size: 15px;
  cursor: pointer;
  transition: background .15s, opacity .15s;
}

.play-guess__send:hover:not(:disabled) {
  background: #ff4a7c;
}

.play-guess__send:disabled {
  opacity: .45;
  cursor: not-allowed;
}

.play-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.play-chip {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.8);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  cursor: pointer;
  font: inherit;
}

.play-chip:hover {
  border-color: var(--bt);
  color: #fff;
}

.play-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 16px;
}

.play-check {
  font-size: 12px;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.45);
}

.play-check.is-ok {
  background: rgba(48, 209, 88, 0.18);
  color: #30d158;
}

.play-check.is-pop {
  animation: playCheckPop 0.55s cubic-bezier(.34, 1.4, .64, 1);
}

@keyframes playCheckPop {
  0% { transform: scale(0.85); }
  45% { transform: scale(1.12); }
  100% { transform: scale(1); }
}

.play-live {
  margin-bottom: 14px;
}

.play-live-list {
  display: grid;
  gap: 8px;
}

.play-live-row {
  display: grid;
  grid-template-columns: 32px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
}

.play-live-row.has-find {
  background: rgba(48, 209, 88, 0.08);
}

.play-live-row.is-me {
  border: 1px solid rgba(255, 92, 138, 0.25);
}

.play-live-name {
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.play-live-dots {
  display: flex;
  gap: 6px;
  align-items: center;
}

.play-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: background 0.2s ease, transform 0.2s ease;
}

.play-dot.is-ok {
  background: #30d158;
  border-color: #1e8e5a;
  animation: playDotPop 0.4s ease;
}

@keyframes playDotPop {
  0% { transform: scale(0.6); }
  60% { transform: scale(1.25); }
  100% { transform: scale(1); }
}

.play-suggestions {
  min-height: 0;
  margin-bottom: 10px;
}

.play-scoreboard {
  display: grid;
  gap: 8px;
}

.play-score-row {
  position: relative;
  display: grid;
  text-align: left;
  grid-template-columns: 28px 36px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.play-score-row.is-enter {
  animation: play-row-in 0.45s cubic-bezier(.22, 1, .36, 1) both;
  animation-delay: var(--row-delay, 0s);
}

.play-score-row .play-avatar {
  width: 36px;
  height: 36px;
  font-size: 12px;
}

.play-score-row__who {
  min-width: 0;
}

.play-score-row__name {
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.play-score-row__you {
  font-weight: 600;
  color: var(--bt);
}

.play-score-row__streak {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 2px;
  font-size: 11px;
  font-weight: 700;
  color: #ffb066;
}

.play-score-row__none {
  margin-top: 2px;
  font-size: 11px;
  color: var(--text-sec);
}

.play-score-row__gain {
  min-width: 42px;
  text-align: right;
  font-size: 14px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: #30d158;
}

.play-score-row__gain.is-empty {
  min-width: 0;
}

.play-score-row.is-me {
  border-color: var(--bt-border);
  background: linear-gradient(90deg, rgba(255, 92, 138, 0.16), rgba(255, 92, 138, 0.05));
  box-shadow: inset 0 0 0 1px rgba(255, 92, 138, 0.12);
}

.play-score-row.is-top1 {
  border-color: rgba(255, 214, 10, 0.35);
  background: linear-gradient(90deg, rgba(255, 214, 10, 0.12), rgba(255, 255, 255, 0.03));
}

.play-score-row.is-top2 {
  border-color: rgba(200, 210, 230, 0.28);
}

.play-score-row.is-top3 {
  border-color: rgba(205, 127, 50, 0.3);
}

.play-score-row__rank {
  font-weight: 800;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
  line-height: 1;
}

.play-score-row__pts {
  font-weight: 800;
  font-size: 18px;
  font-variant-numeric: tabular-nums;
  min-width: 2.2ch;
  text-align: right;
}

@keyframes play-row-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.play-final {
  position: relative;
  text-align: center;
  overflow: hidden;
}

.play-final__glow {
  position: absolute;
  left: 50%;
  top: -40px;
  width: 280px;
  height: 280px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 214, 10, 0.28), transparent 68%);
  pointer-events: none;
  z-index: 0;
}

.play-final > *:not(.play-final__glow) {
  position: relative;
  z-index: 1;
}

.play-final__kicker {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-sec);
}

.play-final__champ {
  margin: 0 0 8px;
}

.play-final__champ-avatar {
  position: relative;
  display: inline-flex;
  margin-bottom: 10px;
}

.play-final__champ-avatar .play-avatar {
  width: 84px;
  height: 84px;
  font-size: 28px;
  border: 3px solid #ffd60a;
  box-shadow: 0 0 0 6px rgba(255, 214, 10, 0.15), 0 12px 40px rgba(0, 0, 0, 0.35);
}

.play-final__champ-medal {
  position: absolute;
  right: -6px;
  bottom: -4px;
  font-size: 28px;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.45));
}

.play-final__champ-label {
  margin: 0 0 4px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ffd60a;
}

.play-final__champ-name {
  margin: 0 0 6px;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.play-final__champ-score {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: rgba(255, 255, 255, 0.82);
}

.play-final__place {
  margin: 4px 0 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--bt);
}

.play-final h1 {
  font-size: 32px;
  margin-bottom: 8px;
}

.play-final__sub {
  color: var(--text-sec);
  margin-bottom: 24px;
}

.play-final .play-podium {
  margin: 18px 0 20px;
}

.play-final .play-scoreboard {
  text-align: left;
  margin-bottom: 8px;
}

.play-providers {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

/* Separateur « ou jouer avec un pseudo ». */
.play-separator {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px;
  color: var(--text-sec);
  font-size: 12px;
}

.play-separator::before,
.play-separator::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
}

.play-consent-block {
  margin: 4px 0 16px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.play-consent-block.is-needed,
.play-consent.is-needed {
  border-color: rgba(255, 92, 138, 0.65);
  background: rgba(255, 92, 138, 0.1);
  animation: play-consent-pulse 0.7s ease;
}

.play-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 8px;
  font-size: 13px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.85);
  cursor: pointer;
}

.play-consent input {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  accent-color: var(--bt);
  cursor: pointer;
}

@keyframes play-consent-pulse {
  0%, 100% { transform: scale(1); }
  40% { transform: scale(1.015); }
}

.play-legal {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-sec);
}

.play-legal a {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.play-legal a:hover {
  color: #fff;
}

/* ── Cartes ──────────────────────────────────────────────────────────────── */

.play-card__title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}

.play-card__count {
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--text-sec);
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  padding: 4px 10px;
}

.play-readonly-settings {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 12px;
  margin: 0;
  font-size: 13px;
}

.play-readonly-settings dt {
  color: var(--text-sec);
}

.play-readonly-settings dd {
  margin: 0;
  font-weight: 600;
  text-align: right;
}

/* ── Action principale d'un ecran ────────────────────────────────────────── */

.play-cta {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

.play-cta__note {
  margin: 0;
  font-size: 13px;
  color: var(--text-sec);
  text-align: center;
}

.play-waiting {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-sec);
  font-size: 14px;
}

.play-waiting__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--bt);
  animation: playPulse 1.4s ease-in-out infinite;
}

@keyframes playPulse {
  0%, 100% { opacity: .35; transform: scale(.8); }
  50%      { opacity: 1;   transform: scale(1); }
}

.play-player__badge.is-you {
  color: var(--text-sec);
}

/* ── Compte ──────────────────────────────────────────────────────────────── */

/* Ligne de tete : le contenu a gauche, le compte a droite. C'est un reglage,
   il ne doit jamais peser autant que le jeu lui-meme. */
.play-topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.play-topline .play-kicker {
  margin-bottom: 0;
}

.play-account {
  position: relative;
  flex-shrink: 0;
}

.play-account__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 220px;
  padding: 5px 12px 5px 5px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.045);
  color: var(--text);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  transition: background .15s, border-color .15s;
}

.play-account__btn:hover,
.play-account__btn.is-open {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.18);
}

.play-account__btn .play-avatar {
  width: 26px;
  height: 26px;
  font-size: 10px;
}

.play-account__name {
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.play-account__badge {
  flex-shrink: 0;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  padding: 3px 7px;
}

.play-account__chevron {
  flex-shrink: 0;
  font-size: 9px;
  color: var(--text-sec);
}

.play-account__btn.is-open .play-account__chevron {
  transform: rotate(180deg);
}

.play-account__menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 60;
  min-width: 232px;
  padding: 6px;
  border-radius: 16px;
  background: #16161c;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 18px 44px rgba(0, 0, 0, .55);
}

.play-account__note {
  margin: 6px 8px 8px;
  font-size: 11px;
  line-height: 1.45;
  color: var(--text-sec);
}

.play-account__item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 10px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 14px;
  text-align: left;
  cursor: pointer;
}

.play-account__item i {
  width: 16px;
  font-size: 13px;
  color: var(--text-sec);
}

.play-account__item:hover {
  background: rgba(255, 255, 255, 0.07);
}

.play-account__item.is-danger,
.play-account__item.is-danger i {
  color: #ff8fa8;
}

.play-account__item.is-danger:hover {
  background: rgba(255, 55, 95, 0.12);
}

/* ── Volume ──────────────────────────────────────────────────────────────── */

.play-volume {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* En-tete de partie : manche a gauche, volume au centre, sortie a droite. */
.play-game-head {
  align-items: center;
}

.play-game-head .play-volume {
  margin-left: auto;
}

.play-volume__btn {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-sec);
  font-size: 13px;
  cursor: pointer;
  transition: color .15s, background .15s;
}

.play-volume__btn:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.1);
}

.play-volume__slider {
  width: 84px;
  height: 4px;
  appearance: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  cursor: pointer;
}

.play-volume__slider::-webkit-slider-thumb {
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  border: 0;
  cursor: pointer;
}

.play-volume__slider::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  border: 0;
  cursor: pointer;
}

/* ── Resultats ───────────────────────────────────────────────────────────── */

.play-results .play-scoreboard {
  margin-top: 16px;
}

.play-results .play-podium {
  margin-top: 6px;
  margin-bottom: 4px;
}

.play-results .play-title {
  letter-spacing: -0.02em;
}

/* Le gain personnel, mis en avant : c'est la reponse a « j'ai gagne quoi ? ». */
.play-myscore {
  margin: 18px 0 22px;
  padding: 18px;
  border-radius: 18px;
  text-align: center;
  background: linear-gradient(180deg, rgba(255, 92, 138, 0.16), rgba(255, 92, 138, 0.04));
  border: 1px solid var(--bt-border);
}

.play-myscore.is-pop {
  animation: play-myscore-pop 0.55s cubic-bezier(.22, 1, .36, 1);
}

@keyframes play-myscore-pop {
  from { opacity: 0; transform: translateY(12px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.play-myscore__total {
  font-size: 40px;
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: #fff;
  letter-spacing: -0.02em;
}

.play-myscore__plus {
  color: var(--bt);
}

.play-myscore__unit {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-sec);
}

.play-myscore__label {
  margin-top: 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-sec);
}

.play-gains {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-top: 14px;
}

.play-gain {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.82);
}

.play-gain b {
  font-variant-numeric: tabular-nums;
}

.play-gain--speed {
  background: rgba(100, 210, 255, 0.16);
  color: #9fe4ff;
}

.play-gain--streak {
  background: rgba(255, 159, 10, 0.16);
  color: #ffc06e;
}

/* ── Podium (médailles + scores, pas un diagramme) ───────────────────────── */

.play-podium {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: end;
  gap: 8px;
  margin: 8px 0 4px;
  padding: 4px 0 0;
}

.play-podium__col {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  text-align: center;
}

.play-podium__col.is-enter {
  animation: play-podium-in 0.5s cubic-bezier(.22, 1, .36, 1) both;
  animation-delay: var(--podium-delay, 0s);
}

@keyframes play-podium-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.play-podium__medal {
  font-size: 22px;
  line-height: 1;
  margin-bottom: 4px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.35));
}

.play-podium__col .play-avatar {
  width: 44px;
  height: 44px;
  font-size: 14px;
  border: 2px solid rgba(255, 255, 255, 0.18);
}

.play-podium__col.is-rank1 .play-avatar {
  width: 52px;
  height: 52px;
  border-color: rgba(255, 214, 10, 0.85);
  box-shadow: 0 0 0 3px rgba(255, 214, 10, 0.15);
}

.play-podium__col.is-rank2 .play-avatar {
  border-color: rgba(200, 210, 230, 0.65);
}

.play-podium__col.is-rank3 .play-avatar {
  border-color: rgba(205, 127, 50, 0.7);
}

.play-podium__col.is-me .play-avatar {
  box-shadow: 0 0 0 3px rgba(255, 92, 138, 0.35);
}

.play-podium__name {
  max-width: 100%;
  margin-top: 6px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.play-podium__score {
  margin-top: 2px;
  font-size: 15px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: rgba(255, 255, 255, 0.92);
}

.play-podium__col.is-rank1 .play-podium__score {
  color: #ffd60a;
  font-size: 17px;
}

/* Petit marchepied discret — juste pour le rythme 2·1·3, pas un graphique */
.play-podium__step {
  width: 100%;
  margin-top: 8px;
  border-radius: 10px 10px 4px 4px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 0;
}

.play-podium__col.is-rank1 .play-podium__step {
  height: 28px;
  background: linear-gradient(180deg, rgba(255, 214, 10, 0.22), rgba(255, 214, 10, 0.06));
  border-color: rgba(255, 214, 10, 0.2);
}

.play-podium__col.is-rank2 .play-podium__step {
  height: 18px;
  background: linear-gradient(180deg, rgba(200, 210, 230, 0.16), rgba(200, 210, 230, 0.04));
}

.play-podium__col.is-rank3 .play-podium__step {
  height: 12px;
  background: linear-gradient(180deg, rgba(205, 127, 50, 0.16), rgba(205, 127, 50, 0.04));
}

.play-podium--final .play-podium__col.is-rank1 .play-avatar {
  width: 56px;
  height: 56px;
}

.play-podium--final .play-podium__medal {
  font-size: 26px;
}

.play-podium--final .play-podium__col.is-rank1 .play-podium__step {
  height: 32px;
}

/* ── Confettis ───────────────────────────────────────────────────────────── */

.play-confetti {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 400;
  pointer-events: none;
}

/* ── Hub multi-jeux ──────────────────────────────────────────────────────── */

.play-game-picks {
  display: grid;
  gap: 12px;
}

.play-game-pick__icon.is-tp {
  background: rgba(244, 114, 182, 0.18);
  color: #F472B6;
}

.play-game-picks .play-game-pick:nth-child(2) {
  background: #140a12;
  border-color: rgba(244, 114, 182, 0.28);
}

.play-game-picks .play-game-pick:nth-child(2):hover {
  background: #1c0e18;
  border-color: rgba(244, 114, 182, 0.5);
}

/* ── Tu préfères ─────────────────────────────────────────────────────────── */

.play-screen--tp,
.play-tp,
.play-final--tp {
  --bt: #F472B6;
  --bt-soft: rgba(244, 114, 182, 0.12);
  --bt-border: rgba(244, 114, 182, 0.28);
}

.play-btn--tp {
  background: #F472B6 !important;
  color: #1a0a12 !important;
}

.play-btn--tp:hover:not(:disabled) {
  filter: brightness(1.06);
}

.play-progress--tp > span {
  background: linear-gradient(90deg, #60A5FA, #F472B6);
}

.play-spinner--tp {
  border-top-color: #F472B6;
}

.play-cat-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.play-cat-chip {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.78);
  border-radius: 999px;
  padding: 8px 12px;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.play-cat-chip.is-on {
  background: rgba(244, 114, 182, 0.18);
  border-color: rgba(244, 114, 182, 0.45);
  color: #fff;
}

.play-tp-prompt {
  text-align: center;
  margin-bottom: 18px;
}

.play-tp-prompt__label {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.play-tp-choice {
  display: grid;
  gap: 10px;
  width: 100%;
  text-align: left;
  padding: 18px 16px;
  border-radius: 18px;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  font: inherit;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s, background 0.15s, opacity 0.15s;
}

.play-tp-choice:disabled {
  cursor: default;
}

.play-tp-choice.is-a {
  border-color: rgba(96, 165, 250, 0.35);
  background: rgba(96, 165, 250, 0.1);
}

.play-tp-choice.is-b {
  border-color: rgba(244, 114, 182, 0.35);
  background: rgba(244, 114, 182, 0.1);
}

.play-tp-choice.is-picked {
  transform: scale(1.01);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.12);
}

.play-tp-choice.is-dim {
  opacity: 0.55;
}

.play-tp-choice__text {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
}

.play-tp-pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.play-tp-pill.is-a {
  color: #60A5FA;
  background: rgba(96, 165, 250, 0.16);
  border: 1px solid rgba(96, 165, 250, 0.35);
}

.play-tp-pill.is-b {
  color: #F472B6;
  background: rgba(244, 114, 182, 0.16);
  border: 1px solid rgba(244, 114, 182, 0.35);
}

.play-tp-or {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  margin: 14px 0;
}

.play-tp-or__line {
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
}

.play-tp-or__text {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.45);
}

.play-tp-wait {
  margin-top: 16px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-sec);
}

.play-tp-dots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
}

.play-tp-dot {
  opacity: 0.35;
  transition: opacity 0.2s, transform 0.2s;
}

.play-tp-dot .play-avatar {
  width: 32px;
  height: 32px;
  font-size: 11px;
}

.play-tp-dot.is-on {
  opacity: 1;
  transform: translateY(-2px);
}

.play-tp-dot.is-me .play-avatar {
  box-shadow: 0 0 0 2px rgba(244, 114, 182, 0.5);
}

.play-tp-result-title {
  text-align: center;
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 6px;
}

.play-tp-majority {
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  color: #F472B6;
  margin-bottom: 18px;
}

.play-tp-majority.is-tie {
  color: #ffd60a;
}

.play-tp-reveal-card {
  padding: 16px;
  border-radius: 18px;
  margin-bottom: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}

.play-tp-reveal-card.is-a {
  border-color: rgba(96, 165, 250, 0.28);
}

.play-tp-reveal-card.is-b {
  border-color: rgba(244, 114, 182, 0.28);
}

.play-tp-reveal-card.is-win {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.play-tp-reveal-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.play-tp-pct {
  font-size: 22px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.play-tp-choice-text {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 12px;
}

.play-tp-bar {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  margin-bottom: 8px;
}

.play-tp-bar > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  transition: width 0.7s cubic-bezier(.22, 1, .36, 1);
}

.play-tp-bar > span.is-a {
  background: #60A5FA;
}

.play-tp-bar > span.is-b {
  background: #F472B6;
}

.play-tp-count {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-sec);
  margin-bottom: 8px;
}

.play-tp-voters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.play-tp-voter .play-avatar {
  width: 28px;
  height: 28px;
  font-size: 10px;
}

.play-tp-deltas {
  display: grid;
  gap: 6px;
  margin: 12px 0 8px;
}

.play-tp-delta {
  display: flex;
  justify-content: space-between;
  padding: 8px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  font-size: 13px;
  font-weight: 600;
}

.play-tp-delta b {
  color: #30d158;
  font-variant-numeric: tabular-nums;
}

.play-tp-delta.is-me {
  border: 1px solid rgba(244, 114, 182, 0.28);
  background: rgba(244, 114, 182, 0.08);
}

.play-final__glow--tp {
  background: radial-gradient(circle, rgba(244, 114, 182, 0.28), transparent 68%);
}

/* ── Debug blindtest (admin) ─────────────────────────────────────────────── */

.play-game-wrap {
  position: relative;
}

.play-debug-fab {
  position: fixed;
  right: 16px;
  bottom: 18px;
  z-index: 80;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 214, 10, 0.35);
  background: rgba(20, 16, 0, 0.92);
  color: #ffd60a;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

.play-debug {
  position: fixed;
  right: 16px;
  bottom: 18px;
  z-index: 80;
  width: min(340px, calc(100vw - 32px));
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 214, 10, 0.28);
  background: rgba(12, 12, 14, 0.96);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(12px);
}

.play-debug__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}

.play-debug__head strong {
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #ffd60a;
}

.play-debug__close {
  appearance: none;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.55);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.play-debug__feedback {
  margin: 0 0 10px;
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
}

.play-debug__feedback.is-ok {
  background: rgba(48, 209, 88, 0.12);
  border: 1px solid rgba(48, 209, 88, 0.35);
  color: #30d158;
}

.play-debug__feedback.is-error {
  background: rgba(255, 69, 58, 0.12);
  border: 1px solid rgba(255, 69, 58, 0.35);
  color: #ff453a;
}

.play-debug__hint {
  font-size: 12px;
  color: var(--text-sec);
  margin-bottom: 10px;
  line-height: 1.4;
}

.play-debug__input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font: inherit;
  font-size: 14px;
  outline: none;
}

.play-debug__input:focus {
  border-color: rgba(255, 214, 10, 0.45);
}

.play-debug__results {
  display: grid;
  gap: 6px;
  margin-top: 10px;
  max-height: 240px;
  overflow: auto;
}

.play-debug__empty {
  font-size: 12px;
  color: var(--text-sec);
  padding: 6px 2px;
}

.play-debug__hit {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  width: 100%;
  text-align: left;
  padding: 8px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  font: inherit;
  cursor: pointer;
}

.play-debug__hit:hover {
  background: rgba(255, 214, 10, 0.08);
  border-color: rgba(255, 214, 10, 0.25);
}

.play-debug__hit img,
.play-debug__hit-art {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: cover;
  background: #222;
}

.play-debug__hit-title {
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.play-debug__hit-artist {
  font-size: 11px;
  color: var(--text-sec);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.play-debug__hit-src {
  margin-top: 2px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 214, 10, 0.7);
}

.play-debug__hit.is-nopreview,
.play-debug__hit.is-apple-preview {
  opacity: 1;
  cursor: pointer;
}

.play-debug__nope,
.play-debug__apple {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 214, 10, 0.85);
  text-align: right;
  max-width: 54px;
  line-height: 1.2;
}

.play-debug__ok { color: #30d158; font-size: 12px; }
.play-debug__maybe { color: rgba(255, 255, 255, 0.35); font-size: 12px; }

.play-debug__queued {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(255, 214, 10, 0.1);
  border: 1px solid rgba(255, 214, 10, 0.22);
  color: #ffd60a;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

.play-debug__queued i {
  margin-top: 2px;
  flex-shrink: 0;
}

.play-debug__previews {
  margin-bottom: 10px;
}

.play-debug__previews-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.play-debug__previews-head strong {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.92);
}

.play-debug__previews-back {
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.55);
  font-size: 11px;
  cursor: pointer;
  padding: 2px 0;
}

.play-debug__previews-track {
  margin: 0 0 8px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.35;
}

.play-debug__preview-row {
  display: flex;
  align-items: stretch;
  gap: 6px;
  margin-bottom: 6px;
}

.play-debug__preview {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
}

.play-debug__preview:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.play-debug__preview--random {
  width: 100%;
  margin-bottom: 8px;
  justify-content: center;
  border-color: rgba(255, 214, 10, 0.35);
  background: rgba(255, 214, 10, 0.08);
  color: #ffd60a;
}

.play-debug__preview-play {
  flex-shrink: 0;
  width: 36px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: #30d158;
  cursor: pointer;
}

.play-debug__preview-play:hover {
  background: rgba(48, 209, 88, 0.12);
}

@media (max-width: 520px) {
  .play-app { padding: 78px 16px 72px; }
  .play-playlist-add { flex-direction: column; }
  .play-playlist-add__btn { width: 100%; }
  .play-game-topbar { top: 54px; }
  .play-timeline__legend-item { grid-template-columns: 16px 26px 1fr auto; }
  .play-topline { gap: 10px; }
  .play-account__btn { max-width: 150px; }
  .play-account__menu { min-width: 208px; }
  .play-volume__slider { width: 62px; }
  .play-myscore__total { font-size: 34px; }
  .play-score-row { grid-template-columns: 24px 32px minmax(0, 1fr) auto auto; gap: 9px; padding: 11px 12px; }
  .play-podium__col.is-rank1 .play-avatar { width: 48px; height: 48px; }
  .play-final__champ-name { font-size: 24px; }
  .play-final__champ-avatar .play-avatar { width: 72px; height: 72px; }
  .play-tp-prompt__label { font-size: 24px; }
  .play-tp-choice__text { font-size: 15px; }
}
