/* R10C reward panel. Fixed-size score and milestone areas avoid board jumps. */
.chessie-rewards{box-sizing:border-box;color:#633c16;background:linear-gradient(125deg,#fff8df,#fff0bc 72%,#ffe3a0);border:1.5px solid #e4b44d;border-radius:17px;padding:10px 13px;margin:0 0 12px;box-shadow:0 4px 14px #a6772016;min-width:0;text-align:left;font-family:system-ui,-apple-system,Segoe UI,sans-serif;--gold:#c88b19;--purple:#5f4baa}
.chessie-rewards *, .reward-dialog *{box-sizing:border-box}.reward-core{display:grid;grid-template-columns:49px minmax(105px,1fr) minmax(135px,1fr);gap:10px;align-items:center}.reward-star svg{width:100%;display:block;filter:drop-shadow(0 3px 2px #ad721b26)}.reward-label{display:block;font-size:10px;letter-spacing:1.1px;font-weight:850;color:#91601c;line-height:1.2}.reward-numbers{display:flex;align-items:center;gap:10px;min-height:38px}.reward-numbers strong{font-size:32px;line-height:1;font-weight:900;font-variant-numeric:tabular-nums;color:#704713}.reward-numbers #rewardGain{display:inline-block;min-width:44px;color:#197748;font-size:19px;font-weight:900}.reward-small{font-size:11px;line-height:1.35;color:#866131}.reward-milestone{min-width:0}.reward-milestone>strong{display:block;font-size:14px;line-height:1.25}.reward-track{height:9px;background:#e6d4a3;border-radius:20px;overflow:hidden;margin:6px 0 3px}.reward-track span{display:block;background:linear-gradient(90deg,#e8aa29,#f5ce59);height:100%;border-radius:20px;transition:width .35s ease}.reward-session{display:flex;flex-wrap:wrap;gap:5px 10px;align-items:center;border-top:1px solid #e8cf89;margin-top:7px;padding-top:7px}.reward-session>div:first-child{display:flex;gap:6px;align-items:center;flex-wrap:wrap}.reward-session>div:first-child strong{font-size:14px;color:#23734a;white-space:nowrap}.reward-session #rewardSessionTime{font-size:12px;font-weight:700;white-space:nowrap}.reward-buttons{display:flex;flex-wrap:wrap;gap:5px;margin-left:auto}.chessie-rewards button,.reward-dialog button{font:inherit;font-size:12px;font-weight:750;line-height:1.2;border:1px solid #ddc68c;border-radius:9px;padding:7px 10px;background:#fffdf5;color:#78531b;cursor:pointer;box-shadow:none}.chessie-rewards button:hover,.reward-dialog button:hover{background:#ffedb5}.chessie-rewards #rewardChoose,.chessie-rewards #rewardReport,.reward-dialog .reward-primary{background:#624db1;color:#fff;border-color:#624db1}.chessie-rewards #rewardFinish{background:#fff;color:#236f47}.chessie-rewards #rewardNotice{margin:5px 0 0;font-size:11px;color:#77562b;line-height:1.25;min-height:14px}.chessie-rewards [hidden],.reward-dialog [hidden]{display:none!important}.reward-pop .reward-star{animation:reward-bounce .65s ease-in-out}.reward-pop #rewardGain{animation:reward-bounce .45s ease-out}@keyframes reward-bounce{0%,100%{transform:scale(1)}45%{transform:scale(1.2) rotate(-4deg)}}
.reward-dialog{box-sizing:border-box;max-width:min(94vw,520px);width:520px;max-height:90vh;overflow:auto;background:#fff9e9;border:2px solid #e1b655;border-radius:22px;padding:24px;box-shadow:0 18px 65px #25324e55;color:#634115;text-align:center;font-family:system-ui,sans-serif;position:fixed;margin:auto;inset:0;z-index:4000}.reward-dialog::backdrop{background:#11283b99}.reward-dialog h2{font-size:26px;line-height:1.15;color:#634115;margin:8px 0}.reward-dialog p{font-size:14px;margin:8px 0 15px}.reward-dialog .reward-close{position:absolute;right:12px;top:12px;font-size:20px;padding:2px 9px}.reward-dialog .reward-primary{display:block;width:100%;font-size:15px;padding:12px;margin:12px 0}.reward-presets,.reward-summary,.reward-passport{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:12px 0}.reward-presets button,.reward-summary>div,.reward-passport>div{display:flex;flex-direction:column;gap:3px;align-items:center;background:#fff;border:1px solid #eadcb4;border-radius:12px;padding:11px 6px;min-width:0}.reward-presets strong,.reward-summary strong{font-size:25px;color:#735017}.reward-presets span,.reward-summary span,.reward-passport span{font-size:11px;color:#806038}.reward-custom{display:flex;align-items:center;justify-content:center;gap:7px;flex-wrap:wrap;margin:12px 0}.reward-custom label{font-size:12px;font-weight:700}.reward-custom input{width:66px;padding:8px;border:1px solid #ddc68c;border-radius:8px;font:inherit}.reward-celebrate{font-size:52px;animation:reward-bounce .6s ease-in-out}.reward-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.reward-report-total{background:#ffedb6;padding:15px;border-radius:14px;display:flex;flex-direction:column;gap:4px}.reward-report-total strong{font-size:36px}.reward-report-total>span:last-child{font-size:13px}.reward-stamp{font-weight:800;color:#247443}.reward-passport strong{font-size:25px}.reward-passport b{font-size:12px}.reward-passport .locked{opacity:.65}.reward-passport .earned{border-color:#dbab44;background:#fff5d5}.reward-legacy-points{display:none!important}.reward-switch{display:inline-block;font-size:13px;font-weight:750;margin-bottom:8px;color:#245f74}.top #syncStatus{font-size:12px}.academy-reward-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(270px,360px);gap:14px;align-items:start;margin:18px 0 22px}.academy-reward-layout .chessie-rewards{margin:0}.academy-reward-layout .practice-station{margin:0}.reward-slot:empty{display:none}
@media(max-width:760px){.reward-core{grid-template-columns:38px minmax(95px,1fr) minmax(100px,1fr);gap:7px}.reward-numbers strong{font-size:27px}.reward-numbers{min-height:32px;gap:4px}.reward-label{font-size:9px}.reward-milestone>strong{font-size:12px}.reward-small{font-size:10px}.reward-buttons{margin-left:0}.chessie-rewards{padding:9px 10px}.academy-reward-layout{grid-template-columns:1fr}.reward-dialog{padding:18px}.reward-dialog h2{font-size:22px}.reward-presets button{padding:8px 4px}.reward-passport{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(prefers-reduced-motion:reduce){.reward-pop .reward-star,.reward-pop #rewardGain,.reward-celebrate{animation:none}.reward-track span{transition:none}}
/* Keep the reward strip close to the board; retain the largest square board
   that fits below the header and reward controls on desktop. */
.chessie-rewards .reward-core{grid-template-columns:48px minmax(112px,1fr) minmax(135px,1fr);align-items:center}
.chessie-rewards .reward-total{min-width:0}.chessie-rewards .reward-numbers{min-height:34px}.chessie-rewards .reward-session{margin-top:5px;padding-top:5px}
.chessie-rewards .reward-label{margin:0}.chessie-rewards .reward-small{margin:0}.chessie-rewards .reward-numbers strong{margin:0}.chessie-rewards #rewardNotice{min-height:28px;max-width:100%;margin:4px 0 0}
@media(min-width:1000px){.boardzone .frame{max-width:min(100%,max(420px,calc(100dvh - 350px)),980px)}.board-zone .approved-board-frame{max-width:min(100%,max(420px,calc(100dvh - 415px)),980px)}.boardzone>.chessie-rewards,.board-zone>.reward-slot{margin-left:auto;margin-right:auto;max-width:930px}.board-zone .board-bar{height:48px}.boardzone .reward-switch,.board-zone .reward-switch{margin:0 0 5px 8px}}
@media(max-width:760px){.chessie-rewards .reward-core{grid-template-columns:36px minmax(85px,1fr) minmax(100px,1fr);gap:7px}.chessie-rewards #rewardNotice{min-height:32px}.chessie-rewards .reward-session{min-height:64px}.reward-dialog{max-height:85dvh}}
@media(min-width:1000px){.chessie-rewards .reward-session{min-height:38px}.chessie-rewards #rewardNotice{min-height:14px}.chessie-rewards .reward-numbers #rewardGain{min-width:52px}}

/* R10D: countdown adjacent to score, not in the distant sidebar. */
.chessie-rewards .reward-core{grid-template-columns:42px minmax(110px,1fr) minmax(120px,1fr) minmax(116px,.82fr);gap:9px}.reward-countdown{background:#fffdf8;border:1px solid #d8c8f1;border-radius:12px;padding:7px 9px;color:#5943a2;text-align:center;min-width:0}.reward-countdown>span:first-child{display:block;font-size:10px;letter-spacing:.7px;font-weight:850;line-height:1.2}.reward-countdown>strong{display:block;font-size:clamp(25px,2.6vw,37px);font-variant-numeric:tabular-nums;line-height:1.15;font-weight:900;white-space:nowrap}.reward-countdown>small{display:block;font-size:10px;font-weight:700;line-height:1.25;min-height:13px}.reward-time-track{height:5px;background:#e7ddf4;border-radius:10px;overflow:hidden;margin:3px 0}.reward-time-track span{display:block;background:#8066cb;height:100%;border-radius:10px}.reward-countdown[data-state="last-minute"]{color:#994b17;background:#fff1d4;border-color:#dc8a31;box-shadow:0 0 0 2px #dc8a3120}.reward-countdown[data-state="last-minute"] .reward-time-track span{background:#d98132}.reward-countdown[data-state="finished"]{color:#236c45;background:#e7f6e9;border-color:#9dc9a8}.reward-countdown[data-state="paused"]{color:#695d78;background:#f3eef8}.reward-dialog[data-kind="report"]{border:2px solid #e1b655}.reward-dialog[data-kind="report"] .reward-celebrate{font-size:58px}.reward-dialog[data-kind="report"] #rewardFinishToday{width:100%;padding:11px;font-size:14px}.reward-dialog[data-kind="report"] .reward-primary{background:#624db1}.reward-dialog[data-kind="report"] h2{font-size:30px}
@media(max-width:760px){.chessie-rewards .reward-core{grid-template-columns:36px minmax(95px,1fr) minmax(102px,1fr);gap:6px}.reward-countdown{grid-column:1/-1;display:grid;grid-template-columns:1fr auto;align-items:center;text-align:left;padding:6px 10px;gap:2px 10px}.reward-countdown>strong{grid-column:2;grid-row:1/3;font-size:29px}.reward-countdown .reward-time-track{grid-column:1/-1;grid-row:3;margin:1px 0}.reward-countdown>small{grid-column:1;grid-row:2}.reward-dialog[data-kind="report"] h2{font-size:24px}}
@media(min-width:1000px){.boardzone .frame{max-width:min(100%,max(360px,calc(100dvh - 375px)),980px)}.board-zone .approved-board-frame{max-width:min(100%,max(360px,calc(100dvh - 440px)),980px)}}
@media(prefers-reduced-motion:reduce){.reward-countdown{transition:none}}
