/* Alarms & widgets page: staging for its scenes (shared look in film.css). */

/* phones on this page are placed by CSS; --w comes from the viewport height */
.s-faces .ph, .s-setup .ph, .s-ring .ph, .s-keys .ph, .s-wid .ph { position: absolute; }
.ph > .scr.wall { background: var(--wall); }

/* ---------- intro ---------- */
.aw-title { max-width: 6.2em; }
.aw-title + .intro-s { top: calc(50% + clamp(64px, 8vw, 132px) * 1.05); }
.aw-xr { --w: min(320px, calc((100svh - 150px) * .45)); left: calc(68% - var(--w) / 2); top: calc(50% + 16px - var(--w) * 1.1111); }
.aw-l-dial  { left: 2.778%; top: 14%;     width: 94.44%; --z: .78; }
.aw-l-time  { left: 23.148%; top: 57.083%; width: 53.7%;  --z: .56; }
.aw-l-wake  { left: 27.778%; top: 70.833%; width: 44.44%; --z: .42; }
.aw-l-snooze { left: 4.815%; top: 78.167%; width: 90.37%; --z: .28; border-radius: 999px; }
.aw-l-stop  { left: 4.815%; top: 86.25%;  width: 90.37%; --z: .14; border-radius: 999px; }
.aw-xr .toast { opacity: var(--to, 0); transform: translateY(calc((1 - var(--to, 0)) * 14px)); z-index: 5; }
.aw-t1 { left: -78%; top: 18%; }
.aw-t2 { left: 64%; top: 64%; }

/* ---------- 1. sixteen faces ---------- */
.aw-fph { --w: min(300px, calc((100svh - 250px) * .45)); left: calc(50% - var(--w) / 2); top: calc(100svh - 34px - var(--w) * 2.2222); }
.fstack { position: absolute; left: 0; top: 12.083%; width: 100%; height: 57.17%; overflow: hidden; }
.fstack img { position: absolute; left: 0; top: 0; width: 100%; max-width: none; height: auto; opacity: var(--o, 0); transform: translateY(calc((1 - var(--o, 0)) * 10px)) scale(calc(.97 + var(--o, 0) * .03)); }
.frail { position: absolute; left: calc(50% + min(300px, calc((100svh - 250px) * .45)) / 2 + 70px); top: calc(50% + 60px); height: 0; }
.fnames { list-style: none; margin: 0; padding: 0; transform: translateY(calc(var(--pos, 0) * -46px - 23px)); }
.fnames li { height: 46px; display: flex; align-items: center; white-space: nowrap; font: 650 25px/1 var(--display); letter-spacing: -.015em; opacity: calc(.12 + var(--o, 0) * .88); transform: translateX(calc((1 - var(--o, 0)) * 10px)); }
.fnames li.cur { color: var(--accent); }
.fcount { position: absolute; right: calc(50% + min(300px, calc((100svh - 250px) * .45)) / 2 + 70px); top: calc(50% + 60px); transform: translateY(-50%); display: grid; justify-items: end; }
.fcount b { font: 750 clamp(64px, 7vw, 108px)/.9 var(--display); letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.fcount span { font: 600 16px/1 var(--body); color: var(--muted); margin-top: 8px; }
.fcount em { display: none; }

/* ---------- 2. set it once ---------- */
.aw-eph { --w: min(300px, calc((100svh - 250px) * .45)); left: calc(44% - var(--w) / 2); top: calc(100svh - 34px - var(--w) * 2.2222); }
.aw-eph > img.ep { inset: auto; height: auto; object-fit: initial; background: none; border-radius: 0;
  transform: translateY(calc((1 - var(--a, 1)) * var(--w) * -1.15)) scale(calc(1 + (1 - var(--a, 1)) * .14)); opacity: min(1, calc(var(--a, 1) * 3)); }
.aw-eph > img.ep-time { left: 5%; top: 12.917%; width: 90.185%; border-radius: 999px; }
.aw-eph > img.ep-for { left: 4.074%; top: 23.667%; width: 91.852%; }
.aw-eph > img.ep-rep { left: 4.074%; top: 39.583%; width: 91.852%; }
.aw-eph > img.ep-snz { left: 4.074%; top: 55.208%; width: 91.852%; }
.aw-eph > img.ep-face { left: 2.778%; top: 65.6%; width: 94.44%; }
.aw-tile { position: absolute; left: calc(44% + min(300px, calc((100svh - 250px) * .45)) / 2 + 70px); top: calc(50% + 60px - 170px); width: 200px; height: auto; border-radius: 22px; box-shadow: var(--soft); opacity: var(--r, 1); transform: translateY(calc((1 - var(--r, 1)) * 30px)) rotate(calc((1 - var(--r, 1)) * 4deg)); }
.aw-note { position: absolute; left: calc(44% + min(300px, calc((100svh - 250px) * .45)) / 2 + 70px); top: calc(50% + 60px + 150px); width: 230px; margin: 0; font: 400 16px/1.45 var(--body); color: var(--muted); opacity: var(--r, 1); }

/* ---------- 3. rings over everything ---------- */
.aw-rph { --w: min(300px, calc((100svh - 250px) * .45)); left: calc(50% - var(--w) / 2); top: calc(100svh - 34px - var(--w) * 2.2222); }
.aw-rph > .scr { font-family: var(--body); overflow: hidden; }
.rclip > .lock, .rclip > .rscr { position: absolute; inset: 0; }
.rscr { background: var(--bg); }
.lock { background: var(--night); color: var(--night-ink); display: flex; flex-direction: column; align-items: center; padding-top: 26%; }
.lk-ico { font-size: calc(var(--w) * .07); color: var(--night-muted); }
.lock b { margin-top: 6%; font: 400 calc(var(--w) * .23)/1 var(--body); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.lock span:last-child { margin-top: 4%; font-size: calc(var(--w) * .055); color: var(--night-muted); }
.rscr { transform: translateY(calc((1 - var(--up, 1)) * 102%)); }
.rscr > * { position: absolute; }
.rs-lab { left: 0; right: 0; top: 8.5%; display: flex; justify-content: center; align-items: center; gap: .5em; font: 700 calc(var(--w) * .036)/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--label); }
.rs-clock { left: 2.8%; top: 14%; width: 94.4%; margin: 0; }
.rs-clock figcaption { margin-top: calc(var(--w) * .035); gap: calc(var(--w) * .01); }
.rs-clock .dig { font-size: calc(var(--w) * .16); }
.rs-clock .dig-d { font-size: calc(var(--w) * .052); }
.rs-auto { left: 0; right: 0; top: 71.5%; text-align: center; font: 600 calc(var(--w) * .042)/1 var(--body); color: var(--muted); }
.rs-auto b { font-weight: 600; font-variant-numeric: tabular-nums; }
.rs-btn { left: 4.8%; right: 4.8%; display: flex; align-items: center; justify-content: center; gap: .5em; border-radius: 999px; font: 600 calc(var(--w) * .05)/1 var(--body); }
.rs-snz { top: 78.2%; height: 7%; border: calc(var(--w) * .006) solid #D9CFC1; color: var(--ink); }
.rs-stop { top: 86.25%; height: 8.25%; background: var(--accent); color: #fff; font-weight: 700; font-size: calc(var(--w) * .062); }
.waves { position: absolute; left: 50%; top: calc(100svh - 34px - min(300px, calc((100svh - 250px) * .45)) * 1.1111); width: 0; height: 0; opacity: var(--wv, 1); }
.waves i { position: absolute; left: calc(min(300px, calc((100svh - 250px) * .45)) * -.6); top: calc(min(300px, calc((100svh - 250px) * .45)) * -.6); width: calc(min(300px, calc((100svh - 250px) * .45)) * 1.2); aspect-ratio: 1; border-radius: 50%; border: 2px solid var(--accent); opacity: 0; animation: wave 2.7s cubic-bezier(.2,.6,.3,1) infinite; }
.waves i:nth-child(2) { animation-delay: .9s; } .waves i:nth-child(3) { animation-delay: 1.8s; }
@keyframes wave { 0% { transform: scale(.7); opacity: .55; } 100% { transform: scale(2.1); opacity: 0; } }

/* ---------- 4. volume keys ---------- */
.aw-kph { --w: min(290px, calc((100svh - 250px) * .45)); left: calc(60% - var(--w) / 2); top: calc(100svh - 34px - var(--w) * 2.2222); }
.kp-snz { position: absolute; left: 4.815%; top: 78.167%; width: 90.37%; height: 7%; display: flex; align-items: center; justify-content: center; gap: .45em; border-radius: 999px; background: #FBF7F1; border: calc(var(--w) * .006) solid #D9CFC1; font: 600 calc(var(--w) * .046)/1 var(--body); color: var(--ink); opacity: var(--c1, 0); }
.kp-snz b { font-weight: 600; color: var(--accent); }
.kp-dim { position: absolute; inset: 0; border-radius: calc(var(--w) * .115); background: var(--night); opacity: max(var(--dm, 0) * .5, var(--off, 0)); }
.key { position: absolute; right: calc(var(--w) * -.034 - 6px); width: 7px; border-radius: 3px; background: #2C2522; }
.k-up { top: 20%; height: 8%; }
.k-dn { top: 30%; height: 8%; transform: translateX(calc(max(var(--pr, 0), var(--pr2, 0)) * -5px)); }
.k-dn::after { content: ""; position: absolute; inset: 0; border-radius: 3px; background: var(--accent); opacity: max(var(--pr, 0), var(--pr2, 0)); }
.kring { position: absolute; right: calc(var(--w) * -.034 - 30px); top: calc(34% - 28px); width: 56px; height: 56px; border-radius: 50%; border: 2.5px solid var(--accent);
  transform: scale(calc(.3 + max(var(--kr, 0) * (1 - var(--kr2, 0) * 0), 0) * 1.2)); opacity: calc(min(1, var(--kr, 0) * 30) * (1 - var(--kr, 0)) + min(1, var(--kr2, 0) * 30) * (1 - var(--kr2, 0))); }
.s-keys .toast { opacity: var(--to, 0); transform: translateY(calc((1 - var(--to, 0)) * 14px)); }
.kt1, .kt2 { left: calc(60% + min(290px, calc((100svh - 250px) * .45)) / 2 + 44px); top: calc(50% - 40px); }
.kt2 { top: calc(50% + 20px); }
.ksteps { position: absolute; right: calc(40% + min(290px, calc((100svh - 250px) * .45)) / 2 + 60px); top: calc(50% + 60px); transform: translateY(-50%); list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; width: 330px; }
.ksteps li { display: flex; align-items: center; gap: 14px; font: 600 19px/1.3 var(--body); opacity: calc(.25 + var(--r, 1) * .75); transform: translateX(calc((1 - var(--r, 1)) * -12px)); }
.ksteps b { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--hero); font: 700 15px/1 var(--body); color: var(--accent); }

/* ---------- 5. every widget ---------- */
.s-wid { --lm: 0; }
.aw-wp1, .aw-wp2 { --w: min(270px, calc((100svh - 260px) * .45)); top: calc(100svh - 34px - var(--w) * 2.2222); }
.aw-wp1 { left: calc(50% - var(--w) - 56px); }
.aw-wp2 { left: calc(50% + 56px); }
.s-wid .ph > img.wg { inset: auto; height: auto; object-fit: initial; background: none; border-radius: calc(var(--w) * .052); z-index: 2;
  box-shadow: 0 calc((1 - var(--a, 1)) * 30px + 2px) calc((1 - var(--a, 1)) * 50px + 6px) calc((1 - var(--a, 1)) * -10px) rgba(43,35,32,calc(.1 + (1 - var(--a, 1)) * .3));
  transform: translate(calc(var(--dx) * var(--w) * (1 - var(--a, 1)) - var(--l, 0) * var(--lm) * 130%), calc(var(--dy) * var(--w) * (1 - var(--a, 1)))) rotate(calc(var(--rz) * (1 - var(--a, 1)))) scale(calc(1 + (1 - var(--a, 1)) * .3));
  opacity: calc(min(1, var(--a, 1) * 2.5) * (1 - var(--l, 0) * var(--lm))); }
.s-wid .ph > img.wg-today { left: 4.63%; top: 6.83%; width: 90.74%; --dx: -.9; --dy: -.5; --rz: -9deg; }
.s-wid .ph > img.wg-count { left: 4.63%; top: 30.08%; width: 43.6%; --dx: -1.2; --dy: .2; --rz: 10deg; }
.s-wid .ph > img.wg-shop  { left: 51.85%; top: 30.08%; width: 43.5%; --dx: .5; --dy: .9; --rz: -8deg; }
.s-wid .ph > img.wg-quick { left: 4.63%; top: 53.33%; width: 90.74%; --dx: -.6; --dy: 1.1; --rz: 6deg; }
.s-wid .ph > img.wg-fam   { left: 4.63%; top: 6.83%; width: 90.74%; --dx: .9; --dy: -.5; --rz: 8deg; }
.s-wid .ph > img.wg-fit   { left: 4.63%; top: 30.08%; width: 43.6%; --dx: -.5; --dy: .9; --rz: -9deg; }
.s-wid .ph > img.wg-tall  { left: 51.85%; top: 30.08%; width: 43.5%; --dx: 1.2; --dy: .2; --rz: 9deg; }
.s-wid .ph > img.wg-smart { left: 4.63%; top: 53.33%; width: 43.6%; --dx: .4; --dy: 1.1; --rz: -6deg; }

/* ---------- 6. countdown ---------- */
.cd-pick { position: absolute; left: calc(50% - 440px); top: calc(50% + 60px); width: 400px; transform: translateY(-50%); }
.cd-head { margin-bottom: 14px; opacity: var(--r, 1); }
.cd-head b { display: block; font: 700 26px/1.1 var(--body); letter-spacing: -.01em; }
.cd-head span { display: block; margin-top: 4px; color: var(--muted); font-size: 15px; }
.cd-row, .cd-pickme { display: block; width: 100%; height: auto; margin-bottom: 9px; border-radius: 18px; box-shadow: 0 6px 16px -12px rgba(43,35,32,.3); opacity: var(--r, 1); transform: translateY(calc((1 - var(--r, 1)) * 22px)); }
.cd-pickme { position: relative; }
.cd-pickme img { display: block; width: 100%; height: auto; border-radius: 18px; }
.cd-pickme i { position: absolute; inset: -4px; border-radius: 22px; border: 3px solid var(--accent); opacity: var(--hi, 0); transform: scale(calc(1.05 - var(--hi, 0) * .05)); }
.cd-wall { position: absolute; left: calc(50% + 70px); top: calc(50% + 60px); padding: 30px; border-radius: 36px; background: var(--wall); transform: translateY(-50%) scale(calc(1.06 + var(--wi, 1) * .14)); opacity: var(--wi, 1); }
.cdw { width: 250px; padding: 16px 16px 14px; border-radius: 26px; background: #FBF7F1; box-shadow: 0 10px 24px -14px rgba(43,35,32,.4); }
.cdw-h { display: flex; align-items: center; gap: 10px; font: 600 16px/1.2 var(--body); }
.cdw-h i { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-bg); color: var(--accent); font-size: 17px; }
.cdw-box { margin-top: 12px; padding: 14px 14px 16px; border-radius: 18px; background: var(--hero); }
.cdw-d { display: block; font: 700 11px/1 var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--label); }
.cdw-n { display: flex; align-items: baseline; gap: 8px; margin-top: 8px; font-size: 15px; color: var(--muted); }
.cdw-n b { font: 700 60px/1 var(--body); letter-spacing: -.03em; color: var(--ink); font-variant-numeric: tabular-nums; }
.cdw-f { display: block; margin-top: 10px; font-size: 13px; color: var(--muted); }

/* ---------- 7. any size ---------- */
.slab { --sw: min(700px, 74vw); position: absolute; left: calc(50% - var(--sw) / 2); top: calc(50% + 40px - var(--sw) * .2704); width: var(--sw); aspect-ratio: 980 / 530; border-radius: 12px; background: var(--wall); box-shadow: 0 0 0 26px var(--wall); }
.grid { position: absolute; inset: 0; }
.grid i { position: absolute; width: 22.09%; height: 46.79%; border-radius: 14px; border: 2px dashed #E9DDCF; }
.grid i:nth-child(1) { left: 0; top: 0; } .grid i:nth-child(2) { left: 25.97%; top: 0; } .grid i:nth-child(3) { left: 51.94%; top: 0; } .grid i:nth-child(4) { left: 77.91%; top: 0; }
.grid i:nth-child(5) { left: 0; top: 53.21%; } .grid i:nth-child(6) { left: 25.97%; top: 53.21%; } .grid i:nth-child(7) { left: 51.94%; top: 53.21%; } .grid i:nth-child(8) { left: 77.91%; top: 53.21%; }
.plate { position: absolute; left: 0; top: 0; width: 100%; height: 100%; border-radius: 30px; background: #FBF7F1; transform-origin: 0 0; transform: scale(var(--sx, 1), var(--sy, 1)); opacity: var(--po, 0); }
.sz { position: absolute; left: 0; top: 0; height: auto; max-width: none; opacity: var(--o, 0); border-radius: 0; }
.sz1, .sz2 { width: 48.06%; } .sz3, .sz4 { width: 100%; }
.handle { position: absolute; left: -11px; top: -11px; width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 3px solid var(--accent); box-shadow: 0 4px 10px -3px rgba(43,35,32,.45); transform: translate(var(--hx, 0px), var(--hy, 0px)); opacity: var(--ho, 1); }
.szlab { position: absolute; left: 0; right: 0; top: calc(50% + 40px + min(700px, 74vw) * .2704 + 56px); text-align: center; }
.szlab b { display: inline-block; padding: 10px 18px; border-radius: 999px; background: var(--ink); color: #fff; font: 700 17px/1 var(--body); letter-spacing: .04em; font-variant-numeric: tabular-nums; }

/* ---------- 8. always up to date ---------- */
.fr-wall { position: absolute; left: 50%; top: calc(50% + 70px); padding: 30px; border-radius: 36px; background: var(--wall); transform: translate(-50%, -50%) scale(1.3); }
.shw { position: relative; width: 250px; padding: 16px 16px 14px; border-radius: 26px; background: #FBF7F1; box-shadow: 0 10px 24px -14px rgba(43,35,32,.4); }
.shw-h { display: flex; align-items: center; gap: 10px; font: 600 16px/1.2 var(--body); }
.shw-h i { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-bg); color: var(--accent); font-size: 17px; }
.shw-rows { position: relative; height: 168px; margin-top: 12px; }
.shw-r { position: absolute; left: 0; right: 0; top: 0; height: 56px; display: grid; grid-template-columns: 22px 1fr; column-gap: 12px; align-content: center; }
.shw-r i { grid-row: 1 / 3; align-self: center; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--muted); }
.shw-r b { font: 600 15px/1.2 var(--body); }
.shw-r em { font-style: normal; font-size: 12.5px; color: var(--muted); }
.shw-new { top: 56px; opacity: var(--a, 1); transform: translateX(calc((1 - var(--a, 1)) * -18px)); }
.shw-push { top: 56px; transform: translateY(calc(var(--a, 1) * 56px)); }
.shw-f { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
.shw-f span { font: 600 13px/1 var(--body); color: var(--accent); }
.shw-f i { width: 38px; height: 38px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font: 400 24px/1 var(--body); font-style: normal; }
.shw-glow { position: absolute; inset: -7px; border-radius: 32px; border: 3px solid var(--accent); opacity: var(--g, 0); transform: scale(calc(1.04 - var(--g, 0) * .04)); }
.fr-toast { left: calc(50% + 240px); top: calc(50% - 20px); opacity: var(--to, 0); transform: translateY(calc((1 - var(--to, 0)) * 14px)); }

/* ---------- phones (360 to 719 px): composed for the phone, not shrunk ----------
   alarms-widgets.js writes --ct (where content may start, under the headline
   and its line), --av (room left above a 24 px bottom margin) and --sh (stage
   height) on every scene. Screens are cropped to the part that matters. */
@media (max-width: 719px) {
  .s-faces .sub, .s-setup .sub, .s-ring .sub, .s-keys .sub, .s-wid .sub, .s-cd .sub, .s-size .sub, .s-fresh .sub { font-size: 15px; }

  /* intro: a bigger phone under the title */
  .aw-title { font-size: clamp(46px, 13.5vw, 64px); }
  .aw-title + .intro-s { top: calc(clamp(78px, 11svh, 104px) + clamp(46px, 13.5vw, 64px) * 1.86 + 14px); }
  .aw-xr { --w: min(236px, 60vw, calc((100svh - 300px) * .45)); left: calc(50% - var(--w) / 2); top: auto; bottom: 26px; }
  .aw-t1 { left: -28%; top: 7%; }
  .aw-t2 { left: 18%; top: 70%; }

  /* 1. faces: the face itself, big, no phone around it */
  .s-faces { --fw: min(310px, 86vw, calc((var(--av, 560px) - 64px) * .787)); --ftop: calc(var(--ct, 170px) + (var(--av, 560px) - 64px - var(--fw) * 1.2708) / 2); }
  .aw-fph { --w: var(--fw); width: var(--fw); aspect-ratio: 480 / 610; left: calc(50% - var(--fw) / 2); top: var(--ftop); border-radius: 28px; overflow: hidden; background: var(--bg); box-shadow: 0 0 0 1px var(--line), var(--soft); }
  .aw-fph::before, .aw-fph > img { display: none; }
  .fstack { top: 0; height: 100%; }
  .frail { display: none; }
  .fcount { right: auto; left: 0; width: 100%; top: calc(var(--ftop) + var(--fw) * 1.2708 + 18px); transform: none; display: flex; justify-content: center; align-items: baseline; gap: 10px; }
  .fcount b { font-size: 34px; }
  .fcount span { display: none; }
  .fcount em { display: block; font: 650 24px/1 var(--display); font-style: normal; color: var(--accent); }

  /* 2. set it once: the editor's parts, cropped and readable, dropping into one card */
  .s-setup { --ew: min(360px, calc(100vw - 32px)); --eh: calc((var(--ew) - 28px) * 1.43 + 32px + 28px); --etop: calc(var(--ct, 170px) + (var(--av, 560px) - var(--eh) - 48px) / 2); }
  .aw-eph { --w: var(--ew); width: var(--ew); aspect-ratio: auto; left: calc(50% - var(--ew) / 2); top: var(--etop); padding: 14px; border-radius: 26px; background: var(--bg); box-shadow: 0 0 0 1px var(--line), var(--soft); display: flex; flex-direction: column; gap: 8px; }
  .aw-eph::before, .aw-eph > img:first-child { display: none; }
  .aw-eph > img.ep, .aw-eph > img.ep-time, .aw-eph > img.ep-for, .aw-eph > img.ep-rep, .aw-eph > img.ep-snz, .aw-eph > img.ep-face { position: relative; left: auto; top: auto; width: 100%; height: auto; display: block; }
  .aw-eph > img.ep { transform: translateY(calc((1 - var(--a, 1)) * -34px)) scale(calc(1 + (1 - var(--a, 1)) * .06)); }
  .aw-tile { display: none; }
  .aw-note { left: var(--gut); right: var(--gut); width: auto; top: calc(var(--etop) + var(--eh) + 16px); text-align: center; font-size: 15px; }

  /* 3. rings over everything: a big phone, so the face reads */
  .s-ring { --rw: min(290px, 80vw, calc((var(--av, 560px) - 16px) * .45)); --rtop: calc(var(--ct, 200px) + 4px + (var(--av, 560px) - 16px - var(--rw) * 2.2222) / 2); }
  .aw-rph { --w: var(--rw); top: var(--rtop); }
  .waves { top: calc(var(--rtop) + var(--rw) * 1.1111); }
  .waves i { left: calc(var(--rw) * -.7); top: calc(var(--rw) * -.7); width: calc(var(--rw) * 1.4); }
  .waves i:nth-child(3) { display: none; }

  /* 4. volume keys: one big phone; the line under the headline says the steps */
  .s-keys { --kw: min(280px, 78vw, calc((var(--av, 560px) - 16px) * .45)); --ktop: calc(var(--ct, 200px) + 4px + (var(--av, 560px) - 16px - var(--kw) * 2.2222) / 2); }
  .aw-kph { --w: var(--kw); left: calc(50% - var(--kw) / 2); top: var(--ktop); }
  .key { width: 9px; right: calc(var(--w) * -.034 - 8px); }
  .kt1, .kt2 { left: 50%; top: calc(var(--ktop) + var(--kw) * .95); margin-left: -88px; }
  .kt2 { margin-left: -66px; }
  .ksteps { display: none; }

  /* 5. every widget: no phone, the widgets themselves on a wallpaper panel, two sets in turn */
  .s-wid { --lm: 1; --pw: min(380px, calc(100vw - 28px), calc((var(--av, 560px) - 6px) / 1.66)); --wtop: calc(var(--ct, 220px) + (var(--av, 560px) - var(--pw) * 1.66) / 2); }
  .aw-wp1, .aw-wp2 { --w: var(--pw); width: var(--pw); aspect-ratio: auto; min-height: calc(var(--pw) * 1.66); left: calc(50% - var(--pw) / 2); top: var(--wtop);
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 12px; align-content: start; align-items: start; }
  .aw-wp1::before, .aw-wp2::before, .aw-wp1 > .scr, .aw-wp2 > .scr { display: none; }
  .aw-wp1::after { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: 28px; background: var(--wall); transform-origin: 50% 0; transform: scaleY(calc(.81 + .19 * var(--wb, 0))); }
  .s-wid .ph > img.wg { position: relative; left: auto; top: auto; width: 100%; border-radius: 18px;
    transform: translate(calc(var(--dx) * 10px * (1 - var(--a, 1))), calc((var(--dy) * .5 + .7) * 60px * (1 - var(--a, 1)) - var(--l, 0) * var(--lm) * 40px)) rotate(calc(var(--rz) * .4 * (1 - var(--a, 1)))) scale(calc(1 + (1 - var(--a, 1)) * .08 - var(--l, 0) * var(--lm) * .06)); }
  .s-wid .ph > img.wg-today, .s-wid .ph > img.wg-quick, .s-wid .ph > img.wg-fam { grid-column: 1 / 3; }
  .s-wid .ph > img.wg-count, .s-wid .ph > img.wg-fit { grid-column: 1; }
  .s-wid .ph > img.wg-shop { grid-column: 2; }
  .s-wid .ph > img.wg-fit { grid-row: 2; } .s-wid .ph > img.wg-tall { grid-column: 2; grid-row: 2 / 4; } .s-wid .ph > img.wg-smart { grid-column: 1; grid-row: 3; }

  /* 6. countdown: the real picker rows, wide enough to read, then the widget */
  .cd-pick { left: 20px; right: 20px; width: auto; top: calc(var(--ct, 200px) + 4px); transform: none; }
  .cd-head { display: none; }
  .cd-row, .cd-pickme { margin-bottom: 6px; border-radius: 12px; }
  .cd-pickme img { border-radius: 12px; }
  .cd-wall { left: 50%; top: auto; bottom: 24px; padding: 18px; border-radius: 28px; transform: translateX(-50%) scale(calc(.9 + var(--wi, 1) * .1)); }
  .cdw { width: 210px; padding: 12px; border-radius: 20px; }
  .cdw-n b { font-size: 48px; }

  /* 7. any size: centred in the room under the headline */
  .slab { --sw: calc(100vw - 40px); top: calc(var(--ct, 180px) + 14px + (var(--av, 560px) - var(--sw) * .5408 - 90px) / 2); box-shadow: 0 0 0 14px var(--wall); border-radius: 8px; }
  .grid i { border-radius: 8px; }
  .plate { border-radius: 16px; }
  .szlab { top: calc(var(--ct, 180px) + 14px + (var(--av, 560px) - (100vw - 40px) * .5408 - 90px) / 2 + (100vw - 40px) * .5408 + 40px); }
  .handle { width: 26px; height: 26px; left: -13px; top: -13px; }

  /* 8. always up to date */
  .fr-wall { padding: 20px; top: calc(var(--ct, 170px) + 56px + (var(--av, 560px) - 56px) / 2); transform: translate(-50%, -50%) scale(1.08); }
  .fr-toast { left: 50%; top: calc(var(--ct, 170px) + 4px); margin-left: -86px; }
}
@media (max-width: 380px) { .shw-r b { font-size: 16px; } }

/* ---------- no motion ---------- */
.rm .waves { display: none; }
