/* MakeMySurprise: "For her" redesign. A night at her window: every scene is a little set
   (see js/cards/girlfriend.js). Scoped to .gv-girlfriend and her-/hw- classes; removing this file and
   its tag in gift.html, and restoring js/cards/girlfriend.js, brings the old card back. */

/* ---------- looks: the colour of the night and of the room ---------- */
.gv-girlfriend{--t-fg:#fff;--t-mut:#cfc8ea;--t-acc:#ffd98a;--t-chip:rgb(255 255 255 / .13);--t-btn:linear-gradient(180deg,#ffe6ad,#f2b65c);--t-btn-fg:#2a1a3e;
  --sky1:#060a22;--sky2:#141a52;--sky3:#3a2b78;--wall:#17132e;--wall2:#1e1839;--floor:#0e0b20;--skirt:#2b2452;--drape:#6a45a0;--drape2:#4c2f7a}
.gv-girlfriend.t-rose{--t-mut:#ecc9d2;--t-acc:#ffc9a8;--sky1:#150510;--sky2:#3d0f2c;--sky3:#8a2a4a;--wall:#230c18;--wall2:#2c1120;--floor:#14060d;--skirt:#3d1626;--drape:#b0192f;--drape2:#801022}
.gv-girlfriend.t-blush{--t-mut:#f0d6ea;--t-acc:#ffe3ee;--sky1:#22104a;--sky2:#6b3489;--sky3:#f08aa8;--wall:#3a1d4a;--wall2:#442357;--floor:#261033;--skirt:#56306b;--drape:#ff8fab;--drape2:#e0668a}
.gv-girlfriend,.gv-girlfriend .gv-scenes::before{background:radial-gradient(circle,var(--wall2) 0 2px,transparent 2.5px) 0 0/26px 26px,var(--wall)}
.her-floor{fill:var(--floor)}
.her-skirt{fill:var(--skirt)}

/* ---------- type ---------- */
.gv-girlfriend .gv-title{font:italic 600 clamp(28px,9.2cqi,46px)/1.04 'Cormorant Garamond',Georgia,serif;letter-spacing:0}
.gv-girlfriend .gv-name{font:italic 600 clamp(52px,17cqi,96px)/.95 'Cormorant Garamond',Georgia,serif;letter-spacing:-.01em;color:var(--t-acc);text-shadow:0 0 30px rgb(255 217 138 / .35)}
.gv-girlfriend .gv-eyebrow{letter-spacing:.3em}
.gv-girlfriend .gv-btn{box-shadow:inset 0 1px 0 rgb(255 255 255 / .5),0 10px 30px -10px rgb(255 200 110 / .6)}
.gv-girlfriend .gv-btn.ghost{background:var(--t-chip);color:#fff;box-shadow:inset 0 0 0 1px rgb(255 255 255 / .2)}
.her-hint{transition:opacity .4s}
.her-hint.gone{opacity:0}

/* ---------- 1. the window ---------- */
.her-win .kit-set{transform-origin:50% 42%;will-change:transform}
.her-win::after{content:"";position:absolute;inset:0;z-index:2;background:rgb(5 3 16 / .46);opacity:calc(1 - var(--moon,0));pointer-events:none}
.her-veil{position:absolute;inset:0;z-index:15;background:linear-gradient(var(--sky1),var(--sky2) 55%,var(--sky3));opacity:0;pointer-events:none}
.her-veil.go{opacity:0 !important;transition:opacity 1.1s ease-out}

/* ---------- night-sky scenes ---------- */
.sc.her-sky{background:linear-gradient(var(--sky1),var(--sky2) 55%,var(--sky3))}
.her-stars{position:absolute !important;inset:0;z-index:0 !important;overflow:hidden;pointer-events:none}
.her-stars i{position:absolute;width:var(--s);height:var(--s);border-radius:50%;background:#fff;opacity:.7;animation:herTw var(--tw) ease-in-out infinite}
@keyframes herTw{50%{opacity:.15;transform:scale(.6)}}
.her-stars b{position:absolute;width:90px;height:1.5px;border-radius:2px;background:linear-gradient(90deg,transparent,#fff);opacity:0;animation:herMeteor 9s ease-in infinite}
@keyframes herMeteor{0%{opacity:0;transform:translate(-80px,-36px) rotate(24deg)}3%{opacity:1}9%,100%{opacity:0;transform:translate(140px,62px) rotate(24deg)}}
.her-cv{position:absolute !important;inset:0;width:100%;height:100%;z-index:0 !important}

/* ---------- 2. the first line ---------- */
.her-big{max-width:14ch;font:italic 600 clamp(36px,11.5cqi,58px)/1.12 'Cormorant Garamond',Georgia,serif;color:#fff;text-wrap:balance}
.her-word{display:inline-block;white-space:nowrap}
.her-big i{display:inline-block;font-style:inherit;opacity:0;filter:blur(6px);transform:translateY(8px) scale(1.3);color:var(--t-acc);text-shadow:0 0 18px var(--t-acc);transition:opacity .35s,filter .5s,transform .6s var(--spring),color 1.4s .3s,text-shadow 1.4s .3s}
.her-big i.on{opacity:1;filter:none;transform:none;color:#fff;text-shadow:0 0 10px rgb(255 255 255 / .35)}
.her-comet{position:absolute !important;left:0;top:0;z-index:3 !important;width:10px;height:10px;margin:-5px 0 0 -5px;border-radius:50%;background:#fff;box-shadow:0 0 14px 5px rgb(255 233 168 / .9),0 0 40px 12px rgb(255 217 138 / .35);opacity:0;pointer-events:none;transition:transform .07s linear,opacity .3s}
.her-comet.on{opacity:1}
.her-comet.off{opacity:0;transition:opacity .8s}
.her-spark{position:absolute !important;z-index:2 !important;width:5px;height:5px;margin:-2.5px;border-radius:50%;background:var(--t-acc);pointer-events:none;animation:herSpark .8s ease-out both}
@keyframes herSpark{from{transform:scale(1);opacity:1}to{transform:translateY(22px) scale(0);opacity:0}}
.gv-girlfriend .her-from{font:italic 500 23px 'Cormorant Garamond',Georgia,serif;opacity:0;transform:translateY(8px);transition:opacity .8s,transform .8s}
.gv-girlfriend .her-from.on{opacity:1;transform:none}

/* ---------- 3. days: star trails ---------- */
.sc.her-days{justify-content:flex-start;padding-top:74px}
.her-roof{position:absolute !important;left:0;right:0;bottom:0;height:130px;z-index:1 !important;pointer-events:none}
.her-roof svg{display:block;width:100%;height:100%}
.her-daysbox{display:flex;flex-direction:column;align-items:center;gap:4px;z-index:2 !important;pointer-events:none}
.her-num{font:italic 600 clamp(64px,22cqi,120px)/1 'Cormorant Garamond',Georgia,serif;color:var(--t-acc);font-variant-numeric:tabular-nums;text-shadow:0 0 34px rgb(255 217 138 / .4)}
.her-num.done{animation:herPulse .9s var(--spring)}
@keyframes herPulse{40%{transform:scale(1.14)}}
.her-times{max-width:20ch;font:italic 500 clamp(18px,5.6cqi,25px)/1.2 'Cormorant Garamond',Georgia,serif;color:#fff}
.her-daysbox .gv-sub{margin-top:8px;opacity:0;transition:opacity .8s}
.her-daysbox .gv-sub.on{opacity:1}
.her-foot{position:absolute !important;left:0;right:0;bottom:calc(94px + env(safe-area-inset-bottom));z-index:3 !important;display:flex;flex-direction:column;align-items:center;gap:6px;padding:0 22px}
.her-daysbox::before{content:"";position:absolute;inset:-30px -40px;z-index:-1;background:radial-gradient(closest-side,rgb(6 8 30 / .72),rgb(6 8 30 / 0))}

/* ---------- 4. the telescope ---------- */
.sc.her-scope{justify-content:flex-start;padding-top:70px}
.her-vignette{position:absolute !important;inset:0;z-index:1 !important;pointer-events:none;background:radial-gradient(circle at 50% 46%,transparent 0,transparent 30%,rgb(3 3 14 / .55) 62%,rgb(3 3 14 / .9) 100%)}
.her-reticle{position:absolute !important;left:50%;top:46%;z-index:2 !important;width:150px;height:150px;margin:-75px 0 0 -75px;pointer-events:none;transition:transform .3s var(--spring)}
.her-reticle svg{display:block;width:100%;height:100%;overflow:visible}
.her-reticle.near{transform:scale(.88)}
.her-ticks{animation:herSpin 14s linear infinite}
@keyframes herSpin{to{transform:rotate(360deg)}}
.her-lock{stroke-dashoffset:var(--lock,1)}
.her-arrows{position:absolute !important;inset:0;z-index:2 !important;pointer-events:none}
.her-arrows i{position:absolute;left:0;top:0;width:16px;height:20px;margin:-10px 0 0 -8px;background:var(--t-acc);clip-path:polygon(0 0,100% 50%,0 100%,28% 50%);opacity:0;transition:opacity .3s;animation:herGlow 1.2s ease-in-out infinite}
@keyframes herGlow{50%{background:#fff}}
.her-scopehead{display:flex;flex-direction:column;align-items:center;gap:6px;padding:0 22px;z-index:3 !important;pointer-events:none}
.her-scopefoot{bottom:calc(30px + env(safe-area-inset-bottom))}
.her-reason{min-height:2.4em;max-width:22ch;font:italic 600 clamp(21px,6.4cqi,28px)/1.18 'Cormorant Garamond',Georgia,serif;color:#fff;text-wrap:balance;opacity:0}
.her-reason.show{animation:herReason .7s var(--spring) both}
.her-reason.plate{color:var(--t-acc);letter-spacing:.04em}
@keyframes herReason{from{opacity:0;transform:translateY(14px) scale(.9);filter:blur(4px)}to{opacity:1;transform:none;filter:none}}

/* ---------- 5. the film ---------- */
.her-film .kit-art,.her-ink .kit-art{cursor:grab}
.her-cap{min-height:1.2em;font:700 25px/1.1 var(--fh);color:var(--t-acc);opacity:0}
.her-cap.show{animation:herReason .5s var(--spring) both}

/* ---------- 6. the secret ---------- */
.her-inkcv{pointer-events:none}
.her-dark{position:absolute !important;inset:0;z-index:2 !important;pointer-events:none;background:radial-gradient(circle 250px at var(--lx,50%) var(--ly,60%),rgb(4 2 12 / 0) 0%,rgb(4 2 12 / .35) 45%,rgb(4 2 12 / .9) 100%)}

/* ---------- 7. the typewriter ---------- */
.her-sheet{overflow:hidden;border-radius:calc(3 * var(--u)) calc(3 * var(--u)) 0 0;background:#fbf6ea;box-shadow:0 0 calc(18 * var(--u)) rgb(0 0 0 / .35);-webkit-mask:linear-gradient(transparent 4%,#000 34%);mask:linear-gradient(transparent 4%,#000 34%);will-change:transform}
.her-lines{position:absolute;left:calc(17 * var(--u));right:0;bottom:calc(21 * var(--u));font:400 calc(14 * var(--u))/calc(20 * var(--u)) 'Special Elite','Courier New',monospace;color:#2a2233;text-align:left;white-space:pre}
.her-lines p{min-height:calc(20 * var(--u));margin:0}
.her-lines span{display:inline-block;width:calc(8.5 * var(--u));text-align:center}
.ht-mono{font-family:'Special Elite','Courier New',monospace}
.ht-body{fill:#1f2d46}
.gv-girlfriend.t-rose .ht-body{fill:#5a1626}
.gv-girlfriend.t-blush .ht-body{fill:#7a3c66}
.ht-key{transition:transform .05s}
.ht-key.down{transform:translateY(3.5px)}
.ht-key.down circle:nth-child(2),.ht-key.down rect:nth-child(2){fill:#e3d5b8}
.gv-girlfriend .her-typed{max-height:100%;border-radius:3px;background:#fbf6ea;touch-action:pan-y;box-shadow:0 7px 0 rgb(0 0 0 / .2),0 30px 50px -30px rgb(0 0 0 / .7)}
.gv-girlfriend .her-typed .to{font:400 19px/1.3 'Special Elite','Courier New',monospace;color:#2a2233}
.gv-girlfriend .her-typed .body{font:400 16.5px/1.62 'Special Elite','Courier New',monospace;color:#2a2233}
.gv-girlfriend .her-typed .sig{font:400 18px/1.3 'Special Elite','Courier New',monospace;color:#2a2233}

/* ---------- 8. open when ---------- */
.her-mail{--p:0;transform:rotate(var(--r));transition:filter .3s,opacity .3s}
.her-mail>*{position:absolute}
.her-mail-body{inset:0;display:flex;align-items:flex-end;padding:0 calc(62 * var(--u)) calc(11 * var(--u)) calc(16 * var(--u));border-radius:calc(6 * var(--u));background:linear-gradient(170deg,#f6e7cc,#e7cfa6);box-shadow:0 calc(9 * var(--u)) calc(16 * var(--u)) calc(-8 * var(--u)) rgb(0 0 0 / .65);cursor:pointer}
.her-mail-t{font:700 calc(21 * var(--u))/1.08 var(--fh);color:#3a2418;text-align:left}
.her-mail-stamp{position:absolute;right:calc(14 * var(--u));bottom:calc(10 * var(--u));display:grid;place-items:center;width:calc(34 * var(--u));height:calc(40 * var(--u));border:calc(2.5 * var(--u)) dotted #f6e7cc;background:#d7263d;color:#fff;font:normal calc(19 * var(--u))/1 serif;transform:rotate(5deg)}
.her-mail-slit{left:0;top:calc(9 * var(--u));width:calc(var(--p) * 100%);height:calc(22 * var(--u));z-index:1;
  background:linear-gradient(135deg,#ecd9b4 25%,transparent 25%) 0 0/calc(8 * var(--u)) calc(8 * var(--u)) repeat-x,linear-gradient(225deg,#ecd9b4 25%,transparent 25%) 0 0/calc(8 * var(--u)) calc(8 * var(--u)) repeat-x,
             linear-gradient(45deg,#ecd9b4 25%,transparent 25%) 0 100%/calc(8 * var(--u)) calc(8 * var(--u)) repeat-x,linear-gradient(315deg,#ecd9b4 25%,transparent 25%) 0 100%/calc(8 * var(--u)) calc(8 * var(--u)) repeat-x,
             linear-gradient(#2a1a12 0 30%,#fffdf5 30% 70%,#2a1a12 70%)}
.her-strip{left:0;right:0;top:calc(9 * var(--u));height:calc(22 * var(--u));z-index:2;cursor:grab;touch-action:none}
.her-strip::before{content:"";position:absolute;inset:calc(-10 * var(--u)) calc(-14 * var(--u))}
.her-strip>*{position:absolute}
.her-strip-band{inset:0;display:grid;place-items:center;border-top:calc(1.5 * var(--u)) dashed #d7263d;border-bottom:calc(1.5 * var(--u)) dashed #d7263d;background:#fbf1dc;clip-path:inset(0 0 0 calc(var(--p) * 100%))}
.her-strip-band b{font:800 calc(8.5 * var(--u))/1 var(--fb);letter-spacing:.24em;text-transform:uppercase;color:#d7263d}
.her-strip-tab{left:calc(var(--p) * 100% - 12 * var(--u));top:calc(-3 * var(--u));bottom:calc(-3 * var(--u));display:grid;place-items:center;width:calc(26 * var(--u));border-radius:calc(6 * var(--u));background:#d7263d;color:#fff;font:normal calc(13 * var(--u))/1 var(--fb);box-shadow:0 calc(3 * var(--u)) calc(6 * var(--u)) rgb(0 0 0 / .35);animation:herTab 1.3s ease-in-out infinite}
.her-strip-tab.nudge{animation:herTab .22s ease-in-out 4}
@keyframes herTab{50%{transform:translateX(calc(5 * var(--u)))}}
.her-curl{left:calc(var(--p) * 100% - 34 * var(--u));top:50%;width:calc(26 * var(--u));height:calc(26 * var(--u));margin-top:calc(-13 * var(--u));border:calc(1.5 * var(--u)) solid #d7263d;border-radius:50%;background:conic-gradient(#fbf1dc,#dcc296,#fbf1dc,#dcc296,#fbf1dc);opacity:min(1,calc(var(--p) * 12));transform:scale(calc(.45 + var(--p) * .8)) rotate(calc(var(--p) * 1100deg))}
.her-mail.open .her-strip{pointer-events:none}
.her-mail.open .her-strip-tab,.her-mail.open .her-curl{animation:herFly .55s ease-in both}
@keyframes herFly{to{transform:translate(calc(60 * var(--u)),calc(-70 * var(--u))) rotate(200deg);opacity:0}}
.her-mail.read{opacity:.72}
.kit-set.reading{filter:brightness(.4);transition:filter .3s}
.her-reader{position:absolute;inset:0;z-index:5;display:grid;place-items:center;padding:8px 22px;cursor:pointer}
.her-reader[hidden]{display:none}
.gv-girlfriend .her-note{max-height:100%;animation:herNoteIn .55s var(--spring) both}
.her-reader.out .her-note{animation:herNoteOut .34s ease-in both}
@keyframes herNoteIn{from{transform:translate(var(--fx),var(--fy)) scale(.15) rotate(-8deg);opacity:0}}
@keyframes herNoteOut{to{transform:translate(var(--fx),var(--fy)) scale(.15) rotate(6deg);opacity:0}}
.her-close{margin-top:14px;font:600 12px var(--fb);color:#9a8a96;text-align:center}

/* ---------- 9. love locks ---------- */
.her-serif{font-family:'Cormorant Garamond',Georgia,serif;font-style:italic;font-weight:600}
.her-vow{display:grid;place-items:center;margin:0;font:italic 600 calc(25 * var(--u))/1.14 'Cormorant Garamond',Georgia,serif;color:#fff;text-align:center;text-wrap:balance;text-shadow:0 2px 12px rgb(0 0 0 / .6);opacity:0;pointer-events:none}
.her-vow.show{animation:herReason .6s var(--spring) both}
.kit-foot.her-tall{height:min(24cqh,190px)}
.her-proms{display:flex;flex-direction:column;gap:6px;flex:1 1 auto;width:100%;max-width:400px;min-height:0;margin:0;padding:2px 3px 6px;list-style:none;overflow:auto;scrollbar-width:thin}
.her-proms li{position:relative;flex:0 0 auto;padding:7px 12px 7px 34px;border-radius:10px;background:rgb(255 255 255 / .1);font:italic 600 18px/1.2 'Cormorant Garamond',Georgia,serif;color:#fff;text-align:left;animation:herReason .5s var(--spring) both}
.her-proms li::before{content:"♥";position:absolute;left:12px;top:50%;margin-top:-9px;font:normal 15px/18px serif;color:var(--c)}
.her-stamp{position:absolute;left:50%;top:74%;z-index:4;display:flex;flex-direction:column;align-items:center;gap:2px;padding:8px 18px;border:3px solid #ffd98a;border-radius:10px;background:rgb(10 8 30 / .6);color:#ffd98a;transform:translate(-50%,-50%) rotate(-9deg);pointer-events:none;animation:herStamp .5s cubic-bezier(.2,1.6,.4,1) both}
.her-stamp b{font:800 26px/1 var(--fb);letter-spacing:.2em;text-transform:uppercase}
.her-stamp small{font:700 11px/1 var(--fb);letter-spacing:.16em;text-transform:uppercase}
@keyframes herStamp{from{transform:translate(-50%,-50%) rotate(-9deg) scale(2.6);opacity:0}}

/* ---------- 10. always ---------- */
.sc.her-final{justify-content:flex-end;padding-bottom:calc(126px + env(safe-area-inset-bottom))}
.her-finalbox{display:flex;flex-direction:column;align-items:center;gap:9px;width:100%;z-index:2 !important}
.gv-girlfriend .her-finalbox .gv-name{font-size:clamp(46px,15cqi,84px)}
.her-nighthint{font-size:18px;opacity:.75}
