/* Original game boards: CSS pieces, no third-party artwork or canvas input. */
#gamesDialog .modal-window{width:1060px}.games-body{font-size:13px;line-height:1.5}.games-credit-banner{margin:0 0 16px;padding:12px 16px;border-radius:9px;background:var(--active);color:var(--text);font-size:14px;font-weight:600;text-align:center}.games-toolbar{display:flex;justify-content:space-between;gap:12px;margin-bottom:14px}.games-tabs{display:flex;gap:7px}.games-tabs button[aria-pressed=true]{background:var(--blue);color:#fff}.games-body button{min-height:40px;font-size:12px;padding:9px 14px}.games-body button:disabled{opacity:.45;cursor:not-allowed}.games-primary{background:var(--blue)!important;color:#fff!important}.games-presence{padding:12px 15px;border:1px solid var(--line);border-radius:8px;margin-bottom:12px}.games-looking{display:flex;align-items:center;gap:10px;font-weight:600;cursor:pointer}.games-looking input{width:18px;height:18px;accent-color:var(--blue)}.games-note{color:var(--dim);font-size:11px;line-height:1.5;margin:6px 0 0}.games-test{padding:8px 12px;border:1px dashed var(--line);border-radius:6px;color:var(--dim);font-size:11px}.games-safety{padding:12px;border-radius:7px;background:var(--control);font-size:12px}.games-status{font-size:12px;color:var(--dim);min-height:18px;margin:10px 0}.games-status.is-error{color:var(--danger)}.games-guest{padding:20px 8px;text-align:center;max-width:590px;margin:auto}.games-guest h3{font-size:25px;font-weight:500;margin:0 0 14px}.games-guest p{color:var(--dim);line-height:1.7}.games-actions{display:flex;flex-wrap:wrap;gap:7px;margin-top:10px}.games-invitations{display:flex;flex-direction:column;gap:9px;margin:12px 0}.games-invitation{padding:13px 15px;border:1px solid var(--blue);border-radius:8px;background:var(--control)}.games-invitation>strong{display:block;font-size:13px;overflow-wrap:anywhere}.games-invite-expiry{display:block;font-size:11px;color:var(--dim);margin-top:3px}.games-lobby-columns{display:grid;grid-template-columns:1fr 1fr;gap:22px;margin-top:22px;border-top:1px solid var(--line);padding-top:18px}.games-lobby-columns h3{margin:0 0 12px;font-size:17px;font-weight:500}.games-players{display:flex;flex-direction:column;gap:8px}.games-player-row{display:flex;justify-content:space-between;align-items:center;gap:12px;border:1px solid var(--line);border-radius:8px;padding:10px 12px}.games-player-row strong{font-size:13px;overflow-wrap:anywhere}.games-player-row .games-note{display:block}.games-player-row>div{min-width:0}.games-player-row button{flex-shrink:0}.games-empty{font-size:12px;color:var(--dim);line-height:1.65}.games-own-rating{font-size:12px;margin:0 0 9px;color:var(--blue)}.games-ranking{white-space:normal;font-size:11px;width:100%}.games-ranking th{font-size:10px}.games-ranking th,.games-ranking td{padding:7px 5px;text-align:left}.games-ranking td:nth-child(2){overflow-wrap:anywhere}.games-ranking .is-me{background:var(--active)}.games-ranking td:nth-child(1),.games-ranking td:nth-child(3),.games-ranking td:nth-child(4){font-variant-numeric:tabular-nums;white-space:nowrap}.games-match{border:1px solid var(--line);border-radius:12px;background:var(--control);padding:16px;margin:16px 0}.games-match-heading{display:flex;align-items:center;flex-wrap:wrap;gap:8px 15px;margin-bottom:12px}.games-match-heading h3{font-weight:500;font-size:21px;margin:0}.games-turn{font-size:12px;margin:0;color:var(--blue)}.games-turn-time{margin-left:auto;font-size:24px;line-height:1;font-weight:500;font-variant-numeric:tabular-nums;letter-spacing:-.02em}.games-match-players{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-bottom:14px}.games-match-player{display:grid;grid-template-columns:14px 1fr;gap:2px 8px;padding:9px 11px;border:1px solid var(--line);border-radius:8px;background:var(--panel);min-width:0}.games-match-player.is-turn{border-color:var(--blue)}.games-match-player strong{font-size:12px;overflow-wrap:anywhere}.games-match-player .games-note{grid-column:2;margin:0;font-size:10px}.games-side-chip{width:11px;height:11px;align-self:center;border-radius:50%;box-shadow:inset 0 0 0 1px #0003}.games-side-chip.black{background:#303844}.games-side-chip.white{background:#f5efdf}.games-side-chip.red{background:#ee5263}.games-side-chip.yellow{background:#f9c953}.games-stage{display:grid;grid-template-columns:minmax(220px,450px) minmax(140px,1fr);gap:18px;align-items:start}.games-board{width:100%;max-width:450px;user-select:none;-webkit-tap-highlight-color:transparent}.games-checkers{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));aspect-ratio:1;border:7px solid #5d524b;border-radius:9px;box-shadow:0 8px 18px #0002;overflow:hidden}.games-body .games-square{padding:0;min-height:0;aspect-ratio:1;border:0;border-radius:0;display:flex;align-items:center;justify-content:center;position:relative;opacity:1}.games-square.is-dark{background:#8b7763}.games-square.is-light{background:#ded1b8}.games-square.is-selected{box-shadow:inset 0 0 0 3px #78adff;background:#a29079}.games-square.is-destination{background:#b4b18b;box-shadow:inset 0 0 0 2px #99be80}.games-checker-piece{position:relative;width:76%;height:76%;border-radius:50%;display:flex;align-items:center;justify-content:center;box-shadow:0 3px 3px #0004,inset 0 -3px 1px #0003,inset 0 2px 1px #fff5}.games-checker-piece::after{content:'';position:absolute;inset:13%;border-radius:50%;border:1px solid #ffffff3a;box-shadow:inset 0 1px 2px #0005}.games-checker-piece.black{background:linear-gradient(145deg,#56616c,#1c2530)}.games-checker-piece.white{background:linear-gradient(145deg,#fffbed,#d8cbb1)}.games-checker-piece.white::after{border-color:#7e6d4547}.games-crown{position:relative;z-index:1;font-size:clamp(14px,2.2vw,27px);line-height:1;color:#f5ce70;text-shadow:0 1px 1px #0008}.games-checker-piece.white .games-crown{color:#716047;text-shadow:none}.games-move-dot{width:22%;height:22%;border-radius:50%;background:#263d2980}.games-connect4{padding-bottom:5px}.games-drop-row{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px;margin:0 10px 7px}.games-body .games-drop-row button{padding:0;min-height:32px;font-size:22px;font-weight:600;color:var(--blue);background:var(--panel)}.games-connect-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));grid-template-rows:repeat(6,minmax(0,1fr));gap:7px;aspect-ratio:7/6;border-radius:13px;padding:13px;background:linear-gradient(135deg,#3979ed,#21499c);box-shadow:0 7px 0 #1b3773,0 11px 20px #0003}.games-connect-cell{border-radius:50%;box-shadow:inset 0 3px 5px #0006;min-width:0;aspect-ratio:1}.games-connect-cell.empty{background:var(--control)}.games-connect-cell.red{background:radial-gradient(circle at 35% 30%,#ff8992,#e84256 68%);box-shadow:inset 0 2px 3px #ffd2d780,inset 0 -3px 2px #952d49,0 1px 2px #122967}.games-connect-cell.yellow{background:radial-gradient(circle at 35% 30%,#fff0ac,#f2bf44 68%);box-shadow:inset 0 2px 3px #fff8d480,inset 0 -3px 2px #a8781d,0 1px 2px #122967}.games-match-info{min-width:0}.games-rules{font-size:12px;line-height:1.65;margin:0 0 14px}.games-resign{margin-top:20px}.games-resign-confirm{margin-top:14px;padding:12px;border:1px solid var(--line);border-radius:8px;font-size:12px}.games-resign-confirm button{margin:4px 4px 0 0}.games-danger{color:var(--danger)!important}.games-revision{font-size:10px;color:var(--dim);margin:15px 0 0}.games-rating-change{font-size:12px;color:var(--blue)}.games-invite-toast{position:fixed;right:18px;bottom:105px;z-index:25;width:min(315px,calc(100vw - 36px));padding:15px 17px;border:1px solid var(--line);border-radius:12px;background:var(--panel);color:var(--text);box-shadow:var(--shade);font-size:12px}.games-invite-toast strong{font-size:14px;font-weight:600}.games-invite-toast p{line-height:1.5;overflow-wrap:anywhere;margin:7px 0}.games-invite-toast button{min-height:38px;font-size:12px;padding:8px 12px}.games-waiting-indicator{position:fixed;right:18px;bottom:105px;z-index:12;background:var(--panel);color:var(--dim);box-shadow:var(--shade);border:1px solid var(--line);border-radius:20px;font-size:10px;padding:8px 12px;min-height:34px;max-width:260px}.games-body button:focus-visible,.games-invite-toast button:focus-visible,.games-waiting-indicator:focus-visible{outline:3px solid var(--blue);outline-offset:3px}.games-body .games-square:focus-visible{outline:3px solid #69a7ff;outline-offset:-3px;z-index:1}@media(max-width:720px){.games-lobby-columns{grid-template-columns:1fr}.games-stage{grid-template-columns:1fr}.games-board{max-width:430px;margin:auto}.games-match-info{display:flex;align-items:flex-start;flex-wrap:wrap;gap:8px 12px}.games-match-info p{margin:0;flex:1 1 200px}.games-match-info .games-note{display:none}.games-match{padding:11px}.games-resign{margin-top:0}.games-turn-time{font-size:22px}.games-connect-grid{gap:6px;padding:10px}.games-toolbar{gap:6px}.games-body .games-tabs button{padding:9px 11px}}@media(min-width:721px) and (max-height:600px){.games-board{max-width:330px}.games-stage{grid-template-columns:minmax(200px,330px) minmax(140px,1fr)}.games-match{padding:12px}.games-match-players{margin-bottom:10px}.games-checkers{border-width:5px}.games-match-heading{margin-bottom:9px}.games-match-heading h3{font-size:18px}.games-connect-grid{padding:10px;gap:6px}}@media(prefers-reduced-motion:no-preference){.games-square:not(:disabled):hover .games-checker-piece{transform:translateY(-1px)}.games-square .games-checker-piece{transition:transform .12s ease}}

/* Original vector chessmen and a compact, keyboard-friendly promotion chooser. */
.games-toolbar,.games-tabs{flex-wrap:wrap}.games-chess{border-color:#414c57}.games-chess .is-dark{background:#667d81}.games-chess .is-light{background:#e7e4d9}.games-chess .is-selected{background:#98b7b6}.games-chess .is-destination{background:#a3ba88}.games-chess-piece{width:83%;height:83%;overflow:visible;filter:drop-shadow(0 2px 1px #0004);pointer-events:none}.games-chess-piece path{stroke-width:1.8;stroke-linejoin:round;stroke-linecap:round;fill-rule:evenodd}.games-chess-piece.white path{fill:#fbf7e8;stroke:#6b6557}.games-chess-piece.black path{fill:#26343f;stroke:#b2c0c3}.games-coordinate{position:absolute;font-size:8px;font-weight:600;line-height:1;pointer-events:none;z-index:1;color:#1c3740}.games-file{right:2px;bottom:2px}.games-rank{left:2px;top:2px}.games-square.is-dark .games-coordinate{color:#f8f4e7}.games-promotion{margin:0 0 14px;padding:12px;background:var(--panel);border:1px solid var(--blue);border-radius:9px;font-size:12px}.games-promotion strong{display:block;margin-bottom:8px}.games-promotion-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin-bottom:7px}.games-body .games-promotion-choices button{min-width:0;padding:7px 3px;display:flex;flex-direction:column;align-items:center;gap:5px;font-size:10px}.games-promotion-choices svg{width:40px;height:40px}.games-safety p{margin:0 0 9px}.games-safety button{white-space:normal}.games-result-reason{font-size:12px;color:var(--dim)}@media(min-width:721px) and (max-height:760px){.games-board{max-width:350px}.games-stage{grid-template-columns:minmax(200px,350px) minmax(140px,1fr)}.games-match{padding:12px}.games-match-players{margin-bottom:9px}.games-checkers{border-width:5px}.games-match-heading{margin-bottom:8px}.games-match-heading h3{font-size:18px}.games-connect-grid{padding:10px;gap:6px}}@media(max-width:420px){.games-body .games-tabs button{font-size:11px;padding:8px 9px}.games-toolbar>button{margin-left:auto}.games-match-players{gap:5px}.games-match-player{padding:7px}.games-turn-time{font-size:20px}.games-coordinate{font-size:7px}}

/* Human or computer choice stays above the game tabs; no automatic match start. */
.games-opponent-tabs{display:flex;gap:8px;padding:4px;margin:0 0 16px;background:var(--control);border:1px solid var(--line);border-radius:10px}.games-opponent-tabs button{flex:1;background:transparent;border:1px solid transparent;border-radius:7px;font-weight:600}.games-opponent-tabs button[aria-pressed=true]{background:var(--panel);border-color:var(--blue);color:var(--blue);box-shadow:0 2px 7px #0001}.games-computer-setup{padding:16px;border:1px solid var(--line);border-radius:10px;background:var(--control);margin-bottom:12px}.games-difficulty-row{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.games-difficulty-row label{font-weight:600;font-size:12px}.games-difficulty-row select{appearance:auto;min-height:42px;min-width:145px;padding:9px 32px 9px 12px;background:var(--panel);color:var(--text);border:1px solid var(--line);border-radius:7px;font:inherit;cursor:pointer}.games-difficulty-row select:focus-visible{outline:3px solid var(--blue);outline-offset:3px}.games-difficulty-row select:disabled{opacity:.6;cursor:not-allowed}.games-difficulty-row button{margin-left:auto}.games-computer-rating-note{font-size:12px;color:var(--dim);line-height:1.6;margin:10px 0 0}.games-computer-badge{font-size:10px;padding:4px 8px;border:1px solid var(--line);border-radius:20px;color:var(--dim);background:var(--panel);white-space:nowrap}.games-match-info #gamesComputerReplay,.games-match-info #gamesComputerChange{margin:8px 7px 0 0}#gamesComputerChange{white-space:normal}@media(max-width:480px){.games-difficulty-row{gap:9px}.games-difficulty-row label{flex:1 1 100%}.games-difficulty-row select{flex:1;min-width:110px}.games-difficulty-row button{margin-left:0}.games-opponent-tabs{gap:4px}.games-opponent-tabs button{padding:9px 7px}.games-computer-setup{padding:12px}.games-computer-badge{order:4}}

/* Match view fills the browser viewport, with an opaque backdrop and no lobby distractions. */
#gamesDialog.games-focused{padding:8px;background:var(--panel);z-index:60}
#gamesDialog.games-focused .modal-window{width:100%;height:100%;max-width:none;max-height:100%;border-radius:10px;box-shadow:none}
#gamesDialog.games-focused .modal-head{padding:5px 14px;gap:10px}
#gamesDialog.games-focused .modal-head h2{font-size:16px}
#gamesDialog.games-focused .modal-head .close-button{min-height:38px;height:38px;width:38px}
#gamesDialog.games-focused .games-body{padding:0 14px 10px;flex:1;min-height:0}
#gamesDialog.games-focused .games-credit-banner{margin:0;padding:3px;background:none;font-size:11px;color:var(--dim)}
#gamesDialog.games-focused .games-opponent-tabs,
#gamesDialog.games-focused .games-toolbar,
#gamesDialog.games-focused #gamesComputerSetup,
#gamesDialog.games-focused #gamesPresence,
#gamesDialog.games-focused #gamesTestNote,
#gamesDialog.games-focused #gamesInvitations,
#gamesDialog.games-focused #gamesLobbyColumns{display:none!important}
#gamesDialog.games-focused .games-status:empty{display:none}
#gamesDialog.games-focused .games-status{margin:4px 0}
#gamesDialog.games-focused .games-match{border:0;background:none;margin:0;padding:0}
#gamesDialog.games-focused .games-match-heading{margin:0 0 6px;gap:8px 14px}
#gamesDialog.games-focused .games-match-heading h3{font-size:20px}
#gamesDialog.games-focused .games-match-heading .games-resign{margin:0 0 0 auto;min-height:42px;padding:9px 22px;color:var(--danger);border:1px solid var(--danger);order:5}
#gamesDialog.games-focused .games-turn-time{margin-left:auto;font-size:22px}
#gamesDialog.games-focused .games-match-players{margin:0 auto 8px;max-width:800px}
#gamesDialog.games-focused .games-match-player{padding:5px 10px}
#gamesDialog.games-focused .games-stage{display:flex;justify-content:center;align-items:center;position:relative;gap:16px}
#gamesDialog.games-focused .games-board{width:min(100%,calc(100vh - 220px));max-width:none;margin:0}
#gamesDialog.games-focused .games-match-info{position:absolute;right:0;top:0;max-width:250px;z-index:2}
#gamesDialog.games-focused .games-match-info>.games-rules,
#gamesDialog.games-focused .games-match-info>.games-note,
#gamesDialog.games-focused .games-revision{display:none}
#gamesDialog.games-focused .games-resign-confirm,
#gamesDialog.games-focused .games-promotion{margin:0;padding:16px;background:var(--panel);box-shadow:var(--shade);border:1px solid var(--blue);border-radius:10px}
#gamesDialog.games-focused.games-finished .games-match-info{position:static;align-self:flex-start;background:var(--panel);padding:12px;border:1px solid var(--line);border-radius:10px}
@supports(height:100dvh){#gamesDialog.games-focused .games-board{width:min(100%,calc(100dvh - 220px))}}
@media(max-width:720px){
 #gamesDialog.games-focused{padding:4px}
 #gamesDialog.games-focused .games-body{padding:0 8px 8px}
 #gamesDialog.games-focused .games-match-heading{gap:6px}
 #gamesDialog.games-focused .games-match-heading h3{font-size:17px}
 #gamesDialog.games-focused .games-match-heading .games-resign{padding:8px 12px}
 #gamesDialog.games-focused .games-computer-badge{display:none}
 #gamesDialog.games-focused .games-stage{flex-direction:column}
 #gamesDialog.games-focused .games-match-info{max-width:min(300px,100%)}
 #gamesDialog.games-focused.games-finished .games-match-info{align-self:center;max-width:100%}
}
