/* Gift voucher (#1126): the same two-sided card on the site (envelope stage) and in /assets/poukaz.html (print).
   Card = 200 x 95 mm; everything inside scales with the card width (cqw), so the print matches the preview. */
@font-face{font-family:"Fraunces";font-style:normal;font-weight:300 800;font-display:swap;src:url(/assets/fonts/fraunces-normal-latin.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Fraunces";font-style:normal;font-weight:300 800;font-display:swap;src:url(/assets/fonts/fraunces-normal-latin-ext.woff2) format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1E00-1E9F,U+20A0-20AB,U+20AD-20C4,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:"Fraunces";font-style:italic;font-weight:300 800;font-display:swap;src:url(/assets/fonts/fraunces-italic-latin.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Fraunces";font-style:italic;font-weight:300 800;font-display:swap;src:url(/assets/fonts/fraunces-italic-latin-ext.woff2) format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1E00-1E9F,U+20A0-20AB,U+20AD-20C4,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:"Archivo";font-style:normal;font-weight:400 800;font-stretch:75% 125%;font-display:swap;src:url(/assets/fonts/archivo-normal-latin.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Archivo";font-style:normal;font-weight:400 800;font-stretch:75% 125%;font-display:swap;src:url(/assets/fonts/archivo-normal-latin-ext.woff2) format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1E00-1E9F,U+20A0-20AB,U+20AD-20C4,U+2C60-2C7F,U+A720-A7FF}

/* ---- motifs: paper, ink, accent, foil, rails, tram windows */
[data-design]{--bg:#f4ede0;--bg2:#e9dcc4;--ink:#2a1417;--acc:#c8102e;--foil1:#8a6326;--foil2:#e9cf8f;--rail:#9b8b76;--sl:#d8c9ae;--win:#2b2f3a;--hl:#fff3c4;
  --c1:#1f4e79;--c2:#3c3c3c;--c3:#7a1f2b;--tk:#fffaf0}
[data-design="noc"]{--bg:#0f1a2f;--bg2:#1b2b4a;--ink:#f4e9d4;--acc:#f3b24e;--foil1:#a77a2e;--foil2:#f7dc9a;--rail:#55617a;--sl:#26344f;--win:#ffd479;--hl:#fff1b0;
  --c1:#c9d3e6;--c2:#7a8aa8;--c3:#d0583f;--tk:#f6efdf}
[data-design="jaro"]{--bg:#f1f2e6;--bg2:#dfe6cd;--ink:#1d3a2b;--acc:#d45a7a;--foil1:#7f6a2c;--foil2:#e2cf8b;--rail:#8e9c84;--sl:#cfd8bd;--win:#27362e;--hl:#fff3c4;
  --c1:#2f6b4f;--c2:#e2a0b0;--c3:#3c4f8f;--tk:#fffdf5}
[data-design="hrad"]{--bg:#2a1226;--bg2:#4a2142;--ink:#f6e9d9;--acc:#eab865;--foil1:#a8792c;--foil2:#f6dc9c;--rail:#6e4b66;--sl:#3b1d36;--win:#ffd479;--hl:#fff1b0;
  --c1:#e9dcc8;--c2:#9b7aa0;--c3:#c8102e;--tk:#f7eedd}
/* Christmas (#1130): vanoce = pine green + red + gold, garland on top; snih = snowy white Prague, full-bleed photo on the right */
[data-design="vanoce"]{--bg:#0f2e1e;--bg2:#1d4a31;--ink:#f8f0e1;--acc:#e8473f;--foil1:#a8792c;--foil2:#f6dc9c;--rail:#557a62;--sl:#183c28;--win:#ffd479;--hl:#fff1b0;
  --c1:#e8473f;--c2:#f2efe6;--c3:#d9a441;--tk:#fbf5e8}
[data-design="snih"]{--bg:#eef3f8;--bg2:#d3e0ed;--ink:#13264a;--acc:#b3122e;--foil1:#8f7232;--foil2:#e6cf8f;--rail:#9fb0c4;--sl:#d2dde9;--win:#26314d;--hl:#fff3c4;
  --c1:#13264a;--c2:#b3122e;--c3:#6f8fb3;--tk:#fffdf8}

.vch{--serif:"Fraunces",Georgia,"Times New Roman",serif;--sans:"Archivo",ui-sans-serif,system-ui,"Segoe UI",sans-serif;
  container-type:inline-size;position:relative;width:100%;aspect-ratio:200/95;transform-style:preserve-3d;
  transition:transform .9s cubic-bezier(.3,1.25,.4,1);-webkit-print-color-adjust:exact;print-color-adjust:exact;color:var(--ink)}
.vch.flip{transform:rotateY(180deg)}
.vch.pop{animation:vchPop .5s cubic-bezier(.3,1.6,.5,1)}
@keyframes vchPop{40%{scale:1.025}}
.vch-face{position:absolute;inset:0;overflow:hidden;border-radius:1.6cqw;backface-visibility:hidden;-webkit-backface-visibility:hidden;
  background:radial-gradient(90% 120% at 0% 0%,var(--bg2),transparent 60%),radial-gradient(60% 90% at 100% 100%,color-mix(in srgb,var(--bg2) 70%,transparent),transparent 70%),var(--bg)}
.vch-b{transform:rotateY(180deg)}
/* paper grain + light sheen (site only, the print gets real paper) */
.vch-face::after{content:"";position:absolute;inset:0;pointer-events:none;opacity:.22;mix-blend-mode:multiply;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .45 0 0 0 0 .4 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E")}
.vch-face::before{content:"";position:absolute;inset:0;z-index:5;pointer-events:none;mix-blend-mode:soft-light;
  background:linear-gradient(105deg,transparent calc(var(--gx,30%) - 28%),rgba(255,255,255,.55) var(--gx,30%),transparent calc(var(--gx,30%) + 28%))}

/* ---- frame: rails around the edge with trams, buses and cars riding them */
.vch-frame{position:absolute;inset:0;width:100%;height:100%;overflow:visible}
.tk-sl{fill:none;stroke:var(--sl);stroke-width:15;stroke-dasharray:3 9}
.tk-r1{fill:none;stroke:var(--rail);stroke-width:12}
.tk-r2{fill:none;stroke:var(--bg);stroke-width:8}
.vch-frame .rd{fill:#c8102e}.vch-frame .cr{fill:#f3ead8}.vch-frame .bw{fill:#f1f1ee}
.vch-frame .wn{fill:var(--win)}.vch-frame .pn{stroke:var(--rail)}.vch-frame .wh circle{fill:#1a1a1a}.vch-frame .hl{fill:var(--hl)}
.vch-frame .c1{fill:var(--c1)}.vch-frame .c2{fill:var(--c2)}.vch-frame .c3{fill:var(--c3)}

/* ---- front: text left, in-game shot right, foil seal on the seam */
.vch-l{position:absolute;left:6.6%;top:11%;bottom:10.5%;width:39.5%;display:flex;flex-direction:column;z-index:1}
.vch-l p{margin:0}
.vch-brand{font:700 1.25cqw/1 var(--sans);font-stretch:112%;letter-spacing:.24em;text-transform:uppercase;color:var(--acc);display:flex;align-items:center;gap:1cqw}
.vch-brand::before{content:"";width:3.2cqw;height:.22cqw;background:currentColor;box-shadow:0 .55cqw 0 currentColor}
.vch-h{margin-top:2cqw!important;font:600 6.3cqw/.9 var(--serif);font-variation-settings:"opsz" 144,"SOFT" 30;letter-spacing:-.02em}
.vch-h em{display:block;font-style:italic;font-weight:400;padding-left:4cqw;
  background:linear-gradient(100deg,var(--foil1),var(--foil2) 45%,var(--foil1) 70%,var(--foil2));-webkit-background-clip:text;background-clip:text;color:transparent}
.vch-sub{margin-top:1.3cqw!important;font:600 1.35cqw/1 var(--sans);font-stretch:105%;letter-spacing:.18em;text-transform:uppercase;opacity:.7}
.vch-orn{display:block;height:.9cqw;margin:2.1cqw 0 1.7cqw;width:62%;
  background:radial-gradient(circle,var(--acc) 0 .38cqw,transparent .42cqw) left center/.9cqw .9cqw no-repeat,
    linear-gradient(var(--acc),var(--acc)) 1.3cqw 50%/100% .12cqw no-repeat}
.vch-to{font:400 1.45cqw/1.2 var(--sans);letter-spacing:.2em;text-transform:uppercase;opacity:.95}
.vch-to b{display:block;margin-top:.5cqw;font:italic 500 3.5cqw/1.05 var(--serif);letter-spacing:0;text-transform:none;color:var(--acc);overflow-wrap:anywhere}
.vch-msg{margin-top:1.4cqw!important;font:italic 350 2.35cqw/1.32 var(--serif);white-space:pre-line;overflow-wrap:anywhere;opacity:.92}
.vch[data-len="2"] .vch-msg{font-size:2.05cqw}
.vch[data-len="3"] .vch-msg{font-size:1.72cqw;line-height:1.28}
.vch[data-len="4"] .vch-msg{font-size:1.5cqw;line-height:1.26}
.vch[data-len="3"] .vch-h,.vch[data-len="4"] .vch-h{font-size:5cqw}
.vch[data-len="3"] .vch-orn,.vch[data-len="4"] .vch-orn{margin:1.3cqw 0 1.1cqw}
.vch-od{margin-top:1.2cqw!important;font:italic 400 2.2cqw/1.1 var(--serif);color:var(--acc)}
.vch-od b{font-weight:500}
.vch.no-od .vch-od{display:none}
.vch-msg:empty::before,.vch-to b:empty::before,.tk-code:empty::before{content:attr(data-ph);opacity:.5}
.vch-sky{position:absolute;left:-1%;right:-6%;bottom:-1.2cqw;height:5.2cqw;z-index:-1;opacity:.1;background:var(--ink);
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 80' preserveAspectRatio='none'%3E%3Cpath d='M0 80V66h14v-6l6-6 6 6v6h14v-8h18v8h6l4.5-44 1.5-10 1.5 10 4.5 44h20v-6l6-4 6 4v6h12V54h10V40l4-6 4 6v14h12v-8l10-6 10 6h2V30l4-4V18l2-8 2 8v8l4 4v16h6V36l4-12 4 12v10h8V36l2-12 4 12v18h8v6h80v-4h20v4h10V44l4-6 4-8 4 8 4 6v16h14v6h60V54h2V30l4-8 4 8v24h8V44l4-6 4 6v10h6V30l4-8 4 8v24h6v8h24v-4l6-6 6 6h18v6h15v-8h15v6h20v4h20v14z'/%3E%3C/svg%3E") center bottom/100% 100% no-repeat;
          mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 80' preserveAspectRatio='none'%3E%3Cpath d='M0 80V66h14v-6l6-6 6 6v6h14v-8h18v8h6l4.5-44 1.5-10 1.5 10 4.5 44h20v-6l6-4 6 4v6h12V54h10V40l4-6 4 6v14h12v-8l10-6 10 6h2V30l4-4V18l2-8 2 8v8l4 4v16h6V36l4-12 4 12v10h8V36l2-12 4 12v18h8v6h80v-4h20v4h10V44l4-6 4-8 4 8 4 6v16h14v6h60V54h2V30l4-8 4 8v24h8V44l4-6 4 6v10h6V30l4-8 4 8v24h6v8h24v-4l6-6 6 6h18v6h15v-8h15v6h20v4h20v14z'/%3E%3C/svg%3E") center bottom/100% 100% no-repeat}

.vch-photo{position:absolute;left:49.5%;right:5%;top:10.5%;bottom:10.5%;border-radius:1.2cqw;overflow:hidden;background:#111;
  box-shadow:0 0 0 .22cqw var(--foil2),0 0 0 .5cqw var(--bg),0 0 0 .62cqw color-mix(in srgb,var(--foil1) 70%,transparent),0 1.2cqw 2.4cqw -1cqw rgba(0,0,0,.45)}
.vch-photo img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:0;transition:opacity .6s,transform 6s ease-out;transform:scale(1.06)}
.vch[data-design="tramvaj"] .vch-photo img[data-d="tramvaj"],.vch[data-design="noc"] .vch-photo img[data-d="noc"],
.vch[data-design="jaro"] .vch-photo img[data-d="jaro"],.vch[data-design="hrad"] .vch-photo img[data-d="hrad"]{opacity:1;transform:none}
.vch-photo img[data-d="tramvaj"]{object-position:62% 60%}
.vch-photo img[data-d="noc"]{object-position:60% 62%}
.vch-photo img[data-d="jaro"]{object-position:45% 55%}
.vch-photo img[data-d="hrad"]{object-position:66% 40%}
.vch-photo::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,transparent 55%,rgba(0,0,0,.35)),radial-gradient(120% 90% at 50% 40%,transparent 60%,rgba(0,0,0,.3))}
.vch-seal{position:absolute;right:3%;top:4.6%;width:11cqw;z-index:2;transform:rotate(12deg);filter:drop-shadow(0 .5cqw .7cqw rgba(0,0,0,.35))}
.sl-o{fill:var(--bg);stroke:var(--foil1);stroke-width:4}
.sl-i{fill:none;stroke:var(--foil2);stroke-width:3;stroke-dasharray:2 5}
.sl-t{font:700 19px var(--sans);letter-spacing:2px;fill:var(--foil1)}
.sl-n{fill:none;stroke:var(--acc);stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}.sl-n .f{fill:var(--acc);stroke:none}

/* ---- Christmas extras: garland, snow, tree on the tram roof, festive seal text (hidden on the other motifs) */
.vch-gar,.vch-snow,.sl-x,.vch-frame .xt{display:none}
[data-design="vanoce"] .vch-gar,[data-design="vanoce"] .vch-snow,[data-design="snih"] .vch-snow,
[data-design="vanoce"] .sl-x,[data-design="snih"] .sl-x{display:block}
[data-design="vanoce"] .sl-y,[data-design="snih"] .sl-y{display:none}
[data-design="vanoce"] .vch-frame .xt,[data-design="snih"] .vch-frame .xt{display:inline;fill:#2e7d4f}
.vch-gar{position:absolute;left:0;right:0;top:.5cqw;width:100%;height:5.5cqw;z-index:3;overflow:visible;filter:drop-shadow(0 .2cqw .2cqw rgba(0,0,0,.35))}
.vch-gar ellipse{animation:vchTw 2.4s ease-in-out infinite;animation-delay:calc(var(--i) * -.37s)}
.vch-gar .b0{fill:#ff5a4e}.vch-gar .b1{fill:#ffd166}.vch-gar .b2{fill:#7bd389}.vch-gar .b3{fill:#7fc8ff}
@keyframes vchTw{50%{opacity:.45}}
/* snow: two tiled dot layers drifting down; static in print */
.vch-snow{position:absolute;inset:0;z-index:4;pointer-events:none;opacity:.9;
  background:radial-gradient(circle at 20% 30%,#fff 0 .22cqw,transparent .3cqw),radial-gradient(circle at 70% 60%,#fff 0 .16cqw,transparent .24cqw),
    radial-gradient(circle at 45% 85%,#fff 0 .28cqw,transparent .36cqw),radial-gradient(circle at 88% 12%,#fff 0 .14cqw,transparent .22cqw);
  background-size:9cqw 9cqw;animation:vchSnow 14s linear infinite}
.vch-snow2{background-size:13cqw 13cqw;opacity:.55;animation-duration:22s;z-index:0}
[data-design="snih"] .vch-snow2{opacity:.9;background-image:radial-gradient(circle at 20% 30%,#9fb4cc 0 .22cqw,transparent .3cqw),radial-gradient(circle at 70% 60%,#9fb4cc 0 .16cqw,transparent .24cqw),
    radial-gradient(circle at 45% 85%,#b9c9db 0 .28cqw,transparent .36cqw),radial-gradient(circle at 88% 12%,#b9c9db 0 .14cqw,transparent .22cqw)}
@keyframes vchSnow{to{background-position:3cqw 27cqw,-2cqw 27cqw,1cqw 27cqw,-3cqw 27cqw}}
.vch-snow2{animation-name:vchSnow2}@keyframes vchSnow2{to{background-position:-3cqw 39cqw,2cqw 39cqw,-1cqw 39cqw,3cqw 39cqw}}
/* #1150 real winter shots (g11 night Christmas tram, g12 snowy quay): framing only, no tint */
.vch-photo img[data-d="vanoce"]{object-position:38% 62%}
.vch-photo img[data-d="snih"]{object-position:62% 50%}
[data-design="snih"] .vch-photo::after{background:linear-gradient(180deg,rgba(235,242,250,.35),transparent 35%,transparent 60%,rgba(235,242,250,.55))}
.vch[data-design="vanoce"] .vch-photo img[data-d="vanoce"],.vch[data-design="snih"] .vch-photo img[data-d="snih"]{opacity:1;transform:none}
/* snih layout: photo bleeds off the right edge with a slanted cut; seal stays top right like every motif (#1165) */
[data-design="snih"] .vch-photo{left:50%;right:0;top:0;bottom:0;border-radius:0;box-shadow:none;clip-path:polygon(9% 0,100% 0,100% 100%,0 100%)}
[data-design="snih"] .vch-h em{background:none;color:var(--acc)}

/* ---- back: how to redeem + the "game ticket" with the code and a punched 1-9 grid like a Prague tram ticket */
.vch-bh{margin-top:2.2cqw!important;font:600 4cqw/1 var(--serif);font-variation-settings:"opsz" 144}
.vch-steps{list-style:none;margin:2.4cqw 0 0;padding:0;counter-reset:s;display:grid;gap:1.6cqw}
.vch-steps li{counter-increment:s;position:relative;padding-left:4.2cqw;font:400 1.65cqw/1.35 var(--sans)}
.vch-steps li::before{content:counter(s);position:absolute;left:0;top:-.2cqw;width:2.9cqw;height:2.9cqw;border-radius:50%;display:grid;place-items:center;
  font:600 1.6cqw/1 var(--serif);color:var(--bg);background:var(--acc)}
.vch-steps b{font-weight:700;overflow-wrap:anywhere}
.vch-web{margin-top:auto!important;font:400 1.3cqw/1.5 var(--sans);opacity:.75}
.vch-web b{font:600 1.7cqw/1.4 var(--serif);opacity:1}
.vch-tk{position:absolute;left:53%;right:8.5%;top:15%;bottom:15%;padding:2.2cqw 2.6cqw;color:#2a1417;background:var(--tk);border-radius:.8cqw;
  display:flex;flex-direction:column;transform:rotate(2deg);box-shadow:0 1.4cqw 2.4cqw -1.2cqw rgba(0,0,0,.5);
  -webkit-mask:radial-gradient(circle at 0 50%,transparent 1.1cqw,#000 1.15cqw) left/51% 100% no-repeat,radial-gradient(circle at 100% 50%,transparent 1.1cqw,#000 1.15cqw) right/51% 100% no-repeat;
          mask:radial-gradient(circle at 0 50%,transparent 1.1cqw,#000 1.15cqw) left/51% 100% no-repeat,radial-gradient(circle at 100% 50%,transparent 1.1cqw,#000 1.15cqw) right/51% 100% no-repeat}
.vch-tk p{margin:0}
.tk-h{font:800 1.9cqw/1 var(--sans);font-stretch:85%;letter-spacing:.16em;text-transform:uppercase;color:#c8102e}
.tk-s{margin-top:.6cqw!important;font:500 1.15cqw/1.2 var(--sans);letter-spacing:.06em;opacity:.65}
.tk-grid{display:grid;grid-template-columns:repeat(3,4.2cqw);gap:.55cqw;margin:1.8cqw 0;align-self:flex-start}
.tk-grid span{position:relative;height:2.9cqw;display:grid;place-items:center;font:600 1.3cqw/1 var(--sans);color:#8a7a68;box-shadow:inset 0 0 0 .12cqw #cbb99e}
.tk-grid span.on::after{content:"";position:absolute;width:1.5cqw;height:1.5cqw;border-radius:50%;background:#2a1a12;box-shadow:inset 0 .2cqw .3cqw rgba(0,0,0,.6),0 .08cqw 0 rgba(255,255,255,.6)}
.tk-cl{font:600 1.1cqw/1 var(--sans);letter-spacing:.2em;text-transform:uppercase;opacity:.6}
.tk-code{margin-top:.7cqw!important;font:700 2.15cqw/1 ui-monospace,"Cascadia Mono",Consolas,monospace;letter-spacing:.04em;color:#c8102e;white-space:nowrap}
.tk-code:empty::before{opacity:.35}
.vch-tk::after{content:"";position:absolute;right:2.2cqw;top:2.2cqw;width:5.8cqw;aspect-ratio:1;border-radius:50%;opacity:.85;
  background:center/62% no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 30'%3E%3Cpath fill='%23c8102e' d='M17 2h6M20 2l-3 5h6z' stroke='%23c8102e' stroke-width='1.6'/%3E%3Crect x='3' y='8' width='34' height='14' rx='4' fill='%23c8102e'/%3E%3Crect x='3' y='9' width='34' height='6' rx='3' fill='%23f3ead8'/%3E%3Cg fill='%232b2f3a'%3E%3Crect x='6' y='10' width='6' height='4' rx='1'/%3E%3Crect x='14' y='10' width='6' height='4' rx='1'/%3E%3Crect x='22' y='10' width='6' height='4' rx='1'/%3E%3Crect x='30' y='10' width='5' height='4' rx='1'/%3E%3C/g%3E%3Ccircle cx='10' cy='24' r='2.2' fill='%231a1a1a'/%3E%3Ccircle cx='30' cy='24' r='2.2' fill='%231a1a1a'/%3E%3C/svg%3E");
  box-shadow:inset 0 0 0 .18cqw #c8102e,inset 0 0 0 .5cqw var(--tk),inset 0 0 0 .62cqw #c8102e66}

/* ---- site stage: envelope -> card slides out -> lands in front (data-st: closed | open | out | done) */
.vst{container-type:inline-size;position:relative;aspect-ratio:1/1.04;max-width:640px;margin-inline:auto;user-select:none;-webkit-user-select:none}
.env{position:absolute;left:5cqw;width:90cqw;top:50cqw;height:44cqw}
.env-body{position:absolute;inset:0;transition:transform .9s cubic-bezier(.3,1.2,.4,1)}
.env-back,.env-front,.env-flap{position:absolute;left:0;right:0}
.env-back{inset:0;border-radius:1.2cqw;background:linear-gradient(var(--acc),color-mix(in srgb,var(--acc) 70%,#000));
  box-shadow:0 3cqw 5cqw -2cqw rgba(0,0,0,.6)}
.env-back::before{content:"";position:absolute;inset:1.2cqw 1.2cqw 40%;border-radius:.6cqw;opacity:.35;
  background:repeating-linear-gradient(45deg,transparent 0 1.4cqw,var(--foil2) 1.4cqw 1.6cqw),repeating-linear-gradient(-45deg,transparent 0 1.4cqw,var(--foil2) 1.4cqw 1.6cqw)}
.env-front{inset:0;z-index:3;border-radius:1.2cqw;
  background:linear-gradient(160deg,#fbf6ec,#efe5d2 60%,#e6d9c1);clip-path:polygon(0 0,50% 56%,100% 0,100% 100%,0 100%);
  filter:drop-shadow(0 -.3cqw .4cqw rgba(0,0,0,.18))}
.env-front::after{content:"";position:absolute;inset:0;background:linear-gradient(to top right,transparent 49.6%,rgba(120,95,60,.18) 50%,transparent 50.6%),
  linear-gradient(to top left,transparent 49.6%,rgba(120,95,60,.18) 50%,transparent 50.6%)}
.env-flap{top:0;height:62%;z-index:4;transform-origin:50% 0;transform:perspective(900px) rotateX(0);
  transition:transform .65s cubic-bezier(.45,.1,.3,1),z-index 0s .33s}
.env-flap::before{content:"";position:absolute;inset:0;clip-path:polygon(0 0,100% 0,50% 100%);background:linear-gradient(180deg,#f3ead8,#e4d5ba)}
.env-seal{position:absolute;left:50%;top:76%;width:9cqw;aspect-ratio:1;translate:-50% -50%;border-radius:50%;
  background:radial-gradient(circle at 35% 30%,color-mix(in srgb,var(--acc) 60%,#fff),var(--acc) 45%,color-mix(in srgb,var(--acc) 60%,#000));
  box-shadow:0 .4cqw .8cqw rgba(0,0,0,.4),inset 0 0 0 .7cqw color-mix(in srgb,var(--acc) 85%,#000);transition:opacity .2s .15s}
.env-seal::after{content:"22";position:absolute;inset:0;display:grid;place-items:center;font:italic 600 3.6cqw/1 "Fraunces",Georgia,serif;color:var(--foil2)}
.vfly{position:absolute;left:2.7cqw;top:1.6cqw;width:84.6cqw;z-index:2;perspective:1400px;
  transition:transform .95s cubic-bezier(.3,1.15,.4,1),z-index 0s}
.vtilt{transform-style:preserve-3d;transform:rotateX(var(--rx,0deg)) rotateY(var(--ry,0deg));cursor:pointer;will-change:transform}
.vtilt .vch-face{box-shadow:0 .12cqw 0 color-mix(in srgb,var(--bg) 70%,#000),0 .25cqw 0 #d8cfbf,0 .38cqw 0 #c9bfae,0 2.4cqw 4cqw -1.5cqw rgba(0,0,0,.55)}
.vst[data-st="closed"] .env-seal{opacity:1}
.vst:not([data-st="closed"]) .env-flap{transform:perspective(900px) rotateX(180deg);z-index:1}
.vst:not([data-st="closed"]) .env-seal{opacity:0}
.vst[data-st="out"] .vfly{transform:translateY(-49cqw)}
.vst[data-st="done"] .vfly{z-index:5;transform:translateY(-24cqw) rotate(-2.5deg) scale(1.05)}
.vst[data-st="done"] .env-body{transform:translateY(5cqw) rotate(2.5deg)}
.vst[data-st="closed"] .vfly,.vst[data-st="open"] .vfly{transition:none}
/* #1134 replay: snap envelope shut, else env-body mid-transition is its own stacking context and the card shows through */
.vst[data-st="closed"] .env-body,.vst[data-st="closed"] .env-flap{transition:none}
.vst-ctl{position:absolute;left:0;right:0;top:calc(100% + 8px);display:flex;justify-content:center;gap:10px;flex-wrap:wrap;opacity:0;transition:opacity .4s .6s}
.vst[data-st="done"] .vst-ctl{opacity:1}
.vst-ctl .btn{font-size:15px;padding:11px 18px}
@media (prefers-reduced-motion:reduce){.vch,.vfly,.env-body,.env-flap,.vtilt{transition:none!important}.vch.pop,.vch-snow,.vch-gar ellipse{animation:none}}

/* print: no grain/sheen, faces flat, snow and bulbs frozen */
@media print{.vch-face::after,.vch-face::before{display:none}.vch-snow,.vch-gar ellipse{animation:none}}

/* #1161: full-screen detail of the card (click on envelope/card); tap/drag flips, x/backdrop/Esc closes */
.vst{cursor:zoom-in}
html.vlb-open{overflow:hidden}
.vlb{position:fixed;inset:0;z-index:1000;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:18px;padding:56px 3vw 20px;
  background:rgba(8,10,14,.88);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);animation:vlbIn .25s ease-out;cursor:zoom-out}
@keyframes vlbIn{from{opacity:0}}
.vlb-c{width:min(94vw,calc((100vh - 170px) * 200 / 95));width:min(94vw,calc((100dvh - 170px) * 200 / 95));perspective:2000px}
.vlb .vch{cursor:grab;touch-action:none;user-select:none;-webkit-user-select:none;animation:vlbZoom .35s cubic-bezier(.3,1.3,.5,1)}
.vlb .vch:active{cursor:grabbing}
.vlb .vch-face{box-shadow:0 2cqw 6cqw rgba(0,0,0,.6)}
@keyframes vlbZoom{from{scale:.85;opacity:0}}
.vlb-x{position:absolute;top:10px;right:12px;width:46px;height:46px;border-radius:50%;border:1px solid rgba(255,255,255,.35);background:rgba(255,255,255,.1);
  color:#fff;font:400 30px/1 system-ui,sans-serif;cursor:pointer}
.vlb-x:hover,.vlb-x:focus-visible{background:rgba(255,255,255,.25)}
.vlb-ctl{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:8px 16px;color:rgba(255,255,255,.75);font-size:14px;text-align:center;cursor:default}
.vlb-ctl .btn{font-size:15px;padding:11px 20px}
@media (prefers-reduced-motion:reduce){.vlb,.vlb .vch{animation:none}}

/* #1165 smooth full-screen: snow drifts by transform (compositor) instead of background-position (full repaint every frame);
   no backdrop blur behind the lightbox, site card hidden while it is open, garland without a per-frame filter there */
.vch-snow{top:-27cqw;will-change:transform}.vch-snow2{top:-39cqw}
@keyframes vchSnow{to{transform:translateY(27cqw)}}
@keyframes vchSnow2{to{transform:translateY(39cqw)}}
.vlb{-webkit-backdrop-filter:none;backdrop-filter:none;background:rgba(8,10,14,.95)}
html.vlb-open .vst{visibility:hidden}
.vlb .vch-gar{filter:none}
/* #1191: .vst carries data-design (envelope colours), so the motif palette leaked into the site buttons below the card; give them the site palette back */
.vst-ctl{--bg:#0b0f17;--bg2:#111725;--ink:#eef1f6}
