/* Quiet app chrome; the existing camera, paintings and battle stage stay intact. */
body{background:var(--theme-bg);color:var(--theme-ink)}
.shell{max-width:none;padding:10px 14px;gap:8px}
.masthead{min-height:40px;margin:0;gap:12px}
.brand{gap:10px}.brand-logo{width:160px;height:auto;filter:none}
.masthead h1.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.masthead h1{font-size:22px;color:var(--theme-surface);text-shadow:none;letter-spacing:.5px;margin:0;font-family:Georgia,serif;font-weight:500;letter-spacing:-.6px}
.edition{display:none}.quiet{color:var(--theme-surface);font-size:12px}
.masthead-end{gap:16px}.save-status{font-size:9px;color:var(--theme-surface)}
.console,.play-column,.journal,.run-hud{border:0;box-shadow:none}
.console{gap:0;padding:0;border-radius:8px;background:var(--theme-paper);grid-template-columns:minmax(0,1fr) 220px}
.journal{padding:12px 14px;background:var(--theme-surface);background-image:none;color:var(--theme-ink);border-radius:0;overflow-y:auto}
.journal-heading{padding:0 0 7px;border:0;font-size:10px;letter-spacing:1px}.journal-heading>span:last-child{display:none}
.friend-row{gap:10px;margin-bottom:8px}.companion-card{padding:8px 0 12px;border-color:var(--theme-line)}
.friend-row .portrait{width:58px;height:58px;border:0;background:none;padding:0}
.friend-label{font-size:8px;letter-spacing:.5px}.friend-name{font-size:22px}.species-label{font-size:10px}
.controls,.quest{padding-top:12px;border-color:var(--theme-line)}.section-row{gap:8px}.section-row h2{font-size:12px}
.journal-foot{display:none}.footer{padding:0;margin:0;color:var(--theme-surface)}.footer>span{display:none}
body:is([data-screen=world],[data-screen=reward]) .run-hud{min-height:48px;padding:6px 12px;background:var(--theme-paper);border-radius:7px}
body:is([data-screen=world],[data-screen=reward]) .run-clock{display:grid;grid-template-columns:auto auto;gap:2px 12px;align-items:center}
body:is([data-screen=world],[data-screen=reward]) .run-label{grid-column:1;grid-row:1;font-size:8px}
body:is([data-screen=world],[data-screen=reward]) #run-status{grid-column:1;grid-row:2;font-size:8px}
body:is([data-screen=world],[data-screen=reward]) #run-time{grid-column:2;grid-row:1/3;font-size:27px}
body:is([data-screen=world],[data-screen=reward]) .run-objective strong{font-size:11px}
body:is([data-screen=world],[data-screen=reward]) .run-objective small,body:is([data-screen=world],[data-screen=reward]) .save-status,body:is([data-screen=world],[data-screen=reward]) #lesson,body:is([data-screen=world],[data-screen=reward]) #map-count{display:none}
body:is([data-screen=world],[data-screen=reward]) #run-progress{font-size:10px}
body:is([data-screen=world],[data-screen=reward]) .screen-top{border:0;background:var(--theme-paper);padding:5px 14px;min-height:0;font-size:10px}
body:is([data-screen=world],[data-screen=reward]) .viewport{background:var(--theme-paper)}
body:is([data-screen=world],[data-screen=reward]) .dialog{padding:9px 14px;background:var(--theme-paper);border:0}
body:is([data-screen=world],[data-screen=reward]) .dialog-label{font-size:8px;letter-spacing:.6px;margin-bottom:5px}
body:is([data-screen=world],[data-screen=reward]) .world-objective{font-size:13px;line-height:1.35;color:var(--theme-ink)}
body:is([data-screen=world],[data-screen=reward]) .city-interact{font-size:12px;padding:5px 10px;margin-top:6px;border:1px solid var(--theme-line);background:var(--theme-paper);border-radius:5px}
body:is([data-screen=world],[data-screen=reward]) .city-interact kbd{font-size:10px}
body:is([data-screen=world],[data-screen=reward]) .direction-pad{grid-template-columns:repeat(3,32px);grid-template-rows:repeat(2,44px);gap:4px;margin:10px auto}
body:is([data-screen=world],[data-screen=reward]) .direction-pad>div{min-height:0}body:is([data-screen=world],[data-screen=reward]) .direction kbd{width:30px;height:29px;font-size:20px}.direction-pad kbd{box-shadow:none}
body[data-screen=battle]{background:var(--theme-bg)}
@media(max-width:800px){.shell{padding:8px}.console{grid-template-columns:minmax(0,1fr) 194px}.journal{padding:10px}.masthead h1{font-size:19px;font-family:Georgia,serif;font-weight:500;letter-spacing:-.6px}.brand-logo{width:136px;height:auto}body:is([data-screen=world],[data-screen=reward]) .play-column{grid-template-rows:28px minmax(0,1fr) 112px}body:is([data-screen=world],[data-screen=reward]) .dialog{height:112px}.masthead-end{gap:8px}}
@media(max-width:600px){.brand-logo{width:136px;height:auto}.console{grid-template-columns:minmax(0,1fr) 166px}.journal{display:block;padding:8px}.friend-row .portrait{width:40px;height:40px}.masthead h1{font-size:17px;font-family:Georgia,serif;font-weight:500;letter-spacing:-.6px}.quiet{font-size:11px}body:is([data-screen=world],[data-screen=reward]) .world-objective{font-size:12px}}

/* Responsive exploration: bound wide app chrome and fit the entire map, never stretch it. */
body:is([data-screen=world],[data-screen=start]) .shell{max-width:2200px;margin-inline:auto}
body:is([data-screen=world],[data-screen=reward]) .viewport{display:flex;align-items:center;justify-content:center;min-width:0;min-height:0}
body:is([data-screen=world],[data-screen=reward]) #world{flex:none;max-width:100%;max-height:100%}
@media(max-width:800px){
 body:is([data-screen=world],[data-screen=start]) .console{grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr) auto}
 body:is([data-screen=world],[data-screen=reward]) .journal{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);max-height:116px;padding:6px 12px}
 body:is([data-screen=world],[data-screen=reward]) .journal .quest{display:none}
}

@media(max-width:800px){
 body:is([data-screen=world],[data-screen=reward]) .journal .companion-card{grid-column:1;grid-row:1;min-width:0;padding:0}
 body:is([data-screen=world],[data-screen=reward]) .journal .controls{grid-column:2;grid-row:1;min-width:0;padding:0}
 body:is([data-screen=world],[data-screen=reward]) .journal .journal-heading{display:none}
 body:is([data-screen=world],[data-screen=reward]) .direction-pad{grid-template-columns:repeat(3,24px);grid-template-rows:repeat(2,34px);gap:3px;margin:4px 0 0}
 body:is([data-screen=world],[data-screen=reward]) .direction kbd{width:24px;height:24px;font-size:16px}
 body:is([data-screen=world],[data-screen=reward]) #control-note{display:none}
 body:is([data-screen=world],[data-screen=reward]) .play-column{grid-template-rows:28px minmax(0,1fr) 136px}
 body:is([data-screen=world],[data-screen=reward]) .dialog{height:136px;overflow:auto}
}

/* Short windows scroll the game instead of squeezing the map between its controls. */
@media(max-height:700px){
 body:is([data-screen=world],[data-screen=reward]) .shell{overflow-y:auto}
 body:is([data-screen=world],[data-screen=reward]) .console{flex:1 0 auto}
 body:is([data-screen=world],[data-screen=reward]) .viewport{min-height:min(380px,calc((100vw - 16px)*1024/1672))}
}
@media(max-width:360px){
 body:is([data-screen=world],[data-screen=reward]) .run-hud{flex-wrap:wrap}
 body:is([data-screen=world],[data-screen=reward]) .run-objective.ring-objective{max-width:100%;margin-inline-start:auto}
}

/* The map takes the former information strip; nearby actions stay in its top bar. */
body:is([data-screen=world],[data-screen=reward]) .play-column{grid-template-rows:auto minmax(0,1fr)}
body:is([data-screen=world],[data-screen=reward]) .dialog{display:none}
body:is([data-screen=world],[data-screen=reward]) .screen-top{display:flex;flex-wrap:wrap;align-items:center;gap:5px 12px;min-height:28px}
#world-interaction{margin-left:auto;min-width:0}
body:not([data-screen=world]) #world-interaction{display:none}
body:is([data-screen=world],[data-screen=reward]) #world-interaction .city-interact{margin:0;max-width:100%;font-size:11px;padding:3px 8px}
@media(min-width:1000px){
 body:is([data-screen=world],[data-screen=reward]) .shell{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto minmax(0,1fr) auto}
 body:is([data-screen=world],[data-screen=reward]) .masthead{grid-column:1;grid-row:1;min-width:0}
 body:is([data-screen=world],[data-screen=reward]) .run-hud{grid-column:2;grid-row:1;min-width:370px}
 body:is([data-screen=world],[data-screen=reward]) .console{grid-column:1/-1;grid-row:2}
 body:is([data-screen=world],[data-screen=reward]) .footer{grid-column:1/-1;grid-row:3}
}

/* Desktop combat uses the available frame, with the typing dock always in view. */
@media(min-width:900px){
 body[data-screen=battle]{overflow:hidden}
 body[data-screen=battle] .shell{height:100dvh;min-height:0;overflow:hidden;display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto minmax(0,1fr) auto;gap:6px;padding:8px 12px}
 body[data-screen=battle] .masthead{grid-column:1;grid-row:1;min-width:0}
 body[data-screen=battle] .run-hud{grid-column:2;grid-row:1;min-width:360px}
 body[data-screen=battle] .console{grid-column:1/-1;grid-row:2;display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr);min-height:0;overflow:hidden}
 body[data-screen=battle] .play-column{display:grid;grid-template-rows:24px minmax(0,1fr) auto;min-height:0;overflow:hidden}
 body[data-screen=battle] .viewport{height:auto!important;min-height:0;max-height:none}
 body[data-screen=battle] .footer{grid-column:1/-1;grid-row:3}
 body[data-screen=battle] .dialog{grid-template-columns:clamp(90px,10vw,140px) minmax(0,1fr) clamp(90px,10vw,140px);gap:12px;padding:10px 14px;align-items:center}
 body[data-screen=battle] .active-pawn-card,body[data-screen=battle] .opponent-pawn-card{gap:4px}
 body[data-screen=battle] .active-pawn-card>span,body[data-screen=battle] .opponent-pawn-card>span{font-size:11px;line-height:1.2}
 body[data-screen=battle] .active-pawn-card small,body[data-screen=battle] .opponent-pawn-card small{font-size:10px;line-height:1.2}
 body[data-screen=battle] .typing-bubble{padding:8px 10px}
 body[data-screen=battle] .bubble-heading{margin-bottom:4px;gap:8px}
 body[data-screen=battle] .bubble-heading h2{font-size:12px}
 body[data-screen=battle] .send-button{min-height:32px;padding:5px 12px;font-size:13px}
 body[data-screen=battle] .attack-context,body[data-screen=battle] .lesson-cue{font-size:11px;line-height:1.3;margin:3px 0}
 body[data-screen=battle] .typing-prompt,body[data-screen=battle] .typing-prompt.story{font-size:18px;line-height:1.35;max-height:100px;min-height:24px;margin-bottom:6px}
 body[data-screen=battle] .input-display{height:38px;padding:6px 10px;font-size:16px}
 body[data-screen=battle] .notice{font-size:11px;line-height:1.3;margin-top:4px}
 body[data-screen=battle] .battle-controls{margin-top:6px;padding-top:6px}
 body[data-screen=battle] .battle-actions button{font-size:12px;min-height:32px;padding:5px 10px}
 body[data-screen=battle] #capture-status{font-size:10px;line-height:1.3;margin-top:4px}
 body[data-screen=battle] .capture-progress,body[data-screen=battle] .capture-full-story{font-size:12px;line-height:1.3;margin-bottom:4px}
}

/* The existing Witch victory presents the recovered bicycle. */
.recovered-bicycle{display:block;width:min(200px,36vw);height:120px;object-fit:contain;margin:0 auto}
/* Approved six-slot side deck: live game cards, existing state and existing controls. */
@media(min-width:1000px){
 body:is([data-screen=world],[data-screen=reward]) .shell{height:100dvh;min-height:0;overflow:hidden}
 body:is([data-screen=world],[data-screen=reward]) .console{grid-template-columns:minmax(0,1fr) minmax(390px,min(30vw,460px));min-height:0;overflow:hidden}
 body:is([data-screen=world],[data-screen=reward]) .journal{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(0,1fr) auto auto;align-content:stretch;gap:6px;min-width:0;min-height:0;overflow:hidden;padding:9px 10px}
 body:is([data-screen=world],[data-screen=reward]) .journal-heading{display:none}
 body:is([data-screen=world],[data-screen=reward]) .companion-card{min-width:0;padding:0 0 6px;border-bottom:1px solid var(--theme-line)}
 body:is([data-screen=world],[data-screen=reward]) .friend-row{gap:8px;margin:0 0 3px;align-items:center}
 body:is([data-screen=world],[data-screen=reward]) .friend-row .portrait{width:38px;height:38px}
 body:is([data-screen=world],[data-screen=reward]) .friend-label{font-size:8px;line-height:1.1}
 body:is([data-screen=world],[data-screen=reward]) .friend-name{font-size:15px;line-height:1.1}
 body:is([data-screen=world],[data-screen=reward]) .species-label{display:none}
 body:is([data-screen=world],[data-screen=reward]) .hp-label{display:flex;justify-content:space-between;font-size:8px;line-height:1.2;margin:2px 0}
 body:is([data-screen=world],[data-screen=reward]) .bar{height:5px;margin:0}
 body:is([data-screen=world],[data-screen=reward]) .equipped-deck{display:grid;grid-template-rows:auto minmax(0,1fr);min-height:0;gap:4px}
 body:is([data-screen=world],[data-screen=reward]) .deck-heading{display:flex;align-items:center;justify-content:space-between;min-height:16px;color:var(--theme-muted);font-size:9px;letter-spacing:.08em;text-transform:uppercase}
 body:is([data-screen=world],[data-screen=reward]) .deck-heading strong{color:var(--theme-ink);font-size:9px}
 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,minmax(0,1fr));gap:5px;min-height:0}
 body:is([data-screen=world],[data-screen=reward]) .deck-slot{position:relative;display:flex;align-items:center;justify-content:center;min-width:0;min-height:0;overflow:hidden;padding:3px;border:1px solid var(--theme-line);border-radius:7px;background:var(--theme-paper)}
 body:is([data-screen=world],[data-screen=reward]) .deck-slot.active{outline:2px solid #c99f49;outline-offset:-2px;box-shadow:inset 0 0 0 2px #fff5d8}
 body:is([data-screen=world],[data-screen=reward]) .deck-slot.empty{border-style:dashed;background:transparent}
 body:is([data-screen=world],[data-screen=reward]) .deck-slot>.current-playing-card.full-illustrated-card{width:auto;height:100%;max-width:100%;aspect-ratio:2/3;overflow:hidden;border-radius:3px}
 body:is([data-screen=world],[data-screen=reward]) .deck-slot>.current-playing-card.full-illustrated-card img.full-illustrated-card-image{width:100%;height:100%;object-fit:contain}
 body:is([data-screen=world],[data-screen=reward]) .deck-slot .card-stat-overlay{pointer-events:none}
 body:is([data-screen=world],[data-screen=reward]) .deck-reward-art{display:block;width:auto;height:100%;max-width:100%;object-fit:contain;border-radius:3px}
 body:is([data-screen=world],[data-screen=reward]) .journal>.controls{min-width:0;padding:5px 0 4px;border-bottom:1px solid var(--theme-line)}
 body:is([data-screen=world],[data-screen=reward]) .controls .section-row{margin:0;gap:6px}
 body:is([data-screen=world],[data-screen=reward]) .controls .section-row h2{font-size:9px;letter-spacing:.04em}
 body:is([data-screen=world],[data-screen=reward]) .controls .section-row>span{font-size:8px}
 body:is([data-screen=world],[data-screen=reward]) .direction-pad{grid-template-columns:repeat(3,28px);grid-template-rows:repeat(2,37px);gap:3px;margin:5px auto 5px}
 body:is([data-screen=world],[data-screen=reward]) .direction-pad>div{min-height:0}
 body:is([data-screen=world],[data-screen=reward]) .direction kbd{width:27px;height:25px;font-size:16px}
 body:is([data-screen=world],[data-screen=reward]) .direction div{font-size:7px;line-height:1}
 body:is([data-screen=world],[data-screen=reward]) #control-note{display:block;margin:4px 0 0;font-size:10px;line-height:1.25;color:var(--theme-muted)}
 body:is([data-screen=world],[data-screen=reward]) .learned-keys{display:none}
 body:is([data-screen=world],[data-screen=reward]) .journal>.quest{min-width:0;padding:4px 0 0;border:0}
 body:is([data-screen=world],[data-screen=reward]) .quest .section-row{margin:0 0 3px}
 body:is([data-screen=world],[data-screen=reward]) .quest .section-row h2{font-size:9px}
 body:is([data-screen=world],[data-screen=reward]) #collection-mini,body:is([data-screen=world],[data-screen=reward]) #region-connections{display:none}
 body:is([data-screen=world],[data-screen=reward]) #quest-note{display:block;max-height:2.5em;overflow:hidden;margin:2px 0 4px;font-size:8px;line-height:1.25;color:var(--theme-muted)}
 body:is([data-screen=world],[data-screen=reward]) #collection-button{display:block;width:100%;min-height:24px;padding:3px 7px;font-size:9px}
 body:is([data-screen=world],[data-screen=reward]) .run-hud{min-width:410px;min-height:52px;padding:4px 9px;gap:9px}
 body:is([data-screen=world],[data-screen=reward]) .run-clock{grid-template-columns:auto auto;gap:1px 8px}
 body:is([data-screen=world],[data-screen=reward]) #run-time{font-size:23px;white-space:nowrap}
 body:is([data-screen=world],[data-screen=reward]) #run-status{font-size:8px}
 body:is([data-screen=world],[data-screen=reward]) .run-objective.ring-objective{max-width:none;margin-inline-start:auto;gap:8px}
 body:is([data-screen=world],[data-screen=reward]) .ring-progress-art{width:44px;height:50px}
 body:is([data-screen=world],[data-screen=reward]) .ring-progress-copy{gap:2px}
 body:is([data-screen=world],[data-screen=reward]) .ring-progress-copy strong{font-size:9px;letter-spacing:.05em}
 body:is([data-screen=world],[data-screen=reward]) .ring-progress-copy small{font-size:8px}
 body:is([data-screen=world],[data-screen=reward]) .screen-top{min-width:0;gap:5px 8px;padding:5px 10px}
 body:is([data-screen=world],[data-screen=reward]) #world-interaction .city-interact{font-size:10px}
 body:is([data-screen=world],[data-screen=reward]) .map-chip{max-width:min(54%,470px);font-size:9px}
 body:is([data-screen=world],[data-screen=reward]) .footer{min-height:15px;margin:0;padding:0}
}
@media(min-width:801px) and (max-width:999px){
 body:is([data-screen=world],[data-screen=reward]) .console{grid-template-columns:minmax(0,1fr) minmax(330px,38vw);}
 body:is([data-screen=world],[data-screen=reward]) .journal{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(0,1fr) auto auto;gap:6px;min-width:0;max-height:none;overflow:hidden;padding:9px}
 body:is([data-screen=world],[data-screen=reward]) .journal-heading{display:none}
 body:is([data-screen=world],[data-screen=reward]) .equipped-deck{display:grid;grid-template-rows:auto minmax(0,1fr);min-height:0;gap:4px}
 body:is([data-screen=world],[data-screen=reward]) .deck-heading{display:flex;justify-content:space-between;font-size:9px}
 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,minmax(0,1fr));gap:4px;min-height:0}
 body:is([data-screen=world],[data-screen=reward]) .deck-slot{display:flex;align-items:center;justify-content:center;min-height:0;overflow:hidden;border:1px solid var(--theme-line);border-radius:6px;background:var(--theme-paper);padding: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{width:auto;height:100%;aspect-ratio:2/3}
 body:is([data-screen=world],[data-screen=reward]) .deck-slot>.current-playing-card.full-illustrated-card img.full-illustrated-card-image,body:is([data-screen=world],[data-screen=reward]) .deck-reward-art{width:auto;height:100%;max-width:100%;object-fit:contain}
 body:is([data-screen=world],[data-screen=reward]) .journal>.quest{padding-top:4px}
 body:is([data-screen=world],[data-screen=reward]) #collection-mini,body:is([data-screen=world],[data-screen=reward]) #region-connections{display:none}
 body:is([data-screen=world],[data-screen=reward]) #quest-note{max-height:2.5em;overflow:hidden;font-size:8px}
 body:is([data-screen=world],[data-screen=reward]) .journal>.controls{padding:5px 0}
 body:is([data-screen=world],[data-screen=reward]) .direction-pad{grid-template-columns:repeat(3,26px);grid-template-rows:repeat(2,25px);gap:3px;margin:4px auto}
 body:is([data-screen=world],[data-screen=reward]) .direction kbd{width:25px;height:23px;font-size:15px}
 body:is([data-screen=world],[data-screen=reward]) #control-note{display:block;font-size:10px;line-height:1.25}
}
@media(max-width:800px){
 body:is([data-screen=world],[data-screen=reward]) .journal{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(220px,1fr) auto auto;gap:6px;max-height:45dvh;padding:8px 11px;overflow-y:auto}
 body:is([data-screen=world],[data-screen=reward]) .journal-heading{display:none}
 body:is([data-screen=world],[data-screen=reward]) .equipped-deck{display:grid;grid-template-rows:auto 1fr;gap:4px;min-height:220px}
 body:is([data-screen=world],[data-screen=reward]) .deck-heading{display:flex;justify-content:space-between;font-size:9px}
 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,minmax(50px,1fr));gap:4px;min-height:0}
 body:is([data-screen=world],[data-screen=reward]) .deck-slot{display:flex;align-items:center;justify-content:center;min-height:0;overflow:hidden;border:1px solid var(--theme-line);border-radius:6px;background:var(--theme-paper);padding:2px}
 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{width:auto;height:100%;aspect-ratio:2/3}
 body:is([data-screen=world],[data-screen=reward]) .deck-slot>.current-playing-card.full-illustrated-card img.full-illustrated-card-image,body:is([data-screen=world],[data-screen=reward]) .deck-reward-art{width:auto;height:100%;max-width:100%;object-fit:contain}
 body:is([data-screen=world],[data-screen=reward]) .journal>.quest{display:block;padding:4px 0 0}
 body:is([data-screen=world],[data-screen=reward]) #collection-mini,body:is([data-screen=world],[data-screen=reward]) #region-connections{display:none}
 body:is([data-screen=world],[data-screen=reward]) #quest-note{display:block;max-height:2.5em;overflow:hidden;font-size:8px}
 body:is([data-screen=world],[data-screen=reward]) #control-note{display:block;font-size:10px;line-height:1.25}
 body:is([data-screen=world],[data-screen=reward]) .journal>.controls{display:block;padding:4px 0}
 body:is([data-screen=world],[data-screen=reward]) .direction-pad{grid-template-columns:repeat(3,25px);grid-template-rows:repeat(2,24px);gap:3px;margin:4px auto}
 body:is([data-screen=world],[data-screen=reward]) .direction kbd{width:24px;height:22px;font-size:14px}
}
/* Keep the new live deck rail exclusive to exploration; combat and menus stay as-is. */
.equipped-deck{display:none}

/* Compact exploration mode tabs. The game-mode control is hidden outside the world screen. */
#encounter-mode{display:flex;align-items:center;gap:6px;min-height:28px;padding:3px 5px;border:1px solid var(--theme-line);border-radius:6px;background:var(--theme-paper);color:var(--theme-muted);font-size:8px;line-height:1;white-space:nowrap}
.encounter-mode-label{font-size:8px;letter-spacing:.06em}
.encounter-mode-tabs{display:flex;gap:2px;padding:2px;border-radius:5px;background:color-mix(in srgb,var(--theme-line) 45%,transparent)}
.encounter-mode-tabs button{display:flex;align-items:center;gap:5px;border:1px solid transparent;border-radius:4px;padding:4px 8px;background:transparent;color:var(--theme-ink);font:600 10px/1 system-ui,sans-serif;cursor:pointer}
.encounter-mode-tabs button[aria-selected=true]{background:var(--theme-ink);color:var(--theme-paper);border-color:#c99f49;box-shadow:0 1px 2px #0002}
.encounter-mode-icon{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex:none}
.encounter-mode-paw{fill:currentColor;stroke:none}
.encounter-mode-tabs button:focus-visible{outline:2px solid #c99f49;outline-offset:2px}
.encounter-mode-shortcut{padding:2px 4px;border:1px solid var(--theme-line);border-radius:3px;font:8px/1 system-ui,sans-serif;color:var(--theme-muted)}
body:not([data-screen=world]) #encounter-mode{display:none}
@media(max-width:600px){#encounter-mode{gap:4px;padding:2px 4px}.encounter-mode-label{display:none}.encounter-mode-tabs button{padding:4px 7px}}
