/* =====================================================================
   playhub.css -- the Play tab hub (js/playhub.js), Sep 2026.
   Games first: four tiles, one tap to play, the header and the nav stay
   up. Same language as the express lane (css/express.css): cream cards,
   rose primary buttons, Cormorant titles, Quicksand UI, big thumb
   targets, 360px safe. Tokens only (css/theme.css).
   ===================================================================== */

.ph { padding-bottom: var(--space-lg); }

/* ---------------- head ---------------- */
.ph-head { padding: var(--space-md) 2px var(--space-md); }
.ph-head .eyebrow { margin-bottom: 8px; }
.ph-title {
    font-family: var(--display); font-weight: 600;
    font-size: var(--text-2xl); line-height: 1.1;
    color: var(--ink); margin: 0;
}
.ph-intro { font-size: var(--text-sm); color: var(--ink-soft); margin-top: 6px; max-width: 36ch; }

/* ---------------- the tiles ---------------- */
.ph-grid { display: grid; gap: var(--space-sm); }
.ph-pair { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-sm); }

.ph-tile {
    position: relative;
    display: flex; flex-direction: column;
    background: var(--card);
    border: 1.5px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}
.ph-go {
    -webkit-appearance: none; appearance: none;
    display: flex; flex-direction: column; align-items: stretch;
    width: 100%; flex: 1 1 auto;
    padding: 0; margin: 0;
    font: inherit; color: var(--ink); text-align: left;
    background: none; border: 0; cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: transform var(--dur-fast);
}
.ph-go:active { transform: scale(var(--tap-scale)); }
.ph-go:focus-visible, .ph-lb:focus-visible, .ph-chap:focus-visible,
.ph-btn:focus-visible, .ph-link:focus-visible, .ph-x:focus-visible,
.ph-skip:focus-visible, .ph-bstory:focus-visible {
    outline: 2px solid var(--focus-ring); outline-offset: 2px;
}

.ph-txt { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px 10px; }
.ph-name {
    font-family: var(--display); font-weight: 600;
    font-size: var(--text-xl); line-height: 1.1; color: var(--ink);
}
.ph-hook { font-size: var(--text-sm); color: var(--ink-soft); line-height: 1.35; }
.ph-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-top: 4px; min-height: 22px; }
.ph-tag {
    display: inline-flex; align-items: center;
    font-size: var(--px-xs); font-weight: 700;
    letter-spacing: var(--track-eyebrow); text-transform: uppercase;
    color: var(--dim);
    background: var(--paper-2);
    border-radius: var(--radius-pill);
    padding: 3px 9px;
}
.ph-tag--played {
    color: var(--accent-deep);
    background: color-mix(in srgb, var(--accent-soft) 40%, var(--card));
}
.ph-best { font-size: var(--text-xs); font-weight: 600; color: var(--ink-soft); }

/* the Leaderboard link: a full-width quiet row, still a 44px target */
.ph-lb {
    -webkit-appearance: none; appearance: none;
    display: block; width: 100%; min-height: 44px;
    padding: 0 14px;
    font: inherit; font-size: var(--text-xs); font-weight: 600;
    color: var(--accent-deep); text-align: left;
    background: none; border: 0; border-top: 1px solid var(--line);
    cursor: pointer;
}

/* HERO: the art band on top, the big Play button under the copy */
.ph-tile--hero { border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); box-shadow: var(--shadow); }
.ph-tile--hero .ph-name { font-size: var(--text-2xl); }
/* a compact live preview, not a banner: the crowd fills the frame */
.ph-tile--hero .ph-art { height: 128px; }
.ph-cta {
    display: flex; align-items: center; justify-content: center;
    min-height: 56px; margin: 2px 14px 14px;
    font-weight: 700; font-size: var(--px-lg);
    color: var(--card);
    /* the site's primary fill (css/quest.css .btn-accent): solid rose-deep */
    background: var(--rose-deep, var(--accent-deep));
    border-radius: var(--radius-pill);
    box-shadow: var(--shadow-sm);
}

/* FEATURED: art on the left, copy on the right */
.ph-tile--featured .ph-go { flex-direction: row; align-items: stretch; }
.ph-tile--featured .ph-art { flex: 0 0 116px; height: auto; min-height: 124px; }
.ph-tile--featured .ph-txt { flex: 1 1 auto; justify-content: center; }

/* the two small tiles */
.ph-tile--tile .ph-art { height: 104px; }
.ph-tile--tile .ph-txt { padding: 10px 12px 8px; }
.ph-tile--tile .ph-name { font-size: var(--text-lg); }
.ph-tile--tile .ph-hook { font-size: var(--text-xs); }

/* ---------------- the art ---------------- */
.ph-art {
    position: relative;
    display: flex; align-items: flex-end; justify-content: center;
    overflow: hidden;
    padding-bottom: 8px;
    background: linear-gradient(180deg, var(--card-warm), var(--paper-2));
}
.ph-art .mbox { flex: 0 0 auto; }
.ph-art--photobomb { background: linear-gradient(180deg, color-mix(in srgb, var(--c-rose) 70%, var(--card)), var(--blush)); }
.ph-art--tabledash { background: linear-gradient(180deg, color-mix(in srgb, var(--c-butter) 80%, var(--card)), var(--paper-2)); }
.ph-art--masher    { background: linear-gradient(180deg, color-mix(in srgb, var(--c-mint) 80%, var(--card)), var(--paper-2)); }
.ph-art--starforce { background: linear-gradient(180deg, color-mix(in srgb, var(--c-lav) 80%, var(--card)), var(--paper-2)); align-items: center; flex-direction: column; justify-content: center; gap: 6px; padding-bottom: 0; }

/* THE TWO ARCADE PREVIEWS (Sep 2026): a small looping scene of the game
   in the tile, not a banner. Transforms and opacity only; still under
   reduced motion (below). While a game sheet covers the hub the CSS loops
   pause AND the scene is hidden: the avatars are animated APNG / GIF,
   which no animation-play-state can stop, and a hidden image is never
   repainted. The art band keeps its fixed height, so nothing shifts. */
.ph-pv { position: absolute; inset: 0; display: block; overflow: hidden; }
body.ph-playing .ph-pv, body.ph-playing .ph-pv * { animation-play-state: paused; }
body.ph-playing .ph-pv { visibility: hidden; }
.ph-px { display: block; shape-rendering: crispEdges; overflow: visible; }
.ph-px .px-rose  { fill: var(--rose); }
.ph-px .px-leaf  { fill: var(--leaf); }
.ph-px .px-cloth { fill: var(--card); }
.ph-px .px-edge  { fill: color-mix(in srgb, var(--ink) 22%, var(--card)); }
.ph-px .px-skirt { fill: var(--blush); }
.ph-px .px-leg   { fill: var(--ink-soft); }
.ph-px .px-gold  { fill: var(--gold); }
.ph-px .px-shine { fill: var(--card); }

/* photobomb: the arcade's pink camera frame, REC blinking, a crowd
   shoving for the middle, and the shutter going off on a loop */
.ph-vf {
    position: absolute; inset: 8px 12px; pointer-events: none;
    border: 1.5px solid color-mix(in srgb, var(--rose-deep) 45%, transparent);
    border-radius: 3px;
}
.ph-vf i { position: absolute; width: 16px; height: 16px; border: 4px solid var(--rose-deep); }
.ph-vf i:nth-child(1) { top: -3px; left: -3px; border-right: 0; border-bottom: 0; }
.ph-vf i:nth-child(2) { top: -3px; right: -3px; border-left: 0; border-bottom: 0; }
.ph-vf i:nth-child(3) { bottom: -3px; left: -3px; border-right: 0; border-top: 0; }
.ph-vf i:nth-child(4) { bottom: -3px; right: -3px; border-left: 0; border-top: 0; }
.ph-recl {
    position: absolute; top: 15px; left: 22px; z-index: 3;
    display: inline-flex; align-items: center; gap: 4px;
    font-family: var(--pixel-tight); font-size: var(--px-xs); font-weight: 800;
    letter-spacing: var(--track-eyebrow); line-height: 1;
    color: var(--rose-deep);
}
.ph-recl b {
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--rose-deep);
    animation: phRec 1.4s ease-in-out infinite;
}
@keyframes phRec { 50% { opacity: .2; } }
.ph-crowd {
    position: absolute; left: 12px; right: 12px; bottom: 10px;
    display: flex; align-items: flex-end; justify-content: center;
}
.ph-jo {
    position: relative; flex: 0 0 auto;
    display: flex; align-items: flex-end;
    margin: 0 -4px;
    transform-origin: 50% 100%;
    animation: phJostle 1.9s ease-in-out infinite;
}
.ph-jo img { display: block; }
.ph-jo--1 { animation-duration: 2.1s; animation-delay: -.3s; }
.ph-jo--me { z-index: 2; animation-name: phShove; animation-duration: 1.7s; }
.ph-jo--3 { animation-duration: 1.8s; animation-delay: -.9s; animation-direction: reverse; }
.ph-jo--4 { animation-duration: 2.4s; animation-delay: -1.4s; }
@keyframes phJostle {
    0%, 100% { transform: translateX(0) rotate(0); }
    25% { transform: translateX(-4px) rotate(-5deg); }
    50% { transform: translate(2px, -3px) rotate(2deg); }
    75% { transform: translateX(4px) rotate(4deg); }
}
@keyframes phShove {
    0%, 100% { transform: translateX(0) rotate(0); }
    20% { transform: translateX(-7px) rotate(-7deg); }
    35% { transform: translate(0, -8px) rotate(0); }
    50% { transform: translateX(7px) rotate(7deg); }
    70% { transform: translate(0, -4px) rotate(0); }
}
.ph-you {
    position: absolute; top: -13px; left: 50%;
    transform: translateX(-50%);
    font-family: var(--pixel-tight); font-size: var(--px-xs); font-weight: 700;
    letter-spacing: .04em; line-height: 1.3;
    white-space: nowrap;
    color: var(--card);
    background: var(--rose-deep);
    border-radius: var(--radius-pill);
    padding: 1px 6px;
}
.ph-flash {
    position: absolute; inset: 0; z-index: 4; pointer-events: none;
    background: var(--card);
    opacity: 0;
    animation: phFlash 3.4s linear infinite;
}
@keyframes phFlash {
    0%, 80% { opacity: 0; }
    82% { opacity: .92; }
    92%, 100% { opacity: 0; }
}
.ph-snap {
    position: absolute; top: 40%; left: 50%; z-index: 5;
    font-family: var(--pixel); font-size: var(--px-lg); font-weight: 800;
    letter-spacing: var(--track-eyebrow); line-height: 1;
    color: var(--rose-deep);
    background: var(--card);
    border: 2px solid var(--rose-deep);
    border-radius: 6px;
    padding: 4px 10px;
    opacity: 0;
    transform: translate(-50%, -50%) rotate(-6deg) scale(.6);
    animation: phSnap 3.4s ease-out infinite;
}
@keyframes phSnap {
    0%, 81% { opacity: 0; transform: translate(-50%, -50%) rotate(-6deg) scale(.6); }
    85% { opacity: 1; transform: translate(-50%, -50%) rotate(-6deg) scale(1.12); }
    89%, 96% { opacity: 1; transform: translate(-50%, -50%) rotate(-6deg) scale(1); }
    100% { opacity: 0; transform: translate(-50%, -50%) rotate(-6deg) scale(1); }
}

/* table dash: the guest waits on two little pixel tables, dish held high */
.ph-pv--td { --td-run: 50px; }
.ph-pv--td::after {
    content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 22px;
    background: color-mix(in srgb, var(--c-butter) 55%, var(--card-warm));
    border-top: 2px solid color-mix(in srgb, var(--c-butter) 82%, var(--ink));
}
.ph-ptab { position: absolute; bottom: 12px; z-index: 1; }
.ph-ptab--l { left: 4px; }
.ph-ptab--r { right: 4px; }
.ph-waiter {
    position: absolute; bottom: 6px; left: 14px; z-index: 2;
    animation: phWalk 4.2s linear infinite;
}
.ph-wface { display: block; animation: phFace 4.2s steps(1, end) infinite; }
.ph-wbob {
    display: flex; flex-direction: column; align-items: center;
    animation: phBob .36s steps(1, end) infinite;
}
.ph-dish { position: relative; z-index: 1; margin-bottom: -4px; }
.ph-wchar { display: flex; align-items: flex-end; }
.ph-wchar img { display: block; }
@keyframes phWalk {
    0%, 10% { transform: translateX(0); }
    45%, 55% { transform: translateX(var(--td-run)); }
    90%, 100% { transform: translateX(0); }
}
/* the sprites face left: walking right is a mirror */
@keyframes phFace {
    0% { transform: scaleX(-1); }
    50% { transform: scaleX(1); }
    100% { transform: scaleX(-1); }
}
@keyframes phBob {
    0% { transform: translateY(0); }
    50% { transform: translateY(-2px); }
    100% { transform: translateY(0); }
}

/* masher: the mushroom and HER number */
.ph-mush { position: relative; z-index: 1; }
.ph-rec {
    position: absolute; top: 10px; right: 10px;
    font-family: var(--display); font-weight: 600; font-size: var(--text-lg); line-height: 1;
    color: var(--accent-deep);
    background: var(--card);
    border-radius: var(--radius-pill);
    padding: 4px 9px;
    box-shadow: var(--shadow-sm);
}

/* the ring: a gold band and its five stars */
.ph-ring {
    width: 52px; height: 52px; border-radius: 50%;
    border: 6px solid var(--gold);
    box-shadow: 0 0 0 3px var(--card), var(--shadow-sm);
}
.ph-stars { font-size: var(--text-sm); letter-spacing: 2px; color: var(--gold); }

/* ---------------- our story shelf ---------------- */
.ph-shelf, .ph-tonight { margin-top: var(--space-lg); }
.ph-st {
    font-family: var(--display); font-weight: 600;
    font-size: var(--text-xl); line-height: 1.1; color: var(--ink);
    margin: 0 2px 4px;
}
.ph-ss { font-size: var(--text-sm); color: var(--ink-soft); margin: 0 2px 10px; }
.ph-chaps { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-sm); }
.ph-chap {
    -webkit-appearance: none; appearance: none;
    position: relative;
    display: flex; align-items: center; gap: 10px;
    min-height: 56px; padding: 8px 12px;
    font: inherit; color: var(--ink); text-align: left;
    background: var(--card);
    border: 1.5px solid var(--line); border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: transform var(--dur-fast);
}
.ph-chap:active { transform: scale(var(--tap-scale)); }
.ph-cn {
    flex: 0 0 auto; width: 28px; height: 28px; border-radius: 50%;
    display: grid; place-items: center;
    font-family: var(--display); font-weight: 600; font-size: var(--text-base);
    color: var(--accent-deep);
    background: color-mix(in srgb, var(--accent-soft) 34%, var(--card));
}
.ph-ct { flex: 1 1 auto; min-width: 0; font-size: var(--text-sm); font-weight: 600; line-height: 1.2; }
.ph-tick { font-style: normal; color: var(--rose); font-weight: 700; }

/* ---------------- play together (15 Oct 2026) ----------------
   the room games, one quiet row each, only while the relay is up */
.ph-party { margin-top: var(--space-lg); }
.ph-prows { display: grid; gap: var(--space-sm); }
.ph-prow {
    -webkit-appearance: none; appearance: none;
    display: flex; align-items: center; gap: 10px;
    width: 100%; min-height: 56px; padding: 10px 12px 10px 14px;
    font: inherit; color: var(--ink); text-align: left;
    background: var(--card);
    border: 1.5px solid var(--line); border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: transform var(--dur-fast);
}
.ph-prow:active { transform: scale(var(--tap-scale)); }
.ph-prow:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.ph-ptxt { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ph-pname {
    font-family: var(--display); font-weight: 600;
    font-size: var(--text-lg); line-height: 1.15; color: var(--ink);
}
.ph-phook { font-size: var(--text-xs); color: var(--ink-soft); line-height: 1.3; }
.ph-seats {
    flex: 0 0 auto;
    font-size: var(--px-xs); font-weight: 700; white-space: nowrap;
    color: var(--accent-deep);
    background: color-mix(in srgb, var(--accent-soft) 34%, var(--card));
    border-radius: var(--radius-pill);
    padding: 3px 9px;
}
.ph-parr { flex: 0 0 auto; font-size: var(--text-xs); color: var(--accent-deep); }

/* ---------------- tonight ---------------- */
.ph-tonight .live-card { margin: 0; }
.ph-tonight .stage-card { margin: 0; }
.ph-tonight .live-card + .stage-card { margin-top: var(--space-sm); }

/* =====================================================================
   THE GAME SHEET (full screen, over the header and the nav)
   ===================================================================== */
body.ph-playing { overflow: hidden; }
/* a status toast stays readable over the sheet (118) and its story card (119) */
body.ph-playing #toast-host { z-index: 121; }
.ph-sheet {
    /* the stage's soft-chrome tokens: the native games' pieces use them
       (css/vn.css defines them on .vn, which is not an ancestor here) */
    --vn-soft: var(--shadow);
    --vn-soft-sm: var(--shadow-sm);
    --vn-r: 14px;
    --vn-r-sm: 10px;
    position: fixed; inset: 0; z-index: 118;
    display: flex; flex-direction: column;
    width: 100%; max-width: var(--content-max); margin: 0 auto;
    background: var(--paper);
    padding-top: env(safe-area-inset-top, 0);
    padding-bottom: env(safe-area-inset-bottom, 0);
    animation: phIn var(--dur-med) var(--ease-fn) both;
}
@keyframes phIn { from { opacity: 0; } to { opacity: 1; } }
.ph-bar {
    flex: 0 0 auto;
    display: flex; align-items: center; gap: 8px;
    min-height: 56px; padding: 6px 6px 6px 16px;
    background: var(--card);
    border-bottom: 1px solid var(--line);
}
.ph-bn {
    /* (QA play-hub#7) the name keeps its width, the live line beside it gives way; the cap keeps the close button in reach */
    flex: 0 0 auto; max-width: 60%;
    font-family: var(--display); font-weight: 600; font-size: var(--text-lg);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ph-live {
    flex: 1 1 auto; min-width: 0;
    font-size: var(--text-xs); color: var(--ink-soft);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ph-bstory {
    flex: 0 0 auto; min-height: 40px; padding: 0 12px;
    font: inherit; font-size: var(--text-xs); font-weight: 700;
    color: var(--accent-deep);
    background: color-mix(in srgb, var(--accent-soft) 30%, var(--card));
    border: 0; border-radius: var(--radius-pill); cursor: pointer;
}
.ph-bstory[hidden] { display: none; }
.ph-x {
    flex: 0 0 auto; width: 44px; height: 44px;
    display: grid; place-items: center;
    font: inherit; font-size: var(--text-lg); line-height: 1;
    color: var(--ink-soft);
    background: var(--paper-2);
    border: 0; border-radius: 50%; cursor: pointer;
}
.ph-stage {
    position: relative; flex: 1 1 auto; min-height: 0;
    overflow: hidden;
    background: linear-gradient(180deg, var(--paper-2), var(--card));
}
.ph-stage .ps-frame { position: absolute; inset: 0; width: 100%; height: 100%; }
.ph-stage .bs-dots { display: flex; gap: 6px; }
.ph-stage .bs-dots i {
    width: 8px; height: 8px; border-radius: 50%;
    animation: phDot 1s ease-in-out infinite;
}
.ph-stage .bs-dots i:nth-child(2) { animation-delay: .15s; }
.ph-stage .bs-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes phDot { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }
.ph-nbox { position: absolute; inset: 0; }

/* a native game's result, and the nap card */
.ph-res {
    position: absolute; inset: 0;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 8px; padding: var(--space-lg) var(--page-pad);
    text-align: center;
    animation: phRise var(--dur-slow) var(--ease-fn) both;
}
@keyframes phRise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.ph-rn { font-size: var(--px-xs); font-weight: 700; letter-spacing: var(--track-eyebrow); text-transform: uppercase; color: var(--dim); }
.ph-rbig { font-family: var(--display); font-weight: 600; font-size: var(--text-3xl); line-height: 1; color: var(--accent-deep); }
.ph-rl { font-size: var(--text-xs); color: var(--ink-mute); margin-top: -4px; }
.ph-rline {
    font-family: var(--display); font-style: italic;
    font-size: var(--text-lg); line-height: 1.3; color: var(--ink);
    max-width: 30ch; margin: 6px 0 10px;
}
.ph-btn {
    -webkit-appearance: none; appearance: none;
    display: flex; align-items: center; justify-content: center;
    width: 100%; max-width: 320px; min-height: 56px; padding: 12px 18px;
    font: inherit; font-weight: 700; font-size: var(--px-md); color: var(--ink);
    background: var(--card);
    border: 1.5px solid var(--line); border-radius: var(--radius-pill);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: transform var(--dur-fast);
}
.ph-btn:active { transform: scale(var(--tap-scale)); }
.ph-btn--rose {
    color: var(--card);
    background: var(--rose-deep, var(--accent-deep));
    border-color: transparent;
}
.ph-btn--rose:active, .ph-go:active .ph-cta {
    background: color-mix(in srgb, var(--rose-deep, var(--accent-deep)) 84%, var(--ink));
}
.ph-link {
    min-height: 44px; padding: 0 12px;
    font: inherit; font-size: var(--text-sm); color: var(--ink-soft);
    background: none; border: 0; cursor: pointer;
    text-decoration: underline; text-underline-offset: 3px;
}

/* =====================================================================
   THE STORY CARD (a short, skippable chapter)
   ===================================================================== */
.ph-story {
    position: fixed; inset: 0; z-index: 119;
    display: flex; align-items: center; justify-content: center;
    padding: 24px var(--page-pad);
    background: color-mix(in srgb, var(--ink) 38%, transparent);
    -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
    animation: phIn var(--dur-med) var(--ease-fn) both;
}
.ph-card {
    width: 100%; max-width: 400px;
    max-height: calc(100% - 8px); overflow: auto;
    display: flex; flex-direction: column; gap: 10px;
    padding: 14px 16px 16px;
    background: var(--card);
    border-radius: var(--radius);
    border-top: 5px solid var(--ph-tint, var(--accent));
    box-shadow: var(--pop-shadow);
    animation: phRise var(--dur-slow) var(--ease-fn) both;
}
.ph-chead { display: flex; align-items: center; gap: 6px; }
.ph-cnum {
    flex: 1 1 auto;
    font-size: var(--px-xs); font-weight: 700;
    letter-spacing: var(--track-eyebrow); text-transform: uppercase;
    color: var(--dim);
}
.ph-skip {
    min-height: 44px; padding: 0 10px;
    font: inherit; font-size: var(--text-sm); font-weight: 600;
    color: var(--accent-deep);
    background: none; border: 0; cursor: pointer;
}
.ph-skip[hidden] { display: none; }
.ph-x--card { width: 40px; height: 40px; font-size: var(--text-base); }
.ph-ctitle {
    font-family: var(--display); font-weight: 600;
    font-size: var(--text-2xl); line-height: 1.1; color: var(--ink); margin: 0;
}
.ph-slide { min-height: 150px; display: flex; align-items: center; cursor: pointer; }
.ph-say { display: flex; align-items: flex-end; gap: 10px; width: 100%; animation: phRise var(--dur-med) var(--ease-fn) both; }
.ph-who { flex: 0 0 auto; }
.ph-bubble {
    position: relative; flex: 1 1 auto; min-width: 0;
    padding: 10px 14px 12px;
    background: var(--paper-2);
    border-radius: var(--radius-sm);
}
.ph-sn { display: block; font-size: var(--text-xs); font-weight: 700; color: var(--accent-deep); margin-bottom: 2px; }
.ph-t { margin: 0; font-size: var(--text-base); line-height: 1.45; color: var(--ink); }
.ph-day {
    display: inline-block; margin-bottom: 6px;
    font-size: var(--px-xs); font-weight: 700;
    letter-spacing: var(--track-eyebrow); text-transform: uppercase;
    color: var(--quest-gold-deep, var(--accent-deep));
    background: color-mix(in srgb, var(--gold) 22%, var(--card));
    border-radius: var(--radius-pill); padding: 2px 8px;
}
.ph-fact { width: 100%; text-align: center; animation: phRise var(--dur-med) var(--ease-fn) both; }
.ph-ftag {
    display: inline-block;
    font-size: var(--px-xs); font-weight: 700;
    letter-spacing: var(--track-eyebrow); text-transform: uppercase;
    color: var(--accent-deep);
}
.ph-ft {
    margin: 8px auto 0; max-width: 28ch;
    font-family: var(--display); font-size: var(--text-xl); line-height: 1.25; color: var(--ink);
}
.ph-dots { display: flex; justify-content: center; gap: 6px; }
.ph-dots i { width: 7px; height: 7px; border-radius: var(--radius-pill); background: var(--line); transition: width var(--dur-med), background var(--dur-med); }
.ph-dots i.on { background: var(--accent); }
.ph-next { max-width: none; }

/* ---------------- small screens ---------------- */
@media (max-width: 370px) {
    .ph-tile--featured .ph-art { flex-basis: 100px; }
    .ph-pv--td { --td-run: 34px; }
    .ph-tile--tile .ph-art { height: 92px; }
    .ph-chaps { grid-template-columns: 1fr; }
}

/* ---------------- reduced motion ---------------- */
@media (prefers-reduced-motion: reduce) {
    .ph-go, .ph-chap, .ph-btn, .ph-prow { transition: none; }
    .ph-go:active, .ph-chap:active, .ph-btn:active, .ph-prow:active { transform: none; }
    .ph-flash, .ph-sheet, .ph-story, .ph-card, .ph-res, .ph-say, .ph-fact,
    .ph-stage .bs-dots i { animation: none; }
    /* the previews hold one still frame: the crowd in the shot, the
       waiter at the first table facing in */
    .ph-recl b, .ph-jo, .ph-snap, .ph-waiter, .ph-wbob { animation: none; }
    .ph-wface { animation: none; transform: scaleX(-1); }
}
