/* DailyBrainArc — Chess quality wave Q5. No chess rules, game state or persistence changed. */
.chess-page.chess-q569 {--cq-ink:#172b26;--cq-moss:#386f55;--cq-felt:#16392e;display:flex;flex-direction:column;max-width:1280px;padding:12px 18px 96px;gap:0}
.chess-q569 .chess-modebar{order:0;margin:0 0 9px!important;padding:0 0 3px!important;gap:7px!important}
.chess-q569 .chess-modebar a{font-size:12px!important;padding:8px 13px!important;border-radius:10px!important;box-shadow:none}
.chess-q569 .chess-modebar a.active{background:#183b2e!important;color:#fff!important}
.chess-q569 #chessGameShell{order:1;background:#f7faf7;border:1px solid #d5e3dc;border-radius:23px;padding:10px 14px 14px;box-shadow:0 12px 45px #163b2e13;overflow:visible;min-width:0}
.chess-q569 .chess-hero{order:3;margin:18px 0 0!important;padding:18px 20px!important;border-radius:20px;background:linear-gradient(110deg,#ebf4ef,#f7faf8);border:1px solid #e1eae4;display:flex;align-items:center;gap:14px}
.chess-q569 .chess-hero h1{font-size:clamp(20px,2.1vw,29px)!important;margin:0!important;line-height:1.1}
.chess-q569 .chess-hero p{font-size:13px!important;margin:4px 0 0!important;max-width:720px}
.chess-q569 .chess-hero .eyebrow{display:none}
.chess-q569 .chess-hero .scorebox{min-width:94px}
.chess-q569 #chessMistakeReview{order:4}
.chess-q569 #chessTacticsAcademy{order:5}
.chess-q569 .chess-below{order:6}
.chess-q569 .chess-topline{margin:0 0 6px!important;min-height:34px!important;gap:8px}
.chess-q569 .chess-topline .eyebrow{font-size:10px;color:#457f5f}
.chess-q569 .chess-topline strong{font-size:14px!important;margin-top:0!important;color:#173c2d}
.chess-q569 .chess-state{gap:5px}
.chess-q569 .chess-state span{padding:4px 8px;font-size:10px;background:#e9f3ed;color:#2a5844;border-color:#d4e5da}
.chess-q569 .chess-clockbar{margin:0 0 7px!important;gap:6px!important;grid-template-columns:1fr 1.3fr 1fr!important;max-height:43px}
.chess-q569 .chess-clockbar>div{min-height:0!important;padding:4px 9px!important;border:1px solid #d6e3db!important;border-radius:9px!important;display:flex;gap:8px;align-items:center;justify-content:center}
.chess-q569 .chess-clockbar span,.chess-q569 .chess-clockbar small{font-size:10px!important}
.chess-q569 .chess-clockbar strong{font-size:14px!important;line-height:1!important}
.chess-q569 .chess-layout{grid-template-columns:minmax(0,1.65fr) minmax(270px,.85fr);gap:14px!important;align-items:start}
.chess-q569 .chess-board-wrap{min-width:0;max-width:100%;display:flex;flex-direction:column;align-items:center}
.chess-q569 .chess-board{box-sizing:border-box;width:min(100%,665px,calc(100dvh - 275px))!important;max-width:100%;border:7px solid #294d3e!important;border-radius:12px!important;box-shadow:0 14px 35px #13342929!important;margin:0 auto;aspect-ratio:1/1}
.chess-q569 .chess-square.light{background:#f1e6cb!important}
.chess-q569 .chess-square.dark{background:#87a68e!important}
.chess-q569 .chess-square .chess-piece{font-size:clamp(24px,3.4vw,53px)!important;line-height:1!important}
.chess-q569 .chess-board-meta{width:min(100%,665px);display:flex;gap:12px;justify-content:space-between;margin-top:5px!important;font-size:11px;color:#547061}
.chess-q569 .chess-panel{background:#fff;border:1px solid #dae7df;border-radius:15px;padding:11px!important;gap:8px!important;box-shadow:0 6px 23px #183b2d0b}
.chess-q569 .chess-panel .chess-quick-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px!important}
.chess-q569 .chess-panel .chess-quick-actions .btn{padding:9px 3px!important;min-width:0!important;border-radius:9px;font-weight:750;font-size:12px}
.chess-q569 #chessHint{background:#173f30!important;color:#fff!important}
.chess-q569 #chessStatus{font-size:12px;line-height:1.5;margin:0!important;padding:9px 10px;background:#eff6f1;border-radius:9px;color:#254739;min-height:34px}
.chess-q569 .chess-move-coach{background:linear-gradient(160deg,#f9fbf7,#f1f7f1);border:1px solid #e0e9df;padding:12px!important;border-radius:12px;max-height:210px;overflow:auto}
.chess-q569 .chess-move-coach .eyebrow{font-size:10px!important;color:#508167}
.chess-q569 .chess-move-coach strong{font-size:14px!important;color:#153d2b}
.chess-q569 .chess-move-coach p{font-size:12px!important;line-height:1.55!important}
.chess-q569 .chess-command{border-top:1px solid #e4ece6;padding-top:8px}
.chess-q569 .chess-command small{font-size:10px}
.chess-q569 .chess-setup{border:1px solid #e0e9e3;border-radius:11px;padding:7px 10px}
.chess-q569 .chess-secondary-actions{display:flex;gap:8px}
.chess-q569 .chess-secondary-actions>*{flex:1}
@media(min-width:900px) and (max-height:690px){
 .chess-q569 .chess-topline{min-height:27px!important}
 .chess-q569 .chess-state span{padding:3px 6px}
 .chess-q569 .chess-clockbar{max-height:36px}
 .chess-q569 .chess-board{width:min(100%,665px,calc(100dvh - 255px))!important}
}
@media(max-width:899px){
 .chess-page.chess-q569{padding:10px 11px 80px;max-width:100%}
 .chess-q569 #chessGameShell{padding:10px!important;border-radius:16px}
 .chess-q569 .chess-modebar{margin-bottom:7px!important}
 .chess-q569 .chess-modebar a{padding:7px 10px!important;font-size:11px!important}
 .chess-q569 .chess-layout{display:flex!important;flex-direction:column;gap:8px!important}
 .chess-q569 .chess-board-wrap{width:100%}
 .chess-q569 .chess-board{width:min(100%,calc(100vw - 44px),520px)!important;border-width:5px!important}
 .chess-q569 .chess-square .chess-piece{font-size:clamp(22px,6.3vw,47px)!important}
 .chess-q569 .chess-clockbar{max-height:41px}
 .chess-q569 .chess-clockbar>div{padding:4px!important;gap:3px}
 .chess-q569 .chess-clockbar small{display:none}
 .chess-q569 .chess-panel{width:100%;box-sizing:border-box;padding:9px!important}
 .chess-q569 .chess-panel .chess-quick-actions .btn{padding:9px 5px!important;font-size:12px}
 .chess-q569 .chess-hero{padding:14px!important}
 .chess-q569 .chess-hero p{font-size:12px!important}
}
@media(max-width:360px){
 .chess-q569 .chess-state span{font-size:9px!important;padding:3px 4px}
 .chess-q569 .chess-clockbar>div{gap:2px}
 .chess-q569 .chess-clockbar span{font-size:9px!important}
 .chess-q569 .chess-board{width:min(100%,calc(100vw - 42px))!important}
}
