.harbor-weather,.harbor-light,.pocket-stations,.sheet-grip,.pocket-flip,.pocket-back,.pocket-seal,.role-sparks{display:none}
.pocket-faces,.pocket-front{display:contents}

@media(max-width:650px), (min-width:651px) and (max-width:960px) and (max-height:540px) and (pointer:coarse){
  .cover{padding:0 0 15px;min-height:0;justify-content:flex-start;background:linear-gradient(155deg,#f8f0db,#fffaed 64%,#f0ecd9)}
  .hero-art{order:0;margin:0;padding:0}
  .hero-art .postcard{padding:0;transform:none;box-shadow:none;background:#f0e5c8}
  .hero-art .airlines,.hero-art .seal{display:none}
  .hero-art .sky-stage{aspect-ratio:auto;height:clamp(218px,42svh,425px)}
  .hero-art .postcard figcaption{padding:7px 6vw 8px;border-bottom:1px solid #9e947670;font-size:10px}
  .sky-stage .sky-background{transition:filter .65s ease}
  .harbor-light{display:block;position:absolute;inset:0;z-index:1;pointer-events:none;opacity:0;transition:opacity .65s;background:radial-gradient(ellipse at 82% 32%,#ffd3a6b3,transparent 36%),linear-gradient(175deg,#a85d8294,transparent 62%,#de825666);mix-blend-mode:hard-light}
  .sky-stage[data-light=dusk] .sky-background{filter:sepia(.33) saturate(1.12) brightness(.9) hue-rotate(336deg)}
  .sky-stage[data-light=dusk] .harbor-light{opacity:1}
  .harbor-weather{display:flex;position:absolute;z-index:5;top:10px;left:4vw;gap:2px;padding:2px;border:1px solid #fff5db9c;border-radius:24px;background:#303c3ce0;color:#fff7dd}
  .harbor-weather button{min-width:48px;min-height:40px;border-radius:22px;font:600 13px/1 sans-serif;touch-action:manipulation;color:inherit}
  .harbor-weather [aria-pressed=true]{background:#fff2cf;color:#483828}
  .cover-copy{order:1;padding:clamp(18px,3.4svh,33px) 6vw 0}
  .cover h1{font-size:clamp(43px,12vw,68px);margin:12px 0;letter-spacing:-.045em}
  .cover .title-tail{display:inline}
  .cover .lead{font-size:clamp(15px,4vw,19px);line-height:1.65}
  .cover-actions{margin-top:17px}
  .cover-actions a{min-height:42px;display:inline-flex;align-items:center}
  .cover-foot{order:2;margin:22px 6vw 0}
  .catalog .fold-out{display:flex;flex-direction:column}
  .fold-out .departure-card{order:0;display:block;border:0}
  .fold-out .map-chart{order:1;border-top:1px dashed #a69a75}
  .departure-photo{display:none}
  .pocket-stations{display:block;padding-top:13px}
  .reel-legend{display:flex;justify-content:space-between;padding:0 5% 9px;color:#5c5544;font-size:12px}
  .reel-legend span:first-child{color:#77523b;font-weight:700}
  .pocket-reel{position:relative;display:flex;align-items:stretch;overflow-x:auto;gap:8px;padding:1px 0 5px;scroll-snap-type:x mandatory;overscroll-behavior-x:contain;scrollbar-width:none}
  .pocket-reel::-webkit-scrollbar{display:none}
  .pocket-reel::before,.pocket-reel::after{content:'';flex:0 0 calc(7% - 8px)}
  .reel-card{position:relative;isolation:isolate;flex:0 0 86%;aspect-ratio:1.85;border-radius:3px;overflow:hidden;scroll-snap-align:center;scroll-snap-stop:always;background:#424f46;color:#fff7e0;text-align:left;border:1px solid #c2af85;box-shadow:0 2px 3px #49341b29}
  .reel-card img,.reel-card::before{position:absolute;inset:0;width:100%;height:100%}
  .reel-card img{object-fit:cover;z-index:-2}
  .reel-card::before{content:'';z-index:-1;background:linear-gradient(10deg,#162c2de8,transparent 65%)}
  .reel-card small{position:absolute;right:9px;top:8px;font:700 11px Post,sans-serif;letter-spacing:.09em;padding:4px 6px;background:#24342fbd;border:1px solid #f6e7bc9c}
  .reel-card strong,.reel-card em{position:absolute;left:5%;right:4%;text-shadow:0 1px 5px #112d2c}
  .reel-card strong{bottom:8%;font:700 clamp(22px,6.4vw,34px)/1.15 SimSun,serif}
  .reel-card em{bottom:calc(8% + 1.9rem);font:12px/1.25 sans-serif}
  .departure-card .departure-copy{padding:11px 7% 9px}
  .departure-copy h3,.departure-copy .map-stop{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
  .departure-copy .map-invite{font-size:15px;line-height:1.55;margin:0 0 7px}
  .departure-actions a,.map-controls button{min-height:44px;display:inline-flex;align-items:center;justify-content:center}
  .map-controls button{min-width:44px}
  #station-play[open]{display:block;inset:0;width:100%;height:100dvh;max-width:none;max-height:none;margin:0;border:0;border-radius:0;overflow:auto;overscroll-behavior:contain}
  #station-play .side-world{height:clamp(192px,34dvh,345px);min-height:0;perspective:1100px}
  .pocket-faces,.pocket-front,.pocket-back{display:block;position:absolute;inset:0}
  .pocket-front{isolation:isolate}
  .pocket-front,.pocket-back{backface-visibility:hidden;-webkit-backface-visibility:hidden}
  .pocket-front:after{content:'';position:absolute;inset:0;z-index:-1;background:linear-gradient(0deg,#152b29eb,transparent 57%)}
  #station-play .side-world header{position:absolute;left:0;right:0;bottom:0;padding:0 6vw 22px}
  #station-play #side-title{font-size:clamp(26px,7.4vw,38px);margin:4px 0}
  .side-art{object-position:center 43%}
  .side-close{width:44px;height:44px;right:max(10px,env(safe-area-inset-right));top:max(10px,env(safe-area-inset-top));z-index:3}
  .side-sheet{position:relative;z-index:1;margin-top:-10px;border-radius:13px 13px 0 0;padding:20px 5vw max(20px,env(safe-area-inset-bottom));box-shadow:0 -3px 11px #24332b24;background:#faf3e3}
  .side-conversation{margin-bottom:15px}
  .side-dialogue{font-size:16px;line-height:1.6}
  .side-prop{height:clamp(146px,24dvh,235px)}
  .side-controls button{min-height:44px}
  .role-sparks{display:block;position:absolute;inset:0;pointer-events:none}
  .role-spark{position:absolute;font:700 27px/1 serif;color:#fff2af;text-shadow:0 1px 6px #704121;animation:pocket-spark .8s ease-out forwards}
  .role-spark:empty{width:28px;height:28px;border:2px solid #fff0a9;border-radius:50%}
  @keyframes pocket-spark{from{opacity:1;transform:translate(-50%,0) scale(.65)}to{opacity:0;transform:translate(-50%,-32px) scale(1.45)}}
  .pocket-back{visibility:hidden}
  #station-play[data-phase=receipt] .side-world{height:clamp(215px,39dvh,370px);background:#e6d9bd}
  [data-phase=receipt] .pocket-faces{inset:12px 4vw 55px;transform-style:preserve-3d;transform:rotateY(var(--turn,0deg));transition:transform .42s cubic-bezier(.2,.74,.23,1);touch-action:pan-y}
  [data-phase=receipt] .pocket-faces.back-up{transform:rotateY(var(--turn,180deg))}
  [data-phase=receipt] .pocket-front,[data-phase=receipt] .pocket-back{overflow:hidden;border:4px solid #fff9e5;border-radius:3px;box-shadow:1px 4px 9px #4e3b232b}
  [data-phase=receipt] .pocket-back{visibility:visible;transform:rotateY(180deg);background:repeating-linear-gradient(0deg,#fff5da 0 23px,#e7ddc2 24px);padding:11px 5%;display:flex;flex-direction:column;justify-content:center;gap:7px;color:#4d4334}
  .pocket-back>*{position:relative;z-index:1}
  .pocket-back small,.pocket-back em{font:600 12px/1.3 SimSun,serif;color:#704531}
  .pocket-back p{font:16px/1.6 SimSun,serif}
  .pocket-back em{align-self:flex-end}
  .pocket-back .pocket-flower-ink{position:absolute;inset:0;width:100%;height:100%;z-index:0;opacity:.27}
  #station-play[data-phase=receipt] header{padding:0 4% 9px}
  [data-phase=receipt] .pocket-seal{display:block;position:absolute;left:4%;top:10px;background:#fff3d6ed;color:#79422c;border:3px double #a66d51;padding:4px 9px;font-size:12px;transform:rotate(-4deg)}
  [data-phase=receipt] .pocket-flip{display:block;position:absolute;bottom:12px;left:50%;transform:translateX(-50%);min-height:42px;padding:4px 18px;color:#563d2d;text-decoration:underline;text-underline-offset:4px}
  [data-phase=receipt] .side-sheet{background:linear-gradient(130deg,#fff7e4,#f3ead2)}
  [data-phase=receipt] .side-desk{display:none}
  .paused :is(.harbor-light,.sky-background,.pocket-faces){transition:none}
}
@media(max-width:650px) and (min-height:540px){
  #theater{--pocket-rest:clamp(195px,35svh,330px);--pocket-size:var(--pocket-height,var(--pocket-rest))}
  #theater.picture-tall{--pocket-rest:clamp(288px,57svh,550px)}
  #theater:not(.inspect-art) .stage-picture{height:var(--pocket-size)}
  #theater:not(.inspect-art) .theater-spread{scroll-padding-top:var(--pocket-size)}
  .sheet-grip{display:flex;min-height:40px;width:100%;justify-content:center;align-items:center;gap:9px;color:#685d45;font-size:11px;touch-action:none;cursor:ns-resize;margin:-10px 0 3px}
  .sheet-grip i{width:32px;height:4px;border-radius:4px;background:#b1a688}
}
@media(prefers-reduced-motion:reduce){.harbor-light,.sky-stage .sky-background,.pocket-faces{transition:none!important}}
@media(max-width:650px), (min-width:651px) and (max-width:960px) and (max-height:540px) and (pointer:coarse){
  #station-play[data-phase=play] .side-dialogue{min-height:3.2em}
  .sky-stage[data-light=dusk] .sky-background{filter:sepia(.56) saturate(1.26) brightness(.87) hue-rotate(333deg)}
  .sky-stage[data-light=dusk] .harbor-light{background:linear-gradient(180deg,#cb849bba,#ffc79244 59%,#c66b5955);mix-blend-mode:screen}
}
@media(max-width:360px){#station-play[data-phase=play] .side-dialogue{min-height:4.8em}}
@media(max-width:650px), (min-width:651px) and (max-width:960px) and (max-height:540px) and (pointer:coarse){
  #station-play[data-phase=receipt]{background:linear-gradient(160deg,#d4c9ac,#f4ecd9 64%,#e6dfc9)}
  #station-play[data-phase=receipt] .side-world{height:clamp(270px,54dvh,520px);background:transparent}
  [data-phase=receipt] .side-conversation{display:none}
  [data-phase=receipt] .side-sheet{margin:0 4vw;padding:9px 4% 16px;border-top:1px dashed #a99878;border-radius:0;background:transparent;box-shadow:none}
  [data-phase=receipt] .side-controls{justify-content:center}
  [data-phase=receipt] .side-status{text-align:center}
  .pocket-back p{font-size:clamp(16px,4.5vw,21px)}
}
@media(min-width:651px) and (max-width:960px) and (max-height:540px) and (pointer:coarse){
  .cover{display:grid;grid-template-columns:49% 51%;grid-template-rows:1fr auto;align-items:center;padding:0}
  .cover .hero-art{height:100%}
  .cover .hero-art .sky-stage{height:clamp(235px,69dvh,355px)}
  .cover .hero-art figcaption{padding-inline:4%}
  .cover .cover-copy{padding:14px 6%}
  .cover h1{font-size:clamp(33px,4.8vw,44px);margin:8px 0}
  .cover .lead{font-size:14px}
  .cover-foot{margin:0;padding:9px 4%;grid-column:1/-1}
  .catalog .fold-out{display:grid;grid-template-columns:1fr 1fr;align-items:stretch}
  .fold-out .map-chart{border-top:0}
  .map-chart .map-window{height:100%}
  #station-play[open]{display:grid;grid-template-columns:43% minmax(0,1fr);overflow:hidden}
  #station-play .side-world,#station-play[data-phase=receipt] .side-world{height:100dvh}
  #station-play .side-sheet{height:100dvh;overflow:auto;overscroll-behavior:contain;max-height:none;margin:0;border:0;border-radius:0;padding:14px max(18px,env(safe-area-inset-right)) 18px 18px}
  #station-play .side-dialogue{font-size:15px;min-height:3.2em}
  .side-prop{height:clamp(130px,39dvh,185px)}
  #station-play[data-phase=receipt] .side-sheet{align-content:center}
  [data-phase=receipt] .pocket-faces{inset:12px 12px 54px}
}
