:root { --bg: #0b0907; --gold: #e3b04b; --gold-2: #f5d27a; --text: #f1e9da; --muted: #a99b86; --line: rgba(245,210,122,.18); }
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(214,112,52,.22), transparent 70%),
    radial-gradient(ellipse 100% 60% at 50% 120%, rgba(120,30,20,.28), transparent 60%),
    var(--bg);
  background-attachment: fixed;
  color: var(--text); font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; min-height: 100vh;
}
a { color: var(--gold-2); }
.wrap { max-width: 980px; margin: 0 auto; padding: 18px 16px 60px; }
header.site { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 22px; }
.logo { font: 900 26px/1.1 Georgia, "Times New Roman", serif; letter-spacing: .16em; color: var(--gold-2); text-shadow: 0 0 22px rgba(227,176,75,.35); text-decoration: none; }
/* Poker Arena (1.4.0) : pique au neon cyan devant le nom */
.logo span { color: #eafeff; letter-spacing: 0; margin-right: .35em; text-shadow: 0 0 6px #2ef2ff, 0 0 14px #2ef2ff, 0 0 26px rgba(46,242,255,.6); }
.user { color: var(--muted); font-size: 14px; display: flex; gap: 10px; align-items: center; }
h2 { font-weight: 600; letter-spacing: .06em; color: var(--gold-2); font-size: 18px; margin: 28px 0 12px; text-transform: uppercase; }
.card {
  background: linear-gradient(180deg, rgba(32,25,20,.95), rgba(18,14,11,.95)); border: 1px solid var(--line);
  border-radius: 16px; padding: 18px; box-shadow: 0 14px 40px rgba(0,0,0,.45);
}
.grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
label.f { display: block; font-size: 13px; color: var(--muted); margin: 10px 0 4px; }
input[type=text], input[type=password], input[type=email], input[type=number], input[type=datetime-local], select, textarea {
  width: 100%; padding: 11px 12px; border-radius: 10px; border: 1px solid var(--line); background: #120e0b; color: var(--text);
  font: inherit; font-size: 16px;
}
textarea { font-family: Consolas, monospace; font-size: 13px; min-height: 120px; }
input[type=range] { width: 100%; accent-color: var(--gold); }
button, .button {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 11px 18px; border-radius: 11px;
  border: 1px solid rgba(255,255,255,.12); font: inherit; font-weight: 700; font-size: 15px; cursor: pointer;
  color: #1d1206; background: linear-gradient(180deg, #d9a440, #9a6c1b); text-decoration: none;
  box-shadow: 0 4px 14px rgba(0,0,0,.4);
}
button.ghost, .button.ghost { background: rgba(255,255,255,.05); color: var(--text); border-color: var(--line); box-shadow: none; }
button.green, .button.green { background: linear-gradient(180deg, #2e7d69, #1a4f42); color: #fff; }
button.red { background: linear-gradient(180deg, #8e3427, #5f1e16); color: #fff; }
button:disabled { filter: grayscale(.8) brightness(.6); cursor: default; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 11px; overflow: hidden; }
.seg button { border: 0; border-radius: 0; background: transparent; color: var(--muted); box-shadow: none; padding: 9px 16px; }
.seg button.on { background: linear-gradient(180deg, #d9a440, #9a6c1b); color: #1d1206; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.row > * { flex: 1 1 auto; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.err { color: #ff8a70; min-height: 20px; font-size: 14px; margin-top: 8px; }
.t-name { font-size: 18px; font-weight: 600; margin-bottom: 6px; }
.t-meta { color: var(--muted); font-size: 14px; line-height: 1.6; }
.t-meta b { color: var(--text); font-weight: 600; }
.pill { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.pill.open { background: #1f5a4a; color: #bff0dd; } .pill.closed { background: #4a3a34; color: #e2cdbd; }
/* niveau des robots : vert = debutant, orange = intermediaire, rouge = difficile */
.lvl { flex: 0 0 auto !important; display: inline-flex; align-items: center; gap: 5px; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; border: 1px solid transparent; }
.lvl::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.lvl-1 { background: rgba(46,160,90,.16); color: #6fdc98; border-color: rgba(46,160,90,.45); }
.lvl-2 { background: rgba(230,140,30,.16); color: #ffb54d; border-color: rgba(230,140,30,.45); }
.lvl-3 { background: rgba(215,60,50,.18); color: #ff7b6e; border-color: rgba(215,60,50,.5); }
.lvl-4 { background: rgba(123,79,214,.22); color: #c9b2ff; border-color: rgba(150,110,240,.6); }   /* Expert 🦈 */
.seg.lvlseg button[data-v="1"].on { background: linear-gradient(180deg, #3cae6c, #1f6e41); color: #fff; }
.seg.lvlseg button[data-v="2"].on { background: linear-gradient(180deg, #f0a03a, #b06a12); color: #1d1206; }
.seg.lvlseg button[data-v="3"].on { background: linear-gradient(180deg, #e0574a, #98261c); color: #fff; }
.seg.lvlseg button[data-v="4"].on { background: linear-gradient(180deg, #7b4fd6, #3a1d7a); color: #fff; }
.pill.running { background: #9a6c1b; color: #fff1c9; } .pill.finished, .pill.cancelled, .pill.interrupted { background: #2b2a27; color: var(--muted); }
.count { font-size: 30px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--gold-2); }
.actions { margin-top: 14px; display: flex; gap: 8px; flex-wrap: wrap; }
.actions > * { flex: 1 1 auto; }
ol.res { margin: 8px 0 0; padding-left: 26px; color: var(--text); font-size: 14px; max-height: 220px; overflow: auto; }
table.list { width: 100%; border-collapse: collapse; font-size: 13px; }
table.list td, table.list th { padding: 5px 6px; border-bottom: 1px solid rgba(255,255,255,.06); text-align: left; }
table.list th { color: var(--muted); font-weight: 600; }
details summary { cursor: pointer; color: var(--muted); margin-top: 10px; }
.hide { display: none !important; }
/* bandeau « en cours » en haut du lobby */
#live { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.live-item {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap; cursor: pointer; text-align: left; width: 100%;
  padding: 12px 16px; border-radius: 14px; color: var(--text); font: inherit; font-size: 14px; font-weight: 400;
  background: linear-gradient(90deg, rgba(154,108,27,.35), rgba(32,25,20,.95) 55%);
  border: 1px solid rgba(245,210,122,.45); box-shadow: 0 8px 26px rgba(0,0,0,.45);
}
.live-item:hover { border-color: var(--gold-2); filter: brightness(1.12); }
/* parties ou il y a de vrais joueurs : bleu nuit translucide, bien visibles */
.card.with-humans {
  background: linear-gradient(180deg, rgba(26,52,104,.78), rgba(10,22,48,.82)); border-color: rgba(110,160,255,.65);
  box-shadow: 0 0 0 1px rgba(110,160,255,.22), 0 0 26px rgba(60,120,255,.28), 0 14px 40px rgba(0,0,0,.45);
}
.hum-tag {
  display: inline-flex; align-items: center; flex: 0 0 auto !important; white-space: nowrap; padding: 2px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 700; color: #d6e5ff; background: rgba(70,120,230,.3); border: 1px solid rgba(120,170,255,.6);
}
/* type de partie (lobby) : Sit & Go violet, tournoi vert d'eau ; la bande de gauche reste meme en bleu (vrais joueurs) */
.card.k-sng {
  background: linear-gradient(180deg, rgba(62,38,96,.92), rgba(26,17,40,.95)); border-color: rgba(176,124,255,.45);
  border-left: 6px solid #b07cff;
}
.card.k-tourn {
  background: linear-gradient(180deg, rgba(18,72,64,.92), rgba(10,32,29,.95)); border-color: rgba(63,193,165,.45);
  border-left: 6px solid #3fc1a5;
}
.card.k-sng.with-humans, .card.k-tourn.with-humans {      /* vrais joueurs : le bleu reste prioritaire */
  background: linear-gradient(180deg, rgba(26,52,104,.78), rgba(10,22,48,.82)); border-color: rgba(110,160,255,.65);
}
.card.k-sng.with-humans { border-left: 6px solid #b07cff; }
.card.k-tourn.with-humans { border-left: 6px solid #3fc1a5; }
.kind-tag {
  display: inline-flex; align-items: center; flex: 0 0 auto !important; white-space: nowrap; padding: 2px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 800; letter-spacing: .03em;
}
.kind-tag.sng { color: #eadcff; background: rgba(150,95,240,.35); border: 1px solid rgba(176,124,255,.7); }
.kind-tag.tourn { color: #d4fff3; background: rgba(40,160,135,.32); border: 1px solid rgba(63,193,165,.7); }
.live-item.with-humans { background: linear-gradient(90deg, rgba(44,88,180,.55), rgba(14,26,52,.94) 60%); border-color: rgba(120,170,255,.65); }
.live-item.next { background: linear-gradient(90deg, rgba(31,90,74,.45), rgba(32,25,20,.95) 55%); border-color: rgba(120,220,190,.35); }
.live-dot { width: 10px; height: 10px; border-radius: 50%; background: #e0452f; box-shadow: 0 0 10px #e0452f; animation: pulse 1.6s infinite; flex: 0 0 auto; }
.live-item.next .live-dot { background: #4fc79f; box-shadow: 0 0 10px #4fc79f; }
@keyframes pulse { 50% { opacity: .35; } }
.live-name { font-weight: 700; font-size: 16px; color: var(--gold-2); }
.live-meta { color: var(--muted); flex: 1 1 260px; }
.live-meta b { color: var(--text); font-weight: 600; }
.live-go { font-weight: 700; color: var(--gold-2); white-space: nowrap; }
/* 1.4.10 : « Joindre » grise quand on est elimine (bandeau du haut) */
.live-go .live-off { display: inline-block; margin-right: 10px; padding: 1px 8px; border: 1px solid rgba(255,255,255,.18);
  border-radius: 6px; color: rgba(255,255,255,.38); font-weight: 600; text-decoration: line-through; cursor: not-allowed; }
.modal { position: fixed; inset: 0; background: rgba(5,4,3,.78); display: flex; align-items: center; justify-content: center; z-index: 100; padding: 16px; }
.modal-box { width: min(560px, 100%); max-height: 90vh; overflow: auto; }
.modal-box h3 { margin: 0 0 6px; color: var(--gold-2); font-size: 20px; }
/* ---- ecran d'accueil (une fois par visite) : jeu gratuit, sans argent */
.splash {
  position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 20px;
  background:
    radial-gradient(ellipse 70% 45% at 50% 40%, rgba(214,112,52,.22), transparent 70%),
    radial-gradient(ellipse 100% 60% at 50% 120%, rgba(120,30,20,.35), transparent 60%),
    var(--bg);
  transition: opacity .6s ease, visibility .6s; cursor: pointer;
}
.splash.out { opacity: 0; visibility: hidden; }
.splash[hidden] { display: none; }
.splash-in { text-align: center; max-width: 420px; animation: splashUp .7s ease-out both; }
@keyframes splashUp { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
.splash-icon { display: block; width: 112px; height: 112px; margin: 0 auto; border-radius: 26px;
  box-shadow: 0 0 0 1px rgba(46,242,255,.35), 0 0 22px rgba(46,242,255,.35), 0 0 40px rgba(168,85,255,.25), 0 10px 30px rgba(0,0,0,.6); }
.splash-name { margin-top: 16px; font: 900 30px/1.1 Georgia, "Times New Roman", serif; letter-spacing: .1em;
  background: linear-gradient(180deg, #fff6d2, #f5d27a 45%, #b47a18); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 12px rgba(245,210,122,.35)); }
.splash-line { width: 200px; margin-top: 10px; }
.splash-sub { margin-top: 6px; color: var(--muted); font-size: 14px; letter-spacing: .04em; }
.splash-free {
  margin: 26px auto 0; padding: 16px 18px; border: 1px solid rgba(245,210,122,.35); border-radius: 14px;
  background: rgba(30,24,20,.75); text-align: left; display: grid; gap: 10px; font-size: 15px;
}
.splash-free div { display: flex; gap: 10px; align-items: flex-start; }
.splash-free b { color: var(--gold-2); }
.splash-free .i { flex: 0 0 auto; width: 22px; text-align: center; }
.splash-go { margin-top: 22px; min-width: 180px; }
.splash-hint { margin-top: 10px; font-size: 12px; color: var(--muted); }
.splash-by { margin-top: 26px; font-size: 13px; letter-spacing: .08em; color: var(--muted); }
.splash-by b { color: var(--gold-2); font-weight: 600; }
.lg-help { margin: 14px 0 0; text-align: center; }
.adm-list { list-style: none; margin: 6px 0 10px; padding: 0; }  /* 1.4.6 : administrateurs et leurs droits */
.adm-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.adm-rights { display: inline-flex; align-items: center; gap: 4px; flex: 1 1 auto; }
.adm-act { display: inline-flex; gap: 6px; }
img.adm-logo { height: 24px; max-width: 60px; object-fit: contain; background: rgba(255,255,255,.06); border-radius: 4px; padding: 2px; vertical-align: middle; }
.button.adm-btn { padding: 6px 12px; background: linear-gradient(180deg, #f5d27a, #c8902c); color: #1a1208; border-color: #f5d27a; font-weight: 700; text-decoration: none; }  /* 1.4.6 */
.splash-mail { margin-top: 8px; font-size: 13px; color: var(--muted); }
.splash-mail a, .free-note a { color: var(--gold-2); text-decoration: none; }
.splash-mail a:hover, .free-note a:hover { text-decoration: underline; }
.free-note { text-align: center; color: var(--muted); font-size: 12.5px; margin-top: 40px; }
/* ---- classement en direct (lobby) */
table.list td.r, table.list th.r { text-align: right; font-variant-numeric: tabular-nums; }
table.list tr.me td { color: var(--gold-2); font-weight: 700; background: rgba(245,210,122,.08); }
table.list tr.out td { color: var(--muted); }
table.list tr.sec td { color: var(--gold-2); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; padding-top: 14px; }
/* ---- page /admin : tuiles d'activite */
.stat-row { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
.stat { background: linear-gradient(180deg, rgba(32,25,20,.95), rgba(18,14,11,.95)); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.stat b { display: block; font-size: 24px; color: var(--gold-2); font-variant-numeric: tabular-nums; }
.stat span { font-size: 12.5px; color: var(--muted); }
/* lobby : boutons Quiz / Mes statistiques / Classement / Mes mains / Tournois termines */
.tools { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 4px 0 8px; }
@media (max-width: 760px) { .tools { grid-template-columns: repeat(2, 1fr); } .tools .tool:last-child:nth-child(odd) { grid-column: span 2; } }
.modal-box.wide { width: min(640px, 100%); overflow-x: hidden; }
/* bandeau « Installer l'appli » en haut du lobby */
.app-bar {
  display: flex; align-items: center; gap: 12px; margin: 14px 0 0; padding: 10px 12px; border-radius: 14px;
  background: linear-gradient(90deg, rgba(31,122,92,.35), rgba(32,25,20,.95) 70%); border: 1px solid rgba(120,220,190,.4);
}
.app-bar[hidden] { display: none; }
.app-bar img { border-radius: 10px; flex: 0 0 auto; }
.app-bar .txt { flex: 1 1 auto; display: flex; flex-direction: column; gap: 2px; font-size: 14px; min-width: 0; }
.app-bar .txt span { color: var(--muted); font-size: 12.5px; }
.app-bar button { flex: 0 0 auto; padding: 9px 14px; }
.app-bar button.ghost { padding: 9px 11px; }
/* desinscrire un joueur (admin, createur de salle) */
button.small-btn { padding: 4px 10px; font-size: 12.5px; }
.kick-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 6px; }
.kick-row button { padding: 4px 10px; font-size: 12.5px; }
/* logos des partenaires (1.3.20) */
.g-logo { height: 32px; max-width: 90px; object-fit: contain; vertical-align: middle; margin: -4px 10px 0 0; border-radius: 6px; }
.logo-list { display: flex; flex-wrap: wrap; gap: 12px; margin: 6px 0 12px; }
.logo-item { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 150px; padding: 8px; border-radius: 12px; border: 1px solid var(--line); }
.logo-box { width: 130px; height: 70px; display: flex; align-items: center; justify-content: center; border-radius: 8px;
  background: repeating-conic-gradient(#2a221c 0 25%, #1a1511 0 50%) 0 0 / 14px 14px; }
.logo-box img { max-width: 120px; max-height: 62px; object-fit: contain; }
.logo-mini { height: 22px; max-width: 60px; object-fit: contain; }
/* choix du logo en vignettes (/admin) */
.logo-pick { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.logo-pick .lp-btn { height: 40px; min-width: 64px; padding: 3px 6px; border-radius: 9px; border: 2px solid transparent; flex: 0 0 auto;
  background: repeating-conic-gradient(#2a221c 0 25%, #1a1511 0 50%) 0 0 / 12px 12px; color: var(--muted); font-size: 12.5px; font-weight: 600; cursor: pointer; }
.logo-pick .lp-btn img { height: 30px; max-width: 86px; object-fit: contain; display: block; }
.logo-pick .lp-btn:hover { border-color: rgba(245,210,122,.45); }
.logo-pick .lp-btn.on { border-color: var(--gold-2); box-shadow: 0 0 0 2px rgba(245,210,122,.25); color: var(--gold-2); }
.logo-pick .lp-none { background: #1a1511; }
/* demandes d'acces aux parties privees (1.3.17) */
.req-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 6px; padding: 6px 8px; border-radius: 10px;
  background: rgba(120,200,255,.08); border: 1px dashed rgba(120,200,255,.35); }
.req-row b { color: #bfe3ff; }
.req-row button { padding: 4px 10px; font-size: 12.5px; }
.vis-tag { font-size: 12px; color: var(--muted); }
.card.k-ask { border-left: 6px solid #6cb8ff; }
.ask-state { font-size: 13.5px; color: #bfe3ff; }
.ask-state.no { color: #ff9c8f; }
.kicked-note { margin-top: 8px; padding: 6px 10px; border-radius: 10px; font-size: 13px; color: #ffd2c9; background: rgba(224,87,74,.18); border: 1px solid rgba(224,87,74,.45); }
.tools .tool {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; text-align: center;
  padding: 12px 8px; border-radius: 14px; font-size: 15px; font-weight: 700; text-decoration: none; color: var(--text);
  background: linear-gradient(180deg, rgba(48,38,28,.95), rgba(22,17,13,.95)); border: 1px solid rgba(245,210,122,.3); box-shadow: none;
}
.tools .tool small { font-size: 11.5px; font-weight: 500; color: var(--muted); }
.tools .tool:hover { border-color: var(--gold-2); filter: brightness(1.12); }
@media (max-width: 520px) { .tools .tool { font-size: 13px; padding: 10px 4px; } .tools .tool small { font-size: 10.5px; } }
b.up { color: #6fdc98; } b.down { color: #ff7b6e; }
svg.chart { width: 100%; height: 120px; display: block; margin-top: 8px; background: rgba(0,0,0,.25); border-radius: 10px; }

/* ---- menu general (1.3.6) : grand titre, choix separes, « ← Menu principal » */
.hero { text-align: center; margin: 4px 0 22px; position: relative; }
.hero-cards { display: flex; justify-content: center; gap: 0; height: 58px; margin-bottom: 4px; }
.hero-cards span {
  width: 40px; height: 56px; border-radius: 6px; background: linear-gradient(180deg, #fffaf0, #e9dfcc); color: #1b1410;
  font: 800 19px/1 Georgia, "Times New Roman", serif; display: flex; flex-direction: column; align-items: center; justify-content: center;
  box-shadow: 0 6px 16px rgba(0,0,0,.55); border: 1px solid rgba(0,0,0,.25);
}
.hero-cards span:first-child { transform: rotate(-9deg) translateX(5px); }
.hero-cards span:last-child { transform: rotate(9deg) translate(-5px, 2px); }
.hero-cards span.red { color: #b3261e; }
.hero-cards i { font-style: normal; font-size: 18px; margin-top: 2px; }
.hero-title {
  margin: 6px 0 0; font: 900 clamp(26px, 6vw, 54px)/1.1 Georgia, "Times New Roman", serif; letter-spacing: .1em; white-space: nowrap;
  background: linear-gradient(180deg, #fff6d2 0%, #f5d27a 45%, #b47a18 100%); -webkit-background-clip: text; background-clip: text;
  color: transparent; filter: drop-shadow(0 0 18px rgba(227,176,75,.35)) drop-shadow(0 3px 0 rgba(0,0,0,.6));
}
/* Poker Arena (1.4.0) : trait de neon cyan sous le nom (menu et ecran d'accueil) */
.hero-line { height: 4px; border-radius: 4px; width: min(360px, 74%); margin: 10px auto 0; background: #eafeff;
  box-shadow: 0 0 6px #2ef2ff, 0 0 16px #2ef2ff, 0 0 30px #2ef2ff; animation: arena-line 4s ease-in-out infinite; }
@keyframes arena-line { 0%, 100% { opacity: 1; } 50% { opacity: .82; } }
@media (prefers-reduced-motion: reduce) { .hero-line { animation: none; } }
.hero-sub { margin-top: 8px; color: var(--muted); font-size: 14px; letter-spacing: .08em; }
/* version du jeu (1.3.6) : petite pastille sous le titre, aussi dans l'ecran d'accueil et en bas du lobby */
.hero-ver { margin-top: 8px; }
.hero-ver .ver-v { display: inline-block; font-size: 11.5px; letter-spacing: .06em; color: var(--gold-2);
  border: 1px solid rgba(245,210,122,.35); border-radius: 999px; padding: 2px 10px; background: rgba(0,0,0,.25); }
.hero-ver .ver-v:empty, .ver-v:empty { display: none; }
.splash-by .ver-v, .free-note .ver-v { opacity: .8; white-space: nowrap; }
.splash-by .ver-v::before, .free-note .ver-v::before { content: '· '; }
.hero::after { content: ''; display: block; width: min(320px, 70%); height: 1px; margin: 16px auto 0; background: linear-gradient(90deg, transparent, rgba(245,210,122,.6), transparent); }
body:not(.on-menu) .hero, body:not(.on-menu) #live { display: none; }
@media (max-width: 520px) {
  header.site .logo { font-size: 18px; letter-spacing: .16em; white-space: nowrap; }
  header.site .user { flex-wrap: wrap; gap: 6px 8px; font-size: 13px; }
  body.on-menu header.site .logo { display: none; }
}
body.on-menu header.site .logo { visibility: hidden; }
.view[hidden] { display: none !important; }
.menu-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.menu-grid .mt-ordi { grid-column: 1 / -1; }
@media (max-width: 640px) { .menu-grid { grid-template-columns: 1fr; } }
.menu-tile {
  display: flex; align-items: center; gap: 14px; text-align: left; width: 100%; padding: 16px 18px; border-radius: 16px;
  color: var(--text); font-weight: 400; box-shadow: 0 10px 28px rgba(0,0,0,.45);
  background: linear-gradient(180deg, rgba(40,31,24,.96), rgba(20,15,11,.96)); border: 1px solid var(--line); border-left: 6px solid var(--gold);
}
.menu-tile:hover { filter: brightness(1.15); transform: translateY(-1px); }
.menu-tile:active { transform: translateY(1px); }
.mt-ico { font-size: 30px; flex: 0 0 auto; width: 42px; text-align: center; }
.mt-txt { flex: 1 1 auto; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.mt-txt b { font-size: 18px; color: var(--gold-2); letter-spacing: .02em; }
.mt-txt small { font-size: 12.5px; color: var(--muted); }
.mt-count {
  flex: 0 0 auto; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; font-size: 14px; color: #d6e5ff; white-space: nowrap;
}
.mt-count b { font-size: 20px; color: #fff; }
.mt-count .mt-n { white-space: nowrap; }
@media (max-width: 520px) {
  .menu-tile { padding: 14px 14px; gap: 10px; }
  .mt-ico { font-size: 26px; width: 32px; }
  .mt-txt b { font-size: 16.5px; }
  .mt-count { font-size: 13px; } .mt-count b { font-size: 17px; }
}
.mt-count em { font-style: normal; font-size: 11.5px; color: var(--muted); }
.mt-count .mt-none { color: var(--muted); font-size: 13px; }
.menu-tile.mt-cash { border-left-color: #e3b04b; }
.menu-tile.mt-tourn { border-left-color: #3fc1a5; }
.menu-tile.mt-hu { border-left-color: #e2574c; }                 /* Head's up (1.3.16) */
.menu-tile.mt-priv { border-left-color: #e08a3c; }
.menu-tile.mt-create { border-left-color: #b07cff; }
.menu-tile.mt-ordi { border-left-color: #6fdc98; }
a.menu-tile { text-decoration: none; }                            /* 📅 Agenda des clubs (lien, 1.4.12) */
.menu-tile.mt-agenda { border-left-color: #5ee7ff; }
/* 1.3.26 : de vrais joueurs dans ces parties -> bleu nuit lumineux (comme les cartes), la bande de couleur reste */
.menu-tile.with-humans {
  background: linear-gradient(180deg, rgba(30,60,120,.92), rgba(11,24,52,.95));
  border-top-color: rgba(110,160,255,.6); border-right-color: rgba(110,160,255,.6); border-bottom-color: rgba(110,160,255,.6);
  box-shadow: 0 0 0 1px rgba(110,160,255,.2), 0 0 24px rgba(60,120,255,.32), 0 10px 28px rgba(0,0,0,.45);
}
.menu-tile.with-humans .mt-txt small { color: #b9cbec; }
.menu-tile.with-humans .mt-n { display: inline-flex; align-items: center; gap: 6px; }
.menu-tile.with-humans .mt-n::before {
  content: ''; width: 9px; height: 9px; border-radius: 50%; background: #5ff09a; box-shadow: 0 0 8px #5ff09a;
  animation: mt-live 1.6s ease-in-out infinite;
}
@keyframes mt-live { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .menu-tile.with-humans .mt-n::before { animation: none; } }
.menu-sep { display: flex; align-items: center; gap: 12px; margin: 34px 0 14px; color: var(--muted); font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; }
.menu-sep::before, .menu-sep::after { content: ''; flex: 1 1 auto; height: 1px; background: linear-gradient(90deg, transparent, rgba(245,210,122,.35), transparent); }
.view-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 4px 0 14px; }
.view-head h2 { margin: 0; }
.view-head .back-menu { padding: 8px 14px; font-size: 14px; flex: 0 0 auto; }
.view-intro { margin-top: -4px; }
button.wait { background: rgba(255,255,255,.04); color: #ffc88a; border: 1px dashed rgba(224,138,60,.6); box-shadow: none; filter: none; cursor: default; }

/* ---- salles privees (1.3.6) : cadre cuivre, parties a l'interieur */
.room-box {
  margin-bottom: 14px; border-color: rgba(224,138,60,.5); border-left: 6px solid #e08a3c;
  background: linear-gradient(180deg, rgba(58,36,20,.92), rgba(22,15,10,.95));
}
.room-head { display: flex; align-items: baseline; justify-content: space-between; gap: 6px 14px; flex-wrap: wrap; }
.room-head .t-name { margin: 0; color: #ffc88a; }
.room-acts { margin-top: 10px; }
.room-acts > * { flex: 0 1 auto; }
.room-box .card { box-shadow: 0 8px 22px rgba(0,0,0,.4); }
.room-forms { margin-top: 14px; }
.room-forms h3 { margin: 0; font-size: 16px; color: var(--gold-2); }
.card.k-cash { border-left: 6px solid #e3b04b; }
.card.k-hu { border-left: 6px solid #e2574c; }
.kind-tag.hu { color: #ffe1dc; background: rgba(226,87,76,.3); border: 1px solid rgba(226,87,76,.75); }
.kind-tag.cash { color: #fff1c9; background: rgba(227,176,75,.28); border: 1px solid rgba(227,176,75,.7); }
.manage-row {
  display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; margin-top: 10px; padding: 8px 10px; border-radius: 10px;
  border: 1px dashed rgba(224,138,60,.45); background: rgba(0,0,0,.18);
}
.manage-row button { padding: 7px 12px; font-size: 13px; flex: 0 1 auto; }
.manage-row .mbots { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.manage-row select { width: auto; padding: 6px 8px; font-size: 14px; }
.gform .seg { flex-wrap: wrap; }
.gform [hidden] { display: none !important; }
.gform .chk { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 14px; color: var(--text); cursor: pointer; }
.gform .chk input { width: 18px; height: 18px; accent-color: var(--gold); margin: 0; }
.g-tables { margin: 6px 0 0; }
.g-tables b { color: var(--gold-2); }
.tbl-scroll { overflow-x: auto; }
/* « Tournois termines » */
.done-rows { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.done-row {
  display: grid; grid-template-columns: 86px 1fr auto; gap: 10px; align-items: center; text-align: left; width: 100%;
  padding: 10px 12px; border-radius: 12px; font-weight: 400; font-size: 14px; color: var(--text); box-shadow: none;
  background: rgba(255,255,255,.04); border: 1px solid var(--line);
}
.done-row:hover { border-color: var(--gold-2); }
.done-row .d-when { color: var(--muted); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.done-row .d-name { font-weight: 700; min-width: 0; }
.done-row .d-name small { font-weight: 400; }
.done-row .d-why { display: block; color: #ffc88a; font-weight: 400; font-size: 12px; margin-top: 2px; }
.done-row .d-win { text-align: right; white-space: nowrap; }
.done-row .d-win small { display: block; color: var(--muted); font-size: 12px; }
@media (max-width: 520px) {
  .done-row { grid-template-columns: 1fr auto; }
  .done-row .d-when { grid-column: 1 / -1; }
}

/* compte de test (Jolinard3D) : robots de test dans un tournoi */
.test-bots { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 10px; padding: 8px 10px; border-radius: 10px; border: 1px dashed rgba(245,210,122,.35); color: var(--muted); font-size: 13px; }
.test-bots input { width: 76px; flex: 0 0 auto; }
.test-bots button { padding: 6px 12px; font-size: 13px; }

/* 📋 journal des connexions dans /admin (1.3.25) */
.vis-tools { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; margin: 10px 0; }
.vis-tools label { display: flex; gap: 8px; align-items: center; }
.vis-tools input[type=checkbox] { width: auto; }
#visitsTable tr.vis-day td { color: var(--gold-2); font-weight: 700; padding-top: 12px; border-bottom: 1px solid rgba(245,210,122,.25); }
#visitsTable tr.vis-on td { background: rgba(127,227,166,.06); }
#visitsTable td { vertical-align: top; }

/* 1.4.3 : connexion / inscription avec adresse mail et code */
.lg-tabs { display: flex; width: 100%; margin: 4px 0 6px; }
.lg-tabs button { flex: 1 1 50%; }
.lg-link { margin: 12px 0 0; text-align: center; }
.lg-link a { color: var(--gold-2); }
input.code-in { font-size: 26px; letter-spacing: 10px; text-align: center; font-variant-numeric: tabular-nums; }
/* 🏅 classements des clubs (1.4.7) */
.club-list { display: flex; flex-direction: column; gap: 6px; }
.club-btn { display: flex; align-items: center; gap: 4px; text-align: left; width: 100%; padding: 8px 12px; }
.club-btn .g-logo { height: 26px; margin: 0 8px 0 0; }
#infoBox h3 .g-logo { height: 30px; margin: -3px 6px 0 0; }
