/* Round 4 (2026-11-22, owner revisions + Fable review). Loaded last. */

/* The progress ticket: below 1280 px the fixed chip covered text and buttons at the bottom left.
   It becomes a slim tab on the right edge, above the "now hearing" chip; the ticket card opens beside it. */
@media (max-width:1279px) {
  .ticket.is-enhanced { left:auto; right:0; bottom:calc(env(safe-area-inset-bottom) + 96px); align-items:flex-end; }
  .ticket.is-enhanced .ticket-tab { width:46px; height:52px; min-width:46px; min-height:52px; padding:0 0 0 4px; border-right:0;
    border-radius:26px 0 0 26px; display:grid; place-items:center; font-size:.72rem; line-height:1; box-shadow:-4px 6px 16px rgba(0,0,0,.16); }
  .ticket.is-enhanced .ticket-tab .travel-icon { display:none; }
  .ticket.is-enhanced .ticket-card { margin-right:12px; }
}

/* Fable review: from 761 px the "There it is" card covered the "Through the windows" label (left foot of its tile). */
@media (min-width:761px) { .bluecar .p-label-right { left:auto; right:1rem; } }

/* Fable review: on phones the pinned lunch-box stage was a full screen high, but its content ends at about
   two thirds, which left ~330 px of empty page before "Meanwhile, outside". Any pin shorter than the screen shows
   empty track under it, so on phones the stage is not pinned: it is exactly as high as its content (window + box +
   panel), and a full screen high only while a dish is open (the plate needs it; bento.js scrolls it into view). */
@media (max-width:760px) {
  .seat-stage { --stage-h:min(calc(var(--journal-svh,1svh) * 100), calc(var(--journal-svh,1svh) * 16 + 2.6rem + 100vw * 5 / 8 + 11.5rem)); }
  .seat-stage, .motion-off .seat-stage, .seat-stage .stage-sticky, .motion-off .seat-stage .stage-sticky { height:var(--stage-h); }
  .seat-stage.plate-open, .seat-stage.plate-open .stage-sticky { height:calc(var(--journal-svh,1svh) * 100); }
}

/* Fable review: at 360 px "Tap for sound" and "Take your seat" broke onto two lines each. */
.sound-pill, .p-cue { white-space:nowrap; }
@media (max-width:380px) { .sound-pill, .p-cue { font-size:.8125rem; gap:.45rem; } }

/* Fable review: the hero subtitle touched the brush strokes of the title at 768-1024 px. */
.p-hero-sub { margin-top:1.2rem; }

/* Fable review: on phones "The blue car, resting" sat right on the Tarumi heading. */
@media (max-width:760px) { #tarumi .scene-labels { margin-top:.6rem; } }

/* Fable review: small labels were 10-11 px; 12 px is the floor. */
.yakusou .meta { font-size:max(12px, var(--meta-size, .75rem)); }
.find .meta, .ticket-card>.meta, .hotspot-list .meta, .hotspot-note .meta, details.ask>p.meta, .fun-fact .meta { font-size:12px; }
.journal .route-summary .route-label-small { font-size:12px; }

/* Fable review: on phones each window-seat step was 62svh with its text centred, so half a screen stayed empty
   under the pinned window. Shorter steps, text at the top of each step. */
@media (max-width:760px) {
  .window-seat.is-enhanced .seat-step { min-height:44svh; justify-content:flex-start; padding-top:1.5rem; }
}

/* Fable review: at 761-1100 px (portrait tablets) the box sat at the bottom of the stage, leaving an empty block
   above it beside the text panel. The box now starts at the top of the table, next to the panel. */
@media (min-width:761px) and (max-width:1100px) { .box-wrap { top:12px; bottom:auto; } }
