.journey-bar {display:flex;align-items:center;justify-content:space-between;gap:8px;position:relative;z-index:35;padding:6px 12px;background:#f8f8f1;border-bottom:1px solid #d9dcd1;color:#2e3731}
#chapter-now {font-size:.85rem;font-weight:700}
.journey-pocket {display:flex;align-items:center;gap:10px;min-width:0}
#station-track {position:relative;display:flex;align-items:center;justify-content:space-between;width:76px;height:18px}
#station-track progress {position:absolute;width:100%;height:4px;accent-color:#9e441a}
#station-track i {position:relative;width:9px;height:9px;border-radius:50%;background:#dde1d4;border:1px solid #82907f}
#station-track i[data-current=true] {outline:2px solid #b85f29;outline-offset:1px}
#station-track i[data-done=true] {background:#a34218;border-color:#a34218}
#journey-menu summary {font-size:.8rem;cursor:pointer;padding:4px 8px;color:#394435}
#journey-menu .journey-actions {display:grid;position:absolute;right:5px;top:95%;min-width:10rem;background:#fffef9;border:1px solid #ccd2c4;box-shadow:0 5px 18px #25352922;padding:5px;border-radius:8px}
.journey-actions button {padding:8px 12px;text-align:start;background:transparent;color:#303e32;border-radius:5px}
.journey-actions button:hover {background:#f2efe4}
#chapter-slate {position:absolute;left:50%;top:12%;transform:translateX(-50%);pointer-events:none;background:#202b26ed;color:#fffaf1;border-bottom:3px solid #ed8b43;padding:.38em .9em;border-radius:5px;font-size:clamp(.85rem,2.3cqi,1.4rem);font-weight:650;white-space:nowrap;z-index:10}
#journey-reset-dialog {max-width:min(25rem,92%);border:1px solid #bcc3b4;border-radius:10px;padding:20px;background:#fffef8}
#journey-reset-dialog::backdrop {background:#20282299}
#journey-reset-dialog button {padding:8px 13px;border-radius:5px}
.journey-notice {color:#79411d;font-size:.76rem}
#loading section {padding:0 0 12px;overflow:hidden;max-width:min(240px,65%)}
#loading img {display:block;width:100%;max-height:80px;object-fit:cover}
#loading h2 {margin:6px 12px 0}

#player:is(:fullscreen,.expanded) .view-column :is(#screen,.controls,.caption,.journey-bar,#subtitle-dock) {
  width:min(100%,calc((100dvh - 168px)*16/9));
  flex:none;
}
@media (max-width:740px) and (orientation:portrait) {
  #player:is(:fullscreen,.expanded) .view-column :is(#screen,.controls,.caption,.journey-bar,#subtitle-dock) {width:100%}
}
@container stage (max-width:34rem) {
  #knowledge:has(details[open]) {width:85%;max-height:90%;overflow:auto;z-index:19;}
  .journey-notice {overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .journey-pocket,#chapter-now {flex-shrink:0}
}
