/* Kiff Kiff — socle commun à toutes les ambiances.
   Ici seulement la mécanique : mise en page, rouleaux, switches, écrans superposés,
   sélecteur d’ambiance. Couleurs, typos et décor vivent dans skins/<ambiance>.css. */
:root {
  color-scheme: light;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
*, *::before, *::after { box-sizing: border-box; }
html { height: 100%; height: 100dvh; }
[hidden] { display: none !important; }
body {
  height: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
  font-size: 16px;
  line-height: 1.35;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior: none;
  overflow: hidden;
  -webkit-user-select: none;
  user-select: none;
}
input { -webkit-user-select: text; user-select: text; }
button { font: inherit; color: inherit; }

/* Décor : rien n’est visible tant qu’une ambiance ne le montre pas */
.grain, .deco > * { display: none; }
.deco { position: fixed; inset: 0; pointer-events: none; z-index: 0; }
.grain { position: fixed; inset: 0; pointer-events: none; z-index: 50; }

/* Lettrage : texte simple par défaut, une ambiance peut le dédoubler */
.ink { position: relative; display: inline-block; }

/* ---------- Mise en page ---------- */
.app {
  position: relative;
  z-index: 1;
  flex: 1;
  min-height: 0;
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  padding-block: 10px 14px;
}
.top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.logo { margin: 0; font-weight: 400; line-height: 1; white-space: nowrap; }
.top-actions { display: flex; align-items: center; gap: 8px; flex: none; }
.sticker { display: inline-flex; align-items: center; justify-content: center; gap: 6px; cursor: pointer; }
.sticker .cross { display: none; }
.sticker[aria-pressed="true"] .cross { display: inline; }
.sticker[aria-pressed="true"] .wave { display: none; }
.hint { margin: 0; min-height: 2.7em; text-wrap: pretty; }
.hint .undo { border: 0; background: none; padding: 0; cursor: pointer; font: inherit; }

/* ---------- Switches ---------- */
.switch {
  flex: none;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 2px 0;
  border: 0;
  background: none;
  text-align: left;
  cursor: pointer;
  transition: opacity .3s;
}
.switch:disabled { cursor: default; }
.track { position: relative; flex: none; width: 76px; height: 42px; border-radius: 999px; }
.knob {
  position: absolute;
  top: 3px; left: 3px;
  width: 30px; height: 30px;
  border-radius: 50%;
  display: grid; place-items: center;
  transition: transform .5s cubic-bezier(.3, 1.6, .45, 1);
}
.knob::after {
  content: "";
  width: 14px; height: 13px;
  clip-path: path("M7 13 C3 9.5 0 7.3 0 4 C0 1.7 1.8 0 3.8 0 C5.2 0 6.3.7 7 1.8 C7.7.7 8.8 0 10.2 0 C12.2 0 14 1.7 14 4 C14 7.3 11 9.5 7 13Z");
  transform: scale(0);
  transition: transform .3s .12s cubic-bezier(.3, 1.8, .5, 1);
}
.switch[aria-checked="true"] .knob { transform: translateX(34px); }
.switch[aria-checked="true"] .knob::after { transform: scale(1); }
.sw-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sw-label { white-space: nowrap; transition: opacity .35s, filter .35s; }
/* Un switch éteint garde son texte, en grisé : on voit ce qu’il dira une fois activé */
.switch[aria-checked="false"] .sw-label { opacity: .4; filter: grayscale(1); }
.switch[aria-checked="false"] .sw-owner { opacity: .75; }
.switch.is-idle .track { opacity: .4; }
.switch.is-waiting .track { opacity: .55; }
/* Le switch qui attend une réponse émet une onde, pour qu’on sache où toucher */
.switch.is-calling .track::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: inherit;
  border: 2.5px solid var(--call-color, currentColor);
  pointer-events: none;
  animation: ping 1.8s cubic-bezier(.2, .7, .3, 1) infinite;
}
@keyframes ping {
  0% { transform: scale(1); opacity: .9; }
  70%, 100% { transform: scale(1.32, 1.6); opacity: 0; }
}
.switch.is-calling[aria-checked="false"] .sw-label { opacity: .55; }

/* ---------- Sélecteur, hasard, rouleaux ---------- */
.press { position: relative; flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 12px; }
.press-row { display: flex; gap: 10px; align-items: center; justify-content: space-between; }
.dir { position: relative; display: flex; align-items: center; min-width: 0; }
.dir button { position: relative; z-index: 0; border: 0; background: none; cursor: pointer; white-space: nowrap; }
.dir.is-locked button { cursor: default; }
.strips { flex: 1; min-height: 0; display: flex; flex-direction: column; }

.reel {
  --item-h: 38px;
  position: relative;
  flex: 1;
  min-height: 66px;
  touch-action: none;
  cursor: grab;
}
.reel:active { cursor: grabbing; }
.reel.is-locked { cursor: not-allowed; }
.reel-strip {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  perspective: 520px;
  transform-style: preserve-3d;
}
.reel-item {
  position: absolute;
  left: 0; right: 0; top: 50%;
  height: var(--item-h);
  margin-top: calc(var(--item-h) / -2);
  display: flex; align-items: center; justify-content: center;
  padding: 0 14px;
  white-space: nowrap;
  backface-visibility: hidden;
  will-change: transform, opacity;
}
.reel-item.is-placeholder { font-style: italic; }
/* Ombrage du tambour, en haut et en bas : chaque ambiance le dessine à sa façon */
.reel-shade { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.stamp {
  position: absolute;
  z-index: 3;
  pointer-events: none;
  transform: rotate(8deg) scale(0);
  transition: transform .35s cubic-bezier(.3, 1.8, .5, 1);
}
.reel.is-changed .stamp { transform: rotate(8deg) scale(1); }
/* Le badge est aussi le bouton « annuler » pendant l’ajustement */
button.stamp { display: inline-flex; align-items: center; justify-content: center; gap: 4px; margin: 0; font: inherit; cursor: default; -webkit-appearance: none; appearance: none; }
.stamp svg { width: 1.05em; height: 1.05em; flex: none; }
body[data-phase="adjust"] .is-changed > .stamp { pointer-events: auto; cursor: pointer; }
body[data-phase="adjust"] .is-changed > .stamp:active { filter: brightness(1.15); }
.stamp:focus-visible { outline: 2px dashed currentColor; outline-offset: 2px; }
/* Pour « que tu me / de te » : le bouton prend la place du dé, absent pendant l’ajustement */
.press-row > .stamp--dir { position: relative; inset: auto; flex: none; display: none; }
.press-row.is-changed > .stamp--dir { display: inline-flex; transform: rotate(8deg) scale(1); }
.reel.is-nope { animation: nope .32s ease; }
@keyframes nope {
  20% { translate: -7px 0; }
  50% { translate: 6px 0; }
  80% { translate: -3px 0; }
}

/* ---------- Boutons ---------- */
.btn {
  position: relative;
  z-index: 0;
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 54px;
  padding: 0 24px;
  border: 0;
  cursor: pointer;
}
.link-btn { border: 0; background: none; padding: 10px; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Écrans superposés ---------- */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  align-items: center;
  overflow-x: hidden;
  overflow-y: auto;
  padding-top: max(24px, env(safe-area-inset-top, 0px));
  padding-bottom: max(24px, env(safe-area-inset-bottom, 0px));
  padding-left: max(18px, env(safe-area-inset-left, 0px));
  padding-right: max(18px, env(safe-area-inset-right, 0px));
}
.sheet { width: 100%; max-width: 400px; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.sheet h2 { margin: 0; font-weight: 400; max-width: 100%; overflow-wrap: break-word; }
.sheet p { margin: 0; text-wrap: pretty; }
.stack { display: flex; flex-direction: column; gap: 14px; width: 100%; align-items: stretch; margin-top: 8px; }
.poster-title { width: 100%; display: flex; flex-direction: column; }
.poster-sub, .poster-rules { align-self: stretch; }
.start-form { width: 100%; display: flex; flex-direction: column; gap: 6px; margin-top: 4px; }
.start-form label { margin-top: 8px; }
.start-form input, .sheet--edit input { width: 100%; min-height: 50px; outline: none; }
.start-form .btn { margin-top: 20px; align-self: stretch; }
.overlay--edit { align-items: end; }
.sheet--edit { position: relative; align-items: stretch; gap: 10px; }
.row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
#confetti { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; }
.overlay--party .sheet { position: relative; z-index: 2; }

/* ---------- Choix de l’ambiance : un lien discret qui ouvre une feuille ---------- */
.skin-link {
  align-self: center;
  margin-top: 6px;
  padding: 10px 12px;
  border: 0;
  background: none;
  color: inherit;
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}
.skin-link span { font-weight: 700; }
.start-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 18px; margin-top: 4px; }
.start-links .skin-link { margin-top: 0; }
.resume-link { align-self: center; margin-top: 2px; font-weight: 700; }
.sheet--skins { gap: 16px; }
.row--end { justify-content: flex-end; }
.skin-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.skin-opt { position: relative; display: flex; flex-direction: column; gap: 6px; cursor: pointer; }
.skin-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.skin-swatch {
  display: block;
  aspect-ratio: 4 / 3;
  max-width: 100%;
  border-radius: 12px;
  outline: 3px solid transparent;
  outline-offset: 3px;
  transition: outline-color .2s, transform .2s;
}
.skin-opt input:checked + .skin-swatch { transform: translateY(-2px); }
.skin-opt input:focus-visible + .skin-swatch { outline-style: dashed; }
.skin-name { font-size: 14px; line-height: 1.15; }
/* Les vignettes gardent leurs propres couleurs, quelle que soit l’ambiance */
.skin-swatch--arty {
  background:
    linear-gradient(-4deg, transparent 38%, #FF48B0 38% 56%, transparent 56%),
    linear-gradient(3deg, transparent 60%, #2E4FA3 60% 76%, transparent 76%),
    radial-gradient(circle, #2E4FA3 1px, transparent 1.4px) 0 0 / 5px 5px,
    #FFE45C;
}
.skin-swatch--pomme {
  position: relative;
  background: repeating-conic-gradient(from -90deg at 50% 0, #D7262F 0 9deg, #F3E3C0 9deg 18deg);
}
.skin-swatch--pomme::after {
  content: "";
  position: absolute;
  left: 20%; right: 20%; top: 34%; bottom: 14%;
  border-radius: 8px;
  background: linear-gradient(#B9B9B9, #F7F7F7 30%, #8C8C8C 52%, #E6E6E6 80%, #9A9A9A);
  box-shadow: inset 0 0 0 3px transparent, 0 2px 0 #1D2A55;
}
.skin-swatch--pomme::before {
  content: "";
  position: absolute;
  z-index: 1;
  left: 25%; right: 25%; top: 41%; bottom: 21%;
  border-radius: 5px;
  background: linear-gradient(#C9B48A, #FFF6DE 50%, #C9B48A);
}
.skin-swatch--redcorner {
  position: relative;
  background:
    radial-gradient(ellipse at 50% 20%, rgba(255, 190, 110, .45), transparent 55%),
    repeating-linear-gradient(90deg, rgba(0, 0, 0, .22) 0 2px, transparent 2px 7px),
    linear-gradient(#7A0F24, #3A0510);
  box-shadow: inset 0 0 0 3px #3A0510, inset 0 0 0 5px #D4A94F;
}
.skin-swatch--redcorner::after {
  content: "";
  position: absolute;
  right: 16%; bottom: 14%;
  width: 7px; height: 22px;
  border-radius: 2px;
  background: #F6E7CF;
  box-shadow: 0 -10px 8px 2px rgba(255, 200, 107, .7);
}

/* ---------- Éléments propres à une ambiance (Red Corner : le Nostra) ---------- */
.logo-sub, .poster-neon, .poster-venue, .poster-event, .party-venue { display: none; }

/* ---------- Piment ---------- */
.chilis { display: inline-flex; align-items: center; gap: 0; }
.chili { width: 15px; height: 15px; flex: none; color: inherit; opacity: .28; transition: opacity .25s, transform .3s cubic-bezier(.3, 1.6, .5, 1); }
.chili.is-on { opacity: 1; color: var(--chili-color, currentColor); }
.piment-btn { height: 40px; padding: 0 7px; border-radius: 999px; }

/* Groupes de piments : un groupe par niveau, éteint s’il n’est pas coché */
.pgroups { display: inline-flex; align-items: center; gap: 4px; }
.pgroup {
  display: inline-flex; align-items: center;
  padding: 2px 4px;
  border-radius: 999px;
  color: var(--reel-chili, var(--chili-color, currentColor));
  background: var(--reel-chili-bg, transparent);
  box-shadow: inset 0 0 0 1px var(--reel-chili-line, transparent);
  transition: opacity .25s, filter .25s;
}
.pgroup .chili { width: 13px; height: 13px; margin: 0 -2px; opacity: 1; }
.pgroup:not(.is-on) { opacity: .28; filter: grayscale(1); }
.piment-btn .pgroups { gap: 2px; }
.piment-btn .pgroup:not(.is-on) { display: none; }
.piment-btn .pgroup { padding: 1px 2px; }
.piment-btn .pgroup .chili { width: 10px; height: 10px; margin: 0 -1.5px; }

/* Accueil : une seule ligne qui invite à choisir */
.piment-row {
  display: flex; align-items: center; gap: 10px;
  width: 100%;
  min-height: 48px;
  margin-top: 10px;
  padding: 6px 14px;
  border: 0;
  border-radius: 14px;
  background: var(--pill-bg, transparent);
  color: var(--pill-fg, currentColor);
  box-shadow: inset 0 0 0 2px var(--pill-line, currentColor);
  text-align: left;
  cursor: pointer;
}
.piment-row-label { font-weight: 700; font-size: 15px; }
.piment-row .pgroups { flex: 1; }
.piment-row-cta { font-size: 13.5px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* Feuille : trois niveaux à cocher */
.piment-list { display: flex; flex-direction: column; gap: 10px; }
.piment-toggle { position: relative; display: block; cursor: pointer; }
.piment-toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.piment-toggle-body {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  background: var(--pill-bg, transparent);
  color: var(--pill-fg, currentColor);
  box-shadow: inset 0 0 0 2px var(--pill-line, currentColor);
  transition: background .25s, color .25s;
}
.piment-toggle-body .pgroup { flex: none; min-width: 52px; justify-content: center; }
.piment-toggle-body .pgroup .chili { width: 16px; height: 16px; }
.piment-toggle-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.piment-toggle .piment-name { font-size: 16px; font-weight: 800; line-height: 1.15; }
.piment-tdesc { font-size: 13px; line-height: 1.3; opacity: .85; }
.piment-check {
  flex: none;
  width: 24px; height: 24px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 2px currentColor;
  display: grid; place-items: center;
}
.piment-check::after {
  content: "";
  width: 11px; height: 6px;
  border: solid currentColor;
  border-width: 0 0 2.5px 2.5px;
  transform: translateY(-1px) rotate(-45deg) scale(0);
  transition: transform .25s cubic-bezier(.3, 1.6, .5, 1);
}
.piment-toggle input:checked + .piment-toggle-body { background: var(--pill-on-bg, currentColor); color: var(--pill-on-fg, inherit); box-shadow: inset 0 0 0 2px var(--pill-on-line, transparent); }
.piment-toggle input:checked + .piment-toggle-body .piment-check::after { transform: translateY(-1px) rotate(-45deg) scale(1); }
.piment-toggle input:not(:checked) + .piment-toggle-body .pgroup { opacity: .45; }
.piment-toggle input:focus-visible + .piment-toggle-body { outline: 2px dashed currentColor; outline-offset: 3px; }
.piment-error { margin: -2px 0 0; font-size: 14px; font-weight: 700; }

/* Estampille piment dans les roues */
.reel-chilis {
  display: inline-flex; align-items: center; gap: 0; flex: none;
  margin-left: 7px;
  padding: 2px 4px;
  border-radius: 999px;
  background: var(--reel-chili-bg, transparent);
  box-shadow: inset 0 0 0 1px var(--reel-chili-line, transparent);
  color: var(--reel-chili, var(--chili-color, currentColor));
  font-size: 15px;
  line-height: 1;
}
.reel-chilis .chili { width: 1em; height: 1em; margin: 0 -2px; opacity: 1; }
.reel-chilis--3 .chili { filter: drop-shadow(0 0 2px var(--reel-chili-glow, transparent)); }

/* ---------- Tour de jeu : début de phrase fixe, un seul bouton en bas ---------- */
.switch.is-static { cursor: default; }
.switch.is-static .track { display: none; }
.switch.is-static .sw-label { opacity: 1; filter: none; }
.actions { flex: none; display: flex; gap: 10px; align-items: stretch; }
.actions .btn { min-height: 52px; white-space: nowrap; }
@media (max-width: 400px) { .actions .btn { font-size: 15px; padding: 0 14px; } }
.act-main { flex: 1; min-width: 0; }
.act-alt { flex: none; padding: 0 18px; }
.act-main:disabled { opacity: .45; cursor: default; }
body[data-phase="adjust"] .act-main:not(.is-done) { opacity: .92; }
/* Pendant l’ajustement : les choix d’origine restent surlignés */
.reel-txt { position: relative; }
.reel-item.is-original .reel-txt {
  background: linear-gradient(transparent 56%, var(--orig-hl, rgba(255, 220, 90, .55)) 56% 92%, transparent 92%);
  border-radius: 2px;
}
.dir button.is-original { text-decoration: underline 3px var(--orig-line, currentColor); text-underline-offset: 5px; }
.dir.is-changed { outline: 2px dashed var(--orig-line, currentColor); outline-offset: 3px; border-radius: 999px; }
/* Modales du tour */
.overlay--offer .sheet { align-items: stretch; }
.overlay--offer .handoff-kicker:empty { display: none; }
.offer-sentence mark, .party-sentence mark {
  background: var(--mark-bg, rgba(255, 210, 80, .55));
  color: inherit;
  padding: 0 .12em;
  border-radius: 3px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
.overlay--offer .stack { margin-top: 6px; gap: 10px; }
.overlay--offer .stack .link-btn { align-self: center; }
.offer-back { align-self: center; font-size: 14px; opacity: .85; }

/* ---------- Célébration : « Ça vous a plu ? » ---------- */
/* « Vous avez kiffé ? Faites tourner ! » : tout en bas, à part du jeu */
.overlay--party { grid-template-rows: 1fr auto; }
.overlay--party .sheet { align-self: center; }
.party-foot {
  position: relative; z-index: 2; width: 100%; max-width: 400px;
  display: flex; justify-content: center; margin-top: 22px; padding-top: 16px;
  border-top: 1px solid color-mix(in srgb, currentColor 28%, transparent);
}
.overlay--party .party-foot .btn { margin-top: 0; min-height: 44px; font-size: 15px; }
.deal-done { margin: -4px 0 0 !important; font-size: 14px; font-weight: 600; text-align: center; overflow-wrap: anywhere; }
.deal-money { margin-top: 10px !important; }
.sheet--coffee { gap: 12px; }
.sheet--coffee .duo-text { font-size: 15.5px; line-height: 1.5; }
.coffee-wink { font-style: italic; }
a.btn { text-decoration: none; align-self: stretch; margin-top: 4px; }
.coffee-no { align-self: center; font-size: 14px; }
body:has(#ov-deal:not([hidden])) .deco-candles { display: none; }

/* ---------- Accueil : trois écrans qui glissent ---------- */
/* Une colonne qui défile : l’accueil remplit l’écran, et le dépasse si besoin (parties en cours, petit écran) */
.overlay--start { display: flex; flex-direction: column; align-items: stretch; }
.overlay--start > .steps { flex: 1 0 auto; }
.steps { width: 100%; min-width: 0; overflow: hidden; display: flex; }
.steps-track {
  display: flex;
  width: 100%;
  transform: translateX(calc(var(--step, 0) * -100%));
  transition: transform .5s cubic-bezier(.3, .9, .25, 1);
}
.steps.is-instant .steps-track, .steps.is-instant .step { transition: none !important; }
.steps.is-dragging .steps-track { transition: none; }
.steps.is-dragging .step { visibility: visible !important; transition: none; }
.step { flex: 0 0 100%; min-width: 0; display: flex; justify-content: center; align-items: center; transition: visibility 0s; }
.step[inert] { visibility: hidden; transition: visibility 0s .5s; }
.step > .sheet { margin: auto 0; }
.step-dots {
  position: fixed; z-index: 2;
  top: max(10px, env(safe-area-inset-top, 0px)); left: 0; right: 0;
  display: flex; justify-content: center; gap: 7px;
  pointer-events: none;
}
.step-dots i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .3; transition: opacity .3s, transform .3s; }
.step-dots i.is-on { opacity: .9; transform: scale(1.25); }
.step-sheet { gap: 18px; }
.step-title { font-size: 34px; line-height: 1.1; align-self: stretch; text-align: center; }
.rules { margin: 0; padding: 0; list-style: none; counter-reset: rule; display: flex; flex-direction: column; gap: 14px; }
.rules li { counter-increment: rule; position: relative; padding-left: 44px; font-size: 17px; line-height: 1.45; text-align: left; }
.rules li::before {
  content: counter(rule);
  position: absolute; left: 0; top: -.1em;
  width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 800; font-size: 16px;
  background: var(--pill-on-bg, currentColor); color: var(--pill-on-fg, #fff);
}
.step-sheet > .btn { align-self: stretch; margin-top: 6px; }
.step-sheet > .link-btn { align-self: center; }
.step-back { font-size: 14px; opacity: .85; padding-top: 0; }
.welcome .poster-sub { text-wrap: balance; }
.welcome > .btn { align-self: stretch; margin-top: 18px; }
.welcome > .resume-link { margin-top: 0; }
.where-label { margin-top: 14px !important; font-weight: 700; font-size: 15px; }
.where { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 6px; }
.where-btn {
  min-height: 52px;
  padding: 8px 10px;
  border: 0;
  border-radius: 14px;
  background: var(--pill-bg, transparent);
  color: var(--pill-fg, currentColor);
  box-shadow: inset 0 0 0 2px var(--pill-line, currentColor);
  font-weight: 700; font-size: 15px; line-height: 1.2;
  cursor: pointer;
  transition: background .25s, color .25s, transform .15s;
}
.where-btn:active { transform: scale(.97); }
.where-btn[aria-pressed="true"] { background: var(--pill-on-bg, currentColor); color: var(--pill-on-fg, inherit); box-shadow: inset 0 0 0 2px var(--pill-on-line, transparent); }
.where-btn:focus-visible { outline: 2px dashed currentColor; outline-offset: 3px; }
.name1-box { display: flex; flex-direction: column; gap: 6px; width: 100%; align-self: stretch; }
.name1-box[hidden] { display: none; }
.choices { display: flex; flex-direction: column; gap: 12px; width: 100%; }
.piment-choice {
  display: flex; align-items: center; gap: 14px;
  width: 100%;
  padding: 14px 16px;
  border: 0;
  border-radius: 16px;
  background: var(--pill-bg, transparent);
  color: var(--pill-fg, currentColor);
  box-shadow: inset 0 0 0 2px var(--pill-line, currentColor);
  text-align: left;
  cursor: pointer;
  transition: transform .15s, background .25s, color .25s;
}
.piment-choice:active { transform: scale(.98); }
.piment-choice[aria-pressed="true"] { background: var(--pill-on-bg, currentColor); color: var(--pill-on-fg, inherit); box-shadow: inset 0 0 0 2px var(--pill-on-line, transparent); }
.piment-choice .pgroup { flex: none; min-width: 58px; justify-content: center; }
.piment-choice .pgroup .chili { width: 17px; height: 17px; }
.piment-choice .piment-name { font-size: 18px; font-weight: 800; line-height: 1.15; }
.piment-choice:focus-visible { outline: 2px dashed currentColor; outline-offset: 3px; }
.step-text { align-self: stretch; text-align: center; font-size: 15.5px; margin-top: -4px !important; }
.step-sheet > .piment-list { align-self: stretch; gap: 12px; }
.step-sheet .piment-toggle-body { padding: 14px 14px; }

/* ---------- Deux téléphones ---------- */
.duo-status { margin: -6px 0 0; font-size: 13.5px; font-style: italic; opacity: .9; }
.start-form.is-duo > label, .start-form.is-duo > input,
.start-form.is-duo #start-go, .start-form.is-duo #resume, .start-form.is-duo .name1-row { display: none; }
.name1-row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-top: 8px; }
.name1-row label { margin: 0; }
.start-form .duo-link { margin: 0; padding: 4px 0; font-size: 13.5px; font-weight: 700; }
.duo-home { display: flex; flex-direction: column; align-items: stretch; gap: 6px; margin-top: 10px; }
.duo-home-text { font-size: 16px; text-align: center; }
.duo-home .btn { margin-top: 8px; }
.duo-home .link-btn { align-self: center; }
.sheet--duo { gap: 12px; }
.duo-text { font-size: 15px; line-height: 1.45; }
.duo-qr {
  align-self: center;
  width: min(64vw, 230px);
  aspect-ratio: 1;
  padding: 8px;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 0 0 2px var(--pill-line, currentColor);
}
.duo-qr svg { display: block; width: 100%; height: 100%; }
.duo-qr svg path, .duo-qr svg rect[fill="black"] { fill: #111; }
.duo-share { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.duo-share .btn { min-height: 48px; padding: 0 12px; font-size: 15px; }
.duo-share .btn[hidden] + .btn { grid-column: 1 / -1; }
.duo-name-label { font-weight: 700; font-size: 14px; margin-top: 2px; text-align: left; }
.duo-wait { display: flex; align-items: center; gap: 10px; font-size: 14.5px; font-style: italic; }
.duo-dots { display: inline-flex; gap: 4px; flex: none; }
.duo-dots i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: duodot 1.2s ease-in-out infinite; }
.duo-dots i:nth-child(2) { animation-delay: .15s; }
.duo-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes duodot { 0%, 80%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.duo-wait.is-off .duo-dots { display: none; }
.duo-error { font-size: 15px; font-weight: 700; line-height: 1.4; }
.overlay--duo .row .btn[hidden] { display: none; }
.overlay--wait .sheet { align-items: flex-start; }
.wait-sentence { align-self: stretch; }

/* Invitation : la personne qui rejoint découvre le jeu */
.inv-from { align-self: stretch; margin: 0; font-size: 18px; line-height: 1.4; text-wrap: balance; }
.inv-piments { line-height: 1.9; }
.inv-piment { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; margin: 0 4px; }
#inv-name-help { margin-top: 0 !important; font-size: 14px; opacity: .85; }

/* Accueil sur petit écran : tout tient sans faire défiler */
@media (max-height: 700px) {
  :root .overlay--start { padding-top: 14px; padding-bottom: 14px; }
  :root #ov-start .sheet, :root #ov-invited .sheet { gap: 8px; }
  :root #ov-invited .rules li { font-size: 15.5px; }
  :root #ov-invited .rules { gap: 10px; }
  :root .poster-rules { font-size: 14px; line-height: 1.4; }
  :root .start-form { gap: 3px; margin-top: 0; }
  :root #ov-invited .start-form { gap: 6px; margin-top: auto; }
  :root .start-form label { margin-top: 4px; font-size: 13px; }
  :root .name1-row { margin-top: 4px; }
  :root .name1-row label { margin-top: 0; }
  :root .start-form input { min-height: 42px; }
  :root .start-form .btn { margin-top: 12px; min-height: 50px; }
  :root .skin-link { margin-top: 0; padding: 6px 10px; }
  :root #ov-start .piment-row { margin-top: 6px; min-height: 44px; }
  :root[data-skin="arty"] .poster-title { font-size: 74px; }
  :root[data-skin="pomme"] .poster-title { font-size: 70px; }
  :root[data-skin="redcorner"] .poster-title { font-size: 54px; }
}

@media (max-height: 680px) {
  :root .duo-qr { width: min(48vw, 168px); padding: 6px; }
  :root .sheet--duo { gap: 9px; }
}

@media (max-height: 610px) {
  :root #ov-start .poster-rules { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Accueil : les parties à deux en cours (jouées chacun·e à son rythme) */
.games { align-self: stretch; margin-top: 14px; }
.games-title { margin: 0 0 6px; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; opacity: .75; text-align: center; }
.games-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.game { display: flex; align-items: stretch; border-radius: 14px; box-shadow: inset 0 0 0 1.5px color-mix(in srgb, currentColor 32%, transparent); background: color-mix(in srgb, currentColor 6%, transparent); }
.game.is-mine { box-shadow: inset 0 0 0 2.5px currentColor; background: color-mix(in srgb, currentColor 11%, transparent); }
.game-btn { flex: 1; min-width: 0; min-height: 52px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 1px; padding: 8px 4px 8px 14px; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.game-who { font-weight: 700; font-size: 16px; line-height: 1.2; }
.game-turn { font-size: 14px; opacity: .8; }
.game.is-mine .game-turn { opacity: 1; font-weight: 700; }
.game.is-mine .game-turn::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 50%; background: currentColor; vertical-align: 1px; }
.game-x { flex: none; width: 44px; border: 0; background: none; color: inherit; font-size: 22px; line-height: 1; opacity: .5; cursor: pointer; }
.game-x:hover { opacity: .9; }

/* Attente : prévenir l’autre, fermer l’appli sans rien perdre */
.duo-home { margin-top: 4px; }
.duo-home + .btn { margin-top: 10px; }
#duo-quit.is-armed { font-weight: 700; text-decoration-thickness: 2px; }

/* Deux téléphones : accepter un piment plus chaud avant de voir l’envie */
.hot-levels { align-self: stretch; display: flex; flex-direction: column; gap: 8px; }
.hot-level { margin: 0; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; text-align: left; font-size: 15px; line-height: 1.35;
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, currentColor 35%, transparent); background: color-mix(in srgb, currentColor 8%, transparent); }
.hot-level .pgroup { flex: none; }
.overlay--hot .stack .btn--line { white-space: normal; line-height: 1.2; padding-top: 8px; padding-bottom: 8px; }
.piment-duo { margin: 0; font-size: 14px; line-height: 1.4; font-weight: 600; }

/* Accueil : lien discret vers « Dealer du kiff » */
.home-deal { align-self: center; margin-top: 6px; font-size: 13.5px; opacity: .75; }

/* Historique des kiff kiff de la partie */
.switch--top .kiffs-btn { margin-left: auto; flex: none; width: auto; min-height: 34px; padding: 0 12px; gap: 5px; border-radius: 999px; font-size: 13px; }
.kiffs-word { font-size: 12.5px; font-weight: 600; opacity: .85; }
.kiffs-btn[hidden] { display: none !important; }
.kiffs-n { font-weight: 800; font-size: 14px; line-height: 1; font-variant-numeric: tabular-nums; }
.party-count { margin: 0; font-size: 15px; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: inherit; gap: 2px 10px; }
.party-count .link-btn { padding: 4px 0; }
.sheet--kiffs { max-height: min(78vh, 640px); }
.kiffs-count { margin: 0; }
.kiffs-list { list-style: none; margin: 0; padding: 0 2px 0 0; display: flex; flex-direction: column; gap: 8px; overflow-y: auto; align-self: stretch; min-height: 0; flex: 1 1 auto; }
.kiffs-item { padding: 10px 12px; border-radius: 12px; box-shadow: inset 0 0 0 1.5px color-mix(in srgb, currentColor 25%, transparent); background: color-mix(in srgb, currentColor 5%, transparent); text-align: left; }
.kiffs-text { margin: 0; font-family: var(--f-display, inherit); font-size: 16.5px; line-height: 1.3; }
.kiffs-meta { margin: 4px 0 0; font-size: 13px; opacity: .7; }
.game-count { font-weight: 500; opacity: .75; }

/* Déclaration d’âge, discrète sous le bouton de départ */
.age-note { align-self: stretch; margin: -4px 0 0; font-size: 12.5px; line-height: 1.35; text-align: center; opacity: .72; }

/* Accueil : une phrase d’intro, à la première visite seulement */
.welcome-intro { align-self: stretch; margin: 0; font-size: 16px; line-height: 1.45; text-align: center; text-wrap: balance; opacity: .85; }

/* Mode rencontre, à l’étape des piments */
.rencontre { align-self: stretch; display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; cursor: pointer; font-size: 14px; line-height: 1.35; text-align: left;
  background: color-mix(in srgb, currentColor 7%, transparent); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, currentColor 22%, transparent); }
.rencontre input { margin-top: 3px; width: 18px; height: 18px; flex: none; accent-color: currentColor; }

/* Célébration : la phrase en image */
.party-image { align-self: center; margin-top: -6px; font-size: 14px; }

/* ---------- Jeu d’icônes et emblème (19 octobre 2026) ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.ic { width: 24px; height: 24px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.btn .ic, a.btn .ic { width: 20px; height: 20px; margin-right: 9px; stroke-width: 1.8; }
/* Bouton rond à icône, avec un mot court dessous */
.icon-btn { display: inline-flex; flex-direction: column; align-items: center; gap: 6px; min-width: 64px; padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.icon-btn > .ic { box-sizing: content-box; padding: 11px; border-radius: 50%; color: var(--icon-fg, currentColor);
  background: var(--icon-bg, color-mix(in srgb, currentColor 7%, transparent));
  box-shadow: inset 0 0 0 1.5px var(--icon-line, color-mix(in srgb, currentColor 55%, transparent)); transition: transform .15s; }
.icon-btn:active > .ic { transform: scale(.93); }
.icon-btn[hidden] { display: none; }
.icon-btn:focus-visible { outline: none; }
.icon-btn:focus-visible > .ic { outline: 2px dashed currentColor; outline-offset: 3px; }
.icon-label { font-size: 13px; line-height: 1.2; opacity: .92; }
#mute .ic--off { display: none; }
#mute[aria-pressed="true"] .ic--on { display: none; }
#mute[aria-pressed="true"] .ic--off { display: block; }
.home-icons { align-self: stretch; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 14px; margin-top: 18px; }
.icon-btn--bare { min-width: 44px; min-height: 44px; justify-content: center; }
.icon-btn--bare > .ic { padding: 10px; background: none; box-shadow: none; }

/* L’emblème : deux envies qui se rejoignent, leur intersection allumée */
.emblem { display: block; align-self: center; width: 116px; height: auto; overflow: visible; margin-bottom: -6px; }
.e-ring { fill: none; stroke: var(--e-line, currentColor); stroke-width: 4.5; }
.e-ring--2 { stroke-dasharray: var(--e-dash, none); }
.e-lens { fill: var(--e-glow, currentColor); fill-opacity: var(--e-glow-o, .5); stroke: none; }
.emblem--party { width: 132px; margin-bottom: -10px; }
.emblem--party .e-ring--1 { animation: e-left 1s cubic-bezier(.2, .8, .2, 1) both; }
.emblem--party .e-ring--2 { animation: e-right 1s cubic-bezier(.2, .8, .2, 1) both; }
.emblem--party .e-lens { animation: e-glow 1.5s ease-in-out .9s infinite both; }
@keyframes e-left { from { transform: translateX(-30px); } }
@keyframes e-right { from { transform: translateX(30px); } }
@keyframes e-glow { 0%, 100% { fill-opacity: var(--e-glow-o, .5); } 40% { fill-opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .emblem, .emblem * { animation: none !important; } }

/* Retour des étapes : flèche et mot */
.step-back { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; text-decoration: none; }
.step-back .ic { width: 18px; height: 18px; stroke-width: 2; }

/* Célébration : l’icône de partage posée sur la carte de la phrase */
.party-card { position: relative; align-self: stretch; }
.icon-btn--card { position: absolute; z-index: 3; top: -22px; right: -8px; min-width: 0; }
.icon-btn--card > .ic { width: 22px; height: 22px; padding: 12px; stroke-width: 1.9;
  background: var(--card-btn-bg, var(--pill-on-bg, currentColor)); color: var(--card-btn-fg, var(--pill-on-fg, #fff));
  box-shadow: 0 4px 14px rgba(0, 0, 0, .35); }
.party-done { align-self: center; margin: -4px 0 0 !important; font-size: 14px; font-weight: 600; text-align: center; }
.party-count { align-self: center; }
.pill { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px 0 12px; border: 0; border-radius: 999px; color: inherit; font: inherit; font-size: 15px; cursor: pointer;
  background: color-mix(in srgb, currentColor 8%, transparent); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, currentColor 45%, transparent); }
.pill .ic { width: 20px; height: 20px; }
.foot-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; text-decoration: none; font-size: 15px; }
.foot-link .ic { width: 20px; height: 20px; }
.party-foot .foot-link[hidden] { display: none; }

/* « Faites tourner » : deux cartes, partager le jeu et offrir un café */
.deal-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: -6px -10px -4px 0; }
.deal-card { display: flex; flex-direction: column; gap: 12px; padding: 16px; border-radius: 16px;
  background: color-mix(in srgb, currentColor 6%, transparent); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, currentColor 25%, transparent); }
.deal-card-head { display: flex; align-items: center; gap: 14px; }
.deal-card-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.deal-qr { flex: none; width: 92px; height: 92px; box-sizing: border-box; padding: 6px; border-radius: 10px; background: #fff; }
.deal-qr:empty { display: none; }
.deal-qr svg { display: block; width: 100%; height: 100%; }
.deal-qr svg path, .deal-qr svg rect[fill="black"] { fill: #111; }
.deal-card-title { margin: 0; font-size: 18px; font-weight: 700; line-height: 1.2; }
.deal-badge { flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1.5px color-mix(in srgb, currentColor 50%, transparent); }
.deal-card .btn, .deal-card a.btn { align-self: stretch; margin-top: 0; }
.deal-card .deal-money { margin-top: 0 !important; }
.sheet--coffee .deal-card .duo-text { font-size: 15px; line-height: 1.45; }

/* Vos mots à vous deux : un petit crayon dans la roue */
.reel-perso { flex: none; display: inline-flex; margin-left: 5px; opacity: .7; }
.reel-perso .ic { width: 13px; height: 13px; stroke-width: 2.2; }
.reel-pen { flex: none; display: inline-flex; margin-right: 6px; opacity: .8; }
.reel-pen .ic { width: 15px; height: 15px; stroke-width: 2; }
.welcome-intro[hidden] { display: none; }

.skin-swatch--minuit {
  position: relative;
  background: radial-gradient(circle at 92% 8%, transparent 0 22%, rgba(185, 166, 255, .45) 23% 26%, transparent 27%), #0E0C16;
  box-shadow: inset 0 0 0 1px #2E2940;
}
.skin-swatch--minuit::after {
  content: "kiff kiff";
  position: absolute; left: 12%; bottom: 14%;
  font: 800 15px/1 "Syne", sans-serif; letter-spacing: -.02em; color: #F2EFFA;
}

/* Parties à distance derrière un seul bouton, avec un badge d’activité */
.games-open { position: relative; align-self: stretch; width: 100%; display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 8px 14px; border: 0; border-radius: 14px; color: inherit; font: inherit; font-weight: 700; font-size: 16px; text-align: left; cursor: pointer;
  background: color-mix(in srgb, currentColor 8%, transparent); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, currentColor 40%, transparent); }
.games-open[hidden] { display: none; }
.games-open-text { flex: 1; }
.games-open-n { font-weight: 500; opacity: .8; }
.badge { flex: none; min-width: 24px; height: 24px; padding: 0 7px; box-sizing: border-box; border-radius: 12px; display: inline-grid; place-items: center; background: var(--badge-bg, #D81B50); color: var(--badge-fg, #fff); font-size: 13px; font-weight: 800; line-height: 1; animation: badge-pop 2.4s ease-in-out infinite; }
.badge[hidden] { display: none; }
@keyframes badge-pop { 0%, 70%, 100% { transform: scale(1); } 80% { transform: scale(1.18); } 90% { transform: scale(.96); } }
.games-title[hidden], .games-list[hidden] { display: none; }
.sheet--games { max-height: min(80vh, 640px); }
.sheet--games .games-list { overflow-y: auto; min-height: 0; flex: 1 1 auto; }

.skin-swatch--classex {
  position: relative;
  background: repeating-linear-gradient(transparent 0 9px, rgba(20, 20, 20, .08) 9px 10px), #F2EFE8;
  box-shadow: inset 0 0 0 1px #141414;
}
.skin-swatch--classex::before {
  content: "";
  position: absolute; left: 12%; right: 30%; top: 30%; height: 9px;
  background: #141414; box-shadow: 0 16px 0 -1px #141414;
}
.skin-swatch--classex::after {
  content: "CLASSÉ X";
  position: absolute; right: 8%; bottom: 12%;
  padding: 1px 4px; border: 2px solid #C8102E; border-radius: 2px;
  font: 400 12px/1 "Anton", Impact, sans-serif; letter-spacing: .06em; color: #C8102E;
  transform: rotate(-8deg);
}

/* Kiff Kiff Story : la genèse du jeu, à déplier sous le café */
.deal-story { padding: 0; gap: 0; }
.deal-story-head { display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 10px 16px; cursor: pointer; list-style: none; border-radius: inherit; }
.deal-story-head::-webkit-details-marker { display: none; }
.deal-story-head:focus-visible { outline: 2px dashed currentColor; outline-offset: -4px; }
.deal-story-titles { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.deal-story-sub { font-size: 14px; opacity: .8; }
.deal-story-chev { width: 20px; height: 20px; transform: rotate(-90deg); transition: transform .25s; }
.deal-story[open] .deal-story-chev { transform: rotate(90deg); }
.deal-story-text { display: flex; flex-direction: column; gap: 10px; padding: 0 16px 18px; font-size: 15px; line-height: 1.55; text-align: left; }
.deal-story-text p { margin: 0; }
.deal-story-text p:first-child { font-weight: 700; }
/* La fenêtre défile quand elle dépasse l’écran */
#ov-deal { align-items: start; }
#ov-deal .sheet--coffee { margin: auto 0; }

/* Titre de la célébration : les exclamations longues prennent moins de place */
.party-title.is-long > .ink { font-size: .78em; }
.party-title.is-xlong > .ink { font-size: .62em; }
.party-title > .ink { display: inline-block; text-wrap: balance; }
.party-title .emo { color: #000; -webkit-text-fill-color: initial; background: none; filter: none; }
.sheet h2.party-title { margin-bottom: 4px; }

/* ---------- Écran d’attente épuré (20 octobre 2026) : un objet, une ligne de présence, des icônes ---------- */
.overlay--wait .sheet { align-items: center; text-align: center; }
.overlay--wait .handoff-kicker { margin-top: -4px; }
.emblem--wait { width: 128px; margin: 6px auto 2px; }
.emblem--wait .e-ring--2 { animation: e-wait 3.2s ease-in-out infinite; transform-box: fill-box; }
.emblem--wait .e-lens { animation: e-wait-lens 3.2s ease-in-out infinite; }
@keyframes e-wait { 0%, 100% { transform: translateX(10px); } 50% { transform: translateX(0); } }
@keyframes e-wait-lens { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }
.wait-presence { display: block; margin: 2px 0 0; font-size: 14.5px; line-height: 1.35; min-height: 20px; text-align: center; }
.presence-dot { display: inline-block; vertical-align: 1px; margin-right: 8px; width: 9px; height: 9px; border-radius: 50%; background: currentColor; animation: presence 2s ease-in-out infinite; }
.wait-presence.is-off .presence-dot { background: none; box-shadow: inset 0 0 0 1.5px currentColor; animation: none; opacity: .8; }
@keyframes presence { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.wait-pass { align-self: center; min-width: 180px; }
.wait-icons { align-self: stretch; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 12px; margin-top: 6px; }
#wait-notif .ic--off { display: block; }
#wait-notif .ic--on { display: none; }
#wait-notif[aria-pressed="true"] .ic--off { display: none; }
#wait-notif[aria-pressed="true"] .ic--on { display: block; }
#wait-notif:disabled { opacity: .5; }
@media (prefers-reduced-motion: reduce) {
  .emblem--wait .e-ring--2, .emblem--wait .e-lens, .presence-dot { animation: none; }
}

/* ---------- L’envie glissée dans l’invitation : une carte fermée, scellée par l’emblème ---------- */
.gift-card { position: relative; display: flex; flex-direction: column; align-items: center; gap: 14px; padding-top: 22px; }
.gift-lead { font-size: 1.15em; }
.gift-veil { display: flex; flex-direction: column; align-items: center; gap: 9px; width: 100%; }
.gift-veil i { display: block; height: 11px; border-radius: 6px; background: currentColor; opacity: .16; width: 86%; }
.gift-veil i:nth-child(2) { width: 70%; }
.gift-veil i:nth-child(3) { width: 48%; }
.overlay--gift .gift-seal { --e-line: currentColor; position: static; display: block; width: 58px; height: auto; margin: 2px auto 0; transform: rotate(-8deg); animation: gift-seal 2.6s ease-in-out infinite; }
@keyframes gift-seal { 0%, 100% { transform: rotate(-8deg) scale(1); } 50% { transform: rotate(-4deg) scale(1.08); } }
.overlay--gift .stack { margin-top: 30px; }
/* Piment pas encore débloqué : visible, mais grisé et sans case à cocher */
.piment-toggle.is-locked { opacity: .55; cursor: not-allowed; }
.piment-toggle.is-locked .piment-check { visibility: hidden; }
/* Célébration : le piment peut monter */
.party-unlock { margin: 0; }
.party-unlock .pill { cursor: default; }
@media (prefers-reduced-motion: reduce) { .gift-seal { animation: none; } }
#ov-gift .gift-seal { --e-line: currentColor; } /* plus fort que l’emblème clair des ambiances sur fond sombre */

/* Invitation : la ligne d’attente et la cloche « M’avertir » côte à côte */
.duo-wait-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.duo-wait-row .duo-wait { flex: 1; margin: 0; }
.duo-wait-row .duo-notif { flex: none; min-width: 56px; }
#duo-notif .ic--on { display: none; }
#duo-notif[aria-pressed="true"] .ic--on { display: block; }
#duo-notif[aria-pressed="true"] .ic--off { display: none; }
#duo-notif:disabled { opacity: .5; }

/* La cloche activée se voit d’un coup d’œil : rond plein, comme un choix coché */
#wait-notif[aria-pressed="true"] > .ic, #duo-notif[aria-pressed="true"] > .ic {
  background: var(--pill-on-bg, currentColor); color: var(--pill-on-fg, #000);
  box-shadow: inset 0 0 0 1.5px var(--pill-on-line, transparent);
}

/* Arrêter une partie de la liste : le × armé, à toucher une seconde fois */
.game-x.is-armed { opacity: 1; color: var(--badge-bg, #D81B50); font-weight: 700; }
