/* HALVAINE — the second screen (real phone + inline device) */
.pv { position: relative; width: 100%; height: 100%; overflow: hidden; background: #000; color: var(--bone); touch-action: none; }
.pv-cv, .pv-gl { position: absolute; inset: 0; width: 100%; height: 100%; }
.pv-gl { opacity: 0; pointer-events: none; }
.pv.is-gl .pv-gl { opacity: 1; }
.pv.is-gl .pv-cv { opacity: 0; }
.pv-fade .pv-cv { animation: pvFade .9s var(--ease); }
@keyframes pvFade { from { opacity: 0; filter: blur(8px); } }
/* inline (in the page): vertical swipes always scroll the page; only sideways drags reach the view */
.pv-inline { touch-action: pan-y pinch-zoom; }
/* 'see inside': the movement left of the line, the dial right of it. The whole picture is the drag area. */
.pv.slide-live { cursor: ew-resize; -webkit-user-select: none; user-select: none; }
.pv-slide { position: absolute; top: 0; bottom: 0; left: 0; width: 56px; margin-left: -28px; z-index: 2; will-change: transform; outline: none; pointer-events: none; }
.pv-slide[hidden], .pv-lbl[hidden] { display: none; }
.pv-slide::before { content: ''; position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; margin-left: -1px;
  background: linear-gradient(180deg, transparent, var(--ember2) 10%, #fff 50%, var(--ember2) 90%, transparent); box-shadow: 0 0 16px 2px rgba(226,98,42,.7); }
.pv-knob { position: absolute; left: 50%; top: 36%; width: 48px; height: 48px; margin: -24px 0 0 -24px; border-radius: 50%; display: none; place-items: center;
  background: rgba(236,232,223,.95); color: #0b0d11; box-shadow: 0 6px 24px rgba(0,0,0,.55), 0 0 0 6px rgba(226,98,42,.28); }
.slide-live .pv-knob { display: grid; }
.pv-knob svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.pv-slide:focus-visible .pv-knob { outline: 2px solid var(--ember2); outline-offset: 4px; }
.pv-lbl { position: absolute; z-index: 3; top: 14px; left: 50%; transform: translateX(-50%); margin: 0; padding: 8px 13px; border-radius: 999px; white-space: nowrap;
  background: rgba(5,6,8,.74); border: 1px solid var(--line2); color: var(--bone); font-size: 10.5px; pointer-events: none; transition: opacity .5s var(--ease); }
.pv-lbl span { color: var(--ember2); }
.pv.is-used .pv-lbl { opacity: 0; }
.pv-hint { position: absolute; left: 0; right: 0; bottom: 0; padding: 0 22px 34px; text-align: center; display: grid; justify-items: center; gap: 4px;
  background: linear-gradient(transparent, rgba(0,0,0,.85) 40%); padding-top: 90px; }
.pv-hint .mono { color: var(--lume); margin: 0; }
.pv-hint-t { font: 400 30px/1.05 var(--f-d); margin: 4px 0 14px; }
.pv-card { position: absolute; z-index: 3; left: 0; right: 0; bottom: 56px; padding: 70px 20px 16px; background: linear-gradient(transparent, rgba(0,0,0,.82) 34%); }
.pv-k { color: var(--steel); margin: 0 0 6px; }
.pv-t { font: 400 30px/1 var(--f-d); margin: 0 0 8px; }
.pv-d { font-size: 13.5px; line-height: 1.45; color: #d7d4cd; margin: 0; }
.pv-x { margin-top: 10px; }
.pv-tabs { position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; height: 56px; display: flex; overflow-x: auto; scrollbar-width: none; border-top: 1px solid var(--line); background: rgba(5,6,8,.92); }
.pv-tabs::-webkit-scrollbar { display: none; }
.pv-tab { flex: 1 0 auto; border: 0; background: none; color: var(--mute); font: 400 12px/1 var(--f-s); padding: 0 12px; min-height: 44px; white-space: nowrap; }
.pv-tab[aria-current="true"] { color: var(--bone); box-shadow: inset 0 2px 0 var(--ember); }
.pv-specs { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; max-height: 38vh; overflow: auto; }
.pv-specs div { padding: 6px 0; border-top: 1px solid var(--line); }
.pv-specs dt { font: 400 10px/1.4 var(--f-m); letter-spacing: .06em; text-transform: uppercase; color: var(--steel); }
.pv-specs dd { margin: 0; font-size: 13px; }
.pv-mat { margin: 0; display: grid; gap: 2px; }
.pv-mat b { font: 400 22px/1.1 var(--f-d); }
.pv-mat span { font-size: 13px; color: #d7d4cd; }
.pv-clocks { display: flex; gap: 10px; }
.pv-clocks p { flex: 1; margin: 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 4px; opacity: .5; transition: opacity .4s, border-color .4s; }
.pv-clocks p.on { opacity: 1; border-color: var(--ember); }
.pv-clocks b { display: block; font: 400 34px/1 var(--f-d); font-variant-numeric: tabular-nums; margin-top: 4px; }
.pv-line { font: italic 400 26px/1.15 var(--f-d); margin: 4px 0 0; color: var(--bone); }
.pv-line span { transition: opacity .25s; }
.pv-line span:first-child { opacity: .06; }
.pv-inline .pv-card { bottom: 44px; padding: 50px 14px 12px; }
.pv-inline .pv-tabs { height: 44px; }
.pv-inline .pv-knob { width: 44px; height: 44px; margin: -22px 0 0 -22px; }
.pv-inline .pv-lbl { top: 12px; font-size: 9.5px; padding: 7px 11px; }
.pv-inline .pv-t { font-size: 22px; }
.pv-inline .pv-d { font-size: 11.5px; }
.pv-inline .pv-hint { padding-bottom: 22px; }
.pv-inline .pv-hint-t { font-size: 22px; margin-bottom: 0; }
.pv-inline .pv-specs { grid-template-columns: 1fr; max-height: 150px; }
.pv-inline .pv-specs dd { font-size: 11.5px; }
.pv-inline .pv-line { font-size: 19px; }
.pv-inline .pv-clocks b { font-size: 24px; }
.pv-inline .pv-mat b { font-size: 18px; }
.pv-inline .pv-mat span { font-size: 11px; }

/* the full-screen phone app (#pair) */
html.is-phone, html.is-phone body { height: 100%; overflow: hidden; }
html.is-phone .hd, html.is-phone .ft { display: none; }
.ph { position: fixed; inset: 0; z-index: 400; background: #000; display: grid; grid-template-rows: auto 1fr; }
.ph-top { display: flex; align-items: center; gap: 10px; padding: calc(10px + env(safe-area-inset-top)) 14px 10px; border-bottom: 1px solid var(--line); background: #050608; }
.ph-logo { font: 400 14px/1 var(--f-c); letter-spacing: .3em; margin-right: auto; }
.ph-link { display: inline-flex; gap: 6px; align-items: center; color: var(--steel); font-size: 10px; }
.ph-ic { background: none; border: 1px solid var(--line2); border-radius: 999px; color: var(--steel); padding: 6px 10px; font-size: 10px; min-height: 32px; }
.ph-stage { position: relative; min-height: 0; }
.ph-gate { position: absolute; inset: 0; z-index: 3; display: flex; flex-direction: column; justify-content: flex-end; padding: 30px 22px calc(40px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgba(0,0,0,.25), rgba(0,0,0,.97) 52%); }
.ph-gate:not([hidden]) ~ .ph-stage .pv-hint, .ph:has(.ph-gate:not([hidden])) .pv-hint { visibility: hidden; }
.ph-gate .d2 { font-size: 44px; margin-bottom: 14px; }
.ph-gate p { color: #d7d4cd; font-size: 15px; }
.ph-gate .btn { align-self: flex-start; margin-top: 8px; min-width: 160px; }
.ph-gate-s { margin-top: 16px; color: var(--lume); display: grid; gap: 10px; justify-items: start; }
.ph-gate-s .ph-fail { color: var(--ember2); text-transform: none; letter-spacing: 0; font: 400 14px/1.4 var(--f-s); margin: 0; }
.ph.is-drag .pv-hint .mono::after { content: ' · drag to turn'; }
