:root{
  --ink:#172038;
--muted:#59647c;
--paper:#f7f3e8;
--paper-2:#fffdf6;
--navy:#111b35;
  --blue:#2f68b1;
--sky:#77b7df;
--gold:#c99a3d;
--gold-2:#efd483;
--red:#a5443f;
  --green:#2e7c67;
--line:#d6c99f;
--shadow:0 14px 38px rgba(17,27,53,.13);
  --pixel:"Courier New",ui-monospace,monospace;
--body:"Yu Gothic UI","Hiragino Kaku Gothic ProN",Meiryo,sans-serif;
}
*{
box-sizing:border-box}
html{
scroll-behavior:smooth;
background:#0d162b}
body{
margin:0;
color:var(--ink);
font-family:var(--body);
font-size:16px;
line-height:1.78;
background:
  radial-gradient(circle at 14% 5%,rgba(119,183,223,.26),transparent 24rem),
  linear-gradient(180deg,#142240 0,#24395b 18rem,#eee7d2 42rem,#f7f3e8 100%);
min-height:100vh}
button,input{
font:inherit}
a{
color:#174f90;
text-decoration-thickness:1px;
text-underline-offset:3px}
a:hover{
color:#a5443f}
.skip{
position:absolute;
top:-5rem;
left:1rem;
background:#fff;
padding:.6rem 1rem;
z-index:1000}
.skip:focus{
top:1rem}
.shell{
width:min(1180px,calc(100% - 28px));
margin:0 auto}
.hero{
position:relative;
min-height:250px;
padding:42px 0 28px;
color:#fff;
overflow:hidden}

.hero-inner{
position:relative;
display:grid;
grid-template-columns:1fr auto;
gap:28px;
align-items:end}

h1{
font-family:var(--pixel);
font-size:clamp(2.15rem,6vw,4.7rem);
line-height:1.05;
letter-spacing:.07em;
margin:.62rem 0 .4rem;
text-shadow:0 4px 0 #050a15,0 7px 16px rgba(0,0,0,.42)}


.mainnav{
background:rgba(7,14,31,.82);
border-top:1px solid rgba(255,255,255,.12);
border-bottom:1px solid rgba(239,212,131,.35)}
.mainnav .shell{
display:flex;
gap:7px;
overflow:auto;
padding:10px 0;
scrollbar-width:thin}
.mainnav a{
flex:0 0 auto;
color:#eaf4ff;
text-decoration:none;
border:1px solid rgba(255,255,255,.16);
border-radius:10px;
padding:.48rem .72rem;
font-weight:750;
font-size:.88rem;
background:rgba(255,255,255,.055)}
.mainnav a[aria-current="page"],.mainnav a:hover{
background:#f1d37a;
color:#15203a;
border-color:#f1d37a}
.page{
background:var(--paper);
border-radius:24px 24px 0 0;
box-shadow:0 -14px 40px rgba(0,0,0,.16);
padding:26px clamp(16px,3vw,38px) 60px;
min-height:70vh}
.toolbar{
display:flex;
flex-wrap:wrap;
align-items:center;
justify-content:space-between;
gap:12px;
margin:0 0 22px;
padding:12px;
border:1px solid var(--line);
border-radius:16px;
background:rgba(255,253,246,.94);
box-shadow:0 7px 20px rgba(34,43,64,.08)}
.tool-group{
display:flex;
align-items:center;
flex-wrap:wrap;
gap:8px}
.segmented{
display:inline-flex;
border:1px solid #8791a5;
border-radius:11px;
padding:3px;
background:#e8e4d9}
.segmented button,.utility{
border:0;
border-radius:8px;
background:transparent;
color:#293650;
padding:.48rem .72rem;
font-weight:800;
cursor:pointer}
.segmented button[aria-pressed="true"]{
background:var(--navy);
color:#fff;
box-shadow:0 2px 6px rgba(0,0,0,.22)}
.utility{
border:1px solid #bcc2ce;
background:#fff}
.utility:hover{
background:#e9f3fb;
border-color:#5a8bb6}
.utility[aria-pressed="true"]{
background:#dbeee8;
border-color:#4f8c7b}
.lang-en{
display:none}
html[data-lang="en"] .lang-ja{
display:none!important}
html[data-lang="en"] .lang-en{
display:initial}
html[data-lang="en"] tr.lang-en{
display:table-row}
html[data-lang="en"] .block.lang-en{
display:block}
.section-head{
display:flex;
align-items:end;
justify-content:space-between;
gap:16px;
margin:32px 0 14px;
padding-bottom:8px;
border-bottom:3px double #b89d58}
.section-head h2{
margin:0;
font-family:var(--pixel);
font-size:clamp(1.45rem,3.5vw,2.2rem);
line-height:1.25;
color:#162648}
.section-head p{
margin:0;
color:var(--muted)}
.lede,.notice,.tip,.warning{
border:1px solid var(--line);
border-radius:14px;
background:var(--paper-2);
padding:15px 18px;
margin:14px 0;
box-shadow:0 4px 12px rgba(31,41,68,.05)}
.notice{
background:#edf6fb;
border-color:#a9cde4}
.tip{
background:#edf7f2;
border-color:#a9d5c3}
.warning{
background:#fff1ec;
border-color:#dfb0a4}
.notice h3,.tip h3,.warning h3{
margin:0 0 5px;
font-size:1.02rem}
.notice p,.tip p,.warning p{
margin:.25rem 0}
.story{
border:1px solid #d0b55f;
border-radius:18px;
background:linear-gradient(135deg,#fffaf0,#efe3bd);
box-shadow:var(--shadow);
overflow:hidden;
margin:22px 0}
.story summary{
cursor:pointer;
padding:18px 22px;
list-style:none;
display:flex;
justify-content:space-between;
align-items:center;
font-weight:900;
color:#2c3150;
font-size:1.12rem}
.story summary::-webkit-details-marker{
display:none}
.story summary::after{
content:"＋";
font-family:var(--pixel);
font-size:1.35rem}
.story[open] summary::after{
content:"−"}
.story-body{
padding:4px 24px 24px;
border-top:1px solid rgba(153,116,37,.32);
white-space:pre-line}
.story-body p{
margin:.8rem 0}
.progress-card{
display:grid;
grid-template-columns:auto 1fr auto;
align-items:center;
gap:14px;
margin:16px 0;
padding:15px 17px;
border:1px solid #9fb2c7;
border-radius:16px;
background:#f7fbff}
.progress-track{
height:12px;
background:#dce4ed;
border-radius:999px;
overflow:hidden}
.progress-fill{
height:100%;
width:0;
background:linear-gradient(90deg,#367bb7,#49a886);
transition:width .25s}
.chapter-controls{
display:flex;
justify-content:center;
gap:10px;
margin:26px auto 14px}
.chapter-controls button{
border:1px solid #273b62;
background:#192b50;
color:#fff;
border-radius:10px;
padding:.6rem 1rem;
font-weight:850;
cursor:pointer}
.chapter-controls button:hover{
background:#315b91}
.chapter{
border:1px solid #9babc1;
border-radius:16px;
background:#fffdf7;
margin:12px 0;
overflow:hidden;
box-shadow:0 6px 18px rgba(30,43,71,.08)}
.chapter>summary{
cursor:pointer;
list-style:none;
background:linear-gradient(90deg,#1a2d52,#2f557f);
color:white;
padding:15px 18px;
font-weight:900;
display:flex;
justify-content:space-between;
gap:12px;
align-items:center}
.chapter>summary::-webkit-details-marker{
display:none}
.chapter>summary::after{
content:"＋"}
.chapter[open]>summary::after{
content:"−"}
.steps{
padding:6px 14px 16px}
.route-step{
scroll-margin-top:20px;
border:1px solid #c9c3b1;
border-radius:14px;
background:#fff;
margin:13px 0;
overflow:hidden}
.step-head{
display:grid;
grid-template-columns:auto 1fr auto;
align-items:center;
gap:12px;
padding:13px 15px;
background:#f3eddd;
border-bottom:1px solid #d7cfbb}
.step-no{
display:grid;
place-items:center;
min-width:42px;
height:42px;
padding:0 8px;
border-radius:50%;
background:#17345d;
color:#fff;
font-family:var(--pixel);
font-weight:900}
.step-title{
margin:0;
font-size:1.12rem;
line-height:1.4}
.level{
color:#6b4d17;
font-weight:800;
font-size:.84rem;
white-space:nowrap}
.step-check{
appearance:none;
width:28px;
height:28px;
border:2px solid #617089;
border-radius:7px;
background:#fff;
cursor:pointer;
position:relative}
.step-check:checked{
background:#2d8067;
border-color:#2d8067}
.step-check:checked::after{
content:"✓";
position:absolute;
color:white;
font-weight:900;
font-size:20px;
left:4px;
top:-2px}
.step-grid{
display:grid;
grid-template-columns:repeat(2,minmax(0,1fr));
gap:1px;
background:#ded7c7}
.step-field{
background:#fff;
padding:12px 14px}
.step-field h4{
margin:0 0 3px;
color:#31506f;
font-size:.88rem}
.step-field p{
margin:0}
.step-links{
display:flex;
flex-wrap:wrap;
justify-content:space-between;
gap:10px;
padding:10px 14px;
border-top:1px solid #e0dacb;
background:#faf7ee;
font-size:.87rem}
.cards{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(235px,1fr));
gap:14px;
margin:18px 0}
.card{
display:block;
border:1px solid #c8c1ae;
border-radius:15px;
background:#fffdf8;
padding:16px;
color:inherit;
text-decoration:none;
box-shadow:0 5px 14px rgba(37,43,57,.07)}
.card:hover{
border-color:#6b91b5;
transform:translateY(-1px)}
.card h3{
margin:0 0 4px;
color:#183c6a}
.card p{
margin:0;
color:var(--muted);
font-size:.92rem}
.table-tools{
display:flex;
flex-wrap:wrap;
gap:10px;
margin:10px 0}
.filter-input,.site-search{
min-width:min(100%,270px);
border:1px solid #9aa5b5;
border-radius:10px;
padding:.62rem .75rem;
background:#fff}
.site-search{
min-width:280px}
.search-panel{
width:100%;
display:grid;
gap:8px}
.search-results{
display:none;
border:1px solid #b9c3d0;
border-radius:10px;
background:#fff;
padding:8px;
max-height:320px;
overflow:auto}
.search-results.open{
display:block}
.search-result{
display:block;
padding:9px 10px;
border-radius:8px;
text-decoration:none;
color:#263853}
.search-result:hover{
background:#edf4fa}
.search-result small{
display:block;
color:#68738a}
.table-wrap{
overflow:auto;
border:1px solid #c7c0af;
border-radius:13px;
background:#fff;
margin:12px 0 25px;
box-shadow:0 5px 13px rgba(34,40,55,.05)}
table{
border-collapse:collapse;
width:100%;
font-size:.9rem}
caption{
text-align:left;
padding:10px 12px;
background:#f3eddd;
font-weight:700;
color:#5c4f35}
th,td{
padding:9px 10px;
border-right:1px solid #e3ddcf;
border-bottom:1px solid #e3ddcf;
vertical-align:top}
th{
background:#1b3157;
color:#fff;
text-align:left;
white-space:nowrap}
tbody tr:nth-child(even){
background:#faf8f1}
tbody tr:hover{
background:#edf5fa}
th[data-sort]{
cursor:pointer}
th[data-sort]::after{
content:" ↕";
opacity:.65;
font-size:.75rem}
.num{
text-align:right;
font-variant-numeric:tabular-nums}
.nowrap{
white-space:nowrap}
.rom{
font-family:var(--pixel);
font-size:.75rem;
color:#4d5870;
white-space:nowrap}
.map-layout{
display:grid;
grid-template-columns:minmax(190px,260px) 1fr;
gap:18px;
align-items:start}
.map-sidebar{
border:1px solid #c7c0ae;
border-radius:15px;
background:#fff;
padding:12px}
.map-sidebar h3{
margin:3px 4px 8px}
.button-list{
display:grid;
gap:7px}
.location-btn,.floor-btn,.source-btn,.component-btn{
border:1px solid #8ea0b7;
border-radius:9px;
background:#f7f8fa;
color:#24344f;
padding:.55rem .65rem;
text-align:left;
font-weight:750;
cursor:pointer}
.location-btn:hover,.floor-btn:hover,.source-btn:hover,.component-btn:hover,.location-btn[aria-pressed="true"],.floor-btn[aria-pressed="true"],.source-btn[aria-pressed="true"],.component-btn[aria-pressed="true"]{
background:#1c3d6a;
color:#fff;
border-color:#1c3d6a}
.floor-list,.source-list-buttons,.component-list{
display:flex;
flex-wrap:wrap;
gap:7px;
margin:10px 0 14px}
.floor-btn,.source-btn,.component-btn{
text-align:center}
.map-subcontrols{
border:1px solid #d8d0bf;
border-radius:11px;
padding:9px 10px;
background:#faf8f1}
.map-subcontrols>b{
display:inline-block;
margin-right:8px}
.map-subcontrols .source-list-buttons,.map-subcontrols .component-list{
display:inline-flex;
margin:0 14px 0 0;
vertical-align:middle}
.source-limit{
color:var(--muted);
font-size:.88rem;
margin:.45rem 0}
.map-stage{
min-width:0}
.map-title{
margin:0}
.map-meta{
color:var(--muted);
margin:.2rem 0 10px}
.map-controls{
display:flex;
flex-wrap:wrap;
gap:8px;
margin:10px 0}
.map-scroll{
overflow:auto;
max-height:72vh;
border:1px solid #76879d;
border-radius:12px;
background:#101827;
padding:13px;
min-height:240px}
.map-canvas{
position:relative;
width:max-content;
transform-origin:top left}
.map-canvas img{
display:block;
image-rendering:pixelated;
max-width:none}
.map-overlay{
position:absolute;
inset:0;
pointer-events:none}
.map-overlay[hidden]{
display:none}
.component-focus{
position:absolute;
border:3px solid #ffe27a;
background:rgba(255,226,122,.08);
box-shadow:0 0 0 2px rgba(13,22,43,.75) inset;
pointer-events:none}
.map-marker{
position:absolute;
transform:translate(-50%,-50%);
display:grid;
place-items:center;
min-width:30px;
height:30px;
padding:0 5px;
border:2px solid #fff;
border-radius:8px;
background:#133c71;
color:#fff;
font:900 .78rem/1 var(--pixel);
text-decoration:none;
box-shadow:0 2px 8px rgba(0,0,0,.72);
pointer-events:auto;
cursor:pointer;
z-index:2}
.treasure-marker{
background:#a74425}
.treasure-marker.collected{
background:#17633d;
color:#fff}
.treasure-marker.source-obscured{
border-style:dashed}
.link-marker{
background:#245487}
.kind-pit{
background:#722c55}
.kind-throne-warp,.kind-pillar-warp,.kind-cube-warp,.kind-warp-pad{
background:#5a3787}
.kind-edge-wrap{
background:#176269}
.marker-key{
border:1px solid #c8c0aa;
border-radius:12px;
background:#fff;
padding:13px;
margin-top:12px}
.marker-key[hidden]{
display:none}
.marker-key h3{
margin:0 0 8px}
.marker-grid{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(235px,1fr));
gap:8px}
.marker-item{
border:1px solid #ded7c8;
border-radius:9px;
padding:8px 10px;
background:#faf8f0}
.treasure-entry{
display:grid;
grid-template-columns:auto auto 1fr;
align-items:center;
gap:5px}
.treasure-entry input{
width:20px;
height:20px}
.treasure-entry small{
grid-column:3;
color:var(--muted)}
.treasure-entry.collected{
background:#e7f3ea;
border-color:#79a988}
.treasure-entry.source-obscured{
border-style:dashed}
.marker-label{
display:inline-grid;
place-items:center;
min-width:28px;
height:28px;
border-radius:7px;
background:#2a4772;
color:white;
font-family:var(--pixel);
font-weight:900;
margin-right:7px}
.link-label{
background:#245487}
.event-label{
background:#8a3b33}
.connection{
background:#eef5fa}
.event{
background:#fff3e6}
.condition{
color:#8a3b33;
font-weight:750}
.arrival-marker{
pointer-events:none;
cursor:default;
z-index:1}
.boss-grid{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(265px,1fr));
gap:14px}
.boss{
border:1px solid #b9b19e;
border-radius:15px;
background:#fff;
padding:15px}
.boss h3{
margin:0 0 5px;
color:#6e2528}
.stats{
display:grid;
grid-template-columns:repeat(3,1fr);
gap:5px;
margin:9px 0}
.stat{
background:#f1ecdf;
border-radius:8px;
padding:6px;
text-align:center}
.stat b{
display:block;
color:#162e54}
.tabs{
display:flex;
flex-wrap:wrap;
gap:7px;
margin:12px 0}
.tabs a{
border:1px solid #8094ad;
border-radius:999px;
padding:.42rem .7rem;
text-decoration:none;
background:#fff;
font-weight:750}
.tabs a:hover{
background:#e9f2f8}
.source-list li{
margin:.55rem 0}
.source-list code{
font-size:.82rem;
word-break:break-all}
.footer{
background:#0d162b;
color:#cbd5e5;
text-align:center;
padding:24px 14px}
.footer a{
color:#f3d67c}
.top-button{
position:fixed;
right:18px;
bottom:18px;
width:48px;
height:48px;
border:1px solid #f1d37a;
border-radius:50%;
background:#16294c;
color:#fff;
font-weight:900;
box-shadow:0 8px 20px rgba(0,0,0,.3);
cursor:pointer;
opacity:0;
pointer-events:none;
transform:translateY(8px);
transition:.2s;
z-index:50}
.top-button.show{
opacity:1;
pointer-events:auto;
transform:none}
.print-only{
display:none}
@media(max-width:760px){
.hero{
min-height:210px;
padding-top:30px}
.hero-inner{
grid-template-columns:1fr}
.page{
padding-inline:14px}
.toolbar{
align-items:stretch}
.tool-group{
width:100%}
.search-panel,.site-search{
width:100%;
min-width:0}
.step-grid{
grid-template-columns:1fr}
.step-head{
grid-template-columns:auto 1fr}
.step-check{
grid-column:1/-1;
justify-self:end;
margin-top:-42px}
.map-layout{
grid-template-columns:1fr}
.map-sidebar{
max-height:300px;
overflow:auto}
.map-scroll{
max-height:62vh}
.progress-card{
grid-template-columns:auto 1fr}
.progress-card strong:last-child{
grid-column:1/-1;
text-align:right}
th,td{
padding:8px;
font-size:.84rem}
}
@media(max-width:420px){
.shell{
width:min(100% - 16px,1180px)}
h1{
font-size:1.75rem;
letter-spacing:0;
white-space:nowrap}
.hero{
min-height:180px}
.page{
border-radius:15px 15px 0 0}
.toolbar,.story,.chapter,.route-step{
border-radius:12px}
.chapter-controls button{
padding:.52rem .72rem}
.step-no{
min-width:36px;
height:36px}
.step-head{
gap:8px}
.mainnav a{
font-size:.8rem}
.top-button{
right:10px;
bottom:10px}
}
@media print{
body{
background:#fff;
color:#000}
.hero{
min-height:0;
padding:16px 0;
color:#000}
.edition,.tagline,.crystals,.mainnav,.toolbar,.chapter-controls,.top-button,.map-sidebar,.map-controls,.footer,.step-links{
display:none!important}
.page{
box-shadow:none;
padding:0}
.shell{
width:100%}
.chapter,.story{
break-inside:auto;
box-shadow:none}
.chapter>summary,.story>summary{
color:#000;
background:#eee}
.route-step,.boss,.card,.table-wrap{
break-inside:avoid}
.map-layout{
display:block}
.map-scroll{
max-height:none;
overflow:visible;
background:#fff}
.map-canvas{
transform:none!important}
.print-only{
display:block}
}

.map-scroll{
background:#f8f1df}
.map-canvas img{
image-rendering:auto}

/* Shared reader layout. */
html {
scroll-behavior:smooth;
background:#f7f3e8;
}
body {
background:linear-gradient(#e6e1d4,#f7f3e8 30rem);
}
.hero {
min-height:0;
padding:22px 0;
background:#152744;
overflow:visible;
}
.hero::before {
display:none;
}
.hero-inner {
display:block;
}
.hero h1 {
font-family:var(--body);
font-size:clamp(1.65rem,4.2vw,2.5rem);
line-height:1.35;
letter-spacing:0;
text-shadow:none;
margin:14px 0 0;
white-space:normal;
overflow-wrap:anywhere;
}
.return-bar {
font-size:.9rem;
}
.return-bar a {
color:#fff;
text-decoration:underline;
}
.site-header .gtl-guide-return71 {
color:#fff!important;
}
.page {
border-radius:0;
box-shadow:none;
padding-bottom:90px;
}
.toolbar {
position:relative;
margin-top:0;
}
.tool-group {
min-width:0;
}
.site-search {
max-width:100%;
min-width:0;
width:100%;
}
.search-panel {
position:relative;
display:grid;
grid-template-columns:minmax(0,1fr) auto;
align-items:start;
}
.search-panel .search-results {
grid-column:1/-1;
}
.search-result {
overflow-wrap:anywhere;
}
.search-result b,.search-result span {
display:block;
}
.search-result small {
font-weight:700;
}
.chapter-index {
border:1px solid var(--line);
padding:12px 18px;
border-radius:12px;
background:#fffdf6;
}
.chapter-index ol {
margin:.4em 0;
padding-left:1.5em;
columns:2;
}
.chapter-index li {
break-inside:avoid;
margin:.3em 0;
}
.chapter-controls {
justify-content:flex-start;
flex-wrap:wrap;
}
.route-step {
scroll-margin-top:18px;
}
.step-head {
grid-template-columns:auto minmax(0,1fr) auto auto;
}
.step-title {
overflow-wrap:anywhere;
}
.step-check {
margin:0;
flex-shrink:0;
grid-column:auto;
justify-self:end;
}
.route-step.is-done {
border:1px solid #639b75;
background:#f7fbf4;
}
.done-stamp {
display:none;
text-align:right;
padding:10px 16px 4px;
}
.is-done>.done-stamp {
display:block;
}
.done-stamp>span {
border:2px solid #a33431;
border-radius:4px;
color:#a33431;
padding:2px 13px;
font-size:1.1rem;
font-weight:900;
line-height:1.5;
letter-spacing:.12em;
text-shadow:.4px .3px #c56d61;
transform:none;
}
.route-step.is-done .step-field {
background:#fbfff9;
}
.step-map-links {
border-top:1px solid #e0dacb;
background:#faf7ee;
padding:10px 14px;
display:flex;
flex-wrap:wrap;
gap:8px 14px;
align-items:baseline;
}
.step-map-links a {
font-size:.9rem;
}
.progress-card {
grid-template-columns:auto minmax(0,1fr) auto;
}
.progress-card [data-reset-chart] {
grid-column:1/-1;
justify-self:end;
}
.table-wrap {
max-width:100%;
width:100%;
}
#weapons-table {
min-width:1700px;
}
#armor-table {
min-width:1400px;
}
#enemies {
min-width:2000px;
}
#magic-table {
min-width:1500px;
}
#weapons-table th:nth-child(2),#weapons-table td:nth-child(2),#armor-table th:nth-child(2),#armor-table td:nth-child(2) {
min-width:120px;
}
#weapons-table td:nth-child(3),#armor-table td:nth-child(3) {
min-width:140px;
}
#weapons-table td:nth-child(14),#armor-table td:nth-child(11) {
min-width:220px;
}
.gear-origin {
min-width:240px;
white-space:normal;
}
.gear-origin a {
display:block;
margin:4px 0;
}
[data-lang=en] .nes-name-column {
display:none;
}
section,.cards,.boss-grid,.boss {
min-width:0;
}
.boss-grid {
align-items:start;
}
.boss {
height:auto;
}
.encounter-links {
padding:8px 14px;
display:flex;
flex-wrap:wrap;
gap:6px 12px;
}
.enemy-route-link,td>small:has(a) {
display:block;
margin-top:6px;
white-space:normal;
}
.footer {
padding-bottom:28px;
}
.footer a {
color:#fff;
}
#guide-top {
position:fixed;
right:max(18px,env(safe-area-inset-right));
bottom:max(18px,env(safe-area-inset-bottom));
width:46px;
height:46px;
display:grid;
place-items:center;
border:1px solid #b6aa88;
border-radius:50%;
background:#fbf5e7;
color:#17314f;
font-size:22px;
font-weight:800;
line-height:1;
box-shadow:0 3px 10px #17203826;
cursor:pointer;
z-index:80;
}
:focus-visible {
outline:3px solid #426a8c;
outline-offset:3px;
}
.persistence-status {
display:flex;
align-items:center;
flex-wrap:wrap;
gap:10px;
}
[hidden] {
display:none!important;
}
.map-layout {
grid-template-columns:minmax(180px,240px) minmax(0,1fr);
}
.map-sidebar {
max-height:75vh;
overflow:auto;
}
.map-sidebar ol {
margin:0;
padding-left:1.3rem;
}
.map-sidebar li {
margin:.45rem 0;
}
.map-sidebar a {
display:block;
padding:3px 4px;
}
.map-sidebar a[aria-current=page] {
font-weight:900;
background:#e4edf0;
}
.map-scroll {
height:min(70vh,720px);
min-height:300px;
max-height:none;
background:#eee8da;
padding:8px;
overscroll-behavior:contain;
touch-action:pan-x pan-y;
}
.map-canvas {
margin:auto;
min-width:0;
}
.map-canvas img {
image-rendering:auto;
}
.map-overlay {
overflow:visible;
}
.map-marker {
min-width:32px;
height:28px;
border:1px solid #647682;
border-radius:5px;
background:#fffaf0;
color:#18394a;
font-family:Meiryo,Arial,sans-serif;
font-size:13px;
font-weight:800;
box-shadow:0 1px 4px #24344333;
padding:0 4px;
z-index:3;
}
.map-marker:hover,.map-marker:focus {
background:#dcebf0;
color:#19374a;
}
.marker-t {
border-color:#997a49;
}
.map-marker.collected {
background:#e1eedb;
color:#245638;
border-color:#72916b;
}
.marker-e {
border-color:#698266;
}
.map-controls {
align-items:center;
}
.map-title {
font-size:1.45rem;
overflow-wrap:anywhere;
}
.map-help {
font-size:.9rem;
color:#56657a;
}
.map-selection {
border:1px solid #b4c6cd;
background:#eff5f5;
padding:8px 12px;
border-radius:8px;
overflow-wrap:anywhere;
}
.marker-grid {
grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr));
align-items:start;
}
.marker-heading {
display:flex;
gap:8px;
align-items:baseline;
}
.marker-heading .marker-label {
flex-shrink:0;
margin-right:0;
font-size:.9rem;
}
.marker-item {
scroll-margin-top:20px;
min-width:0;
overflow-wrap:anywhere;
}
.marker-item label {
display:flex;
align-items:center;
gap:7px;
margin-top:8px;
}
.marker-item input {
width:22px;
height:22px;
}
.marker-item.collected {
background:#ecf6e7;
border-color:#78a27a;
}
.marker-item.point-selected {
outline:2px solid #6c94aa;
outline-offset:2px;
}
.destination {
margin:.45rem 0;
}
.destination small {
display:block;
color:#526678;
}
.floor-list {
flex-wrap:wrap;
}
.floor-list a {
text-decoration:none;
}
.floor-list a[aria-current=page] {
background:#193b64;
color:#fff;
}
.map-key {
margin-top:18px;
}
@media(max-width:760px) {
 .hero {
min-height:0;
padding:18px 0;
}
 .hero h1 {
white-space:normal;
font-size:1.8rem;
}
 .page {
padding-right:68px;
}
 .chapter-index ol {
columns:1;
}
 .step-head {
grid-template-columns:auto minmax(0,1fr) auto;
align-items:start;
gap:8px;
}
 .step-title {
font-size:1.02rem;
}
 .level {
white-space:normal;
grid-column:2;
grid-row:2;
}
 .step-check {
grid-column:3;
grid-row:1/3;
align-self:start;
margin:0;
}
 .step-no {
min-width:32px;
width:32px;
height:32px;
font-size:.9rem;
}
 .map-layout {
grid-template-columns:minmax(0,1fr);
}
 .map-sidebar {
max-height:230px;
}
 .map-scroll {
height:60vh;
min-height:200px;
}
 .progress-card {
grid-template-columns:1fr auto;
}
 .progress-card .progress-track {
grid-column:1/-1;
grid-row:2;
}
 .progress-card strong:last-child {
grid-column:auto;
}
 .toolbar {
gap:10px;
}
}
@media(prefers-reduced-motion:reduce) {
 html {
scroll-behavior:auto!important;
}
 *,*::before,*::after {
animation:none!important;
transition:none!important;
scroll-behavior:auto!important;
}
}
@media print {
 .hero {
background:#fff;
min-height:0;
color:#000;
padding:8px 0;
}
 .hero h1 {
font-size:22pt;
margin:0;
}
 #guide-top,.return-bar,.story,.chapter-index,.chapter-controls,.toolbar,.footer,.map-sidebar,.map-controls,.floor-list,.map-help,.map-selection,.map-overlay,.step-map-links {
display:none!important;
}
 .page {
padding:0;
}
 .done-stamp {
padding:6px 12px;
}
 .map-scroll {
height:auto;
min-height:0;
max-height:none;
overflow:visible;
padding:0;
border:0;
}
 .map-canvas {
width:100%!important;
height:auto!important;
}
 .map-canvas img {
width:100%!important;
height:auto!important;
max-width:100%!important;
}
 .map-key,.marker-grid {
display:block;
}
 .marker-item {
break-inside:avoid;
margin-bottom:6px;
}
 .map-title {
font-size:16pt;
}
}
