/* UNDERTHEGUN : jeu entre amis. Nuit bleu marine, or de jeton, tapis vert. */
:root {
  color-scheme: dark;
  --bg: #0B1322;          /* nuit, le fond */
  --surface: #111C30;     /* panneaux */
  --surface-2: #17243C;   /* champs, boutons secondaires */
  --line: #22304A;
  --ink: #F2EEE4;         /* texte */
  --muted: #93A0B8;
  --gold: #F4B740; --gold-deep: #B9861F; --gold-fg: #241500;
  --accent: #FF8A7A;      /* erreurs */
  --ok: #5BD69A;
  --no-bg: #2A2230; --no-fg: #E7C2C8;
  --felt-a: #17785F; --felt-b: #0F5B48; --rim: #3A2617; --rim-2: #5A3D25;
  --seat: rgba(11, 19, 34, .86); --seat-fg: #F2EEE4; --seat-muted: #A7B3C9;
  --display: 'Big Shoulders Display', 'Arial Narrow', Impact, sans-serif;
  --body: 'Manrope', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --mono: 'Manrope', 'Segoe UI', system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 40; background: var(--bg); }
h1, h2, h3, p { margin: 0; }
[hidden] { display: none !important; }
a { color: var(--ink); text-underline-offset: 3px; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { max-width: 1320px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }

/* Marque */
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; min-width: 0; }
.brand .chip { width: 34px; height: 34px; flex: none; }
.word { font: 900 26px/1 var(--display); letter-spacing: .02em; white-space: nowrap; }
.word span { color: var(--gold); }

/* En-tête commun */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 20px; padding-block: 12px; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { text-decoration: none; color: var(--muted); font-weight: 600; font-size: 15px; padding: 8px 12px; border-radius: 999px; }
.nav a:hover, .nav a[aria-current] { color: var(--ink); background: var(--surface); }

.eyebrow, .label { font: 700 14px/1.4 var(--body); color: var(--muted); }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 800 16px/1 var(--body); padding: 14px 20px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface-2); color: var(--ink); text-decoration: none; cursor: pointer; }
.btn:hover { border-color: var(--muted); }
.btn.primary { background: var(--gold); color: var(--gold-fg); border-color: var(--gold); box-shadow: 0 5px 0 var(--gold-deep); }
.btn.primary:hover { transform: translateY(1px); box-shadow: 0 4px 0 var(--gold-deep); }
.btn.primary:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--gold-deep); }
.btn.big { font-size: 18px; padding: 19px 28px; }
.btn.small { padding: 9px 14px; font-size: 14px; }
.btn.small.primary { box-shadow: 0 3px 0 var(--gold-deep); }
.btn:disabled { opacity: .5; cursor: default; transform: none; }

/* Formulaires */
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; font-weight: 700; font-size: 15px; }
.field input, .field select { font: 600 16px var(--body); padding: 13px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2); color: var(--ink); width: 100%; }
.field input::placeholder { color: var(--muted); font-weight: 500; }
.field small { color: var(--muted); font-size: 13px; font-weight: 500; }
.seg { display: flex; flex-wrap: wrap; gap: 4px; border: 1px solid var(--line); border-radius: 14px; padding: 4px; background: var(--surface-2); }
.seg button { flex: 1 1 auto; font: 800 15px/1 var(--body); padding: 11px 12px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); cursor: pointer; font-variant-numeric: tabular-nums; }
.seg button:hover { color: var(--ink); }
.seg button[aria-pressed="true"] { background: var(--gold); color: var(--gold-fg); }
.msg { font-size: 14px; color: var(--accent); min-height: 1.2em; font-weight: 600; }
.toast { position: fixed; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 999px; font-weight: 800; font-size: 14px; z-index: 60; max-width: calc(100vw - 32px); text-align: center; }

/* Page Jouer */
.home { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 48px; align-items: start; padding-block: 40px 64px; }
.home-text { display: flex; flex-direction: column; gap: 18px; min-width: 0; position: sticky; top: 100px; }
.home h1 { font: 900 clamp(48px, 7vw, 88px)/.9 var(--display); text-transform: uppercase; text-wrap: balance; }
.lede { color: var(--muted); max-width: 46ch; font-size: 17px; }
.points { display: grid; gap: 14px; margin: 8px 0 0; padding: 0; list-style: none; }
.points li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px; align-items: baseline; color: var(--muted); }
.points b { font: 900 34px/.8 var(--display); color: var(--gold); }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 24px; display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.panel h2 { font: 900 32px/1 var(--display); text-transform: uppercase; }
.panel.create { box-shadow: 0 30px 60px -30px rgba(0,0,0,.8); }
.panel.create .btn.primary { width: 100%; }
.grid2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.join-row { display: flex; gap: 8px; }
.join-row input { text-transform: uppercase; letter-spacing: .16em; font-weight: 800; }
.note { font-size: 13px; color: var(--muted); }
.home-foot { padding-block: 22px 36px; border-top: 1px solid var(--line); }
.home-foot .note { max-width: 70ch; }

/* Table : barre du haut */
body.table-page { min-height: 100%; }
.topbar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30; background: var(--bg); border-bottom: 1px solid var(--line); }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-block: 10px; }
.topbar .chip { width: 32px; height: 32px; }
.tb-left { display: flex; align-items: center; gap: 12px; min-width: 0; }
.tb-name { font: 800 22px/1.05 var(--display); text-transform: uppercase; letter-spacing: .01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tb-sub { font: 700 13px/1.3 var(--body); color: var(--gold); font-variant-numeric: tabular-nums; white-space: nowrap; }
.tb-right { display: flex; gap: 6px; flex: none; }
.conn { font: 700 12px var(--body); padding: 5px 9px; border-radius: 999px; background: var(--no-bg); color: var(--no-fg); }
main.stage { padding-block: 16px 24px; display: flex; flex-direction: column; gap: 16px; }

/* Salle d'attente */
.lobby { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 18px; }
.lobby h2 { font-size: 36px; }
.plist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.plist li { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 0; border-top: 1px solid var(--line); font-weight: 700; }
.plist .tag { font: 600 13px var(--body); color: var(--muted); }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--muted); display: inline-block; margin-right: 10px; }
.dot.on { background: var(--ok); box-shadow: 0 0 0 3px rgba(91,214,154,.2); }
.invite { display: flex; gap: 8px; }
.invite input { font: 600 14px var(--body); }
.cfg { display: grid; grid-template-columns: max-content 1fr; gap: 8px 16px; font-size: 15px; }
.cfg dt { color: var(--muted); } .cfg dd { margin: 0; font-weight: 800; font-variant-numeric: tabular-nums; }

/* Tapis */
.felt-wrap { position: relative; width: 100%; max-width: 980px; margin: 0 auto; }
.felt { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 999px / 70%; background: radial-gradient(ellipse at 50% 40%, var(--felt-a), var(--felt-b) 65%); box-shadow: inset 0 0 0 14px var(--rim), inset 0 0 0 16px var(--rim-2), inset 0 0 60px 10px rgba(0,0,0,.35), 0 30px 60px -20px rgba(0,0,0,.7); }
.center { position: absolute; left: 50%; top: 46%; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 10px; width: 64%; }
.board { display: flex; gap: 6px; justify-content: center; min-height: 72px; }
.pot { font: 800 15px/1 var(--body); color: var(--gold); background: rgba(11,19,34,.55); padding: 8px 14px; border-radius: 999px; font-variant-numeric: tabular-nums; }
.banner { font: 700 14px/1.35 var(--body); color: var(--ink); text-align: center; min-height: 1.35em; max-width: 100%; text-wrap: balance; }

.seat { position: absolute; transform: translate(-50%, -50%); width: 128px; display: flex; flex-direction: column; align-items: center; gap: 4px; z-index: 2; }
.seat .cards { display: flex; gap: 3px; height: 46px; }
.seat .box { width: 100%; background: var(--seat); color: var(--seat-fg); border-radius: 12px; padding: 7px 9px 8px; text-align: center; border: 2px solid var(--line); position: relative; box-shadow: 0 8px 18px rgba(0,0,0,.35); }
.seat .nm { font: 800 14px/1.2 var(--body); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.seat .stk { font: 700 13px/1.2 var(--body); color: var(--seat-muted); font-variant-numeric: tabular-nums; display: block; }
.seat .st { font: 800 12px/1.2 var(--body); color: var(--gold); display: block; min-height: 1.2em; }
.seat.turn .box { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(244,183,64,.25), 0 8px 18px rgba(0,0,0,.35); }
.seat.folded { opacity: .45; }
.seat.out { opacity: .3; }
.seat.win .box { border-color: var(--ok); box-shadow: 0 0 0 3px rgba(91,214,154,.3); }
.seat .tbar { position: absolute; left: 6px; right: 6px; bottom: 3px; height: 3px; border-radius: 2px; background: var(--gold); transform-origin: left; }
.seat .tag { position: absolute; top: -9px; right: -6px; font: 800 11px/1 var(--body); padding: 4px 7px; border-radius: 999px; background: var(--ink); color: var(--bg); }
.dealer { position: absolute; width: 26px; height: 26px; border-radius: 50%; background: #FFFDF8; color: #0B1322; font: 900 14px/26px var(--display); text-align: center; transform: translate(-50%, -50%); box-shadow: 0 0 0 3px #0B1322, 0 3px 8px rgba(0,0,0,.4); z-index: 3; }
.betchip { position: absolute; transform: translate(-50%, -50%); font: 800 13px/1 var(--body); color: var(--gold-fg); background: var(--gold); padding: 5px 10px; border-radius: 999px; z-index: 3; font-variant-numeric: tabular-nums; white-space: nowrap; box-shadow: 0 0 0 2px rgba(11,19,34,.5); }

/* Cartes */
.pcard { position: relative; width: 50px; aspect-ratio: 5 / 7; background: #FFFDF8; border-radius: 7px; box-shadow: 0 1px 0 rgba(0,0,0,.08), 0 6px 14px rgba(0,0,0,.35); color: #0B1322; flex: none; }
.pcard.red { color: #D0313A; }
.pcard .r { position: absolute; top: 3px; left: 6px; font: 900 19px/1 var(--display); }
.pcard .s { position: absolute; bottom: 3px; right: 6px; font-size: 20px; line-height: 1; }
.pcard.back { background: radial-gradient(circle at 50% 50%, #F4B740 0 18%, transparent 19%), repeating-linear-gradient(45deg, #17243C 0 5px, #0F1A2E 5px 10px); box-shadow: inset 0 0 0 3px #F4B740, 0 4px 10px rgba(0,0,0,.35); }
.seat .pcard { width: 33px; }
.seat .pcard .r { font-size: 14px; top: 2px; left: 4px; } .seat .pcard .s { font-size: 14px; bottom: 2px; right: 4px; }
.board .pcard { width: 52px; }

/* Ma place */
.me { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 14px 16px; }
.me-cards { display: flex; gap: 6px; }
.me-cards .pcard { width: 62px; }
.me-cards .pcard .r { font-size: 23px; } .me-cards .pcard .s { font-size: 24px; }
.me-right { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.me-info { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; font-size: 14px; color: var(--muted); }
.me-info b { color: var(--ink); font-variant-numeric: tabular-nums; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; }
.act { font: 800 16px/1 var(--body); padding: 16px 18px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface-2); color: var(--ink); cursor: pointer; flex: 1 1 0; min-width: 0; white-space: nowrap; font-variant-numeric: tabular-nums; }
.act:hover { border-color: var(--muted); }
.act.fold { color: var(--no-fg); }
.act.main { background: var(--gold); color: var(--gold-fg); border-color: var(--gold); box-shadow: 0 4px 0 var(--gold-deep); }
.act.main:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--gold-deep); }
.raise { display: flex; flex-direction: column; gap: 8px; }
.raise-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.raise-row input[type="range"] { flex: 1 1 160px; min-width: 0; accent-color: var(--gold); }
.raise-row input[type="number"] { width: 7.5em; font: 700 15px var(--body); padding: 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface-2); color: var(--ink); font-variant-numeric: tabular-nums; }
.presets { display: flex; gap: 6px; flex-wrap: wrap; }
.presets button { font: 700 13px/1 var(--body); padding: 9px 11px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface-2); color: var(--ink); cursor: pointer; }
.presets button:hover { border-color: var(--gold); }
.away { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; background: var(--no-bg); color: var(--no-fg); border-radius: 12px; padding: 12px 14px; font-weight: 700; }
.wait { color: var(--muted); font-size: 15px; }

.side { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.logbox { max-height: 220px; overflow-y: auto; font-size: 14px; color: var(--muted); display: flex; flex-direction: column; gap: 3px; }
.logbox p:last-child { color: var(--ink); }
.standings { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.standings li { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.standings b { font-weight: 800; }

.overlay { position: fixed; inset: 0; background: rgba(5,9,18,.7); display: grid; place-items: center; z-index: 50; padding: 16px; }
.overlay .panel { width: min(460px, 100%); }
.overlay h2 { font-size: 40px; }

@media (max-width: 900px) {
  .home, .lobby, .side { grid-template-columns: minmax(0, 1fr); }
  .home { gap: 28px; padding-block: 28px 48px; }
  .home-text { position: static; }
  .nav { display: none; }
  .top .btn { margin-left: auto; }
}
@media (max-width: 640px) {
  .word { font-size: 22px; }
  .felt { aspect-ratio: 4 / 5; border-radius: 46% / 34%; box-shadow: inset 0 0 0 10px var(--rim), inset 0 0 0 12px var(--rim-2), inset 0 0 40px 6px rgba(0,0,0,.35), 0 20px 40px -20px rgba(0,0,0,.7); }
  .center { width: 78%; top: 47%; }
  .seat { width: 98px; }
  .seat .box { padding: 5px 6px 6px; }
  .seat .nm { font-size: 13px; } .seat .stk { font-size: 12px; }
  .seat .cards { height: 38px; } .seat .pcard { width: 27px; }
  .board .pcard { width: 42px; } .board { min-height: 59px; gap: 4px; }
  .pcard .r { font-size: 15px; } .pcard .s { font-size: 16px; }
  .me { grid-template-columns: minmax(0, 1fr); position: sticky; bottom: 0; z-index: 20; margin-inline: -4px; padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px)); box-shadow: 0 -12px 30px rgba(0,0,0,.45); }
  .me-cards .pcard { width: 52px; }
  .me-cards { justify-content: center; }
  .grid2 { grid-template-columns: minmax(0, 1fr); }
  .tb-name { font-size: 19px; }
  .tb-right .btn.small { padding: 8px 11px; font-size: 13px; }
  .panel { padding: 20px; }
  .act { padding: 16px 8px; font-size: 15px; }
  .home .points { display: none; }
  .seat .box { box-shadow: 0 6px 14px rgba(0,0,0,.35); }
}

@media (min-width: 1100px) { .wrap { padding-left: max(32px, env(safe-area-inset-left, 0px)); padding-right: max(32px, env(safe-area-inset-right, 0px)); } }

.btn.snd { padding: 8px 10px; }
.btn.snd svg { width: 18px; height: 18px; display: block; }
.btn.snd .x { display: none; }
.btn.snd[aria-pressed="false"] .x { display: inline; }
.btn.snd[aria-pressed="false"] .w { display: none; }
.btn.snd[aria-pressed="false"] { color: var(--muted); }

/* État et niveau */
.tb-sub { display: flex; align-items: center; gap: 8px; }
.state { font: 800 11px/1 var(--body); padding: 4px 8px; border-radius: 999px; background: var(--surface-2); color: var(--muted); flex: none; }
.state.run { background: rgba(91,214,154,.15); color: var(--ok); }
.state.pause { background: rgba(244,183,64,.16); color: var(--gold); }
.state.end { background: var(--surface-2); color: var(--ink); }
#tb-info { overflow: hidden; text-overflow: ellipsis; }
.lvlbar { height: 3px; background: var(--surface-2); }
.lvlbar i { display: block; height: 100%; background: var(--gold); transform-origin: left; transform: scaleX(0); transition: transform .25s linear; }
#tb-info { min-width: 0; } .tb-sub { min-width: 0; }

/* Mode rapide : réglages repliables */
.adv { border: 1px solid var(--line); border-radius: 14px; background: var(--surface-2); }
.adv summary { list-style: none; cursor: pointer; display: flex; flex-direction: column; gap: 2px; padding: 14px 44px 14px 16px; position: relative; }
.adv summary::-webkit-details-marker { display: none; }
.adv summary::after { content: ""; position: absolute; right: 18px; top: 50%; width: 9px; height: 9px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.adv[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.adv-t { font-weight: 800; }
.adv-s { color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; }
.adv[open] .adv-s { display: none; }
.adv-body { display: flex; flex-direction: column; gap: 20px; padding: 4px 16px 18px; }
.adv .seg { background: var(--bg); }
.adv .field input, .adv .field select { background: var(--bg); }
@media (prefers-reduced-motion: reduce) { .adv summary::after { transition: none; } }

.lvlrow { display: none; }
@media (max-width: 640px) {
  .lvlrow:not([hidden]) { display: block; font: 700 13px/1 var(--body); color: var(--gold); text-align: center; padding: 7px 16px 8px; font-variant-numeric: tabular-nums; }
  body.table-page #tb-info { display: none; }
  .adv-body { padding-inline: 12px; }
}

/* Résultats */
.recap { display: flex; flex-direction: column; padding-block: 36px 56px; max-width: 860px; }
#r-content { display: flex; flex-direction: column; gap: 22px; }
.r-meta { color: var(--muted); font-weight: 600; }
.recap h1 { font: 900 clamp(44px, 8vw, 80px)/.9 var(--display); text-transform: uppercase; text-wrap: balance; overflow-wrap: anywhere; }
.r-winner { display: flex; align-items: center; gap: 16px; background: linear-gradient(120deg, rgba(244,183,64,.18), rgba(244,183,64,.04)); border: 1px solid rgba(244,183,64,.45); border-radius: 18px; padding: 18px 20px; }
.r-crown { width: 56px; height: 56px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--gold); color: var(--gold-fg); font: 900 30px/1 var(--display); box-shadow: 0 0 0 4px rgba(244,183,64,.25); }
.r-wname { font: 900 clamp(30px, 5vw, 44px)/1 var(--display); text-transform: uppercase; overflow-wrap: anywhere; }
.r-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0; margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.r-stats div { background: var(--surface); padding: 14px 16px; box-shadow: 0 0 0 .5px var(--line); }
.r-stats dt { color: var(--muted); font-size: 13px; font-weight: 600; }
.r-stats dd { margin: 4px 0 0; font: 800 22px/1.1 var(--display); font-variant-numeric: tabular-nums; }
.r-rank { list-style: none; margin: 0; padding: 0; }
.r-rank li { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 12px 0; border-top: 1px solid var(--line); }
.r-rank .pl { font: 900 22px/1 var(--display); color: var(--muted); }
.r-rank .nm { font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.r-rank .w { color: var(--muted); font-size: 14px; }
.r-rank .p1 .pl { color: var(--gold); } .r-rank .p2 .pl { color: #C9D2E3; } .r-rank .p3 .pl { color: #D69A6B; }
.r-cta { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 520px) { .r-cta .btn { width: 100%; } }

/* Compte */
.account { display: flex; flex-direction: column; gap: 18px; padding-block: 36px 56px; max-width: 760px; }
.account section { display: flex; flex-direction: column; gap: 18px; }
.account h1 { font: 900 clamp(44px, 8vw, 72px)/.9 var(--display); text-transform: uppercase; overflow-wrap: anywhere; }
.auth { gap: 16px; }
.auth form { display: flex; flex-direction: column; gap: 16px; }
.auth .tabs button { flex: 1; }
#g-btn { display: flex; justify-content: center; min-height: 44px; }
.or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 14px; margin-top: 16px; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.linkbtn { background: none; border: 0; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; align-self: center; font-weight: 600; padding: 4px; }
.linkbtn:hover { color: var(--ink); }
.code { font: 900 clamp(26px, 6vw, 38px)/1 var(--display); letter-spacing: .08em; color: var(--gold); background: var(--surface-2); border: 1px dashed var(--gold); border-radius: 12px; padding: 18px; text-align: center; user-select: all; }
.check { display: flex; align-items: center; gap: 10px; font-weight: 700; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--gold); }
.prof { display: flex; align-items: center; gap: 18px; }
.avatar { width: 72px; height: 72px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--gold); color: var(--gold-fg); font: 900 36px/1 var(--display); box-shadow: 0 0 0 4px rgba(244,183,64,.25); }
.hist { list-style: none; margin: 0; padding: 0; }
.hist a { display: grid; grid-template-columns: 48px minmax(0, 1fr); align-items: center; gap: 10px; padding: 12px 0; border-top: 1px solid var(--line); text-decoration: none; }
.hist a:hover .nm { color: var(--gold); }
.hist .pl { font: 900 22px/1 var(--display); color: var(--muted); }
.hist .p1 { color: var(--gold); } .hist .p2 { color: #C9D2E3; } .hist .p3 { color: #D69A6B; }
.hist .nm { font-weight: 800; display: flex; flex-direction: column; min-width: 0; }
.hist small { color: var(--muted); font-weight: 500; font-size: 13px; }
.row { display: flex; flex-wrap: wrap; gap: 10px; }
.btn.danger { color: var(--accent); border-color: rgba(255,138,122,.4); }
.btn.danger:hover { border-color: var(--accent); }
.confirm { display: flex; flex-direction: column; gap: 12px; background: var(--no-bg); border-radius: 12px; padding: 14px; color: var(--no-fg); }

.acc-ico { text-decoration: none; display: none; width: 40px; height: 40px; border-radius: 50%; place-items: center; color: var(--ink); border: 1px solid var(--line); background: var(--surface); flex: none; }
.acc-ico svg { width: 20px; height: 20px; }
@media (max-width: 900px) { .acc-ico { display: grid; margin-left: auto; } .sh-inner .acc-ico + .btn, .top .acc-ico + .btn { margin-left: 0; } }
#ps-in { text-transform: none; letter-spacing: 0; font-weight: 600; }

/* Amis */
.flist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.flist li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
.flist li.note { border: 0; }
.av-s { width: 34px; height: 34px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--line); font: 900 17px/1 var(--display); color: var(--gold); }
.fn { flex: 1 1 120px; min-width: 0; font-weight: 700; overflow: hidden; text-overflow: ellipsis; }
.fb { display: flex; gap: 6px; flex-wrap: wrap; }
.fb .btn.small { padding: 8px 12px; font-size: 13px; }
.invites { border-color: rgba(244,183,64,.5); }
#fs-q { text-transform: none; letter-spacing: 0; font-weight: 600; }

/* Classement */
.lboard { list-style: none; margin: 0; padding: 0; }
.lboard li { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 12px 0; border-top: 1px solid var(--line); }
.lboard li.is-me { background: linear-gradient(90deg, rgba(244,183,64,.10), transparent); }
.lboard .pl { font: 900 24px/1 var(--display); color: var(--muted); text-align: center; }
.lboard .p1 .pl { color: var(--gold); } .lboard .p2 .pl { color: #C9D2E3; } .lboard .p3 .pl { color: #D69A6B; }
.lboard .fn { display: flex; flex-direction: column; }
.lboard small { color: var(--muted); font-weight: 500; font-size: 13px; }
.lboard .pts { display: flex; flex-direction: column; align-items: flex-end; }
.lboard .pts b { font: 900 26px/1 var(--display); font-variant-numeric: tabular-nums; }
.lboard li.sep { display: block; color: var(--muted); font-size: 14px; font-weight: 600; padding-top: 16px; }
.how summary { cursor: pointer; color: var(--muted); font-weight: 700; }
.how p { color: var(--muted); font-size: 14px; margin-top: 10px; }

/* Gagnant de la main */
.seat.win .box { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(244,183,64,.35), 0 0 28px rgba(244,183,64,.45); }
.seat.win .st { color: var(--ok); font-size: 14px; }
.seat.win .cards { transform: translateY(-4px); }
.seat.win .pcard { box-shadow: 0 0 0 2px var(--gold), 0 8px 18px rgba(0,0,0,.4); }
@media (prefers-reduced-motion: no-preference) {
  .seat.win .box { animation: winpulse 1.2s ease-out 2; }
  @keyframes winpulse { 50% { box-shadow: 0 0 0 6px rgba(244,183,64,.2), 0 0 40px rgba(244,183,64,.6); } }
}

/* Compte dans l'en-tête */
.acc-ico.in { background: var(--gold); color: var(--gold-fg); border-color: var(--gold); position: relative; }
.acc-ico .ini { font: 900 20px/1 var(--display); }
.dot-n { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: #FF5A4E; box-shadow: 0 0 0 2px var(--bg); margin-left: 6px; vertical-align: 2px; }
.acc-ico .dot-n { position: absolute; top: -1px; right: -1px; margin: 0; }
.ptabs button { position: relative; }
.ptabs .dot-n { position: absolute; top: 6px; right: 10px; margin: 0; }
