@import url('https://fonts.googleapis.com/css2?family=VT323&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Micro+5&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@500;600;700&family=Hind:wght@400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Space+Grotesk:wght@400;500;600;700&display=swap');
:root{--ink:#253e70;--paper:#f0f4ff;--green:#acc6ff;--line:#d0dcf2;--mono:'DM Mono',monospace}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font-family:'Space Grotesk',sans-serif}button,a{-webkit-tap-highlight-color:transparent}button,a:focus-visible{outline-offset:5px}button{font:inherit;cursor:pointer}a{color:inherit;text-decoration:none}header{height:86px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 5%;gap:20px}.brand{display:flex;align-items:center;gap:12px;font-weight:700;letter-spacing:-.6px;font-size:20px}.brand-icon{font-size:32px}.edition{font:12px var(--mono);letter-spacing:1px}.brand .edition{border-left:1px solid #b5c8e8;padding-left:14px;margin-left:4px}.collection{font:14px var(--mono)}main{max-width:1400px;margin:auto;padding:35px 5% 0}.above{display:flex;justify-content:space-between;align-items:end;margin-bottom:25px}.eyebrow{font:12px var(--mono);letter-spacing:1.4px}h1{font-weight:500;letter-spacing:-1.8px;font-size:38px;margin:9px 0 0}.day{display:flex;flex-direction:column;gap:7px;text-align:right;font:12px var(--mono);letter-spacing:.6px}.day span:first-child{font-size:16px}.console{border:2px solid var(--ink);padding:8px;background:#dce7ff;box-shadow:5px 5px 0 #253e701c}.screen-top,.screen-bottom{display:flex;align-items:center;justify-content:space-between;gap:12px;font:12px var(--mono);letter-spacing:1px;padding:9px 10px 13px}.screen-top>span:first-child{display:flex;align-items:center;gap:8px}.screen-top i{width:7px;height:7px;background:var(--ink);display:inline-block}.screen-top button{font:12px var(--mono);background:none;border:0;padding:0;color:var(--ink)}.world{position:relative;border:2px solid var(--ink);background:#acc6ff;overflow:hidden}canvas{width:100%;display:block;image-rendering:pixelated;cursor:pointer;aspect-ratio:16/9}.map-note{position:absolute;left:50%;bottom:15px;transform:translateX(-50%);background:#e6eeffe8;border:1px solid #45649f;padding:9px 12px;white-space:nowrap;font:11px var(--mono);letter-spacing:.6px;pointer-events:none}.compass{position:absolute;right:18px;top:14px;text-align:center;font:15px var(--mono);pointer-events:none}.screen-bottom{padding:12px 10px 4px;font-size:10px}.controls{display:flex;justify-content:space-between;align-items:center;padding:24px 0;gap:20px}.controls p{font-size:14px;color:#50688e}.key{border:1px solid #b5c8e8;padding:4px 7px;margin-right:8px}.controls>div{display:flex;gap:12px}.primary,.secondary{display:inline-flex;justify-content:space-between;align-items:center;gap:30px;padding:14px 19px;border:1px solid var(--ink);font-size:14px;font-weight:500}.primary{background:var(--ink);color:#edf3ff}.secondary{background:transparent}.primary:hover{background:#45649f}.secondary:hover{background:#dce7ff}.visitors{border-top:1px solid var(--line);padding:22px 0}.visitor-heading{display:flex;justify-content:space-between;font:11px var(--mono);letter-spacing:.7px;margin-bottom:16px}#roster{display:grid;grid-template-columns:repeat(10,minmax(0,1fr));gap:12px}.visitor{border:1px solid #b5c8e8;background:#e6eeff;padding:5px;color:var(--ink)}.visitor img{display:block;width:100%;aspect-ratio:1;object-fit:cover;image-rendering:pixelated;background:#acc6ff}.visitor span{display:block;font:11px var(--mono);padding:8px 0 3px}.visitor:hover,.visitor:focus-visible{transform:translateY(-3px);border-color:var(--ink)}footer{display:flex;justify-content:space-between;border-top:1px solid var(--line);padding:22px 0 28px;color:#637ca3;font-size:12px}footer>span:last-child{font:10px var(--mono);letter-spacing:.5px}.foot-dot{font-size:8px;margin:0 8px}dialog{padding:0;width:366px;max-width:calc(100% - 30px);border:2px solid var(--ink);background:var(--paper);color:var(--ink);box-shadow:8px 8px 0 #253e7055}dialog::backdrop{background:#182e5c80;backdrop-filter:blur(3px)}.dialog-bar{display:flex;justify-content:space-between;align-items:center;border-bottom:2px solid var(--ink);padding:8px 15px;font:12px var(--mono);background:var(--green)}.dialog-bar button{border:0;background:none;font-size:28px;line-height:28px;color:var(--ink)}.profile-body{padding:20px}.portrait-wrap{position:relative;aspect-ratio:1;background:var(--green);border:1px solid var(--ink);margin-bottom:20px}.portrait-wrap img{width:100%;height:100%;object-fit:cover;image-rendering:pixelated}.portrait-wrap span{position:absolute;inset:0;align-content:center;text-align:center}h2{margin:7px 0 20px;font-size:28px}.trait-title{font:11px var(--mono);letter-spacing:1px}.trait-note{font-size:14px;line-height:1.6;color:#50688e;margin:9px 0 20px}.profile-body .primary{width:100%}.purchase-note{font-size:10px;text-align:center;margin:12px 0 0;color:#637ca3}@media(min-width:1500px){main{max-width:1500px}}@media(max-width:850px){.top-note{display:none}main{padding:25px 4% 0}h1{font-size:29px}.controls{align-items:start}.controls p{max-width:200px;line-height:1.6;margin:0}.controls>div{gap:8px}.primary,.secondary{gap:15px;padding:13px}#roster{grid-template-columns:repeat(5,1fr)}.screen-bottom{font-size:8px}}@media(max-width:560px){header{height:72px;padding:0 4%}.brand{font-size:16px;gap:7px}.brand .edition{display:none}.collection{font-size:12px}.above{align-items:start;gap:8px}.eyebrow{font-size:10px}h1{font-size:26px;max-width:230px;line-height:1.15}.day{font-size:9px;padding-top:4px}.day span:first-child{font-size:12px}.console{padding:4px}.world{height:340px;overflow:auto}canvas{width:604px;height:340px;max-width:none}.map-note{position:sticky;left:12px;bottom:12px;transform:none;width:max-content;font-size:9px;margin-top:-37px}.compass{display:none}.screen-top{font-size:9px;padding:8px 4px 10px}.screen-top button{font-size:10px}.screen-bottom span:last-child{display:none}.screen-bottom{font-size:8px;padding:8px 4px 4px}.controls{flex-direction:column;padding:20px 0;gap:15px}.controls p{max-width:none}.controls>div{width:100%}.controls button{flex:1;justify-content:center;font-size:12px}#roster{gap:7px}.visitor span{font-size:10px}footer{font-size:10px;gap:15px}footer>span:last-child{font-size:8px;max-width:135px;text-align:right;line-height:1.7}}

/* Based Minis site shell; the village remains its own game screen. */

:root{--ink:#1c2545;--paper:#9db7fe;--line:#728cc9}body{font-family:'Hind',sans-serif}header{height:90px;border-bottom:0;padding:0 5%;max-width:1600px;margin:auto}.brand img{width:48px;height:48px;object-fit:contain;image-rendering:pixelated}header nav{display:flex;align-items:center;gap:28px}header nav a,.collection{font:600 18px 'Barlow Condensed',sans-serif;color:#fff}header nav a:hover,header nav a[aria-current]{border-bottom:3px solid #fff;padding-bottom:5px}.collection{color:#1c2545;border:2px solid #1c2545;background:#fff;padding:10px 15px;box-shadow:3px 3px 0 #434471}main{padding-top:24px}.above{margin-bottom:26px}.above .eyebrow{font:600 16px 'Barlow Condensed',sans-serif;letter-spacing:1.2px}h1{font-family:'Hind',sans-serif;font-size:70px;font-weight:700;line-height:1;letter-spacing:-2px;color:#fff;-webkit-text-stroke:1px #252540;text-shadow:-4px 4px 0 #494672;margin-top:12px}.day{color:#202d50;font-size:12px}.console{border:3px solid #252540;background:#dce7ff;box-shadow:7px 7px 0 #4b5287;padding:10px;border-radius:9px}.world{border-color:#3d527c}.screen-top,.screen-bottom{color:#28385a}.controls{padding:28px 0}.controls p{font-size:17px;color:#233457}.key{background:#dce7ff;border-color:#45649f}.primary,.secondary{font:600 18px 'Barlow Condensed',sans-serif;text-transform:uppercase;border:2px solid #252540;box-shadow:3px 3px 0 #4b5287}.secondary{background:#fff;color:#252540}.primary{background:#252540;color:#fff}.primary:hover{background:#404572}.secondary:hover{background:#e6eeff}.visitor-heading{font:600 16px 'Barlow Condensed',sans-serif;letter-spacing:.8px}.visitor{border:2px solid #42548a;background:#e6eeff;box-shadow:2px 2px 0 #647bb4}.visitor span{font-size:12px}.visitors{border-top-color:#758dd0}footer{border-color:#758dd0;color:#253659;font:600 17px 'Barlow Condensed',sans-serif}footer>span:last-child{color:#354a77}dialog{background:#edf3ff}.dialog-bar{background:#9db7fe}.trait-note{color:#455478}.purchase-note{color:#53658a}
@media(max-width:1000px){header nav{gap:15px}header nav a,.collection{font-size:15px}h1{font-size:60px}}@media(max-width:720px){header{height:auto;min-height:90px;flex-wrap:wrap;padding-top:16px;padding-bottom:16px;gap:14px}header nav{order:3;width:100%;justify-content:center;gap:18px;flex-wrap:wrap}header nav a{font-size:14px}.brand img{width:36px;height:36px}h1{font-size:48px;max-width:none}.above .eyebrow{font-size:13px}.day{font-size:10px}.console{padding:6px}.controls button{font-size:16px}footer{font-size:14px}}

/* Warm accents from the parent site's yellow, orange and purple palette. */
:root{--brand-yellow:#f4d06f;--brand-orange:#fe870f;--brand-purple:#726289}
header{justify-content:flex-start;gap:40px}header nav{flex:1;justify-content:center;gap:27px}header nav a[aria-current]{color:var(--brand-yellow);border-color:var(--brand-yellow)}
.nav-dropdown{position:relative;font:600 18px 'Barlow Condensed',sans-serif;color:white}.nav-dropdown summary{cursor:pointer;list-style:none;padding:10px 0}.nav-dropdown summary::-webkit-details-marker{display:none}.nav-dropdown summary::after{content:' ▾';font-size:12px}.nav-dropdown[open] summary{color:var(--brand-yellow)}.nav-submenu{position:absolute;z-index:20;top:100%;right:0;width:215px;background:#fff8e5;border:2px solid #252540;box-shadow:4px 4px 0 var(--brand-purple);padding:8px}.nav-submenu a{display:block!important;color:#252540!important;padding:9px 11px!important;border:0!important;font-size:16px}.nav-submenu a:hover,.nav-submenu a:focus-visible{background:var(--brand-yellow)}.buy-menu summary{background:var(--brand-yellow);color:#252540;padding:9px 20px;border:2px solid #252540;box-shadow:3px 3px 0 var(--brand-purple)}.buy-menu[open] summary{color:#252540;background:var(--brand-orange)}
.above .eyebrow{display:inline-block;background:var(--brand-yellow);padding:5px 10px;border:1px solid #252540;transform:rotate(-1deg)}h1{text-shadow:-4px 4px 0 var(--brand-purple)}.day{background:#fff8e5;border:2px solid #252540;padding:12px 16px;box-shadow:3px 3px 0 var(--brand-purple)}
.console{background:#fff4d7;box-shadow:7px 7px 0 var(--brand-purple)}.screen-top>span:first-child i{background:var(--brand-orange)}.controls .primary,.profile-body .primary{background:var(--brand-yellow);color:#252540}.controls .primary:hover,.profile-body .primary:hover{background:var(--brand-orange)}.controls .secondary{background:#fff8e5}.controls .key{background:var(--brand-yellow)}.primary,.secondary{box-shadow:3px 3px 0 var(--brand-purple)}
.visitors{background:#f4d06f;margin:0 -18px;padding:23px 18px;border:2px solid #252540;box-shadow:5px 5px 0 var(--brand-purple)}.visitor{background:#fff8e5;box-shadow:2px 2px 0 #b89457;border-color:#252540}.visitor:hover{background:#ffe4ae}.visitor-heading{color:#252540}.dialog-bar{background:var(--brand-yellow)}footer{margin-top:30px;border-top:4px solid var(--brand-orange);padding-top:18px}
@media(max-width:1000px){header{gap:20px}header nav{gap:18px}.nav-dropdown{font-size:16px}}
@media(max-width:720px){header{justify-content:center;gap:8px}header nav{flex-basis:100%;gap:10px 17px}.nav-dropdown{font-size:14px}.buy-menu summary{padding:6px 13px}.nav-submenu{width:190px}.day{padding:8px}.visitors{margin:0}.above{align-items:center}.above .eyebrow{font-size:11px}h1{font-size:42px}}

/* Quiet page framing: let the town and NFT artwork carry the colour. */
header nav a,header nav a[aria-current],.nav-dropdown,.nav-dropdown[open] summary{color:#fff}
header nav a[aria-current]{border-color:#fff}
.buy-menu summary,.buy-menu[open] summary{background:transparent;color:#fff;border:0;box-shadow:none;padding:10px 0}
.nav-submenu{background:#f4f6ff;box-shadow:4px 4px 0 var(--brand-purple)}
.nav-submenu a:hover,.nav-submenu a:focus-visible{background:#dce7ff}
.above .eyebrow{background:none;border:0;padding:0;transform:none;color:#243457;letter-spacing:1.5px}
.day{background:none;border:0;box-shadow:none;padding:0;color:#28395e}
.console{background:#edf2ff}
.controls .secondary{background:#f4f6ff}
.controls .key{background:transparent;border-color:#637bb6}
.visitors{background:transparent;margin:0;padding:23px 0;border:0;border-top:1px solid #738dcc;box-shadow:none}
.visitor{background:#e6edff;border:1px solid #7188bd;box-shadow:none}
.visitor:hover,.visitor:focus-visible{background:#f4f6ff;border-color:#252540}
.dialog-bar{background:#dce7ff}
.profile-body .primary{background:#252540;color:#fff}
.profile-body .primary:hover{background:#726289}
footer{border-top:1px solid #738dcc}
@media(max-width:720px){.buy-menu summary{padding:10px 0}.day{padding:0}.visitors{margin:0}}

/* Non-modal NPC profile, anchored inside the game screen. */
.console{position:relative}
.profile-connector{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:3;display:none;overflow:visible}
.profile-connector line{stroke:#fe870f;stroke-width:1.5;stroke-dasharray:3 3}
dialog#profile{position:absolute;inset:auto;margin:0;width:230px;max-width:calc(100% - 16px);z-index:4;border:2px solid #252540;box-shadow:4px 4px 0 #25254055;background:#edf3ff}
dialog#profile .dialog-bar{padding:3px 8px;font-size:10px;letter-spacing:.5px}
dialog#profile .dialog-bar button{font-size:23px;line-height:25px;width:28px;min-height:28px}
dialog#profile .profile-body{padding:10px}
dialog#profile .portrait-wrap{width:128px;height:128px;aspect-ratio:1;margin:0 auto 10px}
dialog#profile .eyebrow{font-size:9px;letter-spacing:.6px}
dialog#profile h2{font-size:21px;line-height:1.15;margin:4px 0 6px}
dialog#profile .trait-note{font-size:12px;line-height:1.3;margin:6px 0 10px}
dialog#profile .primary{font-size:14px;padding:8px 10px;gap:8px;box-shadow:2px 2px 0 #726289}
dialog#profile .purchase-note{font-size:10px;margin-top:8px}
@media(max-width:560px){dialog#profile{width:calc(100% - 20px)}dialog#profile .profile-body{display:grid;grid-template-columns:88px 1fr;column-gap:12px;align-items:start}dialog#profile .portrait-wrap{grid-column:1;grid-row:1/6;width:88px;height:88px;margin:0}dialog#profile .eyebrow,dialog#profile h2,dialog#profile .trait-note,dialog#profile .primary,dialog#profile .purchase-note{grid-column:2}dialog#profile h2{font-size:20px;margin:3px 0}dialog#profile .trait-note{margin:3px 0 7px}dialog#profile .purchase-note{margin:7px 0 0}.map-note{display:none}}

.bubble-layer{position:absolute;inset:0;pointer-events:none;z-index:2;overflow:hidden}
.mini-bubble{position:absolute;white-space:nowrap;background:#fffdf2;color:#20293f;border:1px solid #20293f;box-shadow:1px 2px 0 #20293f33;padding:4px 7px;font:700 14px/1.1 monospace;text-align:center}
.mini-bubble::after{content:'';position:absolute;width:5px;height:5px;bottom:-4px;left:calc(50% - 3px);background:#fffdf2;border-right:1px solid #20293f;border-bottom:1px solid #20293f;transform:rotate(45deg)}
.mini-bubble.token-label{background:#20293f;color:white}.mini-bubble.token-label::after{background:#20293f}
.day{background:#edf3ff;border:1px solid #52668e;box-shadow:3px 3px 0 #72628966;border-radius:4px;padding:12px 16px;color:#202d50;gap:8px}.day span:first-child{font-weight:500;font-size:17px}.day span:last-child{font-size:12px}
#profile-data{max-height:150px;overflow:auto;margin:8px 0 12px;font-size:12px;line-height:1.4}.rarity{margin:0 0 9px;font-weight:700;color:#252540}.profile-traits{display:grid;grid-template-columns:1fr 1fr;gap:5px 8px;margin:0}.profile-traits dt{color:#4b5b75}.profile-traits dd{margin:0;text-align:right;color:#20293f;overflow-wrap:anywhere}
@media(max-width:560px){.day{padding:9px}.day span:first-child{font-size:14px}.day span:last-child{font-size:10px}#profile-data{grid-column:2;max-height:90px}dialog#profile .portrait-wrap{grid-row:1/4}}

/* Portrait and compact marketplace link beside the story. */
dialog#profile{width:392px;background:#fffaf0}
dialog#profile .dialog-bar{background:#e5dbf4}
dialog#profile .profile-body{display:grid;grid-template-columns:112px minmax(0,1fr);gap:14px;padding:12px;align-items:start}
dialog#profile .profile-identity{display:flex;flex-direction:column;gap:10px;min-width:0}
dialog#profile .profile-story{min-width:0}
dialog#profile .portrait-wrap{width:112px;height:112px;margin:0;border:2px solid #252540;box-shadow:3px 3px 0 #d8cce5}
dialog#profile h2{margin:0 0 7px;font-size:22px;line-height:1.15}
dialog#profile #profile-data{margin:0;max-height:none;overflow:visible;font-family:'Hind',sans-serif;font-size:15px;line-height:1.4;color:#35415b;text-wrap:pretty}
dialog#profile .primary{width:100%;min-height:34px;margin:0;padding:5px 6px;gap:4px;font-size:12px;white-space:nowrap;box-shadow:2px 2px 0 #726289}
@media(max-width:560px){
 dialog#profile{width:360px;max-width:calc(100% - 20px)}
 dialog#profile .profile-body{grid-template-columns:104px minmax(0,1fr);gap:11px;padding:11px}
 dialog#profile .portrait-wrap{width:104px;height:104px}
 dialog#profile h2{font-size:21px}
 dialog#profile #profile-data{font-size:14px;line-height:1.4}
 dialog#profile .primary{font-size:11px;min-height:36px;padding:5px}
}

.save-panel{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px 20px;background:#edf3ff;border:2px solid #42548a;padding:16px;margin:0 0 24px;box-shadow:3px 3px 0 #726289}.save-panel strong{font:600 16px 'Barlow Condensed',sans-serif;letter-spacing:.7px}.save-panel p{margin:3px 0 0;font-size:14px;color:#455478}.save-actions{display:flex;gap:10px}.save-actions .secondary{font-size:15px;padding:8px 12px;min-height:40px}.save-panel .save-help{flex-basis:100%;font-size:12px;margin:0}@media(max-width:560px){.save-panel{padding:12px}.save-actions{width:100%}.save-actions button{flex:1;justify-content:center}}

.explore-bar,.movement-controls{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:16px}.explore-bar>span{font:12px var(--mono)}.explore-bar button{font-size:15px;padding:8px 12px}.movement-controls p{font-size:15px;margin:0;max-width:350px}.dpad{display:grid;grid-template-columns:repeat(3,40px);gap:4px;touch-action:none}.dpad button{width:40px;height:40px;background:#fffaf0;border:2px solid #252540;box-shadow:2px 2px 0 #726289;color:#252540;font-size:22px;touch-action:none;user-select:none}.dpad button:active{background:#f4d06f}.dpad button:first-child{grid-column:2}.dpad button:nth-child(2){grid-column:1;grid-row:2}.dpad button:nth-child(3){grid-column:2;grid-row:2}.dpad button:nth-child(4){grid-column:3;grid-row:2}.player-marker{position:absolute;transform:translate(-50%,-100%);pointer-events:none;z-index:2;background:#f4d06f;border:1px solid #252540;color:#252540;padding:2px 4px;font:700 10px monospace}.world:has(canvas:focus-visible){outline:3px solid #f4d06f;outline-offset:2px}canvas:focus{outline:none}@media(max-width:560px){.movement-controls p{max-width:170px;font-size:13px}.dpad{grid-template-columns:repeat(3,44px)}.dpad button{width:44px;height:44px}}

/* Compact in-game controls. */
.game-menu{position:relative;z-index:6}.game-menu summary{cursor:pointer;list-style:none;font:12px var(--mono);padding:5px 7px;border:1px solid #52668e;background:#fffaf0;color:#252540;white-space:nowrap}.game-menu summary::-webkit-details-marker{display:none}.game-menu[open] summary{background:#f4d06f}.game-menu-panel{position:absolute;left:0;top:calc(100% + 6px);width:190px;padding:5px;background:#fffaf0;border:2px solid #252540;box-shadow:3px 3px 0 #726289}.game-menu .game-menu-panel button{display:flex;justify-content:space-between;width:100%;padding:11px 9px;border:0;background:transparent;color:#252540;text-align:left;text-transform:uppercase;font:12px var(--mono);letter-spacing:0}.game-menu .game-menu-panel button:hover,.game-menu .game-menu-panel button:focus-visible{background:#e5dbf4}.game-menu-panel p{margin:5px 8px 7px;font:11px/1.4 'Hind',sans-serif;letter-spacing:0;color:#455478}.screen-bottom #discovery-count{display:inline;white-space:nowrap;text-align:right}.screen-bottom>span:first-child{min-width:0}.explore-bar #save-status{margin:0;text-align:right;font:12px/1.4 'Hind',sans-serif;color:#455478}.explore-bar{align-items:start}.explore-bar>span{white-space:nowrap}@media(max-width:560px){.game-menu summary{font-size:10px;padding:4px 6px}.game-menu-panel{width:180px}.screen-bottom{gap:6px}.screen-bottom #discovery-count{font-size:8px}.explore-bar #save-status{font-size:11px;max-width:180px}}

/* The neighbourhood roster lives in a compact game HUD tray. */
.console .visitor-tray{width:72%;margin:10px auto 0;padding:8px 9px 2px;border:1px solid #9faed0;background:#e5eafa;box-shadow:2px 2px 0 #b6bdd7;border-radius:3px}
.visitor-tray .visitor-heading{font:10px var(--mono);letter-spacing:.4px;margin:0 3px 4px;gap:8px}
.visitor-tray .roster-scroll{overflow-x:auto;padding:4px 3px 6px;scrollbar-width:thin}
.visitor-tray #roster{grid-template-columns:repeat(10,minmax(0,1fr));gap:6px}
.visitor-tray .visitor{padding:3px;background:#fffaf0;box-shadow:1px 2px 0 #647bb4}
.visitor-tray .visitor span{font-size:9px;padding:4px 0 1px}
.visitor-tray .visitor:hover,.visitor-tray .visitor:focus-visible{transform:translateY(-2px);background:#f4d06f}
@media(max-width:850px){.console .visitor-tray{width:96%}.visitor-tray #roster{grid-template-columns:repeat(10,minmax(44px,1fr))}.visitor-tray .visitor-heading{font-size:9px}}
@media(max-width:560px){.console .visitor-tray{width:100%;padding:7px 5px 1px;margin-top:7px}.visitor-tray .visitor-heading{font-size:8px}.visitor-tray #roster{gap:5px}.visitor-tray .visitor{min-height:54px}}

/* Floating portrait action bar, independent of the map's horizontal scrolling. */
.playfield{position:relative}
.console .playfield .visitor-tray{position:absolute;z-index:2;left:50%;bottom:16px;transform:translateX(-50%);width:72%;max-width:660px;margin:0;padding:4px;border:2px solid #252540;background:#e5eafaf2;box-shadow:3px 3px 0 #25254066;border-radius:4px}
.playfield .visitor-tray .roster-scroll{padding:2px 3px 4px;overflow-x:auto}
.playfield .visitor-tray #roster{grid-template-columns:repeat(10,minmax(0,1fr));gap:5px}
.playfield .visitor-tray .visitor{padding:2px;min-height:0;border:2px solid #52618b;border-radius:2px;box-shadow:1px 2px 0 #647bb4}
.playfield .visitor-tray .visitor img{pointer-events:none}
@media(max-width:560px){.console .playfield .visitor-tray{width:calc(100% - 36px);bottom:14px;padding:3px}.playfield .visitor-tray #roster{grid-template-columns:repeat(10,44px);gap:4px}.playfield .visitor-tray .visitor{min-height:44px}}

/* Dock occupies its own space below the playable map: no hidden characters. */
.console .playfield .visitor-tray{position:relative;left:auto;bottom:auto;transform:none;margin:0 auto;width:72%;max-width:660px;border-top:0;border-radius:0 0 4px 4px;box-shadow:2px 3px 0 #25254044;background:#e5eafa}
@media(max-width:560px){.console .playfield .visitor-tray{width:calc(100% - 36px);bottom:auto;margin:0 auto}}
/* Journal and map flank the portrait dock. */
.portrait-dock{display:grid;grid-template-columns:minmax(48px,1fr) minmax(0,72%) minmax(48px,1fr);align-items:center;gap:6px}
.console .playfield .portrait-dock .visitor-tray{width:100%;justify-self:center;margin:0;bottom:auto}
.dock-button{justify-self:center;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;width:62px;min-height:54px;padding:5px;background:#fffaf0;border:2px solid #52618b;box-shadow:2px 2px 0 #a9afd0;color:#253454;font:9px var(--mono)}
.dock-button svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linejoin:round}.dock-button:hover,.dock-button:focus-visible{background:#f4d06f}
dialog.explorer-dialog{position:fixed;inset:0;margin:auto;width:720px;max-width:calc(100% - 28px);max-height:88dvh;padding:0;overflow:auto;border:3px solid #252540;background:#fffaf0;color:#253454;box-shadow:6px 6px 0 #25254066}
dialog.explorer-dialog::backdrop{background:#18233b88;backdrop-filter:blur(1px)}
.explorer-title{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 18px;background:#e5dbf4;border-bottom:2px solid #252540}.explorer-title h2{margin:0;font:16px var(--mono);letter-spacing:.5px}.explorer-title p{font-size:13px;margin:5px 0 0}.explorer-title>button{border:0;background:transparent;color:#252540;width:36px;height:36px;font-size:30px;line-height:1}
.journal-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.05fr);gap:20px;padding:18px}.journal-library{min-width:0}.journal-library label{display:block;font-size:13px;margin-bottom:5px}#journal-search{width:100%;border:1px solid #697795;background:#fff;padding:9px;font:14px 'Hind',sans-serif;color:#253454}#journal-results{font-size:12px;min-height:18px;margin:7px 0}#journal-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;max-height:295px;overflow:auto;padding:3px}.journal-mini{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:58px;gap:3px;padding:3px;border:1px solid #7986a1;background:#e5eafa;color:#253454;font:10px var(--mono)}.journal-mini img{width:100%;aspect-ratio:1;image-rendering:pixelated}.journal-mini[aria-pressed=true]{border:2px solid #252540;background:#f4d06f}.journal-mini:hover{background:#f4d06f}.journal-pages{display:flex;justify-content:space-between;align-items:center;margin-top:9px;font:11px var(--mono)}.journal-pages button,.map-tools button,#journal-detail>button{border:1px solid #697795;background:#edf3ff;color:#253454;padding:6px 12px;min-height:34px}.journal-pages button:disabled{opacity:.35;cursor:default}
#journal-detail{border-left:1px solid #d4cbd5;padding-left:20px;min-width:0}.journal-portrait{display:block;width:116px;height:116px;image-rendering:pixelated;border:2px solid #252540;background:#dce7ff}#journal-detail h3{font-size:24px;line-height:1.2;margin:14px 0 8px}#journal-detail p{font-size:16px;line-height:1.5;margin:0 0 16px}#journal-detail .primary{font-size:14px;padding:8px 12px}.explorer-foot{margin:0;padding:11px 18px;border-top:1px solid #d4cbd5;font-size:12px;color:#59627a}
#area-map{width:540px}.map-tools{display:flex;flex-wrap:wrap;justify-content:center;gap:6px;padding:12px}.map-tools button{font-size:13px;padding:6px 10px}#explored-map{margin:0 auto;padding:0 15px;max-width:415px}#explored-map svg{display:block;width:100%;height:auto;font-family:monospace}.map-legend{display:flex;justify-content:center;flex-wrap:wrap;gap:12px;margin:10px 15px;font-size:12px}
@media(max-width:560px){.portrait-dock{grid-template-columns:44px minmax(0,1fr) 44px;gap:5px}.dock-button{width:42px;min-height:48px;padding:4px 1px;font-size:7px}.dock-button svg{width:21px;height:21px}.journal-layout{grid-template-columns:1fr;padding:13px;gap:15px}#journal-grid{grid-template-columns:repeat(5,minmax(0,1fr));max-height:155px}#journal-detail{border-left:0;border-top:1px solid #d4cbd5;padding:14px 0 0;display:grid;grid-template-columns:84px minmax(0,1fr);gap:8px 13px}.journal-portrait{width:84px;height:84px;grid-row:1/3}#journal-detail h3{margin:0;font-size:22px}#journal-detail p{grid-column:2;font-size:14px;margin:0}#journal-detail .primary{grid-column:1/3;justify-self:start}.explorer-title{padding:10px 13px}}

.game-info{position:absolute;right:12px;top:12px;z-index:3}.game-info summary{display:flex;align-items:center;justify-content:center;width:25px;height:25px;border:1px solid #344669;border-radius:50%;background:#fffaf0ee;color:#253454;cursor:pointer;list-style:none;font:bold 17px Georgia,serif;box-shadow:1px 2px 0 #25254033}.game-info summary::-webkit-details-marker{display:none}.game-info[open] summary{background:#f4d06f}.game-info-panel{position:absolute;right:0;top:33px;width:270px;max-width:calc(100vw - 80px);padding:13px 15px;background:#fffaf0;border:2px solid #252540;box-shadow:3px 3px 0 #726289;color:#253454}.game-info-panel strong{font:11px var(--mono);letter-spacing:.5px}.game-info-panel p{font:14px/1.5 'Hind',sans-serif;margin:8px 0 0}.movement-controls,.controls{justify-content:flex-end}

/* Fine phosphor texture confined to the playable map. */
.console .world{isolation:isolate}
.console.crt-on .world::before{content:"";position:absolute;inset:0;pointer-events:none;border-radius:inherit;z-index:20;background:repeating-linear-gradient(90deg,rgba(255,60,70,.09) 0 .5px,rgba(50,235,140,.06) .5px 1px,rgba(55,110,255,.10) 1px 1.5px,rgba(10,20,40,.09) 1.5px 2px),repeating-linear-gradient(to bottom,transparent 0 1.5px,rgba(12,25,48,.10) 1.5px 2px);background-size:2px 100%,100% 2px;animation:crt-lines 1.8s linear infinite}
@keyframes crt-lines{from{background-position:0 0,0 0}to{background-position:0 0,0 2px}}
@media(prefers-reduced-motion:reduce){.console.crt-on .world::before{animation:none}}
@media(max-width:560px){.console.crt-on .world::before{min-width:604px}}

/* Authored handheld shell and page layout. */
body{background:#9db3fa}header{background:#9db3fa;max-width:none;height:110px;padding:0 8%;justify-content:flex-start;gap:clamp(30px,18vw,320px)}header nav a,header nav summary{color:white}header nav a[aria-current]{border-color:white}header .brand img{width:38px;height:38px}
main.console-page{max-width:none;padding:28px 2% 32px;background:#f4d471;display:grid;grid-template-columns:minmax(170px,1fr) minmax(0,min(52vw,1064px)) minmax(170px,1fr);gap:26px;align-items:start}
.town-intro,.town-help{padding-top:90px;color:#c7620b;font:26px/1.22 'Micro 5',monospace;letter-spacing:2px;text-transform:uppercase}.town-intro h1,.town-help h2{font:inherit;line-height:1.2;color:inherit;-webkit-text-stroke:0;text-shadow:none;letter-spacing:2px;margin:0 0 30px}.town-intro p,.town-help p{margin:0 0 32px}.town-intro #discovery-count,.shell-hint{font-size:21px}.handheld{position:relative;width:100%;container-type:inline-size}.console-art{display:block;width:100%;height:auto;image-rendering:pixelated;pointer-events:none}
.handheld .console{position:absolute;left:6.955%;top:6.396%;width:86.09%;height:52.37%;padding:0;border:0;border-radius:0;background:#3b3549;box-shadow:none;display:grid;grid-template-rows:41fr 608fr 47fr;min-height:0}
.handheld .screen-top,.handheld .screen-bottom{padding:0 2.6%;margin:0;display:flex;align-items:center;justify-content:space-between;gap:8px;background:#3b3549;color:var(--screen-label-color,#c5c4d3);font:clamp(12px,2.8cqw,27px)/1 'Micro 5',monospace;letter-spacing:2px;min-height:0}
.handheld .screen-top{position:relative;z-index:8}.handheld #place{position:absolute;left:50%;transform:translateX(-50%);white-space:nowrap;max-width:58%;overflow:hidden;text-overflow:ellipsis}.handheld .screen-top button,.handheld .screen-bottom button,.handheld .game-menu summary{font:inherit;color:inherit;background:transparent;border:0;padding:0;letter-spacing:inherit;box-shadow:none;white-space:nowrap}.handheld .game-menu summary span{display:none}.handheld .screen-bottom>span{display:block;text-align:center;font:inherit;letter-spacing:1px}.handheld .screen-bottom button:hover,.handheld .screen-top button:hover,.handheld .game-menu summary:hover{color:#f4d471}
.handheld .playfield{min-height:0;overflow:hidden}.handheld .world{width:100%;height:100%;border:0;overflow:hidden;scrollbar-width:none;touch-action:none}.handheld .world canvas{display:block;width:170%;height:auto;max-width:none;aspect-ratio:16/9}.handheld .world::-webkit-scrollbar{display:none}.handheld .game-info{display:none}.handheld .world::before{width:170%;height:145%;min-width:0}.handheld #roster{display:none}.handheld .game-menu-panel{background:#fffaf0;color:#253454;letter-spacing:0}.handheld .game-menu .game-menu-panel button{font:22px/1 'Micro 5',monospace;padding:9px;color:#253454;white-space:normal}.handheld .game-menu-panel p{font:13px/1.3 'Hind',sans-serif}
.shell-controls{position:absolute;inset:0;pointer-events:none;margin:0;display:block}.shell-controls button{pointer-events:auto;position:absolute;background:transparent;border:0;box-shadow:none;touch-action:none;padding:0}.shell-controls button:hover{background:#ffffff16}.shell-controls button:active{background:#24203d30}.shell-controls .dpad{display:contents}.shell-controls .dpad button{width:8.7%;height:6.8%;border-radius:0}.shell-controls [data-move=up]{left:12.1%;top:70.4%}.shell-controls [data-move=left]{left:6.5%;top:76.1%}.shell-controls [data-move=down]{left:12.1%;top:80.2%}.shell-controls [data-move=right]{left:18%;top:76.1%}.shell-action{width:8.5%;height:7%}.shell-a{left:77.6%;top:70.4%}.shell-b{left:70.5%;top:76%}.shell-s{left:85%;top:76%}.shell-e{left:77.6%;top:81.4%}
.console-page .explore-bar{grid-column:2;margin:0;font-size:12px}.console-page footer{grid-column:1/-1;margin-top:10px}.handheld .player-marker{font-size:9px}.handheld #profile{z-index:30}
@media(max-width:1150px){main.console-page{grid-template-columns:minmax(130px,1fr) minmax(0,720px) minmax(130px,1fr);gap:16px;padding:24px 18px}.town-intro,.town-help{font-size:21px;letter-spacing:1px;padding-top:50px}header{gap:40px;padding:0 4%}.town-intro #discovery-count,.shell-hint{font-size:18px}}
@media(max-width:800px){main.console-page{grid-template-columns:1fr 1fr;gap:20px;padding:18px 12px}.handheld{grid-column:1/-1;grid-row:1;max-width:720px;justify-self:center}.town-intro,.town-help{padding:0;font-size:22px}.console-page .explore-bar{grid-column:1/-1;grid-row:2}header{height:auto;padding:20px;gap:15px;justify-content:center}header nav{gap:14px}.town-intro h1,.town-help h2{margin-bottom:14px}.town-intro p,.town-help p{margin-bottom:18px}.handheld .screen-top,.handheld .screen-bottom{letter-spacing:1px}.handheld .screen-bottom>span{letter-spacing:0}.handheld .game-menu-panel{width:170px}}

/* Fit the entire handheld below the desktop header, preserving its aspect ratio. */
@media(min-width:801px){main.console-page{grid-template-columns:minmax(130px,1fr) minmax(0,min(52vw,1064px,calc((100dvh - 170px) * 1064 / 1329))) minmax(130px,1fr)}.town-intro,.town-help{max-width:320px;justify-self:center;padding-top:clamp(24px,7vh,90px)}.handheld .screen-top,.handheld .screen-bottom{letter-spacing:1px}.handheld .screen-bottom>span{letter-spacing:0}}

/* A fixed-size field journal with independently scrolling list and story. */
#journal{width:880px;height:min(700px,90dvh);max-height:90dvh;max-width:calc(100vw - 24px);overflow:hidden;padding:9px;background:#faf1d6;color:#101d31;border:3px solid #20251f;border-radius:8px;box-shadow:inset 0 0 0 2px #b0a889,5px 5px 0 #18233b55;font:26px/1.05 'Micro 5',monospace;text-transform:uppercase}
#journal[open]{display:grid;grid-template-rows:auto minmax(0,1fr) auto}
#journal .explorer-title{background:transparent;border-bottom:2px solid #20251f;padding:4px 12px 10px;gap:12px}#journal .explorer-title>div{display:contents}#journal .explorer-title h2{font:40px/1 'Micro 5',monospace;letter-spacing:1px}#journal-count{margin:0 0 0 auto;font:26px/1 'Micro 5',monospace;white-space:nowrap}#journal .explorer-title>button{color:#101d31;font:44px/1 'Micro 5',monospace}
#journal .journal-layout{display:grid;grid-template-columns:32% minmax(0,1fr);gap:0;padding:0;min-height:0;overflow:hidden}#journal .journal-library{display:grid;grid-template-rows:auto auto auto minmax(0,1fr) auto;min-height:0;padding:10px 12px 8px 6px;border-right:2px solid #20251f}#journal .journal-library label{font:25px/1 'Micro 5',monospace;margin:0 0 6px 8px}#journal-search{font:26px/1 'Micro 5',monospace;text-transform:uppercase;border:2px solid #20251f;border-radius:3px;background:#fff9e7;height:40px;padding:4px 10px;color:#101d31}#journal-results{font:17px/1 'Micro 5',monospace;margin:6px 4px;min-height:17px}
#journal #journal-grid{display:flex;flex-direction:column;gap:0;overflow-y:auto;max-height:none;min-height:0;padding:0;scrollbar-width:thin;scrollbar-color:#99906e #eee4c6}#journal .journal-mini{position:relative;display:flex;flex-direction:row;justify-content:flex-start;flex:0 0 57px;width:100%;min-height:57px;gap:12px;padding:4px 8px 4px 22px;border:0;border-bottom:1px solid #aaa184;background:transparent;box-shadow:none;color:#101d31;font:28px/1 'Micro 5',monospace}#journal .journal-mini img{width:44px;height:44px;aspect-ratio:1;object-fit:contain}#journal .journal-mini[aria-pressed=true]{background:#f7e6a0;border:0;border-bottom:1px solid #aaa184}#journal .journal-mini[aria-pressed=true]::before{content:'▶';position:absolute;left:4px;font-size:16px}#journal .journal-mini:hover{background:#f7e6a0}#journal .journal-pages{margin-top:8px;font:25px/1 'Micro 5',monospace}#journal .journal-pages button{background:transparent;border:0;color:#101d31;font:28px/1 'Micro 5',monospace;padding:3px 10px}
#journal #journal-detail{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(90px,1.25fr) auto minmax(70px,1fr) 46px;gap:10px;min-height:0;border:0;padding:12px 18px;overflow:hidden}#journal .journal-portrait{grid-column:1;grid-row:1;width:100%;height:100%;min-height:0;object-fit:contain;background:#dfd5b7;border:3px solid #17223b;border-radius:5px;image-rendering:pixelated}#journal #journal-detail h3{grid-column:1;grid-row:2;margin:0;font:32px/1 'Micro 5',monospace}#journal #journal-detail .journal-bio{grid-column:1;grid-row:3;min-height:0;overflow-y:auto;margin:0;padding:12px;border:4px double #343829;border-radius:7px;background:#fff8e5;color:#101d31;font:27px/1.06 'Micro 5',monospace;scrollbar-width:thin;scrollbar-color:#99906e #eee4c6;scrollbar-gutter:stable}#journal #journal-detail .primary{grid-column:1;grid-row:4;justify-self:stretch;justify-content:center;margin:0;padding:5px;background:#173b63;color:#fff9e7;border:4px double #fff1d0;outline:2px solid #232920;border-radius:5px;box-shadow:none;font:29px/1 'Micro 5',monospace;gap:0}#journal #journal-detail>button{font:20px 'Micro 5',monospace}#journal .explorer-foot{border-top:2px solid #20251f;color:#101d31;text-align:center;padding:10px 4px 4px;font:23px/1 'Micro 5',monospace}
@media(max-width:560px){#journal{padding:5px;height:88dvh;max-width:calc(100vw - 12px)}#journal .explorer-title{padding:4px 5px 8px;gap:5px}#journal .explorer-title h2{font-size:27px;letter-spacing:0}#journal-count{font-size:18px}#journal .explorer-title>button{width:25px;font-size:34px}#journal .journal-layout{grid-template-columns:33% minmax(0,1fr)}#journal .journal-library{padding:8px 5px 6px 0}#journal .journal-library label{font-size:22px;margin-left:3px}#journal-results{font-size:15px}#journal .journal-mini{gap:5px;padding:4px 2px 4px 10px;font-size:20px;flex-basis:53px;min-height:53px}#journal .journal-mini img{width:30px;height:30px}#journal .journal-mini[aria-pressed=true]::before{left:0;font-size:9px}#journal .journal-pages{font-size:21px}#journal .journal-pages button{padding:2px 3px;font-size:24px}#journal #journal-detail{padding:10px 9px;gap:9px;grid-template-rows:minmax(80px,.8fr) auto minmax(100px,1fr) 43px}#journal #journal-detail h3{font-size:26px}#journal #journal-detail .journal-bio{font-size:23px;padding:8px}#journal #journal-detail .primary{font-size:23px}#journal .explorer-foot{font-size:19px}}
/* Journal drawer lives entirely inside the playable screen. */
.handheld #journal{position:absolute;inset:0;width:100%;height:100%;max-width:none;max-height:none;margin:0;padding:5px;border:2px solid #20251f;border-radius:0;z-index:40;box-shadow:inset 0 0 0 1px #b0a889;font-size:20px}
.handheld #journal .explorer-title{padding:2px 5px 5px;gap:5px}.handheld #journal .explorer-title h2{font-size:27px;letter-spacing:0}.handheld #journal-count{font-size:19px}.handheld #journal .explorer-title>button{width:24px;height:25px;font-size:30px}.handheld #journal .explorer-title>.journal-back{display:none;width:auto;font:19px 'Micro 5',monospace;white-space:nowrap}
.handheld #journal .journal-layout{grid-template-columns:34% minmax(0,1fr)}.handheld #journal .journal-library{padding:5px 6px 3px 0;grid-template-rows:auto auto auto minmax(0,1fr) auto}.handheld #journal .journal-library label{font-size:19px;margin:0 0 3px}.handheld #journal-search{height:27px;font-size:21px;padding:2px 6px}.handheld #journal-results{font-size:14px;min-height:14px;margin:3px 0}.handheld #journal .journal-mini{flex-basis:39px;min-height:39px;padding:2px 2px 2px 15px;gap:5px;font-size:22px}.handheld #journal .journal-mini img{width:32px;height:32px}.handheld #journal .journal-mini[aria-pressed=true]::before{font-size:10px;left:2px}.handheld #journal .journal-pages{font-size:19px;margin-top:3px}.handheld #journal .journal-pages button{font-size:20px;min-height:24px;padding:0 7px}
.handheld #journal #journal-detail{padding:6px 8px;gap:6px;grid-template-columns:74px minmax(0,1fr);grid-template-rows:74px minmax(0,1fr) 30px}.handheld #journal .journal-portrait{grid-column:1;grid-row:1;width:74px;height:74px;border-width:2px}.handheld #journal #journal-detail h3{grid-column:2;grid-row:1;align-self:center;font-size:25px}.handheld #journal #journal-detail .journal-bio{grid-column:1/-1;grid-row:2;min-height:0;padding:7px;font-size:22px;line-height:1.05}.handheld #journal #journal-detail .primary{grid-column:1/-1;grid-row:3;min-height:0;font-size:22px;padding:2px;border-width:3px}.handheld #journal .explorer-foot{font-size:16px;padding:4px 0 0}
@container(max-width:420px){.handheld #journal .journal-layout{display:block}.handheld #journal .journal-library{height:100%;border:0;padding-right:0}.handheld #journal #journal-detail{display:none;height:100%}.handheld #journal.reading-mini .journal-library{display:none}.handheld #journal.reading-mini #journal-detail{display:grid;grid-template-columns:58px minmax(0,1fr);grid-template-rows:58px minmax(0,1fr) 27px;padding:4px;gap:4px}.handheld #journal.reading-mini .journal-portrait{width:58px;height:58px}.handheld #journal.reading-mini .explorer-title>.journal-back{display:block;font-size:17px}.handheld #journal.reading-mini .explorer-title h2{display:none}.handheld #journal .explorer-title h2{font-size:24px}.handheld #journal-count{font-size:16px}.handheld #journal .journal-mini{flex-basis:36px;min-height:36px}.handheld #journal .journal-mini img{width:29px;height:29px}.handheld #journal .explorer-foot{display:none}.handheld #journal[open]{grid-template-rows:auto minmax(0,1fr)}.handheld #journal #journal-detail .journal-bio{font-size:21px}.handheld #journal #journal-detail .primary{font-size:20px}}
@container(max-width:420px){.handheld #journal.reading-mini #journal-detail{grid-template-columns:42px minmax(0,1fr);grid-template-rows:42px minmax(0,1fr) 25px}.handheld #journal.reading-mini .journal-portrait{width:42px;height:42px}.handheld #journal #journal-detail .journal-bio{padding:4px;font-size:20px}}
.handheld #area-map{position:absolute;inset:0;width:100%;height:100%;max-width:none;max-height:none;margin:0;padding:5px;overflow:hidden;border:2px solid #20251f;border-radius:0;background:#faf1d6;color:#101d31;box-shadow:none;z-index:40;font:20px/1 'Micro 5',monospace;text-transform:uppercase}
.handheld #area-map[open]{display:grid;grid-template-rows:auto auto minmax(0,1fr) auto auto}.handheld #area-map .explorer-title{background:transparent;padding:2px 5px 4px;border-bottom:2px solid #20251f}.handheld #area-map h2{font:27px/1 'Micro 5',monospace}.handheld #map-summary{font:16px/1 'Micro 5',monospace;margin:2px 0 0}.handheld #area-map .explorer-title>button{height:25px;width:25px;font:30px/1 'Micro 5',monospace}.handheld #area-map .map-tools{padding:3px;gap:4px}.handheld #area-map .map-tools button{font:17px/1 'Micro 5',monospace;min-height:23px;padding:2px 5px;background:#fff8e5;color:#101d31}.handheld #explored-map{height:100%;min-height:0;width:100%;max-width:none;padding:0;display:flex;justify-content:center}.handheld #explored-map svg{height:100%;width:auto;max-width:100%}.map-destination{cursor:pointer}.map-destination:hover rect,.map-destination:focus rect{stroke:#1f365e;stroke-width:5}.handheld #area-map .map-legend{font:17px/1 'Micro 5',monospace;margin:3px;gap:10px}.visited-key::before,.complete-key::before{content:'';display:inline-block;width:10px;height:10px;margin-right:4px;background:#a9bee9;border:1px solid #344669}.complete-key::before{background:#accb91}.handheld #area-map .explorer-foot{font:16px/1 'Micro 5',monospace;padding:3px;border-top:1px solid #aaa184;text-align:center;color:#101d31}
@container(max-width:420px){.handheld #area-map h2{font-size:23px}.handheld #map-summary{font-size:14px}.handheld #area-map .map-tools{gap:3px}.handheld #area-map .map-tools button{font-size:15px;min-height:21px;padding:1px 4px}.handheld #area-map .map-legend,.handheld #area-map .explorer-foot{font-size:14px}.handheld #map-home-view{display:none}}

/* Mixed-case reading text, with Micro5 retained for navigation and titles. */
.town-intro p,.town-help p{font-family:'VT323',monospace;font-size:23px;line-height:1.25;letter-spacing:0;text-transform:none}
.town-intro #discovery-count,.town-help .shell-hint{font-family:'VT323',monospace;font-size:19px;letter-spacing:0;text-transform:none}
.mini-bio,.mini-bio p,#profile-data,#profile-data p{font-family:'VT323',monospace;font-size:22px;line-height:1.2;letter-spacing:0;text-transform:none}
.handheld #journal #journal-detail .journal-bio{font-family:'VT323',monospace;font-size:20px;line-height:1.15;letter-spacing:0;text-transform:none}
.handheld #journal-results,.handheld #journal .explorer-foot,.handheld #map-summary,.handheld #area-map .map-legend,.handheld #area-map .explorer-foot,.handheld .game-menu-panel p,.console-page .explore-bar>span,.console-page .explore-bar #save-status{font-family:'VT323',monospace;font-size:16px;line-height:1.1;letter-spacing:0;text-transform:none}
.handheld #journal-count{font-family:'VT323',monospace;font-size:18px;text-transform:none;letter-spacing:0}
@container(max-width:420px){.handheld #journal #journal-detail .journal-bio{font-size:18px}.handheld #journal-results,.handheld #map-summary,.handheld #area-map .map-legend,.handheld #area-map .explorer-foot{font-size:14px}.handheld #journal-count{font-size:16px}}

.handheld .screen-bottom>span{font-family:'VT323',monospace;font-size:clamp(10px,2.6cqw,21px);letter-spacing:0;text-transform:none}
.handheld #journal #journal-detail{grid-template-columns:111px minmax(0,1fr);grid-template-rows:111px minmax(0,1fr) 30px}.handheld #journal .journal-portrait{width:111px;height:111px}.mini-nickname{display:block;margin-top:6px;font:21px/1 'Micro 5',monospace;text-transform:uppercase;color:#64573d}
@container(max-width:420px){.handheld #journal.reading-mini #journal-detail{grid-template-columns:63px minmax(0,1fr);grid-template-rows:63px minmax(0,1fr) 25px}.handheld #journal.reading-mini .journal-portrait{width:63px;height:63px}.mini-nickname{font-size:18px;margin-top:3px}}
/* Browsing the residents is also available outside the playable console. */
.mini-gallery{margin-top:16px}.town-intro #roster{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:9px 6px}.mini-gallery .visitor{min-width:0;padding:3px;background:#fff5d7;border:1px solid #665637;box-shadow:2px 2px 0 #c5a449}.mini-gallery .visitor img{width:100%;aspect-ratio:1}.mini-gallery .visitor .gallery-name{display:block;font:14px/1 'Micro 5',monospace;text-transform:uppercase;letter-spacing:0;padding:5px 0 0;overflow-wrap:anywhere}.mini-gallery .visitor .gallery-number{display:block;padding:3px 0 1px;font:15px/1 'VT323',monospace;letter-spacing:0;color:#44405a}.mini-gallery #more,.collection-cta{display:flex;justify-content:space-between;width:100%;gap:10px;padding:11px 14px;font:600 19px 'Barlow Condensed',sans-serif;letter-spacing:.3px;background:#fff;color:#252540;border:2px solid #252540;box-shadow:3px 3px 0 #726289}.mini-gallery #more{margin-top:16px;background:#9db3fa}.mini-gallery #more:hover,.collection-cta:hover{background:#e5dbf4}.town-help{align-self:stretch;display:flex;flex-direction:column;width:100%}.collection-links{margin-top:auto;padding-top:24px;padding-bottom:5px}.town-help #save-status{font:17px/1.15 'VT323',monospace;letter-spacing:0;text-transform:none;color:#625842;margin:14px 0 0}.town-intro #discovery-count{margin-bottom:12px}.handheld #profile.gallery-profile{position:fixed;inset:0!important;margin:auto;width:460px;max-width:calc(100vw - 30px);max-height:85dvh;overflow:auto}.handheld #profile.gallery-profile .profile-body{max-height:none}
@media(max-width:800px){.town-intro,.town-help{grid-column:1/-1;max-width:560px;width:100%;justify-self:center}.town-intro #roster{gap:10px}.mini-gallery .visitor .gallery-name{font-size:18px}.collection-links{padding-top:0}.town-help{display:block}}
#profile #profile-data,#profile #profile-data p{font:22px/1.15 'VT323',monospace;text-transform:none}#profile #profile-name{font:28px/1 'Micro 5',monospace;text-transform:uppercase}

/* Focused play view scales the shell, without changing world coordinates. */
#expand-game{position:absolute;right:7%;top:calc(1.8% - 4px);z-index:45;width:30px;height:30px;padding:0;border:1px solid #667db8;border-radius:3px;background:#afc2ff;color:#252540;font:24px/1 monospace;display:grid;place-items:center;cursor:pointer}#expand-game:hover{background:#fff4d7}#expand-game:focus-visible{outline:2px solid #252540;outline-offset:2px}
body.game-expanded{overflow:hidden}body.game-expanded header,body.game-expanded .town-intro,body.game-expanded .town-help,body.game-expanded footer{visibility:hidden}body.game-expanded main.console-page{position:fixed;inset:0;z-index:50;display:block;padding:0;overflow:hidden;background:#f4d471}body.game-expanded .handheld{position:absolute;left:50%;top:12px;transform:translateX(-50%);width:min(96vw,calc((100dvh - 24px) * 1064 / 830));max-width:none}body.game-expanded .town-intro,body.game-expanded .town-help,body.game-expanded footer{display:none}
@media(max-width:560px){#expand-game{width:24px;height:24px;font-size:20px;top:calc(1.2% - 4px)}body.game-expanded .handheld{top:50%;transform:translate(-50%,-32%);width:min(98vw,calc((100dvh - 24px) * 1064 / 830))}}

/* Keep speech inside the visible map, with its tail following the speaker. */
.mini-bubble{width:max-content;white-space:normal;overflow-wrap:anywhere}
.mini-bubble::after{left:calc(var(--bubble-tail,50%) - 3px)}
.mini-bubble.bubble-below::after{top:-4px;bottom:auto;transform:rotate(225deg)}
/* Enlarging the screen scales the journal too, leaving 20% more room. */
body.game-expanded .handheld #journal{zoom:var(--journal-scale,1);width:100%;height:100%;right:auto;bottom:auto}
.town-help{position:relative}
.town-help .zoom-hint{position:absolute;top:8px;left:-12px;margin:0;display:flex;align-items:center;gap:6px;font:18px/1.1 'VT323',monospace;letter-spacing:0;text-transform:none;color:#9c4b0b;white-space:nowrap}
.zoom-hint span{font:26px/1 monospace}
@media(max-width:800px){.town-help .zoom-hint{display:none}}

/* Let the authored bar pixels and stepped bezel remain visible. */
.handheld .console{left:calc(74 / 1064 * 100%);top:calc(85 / 1329 * 100%);width:calc(916 / 1064 * 100%);height:calc(696 / 1329 * 100%);background:transparent}
.handheld .screen-top,.handheld .screen-bottom{background:transparent}
.shell-q{left:72.2%;top:70.4%;width:11.6%;height:8.4%}
.shell-e{left:83.6%;top:76.5%;width:11.4%;height:8.6%}
body.game-expanded .handheld #area-map{zoom:1.4;width:100%;height:100%;right:auto;bottom:auto}

.pause-bars{display:inline-block;width:.42em;height:.65em;border-left:.12em solid currentColor;border-right:.12em solid currentColor;vertical-align:-.02em;margin-right:.15em}

/* Token IDs sit just below the Mini, separate from speech above its head. */
.mini-bubble.token-label{font-size:11px;line-height:1;padding:2px 4px;box-shadow:none}
.mini-bubble.token-label::after{display:none}

/* Companion card to the field journal. */
dialog#profile{background:#faf1d6;color:#101d31;border:3px solid #20251f;border-radius:0;padding:4px;box-shadow:inset 0 0 0 1px #b0a889,4px 4px 0 #20251f66}
dialog#profile .dialog-bar{background:transparent;border-bottom:2px solid #20251f;padding:2px 6px 5px;gap:8px;color:#101d31;font:24px/1 'Micro 5',monospace;letter-spacing:0}
dialog#profile .dialog-bar small{margin-left:auto;font:15px/1 'VT323',monospace;white-space:nowrap;color:#64573d}
dialog#profile .dialog-bar button{font:30px/1 'Micro 5',monospace;color:#101d31;background:transparent;border:0;box-shadow:none;width:25px;min-height:25px;padding:0}
dialog#profile .profile-body{padding:10px 6px 6px;gap:12px}
dialog#profile .portrait-wrap{border:3px solid #20251f;border-radius:0;box-shadow:2px 2px 0 #b0a889;background:#dfd5b7}
dialog#profile #profile-name{font:28px/1 'Micro 5',monospace;margin:0;text-transform:uppercase;letter-spacing:0}
dialog#profile #profile-nickname{font:21px/1 'Micro 5',monospace;color:#64573d;margin:3px 0 8px;text-transform:uppercase}
dialog#profile #profile-data{font:20px/1.15 'VT323',monospace;color:#101d31;padding:8px;border:3px double #343829;background:#fff8e5;max-height:200px;overflow-y:auto;scrollbar-width:thin;scrollbar-color:#99906e #eee4c6;text-wrap:pretty}
dialog#profile .primary{font:18px/1 'Micro 5',monospace;background:#173b63;color:#fff9e7;border:3px double #fff1d0;outline:1px solid #232920;border-radius:0;box-shadow:none;white-space:normal;text-align:center;justify-content:center;padding:5px 2px}
dialog#profile .primary:hover{background:#24517e}
@media(max-width:420px){dialog#profile .profile-body{grid-template-columns:88px minmax(0,1fr);gap:9px}dialog#profile .portrait-wrap{width:88px;height:88px}dialog#profile .dialog-bar{font-size:22px}dialog#profile .dialog-bar small{font-size:13px}dialog#profile #profile-data{font-size:18px;padding:6px;max-height:160px}}
/* Compact profile card in the unexpanded console; gallery cards keep their size. */
body:not(.game-expanded) .handheld dialog#profile:not(.gallery-profile){width:310px;max-width:calc(100% - 16px);padding:3px}
body:not(.game-expanded) .handheld #profile:not(.gallery-profile) .dialog-bar{font-size:20px;padding:1px 4px 3px;gap:5px}
body:not(.game-expanded) .handheld #profile:not(.gallery-profile) .dialog-bar small{font-size:12px}
body:not(.game-expanded) .handheld #profile:not(.gallery-profile) .profile-body{grid-template-columns:80px minmax(0,1fr);padding:7px 4px 4px;gap:9px}
body:not(.game-expanded) .handheld #profile:not(.gallery-profile) .portrait-wrap{width:80px;height:80px;border-width:2px}
body:not(.game-expanded) .handheld #profile:not(.gallery-profile) #profile-name{font-size:24px}
body:not(.game-expanded) .handheld #profile:not(.gallery-profile) #profile-nickname{font-size:18px;margin:2px 0 5px}
body:not(.game-expanded) .handheld #profile:not(.gallery-profile) #profile-data{font-size:18px;line-height:1.1;padding:5px;max-height:125px}
body:not(.game-expanded) .handheld #profile:not(.gallery-profile) .primary{font-size:16px;padding:3px 1px;min-height:30px}
body:not(.game-expanded) .handheld #profile:not(.gallery-profile) .profile-identity{gap:7px}
body:not(.game-expanded) .handheld #profile.gallery-profile{width:380px}
body:not(.game-expanded) .handheld #profile.gallery-profile .profile-body{grid-template-columns:92px minmax(0,1fr);gap:10px;padding:8px 5px 5px}
body:not(.game-expanded) .handheld #profile.gallery-profile .portrait-wrap{width:92px;height:92px}
body:not(.game-expanded) .handheld #profile.gallery-profile #profile-data{font-size:19px;max-height:160px;padding:6px}
body:not(.game-expanded) .handheld #profile.gallery-profile .dialog-bar{font-size:21px}
body:not(.game-expanded) .handheld #profile.gallery-profile .dialog-bar small{font-size:13px}
body:not(.game-expanded) .handheld #profile.gallery-profile .primary{font-size:16px}

/* Initial profile focus announces its heading without selecting an action. */
#profile #profile-name:focus{outline:none}
#mobile-nav-toggle{display:none}
/* Portrait phone shell: coordinates follow the 1179 × 2556 authored PNG. */
@media(max-width:600px) and (orientation:portrait){
 body{background:#9db3fa}
 header{position:absolute;z-index:60;top:env(safe-area-inset-top,0px);left:50%;transform:translateX(-50%);width:min(100%,calc((100svh - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px)) * 1179 / 2556));height:calc(min(100vw,(100svh - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px)) * 1179 / 2556) * .193);padding:0 5%;background:transparent;display:flex;justify-content:space-between;gap:0;border:0}
 header .brand img{width:28px;height:28px}
 #mobile-nav-toggle{display:flex;flex-direction:column;justify-content:center;gap:5px;min-width:44px;min-height:44px;padding:8px;border:0;background:transparent;box-shadow:none}
 #mobile-nav-toggle span{display:block;width:26px;height:3px;background:white}
 header nav{display:none;position:absolute;top:90%;left:4%;right:4%;max-height:70svh;overflow:auto;padding:16px;background:#faf1d6;border:3px solid #20251f;box-shadow:4px 4px 0 #20251f55;align-items:stretch;gap:0}
 body.phone-navigation-open header nav{display:flex;flex-direction:column}
 header nav a,header nav summary{display:block;color:#101d31;font:25px/1.1 'Micro 5',monospace;padding:10px 4px!important;border:0!important;min-height:40px}
 header nav .nav-submenu{position:static;min-width:0;width:auto;background:#fff8e5;border:0;box-shadow:none;padding:0 10px}
 main.console-page{display:grid;grid-template-columns:1fr;padding:env(safe-area-inset-top,0px) 0 env(safe-area-inset-bottom,0px);gap:20px;background:#9db3fa}
 .handheld{grid-column:1;grid-row:1;width:min(100%,calc((100svh - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px)) * 1179 / 2556));max-width:none;justify-self:center}
 .handheld .console{left:calc(82 / 1179 * 100%);top:calc(322 / 2556 * 100%);width:calc(1015 / 1179 * 100%);height:calc(1319 / 2556 * 100%);grid-template-rows:46fr 1221fr 52fr}
 .handheld .screen-top,.handheld .screen-bottom{font-size:clamp(12px,3.8cqw,17px);letter-spacing:0;padding:0 3%;gap:4px}
 .handheld .screen-bottom>span{font-size:clamp(11px,3.5cqw,15px)}
 .handheld .world canvas{height:110%;width:auto;min-width:170%;max-width:none;aspect-ratio:16/9}
 .handheld .world::before{width:100%;height:100%}
 #expand-game{display:none}
 .shell-controls [data-move=up]{left:14.8%;top:72.4%;width:10.4%;height:4.3%}
 .shell-controls [data-move=left]{left:6.3%;top:76.2%;width:10.8%;height:4.3%}
 .shell-controls [data-move=right]{left:22.8%;top:76.2%;width:10.8%;height:4.3%}
 .shell-controls [data-move=down]{left:14.8%;top:80%;width:10.4%;height:4.3%}
 .shell-q{left:63.4%;top:72.4%;width:15%;height:6.7%}
 .shell-e{left:79%;top:77.2%;width:15.3%;height:7%}
 .town-intro,.town-help{grid-column:1;margin:0 20px;max-width:none;padding:0;justify-self:stretch}
 .town-intro{grid-row:2}.town-help{grid-row:3}.console-page footer{padding:12px 20px;margin:0}
 .handheld #journal,.handheld #area-map{zoom:1!important}
 .handheld #journal .journal-mini{flex-basis:42px;min-height:42px;font-size:23px}
 .handheld #journal .journal-mini img{width:34px;height:34px}
 .handheld #journal.reading-mini #journal-detail{grid-template-columns:86px minmax(0,1fr);grid-template-rows:86px minmax(0,1fr) 36px;padding:6px;gap:7px}
 .handheld #journal.reading-mini .journal-portrait{width:86px;height:86px}
 .handheld #journal #journal-detail .journal-bio{font-size:20px;line-height:1.1;padding:7px}
 .handheld #journal .explorer-title>button,.handheld #area-map .explorer-title>button{min-width:32px;min-height:32px}
 .handheld #area-map .map-tools button{min-height:30px;font-size:18px;padding:3px 5px}
 .handheld #area-map .map-legend{gap:5px;font-size:15px}.handheld #area-map .explorer-foot{font-size:15px}
 .handheld .game-menu-panel{max-width:78cqw;max-height:85cqw;overflow-y:auto}
 body:not(.game-expanded) .handheld #profile:not(.gallery-profile){width:calc(100% - 12px);max-width:calc(100% - 12px)}
 body:not(.game-expanded) .handheld #profile:not(.gallery-profile) .profile-body{grid-template-columns:76px minmax(0,1fr);gap:7px}
 body:not(.game-expanded) .handheld #profile:not(.gallery-profile) .portrait-wrap{width:76px;height:76px}
 body:not(.game-expanded) .handheld #profile:not(.gallery-profile) #profile-data{max-height:160px;font-size:19px}
 body:not(.game-expanded) .handheld #profile:not(.gallery-profile) .dialog-bar small{display:none}
 .handheld #profile #close{min-width:32px;min-height:32px}
}
@media(max-width:600px) and (orientation:portrait){
 header{height:min(19.34vw,8.92svh);min-height:44px}
 main.console-page{grid-template-columns:minmax(0,1fr)}
 .town-intro,.town-help{min-width:0;width:auto;max-width:calc(100% - 40px)}
 .mini-gallery #roster{min-width:0}
}
/* Full-width phone presentation, aligned with the main site's mobile header. */
@media(max-width:600px) and (orientation:portrait){
 body,main.console-page{background:#f4d471}
 .handheld{width:100%;max-width:none;justify-self:stretch}
 header{top:0;left:0;transform:none;width:100%;height:calc(70px + env(safe-area-inset-top,0px));min-height:70px;padding:env(safe-area-inset-top,0px) 15px 0;background:white;justify-content:space-between}
 header .brand img{display:block;width:40px;height:40px;box-sizing:border-box;padding:8px;background:#9db3fa;border-radius:50%;object-fit:contain}
 #mobile-nav-toggle{width:44px;height:44px;padding:8px;gap:6px;margin-right:-8px}
 #mobile-nav-toggle span{width:28px;height:3px;background:#111}
 #mobile-nav-toggle span:nth-child(3){display:none}
 header nav{top:100%;left:0;right:0;max-height:calc(100svh - 70px - env(safe-area-inset-top,0px));background:white;border-width:0 0 2px;box-shadow:none;padding:8px 15px}
}
/* Journal dividers remain inside its fixed screen-sized drawer. */
.handheld #journal[open]{grid-template-rows:auto auto minmax(0,1fr) auto}
.handheld #journal [hidden]{display:none!important}
.journal-tabs{display:flex;gap:5px;padding:4px 3px 0;border-bottom:2px solid #20251f}
.journal-tabs button{display:grid;place-items:center;width:40px;height:30px;padding:2px;border:2px solid #777057;border-bottom:0;background:#e1d7b9;color:#343829;font:26px/1 'Micro 5',monospace;box-shadow:none}
.journal-tabs button[aria-selected=true]{background:#fff8e5;color:#173b63;border-color:#20251f}
.journal-tabs button:disabled{opacity:.35;cursor:default}
.journal-tabs svg{width:23px;height:23px;shape-rendering:crispEdges}
#journal-achievements{min-height:0;overflow-y:auto;padding:6px 9px;scrollbar-width:thin;scrollbar-color:#99906e #eee4c6;text-transform:none}
.achievement-summary{margin:0 0 8px;font:17px/1.1 'VT323',monospace}
.achievement{display:flex;gap:10px;align-items:center;border-bottom:1px solid #b0a889;padding:9px 3px}
.achievement-star{flex:0 0 26px;color:#a67313;font-size:28px}
#journal .achievement h3{margin:0 0 3px;font:24px/1 'Micro 5',monospace;text-transform:uppercase}
#journal .achievement p{margin:0;font:18px/1.1 'VT323',monospace}
.achievement.locked{color:#817a65}.achievement.locked .achievement-star{color:#99917a}
@container(max-width:420px){.handheld #journal[open]{grid-template-rows:auto auto minmax(0,1fr)}.journal-tabs button{width:44px;height:32px}}

/* Sealed keepsakes, with earned milestones at the top. */
#journal .achievement{gap:10px;margin:0 0 8px;padding:10px 9px;border:1px solid #b5a989;background:#fff8e5;box-shadow:2px 2px 0 #cfc3a4;align-items:flex-start}
#journal .achievement>div{flex:1;min-width:0}
#journal .achievement.locked{background:#eee4ca;border:1px dashed #b6aa8d;color:#786f57;box-shadow:none}
#journal .achievement.locked h3{color:#71674e;font-size:22px}
#journal .achievement.locked p{color:#82785f;font-size:16px}
#journal .achievement.earned{border-color:#839267;background:#f0f1d5}
.achievement-star svg{display:block;width:18px;height:21px;margin:3px auto;shape-rendering:crispEdges}
.achievement-badge{flex:none;padding:3px 5px;border:1px solid #b8ad92;color:#81775e;font:15px/1 'VT323',monospace;white-space:nowrap}
.earned .achievement-badge{color:#4a6539;border-color:#9ba980;background:#e0e9c7}
@container(max-width:420px){#journal .achievement{gap:7px;padding:9px 6px;flex-wrap:wrap}.achievement-badge{margin-left:33px}.achievement-star{flex-basis:23px}}

/* Speech sits close to the artwork, in the same pixel font as Mini stories. */
.mini-bubble:not(.token-label){font-family:'VT323',monospace;font-size:18px;font-weight:400;line-height:1;letter-spacing:0;text-transform:none;padding:3px 6px}
/* Speech is 25% larger in the enlarged console. */
body.game-expanded .mini-bubble:not(.token-label){font-size:22.5px;padding:3.75px 7.5px;border-width:1.25px;box-shadow:1.25px 2.5px 0 #20293f33}
body.game-expanded .mini-bubble:not(.token-label)::after{width:6.25px;height:6.25px;bottom:-5px;left:calc(var(--bubble-tail,50%) - 3.75px);border-width:1.25px}
.achievement-toast{position:absolute;z-index:45;top:6px;left:50%;transform:translateX(-50%);width:min(330px,calc(100% - 16px));display:flex;gap:9px;text-align:left;padding:9px 11px;border:2px solid #343829;background:#fff4cf;color:#20293f;box-shadow:3px 3px 0 #34382955;cursor:pointer}
.achievement-toast[hidden]{display:none}.notice-star{color:#b57b13;font-size:27px}.achievement-toast>span:last-child{min-width:0}.notice-label{display:block;font:16px/1 'Micro 5',monospace;text-transform:uppercase;color:#7c6538}.achievement-toast strong{display:block;font:23px/1 'Micro 5',monospace;text-transform:uppercase;margin:3px 0}.notice-description{display:block;font:17px/1.05 'VT323',monospace;text-transform:none}
#open-journal.has-achievement::after{content:'';display:inline-block;width:7px;height:7px;margin-left:5px;background:#edbb45;border:1px solid #fff2b9}
.achievement-announcer{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}

.achievement-toast{padding:0;gap:0;cursor:default}
.achievement-toast .notice-open{display:flex;gap:9px;flex:1;min-width:0;padding:9px 8px 9px 11px;border:0;background:transparent;color:inherit;text-align:left;box-shadow:none;cursor:pointer}
.notice-open>span:last-child{min-width:0}
.achievement-toast .notice-close{align-self:flex-start;flex:0 0 30px;min-height:30px;padding:0;border:0;background:transparent;color:#68552e;font:26px/1 'VT323',monospace;box-shadow:none;cursor:pointer}
.achievement-toast .notice-close:hover{background:#eadba9}
/* Authored pixel-art tool dock. Transparent hit targets preserve the supplied artwork. */
.handheld .screen-bottom{position:relative;display:flex;justify-content:center;overflow:visible;z-index:46}
.player-dock{position:absolute;bottom:0;left:50%;transform:translateX(-50%);width:clamp(114px,22cqw,228px);aspect-ratio:57/25;display:flex;align-items:stretch;transition:width .18s ease;isolation:isolate}
.player-dock img{position:absolute;inset:0;width:100%;height:100%;image-rendering:pixelated;pointer-events:none;z-index:-1}
.handheld .player-dock button{flex:1;min-width:0;border:0;background:transparent;padding:0;box-shadow:none;position:relative;cursor:pointer}
.player-dock button:hover{outline:2px solid #f7d575;outline-offset:-5px}.player-dock button[aria-expanded=true]{box-shadow:inset 0 -3px #edc462}
.panel-open .player-dock{width:clamp(80px,12cqw,135px);max-height:100%;height:100%;aspect-ratio:57/25}
.handheld .screen-bottom>.dock-status{position:absolute;left:8px;bottom:3px;font-size:clamp(9px,1.8cqw,15px);max-width:32%;line-height:1;text-align:left}
.panel-open .dock-status{visibility:hidden}
.player-dock #open-journal.has-achievement::after{position:absolute;top:5px;right:4px;margin:0}
.playfield.map-open::after{content:'';position:absolute;inset:0;background:#15152699;z-index:35}
.handheld #area-map,body.game-expanded .handheld #area-map{zoom:1;inset:5% 8%;margin:auto;width:84%;height:90%;max-width:560px;max-height:620px;box-shadow:4px 4px 0 #151526, inset 0 0 0 2px #b8ad88;border:3px solid #292b27;padding:7px}
.handheld #area-map .map-tools{flex-wrap:wrap}.handheld #area-map .map-tools button{border:2px solid #797153;border-radius:0;box-shadow:1px 1px 0 #aaa17e;font-family:'Micro 5',monospace}
.handheld #explored-map svg{shape-rendering:crispEdges;font-family:'VT323',monospace}.handheld #area-map .explorer-title{align-items:center}.handheld #area-map .explorer-foot{font-size:14px}
.handheld #backpack{position:absolute;inset:0;margin:0;width:100%;height:100%;max-width:none;max-height:none;background:#faf1d6;border:2px solid #292b27;border-radius:0;padding:7px;overflow:hidden;z-index:40;color:#18243a}
.handheld #backpack[open]{display:grid;grid-template-rows:auto auto minmax(0,1fr) auto}
#backpack .explorer-title{padding:3px 5px;background:transparent;border-bottom:2px solid #292b27}#backpack h2{font:28px/1 'Micro 5',monospace}#backpack .bag-intro,#backpack .explorer-foot{font:17px/1.1 'VT323',monospace;margin:5px 0;padding:3px;text-transform:none}
#bag-items{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;overflow:auto;min-height:0;align-content:start;scrollbar-width:thin}
.bag-item{display:flex;gap:8px;padding:8px;border:2px solid #a89b77;background:#fff8e6}.bag-item.locked{opacity:.6;background:#e8dfc4}.bag-slot{display:grid;place-items:center;flex:0 0 38px;height:38px;border:3px double #6e654e;background:#d5c6a0;font:27px 'Micro 5',monospace;color:#745321}.bag-item h3{font:23px/1 'Micro 5',monospace;margin:0}.bag-item p{font:17px/1.1 'VT323',monospace;margin:4px 0}.bag-item small{font:15px 'VT323',monospace;color:#706141}
@container(max-width:420px){#bag-items{grid-template-columns:1fr}.handheld #area-map{inset:4%;width:92%;height:92%}.handheld #area-map .map-tools button{font-size:16px;min-height:25px}.handheld #area-map .map-legend{font-size:13px}.handheld .screen-bottom>.dock-status{font-size:10px}.player-dock{width:114px}}
@media(prefers-reduced-motion:reduce){.player-dock{transition:none}}
.panel-open .player-dock{width:auto;height:100%;aspect-ratio:57/25;max-width:none}
@container(max-width:600px){.handheld #area-map .explorer-title{padding:0 2px 3px}.handheld #area-map h2{font-size:20px}.handheld #map-summary{font-size:12px}.handheld #area-map .map-tools{gap:2px;padding:2px}.handheld #area-map .map-tools button{font-size:13px;min-height:18px;padding:1px 3px}.handheld #area-map .map-legend{font-size:11px;gap:4px;margin:2px}.handheld #area-map .explorer-foot{font-size:11px;padding:2px}.handheld #area-map{padding:4px}.handheld #map-home-view{display:none}#bag-items{grid-template-columns:1fr}.bag-item{padding:5px}.bag-item h3{font-size:21px}.bag-item p{font-size:16px}.handheld #backpack .explorer-foot{font-size:13px}.handheld #backpack .explorer-title{padding:0 3px}.handheld #backpack h2{font-size:23px}}
.player-dock,.panel-open .player-dock{aspect-ratio:58/26}
.player-dock .dock-marker{z-index:2;display:none;pointer-events:none}
.player-dock:has(#open-journal:hover,#open-journal:focus-visible) .dock-marker{display:block;clip-path:inset(0 66.6667% 0 0)}
.player-dock:has(#open-backpack:hover,#open-backpack:focus-visible) .dock-marker{display:block;clip-path:inset(0 33.3333% 0 33.3333%)}
.player-dock:has(#open-map:hover,#open-map:focus-visible) .dock-marker{display:block;clip-path:inset(0 0 0 66.6667%)}
.player-dock button:hover{outline:none}
.dock-progress{position:absolute;inset:0;pointer-events:none;z-index:3}
.dock-progress i{display:none;position:absolute;top:15.384615%;width:3.448276%;height:3.846154%;background:#76ef68}
.dock-progress i.lit{display:block}
@media(min-width:601px){body:not(.game-expanded) .handheld #area-map[open]{grid-template-columns:62px minmax(0,1fr) 58px;grid-template-rows:auto minmax(0,1fr) auto;column-gap:5px;width:94%;inset:3%;height:94%;max-width:none}
body:not(.game-expanded) #area-map .explorer-title{grid-column:1/-1}
body:not(.game-expanded) .handheld #area-map .map-tools{grid-column:1;grid-row:2;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-content:center;gap:3px;padding:2px 0}
body:not(.game-expanded) .handheld #area-map .map-tools button{font-size:14px;min-height:22px;padding:1px;white-space:normal}
body:not(.game-expanded) #map-centre,body:not(.game-expanded) #map-home-view,body:not(.game-expanded) #map-return-home{grid-column:1/-1}
body:not(.game-expanded) .handheld #map-home-view{display:block}
body:not(.game-expanded) #explored-map{grid-column:2;grid-row:2;align-items:center}
body:not(.game-expanded) .handheld #area-map .map-legend{grid-column:3;grid-row:2;display:flex;flex-direction:column;justify-content:center;align-items:flex-start;font-size:13px;gap:10px;margin:0;text-align:left}
body:not(.game-expanded) #area-map .explorer-foot{grid-column:1/-1;grid-row:3}
}
@media(min-width:601px){
 body:not(.game-expanded) #area-map #map-west{grid-column:1;grid-row:1}
 body:not(.game-expanded) #area-map #map-east{grid-column:2;grid-row:1}
 body:not(.game-expanded) #area-map #map-north{grid-column:1;grid-row:2}
 body:not(.game-expanded) #area-map #map-south{grid-column:2;grid-row:2}
}

/* Anchor the unread badge to the journal artwork at every dock size. */
.player-dock #open-journal.has-achievement::after{top:30.7692%;right:10%;width:15.5172%;height:11.5385%;min-width:3px;min-height:3px;margin:0;box-sizing:border-box;border:1px solid #5b4020;background:#ffd66b;z-index:4;pointer-events:none}

/* Every explorer panel floats inside the screen with a dimmed surround. */
.handheld #journal,body.game-expanded .handheld #journal,.handheld #backpack,body.game-expanded .handheld #backpack{zoom:1!important;inset:5% 6%;margin:auto;width:88%;height:90%;max-width:720px;max-height:620px;box-shadow:4px 4px 0 #151526,inset 0 0 0 2px #b8ad88;border:3px solid #292b27;padding:7px}
.explorer-dialog h2:focus{outline:none}
@container(max-width:600px){.handheld #journal,.handheld #backpack{inset:3%;width:94%;height:94%;padding:4px}}
@media(max-width:600px) and (orientation:portrait){.handheld #journal,.handheld #backpack{inset:3%;width:94%;height:94%}}
/* Desktop journal density follows the console viewing mode. */
@media(min-width:601px){
 body:not(.game-expanded) .handheld #journal .explorer-title h2{font-size:21px}
 body:not(.game-expanded) .handheld #journal-count{font-size:14px}
 body:not(.game-expanded) .handheld #journal .journal-tabs button{height:24px;width:32px}
 body:not(.game-expanded) .handheld #journal #journal-detail{grid-template-columns:60px minmax(0,1fr);grid-template-rows:60px minmax(0,1fr) 23px;gap:4px;padding:4px}
 body:not(.game-expanded) .handheld #journal .journal-portrait{width:60px;height:60px}
 body:not(.game-expanded) .handheld #journal #journal-detail h3{font-size:20px}
 body:not(.game-expanded) .handheld #journal .mini-nickname{font-size:16px}
 body:not(.game-expanded) .handheld #journal #journal-detail .journal-bio{font-size:16px;padding:4px}
 body:not(.game-expanded) .handheld #journal #journal-detail .primary{font-size:17px}
 body:not(.game-expanded) .handheld #journal .journal-mini{flex-basis:28px;min-height:28px;font-size:18px}
 body:not(.game-expanded) .handheld #journal .journal-mini img{width:23px;height:23px}
 body:not(.game-expanded) .handheld #journal .explorer-foot{font-size:12px}
 body.game-expanded .handheld #journal .explorer-title h2{font-size:34px}
 body.game-expanded .handheld #journal-count{font-size:23px}
 body.game-expanded .handheld #journal #journal-detail{grid-template-columns:138px minmax(0,1fr);grid-template-rows:138px minmax(0,1fr) 37px}
 body.game-expanded .handheld #journal .journal-portrait{width:138px;height:138px}
 body.game-expanded .handheld #journal #journal-detail h3{font-size:31px}
 body.game-expanded .handheld #journal .mini-nickname{font-size:26px}
 body.game-expanded .handheld #journal #journal-detail .journal-bio{font-size:25px}
 body.game-expanded .handheld #journal #journal-detail .primary{font-size:27px}
 body.game-expanded .handheld #journal .journal-mini{flex-basis:48px;min-height:48px;font-size:27px}
 body.game-expanded .handheld #journal .journal-mini img{width:40px;height:40px}
 body.game-expanded .handheld #journal .explorer-foot{font-size:20px}
}
@media(min-width:601px){body:not(.game-expanded) .handheld #journal-results{display:none}body:not(.game-expanded) .handheld #journal .journal-library{grid-template-rows:auto auto minmax(0,1fr) auto}body:not(.game-expanded) .handheld #journal-search{height:21px;font-size:17px}body:not(.game-expanded) .handheld #journal .journal-library label{font-size:16px}body:not(.game-expanded) .handheld #journal .journal-pages{font-size:16px}body:not(.game-expanded) .handheld #journal .journal-pages button{min-height:18px;font-size:17px}}

/* Four supplied marker frames, kept aligned with the original dock artwork. */
.player-dock .dock-marker{opacity:0;animation:dock-marker-frame .4s steps(1,end) infinite}
.player-dock .dock-marker-frame-1{animation-delay:0s}
.player-dock .dock-marker-frame-2{animation-delay:-.3s}
.player-dock .dock-marker-frame-3{animation-delay:-.2s}
.player-dock .dock-marker-frame-4{animation-delay:-.1s}
@keyframes dock-marker-frame{0%{opacity:1}25%,100%{opacity:0}}
@media(prefers-reduced-motion:reduce){.player-dock .dock-marker{animation:none;opacity:0}.player-dock .dock-marker-frame-1{opacity:1}}

/* Inventory uses the supplied backpack artwork at its original proportions. */
#bag-items{display:flex;flex-direction:column;align-items:center;gap:8px;overflow:auto;padding:4px;justify-content:center}
.bag-scene{position:relative;width:min(100%,430px);aspect-ratio:107/57;flex-shrink:0}
.bag-scene>img{display:block;width:100%;height:100%;image-rendering:pixelated}
.bag-inventory{position:absolute;left:50.47%;top:7.02%;width:46.73%;height:87.72%;display:grid;grid-template-columns:repeat(3,1fr);grid-template-rows:repeat(3,1fr);gap:2%}
.handheld .bag-inventory-slot{padding:0;border:0;border-radius:0;background:none;box-shadow:none;min-width:0;min-height:0;font:clamp(16px,4cqw,38px)/1 'Micro 5',monospace;color:#38271e;cursor:pointer}
.handheld .bag-inventory-slot:disabled{opacity:1;cursor:default}
.handheld .bag-inventory-slot:not(:disabled):hover,.handheld .bag-inventory-slot[aria-pressed=true]{outline:2px solid #fff0ad;outline-offset:-3px}
.bag-detail{width:100%;text-align:center;min-height:54px}.bag-detail h3{font:24px/1 'Micro 5',monospace;margin:0 0 4px}.bag-detail p{font:18px/1.1 'VT323',monospace;margin:0;text-transform:none}
@container(max-width:600px){#bag-items{gap:3px;padding:0;justify-content:flex-start}.bag-scene{width:min(75%,230px)}.bag-detail{min-height:0}.bag-detail h3{font-size:19px}.bag-detail p{font-size:15px}}
@media(min-width:601px){body:not(.game-expanded) .bag-scene{width:min(96%,300px)}body:not(.game-expanded) .bag-detail h3{font-size:17px}body:not(.game-expanded) .bag-detail p{font-size:13px}}

@media(min-width:601px){body.game-expanded .bag-scene{width:min(94%,600px)}#bag-items{justify-content:flex-start}.bag-detail{flex-shrink:0}}
@media(min-width:601px){body:not(.game-expanded) #backpack[open]{grid-template-rows:auto minmax(0,1fr)}body:not(.game-expanded) #backpack>.bag-intro,body:not(.game-expanded) #backpack>.explorer-foot{display:none}}

/* Let the backpack artwork sit directly over the dimmed town. */
.handheld #backpack,body.game-expanded .handheld #backpack{background:transparent;border-color:transparent;box-shadow:none;color:#fff8e6}
.handheld #backpack[open]{grid-template-rows:auto auto minmax(0,1fr)}
#backpack .explorer-title{border-bottom:0;color:#fff8e6}
#backpack .explorer-title button{color:#fff8e6;background:transparent}
#backpack .bag-intro,#backpack .bag-detail{text-shadow:1px 2px #151526}
@media(min-width:601px){body:not(.game-expanded) #backpack[open]{grid-template-rows:auto minmax(0,1fr)}}

/* Reuse the first marker in the supplied bar artwork for inventory slots. */
.handheld .bag-inventory-slot{position:relative}
.handheld .bag-inventory-slot:not(:disabled):hover,.handheld .bag-inventory-slot[aria-pressed=true]{outline:none}
.bag-slot-marker{display:none;position:absolute;inset:0;overflow:hidden;pointer-events:none}
.bag-inventory-slot:not(:disabled):hover .bag-slot-marker,.bag-inventory-slot:focus-visible .bag-slot-marker,.bag-inventory-slot[aria-pressed=true] .bag-slot-marker{display:block}
.bag-slot-marker img{position:absolute;width:414.286%;height:185.714%;max-width:none;left:-28.571%;top:-57.143%;image-rendering:pixelated;opacity:0;animation:dock-marker-frame .4s steps(1,end) infinite}
.bag-slot-marker .bag-marker-frame-2{animation-delay:-.3s}.bag-slot-marker .bag-marker-frame-3{animation-delay:-.2s}.bag-slot-marker .bag-marker-frame-4{animation-delay:-.1s}
@media(prefers-reduced-motion:reduce){.bag-slot-marker img{animation:none}.bag-slot-marker .bag-marker-frame-1{opacity:1}}

/* Selection stays still; only pointer hover plays the marker frames. */
.bag-slot-marker img{animation:none;opacity:0}
.bag-slot-marker .bag-marker-frame-1{opacity:1}
.bag-inventory-slot:not(:disabled):hover .bag-slot-marker img{animation:dock-marker-frame .4s steps(1,end) infinite}
.bag-inventory-slot:not(:disabled):hover .bag-slot-marker .bag-marker-frame-2{animation-delay:-.3s}
.bag-inventory-slot:not(:disabled):hover .bag-slot-marker .bag-marker-frame-3{animation-delay:-.2s}
.bag-inventory-slot:not(:disabled):hover .bag-slot-marker .bag-marker-frame-4{animation-delay:-.1s}
@media(prefers-reduced-motion:reduce){.bag-inventory-slot:not(:disabled):hover .bag-slot-marker img{animation:none}}

.bag-equipped-art{position:absolute;inset:0;background-image:url('assets/backpack-equipped.png');background-size:642% 342%;background-position:60% 10%;image-rendering:pixelated;z-index:-1;pointer-events:none}
.handheld .bag-inventory-slot{isolation:isolate}.bag-slot-marker{z-index:2}
.bag-equip-popup{position:absolute;z-index:5;left:50%;bottom:4px;padding:3px;background:#faf1d6;border:2px solid #292b27;box-shadow:3px 3px #151526}
.bag-equip-popup[hidden]{display:none}.handheld .bag-equip-popup button{background:#faf1d6;color:#18243a;border:0;border-radius:0;font:22px/1 'Micro 5',monospace;padding:5px 10px;cursor:pointer}.handheld .bag-equip-popup button:hover{background:#b4d58b}

.bag-detail .bag-equip-popup{position:static;display:inline-block;margin:8px auto 4px;box-shadow:2px 2px #151526;text-shadow:none}.bag-detail .bag-equip-popup[hidden]{display:none}
/* Thin resting corners; animated artwork is reserved for mouse hover. */
.bag-inventory-slot:not(:hover) .bag-slot-marker img{visibility:hidden}
.bag-inventory-slot:not(:hover) .bag-slot-marker::after{content:"";position:absolute;inset:4%;background:linear-gradient(#fff,#fff) left top/25% 6% no-repeat,linear-gradient(#fff,#fff) left top/6% 25% no-repeat,linear-gradient(#fff,#fff) right top/25% 6% no-repeat,linear-gradient(#fff,#fff) right top/6% 25% no-repeat,linear-gradient(#fff,#fff) left bottom/25% 6% no-repeat,linear-gradient(#fff,#fff) left bottom/6% 25% no-repeat,linear-gradient(#fff,#fff) right bottom/25% 6% no-repeat,linear-gradient(#fff,#fff) right bottom/6% 25% no-repeat}

/* One animated inventory cursor, shared by pointer and keyboard selection. */
.handheld .bag-inventory-slot .bag-slot-marker{display:none!important}
.handheld .bag-inventory-slot[aria-pressed=true] .bag-slot-marker{display:block!important}
.handheld .bag-inventory-slot .bag-slot-marker::after{content:none}
.handheld .bag-inventory-slot .bag-slot-marker img{visibility:visible!important;animation:dock-marker-frame .4s steps(1,end) infinite;opacity:0}
.handheld .bag-inventory-slot .bag-slot-marker .bag-marker-frame-1{animation-delay:0s}
.handheld .bag-inventory-slot .bag-slot-marker .bag-marker-frame-2{animation-delay:-.3s}
.handheld .bag-inventory-slot .bag-slot-marker .bag-marker-frame-3{animation-delay:-.2s}
.handheld .bag-inventory-slot .bag-slot-marker .bag-marker-frame-4{animation-delay:-.1s}
.playfield.map-open::after{background:rgba(21,21,38,.9)}
@media(prefers-reduced-motion:reduce){.handheld .bag-inventory-slot .bag-slot-marker img{animation:none}.handheld .bag-inventory-slot .bag-slot-marker .bag-marker-frame-1{opacity:1}}

.handheld,.handheld *{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}.handheld input,.handheld textarea{-webkit-user-select:text;user-select:text}.handheld img{-webkit-user-drag:none}.slide-dpad{position:absolute;pointer-events:auto;touch-action:none;border-radius:50%;background:transparent;z-index:3;-webkit-tap-highlight-color:transparent}
@font-face{font-family:Daydream;src:url('assets/daydream-demo.otf') format('opentype');font-display:swap}
.handheld .explorer-dialog [data-close-explorer]{font-family:Daydream,monospace!important;font-size:18px;line-height:1}
.handheld #journal.book-journal{inset:0!important;margin:auto!important;width:var(--book-width)!important;height:auto!important;aspect-ratio:150/115;max-width:none!important;max-height:none!important;padding:0!important;border:0!important;border-radius:0;background:transparent url('assets/journal-book.png') center/100% 100% no-repeat!important;image-rendering:pixelated;box-shadow:none!important;container-type:size;color:#3c3040;overflow:hidden}
.handheld #journal.book-journal[open]{display:block!important}
#journal.book-journal .explorer-title{position:static;border:0;background:none;padding:0;height:0}
#journal.book-journal #journal-heading{display:block!important;position:absolute;left:8%;top:17%;width:36%;text-align:center;font:4cqw/1 'Micro 5',monospace!important;margin:0}
#journal.book-journal #journal-count{position:absolute;left:52%;top:16%;margin:0;font:2.6cqw/1 'Micro 5',monospace!important}
#journal.book-journal [data-close-explorer]{position:absolute;left:87%;top:10%;width:9%;height:10%;padding:0;border:0;background:transparent!important;color:white!important;font-size:4cqw!important;box-shadow:none;min-height:0;z-index:5}
#journal.book-journal .journal-tabs{position:absolute;left:12%;top:5%;width:28%;height:8%;display:flex;margin:0;padding:0;border:0;gap:0;background:none}
#journal.book-journal .journal-tabs button{width:33.333%;height:100%;min-height:0;padding:0;border:0;background:transparent;box-shadow:none;font-size:0;color:transparent}
#journal.book-journal .journal-tabs svg{visibility:hidden}
#journal.book-journal .journal-tabs button[aria-selected=true]{outline:none}
#journal.book-journal .journal-back,#journal.book-journal>.explorer-foot{display:none!important}
#journal.book-journal #journal-minis-panel{position:absolute;inset:0;display:block!important;padding:0;pointer-events:none}
#journal.book-journal #journal-minis-panel[hidden]{display:none!important}
#journal.book-journal .journal-library{position:absolute;left:8%;top:25%;width:36%;height:62%;display:grid!important;grid-template-rows:auto auto auto minmax(0,1fr) auto!important;padding:0!important;border:0;pointer-events:auto;gap:1cqw}
#journal.book-journal .journal-library label{font:2.8cqw/1 'Micro 5',monospace!important;margin:0}
#journal.book-journal #journal-search{height:5cqw!important;font:3cqw/1 'Micro 5',monospace!important;padding:0 1cqw;border:0;border-radius:0;background:#efb082;color:#473242}
#journal.book-journal #journal-results{display:block!important;font:2.3cqw/1 'Micro 5',monospace!important;min-height:0;margin:0}
#journal.book-journal #journal-grid{display:flex;flex-direction:column;overflow:auto;max-height:none;gap:0;padding:0;scrollbar-width:thin}
#journal.book-journal .journal-mini{flex:0 0 auto;min-height:4.8cqw!important;padding:.3cqw 1cqw!important;display:flex;flex-direction:row;gap:1cqw;font:3cqw/1 'Micro 5',monospace!important;background:transparent;border:0;border-bottom:1px solid #ce946c}
#journal.book-journal .journal-mini img{width:4.4cqw!important;height:4.4cqw!important}
#journal.book-journal .journal-mini[aria-pressed=true]{background:#efb082}
#journal.book-journal .journal-mini::before{display:none}
#journal.book-journal .journal-pages{margin:0;min-height:4cqw;font:2.4cqw/1 'Micro 5',monospace}
#journal.book-journal .journal-pages button{background:transparent;border:0;color:#f7eee0;font:4cqw/1 'Micro 5',monospace!important;min-height:0!important;padding:0 1cqw}
#journal.book-journal #journal-detail{position:absolute;left:52%;top:23%;width:41%;height:64%;display:block!important;border:0!important;padding:0!important;pointer-events:auto;overflow:hidden}
#journal.book-journal .journal-portrait{position:absolute;left:0;top:0;width:35%!important;height:31%!important;object-fit:contain;border:0;border-radius:0;background:#efb082}
#journal.book-journal #journal-detail h3{position:absolute;left:38%;top:0;width:62%;margin:0;font:4cqw/1 'Micro 5',monospace!important}
#journal.book-journal .mini-nickname{font:2.7cqw/1 'Micro 5',monospace!important;margin-top:1cqw;color:#473242}
#journal.book-journal #journal-detail .journal-bio{position:absolute;left:0;top:34%;width:100%;height:55%;margin:0;box-sizing:border-box;border:0;border-radius:0;background:#efb082;padding:1.3cqw!important;font:3cqw/1.1 'VT323',monospace!important;color:#3c3040;overflow:auto;scrollbar-width:thin;scrollbar-color:#cb9068 transparent}
#journal.book-journal #journal-detail .primary{position:absolute;left:22%;bottom:0;width:58%;height:9%;min-height:0;padding:0!important;border:0;outline:0;border-radius:0;background:#173b63;box-shadow:none;font:2.6cqw/1 'Micro 5',monospace!important;display:flex;align-items:center;justify-content:center}
#journal.book-journal #journal-achievements{position:absolute;inset:25% 8% 12%;overflow:auto;padding:0;background:none}
#journal.book-journal #journal-achievements .achievement{font-size:2.8cqw}

/* Keep book controls aligned with their painted tabs and page margins. */
#journal.book-journal .journal-tabs{left:12%;width:26%;z-index:3}
#journal.book-journal .journal-tabs button{flex:1 1 0;width:33.333%!important;max-width:none!important;min-width:0!important;height:100%!important}
#journal.book-journal .journal-mini{height:4.8cqw!important;flex-basis:4.8cqw!important;box-sizing:border-box}
#journal.book-journal #journal-detail h3{overflow-wrap:anywhere}
#journal.book-journal #journal-achievements{background:#f6cea3;scrollbar-width:thin;scrollbar-color:#cb9068 transparent}

/* Separate clean book artwork for the Mini and achievement pages. */
.handheld #journal.book-journal{background-image:url('assets/journal-book-minis.png')!important}
.handheld #journal.book-journal.show-achievements{background-image:url('assets/journal-book-achievements.png')!important}
#journal.book-journal [data-close-explorer]{font-size:3cqw!important}
#journal.book-journal #journal-stars-tab{font:3.4cqw/1 'Micro 5',monospace!important;color:#76541d;display:flex;align-items:center;justify-content:center;padding-right:1cqw}
#journal.book-journal #journal-search,#journal.book-journal .journal-portrait,#journal.book-journal #journal-detail .journal-bio,#journal.book-journal #journal-achievements{background:transparent}
#journal.book-journal #journal-search{border-bottom:1px solid #ce946c}

/* Transparent hit areas use the arrows painted into the book itself. */
#journal.book-journal .journal-pages{position:absolute;left:0;bottom:0;width:100%;height:8%;display:flex;align-items:center;justify-content:center}
#journal.book-journal .journal-pages button{position:absolute;top:0;width:20%;height:100%;padding:0!important;background:transparent!important;border:0;box-shadow:none;color:transparent;font-size:0!important;min-height:0!important}
#journal.book-journal #journal-prev{left:-3%}
#journal.book-journal #journal-next{right:0}
#journal.book-journal .journal-pages button:focus-visible{outline:1px dashed #96623f;outline-offset:0}
#journal.book-journal .journal-library{padding-bottom:5cqw!important;box-sizing:border-box;grid-template-rows:auto auto auto minmax(0,1fr)!important}
#journal.book-journal #journal-search,#journal.book-journal #journal-detail .journal-bio{background:#efb082;border:0;box-shadow:inset -1.3cqw 0 #d59160}
#journal.book-journal #journal-search{box-shadow:inset .65cqw 0 #d59160,inset -.65cqw 0 #d59160;padding-inline:1.3cqw}
#journal.book-journal #journal-grid,#journal.book-journal #journal-detail .journal-bio{scrollbar-width:thin;scrollbar-color:#d59160 #efb082;scrollbar-gutter:stable}
#journal.book-journal #journal-grid::-webkit-scrollbar,#journal.book-journal #journal-detail .journal-bio::-webkit-scrollbar{width:6px}
#journal.book-journal #journal-grid::-webkit-scrollbar-track,#journal.book-journal #journal-detail .journal-bio::-webkit-scrollbar-track{background:#efb082}
#journal.book-journal #journal-grid::-webkit-scrollbar-thumb,#journal.book-journal #journal-detail .journal-bio::-webkit-scrollbar-thumb{background:#d59160;border-radius:0}

/* Anchor the close glyph to the bookmark, independent of console controls. */
.handheld #journal.book-journal [data-close-explorer]{left:85%!important;top:9%!important;right:auto!important;bottom:auto!important;width:9%!important;height:10%!important;min-width:0!important;min-height:0!important;margin:0!important;padding:0!important;display:flex;align-items:center;justify-content:center;line-height:1!important;transform:none!important}
#journal.book-journal.show-achievements #journal-count{display:none!important}
#journal.book-journal #journal-achievements{inset:25% 7% 12% 8%;scrollbar-color:#d59160 #efb082}
#journal.book-journal .achievement-summary{font:2.5cqw/1.1 'VT323',monospace;margin:0 0 2cqw;width:43%}
#journal.book-journal .achievement-spread{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10%;align-items:start}
#journal.book-journal .achievement-page{min-width:0}
#journal.book-journal #journal-achievements .achievement{display:grid;grid-template-columns:3cqw minmax(0,1fr);gap:1cqw;margin:0 0 2cqw;padding:1cqw;border:0;border-bottom:1px solid #d59160;background:transparent;box-shadow:none}
#journal.book-journal .achievement h3{font:3cqw/1 'Micro 5',monospace}
#journal.book-journal .achievement p{font:2.8cqw/1.1 'VT323',monospace;margin:0}
#journal.book-journal .achievement-star{width:3cqw;font-size:3cqw;flex-basis:auto}
#journal.book-journal .achievement-star svg{width:2.5cqw;height:3cqw}
#journal.book-journal .achievement-badge{grid-column:2;justify-self:start;margin:0;font:2.3cqw/1 'VT323',monospace;padding:.4cqw}

#journal.book-journal .achievement-headings{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10%}
#journal.book-journal .achievement-headings .achievement-summary{width:auto}

/* Move journal scroll tracks toward the outer page margins. */
#journal.book-journal #journal-grid{width:calc(100% + 1.5cqw);padding-right:1.5cqw;box-sizing:border-box}
#journal.book-journal #journal-detail{overflow:visible}
#journal.book-journal #journal-detail .journal-bio{width:calc(100% + 1.5cqw);padding-right:2.8cqw!important}
#journal.book-journal #journal-achievements{right:5.5%;padding-right:1.5cqw;box-sizing:border-box}

/* Mini biographies sit above the game menus and player-tool dock. */
.handheld .console dialog#profile{z-index:80}
.handheld .console .profile-connector{z-index:79}

/* Authored parchment keeps its proportions in both console views. */
body .handheld #area-map,body.game-expanded .handheld #area-map,body:not(.game-expanded) .handheld #area-map[open]{inset:0;margin:auto;width:var(--map-width);height:auto;aspect-ratio:111/83;max-width:none;max-height:none;padding:0;border:0;border-radius:0;box-shadow:none;background:transparent url('assets/map-parchment.png?v=cropped-87') center/100% 100% no-repeat;image-rendering:pixelated;container-type:size}
body .handheld #area-map[open]{display:block}
body .handheld #area-map .explorer-title{position:absolute;left:20%;right:17%;top:13%;padding:0;border:0;background:none}
body .handheld #area-map h2{font:4cqw/1 'Micro 5',monospace;margin:0}
body .handheld #area-map #map-summary{font:2.5cqw/1 'Micro 5',monospace;margin:1cqw 0 0}
body .handheld #area-map [data-close-explorer]{position:absolute;right:-5%;top:0;min-width:0;min-height:0;width:4cqw;height:4cqw;font-size:2.8cqw}
body .handheld #area-map #explored-map{position:absolute;left:33%;top:28%;width:39%;height:49%;padding:0;display:flex;align-items:center;justify-content:center}
body .handheld #area-map #explored-map svg{width:auto;height:100%;max-width:100%}
body .handheld #area-map .map-tools{position:absolute;left:20%;top:30%;width:12%;height:47%;display:grid;grid-template-columns:1fr 1fr;align-content:center;gap:.6cqw;padding:0}
body .handheld #area-map .map-tools button{font:2.5cqw/1 'Micro 5',monospace;min-height:3.5cqw;padding:.5cqw;border:1px solid #bf885f;background:#efb082;box-shadow:none}
body .handheld #area-map #map-centre,body .handheld #area-map #map-home-view,body .handheld #area-map #map-return-home{grid-column:1/-1}
body .handheld #area-map .map-legend{position:absolute;left:74%;top:32%;width:11%;height:40%;display:flex;flex-direction:column;justify-content:center;align-items:flex-start;font:2.2cqw/1.1 'Micro 5',monospace;gap:2cqw;margin:0}
body .handheld #area-map .explorer-foot{position:absolute;left:21%;right:16%;bottom:14%;padding:0;border:0;font:2.3cqw/1 'Micro 5',monospace;text-align:center}

/* Keep map copy on the flat paper and instructions below the scroll. */
body .handheld #area-map .explorer-title{left:23%;right:20%;top:18%}
body .handheld #area-map [data-close-explorer]{right:-2%;top:1cqw}
body .handheld #area-map #map-west{grid-column:1;grid-row:1}
body .handheld #area-map #map-east{grid-column:2;grid-row:1}
body .handheld #area-map #map-north{grid-column:1;grid-row:2}
body .handheld #area-map #map-south{grid-column:2;grid-row:2}
body .handheld #area-map .map-tools{left:23%;width:12%;top:34%;height:43%}
body .handheld #area-map #explored-map{left:36%;top:31%;width:35%;height:46%}
body .handheld #area-map .map-legend{left:72%;width:10%;top:34%;font-size:2cqw}
body .handheld #area-map{overflow:visible}
body .handheld #area-map .explorer-foot{left:17%;right:13%;top:96%;bottom:auto;color:#fff8e6;text-shadow:1px 2px #151526;font:2.5cqw/1.1 'Micro 5',monospace;padding:0}

/* Caption sits just below the visible parchment edge, matching the reference. */
body .handheld #area-map .explorer-foot{left:7%;right:7%;top:calc(100% + 8px);margin:0}
body .handheld #area-map #map-zoom-in{grid-column:1;grid-row:1}
body .handheld #area-map #map-zoom-out{grid-column:2;grid-row:1}
body .handheld #area-map #map-west{grid-column:1;grid-row:2}
body .handheld #area-map #map-east{grid-column:2;grid-row:2}
body .handheld #area-map #map-north{grid-column:1;grid-row:3}
body .handheld #area-map #map-south{grid-column:2;grid-row:3}
body .handheld #area-map .map-destination:hover rect,body .handheld #area-map .map-destination:focus rect{stroke:#f57b00;stroke-width:3.5}

/* Align the contents to the cropped 111 × 83 parchment. */
body .handheld #area-map .explorer-title{left:19%;right:16%;top:16%}
body .handheld #area-map .map-tools{left:19%;width:14%;top:33%;height:47%}
body .handheld #area-map #explored-map{left:34%;top:30%;width:40%;height:50%}
body .handheld #area-map .map-legend{left:75%;width:12%;top:33%}

/* Lift the parchment, controls and caption together within the game screen. */
body .handheld #area-map{transform:translateY(-3%)}

/* Phone artwork and persistent tool dock. */
@media(max-width:600px){
 .handheld #journal.book-journal,.handheld #journal.book-journal.show-achievements{aspect-ratio:150/149;background-image:url('assets/journal-book-mobile.png')!important;transform:translateY(-5%)}
 #journal.book-journal .journal-tabs{left:11%;top:4%;width:27%;height:7%}
 .handheld #journal.book-journal [data-close-explorer]{left:82%!important;top:6%!important;width:13%!important;height:9%!important}
 #journal.book-journal #journal-heading{top:16%;font-size:5cqw!important}
 #journal.book-journal #journal-count{top:16%;font-size:3.4cqw!important}
 #journal.book-journal .journal-library{top:25%;height:67%}
 #journal.book-journal #journal-detail{top:25%;height:65%}
 #journal.book-journal .journal-library label,#journal.book-journal #journal-results{font-size:3.3cqw!important}
 #journal.book-journal #journal-search{height:7cqw!important;font-size:4cqw!important}
 #journal.book-journal .journal-mini{min-height:8cqw!important;font-size:4cqw!important}
 #journal.book-journal .journal-mini img{width:7cqw!important;height:7cqw!important}
 #journal.book-journal #journal-detail .journal-bio{font-size:4cqw!important}
 #journal.book-journal #journal-detail .primary{left:5%;width:90%;font-size:3.5cqw!important}
 #journal.book-journal .mini-nickname{font-size:3.5cqw!important}
 #journal.book-journal #journal-achievements{inset:23% 7% 9%}
 #journal.book-journal .achievement p{font-size:3.7cqw}
 #journal.book-journal .achievement h3{font-size:4cqw}
 body .handheld #area-map,body.game-expanded .handheld #area-map,body:not(.game-expanded) .handheld #area-map[open]{aspect-ratio:111/93;background-image:url('assets/map-parchment-mobile.png');transform:translateY(-6%)}
 body .handheld #area-map .explorer-title{left:12%;right:15%;top:12%}
 body .handheld #area-map h2{font-size:5cqw}
 body .handheld #area-map #map-summary{font-size:3.3cqw}
 body .handheld #area-map .map-tools{left:12%;top:30%;width:22%;height:48%}
 body .handheld #area-map .map-tools button{font-size:3.8cqw;min-height:6cqw}
 body .handheld #area-map #explored-map{left:38%;top:28%;width:49%;height:51%}
 body .handheld #area-map .map-legend{left:12%;top:82%;width:76%;height:auto;flex-direction:row;justify-content:space-between;font-size:3cqw;gap:1cqw}
 body .handheld #area-map .explorer-foot{left:3%;right:3%;font-size:3.5cqw}
 body .handheld #area-map [data-close-explorer]{width:6cqw;height:6cqw;font-size:4cqw}
 .handheld #backpack .bag-scene{width:min(96%,360px)}
 .handheld .panel-open .player-dock{width:clamp(114px,22cqw,228px);height:auto;max-height:none;max-width:none;aspect-ratio:58/26}
 .handheld .panel-open .dock-status{visibility:visible}
}

/* Clipping must not create a scrollable viewport for iOS dialog autofocus. */
@supports(overflow:clip){.handheld .playfield{overflow:clip;min-width:0;width:100%}}
/* Coffee deliveries: screen-sized dialogue, world-anchored pixel markers. */
.coffee-tracker{position:absolute;right:8px;top:8px;z-index:32;max-width:55%;padding:5px 7px;background:#202237dc;color:#fff3bd;font:18px/1.1 'Micro 5',monospace;white-space:pre-line;pointer-events:none}
.coffee-markers{position:absolute;inset:0;overflow:hidden;pointer-events:none;z-index:33}
.coffee-markers span{position:absolute;transform:translate(-50%,-100%);font:20px/1 Daydream,monospace;color:#ffdb54;text-shadow:2px 2px #302035,-1px -1px #302035}
.handheld #coffee-dialog{position:absolute;inset:0;margin:auto;width:min(88%,360px);height:max-content;max-height:85%;padding:18px;background:#f6cfa2;border:3px solid #754e36;box-shadow:4px 4px #281e28;color:#302337;z-index:81;overflow:auto}
#coffee-dialog h2{font:26px/1 'Micro 5',monospace;margin:0 30px 12px 0}
#coffee-dialog p{font:21px/1.2 'VT323',monospace;margin:0}
#coffee-dialog .coffee-close{position:absolute;right:9px;top:9px;background:none;border:0;padding:0;font:16px/1 Daydream,monospace;color:#302337}
.coffee-choices{display:flex;gap:12px;margin-top:12px;justify-content:center}
.coffee-choices:empty{display:none}
.coffee-choices button{min-width:65px;min-height:36px;background:#efb082;border:2px solid #754e36;color:#302337;font:24px/1 'Micro 5',monospace}
@media(max-width:600px){.coffee-tracker{font-size:14px}.coffee-markers span{font-size:16px}#coffee-dialog p{font-size:18px}}
#coffee-heading:focus{outline:none}
@container(max-width:600px){.handheld #coffee-dialog{padding:12px}#coffee-dialog h2{font-size:22px;margin-bottom:8px}#coffee-dialog p{font-size:16px;line-height:1.15}}
.game-menu-panel .audio-volume{display:grid;grid-template-columns:1fr auto;gap:3px 8px;padding:4px 9px 9px;font:17px/1 'Micro 5',monospace;color:#252540;letter-spacing:0;text-transform:none}
.audio-volume input[type=range]{grid-column:1/-1;width:100%;min-width:0;height:24px;margin:0;accent-color:#76583e;cursor:pointer;touch-action:pan-y}
.handheld .game-menu-panel{max-height:min(70vh,420px);overflow-y:auto;overscroll-behavior:contain}
/* Menu uses the same in-game drawer system as journal, bag and map. */
body .handheld #menu-screen{position:absolute;inset:0;margin:0;width:100%;height:100%;max-width:none;max-height:none;padding:clamp(10px,3cqw,24px);border:0;border-radius:0;background:#292637;color:#fff3d6;box-shadow:none;overflow:hidden;z-index:40}
body .handheld #menu-screen[open]{display:flex;flex-direction:column;gap:12px}
.menu-screen-title{display:flex;align-items:center;justify-content:space-between;flex:none}
#menu-screen h2{margin:0;font:28px/1 'Micro 5',monospace}
#menu-screen h2:focus{outline:none}
#menu-screen [data-close-explorer]{background:none;border:0;color:#fff3d6;font:18px/1 Daydream,monospace;padding:4px;min-width:32px;min-height:32px}
body .handheld #menu-screen .game-menu-panel{position:static;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:clamp(12px,4cqw,32px);width:100%;min-height:0;max-height:none;overflow:auto;flex:1;padding:0;border:0;box-shadow:none;background:transparent;color:inherit;letter-spacing:0}
#menu-screen h3{margin:0 0 8px;color:#f4d471;font:20px/1 'Micro 5',monospace}
body .handheld #menu-screen .game-menu-panel button{display:flex;align-items:center;justify-content:space-between;width:100%;min-height:34px;padding:6px 7px;margin:0 0 5px;border:1px solid #706778;background:#40394d;color:#fff3d6;font:18px/1 'Micro 5',monospace;text-align:left;box-shadow:none}
body .handheld #menu-screen .audio-volume{padding:2px 0 12px;color:#fff3d6;font-size:17px}
#menu-screen .audio-volume input{accent-color:#f4d471;height:30px}
body .handheld #menu-screen .game-menu-panel p{margin:8px 0;color:#c9c2ce;font:16px/1.15 'VT323',monospace}

body .handheld #menu-screen .game-menu-panel #crt-toggle{margin-top:14px}
body.game-expanded .handheld #menu-screen{margin:auto;width:min(560px,84%);height:min(340px,82%);padding:20px;box-shadow:4px 4px 0 #151322;border:2px solid #706778}
body.game-expanded .handheld #menu-screen .game-menu-panel{gap:24px}

#menu-screen .menu-display-options{margin-top:18px}
body .handheld #menu-screen .menu-display-options #crt-toggle{margin-top:0}

.bag-inventory-slot .bag-headwear-icon{position:absolute;width:100%;height:100%;max-width:none;left:0;top:0;object-fit:contain;image-rendering:pixelated;pointer-events:none}

/* The fixed zoom shell must never scroll when a drawer control receives focus. */
@supports(overflow:clip){body.game-expanded main.console-page{overflow:clip}}

.mini-gallery .collection-cta{margin-top:16px}
body.phone-landscape-notice{overflow:hidden}
#phone-orientation-notice{position:fixed;inset:0;z-index:10000;background:#f4d471;color:#292637;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:20px;text-align:center;gap:12px}
#phone-orientation-notice[hidden]{display:none}
#phone-orientation-notice h2{font:32px/1 'Micro 5',monospace;margin:0;outline:none}
#phone-orientation-notice p{font:22px/1.2 'VT323',monospace;margin:0}
.orientation-phone{width:38px;height:58px;border:4px solid #292637;border-radius:5px;background:#9db3fa;font:34px/1 monospace;display:grid;place-items:center;box-shadow:4px 4px #c1a950}

/* Fit the artwork to the room left by the selected item's description. */
@media(min-width:601px){
 body:not(.game-expanded) .handheld #bag-items{overflow:hidden;padding:0;gap:4px}
 body:not(.game-expanded) .handheld .bag-detail .bag-equip-popup{margin:4px auto 0;padding:2px}
 body:not(.game-expanded) .handheld .bag-equip-popup button{font-size:17px;padding:3px 8px}
}
body.opensea-links-hidden a[href*="opensea.io"]{display:none!important}

/* Clearer menu copy; headings and toggle states retain Micro 5. */
body .handheld #menu-screen .game-menu-panel button{font-family:'VT323',monospace;font-size:20px}
body .handheld #menu-screen .audio-volume{font-family:'VT323',monospace;font-size:19px}
body .handheld #menu-screen .game-menu-panel p{font-family:'VT323',monospace;font-size:18px}
body .handheld #menu-screen .menu-toggle-state,body .handheld #menu-screen #crt-state{font:20px/1 'Micro 5',monospace;flex:none;margin-left:10px}
@media(min-width:601px){
 body.game-expanded .handheld #menu-screen{width:min(640px,88%);height:min(390px,86%);padding:24px}
 body.game-expanded .handheld #menu-screen h2{font-size:32px}
 body.game-expanded .handheld #menu-screen h3{font-size:23px}
 body.game-expanded .handheld #menu-screen .game-menu-panel button{font-size:23px;min-height:40px;padding:7px 9px}
 body.game-expanded .handheld #menu-screen .audio-volume{font-size:22px}
 body.game-expanded .handheld #menu-screen .game-menu-panel p{font-size:20px}
 body.game-expanded .handheld #menu-screen .menu-toggle-state,body.game-expanded .handheld #menu-screen #crt-state{font-size:23px}
}

/* Completely cover the game, including its positioned overlays, while rotated. */
body.phone-landscape-notice> :not(#phone-orientation-notice){visibility:hidden!important}
body.phone-landscape-notice> :not(#phone-orientation-notice) *{visibility:hidden!important}
#phone-orientation-notice{inset:auto;left:0;top:0;width:100vw;height:100dvh;transform-origin:0 0;isolation:isolate;overflow:hidden;box-shadow:0 0 0 100vmax #f4d471}

/* Updated four-tab book artwork and one continuous achievement list. */
.handheld #journal.book-journal{aspect-ratio:144/104;background-image:url('assets/journal-book-minis.png?v=138')!important}
.handheld #journal.book-journal.show-achievements{background-image:url('assets/journal-book-achievements.png?v=138')!important}
#journal.book-journal .journal-tabs{left:7.5%;top:.5%;width:34%;height:9%}
#journal.book-journal .journal-tabs button{width:25%!important;flex:1 1 25%}
#journal.book-journal #journal-stars-tab,#journal.book-journal #journal-heart-tab{font:3.4cqw/1 'Micro 5',monospace!important;display:flex;align-items:center;justify-content:center;padding:0;opacity:1}
#journal.book-journal #journal-heart-tab{color:#9e3156}
#journal.book-journal .achievement-spread{display:flex;flex-direction:column;gap:0}
#journal.book-journal .achievement-headings{display:block}
#journal.book-journal .achievement-headings .achievement-summary{width:100%;margin-bottom:1cqw}
#journal.book-journal #journal-achievements{inset:23% 8% 10%;background:transparent}
@media(max-width:600px){
 .handheld #journal.book-journal{aspect-ratio:144/134;background-image:url('assets/journal-book-mobile.png?v=138')!important}
 .handheld #journal.book-journal.show-achievements{background-image:url('assets/journal-book-mobile-achievements.png?v=138')!important}
 #journal.book-journal .journal-tabs{top:.4%;height:7%}
}

/* Saved facts share the journal's uninterrupted paper page. */
#profile #save-fact{display:block;width:100%;margin:5px 0;padding:4px 2px;font:18px/1 'Micro 5',monospace;color:#702b44;background:#f6d0a2;border:1px solid #925760;cursor:pointer}
#profile #save-fact[aria-pressed="true"]{background:#edb0ba}
.handheld #journal.book-journal.show-facts{background-image:url('assets/journal-book-achievements.png?v=138')!important}
#journal.show-facts #journal-count{display:none}
#journal-facts{position:absolute;inset:23% 8% 10%;overflow:hidden;color:#583d32;display:flex;flex-wrap:wrap;align-content:flex-start;gap:1cqw;font:3.3cqw/1.1 'VT323',monospace;pointer-events:auto}
#journal-facts[hidden]{display:none}
#journal-facts>label{flex:1;font:4cqw/1 'Micro 5',monospace;align-self:center}
#fact-sort{max-width:52%;font:inherit;color:inherit;background:#ffe1b9;border:1px solid #b27a56;padding:.4cqw}
#saved-fact-list{flex:1 0 100%;height:calc(100% - 6cqw);overflow:auto;overscroll-behavior:contain;padding-right:1cqw}
.saved-fact{display:grid;grid-template-columns:9cqw minmax(0,1fr) 5cqw;gap:1.4cqw;padding:1.5cqw 0;border-bottom:1px solid #bc936d}
.saved-fact img{width:9cqw;image-rendering:pixelated}
.saved-fact h3{font:inherit;font-weight:bold;margin:0 0 .6cqw}
.saved-fact p{font:inherit;margin:0;overflow-wrap:anywhere}
.saved-fact button{align-self:start;color:#9e3156;background:transparent;border:0;font:5cqw/1 'Micro 5',monospace;padding:0;cursor:pointer}
@media(max-width:600px){.handheld #journal.book-journal.show-facts{background-image:url('assets/journal-book-mobile-achievements.png?v=138')!important}#journal-facts{font-size:4cqw}#profile #save-fact{font-size:17px}}

/* Align controls to the 144px-wide book artwork rather than the content columns. */
#journal.book-journal .journal-library{left:5%;width:36%;height:62%;padding-bottom:0!important}
#journal.book-journal #journal-heading{left:5%;width:36%}
#journal.book-journal .journal-pages{position:absolute;pointer-events:auto;left:4.17%;top:84.6%;bottom:auto;width:37.5%;height:7%}
#journal.book-journal #journal-prev{left:0;width:22%}
#journal.book-journal #journal-next{right:0;width:22%}
.handheld #journal.book-journal [data-close-explorer]{left:85.4%!important;top:4.8%!important;width:10.4%!important;height:13.5%!important;font-size:3cqw!important}
#journal.book-journal #journal-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(5,minmax(0,1fr));gap:.5cqw;width:100%;padding:0;overflow:hidden;scrollbar-gutter:auto}
#journal.book-journal .journal-mini{height:100%!important;min-height:0!important;min-width:0;flex-basis:auto!important;padding:.2cqw!important;gap:.4cqw;font-size:2.7cqw!important}
#journal.book-journal .journal-mini img{width:4cqw!important;height:4cqw!important;flex-shrink:0}
#journal.book-journal #journal-detail .journal-bio{height:46%}
#journal.book-journal #journal-detail .journal-save-fact{position:absolute;left:0;bottom:10%;width:100%;height:9%;min-height:0;padding:0;border:0;background:transparent;color:#9e3156;font:3cqw/1 'Micro 5',monospace;cursor:pointer}
#journal.book-journal #journal-achievements{inset:23% 7% 10% 5%;overflow:hidden;padding:0;display:grid;grid-template-columns:minmax(0,1fr) 32%;grid-template-rows:minmax(0,1fr);gap:4%}
#journal.book-journal #journal-achievements[hidden]{display:none}
#journal.book-journal .achievement-headings{grid-column:2;grid-row:1;display:block;align-self:start}
#journal.book-journal .achievement-headings .achievement-summary{width:100%;margin:0 0 2cqw}
#journal.book-journal .achievement-spread{grid-column:1;grid-row:1;display:flex;flex-direction:column;min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#d59160 transparent;padding-right:1cqw}
#journal.book-journal .achievement-spread .achievement{flex-shrink:0;width:100%;box-sizing:border-box}
@media(max-width:600px){
 #journal.book-journal .journal-library{height:64%}
 #journal.book-journal .journal-pages{top:87.3%;height:6%}
 .handheld #journal.book-journal [data-close-explorer]{top:3.7%!important;height:10.5%!important}
 #journal.book-journal .journal-mini{font-size:3cqw!important}
 #journal.book-journal .journal-mini img{width:4.7cqw!important;height:4.7cqw!important}
 #journal.book-journal #journal-detail .journal-save-fact{font-size:3.5cqw}
 #journal.book-journal .achievement-summary{font-size:3.5cqw}
}

/* Ten entries per journal page, in one vertically scrolling list. */
#journal.book-journal #journal-grid{display:flex;flex-direction:column;gap:0;overflow-y:auto;overflow-x:hidden;scrollbar-gutter:stable;padding-right:1cqw}
#journal.book-journal .journal-mini{height:4.8cqw!important;min-height:4.8cqw!important;flex:0 0 4.8cqw!important;padding:.3cqw 1cqw!important;gap:1cqw;font-size:3cqw!important}
#journal.book-journal .journal-mini img{width:4.4cqw!important;height:4.4cqw!important}
@media(max-width:600px){
 #journal.book-journal .journal-mini{height:8cqw!important;min-height:8cqw!important;flex-basis:8cqw!important;font-size:4cqw!important}
 #journal.book-journal .journal-mini img{width:7cqw!important;height:7cqw!important}
}

/* Six visible rows; the remaining four scroll above the painted arrows. */
#journal.book-journal .journal-library{height:58%;grid-template-rows:auto auto auto minmax(0,1fr)!important}
#journal.book-journal #journal-grid{height:100%;max-height:28.8cqw;min-height:0;align-self:start}
@media(max-width:600px){
 #journal.book-journal .journal-library{height:59%}
 #journal.book-journal #journal-grid{max-height:48cqw}
}
#journal.book-journal #journal-grid .journal-mini{height:calc(100% / 6)!important;min-height:0!important;flex:0 0 calc(100% / 6)!important;box-sizing:border-box}
#journal.book-journal #journal-grid .journal-mini img{max-height:100%;object-fit:contain}

/* Keep CRT glass stationary while the map underneath follows the player. */
.console.crt-on .world::before{content:none!important}
/* Phosphor dots and scanlines inspired by the CRT reference.
   This stationary layer stays separate from the drawer's ::after dimming layer. */
.console.crt-on::after, .console.crt-on #profile.gallery-profile::after{
 content:"";position:absolute;inset:0;pointer-events:none;z-index:200;
 background-image:
  radial-gradient(ellipse at center,transparent 46%,rgba(12,15,28,.12) 78%,rgba(9,12,22,.42) 100%),
  repeating-linear-gradient(to bottom,transparent 0 2.8px,rgba(14,17,34,.144) 2.8px 4.2px),
  radial-gradient(ellipse at center,rgba(255,85,116,.176) 0 27%,transparent 62%),
  radial-gradient(ellipse at center,rgba(107,255,153,.144) 0 27%,transparent 62%),
  radial-gradient(ellipse at center,rgba(120,122,255,.184) 0 27%,transparent 62%);
 background-size:100% 100%,100% 4.2px,4.2px 4.2px,4.2px 4.2px,4.2px 4.2px;
 background-position:0 0,var(--crt-jitter-x,0px) var(--crt-jitter-y,0px),var(--crt-jitter-x,0px) var(--crt-jitter-y,0px),calc(1.4px + var(--crt-jitter-x,0px)) var(--crt-jitter-y,0px),calc(2.8px + var(--crt-jitter-x,0px)) var(--crt-jitter-y,0px);
 background-repeat:no-repeat,repeat,repeat,repeat,repeat;
 box-shadow:inset 0 0 2px 1px #11142788,inset 0 0 14px #10152833;
 animation:none;
}
@media(prefers-reduced-motion:reduce){.console.crt-on::after, .console.crt-on #profile.gallery-profile::after{animation:none}}
@media(max-width:600px),(hover:none) and (pointer:coarse){
 .handheld .bag-inventory-slot .bag-slot-marker img{animation:none!important;opacity:0!important}
 .handheld .bag-inventory-slot .bag-slot-marker .bag-marker-frame-1{opacity:1!important}
}

/* Uppercase in-game status labels and notification copy. */
.coffee-tracker,#place,.achievement-toast .notice-label,.achievement-toast .notice-description,.achievement-toast h3{text-transform:uppercase}
.player-marker{display:none!important}
.reward-locked{filter:grayscale(1);opacity:.5}
.new-mini-markers{position:absolute;inset:0;pointer-events:none;z-index:25;overflow:hidden}
.new-mini-markers span{position:absolute;transform:translate(-50%,-100%);background:#fff0b5;color:#42344b;border:1px solid #42344b;padding:1px 3px;font:14px/1 'Micro 5',monospace}
#area-map .map-surprise{position:absolute;left:35%;bottom:12%;z-index:5;font:16px/1 'Micro 5',monospace;padding:4px;background:#fff0b5;color:#42344b;border:1px solid #42344b}
#area-map .map-surprise[hidden]{display:none}

/* Centre the heart on the artwork's pink tab (x=54, y=4.5). */
#journal.book-journal #journal-heart-tab{position:absolute;left:88.2353%;top:42.5%;transform:translate(-50%,-50%);width:20%!important;height:85%!important;flex:none}
#journal.book-journal .journal-tabs .journal-heart-icon{visibility:visible;width:4.2cqw;height:auto;max-height:75%;display:block;shape-rendering:crispEdges}
#journal.book-journal .journal-tabs button:not(#journal-heart-tab){flex:0 0 25%}
#journal.book-journal .journal-tabs .journal-heart-icon{width:3.7cqw;transform:translateX(2px)}
/* Shared peach scroll tracks throughout the paper journal. */
#saved-fact-list,.odyssey-lore{scrollbar-width:thin;scrollbar-color:#d59160 #efb082;scrollbar-gutter:stable}
#saved-fact-list::-webkit-scrollbar,.odyssey-lore::-webkit-scrollbar{width:6px}
#saved-fact-list::-webkit-scrollbar-track,.odyssey-lore::-webkit-scrollbar-track{background:#efb082}
#saved-fact-list::-webkit-scrollbar-thumb,.odyssey-lore::-webkit-scrollbar-thumb{background:#d59160;border-radius:0}
#journal.book-journal #journal-odyssey-tab{position:absolute;left:53%;top:1%;width:31%;height:9%;z-index:4;background:transparent;border:0;box-shadow:none;padding:0}
#journal-odyssey-tab:focus-visible{outline:1px dashed #925760;outline-offset:-2px}
#journal.show-odyssey #journal-heading,#journal.show-odyssey #journal-count{display:none!important}
#journal-odyssey{position:absolute;inset:0;pointer-events:none}
#journal-odyssey[hidden]{display:none}
#odyssey-heading{position:absolute;left:5%;top:16%;width:40%;margin:0;text-align:center;font:3.3cqw/1 'Micro 5',monospace}
.odyssey-card{position:absolute;left:6%;top:25%;width:35%;height:55%;display:flex;align-items:center;justify-content:center}
.odyssey-card img,.odyssey-portrait img{width:100%;height:100%;object-fit:contain;image-rendering:pixelated;position:absolute;inset:0}
.odyssey-card span,.odyssey-portrait span{font:3cqw/1.1 'VT323',monospace;text-align:center;color:#805632;border:1px dashed #bc936d;padding:2cqw}
.odyssey-identity{position:absolute;left:52%;top:23%;width:41%;height:21%;display:flex;gap:1cqw;align-items:center}
.odyssey-portrait{position:relative;width:44%;height:100%;flex-shrink:0;display:flex;align-items:center;justify-content:center}
.odyssey-name{font:3.7cqw/1 'Micro 5',monospace;margin:0;overflow-wrap:anywhere}
#journal .odyssey-lore{position:absolute;left:52%;top:47%;width:41%;height:39%;overflow-y:auto;overscroll-behavior:contain;margin:0;padding:1cqw;font:3cqw/1.1 'VT323',monospace;pointer-events:auto}
.odyssey-pages{position:absolute;left:4.17%;top:84.6%;width:37.5%;height:7%;display:flex;align-items:center;justify-content:center;font:2.4cqw/1 'Micro 5',monospace;pointer-events:auto}
.odyssey-pages button{position:absolute;top:0;width:22%;height:100%;padding:0;border:0;background:transparent;box-shadow:none}
#odyssey-prev{left:0}#odyssey-next{right:0}
@media(max-width:600px){#journal.book-journal #journal-odyssey-tab{top:.7%;height:7%}.odyssey-pages{top:87.3%;height:6%}#journal .odyssey-lore{font-size:4cqw;height:42%}.odyssey-name{font-size:4cqw}.odyssey-card{height:58%}}

/* Odyssey lore uses the Mini journal's inset peach reading panel. */
#journal.book-journal .odyssey-lore{background:#efb082;box-shadow:inset -1.3cqw 0 #d59160;padding:1.3cqw 2.8cqw 1.3cqw 1.3cqw;border:0;border-radius:0;color:#3c3040;box-sizing:border-box;overflow-y:auto;scrollbar-width:thin;scrollbar-color:#d59160 #efb082}

#journal .odyssey-identity{top:19%}
#journal .odyssey-lore{top:43%;height:38%}
#journal .odyssey-lore-note{position:absolute;left:52%;top:82%;width:41%;margin:0;font:2.5cqw/1.1 'VT323',monospace;color:#694c3c}
#odyssey-heading:focus{outline:none}
#journal-odyssey [hidden]{display:none!important}
@media(max-width:600px){#journal .odyssey-lore-note{font-size:3cqw}}

.odyssey-name-block{min-width:0}
#journal .odyssey-opensea{display:inline-block;margin-top:.8cqw;font:2.3cqw/1.1 'VT323',monospace;color:#70452f;text-decoration:underline;pointer-events:auto}
@media(max-width:600px){#journal .odyssey-opensea{font-size:2.8cqw}}

/* Jitter moves the phosphor pattern, never the game or menu geometry. */
@media(prefers-reduced-motion:reduce){
 .console.crt-on::after, .console.crt-on #profile.gallery-profile::after{background-position:0 0,0 0,0 0,1.4px 0,2.8px 0}
}

/* Odyssey marketplace actions share the Mini journal's blue button treatment. */
#journal .odyssey-opensea,#journal .odyssey-cards-opensea{background:#173b63;color:#fff9e7;border:0;outline:0;border-radius:0;box-shadow:none;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;text-align:center;pointer-events:auto;font:2.6cqw/1 'Micro 5',monospace;padding:.6cqw .8cqw}
#journal .odyssey-opensea{margin-top:1cqw}
#journal .odyssey-card{height:50%}
#journal .odyssey-cards-opensea{position:absolute;left:6%;top:77%;width:35%;min-height:4cqw;font-size:2.2cqw}
#journal .odyssey-lore-note{font-size:2.4cqw}
@media(max-width:600px){#journal .odyssey-opensea{font-size:3.2cqw}#journal .odyssey-card{height:53%}#journal .odyssey-cards-opensea{top:80%;font-size:2.7cqw}#journal .odyssey-lore-note{font-size:3cqw}}

#journal .odyssey-lore-note{font-size:1.65cqw;white-space:nowrap;line-height:1.2}

/* Overscan the dimmer to cover fractional desktop scaling; the playfield clips it. */
.handheld .playfield.map-open::after{inset:-2px;pointer-events:none}
/* Phones stay clear, including during rotation and before script initialization. */
@media(max-width:600px),(hover:none) and (pointer:coarse) and (max-height:600px){
 #crt-toggle{display:none!important}
 .console.crt-on::after,.console.crt-on #profile.gallery-profile::after{content:none!important;display:none!important}
}

/* Anchor drawer shading to the console grid, outside the map's clipping edge.
   Absolute grid placement follows the middle row on desktop and phone layouts. */
.handheld .console{grid-template-columns:minmax(0,1fr)}
.handheld .playfield.map-open::after{content:none}
.handheld .console.panel-open::before{
 content:"";position:absolute;grid-column:1 / 2;grid-row:2 / 3;
 inset:0 -2px;z-index:35;pointer-events:none;background:rgba(21,21,38,.9);
}

/* Larger areas retain the existing world-pixel scale in the camera. */
.handheld .world canvas{width:205.416667%;aspect-ratio:58/32}
@media(max-width:600px){.handheld .world canvas{height:130.370370%;width:auto;min-width:205.416667%;aspect-ratio:58/32}}

/* First-launch guide: modal focus, readable cards and touch-sized actions. */
#town-tutorial{box-sizing:border-box;width:min(480px,calc(100vw - 32px));max-height:calc(100dvh - 40px);overflow:auto;margin:auto;padding:30px 28px 24px;background:#fff4d7;color:#302b40;border:4px solid #241b38;box-shadow:6px 6px 0 #241b38;font-family:'VT323',monospace;font-size:22px;line-height:1.25}
#town-tutorial::backdrop{background:rgb(20 14 39 / 65%)}
#town-tutorial .tutorial-close{position:absolute;top:8px;right:8px;min-width:44px;min-height:44px;font:26px 'VT323',monospace;background:transparent;border:0;color:#302b40;cursor:pointer}
#town-tutorial .tutorial-progress{margin:0 44px 14px 0;font-size:18px;color:#655775}
#town-tutorial h2{margin:0 24px 18px 0;font:32px/1 'Micro 5',monospace}
#town-tutorial .tutorial-copy{margin:0 0 20px}
#town-tutorial .tutorial-tip{border-left:4px solid #8f9edc;padding-left:12px;margin:0;color:#51465e}
#town-tutorial .tutorial-actions{display:flex;justify-content:space-between;gap:12px;margin-top:26px}
#town-tutorial .tutorial-actions button{min-height:44px;padding:8px 16px;border:2px solid #302b40;background:#e1e6ff;color:#302b40;font:22px 'VT323',monospace;cursor:pointer}
#town-tutorial [data-tutorial-next]{margin-left:auto}
#town-tutorial button:focus-visible{outline:3px solid #526cc4;outline-offset:3px}
#town-tutorial [hidden]{display:none}
@media(max-width:400px){#town-tutorial{padding:26px 18px 18px;font-size:20px}#town-tutorial h2{font-size:28px}}

#journal.book-journal .achievement-cheer{display:block;width:164px;max-width:100%;height:auto;margin:3cqw auto 0;image-rendering:pixelated}

/* Let the menu grow to fit its options rather than imposing a short fixed window. */
body.game-expanded .handheld #menu-screen{height:max-content;max-height:96%;width:min(680px,92%)}
body.game-expanded .handheld #menu-screen .game-menu-panel{flex:0 1 auto}

/* Site header typography and alignment matched to basedminis.xyz. */
body>header .brand img{width:40px;height:40px;padding:0;background:transparent;border-radius:0;object-fit:contain}
body>header nav>a,body>header nav>.nav-dropdown{font:600 19px/1.2 'Barlow Condensed',sans-serif;letter-spacing:0;text-transform:uppercase}
body>header .nav-submenu{border:0;box-shadow:none;background:#252525;padding:22px 12px}
body>header .nav-submenu a{font:400 16px/25px 'Hind',sans-serif;color:white}
@media(min-width:1001px){
 body>header{position:relative;inset:auto;transform:none;width:100%;height:100px;padding:0 45px;display:flex;align-items:center;border:0}
 body>header .brand{position:absolute;left:45px;top:30px}
 body>header nav{display:flex;justify-content:center;align-items:center;flex:1;gap:28px;margin:0 auto;padding:0 70px}
}
@media(max-width:1000px){
 body>header{height:calc(70px + env(safe-area-inset-top,0px));min-height:70px;padding:env(safe-area-inset-top,0px) 15px 0;background:white;justify-content:space-between;flex-wrap:nowrap;gap:0}
 body>header .brand{position:static;margin:0}
 #mobile-nav-toggle{display:flex;flex-direction:column;justify-content:center;width:44px;height:44px;min-width:44px;min-height:44px;padding:7px;gap:6px;margin-right:-7px;border:0;background:transparent;box-shadow:none}
 #mobile-nav-toggle span{display:block;width:30px;height:4px;background:#000}
 #mobile-nav-toggle span:nth-child(3){display:none}
 body>header nav{display:none;position:absolute;top:100%;left:0;right:0;width:100%;max-height:calc(100svh - 70px);overflow:auto;padding:8px 15px;background:white;border:0;border-bottom:1px solid #e1e1e1;box-shadow:none;gap:0;z-index:80}
 body.phone-navigation-open>header nav{display:flex;flex-direction:column;align-items:stretch}
 body>header nav>a,body>header nav>.nav-dropdown,body>header nav summary{font:600 20px/22px 'Barlow Condensed',sans-serif;color:#000}
 body>header nav a,body>header nav summary{padding:10px 0!important;border:0!important}
 body>header nav .nav-submenu{position:static;width:auto;min-width:0;background:white;padding:4px 12px}
 body>header nav .nav-submenu a{font:400 16px/25px 'Hind',sans-serif;color:#707070;padding:3px 0!important}
}

.bag-inventory-slot .bag-companion-icon{position:absolute;width:100%;height:100%;max-width:none;left:0;top:0;object-fit:contain;image-rendering:pixelated;pointer-events:none}

.bag-inventory-slot .bag-headwear-icon{width:76%;height:76%;left:12%;top:12%;object-fit:contain}

/* The authored pixel marker is the inventory focus indicator. */
.handheld .bag-inventory-slot:focus,.handheld .bag-inventory-slot:focus-visible{outline:none;box-shadow:none}
#town-tutorial .tutorial-close{font-family:Daydream,monospace;font-size:18px;line-height:1;font-weight:400;display:flex;align-items:center;justify-content:center;padding:4px}

.bag-inventory-slot .bag-item-icon{position:absolute;width:76%;height:76%;max-width:none;left:12%;top:12%;object-fit:contain;image-rendering:pixelated;pointer-events:none}

/* A fine silhouette edge on item artwork, without outlining the slots. */
.bag-inventory-slot .bag-headwear-icon,
.bag-inventory-slot .bag-companion-icon,
.bag-inventory-slot .bag-item-icon{filter:drop-shadow(1px 0 0 #000) drop-shadow(-1px 0 0 #000) drop-shadow(0 1px 0 #000) drop-shadow(0 -1px 0 #000)}

#journal.book-journal #journal-stars-tab .pixel-star{display:block;width:3cqw;height:3cqw;flex:none}#journal.book-journal .achievement-star .pixel-star{height:2.5cqw}

#journal.book-journal #journal-stars-tab .pixel-star{visibility:visible}
#journal.book-journal .journal-tabs .journal-heart-icon{width:3.33cqw}

/* Nine-slice the supplied bubble so pixel corners and the tail never stretch. */
body .mini-bubble:not(.token-label),body.game-expanded .mini-bubble:not(.token-label){isolation:isolate;min-width:90px;min-height:46px;padding:10px 14px 24px 32px;border:0;background:transparent;box-shadow:none;color:#20293f}
body .mini-bubble:not(.token-label)::before{content:'';position:absolute;inset:0;z-index:-1;pointer-events:none;border-style:solid;border-color:transparent;border-width:10px 10px 16px 30px;border-image-source:url('assets/mini-speech-bubble.png');border-image-slice:50 50 80 150 fill;border-image-width:10px 10px 16px 30px;border-image-repeat:stretch;image-rendering:pixelated}
body .mini-bubble:not(.token-label)::after{display:none}
body .mini-bubble.bubble-below:not(.token-label)::before{transform:scaleY(-1)}
body .mini-bubble.bubble-below:not(.token-label){padding-top:24px;padding-bottom:10px}

/* Speech artwork is fitted to the measured text; its tail stays centred on the speaker. */
body .mini-bubble:not(.token-label),body.game-expanded .mini-bubble:not(.token-label){min-width:40px;min-height:0;max-width:280px!important;padding:8px 12px 20px;border:0;background-color:transparent;background-size:100% 100%;background-repeat:no-repeat;box-shadow:none;image-rendering:pixelated}
body .mini-bubble:not(.token-label)::before,body .mini-bubble:not(.token-label)::after{display:none}
@media(max-width:600px){body .mini-bubble:not(.token-label){max-width:min(240px,calc(100vw - 40px))!important}}

.mini-bubble.token-label{background-image:none!important}

/* Beta feedback and visible release identifier. */
body .handheld #menu-screen .menu-report{display:flex;align-items:center;width:100%;box-sizing:border-box;min-height:34px;padding:6px 7px;margin:14px 0 5px;border:1px solid #706778;background:#40394d;color:#fff3d6;font:20px/1 'VT323',monospace;text-align:left;text-decoration:none}
body .handheld #menu-screen .menu-report:hover{background:#51465e}
body .handheld #menu-screen .menu-report:focus-visible{outline:2px solid #f4d471;outline-offset:2px}
#menu-screen .menu-build{flex:none;margin:10px 0 0;color:#c9c2ce;font:16px/1.15 'VT323',monospace;text-align:center}
@media(min-width:700px){body.game-expanded .handheld #menu-screen .menu-report{font-size:23px;min-height:40px;padding:7px 9px}}

/* Shared website navigation, matching the parent site's header. */
body>header.site-header{position:relative;inset:auto;transform:none;width:100%;max-width:none;z-index:70}
body>header.site-header nav>a,body>header.site-header .nav-dropdown>summary{border:0!important;box-shadow:none;background:transparent;letter-spacing:0;text-decoration:none}
body>header.site-header .nav-dropdown>summary::after{content:none}
body>header.site-header .nav-submenu{left:0;right:auto;width:225px;padding:33px 0 29px;background:#000;border:0;box-shadow:none}
body>header.site-header .nav-submenu a{padding:4px 10px 4px 40px!important;min-height:32px;font:400 15px/24px 'Hind',sans-serif;color:#fff!important;background:transparent}
body>header.site-header .nav-submenu a:hover,body>header.site-header .nav-submenu a:focus-visible{color:#000!important;background:#fff}
@media(min-width:1001px){
 body>header.site-header .nav-submenu a{width:max-content;max-width:calc(100% - 45px);min-height:0;margin:0 5px 8px 40px;padding:2px 3px!important}
 body>header.site-header .nav-submenu a:last-child{margin-bottom:0}
}
@media(min-width:1001px){
 body>header.site-header{height:100px;padding:0 45px;background:transparent}
 body>header.site-header nav{position:static;transform:none;display:flex;flex:1;justify-content:center;align-items:center;gap:0;margin:0;padding:0 55px;overflow:visible}
 body>header.site-header nav>a,body>header.site-header .nav-dropdown>summary{display:block;min-height:100px;padding:0 17px!important;color:#fff;font:600 19px/100px 'Barlow Condensed',sans-serif}
 body>header.site-header nav>a,body>header.site-header .nav-dropdown>summary{position:relative}
 body>header.site-header nav>a:hover,body>header.site-header nav>a:focus-visible,body>header.site-header .nav-dropdown>summary:hover,body>header.site-header .nav-dropdown[open]>summary{color:#fff}
 body>header.site-header nav>a::after,body>header.site-header .nav-dropdown>summary::after{content:'';display:block;position:absolute;left:17px;right:17px;top:calc(50% + 17px);height:4px;background:#fff;transform:scaleX(0);transform-origin:left;transition:transform .22s ease}
 body>header.site-header nav>a:hover::after,body>header.site-header nav>a:focus-visible::after,body>header.site-header nav>a[aria-current="page"]::after,body>header.site-header .nav-dropdown:hover>summary::after,body>header.site-header .nav-dropdown[open]>summary::after,body>header.site-header .nav-dropdown>summary:focus-visible::after{transform:scaleX(1)}
 #mobile-nav-toggle{display:none}
}
@media(max-width:1000px){
 body>header.site-header{height:calc(70px + env(safe-area-inset-top,0px));padding:env(safe-area-inset-top,0px) 15px 0;background:#fff}
 body>header.site-header nav{transform:none;flex:none}
 body>header.site-header .nav-dropdown>summary{position:relative;padding-right:24px!important}
 body>header.site-header .nav-dropdown>summary::after{content:'›';position:absolute;right:0;top:10px;font:20px/22px sans-serif}
 body>header.site-header .nav-dropdown[open]>summary{color:#000}
 body>header.site-header .nav-dropdown[open]>summary::after{content:'⌄'}
 body>header.site-header .nav-submenu{width:auto;padding:4px 12px;background:#fff}
 body>header.site-header .nav-submenu a{padding:3px 0!important;color:#707070!important;font:400 16px/25px 'Hind',sans-serif}
}

.player-dock #open-backpack.has-item::after{content:'';position:absolute;top:30.7692%;right:10%;width:15.5172%;height:11.5385%;min-width:3px;min-height:3px;margin:0;box-sizing:border-box;border:1px solid #5b4020;background:#ffd66b;z-index:4;pointer-events:none}

/* Hide the player tool bar only while the phone settings menu is open. */
@media(max-width:600px){
 body .handheld .console:has(#menu-screen[open]) .player-dock{visibility:hidden;pointer-events:none}
}

/* A page-drawn pointer avoids native custom-cursor edge restrictions. */
.game-pixel-cursor{position:fixed;left:0;top:0;width:25.2px;height:35px;pointer-events:none;z-index:2147483647;image-rendering:pixelated;display:none}
@media(hover:hover) and (pointer:fine){
 html.game-cursor-active main.console-page,html.game-cursor-active main.console-page *{cursor:none!important}
 html.game-cursor-active .game-pixel-cursor{display:block}
}

body .handheld #account-panel{position:absolute;inset:3%;margin:auto;width:94%;height:94%;max-height:620px;padding:16px;background:#292637;color:#fff3d6;overflow:auto;z-index:50}
#account-panel .account-content{display:grid;gap:10px}#account-panel button{padding:8px;border:1px solid #706778;background:#40394d;color:#fff3d6;font:20px 'VT323',monospace}
#account-panel p,#account-panel label{font:20px/1.2 'VT323',monospace}#account-panel label{display:grid;gap:5px;margin:10px 0}#account-panel input{width:100%;min-height:40px;font:18px monospace}#account-panel .account-recovery{overflow-wrap:anywhere;user-select:all;font:18px/1.5 monospace;padding:12px;background:#fff3d6;color:#292637}
#account-panel .explorer-title{background:transparent;color:#fff3d6;border-bottom:1px solid #706778;padding:0 0 10px;margin-bottom:12px}
#account-panel h2{font:26px/1.1 'VT323',monospace;color:#fff3d6;margin:0}#account-panel h2:focus{outline:none}
#account-panel [data-close-explorer]{background:transparent;color:#fff3d6;border:0;min-width:40px;min-height:40px}

/* Account forms follow the menu dimensions, including expanded game view. */
body .handheld #account-panel{inset:0;margin:0;width:100%;height:100%;max-width:none;max-height:100%;padding:clamp(10px,3cqw,24px);border:2px solid #706778;border-radius:0;box-shadow:4px 4px 0 #151322;box-sizing:border-box}
body.game-expanded .handheld #account-panel{inset:0;margin:auto;width:min(680px,92%);height:max-content;max-height:96%;padding:20px}
@media(min-width:700px){body.game-expanded .handheld #account-panel{padding:24px}}

.places-preview-toolbar{display:flex;flex-wrap:wrap;justify-content:center;gap:12px;padding:10px;background:#fff3d6;color:#253e70;font:17px 'VT323',monospace}
.places-preview-toolbar select{max-width:210px;padding:5px;font:inherit}.places-preview-toolbar label{display:flex;align-items:center;gap:5px}
body.places-overview .handheld .world canvas{width:100%!important;min-width:100%!important;height:100%!important;min-height:100%!important;aspect-ratio:auto}
body.game-expanded .places-preview-toolbar{display:none}

/* Bottom-bar movement mode and seating prompt flank the centred tool dock. */
.handheld .screen-bottom #run-toggle,.handheld .screen-bottom #seat-prompt{position:absolute;top:0;bottom:0;margin:0;padding:0;border:0;box-shadow:none;background:transparent;color:inherit;font-family:'Micro 5',monospace;font-size:clamp(10px,2.4cqw,24px);line-height:.95;letter-spacing:0;display:flex;align-items:center;cursor:pointer;z-index:5}
.handheld .screen-bottom #run-toggle{left:2%;gap:.6cqw;max-width:30%}
.run-mode-icon{display:block;position:relative;width:clamp(16px,3.4cqw,36px);aspect-ratio:1;overflow:hidden;flex-shrink:0}
.run-mode-icon img{position:absolute;left:0;top:0;width:200%;height:100%;max-width:none;image-rendering:pixelated;transform:translateX(-50%);pointer-events:none}
#run-toggle[aria-pressed=true] .run-mode-icon img{transform:none}
.handheld .screen-bottom #seat-prompt{left:calc(50% + clamp(57px,11cqw,114px) + 1cqw);right:1%;justify-content:flex-start;text-align:left;white-space:normal;font-size:clamp(10px,2.4cqw,24px);text-transform:uppercase}
.handheld .screen-bottom #seat-prompt[hidden]{display:none}
.handheld .screen-bottom #run-toggle:focus-visible,.handheld .screen-bottom #seat-prompt:focus-visible{outline:1px solid #c5c4d3;outline-offset:1px}
.handheld .panel-open .screen-bottom #run-toggle,.handheld .panel-open .screen-bottom #seat-prompt,.handheld .console:has(#menu-screen[open]) #run-toggle,.handheld .console:has(#menu-screen[open]) #seat-prompt{visibility:hidden;pointer-events:none}

.handheld .screen-bottom #seat-prompt:disabled{cursor:default;opacity:1}

.handheld .journey-summary{position:absolute;inset:18% 15% auto;margin:0;width:70%;max-height:68%;padding:0 0 14px;background:#fff3d6;color:#3b3549;border:3px solid #3b3549;box-shadow:4px 4px #19152f66;font-family:'Micro 5',monospace;z-index:70}
.handheld .journey-summary .explorer-title{position:relative;inset:auto;padding:12px;background:#ded4bf;color:#3b3549;border-bottom:2px solid #3b3549}
.handheld .journey-summary h2{font-family:'Micro 5',monospace;line-height:1;font-size:clamp(20px,4cqw,36px)}
.handheld .journey-summary .journey-copy{padding:0 16px;font-size:clamp(18px,3.8cqw,30px);line-height:1.1}
.handheld .journey-summary .journey-continue{display:block;margin:0 auto;padding:7px 14px;font:clamp(18px,3.4cqw,28px)/1 'Micro 5',monospace;background:#3b3549;color:#fff3d6;border:0}

.handheld .console.panel-open:has(#journey-summary[open])::before{background:rgba(21,21,38,.72)}
/* Small keepsakes, next to the existing tools. */
.companion-name{display:flex;align-items:end;flex-wrap:wrap;gap:6px}.companion-name label{display:grid;gap:3px}.companion-name input{font:inherit;max-width:160px;padding:4px;background:#f4e7bf;color:#383449;border:1px solid #8a806e}.companion-name button{font:inherit}.companion-name [role=status]{font-size:14px}
/* Companion naming shares the Equip row and type. */
.handheld .bag-detail .bag-equip-popup{display:inline-flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:5px;max-width:100%}.handheld .bag-detail .bag-equip-popup[hidden]{display:none}.handheld .bag-equip-popup .companion-name{display:inline-flex;align-items:center;gap:5px;font:22px/1 'Micro 5',monospace;color:#18243a}.handheld .companion-name label{display:flex;align-items:center;gap:5px;font:inherit}.handheld .companion-name input{font:inherit;width:100px;max-width:25cqw;padding:3px}.handheld .companion-name [role=status]{font:inherit}
@media(min-width:601px){body:not(.game-expanded) .handheld .bag-equip-popup .companion-name{font-size:17px}}
.handheld .bag-equip-popup .companion-name{margin-left:8px}
/* Reserve a square frame; never stretch the canvas to fill a tall grid row. */

@media(prefers-reduced-motion:reduce){body>header.site-header nav>a::after,body>header.site-header .nav-dropdown>summary::after{transition:none}}
@media(max-width:1000px){body>header.site-header nav>a[aria-current="page"]{color:#000;text-decoration:underline;text-underline-offset:6px;text-decoration-thickness:3px}}

.town-help .collection-links .save-note{font-size:16px;line-height:1.4}
.town-help #save-status.save-status-announcement{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
