/* Temple surfaces stay static. Only the small portal disc rotates. */
.expedition-shell{--stone:#172423;--bronze:#bfa66c;--paper:#e9e2cc;--verdigris:#6faba0;--warning:#cf6559;--slate:#344947;color:var(--paper);font-family:"Microsoft YaHei","PingFang SC",sans-serif}
.expedition-shell .brandbar{border-bottom:1px solid #bfa66c33;background:#172423}.expedition-shell .brand{font-family:"STSong","SimSun",serif;letter-spacing:.08em;color:#e9d29d}
.frozen-status{background:#1b2d2a;border-bottom:2px solid #bfa66c66}.frozen-status .stat{border-color:#bfa66c22}.frozen-status .stat strong{font-family:Cambria,Georgia,serif;font-variant-numeric:tabular-nums;color:#f0e8cf}.frozen-status .stat label{color:#a8bdb1}.inventory-strip{border-top:1px solid #bfa66c20}
.expedition-shell .board{grid-template-columns:300px minmax(0,1fr);gap:14px}.expedition-shell .view-panel,.expedition-shell .room-panel{border-radius:4px;border:1px solid #617064;box-shadow:none;background-color:#172423}.expedition-shell .room-panel{border-top:3px solid rgb(var(--route-rgb)/.65)}
.expedition-shell .room-banner{flex-wrap:wrap;justify-content:flex-start;gap:.35rem .7rem;border-bottom:1px solid #bfa66c33;padding:.75rem 1rem}.room-banner .corridor-label{color:#e2e6d8}.room-banner .danger-label{order:5;flex-basis:100%;margin:0}.expedition-shell .room-content{padding:1rem 1.2rem;background:linear-gradient(120deg,rgb(var(--route-rgb)/.065),transparent 65%)}
.room-content>.row.between:first-child>h3{display:none}.room-content>.row.between:first-child{justify-content:flex-end;font-size:.75rem;color:#a5b9ac}.expedition-shell .qtext{font-family:Cambria,"Microsoft YaHei",sans-serif;color:#f1ead7;font-size:1.55rem;line-height:1.65;max-width:46em;margin:.8rem 0}
.expedition-shell .question-tabs button{border-radius:3px;background:#233632;border:1px solid #52695b}.expedition-shell .question-tabs button.active{color:#192820;background:#d7c291;border-color:#e0d1ab;box-shadow:0 2px 0 #7c6a45}.expedition-shell .question-tabs button.correct{border-bottom:3px solid #7daf91}
.expedition-shell .answer-fields input{border:1px solid #71847a;border-bottom:3px solid #bfa66c;background:#13221f;color:#f8f0dc;border-radius:3px;font-variant-numeric:tabular-nums}.expedition-shell button:focus-visible{outline:2px solid #e9d29d;outline-offset:3px}.expedition-shell .question-hint{border-color:#bfa66c22;color:#aeb9a9}
.expedition-shell .compass{grid-template-rows:76px 76px 76px;gap:5px}.expedition-shell .passage{padding:5px;min-width:0;border-radius:5px;position:relative;overflow:hidden;gap:2px}.expedition-shell .passage b{display:flex;align-items:center;justify-content:center;gap:5px;width:100%;min-width:0}.expedition-shell .direction-arrow{font:normal 20px/1 sans-serif;flex-shrink:0}.expedition-shell .passage b .direction-name{display:-webkit-box!important;-webkit-line-clamp:2;-webkit-box-orient:vertical;font-size:.76rem;line-height:1.25;max-width:100%;overflow:hidden;overflow-wrap:anywhere;text-align:left;font-weight:600}.expedition-shell .passage>span{font-size:.65rem;line-height:1.2;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;opacity:.85}.expedition-shell .passage kbd{display:none}.expedition-shell .passage.sensed .direction-arrow{font-size:16px;color:#e5cf9a}.expedition-shell .passage.sensed{border-top:2px solid #bfa66c}.expedition-shell .chamber{background-color:#21352e}.expedition-shell .chamber-center{border:1px solid #bfa66c55;transform:rotate(0deg);border-radius:50%;padding:8px}.chamber-light{display:none}
.warning-stack{flex-shrink:0;display:grid;gap:4px;margin-bottom:5px}.warning-stack:has(>[hidden]):not(:has(>:not([hidden]))){display:none}.expedition-shell .warning-stack>div{padding:.4rem .7rem;margin:0;border-radius:3px;border:1px solid #bc6b5b;font-size:.8rem;line-height:1.4}.warning-stack .room-alarm{color:#ffdbb4;background:#442c22}.warning-stack .sand-alarm{background:#632a26;color:#fff0da}
.arrangement{display:inline-grid;grid-template-columns:auto auto;grid-template-rows:1fr 1fr;vertical-align:middle;margin:0 .5em;font:2rem/1 Cambria,Georgia,serif}.arrangement i{grid-row:1/3;align-self:center;font-size:1.5em}.arrangement sup,.arrangement sub{position:static;font-size:.6em;line-height:1.1;align-self:center}.arrangement sup{grid-area:1/2}.arrangement sub{grid-area:2/2}
.vortex-card{margin-top:1.2rem;padding:1.2rem 0;gap:1.3rem;border-top:1px solid #bfa66c44;overflow:hidden}.vortex-card p{font-size:.9rem;line-height:1.65;max-width:34em}.vortex-card small{display:block;color:#acbcb5;font-size:.75rem;margin-bottom:.7rem}.vortex-portal{width:132px;height:132px;position:relative;flex:none;border:1px solid #bfa66c77;border-radius:50%;background:radial-gradient(circle,#020908 15%,#172c27 52%,#071310 54%,#4b5b48 56%,#1c2b25 62%,#9d8a57 63%,#172423 65%);box-shadow:inset 0 0 16px #0009}
.vortex-portal .vortex-disc{position:absolute;inset:13%;width:74%;height:74%;border-radius:50%;background:repeating-conic-gradient(from 20deg,transparent 0deg 35deg,var(--vortex-color) 45deg 70deg,transparent 95deg 120deg);opacity:calc(.3 + var(--vortex-light)*.7);filter:brightness(var(--vortex-brightness));box-shadow:none;mask-image:radial-gradient(circle,transparent 10%,#000 30% 57%,transparent 71%);animation:vortex-turn 12s linear infinite}.vortex-core{position:absolute;inset:33%;border-radius:50%;background:#091613;border:1px solid var(--vortex-color);box-shadow:0 0 calc(3px + var(--vortex-light)*25px) var(--vortex-color),inset 0 0 12px #000;opacity:calc(.2 + var(--vortex-light)*.8)}
.merchant-panel{margin-top:1rem;padding:1.2rem 0;border-top:1px solid #bfa66c66}.merchant-panel>header{display:flex;align-items:center;gap:1rem;margin-bottom:1rem}.merchant-face{display:block;width:48px;height:54px;flex-shrink:0;image-rendering:pixelated}.merchant-panel h3{color:#e8cd8c;font-size:1.05rem!important}.merchant-panel p{margin:.4rem 0;font-size:.85rem}.merchant-panel small{font-size:.75rem;line-height:1.5;color:#aab9a5}.merchant-basic>label{display:flex;align-items:center;gap:1rem;margin:.8rem 0}.merchant-basic input{width:85px}.merchant-basic .row{gap:.5rem;margin-bottom:.5rem}.merchant-trades{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.6rem;margin-top:1rem}.merchant-trades button{display:flex;flex-direction:column;align-items:flex-start;justify-content:space-between;gap:.8rem;text-align:left;padding:.75rem;border-radius:4px;background:#273b31}.merchant-trades small{display:block;margin-top:.3rem}.merchant-trades b{font-size:.85rem;color:#ddc389}.merchant-panel button:disabled{opacity:.45}.merchant-panel #tradeform label{font:1.6rem Cambria,serif;display:flex;align-items:center;gap:.6rem;flex-wrap:wrap;margin:1rem 0}.merchant-panel #tradeAnswer{width:95px;font:1.3rem Cambria,serif}.merchant-panel #tradeform small{display:block;margin-top:.7rem}
.calculator-widget{max-width:340px;margin:.7rem auto;border:1px solid #809181;border-bottom:6px solid #253a31;border-radius:12px;background:#405447;padding:14px;box-shadow:inset 0 1px 0 #9cab8c77}.calculator-target{display:flex;align-items:center;justify-content:space-between;font-size:.9rem;color:#e8e4c9;margin-bottom:.6rem}.calculator-target strong{font:1.6rem Cambria,serif;color:#ffe6a5}.calculator-screen{min-height:76px;border:3px solid #243b30;border-radius:4px;background:#b8c3a5;color:#1e3026;text-align:right;padding:8px 12px;font-variant-numeric:tabular-nums}.calculator-screen small{display:block;font:14px Cambria,serif;min-height:18px}.calculator-screen output{display:block;font:2rem/1.15 Cambria,serif;overflow-wrap:anywhere}.calculator-meta{display:flex;align-items:center;justify-content:space-between;margin:.5rem 0;font-size:.75rem}.calculator-meta button{padding:.3rem .7rem;min-height:34px;background:#566b59}.calculator-keys{display:grid;grid-template-columns:repeat(4,1fr);gap:6px}.calculator-keys button{min-height:45px;font:1.3rem Cambria,serif;background:#e2dfc8;color:#20352d;border:0;border-bottom:3px solid #9aab94;border-radius:5px}.calculator-keys button:active{transform:translateY(1px)}.calculator-keys button:disabled{opacity:.4}.calculator-keys .calc-operator{background:#97ae9d}.calculator-keys .calc-equals{grid-column:span 2;background:#e0bc72;border-color:#a08652}.calculator-status{min-height:1.2em;font-size:.73rem;line-height:1.4;margin:.6rem 0 0;color:#e4e8d8}
.special-markers{position:absolute;top:0;left:1px;display:flex;align-items:center;gap:1px;pointer-events:none}.special-markers i{font-style:normal;font-size:11px;font-weight:bold;line-height:14px;text-shadow:0 1px 2px #000}.special-markers .map-danger{color:#ffe5b8;background:#812b1a;border-radius:2px;padding:0 3px}.special-markers .map-chest{color:#d3a5ff}.special-markers .merchant-face{width:11px;height:13px}.review-cell:has(.special-markers i) .room-map-symbol{margin-top:8px}.review-cell:has(.special-markers i) .map-progress{top:17px;font-size:13px}.review-cell:has(.special-markers i) small{margin-top:0;font-size:9px}.review-legend .merchant-legend{display:flex;align-items:center;gap:4px}.merchant-legend .merchant-face{width:14px;height:16px}.danger-legend{color:#ffb596}
@media(max-width:1050px) and (min-width:721px){.expedition-shell .board{grid-template-columns:255px minmax(0,1fr)}.merchant-trades{grid-template-columns:1fr}.merchant-trades button{flex-direction:row}.expedition-shell .passage b .direction-name{font-size:.68rem}}
@media(max-width:720px){.expedition-shell .board{gap:4px;display:flex}.expedition-shell .brandbar{padding:.3rem .6rem}.expedition-shell .room-content{padding:.6rem .75rem}.expedition-shell .room-banner{padding:.5rem .75rem}.expedition-shell .qtext{font-size:1.16rem;line-height:1.55;margin:.6rem 0}.expedition-shell .room-content>.row.between:first-child{font-size:.65rem}.expedition-shell .view-panel{border:0;background:transparent}.expedition-shell .warning-stack>div{font-size:.7rem;padding:.3rem .45rem}.warning-stack{margin-bottom:0}.expedition-shell .mobile-nav{grid-template-columns:repeat(3,minmax(0,108px));grid-template-rows:repeat(3,44px);column-gap:7px;padding:.3rem 0 max(.3rem,env(safe-area-inset-bottom));background:#172423}.expedition-shell .mobile-nav .passage{padding:2px 5px;gap:1px;overflow:hidden}.expedition-shell .mobile-nav .passage b{gap:4px}.expedition-shell .mobile-nav .passage b .direction-name{font-size:11px!important;line-height:12px!important;max-width:78px;font-weight:500}.expedition-shell .mobile-nav .direction-arrow{font-size:19px}.expedition-shell .mobile-nav .passage>span{font-size:9px;line-height:10px}.expedition-shell .mobile-nav .passage.sensed b{min-height:24px}.expedition-shell .mobile-nav .passage.sensed .direction-arrow{font-size:15px}.expedition-shell .mobile-nav .dpad-center{font-size:1.2rem}.merchant-trades{grid-template-columns:1fr;gap:.4rem}.merchant-trades button{flex-direction:row;align-items:center;min-height:54px;padding:.5rem .7rem}.merchant-trades small{font-size:.67rem}.merchant-panel{padding:.8rem 0}.merchant-panel .row button{min-height:44px;font-size:.78rem;padding:.45rem .65rem}.merchant-face{width:40px;height:45px}.merchant-panel>header{gap:.7rem}.vortex-card{gap:.8rem;padding:.8rem 0}.vortex-portal{width:104px;height:104px}.vortex-card p{font-size:.8rem}.vortex-card small{font-size:.68rem}.calculator-widget{padding:10px;max-width:300px;margin:.5rem auto}.calculator-screen{min-height:66px}.calculator-keys button{min-height:44px}.expedition-shell .question-tabs{margin:.25rem 0}.expedition-shell .room-content .calculator-status{font-size:.7rem}.arrangement{font-size:1.6rem}}
@media(prefers-reduced-motion:reduce){.vortex-portal .vortex-disc{animation:none}.calculator-keys button:active{transform:none}}

.frozen-status .hud{grid-template-columns:1.2fr repeat(5,minmax(0,1fr))}.expedition-shell .room-banner .danger-label{display:none}.calculator-screen small{color:#415340}.calculator-screen output{color:#1e3026}
@media(max-width:720px){.frozen-status .hud{grid-template-columns:1.1fr repeat(5,minmax(0,1fr))}.frozen-status .stat{padding:.3rem .2rem}.frozen-status .stat label{font-size:9px;white-space:nowrap}.frozen-status .stat strong{font-size:16px}.expedition-shell .room-content:has(.calculator-widget) .qtext{font-size:.9rem;margin:.35rem 0}.calculator-widget{margin:.4rem auto}.calculator-target{margin-bottom:.35rem}.calculator-status{margin-top:.4rem}.calculator-meta{margin:.3rem 0}.expedition-shell .room-content:has(.calculator-widget) .question-hint{display:none}}

.expedition-shell .room-content:has(.calculator-widget)>.row.between:first-child,.expedition-shell .room-content:has(.calculator-widget)>.qtext{display:none}
@media(max-width:720px){.frozen-status #hpStock{font-size:12px;white-space:nowrap;letter-spacing:-.02em}.frozen-status .stat{min-width:0}.calculator-screen{min-height:58px;padding:5px 9px}.calculator-screen output{font-size:1.7rem}.calculator-widget{padding:8px}.calculator-target strong{font-size:1.4rem}}

.personal-speed{color:#b9dfbd;border-left:2px solid #6faba0;padding-left:.4rem}

@media(max-width:720px){.expedition-shell .answerform .calculator-keys button{min-height:44px;font-size:1.15rem;padding:.35rem}}
