/* Deliberately scoped: adding the game never changes Scholar's existing controls. */
.daily-scholar-page { margin:0; background:#f5f1e8; color:#242922; font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; }
.ds-masthead { display:flex; justify-content:space-between; gap:16px; align-items:center; max-width:900px; margin:auto; padding:26px 24px; }
.ds-masthead a { color:inherit; text-decoration:none; font-size:14px; }
.ds-masthead a:first-child { font-family:Georgia,serif; font-size:24px; }
.ds-game, .ds-invitation { --ds-paper:#fffdf7; --ds-ink:#242922; --ds-muted:#687063; --ds-line:#deddd1; --ds-accent:#345240; --ds-soft:#eef1e7; --ds-gold:#947341; color:var(--ds-ink); font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; text-align:left; }
.ds-game { box-sizing:border-box; width:min(100%,740px); margin:0 auto; padding:28px 28px 38px; }
.ds-game *, .ds-invitation * { box-sizing:border-box; }
.ds-game [hidden] { display:none !important; }
.ds-eyebrow { margin:0 0 10px; color:var(--ds-gold); font-size:11px; font-weight:750; letter-spacing:.16em; text-transform:uppercase; }
.ds-game h1 { margin:0; font:normal clamp(34px,7vw,52px)/1.12 Georgia,"Times New Roman",serif; letter-spacing:-.035em; color:var(--ds-ink); }
.ds-deck { margin:12px 0 22px; color:var(--ds-muted); line-height:1.6; font-size:15px; }
.ds-meta { display:flex; justify-content:space-between; gap:12px; padding:15px 0; border-top:1px solid var(--ds-line); color:var(--ds-muted); font-size:12px; }
.ds-help { border:0; background:transparent; padding:0; color:var(--ds-accent); font:inherit; cursor:pointer; text-decoration:underline; text-underline-offset:3px; }
.ds-steps { display:flex; gap:8px; margin:3px 0 22px; }
.ds-step { width:34px; height:6px; border-radius:4px; background:var(--ds-line); }
.ds-step[data-state="current"] { background:var(--ds-gold); }
.ds-step[data-state="used"] { background:var(--ds-muted); }
.ds-step[data-state="correct"] { background:var(--ds-accent); }
.ds-quote { position:relative; margin:0 0 20px; padding:25px 28px; background:var(--ds-paper); border:1px solid var(--ds-line); border-radius:18px; }
.ds-quote .ds-eyebrow { margin-bottom:16px; font-size:10px; }
.ds-quote blockquote { margin:0; color:var(--ds-ink); font:normal clamp(22px,4.4vw,29px)/1.5 Georgia,"Times New Roman",serif; overflow-wrap:anywhere; }
.ds-clues { display:grid; gap:9px; margin:0 0 23px; padding:0; list-style:none; }
.ds-clue { padding:14px 17px; border-left:2px solid var(--ds-gold); background:var(--ds-soft); border-radius:0 10px 10px 0; }
.ds-clue strong { display:block; margin-bottom:5px; font-size:10px; letter-spacing:.08em; text-transform:uppercase; color:var(--ds-gold); }
.ds-clue p { margin:0; font-size:14px; line-height:1.6; overflow-wrap:anywhere; }
.ds-options { border:0; padding:0; margin:0; min-width:0; }
.ds-options legend { padding:0; margin-bottom:13px; font-size:13px; font-weight:650; }
.ds-candidates { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.ds-candidate { position:relative; display:block; width:100%; min-height:89px; padding:15px 17px; margin:0; border:1px solid var(--ds-line); border-radius:12px; background:var(--ds-paper); color:var(--ds-ink); text-align:left; font-family:inherit; cursor:pointer; transition:border-color .15s,background .15s; }
.ds-candidate strong { display:block; font-size:14px; font-weight:650; line-height:1.4; }
.ds-candidate small { display:block; margin-top:4px; font-size:11px; color:var(--ds-muted); line-height:1.5; }
.ds-candidate[aria-pressed="true"] { border-color:var(--ds-accent); outline:1px solid var(--ds-accent); background:var(--ds-soft); }
.ds-candidate:disabled { opacity:.53; cursor:default; }
.ds-candidate:disabled strong { text-decoration:line-through; }
.ds-actions { display:flex; gap:10px; margin:19px 0 0; flex-wrap:wrap; }
.ds-game .ds-primary, .ds-game .ds-secondary, .ds-invitation .ds-primary { display:inline-flex; justify-content:center; align-items:center; gap:8px; min-height:48px; padding:13px 21px; border:1px solid transparent; border-radius:10px; font:650 14px/1.4 system-ui,-apple-system,sans-serif; text-decoration:none; cursor:pointer; }
.ds-game .ds-primary, .ds-invitation .ds-primary { color:#fffdf7; background:var(--ds-accent); }
.ds-game .ds-secondary { border-color:var(--ds-line); color:var(--ds-ink); background:transparent; }
.ds-game button:disabled { cursor:default; }
.ds-game .ds-primary:disabled { opacity:.5; }
.ds-game button:focus-visible,.ds-game a:focus-visible,.ds-invitation button:focus-visible { outline:3px solid var(--ds-gold); outline-offset:3px; }
.ds-game .ds-feedback { margin:14px 0; color:var(--ds-accent); font-size:13px; line-height:1.5; min-height:20px; }
.ds-game .ds-feedback:empty { display:none; }
.ds-game .ds-error { padding:14px; border:1px solid #bc8274; border-radius:10px; color:var(--ds-ink); line-height:1.6; font-size:14px; }
.ds-error button { margin-top:10px; }
.ds-fineprint { margin:21px 0 0; color:var(--ds-muted); font-size:11px; line-height:1.65; }
.ds-loading { padding:45px 0; color:var(--ds-muted); font-size:14px; }
.ds-rules { margin:0 0 20px; padding:18px 20px; background:var(--ds-soft); border:1px solid var(--ds-line); border-radius:12px; }
.ds-rules h2 { margin:0 0 9px; font:normal 23px Georgia,serif; }
.ds-rules ol { padding-left:20px; margin:0; font-size:13px; line-height:1.7; }
.ds-rules p { font-size:12px; line-height:1.6; margin:10px 0 0; color:var(--ds-muted); }
.ds-result { padding:23px; border:1px solid var(--ds-line); border-radius:16px; background:var(--ds-paper); }
.ds-result h2 { font:normal 30px/1.2 Georgia,serif; margin:4px 0 8px; }
.ds-result .ds-author { font-size:18px; font-weight:650; margin:15px 0 5px; }
.ds-result p { font-size:14px; line-height:1.6; margin:10px 0; }
.ds-result .ds-citation { color:var(--ds-muted); font-size:12px; }
.ds-source-link { display:inline-block; margin-top:12px; color:var(--ds-accent); text-underline-offset:3px; font-size:13px; }
.ds-stats { display:grid; grid-template-columns:repeat(3,1fr); margin-top:22px; padding:18px 0; border-top:1px solid var(--ds-line); border-bottom:1px solid var(--ds-line); text-align:center; }
.ds-stat strong { display:block; font:normal 28px Georgia,serif; }
.ds-stat span { display:block; margin-top:5px; color:var(--ds-muted); font-size:10px; text-transform:uppercase; letter-spacing:.06em; }
.ds-share-fallback { display:block; width:100%; padding:14px; min-height:125px; color:var(--ds-ink); background:var(--ds-paper); border:1px solid var(--ds-line); border-radius:10px; font:14px/1.6 system-ui,sans-serif; }
.ds-invitation { display:flex; align-items:center; justify-content:space-between; gap:22px; margin:24px 0; padding:24px; border:1px solid var(--ds-line); border-radius:18px; background:var(--ds-paper); }
.ds-invitation h2 { margin:0 0 9px; color:var(--ds-ink); font:normal 28px/1.2 Georgia,serif; }
.ds-invitation p:last-child { color:var(--ds-muted); margin:0; font-size:13px; line-height:1.6; }
.ds-invitation .ds-primary { flex-shrink:0; }
.ds-dialog { width:min(780px,calc(100% - 24px)); max-height:calc(100dvh - 24px); padding:0; border:1px solid #deddd1; border-radius:24px; background:#f5f1e8; overflow:auto; overscroll-behavior:contain; color:#242922; }
.ds-dialog::backdrop { background:rgba(8,12,9,.75); }
.ds-dialog-bar { position:sticky; top:0; z-index:3; display:flex; align-items:center; justify-content:space-between; padding:14px 22px; background:#f5f1e8; border-bottom:1px solid #deddd1; font:600 13px system-ui,sans-serif; }
.ds-dialog-bar button { border:0; padding:9px 13px; border-radius:9px; color:#242922; background:#e8e6dc; font:600 13px system-ui,sans-serif; cursor:pointer; }
.ds-noscript { margin:40px auto; padding:24px; max-width:660px; line-height:1.6; }
@media (max-width:520px) { .ds-game { padding:22px 18px 30px; } .ds-masthead { padding:20px; } .ds-quote { padding:23px 20px; } .ds-candidate { padding:13px; } .ds-invitation { align-items:flex-start; flex-direction:column; gap:16px; padding:21px; } .ds-invitation .ds-primary { width:100%; } .ds-dialog { width:100%; max-width:none; max-height:100dvh; height:100dvh; border:0; border-radius:0; margin:0; } .ds-dialog-bar { padding-top:max(14px,env(safe-area-inset-top)); } }
@media (prefers-color-scheme:dark) {
  .daily-scholar-page,.ds-dialog,.ds-dialog-bar { background:#171b17; color:#eeeede; }
  .ds-game,.ds-invitation { --ds-paper:#20271f; --ds-ink:#eeeede; --ds-muted:#adb6a7; --ds-line:#3a4337; --ds-accent:#a8c797; --ds-soft:#293226; --ds-gold:#ceb681; }
  .ds-game .ds-primary,.ds-invitation .ds-primary { color:#182116; }
  .ds-dialog,.ds-dialog-bar { border-color:#3a4337; }
  .ds-dialog-bar button { background:#303b2c; color:#eeeede; }
}
@media (prefers-reduced-motion:reduce) { .ds-candidate { transition:none; } }
