/* =========================================================================
   Party (versus multi-jeux) : calques communs aux pages de jeu + salon
   ========================================================================= */
.pt-root { --pt-ink: #fdf3de; --pt-bg: rgba(31, 24, 18, .92); --pt-line: #0d0a07; font-family: "Nunito", system-ui, sans-serif; }

/* --- émotes --- */
.pt-emo-btn {
  position: fixed; left: 14px; bottom: 14px; z-index: 9400; width: 48px; height: 48px; border-radius: 50%;
  font-size: 26px; line-height: 1; border: 3px solid var(--pt-line); background: #f2b05e; cursor: pointer;
  box-shadow: 0 4px 0 #b85e2a; transition: transform .1s;
}
.pt-emo-btn:hover { transform: translateY(-2px); }
.pt-emo-btn.is-on { background: #9cc56b; box-shadow: 0 4px 0 #3f6b3a; }
.pt-wheel {
  position: fixed; left: 14px; bottom: 74px; z-index: 9400; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px;
  padding: 10px; background: var(--pt-bg); border: 3px solid var(--pt-line); border-radius: 14px; width: min(330px, calc(100vw - 28px));
}
.pt-wheel[hidden] { display: none; }
.pt-wheel button {
  display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 2px; border-radius: 10px; cursor: pointer;
  background: rgba(255, 255, 255, .08); border: 2px solid transparent; color: var(--pt-ink); font: inherit;
}
.pt-wheel button:hover, .pt-wheel button:focus-visible { border-color: #f2b05e; background: rgba(255, 255, 255, .16); }
.pt-wheel span { font-size: 24px; line-height: 1.1; }
.pt-wheel small { font-size: 11px; font-weight: 700; white-space: nowrap; }
.pt-wheel small b { opacity: .55; }
.pt-feed { position: fixed; left: 14px; bottom: 74px; z-index: 9350; display: flex; flex-direction: column; gap: 6px; pointer-events: none; max-width: calc(100vw - 28px); }
.pt-wheel:not([hidden]) ~ .pt-feed, .pt-root:has(.pt-wheel:not([hidden])) .pt-feed { bottom: 300px; }
.pt-emo {
  display: flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 999px; color: var(--pt-ink);
  background: var(--pt-bg); border: 3px solid var(--pc, #888); font-size: 14px; animation: pt-pop .25s ease-out;
  transition: opacity .4s, transform .4s; width: max-content; max-width: 100%;
}
.pt-emo.is-out { opacity: 0; transform: translateX(-20px); }
.pt-emo-e { font-size: 26px; line-height: 1; }
.pt-emo b { color: var(--pc, #fff); filter: brightness(1.35); }
@keyframes pt-pop { from { transform: scale(.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* --- page de jeu : HUD, classement en direct, bandeau, calque --- */
.pt-hud {
  position: fixed; top: 10px; left: 50%; transform: translateX(-50%); z-index: 9300; display: flex; gap: 10px; align-items: center;
  padding: 6px 14px; border-radius: 999px; background: var(--pt-bg); color: var(--pt-ink); border: 3px solid var(--pt-line);
  font-weight: 800; font-size: 15px; pointer-events: none; white-space: nowrap; max-width: calc(100vw - 20px); overflow: hidden;
}
.pt-hud[hidden], .pt-board[hidden], .pt-banner[hidden], .pt-overlay[hidden] { display: none; }
.pt-hud-mode { color: #f2d48a; }
.pt-hud-time { font-variant-numeric: tabular-nums; }
.pt-hud-time.is-low { color: #ff8a6a; animation: pt-blink .5s steps(2) infinite; }
.pt-hud-wait { font-weight: 600; font-size: 13px; opacity: .85; }
@keyframes pt-blink { 50% { opacity: .45; } }
.pt-board {
  position: fixed; top: 58px; right: 10px; z-index: 9300; min-width: 150px; max-width: 220px; padding: 6px; border-radius: 12px;
  background: var(--pt-bg); color: var(--pt-ink); border: 3px solid var(--pt-line); font-size: 13px; cursor: pointer;
}
.pt-board.is-min .pt-brow:not(.is-me), .pt-board.is-min i { display: none; }
.pt-board i { display: block; font-size: 11px; opacity: .7; padding: 2px 4px 0; font-style: normal; font-weight: 800; text-transform: uppercase; }
.pt-brow-team + .pt-brow-team { margin-top: 4px; padding-top: 4px; border-top: 1px dashed rgba(255, 255, 255, .25); }
.pt-brow { display: flex; justify-content: space-between; gap: 10px; padding: 2px 6px; border-left: 4px solid var(--pc); border-radius: 4px; }
.pt-brow b { font-variant-numeric: tabular-nums; }
.pt-brow.is-me { background: rgba(255, 255, 255, .1); }
.pt-brow.is-dead { opacity: .5; text-decoration: line-through; }
.pt-banner {
  position: fixed; top: 30%; left: 50%; transform: translate(-50%, -50%); z-index: 9450; pointer-events: none;
  font: 900 clamp(28px, 7vw, 64px) "Londrina", "Nunito", sans-serif; color: #ffd257; text-shadow: 0 4px 0 #3d2a1e, 0 0 18px rgba(0, 0, 0, .5);
  white-space: nowrap;
}
.pt-banner.is-pop { animation: pt-ban .5s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes pt-ban { from { transform: translate(-50%, -50%) scale(.3); } to { transform: translate(-50%, -50%) scale(1); } }
.pt-overlay {
  position: fixed; inset: 0; z-index: 9500; display: grid; place-items: center; padding: 16px;
  background: rgba(10, 8, 6, .62); backdrop-filter: blur(2px);
}
.pt-card {
  width: min(520px, 100%); max-height: calc(100vh - 32px); overflow: auto; padding: 22px; border-radius: 16px; text-align: center;
  background: #fdf3de; color: #3a2618; border: 4px solid #4a2e1c; box-shadow: 0 8px 0 #c99a6a;
}
.pt-card.is-plain { background: transparent; border: 0; box-shadow: none; color: #fff; }
.pt-card h2 { margin: .1em 0 .3em; font-size: 1.8rem; }
.pt-kicker { margin: 0; text-transform: uppercase; letter-spacing: .1em; font-size: .8rem; font-weight: 800; color: #b85e2a; }
.pt-wait { font-weight: 800; color: #3f6b3a; }
.pt-wait::after { content: ""; display: inline-block; width: 1.2em; text-align: left; animation: pt-dots 1.2s steps(4) infinite; }
@keyframes pt-dots { 0% { content: ""; } 25% { content: "."; } 50% { content: ".."; } 75% { content: "..."; } }
.pt-count { font: 900 120px/1 "Londrina", "Nunito", sans-serif; color: #ffd257; text-shadow: 0 6px 0 #3d2a1e; animation: pt-ban .5s cubic-bezier(.2, 1.6, .4, 1); }
.pt-sub { font-weight: 700; opacity: .8; margin: .3em 0 0; }
.pt-tip { max-width: 40ch; margin: .6em auto 0; font-weight: 600; }
.pt-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 14px; }
.pt-teams { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; align-items: center; margin: 12px 0; }
.pt-team { display: inline-flex; flex-wrap: wrap; gap: 4px; justify-content: center; }
.pt-vs { font: 900 1.2rem "Londrina", "Nunito", sans-serif; color: #c8553d; }
.pt-chip {
  display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px; font-weight: 800; font-size: .9rem;
  background: color-mix(in srgb, var(--pc, #888) 22%, transparent); border: 2px solid var(--pc, #888); color: inherit; white-space: nowrap;
}
.pt-results { list-style: none; padding: 0; margin: 10px 0; text-align: left; }
.pt-rrow { display: grid; grid-template-columns: 2.2em 1fr auto 2.2em; gap: 8px; align-items: center; padding: 8px; border-radius: 10px; }
.pt-rrow + .pt-rrow { margin-top: 4px; }
.pt-rrow.place-1 { background: rgba(255, 210, 87, .35); }
.pt-place { font-size: 1.4rem; text-align: center; }
.pt-who { display: flex; flex-wrap: wrap; gap: 4px; }
.pt-sc { font-weight: 800; font-variant-numeric: tabular-nums; }
.pt-gain { font-weight: 900; color: #3f6b3a; }
.pt-champ { font: 900 1.4rem "Londrina", "Nunito", sans-serif; color: #b85e2a; margin: .4em 0 0; }

/* pendant une manche, on masque les menus propres aux jeux qui gêneraient */
.party-game .site-footer { display: none; }
