/* Paf Ton Pote — fête foraine de nuit */
@font-face { font-family: "Luckiest Guy"; src: url(../fonts/luckiest-guy.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: "Rubik"; src: url(../fonts/rubik.woff2) format("woff2"); font-weight: 300 900; font-display: swap; }

:root {
  --night: #241B57;
  --night-2: #33287A;
  --night-3: #40339A;
  --ink: #1A1440;
  --red: #F2364A;
  --yellow: #FFCE3A;
  --cream: #FFF8EC;
  --mint: #2EC4B6;
  --wa: #25D366;
  --muted: #C3BCF2;
  --display: "Luckiest Guy", "Arial Black", Impact, sans-serif;
  --body: "Rubik", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(120% 60% at 50% 0%, #3A2D8C 0%, var(--night) 60%) fixed, var(--night);
  color: var(--cream);
  font: 400 1rem/1.55 var(--body);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--yellow); }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 6px; }
.small { font-size: .875rem; color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }

/* ---------- Titres ---------- */
h1, h2, h3, .display {
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: .01em;
  margin: 0;
}
h1, h2 {
  color: var(--yellow);
  -webkit-text-stroke: 6px var(--ink);
  paint-order: stroke fill;
  text-shadow: 0 4px 0 var(--ink);
}
h2 { font-size: clamp(1.7rem, 5vw, 2.4rem); margin-bottom: .6em; }
h3 { font-size: 1.3rem; }

/* ---------- Auvent ---------- */
.awning {
  position: relative;
  z-index: 5;
  height: 64px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: repeating-linear-gradient(90deg, var(--red) 0 48px, var(--cream) 48px 96px);
  filter: drop-shadow(0 4px 0 var(--ink));
  margin-bottom: 40px;
}
.awning::after {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 100%;
  height: 24px;
  background:
    radial-gradient(circle at 24px 0, var(--red) 23.5px, transparent 24px) 0 0 / 96px 24px repeat-x,
    radial-gradient(circle at 72px 0, var(--cream) 23.5px, transparent 24px) 0 0 / 96px 24px repeat-x;
}
.logo {
  position: relative;
  z-index: 2;
  font: 400 1.45rem/1 var(--display);
  color: var(--yellow);
  text-decoration: none;
  background: var(--ink);
  padding: .5rem .8rem .4rem;
  border-radius: 10px;
  transform: rotate(-2deg);
  box-shadow: 0 0 0 3px var(--yellow) inset;
}
.account-link {
  position: relative;
  z-index: 2;
  max-width: 45vw;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 700;
  font-size: .95rem;
  color: var(--cream);
  background: var(--ink);
  border-radius: 999px;
  padding: .45rem .9rem;
  text-decoration: none;
}

/* ---------- Mise en page ---------- */
.wrap { width: 100%; max-width: 1040px; margin: 0 auto; padding: 0 16px; }
.wrap.narrow { max-width: 620px; }
section { margin: 0 0 56px; }
.panel {
  background: var(--night-2);
  border: 3px solid var(--ink);
  border-radius: 22px;
  box-shadow: 0 6px 0 var(--ink);
  padding: 22px 18px;
}
.panel.light { background: var(--cream); color: var(--ink); }
.panel.light a { color: var(--red); }
.panel p { margin: 0 0 .9em; }
.panel p:last-child { margin-bottom: 0; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 34em; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  min-height: 52px;
  padding: .75em 1.25em .62em;
  border: 3px solid var(--ink);
  border-radius: 14px;
  background: var(--cream);
  color: var(--ink);
  font: 400 1.12rem/1 var(--display);
  letter-spacing: .02em;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 5px 0 var(--ink);
  transition: transform .08s ease, box-shadow .08s ease;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}
.btn:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--ink); }
.btn[disabled] { opacity: .55; cursor: wait; }
.btn-yellow { background: var(--yellow); }
.btn-red { background: var(--red); color: var(--cream); }
.btn-mint { background: var(--mint); }
.btn-wa { background: var(--wa); }
.btn-ghost { background: transparent; color: var(--cream); border-color: var(--cream); box-shadow: none; }
.btn-ghost:active { transform: translateY(2px); box-shadow: none; }
.btn-big { min-height: 62px; font-size: 1.35rem; padding-inline: 1.6em; }
.btn-block { display: flex; width: 100%; }
.btn svg { width: 1.2em; height: 1.2em; flex: none; }
.link-btn { background: none; border: 0; padding: 0; color: var(--yellow); text-decoration: underline; cursor: pointer; font-weight: 600; }
.row { display: flex; flex-wrap: wrap; gap: 12px; }
.row.center { justify-content: center; }

/* ---------- Champs ---------- */
.field { display: block; margin: 0 0 14px; text-align: left; }
.field > span { display: block; font-weight: 700; margin-bottom: 6px; }
.input {
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  font: 500 1.1rem/1.2 var(--body);
  color: var(--ink);
  background: #fff;
  border: 3px solid var(--ink);
  border-radius: 12px;
}
textarea.input { min-height: 90px; resize: vertical; }
.check { display: flex; gap: 10px; align-items: flex-start; text-align: left; font-size: .95rem; margin: 0 0 16px; cursor: pointer; }
.check input { width: 24px; height: 24px; flex: none; margin: 1px 0 0; accent-color: var(--red); }
.error { color: var(--red); font-weight: 700; min-height: 1.4em; margin: 0 0 10px; }

/* ---------- Tête qu'on peut baffer (accueil + page victime) ---------- */
.slap-toy {
  position: relative;
  width: min(68vw, 280px);
  aspect-ratio: 1;
  margin: 0 auto;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.slap-toy img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 6px solid var(--ink);
  box-shadow: 0 0 0 8px var(--yellow), 0 0 0 11px var(--ink), 0 14px 0 8px var(--ink);
  background: #E8DCCB;
  animation: idle 3.2s ease-in-out infinite;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}
.slap-toy.hit-l img { animation: hitL .35s ease-out; }
.slap-toy.hit-r img { animation: hitR .35s ease-out; }
.slap-toy .pow {
  position: absolute;
  font: 400 1.8rem/1 var(--display);
  color: var(--yellow);
  -webkit-text-stroke: 5px var(--ink);
  paint-order: stroke fill;
  pointer-events: none;
  animation: pow .6s ease-out forwards;
}
.slap-count { text-align: center; color: var(--muted); font-size: .95rem; margin: 26px 0 0; min-height: 1.5em; }
@keyframes idle { 0%, 100% { transform: rotate(-3deg); } 50% { transform: rotate(3deg) translateY(-4px); } }
@keyframes hitL { 0% { transform: rotate(0); } 25% { transform: rotate(16deg) translateX(18px) scale(.96, 1.03); } 100% { transform: rotate(0); } }
@keyframes hitR { 0% { transform: rotate(0); } 25% { transform: rotate(-16deg) translateX(-18px) scale(.96, 1.03); } 100% { transform: rotate(0); } }
@keyframes pow { 0% { transform: scale(.3) rotate(-10deg); opacity: 0; } 20% { transform: scale(1.15) rotate(-8deg); opacity: 1; } 100% { transform: translateY(-40px) scale(1) rotate(-8deg); opacity: 0; } }

/* ---------- Accueil ---------- */
.hero { display: grid; gap: 36px; align-items: center; padding-top: 6px; }
.hero h1 { font-size: clamp(2.3rem, 9vw, 4.2rem); }
.hero .lead { margin: 18px 0 24px; }
.hero-toy { order: -1; }
@media (min-width: 820px) {
  .hero { grid-template-columns: 1.15fr .85fr; }
  .hero-toy { order: 0; }
  .slap-toy { width: 300px; }
}
.games-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.games-grid .stand { text-decoration: none; color: inherit; }
@media (min-width: 1000px) { .games-grid { grid-template-columns: repeat(4, 1fr); } }
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; counter-reset: s; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { counter-increment: s; position: relative; padding: 20px 18px 18px 72px; }
.steps li::before {
  content: counter(s);
  position: absolute; left: 16px; top: 16px;
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  font: 400 1.4rem/1 var(--display);
  color: var(--ink); background: var(--yellow); border: 3px solid var(--ink);
}
.steps b { display: block; font-size: 1.1rem; margin-bottom: 2px; }
.faq details { border-bottom: 2px solid rgba(255, 248, 236, .15); padding: 14px 0; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::after { content: "+"; font: 400 1.4rem/1 var(--display); color: var(--yellow); }
.faq details[open] summary::after { content: "–"; }
.faq summary::-webkit-details-marker { display: none; }
.faq p { margin: 10px 0 0; color: var(--muted); max-width: 40em; }

/* ---------- Création de victime ---------- */
.creator { scroll-margin-top: 20px; }
.creator h2 { margin-bottom: .3em; }
.creator .lead { margin: 0 0 20px; }
.drop {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  width: 100%; min-height: 220px; padding: 24px;
  border: 3px dashed var(--muted); border-radius: 18px;
  background: rgba(255, 248, 236, .04);
  color: var(--cream); text-align: center; cursor: pointer;
}
.drop:hover, .drop.over { border-color: var(--yellow); background: rgba(255, 206, 58, .08); }
.drop b { font: 400 1.4rem/1.1 var(--display); color: var(--yellow); }
.drop svg { width: 56px; height: 56px; }
.crop-stage { position: relative; width: min(100%, 320px); aspect-ratio: 1; margin: 0 auto 14px; touch-action: none; cursor: grab; }
.crop-stage canvas { width: 100%; height: 100%; border-radius: 18px; display: block; }
.crop-stage:active { cursor: grabbing; }
.crop-hint { text-align: center; color: var(--muted); font-size: .9rem; margin: 0 0 12px; }
.zoom { display: flex; align-items: center; gap: 12px; max-width: 320px; margin: 0 auto 20px; }
.zoom input { flex: 1; accent-color: var(--yellow); height: 32px; }
.zoom span { font: 400 1.3rem/1 var(--display); color: var(--yellow); width: 18px; text-align: center; }
.creator-step[hidden] { display: none; }
.creator-form { max-width: 420px; margin: 0 auto; }
.repick { margin-top: 14px; }

/* ---------- Page victime ---------- */
.victim { text-align: center; }
.victim .kicker { font: 400 1.4rem/1 var(--display); color: var(--cream); margin: 30px 0 6px; }
.victim h1 { font-size: clamp(2.8rem, 13vw, 5rem); word-break: break-word; }
.victim-stats { color: var(--muted); margin: 12px 0 22px; }
.share-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.share-row .btn-wa { flex: 1 1 260px; max-width: 380px; }

.stands { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (min-width: 1000px) { .stands { grid-template-columns: repeat(4, 1fr); gap: 18px; } }
.stand {
  position: relative;
  display: flex; flex-direction: column;
  background: var(--night-2);
  border: 3px solid var(--ink);
  border-radius: 18px;
  box-shadow: 0 6px 0 var(--ink);
  overflow: hidden;
  text-align: left;
}
.stand-play { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: pointer; text-align: left; }
.stand-thumb { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; background: var(--night-3); border-bottom: 3px solid var(--ink); }
.stand-body { padding: 10px 12px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.stand-name { font: 400 1.25rem/1.05 var(--display); color: var(--yellow); }
.stand-pitch { margin: 0; font-size: .9rem; color: var(--muted); line-height: 1.35; }
.stand-champ { margin: auto 0 0; font-size: .9rem; display: flex; align-items: center; gap: 6px; min-height: 1.4em; }
.stand-champ svg { width: 18px; height: 18px; flex: none; }
.stand-champ b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stand-me { margin: 0; font-size: .85rem; color: var(--mint); font-weight: 600; }
.stand .btn { margin-top: 6px; min-height: 44px; font-size: 1rem; }
.stand-play:hover .stand-thumb { filter: brightness(1.08); }
@media (max-width: 400px) { .stand-pitch { display: none; } }

.tabs { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 10px; margin: 0 -16px 8px; padding-left: 16px; padding-right: 16px; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex: none; padding: 9px 14px 7px; border-radius: 999px;
  border: 3px solid var(--ink); background: var(--night-3); color: var(--cream);
  font: 400 1rem/1 var(--display); cursor: pointer;
}
.tab[aria-selected="true"] { background: var(--yellow); color: var(--ink); }
.board { list-style: none; margin: 0; padding: 0; }
.board li, .general li {
  display: grid; grid-template-columns: 34px 34px minmax(0, 1fr) auto; align-items: center; gap: 10px;
  padding: 10px 12px; margin-bottom: 8px;
  background: var(--night-2); border: 3px solid var(--ink); border-radius: 14px;
}
.board .rk { font: 400 1.35rem/1 var(--display); color: var(--muted); text-align: center; }
.board li:nth-child(1) .rk { color: var(--yellow); }
.board li:nth-child(2) .rk { color: #E3E7F2; }
.board li:nth-child(3) .rk { color: #F0A46B; }
.board .ps { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.board .sc { font-weight: 700; color: var(--yellow); white-space: nowrap; }
.board li.me { border-color: var(--mint); box-shadow: 0 0 0 2px var(--mint) inset; }
.board li.board-empty { display: block; border: 0; background: none; padding: 10px 2px; margin: 0; }
.board-empty { color: var(--muted); padding: 10px 2px; }
.board-me { color: var(--mint); font-weight: 600; margin: 4px 2px 0; }

.next-cta { text-align: center; }
.next-cta p { color: var(--muted); margin: 0 auto 18px; max-width: 30em; }
.report-line { text-align: center; margin: -20px 0 40px; }
.report-line button { color: var(--muted); font-size: .9rem; }

/* ---------- Plein écran de jeu ---------- */
.game {
  position: fixed; inset: 0; z-index: 50;
  display: flex; flex-direction: column;
  background: #120D33;
  overscroll-behavior: contain;
}
.game[hidden] { display: none; }
.game-bar {
  flex: none;
  display: flex; align-items: center; gap: 10px;
  height: 54px; padding: 0 10px;
  padding-top: env(safe-area-inset-top);
  box-sizing: content-box;
  background: var(--ink);
}
.game-bar .gb-title { flex: 1; text-align: center; font: 400 1.2rem/1 var(--display); color: var(--yellow); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.gb-btn {
  width: 44px; height: 44px; flex: none;
  display: grid; place-items: center;
  border: 2px solid rgba(255, 248, 236, .35); border-radius: 12px;
  background: transparent; color: var(--cream); cursor: pointer;
}
.gb-btn svg { width: 22px; height: 22px; }
.game-frame { position: relative; flex: 1; width: 100%; max-width: 560px; margin: 0 auto; overflow: hidden; }
.game-host { position: absolute; inset: 0; }
.ptp-canvas { display: block; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.game-card {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: min(92%, 400px);
  max-height: calc(100% - 24px);
  overflow-y: auto;
  padding: 22px 20px 20px;
  background: var(--cream); color: var(--ink);
  border: 3px solid var(--ink); border-radius: 22px;
  box-shadow: 0 8px 0 var(--ink);
  text-align: center;
}
.game-card[hidden] { display: none; }
.game-card h2 { font-size: 2rem; margin-bottom: .35em; }
.game-card p { margin: 0 0 12px; }
.game-card .rules { font-size: 1rem; line-height: 1.45; }
.game-card .rec { font-weight: 700; color: var(--red); }
.game-card .btn { margin-top: 6px; }
.game-card .stack { display: grid; gap: 12px; margin-top: 16px; }
.end-score {
  font: 400 clamp(2.6rem, 12vw, 3.6rem)/1 var(--display);
  color: var(--red);
  -webkit-text-stroke: 6px var(--ink);
  paint-order: stroke fill;
  margin: 4px 0 10px;
}
.end-badge { display: inline-block; font: 400 1.05rem/1 var(--display); background: var(--mint); color: var(--ink); border: 3px solid var(--ink); border-radius: 999px; padding: 8px 14px 6px; margin: 0 0 10px; transform: rotate(-2deg); }
.end-line { font-weight: 700; font-size: 1.05rem; }
.end-gap { color: #5B5280; }
.end-mini { list-style: none; margin: 10px 0 0; padding: 0; text-align: left; font-size: .95rem; }
.end-mini li { display: flex; justify-content: space-between; gap: 8px; padding: 6px 10px; border-radius: 10px; }
.end-mini li:nth-child(odd) { background: rgba(26, 20, 64, .06); }
.end-mini li.me { background: rgba(46, 196, 182, .25); font-weight: 700; }
.end-pseudo { display: flex; gap: 8px; margin-top: 10px; }
.end-pseudo .input { min-height: 48px; }
.end-pseudo .btn { margin: 0; min-height: 48px; box-shadow: 0 3px 0 var(--ink); }
.game-card .link-btn { color: var(--red); font-size: .95rem; }

/* ---------- Fenêtres ---------- */
dialog.modal {
  width: calc(100% - 32px); max-width: 420px;
  padding: 24px 20px 20px;
  background: var(--cream); color: var(--ink);
  border: 3px solid var(--ink); border-radius: 22px;
  box-shadow: 0 8px 0 var(--ink);
  text-align: center;
}
dialog.modal::backdrop { background: rgba(18, 13, 51, .75); }
dialog.modal h2 { font-size: 1.9rem; margin-bottom: .4em; }
dialog.modal p { margin: 0 0 14px; }
dialog.modal a:not(.btn) { color: var(--red); }
dialog.modal .stack { display: grid; gap: 12px; }
.modal-close { position: absolute; top: 10px; right: 10px; width: 40px; height: 40px; border: 0; background: none; cursor: pointer; font: 400 1.4rem/1 var(--display); color: var(--ink); }
.modal-face { width: 120px; height: 120px; border-radius: 50%; border: 4px solid var(--ink); box-shadow: 0 0 0 5px var(--yellow), 0 0 0 8px var(--ink); margin: 6px auto 18px; }
.or { display: flex; align-items: center; gap: 10px; color: #6B6390; font-size: .9rem; margin: 16px 0; }
.or::before, .or::after { content: ""; flex: 1; height: 2px; background: rgba(26, 20, 64, .15); }
#gsiButton { display: flex; justify-content: center; min-height: 44px; }
.reasons { text-align: left; display: grid; gap: 8px; margin: 0 0 14px; }
.reasons label { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border: 2px solid rgba(26, 20, 64, .2); border-radius: 12px; cursor: pointer; }
.reasons input { accent-color: var(--red); width: 20px; height: 20px; }

/* ---------- Compte ---------- */
.mylist { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.mylist li { min-width: 0; display: flex; align-items: center; gap: 12px; padding: 10px; background: var(--night-2); border: 3px solid var(--ink); border-radius: 16px; }
.mylist img { width: 56px; height: 56px; border-radius: 50%; border: 3px solid var(--ink); flex: none; }
.mylist .grow { flex: 1; min-width: 0; }
.mylist .grow b { display: block; font-size: 1.05rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mylist .grow span { font-size: .88rem; color: var(--muted); }
.mylist .btn { min-height: 42px; font-size: .95rem; padding: .6em .9em .5em; box-shadow: 0 3px 0 var(--ink); }

/* ---------- Pied de page, toast ---------- */
.site-foot { text-align: center; padding: 30px 16px 50px; border-top: 2px solid rgba(255, 248, 236, .1); }
.site-foot p { margin: 0 0 8px; }
.site-foot a { color: var(--cream); margin: 0 8px; }
.toast {
  position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); z-index: 100;
  transform: translate(-50%, 140%);
  max-width: calc(100% - 32px);
  background: var(--ink); color: var(--cream);
  border: 2px solid var(--yellow); border-radius: 14px;
  padding: 12px 18px; font-weight: 600;
  transition: transform .25s ease, opacity .25s ease, visibility 0s linear .25s;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
}
.toast.show { transform: translate(-50%, 0); opacity: 1; visibility: visible; transition: transform .25s ease, opacity .25s ease; }

.legal h2 { font-size: 1.6rem; margin: 1.4em 0 .5em; }
.legal p, .legal li { color: var(--cream); max-width: 44em; }

@media (prefers-reduced-motion: reduce) {
  .slap-toy img { animation: none; }
  .btn, .toast { transition: none; }
}

/* ---------- V2 : la bande ---------- */
.center-text { text-align: center; }
.center-text .lead { margin: 16px auto 22px; }
.av {
  display: inline-grid; place-items: center; flex: none;
  width: 34px; height: 34px; border-radius: 50%;
  border: 3px solid var(--ink);
  font: 400 1rem/1 var(--display); color: var(--ink);
  padding-top: 2px;
}
.stand-play { position: relative; }
.stand-tag {
  position: absolute; left: 8px; top: 8px;
  font: 400 .85rem/1 var(--display); color: var(--ink);
  background: var(--yellow); border: 3px solid var(--ink); border-radius: 999px;
  padding: 6px 10px 4px; transform: rotate(-4deg);
}
.board .rk, .general .rk { font: 400 1.25rem/1 var(--display); color: var(--muted); text-align: center; }
.general { list-style: none; margin: 18px 0 0; padding: 0; }
.general li { padding: 8px 12px; margin-bottom: 8px; background: var(--night-2); border: 3px solid var(--ink); border-radius: 14px; }
.general li.me, .board li.me { border-color: var(--mint); box-shadow: 0 0 0 2px var(--mint) inset; }
.general .ps, .board .ps { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.general .sc { font-weight: 700; color: var(--yellow); white-space: nowrap; }
.bande-lead { margin: -8px 0 22px; font-size: 1rem; }

.podium {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; gap: 10px;
  max-width: 520px; margin: 0 auto; padding-top: 34px;
}
.podium > .board-empty { grid-column: 1 / -1; text-align: center; }
.pd { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; }
.pd .av { width: 52px; height: 52px; font-size: 1.5rem; }
.pd-name { max-width: 100%; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pd-block {
  width: 100%; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 4px;
  border: 3px solid var(--ink); border-radius: 14px 14px 4px 4px; box-shadow: 0 5px 0 var(--ink);
  color: var(--ink); padding-top: 10px;
}
.pd-block b { font: 400 2.2rem/1 var(--display); }
.pd-block span { font-weight: 700; font-size: .9rem; }
.pd1 .pd-block { height: 150px; background: var(--yellow); }
.pd2 .pd-block { height: 112px; background: #E3E7F2; }
.pd3 .pd-block { height: 84px; background: #F0A46B; }
.pd-empty .pd-block { opacity: .35; }
.pd-crown { position: absolute; top: -30px; width: 34px; height: 34px; transform: rotate(-8deg); }
.pd-crown svg { width: 100%; height: 100%; }
.pd.me .pd-name { color: var(--mint); }

.trophies-title { color: var(--cream); margin: 34px 0 14px; font-size: 1.5rem; }
.trophies { display: grid; grid-template-columns: 1fr; gap: 10px; }
@media (min-width: 700px) { .trophies { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.trophy {
  display: flex; gap: 12px; align-items: flex-start; min-width: 0;
  padding: 12px 14px; background: var(--night-2);
  border: 3px solid var(--ink); border-radius: 16px;
}
.trophy.me { border-color: var(--mint); }
.tr-icon { width: 40px; height: 40px; flex: none; }
.tr-icon svg { width: 100%; height: 100%; }
.tr-body { display: flex; flex-direction: column; min-width: 0; }
.tr-title { font: 400 1.1rem/1.1 var(--display); color: var(--yellow); }
.trophy.bad .tr-title { color: #FF9AA8; }
.tr-who { font-size: 1.05rem; margin-top: 2px; }
.tr-line { color: var(--muted); font-size: .92rem; line-height: 1.35; }
.bande-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.bande-actions .btn { flex: 1 1 220px; }
.bande-note { margin: 12px 0 0; }

/* joueurs */
.chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 4px 0 14px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  padding: 4px 14px 4px 4px; border-radius: 999px;
  border: 3px solid var(--ink); background: #fff; color: var(--ink);
  font-weight: 700; cursor: pointer; opacity: .55;
}
.chip.on { opacity: 1; background: var(--yellow); box-shadow: 0 3px 0 var(--ink); }
.chip .av { width: 30px; height: 30px; font-size: .9rem; border-width: 2px; }
.chips-empty { color: #5B5280; }
.add-player { display: flex; gap: 8px; margin: 0 0 8px; }
.add-player .input { min-height: 48px; min-width: 0; }
.add-player .btn { min-height: 48px; box-shadow: 0 3px 0 var(--ink); }
.field-label { font-weight: 700; text-align: left; margin: 16px 0 8px !important; }
.modal-note { color: #5B5280; }

/* écrans de jeu */
.who { font-size: .95rem; }
.who .link-btn { color: var(--red); margin-left: 4px; }
.tour-step { font: 400 1rem/1 var(--display); color: #5B5280; margin: 0 0 6px !important; }
.tour-turn { display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 1.15rem; margin: 6px 0 12px !important; }
.tour-turn .av { width: 40px; height: 40px; font-size: 1.2rem; }
.end-title {
  font: 400 1.6rem/1.05 var(--display); color: var(--ink);
  background: var(--yellow); border: 3px solid var(--ink); border-radius: 12px;
  display: inline-block; padding: 8px 14px 5px; transform: rotate(-2deg); margin: 0 0 10px !important;
}
.end-lines { list-style: none; margin: 0 0 12px; padding: 0; font-size: .98rem; }
.end-lines li { padding: 2px 0; }
.end-foot { margin: 14px 0 0 !important; }
.game-card .stack .btn-yellow { box-shadow: 0 5px 0 var(--ink); }

/* partage */
.share-modal .share-preview {
  display: block; width: auto; max-width: 100%; height: min(46vh, 420px);
  margin: 0 auto 14px; border-radius: 14px; border: 3px solid var(--ink);
}
.share-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.share-links .btn { flex: 1 1 30%; min-height: 44px; font-size: .95rem; padding: .55em .6em .45em; box-shadow: 0 3px 0 var(--ink); }
.share-hint { color: #5B5280; margin: 0 !important; }
dialog.results-modal { max-width: 520px; max-height: calc(100% - 24px); overflow-y: auto; background: var(--night-2); color: var(--cream); }
dialog.results-modal .modal-close { color: var(--cream); }
.results-modal .trophies { margin: 16px 0; text-align: left; }
.results-modal .general li { text-align: left; }
