/* TEST PLAY AS THE PHONE DRAWS IT (docs/28-desktop-editor.md). Owner: the panels (js/testplay/phone.js, index.js).
   The frame is the phone's 390 x 844 design frame, scaled to the window by a transform; every row and size below is the
   phone's own, in design px (EncoreCocos ui/PlayScreen.ts make, ui/play/hud/*, ui/play/intro/IntroCount.ts; the redesign
   mockup docs/redesign/mockups/ingame.html), in the phone's faces: Anton, Archivo and Archivo Condensed (font-stretch
   75 %), Exo 2 italic. Scoped to .edp-tp and .pf so no other region's styles change. */

/* ------------------------------------------------------------------ the overlay: the keys beside the phone */
.edp-tp.phone { flex-direction: row; align-items: stretch; border-radius: 0; border: 0; box-shadow: none;
  background: radial-gradient(70% 60% at 62% 45%, rgba(61,139,255,.10), transparent 70%), #060609; }
.edp-tp-side { flex: 0 0 auto; width: 264px; display: flex; flex-direction: column; gap: 12px; padding: 18px 16px; overflow-y: auto; }
.edp-tp-side .edp-tp-head { padding: 0; border: 0; background: none; flex-wrap: wrap; row-gap: 6px; }
.edp-tp-side .where { white-space: normal; flex: 1 1 100%; font-size: 13px; line-height: 1.35; }
.edp-tp-side .live { font-size: 13px; }
.edp-tp-side .edp-tp-keys { flex-direction: column; align-items: stretch; gap: 7px; padding: 12px 12px 12px; border: 1.5px solid rgba(255,255,255,.1); border-radius: 14px; background: rgba(255,255,255,.03); font-size: 12px; justify-content: flex-start; }
.edp-tp-side .edp-tp-keys span { white-space: normal; flex-wrap: wrap; }
.edp-tp-lanes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 4px; }
.edp-tp-lanes kbd { display: grid; place-items: center; height: 34px; padding: 0; border-radius: 9px; border: 1.5px solid var(--lc); color: var(--lc); background: rgba(0,0,0,.35);
  font-family: var(--f-hud); font-style: italic; font-weight: 900; font-size: 15px; box-shadow: 0 0 12px color-mix(in srgb, var(--lc) 30%, transparent); }
.edp-tp-side .edp-tp-note { margin: 0; font-size: 11.5px; line-height: 1.45; color: var(--dim); }
.edp-tp-side .edp-tp-note b { color: var(--white); font-weight: 700; }
.edp-tp-side .edp-tp-notice { border: 1px solid rgba(255,198,94,.3); border-radius: 10px; }
/* the note speed (speed-build, 2026-10-06; js/testplay/speed.js): the phone's three since 30 Oct, drawn as the transport's SNAP is */
.edp-tp-side .edp-tp-speeds { display: flex; flex-direction: column; gap: 7px; }
.edp-tp-speed { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding: 3px; gap: 2px; border-radius: 11px; background: rgba(0,0,0,.45); border: 1.5px solid rgba(255,255,255,.12); box-shadow: inset 0 2px 5px rgba(0,0,0,.5); }
.edp-tp-speed button { height: 28px; min-width: 0; padding: 0 2px; border-radius: 8px; font-family: var(--f-hud); font-style: italic; font-weight: 800; font-size: 11.5px; color: var(--dim); white-space: nowrap; }
.edp-tp-speed button:hover { color: var(--white); }
.edp-tp-speed button.on { background: linear-gradient(180deg, #8ff7dc, #3fbf9f); color: #062A20; box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 2px 0 #0f4a3a, 0 0 10px rgba(112,245,203,.4); }
.edp-tp-side .edp-tp-speedcap { margin: 0; font-family: var(--f-hud); font-style: italic; font-weight: 800; font-size: 12.5px; color: var(--mint); font-variant-numeric: tabular-nums; }
.edp-tp .cr-res .ln.speed b { color: var(--mint); }
.edp-tp-stage { position: relative; flex: 1 1 auto; min-width: 0; display: grid; place-items: center; overflow: hidden; }
/* where WebGL2 is missing: the older flat highway fills the stage's box (js/testplay/highway.js sizes itself to it) */
.edp-tp-stage > .edp-tp-canvas { position: absolute; inset: 12px 12px 12px 0; width: calc(100% - 12px); height: calc(100% - 24px); border-radius: 14px; border: 1.5px solid rgba(127,243,255,.35); background: radial-gradient(90% 70% at 50% 100%, rgba(61,139,255,.16), transparent 70%), linear-gradient(180deg, #0d0a16, #07070A); }
.edp-tp.phone .edp-tp-result { inset: 0; }
.edp-tp.phone:not(.flat) .edp-tp-result { place-items: start center; padding-top: 6px; }
.edp-tp.phone.done .pf-wrap { opacity: .35; }
/* the real player laid over the phone's video slot (index.js placeVideo): the video's own box, moved, never covered
   (z-index over #ed-overlay's 50, under the dialogs' 140 and the toasts); square, as the phone's video is since play-look-build */
#ed-video .ed-vbox.in-phone { position: fixed; z-index: 51; aspect-ratio: auto; min-height: 0; border: 0; border-radius: 0; box-shadow: none; }

/* ------------------------------------------------------------------ the phone */
.pf-wrap { position: relative; flex: none; }
.pf { position: absolute; left: 0; top: 0; width: 390px; height: 844px; transform-origin: 0 0; border-radius: 30px; overflow: hidden; background: #07070A; isolation: isolate;
  box-shadow: 0 0 0 1px rgba(255,255,255,.09), 0 0 0 7px #121016, 0 0 0 8px rgba(255,255,255,.06), 0 30px 80px rgba(0,0,0,.7);
  font-family: var(--f-body); color: var(--white); -webkit-font-smoothing: antialiased; user-select: none; }
.pf-canvas { position: absolute; left: 0; top: 0; width: 390px; height: 844px; display: block; }
.pf-under, .pf-hud { position: absolute; inset: 0; pointer-events: none; }
.pf-hud > * { position: absolute; }
.pf .cond { font-stretch: 75%; }

/* the header (HudHeader) */
.pf-head > * { position: absolute; }
.pf-mark svg { display: block; }
.pf-div { width: 1px; height: 34px; background: rgba(255,255,255,.22); }
.pf-ey { display: flex; align-items: center; gap: 7px; transform: translateY(-50%); max-width: 252px; }
.pf-artist { font-stretch: 75%; font-weight: 700; font-size: 10px; letter-spacing: 1.4px; color: #FFB347; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.pf-tier { flex: none; display: inline-flex; align-items: center; height: 17px; padding: 0 5px; border-radius: 6px; border: 1.5px solid rgba(255,198,94,.65); background: rgba(0,0,0,.35);
  font-stretch: 75%; font-weight: 800; font-size: 9px; letter-spacing: .12em; color: #ffd98a; }
.pf-title { transform: translateY(-50%); max-width: 252px; font-family: var(--f-disp); font-size: 22px; line-height: 24px; letter-spacing: .44px; color: #FFF7EC; text-shadow: 0 2px 0 rgba(0,0,0,.45); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* the pause: the kit's unlit icon key (E · Pulse Key `.sys-e .b.ico`); here it stops the test (Esc) */
.pf-pause { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; gap: 5px; pointer-events: auto; cursor: pointer; border-radius: 14px;
  background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.02)), rgba(16,12,26,.74);
  box-shadow: inset 0 -2px 0 rgba(255,255,255,.26), inset 0 0 0 1px rgba(255,255,255,.16), 0 2px 0 rgba(0,0,0,.4), 0 6px 10px rgba(0,0,0,.28); }
.pf-pause i { display: block; width: 3.5px; height: 14px; border-radius: 2px; background: #FFF7EC; }
.pf-pause:active { transform: translateY(2px); }

/* the bezel and the video slot (PlayScreen.make since play-look-build: the video's rectangle, square, no rim; the song's spill a light under its foot) */
.pf-bezel { box-sizing: border-box; background: #0d1522; }
.pf-slot { overflow: hidden; background: #0d1522; }
.pf-slot.empty > * { display: none; }
.pf-shade { box-shadow: 0 10px 40px rgba(255,138,61,.3); }
/* the slot's title card: the video column's own card (css/panels.css #ed-video .ed-vcard), for the slot */
.pf-slot .ed-vcard { position: absolute; inset: 0; overflow: hidden; background: radial-gradient(120% 100% at 30% 20%, rgba(123,44,255,.22), rgba(0,0,0,0) 62%), #0B0B12; }
.pf-slot .ed-vcard > svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.pf-slot .ed-vcard .shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7,7,10,0) 35%, rgba(7,7,10,.62) 100%); }
.pf-slot .ed-vcard .words { position: absolute; left: 14px; right: 14px; bottom: 13px; display: flex; flex-direction: column; gap: 4px; }
.pf-slot .ed-vcard .words small { font-stretch: 75%; font-weight: 800; font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: #fff7ec; opacity: .9; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf-slot .ed-vcard .words b { font-family: var(--f-disp); font-weight: 400; font-size: 30px; line-height: .98; letter-spacing: .02em; text-transform: uppercase; color: #fff7ec; text-shadow: 0 2px 0 rgba(0,0,0,.35); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
.pf-slot .ed-vcard .state { display: none; }
.pf-slot .pf-beside { position: absolute; left: 50%; top: 12px; transform: translateX(-50%); }

/* the strip (HudStrip) */
.pf-scrim { left: 0; right: 0; background: linear-gradient(180deg, rgba(7,7,10,.64), rgba(7,7,10,0)); }
.pf-strip > * { position: absolute; }
.pf-rail { height: 4px; }
.pf-rail b { position: absolute; top: 0; height: 4px; border-radius: 2px; background: rgba(255,255,255,.14); }
.pf-rail b.clean { background: #70F5CB; box-shadow: 0 0 5px rgba(112,245,203,.5); }
.pf-rail b.done { background: rgba(255,255,255,.55); }
.pf-rail b.now { background: rgba(255,255,255,.18); }
.pf-rail b.now::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: var(--p, 4px); border-radius: 2px; background: #eef7ff; box-shadow: 0 0 6px rgba(191,240,255,.8); }
.pf-clock { transform: translate(-100%, -50%); font-family: var(--f-hud); font-style: italic; font-weight: 700; font-size: 11px; line-height: 13px; color: #dfe8ff; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pf-eye { transform: translateY(-50%); font-stretch: 75%; font-weight: 700; font-size: 9.5px; line-height: 11px; letter-spacing: 1.52px; text-transform: uppercase; color: rgba(255,247,236,.62); white-space: nowrap; }
.pf-score { transform: translateY(-50%); font-family: var(--f-hud); font-style: italic; font-weight: 900; font-size: 27px; line-height: 28px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pf-zeros { color: rgba(255,214,140,.26); }
.pf-value { display: inline-block; transform-origin: 20% 50%; background: linear-gradient(180deg, #fff6c4 0%, #ffd25c 40%, #ff8a4a 76%, #ff5c5c 100%); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 1.5px 0 #5c1a12); padding-right: 2px; }
/* the score's arrival burst (HudStrip.burst): a ring that opens from the number and goes */
.pf-ring { position: absolute; pointer-events: none; transform-origin: 50% 50%; overflow: visible; }
/* the light travelling into the score (ui/play/Stream.ts): drawn additively, over the highway and the HUD */
.pf-stream { position: absolute; left: 0; top: 0; width: 390px; height: 844px; pointer-events: none; mix-blend-mode: plus-lighter; }
.pf-acc { transform: translateY(-50%); font-family: var(--f-hud); font-style: italic; font-weight: 900; font-size: 22px; line-height: 23px; color: #FFF7EC; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pf-pacerow { transform: translateY(-50%); display: flex; align-items: center; gap: 4px; }
.pf-medal { width: 10px; height: 10px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff5c8, #ffc65e 45%, #b8741a); box-shadow: 0 1px 0 rgba(0,0,0,.45); }
.pf-medal.silver { background: radial-gradient(circle at 35% 30%, #fff, #dce3f0 45%, #7c8aa3); } .pf-medal.bronze { background: radial-gradient(circle at 35% 30%, #ffd2b0, #e0956a 45%, #7a3e1e); }
.pf-medal.encore { background: radial-gradient(circle at 35% 30%, #ffd6e0, #ff3b5f 45%, #7a0a2a); } .pf-medal.off { display: none; }
.pf-pace { font-stretch: 75%; font-weight: 800; font-size: 9px; line-height: 11px; letter-spacing: 1.26px; text-transform: uppercase; white-space: nowrap; }
/* the groove: the phone's bar (js/testplay/groove.js: GrooveBar and groove.effect), its own 302 x 5 canvas; the older CSS bar
   below only where that canvas cannot be had */
.pf-groove { height: 5px; display: block; }
.pf-gtrack { height: 5px; border-radius: 4px; background: rgba(255,255,255,.1); overflow: hidden; }
.pf-gfill { height: 100%; border-radius: 4px; background: linear-gradient(90deg, #2fd6cf, #8cf7e9); box-shadow: 0 0 10px rgba(111,245,224,.6); }
.pf-gfill.low { background: linear-gradient(90deg, #ff6b6b, #ffb84d); box-shadow: 0 0 10px rgba(255,107,107,.5); }

/* the draft run's panel (DraftRun.buildBadge) and the notice line */
.pf-badge { width: 98px; }
.pf-btitle { font-family: var(--f-hud); font-style: italic; font-weight: 900; font-size: 11px; line-height: 14px; letter-spacing: .33px; color: #d9a5ff; text-shadow: 0 0 8px rgba(180,110,255,.55); }
.pf-bline { font-family: var(--f-hud); font-style: italic; font-weight: 700; font-size: 9px; line-height: 13px; letter-spacing: .18px; color: #9aa3ba; }
.pf-btitle + .pf-bline { margin-top: 3.5px; }
.pf-notice { width: 210px; transform: translate(-50%, -7px); text-align: center; font-weight: 600; font-size: 12px; line-height: 15px; text-shadow: 0 1px 3px rgba(0,0,0,.7); }

/* the combo in the upper highway, behind the notes (CentreCombo) and the celebration word (Flourish) */
.pf-under > * { position: absolute; }
.pf-cbody { inset: 0; }
.pf-cbody > * { position: absolute; }
.pf-full { transform: translate(-50%, -50%); font-stretch: 75%; font-weight: 800; font-size: 9.5px; letter-spacing: 1.5px; color: rgba(255,198,94,.85); white-space: nowrap; transition: opacity .25s; }
/* the whole combo at rest (CentreCombo REST_ALPHA 0.55: EncoreCocos combo-glow); glow() lights it on every Perfect.
   The number has no opacity of its own any more (it was .62) */
.pf-combo { opacity: .55; }
.pf-numw { transform: translate(-50%, -50%); }
.pf-num { display: block; padding: 0 6px; font-family: var(--f-hud); font-style: italic; font-weight: 900; font-size: 56px; line-height: 58px; font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, #fff6c4 0%, #ffd25c 40%, #ff8a4a 76%, #ff5c5c 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pf-num.white { background: none; -webkit-background-clip: border-box; background-clip: border-box; color: #FFF7EC; }
.pf-ghost { transform: translate(-50%, -50%); padding: 0 6px; font-family: var(--f-hud); font-style: italic; font-weight: 900; font-size: 56px; line-height: 58px; color: #FF8AA0; opacity: 0; }
.pf-clabel { transform: translate(-50%, -50%); font-stretch: 75%; font-weight: 800; font-size: 9.5px; letter-spacing: 2px; color: rgba(255,247,236,.55); white-space: nowrap; }
.pf-bars { height: 8px; display: flex; gap: 3px; align-items: flex-end; transform: translate(-50%, calc(-100% + 1.5px)); }
.pf-bar { width: 10px; height: 3px; border-radius: 1.5px; background: rgba(255,255,255,.16); }
.pf-bar.on { background: #BFF0FF; box-shadow: 0 0 4px rgba(120,210,255,.6); }
.pf-bar.hot { background: #ffffff; box-shadow: 0 0 6px rgba(223,246,255,.8); }
.pf-flourish { transform: translate(-50%, -50%); font-family: var(--f-hud); font-style: italic; font-weight: 900; font-size: 18px; line-height: 20px; color: #70F5CB; text-shadow: 0 0 12px rgba(112,245,203,.6); white-space: nowrap; opacity: 0; }

/* the one judgement word (JudgeWord): its centre on its row, the hint 21 px under it */
.pf-word { transform: translate(-50%, -13.5px); text-align: center; white-space: nowrap; opacity: 0; }
.pf-word b { display: block; font-family: var(--f-hud); font-style: italic; font-weight: 900; font-size: 25px; line-height: 27px; }
.pf-word small { display: block; margin-top: 1.5px; font-stretch: 75%; font-weight: 700; font-size: 9.5px; line-height: 12px; letter-spacing: 1.33px; text-transform: uppercase; color: rgba(255,247,236,.72); text-shadow: 0 1px 0 rgba(0,0,0,.8); }
.pf-word small:empty { display: none; }

/* the count (IntroCount) */
.pc { left: 0; width: 390px; height: 0; }
.pc > * { position: absolute; left: 195px; top: 0; transform: translate(-50%, -50%); }
.pc-ring { border-radius: 50%; border: 2px solid rgba(255,255,255,.62); box-shadow: 0 0 12px rgba(255,255,255,.25), inset 0 0 6px rgba(255,255,255,.12); opacity: 0; }
.pc-ready { display: flex; flex-direction: column; align-items: center; font-family: var(--f-disp); font-size: 19px; line-height: 19.4px; letter-spacing: 1.52px; color: #FFF7EC; text-shadow: 0 2px 0 rgba(0,0,0,.5); opacity: 0; }
.pc-num { padding: 0 12px; font-family: var(--f-hud); font-style: italic; font-weight: 900; font-size: 100px; line-height: 100px; opacity: 0;
  background: linear-gradient(180deg, #fff7ec, #ffd98a 50%, #ff6a4d); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 4px 0 rgba(0,0,0,.5)) drop-shadow(0 0 20px rgba(255,160,90,.6)); }
.pc-num.go { font-size: 92px; line-height: 92px; background: linear-gradient(180deg, #ffffff, #bff0ff 45%, #70f5cb); -webkit-background-clip: text; background-clip: text; filter: drop-shadow(0 4px 0 rgba(0,0,0,.5)) drop-shadow(0 0 24px rgba(112,245,203,.8)); }
.pc-dots { top: 97px; display: flex; gap: 10px; align-items: center; }
.pc-dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.25); }
.pc-dots i.strong { width: 8px; height: 8px; }
.pc-dots i.on { background: #70F5CB; box-shadow: 0 0 10px rgba(112,245,203,.9); transform: scale(1.5); }

@media (prefers-reduced-motion: reduce) { .pf-full { transition: none; } }
