/* Shared surfaces and type for the catalogue, session dashboard and overlays. */
:root{color-scheme:dark;--paper:#17181d;--navy:#1e1f26;--white:#25262f;--soft:#30313b;--ink:#f0eff7;--muted:#b9bbc9;--green:#bdb2ff;--mint:#cec6ff;--line:#41424e;--radius:12px;--surface:#25262f;--raised:#30313b;--focus:#bdb2ff}
body{background:var(--paper);color:var(--ink);font-family:system-ui,sans-serif}
:root :focus-visible{outline:3px solid var(--focus);outline-offset:2px}
:root .side{background:#1c1d24;border-right:1px solid var(--line);box-shadow:none}.brand,.side-note strong{color:#f3f1fc}.brand small,.side-label,.side-bottom,.side-note{color:#b6b5c8}
:root .nav button,:root .nav .current-game-nav{color:#d4d3e2;background:transparent;border-color:transparent}
:root .nav button.active,:root .nav a[aria-current=page],:root .gz-rooms-view .nav a[aria-current=page]{color:white;background:#39354b;border-color:#5e537b}
:root .gz-rooms-view .nav button.active{color:#d4d3e2;background:transparent}
:root .nav button:hover,:root .nav .current-game-nav:hover{background:#30303c}
:root .side-note{background:#25252e;border-color:var(--line)}
:root .main{max-width:none;padding-inline:clamp(14px,2.4vw,40px)}
:root .topbar{height:72px;border-color:var(--line)}.gz-brand-lockup,.gz-top-tools .text-button,.gz-brand-lockup small,.breadcrumb,.mobile-brand{color:#dddbea}
:root .gz-density{border-color:#535461!important}
:root .hero,:root .current-game{background:linear-gradient(120deg,#2c293a,#22232b 75%);border:1px solid var(--line);border-radius:16px;padding:clamp(16px,2vw,28px)}
:root .eyebrow{color:var(--mint);letter-spacing:.14em}.hero h1,.current-heading h2,.gz-game h3,.name-button,.results-title{color:var(--ink);letter-spacing:-.035em}
:root :is(.gz-intro,.current-note,.gz-footnote,.gz-sync-line,.gz-notes,.gz-progress>div,.gz-game-heading span,.gz-stats span,.gz-stats strong small,.subtitle,.stat span,.hero p,.gz-signature,footer,.review-method,.review-coverage,.review-box small,.source-notes p,.current-player small){color:var(--muted)}
:root :is(.controls,.list,.entry,.stat,.gz-game,.current-player,.empty,.gz-empty,.gz-stats>div,.review-box,.review-empty,.notes,.resource-link,dialog,.gz-dialog,.gz-admin-list>div){background:var(--surface);border-color:var(--line);color:var(--ink);box-shadow:none}
:root :is(.gz-game,.controls,.gz-stats>div){border-radius:12px}
:root :is(.gz-stats strong,.gz-progress strong,.current-player strong,.modal-title,.review-section h3,.stat strong){color:#eeecfa}
:root :is(.entry:hover,.resource-link:hover){background:#2d2e39;border-color:#5d596e}
:root :is(.gz-search,.search-wrap,.select-wrap select,.gz-searchbar select,.gz-dialog input,.gz-dialog textarea,.gz-dialog select,option){background:#1c1d25;color:#eeeef6;border-color:#535462}
:root :is(.gz-search input,#search){color:#f5f3fd;background:transparent}
::placeholder{color:#aeb0c2;opacity:1}
:root :is(.gz-button,.detail-button,.primary-link,.close,.pagination button,.gz-card-actions .gz-button,.current-links .current-link,.gz-dialog button,.alphabet button,.gz-tabs .gz-button){background:var(--raised);color:#e8e7f2;border-color:#50515f}
:root :is(.gz-button:hover,.primary-link:hover,.detail-button:hover,.current-links .current-link:hover,.alphabet button:hover,.close:hover,.gz-tabs .gz-button:hover){background:#41414e;color:#fff}
:root .gz-button.primary,:root .gz-card-actions .gz-button.primary,:root .gz-tabs .gz-button.selected,:root .alphabet button.active{background:#5748ae;color:#fff;border-color:#887bd1}
:root .gz-tabs{background:#1c1d24}.gz-tabs .gz-button span,.current-count{background:#393649;color:#e3dbff}
:root .current-server{background:#1c1c26;border:1px solid #555064}.current-server label{color:#bfb6df}.current-server input{color:white}
:root .current-links .gz-log-button{background:#3b3346;border-color:#675473;color:#eee0f7}
:root .current-player .current-slot{background:#383647;color:#dcd5ff}:root .current-player .current-link{background:#373441;color:#ded8fd!important}
:root .gz-game .current-player.gz-player-finished{background:#23372f;border-color:#486d5a}.current-player .gz-finished{color:#9ce6b7}
progress,progress::-webkit-progress-bar{background:#3b3c48}progress::-webkit-progress-value{background:#a69be8}progress::-moz-progress-bar{background:#a69be8}
:root :is(.gz-warning,.notice,.adult-tag){color:#f3d6a5;background:#3c3428;border-color:#665744}
:root :is(.gz-history,.gz-admin-list,.gz-modal-head,.search-wrap,.results-top,.modal-head,.glossary-row,.tag-panel,.topbar,footer){border-color:var(--line)}
:root .gz-history summary,:root .gz-card-actions .gz-pin,:root .text-button,:root .detail-button,:root .gz-button.subtle{color:#d4d1e5}
:root :is(.stable,.tag.stable){background:#293c33;color:#a4e5bd}:root .unstable{background:#403629;color:#f4d699}:root .broken{background:#422e35;color:#f7b8c6}:root .unknown{background:#363742;color:#d6d6e1}
:root :is(.tag,.tag.platform,.tag.style,.review-badge,.keycap,.current-count,.gz-tabs .gz-button span){background:#363343;color:#dbd5ed;border-color:#514b60}
:root .tag.platform{background:#2c3545;color:#bfd6ff}:root .tag.style{background:#383427;color:#ead9aa}:root .tag.active,:root .active-tags button{background:#514675;color:#fff}
:root :is(.list-header,.kind-status,.tag-more,.source-line,.alphabet button,.gz-players .current-note){color:#b7b8ca}
:root .gz-game .gz-pinned,:root .fav.chosen{color:#f4d387}
:root :is(.modal-body code,#clear-search,.gz-history ul,#gz-message,.empty button){background:#353440;color:#e4deef}
:root .gz-dialog pre{background:#171820;color:#e2e0ef}dialog::backdrop{background:#090911c9}
:root .gz-signature strong,:root .gz-brand-lockup{color:#eae6f7}
@media(max-width:760px){:root .main{padding-inline:10px}:root .topbar{height:auto;min-height:52px}:root .hero,:root .current-game{padding:14px;border-radius:12px}.gz-card-actions{justify-content:flex-start}}
:root .free-online-card,:root .subtitle .free-online-badge,:root .tag.free-online-tag{background:#24372e;color:#bce8cb;border-color:#4d6b59}
:root .free-online-card>strong{color:#bce8cb}:root .free-online-card small{color:#bacbc1}:root .tag.free-online-tag.active{background:#365a46;color:#edfff3}
:root .entry .tile{background-color:#343341!important;color:#e0dbf6!important}

.site-logout{flex:none;background:#30313b;color:#f3f1fc;border:1px solid #656474;padding:7px 11px;border-radius:8px;font:600 .82rem system-ui;cursor:pointer}.site-logout:hover{background:#403d50}@media(max-width:740px){.site-logout{font-size:.75rem;padding:5px 7px}.topbar{flex-wrap:wrap}}
.workspace-tabs{display:flex;align-items:center;gap:4px;border-bottom:1px solid var(--line);padding:6px 0}
.workspace-tabs a{padding:8px 15px;border-radius:7px;color:#c9c8d5;text-decoration:none;font-size:.9rem;font-weight:650}.workspace-tabs a:hover{background:#302f39}.workspace-tabs a[aria-current=page]{background:#3e3853;color:#f3edff}.workspace-name{color:#cbc6dc}.personal-games[hidden]{display:none}.personal-games{margin-top:18px}.personal-games h2{font-size:.7rem;letter-spacing:.13em;text-transform:uppercase;color:#b9b4c9}.personal-games a{display:grid;gap:2px;padding:8px;border-left:2px solid #a69ae8;text-decoration:none;color:#f2edfe}.personal-games a:hover{background:#35323f}.personal-games small{color:#bdb7cf}.salon-cta{display:flex;align-items:center;gap:13px;padding:13px 16px;margin:14px 0;border:1px solid #8979c7;border-radius:12px;background:#443a67;color:white;text-decoration:none}.salon-cta:hover{background:#53467e;color:white}.salon-cta svg{flex:none;width:32px;height:32px;fill:none;stroke:#e7deff;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.salon-cta span{display:grid}.salon-cta strong{font-size:1.05rem;color:white}.salon-cta small{font-size:.78rem;color:#e5ddfa}.salon-cta b{margin-left:auto;font-size:1.4rem}
@media(max-width:740px){.personal-games{margin:4px 0}.personal-games h2{margin:4px 0}.personal-games>div{display:flex;gap:6px;overflow:auto}.personal-games a{flex:none;padding:3px 8px}.workspace-tabs{overflow:auto}.workspace-tabs a{padding:6px 11px}}
html{scrollbar-gutter:stable}
:root .gz-rail{padding:22px 14px;background:#181920;border-right:1px solid #383943;overflow-y:auto;border-radius:0}
.rail-brand{display:flex;align-items:center;gap:11px;padding:0 8px 22px;color:#f5f3fa;text-decoration:none}.rail-brand img{border-radius:11px}.rail-brand span{font-size:1.16rem;line-height:1.1;font-weight:750;letter-spacing:-.03em}.rail-brand small{display:block;margin-top:5px;font-size:.58rem;color:#bdb5d7;letter-spacing:.15em}
.rail-label,.gz-rail .personal-games h2{color:#a9a7b9;font-size:.66rem;font-weight:700;letter-spacing:.12em;text-transform:uppercase;margin:12px 10px 8px}
.rail-nav{display:grid;gap:3px}.rail-nav a{position:relative;display:flex;align-items:center;gap:12px;padding:10px 12px;border-radius:8px;color:#c7c6d3;font-size:.93rem;font-weight:570;text-decoration:none}.rail-nav a:hover{background:#2a2a35;color:white}.rail-nav a[aria-current=page]{background:#343042;color:#f0ebff}.rail-nav a[aria-current=page]:before{content:'';position:absolute;left:0;top:10px;bottom:10px;width:3px;border-radius:4px;background:#b3a2ff}.rail-nav svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linejoin:round;stroke-linecap:round}
:root .workspace-bar{display:flex;justify-content:space-between;align-items:center;height:60px;min-height:60px;gap:12px}.workspace-path{font-size:.88rem;color:#b9b7c7}.workspace-path i{font-style:normal;color:#777485;margin:0 8px}.workspace-path strong{color:#edeaf6}.session-list-title{font-size:1rem;margin:0}.personal-games{border-top:1px solid #3e3d49;padding-top:8px}.gz-rail .personal-games a{border:0;border-radius:6px;padding:8px 12px}.gz-rail .personal-games a strong{font-size:.85rem}.catalogue-local{margin:16px 0;display:grid;gap:10px}.catalogue-tools,.catalogue-categories{display:flex;flex-wrap:wrap;gap:6px;align-items:center}.catalogue-tools button,.catalogue-tools a,.catalogue-categories button{font:inherit;font-size:.82rem;border:1px solid #444451;color:#d9d6e6;background:#24252e;border-radius:7px;padding:6px 10px;text-decoration:none;cursor:pointer}.catalogue-categories button.active{color:#f2eeff;background:#41394f;border-color:#887aab}.catalogue-categories svg{display:none}.catalogue-categories .count{margin-left:6px;color:#c0bacd;font-size:.72rem}#partie-actuelle{scroll-margin-top:80px}
@media(max-width:740px){:root .gz-rail{padding:9px 10px;border:0;border-bottom:1px solid #3b3a46}.rail-brand{padding:0 2px 7px;gap:8px}.rail-brand img{width:25px;height:25px}.rail-brand span{font-size:1rem}.rail-brand small{display:none}.rail-label{display:none}.rail-nav{display:flex;gap:4px}.rail-nav a{flex:1;justify-content:center;padding:7px 3px;gap:6px;font-size:.84rem}.rail-nav a[aria-current=page]:before{top:auto;bottom:0;left:20%;right:20%;width:auto;height:2px}.rail-nav svg{width:15px;height:15px}:root .workspace-bar{height:44px;min-height:44px}.gz-rail .personal-games{display:flex;align-items:center;gap:6px;padding-top:5px}.gz-rail .personal-games[hidden]{display:none}.gz-rail .personal-games h2{white-space:nowrap;font-size:.6rem;margin:0}.gz-rail .personal-games a{padding:2px 5px}#partie-actuelle{scroll-margin-top:220px}}
