/* ============================================================
   Spatial portfolio · Hobbies (player, poster:<id>, snake)
   Prefix: .pl-   Windows stay neutral glass; colour comes from the
   official posters themselves and, inside a poster's own window,
   from its accent (--pl-accent: r g b) and its ambient light.
   ============================================================ */

.pl-win .vx-window__body { padding: 32px 40px 24px; container: plbody / inline-size; }
.pl-win kbd.pl-kbd { height: 20px; min-width: 0; padding: 0 6px; font-size: 11px; margin-left: 2px; background: rgb(255 255 255 / 0.14); }

/* ---------- Ornament ---------- */
.pl-orn { gap: 4px; }
.pl-orn__btn { min-height: 44px; padding: 0 16px; font-size: 14px; background: transparent; box-shadow: none; }
.pl-orn__btn:hover { background: var(--vx-fill); }
.pl-orn__btn.vx-icon-btn { padding: 0; }
.pl-orn__sep { width: 1px; height: 22px; background: var(--vx-hairline); margin: 0 4px; }

/* ============================================================
   The official poster as a print: image · rim · pointer light
   ============================================================ */
.pl-art {
  --px: 0; --py: 0;
  position: relative; display: block; margin: 0; width: 100%; height: 100%; overflow: hidden; isolation: isolate;
  border-radius: 14px; background: #0b0d12;
  box-shadow: 0 30px 56px -26px rgb(0 0 0 / 0.78), 0 10px 22px -12px rgb(0 0 0 / 0.5);
  -webkit-user-select: none; user-select: none;
}
.pl-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0; transition: opacity .5s var(--vx-ease-out); }
.pl-art.is-loaded img { opacity: 1; }
.pl-now__thumb[data-reveal] { opacity: 0; transition: opacity .3s var(--vx-ease-out); }
.pl-now__in.is-loaded .pl-now__thumb { opacity: 1; }
/* hairline rim + a lit top edge, like glass over a print */
.pl-art::before { content: ""; position: absolute; inset: 0; z-index: 3; border-radius: inherit; pointer-events: none; box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.14), inset 0 1px 0 rgb(255 255 255 / 0.28); }
/* side posters step back into the dark */
.pl-art::after { content: ""; position: absolute; inset: 0; z-index: 4; border-radius: inherit; pointer-events: none; background: rgb(6 8 12 / var(--dim, 0)); transition: background .3s; }
.pl-art__shine {
  position: absolute; inset: 0; z-index: 2; pointer-events: none; border-radius: inherit;
  background:
    radial-gradient(70% 55% at calc(50% + var(--px) * 45%) calc(28% + var(--py) * 45%), rgb(255 255 255 / 0.34), transparent 62%),
    linear-gradient(115deg, transparent 35%, rgb(255 255 255 / 0.08) 45%, transparent 55%);
  mix-blend-mode: soft-light; opacity: 0; transition: opacity .45s;
}
.is-tilt .pl-art__shine, .pl-card:focus-visible .pl-art__shine { opacity: 1; }

/* ============================================================
   player · the wall
   Vertical rhythm (8pt): 32 top · header · 16 · wall · 16 · footer · 32 bottom.
   The footer is one row: hint (left) · ‹ now showing › (centre) · credit (right),
   all on one centre line, so nothing sits near the window's edge or on top of
   anything else. No ornament: the window bar is the only thing under the window.
   ============================================================ */
.pl-win--player .vx-window__body { padding: 32px 0; overflow: hidden; }
.pl-player { display: flex; flex-direction: column; height: 100%; min-height: 0; }
.pl-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding: 0 40px; }
.pl-head__text { max-width: 640px; min-width: 0; }
.pl-head__eyebrow { margin: 0 0 8px; }
.pl-head__title { font-size: 44px; line-height: 1.05; letter-spacing: -0.03em; }
.pl-head__lede { margin: 8px 0 0; font-size: 17px; line-height: 1.45; color: var(--vx-label-2); text-wrap: pretty; }
.pl-head__acts { display: flex; align-items: center; gap: 12px; flex: none; }
.pl-head__btn { min-height: 44px; padding: 0 16px 0 14px; gap: 8px; font-size: 15px; }
.pl-head__btn .vx-ico { width: 18px; height: 18px; }
.pl-head__btn .pl-kbd { margin-left: 4px; }

.pl-wall {
  position: relative; flex: 1 1 auto; min-height: 240px; margin-top: 16px;
  perspective: 1500px; perspective-origin: 50% 44%;
  overflow: hidden; cursor: grab; touch-action: pan-y; -webkit-user-select: none; user-select: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
}
.pl-wall.is-dragging { cursor: grabbing; }
/* a soft pool of light on the floor under the wall */
.pl-wall::after { content: ""; position: absolute; left: 12%; right: 12%; bottom: 0; height: 24%; pointer-events: none; background: radial-gradient(50% 50% at 50% 60%, rgb(255 255 255 / 0.06), transparent 70%); }
.pl-track { position: absolute; inset: 0; transform-style: preserve-3d; }
.pl-card {
  position: absolute; left: 50%; top: 47%; display: block; padding: 0; margin: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer;
  transform-style: preserve-3d; border-radius: 14px; -webkit-tap-highlight-color: transparent;
}
.pl-card:focus-visible { outline: none; }
.pl-card:focus-visible .pl-art, .pl-card:focus-visible .pl-arcade { box-shadow: 0 0 0 3px rgb(255 255 255 / 0.95), 0 0 0 9px rgb(255 255 255 / 0.18), 0 30px 56px -26px rgb(0 0 0 / 0.78); }
.pl-card__float { display: block; width: 100%; height: 100%; transform-style: preserve-3d; animation: pl-bob 8s ease-in-out infinite; animation-delay: var(--bob, 0s); }
@keyframes pl-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
.pl-card__tilt {
  --rx: 0deg; --ry: 0deg;
  position: relative; display: block; width: 100%; height: 100%; border-radius: inherit;
  transform: rotateX(var(--rx)) rotateY(var(--ry)); transition: transform .6s var(--vx-ease-out);
  -webkit-box-reflect: below 10px linear-gradient(transparent 76%, rgb(255 255 255 / 0.1));
}
.pl-card__tilt.is-tilt { transition-duration: .18s; }
/* the poster in the middle: a warm lift and, now and then, a slow light sweep */
.pl-card.is-current .pl-art { box-shadow: 0 40px 80px -30px rgb(0 0 0 / 0.85), 0 0 70px -18px rgb(255 255 255 / 0.16); }
.pl-card--hero.is-current .pl-art { box-shadow: 0 40px 80px -30px rgb(0 0 0 / 0.85), 0 0 80px -14px rgb(232 128 58 / 0.38); }
.pl-card.is-current .pl-card__tilt::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 8; background: linear-gradient(105deg, transparent 38%, rgb(255 250 240 / 0.22) 48%, transparent 58%) no-repeat; background-size: 250% 100%; background-position: 130% 0; animation: pl-sweep 9s var(--vx-ease-out) 1.2s infinite; mix-blend-mode: screen; }
@keyframes pl-sweep { 0% { background-position: 130% 0; } 16%, 100% { background-position: -40% 0; } }
/* "Most played" on the Dota 2 print: a small dark glass chip in the top corner */
.pl-card__badge {
  position: absolute; top: 12px; left: 12px; z-index: 6; display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px 0 10px;
  border-radius: 999px; font-size: 13px; font-weight: 600; letter-spacing: -0.005em; color: #fff; pointer-events: none;
  background: rgb(14 12 10 / 0.62); -webkit-backdrop-filter: blur(14px) saturate(160%); backdrop-filter: blur(14px) saturate(160%);
  box-shadow: inset 0 0.5px 0 rgb(255 255 255 / 0.3), inset 0 0 0 0.5px rgb(255 255 255 / 0.14), 0 6px 16px -8px rgb(0 0 0 / 0.6);
}
.pl-card__badge .vx-ico { width: 14px; height: 14px; color: rgb(255 170 110); }

/* ---------- Snake, the arcade tile at the end of the wall ---------- */
.pl-arcade {
  position: relative; display: flex; flex-direction: column; width: 100%; height: 100%; overflow: hidden; isolation: isolate;
  container-type: inline-size; border-radius: 14px; padding: 8% 8% 8.5%; color: #eafff1; text-align: left;
  background: radial-gradient(120% 70% at 50% 0%, #143324, #07120d 62%, #040907);
  box-shadow: 0 30px 56px -26px rgb(0 0 0 / 0.78), 0 10px 22px -12px rgb(0 0 0 / 0.5), inset 0 0 0 1px rgb(140 255 190 / 0.14), inset 0 1px 0 rgb(200 255 220 / 0.2);
}
.pl-arcade::after { content: ""; position: absolute; inset: 0; z-index: 4; border-radius: inherit; pointer-events: none; background: rgb(6 8 12 / var(--dim, 0)); transition: background .3s; }
.pl-arcade__k { display: flex; justify-content: space-between; margin: 0; font: 600 4.2cqw/1 var(--vx-mono); letter-spacing: 0.14em; text-transform: uppercase; color: rgb(200 255 220 / 0.72); }
.pl-arcade__screen {
  position: relative; margin-top: 7cqw; aspect-ratio: 1; border-radius: 6cqw; overflow: hidden;
  background: radial-gradient(90% 90% at 50% 42%, #10231a, #07120d 70%, #030806);
  box-shadow: inset 0 0 24px rgb(0 0 0 / 0.8), inset 0 0 0 1px rgb(120 255 170 / 0.16);
}
.pl-arcade__screen::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(180deg, rgb(0 0 0 / 0.2) 0 1px, transparent 1px 3px); mix-blend-mode: multiply; }
.pl-arcade__cv { position: absolute; inset: 4%; width: 92%; height: 92%; display: block; filter: drop-shadow(0 0 5px rgb(140 255 190 / 0.35)); }
.pl-arcade__t { margin: auto 0 0; font: 500 19cqw/0.9 var(--vx-mono); letter-spacing: -0.03em; color: #eafff1; text-shadow: 0 0 5cqw rgb(120 255 170 / 0.5); }
.pl-arcade__s { margin: 3cqw 0 0; font-size: 5.4cqw; line-height: 1.3; color: rgb(214 255 228 / 0.82); }
.pl-arcade__go { display: inline-flex; align-self: flex-start; align-items: center; gap: 2.4cqw; margin-top: 5cqw; height: 13cqw; padding: 0 5cqw 0 4cqw; border-radius: 99px; font-size: 5.4cqw; font-weight: 600; color: #07120d; background: #eafff1; }
.pl-arcade__go .vx-ico { width: 5.6cqw; height: 5.6cqw; }
.pl-arcade__go .pl-kbd { background: rgb(7 18 13 / 0.12); color: #07120d; box-shadow: none; }

/* ---------- Footer: hint · ‹ now showing › · credit ---------- */
.pl-foot { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 24px; margin-top: 16px; padding: 0 40px; }
.pl-foot__hint { display: inline-flex; align-items: center; gap: 8px; justify-self: start; margin: 0; font-size: 13px; line-height: 1.3; color: var(--vx-label-2); }
.pl-foot__hint .vx-ico { flex: none; width: 16px; height: 16px; }
.pl-foot__nav { display: flex; align-items: center; gap: 12px; min-width: 0; }
.pl-foot__step { flex: none; width: 44px; height: 44px; min-height: 44px; padding: 0; }
.pl-foot__step .vx-ico { width: 18px; height: 18px; }
.pl-foot__step[aria-disabled="true"] { opacity: 0.4; cursor: default; }
.pl-foot__step[aria-disabled="true"]:hover { background: var(--vx-fill); }
.pl-now { position: relative; display: flex; justify-content: center; min-width: 0; }
.pl-now__in { display: flex; align-items: center; gap: 12px; min-width: 0; height: 56px; padding: 6px 6px 6px 8px; border-radius: 999px; background: var(--vx-platter); box-shadow: inset 0 0.5px 0 rgb(255 255 255 / 0.1); }
.pl-now__in.is-swap { animation: pl-swap .5s var(--vx-ease-out) both; }
@keyframes pl-swap { from { opacity: 0; transform: translateY(8px); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }
.pl-now__thumb { flex: none; display: block; width: 28px; height: 40px; border-radius: 999px; object-fit: cover; object-position: 50% 22%; background: #0b0d12; box-shadow: 0 0 0 1px rgb(255 255 255 / 0.14), 0 0 14px -2px rgb(var(--pl-accent) / 0.55); }
.pl-now__thumb--snake { display: grid; place-items: center; color: #bfffd6; background: radial-gradient(120% 70% at 50% 0%, #143324, #07120d 70%); }
.pl-now__thumb--snake .vx-ico { width: 16px; height: 16px; }
.pl-now__text { display: flex; flex-direction: column; justify-content: center; gap: 4px; min-width: 0; padding-right: 8px; }
.pl-now__t { font-size: 16px; font-weight: 700; line-height: 1.15; letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-now__s { font-size: 13px; line-height: 1.15; color: var(--vx-label-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-now__badge { display: inline-flex; align-items: center; gap: 4px; min-width: 0; font-size: 13px; line-height: 1.15; font-weight: 600; color: var(--vx-label-1); white-space: nowrap; overflow: hidden; }
.pl-now__badge .vx-ico { flex: none; }
.pl-now__badge span { overflow: hidden; text-overflow: ellipsis; }
.pl-now__badge .vx-ico { width: 13px; height: 13px; color: rgb(var(--pl-accent)); }
.pl-now__go { flex: none; min-height: 44px; height: 44px; padding: 0 18px 0 14px; font-size: 14px; gap: 6px; }
.pl-now__go .vx-ico { width: 16px; height: 16px; }
.pl-credit { margin: 0; font-size: 12px; line-height: 1.4; color: var(--vx-label-2); text-wrap: balance; }
.pl-foot .pl-credit { justify-self: end; max-width: 264px; text-align: right; }

/* ============================================================
   poster:<id> · detail
   ============================================================ */
.pl-win--poster { --pl-accent: 255 255 255; }
.pl-win--poster .vx-window__body { padding: 32px 40px 32px 32px; overflow: hidden; }
/* The poster column is sized from the window's height (size container), so every engine agrees on it
   (WebKit mis-sizes an auto grid track around a height: 100% + aspect-ratio item). */
.pl-detail { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 44px; height: 100%; min-height: 0; container: pldetail / size; }
.pl-detail__stage { position: relative; height: 100%; min-height: 0; width: calc(min(100cqh, 640px) * 2 / 3); display: flex; align-items: center; justify-content: center; }
/* ambient light: the poster itself, blurred far out, breathing slowly behind the print (Apple TV style) */
.pl-detail__glow {
  position: absolute; left: -34%; top: -8%; width: 150%; height: 116%; object-fit: cover; pointer-events: none; z-index: 0;
  filter: blur(60px) saturate(1.6); opacity: 0.55; border-radius: 40%;
  transform: scale(1.02); animation: pl-breathe 14s ease-in-out infinite alternate;
}
@keyframes pl-breathe { from { transform: scale(1) rotate(-2deg); opacity: 0.46; } to { transform: scale(1.08) rotate(2deg); opacity: 0.64; } }
.pl-detail__art { position: relative; z-index: 1; width: 100%; aspect-ratio: 2 / 3; perspective: 1400px; }
.pl-detail__tilt { --rx: 0deg; --ry: 0deg; width: 100%; height: 100%; transform: rotateX(var(--rx)) rotateY(var(--ry)); transition: transform .7s var(--vx-ease-out); border-radius: 20px; }
.pl-detail__tilt.is-tilt { transition-duration: .2s; }
.pl-art--big { border-radius: 20px; box-shadow: 0 50px 90px -34px rgb(0 0 0 / 0.85), 0 0 0 0.5px rgb(255 255 255 / 0.1), 0 0 100px -34px rgb(var(--pl-accent) / 0.55); }
.pl-art__sweep { position: absolute; inset: 0; z-index: 5; pointer-events: none; border-radius: inherit; background: linear-gradient(105deg, transparent 36%, rgb(255 252 244 / 0.34) 47%, rgb(255 255 255 / 0.08) 52%, transparent 60%) no-repeat; background-size: 260% 100%; background-position: 130% 0; mix-blend-mode: screen; opacity: 0; }
.pl-detail__floor { position: absolute; left: 10%; right: 10%; bottom: -22px; height: 28px; border-radius: 50%; background: radial-gradient(closest-side, rgb(var(--pl-accent) / 0.34), transparent); filter: blur(8px); pointer-events: none; }

.pl-detail__info > * { flex: none; }
/* the title block sits centred in the room above the filmstrip, so a poster without a series rail isn't top heavy */
.pl-detail__main { display: flex; flex-direction: column; gap: 16px; margin: auto 0; }
.pl-detail__info { display: flex; flex-direction: column; gap: 16px; min-width: 0; min-height: 0; padding: 0; overflow: hidden auto; scrollbar-width: none; }
.pl-detail__info::-webkit-scrollbar { display: none; }
.pl-detail__eyebrow { display: flex; align-items: center; gap: 12px; margin: 0; flex-wrap: wrap; min-height: 32px; }
.pl-badge { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 14px 0 12px; border-radius: 999px; font-size: 13.5px; font-weight: 600; color: #fff; background: color-mix(in srgb, rgb(var(--pl-accent)) 34%, rgb(255 255 255 / 0.08)); box-shadow: inset 0 0.5px 0 rgb(255 255 255 / 0.3); }
.pl-badge .vx-ico { width: 15px; height: 15px; color: color-mix(in srgb, rgb(var(--pl-accent)) 55%, white); }
.pl-detail__title { margin: 0; font-size: 54px; font-weight: 700; line-height: 1.02; letter-spacing: -0.035em; text-wrap: balance; }
.pl-detail__line { margin: -4px 0 0; font-size: 22px; line-height: 1.36; font-weight: 500; letter-spacing: -0.012em; color: var(--vx-label-1); text-wrap: pretty; max-width: 34ch; }

/* facts: three equal tiles (Genre · Publisher · Released) */
.pl-facts { display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); gap: 12px; margin: 0; }
.pl-fact { display: flex; flex-direction: column; gap: 6px; min-width: 0; padding: 16px; border-radius: 18px; background: var(--vx-platter); box-shadow: inset 0 0.5px 0 rgb(255 255 255 / 0.08); }
.pl-fact dt { font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--vx-label-2); }
.pl-fact dd { margin: 0; font-size: 15.5px; font-weight: 600; line-height: 1.3; color: var(--vx-label-1); text-wrap: balance; }

/* the series: first game → this edition. The rail draws itself, the ends arrive in order, this edition is lit */
.pl-tl { padding: 16px 24px 20px; border-radius: 20px; background: var(--vx-platter); box-shadow: inset 0 0.5px 0 rgb(255 255 255 / 0.08); }
.pl-tl__k { margin: 0 0 16px; font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--vx-label-2); }
.pl-tl__track { position: relative; }
.pl-tl__rail { position: absolute; left: calc(50% / var(--n)); right: calc(50% / var(--n)); top: 7px; height: 2px; border-radius: 2px; background: rgb(255 255 255 / 0.14); overflow: hidden; }
.pl-tl__fill { position: absolute; inset: 0; background: linear-gradient(90deg, rgb(255 255 255 / 0.5), rgb(var(--pl-accent))); transform-origin: 0 50%; }
.pl-tl__list { position: relative; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 8px; }
.pl-tl__node, .pl-tl__mid { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; text-align: center; }
.pl-tl__dot { flex: none; width: 16px; height: 16px; margin-bottom: 8px; border-radius: 50%; background: #2a2d34; box-shadow: inset 0 0 0 2px rgb(255 255 255 / 0.7); }
.pl-tl__node.is-poster .pl-tl__dot { background: rgb(var(--pl-accent)); box-shadow: 0 0 0 4px rgb(var(--pl-accent) / 0.25), 0 0 16px rgb(var(--pl-accent) / 0.8), inset 0 0 0 2px rgb(255 255 255 / 0.85); }
.pl-tl__meta { display: inline-flex; align-items: baseline; gap: 8px; }
.pl-tl__k2 { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--vx-label-2); }
.pl-tl__y { font: 500 13px/1.2 var(--vx-mono); color: var(--vx-label-2); font-variant-numeric: tabular-nums; }
.pl-tl__n { font-size: 15px; font-weight: 600; line-height: 1.25; color: var(--vx-label-1); text-wrap: balance; }
.pl-tl__mid .pl-tl__n { font: 500 13px/1.2 var(--vx-mono); color: var(--vx-label-2); }
.pl-tl__ticks { display: block; width: 100%; height: 16px; background: radial-gradient(circle, rgb(255 255 255 / 0.55) 0 2px, transparent 2.5px) center / 16px 16px repeat-x; }

/* all posters: a filmstrip of equal tiles, the one on show lit with its accent */
.pl-strip { margin-top: 0; }
.pl-strip__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 8px; }
.pl-strip__b {
  position: relative; display: block; width: 100%; aspect-ratio: 4 / 5; padding: 0; border: 0; border-radius: 10px; overflow: hidden; cursor: pointer; background: #0b0d12;
  box-shadow: 0 8px 18px -10px rgb(0 0 0 / 0.7), inset 0 0 0 1px rgb(255 255 255 / 0.1);
  transition: transform .35s var(--vx-spring), box-shadow .25s, opacity .25s; opacity: 0.72;
}
.pl-strip__b img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; display: block; }
.pl-strip__b::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.14); }
.pl-strip__b:hover { opacity: 1; transform: translateY(-3px); }
.pl-strip__b:active { transform: scale(0.96); }
.pl-strip__b:focus-visible { outline: 2px solid rgb(255 255 255 / 0.95); outline-offset: 3px; opacity: 1; }
.pl-strip__b.is-on { opacity: 1; cursor: default; box-shadow: 0 0 0 2px rgb(var(--pl-accent)), 0 0 18px -2px rgb(var(--pl-accent) / 0.7), 0 8px 18px -10px rgb(0 0 0 / 0.7); }
.pl-strip__b.is-on:hover { transform: none; }
.pl-detail .pl-credit { padding-top: 2px; text-align: left; }

/* ---------- The entrance (plays once per window) ---------- */
.pl-detail.is-enter .pl-detail__art { animation: pl-art-in 1s var(--vx-ease-out) both; }
@keyframes pl-art-in { from { opacity: 0; transform: translateY(16px) rotateY(-14deg) scale(0.96); filter: blur(10px); } to { opacity: 1; transform: none; filter: none; } }
.pl-detail.is-enter .pl-art__sweep { animation: pl-sweep-once 1.5s var(--vx-ease-out) .55s both; }
@keyframes pl-sweep-once { 0% { opacity: 1; background-position: 130% 0; } 100% { opacity: 1; background-position: -40% 0; } }
.pl-detail.is-enter .pl-detail__glow { animation: pl-glow-in 1.6s var(--vx-ease-out) both, pl-breathe 14s ease-in-out 1.6s infinite alternate; }
@keyframes pl-glow-in { from { opacity: 0; transform: scale(0.8); } to { opacity: 0.46; transform: scale(1); } }
.pl-detail.is-enter .pl-detail__main > *, .pl-detail.is-enter .pl-detail__info > .pl-credit { animation: pl-info-in .7s var(--vx-ease-out) both; }
.pl-detail.is-enter .pl-detail__main > :nth-child(2) { animation-delay: .06s; }
.pl-detail.is-enter .pl-detail__main > :nth-child(3) { animation-delay: .12s; }
.pl-detail.is-enter .pl-detail__main > :nth-child(4) { animation-delay: .18s; }
.pl-detail.is-enter .pl-detail__main > :nth-child(5) { animation-delay: .24s; }
.pl-detail.is-enter .pl-detail__info > .pl-credit { animation-delay: .36s; }
.pl-detail.is-enter .pl-strip__list li { animation: pl-node .5s var(--vx-ease-out) both; animation-delay: calc(0.4s + var(--k, 0) * 0.04s); }
@keyframes pl-info-in { from { opacity: 0; transform: translateY(12px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
.pl-detail.is-enter .pl-tl__fill { animation: pl-rail 1.1s var(--vx-ease-out) .5s both; }
@keyframes pl-rail { from { transform: scaleX(0); } to { transform: none; } }
.pl-detail.is-enter .pl-tl__node, .pl-detail.is-enter .pl-tl__mid { animation: pl-node .6s var(--vx-spring) both; animation-delay: calc(0.55s + var(--i) * 0.2s); }
@keyframes pl-node { from { opacity: 0; transform: translateY(8px) scale(0.9); } to { opacity: 1; transform: none; } }
.pl-detail.is-enter .pl-tl__node.is-poster .pl-tl__dot { animation: pl-ping 1.2s var(--vx-ease-out) both; animation-delay: calc(0.75s + var(--i) * 0.2s); }
@keyframes pl-ping { 0% { box-shadow: 0 0 0 0 rgb(var(--pl-accent) / 0.7), inset 0 0 0 2px rgb(255 255 255 / 0.85); } 100% { box-shadow: 0 0 0 4px rgb(var(--pl-accent) / 0.25), 0 0 16px rgb(var(--pl-accent) / 0.8), inset 0 0 0 2px rgb(255 255 255 / 0.85); } }
.pl-detail.is-paused .pl-detail__glow { animation-play-state: paused; }

/* shorter windows (laptops): tighter rhythm, same parts */
@media (max-height: 860px) {
  .pl-win--poster .vx-window__body { padding: 24px 32px 24px 24px; }
  .pl-detail { gap: 40px; }
  .pl-detail__info { gap: 16px; }
  .pl-detail__main { gap: 12px; }
  .pl-detail__title { font-size: 44px; }
  .pl-detail__line { font-size: 19px; margin-top: -2px; }
  .pl-fact { padding: 12px 16px; gap: 4px; }
  .pl-fact dd { font-size: 15px; }
  .pl-tl { padding: 12px 16px 16px; }
  .pl-tl__k { margin-bottom: 12px; }
  .pl-tl__dot { margin-bottom: 4px; }
  .pl-strip__list { gap: 8px; }
  .pl-strip__b { aspect-ratio: 1; border-radius: 10px; }
  .pl-head__title { font-size: 40px; }
  .pl-head__lede { margin-top: 8px; font-size: 16px; }
  .pl-win--player .vx-window__body { padding: 24px 0; }
}

/* ============================================================
   snake · the arcade cabinet
   ============================================================ */
.pl-win--snake .vx-window__body { padding: 24px 32px 32px; }
.pl-arc { display: flex; flex-direction: column; gap: 18px; height: 100%; min-height: 0; }
.pl-arc__marquee {
  position: relative; display: flex; align-items: center; justify-content: center; gap: 16px; flex: none;
  padding: 12px 22px; border-radius: 22px; overflow: hidden;
  background: radial-gradient(80% 140% at 50% 0%, rgb(120 255 170 / 0.18), transparent 70%), linear-gradient(180deg, rgb(255 255 255 / 0.1), rgb(255 255 255 / 0.03));
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.22), inset 0 0 0 1px rgb(255 255 255 / 0.08);
}
.pl-arc__title { margin: 0; font-family: var(--vx-mono); font-weight: 500; font-size: 30px; line-height: 1; letter-spacing: 0.08em; text-transform: uppercase; color: #eafff1; text-shadow: 0 0 18px rgb(120 255 170 / 0.6), 0 0 2px rgb(200 255 220 / 0.9); }
.pl-arc__sub { margin: 0; font: 500 12px/1 var(--vx-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--vx-label-2); }
.pl-arc__bulbs { flex: 1; height: 8px; max-width: 160px; background: radial-gradient(circle, rgb(255 226 150) 0 2px, transparent 2.6px) 0 50% / 16px 8px repeat-x; opacity: 0.8; animation: pl-bulbs 1.2s steps(2, jump-none) infinite; filter: drop-shadow(0 0 4px rgb(255 200 110 / 0.8)); }
.pl-arc__bulbs--r { animation-delay: -0.6s; }
@keyframes pl-bulbs { 50% { opacity: 0.35; } }

.pl-arc__main { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 26px; flex: 1 1 auto; min-height: 0; align-items: start; }
.pl-arc__bezel { padding: 14px; border-radius: 30px; background: linear-gradient(180deg, #16181d, #0b0c10); box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.12), inset 0 0 0 1px rgb(255 255 255 / 0.06), 0 26px 50px -24px rgb(0 0 0 / 0.8); }
.pl-arc__screen {
  --sz: 452px;
  position: relative; width: var(--sz); height: var(--sz); border-radius: 18px; overflow: hidden; touch-action: none;
  background: radial-gradient(90% 90% at 50% 42%, #10231a, #07120d 70%, #030806);
  box-shadow: inset 0 0 40px rgb(0 0 0 / 0.8), inset 0 0 0 1px rgb(120 255 170 / 0.12);
}
/* the screen follows the window's height (short laptop windows keep the whole cabinet in view);
   when the column is short, the keyboard list steps aside (the ornament and cover still teach it) */
@media (min-width: 900px) {
  .pl-arc__main { container: plarc / size; }
  .pl-arc__screen { --sz: min(452px, calc(100cqh - 28px)); }
  /* the side column ends exactly where the cabinet ends */
  .pl-arc__side { align-self: start; height: min(480px, 100cqh); }
  @container plarc (max-height: 480px) { .pl-keys { display: none; } }
}
.pl-arc__screen:focus { outline: none; }
.pl-arc__screen:focus-visible { outline: 2px solid rgb(190 255 214 / 0.42); outline-offset: 4px; }
.pl-arc__cv { position: absolute; inset: 0; width: 100%; height: 100%; display: block; filter: drop-shadow(0 0 6px rgb(140 255 190 / 0.35)); }
.pl-arc__hud { position: absolute; top: 10px; left: 12px; right: 12px; z-index: 1; display: none; justify-content: space-between; pointer-events: none; font: 500 12px/1 var(--vx-mono); letter-spacing: 0.1em; text-transform: uppercase; color: rgb(220 255 232 / 0.72); }
.pl-arc__hud b { font-weight: 500; color: #eafff1; margin-left: 6px; }
.pl-arc__scan { position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(180deg, rgb(0 0 0 / 0.18) 0 1px, transparent 1px 3px), radial-gradient(120% 100% at 50% 50%, transparent 60%, rgb(0 0 0 / 0.5)); mix-blend-mode: multiply; }
.pl-arc__screen.is-over { animation: pl-shake .42s cubic-bezier(.36,.07,.19,.97) both; }
@keyframes pl-shake { 10%, 90% { transform: translateX(-1px); } 20%, 80% { transform: translateX(3px); } 30%, 50%, 70% { transform: translateX(-6px); } 40%, 60% { transform: translateX(6px); } }

.pl-cover {
  position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: safe center; gap: 10px; padding: 22px; text-align: center;
  overflow: hidden auto; scrollbar-width: none; overscroll-behavior: contain;
  background: rgb(4 10 7 / 0.9); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transition: opacity .3s, visibility .3s;
}
.pl-cover.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.pl-cover.dense { justify-content: flex-start; padding-top: 22px; }
.pl-cover__msg { margin: 0; font-family: var(--vx-mono); font-weight: 500; font-size: 26px; letter-spacing: 0.04em; color: #eafff1; text-shadow: 0 0 14px rgb(120 255 170 / 0.5); }
.pl-cover__sub { margin: 0; max-width: 300px; font-size: 14px; line-height: 1.45; color: rgb(220 255 232 / 0.84); }
.pl-cover__sub b { color: #fff; }
.pl-cover__keys { display: grid; grid-template-columns: repeat(3, 34px); grid-template-rows: repeat(2, 34px); gap: 5px; margin: 4px 0; }
.pl-cover__keys .gk { display: grid; place-items: center; border-radius: 9px; font-size: 15px; color: #eafff1; background: rgb(255 255 255 / 0.1); box-shadow: inset 0 -2px 0 rgb(0 0 0 / 0.35), inset 0 0.5px 0 rgb(255 255 255 / 0.25); }
.pl-cover__keys .gk-up { grid-column: 2; grid-row: 1; }
.pl-cover__keys .gk-left { grid-column: 1; grid-row: 2; }
.pl-cover__keys .gk-down { grid-column: 2; grid-row: 2; }
.pl-cover__keys .gk-right { grid-column: 3; grid-row: 2; }
.pl-cover[data-mode="tutorial"] .gk { animation: pl-key 2.4s var(--vx-ease-out) infinite; }
.pl-cover[data-mode="tutorial"] .gk-down { animation-delay: .3s; } .pl-cover[data-mode="tutorial"] .gk-left { animation-delay: .6s; } .pl-cover[data-mode="tutorial"] .gk-right { animation-delay: .9s; }
@keyframes pl-key { 0%, 30%, 100% { background: rgb(255 255 255 / 0.1); } 12% { background: rgb(140 255 190 / 0.45); } }
.pl-cover__start { margin-top: 6px; background: #eafff1; color: #07120d; }
.pl-cover__start:hover { background: #fff; }
.pl-cover__link { border: 0; background: none; padding: 8px 10px; min-height: 36px; font-size: 13px; font-weight: 500; color: rgb(220 255 232 / 0.78); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgb(220 255 232 / 0.35); }
.pl-cover__link:hover { color: #fff; }

.pl-lb { width: 100%; max-width: 280px; }
.pl-lb__title { margin: 4px 0 6px; font: 600 12px/1 var(--vx-mono); letter-spacing: 0.14em; text-transform: uppercase; color: rgb(220 255 232 / 0.62); }
.pl-lb__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 3px; }
.pl-lb__row { display: grid; grid-template-columns: 26px 1fr auto; align-items: center; gap: 10px; padding: 5px 12px; border-radius: 10px; font-size: 14px; background: rgb(255 255 255 / 0.06); text-align: left; animation: pl-row .45s var(--vx-ease-out) both; animation-delay: calc(var(--i, 0) * 60ms); }
@keyframes pl-row { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.pl-lb__row.is-me { background: rgb(140 255 190 / 0.22); box-shadow: inset 0 0 0 1px rgb(140 255 190 / 0.5); }
.pl-lb__row--empty { grid-template-columns: 1fr; color: rgb(220 255 232 / 0.7); }
.pl-lb__rank { font: 600 12px/1 var(--vx-mono); color: rgb(220 255 232 / 0.6); }
.pl-lb__rank.r1 { color: #ffd66e; } .pl-lb__rank.r2 { color: #e4e8ee; } .pl-lb__rank.r3 { color: #f0b184; }
.pl-lb__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #eafff1; }
.pl-lb__score { font-family: var(--vx-mono); font-weight: 500; color: #fff; }
.pl-claim[hidden], .pl-lb[hidden] { display: none; }
.pl-cover::-webkit-scrollbar { display: none; }
.pl-claim { display: flex; gap: 6px; width: 100%; max-width: 280px; margin-top: 2px; }
.pl-claim__in { flex: 1; min-width: 0; height: 44px; padding: 0 14px; border-radius: 999px; border: 0; font: 500 15px var(--vx-font); color: #fff; background: rgb(255 255 255 / 0.12); box-shadow: inset 0 0 0 1px rgb(140 255 190 / 0.3); }
.pl-claim__in::placeholder { color: rgb(220 255 232 / 0.55); }
.pl-claim__in:focus-visible { outline: 2px solid #eafff1; outline-offset: 2px; }
.pl-claim__btn { padding: 0 16px; background: #eafff1; color: #07120d; }

.pl-arc__side { display: flex; flex-direction: column; gap: 16px; min-width: 0; align-self: stretch; }
.pl-arc__stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pl-stat { display: flex; flex-direction: column; gap: 4px; padding: 14px 18px; border-radius: 22px; background: var(--vx-platter); box-shadow: inset 0 0.5px 0 rgb(255 255 255 / 0.08); }
.pl-stat__n { font: 500 34px/1 var(--vx-mono); letter-spacing: -0.02em; color: #fff; font-variant-numeric: tabular-nums; }
.pl-stat__n.is-bump { animation: pl-bump .4s var(--vx-spring-bouncy); }
@keyframes pl-bump { 40% { transform: scale(1.18); color: #bfffd6; } }
.pl-stat__l { font-size: 13px; font-weight: 500; color: var(--vx-label-2); }

.pl-podium { display: flex; flex-direction: column; flex: 1 1 auto; padding: 14px 16px 0; border-radius: 22px; background: var(--vx-platter); box-shadow: inset 0 0.5px 0 rgb(255 255 255 / 0.08); overflow: hidden; }
.pl-podium__k { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font-size: 13px; font-weight: 600; color: var(--vx-label-2); }
.pl-podium__k .vx-ico { width: 16px; height: 16px; color: #ffd66e; }
.pl-podium__steps { flex: 1 1 auto; display: grid; grid-template-columns: 1fr 1.08fr 1fr; align-items: stretch; gap: 8px; min-height: 176px; }
.pl-pod { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 4px; min-width: 0; text-align: center; }
.pl-podium__steps.is-loaded .pl-pod { animation: pl-pod .7s var(--vx-spring) both; animation-delay: calc((2 - var(--i)) * 90ms); }
@keyframes pl-pod { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.pl-pod__medal { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; font: 700 14px/1 var(--vx-font); color: #2a1d00; background: radial-gradient(circle at 35% 30%, #fff3c4, #f5c542 60%, #b8860b); box-shadow: 0 4px 12px -4px rgb(0 0 0 / 0.5), inset 0 -2px 0 rgb(0 0 0 / 0.15); }
.pl-pod.p2 .pl-pod__medal { background: radial-gradient(circle at 35% 30%, #ffffff, #cfd6de 60%, #8e98a4); color: #1c2229; }
.pl-pod.p3 .pl-pod__medal { background: radial-gradient(circle at 35% 30%, #ffe2c8, #d99a64 60%, #9a5c2c); color: #2a1406; }
.pl-pod__name { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; font-weight: 600; color: var(--vx-label-1); }
.pl-pod__score { font: 500 13px/1 var(--vx-mono); color: var(--vx-label-2); }
.pl-pod__step { display: block; width: 100%; margin-top: 6px; border-radius: 12px 12px 0 0; background: linear-gradient(180deg, rgb(255 255 255 / 0.2), rgb(255 255 255 / 0.05)); box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.3); }
/* the steps grow with the room the column has (a taller window gets a taller stage) */
.pl-pod.p1 .pl-pod__step { height: max(84px, 46%); background: linear-gradient(180deg, rgb(255 214 110 / 0.34), rgb(255 214 110 / 0.06)); }
.pl-pod.p2 .pl-pod__step { height: max(58px, 32%); }
.pl-pod.p3 .pl-pod__step { height: max(40px, 22%); }
.pl-pod.is-empty .pl-pod__name, .pl-pod.is-empty .pl-pod__score { color: var(--vx-label-3); font-weight: 500; }
.pl-podium__steps.is-loading .pl-pod { opacity: 0.5; }
.pl-keys { list-style: none; margin: 0; padding: 6px 0; border-radius: 22px; background: var(--vx-platter); box-shadow: inset 0 0.5px 0 rgb(255 255 255 / 0.08); }
.pl-keys li { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 40px; padding: 0 18px; font-size: 14px; color: var(--vx-label-2); }
.pl-keys li + li { box-shadow: inset 0 1px 0 var(--vx-hairline); }
.pl-keys span:last-child { display: inline-flex; align-items: center; gap: 4px; color: var(--vx-label-1); font-size: 13px; }

.pl-deck { display: none; }
.pl-dpad { position: relative; display: grid; grid-template-columns: repeat(3, 56px); grid-template-rows: repeat(3, 56px); gap: 2px; }
.pl-dpad__b { display: grid; place-items: center; border: 0; padding: 0; cursor: pointer; color: #fff; background: linear-gradient(180deg, rgb(255 255 255 / 0.18), rgb(255 255 255 / 0.08)); box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.28), 0 6px 14px -8px rgb(0 0 0 / 0.6); transition: transform .12s, background .15s; touch-action: none; }
.pl-dpad__b .vx-ico { width: 22px; height: 22px; }
.pl-dpad__b.is-press, .pl-dpad__b:active { transform: scale(0.92); background: rgb(140 255 190 / 0.32); }
.pl-dpad__up { grid-column: 2; grid-row: 1; border-radius: 16px 16px 6px 6px; }
.pl-dpad__left { grid-column: 1; grid-row: 2; border-radius: 16px 6px 6px 16px; }
.pl-dpad__hub { grid-column: 2; grid-row: 2; border-radius: 8px; background: rgb(255 255 255 / 0.06); }
.pl-dpad__right { grid-column: 3; grid-row: 2; border-radius: 6px 16px 16px 6px; }
.pl-dpad__down { grid-column: 2; grid-row: 3; border-radius: 6px 6px 16px 16px; }
.pl-deck__btns { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.pl-ab { width: 76px; height: 76px; border-radius: 50%; border: 0; padding: 0; display: grid; place-items: center; cursor: pointer; color: #07120d; background: radial-gradient(circle at 35% 30%, #ffffff, #c8ffd9 55%, #7fdca0); box-shadow: 0 10px 24px -10px rgb(0 0 0 / 0.7), inset 0 -3px 0 rgb(0 0 0 / 0.15); transition: transform .15s; touch-action: manipulation; }
.pl-ab:active { transform: scale(0.92); }
.pl-ab .vx-ico { width: 28px; height: 28px; }
.pl-ab__l { font: 600 12px/1 var(--vx-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--vx-label-2); }


/* ============================================================
   Narrow windows (phones, and any window under 760px wide)
   ============================================================ */
@container plbody (max-width: 760px) {
  .pl-head { flex-direction: column; align-items: flex-start; gap: 16px; padding: 0 24px; }
  .pl-head__title { font-size: 34px; }
  .pl-head__lede { font-size: 16px; }
  .pl-wall { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 4%, #000 96%, transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 4%, #000 96%, transparent 100%); }
  /* footer stacks: ‹ now showing › on its own row, the credit quietly under it */
  .pl-foot { grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 16px; padding: 0 16px; }
  .pl-foot__hint { display: none; }
  .pl-foot__nav { width: 100%; justify-content: center; gap: 8px; }
  .pl-now { flex: 0 1 auto; }
  .pl-now__in { gap: 8px; }
  .pl-now__text { padding-right: 0; }
  /* the Open button becomes a round icon button so the name always has room */
  .pl-now__go { width: 44px; padding: 0; }
  .pl-now__go span { display: none; }
  .pl-now__badge .vx-ico { display: none; }
  .pl-foot .pl-credit { justify-self: center; text-align: center; max-width: 320px; }

  .pl-detail { grid-template-columns: minmax(0, 1fr); gap: 32px; height: auto; container-type: normal; }
  .pl-detail__stage { height: auto; width: auto; padding: 8px 0; }
  .pl-detail__art { width: min(78%, 320px); }
  .pl-detail__glow { left: 4%; width: 92%; }
  .pl-detail__info { overflow: visible; padding: 0; }
  .pl-detail__title { font-size: 36px; }
  .pl-detail__line { font-size: 18px; }
  .pl-facts { grid-template-columns: minmax(0, 1fr); gap: 0; border-radius: 18px; overflow: hidden; background: var(--vx-platter); }
  .pl-fact { flex-direction: row; align-items: baseline; justify-content: space-between; gap: 16px; padding: 12px 16px; border-radius: 0; background: none; box-shadow: none; }
  .pl-fact + .pl-fact { box-shadow: inset 0 1px 0 var(--vx-hairline); }
  .pl-fact dd { text-align: right; font-size: 15px; }
  /* the series turns vertical: dot · label and name · year */
  .pl-tl { padding: 16px; }
  .pl-tl__rail { left: 7px; right: auto; top: 12px; bottom: 12px; width: 2px; height: auto; }
  .pl-tl__fill { transform-origin: 50% 0; }
  .pl-detail.is-enter .pl-tl__fill { animation-name: pl-rail-v; }
  .pl-tl__list { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .pl-tl__node { display: grid; grid-template-columns: 16px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 16px; row-gap: 2px; align-items: center; text-align: left; }
  .pl-tl__node .pl-tl__dot { grid-column: 1; grid-row: 1 / span 2; margin: 0; }
  .pl-tl__node .pl-tl__meta { grid-column: 2; grid-row: 1; }
  .pl-tl__node .pl-tl__n { grid-column: 2; grid-row: 2; }
  .pl-tl__mid { display: grid; grid-template-columns: 16px minmax(0, 1fr); column-gap: 16px; align-items: center; text-align: left; }
  .pl-tl__mid .pl-tl__n { margin: 0; grid-column: 2; }
  .pl-tl__ticks { width: 16px; height: 24px; grid-column: 1; background: radial-gradient(circle, rgb(255 255 255 / 0.55) 0 2px, transparent 2.5px) center / 16px 12px repeat-y; }
  .pl-detail .pl-credit { margin-top: 0; }
  .pl-strip { margin-top: 8px; }
  .pl-strip__list { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
}
@keyframes pl-rail-v { from { transform: scaleY(0); } to { transform: none; } }

/* Phones: windows open full screen (MOBILE); the wall gets a fixed, generous height */
@media (max-width: 899px) {
  .pl-win .vx-window__body { padding-left: 16px; padding-right: 16px; }
  .pl-win--player .vx-window__body { padding-left: 0; padding-right: 0; overflow: hidden auto; }
  .pl-win--player .pl-player { height: auto; min-height: 100%; }
  .pl-win--player .pl-wall { flex: none; height: clamp(300px, calc(100svh - 440px), 480px); }
  .pl-win--poster .vx-window__body { overflow: hidden auto; }
  .pl-arc__hud { display: flex; }

  .pl-arc { gap: 14px; height: auto; }
  .pl-arc__main { display: contents; }
  .pl-arc__marquee { order: 0; } .pl-arc__bezel { order: 1; } .pl-deck { order: 2; } .pl-arc__side { order: 3; }
  .pl-arc__marquee { padding: 10px 14px; }
  .pl-arc__title { font-size: 24px; }
  .pl-arc__sub { display: none; }
  .pl-arc__bezel { padding: 10px; border-radius: 26px; justify-self: center; width: 100%; max-width: 440px; margin: 0 auto; }
  .pl-arc__screen { --sz: 100%; width: 100%; height: auto; aspect-ratio: 1; }
  .pl-keys { display: none; }
  .pl-deck { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 4px 18px; }
}
/* Phone shell (MOBILE): the sheet already insets its body by --vxm-pad, so the header and
   footer align to that edge and the wall bleeds edge to edge like an iOS carousel */
html.vxm .pl-win--player .pl-head, html.vxm .pl-win--player .pl-foot { padding-left: 0; padding-right: 0; }
html.vxm .pl-win--player .pl-wall { margin-left: calc(-1 * var(--vxm-pad, 16px)); margin-right: calc(-1 * var(--vxm-pad, 16px)); }
@media (hover: none) and (min-width: 900px) {
  .pl-deck { display: flex; align-items: center; justify-content: center; gap: 60px; }
  .pl-keys { display: none; }
}
@media (hover: none) and (pointer: coarse) {
  .pl-cover__keys { display: none !important; }
  .pl-kbd { display: none; }
}
@media (max-width: 520px) {
  .pl-orn__btn[data-act="help"] span, .pl-orn__btn[data-act="wall"] span, .pl-orn__btn[data-act="lb"] span, .pl-orn__btn[data-act="snake"] span { display: none; }
  .pl-orn__btn[data-act="help"], .pl-orn__btn[data-act="wall"], .pl-orn__btn[data-act="lb"], .pl-orn__btn[data-act="snake"] { width: 44px; padding: 0; }
}

/* ---------- Reduced motion: no ambient motion, no parallax, no entrance ---------- */
html.vx-reduced .pl-card__float, html.vx-reduced .pl-card.is-current .pl-card__tilt::after,
html.vx-reduced .pl-arc__bulbs, html.vx-reduced .pl-cover[data-mode="tutorial"] .gk,
html.vx-reduced .pl-detail__glow, html.vx-reduced .pl-detail * { animation: none !important; }
html.vx-reduced .pl-card__tilt, html.vx-reduced .pl-detail__tilt { transform: none; }
html.vx-reduced .pl-art__shine, html.vx-reduced .pl-art__sweep { display: none; }
html.vx-reduced .pl-art img, html.vx-reduced .pl-now__thumb { transition: none; }
html.vx-reduced .pl-detail__glow { opacity: 0.5; transform: scale(1.02); }
@media (prefers-reduced-motion: reduce) {
  .pl-card__float, .pl-card.is-current .pl-card__tilt::after, .pl-arc__bulbs, .pl-detail__glow, .pl-detail * { animation: none !important; }
  .pl-art img, .pl-now__thumb { transition: none; }
}
.pl-arc__hud { transition: opacity .3s; }
.pl-arc__screen:has(.pl-cover:not(.hidden)) .pl-arc__hud { opacity: 0; }
