/* Approved centered header controls and a reserved, collapsible deck panel. */
.exploration-header{display:contents}
#header-movement,#side-deck-toggle{display:none}
body:is([data-screen=world],[data-screen=reward]) .shell{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(0,1fr);gap:8px;overflow:hidden}
body:is([data-screen=world],[data-screen=reward]) .exploration-header{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:12px;grid-column:1;grid-row:1;min-width:0;min-height:62px}
body:is([data-screen=world],[data-screen=reward]) .masthead{grid-column:1;grid-row:1;min-width:0;min-height:0}
body:is([data-screen=world],[data-screen=reward]) .masthead-end{display:none}
body:is([data-screen=world],[data-screen=reward]) #header-movement{display:block;grid-column:2;grid-row:1;justify-self:center}
body:is([data-screen=world],[data-screen=reward]) #direction-pad{display:grid;grid-template-columns:repeat(3,27px);grid-template-rows:repeat(2,27px);gap:3px;margin:0;padding:0;border:0;border-radius:0;background:none;box-shadow:none}
body:is([data-screen=world],[data-screen=reward]) #direction-pad .direction{display:flex;align-items:center;justify-content:center;min-height:0;padding:0}
body:is([data-screen=world],[data-screen=reward]) #direction-pad .up{grid-column:2;grid-row:1}
body:is([data-screen=world],[data-screen=reward]) #direction-pad .left{grid-column:1;grid-row:2}
body:is([data-screen=world],[data-screen=reward]) #direction-pad .down{grid-column:2;grid-row:2}
body:is([data-screen=world],[data-screen=reward]) #direction-pad .right{grid-column:3;grid-row:2}
body:is([data-screen=world],[data-screen=reward]) #direction-pad .direction kbd{display:grid;place-items:center;box-sizing:border-box;width:27px;height:27px;padding:0;border:0;border-radius:3px;box-shadow:none;background:var(--theme-surface);color:var(--theme-ink);font:700 18px/1 Consolas,monospace}
body:is([data-screen=world],[data-screen=reward]) #direction-pad .direction>div{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
body:is([data-screen=world],[data-screen=reward]) .run-hud{grid-column:3;grid-row:1;justify-self:end;min-width:0;min-height:50px;max-width:100%;padding:5px 9px;gap:12px}
body:is([data-screen=world],[data-screen=reward]) #run-time{font-size:22px}
body:is([data-screen=world],[data-screen=reward]) .ring-progress-art{width:38px;height:42px}
body:is([data-screen=world],[data-screen=reward]) .ring-progress-copy strong{font-size:9px;letter-spacing:0;white-space:nowrap}
body:is([data-screen=world],[data-screen=reward]) .ring-progress-copy small{display:none}
body:is([data-screen=world],[data-screen=reward]) .console{grid-column:1;grid-row:2;display:grid;grid-template-columns:minmax(0,1fr) 20px clamp(224px,23vw,290px);grid-template-rows:minmax(0,1fr);min-width:0;min-height:0;overflow:hidden}
body:is([data-screen=world],[data-screen=reward])[data-side-deck=collapsed] .console{grid-template-columns:minmax(0,1fr) 20px}
body:is([data-screen=world],[data-screen=reward]) .play-column{grid-column:1;grid-row:1;min-width:0;min-height:0}
body:is([data-screen=world],[data-screen=reward]) #side-deck-toggle{grid-column:2;grid-row:1;display:grid;place-items:center;align-self:center;justify-self:stretch;min-width:0;width:20px;height:42px;padding:0;border:1px solid var(--theme-line);border-radius:4px;background:var(--theme-surface);color:var(--theme-ink);cursor:pointer}
#side-deck-toggle svg{width:14px;height:22px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
body[data-side-deck=collapsed] #side-deck-toggle svg{transform:rotate(180deg)}
#side-deck-toggle:focus-visible{outline:2px solid #c99f49;outline-offset:-2px}
body:is([data-screen=world],[data-screen=reward]) #side-deck-panel{grid-column:3;grid-row:1;display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:auto auto auto auto;align-content:start;gap:7px;min-width:0;min-height:0;max-height:none;overflow:auto;padding:9px 10px;background:var(--theme-surface);container-type:size}
#side-deck-panel[hidden]{display:none!important}
body:is([data-screen=world],[data-screen=reward]) #side-deck-panel>.journal-heading,body:is([data-screen=world],[data-screen=reward]) #companion-card,body:is([data-screen=world],[data-screen=reward]) #side-deck-panel>.controls{display:none}
body:is([data-screen=world],[data-screen=reward]) #equipped-deck{display:grid;grid-template-rows:auto auto;gap:5px;min-height:0;width:min(100%,max(120px,calc((100cqh - 150px)*4/9)));justify-self:center}
body:is([data-screen=world],[data-screen=reward]) .deck-heading{display:flex;justify-content:space-between;align-items:center;font-size:10px}
body:is([data-screen=world],[data-screen=reward]) .deck-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(3,auto);align-content:start;gap:3px;min-height:0}
body:is([data-screen=world],[data-screen=reward]) .deck-slot{display:block;aspect-ratio:2/3;min-width:0;min-height:0;overflow:hidden;border:0;border-radius:4px;background:none;padding:0}
body:is([data-screen=world],[data-screen=reward]) .deck-slot.empty{border:1px dashed var(--theme-line)}
body:is([data-screen=world],[data-screen=reward]) .deck-card-action{display:block;width:100%;height:100%;padding:0;margin:0;border:0;border-radius:4px;background:none;cursor:pointer}
body:is([data-screen=world],[data-screen=reward]) .deck-card-action:focus-visible{outline:3px solid #c99f49;outline-offset:-3px}
body:is([data-screen=world],[data-screen=reward]) .deck-slot.active{outline:2px solid #c99f49;outline-offset:-2px}
body:is([data-screen=world],[data-screen=reward]) .deck-slot .current-playing-card.full-illustrated-card{display:block;width:100%;height:100%;max-width:none;max-height:none;aspect-ratio:2/3;overflow:hidden;border-radius:4px}
body:is([data-screen=world],[data-screen=reward]) .deck-slot .full-illustrated-card-image,body:is([data-screen=world],[data-screen=reward]) .deck-reward-art{display:block;width:100%;height:100%;max-width:100%;object-fit:contain}
body:is([data-screen=world],[data-screen=reward]) #side-deck-mode{min-width:0}
body:is([data-screen=world],[data-screen=reward]) #encounter-mode{display:grid;grid-template-columns:minmax(0,1fr);justify-items:center;gap:4px;padding:0;border:0;border-radius:0;background:none}
body:is([data-screen=world],[data-screen=reward]) .encounter-mode-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;width:100%;padding:0;background:none}
body:is([data-screen=world],[data-screen=reward]) .encounter-mode-tabs button{position:relative;display:flex;flex-direction:column;justify-content:center;gap:4px;min-height:48px;border:3px double var(--theme-line);border-radius:4px;background:var(--theme-paper);font-size:9px;text-transform:uppercase}
body:is([data-screen=world],[data-screen=reward]) .encounter-mode-tabs button[aria-selected=true]{border-color:#c99f49;background:var(--theme-ink);color:var(--theme-paper);box-shadow:none}
body:is([data-screen=world],[data-screen=reward]) .encounter-mode-tabs button[aria-selected=true]::after{content:'✓';position:absolute;right:4px;top:3px;color:#d9b65f;font-size:10px}
body:is([data-screen=world],[data-screen=reward]) .encounter-mode-icon{width:24px;height:24px}
body:is([data-screen=world],[data-screen=reward]) .encounter-mode-boot{fill:currentColor;stroke:none}
body:is([data-screen=world],[data-screen=reward]) .boot-laces{fill:none;stroke:var(--theme-paper);stroke-width:1.3}
body:is([data-screen=world],[data-screen=reward]) .encounter-mode-tabs button[aria-selected=true] .boot-laces{stroke:var(--theme-ink)}
body:is([data-screen=world],[data-screen=reward]) .encounter-mode-shortcut{font-size:8px}
body:is([data-screen=world],[data-screen=reward]) #side-deck-panel>.quest{display:block;min-width:0;padding:0;border:0}
body:is([data-screen=world],[data-screen=reward]) .quest>.section-row,body:is([data-screen=world],[data-screen=reward]) #collection-mini,body:is([data-screen=world],[data-screen=reward]) #quest-note,body:is([data-screen=world],[data-screen=reward]) #region-connections{display:none}
body:is([data-screen=world],[data-screen=reward]) .footer{display:none}
@media(max-width:760px){
 body:is([data-screen=world],[data-screen=reward]) .exploration-header{gap:7px;min-height:65px}
 body:is([data-screen=world],[data-screen=reward]) .brand-logo{width:105px}
 body:is([data-screen=world],[data-screen=reward]) .run-hud{display:grid;gap:2px;padding:4px 6px}
 body:is([data-screen=world],[data-screen=reward]) .run-clock{gap:1px 5px}
 body:is([data-screen=world],[data-screen=reward]) #run-time{font-size:17px}
 body:is([data-screen=world],[data-screen=reward]) .run-label,body:is([data-screen=world],[data-screen=reward]) #run-status{font-size:7px}
 body:is([data-screen=world],[data-screen=reward]) .ring-progress-art{width:23px;height:25px}
 body:is([data-screen=world],[data-screen=reward]) .run-objective.ring-objective{max-width:none;gap:4px;margin:0;justify-content:flex-end}
 body:is([data-screen=world],[data-screen=reward]) .ring-progress-copy strong{font-size:7px}
 body:is([data-screen=world],[data-screen=reward]) .console{grid-template-columns:minmax(0,1fr) 20px clamp(150px,32vw,224px)}
 body:is([data-screen=world],[data-screen=reward]) #side-deck-panel{padding:7px;gap:5px}
}
@media(max-width:380px){
 body:is([data-screen=world],[data-screen=reward]) .brand-logo{width:82px}
 body:is([data-screen=world],[data-screen=reward]) #direction-pad{grid-template-columns:repeat(3,23px);grid-template-rows:repeat(2,25px);gap:2px}
 body:is([data-screen=world],[data-screen=reward]) #direction-pad .direction kbd{width:23px;height:25px;font-size:16px}
 body:is([data-screen=world],[data-screen=reward]) .ring-progress-copy strong{font-size:6px}
}

.healing-symbol{display:inline-grid;place-items:center;min-width:1.4em;font-family:system-ui,sans-serif;font-size:1.35em;line-height:1;color:#4e355c;vertical-align:middle}
.reward-inspection{width:min(850px,94vw);padding:22px!important}
.reward-detail{display:grid;grid-template-columns:minmax(160px,.85fr) minmax(230px,1fr);gap:25px;align-items:center;max-width:800px;color:var(--theme-ink)}
.reward-detail-art img{display:block;width:100%;max-height:68dvh;object-fit:contain}
.reward-detail-copy h2{font:700 clamp(24px,3vw,36px)/1.08 Georgia,serif;margin:8px 0 18px}
.reward-effect{font:500 18px/1.5 system-ui,sans-serif;margin:0 0 16px}
.reward-equipped-state,.reward-detail-notice{font:14px/1.45 system-ui,sans-serif}
.reward-detail-notice{min-height:2.8em;margin:8px 0}
.reward-detail-actions{display:flex;gap:8px;margin:12px 0 18px}
.reward-detail button,.reward-targets button{font:600 14px/1.2 system-ui,sans-serif;padding:10px 14px;border:1px solid var(--theme-line);border-radius:5px;background:var(--theme-surface);color:var(--theme-ink)}
.reward-detail button:focus-visible{outline:3px solid #c99f49;outline-offset:3px}
.reward-detail button:disabled{opacity:.45;cursor:default}
.reward-detail-copy form{justify-content:flex-start;margin-top:18px}
.reward-targets{display:grid;grid-template-columns:1fr 1fr;gap:6px;border:0;padding:0;margin:10px 0}
.reward-targets legend{font:600 14px/1.5 system-ui,sans-serif;margin:0 0 8px}
.reward-victory{max-width:800px!important;text-align:left}
.reward-victory h2{font:700 clamp(25px,3vw,38px)/1.1 Georgia,serif;margin:8px 0 22px}
.reward-victory-content{display:grid;grid-template-columns:minmax(160px,.8fr) 1fr;gap:26px;align-items:center;margin-bottom:20px}
.reward-victory-content img{width:100%;max-height:50dvh;object-fit:contain}
.reward-access{font:700 24px/1.25 Georgia,serif;margin:0 0 18px}
.reward-ring-complete{font-weight:700}
@media(max-width:560px){.reward-inspection{padding:16px!important}.reward-detail,.reward-victory-content{grid-template-columns:1fr;gap:14px}.reward-detail-art img,.reward-victory-content img{height:190px;width:auto;max-width:100%;margin:auto}.reward-effect{font-size:17px}.reward-detail-copy h2{margin-bottom:12px}.reward-victory h2{margin-bottom:14px}.reward-detail-notice{min-height:0}}

/* Victory acknowledges the reward without reflowing the approved exploration shell. */
.reward-victory{position:fixed;z-index:100;left:50%;top:50%;transform:translate(-50%,-50%);width:min(820px,92vw);max-height:90dvh!important;max-width:820px!important;margin:0;box-shadow:0 0 0 100vmax #251a33b8,0 12px 35px #251a3355;overflow:auto}
.reward-victory .reward-access{font:700 24px/1.25 Georgia,serif;margin:0 0 18px}
.reward-victory .reward-effect{font:500 18px/1.5 system-ui,sans-serif;margin:0 0 16px}
.reward-victory-content>div>p:not(.reward-access):not(.reward-effect){font:14px/1.5 system-ui,sans-serif}
.reward-victory .action{font:600 16px/1.2 system-ui,sans-serif;padding:11px 18px}
