/* Small auxiliary controls share the skip button's light text treatment. */
#prologue{
  --utility-ink:#efe8cf;--utility-shadow:0 1px 8px #031e1c;
  --utility-top:clamp(12px,3.8cqh,34px);
  --utility-edge:clamp(20px,4.5cqw,76px);
}
#prologue.pro-cover-stage{--utility-ink:#fff;--utility-shadow:0 1px 8px #173d34}
header{--utility-ink:#294f40;--utility-shadow:0 1px 8px #fff9}
#outboundDialog{--utility-ink:#efe8cf;--utility-shadow:0 1px 8px #031e1c}
#outboundDialog.end-cover-active{--utility-ink:#294f40;--utility-shadow:0 1px 8px #fff9}
#prologue .pro-sound,
#prologue .pro-top .pro-skip-text,
header .top-actions button,
#outboundDialog .outbound-controls button{
  display:inline-flex;align-items:center;justify-content:center;flex:none;
  width:auto;height:28px;min-width:0;min-height:0;margin:0;padding:6px 8px;
  border:0;border-radius:0;text-decoration:none;
  background:none;box-shadow:none;backdrop-filter:none;-webkit-backdrop-filter:none;
  color:var(--utility-ink);text-shadow:var(--utility-shadow);
  font-family:inherit;font-size:11px;font-weight:400;line-height:15px;letter-spacing:.08em;
  white-space:nowrap;touch-action:manipulation;
  transition:opacity .2s;
}
#prologue .pro-sound:hover,
#prologue .pro-top .pro-skip-text:hover,
header .top-actions button:hover,
#outboundDialog .outbound-controls button:hover{
  background:none;color:var(--utility-ink);border-color:currentColor;transform:none;opacity:.75;
}
#prologue .pro-sound{left:var(--utility-edge);top:var(--utility-top)}
#prologue:is(.pro-cover-stage,.pro-policy-stage,.pro-map-stage,.pro-guide-stage,.pro-machine-scene) .pro-top{top:var(--utility-top);left:var(--utility-edge);right:var(--utility-edge)}
/* Returning to the collection remains a clear, prominent action. */
#prologue .pro-machine-return{min-width:112px;min-height:44px;font-size:14px;font-weight:600;text-decoration:none}
#prologue .pro-machine-return:hover{filter:brightness(1.06)}
#prologue .pro-machine-return:active{filter:brightness(.96)}
@media(prefers-reduced-motion:reduce){
  #prologue .pro-sound,#prologue .pro-top .pro-skip-text,
  header .top-actions button,#outboundDialog .outbound-controls button{transition:none}
}

#outboundDialog .outbound-directory{position:absolute;top:clamp(18px,4cqh,44px);right:4%;z-index:7;display:inline-flex;align-items:center;justify-content:center;line-height:15px;letter-spacing:.08em;white-space:nowrap;touch-action:manipulation;animation:ending-navigation-reveal .65s ease-out both}
@keyframes ending-navigation-reveal{from{opacity:0;transform:translateY(-8px)}to{opacity:1;transform:translateY(0)}}

/* The season belongs beside sound, in the same quiet top row. */
header .header-start{gap:14px;min-width:0}
header #seasonBadge{position:static;inset:auto;z-index:auto;transition:opacity .25s;pointer-events:none}
header #seasonName{padding:0 0 0 14px;background:none;border-left:1px solid #8d9d7070;font:500 15px/1.4 'Songti SC','STSong',serif;letter-spacing:.06em;white-space:nowrap;text-shadow:0 1px 8px #fff9}
/* A departure marker sits above the truck, with a short route leading down. */
#world .finish-pin{display:flex;align-items:center;justify-content:center;gap:16px;top:48%;right:auto;width:250px;height:66px;min-height:0;padding:12px 18px;border:1px solid #b7a87d;border-radius:4px 16px 4px 16px;background:linear-gradient(120deg,#fffbedf5,#f1e6c8f5);color:#365c43;box-shadow:0 4px 12px #294f4020,inset 0 1px 0 #fffdf2;text-align:left;letter-spacing:.06em;isolation:isolate;touch-action:manipulation;transition:box-shadow .2s,border-color .2s}
#world .finish-pin:before{content:'';position:absolute;inset:5px;border:1px solid #cab98b66;border-radius:1px 12px 1px 12px;pointer-events:none}
#world .finish-pin:after{content:'';position:absolute;top:calc(100% + 10px);left:50%;width:6px;height:var(--finish-trail-length,36px);transform:translateX(-50%);background:radial-gradient(circle,#a9843b 1.3px,transparent 1.8px) center top/6px 9px repeat-y;pointer-events:none;opacity:.8}
.finish-copy{flex:none;white-space:nowrap}
.finish-pin strong{font:600 20px/1.25 'Songti SC','STSong',serif;letter-spacing:.09em;white-space:nowrap}
.finish-arrow{display:grid;place-items:center;flex:0 0 34px;height:34px;border:1px solid #547358;border-radius:50%;background:#3d624c;color:#fff6df;transition:transform .2s,background .2s}
.finish-arrow svg{width:24px;height:24px;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
#world .finish-pin:hover{border-color:#8a9b6e;box-shadow:0 6px 18px #294f4030,inset 0 1px 0 #fffdf2}
.finish-pin:hover .finish-arrow{transform:translateX(3px);background:#2d533f}
.finish-pin:active .finish-arrow{transform:translateX(5px)}
#world .finish-pin:focus-visible{outline:2px solid #52754a;outline-offset:5px}
@media(max-height:600px),(orientation:portrait) and (max-width:760px){
 header .header-start{gap:8px}
 header #seasonName{padding-left:10px;font-size:13px}
 #world .finish-pin{width:204px;height:60px;padding:12px 15px;gap:12px}
 .finish-pin strong{font-size:17px}.finish-arrow{flex-basis:28px;height:28px}.finish-arrow svg{width:21px;height:21px}
}

@media(prefers-reduced-motion:reduce){#world .finish-pin,.finish-arrow{transition:none}}
