/* ==========================================================================================================
   URBAN AERO: THE PHONE (the phone lane). The approved page is poddle-art/ui/urbanaero/index.html; its plate, h-plate, locker-plate, live dot,
   sky and band (CSS lines 60-90, 146-149, 218-222, 228) are lifted here, every px / 17 in rem (the root font-size clamp: 17px at 1440x900), for:
   1. the home's phone block left of Settings (it stood under the kid until the Locker plate took that place, NOTES 284): what is in the player's
      hand, live (ui.js phonePlate). On localhost main.js makes the AirPod the paddle unless ?padtest=1 (CAN_PHONE): review shots load padtest=1
      so the plate reads 'Connect phone' as it does hosted;
   2. the set-up screen (#screen-connect.menu-bg): the approved scene behind, the heading on the 72 px h-plate (4.2rem) left over the Phone / AirPod switch,
      the big QR on a white plate with the ink outline and drop and a true quiet zone, the P-code on its own figure plate under it, the how-to card and the status plates;
   3. the camera primer (#screen-camera.menu-bg: the first screen after Quick play without a phone): the same scene, the headline on the h-plate beside the drawing on a white plate,
      the three facts as white slanted plates, Allow camera neon (ui.css .is-focus) and Play without camera white;
   4. calibration (#cal.menu-bg): two columns; the steps as plates, the headline plate, the bar and the count on the left, the drawing large on a white plate on the right.
   No line of words is bare on the picture: each has a card or the tray glass.
   The live insets are shipped feedback and a first-timer who presses Allow sees them: on the set-up and calibration screens #camwrap and #podwrap stand in docks the layout keeps (.up-dock, placed from layout by ui.js dockInsets), so they never land on words.
   The toast keeps to a slot that holds nothing else (the header's centre; on the set-up screen the footer's middle). Depth, as the page: the sky is one transformed layer, what is read leans with the cursor (--px/--py, ui.js setupFeel), the QR and the code only slide. A paired set-up screen keeps its two columns: the QR's plate draws the paddle (.conn-done).
   Shots of these screens need the camera on too (--use-fake-device-for-media-stream): with cam=0 the webcam frame never shows.
   The header's centred 'Getting ready' / 'Calibration' plate is off on these three screens: the h-plate in the body is the one heading, as on the page.
   Linked after ui.css and ua-home.css. Motion is transform and opacity only; no backdrop-filter. prefers-reduced-motion: no lift, ping or entrance.
   ========================================================================================================== */
/* Cyan pop (docs/cyanpop/SPEC.md): the same tokens, pointed at ui.css's --cp-* set. Ink outlines and drops, cyan for the chosen and primary, deep edges on cyan, green lamps; --up-ball is the pickleball art's own neon (never UI chrome) */
:root{--up-ink:var(--cp-ink);--up-ink-2:var(--cp-label);--up-cobalt:var(--cp-deep);--up-cobalt-2:var(--cp-main);--up-sky:var(--cp-main);--up-sky-hi:var(--cp-haze);--up-sky-2:var(--cp-haze);--up-ice:var(--cp-sky-2);--up-glow:var(--cp-main);--up-live:var(--cp-live);
  --up-neon:var(--cp-main);--up-deep:var(--cp-deep);--up-ball:var(--ball);--up-punch:var(--cp-red);--up-face:var(--cp-panel);--up-ring:inset 0 0 0 var(--cp-ol) var(--cp-ink), inset 0 .235rem 0 var(--cp-shine);--up-r:.41rem;--up-skew:var(--cp-skew);--up-spring:cubic-bezier(.2,1.5,.4,1);--up-snap:cubic-bezier(.2,.9,.25,1)}

/* ======================================================= 1. the home's phone block ======================================================= */
/* the phone: a small icon block left of Settings (index.html .home-top; DESIGN-MASTER Locker: the Locker took its place under the kid). Settings' block size and plate (ua-home.css .home-set):
   white face, ink outline, a hard ink drop; it lifts and turns a touch on hover, squashes on press. Its words are its accessible name only (.vh) */
#btn-phone{position:absolute;right:calc(2.47rem + 4.8rem);top:3.3rem;width:3.9rem;height:4.25rem;z-index:3;transform-origin:50% 50%;display:inline-flex;align-items:center;justify-content:center;margin:0;padding:0;
  color:var(--up-ink);text-shadow:none;isolation:isolate;cursor:pointer;--bf:var(--cp-panel);--bdx:var(--cp-drop-x);--bdy:var(--cp-drop-y);--slab-x:-1.5rem;--slab-c:rgba(var(--cp-main-rgb),0);--slab-o:rgba(var(--cp-deep-rgb),0);
  transform:none;transition:transform 200ms var(--up-spring)}
#btn-phone::before{content:"";position:absolute;inset:0;z-index:-1;border-radius:var(--up-r);border:0;background:var(--bf);transform:skewX(var(--up-skew));opacity:1;clip-path:none;height:auto;
  box-shadow:inset 0 0 0 var(--cp-ol) var(--up-ink), var(--slab-x) .375rem 0 0 var(--slab-c), var(--slab-x) .375rem 0 .1875rem var(--slab-o);transition:box-shadow 170ms var(--up-snap)}
#btn-phone::after,#btn-phone:hover::after,#btn-phone:focus-visible::after{content:"";position:absolute;inset:0;z-index:-2;border-radius:var(--up-r);background:var(--up-ink);box-shadow:none;opacity:1;animation:none;
  transform:translate(var(--bdx),var(--bdy)) skewX(var(--up-skew));transition:transform 200ms var(--up-spring)}
#btn-phone.ae-sel,html:not(.ae-on) #btn-phone:focus-visible{--slab-x:-.47rem;--slab-c:var(--up-neon);--slab-o:var(--up-deep)}
@media (hover:hover){ #btn-phone:hover{transform:translateY(-.3rem) rotate(-2deg) scale(1.06)} }
#btn-phone:is(:active,.ae-down){transform:scale(1,.88);--bf:var(--cp-sky-2);--bdx:calc(var(--cp-drop-x) * .25);--bdy:calc(var(--cp-drop-y) * .25);transition-duration:45ms}
#btn-phone:focus-visible{outline:0}
/* Cyan pop: the lifted block (hover) and the selected one (the pad's .ae-sel, a keyboard focus) take the cyan glow ring round the plate */
#btn-phone.ae-sel::before,html:not(.ae-on) #btn-phone:focus-visible::before{box-shadow:inset 0 0 0 .176rem var(--up-ink), var(--slab-x) .375rem 0 0 var(--slab-c), var(--slab-x) .375rem 0 .1875rem var(--slab-o), 0 0 0 .38rem var(--cp-glow), 0 0 1.5rem rgba(var(--cp-main-rgb),.65)}
@media (hover:hover){ #btn-phone:hover::before{box-shadow:inset 0 0 0 .176rem var(--up-ink), var(--slab-x) .375rem 0 0 var(--slab-c), var(--slab-x) .375rem 0 .1875rem var(--slab-o), 0 0 0 .38rem var(--cp-glow), 0 0 1.5rem rgba(var(--cp-main-rgb),.65)} }
/* the glyph: one racket for either controller (the phone or the AirPods; NOTES 320), a white face and deep grip as Settings' knobs; the signal arcs faint until the racket answers, then cobalt */
#btn-phone .shn,#btn-inbox .shn{position:absolute;left:calc(var(--cp-ol) + .3rem);right:calc(var(--cp-ol) + .3rem);top:calc(var(--cp-ol) + .26rem);height:.3rem;border-radius:1rem;background:var(--cp-shine);transform:skewX(var(--cp-skew));pointer-events:none}      /* Settings' thin shine band (ua-home.css .face::before), so the three corner blocks are one design (owner 2026-11-10) */
#btn-phone .pp-ic{width:2.05rem;height:2.05rem;flex:none;fill:none;stroke:var(--cp-deep);stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round;filter:none;overflow:visible}
#btn-phone .pp-head{fill:#fff} #btn-phone .pp-grip{fill:var(--cp-deep);stroke-width:1.4}      /* Settings' colours (ua-home.css .home-set: deep strokes, white fill) so the corner blocks match; the face is plain, no dots (owner 2026-11-12) */
#btn-phone .pp-sig{opacity:.32;transition:opacity 200ms,stroke 200ms} #btn-phone.is-on .pp-sig{opacity:1;stroke:var(--up-cobalt-2)}
/* the live dot (the artifact's .live): on the block's corner, only while the paddle answers */
#btn-phone .pp-live{display:none;position:absolute;right:-.2rem;top:-.25rem;width:.95rem;height:.95rem;border-radius:50%;background:var(--up-live);box-shadow:0 0 .59rem var(--up-live), 0 0 0 .14rem var(--up-ink)}
#btn-phone .pp-live::after{content:"";position:absolute;inset:-.118rem;border-radius:50%;border:.118rem solid var(--up-live);animation:up-ping 1.2s cubic-bezier(.2,.7,.3,1) infinite}
#btn-phone.is-on .pp-live{display:block}
#btn-phone.is-on{--bf:var(--cp-panel)}
@keyframes up-ping{from{transform:scale(1);opacity:.9}to{transform:scale(2.6);opacity:0}}
/* the punch (ui.css .ae-fx on .btn): the flash and the slash ride between the face and the glyph, inside the slant */
#btn-phone > .ae-fx{z-index:-1}
/* a narrow desktop window (the home stacks): the header's grid gives it its own cell between the wordmark and Settings */
@media (max-width:980px), (max-aspect-ratio: 6/5){
  html:not([data-mobile]) #lobby-home .home-top{grid-template-columns:1fr auto auto;grid-template-areas:"wm phone set" "card card card"}
  html:not([data-mobile]) #lobby-home #btn-phone{position:relative;right:auto;top:auto;grid-area:phone;width:3.25rem;height:3.5rem}
  html:not([data-mobile]) #lobby-home .pcard{grid-column:1 / -1}
}
@media (prefers-reduced-motion: reduce){ #btn-phone,#btn-phone:hover,#btn-phone:active{transform:none;transition:none} #btn-phone .pp-live::after{animation:none} }

/* ======================================================= the backdrop (the set-up, camera and calibration screens) ======================================================= */
/* the approved page's own second screen: ua-phone-sky.webp is its #creator scene (the sky, clouds, city, band, parapet, court and cloud bank, no kid, no UI) rendered from its code at 3840 px, so it
   stays sharp on a 2x display. One change from the page: its band and rim run the whole width. There the kid stands in front of their left end; with no kid here that end hung in the sky between the plates, a stray mark. A picture, not the live 3D scene: Quick play seats you on a court in any venue, and these screens stay the approved picture whichever it is.
   The gradient is the page's --csky sky, for the moment before the file arrives (it loads only when one of these screens first opens) */
#screen-connect.menu-bg,#screen-camera.menu-bg,#cal.menu-bg{overflow:hidden;overflow:clip;color:var(--cp-text);background:var(--cp-sea);--px:0;--py:0}
/* 2026-11-08 (owner: "make sure all the screens use the correct background ... you still use the old one"): the menu and the courts are both the stadium now (scene.js MENU_VENUE =
   PLAY_VENUE), so these three show the live stadium behind them as the home and every lobby view do; the old Y2K city picture is off. A soft ink dim keeps the white words readable */
#screen-connect.menu-bg,#screen-camera.menu-bg,#cal.menu-bg{background:var(--cp-scrim);color:var(--cp-text)}      /* FULL SWEEP: the light frosted layer (never a navy dim); every line below sits on a white plate in label ink */
:is(#screen-connect,#screen-camera,#cal).menu-bg::before{display:none}
/* the sky's own plane, slightly oversized, so the page's parallax (--px/--py, ui.js setupFeel; .dz-cloud's 16 / 8 px) is a transform on one layer and never a repaint of the window */
:is(#screen-connect,#screen-camera,#cal).menu-bg::before{content:"";position:absolute;inset:-1.3rem -1.6rem;z-index:0;pointer-events:none;background:url(ua-phone-sky.webp) 50% 58%/cover no-repeat, linear-gradient(180deg,var(--cp-deep) 0%,var(--cp-sea) 40%,var(--cp-main) 75%,var(--cp-haze) 100%);transform:translate3d(calc(var(--px) * -.94rem), calc(var(--py) * -.47rem), 0)}
/* the frame: no bars, as on the home: the header's pieces and the footer's sit on the picture, its words on the glass plate; the centred title plate is off (the h-plate in the body is the heading) */
:is(#screen-connect,#screen-camera,#cal).menu-bg .menu-head{background:none;border-bottom:0;box-shadow:none;z-index:2}
:is(#screen-connect,#screen-camera,#cal).menu-bg .menu-head .menu-title{display:none}
:is(#screen-connect,#screen-camera,#cal).menu-bg .menu-body{position:relative;z-index:1}
:is(#screen-connect,#screen-camera,#cal).menu-bg .menu-foot{z-index:2;background:none;border-top:0;box-shadow:none}
:is(#screen-connect,#screen-camera,#cal).menu-bg .menu-foot > span:not(:empty),:is(#screen-connect,#screen-camera,#cal).menu-bg .menu-foot .keyhints-inline{position:relative;isolation:isolate;padding:.45rem 1.3rem .5rem 1.1rem;color:var(--cp-text);font-family:var(--font-text);font-weight:500}
:is(#screen-connect,#screen-camera,#cal).menu-bg .menu-foot > span:not(:empty)::before,:is(#screen-connect,#screen-camera,#cal).menu-bg .menu-foot .keyhints-inline::before{content:"";position:absolute;inset:0;z-index:-1;border-radius:var(--up-r);background:var(--up-face);transform:skewX(var(--up-skew));box-shadow:var(--up-ring), var(--cp-drop-sm)}
:is(#screen-connect,#screen-camera,#cal).menu-bg .menu-foot .keyhints-inline{font-family:var(--font-display);font-weight:400}      /* a key's word is a label: Days One */
/* the heading plate (the artifact's .h-plate: 72 px Days One, 16 46 14 34 padding, the sky drop 10 px down-right): white on ink; .is-bad a red plate, .is-good neon with ink */
.ua-h,#screen-camera.menu-bg #cam-title{position:relative;isolation:isolate;display:inline-block;width:fit-content;margin:0;padding:.9rem 2rem .82rem 1.5rem;font:400 var(--cp-title-fs)/1 var(--font-display);letter-spacing:0;color:var(--cp-text);text-shadow:none;text-wrap:balance}
:is(.ua-h,#screen-camera.menu-bg #cam-title)::before{content:"";position:absolute;inset:0;z-index:-1;border-radius:var(--up-r);background:var(--hp,var(--up-face));transform:skewX(var(--up-skew));box-shadow:inset 0 0 0 var(--cp-ol) var(--ho,var(--up-ink)), inset 0 .235rem 0 var(--cp-shine)}
:is(.ua-h,#screen-camera.menu-bg #cam-title)::after{content:"";position:absolute;inset:0;z-index:-2;border-radius:var(--up-r);background:var(--hd,var(--up-ink));transform:translate(var(--cp-drop-x),var(--cp-drop-y)) skewX(var(--up-skew))}
:is(.ua-h,#screen-camera.menu-bg #cam-title).is-bad{--hp:var(--cp-red);--ho:var(--cp-red-deep);--hd:var(--cp-red-deep)} .ua-h.is-good{--hp:var(--up-neon);--ho:var(--up-deep);--hd:var(--up-deep);color:#fff;}
:is(.ua-h,#screen-camera.menu-bg #cam-title).is-bad::before{content:"";display:block;width:auto;height:auto;margin:0;border-radius:var(--up-r);font-size:inherit;vertical-align:baseline;background:var(--hp);box-shadow:inset 0 0 0 var(--cp-ol) var(--ho), inset 0 .235rem 0 rgba(255,255,255,.35)}      /* the ! ui.css adds before a bad title (a red disc): not on the plate (the red plate says it) */
.menu-bg :is(.ua-h,#cam-title).is-bad{color:#fff}
.menu-bg :is(.ua-h,#cam-title):not(.is-good):not(.is-bad){color:var(--cp-text)}      /* label ink on the white plate; on red, white */

/* the loose lines (the page's .tray glass, denser so the words read on any backdrop; no backdrop-filter): nothing on these screens is bare text on the picture */
#screen-connect.menu-bg .panel .conn-cam-note,#screen-camera.menu-bg .panel.cam-card .t-lead,#screen-camera.menu-bg .panel .cam-alt,#screen-camera.menu-bg .panel .cam-note,#cal.menu-bg .t-lead,#cal.menu-bg .cal-msg{position:relative;isolation:isolate;padding:.6rem 1.5rem .65rem 1.2rem;color:var(--cp-text);text-shadow:none}
:is(#screen-connect.menu-bg .conn-cam-note,#screen-camera.menu-bg .cam-card .t-lead,#screen-camera.menu-bg .cam-alt,#screen-camera.menu-bg .cam-note,#cal.menu-bg .t-lead,#cal.menu-bg .cal-msg)::before{content:"";position:absolute;inset:0;z-index:-1;border-radius:var(--up-r);background:var(--up-face);transform:skewX(var(--up-skew));box-shadow:var(--up-ring), var(--cp-drop)}
/* the toast (ui.css: 7.5rem up, over the set-up screens' last lines): a slanted white plate in a slot that holds nothing else. On the camera and calibration screens that is the header's free centre. On the set-up
   screen the heading plate fills the header's foot, so there it stands in the footer's empty middle, between the two footer plates. !important: ui.css's body:has(#bot-pick...) rule sets a bottom with an id's weight once you are seated, and top + bottom stretched the toast the height of the window */
body:is([data-screen="connect"],[data-screen="camera"],[data-screen="calibrate"]) .toast{top:.8rem;bottom:auto!important;max-width:min(40rem,calc(100vw - 24rem));transform:translate(-50%,-.75rem) scale(.96);isolation:isolate;border:0;border-radius:0;background:none;box-shadow:none;padding:.55rem 2rem .6rem 1.6rem}
body:is([data-screen="connect"],[data-screen="camera"],[data-screen="calibrate"]) .toast.on{transform:translate(-50%,0) scale(1)}
body:is([data-screen="connect"],[data-screen="camera"],[data-screen="calibrate"]) .toast::before{content:"";position:absolute;inset:0;z-index:-1;border-radius:var(--up-r);background:var(--up-face);transform:skewX(var(--up-skew));box-shadow:var(--up-ring)}
body:is([data-screen="connect"],[data-screen="camera"],[data-screen="calibrate"]) .toast::after{content:"";position:absolute;inset:0;z-index:-2;border-radius:var(--up-r);background:var(--up-ink);transform:translate(var(--cp-drop-x),var(--cp-drop-y)) skewX(var(--up-skew))}
@media (min-width:981px) and (min-aspect-ratio: 6/5){
  body[data-screen="connect"] .toast{top:auto;bottom:.8rem!important;max-width:min(44rem,calc(100vw - 54rem));transform:translate(-50%,.75rem) scale(.96)}
}

/* the buttons' feel, the page's .blk: under the mouse they tip toward it (--rx/--ry, ui.js setupFeel, aero.js's amplitude), rise and turn, the drop grows; a press squashes and the drop closes up.
   .ae-fx on the switch: the punch ui.js gives it (aero.js punches .btn only) */
:is(#screen-connect,#screen-camera,#cal).menu-bg :is(.btn,.seg-opt){transition:transform 200ms var(--up-spring), color var(--d-fast) linear}
:is(#screen-connect,#screen-camera,#cal).menu-bg .btn::after{transition:transform 200ms var(--up-spring)}
@media (hover:hover) and (prefers-reduced-motion:no-preference){
  :is(#screen-connect,#screen-camera,#cal).menu-bg .btn:not(:disabled):not([aria-disabled="true"]):hover,#screen-connect.menu-bg .seg-paddle .seg-opt:hover{transform:rotateX(var(--rx,0deg)) rotateY(var(--ry,0deg)) rotateZ(-1.4deg) translate3d(-.12rem,-.3rem,0) scale(1.04);z-index:3}      /* the lift: the drop stays the one drop */
}
@media (prefers-reduced-motion:no-preference){
  :is(#screen-connect,#screen-camera,#cal).menu-bg .btn:not(:disabled):not([aria-disabled="true"]):is(:active,.ae-down),#screen-connect.menu-bg .seg-paddle .seg-opt:is(:active,.ae-down){transform:scale(1,.88);--bdx:calc(var(--cp-drop-sm-x) * .4);--bdy:calc(var(--cp-drop-sm-y) * .4);transition-duration:45ms}
}

/* the teardrop pointer on the selected control's corner (the page's .pointer, as the home has it; ui.js setPointer places it from layout) */
:is(#screen-connect,#screen-camera,#cal).menu-bg > .up-pointer{position:absolute;z-index:6;width:3.18rem;height:3.18rem;left:0;top:0;pointer-events:none;opacity:0;transform:translate(calc(var(--ptx,0px) + var(--px) * .59rem),calc(var(--pty,0px) + var(--py) * .35rem));transition:transform 200ms var(--up-spring), opacity 120ms}
:is(#screen-connect,#screen-camera,#cal).menu-bg > .up-pointer{display:none!important}      /* off, as the home's (owner 2026-11-08) */
.up-pointer svg{display:block;width:100%;height:100%;overflow:visible;transform:rotate(135deg);animation:up-bob 700ms ease-in-out infinite alternate;filter:drop-shadow(.235rem .29rem 0 var(--up-ink))}
@keyframes up-bob{to{transform:rotate(135deg) translateY(-.29rem)}}
/* the depth (the page's .dz-ui, 10 / 6 px and 4 / 3 degrees): what is read leans with the cursor. The QR and the code to type only ever slide: a code is read square-on */
@media (hover:hover) and (pointer:fine) and (prefers-reduced-motion:no-preference){
  #screen-connect.menu-bg :is(#connect-title,.seg-paddle,#pad-pair > .pad-how,.pad-helper,.conn-right),#screen-camera.menu-bg :is(#cam-title,.cam-art,.t-lead,.cam-btns,.cam-alt,.cam-note,.cam-points,.cam-help),#cal.menu-bg :is(.steps,#calh,.t-lead,.cal-art,.cal-progress,.cal-msg){
    transform:translate3d(calc(var(--px) * .59rem), calc(var(--py) * .35rem), 0) perspective(82rem) rotateY(calc(var(--px) * -4deg)) rotateX(calc(var(--py) * 3deg))}
  #screen-connect.menu-bg :is(.pad-qr-plate,.pad-type){transform:translate3d(calc(var(--px) * .59rem), calc(var(--py) * .35rem), 0)}
  #camwrap.is-docked,#podwrap.is-docked{translate:calc(var(--px,0) * .59rem) calc(var(--py,0) * .35rem)}
}
/* the live insets, docked (ui.js dockInsets: .up-dock's box from layout): a slanted white plate with the outline and the hard drop, the picture upright on it. The dock is there only while the inset is: no webcam, no gap */
.up-dock{display:block;flex:none}
#camwrap.is-docked,#podwrap.is-docked{left:var(--dock-x);top:var(--dock-y);right:auto;bottom:auto;width:var(--dock-w);padding:.5rem .8rem;isolation:isolate;border:0;border-radius:0;background:none;box-shadow:none;z-index:calc(var(--z-screen) + 1)}
:is(#camwrap,#podwrap).is-docked::before{content:"";position:absolute;inset:0;z-index:-1;border-radius:var(--up-r);background:var(--up-face);transform:skewX(var(--cp-skew));box-shadow:var(--up-ring)}
:is(#camwrap,#podwrap).is-docked::after{content:"";position:absolute;inset:0;z-index:-2;border-radius:var(--up-r);background:var(--up-ink);box-shadow:none;transform:translate(var(--cp-drop-x),var(--cp-drop-y)) skewX(var(--cp-skew))}
:is(#camwrap,#podwrap).is-docked canvas{border-radius:.25rem}

/* each control's own character (the owner: 'make all the buttons have some personality'): Back steps back, the (i) hops, the phone buzzes, the AirPod wiggles, Allow's camera snaps, a ball skips along Play without camera; a ready lamp pings like the page's .live, a waiting one breathes; the phone in the QR's centre buzzes now and then inside its own white box, so no module of the code moves. Transform and opacity only */
.up-skip-ball{position:absolute;left:1rem;top:-.55rem;z-index:2;width:1.05rem;height:1.05rem;opacity:0;pointer-events:none}
.up-skip-ball::before{content:"";position:absolute;inset:0;border-radius:50%;background:radial-gradient(circle at 36% 30%,#f7ffb8,var(--up-ball) 60%,#c9e62a);box-shadow:0 0 0 .14rem var(--up-ink)}
:is(#screen-connect,#screen-camera,#cal).menu-bg .status-row > .light{position:relative}
@media (prefers-reduced-motion:no-preference){
  html:not([data-mobile]) #btn-conn-help:is(:hover,.ae-sel) svg{animation:up-hop 340ms var(--up-snap) infinite alternate}
  html:not([data-mobile]) #screen-connect.menu-bg .seg-opt[data-paddle="phone"]:is(:hover,.ae-sel) svg{animation:up-buzz 1200ms linear infinite}
  html:not([data-mobile]) #screen-connect.menu-bg .seg-opt[data-paddle="airpod"]:is(:hover,.ae-sel) svg{animation:up-wiggle 760ms ease-in-out infinite}
  html:not([data-mobile]) #btn-cam-allow:is(:hover,.ae-sel) svg{animation:up-snapshot 1100ms var(--up-spring) infinite}
  html:not([data-mobile]) .cam-skip:is(:hover,.ae-sel) .up-skip-ball{opacity:1;animation:up-skip-x 1700ms linear infinite}
  html:not([data-mobile]) .cam-skip:is(:hover,.ae-sel) .up-skip-ball::before{animation:up-skip-y 340ms cubic-bezier(.3,0,.7,1) infinite alternate}
  :is(#screen-connect,#screen-camera,#cal).menu-bg .status-row.is-ok > .light::after{content:"";position:absolute;inset:-.12rem;border-radius:50%;border:.118rem solid var(--up-live);animation:up-ping 1.2s cubic-bezier(.2,.7,.3,1) infinite}
  :is(#screen-connect,#screen-camera,#cal).menu-bg .status-row.is-wait > .light{animation:up-breathe 1.6s ease-in-out infinite alternate}
  #pad-qr .qr-buzz{transform-box:fill-box;transform-origin:50% 50%;animation:up-qr-buzz 4.2s linear infinite}
}
@keyframes up-hop{to{transform:translateY(-.3rem)}}
@keyframes up-buzz{0%,52%,100%{transform:none}56%{transform:rotate(-9deg)}62%{transform:rotate(9deg)}68%{transform:rotate(-9deg)}74%{transform:rotate(9deg)}80%{transform:rotate(-5deg)}86%{transform:rotate(4deg)}}
@keyframes up-wiggle{0%,100%{transform:rotate(-12deg)}50%{transform:rotate(14deg) translateY(-.12rem)}}
@keyframes up-snapshot{0%,58%,100%{transform:none}68%{transform:scale(.74)}82%{transform:scale(1.18)}}
@keyframes up-skip-x{to{transform:translateX(12.4rem)}}
@keyframes up-skip-y{from{transform:translateY(-1.1rem) rotate(-30deg)}to{transform:scale(1.2,.78)}}
@keyframes up-breathe{to{opacity:.45}}
@keyframes up-qr-buzz{0%,86%,100%{transform:none}88%{transform:rotate(-6deg)}90%{transform:rotate(6deg)}92%{transform:rotate(-6deg)}94%{transform:rotate(6deg)}96%{transform:rotate(-3deg)}98%{transform:rotate(2deg)}}

/* ======================================================= 2. the set-up screen ======================================================= */
#screen-connect.menu-bg .menu-body.conn-body{justify-content:safe center;overflow-y:auto;overscroll-behavior:contain;padding:.7rem 3.5rem .7rem}
/* the card is no card: the heading across the top, then two columns on the sky. Left: the QR plate (its top level with the switch) and the code;
   right: the paddle switch, the how-to card, the status plates, the camera line */
/* the QR's plate is sized from the code: --q the code's side, --qz the quiet zone (4 modules of the 41 a hosted pairing link makes: a scanner needs that white on every side), --qs what the
   6 degree slant takes off each side at the plate's corners. The width pays for the slant, so the white never pinches a finder pattern */
#screen-connect.menu-bg{--q:21rem;--qz:calc(var(--q) * .1);--qs:calc(var(--q) * .063);--qh:calc(var(--q) + 2 * var(--qz));--qw:calc(var(--qh) + 2 * var(--qs))}
#screen-connect.menu-bg .panel.conn-card{width:min(78rem,100%);max-width:none;margin:0;padding:0 1rem .9rem 0;border:0;border-radius:0;background:none;box-shadow:none;animation:none;
  display:grid;grid-template-columns:var(--qw) minmax(0,1fr);grid-template-rows:auto auto auto auto 1fr;grid-template-areas:"head head" "qr seg" "qr how" "qr side" "type side";column-gap:3rem;row-gap:1.1rem;align-content:center;align-items:start;justify-items:start}
#screen-connect.menu-bg .panel.conn-card::before{content:none}
/* #pad-pair spans the grid as a subgrid, so it has a real box (hidden or shown is measurable) while its pieces stay on the card's columns and rows; it lies over the switch and the plates, so only its pieces take the pointer */
#screen-connect.menu-bg .conn-left{display:contents}
#screen-connect.menu-bg #pad-pair:not([hidden]){display:grid;grid-column:1/-1;grid-row:2/-1;grid-template-columns:subgrid;grid-template-rows:subgrid;pointer-events:none;width:auto;margin:0;padding:0;border:0;border-radius:0;background:none;box-shadow:none}
#screen-connect.menu-bg #pad-pair > *{pointer-events:auto}
#screen-connect.menu-bg .pad-pair[hidden],#screen-connect.menu-bg .pad-helper[hidden],#screen-connect.menu-bg #connect-title[hidden],#screen-connect.menu-bg .seg.seg-paddle[hidden]{display:none}
#screen-connect.menu-bg #connect-title{grid-area:head;align-self:start;margin:0 0 .3rem;white-space:nowrap}
/* no switch (one paddle only): the how-to card and the status plates share the right column from the QR's top */
#screen-connect.menu-bg .panel.conn-card:has(.seg-paddle[hidden]){grid-template-rows:auto auto auto 1fr;grid-template-areas:"head head" "qr how" "qr side" "type side"}
/* the AirPod is the paddle (no QR): the switch over two columns, the helper card left, the status plates right; paired (nothing to pair): the plates take the width */
#screen-connect.menu-bg .panel.conn-card:has(#pad-pair[hidden]){grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);grid-template-rows:auto auto 1fr;grid-template-areas:"head head" "seg seg" "how side";column-gap:2.5rem}
#screen-connect.menu-bg .panel.conn-card:has(#pad-pair[hidden]) :is(.pad-helper,.conn-right){width:100%;max-width:46rem}
/* paired (nothing to pair): the two columns stay; the QR's plate, in the QR's column at the QR's size, draws the paddle it found. The block is shorter without the code's plate, so it re-centres (the heading drops about 4rem) */
#screen-connect.menu-bg .panel.conn-card:has(#pad-pair[hidden]):has(.pad-helper[hidden]){grid-template-columns:var(--qw) minmax(0,1fr);grid-template-rows:auto auto 1fr;grid-template-areas:"head head" "done seg" "done side";column-gap:3rem}
#screen-connect.menu-bg .panel.conn-card:has(#pad-pair[hidden]):has(.pad-helper[hidden]) .conn-right{max-width:none}
#screen-connect.menu-bg .conn-done{display:none}
#screen-connect.menu-bg .panel.conn-card:has(#pad-pair[hidden]):has(.pad-helper[hidden]) .conn-done{grid-area:done;position:relative;isolation:isolate;display:grid;place-items:center;width:var(--qw);height:var(--qh)}
#screen-connect.menu-bg .conn-done::before{content:"";position:absolute;inset:0;z-index:-1;border-radius:var(--up-r);background:var(--up-face);transform:skewX(var(--cp-skew));box-shadow:var(--up-ring)}
#screen-connect.menu-bg .conn-done::after{content:"";position:absolute;inset:0;z-index:-2;border-radius:var(--up-r);background:var(--up-ink);transform:translate(var(--cp-drop-x),var(--cp-drop-y)) skewX(var(--cp-skew))}
#screen-connect.menu-bg .conn-done svg{width:78%;height:78%;overflow:visible}
#screen-connect.menu-bg .cd-pod,#screen-connect.menu-bg[data-pod] .cd-phone{display:none} #screen-connect.menu-bg[data-pod] .cd-pod{display:block}
@media (prefers-reduced-motion:no-preference){
  #screen-connect.menu-bg .cd-w1{animation:up-wave 1.5s ease-out infinite} #screen-connect.menu-bg .cd-w2{animation:up-wave 1.5s ease-out 180ms infinite}
  #screen-connect.menu-bg :is(.cd-phone,.cd-pod){transform-box:fill-box;transform-origin:50% 50%}
  #screen-connect.menu-bg .cd-phone{animation:up-buzz 2.6s linear infinite}
  #screen-connect.menu-bg .cd-pod{animation:up-wiggle 1.3s ease-in-out infinite}
  #screen-connect.menu-bg .cd-ball{transform-box:fill-box;transform-origin:50% 100%;animation:up-cd-hop 520ms cubic-bezier(.3,0,.7,1) infinite alternate}
}
@keyframes up-wave{0%{opacity:0}18%{opacity:1}100%{opacity:0}}
@keyframes up-cd-hop{from{transform:translateY(-2.1rem) rotate(-24deg)}78%{transform:translateY(-.1rem)}to{transform:scale(1.16,.82)}}
/* the paddle switch: two big plates, the picked one white with the ink outline, the other glass on the sky */
#screen-connect.menu-bg .seg.seg-paddle{grid-area:seg;justify-self:start;width:auto;margin:0;padding:0;gap:1rem;border:0;border-radius:0;background:none;box-shadow:none}
#screen-connect.menu-bg .seg.seg-paddle::before{display:none}
#screen-connect.menu-bg .seg-paddle .seg-opt{position:relative;isolation:isolate;height:4.2rem;min-width:12.5rem;padding:0 1.76rem 0 1.4rem;border:0;border-radius:0;background:none;box-shadow:none;color:var(--cp-text);font:400 1.9rem/1 var(--font-display);letter-spacing:0;gap:.7rem;
  transition:color var(--d-med) var(--ease-soft), transform 200ms var(--up-spring)}
#screen-connect.menu-bg .seg-paddle .seg-opt::before{content:"";position:absolute;inset:0;z-index:-1;border-radius:var(--up-r);transform:skewX(var(--up-skew));background:var(--up-face);box-shadow:var(--up-ring);transition:background var(--d-med) var(--ease-soft), box-shadow var(--d-med) var(--ease-soft)}
#screen-connect.menu-bg .seg-paddle .seg-opt::after{content:"";position:absolute;inset:0;z-index:-2;border-radius:var(--up-r);background:var(--up-ink);transform:translate(var(--cp-drop-x),var(--cp-drop-y)) skewX(var(--up-skew));opacity:1;transition:transform 200ms var(--up-spring)}
#screen-connect.menu-bg .seg-paddle .seg-opt[aria-checked="true"]{color:#fff;}
#screen-connect.menu-bg .seg-paddle .seg-opt[aria-checked="true"]::before{background:var(--up-neon);box-shadow:inset 0 0 0 var(--cp-ol) var(--up-deep), inset 0 .235rem 0 var(--cp-shine)}
#screen-connect.menu-bg .seg-paddle .seg-opt[aria-checked="true"]::after{opacity:1;background:var(--up-deep)}
#screen-connect.menu-bg .seg-paddle .seg-opt.ae-sel::before,html:not(.ae-on) #screen-connect.menu-bg .seg-paddle .seg-opt:focus-visible::before{box-shadow:var(--up-ring), 0 0 0 .38rem var(--cp-glow), 0 0 1.5rem rgba(var(--cp-main-rgb),.65)}
#screen-connect.menu-bg .seg-paddle .seg-opt[aria-checked="true"]:is(.ae-sel,:focus-visible)::before{box-shadow:inset 0 0 0 var(--cp-ol) var(--up-deep), inset 0 .235rem 0 var(--cp-shine), 0 0 0 .38rem var(--cp-glow), 0 0 1.5rem rgba(var(--cp-main-rgb),.65)}      /* the selected (hover / pad) takes the cyan glow ring, as the home's blocks */
#screen-connect.menu-bg .seg-paddle .seg-opt:focus-visible{box-shadow:none;outline:0}
#screen-connect.menu-bg .seg-paddle .seg-opt:is(.ae-punch,.ae-down,:active){color:var(--up-ink)} #screen-connect.menu-bg .seg-paddle .seg-opt:is(.ae-down,:active)::after{transform:translate(calc(var(--cp-drop-x) * .25),calc(var(--cp-drop-y) * .25)) skewX(var(--up-skew));transition-duration:45ms}      /* the press sinks onto its drop */      /* the press's white flash: a white label would vanish on it (the page's labels stand on their own plates) */
#screen-connect.menu-bg .seg-paddle svg{width:1.9rem;height:1.9rem;stroke-width:2;transition:rotate var(--d-med) var(--ease-bounce), scale var(--d-med) var(--ease-bounce)}
/* the QR: big, square, straight (a slanted code does not scan) on a white plate with the ink outline and drop */
#screen-connect.menu-bg .pad-qr-plate{grid-area:qr;position:relative;isolation:isolate;justify-self:start;width:var(--qw);height:var(--qh);padding:var(--qz) calc(var(--qz) + var(--qs))}
#screen-connect.menu-bg .pad-qr-plate::before{content:"";position:absolute;inset:0;z-index:-1;border-radius:var(--up-r);background:#fff;transform:skewX(var(--cp-skew));box-shadow:var(--up-ring)}
#screen-connect.menu-bg .pad-qr-plate::after{content:"";position:absolute;inset:0;z-index:-2;border-radius:var(--up-r);background:var(--up-ink);transform:translate(var(--cp-drop-x),var(--cp-drop-y)) skewX(var(--cp-skew))}
#screen-connect.menu-bg .pad-qr{width:100%;height:100%;padding:0;border:0;border-radius:0;background:none;box-shadow:none}
#screen-connect.menu-bg .pad-qr svg{display:block;width:100%;height:100%}
/* the how-to card: steps in Atkinson, the heading in Days One, the typed code on its own ink plate */
#screen-connect.menu-bg .pad-how{grid-area:how;position:relative;isolation:isolate;align-self:start;width:100%;margin:0;padding:1.1rem 2.1rem 1.2rem 1.9rem;text-align:left;color:var(--up-ink);font-family:var(--font-text)}
#screen-connect.menu-bg .pad-how::before{content:"";position:absolute;inset:0;z-index:-1;border-radius:var(--up-r);background:var(--up-face);transform:skewX(var(--up-skew));box-shadow:var(--up-ring)}
#screen-connect.menu-bg .pad-how::after{content:"";position:absolute;inset:0;z-index:-2;border-radius:var(--up-r);background:var(--up-ink);transform:translate(var(--cp-drop-x),var(--cp-drop-y)) skewX(var(--up-skew))}
#screen-connect.menu-bg .panel .pad-how h3{margin:0 0 .4rem;font:400 1.9rem/1.1 var(--font-display);color:var(--up-ink);letter-spacing:0}
#screen-connect.menu-bg .pad-how ol{margin:0;padding-left:1.3em;font-size:max(1.1rem,14px);line-height:1.45;font-weight:400}
#screen-connect.menu-bg .pad-how li+li{margin-top:.25rem}
#screen-connect.menu-bg .pad-how b{font-family:var(--font-display);font-weight:400;color:var(--cp-text)}
#screen-connect.menu-bg .panel .pad-how :is(.pad-alt,li,p){color:var(--up-ink-2);text-shadow:none} #screen-connect.menu-bg .pad-how .pad-alt{margin:.8rem 0 0;font-size:max(1rem,13px);font-weight:400}
/* the P-code: under the QR, the same width as its plate, the words on the left and the code as the page's .big figure on its own ink plate */
#screen-connect.menu-bg .panel .pad-type{grid-area:type;position:relative;isolation:isolate;align-self:start;display:flex;align-items:center;gap:1.2rem;width:var(--qw);min-height:5.2rem;margin:.35rem 0 0;padding:.7rem 1.1rem .7rem 1.5rem;color:var(--up-ink-2);text-shadow:none;font:400 max(1rem,12px)/1.3 var(--font-text)}
#screen-connect.menu-bg .pad-type::before{content:"";position:absolute;inset:0;z-index:-1;border-radius:var(--up-r);background:var(--up-face);transform:skewX(var(--up-skew));box-shadow:var(--up-ring)}
#screen-connect.menu-bg .pad-type::after{content:"";position:absolute;inset:0;z-index:-2;border-radius:var(--up-r);background:var(--up-ink);transform:translate(var(--cp-drop-x),var(--cp-drop-y)) skewX(var(--up-skew))}
#screen-connect.menu-bg .pad-type > span{flex:1;min-width:0} #screen-connect.menu-bg .pad-type > span b{color:var(--cp-text);font-family:var(--font-display);font-weight:400}      /* a bold word in a line is Days One (the audit reads Rubik bold as the old font) */
#screen-connect.menu-bg .panel .pad-pair .pad-code,#screen-connect.menu-bg .panel .pad-code{flex:none;position:relative;isolation:isolate;padding:.3rem .95rem .24rem .8rem;font:400 2.2rem/1 var(--font-display);letter-spacing:.04em;color:#fff;white-space:nowrap}
#screen-connect.menu-bg .pad-code::before{content:"";position:absolute;inset:0;z-index:-1;border-radius:.3rem;background:var(--up-neon);transform:skewX(var(--up-skew));box-shadow:inset 0 0 0 var(--cp-ol-sm) var(--up-deep), inset 0 .18rem 0 var(--cp-shine), var(--cp-drop-deep-sm)}      /* the code to type: the cyan figure, deep edge and drop */
/* the AirPod's card takes the how-to's place (the helper to download) */
#screen-connect.menu-bg .pad-helper{grid-area:how;position:relative;isolation:isolate;display:flex;flex-direction:column;align-items:flex-start;gap:1rem;width:100%;margin:0;padding:1.2rem 2.4rem 1.3rem 2.3rem;border:0;border-radius:0;background:none;box-shadow:none;text-align:left}
#screen-connect.menu-bg .pad-helper .pad-how{display:block;padding:0;isolation:auto}
#screen-connect.menu-bg .pad-helper .pad-how::before,#screen-connect.menu-bg .pad-helper .pad-how::after{content:none}
#screen-connect.menu-bg .pad-helper::before{content:"";position:absolute;inset:0;z-index:-1;border-radius:var(--up-r);background:var(--up-face);transform:skewX(var(--cp-skew));box-shadow:var(--up-ring)}
#screen-connect.menu-bg .pad-helper::after{content:"";position:absolute;inset:0;z-index:-2;border-radius:var(--up-r);background:var(--up-ink);transform:translate(var(--cp-drop-x),var(--cp-drop-y)) skewX(var(--cp-skew))}      /* a plate this tall takes the page's tray slant (.tray: -5deg): at -10 its corners ate the padding */
#screen-connect.menu-bg .pad-helper .pad-link{color:var(--up-deep);font-family:var(--font-display);font-weight:400}
#screen-connect.menu-bg .pad-get{font-size:1.2rem;height:3rem;padding:0 1.5rem}
/* the right column: the status plates and the camera line (under the how-to card) */
#screen-connect.menu-bg .conn-right{grid-area:side;display:flex;flex-direction:column;gap:.9rem;align-self:start;width:100%;margin-top:.1rem}
#screen-connect.menu-bg .status-list{gap:.9rem}
#screen-connect.menu-bg .status-row{position:relative;isolation:isolate;min-height:3.5rem;padding:.4rem 1.4rem .4rem 1.2rem;gap:1rem;border:0;border-radius:0;background:none;box-shadow:none;color:var(--up-ink);transition:none}
#screen-connect.menu-bg .status-row::before{content:"";position:absolute;inset:0;z-index:-1;border-radius:var(--up-r);background:var(--up-face);transform:skewX(var(--up-skew));
  box-shadow:var(--up-ring)}
#screen-connect.menu-bg .status-row::after{content:"";position:absolute;inset:0;z-index:-2;border-radius:var(--up-r);background:var(--up-ink);transform:translate(var(--cp-drop-x),var(--cp-drop-y)) skewX(var(--up-skew))}
#screen-connect.menu-bg .status-name{min-width:5.2rem;font:400 1.35rem/1 var(--font-display);color:var(--up-ink);letter-spacing:0}
#screen-connect.menu-bg .status-text{flex:1;min-width:0;font:400 max(1rem,13px)/1.3 var(--font-text);color:var(--up-ink-2)}
#screen-connect.menu-bg .status-state{position:relative;isolation:isolate;flex:none;padding:.35em .7em .3em .6em;font:400 .95rem/1 var(--font-display);font-style:normal;letter-spacing:0;color:var(--cp-text)}
#screen-connect.menu-bg .status-state::before{content:"";position:absolute;inset:0;z-index:-1;border-radius:.3rem;background:var(--up-face);transform:skewX(var(--up-skew));box-shadow:inset 0 0 0 var(--cp-ol-sm) var(--up-ink), var(--cp-drop-sm)}
#screen-connect.menu-bg .panel .status-row.is-ok .status-state{color:#fff;} #screen-connect.menu-bg .status-row.is-ok .status-state::before{background:var(--up-neon);box-shadow:inset 0 0 0 var(--cp-ol-sm) var(--up-deep), var(--cp-drop-deep-sm)}
#screen-connect.menu-bg .status-row.is-bad .status-state::before{background:var(--cp-red);box-shadow:inset 0 0 0 var(--cp-ol-sm) var(--cp-red-deep), var(--cp-drop-red-sm)} #screen-connect.menu-bg .panel .status-row.is-bad .status-state{color:#fff}
#screen-connect.menu-bg .panel .status-row.is-wait .status-state,#screen-connect.menu-bg .panel .status-row.is-off .status-state{color:var(--cp-text)}
#screen-connect.menu-bg .status-row .light{width:1rem;height:1rem}
#screen-connect.menu-bg .status-row.is-ok > .light{background:var(--up-live);box-shadow:0 0 0 .125rem var(--up-ink), 0 0 .6rem var(--up-live)}
#screen-connect.menu-bg .status-row .cam-on{height:2.2rem;padding:0 .9rem;font-size:1rem}
#screen-connect.menu-bg .conn-note-row{display:flex;align-items:flex-start;gap:1.5rem;margin:.15rem 0 0}
#screen-connect.menu-bg .panel .conn-cam-note{flex:1;min-width:0;margin:0;width:fit-content;max-width:100%;text-align:left;font:400 max(1rem,12px)/1.35 var(--font-text)}
#screen-connect.menu-bg .up-dock{display:none}
body:has(#camwrap:not([hidden])) #screen-connect.menu-bg .up-dock{display:block;width:10.4rem;aspect-ratio:10.4/6.6;margin-top:-.2rem}
/* the entrance: the heading and the left pieces slide in from the left, the right from the right, staggered, each time the screen comes up (the screen's own 'hidden' replays it). --up-wipe: as the page's land(), they start when the wipe's slabs begin to peel (--up-wipe, ui.js showScreen: aero.js T.PEEL, 0 out of the court, where no wipe runs), so the slide is seen, not spent under the cover */
#screen-connect.menu-bg.is-active :where(#connect-title,.seg-paddle,.pad-qr-plate,.pad-type,#pad-pair > .pad-how,.pad-helper,.conn-right,.conn-done){animation:up-inR 300ms var(--up-snap) var(--up-wipe) backwards}
#screen-connect.menu-bg.is-active :is(#connect-title,.pad-qr-plate,.pad-type,.conn-done){animation-name:up-inL}
#screen-connect.menu-bg.is-active .seg-paddle{animation-delay:calc(var(--up-wipe) + 40ms)} #screen-connect.menu-bg.is-active .pad-qr-plate{animation-delay:calc(var(--up-wipe) + 80ms)}
#screen-connect.menu-bg.is-active :is(#pad-pair > .pad-how,.pad-helper){animation-delay:calc(var(--up-wipe) + 120ms)} #screen-connect.menu-bg.is-active .pad-type{animation-delay:calc(var(--up-wipe) + 150ms)} #screen-connect.menu-bg.is-active .conn-right{animation-delay:calc(var(--up-wipe) + 170ms)}
@keyframes up-inR{from{transform:translateX(9.41rem) skewX(var(--cp-skew));opacity:0}}
@keyframes up-inL{from{transform:translateX(-9.41rem) skewX(var(--cp-skew));opacity:0}}
/* a short window (1280x720: 577 px of body): the heading one step down and tighter rows, so Allow and the camera line stay above the footer */
@media (max-height:780px){
  #screen-connect.menu-bg .panel.conn-card{row-gap:.8rem}
  #screen-connect.menu-bg{--q:19.6rem}
  #screen-connect.menu-bg .panel .pad-type{gap:.8rem;padding-inline:1.2rem .9rem} #screen-connect.menu-bg .panel .pad-pair .pad-code,#screen-connect.menu-bg .panel .pad-code{font-size:1.95rem;padding-inline:.7rem .8rem}      /* three lines of words, not four and an orphan */
  #screen-connect.menu-bg .status-row{min-height:3.2rem;padding-block:.3rem} #screen-connect.menu-bg .status-list{gap:.7rem}
}
/* a narrow window: one column, the heading, the switch, the QR first */
@media (max-width:980px), (max-aspect-ratio: 6/5){
  #screen-connect.menu-bg .menu-body.conn-body{padding:1rem 1.5rem 1.5rem}
  #screen-connect.menu-bg .panel.conn-card,#screen-connect.menu-bg .panel.conn-card:has(.seg-paddle[hidden]),#screen-connect.menu-bg .panel.conn-card:has(#pad-pair[hidden]),#screen-connect.menu-bg .panel.conn-card:has(#pad-pair[hidden]):has(.pad-helper[hidden]){grid-template-columns:minmax(0,1fr);grid-template-rows:none;grid-template-areas:"head" "seg" "qr" "type" "how" "side" "done";justify-items:center;column-gap:0;row-gap:1rem}
  #screen-connect.menu-bg .conn-right{margin-top:0;width:100%;max-width:40rem}
  #screen-connect.menu-bg .pad-how,#screen-connect.menu-bg .pad-helper{width:100%;max-width:40rem}
  #screen-connect.menu-bg{--q:min(21rem,52vw)}
  #screen-connect.menu-bg #pad-pair:not([hidden]){display:flex;flex-direction:column;align-items:center;gap:1rem;grid-area:qr;width:100%;pointer-events:auto}
  #screen-connect.menu-bg .pad-qr-plate,#screen-connect.menu-bg .panel .pad-type{justify-self:center}
  #screen-connect.menu-bg .panel .pad-type{flex-wrap:wrap;row-gap:.7rem;padding-block:.9rem 1rem} #screen-connect.menu-bg .panel .pad-type > span{flex:1 1 100%}      /* the sentence on its own lines, the code chip under it: never on top of the address */
  #screen-connect.menu-bg .seg.seg-paddle,#screen-connect.menu-bg #connect-title{justify-self:center}
  .ua-h,#screen-camera.menu-bg #cam-title{font-size:2.4rem;padding:.65rem 2rem .55rem 1.5rem;white-space:normal}
  #screen-connect.menu-bg #connect-title{white-space:normal;text-align:center}
}

/* ======================================================= 3. the camera primer ======================================================= */
/* Quick play with no phone paired lands here first (then the pairing screen): the same sky; the heading on the h-plate across the top; left, the drawing on a
   white plate, the lead, Allow camera (neon, ui.css .is-focus) beside Play without camera (a white plate), the Auto line; right, the three facts as white slanted
   plates with the ink outline and hard drop. The help view (a blocked camera) swaps the facts for the browser's steps on the same plates */
#screen-camera.menu-bg .menu-body.cam-body{justify-content:safe center;overflow-y:auto;overscroll-behavior:contain;padding:1rem 3.5rem 1.5rem}
#screen-camera.menu-bg .panel.cam-card{width:min(78rem,100%);max-width:none;margin:0;padding:0 1rem .9rem 0;border:0;border-radius:0;background:none;box-shadow:none;animation:none;
  display:grid;grid-template-columns:minmax(0,25rem) minmax(0,17rem) minmax(0,1fr);grid-template-rows:auto auto auto auto 1fr;grid-template-areas:"head head art" "lead pts pts" "btns pts pts" "alt pts pts" "note pts pts";align-content:center;align-items:start;justify-items:start;gap:1.1rem 3rem}
/* the help (a blocked camera): no drawing, the heading takes the row */
#screen-camera.menu-bg .panel.cam-card[data-view="help"]{grid-template-areas:"head head head" "lead pts pts" "btns pts pts" "alt pts pts" "note pts pts"}
#screen-camera.menu-bg .panel.cam-card::before{content:none}
#screen-camera.menu-bg .screen.is-active .cam-card.lob-nope,#screen-camera.menu-bg.is-active .cam-card.lob-nope{animation:nudge 420ms var(--ease-soft) 1}
/* a wrapped box keeps its full track width whatever the lines are, so the plate's width is set in em to hug the longest title's two balanced lines (it stays fit-content for a short one: 'Press Allow') */
#screen-camera.menu-bg #cam-title{grid-area:head;align-self:center;margin:0;text-align:left;max-width:10.75em;text-wrap:balance}
#screen-camera.menu-bg .cam-card[data-view="help"] #cam-title{max-width:none;font-size:3.05rem;padding:.8rem 2.3rem .7rem 1.7rem;white-space:nowrap}      /* the help's titles are longer and vary: one line, a step down, so the plate always hugs */
/* the drawing on a white plate with the outline, a hard drop and the sky glow at its foot */
#screen-camera.menu-bg .cam-art.well{grid-area:art;align-self:center;position:relative;isolation:isolate;width:100%;aspect-ratio:12/5;margin:0;padding:.8rem 1.2rem;border:0;border-radius:0;background:none;box-shadow:none;overflow:visible;display:grid;place-items:center}
#screen-camera.menu-bg .cam-art::before{content:"";position:absolute;inset:0;z-index:-1;border-radius:var(--up-r);background:var(--up-face);transform:skewX(var(--cp-skew));box-shadow:var(--up-ring)}
#screen-camera.menu-bg .cam-art::after{content:"";position:absolute;inset:0;z-index:-2;border-radius:var(--up-r);background:var(--up-ink);transform:translate(var(--cp-drop-x),var(--cp-drop-y)) skewX(var(--cp-skew))}
#screen-camera.menu-bg .cam-art svg{position:relative;z-index:1;width:100%;height:100%}
#screen-camera.menu-bg .cam-card[data-view="help"] .cam-art{display:none}
/* the lead and the notes: white on the sky with the ink shadow, left-aligned under the drawing */
#screen-camera.menu-bg .panel.cam-card .t-lead{grid-area:lead;width:100%;margin:0;font:400 max(1.12rem,14px)/1.38 var(--font-text);text-align:left;text-wrap:pretty}
#screen-camera.menu-bg .panel.cam-card .t-lead b{color:var(--cp-text);font-family:var(--font-display);font-weight:400}
#screen-camera.menu-bg .panel .cam-alt{grid-area:alt;width:100%;margin:0;text-align:left;font:400 max(1rem,12px)/1.35 var(--font-text)}
#screen-camera.menu-bg .panel .cam-alt b{color:var(--up-deep);font-family:var(--font-display);font-weight:400}
#screen-camera.menu-bg .panel .cam-note{grid-area:note;width:100%;margin:0;min-height:0;text-align:left;font:400 max(1rem,12px)/1.35 var(--font-text)}
#screen-camera.menu-bg .panel .cam-note:empty{display:none}
/* the buttons: Allow camera THE neon action (ui.css .is-focus: the neon face, the cobalt-deep slab), Play without camera a white plate beside it, both the game's punch */
#screen-camera.menu-bg .cam-btns{grid-area:btns;width:100%;justify-content:flex-start;gap:.9rem 1.1rem;margin:.2rem 0 0}
#screen-camera.menu-bg .cam-btns .btn:not(.btn-sm){min-width:0;min-height:3.4rem;padding:0 1.6rem;font-size:1.5rem}
#screen-camera.menu-bg .cam-btns .btn-sm.cam-skip{min-height:2.9rem;padding:0 1.2rem;font-size:1.15rem;color:var(--up-ink)}
#screen-camera.menu-bg .cam-btns .btn-sm.cam-skip:hover{color:var(--up-ink)}
/* the three facts: white slanted plates with the ink outline and the hard drop, the glyph in ink, the title in Days One */
#screen-camera.menu-bg .cam-points{grid-area:pts;align-self:stretch;display:flex;flex-direction:column;gap:1.1rem;width:100%;margin:0;padding:0;list-style:none;text-align:left}
#screen-camera.menu-bg .cam-points li{position:relative;isolation:isolate;display:flex;flex:1 1 auto;flex-direction:row;align-items:center;gap:1.3rem;margin:0;padding:1.1rem 2rem 1.15rem 1.7rem;border:0;border-radius:0;background:none;box-shadow:none;color:var(--up-ink)}
#screen-camera.menu-bg .cam-points li::before{content:"";position:absolute;inset:0;z-index:-1;border-radius:var(--up-r);background:var(--up-face);transform:skewX(var(--up-skew));
  box-shadow:var(--up-ring)}
#screen-camera.menu-bg .cam-points li::after{content:"";position:absolute;inset:0;z-index:-2;border-radius:var(--up-r);background:var(--up-ink);transform:translate(var(--cp-drop-x),var(--cp-drop-y)) skewX(var(--up-skew))}
#screen-camera.menu-bg .cam-points svg{flex:none;width:4rem;height:4rem;margin:0;padding:.7rem;border-radius:.3rem;background:var(--up-neon);box-shadow:inset 0 0 0 var(--cp-ol-sm) var(--up-deep), var(--cp-drop-deep-sm);fill:none;stroke:#fff;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
#screen-camera.menu-bg .cam-points div{display:flex;flex-direction:column;gap:.2rem;font:400 max(1.05rem,13px)/1.4 var(--font-text);color:var(--up-ink-2)}
#screen-camera.menu-bg .cam-points div > b{font:400 1.7rem/1.1 var(--font-display);color:var(--up-ink);letter-spacing:0}
#screen-camera.menu-bg .cam-points span b{font-family:var(--font-display);font-weight:400;color:var(--cp-text)}
#screen-camera.menu-bg .cam-card[data-view="help"] .cam-points{display:none}
/* the help: the browser's steps on the same plates, folded ones in a plain list */
#screen-camera.menu-bg .cam-help{grid-area:pts;width:100%;gap:.9rem;text-align:left}
#screen-camera.menu-bg .cam-help[hidden]{display:none}
#screen-camera.menu-bg .cam-how{position:relative;isolation:isolate;padding:.9rem 1.5rem .95rem 1.3rem;border:0;border-radius:0;background:none;box-shadow:none;color:var(--up-ink-2);font-family:var(--font-text)}
#screen-camera.menu-bg .cam-help > .cam-how::before{content:"";position:absolute;inset:0;z-index:-1;border-radius:var(--up-r);background:var(--up-face);transform:skewX(var(--up-skew));
  box-shadow:var(--up-ring)}
#screen-camera.menu-bg .cam-help > .cam-how::after{content:"";position:absolute;inset:0;z-index:-2;border-radius:var(--up-r);background:var(--up-ink);transform:translate(var(--cp-drop-x),var(--cp-drop-y)) skewX(var(--up-skew))}
#screen-camera.menu-bg .cam-how h3{margin:0 0 .3rem;font:400 1.5rem/1.1 var(--font-display);color:var(--up-ink);letter-spacing:0}
#screen-camera.menu-bg .cam-how ol{font-size:max(1.05rem,13px);line-height:1.4;color:var(--up-ink-2)} #screen-camera.menu-bg .cam-how b{color:var(--up-ink)}
#screen-camera.menu-bg .cam-more summary{position:relative;isolation:isolate;width:fit-content;padding:.4rem 1.3rem .45rem 1.1rem;color:var(--cp-text);font:400 max(1rem,12px)/1.3 var(--font-display);text-shadow:none;cursor:pointer}
#screen-camera.menu-bg .cam-more summary::before{content:"";position:absolute;inset:0;z-index:-1;border-radius:var(--up-r);background:var(--up-face);transform:skewX(var(--up-skew));box-shadow:var(--up-ring), var(--cp-drop-sm)}
#screen-camera.menu-bg .cam-more-list .cam-how{padding:.6rem .9rem;background:var(--cp-well);border-radius:var(--up-r);box-shadow:none}      /* a folded step: a pale-sky well, no block */
/* the entrance: the heading and the left pieces from the left, the facts from the right, staggered */
#screen-camera.menu-bg.is-active .cam-card > *{animation:up-inR 300ms var(--up-snap) var(--up-wipe) backwards}
#screen-camera.menu-bg.is-active :is(#cam-title,.cam-art,.t-lead,.cam-btns,.cam-alt,.cam-note){animation-name:up-inL}
#screen-camera.menu-bg.is-active .cam-art{animation-delay:calc(var(--up-wipe) + 40ms)} #screen-camera.menu-bg.is-active .t-lead{animation-delay:calc(var(--up-wipe) + 80ms)} #screen-camera.menu-bg.is-active .cam-btns{animation-delay:calc(var(--up-wipe) + 120ms)}
#screen-camera.menu-bg.is-active :is(.cam-points,.cam-help){animation-delay:calc(var(--up-wipe) + 100ms)}
#screen-camera.menu-bg.is-active .cam-card.lob-nope > *{animation:none}
@media (max-height:780px){
  #screen-camera.menu-bg .panel.cam-card{row-gap:.8rem}
  #screen-camera.menu-bg .cam-points{gap:.7rem} #screen-camera.menu-bg .cam-points li{padding-block:.7rem .75rem}
}
@media (max-width:980px), (max-aspect-ratio: 6/5){
  #screen-camera.menu-bg .menu-body.cam-body{padding:1rem 1.5rem 1.5rem}
  #screen-camera.menu-bg .panel.cam-card{grid-template-columns:minmax(0,1fr);grid-template-rows:none;grid-template-areas:"head" "art" "lead" "pts" "btns" "alt" "note";justify-items:center;gap:1rem 0;width:100%}
  #screen-camera.menu-bg .panel.cam-card[data-view="help"]{grid-template-areas:"head" "lead" "pts" "btns" "alt" "note"}
  #screen-camera.menu-bg .cam-art.well{width:min(22.5rem,80vw)}
  #screen-camera.menu-bg .panel.cam-card .t-lead,#screen-camera.menu-bg .panel .cam-alt,#screen-camera.menu-bg .panel .cam-note{max-width:40rem;text-align:center}
  #screen-camera.menu-bg .cam-points,#screen-camera.menu-bg .cam-help{max-width:40rem}
  #screen-camera.menu-bg .cam-btns{justify-content:center;flex-direction:row;align-items:center;width:auto}
  #screen-camera.menu-bg .cam-btns .btn-sm.cam-skip,#screen-camera.menu-bg .cam-btns .btn-sm.cam-skip:hover{align-self:auto;color:var(--up-ink);text-decoration:none}
  #screen-camera.menu-bg .cam-btns .cam-skip::before{display:block}      /* ui.css turns it into a text link in this width, hiding its face: here it stays the white plate (its drop is already there) */
  #screen-camera.menu-bg #cam-title,#screen-camera.menu-bg .cam-card[data-view="help"] #cam-title{text-align:center;white-space:normal;max-width:none}
}

/* ======================================================= 4. calibration ======================================================= */
#cal.menu-bg .menu-body.cal-body{gap:1.2rem;padding:1rem 3.5rem 1.2rem;justify-content:center;align-items:center}
/* the two steps: slanted plates; the one you are on is ink with its number on neon, a done one keeps its white plate with the number in cobalt */
#cal.menu-bg .steps{gap:1rem;z-index:1;width:min(72rem,100%);justify-content:flex-start}
#cal.menu-bg .steps li{position:relative;isolation:isolate;height:2.8rem;padding:0 1.3rem 0 .5rem;gap:.6rem;border:0;border-radius:0;background:none;box-shadow:none;color:var(--up-ink);font:400 1.2rem/1 var(--font-display);letter-spacing:0;transform:none;transition:color var(--d-med) var(--ease-soft)}
#cal.menu-bg .steps li::before{content:"";position:absolute;inset:0;z-index:-1;border-radius:var(--up-r);background:var(--up-face);transform:skewX(var(--up-skew));box-shadow:inset 0 0 0 var(--cp-ol-sm) var(--up-ink);transition:background var(--d-med) var(--ease-soft), box-shadow var(--d-med) var(--ease-soft)}
#cal.menu-bg .steps li::after{content:"";position:absolute;inset:0;z-index:-2;border-radius:var(--up-r);background:var(--up-ink);transform:translate(var(--cp-drop-sm-x),var(--cp-drop-sm-y)) skewX(var(--up-skew));opacity:1;transition:background var(--d-med) var(--ease-soft)}
#cal.menu-bg .steps li > i{width:1.9rem;height:1.9rem;border-radius:.3rem;transform:skewX(var(--up-skew));background:var(--cp-well-2);color:var(--cp-text);font:400 1rem/1 var(--font-display);box-shadow:none}      /* the number: a pale-sky well inside the step, no block of its own */
#cal.menu-bg .steps li.is-on{color:#fff;transform:none} #cal.menu-bg .steps li.is-on::before{background:var(--up-neon);box-shadow:inset 0 0 0 var(--cp-ol-sm) var(--up-deep), inset 0 .18rem 0 var(--cp-shine)} #cal.menu-bg .steps li.is-on::after{opacity:1;background:var(--up-deep)}      /* the step you are on: cyan, deep edge and drop */
#cal.menu-bg .steps li.is-on > i{background:#fff;color:var(--up-deep);box-shadow:none}
#cal.menu-bg .steps li.is-done{color:var(--up-ink)} #cal.menu-bg .steps li.is-done::before{background:var(--up-face);box-shadow:inset 0 0 0 var(--cp-ol-sm) var(--up-ink)} #cal.menu-bg .steps li.is-done::after{opacity:1}
#cal.menu-bg .steps li.is-done > i{background:var(--up-neon);color:#fff;box-shadow:none}      /* done: its number on cyan */
/* the card is no card: the headline plate, the lead, the drawing on its white plate, the bar and the count, the line under them */
#cal.menu-bg .panel.panel-cal{width:min(72rem,100%);margin:0;padding:0;border:0;border-radius:0;background:none;box-shadow:none;animation:none;
  display:grid;grid-template-columns:minmax(0,23rem) minmax(0,1fr);grid-template-rows:auto auto auto auto 1fr;grid-template-areas:"head head" "lead art" "prog art" "msg art" "dock art";gap:1.3rem 3rem;align-items:start;justify-items:start}
#cal.menu-bg .panel.panel-cal::before{content:none}
/* the docks: the live paddle, then the webcam frame when there is one, side by side in the left column under the line */
#cal.menu-bg .cal-docks{grid-area:dock;display:flex;align-items:flex-start;gap:1.4rem;width:100%}
/* the live paddle stands here only while it draws (#podwrap.is-live: ui.js phonePlate, the paddle answers; [hidden]: Settings > Show phone off), as the camera's dock below: an inset with no samples is a blank white tile.
   Its own rule too, not only the dock's: with no dock it falls back to ui.css's corner on this screen, and the narrow layout has no dock at all */
body[data-screen="calibrate"] #podwrap:not(.is-live){display:none}
#cal.menu-bg .up-dock[data-dock="podwrap"],#cal.menu-bg .up-dock[data-dock="camwrap"]{display:none}
body:has(#podwrap.is-live:not([hidden])) #cal.menu-bg .up-dock[data-dock="podwrap"]{display:block;width:9rem;aspect-ratio:1}
body:has(#camwrap:not([hidden])) #cal.menu-bg .up-dock[data-dock="camwrap"]{display:block;width:12rem;aspect-ratio:12/7.2}
/* no inset to dock: the left column closes up and stands centred beside the drawing */
@media (min-width:981px) and (min-aspect-ratio: 6/5){
  body:not(:has(#podwrap.is-live:not([hidden]))):not(:has(#camwrap:not([hidden]))) #cal.menu-bg .panel.panel-cal{grid-template-rows:auto 1fr auto auto auto 1fr;grid-template-areas:"head head" "gap1 art" "lead art" "prog art" "msg art" "gap2 art"}
  body:not(:has(#podwrap.is-live:not([hidden]))):not(:has(#camwrap:not([hidden]))) #cal.menu-bg .cal-docks{display:none}
}
#cal.menu-bg #calh{grid-area:head;font-size:3.2rem;padding:.8rem 2.3rem .7rem 1.7rem;white-space:nowrap}      /* the headline: the only thing read from two metres away; one step under the h-plate so 'Level out, then tip straight up' stays one line */
#cal.menu-bg .t-lead{grid-area:lead;width:100%;max-width:none;font:400 max(1.2rem,14px)/1.38 var(--font-text);text-align:left}
#cal.menu-bg .t-lead b{color:var(--cp-text);font-family:var(--font-display);font-weight:400}
#cal.menu-bg .well.cal-art{grid-area:art;position:relative;isolation:isolate;width:100%;margin:0;padding:.6rem .9rem;border:0;border-radius:0;background:none;box-shadow:none;overflow:visible}
#cal.menu-bg .well.cal-art::before{content:"";position:absolute;inset:0;z-index:-1;border-radius:var(--up-r);background:var(--up-face);transform:skewX(var(--cp-skew));box-shadow:var(--up-ring)}
#cal.menu-bg .well.cal-art::after{content:"";position:absolute;inset:0;z-index:-2;border-radius:var(--up-r);background:var(--up-ink);transform:translate(var(--cp-drop-x),var(--cp-drop-y)) skewX(var(--cp-skew))}
#cal.menu-bg .cal-art svg{position:relative;z-index:1;overflow:visible}      /* the arm runs on to the plate's slanted edge (index.html) */
#cal.menu-bg .cal-progress{grid-area:prog;width:100%;gap:1.1rem;margin:.2rem 0 0;justify-content:flex-start}
#cal.menu-bg .cal-bar{--p:0;flex:1;width:auto;height:1.65rem;border-radius:.25rem;background:var(--cp-well-2);box-shadow:inset 0 0 0 var(--cp-ol-sm) var(--up-ink), var(--cp-drop-sm);transform:skewX(var(--up-skew))}      /* the track: a pale-sky well, ink edge, the small drop */
#cal.menu-bg .cal-bar i{background:var(--up-neon);box-shadow:none}      /* the fill: cyan, no block of its own */
#cal.menu-bg .cal-bar.is-bad i{background:var(--cp-red)}
#cal.menu-bg .cal-bar.is-done i{background:var(--up-neon);box-shadow:inset 0 .18rem 0 var(--cp-shine)}
#cal.menu-bg .cal-count{width:3rem;height:3rem;border-radius:var(--up-r);background:var(--up-face);color:var(--cp-text);font:400 1.6rem/1 var(--font-display);transform:skewX(var(--up-skew));box-shadow:var(--up-ring), var(--cp-drop-sm)}
#cal.menu-bg .cal-count.is-bad{background:var(--cp-red);color:#fff;box-shadow:inset 0 0 0 var(--cp-ol) var(--cp-red-deep), var(--cp-drop-red-sm)}
#cal.menu-bg .cal-count.is-done{background:var(--up-neon);color:#fff;box-shadow:inset 0 0 0 var(--cp-ol) var(--up-deep), inset 0 .235rem 0 var(--cp-shine), var(--cp-drop-deep-sm)} #cal.menu-bg .cal-count.is-done svg{stroke:#fff}
#cal.menu-bg .cal-msg{grid-area:msg;width:fit-content;font:500 max(1.05rem,13px)/1.35 var(--font-text)}
#cal.menu-bg .cal-msg:empty{visibility:hidden}
#cal.menu-bg .cal-msg.is-bad{color:var(--cp-red-deep)} #cal.menu-bg .cal-msg.is-good{color:var(--cp-green-deep)}
#cal.menu-bg .menu-foot #cal-safety{font:500 max(1rem,13px)/1.3 var(--font-text);color:var(--cp-text)}
/* the card's nudge on a mistake (ui.js restart(calcard,'is-error')) keeps ui.css's shake; the entrance: the pieces slide in staggered */
#cal.menu-bg.is-active .panel-cal > *{animation:up-inR 300ms var(--up-snap) var(--up-wipe) backwards}
#cal.menu-bg.is-active #calh{animation-name:up-inL} #cal.menu-bg.is-active .t-lead{animation-delay:calc(var(--up-wipe) + 40ms)} #cal.menu-bg.is-active .cal-art{animation-delay:calc(var(--up-wipe) + 80ms)} #cal.menu-bg.is-active .cal-progress{animation-delay:calc(var(--up-wipe) + 120ms)} #cal.menu-bg.is-active .cal-msg{animation-delay:calc(var(--up-wipe) + 160ms)}
#cal.menu-bg.is-active .panel-cal.is-error > *{animation:none}
@media (max-width:980px), (max-aspect-ratio: 6/5){
  #cal.menu-bg .menu-body.cal-body{padding:1rem 1.5rem;overflow-y:auto;justify-content:safe center}
  #cal.menu-bg .steps{justify-content:center}
  #cal.menu-bg .cal-art svg{overflow:hidden}      /* the art scales up here: the arm's end, cut for the wide plate, would run past this plate's edge */
  #cal.menu-bg .cal-docks,#screen-connect.menu-bg .up-dock,body:has(#camwrap:not([hidden])) #screen-connect.menu-bg .up-dock{display:none}      /* no column for them here: the insets keep ui.css's corners */
  #cal.menu-bg .panel.panel-cal{grid-template-columns:minmax(0,1fr);grid-template-rows:none;grid-template-areas:"head" "lead" "art" "prog" "msg";justify-items:center}
  #cal.menu-bg #calh{font-size:2.4rem;padding:.65rem 2rem .55rem 1.5rem;white-space:normal;text-align:center}
  #cal.menu-bg .t-lead{text-align:center}
}
@media (prefers-reduced-motion: reduce){
  #screen-connect.menu-bg.is-active :is(#connect-title,.seg-paddle,.pad-qr-plate,.pad-type,#pad-pair > .pad-how,.pad-helper,.conn-right,.conn-done),#screen-camera.menu-bg.is-active .cam-card > *,#cal.menu-bg.is-active .panel-cal > *{animation:up-fade 200ms both!important}
  :is(#screen-connect,#screen-camera,#cal).menu-bg :is(.btn,.seg-opt){transition:none}
  #screen-connect.menu-bg .pad-qr > svg{animation:none}      /* ui.css's spring on the code */
  .up-pointer svg{animation:none} :is(#screen-connect,#screen-camera,#cal).menu-bg > .up-pointer{transition:opacity 120ms}
  @keyframes up-fade{from{opacity:0}}
}

/* ======================================================= 5. the phone's home (html[data-mobile], 390 wide): the FULL SWEEP, light and Wii =======================================================
   The desktop home is the model (docs/cyanpop/after/home-1440x900.png): white plates, the ink outline, one hard drop slab, cyan for the one action. Here on the phone:
   the wordmark heads the page in place of the small ink "Poddle" plate; the tiles' labels stand plain in label ink (no leftover pills), their counts on small white chips;
   the legal bar is white with label ink; the "Be the paddle" card's heading is a white plate. Scoped to the phone and prefixed with the lobby's id, so it outranks the sheets linked after this one */
html[data-mobile] #screen-lobby[data-view="home"] #lobby-title{display:block;width:calc(max(2.6rem,32px) * 2.817);height:max(2.6rem,32px);padding:0;font-size:0;color:transparent;
  background:url(art/wm/l5.webp) 50% 50%/contain no-repeat,url(art/wm/l4.webp) 50% 50%/contain no-repeat,url(art/wm/l3.webp) 50% 50%/contain no-repeat,url(art/wm/l2.webp) 50% 50%/contain no-repeat,url(art/wm/l1.webp?v=2) 50% 50%/contain no-repeat,url(art/wm/l0.webp) 50% 50%/contain no-repeat}      /* the home's own six wordmark layers stacked, l5 on top (1659x589; NOTES 446: the same files as the home, never a separate copy); the heading's text stays for a screen reader */
html[data-mobile] #screen-lobby[data-view="home"] #lobby-title::before,html[data-mobile] #screen-lobby[data-view="home"] #lobby-title::after{content:none}
/* the tiles: a white face (the Courts block cyan), the ink outline, THE drop; a press sinks onto it */
html[data-mobile] #screen-lobby #lobby-home .tile{--tf:var(--cp-panel);--bo:var(--cp-ink);--tl:transparent;--tlc:var(--cp-text);--dx:var(--cp-drop-x);--dy:var(--cp-drop-y);--slab-c:rgba(var(--cp-main-rgb),0);--slab-o:rgba(var(--cp-ink-rgb),0)}
html[data-mobile] #screen-lobby #lobby-home :is(#btn-courts,#btn-bot,#btn-quick){--tf:var(--cp-main);--bo:var(--cp-deep);--tl:transparent;--tlc:#fff;--line:var(--cp-deep)}
html[data-mobile] #screen-lobby #lobby-home .tile:is(.ae-sel,:focus-visible){--dx:var(--cp-drop-x);--dy:var(--cp-drop-y);--slab-c:rgba(var(--cp-main-rgb),0);--slab-o:rgba(var(--cp-ink-rgb),0);--lift-x:0rem;--lift-y:0rem}
html[data-mobile] #screen-lobby #lobby-home .tile:is(.ae-sel,:focus-visible)::before{box-shadow:inset 0 .1875rem 0 var(--cp-shine), 0 0 0 .22rem var(--cp-glow), 0 0 1.5rem var(--cp-glow)}      /* the one selection: the cyan glow ring */
html[data-mobile] #screen-lobby #lobby-home .tile::before{background:var(--tf);border-width:var(--cp-ol);box-shadow:inset 0 .1875rem 0 var(--cp-shine)}      /* a flat face and the one thin shine band */
html[data-mobile] #screen-lobby #lobby-home .tile:is(:active,.ae-down){--dx:calc(var(--cp-drop-x) * .25);--dy:calc(var(--cp-drop-y) * .25)}
html[data-mobile] #screen-lobby #lobby-home .tile b,html[data-mobile] #screen-lobby #lobby-home .tile .tile-text b{color:var(--tlc);padding-inline:.1em}
html[data-mobile] #screen-lobby #lobby-home .tile b::before{content:none}
/* a tile's count: a small white chip, ink edge, the small drop */
html[data-mobile] #screen-lobby #lobby-home .tile .tile-sub{color:var(--cp-text)}
html[data-mobile] #screen-lobby #lobby-home .tile .tile-sub::before{background:var(--cp-panel);box-shadow:inset 0 0 0 var(--cp-ol-sm) var(--cp-ink), var(--cp-drop-sm)}
/* the "Be the paddle" card: THE drop; its heading a white plate (label ink, ink edge, the small drop); the code field a white well with the ink edge */
html[data-mobile] #screen-lobby #lobby-home .m-pad::after{transform:translate(var(--cp-drop-x),var(--cp-drop-y)) skewX(var(--cp-skew))}
html[data-mobile] #screen-lobby #lobby-home .m-pad h2{color:var(--cp-text);margin-bottom:var(--cp-drop-sm-y)}
html[data-mobile] #screen-lobby #lobby-home .m-pad h2::before{background:var(--cp-panel);box-shadow:inset 0 0 0 var(--cp-ol-sm) var(--cp-ink), inset 0 .18rem 0 var(--cp-shine), var(--cp-drop-sm)}
html[data-mobile] #screen-lobby #lobby-home .m-pad-lead b{font-family:var(--font-display);font-weight:400;color:var(--cp-text)}
html[data-mobile] #screen-lobby #lobby-home .m-pad-lead .foot-link{font-weight:400;color:var(--cp-deep);background:none;text-decoration:underline;text-underline-offset:.15em}
html[data-mobile] #screen-lobby #lobby-home .m-pad-field{border-width:var(--cp-ol);border-color:var(--cp-ink);box-shadow:var(--cp-drop-sm)}
/* the legal bar: white, label ink, deep links; no outline (a plain bar, not a block) */
html[data-mobile] #screen-lobby .menu-foot{background:var(--cp-panel);border-top:0;box-shadow:none;color:var(--cp-text-2)}
html[data-mobile] #screen-lobby .menu-foot :is(.foot-agree,.foot-agree > span){color:var(--cp-text-2)}
html[data-mobile] #screen-lobby .menu-foot .foot-link,html[data-mobile] #screen-lobby .menu-foot .foot-link.foot-legal{color:var(--cp-deep);font-weight:400}
/* owner 2026-11-16: "inbox and racket connect button dont have hover button effect" then "the hover effect is completely different to the settings hover style": both corner blocks
   (this and inbox.css #btn-inbox) take Settings' own hover (ua-home.css .ua-blk.home-set.is-hot): aero.js tips them toward the mouse (--rx/--ry) and lifts them (.is-hot), the same
   perspective, rise and scale; selected, the same neon band slides in under the bottom-left (.ua-hl, Settings' .hl::before), no glow ring and no offset copy of the plate.
   And "make the racket connect button colours all navy like the others": the racket is one colour, the deep blue of the Settings and Inbox glyphs; its signal arcs solid, not faint. */
#btn-phone .pp-ic,#btn-phone .pp-grip{stroke:var(--cp-deep)} #btn-phone .pp-grip{fill:var(--cp-deep)}
#btn-phone .pp-sig,#btn-phone.is-on .pp-sig{opacity:1;stroke:var(--cp-deep)}
html:not([data-mobile]) :is(#btn-phone,#btn-inbox,#btn-top-in){transform-style:flat;transform:perspective(32.94rem) rotateX(var(--rx,0deg)) rotateY(var(--ry,0deg)) translateZ(var(--z,0rem)) scale(var(--zs,1));transition:transform 220ms var(--up-spring)}
html:not([data-mobile]) :is(#btn-phone,#btn-inbox,#btn-top-in).is-hot,html:not([data-mobile]) :is(#btn-phone,#btn-inbox,#btn-top-in).is-hot:hover{--z:1.2rem;--zs:1.0378;transform:perspective(32.94rem) rotateX(var(--rx,0deg)) rotateY(var(--ry,0deg)) translateZ(var(--z,0rem)) scale(var(--zs,1))}
@media (hover:hover){ html:not([data-mobile]) :is(#btn-phone,#btn-inbox,#btn-top-in):hover{transform:perspective(32.94rem) rotateX(var(--rx,0deg)) rotateY(var(--ry,0deg)) translateZ(var(--z,0rem)) scale(var(--zs,1))} }
html:not([data-mobile]) :is(#btn-phone,#btn-inbox,#btn-top-in):is(:active,.ae-down){transform:perspective(32.94rem) rotateX(var(--rx,0deg)) rotateY(var(--ry,0deg)) translateZ(var(--z,0rem)) scale(1,.88);transition-duration:45ms}
/* selected: Settings' thin cyan glow round the outline, no offset copy of the plate */
html:not([data-mobile]) #btn-phone:is(.ae-sel,:hover,:focus-visible)::before{box-shadow:inset 0 0 0 var(--cp-ol) var(--up-ink),0 0 0 .3rem var(--cp-glow)}
html:not([data-mobile]) #btn-inbox:is(.ae-sel,:hover,:focus-visible)::before{box-shadow:inset 0 0 0 var(--cp-ol) var(--ib-ink),0 0 0 .3rem var(--cp-glow)}
/* the band: Settings' .hl::before (ua-home.css), between the face and the drop */
html :is(#btn-phone,#btn-inbox)::after,html :is(#btn-phone,#btn-inbox):is(:hover,:focus-visible,.ae-sel)::after{z-index:-3}      /* (over #btn-phone:hover::after's own z) */
:is(#btn-phone,#btn-inbox) > .ua-hl{position:absolute;z-index:-2;box-sizing:content-box;left:-.5rem;width:calc(100% - .35rem);bottom:-.7rem;height:1.1rem;border-radius:.35rem;pointer-events:none;
  background:var(--cp-main);border:.176rem solid var(--cp-deep);box-shadow:inset 0 .176rem 0 var(--cp-shine);transform:skewX(var(--cp-skew));
  clip-path:inset(0 100% 0 0);translate:-1.53rem 0;transition:clip-path 170ms var(--up-snap),translate 170ms var(--up-snap)}
:is(#btn-phone,#btn-inbox).ae-sel > .ua-hl,html:not(.ae-on) :is(#btn-phone,#btn-inbox):focus-visible > .ua-hl{clip-path:inset(-.235rem -.235rem -.235rem -.235rem);translate:0 0}
html[data-mobile] :is(#btn-phone,#btn-inbox) > .ua-hl{display:none}
@media (prefers-reduced-motion: reduce){ html:not([data-mobile]) :is(#btn-phone,#btn-inbox,#btn-top-in),html:not([data-mobile]) :is(#btn-phone,#btn-inbox,#btn-top-in):is(.is-hot,:hover){transform:none} :is(#btn-phone,#btn-inbox) > .ua-hl{transition:none} }
/* (NOTES 742, owner 2026-11-18, the docked camera picture on the set-up screens: "fix this, dont skew it") the live insets' plate stands upright, like the picture on it */
:is(#camwrap,#podwrap).is-docked::before{transform:none}
:is(#camwrap,#podwrap).is-docked::after{transform:translate(var(--cp-drop-x),var(--cp-drop-y))}
/* (NOTES 780, owner 2026-11-18: "make this diagram nicer") the connected phone: a white phone, a cyan screen with a gloss, a green check badge on it (connected), softer
   gradient arcs and a ground shadow; the dotted ball is gone (never again). The check breathes once in a while */
@media (prefers-reduced-motion:no-preference){
  #screen-connect.menu-bg .cd-check{transform-box:fill-box;transform-origin:50% 50%;animation:cd-check-pop 2.6s cubic-bezier(.2,1.5,.4,1) infinite}
}
@keyframes cd-check-pop{0%,70%,100%{transform:scale(1)}78%{transform:scale(1.12)}86%{transform:scale(.97)}}
