:root{
  --paper:#f4f0e7;
  --panel:#fffdf8;
  --ink:#15233d;
  --muted:#536174;
  --line:#cfc3ae;
  --navy:#1d3f6b;
  --blue:#075b9a;
  --green:#237858;
  --red:#b3332f}
*{
  box-sizing:border-box}
html{
  scroll-behavior:smooth;
  scroll-padding-top:18px}
body{
  margin:0;
  background:var(--paper);
  color:var(--ink);
  font:16px/1.85 "Yu Gothic UI","Yu Gothic",Meiryo,sans-serif}
a{
  color:var(--blue);
  text-underline-offset:.2em;
  overflow-wrap:anywhere}
button,input,select{
  font:inherit}
button{
  padding:8px 15px;
  min-height:42px;
  border:1px solid #a6977e;
  border-radius:8px;
  background:var(--panel);
  color:var(--ink);
  cursor:pointer;
  font-weight:700}
button:hover{
  background:#ece6da}
button:focus-visible,a:focus-visible,summary:focus-visible,input:focus-visible,select:focus-visible{
  outline:3px solid #b0781c;
  outline-offset:3px}
[hidden]{
  display:none!important}
h1,h2,h3,h4{
  line-height:1.5}
h2{
  font-size:1.4rem}
h3{
  font-size:1.12rem}
p{
  margin:.8em 0}
ul,ol{
  padding-left:1.45em}
li{
  margin:.3em 0}
table{
  border-collapse:collapse;
  width:100%;
  font-size:.9rem}
th,td{
  border-bottom:1px solid var(--line);
  padding:10px 12px;
  text-align:left;
  vertical-align:top}
th{
  background:#e8edf3;
  color:#193a64;
  white-space:nowrap}
tbody tr:nth-child(even){
  background:#f7f3eb}
caption{
  padding:10px;
  text-align:left;
  font-weight:700}
tr:last-child td{
  border-bottom:0}
.num{
  font-variant-numeric:tabular-nums;
  white-space:nowrap;
  text-align:right}
.table-wrap{
  overflow:auto;
  max-width:100%;
  border:1px solid var(--line);
  border-radius:9px;
  margin:15px 0}
.return-bar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  flex-wrap:wrap;
  padding:9px max(22px,calc((100vw - 1440px)/2 + 24px));
  background:#eee8dc;
  border-bottom:1px solid var(--line);
  font-size:.82rem}
.language-switch{
  display:flex;
  gap:8px}
.language-switch button{
  padding:4px 14px;
  min-height:34px;
  font-size:.82rem;
  border-radius:999px}
.language-switch button[aria-pressed=true]{
  background:#17375f;
  color:white;
  border-color:#17375f}
.hero{
  background:#1d3f6b;
  color:#fff}
.hero>div{
  max-width:1440px;
  margin:auto;
  padding:35px 48px 28px}
.hero h1{
  font:700 clamp(1.9rem,3.7vw,3.25rem)/1.3 YuMincho,"Yu Mincho",serif;
  margin:0;
  max-width:1120px}
.hero h1 br{
  display:none}
.hero p{
  margin:13px 0 0;
  color:#e9eff7;
  font-size:.86rem}
.global-nav{
  background:var(--panel);
  border-bottom:1px solid #b9c3cf;
  overflow:auto}
.global-nav>div{
  display:flex;
  gap:24px;
  align-items:center;
  width:max-content;
  min-width:100%;
  padding:11px max(22px,calc((100vw - 1440px)/2 + 48px))}
.global-nav a{
  white-space:nowrap;
  text-decoration:none;
  font-weight:800;
  font-size:.9rem;
  padding:4px 0;
  border-bottom:3px solid transparent}
.global-nav a[aria-current=page]{
  border-bottom-color:#a76800;
  color:#784d0a}
.toolbar{
  max-width:1344px;
  margin:0 auto;
  padding:15px 0;
  display:flex;
  gap:10px;
  align-items:center}
.edition{
  margin-left:auto;
  font-size:.8rem;
  color:var(--muted)}
.page-layout{
  max-width:1440px;
  margin:auto;
  display:grid;
  grid-template-columns:210px minmax(0,1fr);
  gap:28px;
  padding:10px 48px 52px}
.side-nav{
  font-size:.85rem;
  padding:10px 0}
.side-nav h2{
  font-size:.95rem}
.side-nav a{
  display:block;
  padding:6px 3px}
.side-nav a.depth3{
  font-size:.8rem;
  padding-left:12px}
.main-content,main{
  min-width:0}
.page-heading{
  margin:22px 0 18px;
  font-family:YuMincho,"Yu Mincho",serif;
  font-size:1.75rem}
.guide-section,section.article{
  margin:20px 0;
  background:var(--panel);
  border:1px solid var(--line);
  border-radius:12px;
  overflow:hidden}
.guide-section>summary{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  list-style:none;
  cursor:pointer;
  padding:18px 22px;
  color:#1a395d;
  font-size:1.17rem;
  font-weight:800}
.guide-section>summary::-webkit-details-marker{
  display:none}
.guide-section>summary::after{
  content:'+';
  flex:0 0 28px;
  width:28px;
  height:28px;
  display:grid;
  place-items:center;
  border:1px solid #9ba9ba;
  border-radius:50%;
  font:700 20px/1 Arial,sans-serif}
.guide-section[open]>summary::after{
  content:'−'}
.guide-section[open]>summary{
  border-bottom:1px solid var(--line)}
.section-body,section.article{
  padding:20px 22px}
.route-card{
  position:relative;
  background:#fffdfa;
  border:1px solid #cfc3ae;
  border-radius:10px;
  margin:16px 0;
  padding:20px 22px;
  box-shadow:0 3px 12px #34270c08}
.route-card__head{
  display:flex;
  gap:13px;
  align-items:flex-start}
.route-card h3{
  margin:0 0 8px;
  padding-right:54px}
.route-check{
  width:23px;
  height:23px;
  flex:0 0 23px;
  accent-color:var(--green);
  margin:3px 0;
  cursor:pointer}
.route-card.is-complete{
  background:#f4f8f3;
  border-color:#8bab98}
.route-card.is-complete::after{
  content:'完了';
  position:absolute;
  right:16px;
  top:18px;
  border:3px double var(--red);
  border-radius:4px;
  padding:2px 7px;
  color:var(--red);
  font-size:.88rem;
  font-weight:900;
  line-height:1.3;
  box-shadow:inset 0 0 0 1px #b3332f22;
  background:radial-gradient(circle at 20% 30%,#fffdf8 0 1px,transparent 1.2px) 0 0/8px 8px}
html[lang=en] .route-card.is-complete::after{
  content:'DONE';
  font-size:.75rem}
.route-card.is-bumping{
  animation:card-bump .58s cubic-bezier(.22,1.3,.36,1)}
.route-card.is-bumping.is-complete::after{
  animation:stamp-pop .58s cubic-bezier(.22,1.3,.36,1)}
@keyframes card-bump{
  0%,100%{
    transform:scale(1)}
  36%{
    transform:scale(1.018)}
  68%{
    transform:scale(.995)}
  }
@keyframes stamp-pop{
  0%{
    opacity:0;
    transform:scale(1.42)}
  58%{
    opacity:1;
    transform:scale(.92)}
  100%{
    opacity:1;
    transform:scale(1)}
  }
.tag-row{
  display:flex;
  gap:6px;
  flex-wrap:wrap}
.tag,.badge{
  font-size:.74rem;
  display:inline-block;
  border:1px solid #c4ccd4;
  background:#ecf0f4;
  color:#315270;
  border-radius:999px;
  padding:2px 9px;
  line-height:1.7}
.tag.required{
  background:#edf4ed;
  border-color:#b5cab9;
  color:#255c43}
.tag.danger{
  background:#fff0df;
  border-color:#d6bfa0;
  color:#845717}
.intro-grid,.three-column,.card-grid,.two-column{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px}
.intro-grid{
  grid-template-columns:repeat(3,minmax(0,1fr))}
.intro-card,.panel,.card,.quick-card{
  padding:16px;
  border:1px solid var(--line);
  border-radius:9px;
  background:var(--panel)}
.intro-card h2{
  font-size:1.03rem;
  margin-top:0}
.intro-card p{
  font-size:.9rem}
.notice,.formula{
  padding:16px 20px;
  border:1px solid #c3cbd2;
  border-radius:9px;
  background:#edf2f7;
  margin:16px 0}
.notice.warning{
  background:#fff5e6;
  border-color:#d8c0a1}
.notice.success{
  background:#edf4ed;
  border-color:#b9cfbd}
.formula{
  font-family:Consolas,"Yu Gothic",sans-serif;
  overflow-wrap:anywhere;
  background:#f0ede6}
.small,.source-note{
  font-size:.82rem;
  color:var(--muted)}
.details-controls{
  margin:24px 0}
.details-controls h2{
  text-align:center}
.details-actions{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:12px}
.details-actions button{
  min-width:180px}
.calculator{
  padding:24px;
  border:2px solid #acbcd0;
  background:var(--panel);
  border-radius:12px;
  box-shadow:0 8px 28px #263d5a0a}
.calculator-heading{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  flex-wrap:wrap}
.calculator h2{
  margin:0;
  color:#193e6a;
  font-size:1.5rem}
.calc-inputs{
  display:grid;
  grid-template-columns:1.5fr 1fr auto;
  gap:14px;
  align-items:end;
  margin:20px 0}
.calc-inputs label{
  font-size:.88rem;
  font-weight:700}
.calc-inputs input,.calc-inputs select{
  display:block;
  width:100%;
  min-width:0;
  margin-top:6px;
  padding:10px 12px;
  border:1px solid #98a6b7;
  border-radius:8px;
  background:white}
.calc-inputs button{
  min-height:48px;
  background:var(--navy);
  color:white;
  border-color:var(--navy)}
#name-result{
  padding:16px;
  background:#edf5ef;
  border:1px solid #bed2c4;
  border-radius:9px;
  margin:14px 0}
.stat-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:10px;
  margin-top:12px}
.stat-grid div{
  background:#fffdf8;
  border:1px solid #c4d4c7;
  border-radius:7px;
  padding:10px;
  text-align:center}
.stat-grid strong{
  display:block;
  font-size:1.5rem}
.input-error{
  color:#9f2e25;
  font-weight:700}
.input-error:empty{
  display:none}
.progress-card{
  display:grid;
  grid-template-columns:1fr auto;
  gap:18px;
  align-items:center;
  padding:20px;
  margin:22px 0;
  border:1px solid var(--line);
  border-radius:11px;
  background:var(--panel)}
.progress-card h2{
  margin:0;
  font-size:1.1rem}
.progress-card p{
  font-size:.83rem;
  color:var(--muted)}
.progress-track{
  height:11px;
  border:1px solid #b8c8bd;
  border-radius:999px;
  overflow:hidden;
  background:#e4e9e2}
.progress-fill{
  height:100%;
  width:0;
  background:var(--green);
  transition:width .25s ease}
.progress-actions{
  text-align:right}
.progress-actions strong{
  font-size:1.2rem}
.progress-actions button{
  font-size:.8rem;
  padding:6px 10px;
  margin-top:10px}
.floating-progress{
  position:fixed;
  right:18px;
  top:120px;
  z-index:20;
  border:3px solid #b79749;
  background:#fffdf8;
  color:#193c66;
  border-radius:50%;
  width:64px;
  height:64px;
  display:grid;
  place-items:center;
  font-weight:900;
  box-shadow:0 5px 20px #16365c20}
.floating-progress.bump{
  animation:card-bump .65s}
.back-top{
  position:fixed;
  right:18px;
  bottom:18px;
  z-index:30;
  width:46px;
  height:46px;
  border-radius:50%;
  padding:0;
  box-shadow:0 5px 18px #17375f22}
.skip-link{
  position:absolute;
  left:12px;
  top:-100px;
  z-index:50;
  background:white;
  padding:10px}
.skip-link:focus{
  top:12px}
footer{
  background:#eae4d8;
  border-top:1px solid var(--line);
  padding:23px max(22px,calc((100vw - 1344px)/2));
  display:flex;
  gap:18px;
  justify-content:space-between;
  flex-wrap:wrap;
  font-size:.8rem}
#toast{
  position:fixed;
  left:50%;
  bottom:28px;
  transform:translateX(-50%);
  z-index:60;
  background:#17375f;
  color:#fff;
  border-radius:8px;
  padding:10px 18px;
  max-width:calc(100% - 110px);
  opacity:0;
  pointer-events:none}
#toast.show{
  opacity:1}
.filter-row{
  display:flex;
  gap:10px;
  align-items:center;
  flex-wrap:wrap;
  margin:18px 0}
.filter-row input{
  padding:8px 12px;
  border:1px solid #9baabc;
  border-radius:7px;
  max-width:100%}
.map-card{
  border:1px solid var(--line);
  border-radius:12px;
  background:var(--panel);
  padding:22px;
  margin:22px 0}
.map-card h2{
  margin-top:0}
.map-view{
  overflow:auto;
  background:#e4e1d9;
  border:1px solid #bec4ca;
  border-radius:8px;
  max-height:80vh;
  text-align:center;
  touch-action:pan-x pan-y}
.map-view img{
  display:block;
  max-width:100%;
  height:auto;
  margin:auto;
  image-rendering:auto}
.map-view.is-zoom img{
  max-width:none;
  width:auto}
.map-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin:12px 0}
.map-caption{
  font-size:.82rem;
  color:var(--muted);
  overflow-wrap:anywhere}
.source-links{
  font-size:.85rem}
.source-links a{
  margin-right:12px}
.history-meta{
  display:flex;
  gap:7px;
  flex-wrap:wrap}
.legend{
  padding:12px;
  border:1px solid var(--line);
  background:#f5f0e6;
  border-radius:8px}
.source-table td{
  overflow-wrap:anywhere}
a.link-card{
  display:block;
  text-decoration:none;
  padding:18px;
  border:1px solid var(--line);
  border-radius:9px;
  background:var(--panel)}
.link-card h2{
  font-size:1.1rem}
.link-card p{
  color:var(--muted);
  font-size:.88rem}
html[lang=en] .hero h1{
  font-size:clamp(1.7rem,3.6vw,3rem)}
html[lang=en] main{
  overflow-wrap:anywhere}
.story-prose{
  max-width:68ch}
.route-links{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin:12px 0}
.route-links a{
  font-size:.84rem;
  border:1px solid #b7c5d6;
  border-radius:6px;
  padding:4px 10px;
  text-decoration:none;
  background:#f1f5fa}

.floor-actions{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin:12px 0}
.floor-actions button{
  min-height:36px;
  padding:5px 12px;
  font-size:.83rem}
.floor-actions button[aria-pressed=true]{
  background:#17375f;
  color:white;
  border-color:#17375f}
html[lang=en] .hero h1 br{
  display:block}

.map-point--world-location{
  background:#1e6d57;
  box-shadow:0 0 0 2px #154c3ddd,0 2px 5px #0008}
.map-coordinate-note{
  margin:.55em 0 0;
  color:#53616f;
  font-size:.78rem;
  line-height:1.55}
.map-transition-list{
  display:grid;
  gap:8px;
  margin:12px 0 0;
  padding:0;
  list-style:none}
.map-transition{
  padding:10px 12px;
  border:1px solid #c8d1da;
  border-radius:7px;
  background:#f7f9fb;
  font-size:.82rem;
  line-height:1.65}
.map-transition button{
  margin:.45em 0 0;
  min-height:32px;
  padding:4px 10px;
  font-size:.78rem}
@media(max-width:760px){
  .map-transition{
    padding:9px 10px}
  }

.page-search{
  max-width:1344px;
  margin:0 auto 15px;
  display:flex;
  gap:10px;
  align-items:center;
  flex-wrap:wrap;
  font-size:.86rem}
.page-search input{
  min-width:0;
  width:240px;
  max-width:100%;
  border:1px solid #98a6b7;
  border-radius:7px;
  padding:8px 12px;
  background:white}
.page-search button{
  font-size:.85rem}
.page-search label{
  font-weight:700}
.search-current{
  outline:3px solid #ad7c22;
  outline-offset:4px;
  background:#fff0b9!important;
  border-radius:3px}
#search-status{
  min-height:1.5em;
  color:#536174}
@media(max-width:1380px){
  .page-search{
    margin:0 25px 15px}
  }
@media(max-width:760px){
  .page-search{
    margin:0 17px 15px}
  .page-search label{
    width:100%}
  .page-search input{
    flex:1 1 100%;
    width:100%}
  }
@media print{
  .page-search{
    display:none}
  }

@media(max-width:1100px){
  .page-layout{
    padding:10px 25px 40px;
    grid-template-columns:170px minmax(0,1fr);
    gap:22px}
  .toolbar{
    padding:15px 25px}
  .floating-progress{
    width:56px;
    height:56px;
    right:8px;
    top:150px;
    font-size:.86rem}
  .hero>div{
    padding-right:70px}
  .progress-card{
    grid-template-columns:1fr}
  .progress-actions{
    text-align:left}
  }

@media(max-width:760px){
  body{
    font-size:15px}
  .hero>div{
    padding:27px 22px 24px}
  .hero h1 br{
    display:block}
  .hero h1{
    font-size:1.9rem}
  .hero p{
    font-size:.78rem;
    max-width:27em}
  .return-bar{
    padding:9px 17px;
    gap:8px}
  .return-bar>a{
    font-size:.75rem}
  .language-switch button{
    padding:4px 11px}
  .page-layout{
    display:block;
    padding:5px 15px 36px}
  .side-nav{
    display:none}
  .toolbar{
    padding:13px 17px}
  .floating-progress{
    position:static;
    margin:0 17px 12px auto;
    width:56px;
    height:56px}
  .calculator{
    padding:18px}
  .calculator h2{
    font-size:1.27rem}
  .calc-inputs{
    grid-template-columns:1fr 1fr;
    gap:10px}
  .calc-inputs button{
    grid-column:1/-1}
  .stat-grid{
    grid-template-columns:repeat(2,1fr)}
  .section-body{
    padding:14px}
  .guide-section>summary{
    padding:15px;
    font-size:1.05rem}
  .route-card{
    padding:17px 14px}
  .route-card h3{
    font-size:1rem;
    padding-right:35px}
  .route-card.is-complete::after{
    right:10px;
    top:15px;
    font-size:.7rem;
    padding:2px 4px}
  .intro-grid,.two-column,.three-column,.card-grid{
    grid-template-columns:1fr}
  .progress-card{
    padding:17px}
  .notice,.formula{
    padding:14px 16px}
  .map-card{
    padding:15px}
  .back-top{
    right:12px;
    bottom:12px}
  .global-nav>div{
    gap:20px;
    padding:10px 18px}
  .details-actions button{
    min-width:0;
    font-size:.85rem}
  .table-wrap table{
    min-width:550px}
  footer span{
    max-width:28em}
  }

@media(prefers-reduced-motion:reduce){
  html{
    scroll-behavior:auto}
  *,*::before,*::after{
    animation:none!important;
    transition:none!important}
  }

@media print{
  body{
    background:white;
    font-size:10pt}
  .return-bar,.toolbar,.global-nav,.side-nav,.back-top,.floating-progress,.details-actions,.map-actions,button{
    display:none!important}
  .page-layout{
    display:block;
    padding:0}
  .hero{
    background:white;
    color:#15233d}
  .hero p{
    color:#536174}
  .hero>div{
    padding:10px}
  .hero h1{
    font-size:22pt}
  .guide-section,.route-card,.map-card{
    break-inside:avoid}
  .table-wrap,.map-view{
    overflow:visible;
    max-height:none}
  .table-wrap table{
    min-width:0}
  footer{
    background:white}
  .route-card.is-complete::after{
    color:#444}
  .calculator{
    break-inside:avoid}
  }


.story-card{
  margin:0 0 22px;
  border:1px solid #b39551;
  border-radius:12px;
  background:linear-gradient(135deg,#fbf8ef,#f3eddf);
  box-shadow:0 5px 20px #6550250c;
  overflow:hidden}

.map-stage{
  position:relative;
  display:inline-block;
  max-width:100%;
  vertical-align:top;
  line-height:0}
.map-stage img{
  width:100%;
  max-width:100%;
  height:auto}
.map-point-overlay{
  position:absolute;
  inset:0;
  pointer-events:none}
.map-point{
  position:absolute;
  z-index:2;
  transform:translate(-50%,-50%);
  display:grid;
  place-items:center;
  min-width:20px;
  width:20px;
  height:20px;
  min-height:20px;
  padding:0;
  border:2px solid #fff;
  border-radius:50%;
  background:#17375fe6;
  color:#fff;
  box-shadow:0 0 0 2px #17375fcc,0 2px 5px #0008;
  font:900 9px/1 Arial,sans-serif;
  pointer-events:auto}
.map-point--treasure-event{
  background:#b85b00;
  box-shadow:0 0 0 2px #7c3d00dd,0 2px 5px #0008}
.map-point--exit,.map-point--entrance-exit{
  background:#8a2c2c;
  box-shadow:0 0 0 2px #641d1ddd,0 2px 5px #0008}
.map-point--event{
  background:#6c3a88;
  box-shadow:0 0 0 2px #4e2765dd,0 2px 5px #0008}
.map-point[aria-pressed=true]{
  z-index:4;
  outline:3px solid #ffdc6a;
  outline-offset:2px;
  transform:translate(-50%,-50%) scale(1.18)}
.map-point-list{
  display:flex;
  flex-wrap:wrap;
  gap:7px;
  max-height:220px;
  overflow:auto;
  padding:10px 2px;
  margin-top:10px}
.map-point-list:empty{
  display:none}
.map-point-list-button{
  min-height:32px;
  padding:5px 9px;
  border-radius:6px;
  font-size:.72rem;
  font-weight:700;
  text-align:left}
.map-point-list-button[aria-pressed=true]{
  background:#17375f;
  color:#fff;
  border-color:#17375f}
.map-point-detail{
  min-height:64px;
  margin:10px 0;
  padding:12px 14px;
  border:1px solid #b8c4cf;
  border-radius:8px;
  background:#f0f4f8;
  font-size:.86rem}
.map-point-detail p{
  margin:.25em 0}
.map-point-detail button{
  margin-top:7px;
  min-height:34px;
  padding:5px 11px;
  font-size:.8rem}
@media(max-width:760px){
  .map-point{
    width:18px;
    height:18px;
    min-width:18px;
    min-height:18px;
    font-size:8px}
  .map-point-list{
    max-height:190px}
  .map-point-list-button{
    flex:1 1 145px}
  }

.story-card>summary,.calc-reference>summary{
  display:flex;
  align-items:center;
  gap:12px;
  cursor:pointer;
  list-style:none;
  line-height:1.55;
  padding:17px 22px;
  color:#594624;
  font-weight:800}

.story-card>summary{
  font:700 1.22rem/1.5 YuMincho,"Yu Mincho",serif}
.story-card>summary::-webkit-details-marker,.calc-reference>summary::-webkit-details-marker{
  display:none}

.story-card>summary::after,.calc-reference>summary::after{
  content:'+';
  margin-left:auto;
  font:400 1.35rem/1 Arial,sans-serif}
.story-card[open]>summary::after,.calc-reference[open]>summary::after{
  content:'−'}

.story-ornament{
  font-size:.8rem;
  color:#a38647;
  opacity:.8}
.story-card[open]>summary{
  border-bottom:1px solid #cfbd94}
.story-body{
  max-width:76ch;
  margin:auto;
  padding:6px 28px 22px;
  line-height:2.05;
  color:#403b32}
.story-body p{
  margin:1.2em 0;
  white-space:pre-line}
.story-body p:last-child{
  padding-bottom:8px}

.story-card>summary:focus-visible,.calc-reference>summary:focus-visible{
  outline:3px solid #375e8e;
  outline-offset:-5px;
  border-radius:9px}

.calculator-version{
  margin-top:18px;
  padding:15px 16px;
  border:1px solid #c6cfdb;
  border-radius:8px;
  background:#f3f5f8}
.calculator-version label{
  display:block;
  font-size:.9rem;
  font-weight:700;
  margin-bottom:7px}
.calculator-version select{
  max-width:100%;
  width:100%;
  padding:10px 12px;
  border:1px solid #98a6b7;
  border-radius:7px;
  background:#fff;
  color:#193a64}
.calculator-version p{
  margin:.65em 0 0;
  line-height:1.75}

#name-input::placeholder{
  color:#788393;
  opacity:.8}
#name-result.is-idle{
  background:#f4f5f7;
  border-color:#d4d9df;
  color:#566275}
#name-result:empty{
  display:none}
.result-edition{
  font-weight:700;
  margin:0 0 8px}
.calculation-line{
  font-size:.85rem;
  overflow-wrap:anywhere}

.calc-reference{
  border:1px solid #b9c6d6;
  border-radius:9px;
  overflow:hidden;
  margin-top:18px;
  background:#f9fafb}
.calc-reference>summary{
  color:#1c466f;
  font-size:.95rem;
  padding:14px 16px}
.calc-reference[open]>summary{
  border-bottom:1px solid #c9d3df}
.calc-reference-body{
  padding:4px 16px 18px}
.calc-reference-body h2,.calc-reference-body h3{
  margin-top:22px;
  font-size:1.05rem;
  color:#244b74}
.calc-reference-body p{
  font-size:.9rem;
  line-height:1.85}
.calc-reference-body .formula{
  font-size:.87rem}
.calc-reference-body th,.calc-reference-body td{
  font-size:.84rem}

@media(max-width:760px){
  .story-card>summary{
    padding:16px 18px}
  .story-body{
    padding:4px 19px 16px;
    line-height:1.95}
  .calculator-version{
    padding:13px}
  .calculator-version select{
    font-size:.88rem}
  .calc-inputs{
    grid-template-columns:minmax(0,1fr) 82px}
  .calc-reference-body{
    padding:2px 12px 15px}
  .calc-reference>summary{
    padding:13px 12px}
  .calc-reference-body .table-wrap table{
    min-width:480px}
  }

.story-accordion{
  margin:22px 0;
  background:linear-gradient(135deg,#fffdf8 0%,#f2eadb 100%);
  border:1px solid #b8aa93;
  border-radius:14px;
  box-shadow:0 8px 24px #3b2d1512;
  overflow:hidden}
.story-accordion>summary{
  list-style:none;
  cursor:pointer;
  padding:18px 24px;
  text-align:center;
  color:#173b67;
  font:800 1.22rem/1.5 YuMincho,"Yu Mincho",serif;
  letter-spacing:.08em}
.story-accordion>summary::-webkit-details-marker{
  display:none}
.story-accordion>summary::after{
  content:'＋';
  display:inline-grid;
  place-items:center;
  margin-left:12px;
  width:26px;
  height:26px;
  border:1px solid #aa9676;
  border-radius:50%;
  font:700 16px/1 sans-serif}
.story-accordion[open]>summary::after{
  content:'−'}
.story-accordion[open]>summary{
  border-bottom:1px solid #cfc3ae}
.story-body{
  max-width:72ch;
  margin:auto;
  padding:22px 28px 26px;
  font-family:YuMincho,"Yu Mincho",serif}
.story-body p{
  margin:.7em 0}
.provenance-grid{
  display:grid;
  grid-template-columns:minmax(120px,180px) minmax(0,1fr);
  gap:0;
  margin:0}
.provenance-grid dt,.provenance-grid dd{
  margin:0;
  padding:9px 11px;
  border-bottom:1px solid var(--line)}
.provenance-grid dt{
  font-weight:800;
  background:#eef1f4}
.monster-detail>summary .small{
  margin-left:auto;
  font-weight:600}
.monster-detail .table-wrap table{
  min-width:980px}
@media(max-width:760px){
  .story-accordion>summary{
    padding:16px}
  .story-body{
    padding:18px 17px}
  .provenance-grid{
    grid-template-columns:1fr}
  .provenance-grid dt{
    border-bottom:0}
  .monster-detail>summary{
    display:block}
  .monster-detail>summary .small{
    display:block;
    margin:.35em 0 0}
  }


 
.route-chapter{
  margin:28px 0 40px}
.route-chapter>h2{
  padding:10px 0;
  border-bottom:2px solid #b8aa93}
.route-card.guide-section{
  padding:0}
.route-card.guide-section>summary{
  justify-content:flex-start}
.route-card.guide-section>summary>span{
  min-width:0}
.route-card.guide-section .section-body{
  padding:18px 22px}
.boss-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:14px}
.boss-card h3{
  margin-top:0}
.boss-stats{
  display:flex;
  gap:7px;
  flex-wrap:wrap}
.boss-stats>span{
  padding:3px 8px;
  border-radius:5px;
  background:#eef2f6;
  font-size:.82rem}
.warning{
  padding:15px 18px;
  border:1px solid #d5b485;
  border-radius:9px;
  background:#fff3df;
  margin:14px 0}
.chapter-meter{
  display:none}
.table-controls{
  display:none}
.map-key{
  display:flex;
  gap:15px;
  flex-wrap:wrap;
  margin:12px 0}
.map-key>span{
  display:flex;
  align-items:center;
  gap:7px;
  font-size:.82rem}
.key-dot{
  width:14px;
  height:14px;
  border:2px solid #fff;
  border-radius:50%;
  box-shadow:0 0 0 2px #17375f;
  display:inline-block;
  background:#17375f}
.key-location{
  background:#1e6d57;
  box-shadow:0 0 0 2px #154c3d}
.key-treasure{
  background:#b85b00;
  box-shadow:0 0 0 2px #7c3d00}
.key-exit{
  background:#8a2c2c;
  box-shadow:0 0 0 2px #641d1d}
.key-connection{
  background:#17375f}
.map-point--location,.map-point--world-location{
  background:#1e6d57;
  box-shadow:0 0 0 2px #154c3ddd,0 2px 5px #0008}
.map-point--treasure,.map-point--treasure-event{
  background:#b85b00;
  box-shadow:0 0 0 2px #7c3d00dd,0 2px 5px #0008}
.map-point--connection,.map-point--stairs{
  background:#17375f}
.map-point--entrance,.map-point--exit,.map-point--entrance-exit{
  background:#8a2c2c;
  box-shadow:0 0 0 2px #641d1ddd,0 2px 5px #0008}
.map-point--event{
  background:#6c3a88;
  box-shadow:0 0 0 2px #4e2765dd,0 2px 5px #0008}
.article{
  margin:22px 0}
.article>h2{
  margin-top:0}
.monster-table table{
  min-width:1100px}
.language-only>span{
  min-height:1px}
@media(max-width:900px){
  .boss-grid{
    grid-template-columns:repeat(2,minmax(0,1fr))}
  }
@media(max-width:760px){
  .boss-grid{
    grid-template-columns:1fr}
  .route-card.guide-section .section-body{
    padding:14px}
  .map-key{
    gap:10px}
  .toolbar{
    flex-wrap:wrap}
  .page-search button{
    flex:0 0 auto}
  }


/* Map reading controls */
.edition-badge{
  display:inline-block;
  margin:0 0 .7rem;
  padding:.3rem .75rem;
  border:1px solid #b7c8d8;
  border-radius:20px;
  font-size:.85rem;
  color:#f3e8c1}

.guide-footer{
  padding:1.5rem;
  text-align:center;
  border-top:1px solid #c8c1b0;
  background:#ede8d9}
.guide-footer a,.return-bar>a{
  color:#075488;
  text-decoration:underline}

.global-search-results{
  max-width:1160px;
  margin:0 auto 1rem;
  padding:1rem;
  border:1px solid #b9c5cb;
  border-radius:10px;
  background:#fffdf6}
.global-search-results[hidden]{
  display:none}
.global-search-results li{
  padding:.6rem}
.global-search-results p{
  margin:.2rem 0;
  font-size:.9rem;
  overflow-wrap:anywhere}

.progress-storage-status{
  position:fixed;
  left:1rem;
  right:5rem;
  bottom:1rem;
  z-index:1002;
  padding:.8rem;
  border:1px solid #9c8b63;
  border-radius:10px;
  background:#fff4d9;
  color:#493f2b;
  box-shadow:0 2px 12px #0002}
.progress-storage-status[hidden]{
  display:none}
.progress-storage-status button{
  margin:.4rem}

.map-card{
  scroll-margin-top:85px}
.map-controls{
  display:flex;
  flex-direction:column;
  gap:.7rem;
  margin:.7rem 0}
.map-controls select{
  max-width:100%;
  font:inherit;
  padding:.6rem;
  border:1px solid #b8c4ce;
  border-radius:7px;
  background:#fff}
.map-tools{
  display:flex;
  gap:.5rem;
  align-items:center;
  flex-wrap:wrap}
.map-tools button,.map-tools a.button{
  font-size:.9rem;
  min-height:40px;
  padding:.55rem .8rem;
  border:1px solid #aebdc9;
  border-radius:8px;
  background:#fff;
  color:#153e64;
  text-decoration:none;
  cursor:pointer}
.map-scale{
  min-width:3rem;
  font-size:.85rem}
.map-caption{
  text-align:center;
  font-size:1rem;
  margin:.7rem 0}

.map-viewport{
  max-height:72vh;
  overflow:auto;
  padding:12px;
  border:1px solid #b9c5cf;
  border-radius:8px;
  background:#f4f0e4;
  overscroll-behavior:contain}
.map-viewport:focus-visible{
  outline:3px solid #3377a4;
  outline-offset:2px}
.map-viewport:fullscreen,.map-viewport.map-expanded{
  max-height:none;
  height:100vh;
  width:100vw;
  background:#f4f0e4}
.map-viewport.map-expanded{
  position:fixed;
  inset:0;
  z-index:1100}
.map-canvas{
  position:relative;
  min-width:0;
  margin:0 auto;
  line-height:0}
.map-art{
  display:block;
  width:100%;
  height:auto;
  max-width:none}
.map-overlay{
  position:absolute;
  inset:0;
  pointer-events:none;
  line-height:normal}
.map-point{
  position:absolute;
  display:flex;
  align-items:center;
  justify-content:center;
  width:28px!important;
  height:28px!important;
  min-width:28px;
  padding:0!important;
  transform:translate(-50%,-50%);
  border:2px solid #fffdf6!important;
  border-radius:50%;
  background:#245d80;
  color:white;
  font:bold 11px/1 Arial,sans-serif!important;
  box-shadow:0 0 0 1px #254c65;
  pointer-events:auto;
  cursor:pointer;
  z-index:2}
.map-point.kind-treasure{
  background:#926820}
.map-point.kind-event{
  background:#754579}
.map-point.kind-exit{
  background:#863e39}
.map-point.is-cluster{
  width:34px!important;
  border-radius:14px;
  box-shadow:0 0 0 1px #254c65}
.map-point:focus-visible{
  outline:3px solid #e9b74f;
  outline-offset:3px;
  z-index:4}
.map-leader{
  position:absolute;
  height:1px;
  transform-origin:left center;
  background:#3c6075;
  pointer-events:none;
  z-index:1}
.map-rule{
  font-size:.9rem;
  color:#475b65}
.map-detail:empty{
  display:none}
.map-detail{
  margin:.7rem 0;
  padding:1rem;
  border:1px solid #aabdc9;
  border-radius:8px;
  background:#edf4f6;
  scroll-margin:100px}
.map-detail h4{
  margin:0 0 .5rem}
.map-detail p{
  margin:.4rem 0}
.map-destination{
  display:inline-block;
  margin:.3rem .8rem .3rem 0;
  color:#075488;
  text-decoration:underline}
.map-point-list{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(min(250px,100%),1fr));
  gap:.55rem;
  padding:0;
  list-style:none}
.map-point-list li{
  padding:.65rem;
  border:1px solid #c9c8b9;
  border-radius:7px;
  overflow-wrap:anywhere}
.map-point-list button{
  padding:.4rem .6rem;
  border:1px solid #b7c5ce;
  border-radius:6px;
  background:white;
  color:#17466b;
  font:inherit;
  text-align:left;
  cursor:pointer}
.map-point-list button[aria-pressed=true]{
  background:#e1edf2}
.point-description{
  display:block;
  margin:.4rem 0 0;
  font-size:.9rem}
.map-print-all{
  display:none}

@media(max-width:600px){
  .map-card{
    padding:12px!important}
  .map-viewport{
    padding:8px;
    max-height:65vh}
  .map-tools{
    gap:.35rem}
  .map-tools button,.map-tools a.button{
    padding:.5rem .65rem}
  .map-controls select{
    width:100%;
    font-size:.9rem}
  .map-detail{
    padding:.75rem}
  }

@media print{
  .map-controls,.map-caption,.map-viewport,.map-rule,.map-detail,.map-point-list,.global-search-results,.progress-storage-status,.guide-footer{
    display:none!important}
  .map-print-all{
    display:block!important}
  .map-print-all figure{
    margin:1rem 0;
    break-before:page}
  .map-print-all img{
    display:block;
    width:auto;
    max-width:100%;
    max-height:220mm;
    margin:auto}
  .map-print-all ul{
    font-size:9pt;
    columns:2}
  .map-card{
    break-inside:auto!important}
  .map-print-all h3{
    color:#17375f}
  .edition-badge{
    color:#17375f}
  }


.route-card{
  padding-bottom:58px}
.route-card h3{
  padding-right:0}
.route-card.is-complete::after{
  top:auto!important;
  right:15px!important;
  bottom:12px!important;
  width:62px;
  height:31px;
  padding:0!important;
  box-sizing:border-box;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:16px!important;
  font-weight:900;
  transform:none!important;
  opacity:1!important}
html[lang=en] .route-card.is-complete::after{
  font-size:14px!important}


.map-card:target{
  background:#fffdf6!important;
  box-shadow:none!important;
  outline:1px solid #b6b9a9;
  outline-offset:2px}
.map-viewport{
  min-height:0}
.map-canvas{
  flex-shrink:0}
.map-overlay[hidden]{
  display:none!important}


.critical-notes{
  margin:0 0 1.2rem}
.critical-notes>h2{
  font-size:1.12rem;
  margin:0 0 .7rem}
.critical-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:.7rem}
.critical-grid article{
  padding:.9rem 1rem;
  background:#f7f2e2;
  border:1px solid #c8bda5;
  border-radius:9px}
.critical-grid h3{
  font-size:1rem;
  margin:0 0 .5rem}
.critical-grid p{
  font-size:.92rem;
  margin:0;
  line-height:1.75}
@media(max-width:760px){
  .critical-grid{
    grid-template-columns:1fr}
  .critical-grid article{
    padding:.8rem}
  }


/* Readable equipment columns */
#weapon-table,#protector-table,#item-table,#spell-table{
  min-width:1120px}

#shop-table{
  min-width:850px}

#weapon-table td:nth-child(2),#protector-table td:nth-child(3),#item-table td:nth-child(2),#spell-table td:nth-child(3){
  min-width:145px;
  white-space:nowrap}

#weapon-table td:nth-child(6),#protector-table td:nth-child(7){
  min-width:180px}

#weapon-table td:nth-child(7),#protector-table td:nth-child(8),#item-table td:nth-child(8),#spell-table td:nth-child(7){
  min-width:210px}

#weapon-table td:nth-child(8),#protector-table td:nth-child(9),#item-table td:nth-child(9),#shop-table td:nth-child(4),#shop-table td:nth-child(5){
  min-width:270px}

.table-wrap th,.table-wrap td{
  overflow-wrap:normal;
  word-break:normal}

@media print{
  #weapon-table,#protector-table,#item-table,#spell-table,#shop-table{
    min-width:0}
  .table-wrap td{
    min-width:0!important;
    white-space:normal!important}
  }
.route-card.guide-section[open].is-complete>.section-body{padding-bottom:65px}.route-card.guide-section.is-complete:not([open])>summary{padding-bottom:58px}
