/* ============ Téléphone (manette) ============ */
body.phone {
  min-height: 100dvh;
  overscroll-behavior: none;
  touch-action: manipulation;
  font-size: 18px;
}
/* Sur téléphone, on peut se permettre le vrai flou */
.phone .glass {
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  backdrop-filter: blur(22px) saturate(160%);
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.05) 60%);
}
.phone.reduced .glass { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(40, 28, 100, 0.75); }

#app { min-height: 100dvh; }
.view {
  min-height: 100dvh;
  padding: calc(env(safe-area-inset-top) + 16px) 16px calc(env(safe-area-inset-bottom) + 24px);
  max-width: 560px;
  margin: 0 auto;
  animation: fade-up 0.35s var(--ease) both;
}
.view.center { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; text-align: center; }

h1, h2, h3 { margin: 0; line-height: 1.1; }
h2 { font-size: 26px; font-weight: 800; }
h3 { font-size: 15px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-2); margin: 22px 4px 10px; }
p { margin: 0; }
.muted { color: var(--text-2); }
.huge { font-size: 64px; line-height: 1; }

.card { padding: 20px; border-radius: var(--r-lg); }
.card + .card { margin-top: 14px; }
.center-card { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; padding: 30px 24px; width: 100%; }

.spinner {
  width: 54px; height: 54px; border-radius: 50%;
  border: 5px solid rgba(255, 255, 255, 0.15); border-top-color: var(--cyan);
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Boutons ---------- */
.btn {
  appearance: none;
  border: 1.5px solid rgba(255, 255, 255, 0.22);
  color: var(--text);
  font: 700 19px/1.1 'Inter', system-ui, sans-serif;
  min-height: 58px;
  padding: 14px 22px;
  border-radius: var(--r-md);
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.06));
  box-shadow: inset 0 1.5px 0 rgba(255, 255, 255, 0.3), 0 10px 24px -14px rgba(0, 0, 0, 0.6);
  width: 100%;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  transition: transform 0.18s var(--spring), opacity 0.2s;
  cursor: pointer;
}
.btn:active { transform: scale(0.96); }
.btn:disabled { opacity: 0.45; }
.btn.primary {
  background: linear-gradient(135deg, #a07bff 0%, #6d5cff 45%, #3fa7ff 100%);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.45), 0 14px 34px -12px rgba(110, 90, 255, 0.85);
  font-size: 21px;
  min-height: 64px;
}
.btn.danger { background: linear-gradient(155deg, rgba(255, 90, 110, 0.45), rgba(255, 90, 110, 0.15)); }
.btn.small { min-height: 40px; padding: 8px 14px; font-size: 16px; width: auto; border-radius: 14px; }
.btn-row { display: flex; gap: 10px; }
.btn-col { display: flex; flex-direction: column; gap: 10px; }
.link-btn { background: none; border: 0; color: var(--text-2); font: 600 16px 'Inter', sans-serif; text-decoration: underline; padding: 12px; cursor: pointer; }
.icon-btn {
  appearance: none; border: 0; background: rgba(255, 255, 255, 0.12); color: #fff;
  width: 46px; height: 46px; border-radius: 50%; font-size: 22px; cursor: pointer; flex: none;
}

/* ---------- Champs ---------- */
.field { display: block; }
.field span { display: block; font-size: 15px; font-weight: 600; color: var(--text-2); margin: 0 4px 8px; }
.input {
  width: 100%;
  font: 600 20px 'Inter', system-ui, sans-serif; /* ≥ 16px : évite le zoom auto d'iPhone */
  color: #fff;
  padding: 16px 18px;
  border-radius: var(--r-md);
  border: 1.5px solid rgba(255, 255, 255, 0.22);
  background: rgba(10, 6, 40, 0.45);
  outline: none;
}
.input:focus { border-color: var(--cyan); box-shadow: 0 0 0 4px rgba(94, 231, 255, 0.2); }
.input::placeholder { color: var(--text-3); }
.error { color: #ff9aa8; font-weight: 600; min-height: 1.3em; text-align: center; margin-top: 8px; }

/* segmented control */
.seg { display: flex; padding: 5px; gap: 5px; border-radius: 18px; background: rgba(10, 6, 40, 0.4); border: 1px solid rgba(255, 255, 255, 0.14); }
.seg button {
  flex: 1; appearance: none; border: 0; background: transparent; color: var(--text-2);
  font: 700 17px 'Inter', sans-serif; padding: 12px 6px; border-radius: 14px; cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.seg button.on { background: linear-gradient(135deg, rgba(160, 123, 255, 0.85), rgba(63, 167, 255, 0.75)); color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4); }

/* ---------- Rejoindre ---------- */
.join-head { display: flex; align-items: center; gap: 10px; justify-content: center; margin: 6px 0 18px; }
.join-head .logo-word { font-size: 40px; }
.join-preview { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; }
.join-preview .avatar { --size: 96px; }
.join-preview .btn { flex: 1; }
.selfie-input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(62px, 1fr)); gap: 10px; }
.gallery button { appearance: none; border: 0; background: none; padding: 0; border-radius: 50%; cursor: pointer; transition: transform 0.2s var(--spring); }
.gallery button .avatar { --size: 100%; aspect-ratio: 1; width: 100%; height: auto; }
.gallery button.on { transform: scale(1.08); }
.gallery button.on .avatar { box-shadow: 0 0 0 3px var(--cyan), 0 0 18px rgba(94, 231, 255, 0.6); }

/* ---------- Principal ---------- */
.topbar {
  position: sticky; top: calc(env(safe-area-inset-top) + 8px); z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 8px 8px 8px 10px; border-radius: 26px; margin-bottom: 14px;
}
.me-mini { display: flex; align-items: center; gap: 10px; min-width: 0; font-weight: 700; font-size: 18px; }
.me-mini .avatar { --size: 44px; }
.me-mini .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tabs { padding-bottom: 96px; }

.hero { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; padding: 26px 20px; }
.hero .avatar { --size: 130px; animation: bob 3.4s ease-in-out infinite; }
.hero .nm { font-size: 30px; font-weight: 800; }
.stats { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.status-msg { font-size: 19px; color: var(--text-2); font-weight: 500; line-height: 1.35; }

.tabbar {
  position: fixed; left: 50%; transform: translateX(-50%);
  bottom: calc(env(safe-area-inset-bottom) + 10px);
  width: min(540px, calc(100% - 20px));
  display: grid; grid-template-columns: repeat(4, 1fr); padding: 6px; border-radius: 26px; z-index: 20;
}
.tabbar button {
  appearance: none; border: 0; background: none; color: var(--text-2); cursor: pointer;
  font: 600 13px 'Inter', sans-serif; padding: 8px 0 6px; border-radius: 20px;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
}
.tabbar button span { font-size: 22px; }
.tabbar button.on { color: #fff; background: rgba(255, 255, 255, 0.14); }

.banner {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 14px; margin-bottom: 14px; border-radius: 18px; font-weight: 700;
  background: rgba(255, 209, 102, 0.2); border: 1px solid rgba(255, 209, 102, 0.45);
}

/* listes (jeux, joueurs) */
.list { display: flex; flex-direction: column; gap: 10px; }
.row {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--r-md);
  appearance: none; color: inherit; font: inherit; text-align: left; width: 100%; cursor: pointer;
}
.row .avatar { --size: 48px; }
.row .emoji { font-size: 30px; width: 44px; text-align: center; flex: none; }
.row .main { flex: 1; min-width: 0; }
.row .t { font-weight: 700; font-size: 18px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .s { font-size: 14px; color: var(--text-2); }
.row.off { opacity: 0.45; }
.row.on { box-shadow: 0 0 0 2px var(--cyan); }
.row .acts { display: flex; gap: 6px; flex: none; }
.row .acts .icon-btn { width: 40px; height: 40px; font-size: 18px; }

/* réglages */
.set { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 4px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.set:last-child { border-bottom: 0; }
.set .lbl { font-weight: 600; }
.set .lbl small { display: block; font-weight: 400; color: var(--text-2); font-size: 14px; margin-top: 2px; }
.switch { position: relative; width: 58px; height: 34px; flex: none; }
.switch input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; z-index: 1; }
.switch span {
  position: absolute; inset: 0; border-radius: 99px; background: rgba(255, 255, 255, 0.18);
  transition: background 0.25s; box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3);
}
.switch span::after {
  content: ''; position: absolute; top: 3px; left: 3px; width: 28px; height: 28px; border-radius: 50%;
  background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35); transition: transform 0.3s var(--spring);
}
.switch input:checked + span { background: linear-gradient(135deg, #8b5cf6, #3fa7ff); }
.switch input:checked + span::after { transform: translateX(24px); }
input[type='range'] { width: 100%; accent-color: var(--violet-2); height: 34px; }
.stepper { display: flex; align-items: center; gap: 8px; flex: none; }
.stepper b { min-width: 58px; text-align: center; font-size: 18px; }
.stepper .icon-btn { width: 40px; height: 40px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span {
  display: inline-block; padding: 10px 14px; border-radius: 99px; font-weight: 700;
  background: rgba(255, 255, 255, 0.1); border: 1.5px solid rgba(255, 255, 255, 0.18); color: var(--text-2);
}
.chip input:checked + span { background: linear-gradient(135deg, rgba(160, 123, 255, 0.8), rgba(63, 167, 255, 0.7)); color: #fff; border-color: rgba(255, 255, 255, 0.4); }

/* ---------- Feuille du bas, toast, pause ---------- */
.sheet { position: fixed; inset: 0; z-index: 40; }
.sheet-scrim { position: absolute; inset: 0; background: rgba(5, 3, 20, 0.6); animation: fade-up 0.2s both; }
.sheet-panel {
  position: absolute; left: 0; right: 0; bottom: 0; max-width: 560px; margin: 0 auto;
  padding: 22px 18px calc(env(safe-area-inset-bottom) + 22px);
  border-radius: 30px 30px 0 0; max-height: 88dvh; overflow: auto;
  animation: sheet-up 0.4s var(--spring) both;
  background: linear-gradient(155deg, rgba(60, 40, 140, 0.85), rgba(20, 12, 60, 0.9)) !important;
}
@keyframes sheet-up { from { transform: translateY(100%); } }

.toast {
  position: fixed; left: 50%; bottom: calc(env(safe-area-inset-bottom) + 100px); transform: translateX(-50%);
  z-index: 60; padding: 14px 22px; border-radius: 18px; font-weight: 700; max-width: 90vw; text-align: center;
  background: rgba(30, 20, 80, 0.92); border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 16px 40px -10px rgba(0, 0, 0, 0.6);
  animation: pop-in 0.4s var(--spring) both;
}
.toast.bad { background: rgba(150, 30, 60, 0.95); }
.toast.ok { background: rgba(30, 120, 80, 0.95); }

.conn-pill {
  position: fixed; top: calc(env(safe-area-inset-top) + 8px); left: 50%; transform: translateX(-50%);
  z-index: 70; padding: 8px 18px; border-radius: 99px; font-weight: 700; font-size: 15px;
  background: rgba(255, 90, 110, 0.92);
}

.pause-overlay {
  position: fixed; inset: 0; z-index: 30; display: grid; place-items: center; padding: 24px;
  background: rgba(5, 3, 20, 0.7);
}

/* ---------- Veille (écran noir + chat) ---------- */
.sleep-view {
  position: fixed; top: 0; left: 0; right: 0; height: 100dvh; z-index: 25; max-width: none; background: #000;
  display: flex; flex-direction: column; gap: 12px;
  padding: calc(env(safe-area-inset-top) + 18px) 16px calc(env(safe-area-inset-bottom) + 12px);
}
.sleep-view > * { width: 100%; max-width: 560px; margin: 0 auto; }
.sl-head { text-align: center; padding: 6px 0 4px; }
.sl-moon { font-size: 40px; }
.sl-title { font-size: 24px; font-weight: 800; color: rgba(255, 255, 255, 0.85); }
.sl-sub { font-size: 15px; color: rgba(255, 255, 255, 0.4); margin-top: 2px; }
.sl-admin { display: flex; flex-direction: column; gap: 10px; }
.sl-admin .btn { min-height: 50px; font-size: 16px; }
.sl-mutes { display: flex; flex-direction: column; gap: 6px; max-height: 34dvh; overflow: auto; padding: 4px; }
.sl-mutes .mrow { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 16px; background: rgba(255, 255, 255, 0.06); }
.sl-mutes .mrow .avatar { --size: 36px; }
.sl-mutes .mrow .nm { flex: 1; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sl-feed { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; padding: 6px 2px; }
.sl-empty { margin: auto; color: rgba(255, 255, 255, 0.3); text-align: center; }
.msg { display: flex; gap: 10px; align-items: flex-end; animation: fade-up 0.3s var(--ease) both; }
.msg .avatar { --size: 34px; }
.msg .b { padding: 10px 14px; border-radius: 18px 18px 18px 6px; background: rgba(255, 255, 255, 0.1); max-width: 80%; }
.msg .b .who { font-size: 13px; font-weight: 700; color: var(--cyan); }
.msg .b .t { font-size: 17px; overflow-wrap: anywhere; }
.msg.mine { flex-direction: row-reverse; }
.msg.mine .b { border-radius: 18px 18px 6px 18px; background: linear-gradient(135deg, rgba(139, 92, 246, 0.6), rgba(63, 167, 255, 0.5)); }
.msg.system { justify-content: center; color: rgba(255, 255, 255, 0.4); font-size: 14px; }
.sl-input { display: flex; gap: 8px; }
.sl-input .input { flex: 1; background: rgba(255, 255, 255, 0.08); }
.sl-input .btn { width: 60px; min-height: 0; padding: 0; font-size: 22px; }
.sl-input .input:disabled { opacity: 0.5; }

/* ---------- Jeux ---------- */
#game-area:empty { display: none; }
#game-area { display: flex; flex-direction: column; gap: 14px; }
.admin-quick { margin: 12px 0; }
.admin-quick .btn { flex: 1; }
.g-info { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; padding: 34px 20px; }
.big-sub { font-size: 20px; font-weight: 700; color: var(--text); }
.g-title { text-align: center; }
.g-title h2 { font-size: 23px; line-height: 1.25; }
.g-title p { margin-top: 6px; }
.g-quote { font-size: 21px; font-weight: 600; margin-top: 12px !important; }
.g-vote-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 12px; }
.g-cand {
  appearance: none; border: 1.5px solid rgba(255, 255, 255, 0.15); background: rgba(255, 255, 255, 0.07); color: #fff;
  border-radius: 20px; padding: 12px 6px; display: flex; flex-direction: column; align-items: center; gap: 8px;
  font: 700 15px 'Inter', sans-serif; cursor: pointer; transition: transform 0.2s var(--spring);
}
.g-cand .avatar { --size: 64px; }
.g-cand span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.g-cand:active { transform: scale(0.94); }
.g-cand.on { background: linear-gradient(135deg, rgba(160, 123, 255, 0.7), rgba(63, 167, 255, 0.6)); border-color: #fff; transform: scale(1.04); }
.g-cand-opt { grid-column: 1 / -1; flex-direction: row; justify-content: center; padding: 14px; border-style: dashed; }
.g-cand-ic { font-style: normal; font-size: 26px; }
.g-cand-opt span { white-space: normal; }
.row .t.wrap { white-space: normal; font-size: 18px; line-height: 1.3; }
.g-stars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.g-star { appearance: none; border: 1.5px solid rgba(255, 255, 255, 0.15); background: rgba(255, 255, 255, 0.07); color: #fff; border-radius: 20px; padding: 16px 4px; font-size: 40px; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.g-star small { font: 600 13px 'Inter', sans-serif; }
.g-star.on { background: linear-gradient(135deg, rgba(255, 209, 102, 0.6), rgba(255, 159, 90, 0.4)); border-color: #fff; }
.g-text { display: flex; flex-direction: column; gap: 10px; }
.g-text textarea { resize: none; }
.g-sent { text-align: center; }
.g-hint { font-size: 30px; font-weight: 800; letter-spacing: 0.08em; margin-top: 8px; word-break: break-word; }
.g-guess { display: flex; gap: 8px; }
.g-guess .input { flex: 1; }
.g-guess .btn { width: 64px; padding: 0; }
.g-close { text-align: center; font-weight: 800; color: var(--gold); font-size: 20px; }

.d-word { padding: 12px 16px; border-radius: 18px; font-size: 18px; text-align: center; }
.d-word b { font-size: 22px; color: var(--gold); }
.d-found { color: var(--text-2); font-size: 15px; }
.d-canvas { border-radius: 18px; overflow: hidden; background: #fbf9ff; box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2); }
.d-canvas canvas { display: block; width: 100%; touch-action: none; }
.d-tools { padding: 10px; border-radius: 20px; display: flex; flex-direction: column; gap: 10px; }
.d-colors { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.d-color { width: 36px; height: 36px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.4); cursor: pointer; font-size: 18px; padding: 0; background: #fff; }
.d-color.on { box-shadow: 0 0 0 3px var(--cyan); transform: scale(1.12); }
.d-row { display: flex; gap: 8px; justify-content: center; align-items: center; }
.d-size, .d-btn { width: 48px; height: 44px; border-radius: 14px; border: 1.5px solid rgba(255, 255, 255, 0.2); background: rgba(255, 255, 255, 0.08); color: #fff; display: grid; place-items: center; cursor: pointer; font-size: 20px; }
.d-size i { display: block; border-radius: 50%; background: #fff; }
.d-size.on { background: rgba(94, 231, 255, 0.3); border-color: var(--cyan); }

.drink-phone { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 24px; background: rgba(40, 20, 0, 0.6); animation: fade-up 0.3s both; }
.drink-phone .card { text-align: center; padding: 36px 26px; background: linear-gradient(155deg, rgba(255, 209, 102, 0.55), rgba(255, 159, 90, 0.3)) !important; animation: pop-in 0.5s var(--spring) both; }

/* bouton « C'est parti » toujours visible, centré en bas */
#v-join { padding-bottom: calc(env(safe-area-inset-bottom) + 110px); }
.join-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 15;
  padding: 18px 16px calc(env(safe-area-inset-bottom) + 16px);
  display: flex; flex-direction: column; gap: 10px; align-items: center;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.75) 45%);
}
.join-cta .btn { width: min(100%, 528px); }

/* thème nuit d'encre (téléphone) */
.phone .glass { background: rgba(24, 24, 28, 0.78); }
.btn { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.1); box-shadow: none; }
.btn.primary { background: var(--accent); border-color: transparent; box-shadow: 0 10px 30px -12px rgba(139, 92, 246, 0.8); }
.btn.danger { background: rgba(255, 90, 110, 0.18); border-color: rgba(255, 90, 110, 0.35); }
.seg { background: rgba(255, 255, 255, 0.05); border-color: rgba(255, 255, 255, 0.08); }
.seg button.on { background: var(--accent); box-shadow: none; }
.switch input:checked + span { background: var(--accent); }
.chip input:checked + span { background: var(--accent); border-color: transparent; }
.input { background: rgba(255, 255, 255, 0.05); border-color: rgba(255, 255, 255, 0.1); }
.input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.25); }
.tabbar button.on { color: #fff; background: var(--accent-soft); }
.gallery button.on .avatar, .g-cand.on .avatar { box-shadow: 0 0 0 3px var(--accent); }
.g-cand, .g-star { background: rgba(255, 255, 255, 0.05); border-color: rgba(255, 255, 255, 0.08); }
.g-cand.on, .g-star.on, .row.on { background: var(--accent-soft); border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.msg.mine .b { background: var(--accent); }
.d-word b { color: #fff; }
.d-color.on { box-shadow: 0 0 0 3px var(--accent); }
.d-size.on { background: var(--accent-soft); border-color: var(--accent); }
.g-close { color: var(--violet-2); }
.drink-phone .card { background: rgba(24, 24, 28, 0.95) !important; border-color: var(--accent); }
.banner { background: var(--accent-soft); border-color: rgba(139, 92, 246, 0.45); }
.d-done { margin-top: 4px; }
.btn-row .input { min-width: 0; }
.btn.icon-ok { flex: none; width: 56px; padding: 0; font-size: 20px; }
.d-btn { font-size: 20px; }

/* Plus ou moins / Imposteur / Fais deviner */
.g-num { display: flex; flex-direction: column; gap: 10px; }
.g-num-row { display: flex; align-items: center; gap: 10px; }
.g-num-row .input { flex: 1; font-size: 26px; text-align: center; }
.g-unit { font-weight: 700; color: var(--text-2); max-width: 40%; }
.g-secret { text-align: center; padding: 26px 18px; }
.g-word { font-size: 38px; font-weight: 800; margin-top: 6px; overflow-wrap: anywhere; }
.g-turn { text-align: center; display: flex; flex-direction: column; gap: 8px; }
.g-turn b { color: #fff; }
.g-taboo { text-align: center; padding: 24px 18px; }
.g-forbid { list-style: none; padding: 0; margin: 8px 0 0; display: flex; flex-direction: column; gap: 6px; }
.g-forbid li { font-size: 20px; font-weight: 600; color: #ff9aa8; }
.g-tb-row { display: grid; grid-template-columns: 1fr 1.6fr 1fr; gap: 10px; }
.g-tb { font-size: 30px; min-height: 76px; }
.g-count { text-align: center; }

/* Le Meme */
.meme-card, .g-meme { position: relative; overflow: hidden; background: #000; }
.meme-card img, .g-meme img { display: block; width: 100%; height: 100%; object-fit: contain; }
.mm-top, .mm-bot { position: absolute; left: 4%; right: 4%; text-align: center; font-family: 'Anton', Impact, sans-serif; font-weight: 400; text-transform: uppercase; color: #fff; line-height: 1.05; letter-spacing: 0.01em;
  -webkit-text-stroke: 0.06em #000; paint-order: stroke fill; text-shadow: 0 0.04em 0.12em rgba(0,0,0,0.6); overflow-wrap: break-word; }
.mm-top { top: 3%; } .mm-bot { bottom: 3%; }
.g-meme { border-radius: 18px; aspect-ratio: 4 / 3; font-size: 26px; margin-bottom: 12px; }

/* outils de dessin v2 */
.d-canvas { position: relative; }
.d-palette { position: absolute; left: 8px; right: 8px; bottom: 60px; z-index: 5; display: grid; grid-template-columns: repeat(8, 1fr); gap: 8px; padding: 12px; border-radius: 18px; background: rgba(18, 18, 24, 0.92); }
.d-palette[hidden] { display: none; }
.d-sw { aspect-ratio: 1; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.25); padding: 0; cursor: pointer; }
.d-tools { flex-direction: row !important; align-items: center; gap: 8px !important; }
.d-tool { flex: none; width: 46px; height: 46px; border-radius: 14px; border: 1.5px solid rgba(255, 255, 255, 0.18); background: rgba(255, 255, 255, 0.07); color: #fff; display: grid; place-items: center; font-size: 20px; cursor: pointer; padding: 0; }
.d-tool.on { border-color: var(--accent); background: var(--accent-soft); }
.d-cur i { width: 26px; height: 26px; border-radius: 50%; box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.5); }
.d-slider { flex: 1; position: relative; height: 46px; touch-action: none; cursor: pointer; }
.d-track { position: absolute; left: 0; right: 0; top: 50%; height: 0; border-top: 10px solid transparent; border-bottom: 0; transform: translateY(-50%);
  background: linear-gradient(90deg, rgba(255,255,255,0.25), rgba(255,255,255,0.5)); clip-path: polygon(0 45%, 100% 0, 100% 100%, 0 55%); height: 18px; border: 0; }
.d-knob { position: absolute; top: 50%; width: 0; height: 0; }
.d-knob i { position: absolute; left: 0; top: 0; transform: translate(-50%, -50%); border-radius: 50%; box-shadow: 0 0 0 2px #fff, 0 2px 8px rgba(0,0,0,0.5); transition: transform 0.12s; }
.d-slider.drag .d-knob i { transform: translate(-50%, -50%) scale(1.25); }

/* accueil joueur v2 */
.hm { display: flex; flex-direction: column; gap: 18px; padding-top: 6px; }
.hm-id { display: flex; align-items: center; gap: 16px; }
.hm-id .avatar { --size: 76px; }
.hm-name { font-size: 26px; font-weight: 800; letter-spacing: -0.01em; }
.hm-crown { font-size: 20px; }
.hm-role { font-size: 14px; color: var(--text-2); text-transform: uppercase; letter-spacing: 0.1em; margin-top: 2px; }
.hm-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 10px; }
.hm-stat { border-radius: 18px; padding: 16px 8px 12px; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.hm-stat b { font-size: 34px; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.hm-stat b sup { font-size: 0.45em; margin-left: 1px; }
.hm-stat span { font-size: 13px; color: var(--text-2); text-transform: uppercase; letter-spacing: 0.08em; }
.hm-msg { font-size: 17px; color: var(--text-2); line-height: 1.4; text-align: center; margin: 4px 0; }
.hm-actions { display: flex; flex-direction: column; gap: 8px; }
.btn.ghost { background: transparent; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14); font-weight: 600; }
/* chat muet */
.sl-input.locked { opacity: 0.55; pointer-events: none; }
.sl-input.locked .input { background: rgba(255, 60, 90, 0.12); box-shadow: inset 0 0 0 1px rgba(255, 60, 90, 0.5); }
/* pas de zoom auto d'iOS sur les champs (cause d'affichages trop petits/grands) */
input, textarea, select { font-size: max(16px, 1em); }

/* barre admin (tous les onglets) */
.admin-bar { position: sticky; top: 8px; z-index: 15; margin: 8px 0 12px; padding: 10px 12px; border-radius: 18px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.admin-bar[hidden] { display: none; }
.ab-info { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 15px; }
.ab-info b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ab-dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.ab-dot.live { background: #22c55e; box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.25); animation: pulse-dot 1.6s ease-in-out infinite; }
@keyframes pulse-dot { 50% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); } }
.ab-btns { display: flex; gap: 6px; flex: none; }
.ab-btns .btn { min-height: 36px; padding: 0 12px; }
.tabs { padding-bottom: 110px; }
.seg-hint { font-size: 14px; margin-top: 8px; text-align: center; }
/* validation avant un jeu */
.rd { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; padding: 30px 20px; }
.rd-emoji { font-size: 64px; line-height: 1; }
.rd-btn { width: 100%; min-height: 64px; font-size: 22px; }
.rd-ok { font-size: 22px; font-weight: 800; color: #22c55e; }
/* roue de sélection (admin) */
.pk { position: relative; height: 240px; border-radius: 22px; overflow: hidden; perspective: 600px; }
.pk-band { position: absolute; left: 10px; right: 10px; top: 50%; height: 48px; margin-top: -24px; border-radius: 14px; background: rgba(255, 255, 255, 0.09); pointer-events: none; }
.pk-scroll { position: absolute; inset: 0; overflow-y: auto; scroll-snap-type: y mandatory; scrollbar-width: none; transform-style: preserve-3d;
  -webkit-mask-image: linear-gradient(transparent, #000 30%, #000 70%, transparent); mask-image: linear-gradient(transparent, #000 30%, #000 70%, transparent); }
.pk-scroll::-webkit-scrollbar { display: none; }
.pk-pad { height: 96px; }
.pk-item { height: 48px; scroll-snap-align: center; display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 21px; font-weight: 700; cursor: pointer; }
.pk-why { text-align: center; font-size: 14px; margin: 8px 0 10px; min-height: 18px; }
.pk-btns .pk-go { flex: 2; }
.pk-btns .btn:disabled { opacity: 0.45; }

/* chat partout */
.chat-fab { position: fixed; right: 16px; bottom: calc(env(safe-area-inset-bottom) + 96px); width: 56px; height: 56px; border-radius: 50%; border: 0; font-size: 24px; z-index: 25; cursor: pointer; color: #fff; }
.chat-fab[hidden] { display: none; }
.chat-fab i { position: absolute; top: -2px; right: -2px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: #ff3b5c; font: 700 12px/22px 'Inter', sans-serif; font-style: normal; }
.chat-fab i[hidden] { display: none; }
.chat-panel { display: flex; flex-direction: column; gap: 10px; height: min(78vh, 640px); }
.cp-head { display: flex; align-items: center; justify-content: space-between; font-size: 20px; }
.cp-feed { flex: 1; overflow-y: auto; min-height: 0; }

/* accueil joueur v3 */
.hm-id { position: relative; }
.hm-who { flex: 1; min-width: 0; }
.hm-av { position: relative; border-radius: 50%; padding: 4px; background: linear-gradient(160deg, rgba(255,255,255,0.22), rgba(255,255,255,0.02)); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.18), 0 10px 30px rgba(0,0,0,0.45); }
.hm-av::after { content: ''; position: absolute; inset: 4px; border-radius: 50%; background: linear-gradient(170deg, rgba(255,255,255,0.28) 0%, rgba(255,255,255,0) 42%); pointer-events: none; }
.hm-av .avatar { --size: 96px; }
.hm-more { position: relative; }
.hm-more .icon-btn { font-size: 22px; }
.hm-menu { position: absolute; right: 0; top: 46px; z-index: 30; min-width: 230px; padding: 6px; border-radius: 16px; display: flex; flex-direction: column; background: rgba(20, 20, 26, 0.96); }
.hm-menu[hidden] { display: none; }
.hm-menu button { appearance: none; border: 0; background: none; color: #fff; font: 600 16px 'Inter', sans-serif; text-align: left; padding: 12px 14px; border-radius: 12px; cursor: pointer; }
.hm-menu button:active { background: rgba(255,255,255,0.08); }
.hm-rank { display: flex; align-items: center; gap: 18px; padding: 16px 20px; border-radius: 20px; }
.hr-big { font-size: 64px; font-weight: 800; line-height: 1; letter-spacing: -0.03em; }
.hr-big sup { font-size: 0.38em; margin-left: 2px; }
.hr-side { flex: 1; min-width: 0; }
.hr-gap { font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.hr-stats { display: flex; gap: 14px; flex-wrap: wrap; font-size: 14px; color: var(--text-2); }
.hr-stats b { color: #fff; font-size: 17px; }
.hm-curve { padding: 12px 14px 8px; border-radius: 18px; }
.hc-label { font-size: 12px; color: var(--text-2); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 6px; }
.spark { display: block; width: 100%; height: 70px; }
.sp-line { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.sp-fill { fill: var(--accent-soft); opacity: 0.6; }
.sp-dot { fill: #fff; }
.hm-next { padding: 14px 18px; border-radius: 18px; text-align: center; }
.hn-label { font-size: 12px; color: var(--text-2); text-transform: uppercase; letter-spacing: 0.08em; }
.hn-name { font-size: 22px; font-weight: 800; margin-top: 4px; }
.hn-desc { font-size: 14px; color: var(--text-2); margin-top: 4px; }
.hm-people { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.hm-people .avatar { --size: 34px; }
.rd-rules { font-size: 16px; line-height: 1.45; color: var(--text-2); }

.online-card.on { box-shadow: inset 0 0 0 1.5px rgba(34, 197, 94, 0.6); }
.oc-url { margin-top: 8px; font-size: 13px; color: #22c55e; overflow-wrap: anywhere; }

/* choix du vaisseau */
.ship-pick { display: flex; align-items: center; gap: 6px; }
.ship-pick .icon-btn { font-size: 30px; flex: none; }
.ship-view { flex: 1; height: 180px; touch-action: pan-y; }
.ship-view canvas { display: block; width: 100% !important; height: 100% !important; }
.ship-name { text-align: center; font-size: 20px; font-weight: 800; margin-top: 4px; }
.ship-hint { text-align: center; font-size: 13px; margin-top: 2px; }

.colors { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 14px; }
.colors button { width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--c); cursor: pointer; box-shadow: 0 0 0 2px rgba(0,0,0,0.4) inset; transition: transform 0.15s; }
.colors button.on { box-shadow: 0 0 0 3px #0b0b10, 0 0 0 5px #fff; transform: scale(1.08); }
.colors button.taken { opacity: 0.18; cursor: default; background: linear-gradient(135deg, transparent 45%, #fff 45%, #fff 55%, transparent 55%), var(--c); }

/* bouton Boost de l'accueil */
.boost-btn { position: relative; overflow: hidden; width: 100%; height: 64px; border: 0; border-radius: 20px; cursor: pointer;
  background: color-mix(in srgb, var(--c) 30%, #15151d); color: #fff; font: 800 22px 'Inter', sans-serif; box-shadow: inset 0 0 0 2px var(--c); }
.boost-btn:active { transform: scale(0.97); }
.boost-btn .bb-txt { position: relative; }
.boost-btn .bb-fill { position: absolute; inset: 0; transform-origin: 0 50%; background: var(--c); opacity: 0.35; transform: scaleX(0); }
.boost-btn.cooling { background: #15151d; color: var(--text-2); box-shadow: inset 0 0 0 2px rgba(255,255,255,0.12); }
.boost-btn.cooling .bb-fill { animation: bb-fill linear forwards; }
@keyframes bb-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* télécommande de la télé (barre admin) : emojis seulement */
.tv-remote { display: flex; gap: 6px; width: 100%; }
.tv-remote button { flex: 1; height: 42px; border: 0; border-radius: 12px; background: rgba(255, 255, 255, 0.06); font-size: 21px; cursor: pointer; }
.tv-remote button.on { background: var(--accent-soft, rgba(139, 92, 246, 0.35)); box-shadow: inset 0 0 0 1.5px var(--accent, #8b5cf6); }
.tv-remote button:active { transform: scale(0.95); }
#admin-bar { flex-wrap: wrap; row-gap: 8px; }

/* écran d'attente : mon vaisseau */
.g-ship { height: 200px; margin-top: 10px; }
.g-ship canvas { display: block; width: 100% !important; height: 100% !important; }
/* retour visuel quand on touche une réponse */
.g-opt { transition: box-shadow 0.15s, background 0.15s; }
.g-opt:active, .g-opt.lit, .g-opt.on { box-shadow: inset 0 0 0 2px var(--me, #8b5cf6), 0 0 22px color-mix(in srgb, var(--me, #8b5cf6) 45%, transparent); background: color-mix(in srgb, var(--me, #8b5cf6) 22%, rgba(20, 20, 28, 0.8)); }
/* rejoindre en un tap, installer */
.quick-join { width: 100%; min-height: 76px; margin-bottom: 4px; display: flex; align-items: center; justify-content: flex-start; gap: 12px; padding: 10px 16px; text-align: left; }
.quick-join .qj-ship { width: 84px; height: 46px; object-fit: contain; flex: none; filter: drop-shadow(2px 2px 0 rgba(0, 0, 0, 0.5)); }
.quick-join .qj-t { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; line-height: 1.1; }
.quick-join .qj-t small { font: 800 12px 'Inter', sans-serif; letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.85; }
.quick-join .qj-t b { font-size: 24px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.quick-join .qj-go { flex: none; font: 900 34px/1 'Inter', sans-serif; margin-top: -4px; }
.install-card .s { margin-top: 4px; }
/* état du Pi */
.ps-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; }
.ps-grid span { display: block; font-size: 12px; color: var(--text-2); text-transform: uppercase; letter-spacing: 0.06em; }
.ps-grid b { font-size: 18px; }
.ps-grid b.good { color: #22c55e; } .ps-grid b.warn { color: #f59e0b; } .ps-grid b.bad { color: #ef4444; }
/* mode léger : pas de flou ni d'animations de fond, pas de 3D */
body.lite * { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
body.lite .glass { background: rgba(22, 22, 30, 0.96) !important; }
body.lite .backdrop * { animation: none !important; }
body.lite .ship-card .ship-view, body.lite .g-ship { display: none; }

/* notifications : pastille en haut, centrée */
.toast { left: 16px !important; right: 16px !important; top: calc(env(safe-area-inset-top) + 14px) !important; bottom: auto !important; transform: none !important;
  margin: 0 auto; width: fit-content; max-width: calc(100vw - 32px); padding: 12px 18px !important; border-radius: 16px !important;
  font-size: 15px; font-weight: 600; line-height: 1.35; text-align: center; color: #fff;
  background: rgba(24, 24, 32, 0.92) !important; border: 1px solid rgba(255, 255, 255, 0.12) !important;
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: 0 12px 34px rgba(0, 0, 0, 0.5) !important;
  animation: toast-in 0.35s cubic-bezier(.2, .9, .3, 1.2) both !important; }
.toast.ok { box-shadow: inset 0 0 0 1.5px rgba(34, 197, 94, 0.7), 0 12px 34px rgba(0, 0, 0, 0.5) !important; }
.toast.bad { box-shadow: inset 0 0 0 1.5px rgba(239, 68, 68, 0.8), 0 12px 34px rgba(0, 0, 0, 0.5) !important; }
@keyframes toast-in { from { opacity: 0; transform: translateY(-16px) scale(0.96); } }
/* Prêt ? */
.rd-btn { display: flex; align-items: center; justify-content: center; gap: 12px; }
.rd-count { font-size: 15px; font-weight: 700; padding: 4px 10px; border-radius: 99px; background: rgba(0, 0, 0, 0.25); }
.rd-spec { width: 100%; margin-top: 10px; }
/* (03/12) admin : lancer sans attendre ceux qui ne sont pas prêts */
.rd-force { display: flex; flex-direction: column; align-items: center; gap: 3px; width: 100%; margin-top: 14px; border-color: #ffc93d; color: #ffd34d; }
.rd-force small { font-size: 12px; font-weight: 600; color: #c9cfdc; }
.rd-ok.spec { color: var(--text-2); }

.g-btns { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.g-btns .btn { min-height: 56px; font-size: 18px; }
.g-big { font-size: 64px; line-height: 1; margin-bottom: 8px; }
.g-secret { margin-top: 14px; padding: 16px; border-radius: 16px; background: rgba(0,0,0,0.35); font-size: 20px; font-weight: 700; line-height: 1.35; }

.lg-roles .row { gap: 10px; }
.lg-emo { font-size: 28px; width: 36px; text-align: center; }
.lg-n { min-width: 26px; text-align: center; font-size: 20px; }

/* Uno */
.uno-top { display: flex; align-items: center; gap: 16px; }
.ut-pile { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.ucard.small { --cw: 54px; }
.ut-color { font-size: 12px; font-weight: 800; padding: 2px 8px; border-radius: 99px; color: #fff; }
.ut-color.c-r { background: #e5293a; } .ut-color.c-y { background: #f5c518; color: #222; } .ut-color.c-g { background: #2fa84f; } .ut-color.c-b { background: #1f6fd1; }
.ut-info { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ut-info b { font-size: 18px; }
.ut-info span { font-size: 13px; }
.uno-acts { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0; }
.uno-acts .btn { flex: 1; min-height: 50px; }
.uno-btn { font-weight: 900; letter-spacing: 0.05em; }
.uno-hand { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; padding-bottom: 20px; }
.uno-hand .ucard { --cw: 64px; cursor: pointer; transition: transform 0.15s; }
.uno-hand .ucard.ok { transform: translateY(-6px); box-shadow: inset 0 0 0 4px #fff, 0 0 0 3px var(--me, #8b5cf6), 0 8px 20px rgba(0,0,0,0.5); }
.uno-hand .ucard.no { filter: brightness(0.45); }
.uno-pick { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; background: rgba(0,0,0,0.6); padding: 20px; }
.uno-pick[hidden] { display: none; }
.up-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.up-c { height: 70px; border: 0; border-radius: 16px; font: 800 18px 'Inter', sans-serif; color: #fff; }
.up-c.c-r { background: #e5293a; } .up-c.c-y { background: #f5c518; color: #222; } .up-c.c-g { background: #2fa84f; } .up-c.c-b { background: #1f6fd1; }
/* Skyjo */
.sk-top { display: flex; justify-content: center; gap: 18px; }
.sk-pile { appearance: none; border: 0; background: none; color: #fff; display: flex; flex-direction: column; align-items: center; gap: 6px; font: 600 13px 'Inter', sans-serif; padding: 0; }
.sk-pile:disabled { opacity: 0.45; }
.sk-pile.held .sky { box-shadow: 0 0 0 3px #fff, 0 0 20px rgba(255,255,255,0.4); }
.sk-hint { text-align: center; display: flex; flex-direction: column; gap: 4px; margin-top: 10px; }
.sk-last { color: #fca5a5; font-weight: 800; }
.sk-grid { display: flex; justify-content: center; gap: 8px; margin: 14px 0 20px; }
.sk-col { display: flex; flex-direction: column; gap: 8px; }
.sk-cell { appearance: none; border: 0; background: none; padding: 0; }
.sk-cell .sky { --cw: 68px; }
.sk-grid:not(.active) .sk-cell { pointer-events: none; }

.uno-hand .ucard.played { animation: card-out 0.25s ease-in forwards; }
@keyframes card-out { to { transform: translateY(-120px) scale(0.6) rotate(-12deg); opacity: 0; } }
.uno-hand .ucard { animation: card-in 0.3s var(--ease, ease) both; }
@keyframes card-in { from { transform: translateY(30px) scale(0.85); opacity: 0; } }

.sk-mode { margin-top: 12px; }
.sk-grid.flipmode .sk-cell .sky:not(.hid) { opacity: 0.35; }
.sk-grid.flipmode .sk-cell .sky.hid { box-shadow: 0 0 0 3px var(--me, #8b5cf6), 0 0 16px color-mix(in srgb, var(--me, #8b5cf6) 50%, transparent); }

/* fin de jeu */
.fin-card { text-align: center; animation: pop-in 0.6s var(--spring, ease) both; }
.fin-emoji { font-size: 76px; line-height: 1; animation: fin-bounce 1.2s ease-in-out infinite alternate; }
@keyframes fin-bounce { to { transform: translateY(-8px) rotate(-6deg); } }
.fin-pts { font-size: 40px; font-weight: 900; color: var(--me, #8b5cf6); margin: 6px 0; }
.fin-card.rank1 { box-shadow: inset 0 0 0 2px #fbbf24, 0 0 40px rgba(251, 191, 36, 0.25); }
/* chrono */
#game-timer { position: relative; height: 6px; margin: 0 0 10px; }
#game-timer:empty { display: none; }
.gt-bar { height: 6px; border-radius: 99px; background: rgba(255, 255, 255, 0.1); overflow: hidden; }
.gt-bar i { display: block; height: 100%; background: var(--me, #8b5cf6); transform-origin: 0 50%; transition: transform 0.2s linear; }
#game-timer.urgent .gt-bar i { background: #ef4444; }
.gt-sec { position: absolute; right: 0; top: 10px; font-size: 26px; font-weight: 900; color: #ef4444; }
#game-timer.urgent { animation: gt-pulse 0.5s ease-in-out infinite alternate; }
@keyframes gt-pulse { to { opacity: 0.55; } }
/* réactions */
.react-bar { display: flex; justify-content: center; gap: 8px; margin-top: 14px; }
.react-bar button { width: 56px; height: 56px; border: 0; border-radius: 18px; background: rgba(255, 255, 255, 0.08); font-size: 28px; cursor: pointer; }
.react-bar button.pop { animation: react-pop 0.35s ease; }
@keyframes react-pop { 50% { transform: scale(1.35); } }
/* Uno : groupes de couleur */
.uno-hand { flex-direction: column; align-items: center; gap: 10px; }
.uno-group { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; padding: 6px; border-radius: 16px; background: rgba(255, 255, 255, 0.03); }

/* vaisseau 2D (profil, attente) */
.ship-2d { width: min(260px, 80%); height: 100%; margin: 0 auto; display: grid; place-items: center; animation: ship-float 3.2s ease-in-out infinite; }
.ship-2d svg { width: 100%; height: auto; }
@keyframes ship-float { 50% { transform: translateY(-8px) rotate(-2deg); } }

.g-word { flex-direction: column; gap: 2px; min-height: 64px; }
.g-lvl { font-size: 13px; font-weight: 600; opacity: 0.85; }

.react-fly { position: fixed; z-index: 90; font-size: 40px; pointer-events: none; transform: translate(-50%, 0); animation: react-fly 1.1s ease-out forwards; }
@keyframes react-fly { to { transform: translate(-50%, -260px) scale(1.6); opacity: 0; } }

/* Uno : la main sur une seule ligne, qu'on fait défiler */
.uno-hand { flex-direction: row !important; flex-wrap: nowrap !important; justify-content: flex-start !important; align-items: flex-end; gap: 0 !important;
  overflow-x: auto; overflow-y: visible; padding: 16px 12px 22px !important; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; }
.uno-hand .ucard { --cw: 76px; margin-right: -14px; scroll-snap-align: start; }
.uno-hand .ucard:last-child { margin-right: 0; }
.uno-hand .ucard.ok { transform: translateY(-12px); z-index: 2; }

.sk-cell.sel .sky { transform: translateY(-6px) scale(1.06); box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--me, #8b5cf6), 0 10px 24px rgba(0,0,0,0.5); }
.sk-confirm:empty { display: none; }
.sk-confirm { position: sticky; bottom: 90px; }

.pk-end { width: 100%; margin-top: 12px; }
.pk-btns .pk-go { flex: 1; }

.pk-end { margin-top: 28px !important; }

/* bouton d'envoi validé */
.btn.sent { background: #16a34a !important; border-color: #16a34a !important; color: #fff !important; animation: sent-pop 0.35s ease; }
@keyframes sent-pop { 40% { transform: scale(1.06); } }
.d-fill.on { box-shadow: inset 0 0 0 2px #fff; background: rgba(255, 255, 255, 0.18); }
.g-opt.mine { opacity: 0.4; pointer-events: none; }

/* Uno : toute la main visible, sans défilement */
.uno-hand { overflow: visible !important; justify-content: center !important; scroll-snap-type: none !important; padding: 18px 12px 22px !important; }
.uno-hand .ucard { --cw: var(--cw2, 76px) !important; margin-right: var(--ov, -14px) !important; }
.uno-hand .ucard:last-child { margin-right: 0 !important; }
.uno-turn { text-align: center; font-size: 26px; font-weight: 900; letter-spacing: 0.06em; padding: 14px; margin-bottom: 10px; border-radius: 18px;
  background: var(--me, #8b5cf6); color: #fff; animation: uno-turn 1.2s ease-in-out infinite; }
@keyframes uno-turn { 50% { box-shadow: 0 0 0 6px color-mix(in srgb, var(--me, #8b5cf6) 40%, transparent), 0 0 40px var(--me, #8b5cf6); } }
.uno-wait { text-align: center; font-size: 18px; color: var(--text-2); padding: 10px; margin-bottom: 10px; }
.uno-top.mine { box-shadow: inset 0 0 0 2px var(--me, #8b5cf6); }
/* Uno : effets sur le téléphone */
.ufx-p { position: fixed; inset: 0; z-index: 95; display: grid; place-content: center; justify-items: center; gap: 8px; pointer-events: none; background: rgba(0, 0, 0, 0.45); animation: ufxp 1.8s ease both; }
.ufx-p b { font-size: 140px; font-weight: 900; line-height: 1; }
.ufx-p span { font-size: 26px; font-weight: 800; text-align: center; padding: 0 20px; }
.ufx-p.skip b { color: #ef4444; } .ufx-p.plus b { color: #f97316; } .ufx-p.rev b { color: #f5c518; }
.ufx-p.me { background: rgba(120, 0, 0, 0.55); }
@keyframes ufxp { from { opacity: 0; transform: scale(0.6); } 15% { opacity: 1; transform: scale(1.05); } 25% { transform: scale(1); } 80% { opacity: 1; } to { opacity: 0; } }
.win-p { position: fixed; inset: 0; z-index: 95; pointer-events: none; overflow: hidden; }
.win-p i { position: absolute; top: -30px; left: var(--x); width: 10px; height: 18px; background: var(--c); border-radius: 2px; animation: un-fall-p 2.6s linear var(--d) both; }
@keyframes un-fall-p { to { transform: translateY(110vh) rotate(720deg); } }
.win-p b { position: absolute; inset: 0; display: grid; place-items: center; font-size: 110px; animation: ufxp 2.6s ease both; }

/* Skyjo : la main un peu à l'écart, poubelle */
.sk-sep { width: 1px; align-self: stretch; margin: 0 8px; background: rgba(255, 255, 255, 0.18); }
.sk-pile.held { margin-left: 4px; }
.sk-pile span { font-size: 14px; }
.sk-empty { width: 58px; height: 80px; border-radius: 10px; border: 2px dashed rgba(255, 255, 255, 0.25); }
.sk-fly { animation: sk-fly 0.5s cubic-bezier(.5, 0, .7, 1) forwards; }
@keyframes sk-fly { 30% { transform: translateY(-20px) scale(1.1) rotate(-6deg); } to { transform: translate(var(--tx), var(--ty)) scale(0.85) rotate(12deg); opacity: 0.9; } }

.react-bar { padding-right: 76px; }
.react-bar button { width: 50px !important; height: 50px !important; font-size: 25px !important; transition: opacity 0.2s, filter 0.2s; }
.react-bar.cool button { opacity: 0.35; filter: grayscale(1); pointer-events: none; }

/* ============ Lot 1 (nov. 2026) ============ */
/* rejoindre : lien admin discret */
.admin-link { text-align: center; margin: 4px 0 8px; }
.admin-link .link-btn { font-size: 13px; opacity: 0.7; }
.admin-link .field { margin-top: 10px; text-align: left; }

/* ⚙️ : trois boutons */
.sheet-menu { gap: 10px; }
.sheet-menu .btn { width: 100%; justify-content: flex-start; }
.sheet-menu .btn.on { box-shadow: inset 0 0 0 2px var(--accent, #8b5cf6); }
.set-pause { width: 100%; margin: 4px 0 6px; }

/* réactions : tout en bas, sur toute la largeur ; le chat juste au-dessus */
#react-dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 24; padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); background: linear-gradient(to top, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0)); }
#react-dock:empty { display: none; }
#react-dock .react-bar { display: flex; gap: 8px; margin: 0; padding: 0 !important; }
#react-dock .react-bar button { flex: 1; width: auto !important; height: 56px !important; font-size: 28px !important; border-radius: 16px; }
.chat-fab { bottom: calc(env(safe-area-inset-bottom) + 16px) !important; right: 16px !important; }
body.has-react .chat-fab { bottom: calc(env(safe-area-inset-bottom) + 84px) !important; }
body.has-react #app { padding-bottom: 150px; }

/* dernières secondes sans avoir répondu : le tour de l'écran clignote en rouge */
body::after { content: ''; position: fixed; inset: 0; z-index: 200; pointer-events: none; opacity: 0; box-shadow: inset 0 0 0 6px #ff2b3d, inset 0 0 40px 10px rgba(255, 43, 61, 0.55); transition: opacity 0.2s; }
body.hurry::after { animation: hurry 0.5s ease-in-out infinite alternate; }
@keyframes hurry { from { opacity: 0.25; } to { opacity: 1; } }
.gt-sec { display: none !important; }

/* « On t'attend ! » au milieu, au-dessus des boutons */
.rd-nudge { margin: 6px 0 14px; padding: 18px 16px; border-radius: 20px; text-align: center; font-size: 30px; font-weight: 900; letter-spacing: 0.01em;
  background: var(--me, #8b5cf6); color: #fff; animation: nudge-in 0.4s var(--spring) both, nudge-pulse 0.9s 0.4s ease-in-out infinite alternate; }
.rd-nudge small { display: block; font-size: 15px; font-weight: 600; opacity: 0.9; margin-top: 4px; }
@keyframes nudge-in { from { transform: scale(0.6); opacity: 0; } }
@keyframes nudge-pulse { to { transform: scale(1.04); box-shadow: 0 0 40px color-mix(in srgb, var(--me, #8b5cf6) 70%, transparent); } }

/* gorgées : petit bandeau net en haut de l'écran */
.drink-phone { position: fixed; left: 0; right: 0; top: calc(env(safe-area-inset-top) + 14px); z-index: 80; display: flex; justify-content: center; padding: 0 16px; pointer-events: auto;
  bottom: auto; background: none !important; animation: dp-in 0.45s var(--spring) both; }
.drink-phone.out { animation: dp-out 0.35s ease forwards; }
.dp-card { display: flex; align-items: center; gap: 14px; padding: 10px 22px 10px 12px; border-radius: 18px; background: #111116; border: 1.5px solid #f5b83d; box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6); }
.dp-n { min-width: 52px; height: 52px; padding: 0 8px; border-radius: 14px; display: grid; place-items: center; background: #f5b83d; color: #111; font-size: 30px; font-weight: 900; }
.dp-txt { display: flex; flex-direction: column; line-height: 1.15; }
.dp-txt b { font-size: 20px; font-weight: 800; letter-spacing: 0.02em; text-transform: uppercase; }
.dp-txt small { font-size: 13px; color: var(--text-2); }
@keyframes dp-in { from { transform: translateY(-120%); opacity: 0; } }
@keyframes dp-out { to { transform: translateY(-120%); opacity: 0; } }

/* vote à confirmer */
.g-cand { position: relative; }
.g-cand.arm { border-color: #fff !important; box-shadow: 0 0 0 3px var(--me, #8b5cf6) !important; transform: scale(1.04); }
.g-cand em { font-style: normal; font-size: 11px; font-weight: 700; color: #fff; background: var(--me, #8b5cf6); padding: 3px 7px; border-radius: 8px; white-space: nowrap; animation: nudge-pulse 0.7s ease-in-out infinite alternate; }
.g-strong { color: var(--me, #fff); font-weight: 900; }
.g-big { font-size: 64px; line-height: 1; margin-bottom: 8px; }

/* Loup Garou : la carte */
.lgc-stage { display: grid; justify-items: center; gap: 12px; padding: 10px 0 4px; }
.lgc { width: min(72vw, 280px); aspect-ratio: 5 / 7; perspective: 1200px; cursor: pointer; }
.lgc.arrive { animation: lgc-arrive 0.9s cubic-bezier(.2, .9, .3, 1.1) both; }
@keyframes lgc-arrive { from { transform: translate(60vw, -40vh) rotate(40deg) scale(0.5); opacity: 0; } 70% { transform: translate(0, 0) rotate(-4deg) scale(1.02); opacity: 1; } }
.lgc-inner { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform 0.7s cubic-bezier(.3, .7, .3, 1.2); }
.lgc.flip .lgc-inner { transform: rotateY(180deg); }
.lgc-face { position: absolute; inset: 0; border-radius: 20px; backface-visibility: hidden; -webkit-backface-visibility: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 18px; border: 3px solid #000; box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6); }
.lgc-back { background: repeating-linear-gradient(45deg, #2a1650 0 12px, #1e0f3b 12px 24px); }
.lgc-back span { font-size: 80px; filter: drop-shadow(0 4px 0 #000); }
.lgc-back b { margin-top: 10px; font-size: 18px; letter-spacing: 0.2em; text-transform: uppercase; color: #f5b83d; }
.lgc-front { transform: rotateY(180deg); background: linear-gradient(170deg, #fdf6e3, #e9dcbc); color: #1a1426; }
.lgc-emo { font-size: 72px; line-height: 1; }
.lgc-name { font-size: 26px; font-weight: 900; margin: 8px 0 6px; }
.lgc-front p { font-size: 14px; line-height: 1.35; margin: 0; }
.lgc-extra { margin-top: 8px; font-size: 13px; font-weight: 800; padding: 4px 10px; border-radius: 10px; background: #1a1426; color: #f5b83d; }
.lgc-tip { margin: 0; font-size: 14px; color: var(--text-2); }
.lgc-overlay { position: fixed; inset: 0; z-index: 90; display: grid; place-content: center; justify-items: center; gap: 14px; background: rgba(0, 0, 0, 0.82); }
.lg-see { display: block; width: 100%; margin-top: 14px; opacity: 0.85; }

/* ============ Lot 2 (nov. 2026) ============ */
/* admin : barre tout en haut, au-dessus de tout */
.tabbar, .tv-remote { display: none !important; }
/* collée tout en haut de l'écran : on annule la marge de la page (sinon, depuis le raccourci, l'encoche était comptée deux fois) */
.admnav { position: sticky; top: 0; z-index: 40; display: flex; gap: 6px; margin: calc(-1 * (env(safe-area-inset-top) + 16px)) -16px 10px; padding: calc(env(safe-area-inset-top) + 8px) 12px 8px;
  background: #0d1019; border-bottom: 3px solid #000; box-shadow: 0 2px 0 #263250; }
.admnav[hidden], .admsub[hidden] { display: none !important; }
.admnav button, .admsub button { flex: 1; height: 46px; border: 3px solid #000; border-radius: 12px; background: #1b2235; font-size: 22px; cursor: pointer; box-shadow: 3px 3px 0 #000; }
.admnav button.on, .admsub button.on { background: var(--me, #8b5cf6); }
.admnav button:active, .admsub button:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 #000; }
.admsub { position: sticky; top: calc(env(safe-area-inset-top) + 66px); z-index: 39; display: flex; gap: 6px; margin: -4px 0 12px; padding: 8px; border-radius: 14px;
  background: #151b2c; border: 3px solid #000; box-shadow: 4px 4px 0 #000; animation: sub-in 0.2s ease both; }
@keyframes sub-in { from { transform: translateY(-10px); opacity: 0; } }

/* liste des jeux (la télé fait défiler les jeux) */
.gl-h { display: flex; align-items: center; justify-content: space-between; margin: 4px 2px 10px; }
.gl-h span { font-size: 14px; font-weight: 600; color: var(--text-2); }
.gl { display: flex; flex-direction: column; gap: 10px; }
.gl-row { padding: 12px 14px; border-radius: 14px; background: #151b2c; border: 3px solid #000; box-shadow: 4px 4px 0 #000; }
.gl-row.focus { box-shadow: 0 0 0 3px var(--me, #8b5cf6), 4px 4px 0 #000; }
.gl-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.gl-top b { font-size: 18px; }
.gl-min { flex: none; font-size: 12px; font-weight: 800; padding: 2px 8px; border-radius: 8px; background: #000; color: #f5b83d; }
.gl-row p { margin: 4px 0 0; font-size: 14px; color: var(--text-2); line-height: 1.35; }
.gl-row.off { opacity: 0.38; filter: grayscale(1); }

/* Loup Garou : cartes illustrées */
.lgc-front { padding: 0 0 14px !important; justify-content: flex-start !important; overflow: hidden; }
.lgc-art { width: 100%; height: 56%; object-fit: cover; border-bottom: 3px solid #000; }
.lgc-front .lgc-name { margin-top: 8px !important; }
.lgc-front p { padding: 0 12px; }
.lgc-back { padding: 0 !important; overflow: hidden; }
.lgc-dos { width: 100%; height: 100%; object-fit: cover; }

/* Uno : juste à qui le tour + la carte du dessus */
.uno-top.solo { justify-content: center; margin: 6px 0 14px; }
.uno-top.solo .ucard { --cw: 110px; width: 110px; }

/* écran des jeux : grille de planètes, on touche pour voter */
.gv-h { text-align: center; font: 800 20px 'Orbitron', 'Inter', sans-serif; margin: 2px 0 12px; }
.gv { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.gv-t { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 4px 8px; border-radius: 14px; background: #151b2c; border: 3px solid #000; box-shadow: 3px 3px 0 #000; color: #fff; font: inherit; }
.gv-t b { font-size: 12.5px; line-height: 1.15; text-align: center; min-height: 2.3em; display: grid; place-items: center; }
.gv-p { width: 54px; height: 54px; display: grid; place-items: center; }
.gv-p .p2 { --size: 54px; }
.gv-t small { font-size: 10px; color: #f5b83d; font-weight: 800; }
.gv-t.off { opacity: 0.35; filter: grayscale(1); }
.gv-t.focus { box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.5), 3px 3px 0 #000; }
.gv-t.mine { background: color-mix(in srgb, var(--me, #8b5cf6) 30%, #151b2c); box-shadow: 0 0 0 3px var(--me, #8b5cf6), 3px 3px 0 #000; }
.gv-t:active:not([disabled]) { transform: translate(2px, 2px); box-shadow: 1px 1px 0 #000; }
.gv-who { display: flex; gap: 3px; align-items: center; }
.gv-who i { width: 10px; height: 10px; border-radius: 50%; border: 2px solid #000; }
.gv-who em { font-style: normal; font-size: 10px; font-weight: 800; }

/* Skyjo : une carte qui se retourne (face cachée → valeur) */
.sky.sk-flipin { animation: sk-flipin 0.6s cubic-bezier(.3, .7, .3, 1) both; }
@keyframes sk-flipin {
  0% { transform: perspective(500px) rotateY(180deg) scale(1.1); filter: brightness(0.4); }
  50% { transform: perspective(500px) rotateY(90deg) scale(1.15); filter: brightness(0.6); }
  100% { transform: perspective(500px) rotateY(0) scale(1); filter: none; }
}
.sk-hint { margin-top: 12px; }

.gv-t { cursor: pointer; user-select: none; }
.gv-t[data-off] { opacity: 0.35; filter: grayscale(1); }
.gv-t:active:not([data-off]) { transform: translate(2px, 2px); box-shadow: 1px 1px 0 #000; }
.gv-i { position: absolute; right: 5px; top: 5px; width: 22px; height: 22px; border-radius: 50%; border: 2px solid #000; background: #f5b83d; color: #000; font: italic 900 13px/1 Georgia, serif; display: grid; place-items: center; padding: 0; z-index: 2; }
.gv-sheet { position: fixed; inset: 0; z-index: 90; background: rgba(0, 0, 0, 0.7); display: grid; place-items: center; padding: 20px; animation: fade-in 0.2s ease both; }
.gv-card { width: 100%; max-width: 360px; background: #151b2c; border: 3px solid #000; box-shadow: 6px 6px 0 #000; border-radius: 18px; padding: 20px; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.gv-cp .p2 { --size: 90px; }
.gv-card h2 { margin: 0; font: 900 24px 'Orbitron', 'Inter', sans-serif; }
.gv-min { font-size: 13px; font-weight: 800; padding: 3px 10px; border-radius: 8px; background: #000; color: #f5b83d; }
.gv-card p { margin: 4px 0 8px; font-size: 16px; line-height: 1.45; color: var(--text-2); }
.gv-card .btn { width: 100%; }
@keyframes fade-in { from { opacity: 0; } }

.teams-set { display: none; }
body.teams-on .teams-set { display: flex; }

.lg-deal[disabled] { opacity: 1; background: #2a2f45; color: #f5b83d; filter: none; box-shadow: 3px 3px 0 #000; font-size: 15px; }

/* ===== nouveaux jeux (téléphone) ===== */
/* Réflexes */
.rx-pad { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 62vh; border-radius: 26px; border: 4px solid #000; box-shadow: 6px 6px 0 #000; color: #fff; font: inherit; touch-action: none; user-select: none; transition: background 0.08s; }
.rx-pad b { font: 900 40px 'Orbitron', 'Inter', sans-serif; letter-spacing: 0.03em; }
.rx-pad span { font-size: 16px; opacity: 0.85; }
.rx-pad.wait { background: #b4232f; }
.rx-pad.trap { background: #e0a400; color: #000; }
.rx-pad.go { background: #18a84a; animation: rx-go 0.25s ease-out; }
@keyframes rx-go { from { transform: scale(0.96); } }
.rx-pad.done { background: #1f2a44; }
.rx-pad.false { background: #3a0d12; }
/* Astéroïdes : manette */
.pad { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 60vh; padding: 10px 4px; touch-action: none; user-select: none; }
.pad-stick { position: relative; width: 170px; height: 170px; border-radius: 50%; background: radial-gradient(circle, #1d2440, #0d1124); border: 4px solid #000; box-shadow: 5px 5px 0 #000, inset 0 0 0 3px color-mix(in srgb, var(--pc) 60%, transparent); touch-action: none; }
.pad-stick i { position: absolute; left: 50%; top: 50%; width: 74px; height: 74px; margin: -37px 0 0 -37px; border-radius: 50%; background: var(--pc); border: 4px solid #000; box-shadow: 3px 3px 0 #000; }
.pad-fire { width: 140px; height: 140px; border-radius: 50%; background: #e5293a; color: #fff; border: 4px solid #000; box-shadow: 5px 5px 0 #000; font: 900 26px 'Orbitron', 'Inter', sans-serif; touch-action: none; }
.pad-fire:active { transform: translate(3px, 3px); box-shadow: 2px 2px 0 #000; background: #ff4d5c; }
/* Priorities */
.po-list { display: flex; flex-direction: column; gap: 10px; margin: 6px 0 14px; }
.po-it { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 16px; background: #151b2c; border: 3px solid #000; box-shadow: 4px 4px 0 #000; color: #fff; font: 700 18px 'Inter', sans-serif; text-align: left; }
.po-it b { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #0b0f1d; border: 2px dashed rgba(255,255,255,0.3); font: 900 18px 'Orbitron', sans-serif; }
.po-it.on { background: color-mix(in srgb, var(--me, #8b5cf6) 25%, #151b2c); }
.po-it.on b { background: var(--me, #8b5cf6); border: 2px solid #000; color: #fff; animation: un-pop 0.3s ease; }
/* Longueur d'onde */
.on-clue { text-align: center; font: 900 26px 'Inter', sans-serif; margin: 8px 0 22px; }
.on-gauge { margin: 10px 0 18px; }
.on-bar { position: relative; height: 70px; border-radius: 18px; border: 4px solid #000; box-shadow: 4px 4px 0 #000; background: linear-gradient(90deg, #4f9bff, #8b5cf6 50%, #ff5a6e); touch-action: none; }
.on-needle { position: absolute; top: -12px; bottom: -12px; width: 8px; margin-left: -4px; background: #fff; border: 3px solid #000; border-radius: 6px; transition: left 0.05s; }
.on-target { position: absolute; top: 0; bottom: 0; width: 18%; margin-left: -9%; background: repeating-linear-gradient(90deg, rgba(255,255,255,0.15) 0 3%, rgba(255,255,255,0.45) 3% 6%); border-left: 3px solid #fff; border-right: 3px solid #fff; }
.on-ends { display: flex; justify-content: space-between; margin-top: 10px; font-weight: 800; font-size: 16px; }
/* champs multiples */
.mu-letter { text-align: center; font: 900 84px/1 'Inter', sans-serif; color: #f5b83d; text-shadow: 4px 4px 0 #000; margin: 4px 0 8px; }
.mu-stop { text-align: center; font: 900 32px 'Orbitron', sans-serif; color: #fff; background: #e5293a; border: 3px solid #000; border-radius: 12px; padding: 6px; margin-bottom: 10px; animation: rx-go 0.3s ease, mu-blink 0.5s steps(2) infinite; }
@keyframes mu-blink { 50% { background: #8c1520; } }
.mu-f { display: flex; flex-direction: column; gap: 4px; }
.mu-f span { font-size: 13px; font-weight: 800; color: var(--text-2); text-transform: uppercase; letter-spacing: 0.04em; }
/* Petit Bac : vérification */
.fl-rows { display: flex; flex-direction: column; gap: 14px; margin-bottom: 14px; }
.fl-cat h3 { margin: 0 0 6px; font-size: 14px; text-transform: uppercase; color: var(--text-2); }
.fl-a { display: inline-flex; flex-direction: column; align-items: flex-start; margin: 0 6px 6px 0; padding: 8px 12px; border-radius: 12px; background: #151b2c; border: 2px solid #000; box-shadow: 3px 3px 0 #000; color: #fff; font: inherit; }
.fl-a b { font-size: 16px; }
.fl-a small { font-size: 11px; color: var(--text-2); }
.fl-a.no { background: #3a0d12; }
.fl-a.no b { text-decoration: line-through; color: #ff8a8a; }
.fl-a[disabled] { opacity: 0.4; }
/* Codenames */
.cn-head { text-align: center; font-weight: 900; padding: 10px; border-radius: 12px; background: var(--tc); color: #000; border: 3px solid #000; margin-bottom: 10px; }
.cn-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 5px; margin-bottom: 12px; }
.cn-c { min-height: 54px; padding: 4px 2px; border-radius: 8px; background: #f3ead6; color: #1b1640; border: 2px solid #000; font: 800 11px/1.1 'Inter', sans-serif; word-break: break-word; }
.cn-c.arm { outline: 3px solid #fff; transform: scale(1.06); }
.cn-c.k-0 { background: #f5b83d; } .cn-c.k-1 { background: #4f9bff; color: #fff; } .cn-c.k-n { background: #c9b99a; } .cn-c.k-x { background: #111; color: #fff; }
.cn-grid.chief .cn-c:not(.up) { opacity: 1; }
.cn-c.up { opacity: 0.35; text-decoration: line-through; }
.cn-c[disabled]:not(.up) { opacity: 0.9; }
/* La Bombe */
.bm-top { display: flex; align-items: center; justify-content: space-between; margin: 6px 0 16px; }
.bm-ico { font-size: 54px; animation: bm-shake 0.4s ease-in-out infinite; }
@keyframes bm-shake { 50% { transform: rotate(-8deg) scale(1.05); } }
.bm-s { font: 900 54px 'Orbitron', sans-serif; color: #f5b83d; text-shadow: 3px 3px 0 #000; padding: 4px 18px; border: 3px solid #000; border-radius: 14px; background: #151b2c; }
.bm-l { font-size: 22px; }
.bm-no { text-align: center; color: #ff8a8a; font-weight: 800; margin-top: 10px; }
.bm-no.shake { animation: bm-no 0.35s ease; }
@keyframes bm-no { 25% { transform: translateX(-8px); } 75% { transform: translateX(8px); } }
/* Juste Prix, Cadavre exquis */
.g-num-img { display: block; max-width: 70%; max-height: 32vh; margin: 0 auto 12px; border-radius: 14px; border: 3px solid #000; background: #fff; object-fit: contain; }
.d-guide { position: absolute; inset: 0; pointer-events: none; }
.d-guide::before, .d-guide::after { content: ''; position: absolute; left: 38%; right: 38%; height: 0; border-top: 3px dashed rgba(139, 92, 246, 0.6); }
.d-guide.g0::after { bottom: 3%; } .d-guide.g0::before { display: none; }
.d-guide.g1::before { top: 3%; } .d-guide.g1::after { bottom: 3%; left: 30%; right: 30%; }
.d-guide.g2::before { top: 3%; left: 30%; right: 30%; } .d-guide.g2::after { display: none; }
/* Tu préfères */
.btn.tp-a { background: #e5293a !important; color: #fff !important; min-height: 90px; font-size: 18px; }
.btn.tp-b { background: #1f6fd1 !important; color: #fff !important; min-height: 90px; font-size: 18px; }

/* réponse envoyée : le bouton reste vert, la saisie est figée (retoucher le bouton pour modifier) */
form.locked .input { opacity: 0.75; }
form .btn.sent { background: #18a84a !important; color: #fff !important; }

/* Priorities : emplacements numérotés (chaud → froid) */
.po-slots { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }
.po-slot { display: flex; align-items: center; gap: 14px; min-height: 66px; padding: 8px 14px 8px 8px; border-radius: 18px; background: #0b0f1d; border: 3px dashed rgba(255, 255, 255, 0.25); color: #fff; font: 800 20px 'Inter', sans-serif; text-align: left; }
.po-slot b { flex: none; width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; background: var(--hc); border: 3px solid #000; font: 900 26px 'Orbitron', sans-serif; color: #fff; text-shadow: 2px 2px 0 #000; }
.po-slot.on { background: #151b2c; border: 3px solid #000; box-shadow: 4px 4px 0 #000, inset 6px 0 0 var(--hc); animation: un-pop 0.25s ease; }
.po-pool { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; min-height: 54px; margin-bottom: 18px; }
.po-it { padding: 14px 18px; border-radius: 16px; background: #f3ead6; color: #1b1640; border: 3px solid #000; box-shadow: 4px 4px 0 #000; font: 900 19px 'Inter', sans-serif; }
.po-it:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 #000; }
.po-ok { width: 100%; }

/* Space Invaders : manette */
.pad-ud { display: flex; flex-direction: column; gap: 18px; }
.pad-b { width: 130px; height: 130px; border-radius: 28px; background: #1d2440; color: #fff; border: 4px solid #000; box-shadow: 5px 5px 0 #000, inset 0 0 0 3px color-mix(in srgb, var(--pc) 60%, transparent); font-size: 56px; touch-action: none; user-select: none; }
.pad-b.on, .pad-fire.on { transform: translate(3px, 3px); box-shadow: 2px 2px 0 #000; filter: brightness(1.3); }
.pad-fire { width: 170px; height: 170px; }

/* Codenames : cartes lisibles, couleurs du capitaine */
.cn-head { font-size: 17px; }
.cn-grid { gap: 6px; }
.cn-c { position: relative; min-height: 76px; padding: 6px 3px; border-radius: 10px; border: 3px solid #000; box-shadow: 3px 3px 0 #000; font: 900 12.5px/1.1 'Inter', sans-serif; text-transform: uppercase; letter-spacing: -0.01em; overflow-wrap: anywhere; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
.cn-c i { font-style: normal; font-size: 18px; }
.cn-c.k-x { background: #111 !important; color: #ff5a6e !important; }
.cn-c.up { opacity: 0.3; }
.cn-c.up span { text-decoration: line-through; }
.cn-grid.chief .cn-c.k-0, .cn-grid.chief .cn-c.k-1, .cn-grid.chief .cn-c.k-n { opacity: 1; }
.cn-grid.chief .cn-c.up { opacity: 0.3; }
.cn-c[disabled]:not(.up) { opacity: 1; }
.cn-legend { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-bottom: 10px; }
.cn-legend span { padding: 4px 10px; border-radius: 8px; border: 2px solid #000; font-size: 12px; font-weight: 900; }
.cn-legend .k-0 { background: #f5b83d; color: #111; } .cn-legend .k-1 { background: #4f9bff; color: #fff; } .cn-legend .k-n { background: #c9b99a; color: #111; } .cn-legend .k-x { background: #111; color: #ff5a6e; }
.g-title h2 { white-space: pre-line; }

/* Petit Bac */
.pbs-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.pbs-c { padding: 10px 14px; border-radius: 12px; background: #151b2c; color: #fff; border: 2px solid #000; box-shadow: 3px 3px 0 #000; font: 700 14px 'Inter', sans-serif; }
.pbs-c.on { background: #f5b83d; color: #111; }
.pb-stop { width: 100%; margin-top: 12px; min-height: 64px; font: 900 28px 'Orbitron', sans-serif; background: #e5293a !important; color: #fff !important; }
.pb-stop[disabled] { background: #3a3f52 !important; color: #8b90a8 !important; }
.pb-stopped { position: fixed; inset: 0; z-index: 60; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; background: rgba(120, 10, 20, 0.82); pointer-events: none; animation: un-pop 0.35s ease both; }
.pb-stopped b { font: 900 96px 'Orbitron', sans-serif; color: #fff; text-shadow: 6px 6px 0 #000; }
.pb-stopped span { font: 800 22px 'Inter', sans-serif; color: #fff; }

/* Tu préfères ? */
.tp-title { text-align: center; font: 900 26px 'Orbitron', sans-serif; margin: 4px 0 14px; }
.tp-duel { display: flex; flex-direction: column; gap: 12px; position: relative; }
.tp-opt { min-height: 26vh; padding: 20px; border-radius: 24px; border: 4px solid #000; box-shadow: 6px 6px 0 #000; color: #fff; font: 900 24px/1.2 'Inter', sans-serif; text-shadow: 2px 2px 0 rgba(0,0,0,0.5); transition: transform 0.15s, opacity 0.2s; }
.tp-opt.a { background: #e5293a; } .tp-opt.b { background: #1f6fd1; }
.tp-opt.on { box-shadow: 0 0 0 5px #fff, 6px 6px 0 #000; transform: scale(1.02); }
.tp-opt.on::after { content: ' ✓'; }
.tp-opt.off { opacity: 0.45; }
.tp-or2 { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 2; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: #0b0f1d; border: 4px solid #000; font: 900 20px 'Orbitron', sans-serif; }

/* Bataille spatiale : placement */

/* Draw my mutant : bas du morceau d'avant */
.d-prev { border-radius: 14px 14px 0 0; overflow: hidden; border: 3px dashed rgba(139, 92, 246, 0.7); border-bottom: none; margin-bottom: -3px; opacity: 0.85; }
.d-prev canvas { display: block; width: 100%; }
.cn-c { overflow-wrap: normal; word-break: keep-all; }
.cn-c.l { font-size: 10.5px; letter-spacing: -0.03em; }
.cn-c.xl { font-size: 9px; letter-spacing: -0.04em; }

/* jamais de débordement horizontal : sinon le navigateur dézoome toute la page (tout devient minuscule jusqu'à l'actualisation) */
html, body { max-width: 100%; overflow-x: clip; }
#app, #home, .view { max-width: 100vw; overflow-x: clip; }
img, canvas, svg { max-width: 100%; }

.fin-sips { margin: 6px auto 4px; padding: 8px 16px; border-radius: 14px; background: #2a2210; border: 3px solid #f5b83d; color: #f5b83d; font-weight: 900; font-size: 20px; display: inline-block; }

/* Space Invaders : joystick */
.pad .pad-stick { width: 190px; height: 190px; }
.pad .pad-stick i { width: 80px; height: 80px; margin: -40px 0 0 -40px; transition: transform 0.05s; }

/* Priorities : glisser-déposer */
.po-slot { position: relative; min-height: 70px; }
.po-slot em { font-style: normal; font-size: 14px; color: rgba(255, 255, 255, 0.35); font-weight: 600; }
.po-slot.hover { border-color: #fff; background: #1d2440; }
.po-pool { position: sticky; bottom: 0; padding: 12px 6px; border-radius: 18px; background: rgba(8, 10, 24, 0.9); border: 2px dashed rgba(255, 255, 255, 0.2); }
.po-chip { display: inline-flex; align-items: center; padding: 12px 16px; border-radius: 14px; background: #f3ead6; color: #1b1640; border: 3px solid #000; box-shadow: 4px 4px 0 #000; font: 900 18px 'Inter', sans-serif; touch-action: none; user-select: none; cursor: grab; }
.po-chip.in { box-shadow: 3px 3px 0 #000; padding: 8px 12px; font-size: 17px; }
.po-chip.lifted { opacity: 0.25; }
.po-ghost { position: fixed; left: 0; top: 0; z-index: 99; pointer-events: none; box-shadow: 8px 8px 0 #000; }

.on-ok { width: 100%; margin-top: 18px; }
.on-bar.locked { filter: saturate(0.6); }

/* Petit Bac : liste des catégories à cocher, règle */
.pbs-list { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.pbs-list .pbs-c { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; text-align: left; font-size: 17px; }
.pbs-list .pbs-c i { flex: none; width: 26px; height: 26px; border-radius: 7px; border: 3px solid #000; background: #0b0f1d; display: grid; place-items: center; font-style: normal; }
.pbs-list .pbs-c.on { background: #2a2210; color: #fff; box-shadow: inset 0 0 0 2px #f5b83d, 3px 3px 0 #000; }
.pbs-list .pbs-c.on i { background: #f5b83d; }
.pbs-list .pbs-c.on i::after { content: '✓'; color: #000; font-weight: 900; font-size: 17px; }
.pbs-go { position: sticky; bottom: 10px; width: 100%; }
.pb-rule { text-align: center; font-size: 14px; font-weight: 800; color: #f5b83d; margin: -2px 0 10px; }

/* Bataille spatiale : les vaisseaux dessinés sur la grille */

/* Priorities : tout tient sur l'écran, sans défiler */
.po-slots { gap: 7px; margin-bottom: 10px; }
.po-slot { min-height: 54px; padding: 5px 10px 5px 6px; gap: 10px; font-size: 16px; }
.po-slot b { width: 40px; height: 40px; font-size: 21px; border-radius: 11px; }
.po-slot em { font-size: 12px; }
.po-pool { position: static; gap: 7px; padding: 8px 4px; margin-bottom: 10px; min-height: 0; }
.po-chip { padding: 8px 11px; font-size: 15px; border-radius: 11px; box-shadow: 3px 3px 0 #000; }
.po-chip.in { padding: 6px 10px; font-size: 15px; }
.po-ok { margin-top: 0; }

/* Bataille spatiale : tirs et vaisseaux détruits */

/* Petit Bac : catégories au hasard / ajoutées à la main */
.pbs-tools { display: flex; justify-content: center; margin-bottom: 10px; }
.pbs-add { display: flex; gap: 8px; margin-bottom: 12px; }
.pbs-add .input { flex: 1; min-width: 0; }

/* Make it Meme : un seul texte, bouton de l'admin */
.mm-reroll { display: block; margin: -4px auto 12px; }
.g-text textarea.input { resize: none; font: inherit; }

/* outils de l'admin (écran des jeux) : minuteur et roue */
.pk-tools { margin-top: 12px; }
.pk-tools .btn { flex: 1; }
.pk-timer.on { background: #ffd23a; color: #000; font-variant-numeric: tabular-nums; }
.tm-sheet h3 { margin: 0 0 12px; }
.tm-sheet h4 { margin: 16px 0 8px; font-size: 14px; font-weight: 600; }
.tm-run { display: flex; flex-direction: column; gap: 10px; align-items: stretch; }
.tm-left { font: 800 44px/1 'Orbitron', 'Inter', sans-serif; text-align: center; font-variant-numeric: tabular-nums; }
.tm-presets { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.chip-btn { padding: 10px 4px; border-radius: 10px; border: 2px solid rgba(255,255,255,.15); background: rgba(255,255,255,.06); color: inherit; font: 700 15px 'Inter', sans-serif; }
.chip-btn.on { background: var(--me, #ffd23a); color: #000; border-color: #000; }
.tm-custom { display: flex; gap: 10px; margin: 14px 0; }
.tm-custom label { flex: 1; display: flex; align-items: center; gap: 6px; }
.tm-custom .input { text-align: center; font-size: 22px; font-weight: 800; }
.tm-go { width: 100%; }

/* J'ai déjà / Je n'ai jamais */
.jm-q { padding: 18px 18px 20px; border-radius: 22px; background: #1a1230; border: 4px solid #000; box-shadow: 6px 6px 0 #000; text-align: center; }
.jm-q small { display: block; font: 800 15px 'Inter', sans-serif; color: #ff9ab8; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; }
.jm-q b { font: 900 23px/1.25 'Inter', sans-serif; color: #fff; }
.jm-btns { display: grid; grid-template-columns: 1fr; gap: 14px; margin: 18px 0; }
.jm-b { min-height: 22vh; border-radius: 22px; border: 4px solid #000; box-shadow: 5px 5px 0 #000; color: #fff; font: 900 22px/1.2 'Inter', sans-serif; text-shadow: 2px 2px 0 rgba(0,0,0,.5); transition: transform .15s, opacity .2s; }
.jm-b.yes { background: #ff4d7d; } .jm-b.no { background: #2fa3e8; }
.jm-b.on { box-shadow: 0 0 0 5px #fff, 5px 5px 0 #000; transform: scale(1.03); }
.jm-b.off { opacity: .35; }
.jm-bet { padding: 14px; border-radius: 18px; background: rgba(255,255,255,.06); border: 2px solid rgba(255,255,255,.12); }
.jm-bt { font: 800 16px 'Inter', sans-serif; margin-bottom: 10px; text-align: center; }
.jm-bt small { font-weight: 500; opacity: .7; }
.jm-nums { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.jm-n { width: 46px; height: 46px; border-radius: 12px; border: 3px solid #000; background: #2a2440; color: #fff; font: 900 20px 'Inter', sans-serif; box-shadow: 3px 3px 0 #000; }
.jm-n.on { background: #ffd23a; color: #000; }
.jm-ok { text-align: center; margin-top: 12px; font-size: 14px; }

/* Qui est-ce ? */
.qe-me { display: flex; align-items: center; gap: 14px; padding: 10px; border-radius: 18px; background: #1a1230; border: 4px solid #000; box-shadow: 5px 5px 0 #000; }
.qe-me img { width: 74px; height: 74px; border-radius: 14px; object-fit: cover; object-position: 50% 22%; border: 3px solid #000; }
.qe-me small { display: block; font: 700 13px 'Inter', sans-serif; color: #ffd23a; text-transform: uppercase; letter-spacing: 1px; }
.qe-me b { font: 900 22px/1.15 'Inter', sans-serif; }
.qe-myst .qe-me img { width: 120px; height: 120px; }
.qe-myst .qe-me b { font-size: 28px; }
.qe-hint { text-align: center; margin: 12px 0 8px; opacity: .8; font-size: 14px; }
.qe-ans { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 10px 0; }
.qe-a { min-height: 80px; border-radius: 18px; border: 4px solid #000; box-shadow: 4px 4px 0 #000; font: 900 30px 'Inter', sans-serif; color: #fff; text-shadow: 2px 2px 0 rgba(0,0,0,.4); }
.qe-a.oui { background: #22c55e; } .qe-a.non { background: #ef4444; }
.qe-a.nsp { grid-column: 1 / -1; min-height: 46px; font-size: 17px; background: #5b5675; }
.qe-a:active { transform: scale(.96); }
.qe-myst .qe-ans { margin-top: 16px; } .qe-myst .qe-a { min-height: 130px; font-size: 40px; }
.qe-myst .qe-grid { display: none; }
.qe-cnt { text-align: center; font-size: 14px; margin: 8px 0; opacity: .9; }
.qe-l.oui { color: #22c55e; } .qe-l.non { color: #ef4444; }
.qe-st { margin: 10px 0 4px; padding: 10px 12px; border-radius: 14px; text-align: center; background: rgba(255,255,255,.07); font: 700 16px/1.3 'Inter', sans-serif; }
.qe-st.go { background: #ffd23a; color: #000; } .qe-st.bad { background: #5a1520; }
.qe-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 8px 0 12px; padding-bottom: 70px; }
.qe-c { position: relative; padding: 0; border: 3px solid #000; border-radius: 12px; overflow: hidden; background: #222; aspect-ratio: 3 / 4; transition: transform .2s, filter .2s, opacity .2s; }
.qe-c img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; display: block; }
.qe-c span { position: absolute; left: 0; right: 0; bottom: 0; padding: 10px 2px 3px; font: 700 10.5px/1.1 'Inter', sans-serif; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.85)); }
.qe-c.off { filter: grayscale(1) brightness(.35); transform: scale(.9); }
.qe-c.wrong::after, .qe-c.off .qe-x::after { content: '✕'; position: absolute; inset: 0; display: grid; place-items: center; font: 900 46px 'Inter', sans-serif; color: #ff3b47; text-shadow: 2px 2px 0 #000; }
.qe-c.wrong { filter: grayscale(1) brightness(.5); }
.qe-c.mine { outline: 4px solid #ffd23a; outline-offset: -4px; }
.qe-proposing .qe-c:not(.off):not(.wrong) { animation: qe-wiggle .6s ease-in-out infinite alternate; border-color: #ffd23a; }
@keyframes qe-wiggle { from { transform: rotate(-2deg); } to { transform: rotate(2deg); } }
.qe-bar { position: sticky; bottom: 30px; margin: 0 64px; z-index: 3; } /* centré (les boutons flottants sont à droite) */
.qe-bar .btn { width: 100%; white-space: nowrap; }
.qe-bar .btn-row .btn { width: auto; flex: 1; }

/* Spaceship knockout : visée */
.ko-tip { text-align: center; font: 800 17px/1.3 'Inter', sans-serif; margin: 6px 0 12px; }
.ko-wrap { display: flex; justify-content: center; }
.ko-cv { touch-action: none; border-radius: 50%; background: radial-gradient(circle, #121628 60%, transparent 71%); }
.ko-st { text-align: center; margin-top: 14px; display: flex; flex-direction: column; gap: 4px; }
.ko-st b { font: 900 20px/1.2 'Inter', sans-serif; color: #fff; }
.ko-st small { font: 700 15px/1.3 'Inter', sans-serif; color: #aab0cc; }
.ko-st.done b { color: #7cf08a; }
.ko-ok { display: block; width: 100%; max-width: 360px; margin: 14px auto 0; }

.pk-fam { display: block; font: 800 11px 'Inter', sans-serif; text-transform: uppercase; letter-spacing: 1.5px; color: var(--me, #ffd23a); margin-bottom: 3px; }

/* réglages du jeu par l'admin pendant « Prêt » */
.rd-pre { margin: 6px 0 14px; text-align: left; }
.rd-pre-h { font-weight: 800; margin-bottom: 8px; }
button.chip { border: 0; background: none; padding: 0; font: inherit; color: inherit; }
button.chip.on span { background: var(--accent); border-color: transparent; color: #fff; }

.gv-fam { grid-column: 1 / -1; margin: 10px 2px 0; font: 800 13px 'Inter', sans-serif; letter-spacing: .08em; text-transform: uppercase; color: #f5b83d; }
.gv-fam:first-child { margin-top: 0; }
body.drawing #gear-fab, body.drawing #chat-fab { display: none !important; }

/* choix du jeu (admin) : titres de famille dans la roue */
.pk-item.pk-fam-row { font-size: 12px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-2, #9aa3b8); }

/* Petit Bac (admin) : réponses en double, bouton « = » pour lier deux réponses */
.fl-cell { display: flex; gap: 6px; align-items: stretch; }
.fl-cell .fl-a { flex: 1; min-width: 0; }
.fl-a.dup { box-shadow: inset 0 0 0 3px #f5b83d; }
.fl-eq { flex: none; width: 44px; border-radius: 12px; border: 2px solid #000; background: #1d2440; color: #fff; font: 900 22px 'Inter', sans-serif; }
.fl-eq.on { background: #f5b83d; color: #000; }
.fl-eq.arm { background: #fff; color: #000; outline: 3px solid #f5b83d; }


/* ouvert depuis le raccourci de l'écran d'accueil (détecté tout seul) : on profite de la hauteur gagnée */
body.homescreen #app { min-height: 100dvh; }
body.homescreen .pad { min-height: 70dvh; }
body.homescreen .rx-pad { min-height: 72dvh; }
body.homescreen .tp-opt { min-height: 31dvh; font-size: 27px; }
body.homescreen .jm-b { min-height: 27dvh; font-size: 25px; }
body.homescreen .g-num-img { max-height: 40dvh; }
body.homescreen .so-q.big { margin: 9dvh 0; font-size: 34px; }
body.homescreen .so-prod img { max-height: 42dvh; }

/* Wavelength : extrêmes longs en plus petit, sur deux lignes au besoin */
.on-ends { gap: 12px; }
.on-ends span { max-width: 48%; line-height: 1.15; overflow-wrap: anywhere; }
.on-ends span:last-child { text-align: right; }
.on-ends span.s { font-size: 13px; }
.on-ends span.xs { font-size: 11px; }

/* mots à deviner (Dessine-moi ça) : un mot ne se coupe jamais */
.g-hint .hw, .hint-letters .hw { white-space: nowrap; display: inline-block; margin: 0 0.3em; }
.g-hint { overflow-wrap: normal; word-break: normal; text-align: center; }

/* Skyjo : la carte choisie bien visible (contour épais), même en mode « retourner » */
.sk-grid .sk-cell.sel .sky, .sk-grid.flipmode .sk-cell.sel .sky.hid { transform: translateY(-8px) scale(1.1) !important; box-shadow: 0 0 0 4px #000, 0 0 0 9px #ffd23a, 0 0 26px 6px rgba(255, 210, 58, 0.7) !important; opacity: 1 !important; z-index: 2; position: relative; }

/* Make it Meme (téléphone) : légende dans un bandeau blanc au-dessus de l'image */
.g-meme { display: flex; flex-direction: column; aspect-ratio: auto; }
.g-meme img { flex: 1; min-height: 0; height: auto; max-height: 46dvh; }
.g-meme .mm-top { position: static; order: -1; padding: 0.35em 0.5em; background: #fff; color: #111; text-transform: none; font-family: 'Inter', sans-serif; font-weight: 800; text-shadow: none; -webkit-text-stroke: 0; line-height: 1.15; }
.g-meme .mm-top:empty { display: none; }
/* envoi refusé (réponse hors liste…) : le formulaire tremble */
.g-text.shake { animation: g-shake 0.4s ease; }
@keyframes g-shake { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }

/* Petit bac : catégories par thème */
.pbs-chosen { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-bottom: 12px; min-height: 30px; }
.pbs-chosen .muted { margin: 4px 0; font-size: 14px; }
.pbs-chip { padding: 7px 11px; border-radius: 999px; border: 2px solid #000; background: #f5b83d; color: #111; font: 700 14px 'Inter', sans-serif; box-shadow: 2px 2px 0 #000; }
.pbs-groups { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.pbs-g { background: #10162a; border: 2px solid #000; border-radius: 14px; box-shadow: 3px 3px 0 #000; }
.pbs-g summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px; font: 800 17px 'Inter', sans-serif; color: #fff; cursor: pointer; }
.pbs-g summary::-webkit-details-marker { display: none; }
.pbs-g summary::after { content: '▸'; color: #f5b83d; transition: transform .15s; }
.pbs-g[open] summary::after { transform: rotate(90deg); }
.pbs-g summary span { flex: 1; }
.pbs-g summary em { font-style: normal; color: #f5b83d; font-size: 15px; }
.pbs-g .pbs-list { padding: 0 10px 12px; margin: 0; }

.g-notice { margin: 12px 0 0; padding: 12px 14px; border-radius: 14px; text-align: center; font-weight: 700; }

/* Juste panier : 3 produits */
.g-num-imgs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.g-num-imgs img { width: 100%; aspect-ratio: 1; object-fit: contain; background: #fff; border: 2px solid #000; border-radius: 12px; padding: 4px; }

/* écran d'attente : ma place au classement */
.g-rank { margin: 14px auto 0; width: fit-content; padding: 8px 16px; border-radius: 99px; background: #10162a; border: 2px solid #000; box-shadow: 2px 2px 0 #000; font-weight: 800; font-size: 16px; color: #f5b83d; text-align: center; }

/* Qui est-ce : l'admin signale un visage inconnu */
.qe-who { display: inline-flex; align-items: center; gap: 6px; vertical-align: middle; } .qe-who b { color: var(--c); } .qe-who .avatar { width: 30px; height: 30px; }
.qe-reporting .qe-c { outline: 3px dashed #ff5a6e; outline-offset: -3px; }


/* duel de gorgées : gros bouton réflexe */
.sd-tap { width: 100%; height: 62vh; border-radius: 28px; border: 4px solid #000; box-shadow: 6px 6px 0 #000; background: #b91c1c; color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; touch-action: manipulation; -webkit-user-select: none; user-select: none; }
.sd-tap b { font: 900 48px 'Inter', sans-serif; }
.sd-tap small { font-size: 16px; opacity: .85; padding: 0 20px; }
.sd-tap.go { background: #16a34a; }
.sd-tap:disabled { filter: brightness(.7); }

/* Chronologie : repères « plus ancien / plus récent » */
.po-end { margin: 4px 0; text-align: center; font-weight: 800; color: #f5b83d; font-size: 15px; }

/* Chronologie : mes réponses au moment de la révélation */
.chv { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.chv-i { display: grid; grid-template-columns: 28px 1fr auto; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 14px; background: #10162a; border: 3px solid; box-shadow: 2px 2px 0 #000; }
.chv-i.ok { border-color: #22c55e; } .chv-i.ko { border-color: #ef4444; }
.chv-i b { font-weight: 900; color: #f5b83d; }
.chv-i span { font-weight: 700; line-height: 1.2; }
.chv-i em { font-style: normal; font-weight: 800; font-size: 14px; opacity: .8; }

/* joueur de couleur claire : texte foncé sur ses boutons */
body.me-light .btn.primary { color: #111 !important; text-shadow: none !important; }

/* Petits vaisseaux : le dé (comme sur la télé) */
.g-die { width: 110px; height: 110px; margin: 4px auto 14px; padding: 14px; display: grid; grid-template: repeat(3, 1fr) / repeat(3, 1fr); place-items: center; border-radius: 22px; background: #fff; border: 5px solid #000; box-shadow: 6px 6px 0 #000, 0 0 0 5px var(--me, #f5b83d) inset; }
.g-die i { width: 20px; height: 20px; border-radius: 50%; background: #111; }
.g-die.r { animation: g-die-roll 0.6s cubic-bezier(.2, 1.2, .4, 1); }
.g-die.idle { opacity: 0.5; }
@keyframes g-die-roll { 0% { transform: rotate(-200deg) scale(0.4); } 70% { transform: rotate(15deg) scale(1.1); } }

/* Space Party : « Avancer » (admin), badge « sans points » */
.spo-adv { width: 100%; min-height: 70px; font-size: 22px; margin-top: 14px; }
.spo-safe { display: inline-block; margin: 4px auto 0; padding: 3px 12px; border-radius: 99px; background: #5fc8ff; color: #04202e; border: 2px solid #000; font-style: normal; font-weight: 900; font-size: 14px; }

/* ⏹ arrêter le jeu : 3 choix */
.stop-sheet { display: flex; flex-direction: column; gap: 12px; padding-bottom: 8px; }
.stop-sheet h3 { text-align: center; margin: 4px 0 6px; }
.stop-sheet .btn { width: 100%; min-height: 58px; font-size: 18px; }

/* Space Party : looping du vaisseau sur la carte */
.spo-loop { width: 100%; min-height: 58px; font-size: 19px; margin-top: 12px; }

/* haut de l'écran pendant un jeu : planète, nom du jeu, manche */
.tb-game { display: flex; align-items: center; gap: 8px; min-width: 0; margin-left: auto; }
.tb-game:empty { display: none; }
.tbg-p .p2 { --size: 36px; }
.tbg-t { display: flex; flex-direction: column; min-width: 0; line-height: 1.1; text-align: right; }
.tbg-t b { font-size: 15px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 150px; }
.tbg-t small { font-size: 12px; color: var(--text-2); font-weight: 700; }

/* jamais un mot tout seul sur la dernière ligne (en plus des espaces insécables posés par esc) */
h1, h2, h3, h4, p, b, small, em, span, li, .card, button { text-wrap: pretty; }

/* Space Party : arrêter (3 choix) */
.spo-confirm { position: fixed; inset: 0; z-index: 400; display: grid; place-items: center; padding: 20px; background: rgba(4, 3, 16, 0.78); }
.spo-confirm[hidden] { display: none; }
.spo-cf-in { width: 100%; max-width: 420px; display: flex; flex-direction: column; gap: 12px; padding: 22px; border-radius: 22px; background: #151b2c; border: 3px solid #000; box-shadow: 6px 6px 0 #000; }
.spo-cf-in h3 { margin: 0 0 6px; text-align: center; }
.spo-cf-in .btn { width: 100%; min-height: 56px; font-size: 17px; }

/* réponses déjà écrites sur la télé : 4 gros boutons de couleur (lettre + forme, mêmes couleurs que la télé) */
.g-padh { margin: 4px 0 12px; text-align: center; font: 800 20px 'Inter', sans-serif; color: #c9c3ee; }
.g-pad { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; flex: 1; min-height: 56dvh; }
.g-pad.n2 { grid-template-columns: 1fr; }
.g-pad.n3 .g-pb:last-child { grid-column: span 2; }
.g-pb { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; border: 4px solid #000; border-radius: 22px; box-shadow: 6px 6px 0 #000; color: #fff; transition: transform 0.12s, opacity 0.2s, filter 0.2s; }
.g-pb i { font-style: normal; font-size: 54px; line-height: 1; text-shadow: 3px 3px 0 rgba(0, 0, 0, 0.35); }
.g-pb b { font: 900 40px 'Inter', sans-serif; text-shadow: 3px 3px 0 rgba(0, 0, 0, 0.35); }
.g-pb.c0 { background: #e5293a; } .g-pb.c1 { background: #1f6fd1; } .g-pb.c2 { background: #e8a90c; } .g-pb.c3 { background: #2fa84f; }
.g-pb:active { transform: scale(0.96); }
.g-pb.on { outline: 6px solid #fff; outline-offset: -12px; transform: scale(1.02); }
.g-pb.off { opacity: 0.35; filter: grayscale(0.6); }
.tp-opt .tp-big { display: block; font: 900 40px 'Inter', sans-serif; }
.tp-opt small { display: block; margin-top: 6px; font: 700 16px 'Inter', sans-serif; opacity: 0.85; }

/* Blackjack / Poker sur le téléphone */
.ca { display: flex; flex-direction: column; gap: 10px; align-items: center; text-align: center; }
.ca-top { display: flex; gap: 14px; font: 800 18px 'Inter', sans-serif; color: #ffd23a; }
.ca-tbl { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 12px; border-radius: 16px; background: radial-gradient(ellipse at center, #1d5c3d, #0f3323); border: 3px solid #000; --pcw: 46px; }
.ca-tbl small { font: 800 13px 'Inter', sans-serif; color: #c9f5d9; text-transform: uppercase; letter-spacing: 1px; }
.ca h2 { margin: 4px 0 0; font: 900 26px 'Inter', sans-serif; }
.ca-sub { margin: 0; color: #c9c3ee; font: 700 16px 'Inter', sans-serif; }
.ca-mine { --pcw: 96px; padding: 6px 0; }
.ca.mine h2 { color: #ffd23a; }
.ca.good h2 { color: #3cd36e; } .ca.bad h2 { color: #ff5a6a; }
.ca.dim .ca-mine { opacity: 0.4; filter: grayscale(0.7); }
.ca-btns { width: 100%; }
.ca-btns .btn { width: 100%; }

/* TRON : croix directionnelle (flèches dessinées en CSS, rien à sélectionner) */
.trp { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent; }
.trp { display: flex; flex-direction: column; align-items: center; gap: 10px; height: calc(100dvh - 120px); }
.trp-st { width: 60px; height: 10px; border-radius: 99px; background: var(--pc); box-shadow: 0 0 16px var(--pc); }
.trp-st.dead { background: #39405a; box-shadow: none; }
.trp-pad { width: min(78vw, 300px); aspect-ratio: 1; margin-top: auto; display: grid; grid-template: 1fr 1fr 1fr / 1fr 1fr 1fr; gap: 6px; }
.trp-boost { position: relative; width: 92px; height: 92px; margin: 14px 0 auto; border-radius: 50%; border: 4px solid #000; background: conic-gradient(#ffd23a calc(var(--k, 1) * 360deg), #39405a 0); touch-action: none; }
.trp-boost::after { content: ''; position: absolute; inset: 20%; border-radius: 50%; background: #141829; box-shadow: inset 0 0 0 4px #ffd23a; }
.trp-boost.go::after { background: #ffd23a; }
.trp-b { border-radius: 18px; border: 4px solid #000; background: #0b1426; box-shadow: 0 0 0 3px var(--pc) inset, 5px 5px 0 #000; display: grid; place-items: center; touch-action: none; }
.trp-b.u { grid-area: 1 / 2; } .trp-b.l { grid-area: 2 / 1; } .trp-b.r { grid-area: 2 / 3; } .trp-b.dn { grid-area: 3 / 2; }
.trp-b i { width: 0; height: 0; border: 20px solid transparent; }
.trp-b.u i { border-bottom: 28px solid var(--pc); margin-top: -20px; }
.trp-b.dn i { border-top: 28px solid var(--pc); margin-bottom: -20px; }
.trp-b.l i { border-right: 28px solid var(--pc); margin-left: -20px; }
.trp-b.r i { border-left: 28px solid var(--pc); margin-right: -20px; }
.trp-b.on { animation: trp-on 0.22s ease; }
@keyframes trp-on { 40% { background: var(--pc); transform: scale(0.93); } }
.trp.dead .trp-pad { opacity: 0.3; }



/* Blackjack / Poker : écrans du téléphone (gros boutons ronds, barre de mise) */
.cg { display: flex; flex-direction: column; align-items: center; gap: 10px; -webkit-user-select: none; user-select: none; }
.cg-bank { font: 800 18px 'Inter', sans-serif; color: #ffd23a; }
.cg-hand { --pcw: 92px; justify-content: center; padding: 8px 0; }
.cg-hand .pc + .pc { margin-left: -28px; }
.cg-hand.dim { opacity: 0.35; filter: grayscale(0.7); }
.cg-board { --pcw: 46px; justify-content: center; min-height: 0; }
.cg-hn { font: 800 16px 'Inter', sans-serif; color: #9feaff; }
.cg-val { min-width: 90px; padding: 4px 16px; border-radius: 99px; background: #fff; color: #000; border: 3px solid #000; font: 900 34px 'Orbitron', sans-serif; text-align: center; }
.cg-val.bust { background: #e5293a; color: #fff; } .cg-val.bj { background: #ffd23a; font-size: 22px; }
.cg-res { font: 900 54px 'Orbitron', sans-serif; color: #fff; text-shadow: 3px 3px 0 #000; }
.cg-res.up { color: #3cd36e; } .cg-res.down { color: #ff5a6a; }
.cg-wait { margin: 6px 0 0; font: 700 18px 'Inter', sans-serif; color: #c9c3ee; }
.cg-time { width: 100%; height: 10px; border-radius: 99px; background: #232a4d; overflow: hidden; }
.cg-time i { display: block; height: 100%; background: linear-gradient(90deg, #ff3b4e, #ffd23a); transform-origin: left; transform: scaleX(var(--k)); animation: cg-time linear forwards; }
@keyframes cg-time { to { transform: scaleX(0); } }
.cg-btns { display: flex; justify-content: center; gap: 18px; margin-top: 4px; }
.cg-r { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; width: 92px; height: 92px; border-radius: 50%; border: 4px solid #000; box-shadow: 0 5px 0 #000; color: #fff; touch-action: manipulation; }
.cg-r i { font-style: normal; font-size: 34px; line-height: 1; }
.cg-r small { font: 900 12px 'Inter', sans-serif; }
.cg-r.hit, .cg-r.call { background: #1f9a50; } .cg-r.stand { background: #2c5fd1; } .cg-r.dbl, .cg-r.raise { background: #e8a90c; color: #1a1200; } .cg-r.fold { background: #b8202f; }
.cg-r:active { transform: translateY(4px); box-shadow: 0 1px 0 #000; }
.cg-r:disabled { opacity: 0.5; }
.cg-amt { display: flex; flex-direction: column; align-items: center; }
.cg-amt b { font: 900 46px 'Orbitron', sans-serif; color: #ffd23a; line-height: 1; } .cg-amt small { font: 800 13px 'Inter', sans-serif; color: #c9c3ee; text-transform: uppercase; }
.cg-range { width: 100%; height: 44px; accent-color: #ffd23a; }
.cg-marks { width: 100%; display: flex; justify-content: space-between; font: 800 13px 'Inter', sans-serif; color: #aab0cc; margin-top: -6px; }
.cg-ticks { position: relative; width: calc(100% - 24px); height: 30px; margin-top: -8px; }
.cg-tick { position: absolute; transform: translateX(-50%); padding: 4px 8px; border-radius: 99px; background: #232a4d; border: 2px solid #000; color: #fff; font: 800 12px 'Inter', sans-serif; white-space: nowrap; }
.cg-go { width: 110px; height: 110px; border-radius: 50%; border: 4px solid #000; background: #1f9a50; color: #fff; box-shadow: 0 6px 0 #000; font-size: 54px; }
.cg-go i { font-style: normal; }


/* Undercover : cacher son mot */
.g-hide { margin-top: 12px; }
.g-word-x { display: none; font-size: 26px; font-weight: 800; color: var(--text-3); margin-top: 6px; letter-spacing: 0.3em; }
.g-secret.hid .g-word { display: none; } .g-secret.hid .g-word-x { display: block; }
/* jeu sans points : badge sur l'écran « Prêt ? » */
.rd-nopts { display: inline-block; margin: 2px 0 6px; padding: 4px 14px; border-radius: 10px; background: #0b2a3d; border: 2px solid #5fc8ff; color: #9fe0ff; font-weight: 800; font-size: 15px; }

/* Loup Garou : cartes de rôle centrées, illustration en pleine carte (le texte par-dessus, en bas) */
.lgc { aspect-ratio: 2 / 3; }
.lgc-front { justify-content: flex-end !important; padding: 0 0 12px !important; color: #fff !important; background: #0d0b16 !important; }
.lgc-front .lgc-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 20%; border: 0; }
.lgc-front::after { content: ''; position: absolute; inset: 45% 0 0; background: linear-gradient(180deg, rgba(10, 8, 20, 0), rgba(10, 8, 20, 0.92) 45%); pointer-events: none; }
.lgc-front > :not(.lgc-art) { position: relative; z-index: 1; }
.lgc-front .lgc-name { color: #f5d38a; text-shadow: 0 2px 0 #000; }
.lgc-front p { color: #eee8ff; text-shadow: 0 1px 2px #000; }

/* Jeu de la pièce : choisir, puis lancer la pièce vers le haut */
.pcf { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; padding-top: 6px; user-select: none; -webkit-user-select: none; }
.pcf h2 { margin: 0; }
.pcf-pick { display: flex; gap: 12px; width: 100%; }
.pcf-b { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 8px; border-radius: 18px; border: 3px solid #000; background: var(--card, #161a2e); color: #fff; font: 800 18px 'Inter', sans-serif; box-shadow: 4px 4px 0 #000; }
.pcf-b img { width: 64px; height: 64px; }
.pcf-b.on { background: #f5b83d; color: #241800; transform: translateY(2px); box-shadow: 2px 2px 0 #000; }
.pcf-zone { position: relative; width: 100%; height: 300px; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 10px; }
.pcf-coin { width: 140px; height: 140px; border-radius: 50%; touch-action: none; opacity: 0.35; transition: opacity 0.2s, transform 0.12s; filter: drop-shadow(0 10px 14px rgba(0, 0, 0, 0.6)); }
.pcf-coin img { width: 100%; height: 100%; pointer-events: none; }
.pcf-coin.ready { opacity: 1; animation: pcf-wait 1.4s ease-in-out infinite; }
.pcf-coin.grab { animation: none; transition: none; }
.pcf-coin.fly { animation: pcf-fly 0.9s cubic-bezier(.2, .8, .3, 1) forwards; }
@keyframes pcf-wait { 50% { transform: translateY(-10px); } }
@keyframes pcf-fly { to { transform: translateY(-420px) rotateX(1080deg) scale(0.4); opacity: 0; } }
.pcf-hint { margin: 0; font-weight: 700; color: var(--text-2, #c9c3ee); }

/* Poker : ma combinaison bien visible, la barre de relance seulement après « Relancer », montrer ses cartes */
.cg-hn { font: 900 24px 'Inter', sans-serif !important; color: #241800 !important; background: #ffd23a; padding: 6px 16px; border-radius: 99px; border: 3px solid #000; box-shadow: 3px 3px 0 #000; }
.cg .pc.hl { transform: translateY(-8px); box-shadow: 0 0 0 3px #ffd23a, 0 0 18px #ffd23a; z-index: 1; }
.cg-board.has-core .pc:not(.hl) { filter: brightness(0.55); }
.cg-raise { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.cg-rbtns { display: flex; gap: 10px; width: 100%; margin-top: 4px; } .cg-rbtns .btn { flex: 1; }
.cg-show { margin-top: 8px; }

/* Poker / Blackjack : l'admin arrête la partie */
.cg-stop { display: block; margin: 18px auto 0; background: #2a0d14; border: 2px solid #e5566b; color: #ffb3bd; }
.cg-confirm { position: fixed; inset: 0; z-index: 95; display: grid; place-items: center; padding: 20px; background: rgba(0, 0, 0, 0.75); }
.cg-confirm-box { width: min(92vw, 360px); display: flex; flex-direction: column; gap: 10px; text-align: center; padding: 20px; }
.cg-confirm-box h3 { margin: 0; }

/* classement de la soirée sur le téléphone */
.rk { padding: 14px; } .rk h3 { margin: 0 0 10px; text-align: center; }
.rk-row { display: grid; grid-template-columns: 30px 74px 1fr auto; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 12px; margin-top: 6px; background: rgba(255, 255, 255, 0.05); border-left: 4px solid var(--c); }
.rk-row.me { background: rgba(255, 210, 58, 0.16); box-shadow: inset 0 0 0 2px #ffd23a; }
.rk-row { cursor: pointer; -webkit-tap-highlight-color: transparent; }
.rk-row.sel:not(.me) { background: rgba(255, 255, 255, 0.14); box-shadow: inset 0 0 0 2px var(--c); }
.ms.other h3 { color: var(--c); }
.rk-n { font: 900 20px 'Orbitron', sans-serif; text-align: center; }
.rk-ship { width: 74px; height: 30px; object-fit: contain; }
.rk-name { font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rk-pts { font: 900 18px 'Orbitron', sans-serif; color: #ffd23a; } .rk-pts small { font: 700 11px 'Inter', sans-serif; color: var(--text-2); }

/* Petit Bac : STOP à la couleur du joueur dès que tout est rempli ; mode « = » de l'admin (bouton fixe, réponses marquées en jaune) */
.pb-stop:not([disabled]) { background: var(--pc, #e5293a) !important; color: #fff !important; text-shadow: 2px 2px 0 #000; }
.fl-rows { padding-bottom: 90px; }
.fl-cat { display: flex; flex-wrap: wrap; }
.fl-cat h3 { flex: 1 1 100%; }
.fl-a.mk { background: #f5b83d; border-color: #000; }
.fl-a.mk b, .fl-a.mk small { color: #000; }
.fl-rows.eq .fl-a:not(.mk):not([disabled]) { outline: 2px dashed #f5b83d55; }
.fl-bar { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 40; display: flex; gap: 10px; }
.fl-bar .fl-ok { flex: 1; margin: 0; }
.fl-eqmode { flex: none; width: 64px; border-radius: 14px; border: 3px solid #000; background: #1d2440; color: #fff; font: 900 30px 'Inter', sans-serif; box-shadow: 3px 3px 0 #000; }
.fl-eqmode.on { background: #f5b83d; color: #000; }
.pk-tools { flex-wrap: wrap; }
.pk-tools .btn { flex: 1 1 0; min-width: 0; padding-left: 6px; padding-right: 6px; white-space: nowrap; font-size: 15px; }
.pk-tools .pk-space { flex: 1 1 100%; }
.fl-rows.ro { padding-bottom: 20px; }
.fl-rows.ro .fl-a.empty { opacity: 0.4; }
.fl-rows.ro .fl-a b { overflow-wrap: anywhere; }

/* Uno : plusieurs cartes du même chiffre */
.uno-hand .ucard { position: relative; }
.uno-hand .ucard.sel { transform: translateY(-14px); outline: 4px solid #ffd23a; outline-offset: 2px; filter: none; }
.uno-hand .ucard.sel::after { content: attr(data-n); position: absolute; z-index: 3; top: 4px; right: 4px; width: 26px; height: 26px; border-radius: 50%; background: #ffd23a; color: #000; border: 2px solid #000; font: 900 15px/22px 'Inter', sans-serif; text-align: center; }
.uno-hand .ucard.mate { filter: none; outline: 3px dashed #ffd23a; outline-offset: 2px; }
.uno-combo { position: sticky; bottom: 8px; z-index: 5; display: flex; align-items: center; gap: 8px; padding: 10px; margin: 6px 0; border-radius: 16px; background: #151b2c; border: 3px solid #000; box-shadow: 0 6px 18px rgba(0,0,0,.5); }
.uno-combo[hidden] { display: none; }
.uno-combo span { flex: 1; font: 800 15px/1.2 'Inter', sans-serif; color: #fff; }
.uno-combo .btn { min-height: 44px; padding: 0 14px; }

/* Atterrissage : un seul gros bouton rond, sans texte */
.ld-p { display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ld-btn { position: relative; width: min(78vw, 320px); aspect-ratio: 1; border-radius: 50%; border: 6px solid #000; background: radial-gradient(circle at 50% 40%, #3a4160, #1c2135); box-shadow: 0 10px 0 #000; display: grid; place-items: center; touch-action: manipulation; user-select: none; -webkit-user-select: none; padding: 0; }
.ld-btn i { font-style: normal; pointer-events: none; grid-area: 1 / 1; }
.ld-ic svg { width: 46%; height: auto; display: block; margin: 0 auto; }
.ld-ic { width: 100%; display: grid; place-items: center; }
.ld-ic .f1 { fill: #5c6380; } .ld-ic .f2 { fill: #7c84a6; }
.ld-ok { font: 900 120px/1 'Inter', sans-serif; color: #fff; opacity: 0; }
.ld-btn.go { background: radial-gradient(circle at 50% 38%, #ffb347, #ff5a1a 70%); animation: ld-pulse 0.9s ease-in-out infinite; }
.ld-btn.go .f1 { fill: #fff3c4; } .ld-btn.go .f2 { fill: #ffffff; }
.ld-btn.go .ld-ic svg { animation: ld-flick 0.12s ease-in-out infinite alternate; transform-origin: 50% 90%; }
.ld-btn.go:active { transform: translateY(6px); box-shadow: 0 4px 0 #000; }
.ld-btn.done { background: radial-gradient(circle at 50% 38%, #4ade80, #16803c 70%); }
.ld-btn.done .ld-ic { opacity: 0; } .ld-btn.done .ld-ok { opacity: 1; }
@keyframes ld-pulse { 0%, 100% { box-shadow: 0 10px 0 #000, 0 0 0 0 rgba(255, 140, 40, 0.7); } 50% { box-shadow: 0 10px 0 #000, 0 0 0 22px rgba(255, 140, 40, 0); } }
@keyframes ld-flick { from { transform: scale(1, 0.94); } to { transform: scale(0.96, 1.06); } }

/* Mes stats de la soirée (sous le classement) */
.ms { padding: 14px; margin-top: 12px; } .ms h3 { margin: 0 0 10px; text-align: center; }
.ms-nums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ms-nums div { display: flex; flex-direction: column; align-items: center; padding: 8px 4px; border-radius: 12px; background: rgba(255, 255, 255, 0.05); }
.ms-nums b { font: 900 24px 'Inter', sans-serif; color: #ffd23a; } .ms-nums sup { font-size: 12px; }
.ms-nums small { font: 700 12px 'Inter', sans-serif; color: #aab0cc; }
.ms .spark { width: 100%; height: 60px; margin-top: 10px; }
.ms-row { display: flex; justify-content: space-between; gap: 10px; padding: 8px 2px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); font-size: 14px; }
.ms-row span { color: #aab0cc; } .ms-row b { text-align: right; }
.ms-tr { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.ms-t { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; background: rgba(255, 255, 255, 0.05); }
.ms-t.win { background: rgba(255, 210, 58, 0.14); box-shadow: inset 0 0 0 2px #ffd23a; }
.ms-t i { font-style: normal; font-size: 24px; }
.ms-t b { display: block; font: 900 15px 'Inter', sans-serif; color: #ffd23a; }
.ms-t small { font: 700 13px 'Inter', sans-serif; color: #e4e0fa; }
/* fin de soirée : l'espace plein écran (sous la barre de l'admin) */
.finale { position: fixed; inset: 0; z-index: 30; background: #04050d; }
.finale canvas { width: 100%; height: 100%; display: block; }
/* Chronologie / Priorités : les longs événements passent à la ligne, centrés, sans sortir de la case */
.po-chip { max-width: 100%; min-width: 0; justify-content: center; text-align: center; line-height: 1.2; overflow-wrap: break-word; hyphens: manual; text-wrap: balance; } /* (18/11) mots plus jamais coupés au milieu */
.po-slot .po-chip.in { flex: 1; }
.po-slot > span, .po-slot > em { min-width: 0; }
/* 👥 joueurs de la Space Party (admin) : au-dessus du bouton des paramètres */
.party-fab { bottom: calc(env(safe-area-inset-bottom) + 152px) !important; z-index: 312 !important; }
body.has-react .party-fab { bottom: calc(env(safe-area-inset-bottom) + 220px) !important; }
body.space-open #party-fab { z-index: 312; }
.pp-sheet h3 { margin: 0 0 12px; }
.pp-list { display: flex; flex-direction: column; gap: 8px; }
.pp-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 14px; background: #151b2c; border: 3px solid #000; border-left: 6px solid var(--c); }
.pp-row.off { opacity: 0.5; }
.pp-row.spectator { background: #10131d; }
.pp-nm { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pp-nm b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pp-nm small { opacity: 0.7; }
/* fin de soirée : la barre de l'admin (⏭ Récap, 🏠 Accueil) reste au-dessus de l'espace et des feux d'artifice */
body:has(.finale:not(.back)) #admin-bar:not([hidden]) { position: fixed; top: calc(env(safe-area-inset-top) + 70px); left: 12px; right: 12px; margin: 0; z-index: 35; }
/* jeux sans points : le badge, comme sur la télé */
.gv-np, .pk-np { display: inline-block; padding: 2px 8px; border-radius: 8px; background: #0b2a3d; border: 2px solid #5fc8ff; color: #9fe0ff; font: 800 11px 'Inter', sans-serif; white-space: nowrap; }
.gv-np { margin-top: 2px; }
.pk-np { margin-left: 8px; vertical-align: middle; font-size: 12px; }
/* fin de soirée : sans l'animation d'entrée (qui laissait un calque), la barre de l'admin et ses boutons passent au-dessus de l'espace */
body:has(.finale:not(.back)) .view { animation: none; }
/* (#app formait un calque z-index 1 sous l'espace : la barre de l'admin restait cachée quoi qu'on fasse) */
body:has(.finale:not(.back)) #app { z-index: auto; }
body:has(.finale:not(.back)) .chat-fab { z-index: 37; }

body:has(.finale:not(.back)) .admnav { position: fixed; top: 0; left: 0; right: 0; margin: 0; z-index: 36; }
body:has(.finale:not(.back)) #admin-bar:not([hidden]) { top: calc(env(safe-area-inset-top) + 64px); }
/* croix pour fermer un menu (paramètres du téléphone, joueurs de la Space Party) */
.sheet-x { position: absolute; top: 10px; right: 12px; z-index: 2; width: 38px; height: 38px; border-radius: 50%; border: 2px solid #000; background: #151b2c; color: #fff; font: 900 18px/1 'Inter', sans-serif; box-shadow: 2px 2px 0 #000; display: grid; place-items: center; }
.sheet-x + .sheet-menu, .sheet-x + .pp-sheet { margin-top: 34px; }
/* chat : mon message sur ma couleur claire (jaune, blanc, rose pâle) → texte noir */
body.me-light .msg.mine .b, body.me-light .msg.mine .b .t { color: #111; }
/* admin : supprimer un message */
.msg-del { align-self: center; flex: none; width: 32px; height: 32px; border-radius: 50%; border: 2px solid #000; background: #2a0f16; font-size: 15px; line-height: 1; padding: 0; }
/* écrans de jeu / « Prêt ? » / fin de jeu : centrés verticalement sur le téléphone quand il y a peu de choses
   (le contenu plus long que l'écran part toujours du haut ; la barre de temps reste en haut) */
body:not(.cockpit-on):not(.spec-on) #tab-home:not([hidden]) { position: relative; display: flex; flex-direction: column; justify-content: center; min-height: calc(100dvh - 190px); }
body:not(.cockpit-on):not(.spec-on) #tab-home > #game-timer { position: absolute; top: 0; left: 0; right: 0; margin: 0; }
.g-tb-row:has(.g-undo) { grid-template-columns: 64px 1fr 1.6fr; }
/* ⚙️ → Réglages : retour et titre */
.sheet-back { align-self: flex-start; background: none; border: 0; color: #c9c4ee; font: 800 15px 'Inter', sans-serif; padding: 4px 2px; margin-top: -30px; }
.sheet-h { margin: 0 0 4px; text-align: center; font-size: 20px; }
/* 📊 Mes stats : plein écran sur l'espace du fond */
#stats-ov { position: fixed; inset: 0; z-index: 400; overflow-y: auto; background: radial-gradient(90% 50% at 50% 0%, rgba(80, 50, 170, 0.45), transparent 70%), rgba(5, 6, 15, 0.94); color: #fff; padding: 0 16px calc(env(safe-area-inset-bottom) + 28px); }
#stats-ov[hidden] { display: none; }
body.stats-open { overflow: hidden; }
.stx-top { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 12px; padding: calc(env(safe-area-inset-top) + 12px) 0 10px; background: linear-gradient(#05060f 70%, transparent); font: 900 18px 'Inter', sans-serif; letter-spacing: 0.04em; }
.stx-x { width: 40px; height: 40px; border-radius: 50%; border: 2px solid #000; background: #151b2c; color: #fff; font: 900 18px/1 'Inter', sans-serif; box-shadow: 2px 2px 0 #000; }
.stx-load { text-align: center; opacity: 0.7; margin-top: 40px; }
.stx-hero { position: relative; text-align: center; padding: 6px 0 14px; }
.stx-glow { position: absolute; left: 50%; top: 30px; width: 260px; height: 110px; transform: translateX(-50%); background: radial-gradient(closest-side, var(--c), transparent); opacity: 0.35; filter: blur(8px); }
.stx-ship { position: relative; width: min(280px, 78vw); height: 120px; object-fit: contain; filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.6)); animation: stx-float 4s ease-in-out infinite; }
@keyframes stx-float { 50% { transform: translateY(-6px); } }
body.lite .stx-ship { animation: none; }
.stx-hero h2 { position: relative; margin: 4px 0 2px; font-size: 28px; }
.stx-hero p { position: relative; margin: 0; color: #c9c4ee; font: 700 14px 'Inter', sans-serif; }
.stx-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.stx-tile { background: #151b2c; border: 3px solid #000; border-radius: 16px; box-shadow: 3px 3px 0 #000; padding: 10px 4px 8px; display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 0; }
.stx-tile i { font-style: normal; font-size: 20px; }
.stx-tile b { font: 900 21px 'Inter', sans-serif; color: #ffd23a; white-space: nowrap; }
.stx-tile span { font: 700 12px 'Inter', sans-serif; color: #c9c4ee; }
.stx-card { background: #121729; border: 3px solid #000; border-radius: 18px; box-shadow: 3px 3px 0 #000; padding: 14px; margin-bottom: 12px; }
.stx-card h3 { margin: 0 0 12px; font: 900 13px 'Inter', sans-serif; letter-spacing: 0.08em; text-transform: uppercase; color: #a9a3d6; }
.stx-note { margin: 10px 0 0; text-align: center; color: #c9c4ee; font: 600 13px 'Inter', sans-serif; }
.stx-note b { color: #fff; }
.stx-card h3 + .stx-note { margin: -8px 0 10px; text-align: left; }
.stx-empty { text-align: center; } .stx-empty b { font-size: 40px; } .stx-empty p { color: #c9c4ee; margin: 6px 0 0; }
.stx-rings { display: flex; justify-content: space-around; }
.stx-ring { position: relative; width: 120px; display: flex; flex-direction: column; align-items: center; }
.stx-ring svg { width: 108px; height: 108px; }
.stx-ring-bg { fill: none; stroke: #232a42; stroke-width: 9; }
.stx-ring-fg { fill: none; stroke-width: 9; stroke-linecap: round; }
.stx-ring > b { position: absolute; top: 34px; font: 900 28px 'Inter', sans-serif; }
.stx-ring > b small { font-size: 14px; }
.stx-ring span { font: 800 13px 'Inter', sans-serif; margin-top: 4px; }
.stx-ring em { font: 600 12px 'Inter', sans-serif; font-style: normal; color: #a9a3d6; }
.stx-cols { display: flex; align-items: flex-end; gap: 4px; height: 150px; padding-top: 18px; }
.stx-col { flex: 1; min-width: 0; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; position: relative; }
.stx-col i { position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); font: 800 11px 'Inter', sans-serif; font-style: normal; color: #fff; white-space: nowrap; margin-bottom: 3px; }
.stx-bar { position: relative; width: 100%; max-width: 26px; background: var(--c); border-radius: 4px 4px 0 0; }
.stx-col small { flex: none; height: 26px; margin-top: 4px; font: 700 9px/1.15 'Inter', sans-serif; color: #a9a3d6; text-align: center; }
.stx-hb, .stx-at { display: flex; align-items: center; gap: 10px; padding: 6px 0; }
.stx-hb img { width: 40px; height: 40px; object-fit: contain; flex: none; }
.stx-hb-t { flex: 1; min-width: 0; }
.stx-hb-t b { display: block; font: 800 14px 'Inter', sans-serif; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 4px; }
.stx-hb-track { height: 10px; border-radius: 5px; background: #232a42; overflow: hidden; }
.stx-hb-track > div { height: 100%; border-radius: 0 5px 5px 0; min-width: 4px; }
.stx-hb > span, .stx-at > span { flex: none; font: 900 16px 'Inter', sans-serif; text-align: right; min-width: 44px; display: flex; flex-direction: column; align-items: flex-end; }
.stx-hb > span em { font: 700 11px 'Inter', sans-serif; font-style: normal; color: #ffd23a; }
.stx-at > span small { font: 700 11px 'Inter', sans-serif; color: #a9a3d6; }
.stx-at img { width: 64px; height: 30px; object-fit: contain; flex: none; }
.stx-at-r { flex: none; width: 20px; font: 900 16px 'Inter', sans-serif; color: #a9a3d6; text-align: center; }
.stx-at.me { background: rgba(255, 210, 58, 0.1); border-radius: 12px; box-shadow: inset 0 0 0 2px #ffd23a; padding: 6px 8px; margin: 2px -8px; }
.stx-ships { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.stx-ships > div { display: flex; flex-direction: column; align-items: center; background: #0d1122; border-radius: 12px; padding: 8px; }
.stx-ships img { width: 100%; height: 50px; object-fit: contain; }
.stx-ships b { font: 800 14px 'Inter', sans-serif; margin-top: 4px; }
.stx-ships small { font: 600 12px 'Inter', sans-serif; color: #a9a3d6; }
.stx-sp-row { display: flex; justify-content: space-around; text-align: center; }
.stx-sp-row b { display: block; font: 900 34px 'Inter', sans-serif; color: #ffd23a; }
.stx-sp-row span { font: 700 13px 'Inter', sans-serif; color: #c9c4ee; }
/* Codenames : les colonnes ne s'élargissent plus avec les mots longs (TORNADE, AVALANCHE… sortaient de l'écran à 390 px) */
.cn-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.cn-c { min-width: 0; padding-left: 2px; padding-right: 2px; }
.cn-c { overflow-wrap: normal; word-break: keep-all; font-size: 11px; letter-spacing: -0.03em; }
.cn-c span { max-width: 100%; }
.cn-c.l span { font-size: 9.5px; }
.cn-c.xl span { font-size: 8.5px; }
.mm-reroll small { opacity: 0.75; font-weight: 700; }
.mm-reroll-none { display: block; text-align: center; font-size: 13px; color: var(--text-2, #aaa); }
/* Tapis ! (méga happening) : mes points et ceux des autres avant de miser (16/11) */
.spo-allpts { display: flex; flex-direction: column; gap: 8px; margin: 4px 0 10px; }
.ap-me { display: flex; align-items: baseline; justify-content: center; gap: 10px; padding: 10px 14px; border-radius: 14px; background: rgba(255, 210, 58, 0.14); box-shadow: inset 0 0 0 2px #ffd23a; }
.ap-me span { font-weight: 700; color: #ffd23a; }
.ap-me b { font: 900 30px 'Inter', sans-serif; color: #fff; }
.ap-me small { color: #c9c3ee; font-weight: 700; }
.ap-list { display: grid; grid-template-columns: 1fr 1fr; gap: 5px 8px; }
.ap-list span { display: flex; justify-content: space-between; gap: 6px; padding: 5px 10px; border-radius: 10px; background: rgba(255, 255, 255, 0.06); box-shadow: inset 3px 0 0 var(--c); font-size: 13px; }
.ap-list i { font-style: normal; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ap-list b { font-weight: 900; }

/* trophées : le jeu d'où ils viennent (17/11) */
.ms-t .ms-g { display: block; font: 700 11px 'Inter', sans-serif; font-style: normal; letter-spacing: 0.04em; text-transform: uppercase; opacity: 0.7; }

/* Codenames : mots qu'il reste à trouver à mon équipe */
.cn-left { text-align: center; font-weight: 800; font-size: 17px; margin: -2px 0 8px; color: var(--text-2, #ccc); }
.cn-left b { font: 900 26px 'Orbitron', sans-serif; color: var(--tc); vertical-align: -2px; margin-right: 4px; }

/* Le Meme : noter le meme de la télé */
.mmr { display: flex; flex-direction: column; gap: 12px; }
.mmr-n { text-align: center; font: 900 16px 'Orbitron', sans-serif; color: var(--text-2, #ccc); }
.mmr-img { margin: 0; font-size: 18px; }
.mmr-img img { max-height: 30dvh; }
.mmr-btns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mmr-b { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 14px 4px; border-radius: 16px; border: 3px solid #000; background: #1c2235; color: #fff; box-shadow: 4px 4px 0 #000; font: inherit; transition: transform 0.15s, opacity 0.2s, background 0.2s; }
.mmr-b span { font-size: 40px; line-height: 1; }
.mmr-b small { font-weight: 800; font-size: 15px; }
.mmr-b:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 #000; }
.mmr-btns.picked .mmr-b:not(.on) { opacity: 0.45; }
.mmr-b.on.r3 { background: #2f9e57; } .mmr-b.on.r2 { background: #b8860b; } .mmr-b.on.r1 { background: #b83246; }
.mmr-b.on { transform: scale(1.05); }
.btn.mmr-buddy { display: flex; flex-direction: column; align-items: center; gap: 2px; background: #ffd23a !important; color: #000 !important; font-weight: 900; font-size: 19px; }
.mmr-buddy small { font-weight: 700; font-size: 12px; opacity: 0.75; }
.btn.mmr-buddy:disabled { background: #2a3045 !important; color: #aaa !important; opacity: 0.8 !important; }
.btn.mmr-buddy.here:disabled { background: #ffd23a !important; color: #000 !important; opacity: 1 !important; animation: mmr-glow 1.2s ease-in-out infinite alternate; }
@keyframes mmr-glow { from { box-shadow: 0 0 0 0 rgba(255, 210, 58, 0.6); } to { box-shadow: 0 0 22px 6px rgba(255, 210, 58, 0.6); } }

/* Livechat (veille) */
.sl-head { position: relative; }
.btn.lc-open { display: block; margin: 10px auto 0; min-height: 48px; padding: 0 22px; font-size: 18px; background: #ffd23a !important; color: #000 !important; }
.lc-sheet { position: absolute; inset: 0; z-index: 40; display: flex; align-items: flex-end; justify-content: center; background: rgba(0, 0, 0, 0.6); max-width: none !important; margin: 0 !important; }
.lc-card { width: 100%; max-width: 560px; display: flex; flex-direction: column; gap: 12px; padding: 16px 16px calc(env(safe-area-inset-bottom) + 16px); background: #12162a; border: 3px solid #000; border-radius: 22px 22px 0 0; }
.lc-h { display: flex; align-items: center; justify-content: space-between; font-size: 20px; }
.lc-prev { position: relative; min-height: 180px; border-radius: 14px; overflow: hidden; background: #000; border: 3px solid #000; display: grid; place-items: center; }
.lc-prev img { display: block; max-width: 100%; max-height: 38dvh; }
.lc-empty { text-align: center; color: rgba(255, 255, 255, 0.6); font-weight: 700; padding: 20px; }
.lc-ptxt { position: absolute; left: 3%; right: 3%; top: 3%; text-align: center; font: 400 26px 'Anton', Impact, sans-serif; text-transform: uppercase; color: #fff; -webkit-text-stroke: 2px #000; paint-order: stroke fill; line-height: 1.05; overflow-wrap: break-word; pointer-events: none; }
.lc-pick { flex: 1; display: grid; place-items: center; min-height: 48px; }
.lc-card .btn-row { display: flex; gap: 10px; }

/* Codenames : indice du capitaine */
.cn-clue-f { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }
.cn-nums { display: grid; grid-template-columns: repeat(9, 1fr); gap: 4px; }
.cn-n { height: 40px; border-radius: 10px; border: 3px solid #000; background: #1c2235; color: #fff; font: 900 18px 'Orbitron', sans-serif; }
.cn-n.on { background: #ffd23a; color: #000; }
.cn-notice { margin: 0; text-align: center; color: #ff6b81; font-weight: 800; }
.cn-clue { display: flex; align-items: center; justify-content: center; gap: 10px; margin: -2px 0 10px; font-weight: 700; color: var(--text-2, #ccc); }
.cn-clue b { font: 900 22px 'Inter', sans-serif; text-transform: uppercase; color: #fff; }
.cn-clue em { font: 900 22px 'Orbitron', sans-serif; font-style: normal; color: #000; background: var(--tc); border: 3px solid #000; border-radius: 10px; padding: 0 10px; }

/* Uno : Trou noir sur le téléphone */
.ufx-p.hole b { display: grid; place-items: center; }
.ufx-pbh { display: block; width: 46vw; height: 46vw; max-width: 240px; max-height: 240px; border-radius: 50%; background: radial-gradient(circle, #000 0 30%, rgba(0, 0, 0, 0) 31%), conic-gradient(#ffb347, #b14dff, #3a0d5c, #ff6ad5, #ffb347);
  box-shadow: 0 0 60px #b14dff; animation: ufx-pbh 2.4s cubic-bezier(.4, 0, .2, 1) both; }
@keyframes ufx-pbh { 0% { transform: scale(0) rotate(0); } 25% { transform: scale(1.1) rotate(300deg); } 80% { transform: scale(1) rotate(1000deg); opacity: 1; } 100% { transform: scale(0) rotate(1400deg); opacity: 0; } }
.ufx-p.hole span { color: #d9a6ff; }
.ucard.sucked { animation: uno-sucked 1.1s ease-in both; }
@keyframes uno-sucked { to { transform: translateY(-40vh) scale(0.1) rotate(540deg); opacity: 0; } }
.ufx-p.hole { animation-duration: 2.6s; }

/* Grades de pilote */
.stx-grade .stx-gr-top { display: flex; align-items: center; gap: 12px; }
.stx-grade .stx-gr-top div { flex: 1; display: flex; flex-direction: column; }
.stx-grade small { font-size: 12px; font-weight: 800; text-transform: uppercase; color: rgba(255, 255, 255, 0.55); letter-spacing: 0.05em; }
.stx-grade b { font: 900 22px 'Inter', sans-serif; }
.stx-grade em { font-style: normal; font-weight: 800; color: rgba(255, 255, 255, 0.5); }
.stx-gr-bar { height: 12px; margin: 10px 0 6px; border-radius: 99px; background: #0a0d18; border: 2px solid #000; overflow: hidden; }
.stx-gr-bar div { height: 100%; background: linear-gradient(90deg, #ffd23a, #ff9f1c); }
.stx-gr-how { opacity: 0.6; font-size: 12px; margin-top: 2px; }
.stx-hb-t .grade-ins { vertical-align: -4px; margin-right: 4px; }
.promo-p { position: fixed; inset: 0; z-index: 96; display: grid; place-content: center; justify-items: center; gap: 10px; text-align: center; pointer-events: none; background: rgba(0, 0, 0, 0.7); animation: promo-p 4.2s ease both; }
.promo-p .grade-ins { animation: promo-ins 0.9s cubic-bezier(.2, 1.6, .4, 1) 0.2s both; filter: drop-shadow(0 0 20px rgba(255, 210, 58, 0.7)); }
.promo-p small { font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em; color: #ffd23a; }
.promo-p b { font: 900 34px 'Inter', sans-serif; color: #fff; text-shadow: 3px 3px 0 #000; }
@keyframes promo-p { 0% { opacity: 0; } 8% { opacity: 1; } 88% { opacity: 1; } 100% { opacity: 0; } }
@keyframes promo-ins { from { transform: scale(0) rotate(-200deg); } to { transform: none; } }

/* Livechat v2 : memes de Make it Meme, réactions */
.lc-pick, .btn.lc-memes { flex: 1; display: grid; place-items: center; min-height: 48px; padding: 0 6px; font-size: 15px; }
.lc-bank { display: flex; flex-direction: column; gap: 8px; }
.lc-tabs { display: flex; gap: 8px; }
.lc-tabs .btn { flex: 1; }
.lc-tabs .btn.on { background: #ffd23a !important; color: #000 !important; }
.lc-grid { --th: min(22vw, 118px); display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: var(--th); gap: 6px; height: calc(3 * var(--th) + 12px); overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.lc-th { padding: 0; border-radius: 10px; overflow: hidden; border: 3px solid #000; background: #000; }
.lc-th img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lc-th.on { border-color: #ffd23a; }
.lc-prev img { object-fit: contain; width: auto; height: auto; }
.lc-text { font-size: 16px !important; line-height: 1.3; }
.lc-reacts { display: flex; justify-content: center; gap: 8px; margin-top: 12px; }
.lc-r { font-size: 30px; width: 56px; height: 56px; border-radius: 50%; border: 3px solid #000; background: #1c2235; box-shadow: 3px 3px 0 #000; }
.lc-r.pop { animation: lc-rpop 0.3s ease-out; }
@keyframes lc-rpop { 50% { transform: scale(1.3); } }

/* duel de gorgées : un seul écran */
.sdu { display: flex; flex-direction: column; gap: 12px; }
.sdu-info.small { padding: 8px 12px; }
.sdu-info.small .g-big { font-size: 34px; }
.sdu-info.small h2 { font-size: 18px; }
.sdu .sd-tap { height: 52vh; }

/* fiche d'un joueur (⚙️ de l'admin) */
.pl-sheet { display: flex; flex-direction: column; gap: 8px; }
.pl-sh-h { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.pl-sh-h .avatar { --size: 52px; }
.pl-sh-h div { display: flex; flex-direction: column; }
.pl-sh-h b { font-size: 20px; }
.pl-sh-h small { color: rgba(255, 255, 255, 0.6); font-weight: 700; }
.pl-sheet .btn { min-height: 48px; }

/* stats : face-à-face, jeu maudit */
.stx-h2h { margin-top: 10px; }
.stx-h2h-n { display: flex; justify-content: space-between; align-items: baseline; gap: 6px; font-size: 15px; }
.stx-h2h-n span { opacity: 0.5; }
.stx-h2h-bar { display: flex; height: 10px; border-radius: 99px; overflow: hidden; margin-top: 4px; border: 2px solid #000; background: #0a0d18; }
.stx-h2h-bar i { display: block; height: 100%; }
.stx-cursed .stx-note { margin: 2px 0 0; }

/* Surchauffe : le gros cercle à garder appuyé */
.hx { display: flex; flex-direction: column; align-items: center; gap: 18px; padding-top: 10px; -webkit-user-select: none; user-select: none; }
.hx-top { margin: 0; font: 900 24px 'Inter', sans-serif; text-align: center; }
.hx-sub { margin: 0; font-weight: 700; color: rgba(255, 255, 255, 0.65); text-align: center; }
.hx-btn { position: relative; width: min(78vw, 340px); aspect-ratio: 1; border-radius: 50%; border: 6px solid #000; box-shadow: 6px 6px 0 #000; background: #2a3045; color: #fff; display: grid; place-items: center; overflow: hidden; touch-action: none; -webkit-touch-callout: none; }
.hx-btn b { position: relative; z-index: 1; font: 900 46px 'Orbitron', 'Inter', sans-serif; text-shadow: 3px 3px 0 #000; }
.hx-core { position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle, #ffd23a 0%, #ff7a1a 40%, #b3200e 75%); opacity: 0; transition: opacity 0.3s; }
.hx-btn.s-arm { background: #3a4466; animation: hx-pulse 1s ease-in-out infinite alternate; }
.hx-btn.down .hx-core, .hx-btn.s-armed .hx-core, .hx-btn.s-hold .hx-core { opacity: 1; }
.hx-btn.s-hold .hx-core { animation: hx-heat 0.5s ease-in-out infinite alternate; }
.hx-btn.s-out { background: #1a1f30; filter: grayscale(0.6); }
.hx-btn.s-out b { font-size: 40px; }
@keyframes hx-pulse { to { transform: scale(1.05); box-shadow: 6px 6px 0 #000, 0 0 40px rgba(255, 210, 58, 0.5); } }
@keyframes hx-heat { from { transform: scale(1); filter: brightness(1); } to { transform: scale(1.06); filter: brightness(1.25); } }

/* admin : contenu centré au même endroit que chez les joueurs (--admB = hauteur de ses barres du haut, mesurée) */
body:not(.cockpit-on):not(.spec-on) #tab-home:not([hidden]) { min-height: calc(100dvh - 190px - 2 * var(--admB, 0px)); }

/* ---- jeux du 17/11 ---- */
/* Œil de lynx */
.sy { position: relative; display: flex; justify-content: center; padding-top: 6px; }
.sy-pc { position: relative; width: min(92vw, 420px); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #2a3354, #181e36 65%, #10142a); border: 6px solid #000; box-shadow: 6px 6px 0 #000, inset 0 0 0 3px #3a4670; touch-action: manipulation; -webkit-user-select: none; user-select: none; }
.sy-pc i { position: absolute; font-style: normal; font-size: calc(min(15vw, 66px) * var(--z)); line-height: 1; padding: 6px; transform: translate(-50%, -50%) rotate(var(--r)); cursor: pointer; }
.sy-pc i:active { filter: brightness(1.3); }
.sy-pc.new { animation: sy-new 0.45s cubic-bezier(.2, 1.4, .4, 1); }
.sy-pc.locked { filter: grayscale(1) brightness(0.6); }
@keyframes sy-new { from { transform: scale(0.6) rotate(-60deg); } to { transform: none; } }
.sy-lock { position: absolute; top: 40%; margin: 0; font-size: 90px; pointer-events: none; }
/* La sonnette */
.snb { display: flex; flex-direction: column; align-items: center; gap: 18px; padding-top: 14px; }
.snb-btn { width: min(78vw, 340px); aspect-ratio: 1; border-radius: 50%; border: 6px solid #000; box-shadow: 6px 6px 0 #000; background: radial-gradient(circle at 40% 35%, #ffe27a, #e0a400); font-size: 130px; touch-action: none; -webkit-user-select: none; user-select: none; }
.snb-btn.off { filter: grayscale(0.7) brightness(0.6); }
.snb-btn.ban { filter: grayscale(1) brightness(0.45); }
.snb-btn.hit { animation: sn-hit 0.3s ease-out; }
@keyframes sn-hit { 40% { transform: scale(0.9) rotate(-10deg); } }
.snb-sub { margin: 0; font-weight: 700; color: rgba(255, 255, 255, 0.7); text-align: center; }
/* courbe de mon classement de la soirée */
.rk-line { position: relative; margin: 10px 0 4px; padding-left: 30px; }
.rk-h { display: flex; align-items: baseline; gap: 8px; margin-bottom: 4px; font-size: 13px; font-weight: 700; color: rgba(255, 255, 255, 0.7); }
.rk-h b { font: 900 20px 'Inter', sans-serif; color: #fff; }
.rk-h small { font-size: 12px; color: rgba(255, 255, 255, 0.5); }
.rk-line svg { display: block; width: 100%; height: 90px; overflow: visible; }
.rk-1 { stroke: rgba(255, 210, 58, 0.35); stroke-dasharray: 4 4; stroke-width: 1.5; }
.rk-l { fill: none; stroke: var(--c, #ffd23a); stroke-width: 3; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.rk-d { fill: #fff; stroke: var(--c, #ffd23a); stroke-width: 2; vector-effect: non-scaling-stroke; }
.rk-ax { position: absolute; left: 0; top: 30px; bottom: 4px; display: flex; flex-direction: column; justify-content: space-between; font-size: 11px; font-weight: 800; color: rgba(255, 255, 255, 0.5); }

.stx-gang-n { display: flex; align-items: center; justify-content: center; gap: 12px; text-align: left; }
.stx-gang-n b { font: 900 40px 'Inter', sans-serif; color: #ffd23a; }
.stx-gang-n b { line-height: 1; }
.stx-gang-n span { max-width: 190px; font-size: 14px; font-weight: 700; line-height: 1.25; color: rgba(255, 255, 255, 0.7); }

/* Télépathie */
.mdp { display: flex; flex-direction: column; align-items: center; gap: 16px; padding-top: 6px; }
.mdp-h { margin: 0; font-weight: 800; font-size: 17px; text-align: center; }
.mdp-sub { margin: 0; font-weight: 700; color: rgba(255, 255, 255, 0.7); text-align: center; }

/* ⏰ jeu de l'alarme */
.pk-tools { flex-wrap: wrap; }
.pk-tools .btn { flex: 1 1 30%; }
.al-sheet .btn { width: 100%; margin-top: 10px; }
.al-range { font-size: 26px; font-weight: 900; text-align: center; margin: 4px 0 6px; }
.al-times { display: flex; align-items: center; gap: 10px; margin: 12px 0; }
.al-times .input { flex: 1; min-width: 0; font-size: 22px; text-align: center; }
.al-times span { font-size: 24px; font-weight: 900; }
.al-times label { flex: 1; display: flex; flex-direction: column; gap: 6px; font-weight: 700; }
.al-in { display: block; box-sizing: border-box; width: 100%; min-width: 0; max-width: 100%; font-size: 26px; text-align: center; margin: 8px 0; -webkit-appearance: none; appearance: none; }
.al-sheet { overflow: hidden; }
.al-times .input { box-sizing: border-box; -webkit-appearance: none; appearance: none; }
#al-pill { position: fixed; z-index: 60; left: 12px; bottom: calc(env(safe-area-inset-bottom, 0px) + 18px); display: flex; align-items: center; gap: 8px; padding: 10px 18px 10px 12px; border-radius: 999px; border: 4px solid #000; background: #ffd23a; color: #000; font: 900 18px 'Inter', sans-serif; animation: al-pulse 1.2s ease-out infinite; }
#al-pill i { font-style: normal; font-size: 28px; line-height: 1; animation: al-bell 0.7s ease-in-out infinite; }
@keyframes al-bell { 0%, 50%, 100% { rotate: 0deg; } 15%, 35% { rotate: -18deg; } 25%, 45% { rotate: 18deg; } }
@keyframes al-pulse { 0% { box-shadow: 4px 4px 0 #000, 0 0 0 0 rgba(255, 210, 58, 0.8); } 100% { box-shadow: 4px 4px 0 #000, 0 0 0 20px rgba(255, 210, 58, 0); } }
.al-ring { position: fixed; z-index: 9000; right: 10px; top: calc(env(safe-area-inset-top, 0px) + 84px); max-width: 78vw; display: flex; align-items: center; gap: 10px; padding: 10px 14px 10px 10px; border-radius: 18px; background: #fff; color: #111; border: 4px solid #000; box-shadow: 5px 5px 0 #000; animation: al-in 0.4s cubic-bezier(.2, 1.4, .4, 1) both, al-shake 0.5s ease-in-out 0.4s 3; }
.al-ring.mine { background: #ffd23a; }
.al-ring.out { animation: al-out 0.4s ease-in forwards; }
.al-ring b { display: block; font-size: 16px; }
.al-ring small { display: block; font-size: 14px; font-weight: 800; color: #c0392b; }
.al-av { display: flex; flex: none; } .al-av .avatar { --size: 38px; width: 38px; height: 38px; flex: none; } .al-av .avatar + .avatar { margin-left: -12px; }
.al-txt { min-width: 0; } .al-ring .al-txt span { display: block; font: 900 15px 'Inter', sans-serif; }
@keyframes al-in { from { transform: translateX(120%); } to { transform: none; } }
@keyframes al-out { to { transform: translateX(120%); opacity: 0; } }
@keyframes al-shake { 25% { rotate: -4deg; } 75% { rotate: 4deg; } }
/* « Elian +1 🍺 » en bas de l'écran */
.sip-note { position: fixed; z-index: 9000; left: 50%; bottom: calc(env(safe-area-inset-bottom, 0px) + 16px); transform: translateX(-50%); display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; width: max-content; max-width: 92vw; animation: sip-note 3.6s ease both; pointer-events: none; }
.sip-note span { padding: 6px 12px; border-radius: 999px; background: rgba(10, 12, 24, 0.92); border: 2px solid #ffd23a; color: #fff; font: 700 14px 'Inter', sans-serif; }
@keyframes sip-note { 0% { opacity: 0; translate: 0 30px; } 10%, 85% { opacity: 1; translate: 0 0; } 100% { opacity: 0; } }

/* Télépathie : mes cartes en grand */
.mdp { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.mdp-hand { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; width: 100%; max-width: 440px; }
.mdp-card { --w: 30vw; width: min(var(--w), 150px); aspect-ratio: 3 / 4; border-radius: 16px; border: 4px solid #000; box-shadow: 4px 4px 0 #000; background: radial-gradient(circle at 35% 25%, #3a3070, #1c1840 75%); color: #fff; font: 900 calc(min(var(--w), 150px) * 0.42) 'Orbitron', 'Inter', sans-serif; display: grid; place-items: center; padding: 0; transition: transform 0.15s, opacity 0.2s, filter 0.2s; }
.mdp-hand.n1 .mdp-card { --w: 56vw; width: min(56vw, 240px); font-size: min(24vw, 100px); }
.mdp-hand.n2 .mdp-card { --w: 40vw; }
.mdp-hand.n5 .mdp-card, .mdp-hand.n6 .mdp-card, .mdp-hand.n7 .mdp-card { --w: 26vw; }
.mdp-hand.off .mdp-card { filter: grayscale(1) brightness(0.55); }
.mdp-hand.live .mdp-card { box-shadow: 4px 4px 0 #000, inset 0 0 0 3px #ffd23a; }
.mdp-hand.live .mdp-card:active { transform: translateY(-8px) scale(0.97); }
.mdp-card.gone { transform: translateY(-60px) scale(0.8); opacity: 0; }
.mdp-big { font-size: 90px; }
.mdp-ready { width: min(80vw, 320px); font-size: 22px; }
/* Cinq sur cinq / Œil de lynx : la cloche et la carte au milieu de l'écran du téléphone */
.snb, .sy { position: fixed; left: 0; right: 0; top: 0; bottom: 0; z-index: 5; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 0; pointer-events: none; }
.snb > *, .sy > * { pointer-events: auto; }
.sy-lock { pointer-events: none !important; }

/* tri des jeux (admin) */
.gv-sort { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 0 0 12px; }
.gv-sort { flex-wrap: nowrap; } .gv-sort .chip span { padding: 7px 11px; font-size: 13px; white-space: nowrap; }
/* 👥 joueurs de la Space Party (admin) : petits avatars */
.pp-row .avatar { --size: 40px; width: 40px; height: 40px; flex: none; }

/* (18/11) barre admin en jeu : seulement les boutons, répartis sur toute la largeur */
.ab-btns.ab-full { flex: 1; justify-content: space-between; }
.ab-btns.ab-full .btn { flex: 1; }
/* la barre de temps ne passe plus sous la barre admin ni sur le titre */
body:not(.cockpit-on):not(.spec-on) #tab-home:has(> #game-timer:not(:empty)) { padding-top: 22px; }
.al-x { flex: none; align-self: flex-start; width: 34px; height: 34px; margin: -4px -6px 0 4px; border-radius: 50%; border: 3px solid #000; background: #fff; color: #000; font: 900 16px/1 'Inter', sans-serif; padding: 0; }
.sy-pc i img { display: block; width: 1.15em; height: 1.15em; pointer-events: none; }
.sy-pc i .emo { display: block; width: 1.15em; height: 1.15em; pointer-events: none; background: url(/shared/img/emoji/planche.webp) 0 0 / 800% 800% no-repeat; }

/* (21/11) Codenames : mots bien centrés sur le téléphone */
.cn-c { text-align: center; }
.cn-c span { display: block; width: 100%; text-align: center; hyphens: auto; -webkit-hyphens: auto; }

/* (21/11) zoom des dessins */
.d-zoom { position: absolute; right: 8px; bottom: 8px; z-index: 4; display: flex; gap: 6px; }
.d-zoom button { width: 44px; height: 44px; border-radius: 12px; border: 2px solid #000; background: rgba(20, 24, 40, 0.85); color: #fff; font: 900 26px/1 'Inter', sans-serif; box-shadow: 2px 2px 0 #000; padding: 0; }
.d-zoom button.on { background: #ffd23a; color: #000; }
.d-canvas.panning { cursor: grab; }

/* (23/11) Codenames : l'admin choisit les capitaines en début de partie */
.cn-chg { display: block; margin: 14px auto 0; }
.cn-pick { margin-top: 10px; display: grid; gap: 10px; }
.cn-pick .muted { text-align: center; margin: 0; font-size: 14px; }
.cn-pk-t { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 8px; border-radius: 14px; border: 2px solid var(--tc); }
.cn-pk-t b { width: 100%; color: var(--tc); }
.cn-pk { border: 2px solid #000; border-radius: 10px; padding: 8px 12px; background: #fff; color: #000; font: 800 15px 'Inter', sans-serif; }
.cn-pk.on { background: var(--tc); color: #fff; }

/* (23/11) aperçu du récap */
.rdemo-row { display: flex; gap: 8px; margin-top: 8px; } .rdemo-row .btn { flex: 1; }

/* (23/11) Skyjo : consigne en grand en haut, cartes jouables allumées, les autres grisées */
.sk-banner { text-align: center; font: 800 20px/1.25 'Inter', sans-serif; padding: 12px 14px; margin-bottom: 12px; border-radius: 16px; background: rgba(255, 255, 255, 0.06); color: rgba(255, 255, 255, 0.75); }
.sk-banner.me { background: color-mix(in srgb, #22c55e 22%, transparent); color: #fff; box-shadow: 0 0 0 2px #22c55e inset, 0 0 22px rgba(34, 197, 94, 0.35); }
.sk-banner small { display: block; margin-top: 4px; font-size: 15px; color: #fca5a5; }
.sk-top.can .sk-pile:not(:disabled) .sky, .sk-top.can .sk-pile:not(:disabled) .sk-empty { outline: 4px solid #22c55e; outline-offset: 3px; animation: sk-glow 1.4s ease-in-out infinite; }
@keyframes sk-glow { 50% { outline-color: #86efac; outline-offset: 6px; } }
.sk-top.can .sk-pile:disabled { opacity: 0.3; }
.sk-grid.active .sk-cell.off .sky { filter: grayscale(0.85) brightness(0.45) !important; }
.sk-grid.active .sk-cell.can .sky { outline: 4px solid #22c55e; outline-offset: 2px; }
.sk-grid.active .sk-cell.can.sel .sky { outline-color: #ffd23a; }
.sk-grid.active .sk-cell.off { pointer-events: none; }
.sk-grid.flipmode .sk-cell .sky:not(.hid) { opacity: 1; }
.sk-sum { text-align: center; font-size: 14px; }

/* (24/11) garçon / fille */
.gender-pick { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.gender-pick > span { width: 100%; font-weight: 700; color: var(--text-2); }
.gender-pick .chip-btn { flex: 1 1 0; min-width: 0; white-space: nowrap; padding: 12px 8px; font-size: 16px; }
.gender-pick .chip-btn.on { box-shadow: inset 0 0 0 3px #ffd23a; }
.gender-sheet .gender-pick > span { display: none; }

/* (28/11) The Mind : place d'une carte déjà posée (les autres ne bougent pas) */
.mdp-card.used { visibility: hidden; pointer-events: none; }

/* (28/11) Blackjack : total gagné en vert */
.cg-val.won { background: #2fd27a; color: #000; }

/* (28/11) retour d'un joueur déjà venu : sa carte, « Rejoindre en tant que … », « Modifier le profil » */
.qj-card { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 22px 16px; border-color: var(--c); box-shadow: 0 0 24px color-mix(in srgb, var(--c) 35%, transparent); }
.qj-card .qj-av .avatar { --size: 96px; box-shadow: 0 0 0 4px var(--c), 0 5px 0 4px #000; }
.qj-ship2 { width: min(70vw, 260px); height: auto; filter: drop-shadow(3px 3px 0 rgba(0, 0, 0, 0.55)); }
.qj-name { font-size: 30px; font-weight: 900; color: #fff; }
.qj-btn { width: 100%; font-size: 20px; padding: 16px; margin-top: 4px; }
.qj-edit { width: 100%; margin-top: 8px; }

/* (02/12) l'admin : même cadre Pause, mais les doigts passent à travers (ses boutons ⏸ ▶ ⏭ ⏹ restent utilisables) */
.pause-overlay.adm { pointer-events: none; background: rgba(5, 3, 20, 0.45); }
.pause-overlay.adm .card { pointer-events: none; }

/* (02/12) choix du jeu par l'admin : onglets de familles + grille */
.pk2 { display: flex; flex-direction: column; gap: 10px; padding: 10px; border-radius: 22px; }
.pk2-tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.pk2-tabs::-webkit-scrollbar { display: none; }
.pk2-tabs .chip { flex: none; }
.pk2-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; max-height: 340px; overflow-y: auto; }
.pk2-g { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 4px 10px; border-radius: 16px; background: rgba(255, 255, 255, 0.05); border: 2px solid transparent; color: inherit; font: inherit; }
.pk2-g.on { border-color: var(--me, #ffd23a); background: rgba(255, 210, 58, 0.12); }
.pk2-g.off { opacity: 0.35; }
.pk2-p { display: block; width: 54px; height: 54px; }
.pk2-p { display: grid; place-items: center; } .pk2-p .p2 { --size: 54px; }
.pk2-g b { font-size: 13px; line-height: 1.15; text-align: center; }
.pk2-g small { font-size: 10px; color: #8ff0b0; }
