@media (max-width: 743px) {
  html.ph body.home {
    --sat: env(safe-area-inset-top, 0px); --sab: env(safe-area-inset-bottom, 0px); --sal: env(safe-area-inset-left, 0px); --sar: env(safe-area-inset-right, 0px);
    --film-h: min(125vw, 60vh);
    --head-h: 50px;
  }
  @supports (height: 1svh) { html.ph body.home { --film-h: min(125vw, 60svh); } }
  html.ph, html.ph body.home { height: 100%; overflow: hidden; overscroll-behavior: none; }
  html.ph body.home { position: fixed; inset: 0; background: var(--dark-bg); }

  html.ph .room { height: 0; min-height: 0; }
  html.ph .room-back { height: var(--film-h); bottom: auto; background: #0c0e0f; touch-action: none; }
  html.ph .room-stills, html.ph .room-stage, html.ph .room-foot { display: none; }
  html.ph .room-poster img { object-position: 50% 50%; }
  html.ph .ph-film, html.ph .ph-shot { position: absolute; inset: 0; display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; }
  html.ph .ph-film.is-resting { opacity: 0; transition: opacity 0.6s ease; }
  html.ph .ph-shot { opacity: 0; transition: opacity 480ms ease; }
  html.ph .room-back.is-shot .ph-shot { opacity: 1; }
  html.ph .ph-play {
    position: absolute; inset: 0; z-index: 1; display: none; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
    width: 100%; margin: 0; padding: 0 0 8%; border: 0; border-radius: 0; cursor: pointer; color: #fff; -webkit-tap-highlight-color: transparent;
    background: radial-gradient(closest-side at 50% 46%, rgb(4 6 7 / 0.46), rgb(4 6 7 / 0) 72%);
  }
  html.ph .room-back.is-held .ph-play { display: flex; }
  html.ph .ph-play i { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: #fff; box-shadow: 0 6px 30px rgb(0 0 0 / 0.35); }
  html.ph .ph-play i::before { content: ""; margin-left: 4px; border-left: 15px solid var(--ink); border-top: 9.5px solid transparent; border-bottom: 9.5px solid transparent; }
  html.ph .ph-play span { font-family: var(--display); font-size: 17px; line-height: 22px; letter-spacing: 0.005em; text-shadow: 0 1px 2px rgb(0 0 0 / 0.5), 0 2px 18px rgb(0 0 0 / 0.6); }
  html.ph .ph-play:focus-visible { outline: var(--ring-light); outline-offset: -6px; }

  html.ph body.home .bar {
    height: auto; display: block; padding: calc(var(--sat) + 10px) calc(var(--gutter) + var(--sar)) 0 calc(var(--gutter) + var(--sal));
  }
  html.ph body.home .bar::before {
    opacity: 1; height: calc(var(--sat) + 104px); box-shadow: none; -webkit-mask-image: none; mask-image: none; transition: none;
    background: linear-gradient(to bottom, rgb(4 6 7 / 0.5), rgb(4 6 7 / 0.28) 46%, rgb(4 6 7 / 0));
  }
  html.ph body.home .bar::after, html.ph body.home .bar > .bar-glass, html.ph body.home .bar-nav { display: none; }
  html.ph body.home .bar .bar-mark {
    display: inline-block; margin: 0; padding: 10px 0; translate: none;
    font-size: 22px; line-height: 1; letter-spacing: var(--ls-mark); color: var(--dark-head); text-shadow: var(--room-shade);
  }
  html.ph body.home .bar-x { top: calc(var(--sat) + 31px - var(--bx) / 2); right: calc(var(--gutter) + var(--sar)); color: #fff; }

  html.ph .story {
    position: fixed; z-index: 2; left: 0; right: 0; top: 0; width: auto; height: 100%; margin: 0; padding: 0; overflow: visible;
    transform: translate3d(0, calc(var(--film-h) - 22px), 0); will-change: transform;
    background: var(--glass-solid); box-shadow: inset 0 1px 0 rgba(225, 233, 233, 0.22);
    --col-pad: var(--gutter);
    --fs-lede: 15px; --lh-lede: 1.6; --fs-body: 15px; --lh-body: 1.6;
  }
  @supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
    html.ph .story { background: var(--glass); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); }
  }
  html.ph .story:not(:has(> .ph-in)) { padding-top: var(--head-h); }
  html.ph .ph-head { flex: none; }
  html.ph .ph-grab {
    position: relative; display: grid; place-items: end center; width: 100%; height: 18px; margin: 0; padding: 0; border: 0; border-radius: 0; background: none;
    color: rgb(241 245 245 / 0.62); cursor: pointer; touch-action: none; -webkit-tap-highlight-color: transparent;
  }
  html.ph .ph-grab::before { content: ""; position: absolute; left: 50%; top: -22px; width: 132px; height: 44px; translate: -50% 0; }
  html.ph .ph-grab svg { display: block; width: 16px; height: 11px; overflow: visible; rotate: 180deg; transition: rotate var(--t-ui) var(--ease); }
  html.ph .ph-grab.is-down svg { rotate: 0deg; }
  html.ph .ph-grab:focus-visible { outline: var(--ring-light); outline-offset: -4px; }
  html.ph .ph-nav {
    position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: stretch; height: 32px;
    padding: 0 calc(var(--gutter) - 6px + var(--sar)) 0 calc(var(--gutter) - 6px + var(--sal));
    box-shadow: inset 0 -1px 0 var(--dark-rule); touch-action: none;
  }
  html.ph .ph-nav button {
    position: relative; margin: 0; padding: 4px 6px 9px; border: 0; border-radius: 0; background: none; cursor: pointer; white-space: nowrap;
    font-family: var(--text); font-size: 12.5px; line-height: 19px; letter-spacing: 0.02em; color: var(--dark-head); font-weight: 400; font-synthesis: none;
    transition: color var(--t-fast) var(--ease); -webkit-tap-highlight-color: transparent;
  }
  html.ph .ph-nav button::before { content: ""; position: absolute; left: 0; right: 0; top: -2px; bottom: -10px; }
  html.ph .ph-nav button[aria-current="true"] { color: var(--dark-head); }
  html.ph .ph-nav button[aria-current="true"]::after { content: ""; position: absolute; left: 6px; right: 6px; bottom: 0; height: 1px; background: var(--dark-head); }
  html.ph .ph-nav button:focus-visible { outline: var(--ring-light); outline-offset: -6px; }
  @media (max-width: 340px) { html.ph .ph-nav button { font-size: 11.5px; letter-spacing: 0; } }
  html.ph .ph-in {
    height: calc(100% - var(--film-h) + 22px - var(--head-h)); overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
    touch-action: pan-y; scrollbar-width: none; padding: 14px var(--sar) calc(26px + var(--sab)) var(--sal);
  }
  html.ph .ph-in::-webkit-scrollbar { display: none; }
  html.ph .story[data-stop="rest"] .ph-in { overflow: hidden; }
  html.ph .story[data-stop="rest"].is-cut .ph-in { -webkit-mask-image: linear-gradient(#000 calc(100% - 46px), transparent calc(100% - 6px)); mask-image: linear-gradient(#000 calc(100% - 46px), transparent calc(100% - 6px)); }

  html.ph .part, html.ph .part:first-child, html.ph .part + .part { margin: 0; padding: 0 var(--col-pad); box-shadow: none; }
  html.ph .part::before { display: none; }
  html.ph .part + .part { box-shadow: inset 0 1px 0 var(--dark-rule); }
  html.ph .part:first-child { padding-bottom: 20px; }
  html.ph .col-cue { display: none; }
  html.ph .hw { font-size: 42px; column-gap: 14px; row-gap: 6px; }
  html.ph .pron { column-gap: 12px; font-size: 15px; line-height: 22px; }
  html.ph .senses { margin-top: 14px; }
  html.ph .senses li { grid-template-columns: 26px minmax(0, 1fr); font-size: 15px; line-height: 23px; }
  html.ph .senses li + li { margin-top: 8px; }
  html.ph .entry-full { margin-top: 14px; padding-left: 26px; }
  html.ph .ef-row { font-size: 13.5px; line-height: 23px; color: var(--dark-dim); }
  html.ph .see-def { margin-top: 10px; font-size: 13.5px; line-height: 22px; }
  html.ph .row-h { display: block; }
  html.ph .row {
    grid-template-columns: 36px minmax(0, 1fr) 20px; column-gap: 0; min-height: 78px;
    width: calc(100% + 2 * var(--col-pad)); margin: 0 calc(-1 * var(--col-pad)); padding: 18px var(--col-pad) 15px;
  }
  html.ph .row-n { font-size: 17px; }
  html.ph .row-t { font-size: 25px; line-height: 1.1; }
  html.ph .row-v { justify-self: end; color: var(--dark-dim); }
  html.ph .row-s { grid-column: 2 / 4; margin-top: 6px; }
  html.ph .part:not(:first-child) > .blk { padding: 2px 0 30px; }
  html.ph .part:not(:first-child):not(.is-open) > .blk { height: 0; padding-block: 0; overflow: hidden; visibility: hidden; }
  html.ph .part:not(:first-child) .sec-title { display: none; }
  html.ph :is(.part-head .lede, .about-lead, .contact-invite:not(.contact-recruit)) {
    margin-top: 0; font-family: var(--display); font-size: 22px; line-height: 28px; letter-spacing: -0.012em; color: var(--dark-head); text-wrap: pretty;
  }
  html.ph .about-body { margin-top: 18px; }
  html.ph .about-body p, html.ph .about-pos, html.ph .contact-recruit { font-size: 15px; line-height: 24px; color: var(--dark-text); }
  html.ph .about-body p + p { margin-top: 14px; }
  html.ph .contact-invite + .contact-invite { margin-top: 18px; }
  html.ph :is(.about-pos, .contact-recruit) a { color: var(--dark-head); }
  html.ph .way-no { display: none; }
  html.ph .rs-ways { margin-top: 22px; }
  html.ph .rs-ways a { grid-template-columns: minmax(0, 1fr) auto; column-gap: 16px; align-items: center; min-height: 58px; padding: 8px 0; font-size: 15.5px; line-height: 21px; color: var(--dark-head); }
  html.ph .rs-ways .way-m { font-size: 12.5px; line-height: 19px; letter-spacing: 0.02em; }
  html.ph .rs-ways .pp-arrow { width: 16px; color: var(--dark-2); }
  html.ph .part-foot { margin-top: 20px; }
  html.ph .rs-small { font-size: 12.5px; line-height: 19px; }
  html.ph .story .hc3-host { margin-top: 24px; }

  html.ph .ph-in > .foot.foot--line.foot--dark {
    position: relative; z-index: auto; width: auto; margin: 0; padding: 26px var(--col-pad) 8px;
    background: none; box-shadow: inset 0 1px 0 var(--dark-rule); text-align: center; line-height: 23px;
  }
  html.ph .ph-in > .foot::before { display: none; }
  html.ph .ph-in > .foot .foot-in { grid-template-columns: minmax(0, 1fr); grid-template-areas: "ja" "place" "legal" "rights"; row-gap: 0; justify-items: center; }
  html.ph .ph-in > .foot .foot-in > *, html.ph .ph-in > .foot .foot-link { justify-self: center; text-align: center; }
  html.ph .ph-in > .foot .foot-link { padding: 4px 8px; margin: 0; text-decoration: underline; text-decoration-color: rgba(159, 173, 175, 0.5); text-underline-offset: 3px; }

  html.ph .gate .foot.foot--gate { padding-bottom: calc(var(--foot-pad, 18px) + env(safe-area-inset-bottom, 0px)); }
}

@media (max-width: 743px) and (orientation: landscape) and (max-height: 500px) {
  html.ph body.home { --side-w: max(330px, min(46vw, 420px)); }
  html.ph .room-back { height: 100%; width: calc(100% - var(--side-w)); }
  html.ph .story {
    left: auto; right: 0; width: var(--side-w); height: 100%; transform: none; display: flex; flex-direction: column;
    box-shadow: inset 1px 0 0 rgba(225, 233, 233, 0.22); overflow: visible;
  }
  html.ph .story:not(:has(> .ph-in)) { padding-top: 0; }
  html.ph .ph-grab {
    position: absolute; z-index: 1; left: -44px; top: 50%; translate: 0 -50%; width: 44px; height: 88px;
    background: var(--glass-solid); box-shadow: inset 0 0 0 1px var(--dark-rule);
  }
  @supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
    html.ph .ph-grab { background: var(--glass); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); }
  }
  html.ph .ph-grab { place-items: center; }
  html.ph .ph-grab::before, html.ph .ph-nav button::before { display: none; }
  html.ph .ph-nav button { padding: 0 6px; }
  html.ph .ph-grab svg, html.ph .ph-grab.is-down svg { rotate: -90deg; }
  html.ph.ph-away .ph-grab svg { rotate: 90deg; }
  html.ph .ph-nav { height: calc(44px + var(--sat) + 8px); padding: calc(var(--sat) + 8px) calc(var(--gutter) - 6px + var(--sar)) 0 calc(var(--gutter) - 6px); }
  html.ph .ph-in, html.ph .story[data-stop] .ph-in {
    flex: 1 1 auto; height: auto; min-height: 0; overflow-y: auto; padding: 16px var(--sar) calc(18px + var(--sab)) 0;
    -webkit-mask-image: none; mask-image: none;
  }
  html.ph .hw { font-size: 34px; }
  html.ph body.home .bar-x { translate: calc(-1 * var(--side-w)) 0; transition: color var(--t-fast) var(--ease), translate 620ms var(--col-ease); }
  html.ph.ph-away body.home .bar-x { translate: 0 0; }
}

@media (max-width: 743px) and (prefers-reduced-motion: reduce) {
  html.ph .ph-shot, html.ph .ph-film.is-resting, html.ph .ph-grab svg, html.ph body.home .bar-x { transition: none; }
}
@media (max-width: 743px) and (prefers-reduced-transparency: reduce), (max-width: 743px) and (prefers-contrast: more) {
  html.ph .story, html.ph .ph-grab { background: var(--dark-bg); -webkit-backdrop-filter: none; backdrop-filter: none; }
  html.ph .story { --dark-2: #c3cecf; --dark-dim: #b4c1c3; --label: #b4c1c3; }
}
@media (max-width: 743px) and (forced-colors: active) {
  html.ph .story, html.ph .ph-grab { background: Canvas; -webkit-backdrop-filter: none; backdrop-filter: none; border-top: 1px solid CanvasText; }
  html.ph .ph-nav button[aria-current="true"]::after { background: CanvasText; }
}
