#games-dialog{width:min(1060px,96vw);max-height:94dvh;padding:0;border:1px solid #b9a47e;border-radius:18px;background:linear-gradient(135deg,#fcf8ef,#eee6d5);color:#3c372b;box-shadow:0 24px 100px #14272066;overflow:auto}
#games-dialog{background:linear-gradient(135deg,#fcf8ef,#eee6d5)!important;--ink:#3c372b;--muted:#756a54;--gold:#7d6032}
#games-dialog::backdrop{background:#10231fcc;backdrop-filter:blur(4px)}
.ludo-home-cell,.ludo-takeoff,.ludo-home-bay{position:absolute;transform:translate(-50%,-50%);border:1px solid var(--seat);background:var(--seat-bg);display:flex;align-items:center;justify-content:center;flex-wrap:wrap;z-index:2;color:var(--seat)}.ludo-home-cell{width:4%;height:4%;border-radius:3px}.ludo-home-cell small,.ludo-takeoff small{position:absolute;inset:0;font-size:8px;opacity:.7}.ludo-takeoff{width:5%;height:5%;border-radius:50%}.ludo-home-bay{width:18%;min-height:10%;border-radius:7px;flex-direction:column;gap:4px;padding:3px}.ludo-home-bay small{font-size:clamp(8px,1.6vw,12px)}.ludo-home-bay>div{display:flex;gap:3px;flex-wrap:wrap}.ludo-orbit .ludo-center{inset:40%}.ludo-orbit .ludo-center b{font-size:clamp(11px,2vw,19px)}.ludo-orbit .ludo-center strong{font-size:clamp(14px,2.4vw,22px)}
#games-dialog *{box-sizing:border-box}#games-dialog button,#games-dialog input,#games-dialog select{font:inherit;color:inherit}#games-dialog button{background:#fffaf0;border:1px solid #c5b595;border-radius:7px;padding:8px 12px;cursor:pointer;min-height:36px}#games-dialog button:hover:not(:disabled){background:#ede2c6;border-color:#8a744d}#games-dialog button:disabled{opacity:.55;cursor:default}#games-dialog button:focus-visible{outline:3px solid #217b67;outline-offset:2px}#games-dialog .primary{background:#2e6553;color:#fff;border-color:#2e6553}#games-dialog input,#games-dialog select{background:#fffdf7;border:1px solid #b9a47e;border-radius:6px;padding:7px;max-width:100%}#games-dialog input[type=checkbox]{width:auto;min-height:auto;accent-color:#34634d}
.games-window{padding:24px;min-height:420px}.games-header{height:auto;min-height:72px;display:flex;align-items:flex-start;justify-content:space-between;gap:16px;border-bottom:1px solid #c6b793;padding-bottom:12px}.games-header h2{font:30px/1.4 'STSong','SimSun',serif;margin:3px 0;color:#264f42}.games-header p{font-size:12px;color:#7b715e}.games-eyebrow{font-size:11px;letter-spacing:.18em;color:#8d7448}.games-header [data-close-games]{font-size:26px;line-height:1;border:0;background:transparent;flex-shrink:0}.games-content{padding-top:16px}.games-lead{font-size:15px;color:#5b6758;margin-bottom:18px}.games-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.games-tile{display:grid;grid-template-columns:40px 1fr;gap:3px 10px;align-items:center;text-align:left;min-height:82px;padding:12px!important}.games-tile b{grid-row:span 2;border:1px solid #bb9e66;background:#e9d9b5;width:38px;height:38px;display:grid;place-items:center;border-radius:50%;font:22px 'STSong','SimSun',serif;color:#49664b}.games-tile span{font-weight:700}.games-tile small{font-size:11px;color:#776b57}.games-tile.active{border-color:#4b7765!important;background:#e3ecde!important}.games-description{margin:18px 0 12px;color:#7b6742}.games-options,.games-mode-buttons,.games-actions,.games-toolbar,.games-form{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.games-options{margin-bottom:18px}.games-options label,.games-form label{display:flex;gap:8px;align-items:center}.games-toolbar{border-bottom:1px dashed #c5b595;padding-bottom:12px;margin-bottom:12px}.games-toolbar>span{margin-left:auto;font-size:12px;color:#71644b}.games-status{font-weight:700;color:#345d4c;margin:10px 0}.games-notice{color:#a64232;min-height:20px;font-size:13px}.games-hint{color:#796e58;font-size:12px;line-height:1.8;margin:12px 0}.games-warning,.games-adjudication{padding:10px;background:#f5e5c9;border:1px solid #d7b076;border-radius:7px;margin:10px 0;color:#8b4e21}.games-actions{margin:12px 0}.games-rulebook,.games-record,.games-trade{margin-top:18px;padding:12px;border:1px solid #c5b595;border-radius:8px;background:#fffcf5}.games-rulebook summary,.games-record summary,.games-trade summary{cursor:pointer;color:#43614e;font-weight:700}.games-rulebook ol,.games-record ol{padding-left:24px}.games-rulebook li,.games-record li{margin:9px 0;line-height:1.8}.games-board-scroll{width:100%;overflow:auto;overscroll-behavior:contain;margin:12px 0;border-radius:7px}.games-score{padding:12px;margin:12px 0;background:#e4ebdb;border-radius:8px}
.chess-board{position:relative;display:grid;grid-template-columns:repeat(9,minmax(0,1fr));width:min(540px,100%);min-width:300px;aspect-ratio:9/10;margin:0 auto;background:#e7c88b;border:7px solid #816444;border-radius:5px;overflow:hidden}.chess-lines{position:absolute;inset:0;width:100%;height:100%;color:#7b532b;pointer-events:none}.chess-cell{position:relative;z-index:1;display:grid;place-items:center;border:0!important;background:transparent!important;padding:0!important;min-height:0!important;aspect-ratio:1;border-radius:0!important}.piece{width:82%;height:82%;display:grid;place-items:center;border:2px solid currentColor;border-radius:50%;background:radial-gradient(circle at 30% 20%,#fff1c7,#e6bb73);box-shadow:0 2px 4px #61492b77;font:clamp(18px,3.6vw,31px) 'STSong','SimSun',serif}.piece.side-0{color:#a33326}.piece.side-1{color:#243a30}.chess-cell.selected{background:#efce5677!important}.chess-cell.legal::after{content:'';width:10px;height:10px;border-radius:50%;background:#237b53aa;position:absolute;z-index:3}
.go-board{--n:19;display:grid;grid-template-columns:repeat(var(--n),minmax(0,1fr));width:min(640px,100%);min-width:calc(var(--n)*22px);aspect-ratio:1;margin:auto;padding:8px;background:#dfb877;border:7px solid #7e6140;border-radius:4px}.go-cell{position:relative;display:grid;place-items:center;border:0!important;background:transparent!important;padding:0!important;min-height:0!important;border-radius:0!important;aspect-ratio:1}.go-cell::before{content:'';position:absolute;left:50%;top:0;width:1px;height:100%;background:#806035}.go-cell::after{content:'';position:absolute;top:50%;left:0;width:100%;height:1px;background:#806035}.go-stone{position:relative;z-index:1;width:87%;height:87%;border-radius:50%;box-shadow:1px 2px 3px #5f472f99}.go-cell.black .go-stone{background:radial-gradient(circle at 30% 25%,#5b5b53,#141811 65%)}.go-cell.white .go-stone{background:radial-gradient(circle at 30% 25%,#fffef6,#d2c9b6);border:1px solid #b3a68d}.go-cell.dead .go-stone{opacity:.4}.go-cell.dead .go-stone::after{content:'×';position:absolute;inset:0;display:grid;place-items:center;color:#c42525;font-size:20px}
.games-mine-summary{display:flex;gap:20px;font-variant-numeric:tabular-nums}.mine-board{--cols:9;display:grid;grid-template-columns:repeat(var(--cols),30px);gap:3px;background:#9b9e88;width:max-content;margin:auto;padding:8px}.mine-cell{width:30px;height:30px;min-height:30px!important;border-radius:3px!important;padding:0!important;font-weight:700!important;background:#d5dbc4!important;border:1px solid #80866e!important;color:#294f72!important}.mine-cell.open{background:#f4f1df!important;border-color:#c1c5ae!important;opacity:1!important}.mine-cell.flag{color:#ac4029!important}.mine-cell.exploded{background:#dc8e73!important}.mine-cell[data-number='2']{color:#2e7642!important}.mine-cell[data-number='3']{color:#b33e2d!important}.mine-cell[data-number='4']{color:#735194!important}
.card-dealer,.card-table>section{padding:16px;background:#2b594b;color:#fff7e7;border-radius:10px}.card-dealer{max-width:680px;margin:12px auto}.card-table{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:14px 0}.card-table>section h3{font-size:14px}.card-hand{margin:10px 0;padding:8px;border:1px solid #ffffff22;border-radius:6px}.card-hand p{font-size:12px;margin-bottom:7px}.card-hand.active-hand{outline:2px solid #e5c37b}.playing-cards{display:flex;gap:7px;flex-wrap:wrap}.playing-cards>span{display:grid;place-items:center;min-width:42px;height:60px;background:#fffaf1;color:#273d35;border-radius:5px;border:1px solid #d8d0bb;font-size:17px}.playing-cards .red-card{color:#a6382c}.playing-cards .card-back{background:repeating-linear-gradient(45deg,#c6a057 0 3px,#4b6c59 3px 6px);color:#fff}.games-form{margin:15px 0}.games-form input{max-width:140px}
.color-0{--seat:#ac4839;--seat-bg:#f2d4c7}.color-1{--seat:#417893;--seat-bg:#d0e4e9}.color-2{--seat:#a78027;--seat-bg:#f3e7b5}.color-3{--seat:#876aa5;--seat-bg:#e5d9f0}.ludo-orbit{position:relative;width:min(630px,100%);aspect-ratio:1;margin:10px auto;background:radial-gradient(circle,#e2e7d5 0 31%,#f6eedb 32% 70%,#e6ddc4 71%);border-radius:50%;border:1px solid #cab887}.ludo-orbit-cell{position:absolute;width:6.5%;height:6.5%;transform:translate(-50%,-50%);border:1px solid var(--seat);background:var(--seat-bg);border-radius:4px;display:flex;flex-wrap:wrap;align-items:center;justify-content:center;font-size:10px;z-index:1}.ludo-orbit-cell small{position:absolute;inset:0;opacity:.6;font-size:8px;padding:1px}.plane-token{position:relative;z-index:2;width:13px;height:13px;border-radius:50%;background:var(--seat);color:white;display:grid;place-items:center;font-size:9px}.ludo-center{position:absolute;inset:30%;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;color:#526842;gap:7px}.ludo-center b{font:clamp(16px,3vw,26px) 'STSong','SimSun',serif}.ludo-center span{font-size:11px}.ludo-center strong{font-size:22px}.ludo-fleets{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.ludo-fleets section{padding:10px;border:1px solid var(--seat);border-radius:8px;background:var(--seat-bg)}.ludo-fleets h3{font-size:13px;color:var(--seat)}.ludo-fleets button{font-size:11px!important;padding:6px 8px!important;min-height:30px!important}
.mono-players{display:flex;flex-wrap:wrap;gap:8px}.mono-players section{display:flex;flex-direction:column;gap:2px;flex:1;min-width:140px;padding:10px;background:var(--seat-bg);border:1px solid var(--seat);border-radius:7px;font-size:12px}.mono-players .active-seat{box-shadow:inset 0 0 0 2px var(--seat)}.mono-board{display:grid;grid-template-columns:repeat(11,minmax(0,1fr));grid-template-rows:repeat(11,minmax(0,1fr));width:850px;min-width:850px;height:850px;margin:0 auto;background:#dce7ce;border:3px solid #607451;gap:2px;padding:3px}.mono-cell{border-radius:0!important;padding:3px!important;min-height:0!important;display:flex;flex-direction:column;justify-content:space-between;text-align:center;font-size:9px!important;line-height:1.3;overflow:hidden;border-color:#7d8e6e!important}.mono-cell b{font-size:10px}.mono-cell small{font-size:8px}.mono-cell.selected{outline:3px solid #b88b2d;outline-offset:-3px}.mono-center{grid-column:2/11;grid-row:2/11;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;color:#4c6546;background:repeating-linear-gradient(25deg,transparent 0 100px,#79986b08 100px 101px)}.mono-center h3{font:40px 'STSong','SimSun',serif}.mono-center p{font-size:14px}.mono-token{display:inline-grid;place-items:center;width:14px;height:14px;background:var(--seat);color:white;border-radius:50%;font-size:10px;margin:0 1px}.property-group-0{border-top:7px solid #8a623a!important}.property-group-1{border-top:7px solid #a0cfdb!important}.property-group-2{border-top:7px solid #bd7caa!important}.property-group-3{border-top:7px solid #d7a356!important}.property-group-4{border-top:7px solid #bf5b4d!important}.property-group-5{border-top:7px solid #d9ca58!important}.property-group-6{border-top:7px solid #78a767!important}.property-group-7{border-top:7px solid #5278a3!important}.mono-deed{padding:12px;border:1px solid #bcae89;background:#fffaf1;border-radius:8px}.mono-deed h3{font-size:17px;margin-bottom:7px}.mono-deed p{font-size:12px}.games-trade-columns{display:grid;grid-template-columns:1fr 1fr;gap:10px}.games-trade fieldset{border:1px solid #cab887;min-width:0;border-radius:6px}.games-trade label{display:flex;align-items:center;gap:7px;font-size:12px;margin:7px 0}.games-invite{display:flex;align-items:center;gap:8px;flex-wrap:wrap;border-bottom:1px solid #c6b793;padding:12px 0}.games-invite>span:first-child{margin-right:auto}#games-invite-form{display:flex;gap:10px;align-items:end;flex-wrap:wrap}#games-invite-form label{flex:1;min-width:160px}#games-invite-form input{display:block;width:100%;margin-top:6px}
@media(max-width:650px){.games-window{padding:14px}.games-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.games-tile{min-height:75px;padding:8px!important;grid-template-columns:30px 1fr;gap:3px 7px}.games-tile b{width:29px;height:29px;font-size:18px}.games-tile span{font-size:13px}.games-tile small{font-size:10px}.games-header h2{font-size:25px}.games-toolbar{gap:6px}.games-toolbar button{font-size:11px!important;padding:6px 8px!important}.games-options label{font-size:12px}.card-table,.ludo-fleets,.games-trade-columns{grid-template-columns:1fr}.ludo-orbit-cell{border-radius:2px}.games-status{font-size:13px}.mono-board{width:660px;min-width:660px;height:660px}.mono-cell b{font-size:8px}.mono-cell small{font-size:7px}.mono-center h3{font-size:30px}.games-rulebook{font-size:13px}.games-actions button{font-size:12px!important}.games-form{align-items:end}.games-form label{flex-wrap:wrap}}
