/* Jeu de dominos Bizouk (/games/domino). Page : jetons --bzk-* ; table de jeu : feutre vert (même rendu clair / sombre). */
.dmn-page { max-width: 760px; margin: 0 auto; padding: 16px 12px 48px; color: var(--bzk-text, #2b2219); }
.dmn-card { background: var(--bzk-surface, #fff); border: 1px solid var(--bzk-border, #e8e4d9); border-radius: 16px; padding: 20px; margin-top: 16px; box-shadow: var(--bzk-shadow, none); }
.dmn-card h2 { font-size: 19px; margin: 0 0 10px; color: var(--bzk-text, #2b2219); }
.dmn-center { text-align: center; }
.dmn-small { font-size: 13px; color: var(--bzk-text-muted, #8a7e70); margin: 8px 0 0; }

.dmn-hero { text-align: center; padding: 28px 16px 24px; border-radius: 20px; color: #fff;
    background: radial-gradient(circle at 50% 0%, #2f7d4f 0%, #14492d 60%, #0b2e1c 100%); box-shadow: 0 10px 30px rgba(0,0,0,.2); }
.dmn-hero h1 { color: #fff; font-size: 30px; font-weight: 800; margin: 14px 0 8px; }
.dmn-lead { color: rgba(255,255,255,.88); font-size: 16px; max-width: 520px; margin: 0 auto 16px; }
.dmn-hero .dmn-small { color: rgba(255,255,255,.7); }
.dmn-hero-tiles { display: flex; justify-content: center; gap: 14px; }
.dmn-online { font-size: 14px; color: #c8f0d6; margin: 0 0 14px; }
.dmn-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #4ade80; margin-right: 6px; box-shadow: 0 0 0 4px rgba(74,222,128,.25); }

.dmn-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 12px; }
.dmn-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 20px; border-radius: 999px; border: 1px solid rgba(0,0,0,.12);
    background: var(--bzk-surface, #fff); color: var(--bzk-text, #2b2219); font-weight: 700; font-size: 15px; cursor: pointer; text-decoration: none !important; }
.dmn-btn:hover { filter: brightness(.97); }
.dmn-btn[disabled] { opacity: .6; cursor: default; }
.dmn-btn-main { background: #f5c518; border-color: #e0b100; color: #2b2219 !important; }
.dmn-btn-ghost { background: transparent; border-color: rgba(255,255,255,.45); color: #fff; }
.dmn-btn-danger { background: #c62828; border-color: #b71c1c; color: #fff !important; }
.dmn-link { background: none; border: 0; color: inherit; opacity: .75; text-decoration: underline; cursor: pointer; margin-top: 12px; font-size: 14px; }

.dmn-rules { padding-left: 20px; margin: 0; line-height: 1.6; }
.dmn-legal { margin-top: 14px; font-size: 13px; color: var(--bzk-text-2, #555); }
.dmn-legal summary { cursor: pointer; font-weight: 700; }

.dmn-events { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; margin-top: 12px; }
.dmn-event { display: flex; gap: 10px; align-items: center; text-align: left; padding: 8px; border-radius: 12px; border: 1px solid var(--bzk-border, #e8e4d9);
    background: var(--bzk-surface-2, #faf9f5); color: var(--bzk-text, #2b2219) !important; text-decoration: none !important; cursor: pointer; font: inherit; }
.dmn-event img { width: 52px; height: 52px; border-radius: 8px; object-fit: cover; flex: none; }
.dmn-event strong { display: block; font-size: 14px; line-height: 1.25; }
.dmn-event small { color: var(--bzk-text-muted, #8a7e70); }
button.dmn-event:hover { border-color: #e0b100; }

.dmn-prize { text-align: center; padding: 6px 0; }
.dmn-prize-pct { font-size: 40px; font-weight: 900; color: #c08a00; line-height: 1; }
.dmn-code { display: inline-flex; flex-direction: column; padding: 10px 18px; margin: 10px 0; border: 2px dashed #e0b100; border-radius: 12px; }
.dmn-code small { font-size: 12px; color: var(--bzk-text-muted, #8a7e70); }
.dmn-code strong { font-size: 22px; letter-spacing: 2px; }

/* --- Dominos --- */
.dmn-tile { --s: 22px; display: inline-flex; flex-direction: column; background: linear-gradient(160deg, #fffef8, #ece6d6); border-radius: 6px;
    border: 1px solid #bfb59f; box-shadow: 0 2px 0 #a89c84, 0 3px 6px rgba(0,0,0,.35); flex: none; position: relative; }
.dmn-tile-h { flex-direction: row; }
.dmn-tile-h .dmn-half + .dmn-half { border-top: 0; border-left: 1px solid #b0a58d; }
.dmn-half { width: var(--s); height: var(--s); display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, 1fr); padding: 3px; box-sizing: border-box; }
.dmn-half + .dmn-half { border-top: 1px solid #b0a58d; }
.dmn-half i { display: block; margin: auto; width: 62%; height: 62%; border-radius: 50%; }
.dmn-half i.on { background: radial-gradient(circle at 35% 35%, #555, #111); }
.dmn-tile-lg { --s: 46px; border-radius: 10px; }
.dmn-tile-tilt { transform: rotate(18deg); }
.dmn-tile-sm { --s: 16px; border-radius: 4px; }

/* --- Table --- */
.dmn-table { border-radius: 20px; padding: 10px; color: #fff; min-height: calc(100vh - 140px); display: flex; flex-direction: column; gap: 8px;
    background: radial-gradient(ellipse at center, #2e7a4c 0%, #1b5634 55%, #0f3a22 100%); box-shadow: inset 0 0 0 6px #5a3a1e, inset 0 0 0 9px #3b2412, 0 10px 30px rgba(0,0,0,.25); }
.dmn-bar { display: flex; justify-content: space-between; align-items: center; padding: 6px 10px; }
.dmn-player { display: flex; align-items: center; gap: 10px; }
.dmn-player strong { display: block; font-size: 15px; }
.dmn-player small { display: block; font-size: 12px; opacity: .75; }
.dmn-avatar { width: 38px; height: 38px; border-radius: 50%; background: #0b2e1c; border: 2px solid rgba(255,255,255,.35); display: inline-flex; align-items: center; justify-content: center; font-weight: 800; }
.dmn-avatar-me { background: #f5c518; color: #2b2219; border-color: #fff; }
.dmn-score { font-size: 20px; letter-spacing: 4px; color: #f5c518; }
.dmn-opp-hand { display: flex; justify-content: center; gap: 4px; min-height: 30px; }
.dmn-back { width: 16px; height: 30px; border-radius: 4px; background: repeating-linear-gradient(45deg, #7b1f1f, #7b1f1f 4px, #962a2a 4px, #962a2a 8px); border: 1px solid #3d0f0f; }
.dmn-board-wrap { flex: 1; display: flex; flex-direction: column; justify-content: center; min-height: 170px; }
.dmn-board { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 3px 2px; padding: 8px; }
.dmn-board .dmn-tile { --s: 20px; }
.dmn-last { box-shadow: 0 0 0 2px #f5c518, 0 3px 6px rgba(0,0,0,.35); }
.dmn-new { animation: dmnDrop .35s ease-out; }
@keyframes dmnDrop { from { transform: translateY(-14px) scale(1.15); opacity: .2; } to { transform: none; opacity: 1; } }
.dmn-empty { opacity: .8; text-align: center; margin: 0; }
.dmn-banner { align-self: center; background: rgba(0,0,0,.45); padding: 4px 12px; border-radius: 999px; font-size: 13px; margin-bottom: 6px; }
.dmn-turn { text-align: center; font-weight: 700; min-height: 24px; }
.dmn-my-turn .dmn-turn { color: #f5c518; }
.dmn-timer { margin-left: 8px; font-variant-numeric: tabular-nums; opacity: .85; }
.dmn-timer.dmn-urgent { color: #ff8a80; opacity: 1; }
.dmn-sides { display: flex; justify-content: center; gap: 10px; }
.dmn-hand { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; padding: 10px 4px; min-height: 80px; }
.dmn-hand .dmn-tile { --s: 32px; transition: transform .15s; }
.dmn-playable { cursor: pointer; }
.dmn-my-turn .dmn-playable { box-shadow: 0 0 0 3px #f5c518, 0 3px 6px rgba(0,0,0,.35); }
.dmn-my-turn .dmn-playable:hover, .dmn-selected { transform: translateY(-8px); }
.dmn-dim { opacity: .45; }
.dmn-foot { text-align: center; }
@media (min-width: 640px) {
    .dmn-board .dmn-tile { --s: 26px; }
    .dmn-hand .dmn-tile { --s: 40px; }
}

/* --- Fenêtres --- */
.dmn-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.55); display: flex; align-items: center; justify-content: center; z-index: 2000; padding: 16px; }
.dmn-overlay[hidden] { display: none; }
.dmn-modal { background: var(--bzk-surface, #fff); color: var(--bzk-text, #2b2219); border-radius: 18px; padding: 22px; max-width: 440px; width: 100%; text-align: center; max-height: 90vh; overflow: auto; }
.dmn-modal h2 { margin: 6px 0 10px; font-size: 22px; color: var(--bzk-text, #2b2219); }
.dmn-modal h2.dmn-me { color: var(--bzk-success, #2e7d32); }
.dmn-modal h2.dmn-opp { color: #c62828; }
.dmn-input { width: 100%; padding: 10px; border-radius: 10px; border: 1px solid var(--bzk-border-strong, #d4d0c8); background: var(--bzk-surface-2, #faf9f5); color: inherit; font-size: 13px; }
.dmn-mini { display: flex; justify-content: center; gap: 4px; flex-wrap: wrap; }
.dmn-trophy { font-size: 48px; }
.dmn-score-big { font-size: 28px; font-weight: 800; }
.dmn-spinner { width: 42px; height: 42px; margin: 4px auto; border-radius: 50%; border: 4px solid var(--bzk-border, #e8e4d9); border-top-color: #f5c518; animation: dmnSpin 1s linear infinite; }
@keyframes dmnSpin { to { transform: rotate(360deg); } }
.dmn-toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 30px); background: #222; color: #fff; padding: 10px 16px; border-radius: 10px; opacity: 0; transition: .3s; z-index: 2100; }
.dmn-toast.show { opacity: 1; transform: translate(-50%, 0); }
.dark-mode .dmn-page a:not(.btn) { color: inherit; }
.dmn-human { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; background: #f5c518; color: #2b2219; border-radius: 14px; padding: 10px 14px; }
.dmn-human .dmn-btn-main { background: #2b2219; border-color: #2b2219; color: #fff !important; min-height: 38px; }

/* --- Téléphone : tout à l'écran, au pouce, sans zoom ni sélection accidentelle --- */
.dmn-table, .dmn-modal, .dmn-hero { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.dmn-table { min-height: calc(100dvh - 90px); }
.dmn-hand .dmn-tile { --s: clamp(30px, 10.5vw, 44px); }
.dmn-hand { gap: clamp(4px, 1.6vw, 10px); padding-bottom: calc(10px + env(safe-area-inset-bottom)); }
.dmn-sides .dmn-btn { flex: 1; min-height: 52px; font-size: 16px; background: #f5c518; border-color: #e0b100; color: #2b2219; }
.dmn-sides { padding: 0 6px; }
.dmn-common { display: block; text-align: center; background: rgba(255,255,255,.14); color: #fff !important; border-radius: 12px; padding: 8px 12px; font-size: 14px; text-decoration: none !important; }
.dmn-lobby-event { margin: 0 0 14px; font-size: 14px; color: #fff3c4; }
@media (max-width: 420px) {
    .dmn-page { padding: 8px 6px 32px; }
    .dmn-table { border-radius: 14px; padding: 6px; }
    .dmn-hero h1 { font-size: 26px; }
    .dmn-actions .dmn-btn { width: 100%; }
    .dmn-avatar { width: 32px; height: 32px; }
    .dmn-player strong { font-size: 14px; }
}
@media (orientation: landscape) and (max-height: 500px) {
    .dmn-table { min-height: calc(100dvh - 20px); gap: 2px; }
    .dmn-board-wrap { min-height: 110px; }
    .dmn-hand .dmn-tile { --s: 26px; }
}

/* ====================================================================== Design v2 (15/11/2026)
   Une seule ligne pour les trois jeux : nuit + or Bizouk, tables réalistes, compte à rebours autour de
   l'avatar, fenêtres en feuille basse sur téléphone, onglets entre les jeux. */
.dmn-page { --g-gold: #f5c518; --g-gold-2: #ffdf6b; --g-ink: #0d1f17; --g-felt-1: #2f8a57; --g-felt-2: #145a35; --g-felt-3: #0b3a22;
    --g-wood-1: #6b4423; --g-wood-2: #3a220f; --g-ivory-1: #fffdf6; --g-ivory-2: #e9e1cc; font-family: Roboto, "Helvetica Neue", Arial, sans-serif; }

/* Onglets Domino · Belote · Poker */
.gm-nav { display: flex; gap: 6px; padding: 4px; margin: 0 auto 14px; max-width: 420px; border-radius: 999px; background: var(--bzk-surface-3, #f1efe8); border: 1px solid var(--bzk-border, #e8e4d9); }
.gm-nav a { flex: 1; text-align: center; padding: 9px 10px; border-radius: 999px; font-weight: 700; font-size: 14px; color: var(--bzk-text-2, #555) !important; text-decoration: none !important; }
.gm-nav a.on { background: var(--g-ink); color: var(--g-gold) !important; box-shadow: 0 2px 8px rgba(0,0,0,.25); }

/* Accueil */
.dmn-hero { position: relative; overflow: hidden; border-radius: 24px; padding: 34px 18px 26px;
    background: radial-gradient(120% 90% at 50% 0%, #3a9b63 0%, #17603a 45%, #0b3a22 100%); }
.dmn-hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(60% 40% at 50% 110%, rgba(245,197,24,.18), transparent 70%); }
.dmn-hero h1 { font-size: 34px; font-weight: 900; letter-spacing: -.5px; text-wrap: balance; }
.dmn-hero .dmn-actions { flex-direction: column; align-items: stretch; max-width: 340px; margin: 16px auto 0; }
.dmn-btn { min-height: 50px; border-radius: 14px; font-size: 16px; transition: transform .12s, box-shadow .12s, filter .12s; }
.dmn-btn:active { transform: scale(.97); }
.dmn-btn-main { background: linear-gradient(180deg, var(--g-gold-2), var(--g-gold)); border: 0; box-shadow: 0 6px 18px rgba(245,197,24,.35), inset 0 -2px 0 rgba(0,0,0,.12); }
.dmn-btn-ghost { border-color: rgba(255,255,255,.35); }
.dmn-btn:focus-visible, .dmn-link:focus-visible, .gm-nav a:focus-visible { outline: 3px solid var(--g-gold); outline-offset: 2px; }
.dmn-card { border-radius: 18px; }
.dmn-rules li { margin-bottom: 4px; }

/* Table de jeu */
.dmn-table { border-radius: 26px; padding: 10px 10px 8px; position: relative;
    background: radial-gradient(130% 85% at 50% 45%, var(--g-felt-1) 0%, var(--g-felt-2) 55%, var(--g-felt-3) 100%);
    box-shadow: inset 0 0 0 7px var(--g-wood-1), inset 0 0 0 10px var(--g-wood-2), inset 0 0 60px rgba(0,0,0,.35), 0 14px 34px rgba(0,0,0,.3); }
.dmn-table::before { content: ""; position: absolute; inset: 10px; border-radius: 18px; pointer-events: none; opacity: .14;
    background-image: radial-gradient(rgba(255,255,255,.5) 1px, transparent 1px); background-size: 4px 4px; }
.dmn-bar { background: rgba(0,0,0,.22); border-radius: 16px; padding: 6px 10px; }
.dmn-player strong { font-weight: 800; }

/* Avatar + compte à rebours en anneau (--p de 0 à 1, posé par le script) */
.dmn-avatar { position: relative; z-index: 0; }
.gm-ring::before { content: ""; position: absolute; inset: -5px; border-radius: 50%; z-index: -1;
    background: conic-gradient(var(--ring, var(--g-gold)) calc(var(--p, 1) * 360deg), rgba(255,255,255,.14) 0); transition: background .2s; }
.gm-ring.gm-hurry { --ring: #ff6b5e; animation: gmPulse .8s ease-in-out infinite; }
@keyframes gmPulse { 50% { transform: scale(1.08); } }

/* Bandeau de tour */
.dmn-turn { display: flex; justify-content: center; align-items: center; gap: 8px; min-height: 30px; }
.dmn-my-turn .dmn-turn span:first-child { background: var(--g-gold); color: #2b2219; padding: 4px 14px; border-radius: 999px; box-shadow: 0 4px 14px rgba(245,197,24,.4); animation: gmIn .25s ease-out; }
@keyframes gmIn { from { transform: translateY(6px); opacity: 0; } }
.dmn-timer { display: none; }

/* Bouton Quitter dans la barre du haut */
.gm-menu { position: absolute; top: 14px; right: 14px; z-index: 3; width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25);
    background: rgba(0,0,0,.3); color: #fff; font-size: 18px; line-height: 1; cursor: pointer; }
.dmn-foot { display: none; }

/* Fenêtres : feuille basse sur téléphone */
.dmn-overlay { backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.dmn-modal { border-radius: 22px; box-shadow: 0 20px 50px rgba(0,0,0,.4); animation: gmUp .25s ease-out; }
@keyframes gmUp { from { transform: translateY(24px); opacity: 0; } }
@media (max-width: 640px) {
    .dmn-overlay { align-items: flex-end; padding: 0; }
    .dmn-modal { max-width: none; border-radius: 22px 22px 0 0; padding: 18px 18px calc(22px + env(safe-area-inset-bottom)); }
    .dmn-modal::before { content: ""; display: block; width: 44px; height: 5px; border-radius: 3px; background: var(--bzk-border-strong, #d4d0c8); margin: -6px auto 12px; }
}

/* Dominos : ivoire, relief, clou de laiton au centre */
.dmn-tile { background: linear-gradient(155deg, var(--g-ivory-1) 0%, #f6f0df 55%, var(--g-ivory-2) 100%); border: 1px solid #b9ad92; border-radius: 7px;
    box-shadow: 0 1px 0 #fff inset, 0 2px 0 #a2957a, 0 4px 8px rgba(0,0,0,.35); }
.dmn-half + .dmn-half { border-top: 1px solid #a89b80; }
.dmn-tile-h .dmn-half + .dmn-half { border-left: 1px solid #a89b80; }
.dmn-tile::after { content: ""; position: absolute; left: 50%; top: 50%; width: 5px; height: 5px; margin: -2.5px 0 0 -2.5px; border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #f6dc8a, #9c7a1c); box-shadow: 0 0 0 1px rgba(0,0,0,.15); }
.dmn-half i.on { background: radial-gradient(circle at 35% 30%, #4a4a4a 0%, #0d0d0d 70%); box-shadow: inset 0 1px 1px rgba(255,255,255,.25); }
.dmn-board { gap: 3px 1px; padding: 16px 8px; }
.dmn-board-wrap { position: relative; }
.dmn-board-wrap::before { content: ""; position: absolute; inset: 8px 4%; border-radius: 20px; border: 2px dashed rgba(255,255,255,.08); pointer-events: none; }
.dmn-hand { background: rgba(0,0,0,.22); border-radius: 18px; padding: 12px 6px 14px; }
.dmn-dim { opacity: .38; filter: saturate(.6); }
.dmn-my-turn .dmn-playable { box-shadow: 0 0 0 3px var(--g-gold), 0 0 18px rgba(245,197,24,.55), 0 4px 8px rgba(0,0,0,.35); }
.dmn-selected { transform: translateY(-14px) !important; }
/* Bouts du jeu où poser le domino choisi */
.dmn-ghost { width: calc(var(--s, 20px) * 2.1); height: var(--s, 20px); border-radius: 7px; border: 2px dashed var(--g-gold); background: rgba(245,197,24,.14);
    color: var(--g-gold); font-weight: 900; font-size: 18px; cursor: pointer; animation: gmGhost 1s ease-in-out infinite; flex: none; }
@keyframes gmGhost { 50% { background: rgba(245,197,24,.3); } }
.dmn-back { border-radius: 4px; background: linear-gradient(135deg, #8d2a2a, #5c1414); box-shadow: inset 0 0 0 2px rgba(255,255,255,.12); }
@media (prefers-reduced-motion: reduce) { .gm-ring.gm-hurry, .dmn-ghost, .dmn-new { animation: none; } }

/* Plateau en serpentin (snake() dans domino.js) : tuiles placées au pixel, demi-tuile = --u */
.dmn-board.dmn-snake { display: block; position: relative; padding: 0; margin: 10px auto; }
.dmn-snake .dmn-tile { position: absolute; --s: calc(var(--u) - 1px); border-radius: calc(var(--u) * .22); }
.dmn-snake .dmn-half { padding: calc(var(--u) * .12); }
.dmn-snake .dmn-tile::after { width: calc(var(--u) * .2); height: calc(var(--u) * .2); margin: calc(var(--u) * -.1) 0 0 calc(var(--u) * -.1); }
.dmn-snake .dmn-ghost { position: absolute; width: calc(var(--u) * 1.4); height: calc(var(--u) * 1.4); padding: 0; font-size: calc(var(--u) * .7); z-index: 2; }
.dmn-board-wrap { justify-content: center; align-items: stretch; }

/* ====================================================================== Chat des jeux (www/js/games-chat.js) */
.gc-btn { position: absolute; right: 14px; top: 58px; z-index: 5; width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer; font-size: 22px;
    background: linear-gradient(180deg, #ffdf6b, #f5c518); box-shadow: 0 6px 16px rgba(0,0,0,.35); }
.gc-btn[hidden] { display: none; }
.gc-badge { position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; border-radius: 10px; padding: 0 5px; background: #e53935; color: #fff;
    font-size: 12px; font-weight: 800; line-height: 20px; box-shadow: 0 0 0 2px #fff; }
.gc-bubble { position: absolute; left: 50%; top: 56px; transform: translateX(-50%); z-index: 6; max-width: 80%; background: #fff; color: #1b1b1b; border-radius: 16px 16px 16px 4px;
    padding: 8px 12px; font-size: 14px; box-shadow: 0 8px 20px rgba(0,0,0,.3); animation: gmIn .25s ease-out; transition: opacity .4s; }
.gc-bubble.gc-out { opacity: 0; }
.gc-panel { position: fixed; z-index: 2050; left: 0; right: 0; bottom: 0; max-height: 72vh; display: flex; flex-direction: column; gap: 8px;
    background: var(--bzk-surface, #fff); color: var(--bzk-text, #2b2219); border-radius: 22px 22px 0 0; padding: 12px 14px calc(12px + env(safe-area-inset-bottom));
    box-shadow: 0 -10px 40px rgba(0,0,0,.35); animation: gmUp .25s ease-out; font-family: Roboto, "Helvetica Neue", Arial, sans-serif; }
.gc-panel[hidden] { display: none; }
@media (min-width: 641px) { .gc-panel { left: auto; right: 24px; bottom: 24px; width: 380px; border-radius: 20px; } }
.gc-head { display: flex; justify-content: space-between; align-items: center; }
.gc-head strong { font-size: 17px; }
.gc-close { border: 0; background: var(--bzk-surface-3, #f1efe8); width: 34px; height: 34px; border-radius: 50%; cursor: pointer; color: inherit; }
.gc-rules { margin: 0; font-size: 12px; color: var(--bzk-text-muted, #8a7e70); }
.gc-list { flex: 1; min-height: 140px; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; padding: 4px 2px; }
.gc-empty { margin: auto; color: var(--bzk-text-muted, #8a7e70); font-size: 14px; }
.gc-msg { position: relative; align-self: flex-start; max-width: 82%; background: var(--bzk-surface-3, #f1efe8); border-radius: 16px 16px 16px 4px; padding: 6px 30px 6px 12px; font-size: 15px; overflow-wrap: anywhere; }
.gc-me { align-self: flex-end; background: #f5c518; color: #2b2219; border-radius: 16px 16px 4px 16px; padding-right: 12px; }
.gc-q .gc-text { font-weight: 800; }
.gc-name { display: block; font-size: 11px; font-weight: 800; color: var(--bzk-text-muted, #8a7e70); }
.gc-more { position: absolute; right: 4px; top: 4px; border: 0; background: none; cursor: pointer; color: inherit; font-size: 16px; opacity: .6; }
.gc-menu { display: flex; flex-direction: column; margin-top: 6px; border-top: 1px solid var(--bzk-border, #e8e4d9); }
.gc-menu button { border: 0; background: none; text-align: left; padding: 8px 0; font-weight: 700; cursor: pointer; color: inherit; }
.gc-notice { margin: 0; font-size: 13px; padding: 6px 10px; border-radius: 10px; background: var(--bzk-surface-3, #f1efe8); }
.gc-notice.gc-bad { background: #fde7e5; color: #a3261c; }
.gc-notice[hidden] { display: none; }
.gc-quick { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.gc-chip { flex: none; border: 1px solid var(--bzk-border-strong, #d4d0c8); background: var(--bzk-surface, #fff); color: inherit; border-radius: 999px; padding: 7px 12px; font-weight: 700; cursor: pointer; }
.gc-form { display: flex; gap: 8px; }
.gc-input { flex: 1; min-height: 46px; border-radius: 14px; border: 1px solid var(--bzk-border-strong, #d4d0c8); padding: 0 12px; font-size: 16px; background: var(--bzk-surface-2, #faf9f5); color: inherit; }
.gc-send { min-height: 46px; padding: 0 16px; border: 0; border-radius: 14px; background: #f5c518; color: #2b2219; font-weight: 800; cursor: pointer; }
.gc-btn:focus-visible, .gc-chip:focus-visible, .gc-send:focus-visible, .gc-input:focus-visible { outline: 3px solid #f5c518; outline-offset: 2px; }

/* ====================================================================== Domino à 2 ou 3 (15/11/2026) */
.dmn-seats { display: inline-flex; gap: 4px; padding: 4px; margin: 14px auto 0; border-radius: 16px; background: rgba(0,0,0,.28); }
.dmn-seats button { border: 0; background: transparent; color: #fff; padding: 9px 16px; border-radius: 12px; font-weight: 700; font-size: 15px; cursor: pointer; }
.dmn-seats button b { font-size: 18px; }
.dmn-seats button small { display: block; font-size: 11px; font-weight: 500; opacity: .8; }
.dmn-seats button.on { background: #fff; color: #14492d; box-shadow: 0 4px 12px rgba(0,0,0,.25); }
.dmn-seats button:focus-visible { outline: 3px solid var(--g-gold, #f5c518); outline-offset: 2px; }
.dmn-opps { display: grid; gap: 6px; margin-right: 46px; }
.dmn-opps-3 { grid-template-columns: 1fr 1fr; }
.dmn-opps-3 .dmn-bar { padding: 5px 7px; }
.dmn-opps-3 .dmn-player { gap: 6px; }
.dmn-opps-3 .dmn-player strong { font-size: 13px; max-width: 90px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dmn-opps-3 .dmn-avatar { width: 30px; height: 30px; font-size: 13px; }
.dmn-opps-3 .dmn-score { font-size: 15px; letter-spacing: 2px; }
.dmn-opps-3 .dmn-back { width: 11px; height: 21px; }
.dmn-opp { border-radius: 16px; transition: box-shadow .2s; }
.dmn-opp-active .dmn-bar { box-shadow: 0 0 0 2px var(--g-gold, #f5c518); }
.dmn-avatar-bot { background: var(--g-gold, #f5c518); color: #2b2219; }
.dmn-seated { font-size: 28px; font-weight: 900; margin: 4px 0; }
.dmn-points { display: grid; gap: 6px; margin: 10px 0; text-align: left; }
.dmn-pt { display: flex; justify-content: space-between; padding: 8px 12px; border-radius: 12px; background: var(--bzk-surface-3, #f1efe8); }
.dmn-pt-win { background: #e7f6ea; font-weight: 800; }
/* Zone de pose dessinée (remplace les flèches ◀ ▶) */
.dmn-ghost { display: inline-flex; align-items: center; justify-content: center; color: #ffe27a; -webkit-appearance: none; appearance: none;
    border: 2px dashed #ffd23f; background: radial-gradient(circle, rgba(255,210,63,.35), rgba(255,210,63,.12)); box-shadow: 0 0 14px rgba(255,210,63,.45); }
.dmn-ghost svg { width: 72%; height: 72%; display: block; filter: drop-shadow(0 1px 1px rgba(0,0,0,.4)); }

/* ====================================================================== Accueil des jeux /games (16/11/2026) */
.gh-hero { background: radial-gradient(120% 90% at 50% 0%, #2b3a8a 0%, #172466 45%, #0b1238 100%); }
.gh-rdv { display: inline-flex; flex-direction: column; gap: 2px; margin-top: 10px; padding: 10px 18px; border-radius: 16px; background: rgba(255,255,255,.12); }
.gh-rdv-label { font-size: 12px; text-transform: uppercase; letter-spacing: 1px; opacity: .85; }
.gh-rdv-when { font-size: 20px; text-transform: capitalize; }
.gh-rdv-in { opacity: .8; }
.gh-live { background: #f5c518; color: #2b2219; animation: gmPulse 1.6s ease-in-out infinite; }
.gh-games { display: grid; gap: 12px; margin-top: 16px; }
.gh-game { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 20px; color: #fff !important; text-decoration: none !important;
    box-shadow: 0 10px 24px rgba(0,0,0,.18); transition: transform .12s; }
.gh-game:active { transform: scale(.98); }
.gh-domino { background: linear-gradient(135deg, #2f8a57, #0f4429); }
.gh-belote { background: linear-gradient(135deg, #a3262a, #4d0f12); }
.gh-poker { background: linear-gradient(135deg, #2b5f8a, #0d2a44); }
.gh-art { width: 64px; display: flex; justify-content: center; flex: none; }
.gh-art .blt-card { --w: 46px; }
.gh-art .dmn-tile-lg { --s: 26px; }
.gh-txt { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.gh-txt strong { font-size: 20px; font-weight: 900; }
.gh-txt small { opacity: .85; font-size: 13px; }
.gh-txt em { font-style: normal; font-size: 12px; color: #c8f0d6; }
.gh-go { font-size: 30px; opacity: .7; }
.gh-boards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-top: 10px; }
.gh-board h3 { font-size: 15px; margin: 0 0 6px; }
.gh-board ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.gh-board li { display: flex; gap: 8px; align-items: center; padding: 6px 10px; border-radius: 10px; background: var(--bzk-surface-3, #f1efe8); font-size: 14px; }
.gh-board li.gh-me { background: #fff3c4; font-weight: 800; }
.gh-rank { width: 22px; height: 22px; border-radius: 50%; background: var(--bzk-surface, #fff); display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; }
.gh-board li:nth-child(1) .gh-rank { background: #f5c518; }
.gh-name { flex: 1; }
.gh-wins { font-variant-numeric: tabular-nums; color: var(--bzk-text-muted, #8a7e70); }
.gh-rules h2 { font-size: 16px; margin: 16px 0 4px; }
.gh-rules p { line-height: 1.55; max-width: 68ch; }
.gh-accept { display: grid; gap: 12px; margin-top: 18px; padding: 16px; border-radius: 16px; background: var(--bzk-surface-3, #f1efe8); }
.gh-accept label { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; }
.gh-accept input { width: 22px; height: 22px; flex: none; margin-top: 1px; }
.gh-ok { color: var(--bzk-success, #2e7d32); font-weight: 700; }
.gh-rules-link { text-align: center; }

/* Son, revanche (16/11/2026) */
.gm-sound { position: absolute; top: 14px; right: 58px; z-index: 3; width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25);
    background: rgba(0,0,0,.3); color: #fff; font-size: 16px; line-height: 1; cursor: pointer; }
.dmn-opps { margin-right: 92px; }
.gm-rematch { width: 100%; margin-top: 10px; }
.gm-rematch-note { font-weight: 800; color: var(--bzk-success, #2e7d32); }
