@font-face{font-family:'IBM Plex Sans';src:url('fonts/IBMPlexSans-Regular.woff2') format('woff2');font-style:normal;font-weight:400;font-display:swap}
@font-face{font-family:'IBM Plex Sans';src:url('fonts/IBMPlexSans-Medium.woff2') format('woff2');font-style:normal;font-weight:500;font-display:swap}
@font-face{font-family:'IBM Plex Sans';src:url('fonts/IBMPlexSans-SemiBold.woff2') format('woff2');font-style:normal;font-weight:600 900;font-display:swap}
@font-face{font-family:'IBM Plex Sans Arabic';src:url('fonts/IBMPlexSansArabic-Regular.woff2') format('woff2');font-style:normal;font-weight:400 900;font-display:swap}
html[data-embed=true][data-skin=arena]{background:#111a26;color-scheme:dark}
html[data-embed=true][data-skin=dashboard]{background:#111c23;color-scheme:dark}
html[data-embed=true][data-skin=club]{background:#f5edde}
html[data-embed=true][data-skin=editorial]{background:#f9f8f4}
html[data-embed=true][data-skin=studio]{background:#f3e9db}
body{font-family:'IBM Plex Sans','IBM Plex Sans Arabic',sans-serif;font-size:17px;line-height:1.45}
body .topbar>span,.sidebar-caption,.daily-card,.intro-stamp{display:none}
.topbar{justify-content:flex-end;letter-spacing:normal}
.intro h1{font-size:32px;font-weight:600;letter-spacing:-.5px}
.intro p,.player-row small{font-size:14px}
.player-row strong,.bot-profile h2{font-size:18px;font-weight:600}
.field-label,.difficulty-label{font-size:17px}
.time-note,.rules-link,.range-labels,.bot-profile p{font-size:14px}
.primary,.secondary,.segmented button,.mode-tabs button,select,.text-input,textarea{font-size:16px}
.panel-body>.eyebrow,.gentle-note{display:none}
.quick-tools{flex-wrap:wrap;gap:8px}
.quick-tools button,.board-tools button,.premove-tools button{font-size:15px;min-height:42px}
.quick-tools .quick-settings{margin-inline-start:auto;margin-left:0}
.quick-tools #quick-sound[aria-pressed=true],#last-opponent-move[aria-pressed=true]{border-color:var(--lime);background:var(--lilac)}
#quick-sound .sound-icon{font-size:20px;line-height:1}
#last-opponent-move{display:flex;align-items:center;gap:7px}
.board-tools{flex-wrap:wrap;gap:8px}
.board-tools #board-status,.premove-tools,.premove-tools small{font-size:14px;line-height:1.5}
.move-pair,.move-pair button{font-size:17px}
.move-list p,.notation #move-count{font-size:14px}
.sound-settings .sound-level{display:flex;align-items:center;gap:12px;margin-top:16px}
.sound-settings input[type=range]{flex:1;min-width:80px;accent-color:var(--lime)}
.sound-settings output{min-width:3em;font-variant-numeric:tabular-nums}
.sound-settings #test-sound{margin-top:12px;border:1px solid var(--line);border-radius:5px;padding:9px 14px}
.appearance-group legend,.appearance-option strong,.gameplay-settings select,.gameplay-settings p,.gameplay-saved{font-size:16px}
.gameplay-switch{font-size:17px}
.appearance-dialog{font-size:17px;line-height:1.5}
.content-card p,.lesson-copy p,.analysis-copy>p,.history-row{font-size:16px;line-height:1.65}
body[data-embed=true] .topbar{display:none}
@media(max-width:460px){.quick-tools button{padding:6px 9px}.quick-tools .quick-settings{margin-inline-start:0}.board-tools #board-status{flex-basis:100%;order:2}.appearance-option strong{font-size:14px}}

/* The board and the result take priority; optional imports and explanations fold away. */
.intro{display:none}
.guest small,.bot-profile,#bot-panel>.eyebrow,#online-panel>.eyebrow,#online-panel>h2,#online-panel>.muted{display:none}
body:not([data-embed=true]) main{max-width:none;padding-inline:24px}
body:not([data-embed=true]) .topbar{height:52px;margin-bottom:16px}
body:not([data-embed=true]) .workspace{max-width:none;grid-template-columns:minmax(280px,1fr) 420px;gap:24px}
body:not([data-embed=true]) .workspace>.board-column{max-width:min(1000px,max(280px,calc(100dvh - 220px)));width:100%;justify-self:center}
body[data-embed=true] .panel-body{padding:16px 20px}
body[data-embed=true][data-skin=arena] .panel-body{padding:16px 20px}
body[data-embed=true] .mode-tabs button{min-height:44px;font-size:17px}
body[data-embed=true] #bot-panel .field-label{margin:12px 0 7px}
body[data-embed=true] #bot-panel .difficulty-label{font-size:17px}
body[data-embed=true] #bot-panel .difficulty-label strong{font-size:27px}
body[data-embed=true] #bot-panel .range-labels{font-size:14px}
body[data-embed=true] #bot-panel input[type=range]{margin:9px 0 5px}
body[data-embed=true] #bot-panel .segmented button,body[data-embed=true] #bot-panel select,body[data-embed=true] #bot-panel .time-categories button{min-height:42px}
body[data-embed=true] #bot-panel .time-categories button{padding:9px 3px}
body[data-embed=true] #bot-panel .primary{margin-top:12px;min-height:48px;font-size:18px;padding:11px 15px}
body[data-embed=true] #bot-panel .rules-link{margin-bottom:0;font-size:14px}
body[data-embed=true] #bot-panel .time-note{font-size:14px;margin:6px 0 4px}
body[data-embed=true] #hint{padding:6px 0;min-height:32px}
body[data-embed=true] .notation{padding:13px 20px}
body[data-embed=true][data-skin=arena] .notation{padding:13px 20px}
body[data-embed=true] .move-list{max-height:150px;min-height:38px;margin-top:8px}
body[data-embed=true][data-skin=arena] .move-list{max-height:150px}
.history-controls,.review-navigation{display:grid;grid-template-columns:40px 40px minmax(0,1fr) 40px 40px;gap:5px;align-items:center}
.history-controls{margin-top:10px;grid-template-columns:40px 40px minmax(0,1fr) 40px 40px auto}
.history-controls button,.review-navigation button{width:40px;height:40px;min-width:0;min-height:40px;border:1px solid var(--line);background:var(--paper);border-radius:4px;font-size:17px;line-height:1;padding:0}
.history-controls button:disabled,.review-navigation button:disabled{cursor:default;opacity:.4}
.history-controls strong,.review-navigation strong{min-width:0;text-align:center;font-size:16px;line-height:1.3;overflow-wrap:anywhere}
#history-live{width:auto;min-width:54px;padding:0 10px;background:var(--lime);color:var(--button-ink,var(--ink));font-weight:600}
#review-panel{padding-top:16px}
#review-result{min-width:0}
#review-result .accuracy-cards{margin-top:0;gap:10px}
#review-result .accuracy-cards>div{padding:12px 14px;min-width:0;border-radius:4px}
#review-result .accuracy-cards small{font-size:15px;line-height:1.3}
#review-result .accuracy-cards strong{font-size:36px;line-height:1.1;margin-top:6px;font-variant-numeric:tabular-nums}
#review-result .review-navigation{margin-top:12px}
#review-result .coach{font-size:16px;line-height:1.5;padding:11px 13px;margin:12px 0;border-color:var(--lime);min-height:0;overflow-wrap:anywhere}
#review-result .coach .badge{font-size:20px;line-height:1.35;margin-bottom:7px}
#review-result .coach small{font-size:14px;line-height:1.5}
#review-result .coach p{margin:7px 0}
#review-result .eval-chart{height:66px;margin-top:10px;border-radius:4px}
.review-actions{display:grid;grid-template-columns:1fr 1fr;gap:9px;align-items:stretch;margin-top:10px}
.review-actions .secondary,.review-actions .text-button{font-size:15px;padding:9px 8px;margin:0;min-height:42px;border:1px solid var(--line);border-radius:4px;white-space:normal;min-width:0}
.accuracy-method{font-size:14px;line-height:1.6;margin-top:12px}
.accuracy-method summary{min-height:32px;font-size:14px;padding-block:4px;cursor:pointer;overflow-wrap:anywhere}
.accuracy-method .analysis-note{font-size:14px}
.review-input{margin-top:12px;border-top:1px solid var(--line);padding-top:10px;font-size:16px}
.review-input>summary{cursor:pointer;min-height:42px;font-weight:600;font-size:17px;display:list-item;list-style-position:inside;padding-block:8px}
.review-input .field-label{font-size:15px;margin:8px 0 6px}
.review-input textarea{min-height:80px;max-height:160px;line-height:1.45;padding:9px 11px;font-size:15px;resize:vertical}
.review-input .review-start{display:flex;gap:9px;align-items:center;margin-top:10px}
.review-input .review-start .primary{margin:0;flex:1;min-width:0;min-height:44px;font-size:17px;padding:10px 13px}
.review-input .review-start .text-button{width:auto;font-size:14px;padding:5px;max-width:34%}
.review-quality-control select{font-size:15px;min-height:42px;padding:9px 10px}
#review-status{font-size:14px;line-height:1.5;margin:8px 0}
#review-status:empty{display:none}
#review-progress{margin:8px 0;height:10px}
#cancel-review{margin:7px 0}
.grade-summary{display:flex;flex-wrap:wrap;gap:6px;margin-top:11px}
.grade-count{display:inline-flex;align-items:center;gap:5px;font-size:14px;line-height:1.4;padding:4px 7px;border:1px solid var(--line);border-radius:4px;min-width:0}
.move-grade{display:inline-grid;place-items:center;min-width:22px;height:22px;border-radius:50%;background:var(--grade-color,#546880);color:var(--grade-ink,#fff);font-size:14px;font-weight:600;line-height:1;vertical-align:middle;margin-inline-end:5px}
.grade-best{--grade-color:#36735b}.grade-excellent{--grade-color:#52785a}.grade-good{--grade-color:#50697b}.grade-inaccuracy{--grade-color:#f0be65;--grade-ink:#312416}.grade-mistake{--grade-color:#c07735}.grade-blunder{--grade-color:#bc484e}.grade-great{--grade-color:#397cbb}.grade-brilliant{--grade-color:#248987}
.coach .badge[class*=grade-]{color:var(--grade-color)}
.review-square-grade{position:absolute;right:5%;top:5%;z-index:5;pointer-events:none;margin:0;box-shadow:0 0 0 2px var(--paper);min-width:clamp(18px,3vw,27px);height:clamp(18px,3vw,27px);font-size:clamp(12px,1.7vw,18px)}
.grade-method-note{font-size:14px;line-height:1.6}
body[data-embed=true][data-skin=dashboard] #bot-panel>.difficulty-label{grid-row:1}
body[data-embed=true][data-skin=dashboard] #level{grid-row:2}
body[data-embed=true][data-skin=dashboard] #bot-panel>.range-labels{grid-row:3}
body[data-embed=true][data-skin=dashboard] #new-game{grid-row:4 / 6}
body[data-embed=true][data-skin=dashboard] #hint{grid-row:6}
@media(min-width:761px) and (max-width:1300px){body[data-embed=true][data-skin=arena]{--panel-width:400px}body[data-embed=true][data-skin=studio]{--panel-width:400px}body[data-embed=true][data-skin=editorial]{--panel-width:370px}}
@media(min-width:761px) and (max-width:1000px){body[data-embed=true][data-skin=arena]{--panel-width:350px}body[data-embed=true][data-skin=studio]{--panel-width:350px}body[data-embed=true][data-skin=editorial]{--panel-width:330px}body[data-embed=true][data-skin=club]{--panel-width:330px}body[data-embed=true] .workspace,body[data-embed=true][data-skin=studio] .workspace,body[data-embed=true][data-skin=editorial] .workspace{gap:20px}}
@media(max-width:1150px){body:not([data-embed=true]) .workspace{grid-template-columns:minmax(280px,1fr) 350px;gap:20px}}
@media(max-width:850px){body:not([data-embed=true]) .workspace{grid-template-columns:minmax(0,1fr);max-width:650px;margin:auto}body:not([data-embed=true]) .workspace>.board-column{max-width:none}body:not([data-embed=true]) main{padding-inline:16px}}
@media(max-width:760px){.history-controls button,.review-navigation button{min-height:44px;height:44px}.history-controls strong,.review-navigation strong{font-size:15px}.grade-count{font-size:14px}body[data-embed=true] .panel-body,body[data-embed=true][data-skin=arena] .panel-body{padding:16px}}
@media(max-width:460px){.history-controls{grid-template-columns:36px 36px minmax(0,1fr) 36px 36px;gap:4px}.history-controls button{width:36px}.history-controls #history-live{grid-column:1 / -1;width:100%}.review-navigation{grid-template-columns:36px 36px minmax(0,1fr) 36px 36px;gap:4px}.review-navigation button{width:36px}.review-navigation strong{font-size:14px}.review-actions{grid-template-columns:1fr}.grade-count{padding:3px 5px;font-size:13px}#review-result .accuracy-cards strong{font-size:33px}#review-result .accuracy-cards small{font-size:14px}.review-input .review-start .primary{font-size:16px}.review-input .review-start .text-button{font-size:13px}}

body[data-game-mode=review] .opponent-picker{display:none}

/* Return to live may wrap when a short viewport makes the board narrow. */
.history-controls{display:flex;flex-wrap:wrap}
.history-controls>button{flex:0 0 40px}
.history-controls>strong{flex:1 1 80px}
.history-controls #history-live{flex:1 0 auto;white-space:normal;overflow-wrap:anywhere}
.grade-count>span[aria-hidden=true]{display:inline-grid;place-items:center;flex-shrink:0;min-width:22px;height:22px;border-radius:50%;background:var(--grade-color,#546880);color:var(--grade-ink,#fff);font-size:14px;font-weight:600;line-height:1}
.coach .badge[class*=grade-]{color:var(--ink)}
.grade-mistake{--grade-color:#9d5c22}.grade-great{--grade-color:#2e70ab}.grade-brilliant{--grade-color:#1c7978}
@media(max-width:460px){.history-controls>button{flex-basis:36px}.history-controls #history-live{flex-basis:100%;width:100%}}
