:root{--page:#f0f1f2;--paper:#fff;--ink:#272a2d;--muted:#626871;--line:#e0e3e6;--red:#b62038;--deep:#8f1b2f}
body{font-size:14px;line-height:1.55}
.layout{grid-template-columns:218px minmax(0,1fr)}
.sidebar{background:#23262b;border-color:#23262b;padding:27px 16px 20px}
.brand{color:#fff4ee;margin:0 7px 0 2px}
.brand img{filter:none;width:39px;height:39px;flex-shrink:0}
.brand>span{font-size:26px}.brand small{color:#b2b5bb;font-size:8px}
.menu{margin-top:34px}.menu>.eyebrow{color:#969ca5;font-size:9px;margin:0 0 12px 11px}
.menu nav{gap:6px}.menu a{color:#ccd0d6;border-radius:7px;padding:11px 12px;font-size:13px;font-weight:600}
.menu a svg{color:#a9afb8}
.menu a:hover{color:white;background:#30343b}
.menu a[aria-current]{color:white;background:#a91f36;box-shadow:inset 3px 0 #edb6b0}
.menu a[aria-current] svg{color:white}
.menu a[href*="premium"]{color:#f4d5a4;margin-top:15px;border-top:1px solid #3b3e43;padding-top:18px;border-radius:0}
.menu a[href*="premium"][aria-current]{border-radius:7px;padding-top:11px}
.sidebar-footer{margin-top:auto;padding:24px 11px 0;color:#9298a2;font-size:11px;line-height:1.6}
.sidebar-footer strong{display:block;font-size:12px;color:#c8ccd2;font-weight:600}
main{max-width:1380px;padding:20px clamp(18px,3vw,40px) 30px}
.top{min-height:42px;padding-bottom:15px;margin-bottom:18px;border-bottom:1px solid var(--line)}
.top-actions{gap:8px}.primary,.subtle,.hero-action{font-size:13px;border-radius:6px;font-weight:650}
.primary{box-shadow:0 2px 0 #7f1325}.primary:hover:not(:disabled){background:#94172c}
.subtle{background:#fff;border-color:#dce0e4;color:#404751}
.subtle:hover{background:#f4f5f7}
.profile-panel,.notice-panel{box-shadow:0 12px 32px #20283324}
.card{border:1px solid var(--line);border-radius:9px;background:var(--paper);box-shadow:0 2px 5px #20283304}
.home-page .hero{grid-template-columns:minmax(0,1fr) minmax(230px,.75fr);min-height:0;background:#fff;color:var(--ink);border:1px solid var(--line);border-radius:10px;box-shadow:0 2px 5px #20283304}
.home-page .hero::after{display:none}
.home-page .hero-copy{padding:30px clamp(22px,3vw,35px)}
.home-page .kicker{font-size:10px;color:var(--deep);letter-spacing:.12em;margin-bottom:13px}
.home-page .kicker span{background:var(--red);height:3px;width:18px;border-radius:3px}
.home-page .hero h1{font:750 clamp(29px,3.1vw,43px)/1.12 var(--sans);letter-spacing:-.045em;max-width:13ch}
.home-page .hero h1 em{font-style:normal;font-weight:750;color:var(--red)}
.home-page .hero-copy>p:not(.kicker){color:var(--muted);font-size:14px;max-width:37ch;margin:13px 0 0}
.portal-play{align-self:center;padding:24px 25px;border-left:1px solid var(--line);margin:16px 0;display:grid;gap:9px}
.portal-play .primary{min-height:47px;font-size:15px;width:100%}
.portal-play .primary svg{width:19px;height:19px}
.portal-play .portal-links{display:grid;grid-template-columns:1fr 1fr;gap:7px}
.portal-play .subtle{white-space:normal;min-height:39px}
.portal-play p{margin:3px 0 0;font-size:12px;color:var(--muted);line-height:1.6}
.portal-feature-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:24px 0 11px}
.portal-feature-heading h2{font:700 19px/1.2 var(--sans);margin:0;letter-spacing:-.02em}
.portal-feature-heading span{font-size:12px;color:var(--muted)}
.home-discover{gap:16px;padding-bottom:0}
.home-feature{padding:18px 20px}
.home-feature h2{font:700 19px/1.25 var(--sans);letter-spacing:-.02em;margin:4px 0}
.home-feature-head{align-items:center}
.home-feature .eyebrow{font-size:9px}
.home-mini-board{max-width:310px;margin:9px auto 10px;border-radius:4px;box-shadow:0 2px 6px #20283314}
.home-feature-actions{margin-top:auto;padding-top:8px}
.home-board-status{font-size:12px;min-height:2.9em;color:var(--muted)}
.home-feature .tag{border-color:#e2e5e8;background:#f4f5f6;color:#565c64;font-size:11px}
.home-page .premium-banner{padding:18px 22px;gap:18px;margin:16px 0 0;border-radius:9px;background:linear-gradient(105deg,#332730,#56313d);border-color:#56313d}
.home-page .premium-banner h2{font:700 clamp(19px,2vw,25px)/1.25 var(--sans);letter-spacing:-.02em}
.home-page .premium-banner p:not(.premium-eyebrow){font-size:12px;margin-top:5px;max-width:65ch}
.home-page .premium-banner .premium-eyebrow{font-size:9px;margin-bottom:5px}
.home-page .premium-banner-action{grid-template-columns:auto;align-items:center;gap:14px}
.home-page .premium-banner-action strong{font:700 24px/1 var(--sans)}
.home-page .premium-cta{font-size:12px;border-radius:6px;white-space:nowrap}
#jugadores.workspace-page{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:15px;margin-top:24px}
#jugadores>.ethics-hero{color:var(--ink);grid-column:1/-1;margin:0;background:transparent;box-shadow:none;border:0;padding:0;align-items:center;min-height:0}
#jugadores>.ethics-hero #players-heading{font:700 20px/1.2 var(--sans);letter-spacing:-.02em;margin:3px 0 4px}
#jugadores>.ethics-hero p:not(.eyebrow){color:var(--muted);font-size:13px;margin:0;max-width:65ch}
#jugadores>.ethics-hero .ethics-emblem{width:43px;height:43px;transform:none;border-radius:8px;background:#fff;border:1px solid var(--line);box-shadow:none}
#jugadores>.workspace-jump{grid-column:1/-1;margin:0;gap:7px}
#jugadores>.workspace-panel{background:var(--paper);border:1px solid var(--line);border-radius:9px;padding:18px;margin:0;min-width:0;scroll-margin-top:16px}
#jugadores .workspace-panel h3{font:700 16px/1.3 var(--sans);margin:0 0 8px}
#jugadores .ethics-lead{font-size:12px;margin:8px 0;color:var(--muted);line-height:1.6}
#jugadores .workspace-search{margin:13px 0}
#jugadores .workspace-search label{font-size:12px;margin-bottom:5px}
#jugadores .workspace-search #social-search{width:100%;padding:9px 11px;border-radius:6px}
#jugadores .ranking-table th,#jugadores .ranking-table td{padding:10px 6px;font-size:12px}
#jugadores .workspace-jump a{background:#fff;border:1px solid var(--line);border-radius:5px;padding:5px 9px;font-size:12px;color:var(--muted)}
#jugadores .social-row{border-color:#edf0f2}
.workspace-page>.ethics-hero{border-radius:10px;padding:24px 26px}
.workspace-page .ethics-hero h1{font:700 clamp(28px,4vw,40px)/1.1 var(--sans);letter-spacing:-.04em}
.workspace-panel{border-radius:9px}
.match-list>button{border-color:var(--line);border-radius:7px}
.ranking-table tbody tr:hover{background:#f6f7f8}
@media(min-width:841px){.sidebar{overflow:auto}.sidebar-footer{padding-bottom:4px}}
@media(max-width:1050px) and (min-width:841px){.layout{grid-template-columns:190px minmax(0,1fr)}.sidebar{padding-inline:12px}.brand>span{font-size:24px}.home-page .hero{grid-template-columns:minmax(0,1fr) 230px}.portal-play{padding:20px 18px}}
@media(max-width:840px){.layout{display:block}.sidebar{position:static;height:auto;flex-direction:row;flex-wrap:wrap;align-items:center;justify-content:space-between;padding:13px 18px;gap:12px}.brand img{width:32px;height:32px}.brand>span{font-size:24px}.brand small{font-size:7px}.menu{margin:0;max-width:100%;overflow-x:auto}.menu>.eyebrow,.sidebar-footer{display:none}.menu nav{display:flex;gap:3px;width:max-content}.menu a{padding:8px 10px;font-size:12px;white-space:nowrap}.menu a svg{display:none}.menu a[href*="premium"]{border:0;margin:0;padding:8px 10px;border-radius:6px}.menu a[aria-current]{box-shadow:none}main{padding:16px 18px 24px}.home-page .hero h1{font-size:34px}#jugadores.workspace-page{grid-template-columns:1fr}}
@media(max-width:600px){.sidebar{padding:12px 13px;gap:10px}.brand small{display:block}.menu{width:100%}.menu nav{min-width:100%}.menu a{font-size:11px;padding:8px 9px}.menu a:first-child{display:flex}main{padding:13px 12px 24px}.top{margin-bottom:13px;padding-bottom:11px}.home-page .hero{grid-template-columns:1fr}.home-page .hero-copy{padding:23px 22px 18px}.home-page .hero h1{font-size:32px;max-width:15ch}.home-page .hero-copy>p:not(.kicker){max-width:40ch}.portal-play{border-left:0;border-top:1px solid var(--line);margin:0 22px 20px;padding:16px 0 0}.home-page .premium-banner{grid-template-columns:1fr;padding:17px 18px;gap:12px}.home-page .premium-banner-action{justify-content:space-between;justify-items:start}.home-discover{grid-template-columns:1fr}.home-feature{padding:18px}.home-board-status{min-height:0}.portal-feature-heading{margin-top:20px}.portal-feature-heading span{display:none}#jugadores>.workspace-panel{padding:15px}#jugadores>.ethics-hero .ethics-emblem{display:none}#jugadores .ranking-table th,#jugadores .ranking-table td{padding-inline:4px}.workspace-page>.ethics-hero{padding:20px}.board-page .sidebar{padding-block:6px}.board-page .menu a{padding-block:5px}.board-page main{padding-inline:4px}}
@media(prefers-reduced-motion:no-preference){.primary,.subtle,.menu a{transition:background-color .15s,color .15s}}

.portal-community{font-size:12px;font-weight:650;color:var(--deep);display:flex;justify-content:space-between;gap:8px;padding:7px 1px}.portal-community:hover{text-decoration:underline}

#jugadores>.ethics-hero .eyebrow{color:var(--deep)}
#jugadores>.ethics-hero .ethics-emblem{color:var(--deep)}

.central-connection{margin:0 0 14px;padding:12px 14px;border:1px solid #dac5af;border-radius:7px;background:#fff5df;color:#583d21;font-size:13px;line-height:1.6}.central-connection[hidden]{display:none}

#jugadores.players-ranking{grid-template-columns:minmax(0,1fr);gap:14px}
.players-heading h2{font:700 clamp(21px,3vw,26px)/1.2 var(--sans);letter-spacing:-.025em;margin:4px 0 0}
.players-heading .eyebrow{font-size:10px}
.ranking-toolbar{display:flex;align-items:end;gap:16px;justify-content:space-between}
.ranking-search{flex:1;max-width:520px;min-width:0}.ranking-filter{width:160px;flex:none}
.ranking-toolbar label{display:block;margin-bottom:7px;color:var(--muted);font-size:12px;font-weight:650}
.ranking-search-field{display:flex;align-items:center;gap:9px;border:1px solid var(--line);background:#fff;border-radius:8px;padding:0 11px;min-height:43px}
.ranking-search-field:focus-within{outline:2px solid var(--red);outline-offset:2px}
.ranking-search-field>svg{width:18px;height:18px;color:var(--muted);flex:none}
#jugadores #social-search{border:0;background:transparent;outline:none;box-shadow:none;min-width:0;width:100%;padding:10px 0;font:inherit;font-size:14px}
#ranking-clear{padding:2px 5px;background:transparent;font-size:21px;color:var(--muted)}#ranking-clear[hidden]{display:none}
#ranking-kind{width:100%;min-height:43px;border:1px solid var(--line);border-radius:8px;padding:9px 11px;background:#fff;color:var(--ink);font-size:13px}
.ranking-summary{margin:16px 0 10px;font-size:12px;color:var(--muted)}
#jugadores .ranking-table th,#jugadores .ranking-table td{padding:13px 12px}#jugadores .ranking-table th{font-size:11px;font-weight:650;letter-spacing:.04em;text-transform:uppercase;background:#f8f9fa}
#jugadores .ranking-table th:first-child,#jugadores .ranking-table td:first-child{width:62px;text-align:center;color:var(--muted)}#jugadores .ranking-table td{font-size:14px}#jugadores .ranking-table tr.ranking-own{background:#fff7ed}
.ranking-player{display:flex;align-items:center;gap:11px;width:fit-content;max-width:100%;text-decoration:none;font-weight:650}.ranking-player:hover .ranking-name{text-decoration:underline;text-underline-offset:3px}
.ranking-name{overflow-wrap:anywhere}.ranking-avatar{display:grid;place-items:center;width:34px;height:34px;flex:none;background:#f1ece8;color:#73534a;border-radius:50%;font-size:13px}.ranking-avatar img{width:100%;height:100%;object-fit:cover;border-radius:inherit}
.ranking-player-badge{flex:none;padding:2px 6px;border-radius:4px;background:#edf0f3;color:#58616d;font-size:10px;font-weight:650}
.ranking-empty{text-align:center;padding:30px 12px;color:var(--muted);font-size:14px}.ranking-empty[hidden]{display:none}
@media(max-width:600px){.ranking-toolbar{gap:10px}.ranking-filter{width:110px}#jugadores .ranking-table td,#jugadores .ranking-table th{padding:12px 7px}.ranking-player{gap:8px}.ranking-avatar{width:29px;height:29px}#jugadores .ranking-table th:first-child,#jugadores .ranking-table td:first-child{width:42px}.ranking-player-badge{font-size:9px}}
@media(max-width:380px){.ranking-toolbar{flex-wrap:wrap}.ranking-search{flex-basis:100%}.ranking-filter{width:100%}}

.ranking-flag{display:block;width:22px;height:16px;object-fit:cover;border-radius:2px;flex:none;box-shadow:0 0 0 1px #00000012}

/* Partie: clear actions and readable review panels. */
#partida .game-frame > .moves{display:flex;flex-direction:column;gap:5px}
#partida .moves header{display:flex;justify-content:space-between;align-items:center;gap:8px}
#partida .moves h3{font:700 17px/1.3 var(--sans);margin:4px 0}
#partida .moves #status{padding:10px 12px;border:1px solid #d8e8f6;background:#eef6ff;color:#234f7c;font-size:13px;border-radius:8px;line-height:1.5}
#partida .moves #draw-offer-status{padding:10px;border:1px solid #e9cf79;background:#fff8df;color:#6b4b00;border-radius:8px;font-size:12px}
#partida .game-move-actions{display:grid;gap:10px;padding:8px 0 10px}
.turn-controls{display:grid;grid-template-columns:auto minmax(0,1fr);gap:7px}.match-controls{display:flex;flex-wrap:wrap;gap:7px}.match-controls:empty{display:none}
#partida .move-tools button{min-height:41px;border-radius:8px;padding:9px 10px;font-size:12px;white-space:normal;line-height:1.3;justify-content:center}
#partida #confirm{background:#16734e;border-color:#16734e;color:white;box-shadow:0 2px 0 #105338}#partida #confirm:hover:not(:disabled){background:#105f40}
#partida #undo{background:#edf2f8;border-color:#d7e0ec;color:#365477}#partida #undo:hover:not(:disabled){background:#dfe9f5}
#partida #draw-match{background:#fff1c2;border-color:#e5c66b;color:#704d00}#partida #draw-match:hover:not(:disabled){background:#ffe69b}
#partida #resign-match{background:#fff0f1;border-color:#efc1c8;color:#a32239}#partida #resign-match:hover:not(:disabled){background:#fce0e5}
#partida #decline-draw{background:#f5effb;border-color:#d8c5ee;color:#704394}
#partida .move-tools button:disabled{opacity:.5;cursor:not-allowed;box-shadow:none}
.game-actions-note{margin:0;color:var(--muted);font-size:11px;line-height:1.5}.game-actions-note:empty{display:none}
.game-panel-tabs{display:grid;grid-template-columns:1fr 1fr;gap:5px;background:#edf0f4;padding:4px;border-radius:9px;margin-top:3px}
.game-panel-tabs button{border:0;padding:10px 8px;border-radius:6px;background:transparent;color:#626b78;font:650 12px var(--sans);min-height:40px}
#game-history-tab[aria-selected="true"]{background:#fff;color:#225da1;box-shadow:0 1px 5px #26334816}#game-analysis-tab[aria-selected="true"]{background:#fff;color:#7546ae;box-shadow:0 1px 5px #26334816}
#game-history-panel{padding:7px 0}#game-history-panel[hidden]{display:none}
.history-summary{display:flex;justify-content:space-between;gap:8px;font-size:11px;color:var(--muted);margin:3px 2px 10px}#latest-move{color:var(--ink);font-size:12px}
#partida #history{min-height:140px;max-height:clamp(170px,27dvh,290px);background:#fafbfc;border:1px solid #e5e9ef;border-radius:7px}
#partida .history-label,#partida .move-row{padding:8px 9px;font-size:13px}#partida .history-label{font-size:10px;text-transform:uppercase;letter-spacing:.04em;color:#7a8491}
#partida .move-row:nth-child(even){background:#eff3f8}#partida .move-current,#partida .review-move[aria-current]{background:#dcecff;color:#245c99;border-radius:5px}
#partida .review-tools{gap:5px;justify-content:space-between;padding-top:10px}#partida .review-tools .subtle{background:#eef4fc;border-color:#d6e2f2;color:#365d90;min-height:34px}#partida #export-pgn{flex-basis:100%;background:#edf7f4;border-color:#cce5da;color:#246349}
#computer-analysis{padding:12px 0 4px;margin:0;border:0;background:transparent;min-width:0}#computer-analysis[hidden]{display:none}#computer-analysis h3{font:700 15px/1.3 var(--sans)}
.analysis-availability{font-size:12px;line-height:1.6;color:#6c5a88;background:#f5f0fb;border:1px solid #e6dcf3;padding:10px;border-radius:7px}
#analysis-start{background:#7546ae;border-color:#7546ae;color:#fff;box-shadow:0 2px 0 #563281;min-height:41px;width:100%;white-space:normal}#analysis-start:hover:not(:disabled){background:#613894}#analysis-cancel{background:#fff1db;color:#855d15;border-color:#e9ce91}
#resign-dialog button[value="resign"]{background:#b72c44;color:#fff;box-shadow:0 2px 0 #8b1f32}
@media(min-width:721px){#partida .game-frame{--moves-width:clamp(260px,27vw,330px)}}
@media(max-width:720px){#partida .moves header{display:flex}#partida .game-frame>.moves{padding-top:14px}#partida #history{max-height:230px;min-height:150px}.match-controls button{flex:1}#computer-analysis .analysis-graph{height:140px}}

.turn-controls[hidden],.match-controls[hidden]{display:none}

.rating-mode-note{margin:5px 0 10px;color:var(--muted);font-size:11px;line-height:1.6}#game-rating-field .rating-mode-note{margin-top:0}.profile-rating-note{display:block;margin-top:4px;max-width:34ch;color:var(--muted);font-size:11px;line-height:1.5}.profile-rating-note[hidden]{display:none}

.home-page .premium-banner + .home-discover{margin-top:22px}


.home-page .portal-community{margin-top:6px;min-height:42px;align-items:center;padding:10px 13px;border:1px solid #ead6dc;border-radius:7px;background:#fcf5f7;font-size:12px;line-height:1.4;letter-spacing:.035em;text-decoration:none}
.home-page .portal-community>span{display:grid;place-items:center;width:23px;height:23px;flex:none;border-radius:50%;background:#f4e4e9;font-size:15px;line-height:1}
.home-page .portal-community:hover{background:#f7e9ee;border-color:#d9b1bc}
.home-page .portal-play>p{margin:1px 0 0;padding:0 6px;text-align:center;font-size:12px;line-height:1.75;color:var(--muted)}


.home-page #hero-title{max-width:none}.hero-time-line{white-space:nowrap}@media(max-width:360px){.home-page #hero-title{font-size:28px}}

.daily-game{display:grid;gap:2px;margin:10px 0 5px;font-size:12px;line-height:1.5;color:var(--muted)}.daily-game strong{font-weight:650;color:var(--ink);font-size:13px}.daily-game span{font-size:11px}
.daily-actions{display:flex;flex-wrap:wrap;gap:6px;align-items:center}.daily-actions button{min-height:36px;padding:7px 11px;font-size:12px}
.daily-solution{margin-top:12px;border-top:1px solid var(--line);padding-top:10px}.daily-solution summary{cursor:pointer;color:var(--deep);font-size:12px;font-weight:650}.daily-solution ol{padding-left:20px;line-height:1.8;font-size:12px;overflow-wrap:anywhere}.daily-solution p,.daily-source{font-size:10px;line-height:1.6;color:var(--muted);margin:8px 0 0}.daily-source{padding-top:8px}.home-feature #daily-status{min-height:3.2em}



/* Matching editorial cards; board and piece artwork remain unchanged. */
.home-discover{gap:16px 20px;align-items:stretch}
.home-discover>.home-feature{display:grid;grid-template-rows:minmax(112px,auto) minmax(58px,auto) auto 52px 1fr;gap:16px;padding:24px;border:1px solid #dfe3e9;border-radius:14px;box-shadow:0 3px 14px #20283306;overflow:hidden}
.discovery-header{min-width:0}.home-discover .home-feature-head{align-items:flex-start;gap:12px}.home-discover .home-feature h2{font-size:clamp(18px,1.55vw,22px);font-weight:750;line-height:1.3;margin:5px 0 0;letter-spacing:-.025em}
.home-discover .eyebrow{font-size:9px;letter-spacing:.14em;line-height:1.5;color:#7b828d;margin:0}
.home-discover .tag{font-size:10px;font-weight:650;padding:5px 9px;line-height:1.5;border-radius:6px;margin-top:1px}.home-discover .daily-feature .tag{background:#fbf3df;color:#826119}.home-discover .opera-feature .tag{background:#edf2fa;color:#42618b}
.home-discover .daily-game,.featured-game{display:grid;gap:3px;margin:13px 0 0;font-size:12px;line-height:1.5;color:var(--muted)}.home-discover .daily-game strong,.featured-game strong{font-weight:550;font-size:12px;color:#505b6b;line-height:1.55}.home-discover .daily-game span,.featured-game span{font-size:11px;color:#8a929e}
.home-discover .feature-status,.home-discover #daily-status{display:flex;align-items:center;min-height:58px;margin:0;padding:11px 13px;border:1px solid #e8ecf2;border-radius:8px;background:#f7f9fc;font-size:12px;line-height:1.6;color:#58677d}
.home-discover #daily-status[data-state="solved"]{background:#edf8f2;border-color:#d4eadc;color:#26704d}.home-discover #daily-status[data-state="retry"],.home-discover #daily-status[data-state="hint"]{background:#fff8e7;border-color:#f0e1b7;color:#826118}
.feature-board-stage{display:grid;place-items:center;min-width:0;width:min(100%,340px);justify-self:center;padding:14px 12px;background:#f8f9fb;border:1px solid #edf0f4;border-radius:11px}
.home-discover .home-mini-board{margin:0;align-self:center}
.home-discover .home-feature-actions{margin:0;padding:0;min-height:44px;align-self:center;justify-self:center}
.feature-control-bar{width:min(100%,310px);border:1px solid #e4e8ee;border-radius:9px;background:#fff;padding:5px!important;gap:6px}
.home-discover .home-feature-actions .subtle{min-height:36px;border-radius:6px;padding:7px 12px;font-size:12px;line-height:1.4}
.home-discover .daily-actions{display:grid;grid-template-columns:1fr 1fr}.home-discover #daily-hint{background:#fff6e1;border-color:#efdfb4;color:#876319}.home-discover #daily-reset{background:#f1f5fb;border-color:#dce5f1;color:#3e5b82}.home-discover #daily-hint:hover:not(:disabled){background:#ffedbf}.home-discover #daily-reset:hover{background:#e6edf8}
.home-discover .featured-controls{display:grid;grid-template-columns:auto 34px minmax(0,1fr) 34px;gap:5px}.home-discover #featured-prev,.home-discover #featured-next{background:#fbf0f3;border-color:#eddae0;color:var(--deep);font-size:20px;padding:0}.home-discover #featured-start{background:#f5f6f8;color:#515b68;border-color:#e3e6eb}.home-discover #featured-ply{font-size:12px;font-weight:600;color:#5b6573;min-width:0;white-space:nowrap;text-align:center}
.discovery-footer{border-top:1px solid #edf0f4;padding-top:13px;min-width:0}.home-discover .daily-solution{border:0;margin:0;padding:0}.home-discover .daily-solution summary{font-size:12px;line-height:1.6}.home-discover .daily-source{font-size:10px;line-height:1.6;margin:11px 0 0;padding:0;color:#8a929e}.feature-footnote{margin:0;color:#8a929e;font-size:11px;line-height:1.8}
@supports(grid-template-rows:subgrid){.home-discover{grid-template-rows:repeat(5,auto)}.home-discover>.home-feature{grid-row:span 5;grid-template-rows:subgrid}}
@media(max-width:700px){.home-discover{grid-template-columns:1fr}.home-discover>.home-feature{padding:20px;gap:14px}.home-discover .home-feature h2{font-size:20px}.feature-board-stage{padding:16px 10px}}
@media(max-width:380px){.home-discover>.home-feature{padding:15px}.home-discover .home-feature h2{font-size:18px}.home-discover .home-feature-head{gap:7px}.home-discover .tag{padding:4px 6px;font-size:9px}}

/* Room listings: clear identities, chess emblems and restrained status colours. */
#sala .lobby-section-head{align-items:center;margin:30px 0 15px;gap:20px}
.lobby-heading-group{display:flex;align-items:center;gap:13px;min-width:0}
#sala .lobby-section-head .eyebrow{font-size:9px;letter-spacing:.14em;color:#89909b;line-height:1.5;margin:0 0 4px}
#sala .lobby-section-head h3{font:750 clamp(21px,2.2vw,27px)/1.2 var(--sans);letter-spacing:-.025em;margin:0;color:#2e343e}
.lobby-section-icon{display:grid;place-items:center;width:45px;height:45px;flex:none;border:1px solid #e7d8dc;border-radius:12px;background:#fff7f9;color:#9b304b}
.lobby-section-icon svg{width:27px;height:29px;fill:none;stroke:currentColor}.lobby-section-live{background:#eef7f3;border-color:#d9e9e1;color:#3c7c60}.lobby-section-live svg{fill:currentColor;stroke:currentColor;width:25px;height:25px}
#sala .lobby-filter{display:grid;gap:5px;min-width:150px;font-size:11px;font-weight:550;color:#77818e}
#sala #lobby-type{min-height:41px;padding:9px 31px 9px 12px;border:1px solid #dfe4eb;border-radius:8px;background-color:#fff;color:#3d4c61;font-size:12px;box-shadow:0 2px 6px #26334804}
#sala #lobby-open{grid-template-columns:1fr;gap:12px}
#sala #lobby-open .lobby-card{grid-template-columns:86px minmax(160px,1.1fr) minmax(280px,1.5fr) auto;grid-template-areas:"mark name facts action";gap:14px 18px;padding:20px;background:#fff;border:1px solid #e1e5eb;border-radius:13px;box-shadow:0 3px 12px #26334805}
#sala #lobby-open .lobby-card-bot{background:linear-gradient(110deg,#fffaf0 0%,#fff 60%);border-color:#ead8b8;box-shadow:inset 3px 0 #d9b26c,0 3px 12px #26334805}
#sala #lobby-open .lobby-card-top{grid-area:mark;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;min-width:0;width:100%}
#sala .lobby-piece{display:grid;place-items:center;width:48px;height:48px;flex:none;border-radius:12px;background:#f8eff2;color:#a13651}
#sala .lobby-chess-icon{width:31px;height:32px;stroke:currentColor;fill:none}
#sala .lobby-card-bot .lobby-piece{background:#f9ecd0;color:#9a7030}
#sala .lobby-card[data-kind="live"] .lobby-chess-icon{width:30px;height:30px;fill:currentColor;stroke:currentColor}
#sala .lobby-chip{display:inline-flex;align-items:center;gap:5px;background:#f4f5f8;color:#697384;border:1px solid #e8ebf0;border-radius:5px;font-size:9px;line-height:1.4;padding:3px 6px;white-space:nowrap;letter-spacing:.025em;font-weight:650}
#sala .lobby-card-bot .lobby-chip{background:#f9f0dd;border-color:#eddfc2;color:#8c6828}
#sala #lobby-open .lobby-card-identity{grid-area:name;min-width:0}#sala .lobby-card .eyebrow{font-size:9px;letter-spacing:.1em;line-height:1.5;color:#969da8;margin:0 0 5px}
#sala .lobby-card h4,#sala #lobby-open .lobby-card h4{font:700 clamp(16px,1.6vw,20px)/1.35 var(--sans);letter-spacing:-.02em;margin:0;color:#2d3643;overflow-wrap:anywhere}
#sala .lobby-flag{width:20px;height:14px;object-fit:cover;border-radius:2px;vertical-align:middle;margin-left:5px;box-shadow:0 0 0 1px #0000000d}#sala .lobby-flag[hidden]{display:none}
#sala #lobby-open .lobby-facts{grid-area:facts;border:1px solid #edf0f4;border-radius:9px;padding:11px 12px;margin:0;gap:12px;background:#fafbfd}
#sala .lobby-facts dt{font-size:10px;color:#8b95a3;line-height:1.5}#sala .lobby-facts dd{font-size:12px;font-weight:650;color:#465366;line-height:1.5;margin:5px 0 0}
#sala #lobby-open .lobby-card-action{grid-area:action;min-height:42px;border-radius:8px;padding:10px 15px;font-size:12px;line-height:1.4;white-space:nowrap;box-shadow:none;gap:9px}
#sala #lobby-open .lobby-card:hover{border-color:#d9b6c0;box-shadow:0 5px 18px #56323e0a}#sala #lobby-open .lobby-card-bot:hover{border-color:#d9b472;box-shadow:inset 3px 0 #d9b26c,0 5px 18px #85602c0c}
#sala #lobby-active{grid-template-columns:repeat(auto-fit,minmax(min(100%,350px),1fr));gap:14px}
#sala #lobby-active .lobby-card{padding:20px;gap:14px;border:1px solid #dfe7e4;border-radius:13px;background:#fff;box-shadow:0 3px 12px #26334805}
#sala #lobby-active .lobby-card-top{justify-content:space-between}#sala #lobby-active .lobby-piece{background:#edf6f1;color:#3a7b5b}
#sala #lobby-active .lobby-chip{background:#edf6f1;color:#4e7b65;border-color:#dbebe1}#sala #lobby-active .lobby-chip::before{content:"";width:5px;height:5px;flex:none;border-radius:50%;background:#6b9c80}
#sala #lobby-active [data-turn="yours"] .lobby-chip{background:#e4f6ec;color:#226b49;border-color:#c8e8d5}
#sala #lobby-active .lobby-facts{border-color:#edf0f4;margin:0;padding:12px 0}#sala #lobby-active .lobby-card-action{width:100%;justify-content:center;border-radius:8px;min-height:39px;font-size:12px}
#sala .lobby-empty{display:flex;align-items:center;gap:16px;padding:25px 24px;background:linear-gradient(110deg,#fff,#fafbfd);border:1px dashed #dbe2ea;border-radius:13px;min-height:112px}
#sala .lobby-empty .lobby-piece{width:50px;height:50px;background:#eff2f6;color:#9eabba}#sala .lobby-empty .lobby-chess-icon{fill:currentColor;stroke:currentColor}
#sala .lobby-empty-copy{min-width:0}#sala .lobby-empty strong{font-size:13px;font-weight:600;color:#627084;line-height:1.6}#sala .lobby-empty p{font-size:11px;line-height:1.6;color:#99a1ad;margin:4px 0 0}
#sala .lobby-card[hidden],#sala #lobby-open .lobby-card[hidden]{display:none}
@media(max-width:1180px){#sala #lobby-open .lobby-card{grid-template-columns:76px minmax(0,1fr) auto;grid-template-areas:"mark name action" "facts facts facts";gap:15px;padding:18px}#sala #lobby-open .lobby-facts{padding:12px}}
@media(max-width:600px){#sala .lobby-section-head{flex-wrap:wrap;gap:14px;margin-top:25px}#sala .lobby-filter{width:100%;grid-template-columns:auto 1fr;align-items:center;gap:12px;min-width:0}#sala #lobby-type{width:100%;min-width:0}#sala .lobby-section-head h3{font-size:22px}#sala #lobby-open .lobby-card{grid-template-columns:58px minmax(0,1fr);grid-template-areas:"mark name" "facts facts" "action action";gap:15px 12px;padding:17px}#sala #lobby-open .lobby-card-action{width:100%;justify-content:center}#sala .lobby-piece{width:42px;height:42px}#sala .lobby-chip{font-size:8px}#sala #lobby-open .lobby-facts{gap:8px;padding:11px 9px}#sala .lobby-facts dd{font-size:11px}#sala .lobby-empty{align-items:flex-start;padding:20px 17px;gap:12px}}
@media(prefers-reduced-motion:no-preference){#sala .lobby-card-action{transition:background-color .15s,box-shadow .15s}#sala .lobby-card-action:hover:not(:disabled){box-shadow:0 2px 8px #9d294825}}

#sala .lobby-section-icon svg,#sala .lobby-chess-icon{fill:currentColor;stroke:currentColor}

/* Personal game dashboard. */
#partidas.my-matches-page{margin:12px 0 24px}
.matches-hero{position:relative;display:flex;align-items:center;justify-content:space-between;gap:24px;overflow:hidden;padding:28px 30px;border:1px solid #29191a;border-radius:14px;background:#29191a;color:#fff6e9;box-shadow:0 3px 12px #29191a0a}
.matches-hero-copy{position:relative;z-index:1;max-width:560px}.matches-hero .eyebrow{font-size:9px;color:#f7aa9f;letter-spacing:.14em;margin:0 0 7px}.matches-hero h1{font:750 clamp(27px,3vw,36px)/1.15 var(--sans);letter-spacing:-.035em;margin:0;color:#fff6e9}.matches-hero-copy>p:not(.eyebrow){font-size:13px;line-height:1.7;color:#f0d7cb;margin:10px 0 0;max-width:49ch}
.matches-hero-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:19px}.matches-hero-actions .primary,.matches-hero-actions .subtle{min-height:40px;padding:9px 13px;font-size:12px;border-radius:8px;box-shadow:none}.matches-hero-actions svg{width:15px;height:15px}.matches-hero-actions .subtle{background:#ffffff0a;border-color:#78504e;color:#fff6e9}.matches-hero-actions .subtle:hover{background:#ffffff14;border-color:#b88479}
.matches-royals{--piece-cross-color:currentColor;display:flex;align-items:end;gap:2px;flex:none;margin:0 18px;transform:rotate(-7deg);color:#f7aa9f}.matches-royals svg{width:73px;height:82px;fill:currentColor;stroke:currentColor;filter:drop-shadow(0 5px 0 #130b0b40)}.matches-royals svg+svg{width:60px;height:69px;color:#d7a28b}
.matches-overview{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px;margin-top:16px}.matches-stat{display:grid;gap:5px;padding:17px 19px;border:1px solid #e2e6ed;border-radius:11px;background:#fff;box-shadow:0 2px 7px #26334803}.matches-stat:hover{border-color:#c7d3e5}.matches-stat-label{display:flex;align-items:center;gap:7px;font-size:11px;color:#65748a;font-weight:600}.matches-stat strong{font:700 27px/1.2 var(--sans);letter-spacing:-.04em;color:#465974}.matches-stat small{font-size:10px;line-height:1.5;color:#65748a}.stat-turn{background:#f3faf6;border-color:#dcebe3}.stat-turn strong{color:#347357}.matches-stat-dot{width:6px;height:6px;border-radius:50%;background:#519d73}
.matches-navigation{display:flex;flex-wrap:wrap;gap:7px;margin:22px 0 15px}.matches-navigation a{padding:7px 12px;background:#fff;border:1px solid #e1e5ec;border-radius:7px;color:#768297;font-size:11px;font-weight:600}.matches-navigation a:hover{background:#f4f6fa;border-color:#cbd5e3;color:#415d84}.matches-navigation a:last-child{margin-left:auto;color:#8968af;background:#f7f3fc;border-color:#e7def2}
.matches-columns{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:17px;align-items:start}
#partidas .workspace-panel{padding:22px;border:1px solid #e0e5ec;border-radius:13px;background:#fff;margin:0;min-width:0}.matches-section-heading{display:flex;align-items:center;gap:11px}.matches-section-icon{display:grid;place-items:center;flex:none;width:39px;height:39px;border-radius:10px;background:#edf6f1;color:#5a8d71}.matches-section-icon svg{width:26px;height:27px;fill:currentColor;stroke:currentColor}.matches-section-icon.icon-history{background:#f0f3fa;color:#788eb1}
#partidas .workspace-panel .eyebrow{font-size:8px;letter-spacing:.13em;color:#65748a;margin:0 0 3px}#partidas .workspace-panel h2{font:700 19px/1.3 var(--sans);letter-spacing:-.025em;margin:0;color:#38465b}#partidas .ethics-lead{font-size:11px;color:#65748a;line-height:1.6;margin:12px 0 15px}
#partidas .match-list{gap:9px;margin:0}#partidas .match-list>.match-card{display:grid;grid-template-columns:38px minmax(0,1fr) auto;align-items:center;gap:11px;width:100%;text-align:left;padding:14px 12px;white-space:normal;background:#fff;border:1px solid #e8ecf2;border-radius:10px;box-shadow:none;min-height:77px}
#partidas .match-list>.match-card:hover{background:#fafbfd;border-color:#cbd6e5}#partidas .match-list>.match-card[aria-current="true"]{background:#f3f6fc;border-color:#c8d5e9}#partidas .match-list>.match-your-turn{background:#f6fbf8;border-color:#d9eade;border-inline-start:3px solid #68a381}
.match-emblem{display:grid;place-items:center;width:38px;height:38px;border-radius:10px;background:#f0f3f8;color:#8496b1;flex:none;overflow:hidden}.match-emblem svg{width:26px;height:27px;fill:currentColor;stroke:currentColor}.match-emblem img{width:100%;height:100%;object-fit:cover}.match-your-turn .match-emblem{background:#e5f1e9;color:#528666}
.match-card-identity{display:grid;gap:5px;min-width:0}.match-card-identity strong{font-size:13px;font-weight:650;line-height:1.4;color:#44526a;overflow-wrap:anywhere}.match-card-meta{font-size:10px;line-height:1.6;color:#65748a;font-weight:400}
.match-card-end{display:flex;align-items:center;justify-content:end;gap:9px}.match-card-labels{display:grid;justify-items:end;gap:5px}.match-state{font-size:9px;font-weight:650;white-space:nowrap;line-height:1.4;padding:4px 6px;background:#f1f3f7;color:#5b6b82;border-radius:5px}.match-card[data-state="turn"] .match-state,.match-card[data-state="win"] .match-state{background:#e6f4eb;color:#2f6d48}.match-card[data-state="loss"] .match-state{background:#fcf0f2;color:#9d4458}.match-card[data-state="draw"] .match-state{background:#f0eef9;color:#71638f}
#partidas .match-card small.match-rating-change{font-size:9px;color:#65748a;font-weight:400;text-align:right}.match-card-arrow{width:13px;height:13px;flex:none;color:#b6becc}
.matches-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:182px;padding:24px 13px;text-align:center;background:#fafbfd;border:1px dashed #e5e9f0;border-radius:10px}.matches-empty .match-emblem{width:47px;height:47px;margin-bottom:12px;color:#b0bdcf;background:#f0f3f8}.matches-empty strong{font-size:12px;color:#7d8b9f;font-weight:550;line-height:1.6}.matches-empty p{font-size:10px;line-height:1.7;color:#65748a;max-width:30ch;margin:6px 0 0}
#partidas .trainer-panel{margin-top:18px;background:linear-gradient(115deg,#fefcfe,#fff);border-color:#e7e0ef}#partidas .trainer-panel .tag{background:#f3edf9;color:#9a7bb9;border-color:#e6dcef;border-radius:6px;font-size:10px}#partidas #trainer-scan{background:#8764ad;border-color:#8764ad;color:white;box-shadow:none;border-radius:8px;font-size:12px;min-height:40px}#partidas #trainer-stop{border-radius:8px;background:#fff5e9;color:#9a7d50;border-color:#efdfc9}
#partidas #trainer-status{padding:11px 13px;background:#f7f5fa;border:1px solid #ede8f3;border-radius:8px;font-size:11px;line-height:1.7;color:#756486}#partidas .trainer-actions{gap:8px}#partidas #trainer-picker label{font-size:12px;color:#8c7c9e}#partidas #trainer-errors{border-color:#e3dbea;border-radius:8px;font-size:12px}
@media(max-width:1100px){.matches-columns{grid-template-columns:1fr}.matches-royals{margin:0}.matches-royals svg{width:60px;height:70px}.matches-royals svg+svg{width:49px;height:59px}}
@media(max-width:600px){.matches-hero{padding:23px 20px}.matches-royals{display:none}.matches-hero h1{font-size:29px}.matches-overview{gap:8px}.matches-stat{padding:13px 11px}.matches-stat-label{font-size:10px}.matches-stat strong{font-size:23px}.matches-stat small{font-size:9px}.matches-navigation{gap:6px}.matches-navigation a{padding:7px 9px;font-size:10px}.matches-navigation a:last-child{margin-left:0}#partidas .workspace-panel{padding:18px}.matches-columns{gap:14px}#partidas .match-list>.match-card{padding:12px 10px;gap:9px}.match-card-arrow{display:none}.match-card-meta{font-size:9px}.matches-section-icon{width:35px;height:35px}}
/* Dedicated, unlimited post-game analysis. */
.analysis-settings{display:none}.analysis-page .analysis-settings{display:grid;gap:7px;margin:16px 0}.analysis-settings label{font-size:12px;font-weight:650;color:var(--deep)}.analysis-settings select{width:100%;padding:11px;border:1px solid #d9c9ce;border-radius:8px;background:#fff;color:var(--ink)}.analysis-settings p{font-size:11px;line-height:1.6;color:var(--muted);margin:0}.analysis-lines{margin:14px 0;display:grid;gap:8px}.analysis-lines p{margin:0;padding:12px;background:#f8f3f4;border:1px solid #eadde1;border-radius:8px;font-size:12px;line-height:1.8;color:#643d47;overflow-wrap:anywhere}
.analysis-page-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:22px 26px;margin-bottom:20px;background:#29191a;color:#fff6e9;border-radius:12px}.analysis-page-heading .eyebrow{color:#f7aa9f;font-size:10px;margin:0 0 7px}.analysis-page-heading h1{font:700 clamp(25px,3vw,34px)/1.2 var(--sans);margin:0}.analysis-page-heading p:last-child{font-size:12px;color:#f0d7cb;margin:10px 0 0}.analysis-page-heading>a{background:#ffffff0a;border-color:#78504e;color:#fff6e9;white-space:nowrap}.analysis-page #partida{margin-top:0}.analysis-page .game-move-actions,.analysis-page .game-panel-tabs,.analysis-page .game-extras{display:none}.analysis-page #game-history-panel[hidden]{display:block}.analysis-page #computer-analysis{margin-top:18px;border-top:1px solid #e5dce0;padding-top:20px}.analysis-page #analysis-title{font-size:22px;margin:5px 0 12px}.analysis-page #analysis-status{font-size:13px;font-weight:600;color:var(--deep);line-height:1.7}.analysis-page #analysis-detail{padding:12px;background:#f3f6fa;border-radius:8px;line-height:1.8}.analysis-page #analysis-slider{width:100%;accent-color:var(--red)}.analysis-page #partida .moves{overflow:auto;max-height:calc(100dvh - 170px)}.analysis-page #partida #history{min-height:100px;max-height:190px}.analysis-page .top [data-new]{display:none}
@media(max-width:720px){.analysis-page-heading{padding:20px;align-items:start;flex-direction:column;gap:14px}.analysis-page #partida .moves{max-height:none}}/* Move annotations leave the board and piece artwork unchanged. */
.board-move-badge,.move-commentary-symbol{background:var(--annotation-bg,#667a8b);color:var(--annotation-ink,#fff);font-family:var(--sans);font-weight:800;letter-spacing:-.04em;display:grid;place-items:center;border-radius:50%}
.annotation-brilliant,.move-commentary[data-kind="brilliant"]{--annotation-bg:#087f8c;--annotation-ink:#fff}.annotation-interesting,.move-commentary[data-kind="interesting"]{--annotation-bg:#2778ac;--annotation-ink:#fff}.annotation-best,.move-commentary[data-kind="best"]{--annotation-bg:#397a37;--annotation-ink:#fff}.annotation-good,.move-commentary[data-kind="good"]{--annotation-bg:#538132;--annotation-ink:#fff}.annotation-normal,.move-commentary[data-kind="normal"]{--annotation-bg:#617c69;--annotation-ink:#fff}.annotation-book,.move-commentary[data-kind="book"]{--annotation-bg:#846649;--annotation-ink:#fff}.annotation-inaccuracy,.move-commentary[data-kind="inaccuracy"]{--annotation-bg:#f0c24b;--annotation-ink:#493300}.annotation-mistake,.move-commentary[data-kind="mistake"]{--annotation-bg:#bd6819;--annotation-ink:#fff}.annotation-blunder,.move-commentary[data-kind="blunder"]{--annotation-bg:#bf3447;--annotation-ink:#fff}
#board .board-move-badge{position:absolute;top:2px;right:2px;width:35%;min-width:17px;max-width:29px;aspect-ratio:1;z-index:4;font-size:clamp(10px,1.2vw,16px);line-height:1;border:2px solid #fff6e9;box-shadow:0 2px 4px #29191a40;pointer-events:none}
.move-commentary{--annotation-bg:#667a8b;--annotation-ink:#fff;padding:16px;border:1px solid #e7dce0;border-inline-start:4px solid var(--annotation-bg);border-radius:10px;background:#fdfaf9;margin:10px 0 14px}.move-commentary[hidden]{display:none}.move-commentary-heading{display:flex;align-items:center;gap:11px}.move-commentary .move-commentary-symbol{background:var(--annotation-bg);color:var(--annotation-ink);width:36px;height:36px;flex:none;font-size:20px}.move-commentary .eyebrow{font-size:8px;letter-spacing:.12em;margin:0 0 3px;color:#74636a}#partida .move-commentary h3{font-size:14px;line-height:1.5;margin:0;color:#453039}.move-commentary>p{font-size:12px;line-height:1.8;margin:11px 0 0;color:#5f5159}.move-commentary #move-commentary-alternative{font-weight:650;color:#7e2740}.move-commentary>p:empty,.move-commentary>small:empty{display:none}.move-commentary>small{display:block;font-size:10px;line-height:1.6;margin-top:10px;color:#74636a}.analysis-best{color:#397a37}.analysis-normal{color:#617c69}
@media(max-width:720px){#board .board-move-badge{font-size:clamp(11px,3vw,16px)}.move-commentary{padding:14px}}/* Finished games belong to the personal training panel. */
#partidas .matches-columns>.trainer-panel{margin-top:0}.trainer-history{margin-top:23px;padding-top:20px;border-top:1px solid #e9e1ec;min-width:0}#partidas .trainer-history h3{font:650 16px/1.4 var(--sans);letter-spacing:-.02em;margin:0;color:#514361}.trainer-history .matches-section-icon{width:34px;height:34px;background:#f2edf8;color:#8a6cab}.trainer-history .matches-section-icon svg{width:23px;height:24px}.trainer-gate{display:flex;align-items:start;gap:12px;padding:17px 15px;background:#f7f3fb;border:1px solid #e6dcef;border-radius:10px;margin:15px 0 0}.trainer-gate[hidden],#trainer-workspace[hidden]{display:none}.trainer-gate-icon{display:grid;place-items:center;flex:none;width:34px;height:34px;border-radius:9px;background:#eee5f7;color:#80609e}.trainer-gate-icon svg{width:20px;height:20px}.trainer-gate>div{flex:1;min-width:0}.trainer-gate strong{font-size:12px;line-height:1.6;color:#634e77}.trainer-gate p{font-size:11px;line-height:1.8;color:#756786;margin:5px 0 12px}.trainer-gate-progress{display:flex;gap:10px;align-items:center}.trainer-gate progress{width:100%;min-width:0;height:7px;border:0;border-radius:8px;overflow:hidden;accent-color:#9470b8;background:#e8dff0}.trainer-gate progress::-webkit-progress-bar{background:#e8dff0;border-radius:8px}.trainer-gate progress::-webkit-progress-value{background:#9470b8;border-radius:8px}.trainer-gate progress::-moz-progress-bar{background:#9470b8;border-radius:8px}.trainer-gate-progress span{font-size:10px;color:#806a94;white-space:nowrap}.matches-columns .trainer-exercise{grid-template-columns:1fr}.matches-columns .trainer-exercise .home-mini-board{width:min(100%,320px);justify-self:center}#trainer-workspace{margin-top:17px}/* Keep decorative kings legible and their crosses consistent. */
.match-emblem,.matches-section-icon,.lobby-section-icon,.lobby-piece{--piece-cross-color:currentColor}
#partidas .matches-empty .match-emblem{background:#f8eff2;color:#9b304b}/* Player profiles: shared identity, clear results and private owner sections. */
.profile-space{margin-top:20px}.profile-page-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:20px}.profile-page-heading .eyebrow{font-size:9px;letter-spacing:.14em;color:var(--deep);margin:0 0 6px}.profile-page-heading h1{font:750 clamp(27px,3vw,34px)/1.2 var(--sans);letter-spacing:-.035em;margin:0;color:#30343b}.profile-page-heading p:last-child{font-size:12px;color:#6e6577;margin:8px 0 0}.profile-page-heading>a{font-size:11px;background:#fff;border:1px solid #e2dce0;border-radius:8px;padding:10px 12px;color:#7d3348;white-space:nowrap}
.profile-page #profile-page-details{display:grid;gap:18px}.profile-page #profile-page-details[hidden]{display:none}.profile-page .social-card{margin:0;border:1px solid #e3e5e9;border-radius:13px;background:#fff;box-shadow:0 3px 12px #25324a03}.profile-page .profile-summary{position:relative;display:grid;grid-template-columns:minmax(0,1fr) minmax(155px,240px);align-items:center;gap:22px 30px;padding:30px;background:linear-gradient(115deg,#29191a,#41242a);border-color:#41242a;color:#fff6e9;overflow:hidden}.profile-identity{display:flex;align-items:center;gap:21px;min-width:0}.profile-page .profile-page-photo{flex:none;width:100px;height:100px;border-radius:23px;border:3px solid #f3c5b83d;background:#fff6e90d;color:#f0b9ac;box-shadow:0 4px 20px #160b0d25}.profile-page .profile-page-photo svg{width:43px;height:43px}.profile-page .profile-page-account{min-width:0;flex:1}.profile-page .profile-summary .eyebrow{font-size:8px;letter-spacing:.16em;color:#e4a69c;margin:0 0 7px}.profile-page #profile-page-name{font:750 clamp(22px,2.6vw,32px)/1.25 var(--sans);letter-spacing:-.035em;margin:0;color:#fff6e9;overflow-wrap:anywhere}.profile-page #profile-page-real-name{font-size:12px;color:#e8c9c0;margin:5px 0 0}.profile-page .profile-country{display:inline-flex;align-items:center;gap:7px;margin-top:12px;font-size:11px;line-height:1.4;color:#f2d8cf;background:#ffffff09;border:1px solid #d8a1912b;padding:5px 8px;border-radius:6px}.profile-page .profile-country .player-flag{width:21px;height:14px;border-radius:2px}.profile-rating-summary{border-left:1px solid #b981773b;padding-left:26px;display:grid;gap:5px;min-width:0}.profile-rating-summary>span{font-size:9px;text-transform:uppercase;letter-spacing:.14em;color:#dfb3a8}.profile-rating-summary>strong{font:700 clamp(34px,3.4vw,45px)/1.15 var(--sans);letter-spacing:-.05em;color:#f1d3a0}.profile-page .profile-rating-note{display:block;font-size:10px;line-height:1.7;color:#dfbdb3;margin:0;max-width:24ch}.profile-page .profile-summary #profile-page-edit{grid-column:1/-1;justify-self:start;display:flex;align-items:center;gap:8px;font-size:11px;background:#fff6e9;border:1px solid #fff6e9;color:#753548;border-radius:7px;padding:9px 13px;box-shadow:none}.profile-page #profile-page-edit[hidden]{display:none}.profile-page #profile-page-edit svg{width:14px;height:14px}
.profile-results-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:1px 0 11px}.profile-results-heading h2{font:650 15px/1.4 var(--sans);margin:0;color:#4b4651}.profile-results-heading p{font-size:10px;color:#6e6577;margin:0}.profile-results-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.profile-result-card{display:grid;gap:6px;padding:18px 20px;border:1px solid #e1e5eb;border-radius:11px;background:#fff}.profile-result-label{font-size:10px;line-height:1.5;color:#727d8d;font-weight:600}.profile-result-card strong{font:700 28px/1.2 var(--sans);letter-spacing:-.035em;color:#485976}.profile-result-card small{font-size:9px;line-height:1.6;color:#6e6577}.result-wins{background:#f6faf7;border-color:#dfeae2}.result-wins strong{color:#3d7c58}.result-draws{background:#faf8fd;border-color:#e8e0ee}.result-draws strong{color:#8868a5}.result-losses{background:#fdf7f8;border-color:#efdee3}.result-losses strong{color:#ad5368}
.profile-page .profile-panel{padding:23px;min-width:0}.profile-panel-heading{display:flex;align-items:center;gap:11px;margin-bottom:15px}.profile-panel-heading .eyebrow{font-size:8px;letter-spacing:.12em;line-height:1.6;color:#6e6577;margin:0 0 3px}.profile-page .profile-panel h2{font:650 18px/1.4 var(--sans);letter-spacing:-.025em;color:#463d4e;margin:0}.profile-section-emblem{--piece-cross-color:currentColor;display:grid;place-items:center;width:37px;height:37px;border-radius:10px;flex:none;background:#f6edf1;color:#a24e66}.profile-section-emblem svg{width:23px;height:24px}.profile-panel-heading>.subtle{margin-left:auto;white-space:nowrap;font-size:10px;background:#faf6f8;border-color:#eadce3;color:#8c4961;border-radius:7px;padding:8px 11px}.profile-private-label{margin-left:auto;font-size:9px;color:#6e6577;background:#f6f1fa;border:1px solid #e8dfee;padding:4px 7px;border-radius:5px;white-space:nowrap}.profile-page .social-note{font-size:11px;line-height:1.8;color:#78808f}.profile-page .profile-stats-grid{gap:18px}.profile-page .profile-table{font-size:11px;line-height:1.6}.profile-page .profile-table thead{background:#f7f8fa}.profile-page .profile-table thead th{font-size:9px;font-weight:650;color:#6e6577;border-top:1px solid #ece8ef}.profile-page .profile-table th,.profile-page .profile-table td{padding:11px 9px;border-bottom:1px solid #eceff3}.profile-page .profile-table tbody th{font-weight:550;color:#584e61}.profile-page .profile-table td{color:#6e7686}.profile-page .profile-table tbody tr:last-child>*{border-bottom:0}.profile-page .profile-inline-empty{font-size:11px;line-height:1.8;text-align:center;color:#6e6577;padding:21px 15px;margin:12px 0 0;background:#faf9fc;border:1px dashed #e7e0ec;border-radius:9px}.profile-page .profile-inline-empty[hidden]{display:none}
.profile-page #profile-history{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:0}.profile-page #profile-history>button{display:grid;gap:6px;text-align:left;min-width:0;padding:14px 16px;background:#fcfcfe;border:1px solid #e7e7ee;border-radius:9px}.profile-page #profile-history>button:hover{background:#f7f2f6;border-color:#d9c2d0}.profile-page #profile-history strong{font-size:12px;color:#5e4861;overflow-wrap:anywhere}.profile-page #profile-history small{font-size:10px;line-height:1.8;font-weight:400;color:#6e6577;overflow-wrap:anywhere}.profile-page #profile-inbox-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.profile-page #profile-inbox-list>a{display:block;min-width:0;padding:12px 14px;font-size:11px;font-weight:500;line-height:1.8;background:#f9f8fc;border-color:#e9e3ef;border-radius:8px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#75647f}.profile-page #profile-inbox-list>p{grid-column:1/-1;font-size:11px;color:#6e6577;background:#faf8fc;padding:17px;border:1px dashed #e7e0ec;border-radius:8px;margin:0}
.profile-page #player-contact-panel{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);gap:25px}.profile-page #player-contact-panel[hidden]{display:none}.profile-page #profile-contact-actions{display:flex;flex-wrap:wrap;gap:8px;margin:18px 0 12px}.profile-page #profile-contact-actions button{display:inline-flex;align-items:center;justify-content:center;min-height:38px;padding:8px 11px;font-size:11px;background:#f8f6fa;border-color:#e4dce9;color:#7b628a;border-radius:7px;box-shadow:none}.profile-page #profile-contact-actions [data-social-action="message"]{background:var(--red);border-color:var(--red);color:#fff}.profile-page #profile-contact-actions [data-social-action="request"],.profile-page #profile-contact-actions [data-social-action="accept"]{background:#f0f8f2;border-color:#d8e7dc;color:#4a7c58}.profile-page #profile-contact-actions [data-social-action="report"]{background:#fff7f8;border-color:#efdee3;color:#a45a6e}.profile-conversation{padding-left:25px;border-left:1px solid #ede6ed;min-width:0}.profile-conversation-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px}.profile-conversation-heading h3{font:650 13px/1.5 var(--sans);color:#64536c;margin:0}.profile-conversation-heading>span{font-size:9px;color:#6e6577}.profile-page .profile-message-log{padding:14px;max-height:270px;min-height:100px;background:#faf9fc;border:1px solid #ebe5f0;border-radius:9px;margin-bottom:14px}.profile-page .profile-message-log>p{font-size:11px;color:#6e6577;margin:10px 0}.profile-page .profile-message-log .chat-message{background:#fff;border:1px solid #e8e2ed;padding:10px 12px;max-width:94%;border-radius:9px;margin:0 0 8px}.profile-page .profile-message-log .profile-message-own{margin-left:auto;background:#f6edf1;border-color:#ead8e0}.profile-page .chat-message strong{font-size:9px;color:#9b778a}.profile-page .chat-message p{font-size:12px;line-height:1.8;color:#695969;margin:3px 0 0}.profile-page #profile-message-form{gap:8px}.profile-page #profile-message-form label{font-size:11px;font-weight:600;color:#77637e}.profile-page #profile-message-input{width:100%;min-height:90px;resize:vertical;border:1px solid #dfd5e6;border-radius:8px;padding:11px 12px;font:12px/1.8 var(--sans);background:#fff;color:#57465d}.profile-page #profile-message-input::placeholder{color:#a69aaa}.profile-page #profile-message-send{justify-self:start;font-size:11px;border-radius:7px;min-height:38px;padding:9px 14px}.profile-page #profile-contact-status{font-size:11px;line-height:1.8;color:#8f536d}.profile-page .profile-bot-info{display:flex;gap:14px;align-items:start;padding:23px}.profile-bot-info h2{font:650 17px/1.5 var(--sans);color:#685271;margin:0 0 5px}.profile-bot-info p{font-size:12px;line-height:1.9;color:#6e6577;max-width:80ch;margin:0}
.profile-page .profile-account-settings{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:20px 23px;background:#f9f9fb}.profile-account-settings h2{font:600 13px/1.5 var(--sans);color:#7d7484;margin:0}.profile-account-settings p{font-size:10px;line-height:1.8;color:#6e6577;margin:5px 0 0}.profile-account-links{display:flex;flex-wrap:wrap;gap:7px;flex:none}.profile-account-links a{font-size:10px;padding:8px 10px;border-radius:6px;background:#fff;border-color:#e5dfe9;color:#8a7695}.profile-page .profile-guest{display:flex;flex-direction:column;align-items:center;gap:12px;padding:45px 22px;text-align:center}.profile-guest-emblem{--piece-cross-color:currentColor;display:grid;place-items:center;width:64px;height:64px;border-radius:17px;background:#f8edf1;color:#a14b65}.profile-guest-emblem svg{width:36px;height:39px;fill:currentColor}.profile-guest h2{font:650 23px/1.4 var(--sans);letter-spacing:-.03em;color:#624052;margin:5px 0 0}.profile-guest p{font-size:12px;color:#6e6577;margin:0}.profile-guest button{font-size:12px;border-radius:8px;margin-top:5px}
@media(max-width:1050px){.profile-page .profile-summary{padding:24px;gap:20px}.profile-page .profile-page-photo{width:82px;height:82px;border-radius:19px}.profile-identity{gap:15px}.profile-rating-summary{padding-left:20px}.profile-page #player-contact-panel{grid-template-columns:1fr}.profile-conversation{border-left:0;border-top:1px solid #ede6ed;padding:20px 0 0}.profile-page .profile-account-settings{align-items:start;flex-direction:column;gap:12px}}
@media(max-width:600px){.profile-page-heading{align-items:start;flex-direction:column;gap:13px}.profile-page-heading>a{padding:8px 10px}.profile-page .profile-summary{grid-template-columns:1fr;gap:20px;padding:22px}.profile-page .profile-page-photo{width:76px;height:76px;border-radius:18px}.profile-page #profile-page-name{font-size:24px}.profile-rating-summary{border-left:0;border-top:1px solid #b981773b;padding:17px 0 0;grid-template-columns:1fr auto;align-items:center;gap:5px 12px}.profile-rating-summary>strong{grid-column:2;grid-row:1/3;font-size:37px}.profile-page .profile-rating-note{max-width:27ch}.profile-results-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.profile-result-card{padding:15px}.profile-result-card strong{font-size:25px}.profile-results-heading{align-items:start;flex-direction:column;gap:3px}.profile-page .profile-panel{padding:19px}.profile-page .profile-panel h2{font-size:16px}.profile-page #profile-history,.profile-page #profile-inbox-list{grid-template-columns:1fr}.profile-panel-heading{gap:9px}.profile-panel-heading>.subtle{font-size:9px;padding:6px 8px}.profile-section-emblem{width:33px;height:33px}.profile-private-label{font-size:8px}.profile-account-links{flex:none;width:100%}.profile-account-links a{flex:1;text-align:center}}
.profile-page #player-contact-panel[data-layout="single"]{grid-template-columns:1fr}.profile-section-emblem use{fill:currentColor}