/* =========================================================================
   MySimpleParty — feuille de style
   ========================================================================= */

:root {
  --bg: #08050f;
  --ink: #f6f2ff;
  --muted: #a79cc4;
  --gold: #ffd166;
  --pink: #ff5f6d;
  --teal: #3ee0c8;
  --violet: #a064ff;
  --blue: #4bc0ff;
  --card: rgba(255, 255, 255, 0.045);
  --card-strong: rgba(255, 255, 255, 0.075);
  --stroke: rgba(255, 255, 255, 0.09);
  --stroke-strong: rgba(255, 255, 255, 0.18);
  --radius: 24px;
  --radius-sm: 14px;
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Outfit', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --shadow-lg: 0 40px 80px -40px rgba(0, 0, 0, 0.9);
  --safe-b: env(safe-area-inset-bottom, 0px);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100svh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}

h1,
h2,
h3,
p {
  margin: 0;
}

button {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

.hidden {
  display: none !important;
}

::selection {
  background: var(--violet);
  color: #fff;
}

/* ------------------------------------------------------------ décor */

.aurora {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  animation: floatBlob 22s ease-in-out infinite alternate;
}

.b1 {
  width: 55vw;
  height: 55vw;
  background: #4b1a63;
  top: -18vw;
  left: -12vw;
}

.b2 {
  width: 45vw;
  height: 45vw;
  background: #123c56;
  bottom: -16vw;
  right: -10vw;
  animation-delay: -7s;
}

.b3 {
  width: 32vw;
  height: 32vw;
  background: #5c1a2e;
  top: 35%;
  left: 45%;
  opacity: 0.33;
  animation-delay: -13s;
}

.grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at 50% 30%, #000 10%, transparent 72%);
  -webkit-mask-image: radial-gradient(circle at 50% 30%, #000 10%, transparent 72%);
}

#fx-canvas {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
}

#flash {
  position: fixed;
  inset: 0;
  z-index: 55;
  pointer-events: none;
  opacity: 0;
  mix-blend-mode: screen;
}

#app {
  position: relative;
  z-index: 1;
  min-height: 100svh;
}

.view {
  min-height: 100svh;
}

.view-in {
  animation: viewIn 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes viewIn {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.995);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes floatBlob {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(4vw, 6vh, 0) scale(1.15);
  }
}

/* ------------------------------------------------------------ typo & ui */

.eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
}

.grad {
  background: linear-gradient(100deg, var(--pink), var(--gold) 38%, var(--teal) 68%, var(--violet));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 26px rgba(160, 100, 255, 0.25));
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: 20px;
}

.brand-mark {
  display: block;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  object-fit: contain;
  filter: drop-shadow(0 6px 16px rgba(230, 20, 95, 0.32));
}

.brand-word {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 900;
}

.brand-word em {
  font-style: italic;
  font-weight: 900;
  margin-left: 4px;
  background: linear-gradient(100deg, var(--gold), var(--pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand.small {
  font-size: 16px;
}

.brand.small .brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  font-size: 16px;
}

.brand.small .brand-word {
  font-size: 18px;
}

@keyframes badgeGlow {
  0%,
  100% {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 0 0 rgba(160, 100, 255, 0);
  }
  50% {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 0 28px rgba(160, 100, 255, 0.45);
  }
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  min-height: 50px;
  border-radius: 16px;
  border: 1px solid var(--stroke);
  background: var(--card-strong);
  font-weight: 700;
  letter-spacing: 0.01em;
  overflow: hidden;
  transition: transform 0.14s ease, box-shadow 0.24s ease, background 0.24s ease, border-color 0.24s ease;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 20%, rgba(255, 255, 255, 0.22) 45%, transparent 65%);
  transform: translateX(-130%);
  transition: transform 0.65s ease;
}

.btn:hover::after {
  transform: translateX(130%);
}

.btn:hover {
  transform: translateY(-2px);
  border-color: var(--stroke-strong);
}

.btn:active {
  transform: translateY(1px) scale(0.99);
}

.btn:disabled {
  opacity: 0.42;
  cursor: not-allowed;
  transform: none;
}

.btn-primary {
  background: linear-gradient(120deg, #ff5f6d, #ff8a3d 55%, #ffd166);
  color: #1c0710;
  border: none;
  box-shadow: 0 22px 45px -22px rgba(255, 95, 109, 0.9), inset 0 -3px 0 rgba(0, 0, 0, 0.2);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.055);
}

.btn-sm {
  padding: 10px 15px;
  min-height: 42px;
  border-radius: 13px;
  font-size: 14px;
}

.btn-lg {
  padding: 18px 34px;
  min-height: 60px;
  font-size: 18px;
  border-radius: 18px;
}

.btn-wa {
  background: linear-gradient(120deg, #25d366, #1ebe5b);
  color: #04240f;
  border: none;
  box-shadow: 0 16px 34px -20px rgba(37, 211, 102, 0.9);
}

.icon {
  font-size: 1.05em;
  line-height: 1;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 42px;
  height: 42px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.045);
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  transition: background 0.2s, color 0.2s, transform 0.15s;
}

.icon-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--ink);
  transform: translateY(-1px);
}

.field {
  display: grid;
  gap: 7px;
  text-align: left;
}

.field span {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.field span em {
  font-style: normal;
  text-transform: none;
  letter-spacing: 0;
  opacity: 0.6;
}

.field input {
  width: 100%;
  padding: 15px 16px;
  border-radius: 14px;
  border: 1px solid var(--stroke);
  background: rgba(0, 0, 0, 0.28);
  color: var(--ink);
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.field input::placeholder {
  color: rgba(255, 255, 255, 0.28);
  font-weight: 500;
}

.field input:focus {
  outline: none;
  border-color: rgba(160, 100, 255, 0.7);
  box-shadow: 0 0 0 4px rgba(160, 100, 255, 0.16);
  background: rgba(0, 0, 0, 0.4);
}

.code-input {
  text-transform: uppercase;
  letter-spacing: 0.36em;
  font-size: 22px !important;
  text-align: center;
  font-weight: 800 !important;
}

.hint {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

.hint strong {
  color: rgba(255, 255, 255, 0.8);
  font-weight: 600;
}

/* ------------------------------------------------------------ accueil */

.home {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(18px, 3vw, 36px);
  padding-bottom: clamp(32px, 6vw, 70px);
  display: grid;
  gap: clamp(26px, 4vw, 46px);
}

.home-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.home-badge {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.04);
}

.hero {
  max-width: 800px;
  animation: viewIn 0.6s 0.05s both;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(42px, 8.4vw, 86px);
  line-height: 0.94;
  letter-spacing: -0.035em;
  font-weight: 900;
  margin: 16px 0 18px;
}

.lede {
  max-width: 560px;
  color: var(--muted);
  font-size: clamp(15px, 1.9vw, 19px);
  line-height: 1.55;
}

.panels {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr;
  gap: 16px;
}

.panel {
  position: relative;
  display: grid;
  gap: 12px;
  align-content: start;
  padding: clamp(18px, 2.4vw, 28px);
  border-radius: var(--radius);
  background: linear-gradient(170deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.028));
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(14px);
  overflow: hidden;
  animation: viewIn 0.55s both;
}

.panel:nth-child(2) {
  animation-delay: 0.07s;
}

.panel:nth-child(3) {
  animation-delay: 0.14s;
}

.panel-main {
  border-color: rgba(255, 209, 102, 0.28);
}

.panel-glow {
  position: absolute;
  top: -60%;
  right: -30%;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 95, 109, 0.5), transparent 65%);
  filter: blur(30px);
  animation: floatBlob 12s ease-in-out infinite alternate;
  pointer-events: none;
}

.panel-kicker {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
}

.panel:nth-child(2) .panel-kicker {
  color: var(--blue);
}

.panel:nth-child(3) .panel-kicker {
  color: var(--teal);
}

.panel h2 {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.6vw, 28px);
  font-weight: 900;
  letter-spacing: -0.02em;
}

.panel-desc {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.5;
}

.panel .btn {
  margin-top: 4px;
}

.panel-foot {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
  line-height: 1.45;
}

.strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(158px, 1fr));
  gap: 12px;
}

.strip-card {
  position: relative;
  padding: 18px 16px;
  border-radius: 20px;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.032);
  overflow: hidden;
  animation: viewIn 0.5s both;
  animation-delay: var(--d, 0ms);
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.strip-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 90% at 15% 0%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%);
  opacity: 0.6;
  pointer-events: none;
}

.strip-card:hover {
  transform: translateY(-4px);
  border-color: var(--stroke-strong);
  background: rgba(255, 255, 255, 0.06);
}

.strip-icon {
  font-size: 24px;
  display: block;
  margin-bottom: 10px;
}

.strip-card h3 {
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.strip-card p {
  margin-top: 5px;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.45;
}

.how {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  padding: 20px 22px;
  border-radius: 20px;
  border: 1px dashed var(--stroke-strong);
  background: rgba(255, 255, 255, 0.022);
}

.how div {
  display: flex;
  gap: 12px;
  align-items: baseline;
  font-size: 13.5px;
  color: var(--muted);
}

.how strong {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--gold);
}

.home-foot {
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.32);
}

/* ------------------------------------------------------------ salon */

.lobby {
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(16px, 2.6vw, 30px);
  padding-bottom: clamp(30px, 5vw, 60px);
  display: grid;
  gap: clamp(14px, 2vw, 20px);
  min-height: 100svh;
  align-content: start;
}

.lobby-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.lobby-head-right {
  display: flex;
  gap: 8px;
}

.lobby-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 16px;
}

.code-card,
.players-card,
.settings {
  padding: clamp(18px, 2.4vw, 26px);
  border-radius: var(--radius);
  border: 1px solid var(--stroke);
  background: linear-gradient(170deg, rgba(255, 255, 255, 0.068), rgba(255, 255, 255, 0.025));
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-lg);
  animation: viewIn 0.5s both;
}

.code-card {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 14px;
  align-content: start;
}

.local-hero {
  justify-items: center;
  text-align: center;
  gap: 8px;
}

.local-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 5.4vw, 44px);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1;
}

.code-card::after {
  content: '';
  position: absolute;
  right: -40px;
  bottom: -60px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(62, 224, 200, 0.22), transparent 65%);
  filter: blur(18px);
  pointer-events: none;
}

.code-display {
  display: flex;
  gap: clamp(6px, 1vw, 10px);
}

.code-display span {
  flex: 1;
  display: grid;
  place-items: center;
  aspect-ratio: 0.86;
  border-radius: 16px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(30px, 5.6vw, 46px);
  background: linear-gradient(170deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.03));
  border: 1px solid var(--stroke-strong);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 14px 26px -20px #000;
  animation: letterFlip 0.55s both;
  animation-delay: calc(var(--i) * 90ms);
}

@keyframes letterFlip {
  from {
    opacity: 0;
    transform: rotateX(-70deg) translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.share-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.players-card h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 14px;
}

.players-card .count {
  display: grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  padding: 0 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  font-size: 12px;
  font-weight: 800;
  color: var(--ink);
}

.player-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 7px;
  max-height: 254px;
  overflow-y: auto;
}

.player {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.038);
  border-left: 3px solid var(--tc);
  animation: viewIn 0.35s both;
}

.player.is-offline {
  opacity: 0.4;
}

.p-avatar {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: rgba(0, 0, 0, 0.3);
  font-weight: 800;
  font-size: 13px;
  flex: none;
}

.p-name {
  flex: 1;
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.p-name em {
  font-style: normal;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-left: 8px;
}

.p-team {
  font-size: 15px;
}

.team-picker {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--stroke);
}

.team-picks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 7px;
  margin-top: 9px;
}

.team-pick {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 11px;
  border-radius: 12px;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.035);
  font-size: 12.5px;
  font-weight: 600;
  transition: border-color 0.2s, background 0.2s, transform 0.15s;
}

.team-pick:hover:not(:disabled) {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.07);
}

.team-pick.is-active {
  border-color: var(--tc);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 0 1px var(--tc) inset, 0 10px 26px -18px var(--tc);
}

.team-pick:disabled {
  cursor: default;
  opacity: 0.85;
}

.tp-emoji {
  font-size: 15px;
}

.tp-name {
  flex: 1;
  text-align: left;
}

.tp-count {
  font-size: 11px;
  font-weight: 800;
  opacity: 0.65;
}

.settings {
  display: grid;
  gap: 14px;
  animation-delay: 0.08s;
}

.setting {
  display: grid;
  gap: 8px;
}

.setting-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.chips {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}

.chips-wrap {
  gap: 7px;
}

.chip {
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.04);
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  transition: all 0.2s;
}

.chip:hover {
  color: var(--ink);
  border-color: var(--stroke-strong);
  transform: translateY(-1px);
}

.chip.is-on {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.chip-game {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 600;
}

.chip-game.is-on {
  background: color-mix(in srgb, var(--accent) 22%, rgba(255, 255, 255, 0.04));
  border-color: color-mix(in srgb, var(--accent) 60%, transparent);
  color: #fff;
}

.settings-readonly p {
  font-size: 14px;
  font-weight: 600;
}

.settings-readonly .hint {
  margin-top: 4px;
}

.lobby-cta {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 6px 0;
}

.waiting-host {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.04);
  font-weight: 600;
  color: var(--muted);
}

.waiting-dots {
  display: inline-flex;
  gap: 4px;
}

.waiting-dots i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
  animation: dots 1.3s ease-in-out infinite;
}

.waiting-dots i:nth-child(2) {
  animation-delay: 0.16s;
}

.waiting-dots i:nth-child(3) {
  animation-delay: 0.32s;
}

@keyframes dots {
  0%,
  100% {
    opacity: 0.3;
    transform: translateY(0);
  }
  50% {
    opacity: 1;
    transform: translateY(-4px);
  }
}

/* ------------------------------------------------------------ jeu */

.game {
  max-width: 1260px;
  margin: 0 auto;
  width: 100%;
  min-height: 100svh;
  padding: clamp(10px, 1.8vw, 20px);
  padding-bottom: calc(clamp(12px, 2vw, 22px) + var(--safe-b));
  display: flex;
  flex-direction: column;
  gap: clamp(8px, 1.4vh, 16px);
}

.game.is-shaking {
  animation: shakeX 0.5s cubic-bezier(0.36, 0.07, 0.19, 0.97);
}

@keyframes shakeX {
  10%,
  90% {
    transform: translateX(-3px);
  }
  20%,
  80% {
    transform: translateX(5px);
  }
  30%,
  50%,
  70% {
    transform: translateX(-8px);
  }
  40%,
  60% {
    transform: translateX(8px);
  }
}

.game-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.gh-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.gh-right {
  display: flex;
  gap: 6px;
}

.round-pill {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.045);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.round-pill strong {
  color: var(--ink);
}

.game-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: clamp(12px, 1.3vw, 14px);
  font-weight: 700;
  background: color-mix(in srgb, var(--accent) 16%, rgba(255, 255, 255, 0.04));
  border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
  box-shadow: 0 12px 30px -22px var(--accent);
}

.scorebar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.team-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--stroke);
  font-size: clamp(12px, 1.2vw, 14px);
  font-weight: 600;
  transition: all 0.35s ease;
}

.team-chip.is-active {
  background: color-mix(in srgb, var(--tc) 14%, rgba(255, 255, 255, 0.05));
  border-color: var(--tc);
  box-shadow: 0 0 0 1px var(--tc), 0 16px 34px -24px var(--tc);
  transform: translateY(-1px);
}

.tc-score {
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  font-size: 1.1em;
  animation: scorePop 0.45s ease;
}

@keyframes scorePop {
  0% {
    transform: scale(1);
  }
  45% {
    transform: scale(1.3);
    color: var(--gold);
  }
  100% {
    transform: scale(1);
  }
}

.turn-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 8px 16px;
  border-radius: 999px;
  align-self: center;
  background: color-mix(in srgb, var(--tc) 12%, rgba(255, 255, 255, 0.03));
  border: 1px solid color-mix(in srgb, var(--tc) 40%, transparent);
  font-size: clamp(12px, 1.3vw, 14px);
  font-weight: 700;
  letter-spacing: 0.02em;
  animation: viewIn 0.4s both;
}

.tb-emoji {
  font-size: 1.15em;
}

.steal-banner {
  position: relative;
  display: grid;
  gap: 2px;
  text-align: center;
  padding: 10px 16px;
  border-radius: 16px;
  background: linear-gradient(100deg, rgba(62, 224, 200, 0.18), rgba(75, 192, 255, 0.14));
  border: 1px solid rgba(62, 224, 200, 0.45);
  overflow: hidden;
  animation: viewIn 0.35s both;
}

.steal-banner span {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.2em;
  color: var(--teal);
}

.steal-banner em {
  font-style: normal;
  font-size: 12px;
  color: var(--muted);
}

.steal-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, 0.14) 50%, transparent 70%);
  transform: translateX(-100%);
  animation: sweep 2.4s ease-in-out infinite;
}

@keyframes sweep {
  60%,
  100% {
    transform: translateX(100%);
  }
}

.board {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(140px, 15vw, 200px);
  gap: clamp(10px, 1.8vw, 22px);
  align-items: stretch;
}

.board-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}

.board-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.dock {
  display: grid;
  gap: 10px;
  justify-items: center;
  width: 100%;
}

.dock-reveal {
  display: grid;
  gap: 12px;
  justify-items: center;
  width: 100%;
  animation: viewIn 0.4s both;
}

.dock-hint {
  display: flex;
  justify-content: center;
  padding: 4px;
}

/* minuteur */

.timer {
  position: relative;
  width: clamp(110px, 13vw, 170px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  transition: transform 0.3s;
}

.ring {
  position: absolute;
  inset: 0;
  transform: rotate(-90deg);
}

.ring-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 7;
}

.ring-fg {
  fill: none;
  stroke: var(--gold);
  stroke-width: 7;
  stroke-linecap: round;
  stroke-dasharray: 276.46;
  stroke-dashoffset: 0;
  filter: drop-shadow(0 0 10px rgba(255, 209, 102, 0.35));
  transition: stroke-dashoffset 0.25s linear, stroke 0.4s ease, filter 0.4s ease;
}

.phone-timer {
  align-self: center;
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
  padding: 3px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--stroke);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 19px;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}

.phone-timer em {
  font-style: normal;
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 600;
  opacity: 0.55;
}

.phone-timer.is-low {
  border-color: rgba(255, 69, 96, 0.65);
  background: rgba(255, 69, 96, 0.12);
  color: #ff9aa9;
  animation: timerPulse 1s ease-in-out infinite;
}

.phone-timer.is-steal {
  border-color: rgba(62, 224, 200, 0.65);
  background: rgba(62, 224, 200, 0.12);
  color: var(--teal);
}

.ring-num {
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.timer-label {
  position: absolute;
  bottom: 20%;
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.timer.is-low .ring-fg {
  stroke: #ff4560;
  filter: drop-shadow(0 0 14px rgba(255, 69, 96, 0.7));
}

.timer.is-low {
  animation: timerPulse 1s ease-in-out infinite;
}

.timer.is-low .ring-num {
  color: #ff8fa0;
}

.timer.is-steal .ring-fg {
  stroke: var(--teal);
  filter: drop-shadow(0 0 14px rgba(62, 224, 200, 0.7));
}

.timer.is-idle .ring-fg {
  stroke: rgba(255, 255, 255, 0.18);
  filter: none;
}

.timer.is-idle .ring-num {
  font-size: clamp(20px, 2.6vw, 30px);
  color: var(--muted);
}

@keyframes timerPulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.045);
  }
}

/* indices */

.clues {
  display: grid;
  gap: clamp(8px, 1.2vh, 14px);
}

.clue {
  padding: clamp(14px, 2vw, 22px) clamp(16px, 2.4vw, 28px);
  border-radius: 20px;
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.078), rgba(255, 255, 255, 0.022));
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translateY(14px) scale(0.99);
  transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.clue.is-on {
  opacity: 1;
  transform: none;
}

.clue:nth-child(2) {
  margin-left: clamp(0px, 3vw, 34px);
}

.clue:nth-child(3) {
  margin-left: clamp(0px, 6vw, 68px);
}

.clue-label {
  display: block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}

.clue-text {
  font-family: var(--font-display);
  font-size: clamp(20px, 3.2vw, 38px);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.clue:nth-child(2) .clue-text {
  font-size: clamp(17px, 2.4vw, 28px);
  font-family: var(--font-body);
  font-weight: 700;
}

.clue:nth-child(3) .clue-text {
  font-size: clamp(15px, 1.8vw, 20px);
  font-family: var(--font-body);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.82);
}

/* carte papier dingbat */

.paper {
  position: relative;
  border-radius: 26px;
  padding: clamp(16px, 3vw, 40px);
  background: linear-gradient(155deg, #fdfaf1, #efe6d2 70%, #e6dbc4);
  color: #141018;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.85), inset 0 0 0 1px rgba(0, 0, 0, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  overflow: hidden;
  animation: paperIn 0.6s cubic-bezier(0.2, 0.9, 0.2, 1) both;
}

.paper-grain {
  position: absolute;
  inset: 0;
  opacity: 0.5;
  background-image: radial-gradient(rgba(0, 0, 0, 0.055) 1px, transparent 1px);
  background-size: 4px 4px;
  pointer-events: none;
}

.paper::after {
  content: '';
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(0, 0, 0, 0.09);
  border-radius: 18px;
  pointer-events: none;
}

.paper-inner {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  grid-template-columns: minmax(0, 1fr);
  width: 100%;
  min-height: clamp(150px, 30vh, 300px);
}

@keyframes paperIn {
  from {
    opacity: 0;
    transform: translateY(24px) rotate(-1.4deg) scale(0.97);
  }
  to {
    opacity: 1;
    transform: rotate(-0.4deg) scale(1);
  }
}

/* --- vocabulaire des dingbats --- */

.db {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.34em;
  color: #17121f;
  font-weight: 800;
  text-align: center;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.db-row {
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(8px, 1.8vw, 24px);
}

.db-w {
  font-size: clamp(26px, 5.4vw, 54px);
  line-height: 1;
  letter-spacing: 0.01em;
  font-weight: 800;
}

.db-w.ghost {
  color: #fff;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.14), 0 0 1px rgba(0, 0, 0, 0.25);
}

.db-w.rot {
  transform: rotate(180deg);
}

.db-w.small {
  font-size: clamp(14px, 2.4vw, 24px);
  font-weight: 600;
}

.db-w.italic {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 900;
}

.db-w.huge {
  font-size: clamp(34px, 8vw, 76px);
}

.db-w.big {
  font-size: clamp(30px, 6vw, 62px);
}

.db-w.blue {
  color: #2b7de9;
}

.db-w.mirror {
  display: inline-block;
  transform: scaleX(-1);
}

/* couleurs et graisses utilisées par les dingbats */

.db-w.green {
  color: #1f8a4c;
}

.db-w.red {
  color: #c93b3b;
}

.db-w.orange {
  color: #d97706;
}

.db-w.gold {
  color: #c99a00;
}

.db-w.pink {
  color: #d9579a;
}

.db-w.thin {
  font-weight: 300;
  letter-spacing: 0.2em;
}

.db-w.heavy {
  font-weight: 900;
  -webkit-text-stroke: 1.4px #17121f;
  letter-spacing: 0.02em;
}

.db-w.strike {
  text-decoration: line-through;
  text-decoration-thickness: 0.09em;
}

.db-w.dim {
  opacity: 0.32;
}

.db-w.tiny {
  font-size: clamp(9px, 1.5vw, 15px);
  letter-spacing: 0.08em;
}

.db-w.side {
  display: inline-block;
  transform: rotate(90deg);
}

.db-w.f1 {
  font-family: var(--font-display);
  font-weight: 900;
}

.db-w.f2 {
  font-weight: 300;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  font-size: clamp(18px, 3.4vw, 34px);
}

.db-w.f3 {
  color: transparent;
  -webkit-text-stroke: 2px #17121f;
}

.db-mini {
  font-size: clamp(11px, 1.9vw, 18px);
  font-weight: 700;
  opacity: 0.82;
  letter-spacing: 0.05em;
}

.db-rel {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.db-box {
  width: clamp(46px, 9vw, 84px);
  height: clamp(46px, 9vw, 84px);
  border: 3px dashed rgba(23, 18, 31, 0.45);
  border-radius: 14px;
}

.poil {
  position: absolute;
  left: 4%;
  right: 4%;
  top: 54%;
  height: 3px;
  border-radius: 3px;
  background: #17121f;
  transform: rotate(-3deg);
}

.pilier {
  width: clamp(8px, 1.4vw, 14px);
  height: clamp(56px, 12vh, 118px);
  border-radius: 3px;
  background: #17121f;
}

.censor {
  position: absolute;
  left: -5%;
  right: -5%;
  top: 36%;
  height: 36%;
  border-radius: 6px;
  background: #141018;
}

.db .shake {
  display: inline-block;
  animation: tremble 0.6s infinite;
}

@keyframes tremble {
  0%,
  100% {
    transform: translate(0, 0) rotate(0);
  }
  20% {
    transform: translate(-2px, 1px) rotate(-0.8deg);
  }
  40% {
    transform: translate(2px, -1px) rotate(0.9deg);
  }
  60% {
    transform: translate(-1px, 2px) rotate(-0.5deg);
  }
  80% {
    transform: translate(2px, -2px) rotate(0.6deg);
  }
}

.db-cracks {
  color: #b0483a;
  font-size: clamp(14px, 2.6vw, 24px);
  letter-spacing: 0.16em;
}

.cutline {
  width: 68%;
  border-top: 3px dashed #d94a4a;
}

.drop {
  display: inline-grid;
  place-items: center;
  width: 2.2em;
  height: 2.2em;
  font-size: clamp(7px, 1.2vw, 11px);
  font-weight: 900;
  color: #1b5fbf;
  background: linear-gradient(180deg, #d9ecff, #bfe0ff);
  border: 2px solid #9cc7f0;
  border-radius: 50% 50% 50% 50% / 62% 62% 38% 38%;
}

.ground {
  width: 62%;
  height: 3px;
  background: #17121f;
  border-radius: 2px;
}

.db-star {
  font-size: clamp(24px, 5vw, 46px);
  animation: twinkle 2.4s ease-in-out infinite;
}

@keyframes twinkle {
  0%,
  100% {
    transform: scale(1) rotate(-4deg);
    opacity: 1;
  }
  50% {
    transform: scale(1.14) rotate(4deg);
    opacity: 0.85;
  }
}

.rain {
  font-size: clamp(18px, 3vw, 28px);
  letter-spacing: 0.24em;
  animation: falling 1.8s linear infinite;
}

@keyframes falling {
  0% {
    transform: translateY(-6px);
    opacity: 0.4;
  }
  40% {
    opacity: 1;
  }
  100% {
    transform: translateY(6px);
    opacity: 0.45;
  }
}

.corner-box {
  position: absolute;
  inset: clamp(10px, 2vw, 20px);
  align-items: flex-end;
  justify-content: flex-end;
}

.corner-box .db-w {
  padding: 4px 8px;
  font-size: clamp(20px, 4vw, 38px);
}

.spread {
  width: 100%;
  justify-content: space-between;
  padding: 0 2%;
}

.heart {
  position: relative;
  font-size: clamp(28px, 5vw, 48px);
}

.numbers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.28em 0.5em;
  font-size: clamp(20px, 4vw, 40px);
  font-weight: 800;
}

.numbers span {
  min-width: 1.4em;
  text-align: center;
  border-bottom: 2px solid rgba(23, 18, 31, 0.25);
}

.bag {
  width: clamp(80px, 15vw, 136px);
  height: clamp(62px, 11vw, 100px);
  border: 3px solid #17121f;
  border-radius: 22% 22% 40% 40%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3em;
}

.flight {
  display: flex;
  gap: 0.06em;
  font-size: clamp(24px, 5vw, 48px);
  font-weight: 900;
}

.flight span {
  display: inline-block;
  animation: lift 2.6s ease-in-out infinite;
  animation-delay: calc(var(--i) * 0.11s);
}

@keyframes lift {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-0.32em);
  }
}

.bigdot {
  display: block;
  width: clamp(18px, 3vw, 30px);
  height: clamp(18px, 3vw, 30px);
  border-radius: 50%;
  background: #17121f;
  margin-top: 0.1em;
}

/* --- dévimots / surprise --- */

.devimot {
  display: grid;
  gap: clamp(10px, 1.6vh, 16px);
}

.words {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 8px;
}

.word {
  display: grid;
  place-items: center;
  padding: clamp(12px, 2vh, 20px) 10px;
  border-radius: 16px;
  background: linear-gradient(160deg, rgba(255, 159, 67, 0.16), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(255, 159, 67, 0.3);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(17px, 2.4vw, 26px);
  animation: viewIn 0.45s both;
  animation-delay: calc(var(--i) * 70ms);
}

.constraints {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.constraint {
  padding: 12px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px dashed var(--stroke-strong);
  animation: viewIn 0.45s both;
  animation-delay: calc(0.3s + var(--i) * 90ms);
}

.constraint-tag {
  display: block;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}

.constraint strong {
  font-family: var(--font-display);
  font-size: clamp(16px, 2vw, 22px);
  font-weight: 900;
}

.surprise {
  position: relative;
  padding: clamp(20px, 3.4vw, 40px);
  border-radius: 24px;
  background: linear-gradient(150deg, rgba(255, 110, 199, 0.18), rgba(160, 100, 255, 0.12));
  border: 1px solid rgba(255, 110, 199, 0.4);
  overflow: hidden;
  animation: viewIn 0.5s both;
}

.surprise::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 110, 199, 0.35), transparent 65%);
  filter: blur(24px);
}

.surprise-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #ffb3e6;
  margin-bottom: 12px;
}

.surprise p {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-size: clamp(22px, 3.6vw, 42px);
  font-weight: 900;
  line-height: 1.14;
  letter-spacing: -0.02em;
}

.surprise-foot {
  position: relative;
  z-index: 1;
  display: block;
  margin-top: 14px;
  font-size: 12.5px;
  color: var(--muted);
}

/* --- réponses --- */

.options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  animation: viewIn 0.35s both;
}

.opt {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: clamp(11px, 1.6vh, 16px) 14px;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid var(--stroke);
  color: var(--ink);
  font-weight: 600;
  font-size: clamp(13px, 1.35vw, 16px);
  text-align: left;
  transition: transform 0.15s, background 0.2s, border-color 0.2s, box-shadow 0.2s;
  animation: optIn 0.4s both;
}

.opt:nth-child(1) {
  animation-delay: 0.03s;
}
.opt:nth-child(2) {
  animation-delay: 0.09s;
}
.opt:nth-child(3) {
  animation-delay: 0.15s;
}
.opt:nth-child(4) {
  animation-delay: 0.21s;
}

@keyframes optIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.opt:hover:not([aria-disabled='true']) {
  background: rgba(255, 255, 255, 0.11);
  border-color: var(--stroke-strong);
  transform: translateY(-2px);
}

.opt:active:not([aria-disabled='true']) {
  transform: translateY(1px) scale(0.995);
}

.opt[aria-disabled='true'] {
  cursor: default;
}

.opt.is-picked {
  border-color: var(--gold);
  background: rgba(255, 209, 102, 0.16);
}

.opt-key {
  flex: none;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 12px;
  font-weight: 900;
}

.opt-txt {
  flex: 1;
  line-height: 1.25;
}

.opt-mark {
  color: var(--teal);
  font-weight: 900;
}

.options.is-reveal .opt {
  opacity: 0.42;
}

.options.is-reveal .opt.is-correct {
  opacity: 1;
  border-color: var(--teal);
  background: rgba(62, 224, 200, 0.15);
  box-shadow: 0 0 0 1px var(--teal), 0 18px 40px -26px var(--teal);
  animation: correctPop 0.55s cubic-bezier(0.2, 0.9, 0.2, 1) both;
}

@keyframes correctPop {
  0% {
    transform: scale(0.96);
  }
  55% {
    transform: scale(1.035);
  }
  100% {
    transform: scale(1);
  }
}

.options.is-compact .opt {
  padding: 12px 13px;
  font-size: 14px;
}

/* --- buzzer --- */

.buzz-btn {
  position: relative;
  width: 100%;
  max-width: 660px;
  border: none;
  border-radius: 26px;
  padding: clamp(16px, 2.6vh, 30px) 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  background: linear-gradient(135deg, #ff5f6d, #ff2d55 48%, #ff8a3d);
  color: #20040c;
  box-shadow: 0 26px 54px -22px rgba(255, 45, 85, 0.85), inset 0 -4px 0 rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
  transition: transform 0.12s ease, box-shadow 0.2s ease;
  overflow: visible;
}

.buzz-btn:active {
  transform: translateY(3px) scale(0.988);
  box-shadow: 0 12px 26px -16px rgba(255, 45, 85, 0.8), inset 0 -2px 0 rgba(0, 0, 0, 0.25);
}

.buzz-btn.is-steal {
  background: linear-gradient(135deg, #3ee0c8, #4bc0ff 60%, #a064ff);
  box-shadow: 0 26px 54px -22px rgba(62, 224, 200, 0.8), inset 0 -4px 0 rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
  color: #03211d;
}

.buzz-label {
  font-family: var(--font-display);
  font-size: clamp(26px, 4.4vw, 46px);
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 1;
}

.buzz-sub {
  font-size: clamp(11px, 1.2vw, 13px);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.66;
}

.buzz-pulse {
  position: absolute;
  inset: -5px;
  border-radius: 31px;
  border: 2px solid rgba(255, 255, 255, 0.55);
  animation: buzzPulse 1.9s ease-out infinite;
  pointer-events: none;
}

@keyframes buzzPulse {
  0% {
    transform: scale(0.99);
    opacity: 0.9;
  }
  70% {
    transform: scale(1.045);
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}

.wait-card {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: clamp(16px, 2.6vh, 26px) 24px;
  border-radius: 22px;
  border: 1px dashed var(--stroke-strong);
  background: rgba(255, 255, 255, 0.028);
  text-align: center;
  min-width: min(100%, 380px);
}

.wait-card p {
  font-size: clamp(14px, 1.5vw, 16px);
  color: rgba(255, 255, 255, 0.85);
}

.wait-card strong {
  color: var(--ink);
}

.answering-head {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
}

.answering-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 0 rgba(255, 209, 102, 0.6);
  animation: dotPing 1.4s ease-out infinite;
}

@keyframes dotPing {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 209, 102, 0.55);
  }
  100% {
    box-shadow: 0 0 0 14px rgba(255, 209, 102, 0);
  }
}

.answering-wait {
  border-style: solid;
  border-color: rgba(255, 209, 102, 0.35);
  background: rgba(255, 209, 102, 0.06);
}

/* --- révélation --- */

.reveal-block {
  display: grid;
  justify-items: center;
  gap: 4px;
  text-align: center;
  padding: clamp(14px, 2vh, 22px) clamp(16px, 3vw, 30px);
  border-radius: 22px;
  background: linear-gradient(150deg, rgba(62, 224, 200, 0.14), rgba(75, 192, 255, 0.07));
  border: 1px solid rgba(62, 224, 200, 0.32);
  animation: revealIn 0.55s cubic-bezier(0.2, 0.9, 0.2, 1) both;
  max-width: 760px;
  width: 100%;
}

@keyframes revealIn {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.reveal-tag {
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--teal);
}

.reveal-answer {
  font-family: var(--font-display);
  font-size: clamp(24px, 3.6vw, 44px);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.02em;
  animation: revealAnswer 0.7s cubic-bezier(0.2, 0.9, 0.2, 1) both;
}

@keyframes revealAnswer {
  0% {
    opacity: 0;
    transform: scale(0.9);
    filter: blur(6px);
  }
  100% {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

.reveal-meta {
  font-size: 12.5px;
  color: var(--muted);
}

.reveal-pts {
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.reveal-pts.is-plus {
  background: linear-gradient(120deg, var(--teal), var(--blue));
  color: #03231f;
  box-shadow: 0 12px 26px -18px var(--teal);
  animation: ptsPop 0.6s 0.15s both;
}

.reveal-pts.is-zero {
  background: rgba(255, 255, 255, 0.07);
  color: var(--muted);
}

@keyframes ptsPop {
  from {
    opacity: 0;
    transform: scale(0.7);
  }
  60% {
    transform: scale(1.08);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.steal-tag {
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.22);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.reveal-who {
  font-size: 12.5px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
}

.waiting-next {
  min-width: min(100%, 420px);
}

/* --- juge --- */

.judge {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: clamp(14px, 2.2vh, 22px) 20px;
  border-radius: 22px;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.04);
  width: min(100%, 620px);
  animation: viewIn 0.35s both;
}

.judge-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.judge-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.judge-btn {
  min-width: 54px;
  padding: 13px 20px;
  border-radius: 14px;
  border: 1px solid var(--stroke-strong);
  background: rgba(255, 255, 255, 0.08);
  font-weight: 800;
  transition: transform 0.15s, background 0.2s, border-color 0.2s;
}

.judge-btn:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.15);
}

.judge-yes {
  background: linear-gradient(120deg, var(--teal), var(--blue));
  color: #03231f;
  border: none;
}

.judge-no {
  background: rgba(255, 95, 109, 0.16);
  border-color: rgba(255, 95, 109, 0.5);
  color: #ffc2c8;
}

/* --- pied de page jeu --- */

.game-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.28);
}

.foot-code {
  font-weight: 800;
  letter-spacing: 0.28em;
  color: rgba(255, 255, 255, 0.5);
}

/* --- mode téléphone --- */

.game-phone {
  gap: clamp(6px, 1vh, 12px);
  padding-bottom: calc(10px + var(--safe-b));
}

.game-phone .game-head {
  flex-wrap: nowrap;
}

.game-phone .round-pill {
  padding: 6px 11px;
  font-size: 10px;
}

.game-phone .game-tag {
  padding: 6px 12px;
  font-size: 11.5px;
}

.phone-stage {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  justify-content: center;
  overflow: hidden;
}

.phone-puzzle {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 0;
  overflow-y: auto;
  padding-bottom: 2px;
}

.phone-dock {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding-bottom: 2px;
}

.game-phone .buzz-btn {
  padding: 20px 18px;
  border-radius: 22px;
}

.game-phone .buzz-label {
  font-size: clamp(24px, 8vw, 34px);
}

.game-phone .buzz-sub {
  font-size: 10px;
}

.game-phone .buzz-pulse {
  border-radius: 27px;
}

.game-phone .options {
  gap: 6px;
  width: 100%;
}

.game-phone .opt {
  padding: 12px 11px;
  font-size: 13px;
  gap: 8px;
}

.game-phone .opt-key {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  font-size: 10px;
}

.game-phone .paper {
  padding: 14px;
  border-radius: 18px;
}

.game-phone .paper-inner {
  min-height: clamp(120px, 20vh, 220px);
}

.game-phone .paper::after {
  inset: 7px;
  border-radius: 13px;
}

.game-phone .db-w {
  font-size: clamp(20px, 7vw, 34px);
}

.game-phone .db-w.huge {
  font-size: clamp(26px, 10vw, 44px);
}

.game-phone .db-w.big {
  font-size: clamp(24px, 8vw, 38px);
}

.game-phone .db-w.small {
  font-size: clamp(12px, 3.4vw, 17px);
}

.game-phone .db-mini {
  font-size: clamp(10px, 2.8vw, 14px);
}

.game-phone .clue {
  padding: 12px 14px;
  border-radius: 16px;
}

.game-phone .clue-text {
  font-size: clamp(17px, 5.4vw, 24px);
}

.game-phone .clue:nth-child(2) .clue-text {
  font-size: clamp(14px, 4vw, 18px);
}

.game-phone .clue:nth-child(3) .clue-text {
  font-size: clamp(12.5px, 3.4vw, 15px);
}

.game-phone .clue:nth-child(2),
.game-phone .clue:nth-child(3) {
  margin-left: 0;
}

.game-phone .words {
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}

.game-phone .word {
  font-size: clamp(14px, 4.2vw, 18px);
  padding: 10px 8px;
  border-radius: 13px;
}

.game-phone .constraints {
  gap: 6px;
}

.game-phone .constraint {
  padding: 9px 11px;
  border-radius: 13px;
}

.game-phone .constraint strong {
  font-size: clamp(13px, 3.6vw, 16px);
}

.game-phone .surprise {
  padding: 16px;
  border-radius: 18px;
}

.game-phone .surprise p {
  font-size: clamp(17px, 5vw, 24px);
}

.game-phone .wait-card {
  padding: 14px 16px;
  min-width: 100%;
}

.game-phone .turn-banner {
  font-size: 11.5px;
  padding: 6px 12px;
}

.game-phone .steal-banner {
  padding: 7px 12px;
}

.game-phone .steal-banner em {
  display: none;
}

.game-phone .reveal-block {
  padding: 12px 14px;
}

.game-phone .reveal-answer {
  font-size: clamp(20px, 6.4vw, 28px);
}

.game-phone .judge {
  padding: 12px 14px;
}

.game-phone .game-foot {
  font-size: 10px;
}

/* ------------------------------------------------------------ fin */

.end {
  max-width: 900px;
  margin: 0 auto;
  padding: clamp(18px, 3vw, 34px);
  padding-bottom: clamp(34px, 6vw, 64px);
  min-height: 100svh;
  display: grid;
  align-content: start;
  gap: clamp(18px, 3vh, 28px);
}

.end-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.end-rounds {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.winner {
  text-align: center;
  display: grid;
  gap: 6px;
  justify-items: center;
  padding-top: 10px;
}

.winner-crown {
  font-size: clamp(34px, 6vw, 52px);
  animation: crownFloat 3s ease-in-out infinite;
}

@keyframes crownFloat {
  0%,
  100% {
    transform: translateY(0) rotate(-3deg);
  }
  50% {
    transform: translateY(-8px) rotate(3deg);
  }
}

.winner h1 {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: clamp(30px, 6vw, 58px);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--ink);
  text-shadow: 0 0 40px color-mix(in srgb, var(--tc) 60%, transparent);
  animation: viewIn 0.6s 0.1s both;
}

.winner-emoji {
  font-size: 0.9em;
}

.winner-score {
  font-size: clamp(14px, 2vw, 17px);
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.02em;
}

.ranking {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.rank {
  display: grid;
  grid-template-columns: 30px 26px minmax(90px, 1.2fr) minmax(60px, 2fr) 48px;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 16px;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.035);
  animation: viewIn 0.45s both;
  animation-delay: calc(0.15s + var(--i) * 0.09s);
}

.rank:first-child {
  border-color: color-mix(in srgb, var(--tc) 55%, transparent);
  background: color-mix(in srgb, var(--tc) 12%, rgba(255, 255, 255, 0.03));
  box-shadow: 0 20px 40px -30px var(--tc);
}

.rank-medal {
  font-size: 18px;
}

.rank-emoji {
  font-size: 19px;
}

.rank-name {
  font-weight: 700;
  font-size: 14.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rank-bar {
  height: 8px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.07);
  overflow: hidden;
}

.rank-bar i {
  display: block;
  height: 100%;
  width: var(--w, 0%);
  border-radius: 99px;
  background: linear-gradient(90deg, var(--tc), color-mix(in srgb, var(--tc) 40%, #fff));
  animation: barGrow 1s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  animation-delay: calc(0.3s + var(--i) * 0.09s);
}

@keyframes barGrow {
  from {
    width: 0;
  }
}

.rank-score {
  text-align: right;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.end-cta {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.end-hint {
  text-align: center;
}

/* ------------------------------------------------------------ intro */

.intro-overlay {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 50% 45%, rgba(12, 6, 24, 0.86), rgba(6, 3, 14, 0.97));
  backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  overflow: hidden;
}

.intro-overlay.is-on {
  opacity: 1;
  pointer-events: auto;
}

.intro {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 10px;
  text-align: center;
  padding: 30px;
  animation: introZoom 0.6s cubic-bezier(0.2, 0.9, 0.2, 1) both;
}

@keyframes introZoom {
  from {
    opacity: 0;
    transform: scale(0.85);
    filter: blur(8px);
  }
  to {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

.intro-rays {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 150vmax;
  height: 150vmax;
  transform: translate(-50%, -50%);
  background: repeating-conic-gradient(
    from 0deg,
    color-mix(in srgb, var(--accent) 22%, transparent) 0deg 6deg,
    transparent 6deg 16deg
  );
  mask-image: radial-gradient(circle, #000 8%, transparent 42%);
  -webkit-mask-image: radial-gradient(circle, #000 8%, transparent 42%);
  animation: spinRays 22s linear infinite;
  opacity: 0.75;
  pointer-events: none;
}

@keyframes spinRays {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

.intro-icon {
  position: relative;
  font-size: clamp(52px, 10vw, 96px);
  animation: iconBounce 0.9s cubic-bezier(0.2, 0.9, 0.2, 1) both;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.6));
}

@keyframes iconBounce {
  0% {
    transform: scale(0.5) rotate(-12deg);
    opacity: 0;
  }
  60% {
    transform: scale(1.08) rotate(3deg);
    opacity: 1;
  }
  100% {
    transform: scale(1) rotate(0);
  }
}

.intro-kicker {
  position: relative;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  animation: viewIn 0.5s 0.2s both;
}

.intro-team {
  position: relative;
  font-family: var(--font-display);
  font-size: clamp(30px, 6.6vw, 62px);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--ink);
  text-shadow: 0 0 44px color-mix(in srgb, var(--tc) 70%, transparent);
  animation: viewIn 0.5s 0.3s both;
}

.intro-tag {
  position: relative;
  max-width: 30ch;
  font-size: clamp(13px, 1.6vw, 16px);
  color: var(--muted);
  animation: viewIn 0.5s 0.42s both;
}

/* ------------------------------------------------------------ toasts */

.toasts {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: calc(16px + var(--safe-b));
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  pointer-events: none;
  width: min(92vw, 420px);
}

.toast {
  padding: 11px 18px;
  border-radius: 999px;
  background: rgba(20, 12, 34, 0.94);
  border: 1px solid var(--stroke-strong);
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.9);
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  animation: toastIn 0.35s cubic-bezier(0.2, 0.9, 0.2, 1) both;
  transition: opacity 0.4s, transform 0.4s;
  backdrop-filter: blur(10px);
}

.toast-error {
  border-color: rgba(255, 95, 109, 0.55);
  color: #ffc8ce;
}

.toast-warn {
  border-color: rgba(255, 209, 102, 0.55);
  color: #ffe6ad;
}

.toast.is-out {
  opacity: 0;
  transform: translateY(10px);
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.conn {
  position: fixed;
  top: calc(10px + env(safe-area-inset-top, 0px));
  left: 50%;
  transform: translateX(-50%);
  z-index: 95;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(48, 28, 8, 0.94);
  border: 1px solid rgba(255, 209, 102, 0.55);
  color: #ffe6ad;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  box-shadow: 0 16px 30px -18px #000;
  animation: toastIn 0.3s both;
}

.conn::before {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--gold);
  animation: dots 1.1s ease-in-out infinite;
}

/* ------------------------------------------------------------ responsive */

@media (max-width: 900px) {
  .panels {
    grid-template-columns: 1fr 1fr;
  }

  .panel-main {
    grid-column: span 2;
  }

  .lobby-grid {
    grid-template-columns: 1fr;
  }

  .board {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .board-side {
    order: -1;
  }

  .timer {
    width: 96px;
  }

  .ring-num {
    font-size: 26px;
  }

  .timer-label {
    display: none;
  }

  .board-side {
    flex-direction: row;
  }
}

@media (max-width: 640px) {
  .panels {
    grid-template-columns: 1fr;
  }

  .panel-main {
    grid-column: auto;
  }

  .home {
    gap: 22px;
  }

  .home-badge {
    display: none;
  }

  .game-screen .turn-banner {
    align-self: stretch;
  }

  .options {
    grid-template-columns: 1fr;
  }

  .rank {
    grid-template-columns: 24px 22px minmax(70px, 1fr) 40px;
  }

  .rank-bar {
    display: none;
  }

  .how {
    grid-template-columns: 1fr;
  }

  .code-display span {
    aspect-ratio: 1;
  }
}

@media (max-width: 420px) {
  .game-tag {
    font-size: 11px;
  }

  .team-chip .tc-name {
    max-width: 72px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .blob,
  .intro-rays {
    animation: none !important;
  }
}

/* --- médias ajoutés depuis l'espace admin (images / extraits audio) --- */

.quiz-stage {
  display: grid;
  gap: clamp(10px, 1.6vh, 18px);
  justify-items: center;
  width: 100%;
}

.quiz-media {
  margin: 0;
  display: grid;
  gap: 8px;
  justify-items: center;
  width: 100%;
}

.quiz-media img {
  max-width: min(100%, 640px);
  max-height: 46vh;
  object-fit: contain;
  border-radius: 18px;
  border: 3px solid rgba(255, 255, 255, 0.14);
  background: #0b0716;
  box-shadow: 0 30px 70px -28px rgba(0, 0, 0, 0.85);
}

.quiz-media-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.game-phone .quiz-media img {
  max-height: 30vh;
}

.quiz-audio {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-radius: 18px;
  background: rgba(160, 100, 255, 0.12);
  border: 1px solid rgba(160, 100, 255, 0.32);
  width: 100%;
  max-width: 480px;
}

.quiz-audio audio {
  display: none;
}

.audio-play {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 20px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, #c9a4ff, #a064ff);
  color: #150f22;
  font: inherit;
  font-weight: 800;
  font-size: 15px;
  cursor: pointer;
  white-space: nowrap;
}

.audio-play:active {
  transform: scale(0.98);
}

.audio-wave {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 26px;
  flex: 1;
}

.audio-wave i {
  display: block;
  width: 3px;
  height: 22%;
  border-radius: 2px;
  background: rgba(201, 164, 255, 0.8);
  animation: wavePulse 1.1s ease-in-out infinite;
  animation-play-state: paused;
}

.quiz-audio.is-playing .audio-wave i {
  animation-play-state: running;
}

.audio-wave i:nth-child(2n) { animation-delay: 0.12s; }
.audio-wave i:nth-child(3n) { animation-delay: 0.26s; }
.audio-wave i:nth-child(4n) { animation-delay: 0.38s; }
.audio-wave i:nth-child(5n) { animation-delay: 0.5s; }

@keyframes wavePulse {
  0%, 100% { height: 22%; }
  50% { height: 100%; }
}

/* Image complète révélée après la manche */
.quiz-media.is-answer img {
  max-height: 52vh;
  border-color: rgba(62, 224, 200, 0.55);
  box-shadow: 0 30px 70px -28px rgba(0, 0, 0, 0.85), 0 0 0 4px rgba(62, 224, 200, 0.14);
}

.quiz-media.is-answer .quiz-media-tag {
  color: rgba(62, 224, 200, 0.9);
}

/* Révélation : détail recadré et image complète côte à côte */

.quiz-media-pair {
  display: grid;
  grid-template-columns: minmax(0, 0.62fr) minmax(0, 1fr);
  gap: clamp(8px, 1.4vw, 16px);
  align-items: center;
  width: 100%;
  animation: pairIn 0.4s ease both;
}

.quiz-media-pair .quiz-media {
  width: 100%;
}

.quiz-media-pair .quiz-media img {
  width: 100%;
  max-height: 42vh;
  max-width: 100%;
}

.quiz-media-pair .is-detail img {
  border-color: rgba(255, 255, 255, 0.24);
  box-shadow: 0 20px 50px -26px rgba(0, 0, 0, 0.8);
}

.game-phone .quiz-media-pair {
  grid-template-columns: minmax(0, 1fr);
}

.game-phone .quiz-media-pair .is-detail img {
  max-height: 24vh;
}

.game-phone .quiz-media-pair .is-answer img {
  max-height: 34vh;
}

@media (max-width: 720px) {
  .quiz-media-pair {
    grid-template-columns: minmax(0, 1fr);
  }

  .quiz-media-pair .quiz-media img {
    max-height: 28vh;
  }

  .quiz-media-pair .is-answer img {
    max-height: 34vh;
  }
}

@keyframes pairIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* --- blind test cinéma : réponse libre 15 s, puis 4 propositions 5 s --- */

.cine-judge {
  border-color: rgba(255, 209, 102, 0.34);
}

.cine-lines {
  display: grid;
  gap: 8px;
  margin: 10px 0 12px;
}

.cine-line {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid rgba(244, 240, 255, 0.14);
  background: rgba(244, 240, 255, 0.04);
  transition: border-color 0.16s, background 0.16s;
}

.cine-line .cl-label {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.cine-line .cl-pts {
  font-size: 12px;
  font-weight: 800;
  color: rgba(62, 224, 200, 0.9);
}

.cine-found-btn {
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  border: 1px solid rgba(62, 224, 200, 0.45);
  background: rgba(62, 224, 200, 0.12);
  color: #7ef7e4;
  transition: background 0.16s, transform 0.16s;
}

.cine-found-btn:hover:not(:disabled) {
  background: rgba(62, 224, 200, 0.22);
  transform: translateY(-1px);
}

.cine-line.is-found {
  border-color: rgba(62, 224, 200, 0.55);
  background: rgba(62, 224, 200, 0.1);
}

.cine-line.is-found .cine-found-btn {
  color: #04120f;
  background: #3ee0c8;
  border-color: #3ee0c8;
  cursor: default;
}

.cine-free {
  text-align: center;
}

.cine-free-main {
  margin: 6px 0 4px;
  font-size: clamp(15px, 2vw, 19px);
  line-height: 1.4;
}

.reveal-breakdown {
  margin: 4px 0 0;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(62, 224, 200, 0.9);
}

.setting-cine .hint {
  margin-top: 6px;
}

@media (max-width: 720px) {
  .cine-line {
    grid-template-columns: 1fr auto;
  }

  .cine-line .cl-pts {
    display: none;
  }
}

/* Noms d’équipes personnalisés (salon d’attente) */
.team-names {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.team-name-field {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 14px;
  border: 1px solid var(--tc, rgba(255, 255, 255, 0.3));
  background: rgba(0, 0, 0, 0.28);
}

.team-name-field:focus-within {
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.12);
  border-color: var(--tc, #fff);
}

.team-name-field .tn-emoji {
  font-size: 1.05rem;
  line-height: 1;
}

.team-name-field input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  font-weight: 600;
  padding: 2px 0;
}

.team-name-field input:focus {
  outline: none;
}
