@font-face{font-family:AtlasGaramond;src:url('/atlas-serif.woff2') format('woff2');font-style:normal;font-weight:500 700;font-display:swap}
@font-face{font-family:AtlasMono;src:url('/atlas-mono.woff2') format('woff2');font-style:normal;font-weight:500;font-display:swap}
.jm-screen{--atlas-serif:AtlasGaramond,Georgia,serif;--atlas-mono:AtlasMono,ui-monospace,monospace}
.jm-intro{min-height:0;overflow:auto;display:grid;justify-items:center;align-content:safe center;gap:clamp(5px,2vh,15px);padding:10px;text-align:center;background:radial-gradient(ellipse,#4c3f32,#242e25 75%);border:1px solid #967455}
.jm-intro h2{font:650 clamp(1.55rem,4vw,3rem)/1 var(--rd-serif);color:#f2e0ba;margin:0}
.jm-intro p{margin:0;color:#dfd3b8}
.jm-portrait{width:clamp(45px,11vh,95px);height:clamp(46px,12vh,100px);display:grid;place-items:center;background:#9b422f;border:1px solid #ba7452;border-radius:2px 2px 9px 2px;font:700 clamp(1.5rem,6vh,3rem) var(--rd-serif);color:#f4dfb4;overflow:hidden}
.jm-portrait svg{width:100%;height:100%}
.jm-battle-history small{display:block;color:#ad9872}

/* Journey artwork and spacing translated from the supplied Figma Make export. */
#root>main.jm-main{
 display:grid;grid-template-rows:minmax(0,1fr);
 padding:clamp(12px,5dvh,58px) clamp(12px,4vw,70px) clamp(10px,1.8dvh,18px);
 background:radial-gradient(circle at 75% 14%,#283429 0%,transparent 42%),#151b15;
}
.jm-screen{
 display:grid;grid-template-rows:auto minmax(0,1fr) auto;
 gap:clamp(6px,2.2dvh,20px);width:min(100%,960px);height:100%;min-height:0;margin:auto;
}
.jm-screen[data-map-phase=ready]{grid-template-rows:auto minmax(0,1fr)}
.jm-heading{display:flex;align-items:end;justify-content:space-between;gap:12px}
.jm-heading h1{font:600 clamp(1.95rem,4vw,3.25rem)/1 var(--atlas-serif,var(--rd-serif));margin:4px 0 7px;color:#e8dcc2;letter-spacing:-.012em}
.jm-heading .rd-eyebrow{margin:0;color:#db614a;font:600 clamp(.49rem,1.05vmin,.62rem) var(--atlas-mono,var(--rd-mono));letter-spacing:.13em}
.jm-subtitle{margin:0;color:#b8ac96;font:500 clamp(.66rem,1.3vmin,.76rem)/1.3 system-ui,sans-serif}
.jm-destination{color:#d8c9aa;text-align:right;display:grid;gap:2px;flex:none}
.jm-destination small{font:500 .49rem var(--atlas-mono,var(--rd-mono));letter-spacing:.13em;color:#b4a388}
.jm-destination b{font:650 clamp(.8rem,2vw,1.13rem) var(--atlas-serif,var(--rd-serif))}
.atlas-card{
 position:relative;isolation:isolate;min-height:0;min-width:0;
 display:grid;grid-template-rows:minmax(0,1fr) auto;overflow:hidden;
 background:linear-gradient(#dfc28b,#cda96f);
 border:1px solid #917950;color:#342a1e;
 box-shadow:0 22px 70px #0007,inset 0 0 0 8px #68472d16;
}
.atlas-card::before{
 position:absolute;inset:0;content:'';opacity:.18;pointer-events:none;
 background-image:linear-gradient(#6b4b2b 1px,transparent 1px),linear-gradient(90deg,#6b4b2b 1px,transparent 1px);
 background-size:72px 72px;
}
.atlas-title{position:absolute;z-index:2;left:28px;top:22px;display:flex;align-items:center;gap:12px;color:#65472d;font:650 8px var(--atlas-mono,var(--rd-mono));letter-spacing:.16em;pointer-events:none}
.atlas-title i{width:24px;height:27px;display:grid;place-items:center;color:#d9ba82;background:#68482e;font:normal 600 14px var(--atlas-serif,var(--rd-serif))}
.atlas-landscape{position:absolute;inset:0;overflow:hidden;color:#62472e;pointer-events:none}
.atlas-landscape>span{position:absolute}
.atlas-sun{right:13%;top:8%;width:92px;height:92px;border:2px solid #85552f;border-radius:50%;opacity:.15}
.atlas-mountain{color:#60452e;opacity:.15;font:600 clamp(120px,19vw,230px)/.7 var(--atlas-serif,var(--rd-serif));transform:scaleX(1.5)}
.atlas-mountain-a{left:4%;top:27%}
.atlas-mountain-b{right:4%;top:31%;transform:scaleX(1.25)}
.atlas-river{left:56%;top:5%;bottom:16%;width:90px;opacity:.17;border-left:8px double #694a2d;border-radius:48%;transform:rotate(12deg)}
.atlas-trees{color:#61472d;opacity:.35;font:600 clamp(16px,2vw,24px)/1.5 var(--atlas-serif,var(--rd-serif));letter-spacing:.25em}
.atlas-trees-a{left:6%;top:11%;transform:rotate(-7deg)}
.atlas-trees-b{right:5%;top:24%;transform:rotate(8deg)}
.atlas-compass{right:24px;top:18px;color:#61452d;opacity:.55;text-align:center;font:500 8px var(--atlas-mono,var(--rd-mono))}
.atlas-compass i{display:block;margin-top:2px;font:normal 25px/1 var(--atlas-serif,var(--rd-serif))}
.atlas-stage{position:relative;min-height:0;min-width:0;container-type:size}
.atlas-paths,.atlas-nodes{position:absolute;z-index:1;inset:0;width:100%;height:100%}
.atlas-paths{pointer-events:none}
.jm-trail{fill:none;stroke:#604229;stroke-width:clamp(2px,.54vmin,5px);stroke-linecap:round;stroke-dasharray:10 12;opacity:.78;vector-effect:non-scaling-stroke}
.jm-trail[data-trail-state=bypassed]{opacity:.21}
.jm-trail[data-trail-state=committed]{opacity:.62}
.jm-trail[data-trail-state=next]{stroke:#843326;opacity:.9}
.atlas-stamp{
 --seal-diameter:clamp(25px,9.8cqh,58px);
 position:absolute;transform:translate(-50%,-50%);
 display:grid;place-items:center;width:var(--seal-diameter);height:var(--seal-diameter);
 padding:0;background:none;border:0;color:#4c3524;
 font-family:var(--atlas-serif,var(--rd-serif));
}
button.atlas-stamp{touch-action:manipulation;cursor:pointer;z-index:2}
.atlas-seal{
 display:grid;place-items:center;width:100%;height:100%;
 border:2px solid #604329;border-radius:50%;background:#d9ba82;
 box-shadow:0 0 0 clamp(2px,.75cqh,5px) #d2b276,0 4px 8px #68462a33;
 font-size:clamp(14px,4.3cqh,25px);line-height:1;transition:background .15s,transform .15s;
}
.atlas-stamp small{
 position:absolute;top:calc(100% + 3px);left:50%;transform:translateX(-50%);pointer-events:none;
 border-radius:1px;background:#d6b67ee3;color:#493522;white-space:nowrap;padding:1px 4px;
 font:650 clamp(9px,2.35cqh,12px)/1.16 var(--atlas-serif,var(--rd-serif));
}
.atlas-stamp[data-node-state=trailhead] .atlas-seal,.atlas-stamp[data-node-state=completed] .atlas-seal{color:#f0e2c2;background:#344b3d}
.atlas-stamp[data-node-state=active] .atlas-seal,.atlas-stamp[aria-pressed=true] .atlas-seal{
 color:#fff0ce;border-color:#8f3024;background:#a43b2b;
 box-shadow:0 0 0 clamp(2px,.8cqh,5px) #d2b276,0 6px 16px #5a241e55;
}
.atlas-stamp[data-node-state=available][aria-pressed=false] .atlas-seal{border-color:#82412b;background:#e6c589}
.atlas-stamp[data-node-state=bypassed]{opacity:.49}
button.atlas-stamp:hover .atlas-seal{transform:translateY(-2px)}
button.atlas-stamp:focus-visible{outline:2px solid #532b1b;outline-offset:5px;border-radius:50%}
.atlas-samurai{--seal-diameter:clamp(28px,11.65cqh,70px)}
.atlas-samurai .atlas-seal{font-size:clamp(18px,5.35cqh,32px)}
.jm-caption{display:flex;justify-content:center;margin:0}
.jm-legend{display:flex;list-style:none;margin:0;padding:0;gap:20px;color:#b1a28a}
.jm-legend li{display:flex;align-items:center;gap:6px;font:600 .52rem var(--atlas-mono,var(--rd-mono));text-transform:uppercase;letter-spacing:.08em}
.jm-legend i{display:block;width:7px;height:7px;border-radius:50%;background:#8d3729}
.jm-legend .jm-key-etch{background:#b39159}
.jm-legend .jm-key-duplicate{background:#486251}
@media(max-width:680px){
 #root>main.jm-main{padding:clamp(8px,2dvh,16px) clamp(7px,3vw,14px) 8px}
 .jm-screen{gap:8px}
 .jm-heading h1{font-size:clamp(1.75rem,8.3vw,2.55rem)}
 .jm-heading{align-items:center}
 .jm-destination{display:none}
 .atlas-title{left:12px;top:10px;gap:4px;font-size:6.5px;letter-spacing:.1em}
 .atlas-title i{width:16px;height:18px;font-size:10px}
 .atlas-compass{right:14px;top:11px}
 .atlas-sun{width:70px;height:70px}
 .atlas-mountain-a{left:-4%}
 .atlas-mountain-b{right:-4%}
 .jm-trail{stroke-dasharray:6 8}
 .atlas-stamp{--seal-diameter:clamp(20px,8.5cqh,42px)}
 .atlas-samurai{--seal-diameter:clamp(24px,10.5cqh,49px)}
}
@media(max-height:460px) and (orientation:landscape){
 #root>main.jm-main{padding:4px 10px}
 .jm-screen{gap:4px}
 .jm-heading h1{font-size:1.45rem;margin:2px 0}
 .atlas-card{grid-template-columns:minmax(0,1fr) minmax(130px,26%);grid-template-rows:minmax(0,1fr)}
 .atlas-title{left:8px;top:6px}
 .atlas-seal{border-width:1.5px}
 .atlas-stamp{--seal-diameter:clamp(18px,9.6cqh,28px)}
 .atlas-samurai{--seal-diameter:clamp(21px,12cqh,33px)}
 .atlas-stamp small{font-size:8px;top:100%}
 .atlas-compass{right:28%;top:8px}
}
@media(prefers-reduced-motion:reduce){.atlas-seal{transition:none}}

button.atlas-stamp::after{content:'';position:absolute;inset:-5px;border-radius:50%}
@media(max-height:460px) and (orientation:landscape){
 .atlas-stamp{--seal-diameter:clamp(16px,8.7cqh,26px)}
 .atlas-samurai{--seal-diameter:clamp(19px,10.3cqh,31px)}
}

/* Prototype dimensions, not viewport-fitted dimensions. Only Journey scrolls. */
#root[data-rd-screen=journey]{
 --rd-header:74px;
 --rd-sidebar:88px;
 --rd-nav-height:0px;
 grid-template-columns:var(--rd-sidebar) minmax(0,1fr);
 grid-template-rows:var(--rd-header) minmax(0,1fr);
}
#root[data-rd-screen=journey]>.rd-nav{
 grid-column:1;grid-row:2;justify-content:center;align-self:stretch;
 padding:0 10px;width:100%;height:100%;
}
#root[data-rd-screen=journey]>.rd-nav :is(.rd-nav-kicker,.rd-run-stat,.rd-nav nav button>b){display:none}
#root[data-rd-screen=journey]>.rd-nav nav{display:grid;grid-template-columns:1fr;gap:8px;height:auto}
#root[data-rd-screen=journey]>.rd-nav nav button{
 display:grid;grid-template-columns:1fr;grid-template-rows:1fr;justify-items:center;align-content:stretch;
 padding:0;min-height:0;height:64px;border:0;border-radius:4px;
}
#root[data-rd-screen=journey]>.rd-nav nav button>b{display:none}
#root[data-rd-screen=journey]>.rd-nav nav button>span{font-size:20px}
#root[data-rd-screen=journey]>.rd-nav nav button[aria-current=page]{background:#2b352c;box-shadow:inset 2px 0 var(--rd-red)}
#root[data-rd-screen=journey]>main.jm-main{
 grid-row:2;grid-column:2;display:block;min-height:0;height:100%;width:100%;
 overflow-y:auto;overflow-x:hidden;overscroll-behavior-y:contain;
 padding:0;scrollbar-width:none;background:#151b15;
}
#root[data-rd-screen=journey]>main.jm-main::-webkit-scrollbar{display:none}
.jm-screen{
 display:block;width:100%;height:auto;min-height:calc(100vh - 74px);margin:0;
 padding:clamp(30px,5vh,58px) clamp(24px,5vw,76px) 34px;
 background:radial-gradient(circle at 75% 14%,#283429 0,transparent 34%),#151b15;
}
.jm-heading{max-width:960px;margin:0 auto 22px;align-items:end}
.jm-heading .rd-eyebrow{font:500 9px/12px var(--atlas-mono);letter-spacing:.17em;color:#cf4a35}
.jm-heading h1{font:600 clamp(36px,4vw,52px)/1 var(--atlas-serif);margin:4px 0 6px;letter-spacing:normal}
.jm-subtitle{color:#a29b8b;font:500 11px/16.5px system-ui,sans-serif}
.jm-destination{padding-bottom:4px}
.jm-destination small{font:500 7px var(--atlas-mono);color:#a49a82}
.jm-destination b{font:650 18px var(--atlas-serif)}
.atlas-card{display:block;width:100%;max-width:960px;height:620px;min-height:620px;margin:0 auto}
.atlas-stage{position:absolute;inset:0 0 110px;container-type:normal}
.atlas-stamp{--seal-diameter:58px}
.atlas-samurai{--seal-diameter:70px}
.atlas-seal{font-size:23px;box-shadow:0 0 0 5px #d2b276,0 4px 8px #68462a33}
.atlas-samurai .atlas-seal{font-size:32px}
.atlas-stamp small{top:calc(100% + 5px);font-size:12px;padding:2px 7px}
.atlas-stamp[data-node-state=active] .atlas-seal,.atlas-stamp[aria-pressed=true] .atlas-seal{box-shadow:0 0 0 5px #d2b276,0 8px 18px #5a241e55}
.jm-trail{stroke-width:5px;stroke-dasharray:10 12}
.atlas-title{left:28px;top:22px;font-size:8px;gap:12px}
.atlas-title i{width:24px;height:27px;font-size:14px}
.atlas-compass{right:24px;top:18px}
.atlas-river{bottom:16%}
.jm-caption{max-width:960px;margin:12px auto 0}
.jm-legend{gap:22px}
.jm-legend li{font:500 7px/9px var(--atlas-mono)}
.jm-intro{min-height:min(620px,calc(100dvh - 184px));max-width:960px;margin-inline:auto;padding:24px;scroll-margin:8px}
@media(max-width:900px){
 #root[data-rd-screen=journey]{--rd-sidebar:74px}
 #root[data-rd-screen=journey]>.rd-nav{padding-inline:8px}
}
@media(max-width:700px){
 .jm-screen{min-height:calc(100vh - 118px);padding:28px 12px}
 .jm-destination{display:none}
 .atlas-card{height:590px;min-height:590px}
 .atlas-stage{inset-block-end:132px}
 .atlas-title{left:14px;top:14px}
 .atlas-stamp{--seal-diameter:46px}
 .atlas-samurai{--seal-diameter:55px}
 .atlas-seal{font-size:19px}
 .atlas-samurai .atlas-seal{font-size:32px}
 .atlas-stamp small{font-size:10px}
 .atlas-mountain{font-size:150px}
 .atlas-sun{width:92px;height:92px}
}
@media(max-width:640px){
 #root[data-rd-screen=journey]{
 --rd-header:62px;--rd-sidebar:0px;--rd-nav-height:56px;
 grid-template-columns:minmax(0,1fr);grid-template-rows:var(--rd-header) minmax(0,1fr) var(--rd-nav-height);
 }
 #root[data-rd-screen=journey]>main.jm-main{grid-column:1}
 #root[data-rd-screen=journey]>.rd-nav{grid-column:1;grid-row:3;padding:0 8px}
 #root[data-rd-screen=journey]>.rd-nav nav{grid-template-columns:repeat(4,1fr);gap:0;height:100%}
 #root[data-rd-screen=journey]>.rd-nav nav button{height:100%;border-radius:0}
 #root[data-rd-screen=journey]>.rd-nav nav button[aria-current=page]{background:linear-gradient(90deg,#273128,transparent);box-shadow:none}
}

.atlas-seal{border-width:2px}
.atlas-stamp small{top:calc(100% + 1px);padding-block:0}
@media(max-width:700px){
 .atlas-stamp small{top:calc(100% + 3px)}
 .jm-trail{stroke-dasharray:10 12}
}

/* Published Make reference: edge-to-edge screen, parchment first, fixed footer.
   The panel keeps its reference size until the viewport requires a shorter one. */
:is(#root,#progress-page){
 --jm-dock-height:64px;
 --jm-dock-bottom:max(18px,env(safe-area-inset-bottom));
 --jm-top:clamp(10px,5dvh,36px);
 --jm-dock-room:calc(var(--jm-dock-height) + var(--jm-dock-bottom) + 10px);
}
#root{position:relative}
#root[data-rd-screen=journey]{display:block}
#root[data-rd-screen=journey]>main.jm-main{
 height:100%;overflow:hidden;
 background:radial-gradient(ellipse at 76% 3%,#222a21 0,transparent 47%),#151b15;
}
#root[data-rd-screen=journey] .jm-screen{
 --jm-card-height:min(620px,calc(100dvh - var(--jm-top) - var(--jm-dock-room) - 16px));
 min-height:0;height:100%;
 padding:var(--jm-top) clamp(12px,5vw,64px) 0;background:none;
}
.jm-screen:not([data-map-phase=ready]) .jm-heading{
 position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;
 clip-path:inset(50%);white-space:nowrap;border:0;
}
.jm-screen .atlas-card{height:var(--jm-card-height);min-height:0;background:linear-gradient(#ddc593,#c9a974)}
.jm-screen .atlas-stage{container-type:size}
.jm-screen .atlas-stamp{--seal-diameter:clamp(19px,11.42cqh,58px)}
.jm-screen .atlas-samurai{--seal-diameter:clamp(23px,13.78cqh,70px)}
.jm-screen .atlas-seal{font-size:clamp(12px,4.52cqh,23px)}
.jm-screen .atlas-samurai .atlas-seal{font-size:clamp(15px,6.3cqh,32px)}
.jm-screen .atlas-stamp small{font-size:clamp(8px,2.36cqh,12px)}
.jm-screen .jm-caption{margin-top:5px;min-height:10px;padding:0}
:is(#root,#progress-page) .jm-dock{
 position:fixed;z-index:50;inset:auto 24px var(--jm-dock-bottom);height:var(--jm-dock-height);
 display:grid;grid-template-columns:minmax(110px,180px) minmax(0,1fr) minmax(110px,180px);
 align-items:center;gap:10px;padding:7px 9px;
 border:1px solid #9c8e654d;border-radius:7px;background:#111811e8;
 box-shadow:0 8px 22px #080c087c;backdrop-filter:blur(12px);
 --atlas-mono:AtlasMono,ui-monospace,monospace;--atlas-serif:AtlasGaramond,Georgia,serif;
}
:is(#root,#progress-page) .jm-dock .rd-brand{margin-left:10px;min-width:0;gap:9px}
:is(#root,#progress-page) .jm-dock .rd-brand .rd-seal{width:32px;height:34px;font-size:20px}
:is(#root,#progress-page) .jm-dock .rd-brand b{font:700 12px/1 var(--atlas-serif);letter-spacing:.17em}
:is(#root,#progress-page) .jm-dock .rd-brand small,:is(#root,#progress-page) .jm-dock :is(.rd-nav-kicker,.rd-run-stat){display:none}
:is(#root,#progress-page) .jm-dock .rd-nav{background:none;border:0;padding:0;width:100%;height:auto;align-items:center}
:is(#root,#progress-page) .jm-dock nav[aria-label="Swift Strike screens"]{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));width:min(424px,100%);padding:3px;border:1px solid #8b80604d;border-radius:4px}
:is(#root,#progress-page) .jm-dock .rd-nav button{
 min-height:0;height:40px;display:flex;align-items:center;justify-content:center;gap:7px;
 padding:0 3px;border:0;border-radius:3px;box-shadow:none;text-align:center;
}
:is(#root,#progress-page) .jm-dock .rd-nav button span{font:600 16px/1 var(--atlas-serif)}
:is(#root,#progress-page) .jm-dock .rd-nav button b{font:500 7px/1 var(--atlas-mono);letter-spacing:.02em}
:is(#root,#progress-page) .jm-dock .rd-nav button[aria-current=page]{background:#2b352c;box-shadow:inset 0 -2px #a74933}
.jm-dock-tools{display:flex;justify-content:flex-end;align-items:center;gap:8px;min-width:max-content}
.jm-cycle{color:#c4b9a4;font:500 7px/1 var(--atlas-mono);white-space:nowrap;letter-spacing:.13em}
:is(#root,#progress-page) .jm-dock .header-trigger{font-size:.54rem;min-width:64px;padding:0 8px;min-height:36px;
 display:inline-flex;align-items:center;justify-content:center;white-space:nowrap;flex:none;
 background:#222b22;color:#f3e6c9;border:1px solid #70664f;border-radius:2px;
 font:650 .64rem/1 var(--atlas-mono);letter-spacing:.05em;text-transform:uppercase;
}
:is(#root,#progress-page) .jm-dock .header-menu-panel{top:auto;bottom:calc(100% + 8px);right:0}
.jm-screen[data-map-phase=ready] .jm-heading{margin-bottom:12px}
.jm-screen[data-map-phase=ready] .jm-intro{min-height:0;height:min(620px,calc(var(--jm-card-height) - 86px));overflow:hidden;gap:clamp(2px,1dvh,12px)}
@media(max-width:700px){
 :is(#root,#progress-page){--jm-top:18px;--jm-dock-height:56px;--jm-dock-bottom:max(10px,env(safe-area-inset-bottom))}
 #root[data-rd-screen=journey] .jm-screen{
  --jm-card-height:min(590px,calc(100dvh - var(--jm-top) - var(--jm-dock-room) - 16px));
  padding-inline:12px;
 }
 .jm-screen .atlas-stamp{--seal-diameter:clamp(19px,10.43cqh,46px)}
 .jm-screen .atlas-samurai{--seal-diameter:clamp(23px,12.47cqh,55px)}
 .jm-screen .jm-detail{min-height:130px;gap:5px 8px}
 .jm-screen .jm-detail-icon{width:38px}
 .jm-screen .atlas-stamp small{font-size:clamp(8px,2.3cqh,10px)}
 :is(#root,#progress-page) .jm-dock{inset-inline:8px;grid-template-columns:auto minmax(0,1fr) auto;gap:4px;padding:4px}
 :is(#root,#progress-page) .jm-dock .rd-brand{margin:0}
 :is(#root,#progress-page) .jm-dock .rd-brand>span+span,.jm-cycle{display:none}
 :is(#root,#progress-page) .jm-dock .rd-nav button{height:38px;flex-direction:column;gap:3px}
 :is(#root,#progress-page) .jm-dock .rd-nav button b{font-size:6px}
 .jm-dock-tools{gap:3px}
}
@media(max-height:460px){
 :is(#root,#progress-page){--jm-top:8px;--jm-dock-height:46px;--jm-dock-bottom:max(6px,env(safe-area-inset-bottom))}
 :is(#root,#progress-page) .jm-dock{padding-block:3px}
 :is(#root,#progress-page) .jm-dock .rd-nav button{height:30px}
 :is(#root,#progress-page) .jm-dock .header-trigger{min-height:30px}
 .jm-screen .jm-detail{inset:auto 9px 7px;min-height:49px;padding:4px 7px;gap:6px;grid-template-columns:minmax(0,1fr) auto}
 .jm-screen .jm-detail-icon{display:none}
 .jm-screen .jm-detail .rd-primary{min-height:32px;min-width:0;width:auto;grid-column:auto}
 .jm-screen .jm-hint{font-size:8px;line-height:1.07}
 .jm-screen .jm-detail-name{font-size:15px}
 .jm-screen[data-map-phase=ready] .jm-heading{margin-bottom:4px}
 .jm-screen[data-map-phase=ready] .jm-intro{height:min(620px,calc(var(--jm-card-height) - 45px));padding:4px}
 .jm-screen[data-map-phase=ready] .jm-heading :is(.jm-subtitle,.jm-destination){display:none}
 .jm-screen[data-map-phase=ready] .jm-portrait{width:28px;height:28px}
 .atlas-compass{right:12px}
}
@media(max-height:460px){
 .jm-screen .atlas-stamp{--seal-diameter:clamp(16px,8.25cqh,27px)}
 .jm-screen .atlas-samurai{--seal-diameter:clamp(21px,11cqh,34px)}
 .jm-screen .atlas-stamp small{top:100%}
}

/* The published prototype uses the same bottom navigation on every main screen. */
#root:is([data-rd-screen=lobby],[data-rd-screen=board]){
 grid-template: minmax(0,1fr) / minmax(0,1fr);
 padding-bottom:var(--jm-dock-room);
}
#root:is([data-rd-screen=lobby],[data-rd-screen=board])>main.wrap{
 grid-area:1 / 1;margin:0;min-width:0;min-height:0;
}
#root[data-rd-screen=board]>main.wrap{
 padding-top:clamp(5px,2dvh,17px);
}
/* Reference content scrolls on its own; the bottom dock stays in the viewport. */
#progress-page{
 position:fixed;inset:0;overflow-x:hidden;overflow-y:auto;
 overscroll-behavior-y:contain;scroll-padding-block-end:var(--jm-dock-room);
}
#progress-page .rd-reference-layout{
 display:block;min-height:100%;
 padding-bottom:var(--jm-dock-room);
}
#progress-page .jm-dock{box-sizing:border-box}
#progress-menu-panel .header-sound{min-height:38px;text-align:left;background:#282f24;color:#f3e6c9;border-color:#645b47;border-radius:2px}
#progress-menu-panel .guide-back{
 margin:0;justify-content:flex-start;min-height:38px;
 background:#282f24;color:#f3e6c9;border-color:#645b47;border-radius:2px;
}
@media(max-height:460px){
 #root[data-rd-screen=board]>main.wrap{padding-block:2px 0;gap:2px}
}

/* Keep the map action on its own above the route, leaving the lower map open. */
.jm-screen .atlas-card{--jm-action-top:10px;--jm-action-height:42px;--jm-plot-top:62px;--jm-plot-bottom:22px}
.jm-screen .atlas-stage{inset-block:var(--jm-plot-top) var(--jm-plot-bottom)}
.jm-map-action{position:absolute;inset:var(--jm-action-top) 10px auto;z-index:3;display:flex;justify-content:center;pointer-events:none}
.jm-map-action .rd-primary{pointer-events:auto;min-height:var(--jm-action-height);max-width:100%;padding:4px 18px;font:650 .68rem/1.15 var(--atlas-mono);letter-spacing:.07em;white-space:nowrap}
.jm-map-action .jm-hint{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.jm-screen .atlas-title,.jm-screen .atlas-compass{top:calc(var(--jm-plot-top) + 4px)}
@media(max-height:460px){
 .jm-screen .atlas-card{--jm-action-top:6px;--jm-action-height:32px;--jm-plot-top:44px;--jm-plot-bottom:14px}
 .jm-map-action .rd-primary{font-size:.6rem}
}
.jm-screen .atlas-trees-a{top:max(11%,calc(var(--jm-plot-top) + 32px))}

/* The title screen starts at the top of its viewport; it has no board header. */
#root[data-rd-screen=lobby]>main.wrap{padding-top:0}
#root[data-rd-screen=lobby] .lobby-center{
 top:clamp(9px,2.5dvh,24px);
 transform:none;
}
@media(max-width:640px) and (orientation:portrait){
 #root[data-rd-screen=lobby] .rd-lobby-seal{top:auto;bottom:8%}
}

.jm-legend .jm-key-stream{background:#3c6872}
.jm-screen .atlas-stream:not([data-node-state=locked]) .atlas-seal{background:#365968;border-color:#264954;color:#f4e6bc}

.jm-screen .jm-intro .rd-eyebrow{color:#e5c591}
.jm-intro .jm-intro-health{font-variant-numeric:tabular-nums}
