:root{color-scheme:dark;font-family:system-ui,sans-serif;color:#f1ead8;background:#101d25;line-height:1.6}*{box-sizing:border-box}body{margin:0;background:radial-gradient(ellipse at top,#274447,transparent 70%);min-height:100vh}header{max-width:1120px;margin:auto;padding:22px 28px;display:flex;gap:20px;align-items:center;justify-content:space-between}a{color:#f1d399;text-underline-offset:5px}button{font:inherit;cursor:pointer;border:1px solid #82928a;border-radius:9px;background:#263d40;color:inherit;padding:12px 16px;min-height:46px}button:hover:not(:disabled){background:#3c5551}button:focus-visible,a:focus-visible{outline:3px solid #f2cc78;outline-offset:4px}button:disabled{opacity:.45;cursor:default}button[aria-pressed=true],button.primary{border-color:#e7c584;background:#e7c584;color:#182b2a}main{max-width:1064px;margin:20px auto;padding:0 24px 40px}h1{font-family:Georgia,serif;font-weight:400;font-size:clamp(32px,5vw,54px);line-height:1.1;margin:16px 0}h2{font-family:Georgia,serif;font-weight:400;font-size:30px;margin:10px 0}h3{margin:0 0 8px}.eyebrow{letter-spacing:.16em;text-transform:uppercase;font-size:12px;color:#d9c492}.subtle{color:#b8c9c7}.hero{border:1px solid #5a706a;border-radius:18px;padding:36px;background:linear-gradient(90deg,#14292ef5,#14292e9c),url('assets/night-keyart.webp') center/cover}.hero p{max-width:650px}.panel{padding:24px;border:1px solid #506962;border-radius:14px;background:#152b30;margin-top:18px}.grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.dice-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:20px 0}.die{width:100%;font-size:24px;min-height:84px;display:flex;flex-direction:column;align-items:center}.die small{font-size:14px}.skill{width:100%;margin-top:8px;font-size:13px;padding:8px}.status{display:flex;flex-wrap:wrap;gap:12px 24px;padding:16px 0;color:#ead5a3}.enemy{display:flex;align-items:center;gap:24px}.enemy img{width:110px;height:110px;object-fit:contain}.choices{display:flex;gap:10px;flex-wrap:wrap;margin-top:16px}.choices button{text-align:left}.route{display:flex;flex-direction:column;gap:12px}.route button{margin-top:auto}.progress{display:flex;gap:10px;flex-wrap:wrap;padding:0;list-style:none;font-size:13px}.progress li{border-bottom:2px solid #425a56;padding:6px 0;color:#b8c9c7}.progress .active{border-color:#e7c584;color:#fff}.notice{border-left:3px solid #e7c584;padding:10px 15px}#save-notice{max-width:1016px;margin:0 auto 30px;padding:0 24px;color:#f0d1a0}.commands{display:grid;gap:12px}.commands fieldset{border:1px solid #506962;border-radius:10px;padding:12px}.commands legend{padding:0 8px}.forecast{margin:16px 0;border-top:1px solid #506962;padding-top:16px}button.wide{width:100%}@media(max-width:600px){header{padding:16px;gap:10px;flex-wrap:wrap;font-size:13px}header strong{order:-1;width:100%;letter-spacing:.15em}main{margin-top:8px;padding:0 16px 24px}.hero,.panel{padding:20px}.grid{grid-template-columns:1fr}.dice-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.enemy{gap:12px}.enemy img{width:76px;height:76px}.choices>*{flex:1 1 130px}.status{gap:8px 16px}.progress{gap:8px;font-size:12px}}
.hero{position:relative;isolation:isolate;overflow:hidden;background:#14292e}.hero>.scene{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:-2}.hero::before{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,#11252ef5,#11252eaa)}.variant-title{color:#f1d399;font-weight:600}select{display:block;width:100%;margin:12px 0;padding:12px;font:inherit;min-height:48px;background:#263d40;color:#f1ead8;border:1px solid #82928a;border-radius:8px}label{display:block}select:focus-visible{outline:3px solid #f2cc78;outline-offset:4px}[hidden]{display:none!important}@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
.waylight{float:right;width:64px;height:96px;object-fit:contain;margin:0 0 12px 12px}.hero+button{margin-top:16px}
.counter-readout{border:1px solid #68847b;border-radius:10px;padding:16px;margin:16px 0}.counter-readout p{margin:8px 0}.commands button small{display:block;font-size:12px;line-height:1.5;margin-top:4px}

/* Shared keyboard controls stay discoverable without crowding touch play. */
button[aria-pressed=true]:hover:not(:disabled),button.primary:hover:not(:disabled){background:#f1d399;color:#182b2a}
.daily-keyboard-hint{font-size:13px;color:#b8c9c7;margin:6px 0 12px}
#daily-phase-heading:focus-visible{outline:3px solid #f2cc78;outline-offset:5px;border-radius:3px}
#daily-control-notice{max-width:1016px;margin:0 auto 20px;padding:0 24px;color:#f0d1a0}
#daily-control-notice:empty{margin:0;padding:0}
@media(hover:none) and (pointer:coarse){.daily-keyboard-hint{display:none}}
@media(max-width:600px){#daily-control-notice{padding:0 16px}}

/* Four-companion confirmation review adjacent to the canonical forecast. */
.daily-command-review{margin:16px 0;padding:16px;border:1px solid #68847b;border-radius:10px;background:#1b3335}
.daily-command-review-list{list-style:none;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 14px;margin:12px 0;padding:0}
.daily-command-review-list li{min-width:0;display:flex;flex-direction:column;overflow-wrap:anywhere;border-left:2px solid #d5b778;padding:2px 10px}
.daily-command-review-list span{color:#f1ead8}
.daily-command-review p{margin-bottom:0}
@media(max-width:600px){.daily-command-review-list{grid-template-columns:minmax(0,1fr)}}


/* Canonical opening objectives previewed before replacing local practice. */
.daily-variant-preview{margin:12px 0 18px;padding:14px 16px;border-left:3px solid #d5b778;border-radius:6px;background:#172e31;overflow-wrap:anywhere}
.daily-variant-preview h3{margin:0 0 6px;color:#f1d399;font-size:1.08rem}
.daily-variant-preview p{margin:6px 0}
.daily-variant-preview .eyebrow{color:#b8c9c7}

/* Canonical three-dice move possibilities, before the player commits. */
.daily-hand-readiness{margin:14px 0 18px;padding:16px;border:1px solid #68847b;border-radius:10px;background:#1b3335;overflow-wrap:anywhere}
.daily-hand-readiness h3{margin:0 0 10px;color:#f1d399}
.daily-hand-readiness-list{list-style:none;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 14px;margin:0 0 10px;padding:0}
.daily-hand-readiness-list li{min-width:0;display:flex;flex-direction:column;gap:3px;border-left:2px solid #d5b778;padding:2px 10px}
.daily-hand-readiness-list span{color:#f1ead8}
.daily-hand-readiness .subtle{margin:12px 0 0}
@media(max-width:600px){.daily-hand-readiness-list{grid-template-columns:minmax(0,1fr)}}

/* Optional engine-verified hand comparisons. No new controls or motion. */
.daily-hand-alternatives{margin-top:16px;border-top:1px solid #506962}
.daily-hand-alternatives summary{display:list-item;min-height:44px;padding:10px 4px;cursor:pointer;color:#f1d399;font-weight:600}
.daily-hand-alternatives summary:focus-visible{outline:3px solid #f2cc78;outline-offset:4px}
.daily-hand-alternatives[open] .daily-hand-alternative-list{margin-top:8px}
.daily-hand-alternative-list{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.daily-hand-alternative-list li{min-width:0;display:flex;flex-direction:column;gap:4px;padding:10px 12px;border-left:2px solid #d5b778;background:#203a3b;overflow-wrap:anywhere}

/* Read-only server-confirmed progress, compact until the player expands it. */
.daily-episode-ledger{margin:16px 0;padding:12px 16px;border:1px solid #68847b;border-radius:10px;background:#1b3335;overflow-wrap:anywhere}
.daily-episode-ledger summary{cursor:pointer;color:#f1d399;font-weight:600;padding:3px 0}
.daily-episode-ledger summary:focus-visible{outline:3px solid #f2cc78;outline-offset:4px}
.daily-episode-ledger-list{list-style:none;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 12px;margin:14px 0;padding:0}
.daily-episode-ledger-list li{min-width:0;display:flex;flex-direction:column;gap:3px;border-left:2px solid #506962;padding:4px 10px}
.daily-episode-ledger-list li[data-confirmed="true"]{border-color:#e7c584}
.daily-episode-ledger-list span{color:#b8c9c7;font-size:.9rem}
@media(max-width:600px){.daily-episode-ledger-list{grid-template-columns:minmax(0,1fr)}}

/* Compact, touch-friendly route intelligence using the existing illustrated palette. */
.daily-route-foe{margin:0;color:#f1d399;font-weight:600;overflow-wrap:anywhere}
.daily-route-counter{margin:0 0 4px;border-top:1px solid #506962;border-bottom:1px solid #506962}
.daily-route-counter summary{display:list-item;min-height:44px;padding:9px 4px;cursor:pointer;color:#f1d399;font-weight:600}
.daily-route-counter summary:focus-visible{outline:3px solid #f2cc78;outline-offset:4px}
.daily-route-counter .subtle{margin:0 0 12px;overflow-wrap:anywhere}

/* One camp action: compare the carried resources before the final fight. */
.daily-camp-foe{margin:12px 0;border-top:1px solid #506962;border-bottom:1px solid #506962;overflow-wrap:anywhere}
.daily-camp-foe summary{display:list-item;min-height:44px;padding:9px 4px;cursor:pointer;color:#f1d399;font-weight:600}
.daily-camp-foe summary:focus-visible{outline:3px solid #f2cc78;outline-offset:4px}
.daily-camp-foe p{margin:6px 0 12px}
.daily-camp-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.daily-camp-option{min-width:0;padding:14px;border:1px solid #68847b;border-radius:8px;background:#1b3335;overflow-wrap:anywhere}
.daily-camp-option h3{margin:0 0 8px;font-size:1rem;color:#f1d399}
.daily-camp-option p{margin:8px 0}
.daily-camp-option button{min-height:44px;width:100%}
.daily-camp-after{font-weight:600;color:#f1ead8}
@media(max-width:600px){.daily-camp-choices{grid-template-columns:minmax(0,1fr)}}

/* Distinguish cleared checkpoints from the current stage on return visits. */
.progress li.complete{border-color:#83b9a0;color:#e1f2e8;font-weight:600}
.progress li[aria-current="step"]{font-weight:700}
.daily-progress-summary{margin:6px 0 0;font-size:13px;color:#d2dfd9}

/* Match the canonical illustrated game; this page is the shell's versioned Daily view. */
:root{font-family:Inter,"Avenir Next",Avenir,"PingFang TC","Microsoft JhengHei",system-ui,sans-serif;background:#101518;color:#eef1e7}body{background:radial-gradient(ellipse at top,#273026,transparent 70%)}h1,h2{font-family:inherit;font-weight:600;letter-spacing:-.035em}.panel{background:#191f21;border-color:#30393a;border-radius:18px}button,select{background:#1d2426;border-color:#52604e;border-radius:12px}button.primary,button[aria-pressed=true],.daily-primary-link{background:#d8ecac;border-color:#d8ecac;color:#1e2b24}button:hover:not(:disabled){background:#354333}.hero{background:#191f21;border-color:#4b5845}.hero::before{background:linear-gradient(90deg,#101518ed,#10151870)}.hero h1{max-width:16ch}.daily-primary-link{display:inline-flex;padding:12px 20px;border-radius:12px;text-decoration:none;font-weight:600;min-height:46px;align-items:center}.daily-journal>summary{cursor:pointer;min-height:44px;display:flex;align-items:center;gap:12px}.daily-journal>summary::before{content:'✧';color:#e6c57d}.daily-journal #daily-server-controls{border:0;padding:8px 0;margin:0}header strong{letter-spacing:.15em;font-size:13px}#save-notice:empty{display:none}

body[data-daily-embedded] #return,body[data-daily-embedded] header>strong{display:none}body[data-daily-embedded] header{padding-top:12px;padding-bottom:12px}

/* Optional local recurring journey: the existing journal owns collection/recovery. */
.daily-preview-label{font-size:.85rem;color:#d8d0b5;border-left:2px solid #8d9d74;padding-left:12px}
.hero>button{margin:8px 10px 0 0;max-width:100%;overflow-wrap:anywhere}
.daily-collection{margin-top:20px;padding-top:16px;border-top:1px solid #52604e}
.daily-collection:focus-visible{outline:3px solid #f2cc78;outline-offset:5px}
.daily-waylight-list{list-style:none;padding:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.daily-waylight-list li{min-width:0;display:grid;grid-template-columns:38px minmax(0,1fr);gap:4px 12px;padding:12px;background:#1d2726;border:1px solid #354333;border-radius:10px;overflow-wrap:anywhere}
.daily-waylight-list img{width:38px;height:60px;object-fit:contain;grid-row:span 2}
.daily-waylight-list li[data-earned=true]{border-color:#d8ecac}
.daily-waylight-list span{font-size:.9rem;color:#c5d0bf}
.daily-camp-memory{padding:16px;border-left:3px solid #d8ecac;background:#1d2926;border-radius:8px}
@media(max-width:600px){.daily-waylight-list{grid-template-columns:minmax(0,1fr)}.hero>button{width:100%;margin-right:0}}

/* Keep the current decision, resources and one guarded confirmation together. */
.daily-battle-panel{position:relative;--daily-context-height:140px;--daily-action-height:150px}
.daily-battle-context{position:sticky;top:0;z-index:4;margin:-8px -8px 14px;padding:12px;background:#182427f5;border:1px solid #52604e;border-radius:12px;box-shadow:0 6px 18px #10151844;backdrop-filter:blur(10px)}
.daily-battle-context:focus-visible{outline:3px solid #f2cc78;outline-offset:3px}
.daily-battle-title{display:flex;align-items:baseline;justify-content:space-between;gap:8px;flex-wrap:wrap}
.daily-battle-title h2{font-size:18px;line-height:1.25;margin:0;letter-spacing:-.02em}
.daily-battle-title>span{font-size:12px;color:#c9d4c3;white-space:nowrap}
.daily-battle-context p{font-size:13px;line-height:1.45;margin:6px 0 0;overflow-wrap:anywhere}
.daily-battle-vitals{font-weight:600;color:#e9edda;font-variant-numeric:tabular-nums}
.daily-battle-intent{color:#f1d399}.daily-battle-poison{color:#f2cbaa}
.daily-decision-hint,.daily-locked-hand{margin:6px 0 10px;font-size:14px;line-height:1.4}
.daily-battle-details{margin:12px 0 0;border-top:1px solid #354333}
.daily-battle-details>summary{cursor:pointer;min-height:44px;padding:11px 2px;font-size:14px;color:#d8ecac}
.daily-battle-details>summary:focus-visible{outline:3px solid #f2cc78;outline-offset:3px}
.daily-battle-details .daily-hand-readiness{margin:4px 0 10px}
.daily-battle-action{position:sticky;bottom:0;z-index:3;margin:14px -8px 0;padding:10px 8px max(10px,env(safe-area-inset-bottom));background:#182427f5;border-top:1px solid #718064;box-shadow:0 -6px 18px #10151844;backdrop-filter:blur(10px)}
.daily-battle-action .forecast,.daily-action-summary{margin:0 0 8px;padding:0;border:0;font-size:13px;line-height:1.45;overflow-wrap:anywhere}
.daily-battle-action button{min-height:46px}
.daily-battle-panel button,.daily-battle-panel summary,#daily-phase-heading,body[data-daily-world="true"] .daily-battle-panel :is(button,summary):focus-visible{scroll-margin-block-start:calc(var(--daily-context-height) + 12px);scroll-margin-block-end:calc(var(--daily-action-height) + 12px)}
.daily-battle-panel .commands{gap:8px}.daily-battle-panel .commands fieldset{min-width:0;margin:0;padding:6px 8px 8px}
.daily-battle-panel .commands legend{font-size:14px;font-weight:600;padding:0 5px}
.daily-battle-panel .commands .choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:4px}
.daily-battle-panel .commands .choices button{min-width:0;min-height:48px;padding:8px 10px;font-size:14px;line-height:1.35;overflow-wrap:anywhere}
.daily-battle-panel .commands button small{font-size:12px;line-height:1.35;margin-top:4px}
.daily-battle-panel .daily-command-review{padding:10px;margin:12px 0}.daily-battle-panel .daily-command-review h3{font-size:15px}
.daily-battle-panel .daily-command-review-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px 10px;margin:8px 0;font-size:13px;line-height:1.4}
.daily-battle-panel .daily-command-review p{font-size:12px;line-height:1.4;margin-top:8px}
.daily-battle-panel[data-command-layout="focused"] .daily-command-review{padding:0;border:0;background:transparent;margin:10px 0}
.daily-battle-panel[data-command-layout="focused"] .daily-command-review-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;margin:8px 0}
.daily-battle-panel[data-command-layout="focused"] .daily-command-review-list li{padding:0;border:0}
.daily-command-editor-tab{display:flex;flex-direction:column;gap:2px;width:100%;min-width:0;min-height:64px;padding:6px 8px;text-align:left;font-size:16px;line-height:1.4;overflow-wrap:anywhere}
.daily-command-editor-tab[aria-selected="true"]{border-color:#d8ecac;background:#354333;box-shadow:inset 0 0 0 1px #d8ecac}
.daily-command-editor-tab strong{font-weight:600}.daily-command-editor-tab span{color:inherit}
.daily-command-effects{margin-top:6px;border-top:1px solid #354333}
.daily-command-effects>summary{cursor:pointer;min-height:44px;padding:8px 2px;font-size:14px;line-height:1.45}
.daily-command-effects>summary:focus-visible{outline:3px solid #f2cc78;outline-offset:3px}
.daily-command-effects p{font-size:14px;line-height:1.45;margin:6px 0;overflow-wrap:anywhere}
@media(max-width:600px){.daily-battle-panel{padding:14px}.daily-battle-context{margin:-6px -6px 12px;padding:10px}.daily-battle-title h2{font-size:16px}.daily-battle-panel .dice-grid{gap:8px;margin:12px 0}.daily-battle-panel .die{min-height:72px;font-size:22px}.daily-battle-panel .die small{font-size:13px}.daily-battle-panel .skill{min-height:44px;padding:7px 8px;font-size:12px}.daily-battle-action{margin:12px -6px 0}.daily-battle-panel h3{font-size:17px}}
@media(max-height:520px){.daily-battle-context,.daily-battle-action{position:static}}
.daily-battle-action .daily-action-risk{margin:0 0 6px;color:#ffd7b5;font-size:13px;font-weight:600;line-height:1.35}

/* The compact battle still honors the shared large-text preference. Keep the
   scope stronger than the later daily-world.css small-label defaults. */
html[data-text-size="large"] body[data-daily-world="true"] .daily-battle-panel :is(
  .daily-battle-title > span, .daily-battle-context p,
  .daily-decision-hint, .daily-locked-hand, .daily-battle-details > summary,
  .daily-battle-action .forecast, .daily-action-summary, .daily-action-risk,
  .daily-battle-action button, .commands legend, .commands .choices button,
  .commands button small, .daily-command-review-list, .daily-command-review p,
  .die small, .skill, .daily-command-editor-tab, .daily-command-effects > summary, .daily-command-effects p
) { font-size: 18px; line-height: 1.65; }
html[data-text-size="large"] body[data-daily-world="true"] .daily-battle-panel :is(.daily-battle-title h2, h3) {
  font-size: 20px; line-height: 1.45;
}
html[data-text-size="large"] body[data-daily-world="true"] .daily-battle-title > span { white-space: normal; }

/* An earned collection reads as a travel keepsake, never a spendable wallet. */
.daily-reward-promise{padding:12px 14px;border-left:3px solid #e9bf75;border-radius:0 10px 10px 0;background:#e9bf7510;color:#f4e4c3;font-size:15px;line-height:1.55}
.daily-refresh-time{font-size:13px;color:#c9d4c3;line-height:1.5}.daily-refresh-time time{font-weight:600;color:#e7ead9}
.daily-collection>progress{display:block;width:100%;height:10px;accent-color:#e9bf75;border:0;border-radius:9px;overflow:hidden;margin:16px 0 8px}
.daily-collection-count{font-variant-numeric:tabular-nums;color:#f2cc78;font-weight:600}.daily-collection-goal{padding:12px 14px;border:1px solid #e9bf7540;border-radius:10px;background:#e9bf750a;line-height:1.55}
.daily-waylight-list li[data-earned="true"]{background:linear-gradient(130deg,#d6ad5830,#172c25);border-color:#cba96380;box-shadow:inset 0 0 24px #f0ce8307}
.daily-waylight-memory{grid-column:1/-1;min-width:0;border-top:1px solid #e9bf7530;margin-top:8px}.daily-waylight-memory summary{cursor:pointer;min-height:44px;display:flex;align-items:center;color:#e9bf75;font-size:14px;line-height:1.5}.daily-waylight-memory p{line-height:1.65;color:#e3e8d7}.daily-waylight-memory summary:focus-visible{outline:3px solid #f2cc78;outline-offset:3px}
html[data-text-size="large"] .daily-reward-promise,html[data-text-size="large"] .daily-refresh-time,html[data-text-size="large"] .daily-collection-goal,html[data-text-size="large"] .daily-waylight-memory summary{font-size:18px;line-height:1.65}
