#workbench.step-workbench{width:min(1120px,calc(100vw - 24px));max-width:none;height:min(760px,calc(100dvh - 24px));max-height:none;margin:auto;padding:0;border:1px solid #c7b287;border-radius:18px;background:#faf6e9;overflow:hidden;color:#173d49;box-shadow:0 24px 100px #102d4980}
#workbench.step-workbench[open]{display:grid;grid-template-columns:1fr;grid-template-rows:58px minmax(0,1fr) 76px}
#workbench.step-workbench .step-header{position:static;inset:auto;display:flex;align-items:center;justify-content:flex-start;gap:14px;padding:8px 18px;background:#163d49;color:#fff7df;border:0}
#step-location{font-size:14px;flex:1}#step-count{font-size:14px;font-variant-numeric:tabular-nums;color:#e8dab7}
#workbench.step-workbench button{font:700 17px SUIT,system-ui,sans-serif;min-height:48px;border:1px solid #b8b7a5;border-radius:10px;background:#fffef8;color:#214955;cursor:pointer;padding:10px 20px;touch-action:manipulation}
#workbench.step-workbench button:disabled{opacity:.4;cursor:default}#workbench.step-workbench button:focus-visible{outline:3px solid #d4a454;outline-offset:3px}
#workbench.step-workbench .step-header button{background:transparent;color:#fff6df;border-color:#ffffff55;padding:4px 13px;min-height:42px;font-size:15px}#workbench.step-workbench #step-close{font-size:27px;width:44px;padding:0;border:0}
#workbench.step-workbench .step-body{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:24px;align-items:center;padding:24px;overflow:auto;min-height:0;scroll-padding:18px}
#workbench.step-workbench .step-art{align-self:center;min-width:0;text-align:center}#workbench.step-workbench #step-image{display:block;width:100%;padding:0;border:0;background:none;min-height:0;cursor:zoom-in;overflow:hidden;border-radius:12px;box-shadow:0 10px 30px #34524c25}#step-image img{display:block;width:100%;height:auto;max-height:490px;object-fit:contain}#step-note{display:block;margin-top:12px;font-size:14px;color:#5c6660}
#workbench.step-workbench .step-question{min-width:0;align-self:center}#workbench.step-workbench #work-title{font-size:clamp(23px,2.5vw,32px);font-weight:700;letter-spacing:-.04em;line-height:1.45;margin:0 0 22px;padding:0;text-wrap:balance;outline:none}
#step-facts{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 22px}#step-facts .step-fact{flex:1 1 125px;padding:12px 14px;border-left:3px solid #b89558;background:#ece6d3;border-radius:2px 8px 8px 2px;display:grid;gap:4px}#step-facts span{font-size:13px;color:#506260}#step-facts strong{font-size:18px;line-height:1.45;word-break:keep-all;font-variant-numeric:tabular-nums}
#step-controls{display:grid;gap:10px}.step-choices{display:grid;gap:10px}#workbench.step-workbench .step-choice{width:100%;text-align:left;font-size:19px;min-height:58px;line-height:1.4;border-color:#aab9ae}#workbench.step-workbench .step-choice[aria-pressed=true]{background:#1c5964;color:#fff9e7;border-color:#1c5964;box-shadow:0 0 0 2px #c4d5c5}
.step-input-label{font-size:16px;color:#4f645f}#step-answer,#journey-explanation{box-sizing:border-box;display:block;width:100%;border:2px solid #879f97;border-radius:10px;background:#fffefa;color:#163d49;font:600 32px SUIT,system-ui,sans-serif;min-height:64px;padding:12px 18px}#journey-explanation{font-size:20px;line-height:1.5;min-height:120px;resize:vertical}#step-answer[aria-invalid=true]{border-color:#b4633c}#step-answer:focus,#journey-explanation:focus{outline:3px solid #8abfb0;outline-offset:2px}
#workbench.step-workbench #step-feedback{font-size:15px;line-height:1.5;color:#91532d;margin:12px 0 0;min-height:0}#step-feedback:empty{display:none}#workbench.step-workbench #step-hint{font-size:15px;line-height:1.7;margin:12px 0 0;padding:12px;background:#e5eddf;border-radius:8px}
#workbench.step-workbench .step-footer{position:static;display:flex;align-items:center;gap:10px;margin:0;padding:12px 24px;border-top:1px solid #d7ceb6;background:#faf6e9}#workbench.step-workbench #step-help{margin-right:auto;background:transparent;border-color:transparent;color:#62746b}#workbench.step-workbench #step-next{margin-left:auto;min-width:160px;background:#1a5361;border-color:#1a5361;color:#fff6de;font-size:20px;box-shadow:0 4px 12px #153f4025}
.step-grid{display:grid;grid-template-columns:repeat(10,1fr);gap:3px;width:min(270px,100%);margin:auto}.step-grid i{aspect-ratio:1;background:#fffcf0;border:1px solid #9cafa1;border-radius:3px}.step-grid i.painted{background:#3c9d8e;border-color:#317a70}.step-grid-count{text-align:center;font-size:20px;font-weight:bold}.step-adjust{display:flex;justify-content:center;gap:8px}#workbench.step-workbench .step-adjust button{min-width:52px;padding:8px}#workbench.step-workbench #grid-paint{width:100%;min-height:40px;accent-color:#267d70}
#step-art-viewer{width:min(1050px,94vw);max-width:94vw;max-height:94dvh;padding:18px;background:#fff9e9}#step-art-viewer img{display:block;max-width:100%;max-height:75dvh;margin:auto;object-fit:contain}#step-art-viewer button{font:700 17px SUIT,sans-serif;min-height:48px;padding:10px 22px;border:1px solid #b9a37c;border-radius:9px;background:#fff7df;color:#234b55}#step-art-viewer button:first-child{display:block;margin-left:auto}#step-art-viewer button:last-child{display:block;margin:12px auto 0}
#mission-receipt #receipt-label,#mission-receipt #receipt-region,#mission-receipt #receipt-stops,#mission-receipt #receipt-next-name,#mission-receipt .receipt-learning>span{display:none}#mission-receipt .receipt-learning{padding:15px;margin:14px 0}#mission-receipt #receipt-proof{font-size:21px;line-height:1.5}#mission-receipt #receipt-change{font-size:18px}#mission-receipt .receipt-seal{width:56px;height:56px;margin:0 auto 12px}
@media(max-width:720px){#workbench.step-workbench{width:calc(100vw - 16px);height:calc(100dvh - 16px);border-radius:12px}#workbench.step-workbench[open]{grid-template-rows:54px minmax(0,1fr) 74px}#workbench.step-workbench .step-header{padding:6px 12px;gap:9px}#step-location{font-size:12px}#workbench.step-workbench .step-body{grid-template-columns:1fr;gap:16px;padding:18px;align-content:start}#workbench.step-workbench .step-art{display:none}#workbench.step-workbench[data-page=intro] .step-art{display:block}#workbench.step-workbench[data-page=intro] #step-image{width:100%;box-shadow:none}#step-image img{max-height:29dvh}#step-note{font-size:13px;margin-top:8px}#workbench.step-workbench #work-title{font-size:25px;margin-bottom:18px}#step-facts{gap:6px;margin-bottom:18px}#step-facts .step-fact{padding:9px 11px;flex-basis:115px}#step-facts strong{font-size:17px}#workbench.step-workbench .step-footer{padding:12px;gap:7px}#workbench.step-workbench .step-footer button{padding:10px 15px;font-size:16px}#workbench.step-workbench #step-next{min-width:123px;font-size:18px}#workbench.step-workbench .step-choice{font-size:18px}#workbench.step-workbench[data-page=grid] .step-body{padding-block:14px}#workbench.step-workbench[data-page=grid] #work-title{font-size:23px;margin-bottom:10px}.step-grid{width:230px}.step-adjust{gap:10px}#journey-explanation{font-size:18px}}
@media(max-height:530px){#workbench.step-workbench[open]{grid-template-rows:48px minmax(0,1fr) 66px}#workbench.step-workbench .step-body{padding:14px;align-content:start}#workbench.step-workbench #work-title{font-size:23px;margin-bottom:12px}#step-facts{margin-bottom:12px}#step-image img{max-height:190px}#workbench.step-workbench .step-footer{padding:8px 14px}}
#step-facts .step-record{flex-basis:100%;margin:0;padding:5px 0;font-size:16px;color:#2e635d;font-weight:700}#step-facts .step-condition{flex-basis:100%;font-size:13px;color:#586c61}#workbench:not([data-page=intro]) #step-note{display:none}
@media(max-width:720px){#workbench.step-workbench{top:var(--keyboard-top,0px);bottom:auto;height:calc(var(--usable-height,100dvh) - 16px);margin:8px auto}#workbench:has(input:focus) #step-facts .step-fact{padding:5px 8px;gap:2px}#workbench:has(input:focus) #step-facts{margin-bottom:10px}#workbench:has(input:focus) #work-title{font-size:22px;margin-bottom:10px}}
#workbench.step-workbench .step-footer{flex-wrap:nowrap}#workbench.step-workbench .step-footer button{width:auto;flex:0 1 auto}#workbench.step-workbench #step-next{flex:1 1 auto}#workbench.step-workbench .step-footer button[hidden]{display:none}

.step-fraction{padding:0;margin:0;border:0;min-inline-size:0}
.step-fraction legend{padding:0;margin-bottom:10px}
.step-fraction-stack{display:grid;width:min(100%,240px);gap:6px}
.step-fraction-row{display:grid;grid-template-columns:minmax(0,1fr) 3em;align-items:center;gap:12px;color:#4f645f;font-size:15px}
.step-fraction-row:first-child{padding-bottom:6px;position:relative}
.step-fraction-row:first-child::after{content:"";position:absolute;bottom:0;left:0;right:calc(3em + 12px);height:2px;background:#254b54}
.step-fraction-part{
  box-sizing:border-box;width:100%;min-height:48px;padding:5px 10px;
  border:2px solid #879f97;border-radius:8px;background:#fffefa;color:#163d49;
  font:700 25px SUIT,system-ui,sans-serif;text-align:center;font-variant-numeric:tabular-nums
}
.step-fraction-part::placeholder{color:#788c86;opacity:1}
.step-fraction-part:focus{outline:3px solid #8abfb0;outline-offset:2px}
.step-fraction-part[aria-invalid="true"]{border-color:#b4633c}

#workbench.step-workbench #work-title:has(+ .step-answer-format){margin-bottom:8px}
.step-answer-format{
  display:inline-block;margin:0 0 15px;padding:5px 11px;border-radius:6px;
  background:#e1ece6;color:#21514b;font-size:clamp(15px,2vw,18px);line-height:1.45;font-weight:800
}

.voyage-ending{position:fixed;inset:0;margin:auto;width:min(640px,94vw);max-height:92dvh;overflow:auto;padding:clamp(16px,4vw,32px);box-sizing:border-box;text-align:center;border:1px solid #caad70;border-radius:18px;color:#fff2d5;background:linear-gradient(150deg,#103f49,#112633);box-shadow:0 18px 60px #081b2680}
.voyage-ending::backdrop{background:#08212bd9}
.voyage-ending header{position:static;display:block;background:none}
.voyage-ending small{color:#eac886;letter-spacing:.13em}
.voyage-ending h2,.voyage-ending h3{color:#fff4d8;margin:.35em 0}.voyage-ending h3{font-size:clamp(26px,5vw,40px)}
.voyage-ending video{width:100%;aspect-ratio:16/9;background:#123c48;object-fit:cover;border-radius:10px}
.voyage-ending .medal{width:clamp(88px,18vw,136px);height:auto}
.voyage-ending section>strong{color:#ffd893;font-size:1.5rem}.voyage-ending p{font-size:.93rem;color:#d6e9e7}
.voyage-ending summary,.voyage-ending button{min-height:44px;align-content:center;cursor:pointer}
.voyage-ending ul{padding:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(145px,1fr));gap:4px;text-align:left}
.voyage-ending li{list-style:none;display:flex;align-items:center;gap:6px;font-size:.83rem}
.voyage-ending button{margin-top:8px}.voyage-ending [hidden]{display:none!important}
.step-workbench .step-choice,.step-workbench .step-adjust button,.step-header button{min-height:44px;touch-action:manipulation}
@media(max-width:520px){.step-header{gap:5px}.step-header #step-location{font-size:12px;min-width:0}.step-header #step-count{white-space:nowrap}.voyage-ending ul{grid-template-columns:1fr 1fr}.voyage-ending{padding-bottom:max(16px,env(safe-area-inset-bottom))}}
@media(max-height:460px){.voyage-ending video{max-height:48dvh;object-fit:contain}}

.voyage-ending{background:linear-gradient(180deg,rgba(9,32,41,.76),rgba(13,38,48,.96) 75%),url('./assets/cinematics/voyage-ending.webp') center/cover}
