/* Chrysalis v2: the home page "Your account" card, a phone in place of the parcel (Claude, 18 Nov 2026; inc/v2/v2-acct-art.php,
   option chv2_acct_art = a | b | c). Loaded on the home page only while the switch is on, after v2-acct2.css. Only the picture
   beside the lines changes; the card's grid, words, lines and button are offers.css / v2-acct2.css as before.
     a  a phone (black, a thin silver edge, the island), the three app pictures one under the other on its screen;
     b  the three pictures as floating app cards;
     c  the same phone, the calculator picture alone.
   Every picture is shown whole: scaled down, never cut. The art box: on a computer as high as the card's words and button (the
   phone stands beside both); on a phone today's box, at least 172 px high. Inside it the picture is sized by the box (container
   units: cqw/cqh of .chvaa, then cqw of the phone), so it fits whatever the box is. */

/* ---------- the art box ---------- */
@media (min-width:900px){
  .c3-root .chva-card__art:has(> .chvaa){align-self:stretch;aspect-ratio:auto}
}
@media (max-width:899.98px){
  .c3-root .chva-card__art:has(> .chvaa){min-height:172px}
}
.c3-root .chvaa{position:absolute;inset:0;z-index:1;display:grid;place-items:center;container-type:size;pointer-events:none}

/* ---------- a, c: the phone ----------
   1:2, the size of the box's height (or its width, if that is less). Its parts in % of its own width (cqw): the silver edge,
   a black rim, the screen with the island at the top and the home bar at the foot. */
.c3-root .chvaa-phone{position:relative;display:block;width:min(98cqw,49cqh);aspect-ratio:1 / 2;container-type:inline-size;
  transition:transform .55s var(--ease,ease)}
.c3-root .chvaa-body{position:absolute;inset:0;display:block;box-sizing:border-box;border-radius:16cqw;
  border:max(1px,1.1cqw) solid transparent;
  background:linear-gradient(#050506,#050506) padding-box,
    linear-gradient(152deg,#f7f8fa 0%,#a3a6ad 11%,#43454b 27%,#cfd2d7 45%,#80838a 58%,#34363b 75%,#b7bac0 89%,#f2f3f5 100%) border-box;
  box-shadow:0 2cqw 5cqw rgba(0,0,0,.55),0 12cqw 26cqw -8cqw rgba(0,0,0,.9)}
.c3-root .chvaa-screen{position:absolute;inset:3cqw;display:flex;flex-direction:column;align-items:stretch;justify-content:center;gap:3cqw;
  box-sizing:border-box;padding:13.5cqw 2.8cqw 7.5cqw;border-radius:12.6cqw;overflow:hidden;
  background:radial-gradient(130% 55% at 50% 0%,#202126 0%,#111114 52%,#08080a 100%)}
.c3-root .chvaa-isl{position:absolute;left:50%;top:3.2cqw;width:29cqw;height:8.6cqw;margin-left:-14.5cqw;border-radius:99px;background:#000;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.07)}
.c3-root .chvaa-isl::after{content:"";position:absolute;right:9%;top:50%;width:3.4cqw;height:3.4cqw;margin-top:-1.7cqw;border-radius:50%;
  background:radial-gradient(circle at 35% 35%,#39415a,#0b0d14 70%)}
.c3-root .chvaa-bar{position:absolute;left:50%;bottom:2.4cqw;width:34cqw;height:max(1px,1.3cqw);margin-left:-17cqw;border-radius:99px;background:rgba(255,255,255,.5)}
/* the app pictures, 86.2 % of the phone's width, rounded like the app's own cards (the pictures' black corners stay outside the
   rounding). The three are 1.792 x their width high: 154.5 + 2 gaps of 3 + 13.5 above + 7.5 below = 181.5 of the screen's 191.8
   (all in cqw); the rest is shared above and below. */
.c3-root .chvaa-screen .chvaa-t{flex:none;display:block;width:100%;max-width:none;height:auto;border-radius:4cqw;
  box-shadow:0 0 0 1px rgba(255,255,255,.06)}
.c3-root .chvaa-screen .chvaa-t--order{border-radius:4.2cqw}
.c3-root .chvaa-screen .chvaa-t--again{border-radius:4.8cqw}
/* the glass: a faint light from the top left corner */
.c3-root .chvaa-screen::after{content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;
  background:linear-gradient(118deg,rgba(255,255,255,.07) 0%,rgba(255,255,255,0) 34%)}
/* c: the calculator alone, on a soft pool of light */
.c3-root .chvaa--c .chvaa-screen{
  background:radial-gradient(95% 34% at 50% 50%,#24252a 0%,rgba(17,17,20,0) 100%),radial-gradient(130% 55% at 50% 0%,#202126 0%,#111114 52%,#08080a 100%)}

/* ---------- b: three floating cards ----------
   Each card is --t wide: the calculator at the left, the order a little to the right, buy again between them. Each one only
   covers the bare foot of the one above (the calculator's last 61 of its 560 px rows are empty card, the order's last 48 of 451;
   the overlaps are .075 and .055 --t, i.e. 48 and 35 of them), so every word, the syringe and the vial stay in view. The group
   is 1.14 --t wide and 1.6622 --t high, centred in the box. */
.c3-root .chvaa--b{--t:min(86cqw,59cqh);--x:calc((100cqw - 1.14 * var(--t)) / 2);--y:calc((100cqh - 1.6622 * var(--t)) / 2)}
.c3-root .chvaa--b .chvaa-t{position:absolute;display:block;width:var(--t);max-width:none;height:auto;border-radius:calc(var(--t) * .046);
  box-shadow:0 0 0 1px rgba(255,255,255,.07),0 calc(var(--t) * .05) calc(var(--t) * .12) rgba(0,0,0,.7);transition:transform .55s var(--ease,ease)}
.c3-root .chvaa--b .chvaa-t--calc{left:var(--x);top:var(--y)}
.c3-root .chvaa--b .chvaa-t--order{left:calc(var(--x) + .14 * var(--t));top:calc(var(--y) + .8 * var(--t));border-radius:calc(var(--t) * .049)}
.c3-root .chvaa--b .chvaa-t--again{left:calc(var(--x) + .07 * var(--t));top:calc(var(--y) + 1.4497 * var(--t));border-radius:calc(var(--t) * .056)}

/* ---------- hover: the picture rises a little, as the parcel did ---------- */
@media (prefers-reduced-motion:no-preference){
  .c3-root .of-b__card:hover .chvaa-phone{transform:translateY(-2%)}
  .c3-root .of-b__card:hover .chvaa--b .chvaa-t--calc{transform:translate(-3%,-3%)}
  .c3-root .of-b__card:hover .chvaa--b .chvaa-t--again{transform:translateY(4%)}
}
@media (prefers-reduced-motion:reduce){.c3-root .chvaa-phone,.c3-root .chvaa--b .chvaa-t{transition:none}}

/* ---------- browsers without container units ----------
   Safari before 16, Chrome before 105, Firefox before 110 cannot size the new picture (cqw/cqh): they keep today's parcel, which the
   markup still carries right after it; every other browser hides the parcel (and the coin, if it ever comes back). */
@supports (container-type:size){
  .c3-root .chvaa ~ .chva-card__box,.c3-root .chvaa ~ .chva-card__coin{display:none}
}
@supports not (container-type:size){
  .c3-root .chvaa{display:none}
}
