/* colours: the page's tokens (--rack, --panel-2, --ink, --dim, --lime) since 2026-09-26, the owner: the phone looked
   like another app on this page; the chat keeps WhatsApp's layout, not its green */
/* ─────────────────────────────────────────────────────────────────────────
   rtorrent16.html, row 06 (#notify): a phone over the Notifications cut-out,
   showing a finished download as it arrives on WhatsApp: the poster with the
   classic caption under it (lib/enrich.php), a tap on the trailer link, a
   video page drawn in blocks, and the phone fading out as the film starts.
   assets/rt16-wa.js builds the phone inside <div class="rt-wa"> and moves it
   through the phases by classes (.wa-p1 ... .wa-p7); this sheet draws it.

   The phone is laid out on a fixed 300 x 640 canvas and scaled to the tray
   (--k) and placed (--x, --y) by the script, so the row keeps its height.
   It is the sibling of the phones in "On a phone": the same glass tray
   (radius 30, lip 6, the inset highlight, a deep soft shadow), with an
   opaque back because it stands over a picture, not over the page.
   Transform and opacity only move; one curve, var(--ease-seat).
   ───────────────────────────────────────────────────────────────────────── */

/* the tray becomes the phone's reference box; nothing about its size changes */
#notify .rt-tray{position:relative}
/* the cut-out behind steps back while the phone is up (the script sets .wa-on on the row) */
#notify .rt-plate{transition:opacity 1s var(--ease-seat)}
#notify.wa-on .rt-plate{opacity:.35}

.rt-wa{position:absolute;inset:0;z-index:2;pointer-events:none;user-select:none;-webkit-user-select:none}
.rt-wa *{box-sizing:border-box}
/* --k scales by zoom, not by a transform: zoom lays the text out again at the new size, so it keeps its hinting and
   spacing on a 1x screen, where a scaled layer rounds each glyph's position and the words look uneven */
.wa-fit{position:absolute;left:0;top:0;transform:translate(var(--x,0px),var(--y,0px))}
@supports not (zoom:1){.wa-fit{transform-origin:0 0;transform:translate(var(--x,0px),var(--y,0px)) scale(var(--k,1))}}

/* ── the body: glass tray over an opaque back ─────────────────────────── */
.wa-ph{
  position:relative;width:300px;height:640px;zoom:var(--k,1);padding:6px;border-radius:30px;border:1px solid var(--rule-hi,#33424B);
  background:linear-gradient(180deg,rgba(255,255,255,.075),rgba(255,255,255,.018) 42%,rgba(255,255,255,0)),#0c1115;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.09),0 30px 70px rgba(0,0,0,.55),0 70px 120px -40px rgba(0,0,0,.7);
  opacity:0;transform:translateY(46px) scale(.965);
  transition:opacity .8s var(--ease-seat),transform 1.1s var(--ease-seat);
}
.wa-p1 .wa-ph{opacity:1;transform:none}
/* the film is about to start: the phone steps back and goes out */
.wa-p7 .wa-ph{opacity:0;transform:translateY(12px) scale(.985);
  transition:opacity 1.1s cubic-bezier(.4,0,.2,1),transform 1.3s var(--ease-seat)}
.wa-scr{position:relative;height:100%;border-radius:24px;overflow:hidden;isolation:isolate;
  background:var(--rack,#0F1418);border:1px solid var(--rule,#222D34);
  font-family:var(--sans);color:var(--ink,#D8E0E4);-webkit-font-smoothing:antialiased}

/* ── the status bar, shared by both screens ───────────────────────────── */
.wa-sb{position:relative;display:flex;align-items:center;justify-content:space-between;height:24px;padding:0 14px 0 16px;
  font-size:10.5px;font-weight:600;letter-spacing:.01em;color:var(--ink,#D8E0E4)}
.wa-sb svg{display:block;height:10px;width:auto;fill:var(--ink,#D8E0E4)}
.wa-sb span{display:flex;align-items:center;gap:4px}
.wa-sb::after{content:"";position:absolute;left:50%;top:7px;width:9px;height:9px;margin-left:-4.5px;border-radius:50%;
  background:#05080a;box-shadow:inset 0 0 0 1.5px #161d22}   /* the camera hole */
.wa-home{position:absolute;left:50%;bottom:6px;width:92px;height:3.5px;margin-left:-46px;border-radius:2px;background:rgba(216,224,228,.42)}

/* ── WhatsApp: header, chat, composer ─────────────────────────────────── */
.wa-app{position:absolute;inset:0;display:flex;flex-direction:column;
  transition:opacity .45s var(--ease-seat),transform .6s var(--ease-seat);transform-origin:50% 60%}
.wa-app .wa-sb{background:var(--panel-2,#1A2329)}
.wa-hd{display:flex;align-items:center;gap:8px;height:50px;padding:0 10px 0 6px;background:var(--panel-2,#1A2329)}
.wa-ic{flex:none;width:19px;height:19px;fill:none;stroke:#aebac1;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.wa-hd .wa-ic + .wa-ic{margin-left:8px}
.wa-av{flex:none;display:grid;place-items:center;width:32px;height:32px;border-radius:50%;
  background:radial-gradient(circle at 35% 30%,#24313a,#131b20 70%);box-shadow:inset 0 0 0 1px rgba(255,176,32,.35)}
.wa-av b{font:700 13px/1 var(--cond);letter-spacing:.01em;color:var(--led,#FFB020)}
.wa-nm{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px;margin-left:2px}
.wa-nm b{font-size:13.5px;font-weight:500;line-height:1.1;color:var(--ink,#D8E0E4);white-space:nowrap}

/* the wallpaper: dark, with two faint dot grids standing in for the doodles */
.wa-chat{position:relative;flex:1;min-height:0;display:flex;flex-direction:column;justify-content:flex-end;padding:8px 10px 6px;
  background-color:var(--rack,#0F1418);
  background-image:radial-gradient(circle,rgba(216,224,228,.045) 1px,transparent 1.6px),radial-gradient(circle,rgba(216,224,228,.028) 1.6px,transparent 2.4px);
  background-size:18px 18px,46px 46px;background-position:0 0,11px 23px}
.wa-day{align-self:center;margin:0 0 10px;padding:4px 9px;border-radius:7px;background:#182229;
  font-size:10px;font-weight:500;letter-spacing:.02em;color:var(--dim,#7C8B93);box-shadow:0 1px 2px rgba(0,0,0,.3)}
.wa-day,.wa-msg{opacity:0;transform:translateY(14px) scale(.96);transform-origin:0 100%;
  transition:opacity .4s var(--ease-seat),transform .65s var(--ease-seat)}
.wa-day{transform:translateY(10px)}
.wa-p2 .wa-day,.wa-p2 .wa-msg{opacity:1;transform:none}
.wa-p2 .wa-msg{transition-delay:.06s}

/* an incoming image message: the bubble, its tail, the picture, the caption, the time */
.wa-msg{position:relative;align-self:flex-start;width:232px;margin-left:7px;padding:3px;border-radius:0 8px 8px 8px;
  background:var(--panel-2,#1A2329);box-shadow:0 1px 2px rgba(0,0,0,.35)}
.wa-msg::before{content:"";position:absolute;left:-7px;top:0;width:8px;height:12px;background:var(--panel-2,#1A2329);
  clip-path:polygon(0 0,100% 0,100% 100%)}
.wa-img{display:block;height:236px;border-radius:6px;overflow:hidden;background:#101a20}
.wa-img svg{display:block;width:100%;height:100%}
.wa-cap{position:relative;margin:0;padding:5px 6px 5px 6px;font-size:11.5px;line-height:1.43;color:var(--ink,#D8E0E4);
  white-space:pre-wrap;overflow-wrap:anywhere}
.wa-cap b{font-weight:600}
.wa-cap i{font-style:italic}
.wa-a{color:#67e8f9;overflow-wrap:anywhere;border-radius:3px;-webkit-box-decoration-break:clone;box-decoration-break:clone}
.wa-at{position:relative;display:inline-block}
.wa-sp{display:inline-block;width:30px}
.wa-tm{position:absolute;right:6px;bottom:4px;font-size:9.5px;line-height:1;color:var(--dim,#7C8B93)}

/* the tap on the trailer link: the pressed link, a touch point, one ring going out */
.wa-p3 .wa-a{background:rgba(103,232,249,.2)}
.wa-touch{position:absolute;left:62%;top:55%;width:26px;height:26px;margin:-13px 0 0 -13px;border-radius:50%;
  background:rgba(216,224,228,.3);border:1px solid rgba(216,224,228,.2);opacity:0;transform:scale(1.7)}
.wa-touch::after{content:"";position:absolute;inset:-1px;border-radius:50%;border:1.5px solid rgba(216,224,228,.6);opacity:0}
.wa-p3 .wa-touch{opacity:1;transform:scale(1);transition:opacity .16s ease-out,transform .32s var(--ease-seat)}
.wa-p3 .wa-touch::after{animation:wa-ring .7s var(--ease-seat) .1s both}
.wa-p4 .wa-touch{opacity:0;transition:opacity .25s ease-out}
@keyframes wa-ring{0%{opacity:.85;transform:scale(1)}100%{opacity:0;transform:scale(2.6)}}

.wa-cp{display:flex;align-items:center;gap:6px;padding:6px 8px 16px;background:var(--rack,#0F1418)}
.wa-in{flex:1;min-width:0;display:flex;align-items:center;gap:9px;height:38px;padding:0 12px;border-radius:19px;background:var(--panel-2,#1A2329)}
.wa-in em{flex:1;font-style:normal;font-size:12.5px;color:var(--dim,#7C8B93)}
.wa-in .wa-ic{width:18px;height:18px;stroke:var(--dim,#7C8B93)}
.wa-mic{flex:none;display:grid;place-items:center;width:38px;height:38px;border-radius:50%;background:var(--lime,#A6E22E)}
.wa-mic .wa-ic{width:18px;height:18px;stroke:#101507;stroke-width:2}

/* ── the video page, in blocks only ───────────────────────────────────── */
.wa-yt{position:absolute;inset:0;background:#0f0f0f;opacity:0;transform:translateY(22px) scale(.97);transform-origin:50% 62%;
  transition:opacity .38s cubic-bezier(.4,0,.2,1),transform .6s var(--ease-seat)}
.wa-p4 .wa-yt{opacity:1;transform:none}
.wa-p4 .wa-app{opacity:.35;transform:scale(.95)}
.wa-yt .wa-sb{background:#0f0f0f}
.wa-vid{position:relative;height:161px;background:#000;overflow:hidden}
/* the first frame: sky, meadow and the rabbit as blocks, dim until the film starts */
.wa-fr{position:absolute;inset:0;opacity:.22;transition:opacity .9s var(--ease-seat);
  background:linear-gradient(180deg,#6e9fc4 0%,#b9d5c9 58%,#6fa64c 58%,#4d8a39 100%)}
.wa-fr i{position:absolute;display:block}
.wa-fr .h{left:-10%;right:-10%;top:50%;height:22%;border-radius:50%;background:#89bf5d}
.wa-fr .t{left:8%;top:-4%;width:9%;height:76%;border-radius:3px;background:#5d4230}
.wa-fr .c{left:-2%;top:-18%;width:30%;height:44%;border-radius:50%;background:#3d763a}
.wa-fr .r{left:52%;top:44%;width:17%;height:40%;border-radius:44% 44% 30% 30%;background:#e4e1d9}
.wa-fr .d{left:54.7%;top:26.4%;width:10.9%;height:23.2%;border-radius:50%;background:#e4e1d9}
.wa-fr .e{top:8%;width:2.4%;height:22%;border-radius:40%;background:#e4e1d9}
.wa-fr .e:nth-child(6){left:57.4%}   /* the two ears, sixth and seventh in the frame */
.wa-fr .e:nth-child(7){left:61.4%}
.wa-p6 .wa-fr{opacity:1}
.wa-play{position:absolute;left:50%;top:50%;width:46px;height:46px;margin:-23px 0 0 -23px;border-radius:50%;
  background:rgba(0,0,0,.55);box-shadow:inset 0 0 0 1px rgba(255,255,255,.14);
  transition:opacity .25s ease-out,transform .35s var(--ease-seat)}
.wa-play::after{content:"";position:absolute;left:18px;top:14px;width:15px;height:18px;background:#f1f1f1;
  clip-path:polygon(0 0,100% 50%,0 100%)}
.wa-p5 .wa-play{opacity:0;transform:scale(.8)}
.wa-spin{position:absolute;left:50%;top:50%;width:28px;height:28px;margin:-14px 0 0 -14px;border-radius:50%;
  border:2.5px solid rgba(241,241,241,.92);border-right-color:transparent;opacity:0;transition:opacity .2s ease-out}
.wa-p5 .wa-spin{opacity:1;animation:wa-spin .75s linear infinite}
.wa-p6 .wa-spin{opacity:0;animation-play-state:paused}
@keyframes wa-spin{to{transform:rotate(360deg)}}
.wa-bar{position:absolute;left:0;right:0;bottom:0;height:3px;background:rgba(241,241,241,.22)}
.wa-bar i{position:absolute;inset:0;background:#f00;transform-origin:0 50%;transform:scaleX(0)}
.wa-bar b{position:absolute;left:-5px;top:-3.5px;width:10px;height:10px;border-radius:50%;background:#f00;opacity:0;transform:translateX(0)}
.wa-p6 .wa-bar i{transform:scaleX(.16);transition:transform 3.6s linear}
.wa-p6 .wa-bar b{opacity:1;transform:translateX(45.4px);transition:opacity .2s,transform 3.6s linear}   /* .16 of the 284 px picture */

.wa-ytb{padding:11px 12px 0}
.wa-ytb i{display:block;border-radius:3px}
.wa-q{height:11px;background:#e2e2e2;opacity:.9}
.wa-q + .wa-q{margin-top:6px}
.wa-m{height:7px;margin-top:9px;background:#5a5a5a}
.wa-ch{display:flex;align-items:center;gap:8px;margin-top:14px}
.wa-ch .av{flex:none;width:28px;height:28px;border-radius:50%;background:#3a3a3a}
.wa-ch .n{width:74px;height:9px;background:#cfcfcf;opacity:.85}
.wa-ch .s{width:28px;height:7px;background:#5a5a5a}
.wa-ch .sub{margin-left:auto;width:70px;height:28px;border-radius:14px;background:#f1f1f1}
.wa-pills{display:flex;gap:7px;margin:14px -12px 0 0;overflow:hidden}
.wa-pills i{flex:none;height:28px;border-radius:14px;background:#272727}
.wa-cm{margin-top:14px;padding:11px 12px;border-radius:10px;background:#1c1c1c}
.wa-cm i{height:7px;background:#4a4a4a}
.wa-cm i + i{margin-top:7px;background:#343434}
.wa-rel{margin:14px -12px 0}
.wa-rel .th{position:relative;height:161px;border-radius:0;background:linear-gradient(135deg,#1f2226,#191b1e)}
.wa-rel .du{position:absolute;right:8px;bottom:8px;width:30px;height:13px;border-radius:3px;background:rgba(0,0,0,.72)}
.wa-rm{display:flex;gap:10px;padding:11px 12px 0}
.wa-rm .av{flex:none;width:28px;height:28px;border-radius:50%;background:#3a3a3a}
.wa-rm span{flex:1;display:block;padding-top:2px}
.wa-rm span i{width:88%;height:9px;background:#cfcfcf;opacity:.8}
.wa-rm span i + i{width:52%;height:7px;margin-top:7px;background:#5a5a5a;opacity:1}

/* ── the script's switches: a reset jumps, a still frame never moves ──── */
.wa-reset *,.wa-still *{transition:none!important;animation:none!important}
@media (prefers-reduced-motion:reduce){
  .rt-wa *,#notify .rt-plate{transition:none!important;animation:none!important}
}
