:root{color-scheme:dark;--bg:#101917;--panel:#192420;--panel2:#202e28;--line:#314039;--ink:#f0f2e9;--muted:#a3b3a8;--gold:#e6bd73;--green:#94cfac;--red:#efa1a1;font-family:Inter,Segoe UI,system-ui,sans-serif;font-size:16px;line-height:1.5}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink)}button,input,select{font:inherit}button,a,input,select{touch-action:manipulation}button{cursor:pointer;border:1px solid var(--line);background:var(--panel2);color:var(--ink);border-radius:8px;padding:.65rem 1rem;font-weight:600;min-height:44px}button:hover{background:#304338;border-color:#597063}button:disabled{opacity:.45;cursor:default}button.primary{background:var(--gold);color:#1f251e;border-color:var(--gold)}button.danger{color:var(--red)}button.small{padding:.35rem .65rem;font-size:.875rem}button.icon{padding:.4rem .6rem}a{color:var(--gold)}input,select{border:1px solid #4a5d51;background:#101b16;border-radius:7px;color:var(--ink);padding:.65rem;width:100%;min-height:44px}input[type=checkbox]{width:20px;min-height:20px;accent-color:var(--gold)}label{display:block;color:var(--muted);font-size:.875rem}label input,label select{margin-top:.35rem;color:var(--ink)}:focus-visible{outline:3px solid var(--gold);outline-offset:3px}h1,h2,h3,p{margin-top:0}h1{font-size:2rem;font-weight:650;letter-spacing:-.035em;margin-bottom:.5rem}h2{font-size:1.3rem;letter-spacing:-.02em}h3{font-size:1.05rem}p{color:var(--muted)}small,.muted{color:var(--muted);font-size:.875rem}.eyebrow{font-size:.875rem;letter-spacing:.1em;text-transform:uppercase;color:var(--gold)}.shell{display:grid;grid-template-columns:240px 1fr;min-height:100vh}.sidebar{border-right:1px solid var(--line);padding:2rem 1.1rem;display:flex;flex-direction:column;position:sticky;top:0;height:100vh}.brand{display:flex;gap:.75rem;align-items:center;margin-bottom:2.5rem;padding:0 .5rem}.brand .suit{font-size:3rem;line-height:1;color:var(--gold)}.brand strong{font-size:1.1rem;line-height:1.2;display:block}.brand small{display:block;font-size:.8rem;margin-top:.3rem;letter-spacing:.07em}.nav{display:flex;flex-direction:column;gap:.5rem}.nav button{text-align:left;background:transparent;border-color:transparent;font-weight:500;color:var(--muted)}.nav button.active{background:#2c3b2e;color:var(--gold);border-color:#47553d}.nav .glyph{display:inline-block;width:2rem;font-size:1.1rem}.sidebar-footer{margin-top:auto;border-top:1px solid var(--line);padding:.9rem .5rem 0;display:grid;gap:.65rem}.connection{font-size:.875rem;color:var(--green)}.connection.offline{color:var(--red)}.content{padding:2rem 3rem;max-width:1600px;width:100%;margin:0 auto}.topline{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--line);padding-bottom:1rem;margin-bottom:2rem;gap:1rem}.topline span{font-size:.875rem;color:var(--muted)}.header{display:flex;justify-content:space-between;align-items:flex-start;gap:1rem;margin-bottom:1.8rem}.header p{margin-bottom:0}.actions{display:flex;gap:.6rem;flex-wrap:wrap;align-items:center}.card{border:1px solid var(--line);border-radius:13px;background:var(--panel);padding:1.5rem;margin-bottom:1.4rem}.card-title{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin-bottom:1rem}.card-title h2{margin:0}.grid{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(280px,1fr);gap:1.5rem}.grid.equal{grid-template-columns:repeat(2,minmax(0,1fr))}.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1rem;margin:1.5rem 0}.stat{border:1px solid var(--line);border-radius:10px;padding:1rem 1.25rem;background:var(--panel)}.stat span{display:block;color:var(--muted);font-size:.875rem}.stat strong{font-size:1.65rem;font-weight:600;color:var(--ink)}.stat em{font-size:.875rem;font-style:normal;color:var(--muted)}.tag{display:inline-block;font-size:.8rem;background:#344233;padding:.2rem .6rem;border-radius:20px;color:var(--green)}.tag.gold{color:var(--gold);background:#423a27}.tag.gray{color:var(--muted);background:#2b322e}.timer-card{background:linear-gradient(135deg,#213e2e,#17291f);text-align:center;border-color:#456749;position:relative;overflow:hidden}.timer-card .level-label{color:var(--green);text-transform:uppercase;font-size:.875rem;letter-spacing:.15em}.timer{font-variant-numeric:tabular-nums;font-size:clamp(4rem,8vw,7.5rem);font-weight:550;line-height:1.05;letter-spacing:-.06em;color:var(--ink);margin:.6rem 0 1rem}.timer.urgent{color:var(--gold)}.blinds{font-size:2.2rem;letter-spacing:-.03em;font-weight:600}.ante{color:var(--muted);font-size:.95rem}.timer-controls{display:flex;justify-content:center;gap:.6rem;margin:1.5rem 0;flex-wrap:wrap}.next-level{border-top:1px solid #436044;padding-top:1rem;display:flex;justify-content:center;align-items:center;gap:1rem;color:var(--muted)}.next-level strong{color:var(--ink)}.progress{height:3px;background:#294634;position:absolute;bottom:0;left:0;right:0}.progress span{display:block;height:100%;background:var(--gold)}.empty{padding:3rem 1rem;text-align:center}.empty .suit{font-size:4rem;color:var(--gold)}.empty p{max-width:480px;margin:0 auto 1.5rem}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse;text-align:left;font-size:.9375rem}th{font-weight:500;color:var(--muted);font-size:.8125rem;white-space:nowrap;padding:.8rem;border-bottom:1px solid var(--line)}td{padding:.9rem .8rem;border-bottom:1px solid #2c3931}tr:last-child td{border-bottom:none}td.numeric,th.numeric{text-align:right;font-variant-numeric:tabular-nums}.rank{color:var(--muted);width:50px}.rank.top{color:var(--gold);font-weight:700}.player{font-weight:600;display:flex;align-items:center;gap:.6rem}.avatar{display:inline-flex;width:30px;height:30px;border-radius:50%;align-items:center;justify-content:center;background:#354939;color:var(--green);font-size:.75rem;flex-shrink:0}.total{color:var(--gold);font-weight:700}.roster{display:grid;gap:.6rem}.roster-row{display:flex;align-items:center;justify-content:space-between;gap:.75rem;border-bottom:1px solid var(--line);padding:.6rem 0}.roster-row:last-child{border-bottom:0}.roster-row.out{opacity:.55}.roster-row select{width:80px;font-size:.875rem;padding:.3rem;min-height:36px}.leader{display:flex;justify-content:space-between;align-items:center;padding:.8rem 0;border-bottom:1px solid var(--line);gap:1rem}.leader:last-child{border:0}.leader strong.points{font-size:1.5rem;color:var(--gold)}.leader .number{color:var(--gold);font-size:1.25rem;margin-right:.5rem}.note{background:#352f22;border:1px solid #665534;border-radius:8px;padding:1rem;color:#e6c790;font-size:.875rem;margin:1rem 0}.note p{color:inherit;margin-bottom:0}.forms{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}.forms .full{grid-column:1/-1}.check-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.5rem}.check-label{display:flex;align-items:center;gap:.6rem;color:var(--ink);padding:.65rem;border:1px solid var(--line);border-radius:7px;cursor:pointer}.check-label input{margin:0}.history-item{display:grid;grid-template-columns:1fr auto;gap:1rem;align-items:center;padding:1.2rem 0;border-bottom:1px solid var(--line)}.history-item:last-child{border:0}.history-item h3{margin:0}.history-item p{margin:.3rem 0 0;font-size:.875rem}.model{cursor:pointer;text-align:left;display:block;width:100%;padding:1.3rem;margin-bottom:.8rem;border-radius:10px}.model strong{display:block;font-size:1.1rem}.model small{display:block;margin-top:.3rem}.model.selected{border-color:var(--gold);background:#3a3828}.editor-table input{min-width:68px;padding:.4rem}.editor-table select{min-width:105px;padding:.4rem}.editor-table td{padding:.4rem}.editor-table th{padding:.4rem}.editor-toolbar{display:flex;justify-content:space-between;gap:1rem;flex-wrap:wrap}.steps{display:grid;gap:.5rem;max-height:360px;overflow:auto}.step{display:flex;justify-content:space-between;gap:1rem;border-bottom:1px solid var(--line);padding:.6rem}.step.current{color:var(--gold);background:#373b27}.step small{display:block}.tabs{display:flex;gap:.5rem;flex-wrap:wrap;margin-bottom:1.5rem}.tabs button.active{color:var(--gold);border-color:var(--gold)}dialog{color:var(--ink);background:var(--panel);border:1px solid #5c6b5c;border-radius:14px;width:min(850px,94vw);max-height:90vh;padding:1.6rem;box-shadow:0 20px 80px #0008}dialog::backdrop{background:#000b}dialog h2{margin:0}.dialog-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:1.3rem}.dialog-actions{display:flex;gap:.6rem;justify-content:flex-end;margin-top:1.5rem}.error{color:var(--red);padding:.5rem 0}.error:empty{display:none}#toast{position:fixed;right:1.5rem;bottom:1.5rem;max-width:min(500px,90vw);background:#dfc286;color:#192119;border-radius:9px;box-shadow:0 6px 40px #0008;padding:.9rem 1.3rem;z-index:10;display:none}.audit{font-size:.875rem;color:var(--muted);padding:.5rem 0;border-bottom:1px solid var(--line)}.split-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:.8rem;margin-bottom:1rem}.split-stats strong{display:block;font-size:1.7rem;color:var(--gold)}.split-stats span{font-size:.875rem;color:var(--muted)}.bar{height:6px;background:#354738;border-radius:10px;overflow:hidden;margin-top:.5rem}.bar span{display:block;height:100%;background:var(--gold)}.loading{padding:3rem}.tv{padding:2rem;min-height:100vh;display:flex;flex-direction:column;justify-content:center;text-align:center;background:radial-gradient(ellipse at center,#20402b,#101917 75%)}.tv header{display:flex;justify-content:space-between;align-items:center;gap:1rem}.tv .brand{margin:0;text-align:left}.tv .timer{font-size:clamp(5rem,19vw,19rem);margin:1rem 0}.tv .blinds{font-size:clamp(2.3rem,6vw,6rem)}.tv .level-label{font-size:1.1rem;color:var(--gold);letter-spacing:.15em;text-transform:uppercase}.tv .stats{max-width:1000px;width:100%;margin:2rem auto}.tv .stat{background:#182c20}.tv footer{color:var(--muted)}.tv button{font-size:.875rem}.mobile-only{display:none}
@media(min-width:1700px){.content{padding:2.5rem 4rem}}
@media(max-width:1100px){.shell{grid-template-columns:190px 1fr}.sidebar{padding:1.5rem .6rem}.content{padding:1.5rem}.grid{grid-template-columns:1fr}.grid.equal{grid-template-columns:1fr 1fr}.timer{font-size:6rem}.stats{gap:.6rem}.stat{padding:.8rem}.check-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:760px){.shell{display:block}.sidebar{position:static;height:auto;border-right:0;border-bottom:1px solid var(--line);padding:1rem}.brand{margin:0}.brand .suit{font-size:2.4rem}.brand small{font-size:.75rem}.sidebar .brand{margin-bottom:.8rem}.nav{flex-direction:row;overflow:auto;gap:.3rem}.nav button{white-space:nowrap;padding:.55rem .75rem;font-size:.875rem}.nav .glyph{display:none}.sidebar-footer{display:none}.content{padding:1.1rem}.topline{margin-bottom:1.2rem;padding-bottom:.8rem}.header{flex-wrap:wrap;margin-bottom:1.2rem}h1{font-size:1.65rem}.card{padding:1rem}.grid.equal{grid-template-columns:1fr}.stats{grid-template-columns:repeat(2,1fr);gap:.6rem}.stat strong{font-size:1.5rem}.timer{font-size:5.5rem}.blinds{font-size:2rem}.forms{grid-template-columns:1fr}.forms .full{grid-column:auto}.check-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.check-label{font-size:.875rem;padding:.45rem}.mobile-only{display:inline-flex}.tv{padding:1rem}.tv header{align-items:flex-start}.tv .brand small{display:none}.tv .stats{margin:1.5rem auto}.split-stats{grid-template-columns:repeat(3,1fr)}.history-item{grid-template-columns:1fr}.actions{gap:.4rem}td,th{padding:.65rem .5rem}dialog{padding:1rem}}
.editor-table .actions{flex-wrap:nowrap}.editor-table td:last-child{white-space:nowrap}.editor-table select{min-width:100px}
.brand .club-logo{display:block;width:64px;height:64px;object-fit:contain;flex-shrink:0;border-radius:8px}
.tv .brand .club-logo{width:72px;height:72px}
@media(max-width:1100px){.sidebar .brand .club-logo{width:48px;height:48px}}
@media(max-width:760px){.brand .club-logo,.sidebar .brand .club-logo,.tv .brand .club-logo{width:56px;height:56px}}
.content,.tv{position:relative;isolation:isolate}
.content::before,.tv::before{content:"";position:fixed;inset:0 0 0 240px;background:url('/logo-club.edc33bb84c.webp') center / min(78vw,780px) auto no-repeat;opacity:.14;mix-blend-mode:screen;pointer-events:none;z-index:-1}
.tv::before{inset:0;background-size:min(82vw,900px);opacity:.12}
.card{background-color:rgba(25,36,32,.86)}
.timer-card{background:linear-gradient(135deg,rgba(33,62,46,.88),rgba(23,41,31,.88))}
@media(max-width:1100px){.content::before{left:190px;background-size:min(75vw,720px)}}
@media(max-width:760px){.content::before{left:0;background-size:94vw}.tv::before{background-size:94vw}}
@media(prefers-reduced-motion:no-preference){button{transition:background .15s,border-color .15s}.progress span{transition:width .4s}}

.tv-results{max-width:1100px;margin:24px auto;text-align:left}.tv-results h2{font-size:24px}.tv-results p{font-size:14px}.tv-results table{font-size:18px}

dialog:has(.seat-map){width:min(1240px,96vw);max-width:1240px}.seat-map-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(320px,1fr));gap:18px;margin-top:20px}.seat-map-table{background:#101c17;border:1px solid var(--line);border-radius:14px;padding:16px}.seat-map-table h3{display:flex;justify-content:space-between;align-items:center}.poker-table-plan{position:relative;height:340px}.poker-felt{position:absolute;inset:23% 17%;border:10px solid #65513a;border-radius:50%;background:radial-gradient(ellipse,#2c684b,#16452f);box-shadow:0 0 0 4px #302c22,inset 0 0 24px #09291e;display:flex;flex-direction:column;align-items:center;justify-content:center;color:#e4c481;gap:10px}.poker-felt span{font-size:10px;letter-spacing:1px}.poker-felt strong{font-size:21px}.poker-seat{position:absolute;transform:translate(-50%,-50%);width:90px;min-height:52px;background:#203429;border:1px solid #748363;border-radius:10px;text-align:center;padding:6px 4px;box-shadow:0 3px 8px #0005}.poker-seat strong{display:block;font-size:12px;overflow-wrap:anywhere}.seat-number{display:inline-flex;justify-content:center;align-items:center;width:22px;height:22px;border-radius:50%;background:var(--gold);color:#15231b;font-weight:800;margin-bottom:3px}.poker-seat small{display:block;color:var(--gold);font-size:10px}.empty-table{position:absolute;left:50%;top:78%;transform:translateX(-50%);color:var(--muted)}@media(max-width:420px){.seat-map-grid{grid-template-columns:1fr}.seat-map-table{padding:8px}.poker-seat{width:74px}.poker-seat strong{font-size:11px}.poker-table-plan{height:320px}}

/* Tables ovales : grand axe horizontal, sièges autour du tapis. */
.poker-table-plan{height:280px}.poker-felt{inset:28% 12%;border-radius:50%}.seat-map-grid{grid-template-columns:repeat(auto-fit,minmax(350px,1fr))}@media(max-width:760px){.seat-map-grid{grid-template-columns:1fr}.poker-table-plan{height:270px}}

.winner-dialog{width:min(90vw,900px);max-width:900px;border:2px solid #c9a75c;background:#10221d;color:#fff;text-align:center}.winner-dialog::backdrop{background:rgba(0,0,0,.85)}.winner-celebration{padding:clamp(24px,5vw,64px)}.winner-celebration h1{font-size:clamp(40px,9vw,110px);color:#e8c878;overflow-wrap:anywhere;margin:24px 0}.winner-crown{font-size:72px;color:#e8c878}

/* Tapis en forme de rectangle à extrémités arrondies. */
.poker-table-plan{height:350px;min-width:420px}.poker-felt{inset:27% 16%;border-radius:999px;border:12px solid #584330;background:radial-gradient(ellipse at center,#317354,#16452f);box-shadow:0 0 0 5px #252019,0 10px 20px #0006,inset 0 0 0 2px #b5a36a66,inset 0 0 28px #09291e}.poker-felt::after{content:'♠ ♥ ♣ ♦';font-size:18px;letter-spacing:8px;color:#d7c18480}.seat-map-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,540px),1fr));gap:22px}.seat-map-table{overflow-x:auto}.poker-seat{width:76px;min-height:64px}.poker-seat strong{font-size:12px}.tv .seat-map{font-size:16px}.tv .seat-map-table h3{font-size:22px}.tv-clock-controls{justify-content:center;margin:20px 0}.tv-clock-controls button{font-size:20px;padding:12px 24px}@media(max-width:600px){.poker-table-plan{height:310px;min-width:420px}.poker-seat{width:64px}.poker-seat strong{font-size:11px}}

/* Dimensions constantes, y compris quand il ne reste qu'une table. */
.seat-map-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,576px),576px));justify-content:center;align-items:start}
.poker-table-plan{width:540px;min-width:540px;height:350px;margin-inline:auto}
.seat-map-table{min-width:0;max-width:100%;overflow-x:auto}
.poker-seat{width:76px;min-height:64px}.poker-seat strong{font-size:12px}

/* Vue TV responsive en portrait et en paysage. */
.tv{width:100%;max-width:1600px;margin-inline:auto;padding:clamp(12px,3vw,40px)}
.tv header{gap:16px;flex-wrap:wrap}.tv header .brand{min-width:0}.tv header .actions{justify-content:flex-end;flex:1;min-width:0}
.tv .timer{font-size:clamp(64px,17vw,240px)}.tv .blinds{font-size:clamp(28px,6vw,80px);overflow-wrap:anywhere}.tv .level-label{font-size:clamp(12px,2vw,20px)}
.tv .stat{min-width:0}.tv .stat strong{font-size:clamp(18px,2.7vw,36px);overflow-wrap:anywhere}.tv .stat em{display:block;margin-top:6px;color:var(--gold)}
.tv-view-switch{display:flex;gap:12px;justify-content:center;flex-wrap:wrap;margin:20px 0}.tv-view-switch button{min-height:48px}
.tv-detail-pane{min-width:0}.tv .tv-results{margin-top:0}.tv .table-wrap{max-width:100%;overflow-x:auto}.tv .next-level{flex-wrap:wrap}.tv .seat-map{max-width:100%}
@media(max-width:900px){.tv header{align-items:flex-start}.tv header .actions{flex-basis:100%;justify-content:center}.tv .stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.tv .stat{padding:12px}.tv .tv-results table{font-size:14px}.tv th,.tv td{padding:10px 8px}.tv .brand{margin-bottom:0}.tv .club-logo{width:52px;height:52px}}
@media(max-width:480px){.tv header .actions button{font-size:12px;padding:8px 10px}.tv .brand strong{font-size:16px}.tv .brand small{font-size:11px;letter-spacing:0}.tv .timer{font-size:clamp(64px,22vw,100px)}.tv-clock-controls{gap:6px;margin:12px 0}.tv-clock-controls button{font-size:14px;padding:10px 12px}.tv-view-switch{gap:8px}.tv-view-switch button{font-size:14px;padding:10px}.tv .stat span{font-size:12px}.tv .seat-map-table{padding:8px}.tv .seat-map-table h3{font-size:18px}}
@media(orientation:landscape) and (max-height:600px){.tv{padding:12px 18px}.tv .timer{font-size:clamp(64px,14vh,110px);margin:8px 0}.tv .blinds{font-size:32px}.tv .stats{grid-template-columns:repeat(4,minmax(0,1fr));margin:12px 0}.tv .stat strong{font-size:20px}.tv header .actions{flex-basis:auto}.tv .brand small{font-size:11px}.tv-clock-controls{margin:10px 0}.tv-clock-controls button{font-size:14px;padding:8px 12px}}

/* TV : une seule page qui tient dans le viewport, sans ascenseur. */
body.tv-active{height:100dvh;overflow:hidden}body.tv-active #app{height:100%;overflow:hidden}
.tv{height:100dvh;max-width:none;display:grid;grid-template-rows:auto minmax(0,1fr) auto;gap:10px;overflow:hidden;padding:12px 20px}
.tv header{margin:0;gap:8px}.tv header .brand{margin:0}.tv header button{min-height:36px;padding:6px 10px;font-size:12px}.tv header .club-logo{width:44px;height:44px}
.tv-dashboard{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:18px;min-height:0;overflow:hidden}
.tv-stage{min-height:0;min-width:0;display:flex;flex-direction:column;justify-content:center;overflow:hidden}
.tv-stage .timer{font-size:clamp(48px,min(12vw,20vh),180px);margin:6px 0}.tv-stage .blinds{font-size:clamp(24px,min(5vw,7vh),60px)}
.tv-stage .stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;margin:10px 0}.tv-stage .stat{padding:8px}.tv-stage .stat strong{font-size:clamp(15px,2vw,26px)}.tv-stage .stat span,.tv-stage .stat em{font-size:12px}
.tv-stage .next-level{padding-top:8px;gap:8px;font-size:12px}.tv-stage .level-label,.tv-stage .ante{font-size:12px}.tv-clock-controls{margin:8px 0}.tv-clock-controls button{min-height:36px;font-size:13px;padding:6px 10px}
.tv-view-switch{margin:6px 0;gap:6px}.tv-view-switch button{min-height:36px;font-size:12px;padding:6px 10px}
.tv-detail-pane{min-width:0;min-height:0;overflow:hidden;display:flex;justify-content:center;align-items:center}
.tv-detail-pane>div,.tv-detail-pane>section{flex-shrink:0;width:100%}.tv-detail-pane .seat-map-grid{margin:6px 0;gap:10px}.tv-detail-pane .seat-map-table{overflow:visible}.tv-detail-pane .seat-map-table h3{margin:0;font-size:18px}.tv-detail-pane .table-wrap{overflow:visible}.tv-detail-pane .tv-results{margin:0;padding:12px}.tv-detail-pane .tv-results h2{font-size:18px}.tv-detail-pane .tv-results p,.tv-detail-pane .seat-map>p{font-size:12px;margin-bottom:6px}.tv footer{font-size:11px}
@media(orientation:portrait){.tv{padding:8px;gap:6px}.tv-dashboard{grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr) minmax(0,1fr);gap:8px}.tv header .actions{flex-basis:100%;gap:4px}.tv header .brand small{font-size:10px}.tv header button{font-size:10px;padding:4px 6px;min-height:30px}.tv-stage .timer{font-size:clamp(40px,10vh,90px);margin:0}.tv-stage .blinds{font-size:24px}.tv-stage .stats{grid-template-columns:repeat(4,minmax(0,1fr));margin:5px 0;gap:4px}.tv-stage .stat{padding:5px}.tv-stage .stat strong{font-size:13px}.tv-stage .stat span,.tv-stage .stat em{font-size:9px}.tv-stage .stat em{margin-top:2px}.tv-stage .ante,.tv-stage .level-label,.tv-stage .next-level{font-size:10px}.tv-stage .next-level{padding-top:4px}.tv-clock-controls{margin:4px 0}.tv-clock-controls button,.tv-view-switch button{min-height:30px;font-size:10px;padding:4px 8px}.tv-view-switch{margin:4px 0}}
@media(orientation:landscape) and (max-height:500px){.tv{padding:6px 10px;gap:4px}.tv header .brand small{display:none}.tv header .club-logo{width:32px;height:32px}.tv header .actions{flex-basis:auto}.tv header button{font-size:10px;min-height:30px;padding:4px 6px}.tv-stage .timer{font-size:clamp(36px,16vh,70px)}.tv-stage .blinds{font-size:22px}.tv-stage .stats{margin:4px 0}.tv-stage .stat{padding:4px}.tv-stage .stat strong{font-size:13px}.tv-stage .stat span,.tv-stage .stat em{font-size:9px}.tv-stage .ante,.tv-stage .level-label,.tv-stage .next-level{font-size:10px}.tv-clock-controls{margin:3px 0}.tv-clock-controls button,.tv-view-switch button{min-height:28px;padding:3px 6px;font-size:10px}.tv-view-switch{margin:3px 0}}
@media(max-width:900px){.tv-detail-pane .tv-results p{display:none}.tv-detail-pane .tv-results th,.tv-detail-pane .tv-results td{padding:4px 6px}.tv-detail-pane .tv-results table{font-size:14px}.tv-detail-pane .tv-results th:nth-child(3),.tv-detail-pane .tv-results td:nth-child(3),.tv-detail-pane .tv-results th:nth-child(4),.tv-detail-pane .tv-results td:nth-child(4),.tv-detail-pane .tv-results th:nth-child(5),.tv-detail-pane .tv-results td:nth-child(5){display:none}}

/* Chaque vue TV occupe seule la totalité de l'écran. */
.tv-base .tv-dashboard{grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr)}
.tv-base .tv-stage{width:100%;align-items:stretch}.tv-base .tv-stage .timer{font-size:clamp(70px,min(24vw,30vh),330px)}.tv-base .tv-stage .blinds{font-size:clamp(30px,min(10vw,10vh),110px)}
.tv-base .tv-stage .stats{grid-template-columns:repeat(4,minmax(0,1fr));width:100%;max-width:1400px;margin:12px auto}.tv-base .tv-stage .stat strong{font-size:clamp(18px,3vw,40px)}.tv-base .tv-stage .stat span,.tv-base .tv-stage .stat em{font-size:clamp(12px,1.4vw,20px)}
.tv-only{grid-template-rows:auto minmax(0,1fr);gap:12px}.tv-only-nav{display:flex;justify-content:center;gap:8px;flex-wrap:wrap}.tv-only .tv-detail-pane{width:100%;height:100%}.tv-only .seat-map>p,.tv-only .tv-results p{display:none}.tv-only .tv-results{max-width:1400px}.tv-only .seat-map-grid{justify-content:center}.tv-only .tv-results table{font-size:clamp(16px,2.5vh,28px)}
@media(orientation:portrait){.tv-base .tv-stage .timer{font-size:clamp(60px,min(28vw,20vh),180px)}.tv-base .tv-stage .blinds{font-size:clamp(28px,9vw,60px)}.tv-base .tv-stage .stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.tv-base .tv-stage .stat{padding:12px}.tv-base .tv-stage .stat strong{font-size:clamp(16px,5vw,26px)}.tv-base .tv-stage .stat span,.tv-base .tv-stage .stat em{font-size:12px}.tv-only-nav button{font-size:12px;padding:6px 10px;min-height:36px}}
@media(orientation:landscape) and (max-height:500px){.tv-base .tv-stage .timer{font-size:24vh;margin:0}.tv-base .tv-stage .blinds{font-size:8vh}.tv-base .tv-stage .stats{margin:5px auto}.tv-base .tv-stage .stat{padding:5px}.tv-base .tv-stage .stat strong{font-size:16px}.tv-base .tv-stage .stat span,.tv-base .tv-stage .stat em{font-size:10px}.tv-only-nav button{font-size:12px;min-height:30px;padding:4px 10px}}

.tv-base-content{width:100%;flex-shrink:0}.tv-base .tv-stage{align-items:center}

/* Lecture à distance : priorité aux chiffres et aux noms. */
.tv{padding:8px 12px;gap:6px}.tv header .brand strong{font-size:16px}.tv header .brand small{font-size:11px}.tv header .club-logo{width:36px;height:36px}.tv header .actions{gap:5px}
.tv-base .tv-stage .timer{font-size:clamp(90px,min(34vw,40vh),620px);font-weight:750;line-height:.95;letter-spacing:-.055em;margin:2px 0 8px}
.tv-base .tv-stage .blinds{font-size:clamp(40px,min(13vw,13vh),180px);font-weight:750;line-height:1.05}.tv-base .tv-stage .ante{font-size:clamp(14px,2.4vh,30px);color:#f4f5eb}.tv-base .tv-stage .level-label{font-size:clamp(14px,2.5vh,30px);font-weight:700;color:#f2d288}.tv-base .tv-stage .next-level{font-size:clamp(14px,2.4vh,28px);padding:6px 0}
.tv-base .tv-stage .stats{max-width:none;gap:8px;margin:8px 0}.tv-base .tv-stage .stat{padding:8px 12px}.tv-base .tv-stage .stat strong{font-size:clamp(22px,4vw,56px);font-weight:750;line-height:1.15}.tv-base .tv-stage .stat em{font-size:clamp(16px,2.3vw,32px);color:#f2d288}.tv-base .tv-stage .stat span{font-size:clamp(13px,1.5vw,20px);color:#e2e9e2}
.tv-view-switch{margin:5px 0}.tv-only-nav{gap:6px}.tv-only-nav button{min-height:34px;padding:5px 10px;font-size:12px}
.tv-only .seat-map-table{padding:10px;background:#10221ce8}.tv-only .seat-map-table h3{font-size:24px;color:#fff}.tv-only .poker-seat{background:#203c2b;border:2px solid #d1b970;min-height:70px}.tv-only .poker-seat strong{font-size:15px;font-weight:800;color:#fff}.tv-only .seat-number{width:26px;height:26px;font-size:17px}.tv-only .poker-felt span{font-size:12px}.tv-only .poker-felt strong{font-size:28px}
.tv-only .tv-results{width:100%;max-width:none;padding:6px 12px}.tv-only .tv-results h2{font-size:clamp(20px,3vh,34px);margin-bottom:8px}.tv-only .tv-results table{font-size:var(--tv-ranking-size,24px);font-weight:650}.tv-only .tv-results td{padding:3px 8px;line-height:1.3}.tv-only .tv-results th{padding:4px 8px;font-size:.65em;color:#e2e9e2}.tv-only .tv-results tbody tr:nth-child(odd){background:#213b2c80}.tv-only .tv-results td:last-child{font-weight:850;color:#f2d288}.tv-only .tv-results td:nth-child(2){font-weight:800;color:white}
@media(orientation:portrait){.tv-base .tv-stage .timer{font-size:clamp(70px,29vw,250px)}.tv-base .tv-stage .blinds{font-size:clamp(32px,11vw,85px)}.tv-base .tv-stage .stat strong{font-size:clamp(18px,6vw,34px)}.tv-base .tv-stage .stat em{font-size:16px}.tv-base .tv-stage .stat span{font-size:12px}.tv-base .tv-stage .stats{gap:6px}.tv-base .tv-stage .stat{padding:8px}}
@media(orientation:landscape) and (max-height:500px){.tv-base .tv-stage .timer{font-size:29vh}.tv-base .tv-stage .blinds{font-size:10vh}.tv-base .tv-stage .stat strong{font-size:20px}.tv-base .tv-stage .stat em{font-size:12px}.tv-base .tv-stage .stat span{font-size:10px}.tv-base .tv-stage .level-label,.tv-base .tv-stage .ante,.tv-base .tv-stage .next-level{font-size:12px}.tv-base .tv-stage .stat{padding:4px 6px}}

/* Deux tables par ligne ; une table isolée reste centrée. */
.seat-map{overflow-x:auto}.seat-map-grid{grid-template-columns:repeat(2,576px);width:max-content;min-width:100%;justify-content:center}.seat-map-grid:has(>.seat-map-table:only-child){grid-template-columns:576px}.seat-map-grid>.seat-map-table{width:576px;max-width:none}.seat-map-grid>.seat-map-table:last-child:nth-child(odd){grid-column:1 / -1;justify-self:center}.tv .seat-map{overflow:visible;min-width:0}.tv .seat-map-grid{min-width:0}

.blinds:has(.blind-value){display:flex;justify-content:center;gap:clamp(12px,4vw,60px)}.blind-value{display:inline-flex;flex-direction:column;align-items:center}.blind-value small{font-size:.25em;min-height:18px;color:#e9d699;letter-spacing:.08em;font-weight:700}

.sidebar{overflow-y:auto;min-height:0}.sidebar-footer{flex-shrink:0}.sidebar .nav{flex-shrink:0}.topline{flex-wrap:wrap}

.current-level-number{display:inline-block;font-size:1.4em;font-weight:850;color:#ffe1a0;margin:4px 8px}.tv-base .current-level-number{font-size:1.6em}

/* Commandes du chrono plus lisibles et faciles à toucher. */
.timer-controls button[data-do="clock"]{font-size:20px;min-height:54px;padding:10px 20px}.tv-base .tv-clock-controls{gap:16px;margin:12px 0}.tv-base .tv-clock-controls button{font-size:clamp(20px,2.4vw,36px);font-weight:750;min-height:62px;padding:12px 28px}
@media(max-width:600px){.tv-base .tv-clock-controls{gap:8px;margin:8px 0}.tv-base .tv-clock-controls button{font-size:16px;min-height:46px;padding:8px 12px}.timer-controls button[data-do="clock"]{font-size:18px;padding:8px 14px}}
@media(orientation:landscape) and (max-height:500px){.tv-base .tv-clock-controls{gap:10px;margin:5px 0}.tv-base .tv-clock-controls button{font-size:18px;min-height:42px;padding:6px 18px}}

.blind-value{position:relative}.blind-value+.blind-value::before{content:"/";position:absolute;right:calc(100% + clamp(12px,4vw,60px)/2);transform:translateX(50%);bottom:0;font-size:.65em;font-weight:400;color:#b8c6b9}

.blind-value small{font-size:.4em;min-height:24px;font-weight:850;color:#ffe1a0;letter-spacing:.04em}.tv-base .blind-value small{font-size:clamp(22px,4vh,48px);line-height:1.15;margin-bottom:6px}@media(max-width:600px){.tv-base .blind-value small{font-size:20px}}@media(orientation:landscape) and (max-height:500px){.tv-base .blind-value small{font-size:18px;margin-bottom:2px}}

/* Toutes les commandes secondaires sur une seule ligne en bas. */
.tv-base{grid-template-rows:auto minmax(0,1fr) auto auto}.tv-bottom-bar{display:flex;align-items:center;justify-content:center;flex-wrap:nowrap;gap:8px;width:100%;min-width:0}.tv-bottom-bar button{font-size:clamp(12px,1.35vw,20px);font-weight:650;white-space:nowrap;min-height:44px;padding:8px 12px}.tv-bottom-bar button.primary{background:var(--gold);color:#1f251e;border-color:var(--gold)}
@media(max-width:750px){.tv-bottom-bar{gap:3px}.tv-bottom-bar button{font-size:clamp(6px,1.35vw,11px);padding:5px 4px;min-height:34px;flex:1;min-width:0}}

.tv-base header{justify-content:flex-start;align-items:flex-start;width:100%;text-align:left}.tv-base header .brand{margin:0 auto 0 0;padding:0;justify-content:flex-start;text-align:left}

.tv-base{padding:0;max-width:none;width:100%;margin:0;justify-content:stretch}.tv-base header{padding:2px;max-width:none;margin:0;justify-self:stretch}.tv-base header .brand{padding:0;margin:0 auto 0 0;gap:12px}.tv-base header .brand strong{font-size:clamp(22px,2.3vw,38px);font-weight:800}.tv-base header .brand small{display:block;font-size:clamp(16px,1.6vw,26px);letter-spacing:0}.tv-base header .club-logo{width:clamp(50px,5vw,80px);height:clamp(50px,5vw,80px)}.tv-base .tv-stage .level-label{font-size:clamp(22px,3.8vh,44px);font-weight:800}.tv-base .tv-stage .current-level-number{font-size:1.35em}.tv-base .tv-bottom-bar{padding:0 4px}
@media(max-width:600px){.tv-base header .brand strong{font-size:20px}.tv-base header .brand small{font-size:14px}.tv-base .tv-stage .level-label{font-size:16px}}@media(orientation:landscape) and (max-height:500px){.tv-base header .brand strong{font-size:18px}.tv-base header .brand small{font-size:12px}.tv-base header .club-logo{width:36px;height:36px}.tv-base .tv-stage .level-label{font-size:16px}}

.tv-base .tv-stage .stat span{font-size:clamp(18px,2.2vw,30px);font-weight:700;color:#edf3e9}.player-count-line{display:flex;align-items:baseline;justify-content:center;gap:10px;white-space:nowrap}.tv-base .tv-player-count .player-count-line em{display:inline;margin:0}@media(max-width:600px){.tv-base .tv-stage .stat span{font-size:16px}}@media(orientation:landscape) and (max-height:500px){.tv-base .tv-stage .stat span{font-size:13px}}

/* Thème personnalisable : couleurs du club, texte blanc, boutons rouges. */
:root[data-theme="custom"]{--bg:var(--theme-background);--ink:var(--theme-text);--gold:var(--theme-accent);--muted:color-mix(in srgb,var(--theme-text) 70%,var(--theme-background));--panel:color-mix(in srgb,var(--theme-background) 90%,white);--panel2:color-mix(in srgb,var(--theme-background) 84%,white);--line:color-mix(in srgb,var(--theme-background) 65%,white);--green:var(--theme-accent)}
[data-theme="custom"] .tv{background:radial-gradient(ellipse at center,color-mix(in srgb,var(--theme-background) 85%,white),var(--theme-background) 80%)}
[data-theme="custom"] button.primary,[data-theme="custom"] .tv-bottom-bar button.primary{background:var(--theme-button);color:var(--theme-buttonText);border-color:var(--theme-button)}
[data-theme="custom"] .timer,[data-theme="custom"] .blinds,[data-theme="custom"] .tv-base header .brand,[data-theme="custom"] .tv-base .tv-stage .stat strong{color:var(--theme-text)}
[data-theme="custom"] .current-level-number,[data-theme="custom"] .tv-base .tv-stage .level-label,[data-theme="custom"] .blind-value small,[data-theme="custom"] .tv-base .tv-stage .stat em,[data-theme="custom"] .tv-only .tv-results td:last-child{color:var(--theme-accent)}
[data-theme="custom"] .tv-base .tv-stage .stat span,[data-theme="custom"] .tv-base .tv-stage .ante,[data-theme="custom"] .tv-only .tv-results td:nth-child(2){color:var(--theme-text)}
[data-theme="custom"] .tv .stat,[data-theme="custom"] .timer-card,[data-theme="custom"] .seat-map-table{background:var(--panel);border-color:var(--line)}
[data-theme="custom"] .tv-only .tv-results tbody tr:nth-child(odd){background:var(--panel2)}
[data-theme="custom"] .tv-only .poker-seat{background:var(--panel2);border-color:var(--theme-button)}
[data-theme="custom"] .winner-dialog{background:var(--panel);color:var(--theme-text);border-color:var(--theme-button)}

[data-holiday="christmas"] .content::before,[data-holiday="christmas"] .tv::before{background-image:url("/logo-club-noel.6f6d2a1277.webp");position:fixed;animation:none;opacity:.12}

#christmas-snow{position:fixed;inset:0;overflow:hidden;pointer-events:none;z-index:2}#christmas-snow span{position:absolute;top:-40px;color:white;opacity:.28;font-size:var(--snow-size);line-height:1;animation:christmas-snowfall var(--snow-duration) var(--snow-delay) linear infinite;will-change:transform}@keyframes christmas-snowfall{from{transform:translate3d(0,-40px,0) rotate(0deg)}to{transform:translate3d(var(--snow-drift),calc(100dvh + 80px),0) rotate(140deg)}}@media(prefers-reduced-motion:reduce){#christmas-snow{display:none}}

.christmas-title{color:#f2d58a;font-size:clamp(24px,4vw,64px);font-weight:850;margin:0 12px 0 0;text-align:right;align-self:center;line-height:1.1}.tv-base header:has(.christmas-title){justify-content:space-between}@media(max-width:600px){.christmas-title{font-size:24px;margin-right:4px}}

/* Tapis noir, logo du club et les quatre couleurs des cartes. */
.poker-felt{background:#050505;gap:4px;box-shadow:0 0 0 5px #252019,0 10px 20px #0006,inset 0 0 0 2px #ffffff30,inset 0 0 24px #000}.poker-felt::after{content:none}.table-club-logo{width:72px;height:72px;object-fit:contain;flex-shrink:0}.poker-felt strong{font-size:16px;color:white}.table-card-suits{display:flex;align-items:center;justify-content:center;gap:16px;line-height:1}.poker-felt .table-card-suits span{font-size:22px;letter-spacing:0;color:white}.poker-felt .table-card-suits .red-suit{color:#f04444}.tv-only .poker-felt strong{font-size:16px}.tv-only .poker-felt .table-card-suits span{font-size:22px}

/* Couleurs communes aux pages, fenêtres, tables et affichages TV. */
[data-theme="custom"] button{background:var(--panel2);color:var(--ink);border-color:var(--line)}
[data-theme="custom"] .nav button.active{background:var(--panel2);color:var(--gold);border-color:var(--line)}
[data-theme="custom"] input,[data-theme="custom"] select,[data-theme="custom"] dialog{background:var(--panel);color:var(--ink);border-color:var(--line)}
[data-theme="custom"] .poker-seat,[data-theme="custom"] .tv-only .seat-map-table{background:var(--panel2);color:var(--ink);border-color:var(--line)}
[data-theme="custom"] .poker-felt{background:var(--theme-background);color:var(--ink)}
[data-theme="custom"] button.primary,[data-theme="custom"] .tv-bottom-bar button.primary{background:var(--theme-button);color:var(--theme-buttonText);border-color:var(--theme-button)}

/* Décor Noël sur toute la surface de l’écran. */
[data-holiday="christmas"] .content::before,[data-holiday="christmas"] .tv::before{inset:0;background-size:cover;background-position:center;opacity:.17}
#christmas-gifts{position:fixed;inset:0;pointer-events:none;z-index:2;overflow:hidden}.gift-group{position:absolute;bottom:8px;display:flex;align-items:flex-end;gap:8px;opacity:.55}.gift-group.left{left:10px}.gift-group.right{right:10px}.gift{position:relative;display:block;width:58px;height:56px;border-radius:4px;background:#a8192d;box-shadow:inset 0 -8px 0 #0002,0 3px 8px #0004}.gift::before{content:"";position:absolute;inset:0 42%;background:#f2d58a}.gift::after{content:"";position:absolute;left:-3px;right:-3px;top:12px;height:12px;background:#f2d58a;border-radius:3px;box-shadow:0 -16px 0 -3px #f2d58a}.gift.gold{background:#d4a541;width:43px;height:42px}.gift.gold::before,.gift.gold::after{background:#a8192d}.gift.green{background:#226540;width:48px;height:65px;transform:rotate(4deg)}@media(max-width:760px){.gift-group{gap:4px;opacity:.3;transform:scale(.65);transform-origin:bottom left}.gift-group.right{transform-origin:bottom right}} 

[data-holiday="halloween"] .content::before,[data-holiday="halloween"] .tv::before{inset:0;background-image:url('/theme-halloween.svg');background-size:cover;background-position:center;opacity:.65;mix-blend-mode:normal}[data-holiday="vacation"] .content::before,[data-holiday="vacation"] .tv::before{inset:0;background-image:url('/theme-vacances.svg');background-size:cover;background-position:center;opacity:.6;mix-blend-mode:normal}

[data-holiday="christmas"] .poker-felt{background:linear-gradient(#07190b55,#07190b55),url('/logo-club-noel.6f6d2a1277.webp') center/cover no-repeat}
[data-holiday="halloween"] .poker-felt{background:linear-gradient(#160e2455,#160e2455),url('/theme-halloween.svg') center/cover no-repeat}
[data-holiday="vacation"] .poker-felt{background:linear-gradient(#082c3c33,#082c3c33),url('/theme-vacances.svg') center/100% 100% no-repeat}
[data-holiday="christmas"] .poker-felt strong,[data-holiday="halloween"] .poker-felt strong,[data-holiday="vacation"] .poker-felt strong{text-shadow:0 2px 5px #000,0 0 10px #000}

#theme-motion{position:fixed;inset:0;overflow:hidden;pointer-events:none;z-index:2}.spooky,.holiday-bird{position:absolute;left:-100px;top:var(--altitude);animation:theme-flight var(--flight) var(--delay) linear infinite}.spooky{font-size:44px;opacity:.3}.spooky.ghost{font-size:37px;opacity:.25}.holiday-bird{width:55px;color:#fff9db;opacity:.4}.holiday-bird svg{width:100%;animation:bird-wings 1.5s ease-in-out infinite}.holiday-wave{position:absolute;bottom:0;left:-50%;width:200%;height:110px;border-radius:45% 45% 0 0;background:#9ff5e4;opacity:.12;animation:holiday-waves 11s linear infinite}.wave-two{bottom:-30px;background:#fff9e0;opacity:.1;animation-duration:17s;animation-direction:reverse}.floating-suit{position:absolute;bottom:-70px;color:var(--gold);font-size:35px;opacity:.11;animation:suit-float var(--flight) var(--delay) linear infinite}@keyframes theme-flight{0%{transform:translate3d(-100px,0,0) rotate(-5deg)}25%{transform:translate3d(28vw,22px,0) rotate(5deg)}50%{transform:translate3d(56vw,-16px,0) rotate(-3deg)}75%{transform:translate3d(84vw,12px,0) rotate(3deg)}100%{transform:translate3d(calc(100vw + 200px),0,0)}}@keyframes bird-wings{50%{transform:scaleY(.55)}}@keyframes holiday-waves{0%{transform:translateX(-10%) rotate(-2deg)}50%{transform:translateX(10%) rotate(2deg)}100%{transform:translateX(-10%) rotate(-2deg)}}@keyframes suit-float{0%{transform:translateY(0) rotate(0)}100%{transform:translateY(calc(-100dvh - 100px)) rotate(90deg)}}@media(prefers-reduced-motion:reduce){#theme-motion{display:none}}@media(max-width:760px){.spooky{font-size:28px}.spooky.ghost{font-size:25px}.holiday-bird{width:35px}.holiday-wave{height:60px}}

/* Keep wrapped navigation labels aligned beside their icon. */
.nav button{display:flex;align-items:center;gap:0}.nav .glyph{flex:0 0 2rem}.nav .glyph svg{display:block;width:22px;height:22px}.nav .nav-label{min-width:0}

/* The scenery and the themed club watermark use separate layers. */
.content::before,.tv::before,[data-holiday="christmas"] .content::before,[data-holiday="christmas"] .tv::before{background-image:none}
.content::after,.tv::after{content:"";position:fixed;inset:0 0 0 240px;background-image:var(--theme-logo,url('/logo-club.edc33bb84c.webp'));background-position:center;background-repeat:no-repeat;background-size:contain;opacity:.18;pointer-events:none;z-index:-1}
.tv::after{inset:0}
@media(max-width:1100px){.content::after{left:190px}}
@media(max-width:760px){.content::after{left:0}}

.brand .club-logo,.table-club-logo{border:0;border-radius:0;box-shadow:none;background:transparent}

/* Blend the original dark logo background into the selected theme. */
.content::after,.tv::after{mix-blend-mode:screen}
.club-logo,.table-club-logo{mix-blend-mode:screen}

.player-photo{object-fit:cover;flex-shrink:0}.avatar-editor{margin:1rem 0}.avatar-editor #avatar-preview .avatar{width:72px;height:72px;font-size:24px}.poker-seat .avatar{display:flex;margin:2px auto;width:32px;height:32px;font-size:12px;border-radius:50%;align-items:center;justify-content:center}.poker-seat .seat-number{position:absolute;top:-9px;left:-8px}.poker-seat .player-photo{display:block}.tv-only .poker-seat .avatar{width:38px;height:38px}

.rank-change{display:inline-block;font-weight:750;white-space:nowrap}.rank-change.up{color:#6fe4a0}.rank-change.down{color:#ff8c8c}.rank-change.stable{color:#f5d36f}.rank-change.newcomer{color:var(--muted)}.ranking-round{display:block;font-size:.75rem;font-weight:400;margin-top:.3rem;color:var(--muted)}

.rank-gap-heading{white-space:normal;line-height:1.35}

.ranking-scroll{max-height:65dvh;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable}.ranking-scroll th{position:sticky;top:0;z-index:3;background:var(--panel);box-shadow:0 1px 0 var(--line)}.ranking-scroll table{border-collapse:separate;border-spacing:0}

/* Les vues de présentation ajustent leur échelle à l'écran. */
.seat-map-layout{display:flex;align-items:center;gap:16px;width:max-content}
.table-chip-sidebar{width:200px;flex:0 0 200px;margin:0;padding:14px}
.table-chip-sidebar strong,.table-chip-sidebar small{display:block}
.table-chip-sidebar small{margin-top:12px}
.seat-map,.seat-map-table{overflow:visible}
dialog.display-dialog{width:96vw;max-width:none;height:94dvh;max-height:94dvh;overflow:hidden}
dialog.display-dialog #dialog-content{height:100%;overflow:hidden;display:flex;flex-direction:column;align-items:center}
dialog.display-dialog .dialog-head{width:100%;flex-shrink:0}
dialog.display-dialog .seat-map,dialog.display-dialog .tv-results{flex-shrink:0;overflow:visible}
dialog.display-dialog .table-wrap,.tv .table-wrap{overflow:visible;max-height:none}
body:has(dialog.display-dialog[open]){overflow:hidden}
.tv-detail-pane,.tv-stage{overflow:hidden}

/* Téléphones : navigation compacte, cartes lisibles et commandes tactiles. */
.mobile-navigation{display:none}
@media(max-width:760px){
 html{-webkit-text-size-adjust:100%}body{overflow-x:clip}
 .shell,.content,.grid>*,.forms>*,.card{min-width:0}
 .sidebar{display:flex;flex-direction:row;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px}
 .sidebar .brand{margin:0;gap:8px}.sidebar .brand .club-logo{width:42px;height:42px}.sidebar .brand strong{font-size:13px}.sidebar .brand small{display:none}
 .sidebar .nav{display:none}.mobile-navigation{display:block;max-width:55%;font-size:11px;flex:1}.mobile-navigation select{font-size:16px;margin-top:0;padding:8px;min-height:44px}
 .content{padding:12px;padding-bottom:max(16px,env(safe-area-inset-bottom))}
 .topline{flex-direction:column;align-items:stretch;gap:8px;margin-bottom:8px;padding-bottom:8px}.topline>span{font-size:12px}.topline .actions{display:grid;grid-template-columns:1fr 1fr;gap:6px}.topline .actions button:first-child{display:none}
 .mobile-only.connection{font-size:11px;margin-bottom:8px}
 .header{gap:8px;margin-bottom:12px}.header h1{font-size:25px}.header p{font-size:13px}
 .card-title{flex-wrap:wrap;gap:8px}.card-title h2{flex-basis:100%}.card-title .actions{width:100%}
 button,input,select{font-size:16px}button.small{min-height:44px}.actions button{max-width:100%;white-space:normal}
 .card{padding:12px;margin-bottom:12px}.grid{gap:12px}.stats{margin:12px 0;gap:8px}.stat{padding:10px;overflow-wrap:anywhere}.stat strong{font-size:22px}
 .timer{font-size:clamp(64px,21vw,100px)}.timer-controls{margin:12px 0;gap:6px}.timer-controls button{flex:1 1 120px}
 .next-level{gap:8px;flex-wrap:wrap;font-size:13px;padding-top:10px}.roster-row .player{overflow-wrap:anywhere}.roster-row>div{min-width:0}
 dialog:not(.display-dialog){width:calc(100vw - 16px);max-width:calc(100vw - 16px);max-height:calc(100dvh - 16px);padding:14px;margin:auto}
 .dialog-head{gap:10px}.dialog-head h2{font-size:20px}.dialog-head button{flex-shrink:0}.dialog-actions{position:sticky;bottom:-14px;padding:10px 0;background:var(--panel);z-index:2}
 .check-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.check-label{overflow-wrap:anywhere;min-height:44px}.editor-table input{font-size:16px}
 .ranking-scroll:has(.mobile-cards){max-height:none;overflow:visible;scrollbar-gutter:auto}
 table.mobile-cards,table.mobile-cards tbody{display:block;width:100%}
 table.mobile-cards thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
 table.mobile-cards tbody tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;border:1px solid var(--line);border-radius:10px;padding:12px;margin-bottom:10px;background:var(--panel)}
 table.mobile-cards td{display:flex;flex-direction:column;align-items:flex-start;text-align:left;padding:0;border:0;min-width:0;font-size:15px;overflow-wrap:anywhere}
 table.mobile-cards td::before{content:attr(data-label);font-size:11px;color:var(--muted);font-weight:400}
 table.mobile-cards td .player{flex-wrap:wrap}.rank{width:auto}
 .seat-map-layout{gap:12px}.table-chip-sidebar{width:120px;flex-basis:120px;padding:8px;font-size:13px}.table-chip-sidebar .tag{padding:4px;font-size:13px}
 dialog.display-dialog{height:calc(100dvh - 12px);max-height:calc(100dvh - 12px);width:calc(100vw - 12px);max-width:none;padding:10px}
 .display-dialog .seat-map-grid{grid-template-columns:576px;min-width:0}.display-dialog .seat-map-grid>.seat-map-table{grid-column:1!important}
 .tv{padding:max(8px,env(safe-area-inset-top)) 8px max(8px,env(safe-area-inset-bottom));gap:6px}.tv-bottom-bar{display:flex;flex-wrap:wrap;gap:6px}.tv-bottom-bar button{flex:1 1 30%;min-height:44px;font-size:12px;padding:7px}
 .tv-only-nav{gap:6px}.tv-only-nav button{font-size:13px;min-height:44px}.tv footer{font-size:10px}.tv .stats{margin:8px 0}
}
@media(max-width:600px){.tv .seat-map-grid{grid-template-columns:576px}.tv .seat-map-grid>.seat-map-table{grid-column:1!important}.tv .table-chip-sidebar{width:120px;flex-basis:120px}.tv-only .seat-map-table h3{font-size:20px}}
@media(max-width:760px) and (orientation:portrait){.tv-base .tv-stage .stats{grid-template-columns:repeat(2,minmax(0,1fr))}.tv-base .stat strong{font-size:19px}.tv-base .stat span,.tv-base .stat em{font-size:12px}.tv-base .tv-stage .timer{font-size:clamp(64px,22vw,110px)}.tv-base .tv-stage .level-label{font-size:13px}}
@media(orientation:landscape) and (max-height:500px){.tv header .brand{gap:6px}.tv header .brand .club-logo{width:28px;height:28px}.tv .tv-bottom-bar button{min-height:36px;padding:4px 8px;font-size:11px}.tv{gap:3px;padding:4px 8px}.tv .stats{margin:4px 0}}
@media(max-width:760px){.tv .tv-bottom-bar button{white-space:normal;overflow-wrap:break-word;line-height:1.2}}

tr[data-player-name][hidden]{display:none!important}

.archive-season{margin:16px 0;border-top:1px solid var(--border,#405447);padding-top:16px}.archive-season summary{cursor:pointer;padding:12px 4px}.archive-season details{margin:8px 0}

.projection-button{display:inline-flex;align-items:center;justify-content:center;gap:8px}.projection-button svg{flex-shrink:0}

.player-picker{position:relative;min-width:150px;max-width:100%;font-weight:400}.player-picker summary{cursor:pointer;list-style:none;border:1px solid var(--border,#456);border-radius:8px;padding:8px 28px 8px 10px;min-height:44px;background:var(--panel2,#192520)}.player-picker summary:after{content:'▾';position:absolute;right:10px;top:15px}.player-picker-options{position:absolute;top:100%;left:0;min-width:100%;width:max-content;max-width:min(330px,80vw);max-height:280px;overflow-y:auto;z-index:50;background:var(--panel2,#192520);border:1px solid var(--border,#456);box-shadow:0 8px 24px #0008;border-radius:8px;padding:4px}.player-picker-option{display:flex;width:100%;text-align:left;margin:0;border:0;border-radius:4px;padding:7px 10px}.player-picker .avatar,.check-label .avatar,td .player .avatar{width:30px;height:30px;min-width:30px;font-size:12px}.player-picker .player,.check-label .player{gap:8px}.player-picker[open]{z-index:51}select[data-avatar-picker][hidden]{display:none!important}.check-label .player{min-width:0}

.registration-extras{margin-top:20px;padding-top:16px;border-top:1px solid var(--line)}.registration-extras button{margin-top:10px}.registration-extras .forms>div{min-width:0}

.season-visitor{position:absolute;font-size:clamp(20px,3vw,42px);opacity:.55;pointer-events:none}
html[data-holiday="spring"] body{background-image:url("/theme-spring.svg");background-size:cover;background-position:center;background-attachment:fixed}html[data-holiday="spring"] .poker-felt{background-image:url("/theme-spring.svg");background-size:100% 100%;background-position:center}
html[data-holiday="autumn"] body{background-image:url("/theme-autumn.svg");background-size:cover;background-position:center;background-attachment:fixed}html[data-holiday="autumn"] .poker-felt{background-image:url("/theme-autumn.svg");background-size:100% 100%;background-position:center}
html[data-holiday="winter"] body{background-image:url("/theme-winter.svg");background-size:cover;background-position:center;background-attachment:fixed}html[data-holiday="winter"] .poker-felt{background-image:url("/theme-winter.svg");background-size:100% 100%;background-position:center}

.club-podium{display:flex;align-items:flex-end;justify-content:center;gap:18px;flex-wrap:wrap;padding:12px 0}.podium-player{display:flex;flex:1 1 160px;max-width:270px;flex-direction:column;align-items:center;gap:10px;padding:22px 12px;border-color:var(--gold)}.podium-player .avatar{width:72px;height:72px;font-size:24px}.podium-medal{font-size:34px}.podium-rank-1{padding-top:38px;padding-bottom:38px;background:var(--panel2)}.podium-rank-2{border-color:#aebbc4}.podium-rank-3{border-color:#bc865c}.club-records{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.club-record{padding:18px;border:1px solid var(--line);border-radius:10px;background:var(--panel2)}.club-record h3{margin-bottom:12px}.record-value{display:block;font-size:1.7rem;color:var(--gold);margin-bottom:12px}.record-value small{font-size:.85rem}.record-winners{display:flex;flex-wrap:wrap;gap:8px}.record-winners .avatar{width:30px;height:30px;font-size:12px}@media(max-width:760px){.club-records{grid-template-columns:repeat(2,minmax(0,1fr))}.club-podium{gap:8px}.podium-player{flex-basis:28%;min-width:0;padding:15px 6px;font-size:13px}.podium-player .avatar{width:50px;height:50px}.podium-rank-1{padding-top:24px;padding-bottom:24px}}@media(max-width:380px){.club-records{grid-template-columns:1fr}}

/* Podium sportif : argent, or, bronze sur trois marches. */
.club-podium{align-items:flex-end;gap:0;padding:12px 8px 0;flex-wrap:nowrap;max-width:850px;margin:auto}.podium-player,.podium-rank-1{position:relative;flex:1 1 0;max-width:none;min-width:0;border:0;background:transparent!important;border-radius:0;padding:12px 0 0;gap:9px;box-shadow:none}.podium-player:hover{background:transparent;border-color:transparent}.podium-player:focus-visible{outline-offset:-3px}.podium-player>strong,.podium-player>.points,.podium-player>small{padding:0 6px;overflow-wrap:anywhere}.podium-step{display:flex;align-items:center;justify-content:center;width:100%;font-size:3rem;font-weight:800;margin-top:10px;box-shadow:inset 0 2px 0 #ffffff50,inset -5px 0 0 #0002;text-shadow:0 1px 0 #fff4;color:#251c10}.podium-rank-1 .podium-step{height:155px;background:linear-gradient(120deg,#ffe5a0,#d4a52f);border-radius:8px 8px 0 0}.podium-rank-2 .podium-step{height:110px;background:linear-gradient(120deg,#edf0f3,#98a4ae);border-radius:8px 0 0 0;color:#26323c}.podium-rank-3 .podium-step{height:75px;background:linear-gradient(120deg,#e4b28b,#ac703e);border-radius:0 8px 0 0;color:#402515}@media(max-width:760px){.club-podium{gap:0;padding-left:0;padding-right:0}.podium-player,.podium-rank-1{flex-basis:0;padding:8px 0 0;gap:7px;font-size:13px}.podium-rank-1 .podium-step{height:115px}.podium-rank-2 .podium-step{height:80px}.podium-rank-3 .podium-step{height:50px}.podium-step{font-size:2rem}.podium-player .avatar{width:48px;height:48px}.podium-medal{font-size:27px}}

.profile-seasons{margin-bottom:12px}.profile-seasons td:first-child{white-space:nowrap}

.poker-seat strong,.tv-only .poker-seat strong{white-space:nowrap;word-break:normal;overflow-wrap:normal;hyphens:none;overflow:visible}

.tv-cast-corner{position:fixed;top:12px;right:14px;z-index:80}.tv-cast-corner button{width:44px;height:44px;padding:8px}.tv-table-announcements{display:flex;justify-content:center;gap:10px;margin:4px 0 8px}.tv-only-nav{padding-right:60px}

.tv-only:has(.tv-table-announcements){grid-template-rows:auto auto minmax(0,1fr)}

.tv-only-nav{display:flex;align-items:center;justify-content:center;gap:10px;flex-wrap:nowrap}.tv-only-nav button{white-space:nowrap}@media(max-width:760px){.tv-only-nav{gap:4px}.tv-only-nav button{font-size:clamp(8px,1.8vw,13px);padding:6px 5px;min-width:0}}

.bb-calculator-result{font-size:clamp(1.4rem,4vw,2.1rem);color:var(--gold);padding:22px 0;font-weight:700}

.mallette-chip{display:inline-flex;align-items:center;justify-content:center;background:var(--chip-color);color:var(--chip-ink);width:52px;height:52px;min-width:52px;border:4px dashed #ffffffb0;outline:1px solid #0006;border-radius:50%;font-size:11px;font-weight:800;box-shadow:inset 0 0 0 2px #0003}.mallette-summary-row{display:flex;align-items:center;gap:10px}.mallette-summary-row .mallette-chip{width:42px;height:42px;min-width:42px;font-size:10px}.chip-composition input[type=color]{width:64px;padding:4px}.chip-composition input[type=number]{min-width:80px}

.mallette-chip{position:relative;isolation:isolate;border:0;background:repeating-conic-gradient(var(--chip-stripe,#fff) 0deg 16deg,var(--chip-color) 16deg 60deg);box-shadow:0 2px 3px #0005,inset 0 0 0 1px #0005;overflow:hidden}.mallette-chip:before{content:'';position:absolute;inset:15%;border-radius:50%;background:var(--chip-color);box-shadow:0 0 0 1px #0005,inset 0 0 0 1px #ffffff40;z-index:-1}.mallette-chip:after{content:'';position:absolute;inset:12%;border:2px dashed var(--chip-stripe,#fff);border-radius:50%;z-index:-1;opacity:.8}.chip-composition th{white-space:normal;min-width:70px}

/* Étiquette centrale blanche, valeur noire, contour bicolore conservé. */
.mallette-chip{color:#111111!important}.mallette-chip:before{inset:19%;background:#ffffff;box-shadow:0 0 0 1px #0006,inset 0 0 0 1px #ddd}.mallette-chip:after{inset:12%}

.profile-identity{display:flex;align-items:center;gap:24px;margin:8px 0 26px;padding:18px 0 22px;border-bottom:1px solid var(--line)}.profile-identity>.avatar{width:144px;height:144px;min-width:144px;font-size:46px;border-radius:50%;border:3px solid var(--gold);box-shadow:0 5px 20px #0005;object-fit:cover}.profile-identity h2{font-size:2rem;margin:8px 0 0;overflow-wrap:anywhere}.profile-identity .eyebrow{font-size:.8rem}@media(max-width:600px){.profile-identity{gap:16px;padding:12px 0 18px;margin-bottom:20px}.profile-identity>.avatar{width:100px;height:100px;min-width:100px;font-size:34px}.profile-identity h2{font-size:1.5rem}}

/* Saint-Patrick: restrained emerald and gold, clear tournament information. */
html[data-holiday="patrick"] body{background:radial-gradient(ellipse at 10% 0%,#17634580,transparent 55%),radial-gradient(ellipse at 95% 100%,#b28a2929,transparent 45%),#061e16;background-attachment:fixed}
[data-holiday="patrick"] .card,[data-holiday="patrick"] .tv-stage{border-color:#cfad5955;box-shadow:0 12px 40px #0003;background-color:#071f19ed}
[data-holiday="patrick"] .poker-felt{background:radial-gradient(ellipse,#176b46,#073923 75%);border-color:#d4b15d}
[data-holiday="patrick"] .poker-felt::after{content:'☘';position:absolute;inset:20%;display:grid;place-items:center;font-size:100px;color:#d5bb65;opacity:.12;pointer-events:none}
[data-holiday="patrick"] .patrick-title{color:#f4d889;font-size:clamp(18px,2.4vw,36px);letter-spacing:.04em;text-shadow:0 2px 8px #000;margin:0}
.patrick-clover{position:absolute;font-size:32px;color:#7dbf83;opacity:.15;text-shadow:0 0 18px #71c88844}
.patrick-clover:nth-child(3n+1){color:#e4bd61;font-size:24px;opacity:.2}
@media(max-width:760px){.patrick-clover{font-size:23px}[data-holiday="patrick"] .patrick-title{font-size:18px}}

.custom-themes{margin:24px 0;padding:18px;border:1px solid #ffffff26;border-radius:14px}.custom-theme-list{display:grid;gap:10px;margin-top:14px}.custom-theme-row{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:10px;background:#ffffff08;border-radius:10px}.custom-theme-row strong{flex:1;min-width:120px;overflow-wrap:anywhere}.theme-swatch{width:30px;height:30px;flex:none;border:3px solid;border-radius:50%}

.table-move-list{display:grid;gap:14px;margin:24px 0}.table-move-row{padding:18px;border:1px solid var(--theme-accent);border-radius:12px;display:grid;gap:8px;font-size:clamp(18px,2vw,28px)}.table-move-row strong{color:var(--theme-accent);font-size:1.25em}

html[data-theme="custom"][data-custom-background="true"] body{background-image:var(--custom-background-image);background-size:var(--custom-background-fit);background-position:center;background-repeat:no-repeat;background-attachment:fixed}
html[data-custom-background="true"] .content::before,html[data-custom-background="true"] .tv::before{background-image:none}
html[data-theme="custom"][data-custom-felt="true"] .poker-felt{background-color:var(--custom-felt-color);background-image:var(--custom-felt-image);background-size:cover;background-position:center}
html[data-no-motion="true"] #theme-motion,html[data-no-motion="true"] #christmas-snow,html[data-no-motion="true"] #christmas-gifts{display:none}
.theme-image-fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:12px;margin:16px 0}.theme-image-fields fieldset{min-width:0;border:1px solid #ffffff33;border-radius:10px;padding:12px}.theme-image-fields input[type=file]{max-width:100%;font-size:13px}.theme-image-preview{display:block;width:100%;height:100px;object-fit:contain;margin-bottom:10px}#custom-theme-form details{margin:18px 0;padding:12px;border:1px solid #ffffff26;border-radius:10px}#custom-theme-form summary{cursor:pointer}

.tv-results .general-total{font-weight:850;color:var(--theme-accent,#f2d288)}.tv-results .rank-change{white-space:nowrap}.tv-results th{vertical-align:middle}.tv-results td:last-child .down{color:#ff8585}.tv-results td:last-child .up{color:#75d99c}.tv-results td:last-child .stable{color:#e5cb80}

.theme-preset-choice{display:inline-flex;align-items:stretch;gap:0}.theme-preset-choice>button:first-child{border-radius:10px 0 0 10px}.theme-preset-choice .theme-remove{border-radius:0 10px 10px 0;padding:6px 10px;min-width:34px;font-size:22px;color:#ffb7b7;border-left:1px solid #ffffff33}.restore-themes{margin-top:12px}

.theme-preset-choice .theme-edit{border-radius:0;padding:6px 10px;font-size:12px;border-left:1px solid #ffffff33}.builtin-theme-list{gap:10px}

.theme-file-button{display:inline-block;position:relative;padding:10px 12px;border:1px solid #ffffff44;border-radius:8px;cursor:pointer;background:#ffffff12}.theme-file-input{position:absolute;width:1px;height:1px;opacity:0;overflow:hidden}.theme-file-button:focus-within{outline:2px solid var(--theme-accent)}.theme-file-name{display:block;font-size:12px;overflow-wrap:anywhere;margin-top:8px}.theme-image-description{font-size:12px;min-height:2.5em}.theme-image-preview{background:#0004;border-radius:8px}

.custom-floating-image{position:absolute;opacity:.28;pointer-events:none}.custom-floating-image img{display:block;width:clamp(34px,5vw,72px);height:clamp(34px,5vw,72px);object-fit:contain;filter:drop-shadow(0 2px 4px #0003)}.theme-image-preview[hidden]{display:none}

/* Phone portrait: protect the final column and leave room around touch controls. */
@media(max-width:600px) and (orientation:portrait){
 body.tv-active{width:100%;overflow:hidden}
 .tv,.tv.tv-base{width:100%;max-width:100%;box-sizing:border-box;padding: max(12px,env(safe-area-inset-top)) max(14px,env(safe-area-inset-right)) max(16px,env(safe-area-inset-bottom)) max(14px,env(safe-area-inset-left));gap:8px}
 .tv .tv-bottom-bar{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding:8px 4px;max-width:100%;margin:0}
 .tv .tv-bottom-bar button{min-height:44px;width:100%;font-size:11px;padding:7px 5px;white-space:normal;line-height:1.2}
 .tv .tv-only-nav{padding:0 38px 0 0;gap:6px;justify-content:flex-start;max-width:100%}
 .tv .tv-only-nav button{min-height:38px;font-size:11px;padding:6px 8px;white-space:normal}
 .tv .tv-detail-pane{min-width:0;box-sizing:border-box}
 .tv-only .tv-results{padding:6px 4px;min-width:0}
 .tv-only .tv-results h2{font-size:16px;line-height:1.2;overflow-wrap:anywhere}
 .tv-only .tv-results table{width:100%;min-width:0;table-layout:fixed}
 .tv-only .tv-results th,.tv-only .tv-results td{padding:5px 3px;min-width:0}
 .tv-only .tv-results th{white-space:normal;overflow-wrap:normal;font-size:10px;line-height:1.2}
 .tv-only .tv-results th:nth-child(1){width:8%}.tv-only .tv-results th:nth-child(2){width:29%}.tv-only .tv-results th:nth-child(6){width:12%}.tv-only .tv-results th:nth-child(7){width:17%}.tv-only .tv-results th:nth-child(8){width:16%}.tv-only .tv-results th:nth-child(9){width:18%}
 .tv-only .tv-results td .player{display:block;white-space:normal;overflow-wrap:anywhere;line-height:1.2}
 .tv-only .tv-results td .avatar{display:inline-block;width:16px;height:16px;min-width:16px;vertical-align:middle;margin-right:3px}
 .tv-only .tv-results td:last-child{white-space:nowrap;padding-right:5px}
 .tv-base .tv-stage .stats{margin:6px 0;gap:6px}.tv-base .tv-stage .stat{padding:6px}
 .tv-base header .brand strong{font-size:18px}.tv-base header .brand small{font-size:11px}.tv-base header .club-logo{width:42px;height:42px}
}

@media(max-width:600px) and (orientation:portrait){
 .tv.tv-base{padding-bottom:calc(max(16px,env(safe-area-inset-bottom)) + 48px)}
}

/* Manual phone preview selected in Settings. */
html[data-tv-view="phone"] body.tv-active{width:100%;overflow:hidden}html[data-tv-view="phone"] .tv,html[data-tv-view="phone"] .tv.tv-base{width:100%;max-width:100%;box-sizing:border-box;padding: max(12px,env(safe-area-inset-top)) max(14px,env(safe-area-inset-right)) max(16px,env(safe-area-inset-bottom)) max(14px,env(safe-area-inset-left));gap:8px}html[data-tv-view="phone"] .tv .tv-bottom-bar{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding:8px 4px;max-width:100%;margin:0}html[data-tv-view="phone"] .tv .tv-bottom-bar button{min-height:44px;width:100%;font-size:11px;padding:7px 5px;white-space:normal;line-height:1.2}html[data-tv-view="phone"] .tv .tv-only-nav{padding:0 38px 0 0;gap:6px;justify-content:flex-start;max-width:100%}html[data-tv-view="phone"] .tv .tv-only-nav button{min-height:38px;font-size:11px;padding:6px 8px;white-space:normal}html[data-tv-view="phone"] .tv .tv-detail-pane{min-width:0;box-sizing:border-box}html[data-tv-view="phone"] .tv-only .tv-results{padding:6px 4px;min-width:0}html[data-tv-view="phone"] .tv-only .tv-results h2{font-size:16px;line-height:1.2;overflow-wrap:anywhere}html[data-tv-view="phone"] .tv-only .tv-results table{width:100%;min-width:0;table-layout:fixed}html[data-tv-view="phone"] .tv-only .tv-results th,html[data-tv-view="phone"] .tv-only .tv-results td{padding:5px 3px;min-width:0}html[data-tv-view="phone"] .tv-only .tv-results th{white-space:normal;overflow-wrap:normal;font-size:10px;line-height:1.2}html[data-tv-view="phone"] .tv-only .tv-results th:nth-child(1){width:8%}html[data-tv-view="phone"] .tv-only .tv-results th:nth-child(2){width:29%}html[data-tv-view="phone"] .tv-only .tv-results th:nth-child(6){width:12%}html[data-tv-view="phone"] .tv-only .tv-results th:nth-child(7){width:17%}html[data-tv-view="phone"] .tv-only .tv-results th:nth-child(8){width:16%}html[data-tv-view="phone"] .tv-only .tv-results th:nth-child(9){width:18%}html[data-tv-view="phone"] .tv-only .tv-results td .player{display:block;white-space:normal;overflow-wrap:anywhere;line-height:1.2}html[data-tv-view="phone"] .tv-only .tv-results td .avatar{display:inline-block;width:16px;height:16px;min-width:16px;vertical-align:middle;margin-right:3px}html[data-tv-view="phone"] .tv-only .tv-results td:last-child{white-space:nowrap;padding-right:5px}html[data-tv-view="phone"] .tv-base .tv-stage .stats{margin:6px 0;gap:6px}html[data-tv-view="phone"] .tv-base .tv-stage .stat{padding:6px}html[data-tv-view="phone"] .tv-base header .brand strong{font-size:18px}html[data-tv-view="phone"] .tv-base header .brand small{font-size:11px}html[data-tv-view="phone"] .tv-base header .club-logo{width:42px;height:42px}

html[data-tv-view="phone"] .tv,html[data-tv-view="phone"] .tv.tv-base{width:min(430px,100%);max-width:430px;margin-inline:auto;padding-bottom:calc(max(16px,env(safe-area-inset-bottom)) + 48px);border-inline:1px solid #ffffff22}
html[data-tv-view="phone"] .tv-base .tv-stage .stats{grid-template-columns:repeat(2,minmax(0,1fr))}
html[data-tv-view="phone"] .tv-base .tv-stage .timer{font-size:100px}
html[data-tv-view="phone"] .tv-base .tv-stage .blinds{font-size:38px}
html[data-tv-view="phone"] .tv-base .tv-stage .stat strong{font-size:22px}
html[data-tv-view="phone"] .tv-base .tv-stage .stat em,html[data-tv-view="phone"] .tv-base .tv-stage .stat span{font-size:12px}
html[data-tv-view="phone"] .tv-base .tv-stage .level-label,html[data-tv-view="phone"] .tv-base .tv-stage .ante,html[data-tv-view="phone"] .tv-base .tv-stage .next-level{font-size:14px}
html[data-tv-view="phone"] .tv-only .tv-results th:nth-child(3),html[data-tv-view="phone"] .tv-only .tv-results td:nth-child(3),html[data-tv-view="phone"] .tv-only .tv-results th:nth-child(4),html[data-tv-view="phone"] .tv-only .tv-results td:nth-child(4),html[data-tv-view="phone"] .tv-only .tv-results th:nth-child(5),html[data-tv-view="phone"] .tv-only .tv-results td:nth-child(5){display:none}
html[data-tv-view="pc"] .tv,html[data-tv-view="pc"] .tv.tv-base{width:100%;max-width:none;margin:0;padding:12px 20px}
html[data-tv-view="pc"] .tv-base .tv-stage .stats{grid-template-columns:repeat(4,minmax(0,1fr))}
html[data-tv-view="pc"] .tv .tv-bottom-bar{display:flex;justify-content:center;gap:10px;padding:6px;flex-wrap:wrap}
html[data-tv-view="pc"] .tv .tv-bottom-bar button{width:auto;flex:0 1 auto;min-width:90px;font-size:12px}
html[data-tv-view="pc"] .tv-only .tv-results table{table-layout:auto}
html[data-tv-view="pc"] .tv-only .tv-results th{width:auto}

html[data-tv-view="phone"] .tv{position:relative}
html[data-tv-view="phone"] .tv .tv-cast-corner{position:absolute;top:8px;right:8px}
html[data-tv-view="phone"] .tv-base header{padding-right:42px}
html[data-tv-view="phone"] .tv-clock-controls{display:flex;gap:6px;flex-wrap:nowrap}
html[data-tv-view="phone"] .tv-clock-controls button{font-size:12px;min-height:36px;padding:6px 8px;min-width:0}

/* Le tapis utilise le fond du thème ; le logo reste entier sur une couche distincte. */
html[data-theme="custom"][data-custom-felt="true"] .poker-felt{background-image:var(--custom-felt-image);background-size:cover;background-position:center;background-repeat:no-repeat;padding:8px;overflow:hidden;gap:3px}
.poker-felt .table-club-logo{position:relative;z-index:1;width:48%;height:60%;max-width:140px;min-height:0;object-fit:contain;object-position:center;flex:0 1 auto}
.poker-felt>strong,.poker-felt>.table-card-suits{position:relative;z-index:1;flex-shrink:0;text-shadow:0 1px 4px #000,0 0 8px #000}

/* Logo du tapis opaque, sans fusion avec son fond. */
.poker-felt .table-club-logo{opacity:1;mix-blend-mode:normal;filter:none}

/* Scène de table finale et validation des huit places. */
html[data-final-table="true"] body{background:#16090f url('/theme-final-table.95baa2885f.webp') center/cover fixed no-repeat}
html[data-final-table="true"] .content::before,html[data-final-table="true"] .tv::before{background:url('/theme-final-table.95baa2885f.webp') center/cover no-repeat;opacity:1;mix-blend-mode:normal;inset:0}
html[data-final-table="true"] .content::after,html[data-final-table="true"] .tv::after{display:none}
html[data-final-table="true"] .poker-felt{background:#101010!important;background-image:none!important;border-color:#584330}
dialog.final-table-dialog{width:min(1100px,96vw);max-width:1100px;max-height:94dvh;background:#111015;color:#fff;border:1px solid #c19d6b}
.final-table-dialog p,.final-table-dialog h2{color:#fff}.final-table-dialog .dialog-actions{position:sticky;bottom:0;padding-top:12px;background:#111015}.final-table-dialog .dialog-actions button{min-height:48px;background:#b91c2b;color:#fff}
.final-table-arena{background:url('/theme-final-table.95baa2885f.webp') center/100% 100% no-repeat;border-radius:12px;padding:clamp(14px,3vw,34px)}
.final-table-arena .poker-table-plan{width:100%;min-width:0;height:clamp(280px,45vw,500px);margin:0}
.final-table-arena .poker-felt{inset:31% 23%;background:#101010!important;background-image:none!important;border-radius:999px}
.final-table-arena .poker-seat{background:#1c2428f2;border:1px solid #cfb98c;box-shadow:0 2px 5px #000;color:#fff;width:clamp(54px,9vw,92px)}
.final-table-arena .poker-seat strong{color:#fff}.final-table-arena .table-club-logo{height:62%;width:48%;object-fit:contain}
@media(max-width:600px){.final-table-dialog .dialog-actions button{width:100%}.final-table-arena .poker-seat{padding:3px;min-height:58px}.final-table-arena .poker-seat strong{font-size:9px}.final-table-arena .avatar{width:22px;height:22px}.final-table-arena .poker-felt{border-width:7px}.final-table-arena .poker-felt strong{font-size:12px}.final-table-arena .table-card-suits span{font-size:14px}}

/* Laisser visible le décor autour des tables, sans panneau gris. */
html .seat-map-table,html .tv-only .seat-map-table{background:transparent!important;border-color:transparent;box-shadow:none}

.winner-celebration{position:relative;isolation:isolate;overflow:hidden}
.winner-avatar-background{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center;z-index:0;pointer-events:none}
.winner-celebration.has-winner-avatar::before{content:"";position:absolute;inset:0;z-index:1;background:linear-gradient(#0005,#000a);pointer-events:none}
.winner-celebration.has-winner-avatar>*:not(.winner-avatar-background){position:relative;z-index:2;text-shadow:0 2px 5px #000}
.winner-celebration.has-winner-avatar p{color:#fff}

.tv-results .live-killer{display:block;font-size:.75em;line-height:1.3;margin-top:4px;color:var(--muted,#aaa);white-space:normal;overflow-wrap:anywhere}

.tv-results .killer-column{text-align:center;width:48px}
.tv-results .killer-avatar{display:inline-flex;vertical-align:middle}
.tv-results .killer-column .avatar{width:28px;height:28px;min-width:28px;margin:0}
html[data-tv-view="phone"] .tv-only .tv-results th:nth-child(2){width:24%}
html[data-tv-view="phone"] .tv-only .tv-results th:nth-child(7){width:15%}
html[data-tv-view="phone"] .tv-only .tv-results th:nth-child(8){width:14%}
html[data-tv-view="phone"] .tv-only .tv-results th:nth-child(9){width:15%}
html[data-tv-view="phone"] .tv-only .tv-results th.killer-column{width:12%}
html[data-tv-view="phone"] .tv-only .tv-results .killer-column .avatar{width:22px;height:22px;min-width:22px;margin:0}

html[data-tv-view="phone"] .tv-only .tv-results th:nth-child(3),html[data-tv-view="phone"] .tv-only .tv-results td:nth-child(3){display:table-cell}
html[data-tv-view="phone"] .tv-only .tv-results th:nth-child(2){width:24%}
html[data-tv-view="phone"] .tv-only .tv-results th:nth-child(6){width:12%}
html[data-tv-view="phone"] .tv-only .tv-results th:nth-child(7){width:15%}
html[data-tv-view="phone"] .tv-only .tv-results th:nth-child(8){width:14%}
html[data-tv-view="phone"] .tv-only .tv-results th:nth-child(9){width:15%}

.tv-results .bounty-mark{font-size:.75em;color:var(--gold,#e6bf66);font-weight:800}
html[data-tv-view="phone"] .tv-only .tv-results th:nth-child(5),html[data-tv-view="phone"] .tv-only .tv-results td:nth-child(5){display:table-cell}
html[data-tv-view="phone"] .tv-only .tv-results th:nth-child(1){width:8%}
html[data-tv-view="phone"] .tv-only .tv-results th:nth-child(2){width:24%}
html[data-tv-view="phone"] .tv-only .tv-results th:nth-child(3){width:12%}
html[data-tv-view="phone"] .tv-only .tv-results th:nth-child(5){width:12%}
html[data-tv-view="phone"] .tv-only .tv-results th:nth-child(6){width:15%}
html[data-tv-view="phone"] .tv-only .tv-results th:nth-child(7){width:14%}
html[data-tv-view="phone"] .tv-only .tv-results th:nth-child(8){width:15%}

dialog:has(.history-results){width:min(1100px,96vw);max-width:96vw;max-height:92dvh;overflow:auto}.history-results .table-wrap{max-width:100%;overflow-x:auto}.history-results .card{min-width:0}.history-results .dialog-actions{position:sticky;bottom:0;background:var(--panel,#181818);padding:10px}

.result-heading-short,.result-killer-avatar{display:none}
@media(max-width:600px) and (orientation:portrait){
 dialog:has(.history-results){width:calc(100vw - 12px);max-width:calc(100vw - 12px);padding:10px;box-sizing:border-box}
 .history-results .card{padding:6px 2px}
 .history-results table{width:100%;min-width:0;table-layout:fixed;font-size:clamp(8px,2.5vw,11px)}
 .history-results th,.history-results td{padding:7px 1px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:inherit;box-sizing:border-box}
 .history-results th{font-size:clamp(8px,2.4vw,10px)}
 .history-results th:nth-child(1){width:5%}.history-results th:nth-child(2){width:25%}.history-results th:nth-child(3){width:9%}.history-results th:nth-child(4){width:10%}.history-results th:nth-child(5){width:7%}.history-results th:nth-child(6){width:10%}.history-results th:nth-child(7){width:10%}.history-results th:nth-child(8){width:14%}.history-results th:nth-child(9){width:10%}
 .history-results .result-heading-full,.history-results .result-killer-name{display:none}
 .history-results .result-heading-short{display:inline}
 .history-results .result-killer-avatar{display:inline-flex;vertical-align:middle}
 .history-results td .player{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 .history-results td .avatar{width:16px;height:16px;min-width:16px;margin-right:2px;display:inline-flex;vertical-align:middle;font-size:8px}
 .history-results td .result-killer-avatar .avatar{margin:0}
 .history-results td button.small{padding:5px 2px;min-width:24px;min-height:32px;font-size:12px}
 .history-results td:nth-child(3){text-align:center}
}

.general-heading-short{display:none}
@media(max-width:600px) and (orientation:portrait){
 .general-ranking{padding:10px 3px;min-width:0}
 .general-ranking .ranking-scroll{max-width:100%;scrollbar-gutter:auto}
 .general-ranking table{width:100%;min-width:0;table-layout:fixed;font-size:clamp(8px,2.4vw,10px)}
 .general-ranking th,.general-ranking td{padding:8px 1px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:inherit;box-sizing:border-box}
 .general-ranking th{font-size:clamp(7px,2.2vw,9px)}
 .general-ranking th:nth-child(1){width:5%}.general-ranking th:nth-child(2){width:7%}.general-ranking th:nth-child(3){width:24%}.general-ranking th:nth-child(4){width:10%}.general-ranking th:nth-child(5){width:9%}.general-ranking th:nth-child(6){width:8%}.general-ranking th:nth-child(7){width:10%}.general-ranking th:nth-child(8){width:7%}.general-ranking th:nth-child(9){width:10%}.general-ranking th:nth-child(10){width:10%}
 .general-ranking .general-heading-full{display:none}.general-ranking .general-heading-short{display:inline}
 .general-ranking td button.small{display:block;width:100%;max-width:100%;min-width:0;min-height:32px;padding:3px 0;font-size:inherit;overflow:hidden}
 .general-ranking td .player{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 .general-ranking td .avatar{display:inline-flex;vertical-align:middle;width:14px;height:14px;min-width:14px;margin-right:2px;font-size:7px}
}
.club-chat-room{max-width:900px;margin-inline:auto}.club-chat-messages{list-style:none;padding:0;max-height:55dvh;overflow-y:auto;overscroll-behavior:contain}.club-chat-message{display:grid;grid-template-columns:36px minmax(0,1fr);gap:10px;padding:12px 0;border-bottom:1px solid var(--line)}.club-chat-message>.avatar{width:32px;height:32px;min-width:32px;object-fit:cover}.club-chat-author{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.club-chat-author time{font-size:11px;color:var(--muted)}.club-chat-author button{margin-left:auto}.club-chat-message p{white-space:pre-wrap;overflow-wrap:anywhere;margin:6px 0}.club-chat-room textarea{width:100%;box-sizing:border-box;resize:vertical}.chat-member{border-top:1px solid var(--line);padding:14px 0;display:grid;gap:8px}.chat-member strong{overflow-wrap:anywhere}#club-chat-root form{max-width:900px}#club-chat-root label{margin-block:10px}#club-chat-root .error:empty,#club-chat-root [role=status]:empty{display:none}@media(max-width:600px){#club-chat-root .card{padding:14px}.club-chat-author{gap:6px}.club-chat-messages{max-height:50dvh}}
.chat-contact-list{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}.chat-contact-list button{display:inline-flex;align-items:center;gap:5px}.chat-contact-list .avatar{width:25px;height:25px;min-width:25px}.chat-message-tools{display:flex;align-items:center;flex-wrap:wrap;gap:5px;margin-top:7px}.chat-message-tools button{font-size:11px;min-height:30px;padding:3px 7px}.chat-message-tools small{font-size:10px;color:var(--muted)}.club-chat-message.mine{border-left:3px solid var(--accent);padding-left:8px}.chat-photo{display:block;max-width:min(100%,400px);max-height:320px;object-fit:contain;border-radius:8px;margin:7px 0}.chat-photo-preview{display:block;max-width:100px;max-height:80px;object-fit:contain}.club-chat-message blockquote{margin:5px 0;padding:7px;border-left:3px solid var(--accent);background:#ffffff0b;font-size:12px;overflow-wrap:anywhere}.private-room{border-top:1px solid var(--line);margin-top:16px;padding-top:10px}.poker-event{border-top:1px solid var(--line);padding:15px 0}.event-registration{padding:8px;border:1px solid var(--line);border-radius:8px;margin:8px 0}.event-registration .avatar{width:22px;height:22px;min-width:22px;vertical-align:middle}#club-community-root .card{margin-top:16px}#club-chat-root input[type=file]{max-width:100%;box-sizing:border-box}#club-chat-root .club-chat-room form,#club-community-root form{min-width:0}
.chat-shortcut{display:inline-flex;justify-content:center;align-items:center;gap:7px}.tv-cast-corner{display:flex;flex-direction:column;gap:6px}
@media(max-width:600px){.topline .actions>.projection-button{grid-column:2;grid-row:1}.topline .actions>.chat-shortcut{grid-column:2;grid-row:2}.topline .actions>.chat-shortcut span{font-size:inherit;color:inherit}}
.titlebar-row{width:100%;display:flex;justify-content:space-between;align-items:center;gap:10px}.titlebar-row>span{min-width:0}.account-menu{position:relative;z-index:110}.account-menu summary{list-style:none;display:flex;align-items:center;gap:7px;min-height:44px;cursor:pointer;padding:4px 8px;border:1px solid var(--line);border-radius:10px;background:var(--panel2)}.account-menu summary::-webkit-details-marker{display:none}.account-avatar{width:36px;height:36px;min-width:36px;object-fit:cover;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;background:var(--panel)}.account-menu .account-name{font-size:13px;color:var(--ink);max-width:150px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.account-dropdown{position:absolute;right:0;top:calc(100% + 6px);width:245px;max-width:85vw;padding:12px;background:var(--panel);border:1px solid var(--line);border-radius:10px;box-shadow:0 8px 24px #0008;display:grid;gap:8px}.account-dropdown button{text-align:left;white-space:normal;font-size:13px;width:100%}.account-dropdown strong{overflow-wrap:anywhere}.account-dropdown small{font-size:11px}.account-profile{display:flex;align-items:center;gap:16px;margin-bottom:18px}.account-photo{width:80px;height:80px;object-fit:cover;border-radius:50%}#player-account-root form{margin-bottom:18px}.tv-account-corner{position:fixed;right:14px;top:12px;z-index:110}.tv-account-corner .account-name,.tv-account-corner summary>span:last-child{display:none}.tv-account-corner summary{padding:3px}.tv-cast-corner{top:70px}html[data-tv-view="phone"] .tv .tv-cast-corner{top:64px}html[data-tv-view="phone"] .tv .tv-account-corner{position:absolute;right:8px;top:8px}@media(max-width:600px){.account-menu .account-name{display:none}.account-menu summary{padding:3px 5px}.titlebar-row{align-items:center}.titlebar-row>span{font-size:11px}.account-avatar{width:32px;height:32px;min-width:32px}.account-profile{align-items:flex-start}.account-photo{width:64px;height:64px}}
:root{--app-titlebar-height:calc(64px + env(safe-area-inset-top,0px))}.app-titlebar{height:var(--app-titlebar-height);box-sizing:border-box;position:sticky;top:0;z-index:200;display:flex;align-items:center;gap:12px;padding:calc(8px + env(safe-area-inset-top,0px)) max(18px,env(safe-area-inset-right)) 8px max(18px,env(safe-area-inset-left));background:var(--panel);border-bottom:1px solid var(--line);box-shadow:0 3px 14px #0003}.titlebar-home{border:0;background:transparent;padding:0;min-width:42px;min-height:44px;display:flex;align-items:center;justify-content:center}.titlebar-home img{object-fit:contain}.titlebar-heading{display:grid;gap:2px;min-width:0;flex:1}.titlebar-heading small{font-size:10px;letter-spacing:.08em}.titlebar-heading strong{font-size:19px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.titlebar-account{flex-shrink:0}.app-titlebar .account-menu{z-index:210}.app-titlebar .account-dropdown{max-height:calc(100dvh - var(--app-titlebar-height) - 14px);overflow-y:auto;overscroll-behavior:contain;width:285px}.app-titlebar .account-name{display:inline;max-width:160px}.app-titlebar .account-dropdown button{min-height:40px}.sidebar>.brand{display:none}.shell{min-height:calc(100dvh - var(--app-titlebar-height))}.sidebar{top:var(--app-titlebar-height);height:calc(100dvh - var(--app-titlebar-height))}.tv{height:calc(100dvh - var(--app-titlebar-height))}.tv-cast-corner{top:calc(var(--app-titlebar-height) + 10px)}html[data-tv-view="phone"] .tv .tv-cast-corner{top:8px}#theme-settings,#tv-display-settings{scroll-margin-top:calc(var(--app-titlebar-height) + 12px)}@media(max-width:760px){.sidebar{position:static;height:auto}.sidebar .mobile-navigation{max-width:100%;width:100%}.app-titlebar{gap:8px;padding-right:max(12px,env(safe-area-inset-right));padding-left:max(12px,env(safe-area-inset-left))}.titlebar-heading strong{font-size:16px}.titlebar-heading small{font-size:8px}.app-titlebar .account-name{display:none}.app-titlebar .account-avatar{width:36px;height:36px;min-width:36px}.app-titlebar .account-menu summary{min-height:44px}.titlebar-home img{width:34px;height:34px}}

.titlebar-navigation{display:flex;align-items:center;gap:10px;flex:1;min-width:0;font-size:12px}.titlebar-navigation select{width:100%;max-width:360px;min-width:0;min-height:44px;margin:0;font-size:16px;padding:8px 30px 8px 12px}.app-titlebar .account-name{display:none}.app-titlebar .account-menu summary{padding:4px;gap:4px}@media(max-width:760px){.titlebar-navigation{gap:6px;font-size:11px}.titlebar-navigation select{padding-left:8px;padding-right:24px;font-size:16px}.sidebar{padding:0;border:0}.sidebar-footer{display:none}.app-titlebar .account-dropdown{width:min(285px,calc(100vw - 24px))}}

.account-admin-badge{display:inline-flex;align-items:center;justify-content:center;width:30px;height:34px;flex-shrink:0;color:#f4ca65}.app-titlebar .account-menu summary{gap:6px}.app-titlebar .account-initials{font-size:22px}

.pull-refresh{position:fixed;top:calc(var(--app-titlebar-height) + 8px);left:50%;transform:translateX(-50%);z-index:500;padding:10px 18px;border-radius:24px;background:var(--panel);color:var(--ink);border:1px solid var(--line);box-shadow:0 4px 16px #0005;font-size:14px;white-space:nowrap;pointer-events:none}.pull-refresh[hidden]{display:none}
.password-field{position:relative;display:block;width:100%;margin-top:.35rem}.password-field input{margin-top:0;padding-right:52px}.password-toggle{position:absolute;right:2px;top:2px;bottom:2px;width:44px;min-height:40px;padding:0;display:flex;align-items:center;justify-content:center;background:transparent;border:0;color:var(--ink)}.password-toggle:hover{background:var(--panel2)}
.attendance-lists{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-top:16px}.attendance-lists ul{list-style:none;padding:0;margin:0}.attendance-lists li{display:flex;align-items:center;gap:8px;margin:8px 0;overflow-wrap:anywhere}.attendance-poll [aria-pressed="true"]{background:var(--gold);color:#15231b;border-color:var(--gold)}.attendance-poll h2{font-size:1.1rem}.attendance-lists h3{margin:0}.attendance-poll{margin-bottom:16px}
.account-entry-options{margin-bottom:18px}.account-entry-options [aria-pressed="true"]{background:var(--gold);color:#15231b;border-color:var(--gold)}
.editor-table tr.result-absent [data-result-field]{opacity:.4}.editor-table [data-result-absent]{width:20px;min-height:20px}.editor-table tr.result-absent{background:#a33a3a22}

/* Résultats : seule la grille défile, les titres et la validation restent accessibles. */
dialog:has(#edit-results-form){width:min(1100px,96vw);max-width:1100px;height:min(900px,94dvh);max-height:94dvh;overflow:hidden}
dialog:has(#edit-results-form) #dialog-content{height:100%;min-height:0;display:flex;flex-direction:column}
dialog:has(#edit-results-form) .dialog-head{flex-shrink:0}
#edit-results-form{display:flex;flex-direction:column;flex:1;min-height:0;gap:10px}
#edit-results-form>.muted{flex-shrink:0;max-height:14dvh;overflow:auto;margin:0}
#edit-results-form>.table-wrap{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain}
#edit-results-form .editor-table{border-collapse:separate;border-spacing:0}
#edit-results-form thead th{position:sticky;top:0;z-index:3;background:var(--bg);color:var(--ink);box-shadow:0 2px 0 var(--line)}
#edit-results-form>label,#edit-results-form>.dialog-actions{flex-shrink:0}
#edit-results-form>.error:empty{display:none}

#attendance-form .attendance-table{max-height:50dvh;overflow:auto;overscroll-behavior:contain}#attendance-form .editor-table{border-collapse:separate;border-spacing:0}#attendance-form th{position:sticky;top:0;z-index:2;background:var(--bg);color:var(--ink);box-shadow:0 2px 0 var(--line)}#attendance-form input[type=checkbox]{width:24px;min-height:24px}
.notification-bell{position:relative;display:flex;align-items:center;justify-content:center;padding:6px;min-width:36px;min-height:44px;background:transparent}.notification-bell>span{position:absolute;right:-4px;top:-3px;background:#b41e32;color:white;border-radius:20px;min-width:19px;font-size:11px;padding:2px}.notification-list{list-style:none;padding:0}.notification-list li{margin:10px 0}.notification-list button{width:100%;text-align:left;display:grid;gap:5px}.notification-list small{color:var(--gold)}
.guest-entry{margin-top:18px;width:100%}
.chat-add-menu{margin:12px 0}.chat-add-menu summary{cursor:pointer;min-height:44px;padding:10px;border:1px solid var(--line);border-radius:10px;width:fit-content}.chat-add-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:12px 0}.chat-file-control,.chat-add-grid button{position:relative;display:flex;align-items:center;justify-content:center;min-height:70px;border:1px solid var(--line);border-radius:14px;background:var(--panel2);font-size:16px;color:var(--ink);cursor:pointer;gap:8px}.chat-file-control input{position:absolute;width:1px;height:1px;min-height:0;opacity:0;clip-path:inset(50%)}.chat-file-control:focus-within{outline:3px solid var(--gold)}.chat-poll-editor{margin:12px 0;border:1px solid var(--line);border-radius:10px}.chat-poll{padding:12px;border:1px solid var(--line);border-radius:12px;margin:8px 0}.chat-poll button{width:100%;text-align:left}.chat-poll small{display:block;margin:4px 0 10px;overflow-wrap:anywhere}.chat-poll [aria-pressed="true"]{background:var(--gold);color:#15231b}.chat-document{max-width:100%;white-space:normal;overflow-wrap:anywhere;margin:8px 0}.club-chat-message p{white-space:pre-wrap;overflow-wrap:anywhere}.chat-poll h3{overflow-wrap:anywhere}
/* iOS : saisie de 16 px pour eviter le zoom automatique du clavier. */
#club-chat-root textarea{font-family:inherit}
@media(max-width:760px),(pointer:coarse){#club-chat-root textarea,#club-chat-root input:not([type=file]):not([type=checkbox]),#club-chat-root select{font-size:16px;line-height:1.4}}
/* Liste des joueurs : une seule commande par ligne, sans boutons empiles. */
.players-table{table-layout:fixed;width:100%}.players-table th:nth-child(1){width:44%}.players-table th:nth-child(2){width:16%}.players-table th:nth-child(3){width:13%}.players-table th:nth-child(4){width:14%}.players-table th:nth-child(5){width:13%}.players-table th,.players-table td{padding:6px;vertical-align:middle}.players-table td{height:52px}.players-table .player{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:30px}.players-table .avatar{display:inline-block;vertical-align:middle;margin-right:6px;width:28px;height:28px;min-width:28px}.players-table .tag{font-size:12px;padding:3px 6px}.player-actions-button{padding:0;min-width:36px;width:100%;max-width:44px;min-height:40px;font-size:24px;line-height:1}.players-bracelet-icon{display:none}.player-actions-menu{display:grid;gap:10px}.players-table td:last-child{text-align:right}.players-list-card #player-search-form{margin-bottom:12px}
@media(max-width:760px){.players-list-card{padding:12px}.players-table{font-size:12px}.players-table th{font-size:11px}.players-table th,.players-table td{padding:5px 3px}.players-table th:nth-child(1){width:45%}.players-table th:nth-child(2){width:17%}.players-table th:nth-child(3){width:13%}.players-table th:nth-child(4){width:11%}.players-table th:nth-child(5){width:14%}.players-table .tag{font-size:11px;padding:2px 4px}.players-table .avatar{width:25px;height:25px;min-width:25px;margin-right:5px}.players-bracelet-label{display:none}.players-bracelet-icon{display:inline;font-size:16px}.players-list-card #player-search-form{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:end}.players-list-card #player-search-form label{min-width:0}.players-list-card #player-search-form input{font-size:16px}.players-list-card #player-search-form>button{padding:8px;font-size:12px}.players-list-card #player-search-count{grid-column:1 / -1}}

/* Identité joueur et accès directs communs. */
[data-player-profile],[data-do=statDetails]{cursor:pointer}[data-player-profile]:focus-visible,[data-do=statDetails]:focus-visible{outline:2px solid var(--accent,#e3ad48);outline-offset:3px;border-radius:5px}.attendance-lists ul,.player-detail-list{list-style:none;padding:0}.attendance-lists li,.player-detail-list li{padding:6px 0}.attendance-lists .player{display:inline-flex;align-items:center;gap:8px}.attendance-lists .avatar{width:30px;height:30px;min-width:30px}.chat-poll small .player{display:inline-flex;align-items:center;gap:4px}.chat-poll small .avatar{width:22px;height:22px;min-width:22px}.stat .player{font-size:inherit}.stat .avatar{width:30px;height:30px;min-width:30px}
