/*!
 * Générateur de structure de tournoi de poker Texas hold'em
 * Copyright (c) 2026 screen97 - https://screen97.fr
 *
 * Tous droits réservés. Ce code source est protégé par le droit d'auteur.
 * Toute reproduction, distribution, modification ou réutilisation, totale ou
 * partielle, est interdite sans autorisation écrite préalable de l'auteur.
 * Voir le fichier LICENSE à la racine du projet.
 */
:root {
  color-scheme: dark;
  --bg: #08170f;
  --bg-2: #0c2018;
  --panel: #10281d;
  --panel-2: #153325;
  --line: #21402f;
  --text: #e8f1ec;
  --muted: #8fa89a;
  --accent: #2ee6a6;
  --accent-ink: #04281b;
  --gold: #e9c46a;
  --warn: #f0a050;
  --danger: #ff7a7a;
  --radius: 14px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.45;
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 20% -10%, #14402c 0%, transparent 60%),
    var(--bg);
  background-attachment: fixed;
  min-height: 100vh;
  padding-bottom: env(safe-area-inset-bottom);
}

h1, h2 { margin: 0; line-height: 1.2; }
h2 { font-size: 0.95rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }

/* ----- en-tête ----- */
.top {
  position: sticky; top: 0; z-index: 20;
  background: rgba(8, 23, 15, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.top-in {
  max-width: 1280px; margin: 0 auto;
  padding: 10px max(16px, env(safe-area-inset-left)) 10px max(16px, env(safe-area-inset-right));
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; flex: 1 1 auto; }

/* ----- menu en haut à gauche ----- */
.menu-wrap { position: relative; flex: none; }
.menu-btn {
  display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 4px;
  width: 40px; height: 40px; padding: 0; border-radius: 12px; cursor: pointer;
  background: transparent; border: 1px solid var(--accent);
}
.menu-btn span { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--accent); }
.menu-btn:hover, .menu-btn[aria-expanded="true"] { background: rgba(46,230,166,.12); }
.menu {
  position: absolute; top: calc(100% + 8px); left: 0; z-index: 30;
  min-width: 200px; padding: 6px;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(0,0,0,.45);
}
.menu[hidden] { display: none; }
.menu-item {
  display: block; width: 100%; box-sizing: border-box; text-align: left;
  padding: 11px 14px; border: 0; border-radius: 10px; cursor: pointer;
  background: transparent; color: var(--text);
  font: inherit; font-weight: 600; font-size: 0.92rem; text-decoration: none;
}
.menu-item:hover, .menu-item:focus-visible { background: rgba(46,230,166,.12); color: var(--accent); outline: none; }
button.menu-item + .menu-item, .menu-item + button.menu-item { border-top: 1px solid var(--line); border-radius: 0 0 10px 10px; }
.suit {
  display: grid; place-items: center; flex: none;
  width: 40px; height: 40px; border-radius: 12px;
  background: var(--accent); color: var(--accent-ink); font-size: 1.5rem;
}
.brand h1 { font-size: 1.15rem; }
.brand p { margin: 0; color: var(--muted); font-size: 0.8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand .brand-name { margin: 0; color: var(--text); font-size: 1.15rem; font-weight: 700; line-height: 1.2; white-space: normal; overflow: visible; }
.brand h1.brand-sub { margin: 0; color: var(--muted); font-size: 0.8rem; font-weight: 400; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav { display: flex; align-items: center; gap: 8px; flex: none; }
.navlink {
  color: var(--accent); border: 1px solid var(--accent);
  padding: 7px 14px; border-radius: 999px; font-weight: 600; font-size: 0.85rem; text-decoration: none; white-space: nowrap;
}
.navlink:hover { background: rgba(46,230,166,.12); }
.single { grid-template-columns: minmax(0, 1fr); max-width: 720px; }
.jump {
  display: none; flex: none;
  color: var(--accent-ink); background: var(--accent);
  padding: 8px 14px; border-radius: 999px; font-weight: 600; font-size: 0.85rem; text-decoration: none;
}

/* ----- mise en page ----- */
.layout {
  max-width: 1280px; margin: 0 auto;
  padding: 18px max(16px, env(safe-area-inset-left)) 28px max(16px, env(safe-area-inset-right));
  display: grid; gap: 18px;
  /* minmax(0, 1fr) : la colonne ne s'élargit pas au contenu (tableaux) et reste dans l'écran */
  grid-template-columns: minmax(0, 1fr);
}
.layout > *, .results > *, .params > * { min-width: 0; max-width: 100%; }
html, body { max-width: 100%; overflow-x: clip; }
@media (min-width: 980px) {
  .layout { grid-template-columns: 380px minmax(0, 1fr); align-items: start; }
  .layout.single:has(> .contact) { grid-template-columns: minmax(0, 1fr); max-width: 720px; }
  .params { position: sticky; top: 76px; max-height: calc(100vh - 92px); overflow-y: auto; }
}

.panel, .card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.panel { padding: 16px; }
.params { display: grid; gap: 12px; background: transparent; border: 0; padding: 0; }
.card { padding: 16px; }
.results { display: grid; gap: 16px; min-width: 0; }

/* ----- champs ----- */
.grid { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
.pair { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.grid .field:only-child { grid-column: 1 / -1; }
@media (max-width: 420px) { .grid { grid-template-columns: 1fr; } }
/* Recaves : liste réduite, plus de place pour la durée */
@media (min-width: 421px) { .grid:has(#rebuyMax) { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); } }
/* Ante : type d'ante plus large, niveau de départ plus étroit */
@media (min-width: 421px) {
  .grid:has(#anteMode) { grid-template-columns: minmax(0, 1fr) auto; }
  .grid:has(#anteMode) .field:has(#anteFrom) > span { white-space: nowrap; }
  .grid:has(#anteMode) [data-ante-mode] { grid-column: 1 / -1; order: 1; }
}
.dur input { min-width: 0; }

.field { display: grid; gap: 6px; font-size: 0.88rem; color: var(--muted); align-content: start; }
.field > span em { font-style: normal; opacity: 0.7; }

input[type="number"], input[type="time"], input[readonly], select {
  width: 100%; min-height: 46px;
  font: inherit; font-size: 1rem; color: var(--text);
  background: var(--bg-2);
  border: 1px solid var(--line); border-radius: 10px;
  padding: 8px 12px;
  font-variant-numeric: tabular-nums;
}
input:focus-visible, select:focus-visible, button:focus-visible, summary:focus-visible, a:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px;
}
select { appearance: none; -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%;
  background-size: 6px 6px; background-repeat: no-repeat; padding-right: 36px; }

.dur, .unit { display: flex; align-items: center; gap: 6px; }
.dur input { text-align: right; }
.dur b, .unit b { color: var(--muted); font-weight: 500; font-size: 0.85rem; }
.dur input:first-child { flex: 1.1; }
.dur input:nth-of-type(2) { flex: 1; }
.unit input { flex: 1; }
input[readonly] { background: transparent; font-weight: 700; color: var(--accent); cursor: default; }
.sub { margin-top: 14px; display: grid; gap: 12px; }
.hint { margin: 10px 0 0; color: var(--muted); font-size: 0.8rem; }

/* interrupteur */
.switch { display: flex; align-items: center; gap: 12px; cursor: pointer; min-height: 40px; font-size: 0.95rem; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch i {
  position: relative; flex: none; width: 46px; height: 26px; border-radius: 999px;
  background: #284637; transition: background .15s;
}
.switch i::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%;
  background: #fff; transition: transform .15s;
}
.switch input:checked + i { background: var(--accent); }
.switch input:checked + i::after { transform: translateX(20px); background: var(--accent-ink); }
.switch input:focus-visible + i { outline: 2px solid var(--accent); outline-offset: 2px; }
.switch-head span { font-size: 0.95rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--accent); }
.card-body > .switch + .grid, .card-body > .grid + .switch { margin-top: 12px; }

.adv summary { cursor: pointer; font-weight: 600; color: var(--accent); list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 36px; }
.adv summary::-webkit-details-marker { display: none; }
.adv summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 36px; font-size: 1.2rem; font-weight: 600; line-height: 1; }
.adv[open] summary::after { content: "-"; }
.adv .grid { margin-top: 14px; }

/* zones repliables */
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.card-head h2 { margin: 0; }
.card-head .switch { flex: 1; min-width: 0; }
.card-body { margin-top: 14px; }
.card-body.tight { margin-top: 0; }
.fold {
  flex: none; display: grid; place-items: center;
  width: 36px; min-height: 36px; padding: 0;
  background: transparent; color: var(--accent); border: 0; border-radius: 8px;
  font-size: 1.2rem; font-weight: 600; line-height: 1;
}
.none { margin: 14px 0 0; color: var(--muted); font-size: 0.95rem; }
.fold::after { content: "-"; }
.fold[aria-expanded="false"]::after { content: "+"; }
.fold:hover { filter: none; background: rgba(46,230,166,.12); }

.actions { display: flex; justify-content: flex-end; }

button {
  font: inherit; font-size: 0.9rem; font-weight: 600; cursor: pointer;
  min-height: 42px; padding: 8px 16px; border-radius: 10px;
  color: var(--accent-ink); background: var(--accent); border: 0;
}
button:hover { filter: brightness(1.08); }
button.ghost { background: transparent; color: var(--muted); border: 1px solid var(--line); }
.tools button { background: var(--panel-2); color: var(--text); border: 1px solid var(--line); }

/* ----- résultats ----- */
.stats { display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 700px) { .stats { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; display: grid; gap: 2px; align-content: start; min-width: 0; }
.stat-l { color: var(--muted); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; }
.stat-v { font-size: 1.3rem; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.stat-s { color: var(--muted); font-size: 0.78rem; }

.alert { padding: 12px 14px; border-radius: 10px; font-size: 0.9rem; margin-bottom: 8px; }
.alert.warn { background: rgba(240, 160, 80, 0.12); border: 1px solid rgba(240, 160, 80, 0.45); color: #ffd7ad; }
.alert.err { background: rgba(255, 122, 122, 0.12); border: 1px solid rgba(255, 122, 122, 0.5); color: #ffc4c4; }
#warnings:empty { display: none; }

.bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.bar h2 { margin: 0; }
.tools { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }

.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 -4px; padding: 0 4px; }
table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
th, td { padding: 10px 8px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); font-weight: 600; white-space: nowrap; }
.num { text-align: right; }
.strong { font-weight: 700; }
.muted { color: var(--muted); }
tbody tr:last-child td { border-bottom: 0; }

.c-lvl { font-weight: 700; color: var(--accent); width: 44px; }
.c-time .clk { display: block; font-weight: 600; }
.c-time .el { display: block; color: var(--muted); font-size: 0.8rem; }
.c-time .el::before { content: "T+ "; }
.c-sb, .c-bb { font-size: 1.1rem; font-weight: 600; }
.c-den { font-weight: 700; }
.c-notes { white-space: normal; }

.tag { display: inline-block; font-size: 0.72rem; padding: 3px 8px; border-radius: 999px; background: var(--panel-2); color: var(--text); margin: 2px 4px 2px 0; border: 1px solid var(--line); }
.tag-rebuy { background: rgba(240, 160, 80, 0.15); border-color: rgba(240, 160, 80, 0.5); color: #ffd7ad; }
.tag-addon { background: rgba(233, 196, 106, 0.15); border-color: rgba(233, 196, 106, 0.55); color: var(--gold); }
.tag-last { background: rgba(255, 122, 122, 0.14); border-color: rgba(255, 122, 122, 0.5); color: #ffc4c4; }

.row-break td { background: rgba(233, 196, 106, 0.08); color: var(--gold); padding: 12px 10px; }
.row-break strong { margin-right: 10px; }
.row-break .break-when { color: var(--muted); margin-right: 10px; font-size: 0.85rem; }

.no-ante .col-ante, .no-addon .col-addon { display: none; }

.toast { margin: 12px 0 0; padding: 8px 12px; border-radius: 8px; background: var(--panel-2); color: var(--accent); font-size: 0.88rem; }

.foot { display: flex; justify-content: center; align-items: center; gap: 10px; padding: 8px 16px 32px; opacity: 0.9; }
.foot img { height: 36px; width: auto; }
.foot .by { color: var(--muted); font-size: 0.85rem; font-style: italic; }
.foot img.screen97 { height: 30px; }
.foot a { display: inline-flex; transition: opacity .15s; }
.foot a:hover, .foot a:focus-visible { opacity: .75; }

/* ----- soutien PayPal ----- */
.support { display: flex; flex-direction: column; align-items: center; gap: 10px; margin: 24px auto 4px; padding: 0 16px; max-width: 520px; text-align: center; }
.support p { margin: 0; color: var(--muted); font-size: 0.85rem; line-height: 1.4; }
.support-btn { display: inline-block; padding: 8px 18px; border: 1px solid var(--gold); border-radius: 999px; color: var(--gold); font-size: 0.9rem; font-weight: 600; text-decoration: none; transition: background .15s, color .15s; }
.support-btn:hover, .support-btn:focus-visible { background: var(--gold); color: var(--accent-ink); outline: none; }

/* ----- mobile ----- */
@media (max-width: 979px) { .jump { display: inline-block; } }
@media (max-width: 600px) {
  .brand p, .brand h1.brand-sub { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
  .brand .brand-name { position: static; width: auto; height: auto; margin: 0; clip: auto; overflow: visible; white-space: normal; }
  th, td { padding: 9px 6px; }
  .col-bb { display: none; }
  .c-sb, .c-bb { font-size: 1rem; }
  .tools button { flex: 1; }
}

/* ----- impression ----- */
@media print {
  :root { color-scheme: light; }
  body { background: #fff; color: #000; }
  .top, .params, .tools, .toast, .foot, .support, #summaryPanel, .seo { display: none !important; }
  .layout { display: block; padding: 0; }
  .panel { border: 0; background: #fff; padding: 0; }
  h2 { color: #000; }
  .fold { display: none !important; }
  .card-body[hidden] { display: block !important; }
  th, td { color: #000; border-color: #bbb; }
  .c-lvl { color: #000; }
  .row-break td { background: #eee; color: #000; }
  .tag, .tag-rebuy, .tag-addon, .tag-last { background: #fff; color: #000; border-color: #888; }
  .muted, .c-time .el, .row-break .break-when { color: #444; }
  #chipsPanel { break-inside: avoid; margin-top: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .switch i, .switch i::after { transition: none; }
}

/* ----- sélecteurs à molette (smartphone) ----- */
.wheel-btn {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  width: 100%; min-height: 46px; padding: 8px 12px; text-align: left;
  font: inherit; font-size: 1rem; font-weight: 400; font-variant-numeric: tabular-nums;
  color: var(--text); background: var(--bg-2);
  border: 1px solid var(--line); border-radius: 10px;
}
.wheel-btn::after {
  content: ""; flex: none; width: 7px; height: 7px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: rotate(45deg) translateY(-2px);
}
.wheel-btn:hover { filter: none; border-color: var(--accent); }
.wheel-btn.is-empty { color: var(--muted); }

html.wheel-lock, html.wheel-lock body { overflow: hidden; }
.wheel-overlay {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: flex-end; justify-content: center;
  background: rgba(0, 0, 0, 0.6);
  opacity: 0; transition: opacity .18s;
  touch-action: none;
}
.wheel-overlay.open { opacity: 1; }
.wheel-sheet {
  --wi: 26px;
  width: 100%; max-width: 480px;
  background: var(--panel); border: 1px solid var(--line); border-bottom: 0;
  border-radius: 18px 18px 0 0;
  padding: 6px 16px calc(14px + env(safe-area-inset-bottom));
  transform: translateY(100%); transition: transform .22s ease;
}
.wheel-overlay.open .wheel-sheet { transform: none; }
.wheel-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 48px; }
.wheel-title { flex: 1; min-width: 0; text-align: center; font-weight: 600; font-size: 0.95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wheel-top button { min-height: 40px; padding: 6px 10px; background: transparent; color: var(--muted); border: 0; }
.wheel-top .wheel-ok { color: var(--accent); }
.wheel-heads {
  display: grid; grid-template-columns: repeat(var(--n), 1fr);
  text-align: center; color: var(--muted); font-size: 0.72rem;
  text-transform: uppercase; letter-spacing: 0.06em; margin: 2px 0 0;
}
.wheel-body {
  position: relative; display: grid; grid-template-columns: repeat(var(--n), 1fr);
  height: calc(var(--wi) * 5);
}
.wheel-band {
  position: absolute; left: 0; right: 0; top: calc(var(--wi) * 2); height: var(--wi);
  background: rgba(255, 255, 255, 0.09); border-radius: 12px; pointer-events: none;
}
.wheel-col {
  position: relative; height: 100%; overflow-y: auto;
  scroll-snap-type: y mandatory; scrollbar-width: none;
  overscroll-behavior: contain; touch-action: pan-y; -webkit-overflow-scrolling: touch;
  contain: layout paint; will-change: scroll-position;
  -webkit-mask-image: linear-gradient(transparent, #000 28%, #000 72%, transparent);
  mask-image: linear-gradient(transparent, #000 28%, #000 72%, transparent);
}
.wheel-col::-webkit-scrollbar { display: none; }
.wheel-sp { height: calc(var(--wi) * 2); flex: none; }
.wheel-it {
  height: var(--wi); display: flex; align-items: center; justify-content: center;
  scroll-snap-align: center; scroll-snap-stop: normal;
  font-size: 1.1rem; font-variant-numeric: tabular-nums;
  color: var(--muted); cursor: pointer; user-select: none; -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.wheel-it.is-sel { color: var(--text); font-weight: 600; }
.wheel-clear { margin-top: 10px; width: 100%; }

@media (prefers-reduced-motion: reduce) {
  .wheel-overlay, .wheel-sheet { transition: none; }
}
@media print { .wheel-overlay { display: none !important; } }

/* ----- en-tête sur smartphone : boutons sur une 2e ligne ----- */
@media (max-width: 640px) {
  .top-in { flex-wrap: wrap; gap: 8px 12px; }
  .brand { flex: 1 1 0; }
  .brand h1 { white-space: nowrap; }
  .nav { flex: 1 1 100%; }
  .nav .navlink, .nav .jump { flex: 1 1 0; text-align: center; padding: 9px 10px; }
}

/* ----- sélecteur de langue (bouton de bascule à 2 langues) ----- */
:root {
  --lang-border: rgba(255, 255, 255, .3);
  --lang-fg: var(--text);
  --lang-hover: rgba(46, 230, 166, .12);
  --lang-focus: var(--accent);
}
.lang-switch {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  min-width: 44px; min-height: 44px; border-radius: 10px; color: var(--lang-fg);
}
.lang-switch:hover { background: var(--lang-hover); }
.lang-switch:focus-visible { outline: 3px solid var(--lang-focus); outline-offset: 2px; }
.flag { display: block; flex: none; border-radius: 2px; box-shadow: 0 0 0 1px var(--lang-border); }
.flag--md { width: 24px; height: 18px; }

/* ----- sélecteur de langue (menu déroulant, 3 langues ou plus) -----
   Drapeau + code de langue (EN, RU...) sur smartphone, drapeau + nom de la langue sur desktop. Pas de chevron. */
.lang-menu { position: relative; display: inline-block; flex: none; }
.lang-menu__button {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-width: 44px; min-height: 44px; padding: 0 .625rem;
  font: inherit; font-size: .9rem; color: var(--lang-fg); background: transparent;
  border: 1px solid var(--lang-border); border-radius: 10px; cursor: pointer;
}
.lang-menu__button:hover, .lang-menu__button[aria-expanded="true"] { background: var(--lang-hover); }
.lang-menu__list {
  position: absolute; inset-inline-end: 0; z-index: 1000; min-width: 100%; margin: .25rem 0 0; padding: .25rem;
  list-style: none; background: var(--panel); border: 1px solid var(--line); border-radius: 10px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .45);
}
.lang-menu__list[hidden] { display: none; }
.lang-menu__list a {
  display: flex; align-items: center; gap: .5rem; min-width: 44px; min-height: 44px; padding: 0 .75rem;
  color: var(--lang-fg); text-decoration: none; white-space: nowrap; border-radius: 8px;
}
.lang-menu__list a:hover { background: var(--lang-hover); }
/* langue active : contour du drapeau + libellé en gras */
.lang-menu__list a[aria-current="true"] .flag { box-shadow: 0 0 0 2px var(--lang-focus); }
.lang-menu__list a[aria-current="true"] .lang-label { font-weight: 600; color: var(--accent); }
.lang-menu__button:focus-visible, .lang-menu__list a:focus-visible { outline: 3px solid var(--lang-focus); outline-offset: 2px; }
.flag--sm { width: 20px; height: 15px; }
.lang-label { line-height: 1; }
.lang-label--short { font-size: .875rem; font-weight: 600; letter-spacing: .02em; }
.lang-label--long { display: none; }
@media (min-width: 768px) {
  .lang-label--short { display: none; }
  .lang-label--long { display: inline; }
}
@media print { .lang-switch, .lang-menu { display: none !important; } }

/* ----- bandeau de suggestion de langue ----- */
.lang-banner {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 6px 12px 6px 16px; background: var(--panel-2); border-bottom: 1px solid var(--line); font-size: .9rem;
}
.lang-banner a { color: var(--accent); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; padding: 10px 0; }
.lang-banner a:focus-visible, .lang-banner__close:focus-visible { outline: 3px solid var(--lang-focus); outline-offset: 2px; }
.lang-banner__close {
  flex: none; min-width: 44px; min-height: 44px; padding: 0; border: 0; border-radius: 10px;
  background: transparent; color: var(--muted); font-size: 1.5rem; line-height: 1; cursor: pointer;
}
.lang-banner__close:hover { background: var(--lang-hover); color: var(--text); }
@media print { .lang-banner { display: none !important; } }

/* ----- texte de présentation et FAQ (référencement) ----- */
.seo { max-width: 1280px; margin: 0 auto; padding: 0 max(16px, env(safe-area-inset-left)) 28px max(16px, env(safe-area-inset-right)); }
.seo h2 { font-size: 1.2rem; margin: 0 0 6px; }
.seo h2.faq-title { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); }
.seo h3 { font-size: 1rem; margin: 16px 0 4px; color: var(--gold); line-height: 1.3; }
.seo p { margin: 0 0 8px; color: var(--text); max-width: 80ch; font-size: 0.95rem; }
.seo a { color: var(--accent); }

/* pages guide / texte SEO sous les pages Places payées et Contact */
.seo--narrow { max-width: 720px; }
.doc .panel p a, .doc .panel li a, .doc .box a { color: var(--accent); }
.doc .hint { margin: 14px 0 8px; }
.doc th { white-space: normal; }

/* =====================================================================
   Lancement de la partie (page structure)
   ===================================================================== */
.launch { display: grid; gap: 12px; border-color: rgba(46,230,166,.45); background: linear-gradient(135deg, #12392a, var(--panel)); }
.launch .hint { margin: 0; }
.launch-new { display: flex; flex-wrap: wrap; gap: 10px; }
.launch-go { font-size: 1.02rem; min-height: 50px; padding: 10px 22px; border-radius: 12px; }
.launch-new .launch-go { flex: 1 1 220px; }
.launch-sec { background: transparent; color: var(--accent); border: 1px solid var(--accent); min-height: 50px; border-radius: 12px; }
.launch-sec.armed, .tm-danger.armed { background: var(--danger); color: #2b0606; border-color: var(--danger); }
.launch-join input[data-l="code"] { text-transform: uppercase; letter-spacing: .2em; font-weight: 700; }
.launch-join, .launch-admin { display: grid; gap: 10px; }
.launch-admin .hint, .launch-join .hint { margin: 0; }
.tm-row { display: flex; gap: 8px; align-items: center; }
.tm-row > input, .tm-row > select { flex: 1; min-width: 0; }
.tm-row > button { flex: none; }
.launch-admin, .launch-join, .launch-admin .field, .launch-join .field { min-width: 0; max-width: 100%; }
.launch-admin .tm-row, .launch-join .tm-row { flex-wrap: wrap; }
.launch-admin .tm-row > input, .launch-join .tm-row > input { flex: 1 1 9rem; }
.launch-admin .tm-row > button, .launch-join .tm-row > button { flex: 1 1 auto; max-width: 100%; white-space: normal; }
@media (max-width: 600px) {
  .launch-admin .tm-row, .launch-join .tm-row { flex-direction: column; align-items: stretch; }
  .launch-admin .tm-row > input, .launch-join .tm-row > input { flex: none; width: 100%; }
  .launch-admin .tm-row > button, .launch-join .tm-row > button { flex: none; width: 100%; }
}
.launch input[type="text"], .tm input[type="text"], .launch input[type="password"], .tm input[type="password"] {
  width: 100%; min-height: 46px; font: inherit; font-size: 1rem; color: var(--text);
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px;
}

/* =====================================================================
   Écran de partie
   ===================================================================== */
html.tm-on, html.tm-on body { overflow: hidden; }
/* arrivée par un lien de partie (?game=) : on n'affiche pas l'écran de structure pendant le chargement */
html.tm-joining body > *:not(.tm) { display: none !important; }
.tm {
  position: fixed; inset: 0; z-index: 200;
  display: flex; flex-direction: column;
  height: 100vh; height: 100dvh;
  background: radial-gradient(1200px 700px at 30% -10%, rgba(21,74,51,.55) 0%, transparent 60%), linear-gradient(rgba(6,20,13,.28), rgba(6,20,13,.28)), url(assets/poker-table-bg.webp) center / cover no-repeat, var(--bg);
  color: var(--text);
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
  -webkit-user-select: none; user-select: none;
}
.tm.is-break { background: radial-gradient(1200px 700px at 30% -10%, rgba(74,63,21,.6) 0%, transparent 60%), linear-gradient(rgba(23,20,10,.55), rgba(23,20,10,.55)), url(assets/poker-table-bg.webp) center / cover no-repeat, #17140a; }
.tm svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tm button { min-height: 0; }

/* barre du haut */
.tm-top { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-bottom: 1px solid var(--line); flex: none; }
.tm-back { display: inline-flex; align-items: center; gap: 4px; background: transparent; color: var(--accent); border: 1px solid var(--line); padding: 6px 12px 6px 6px; min-height: 40px; }
.tm-title { flex: 1; min-width: 0; display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; justify-content: center; }
.tm-title strong { font-size: 1.15rem; color: var(--accent); white-space: nowrap; }
.tm.is-break .tm-title strong { color: var(--gold); }
.tm-title span { color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.tm-endline { color: var(--muted); font-size: 1.15rem; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; text-align: center; }
.tm-icons { display: flex; align-items: center; gap: 6px; }
.tm-ico { width: 42px; height: 42px; padding: 0; display: grid; place-items: center; background: transparent; color: var(--text); border: 1px solid var(--line); border-radius: 10px; }
.tm-ico:hover { border-color: var(--accent); color: var(--accent); filter: none; }
.tm-vol-wrap { position: relative; }
.tm-vol {
  position: absolute; top: calc(100% + 6px); inset-inline-end: 0; z-index: 10; min-width: 160px;
  padding: 14px 12px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .45);
}
.tm-vol[hidden] { display: none; }
.tm-lang-wrap { position: relative; }
.tm-langbtn .flag { width: 24px; height: 18px; }
.tm-lang-pop {
  position: absolute; top: calc(100% + 6px); inset-inline-end: 0; z-index: 10; min-width: 190px; padding: 6px;
  display: flex; flex-direction: column; gap: 2px; background: var(--panel); border: 1px solid var(--line);
  border-radius: 12px; box-shadow: 0 6px 18px rgba(0, 0, 0, .45);
}
.tm-lang-pop[hidden] { display: none; }
.tm-lang-item { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 12px; border-radius: 8px; color: var(--text); text-decoration: none; }
.tm-lang-item:hover, .tm-lang-item:focus-visible { background: rgba(255, 255, 255, .08); outline: none; }
.tm-lang-item[aria-current="true"] { font-weight: 700; color: var(--accent); }
.tm-lang-item[aria-current="true"] .flag { box-shadow: 0 0 0 2px var(--accent); }
:root[data-theme="light"] .tm-lang-pop { box-shadow: 0 10px 30px rgba(16, 37, 26, .15); }
:root[data-theme="light"] .tm-lang-item:hover, :root[data-theme="light"] .tm-lang-item:focus-visible { background: rgba(11, 138, 95, .1); }
.tm-vol input[type="range"] { width: 100%; accent-color: var(--accent); }
.tm-sync { font-size: .78rem; font-weight: 700; letter-spacing: .12em; color: var(--muted); padding: 4px 8px 4px 20px; position: relative; font-variant-numeric: tabular-nums; background: none; border: none; font-family: inherit; cursor: pointer; }
.tm-sync:hover, .tm-sync:focus-visible { color: var(--text); }
.tm-sync::before { content: ""; position: absolute; left: 6px; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: var(--muted); }
.tm-sync.ok::before { background: var(--accent); }
.tm-sync.off::before { background: var(--warn); }

/* zone principale */
.tm-body { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr); }
.tm-main { min-height: 0; min-width: 0; display: flex; flex-direction: column; padding: 8px 16px; gap: 4px; }
.tm-blinds-box { flex: 5 1 0; min-height: 0; display: flex; flex-direction: column; align-items: center; }
.tm-clock-box { flex: 4 1 0; min-height: 0; display: flex; flex-direction: column; align-items: center; position: relative; }
.tm-cap { color: var(--muted); text-transform: uppercase; letter-spacing: .14em; font-size: clamp(.75rem, 1.6vh, 1rem); font-weight: 700; }
/* niveau affiché au-dessus des blindes (remplace l'ancien libellé BLINDS) : même couleur que l'ancien titre */
.tm-cap.tm-lvl { color: var(--accent); text-transform: none; letter-spacing: 0; font-size: clamp(1.1rem, 3.2vh, 2.2rem); white-space: nowrap; }
.tm.is-break .tm-cap.tm-lvl { color: var(--gold); }
.tm-fit { flex: 1; min-height: 0; width: 100%; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.tm-fit > span { display: inline-block; white-space: nowrap; line-height: 1; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.tm-blinds { color: var(--text); }
.tm.is-break .tm-blinds { color: var(--gold); opacity: .85; }
.tm-ante { color: var(--gold); font-weight: 700; font-size: clamp(1.8rem, 7.5vh, 4.8rem); min-height: 1.2em; font-variant-numeric: tabular-nums; }
.tm-left { color: var(--accent); }
.tm.is-break .tm-left { color: var(--gold); }
.tm.is-last .tm-left { color: var(--warn); }
.tm.is-final .tm-left { color: var(--danger); animation: tm-blink-text .5s steps(1, end) infinite; }
.tm.is-paused .tm-left { color: var(--muted); }
.tm-bar { width: min(100%, 900px); height: 8px; border-radius: 99px; background: var(--line); overflow: hidden; flex: none; margin: 6px auto 2px; align-self: center; }
.tm-bar i { display: block; height: 100%; width: 0; background: var(--accent); border-radius: 99px; }
.tm.is-break .tm-bar i { background: var(--gold); }
.tm.is-last .tm-bar i { background: var(--warn); }
.tm.is-final .tm-bar i { background: var(--danger); }
@keyframes tm-blink-text { 50% { opacity: .25; } }
.tm-paused { display: none; position: absolute; top: 10%; left: 50%; transform: translateX(-50%); padding: 6px 20px; border-radius: 12px; background: rgba(255,122,122,.92); color: #2b0606; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; font-size: clamp(1rem, 4vh, 2.4rem); animation: tm-blink 1.4s ease-in-out infinite; }
.tm.is-paused .tm-paused { display: block; }
@keyframes tm-blink { 50% { opacity: .55; } }
.tm-info { flex: none; display: flex; flex-direction: column; align-items: center; gap: 2px; padding-bottom: 4px; text-align: center; }
.tm-break { font-size: clamp(1rem, 3.4vh, 2rem); font-weight: 700; font-variant-numeric: tabular-nums; color: var(--text); }
.tm-next { font-size: clamp(.85rem, 2.4vh, 1.4rem); color: var(--muted); font-variant-numeric: tabular-nums; }
.tm-next:empty { display: none; }

/* panneau latéral : compteurs et gains */
.tm-side { display: flex; flex-direction: column; gap: 10px; padding: 12px; overflow-y: auto; min-height: 0; background: rgba(16,40,29,.85); border-left: 1px solid var(--line); }
.tm-side-h { display: none; align-items: center; justify-content: space-between; }
.tm-count { display: grid; gap: 6px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-2); }
.tm-count.off { display: none; }
.tm-count-h { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.tm-count-h small { text-transform: none; letter-spacing: 0; font-weight: 500; }
.tm-count-r { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.tm-count-r strong { font-size: 1.6rem; font-variant-numeric: tabular-nums; }
.tm-mini { width: 48px; height: 44px; padding: 0; font-size: 1.5rem; line-height: 1; border-radius: 10px; }
.tm-mini[data-a$="-"] { background: var(--panel-2); color: var(--text); border: 1px solid var(--line); }
.tm button:disabled { opacity: .35; cursor: default; filter: none; }
.tm-stats { margin: 0; display: grid; gap: 6px; }
.tm-stats div { display: flex; justify-content: space-between; gap: 10px; padding: 6px 2px; border-bottom: 1px solid var(--line); }
.tm-stats dt { color: var(--muted); font-size: .85rem; }
.tm-stats dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; }
.tm-pay { display: grid; gap: 4px; }
.tm-pay div { display: flex; justify-content: space-between; padding: 4px 2px; color: var(--gold); font-variant-numeric: tabular-nums; }
/* places payées sur 2 colonnes (panneau de jeu, pas la fenêtre de fin) */
.tm-pay:not(.tm-end-pay) { display: block; column-count: 2; column-gap: 24px; column-rule: 1px solid var(--line); }
.tm-pay:not(.tm-end-pay) div { break-inside: avoid; gap: 10px; }
.tm-side-struct { display: none; flex-direction: column; gap: 6px; min-height: 0; flex: 1 1 auto; }
.tm-side-sub { margin: 4px 0 0; flex: none; font-size: .85rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.tm-side-table-wrap { flex: 1 1 auto; min-height: 140px; overflow-y: auto; overflow-x: hidden; position: relative; overscroll-behavior: contain; scrollbar-width: thin; }
.tm-side-table thead th { position: sticky; top: 0; z-index: 1; background: var(--panel); }
.tm-side-table { width: 100%; }
.tm-side-table td, .tm-side-table th { padding: 5px 6px; }

/* commandes */
.tm-ctl { flex: none; display: flex; justify-content: center; align-items: center; gap: 10px; padding: 10px 12px; border-top: 1px solid var(--line); }
.tm-btn { min-width: 56px; height: 56px; padding: 0 14px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--panel-2); color: var(--text); border: 1px solid var(--line); border-radius: 14px; font-size: 1rem; }
.tm-btn:hover { border-color: var(--accent); filter: none; }
.tm-play { min-width: 170px; background: var(--accent); color: var(--accent-ink); border-color: var(--accent); font-size: 1.1rem; }
.tm.is-paused .tm-play { background: var(--gold); border-color: var(--gold); }
.tm-play:hover { filter: brightness(1.08); border-color: var(--accent); }
.tm-quick { display: none; gap: 8px; padding: 0 10px 10px; flex: none; }
.tm-q { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.tm-q[hidden] { display: none; }
.tm-q-l { text-align: center; font-size: .8rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tm-q-l span { color: var(--text); font-weight: 700; }
.tm-q-b { display: flex; gap: 4px; }
.tm-quick button { flex: 1; min-width: 0; min-height: 46px; padding: 0; font-size: 1.5rem; line-height: 1; font-weight: 700; color: var(--accent); background: var(--panel-2); border: 1px solid var(--line); border-radius: 12px; touch-action: manipulation; }
.tm-quick button:disabled { opacity: .35; }

/* feuilles (structure, réglages) */
.tm-sheet { position: absolute; inset: 0; z-index: 5; display: flex; justify-content: center; align-items: flex-end; background: rgba(0,0,0,.55); padding: 12px; }
.tm-sheet-center { align-items: center; }
.tm-sheet-in { width: min(720px, 100%); max-height: 100%; display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; -webkit-user-select: text; user-select: text; }
.tm-sheet-center .tm-sheet-in { width: min(420px, 100%); }
.tm-sheet-center .tm-sheet-h { justify-content: center; text-align: center; }
.tm-sheet-h { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.tm-fireworks { position: absolute; inset: 0; z-index: 6; pointer-events: none; }

/* résultat : fin de tournoi */
.tm-end { text-align: center; padding-top: 4px; }
.tm-end-trophy { width: 148px; height: 148px; margin: 4px auto 10px; border-radius: 50%; overflow: hidden; border: 3px solid var(--gold); box-shadow: 0 0 0 4px rgba(241,196,15,.15), 0 8px 28px rgba(241,196,15,.28); animation: tm-trophy-in .6s cubic-bezier(.2,1.3,.4,1) both; }
.tm-end-trophy img { display: block; width: 100%; height: 100%; object-fit: cover; }
.tm-end-rank { display: inline-flex; align-items: center; gap: 12px; }
.tm-end-medal { width: 40px; height: auto; flex: none; filter: drop-shadow(0 2px 3px rgba(0,0,0,.4)); }
.tm-end-pay div { align-items: center; }
@keyframes tm-trophy-in { from { transform: scale(.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .tm-end-trophy { animation: none; } }
.tm-end-pool { margin-bottom: 0; }
.tm-end-pool div { padding: 2px 4px; align-items: baseline; }
.tm-end-pool dt { color: var(--muted); font-size: .8rem; }
.tm-end-pool dd { font-size: 1.15rem; font-weight: 800; color: var(--accent); }
.tm-end-pay { gap: 0; }
.tm-end-pay div { padding: 12px 6px; font-size: 1.3rem; border-bottom: 1px solid var(--line); }
.tm-end-pay div:last-child { border-bottom: none; }
.tm-end-home { display: block; margin: 18px auto 0; min-width: 220px; }
.tm-sheet-h h2 { margin: 0; }
.tm-sheet-b { overflow-y: auto; padding: 8px 14px 16px; }
.tm-table td, .tm-table th { padding: 8px 6px; }
.tm-table td.num { white-space: nowrap; }
.tm-table td:last-child { font-size: .8rem; color: var(--muted); }
.tm-table tr.now td:last-child { color: var(--text); }
.tm-table tr.past td { color: var(--muted); opacity: .6; }
.tm-table tr.now td { background: rgba(46,230,166,.14); font-weight: 700; }
.tm-table tr.brk td { color: var(--gold); background: rgba(233,196,106,.07); }
.tm-table tr.now.brk td { background: rgba(233,196,106,.2); }
.tm-form { display: grid; gap: 16px; }
.tm-share { display: grid; gap: 6px; justify-items: start; color: var(--muted); font-size: .88rem; }
.tm-code { font-size: 2.2rem; letter-spacing: .25em; color: var(--accent); font-variant-numeric: tabular-nums; background: none; border: none; padding: 0; font-family: inherit; cursor: pointer; }
.tm-code:hover, .tm-code:focus-visible { text-decoration: underline; }
.tm-share .hint { margin: 0; }
/* feuille code QR */
.tm-qr { justify-items: center; text-align: center; }
.tm-qr-box { position: relative; background: #fff; padding: 14px; border-radius: 14px; line-height: 0; }
.tm-qr-box svg { display: block; width: 220px; height: 220px; max-width: 100%; }
.tm-qr-logo {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  background: #fff; padding: 6px 8px; border-radius: 8px; line-height: 0; pointer-events: none;
}
.tm-qr-logo img { display: block; width: 64px; height: auto; }
.tm-qr-code { font-size: 1.6rem; letter-spacing: .25em; color: var(--accent); font-variant-numeric: tabular-nums; }
.tm-sync-txt { font-size: .82rem; }
/* administration : administrateur / lecture seule */
.tm.is-viewer [data-admin], .tm:not(.is-viewer) [data-viewer] { display: none !important; }
.tm-admin { display: grid; gap: 8px; justify-items: start; padding: 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg-2); color: var(--muted); font-size: .88rem; }
.tm-admin > strong { color: var(--text); font-size: .95rem; }
.tm-admin .hint { margin: 0; }
.tm-admin .field { width: 100%; }
.tm-admin.ro { border-color: rgba(233,196,106,.45); }
.tm-admin.ro > strong { color: var(--gold); }
.tm-key { font-size: 1.4rem; letter-spacing: .18em; color: var(--gold); font-variant-numeric: tabular-nums; }
.tm-adm-fields { display: grid; gap: inherit; }
.tm-lock { display: flex !important; align-items: center; justify-content: center; padding: 0; color: var(--gold); border-color: rgba(233,196,106,.45); }
.tm-lock span { font-size: .78rem; font-weight: 700; white-space: nowrap; }
.tm-act { background: var(--panel-2); color: var(--accent); border: 1px solid var(--accent); min-height: 46px !important; }
.tm-breaks { display: grid; gap: 12px; }
.tm-breaks input:disabled { opacity: 0.45; }
.tm-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tm-row2 .field[hidden] + .field, .tm-row2 .field:only-child { grid-column: 1 / -1; }
.tm-danger { background: transparent; color: var(--danger); border: 1px solid var(--danger); min-height: 48px !important; }
.tm-toast { position: absolute; left: 50%; bottom: 96px; transform: translateX(-50%); z-index: 6; margin: 0; padding: 10px 16px; border-radius: 12px; background: var(--panel-2); border: 1px solid var(--accent); color: var(--accent); font-weight: 600; font-size: .9rem; box-shadow: 0 10px 30px rgba(0,0,0,.4); white-space: nowrap; }

/* Deal Calculator */
.tm-deal { gap: 12px; }
.tm-deal .hint { margin: 0; }
.tm-seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.tm-seg button { min-height: 44px; padding: 0 6px; font-size: .9rem; font-weight: 700; color: var(--text); background: var(--panel-2); border: 1px solid var(--line); border-radius: 12px; touch-action: manipulation; }
.tm-seg button[aria-pressed="true"] { color: var(--accent); border-color: var(--accent); background: rgba(46,230,166,.12); }
.tm-deal-n { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .88rem; }
.tm-deal-n strong { min-width: 2ch; text-align: center; color: var(--text); font-size: 1.1rem; font-variant-numeric: tabular-nums; }
.tm-deal-n .tm-mini { margin-left: auto; }
.tm-deal-n .tm-mini + strong + .tm-mini { margin-left: 0; }
.tm-deal-prizes summary { cursor: pointer; color: var(--muted); font-size: .88rem; padding: 6px 0; }
.tm-deal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; padding-top: 6px; }
.tm-deal-grid .field { gap: 4px; }
.tm-deal input[type="number"] { width: 100%; min-width: 0; min-height: 42px; font-variant-numeric: tabular-nums; }
.tm-deal-rows { display: grid; gap: 6px; }
.tm-deal-h, .tm-deal-r, .tm-deal-t { display: grid; grid-template-columns: 3.2ch minmax(0, 1fr) minmax(0, 1.1fr); gap: 10px; align-items: center; }
.tm-deal-h { color: var(--muted); font-size: .78rem; padding: 0 2px; }
.tm-deal-r > span:first-child { color: var(--muted); font-variant-numeric: tabular-nums; text-align: center; }
.tm-deal .num { text-align: right; font-variant-numeric: tabular-nums; }
.tm-deal-r .num { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.2; }
.tm-deal-r .num strong { color: var(--gold); font-size: 1.1rem; }
.tm-deal-r .num small { color: var(--muted); font-size: .72rem; }
.tm-deal-t { border-top: 1px solid var(--line); padding: 8px 2px 0; color: var(--muted); font-size: .88rem; }
.tm-deal-t .num strong { color: var(--text); }

/* grand écran : panneau latéral visible en permanence */
@media (min-width: 900px) and (min-height: 540px) {
  /* le panneau de droite (compteurs, gains, structure) descend jusqu'en bas de l'écran :
     la barre de commandes n'occupe que la colonne de gauche */
  .tm { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 22vw); grid-template-rows: auto minmax(0, 1fr) auto; }
  .tm-body { display: contents; }
  .tm-top { grid-column: 1 / -1; grid-row: 1; }
  .tm-main { grid-column: 1; grid-row: 2; padding: 12px 28px; }
  .tm-side { grid-column: 2; grid-row: 2 / span 2; min-height: 0; }
  .tm-ctl { grid-column: 1; grid-row: 3; }
  .tm [data-only="narrow"] { display: none !important; }
  .tm-side-struct { display: flex; }
  .tm.side-closed { grid-template-columns: minmax(0, 1fr); }
  .tm.side-closed .tm-side { display: none; }
}
/* écran étroit ou peu haut (smartphone) : l'écran principal occupe toute la hauteur,
   compteurs, gains et structure (toujours développée) sont placés en dessous, en défilant */
@media not all and (min-width: 900px) and (min-height: 540px) {
  .tm-body { display: flex; flex-direction: column; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
  .tm-main { flex: 0 0 100%; }
  .tm-side { flex: none; position: static; width: auto; transform: none; transition: none; box-shadow: none; overflow: visible; min-height: auto; border-left: 0; border-top: 1px solid var(--line); padding: 14px 14px 24px; }
  .tm-side-h { display: none; }
  .tm-side-struct { display: flex; flex: none; }
  .tm-side-table-wrap { flex: none; overflow: visible; min-height: auto; }
  .tm-side-table thead th { position: static; }
  .tm-sidebtn { display: none !important; }
  .tm-quick { display: flex; }
  .tm-back span { display: none; }
  .tm-back { padding: 6px; }
}
/* smartphone en portrait */
@media (max-width: 600px) {
  .tm-top { padding: 6px 8px; gap: 6px; }
  .tm-title { gap: 8px; }
  .tm-title strong { font-size: 1rem; }
  .tm-endline { font-size: .9rem; }
  .tm-sync { display: none; }
  .tm-icons { gap: 4px; }
  .tm-ico { width: 38px; height: 38px; }
  .tm-lock span { display: none; }
  .tm-lock { padding: 0; width: 38px !important; }
  .tm-main { padding: 4px 10px; }
  .tm-ctl { gap: 6px; padding: 8px; }
  .tm-btn { min-width: 48px; height: 52px; padding: 0 10px; }
  .tm-play { min-width: 0; flex: 1; }
  .tm-txt { font-size: .85rem; }
  .tm-toast { bottom: 140px; }
}
@media (max-width: 400px) { .tm [data-a="full"] { display: none; } }
@media (max-width: 360px) {
  .tm-title span:not(.tm-endline) { display: none; }
}
/* très peu de hauteur : seules les 3 informations prioritaires restent */
@media (max-height: 640px) { .tm-next { display: none; } }
@media (max-height: 420px) {
  .tm-quick { display: none !important; }
  .tm-cap:not(.tm-lvl), .tm-ante:empty { display: none; }
}
/* smartphone en paysage : blinds et chrono côte à côte */
@media (orientation: landscape) and (max-height: 540px) {
  .tm-main { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: minmax(0, 1fr) auto auto; gap: 4px 18px; padding: 4px 14px; }
  .tm-bar { grid-column: 1 / -1; justify-self: center; }
  .tm-blinds-box, .tm-clock-box { min-height: 0; }
  .tm-info { grid-column: 1 / -1; flex-direction: row; justify-content: center; gap: 18px; }
  .tm-top { padding: 4px 8px; }
  .tm-ico { width: 36px; height: 36px; }
  .tm-ctl { padding: 6px 8px; }
  .tm-btn { height: 44px; }
  .tm-quick { padding-bottom: 6px; }
  .tm-quick button { min-height: 38px; }
  .tm-toast { bottom: 70px; }
}
/* heure de fin (barre du haut) : toujours centree sur "Niveau N", donc sur la zone principale (hors panneau de droite) */
@media (min-width: 900px) and (min-height: 540px) {
  .tm { --tm-side-w: max(280px, 22vw); }
  .tm.side-closed { --tm-side-w: 0px; }
}
@media (min-width: 1101px) {
  .tm-top { position: relative; }
  .tm-endline { position: absolute; top: 0; bottom: 0; left: 0; right: var(--tm-side-w, 0px); display: flex; align-items: center; justify-content: center; pointer-events: none; z-index: 0; }
  .tm-top > :not(.tm-title) { position: relative; z-index: 1; }
}
/* fenetre plus etroite : l'heure de fin passe sur une 2e ligne de la barre du haut, centree sur la largeur (= celle de "Niveau N") */
@media (max-width: 1100px) {
  .tm-top { flex-wrap: wrap; row-gap: 2px; }
  .tm-icons { margin-left: auto; }
  .tm-title { order: 3; flex: 0 0 100%; justify-content: center; }
  .tm-endline { display: block; width: 100%; text-align: center; }
}
@media (max-height: 420px) { .tm-endline { display: none !important; } }
@media print { .tm, .launch { display: none !important; } }
@media (prefers-reduced-motion: reduce) { .tm-paused { animation: none; } .tm-side { transition: none; } }

/* =====================================================================
   Bouton mode clair / sombre (en-tête) et thème clair
   Thème sombre par défaut ; le thème clair est activé par <html data-theme="light">
   ===================================================================== */
.theme-btn {
  display: inline-grid; place-items: center; flex: none;
  width: 44px; height: 44px; padding: 0; cursor: pointer;
  color: var(--lang-fg); background: transparent;
  border: 1px solid var(--lang-border); border-radius: 10px;
}
.theme-btn:hover { background: var(--lang-hover); }
.theme-btn:focus-visible { outline: 3px solid var(--lang-focus); outline-offset: 2px; }
.theme-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.theme-btn .ic-moon { display: none; }
:root[data-theme="light"] .theme-btn .ic-sun { display: none; }
:root[data-theme="light"] .theme-btn .ic-moon { display: block; }
@media (max-width: 420px) { .top-in { gap: 8px; } }

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #c5d3ca;
  --bg-2: #d3dfd7;
  --panel: #dbe5de;
  --panel-2: #cbd9d0;
  --line: #a9bdb1;
  --text: #0e2117;
  --muted: #435d4f;
  --accent: #08744f;
  --accent-ink: #ffffff;
  --gold: #946600;
  --warn: #b85f0a;
  --danger: #c93636;
  --lang-border: rgba(16, 37, 26, .28);
  --lang-hover: rgba(11, 138, 95, .1);
}
:root[data-theme="light"] body { background: radial-gradient(1200px 600px at 20% -10%, #b4cbbd 0%, transparent 60%), var(--bg); background-attachment: fixed; }
:root[data-theme="light"] .top { background: rgba(197, 211, 202, .92); }
:root[data-theme="light"] .menu,
:root[data-theme="light"] .lang-menu__list { box-shadow: 0 10px 30px rgba(16, 37, 26, .15); }
:root[data-theme="light"] .menu-btn:hover, :root[data-theme="light"] .menu-btn[aria-expanded="true"],
:root[data-theme="light"] .menu-item:hover, :root[data-theme="light"] .menu-item:focus-visible,
:root[data-theme="light"] .navlink:hover, :root[data-theme="light"] .fold:hover { background: rgba(11, 138, 95, .1); }
:root[data-theme="light"] .switch i { background: #a3b9ac; }
:root[data-theme="light"] .switch input:checked + i { background: var(--accent); }
:root[data-theme="light"] .switch input:checked + i::after { background: #eef3ef; }
:root[data-theme="light"] .alert.warn, :root[data-theme="light"] .tag-rebuy { color: #8a4600; }
:root[data-theme="light"] .alert.err, :root[data-theme="light"] .tag-last { color: #a12424; }
:root[data-theme="light"] .launch { background: linear-gradient(135deg, #c6ddcf, var(--panel)); border-color: rgba(11, 138, 95, .45); }
:root[data-theme="light"] .tm { background: radial-gradient(1200px 700px at 30% -10%, rgba(176,205,188,.7) 0%, transparent 60%), linear-gradient(rgba(219,229,222,.65), rgba(219,229,222,.65)), url(assets/poker-table-bg-light.webp) center / cover no-repeat, var(--bg); }
:root[data-theme="light"] .tm.is-break { background: radial-gradient(1200px 700px at 30% -10%, rgba(227,207,142,.7) 0%, transparent 60%), linear-gradient(rgba(230,220,180,.7), rgba(230,220,180,.7)), url(assets/poker-table-bg-light.webp) center / cover no-repeat, #e6dcc0; }
:root[data-theme="light"] .tm-side { background: rgba(219, 229, 222, .95); }
:root[data-theme="light"] .tm-sheet { background: rgba(16, 37, 26, .35); }
:root[data-theme="light"] .tm-table tr.now td { background: rgba(11, 138, 95, .14); }
/* pages de contenu (styles intégrés aux pages) */
:root[data-theme="light"] .doc strong { color: var(--text); }
:root[data-theme="light"] .sb { color: #10251a; }
:root[data-theme="light"] .sr { color: #c93636; }
:root[data-theme="light"] .box { background: rgba(11, 138, 95, .07); border-color: rgba(11, 138, 95, .35); }
:root[data-theme="light"] .totop { box-shadow: 0 6px 18px rgba(16, 37, 26, .2); }

/* Boîte de dialogue "Rejoindre une partie" (menu.js) */
.jd-dialog {
  border: none; border-radius: var(--radius); background: var(--panel); color: var(--text);
  padding: 20px; width: min(380px, calc(100vw - 32px)); box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
}
.jd-dialog::backdrop { background: rgba(0, 0, 0, .6); }
.jd-dialog h3 { margin: 0 0 14px; font-size: 1.05rem; color: var(--text); }
.jd-field { display: grid; gap: 6px; margin-bottom: 14px; }
.jd-field span { font-size: .85rem; color: var(--muted); }
.jd-field input {
  width: 100%; min-height: 46px; font: inherit; font-size: 1rem; color: var(--text);
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px;
}
.jd-field input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(46, 230, 166, .18); }
.jd-field input[data-jd="code"] { text-transform: uppercase; letter-spacing: .2em; font-weight: 700; }
.jd-hint { margin: 0 0 16px; color: var(--muted); font-size: .82rem; }
.jd-actions { display: flex; gap: 10px; justify-content: flex-end; }
.jd-ok, .jd-cancel {
  min-height: 46px; padding: 10px 22px; border-radius: 999px; font-weight: 700; font-size: .95rem;
  cursor: pointer; border: 1px solid transparent; font: inherit;
}
.jd-ok { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.jd-ok:hover { filter: brightness(1.08); }
.jd-cancel { background: transparent; color: var(--text); border-color: var(--line); }
.jd-cancel:hover { border-color: var(--accent); color: var(--accent); }
:root[data-theme="light"] .jd-dialog::backdrop { background: rgba(16, 37, 26, .35); }

/* Champ "Code de la partie" avec liste déroulante des parties de l'appareil (menu.js) */
.jd-combo { position: relative; }
.jd-combo input { width: 100%; }
.jd-combo-btn {
  position: absolute; top: 0; right: 0; bottom: 0; width: 44px; display: flex; align-items: center; justify-content: center;
  background: transparent; color: var(--muted); border: none; border-radius: 0 10px 10px 0; cursor: pointer; padding: 0;
}
.jd-combo-btn:hover, .jd-combo-btn:focus-visible { color: var(--accent); outline: none; }
.jd-combo-btn[aria-expanded="true"] .jd-combo-ic { transform: rotate(180deg); }
.jd-combo-ic { width: 20px; height: 20px; transition: transform .15s; }
.jd-combo-list { display: grid; gap: 6px; margin: -6px 0 14px; max-height: 220px; overflow-y: auto; }
.jd-combo-list[hidden] { display: none; }
.jd-combo-item {
  display: grid; gap: 2px; text-align: left; min-height: 48px; padding: 8px 14px; width: 100%;
  background: var(--bg-2); color: var(--text); border: 1px solid var(--line); border-radius: 10px; font: inherit; cursor: pointer;
}
.jd-combo-item:hover, .jd-combo-item:focus-visible { border-color: var(--accent); outline: none; }
.jd-combo-code { font-weight: 700; letter-spacing: .2em; color: var(--accent); }
.jd-combo-info { font-size: .8rem; color: var(--muted); }
.jd-combo-empty { margin: 0; color: var(--muted); font-size: .82rem; }

/* Bouton "Scanner un QR code" (boîte "Rejoindre une partie" + formulaire de structure.html) */
.jd-scan-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
  min-height: 46px; margin-bottom: 14px; padding: 8px 14px; border-radius: 10px;
  background: var(--bg-2); color: var(--text); border: 1px solid var(--line);
  font: inherit; font-size: .92rem; font-weight: 600; cursor: pointer;
}
.jd-scan-btn:hover { border-color: var(--accent); color: var(--accent); }
.jd-scan-ic { width: 20px; height: 20px; flex: none; fill: currentColor; }
.jd-scan-ic circle { fill: var(--bg-2); }

/* Boîte de dialogue de scan (caméra) */
.qr-scan-dialog {
  border: none; border-radius: var(--radius); background: var(--panel); color: var(--text);
  padding: 20px; width: min(380px, calc(100vw - 32px)); box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
}
.qr-scan-dialog::backdrop { background: rgba(0, 0, 0, .6); }
.qr-scan-dialog h3 { margin: 0 0 14px; font-size: 1.05rem; color: var(--text); }
.qr-scan-view { position: relative; width: 100%; aspect-ratio: 1 / 1; border-radius: 12px; overflow: hidden; background: #000; margin-bottom: 14px; }
.qr-scan-view video { width: 100%; height: 100%; object-fit: cover; display: block; }
.qr-scan-frame { position: absolute; inset: 14%; border: 2px solid rgba(46, 230, 166, .85); border-radius: 16px; box-shadow: 0 0 0 999px rgba(0, 0, 0, .35); pointer-events: none; }
.qr-scan-hint { margin: 0 0 14px; }
.qr-scan-dialog .jd-actions { justify-content: center; }
:root[data-theme="light"] .qr-scan-dialog::backdrop { background: rgba(16, 37, 26, .35); }

/* ----- smartphone : zone structure plus lisible ----- */
@media screen and (max-width: 640px) {
  /* l'en-tête (2 lignes) ne reste plus collé en haut : il masquait un quart de l'écran */
  .top { position: relative; z-index: 20; }
  #resultats { scroll-margin-top: 12px; }
  .panel, .card { padding: 14px 12px; }
  /* boutons Copier / CSV / Imprimer sur une seule ligne */
  .tools { flex-wrap: nowrap; gap: 6px; }
  .tools button { flex: 1 1 0; min-width: 0; padding: 8px 6px; font-size: 0.82rem; white-space: nowrap; }
  /* tableau : colonnes compactes, chiffres bien alignés */
  .table-wrap { margin: 0 -6px; padding: 0 6px; }
  #structure { table-layout: auto; }
  #structure th, #structure td { padding: 8px 5px; }
  #structure th { font-size: 0.66rem; letter-spacing: 0.03em; }
  #structure .c-lvl { width: 30px; font-size: 0.95rem; }
  #structure .c-time { white-space: nowrap; }
  #structure .c-time .clk { font-size: 0.95rem; }
  #structure .c-time .el { font-size: 0.72rem; }
  #structure .c-sb, #structure .c-bb { font-size: 1.05rem; white-space: nowrap; }
  #structure .num { padding-left: 10px; }
  #structure .c-notes { font-size: 0.8rem; line-height: 1.35; }
  #structure .tag { font-size: 0.68rem; padding: 2px 6px; margin: 1px 3px 1px 0; }
  .row-break td { padding: 10px 6px; font-size: 0.85rem; }
  .row-break strong, .row-break .break-when { display: block; margin: 0 0 2px; }
}

/* ----- photos (hors ecran de jeu) ----- */
.photo { margin: 0; position: relative; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--line); background: var(--panel); grid-column: 1 / -1; }
.photo img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 6; object-fit: cover; }
.photo--slim img { aspect-ratio: 16 / 4; }
.photo--inline img { aspect-ratio: 16 / 7; }
.photo figcaption { position: absolute; right: 8px; bottom: 6px; max-width: calc(100% - 16px); font-size: .68rem; line-height: 1.3; padding: 2px 8px; border-radius: 6px; background: rgba(0,0,0,.6); color: #e8efe9; }
.photo figcaption a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 600px) { .photo img, .photo--slim img, .photo--inline img { aspect-ratio: 16 / 9; } }
html.tm-on .photo { display: none; }
@media print { .photo { display: none !important; } }

/* bouton de theme de l'ecran de partie : soleil en mode sombre, lune en mode clair (comme l'en-tete) */
.tm .tm-theme .ic-moon { display: none; }
:root[data-theme="light"] .tm .tm-theme .ic-sun { display: none; }
:root[data-theme="light"] .tm .tm-theme .ic-moon { display: block; }

/* animation de la bulle (voir timer.js) */
.tm-bubble { position: absolute; inset: 0; z-index: 7; pointer-events: none; }
.tm-bubble [hidden] { display: none !important; }
.tm-bubble-splash { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; pointer-events: auto; cursor: pointer; overflow: hidden; background: #000; animation: tm-bub-fade .6s ease both; }
.tm-bubble-splash.out { animation: tm-bub-fadeout .5s ease both; }
.tm-bubble-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; animation: tm-bub-zoom 9s ease-out both; }
.tm-bubble-big { position: relative; width: min(52vmin, 340px); aspect-ratio: 1; mix-blend-mode: screen; filter: drop-shadow(0 0 40px rgba(200,120,255,.55)); animation: tm-bub-rise 1.4s cubic-bezier(.2,.9,.3,1.15) both, tm-bub-float 4s ease-in-out 1.4s infinite; }
.tm-bubble-big img { display: block; width: 100%; height: 100%; }
.tm-bubble-txt { position: relative; text-align: center; color: #fff; padding: 0 20px; text-shadow: 0 2px 18px rgba(0,0,0,.8); animation: tm-bub-text .8s ease .6s both; }
.tm-bubble-txt strong { display: block; font-size: clamp(2.2rem, 9vw, 4rem); letter-spacing: .04em; text-transform: uppercase; background: linear-gradient(90deg, #7ee7ff, #ff7ee8, #ffe97e, #7effb5, #7ee7ff); background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: none; filter: drop-shadow(0 2px 14px rgba(0,0,0,.7)); animation: tm-bub-irid 4s linear infinite; }
.tm-bubble-txt span { display: block; margin-top: 6px; font-size: clamp(1rem, 3.6vw, 1.4rem); opacity: .92; }
.tm-bubble-badge { position: absolute; left: 12px; bottom: 12px; width: 76px; height: 76px; animation: tm-bub-float 3.6s ease-in-out infinite; filter: drop-shadow(0 4px 12px rgba(0,0,0,.45)); }
.tm-bubble-badge img { display: block; width: 100%; height: 100%; border-radius: 50%; }
.tm-bubble-badge span { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: #fff; text-shadow: 0 1px 6px rgba(0,0,0,.9); }
.tm-bubble-pop { position: absolute; left: 50%; top: 50%; width: 0; height: 0; }
.tm-bubble-pop i { position: absolute; left: 0; top: 0; width: var(--s); height: var(--s); margin: calc(var(--s) / -2); border-radius: 50%; background: radial-gradient(circle at 30% 30%, #fff, rgba(126,231,255,.7) 45%, rgba(255,126,232,.5)); opacity: 0; }
.tm-bubble-pop::before { content: ""; position: absolute; left: -90px; top: -90px; width: 180px; height: 180px; border-radius: 50%; background: url(/assets/bulle/bulle-verte.webp) center/cover; opacity: 0; }
.tm-bubble-pop.go::before { animation: tm-bub-burst .55s ease-out both; }
.tm-bubble-pop.go i { animation: tm-bub-spray .9s ease-out .15s both; }
.tm-bubble-pop p { position: absolute; left: 0; top: 0; transform: translate(-50%, -50%); margin: 0; white-space: nowrap; font-weight: 800; font-size: clamp(1.4rem, 6vw, 2.4rem); color: #fff; text-shadow: 0 2px 16px rgba(0,0,0,.85); opacity: 0; }
.tm-bubble-pop.go p { animation: tm-bub-poptxt 2.6s ease .3s both; }
@keyframes tm-bub-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes tm-bub-fadeout { from { opacity: 1; } to { opacity: 0; } }
@keyframes tm-bub-zoom { from { transform: scale(1.12); } to { transform: scale(1); } }
@keyframes tm-bub-rise { from { transform: translateY(60vh) scale(.3); opacity: 0; } to { transform: translateY(0) scale(1); opacity: 1; } }
@keyframes tm-bub-float { 0%, 100% { transform: translate(0, 0) scale(1, 1); } 25% { transform: translate(6px, -10px) scale(1.02, .98); } 50% { transform: translate(0, -16px) scale(.98, 1.02); } 75% { transform: translate(-6px, -8px) scale(1.02, .98); } }
@keyframes tm-bub-text { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes tm-bub-irid { to { background-position: 300% 0; } }
@keyframes tm-bub-burst { 0% { opacity: .95; transform: scale(.9); } 60% { opacity: .7; transform: scale(1.5); } 100% { opacity: 0; transform: scale(2); } }
@keyframes tm-bub-spray { 0% { opacity: 1; transform: translate(0, 0) scale(.4); } 100% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(1.2); } }
@keyframes tm-bub-poptxt { 0% { opacity: 0; transform: translate(-50%, -50%) scale(.6); } 15% { opacity: 1; transform: translate(-50%, -50%) scale(1.1); } 25% { transform: translate(-50%, -50%) scale(1); } 80% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -80%) scale(1); } }
@media (prefers-reduced-motion: reduce) {
  .tm-bubble-big, .tm-bubble-badge, .tm-bubble-bg, .tm-bubble-txt strong { animation: none; }
}
a.suit { text-decoration: none; cursor: pointer; }
a.suit:hover, a.suit:focus-visible { filter: brightness(1.1); outline: 2px solid var(--accent); outline-offset: 2px; }

/* bandeau animé de la page des gains (voir currency.js) */
.cash-show { aspect-ratio: 16 / 6; background: #0b1f17; }
.photo.cash-show img.cash-slide { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; opacity: 0; transform: scale(1.02); transition: opacity 1.2s ease; }
.photo.cash-show img.cash-slide.on { opacity: 1; z-index: 1; animation: cash-kb 7s ease-out both; }
.cash-show::after { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; background: radial-gradient(ellipse at center, transparent 55%, rgba(0,0,0,.35)); }
@keyframes cash-kb { from { transform: scale(1.02) translate3d(0, 0, 0); } to { transform: scale(1.12) translate3d(-1.5%, -1%, 0); } }
@media (max-width: 600px) { .cash-show { aspect-ratio: 16 / 9; } }
@media (prefers-reduced-motion: reduce) { .photo.cash-show img.cash-slide.on { animation: none; transform: none; } }

/* fenêtre "code administrateur requis" (carte de lancement) */
.launch-modal { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(0,0,0,.55); }
.launch-modal[hidden] { display: none; }
.launch-modal-in { width: min(420px, 100%); display: grid; gap: 14px; padding: 18px; background: var(--panel); border: 1px solid var(--line); border-radius: 18px; text-align: center; }
.launch-modal-in h2 { margin: 0; }
.launch-modal-in p { margin: 0; }
:root[data-theme="light"] .launch-modal { background: rgba(16, 37, 26, .35); }
