/* MakeMySurprise: New Year, "the last night of the year". A room with a calendar and a bottle, then the sky
   over a city, all drawn on a canvas (see js/cards/newyear.js); wrapped text is HTML on top.
   Scoped to .gv-newyear and ny- classes. */

/* ---------- looks: the text always sits on a dark wall or a night sky ---------- */
.gv-newyear{--t-fg:#fff8ea;--t-mut:#c9d0ee;--t-acc:#f2c14e;--t-chip:rgb(255 255 255 / .13);--t-btn:linear-gradient(180deg,#f7d06b,#e3ac33);--t-btn-fg:#2a1a05;background:#050920}
.gv-newyear.t-gold{--t-mut:#e6cdbf;--t-acc:#f5cf7a;background:#160a18}
.gv-newyear.t-mint{--t-mut:#cfe3d8;--t-acc:#f3d9a0;background:#041c16}
.gv-newyear .gv-scenes::before{display:none}
.gv-newyear .gv-title{font:600 clamp(25px,8cqi,36px)/1.08 'Fraunces',Georgia,serif;letter-spacing:-.01em}
.gv-newyear .gv-title.ny-long{font-size:clamp(20px,6.2cqi,28px);overflow-wrap:anywhere}
.gv-newyear .gv-eyebrow{letter-spacing:.2em}
.gv-newyear .gv-sub{text-wrap:balance}
.gv-newyear .gv-btn.ghost{background:var(--t-chip);color:var(--t-fg);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--t-fg) 25%,transparent)}
.sc.ny-sc{padding-left:0;padding-right:0}
.ny-sc .kit-head{height:112px;min-height:0;justify-content:flex-end}
@media (max-height:720px){.ny-sc .kit-foot{min-height:60px}.ny-sc .kit-head{height:98px;gap:5px}.gv-newyear .gv-title{font-size:clamp(22px,7cqi,30px)}.gv-newyear .gv-title.ny-long{font-size:clamp(19px,5.8cqi,25px)}}
.ny-cv{position:absolute !important;inset:0;z-index:0 !important;width:100%;height:100%;display:block}
.ny-hit{position:absolute;z-index:2;touch-action:none;-webkit-tap-highlight-color:transparent;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}

/* ---------- the toast: a card that comes up from the bottle ---------- */
.ny-note{z-index:2;display:flex;flex-direction:column;gap:calc(8 * var(--u));padding:calc(20 * var(--u)) calc(20 * var(--u)) calc(16 * var(--u));border-radius:calc(10 * var(--u));background:#fffaf0;color:#2a2238;text-align:left;box-shadow:calc(4 * var(--u)) calc(6 * var(--u)) 0 rgb(8 6 20 / .3);overflow:auto;scrollbar-width:thin;opacity:0;transform:translateY(calc(60 * var(--u))) rotate(-2deg) scale(.86);transition:opacity .45s,transform .7s var(--spring);pointer-events:none}
.ny-note.on{opacity:1;transform:rotate(-1deg);pointer-events:auto}
.ny-note::before{content:"";flex:0 0 auto;align-self:center;width:calc(64 * var(--u));height:calc(3 * var(--u));border-radius:9px;background:#f2c14e}
.ny-note-to{font:700 calc(25 * var(--u))/1.1 'Caveat','Kalam',cursive;color:#c2185b}
.ny-note-tx{font:700 calc(20 * var(--u))/1.28 'Caveat','Kalam',cursive;white-space:pre-wrap;overflow-wrap:anywhere}
.ny-note.long .ny-note-tx{font-size:calc(17 * var(--u));line-height:1.24}
.ny-note-by{margin-top:auto;align-self:flex-end;font:700 calc(21 * var(--u))/1 'Caveat','Kalam',cursive;color:#c2185b}

/* ---------- wishes, written in the sky where the fireworks go off ---------- */
.ny-wish{z-index:1;display:flex;align-items:center;justify-content:center;padding:0 calc(8 * var(--u));font:700 calc(22 * var(--u))/1.02 'Caveat','Kalam',cursive;color:#fff8ea;text-align:center;text-wrap:balance;overflow-wrap:anywhere;text-shadow:0 0 calc(14 * var(--u)) rgb(255 214 120 / .6),0 calc(1 * var(--u)) calc(2 * var(--u)) rgb(0 0 0 / .6);opacity:0;transform:scale(.5);transition:opacity .5s,transform .7s var(--spring);pointer-events:none}
.ny-wish.on{opacity:1;transform:none}
.ny-wish.dense{font-size:calc(19 * var(--u))}

@media (prefers-reduced-motion:reduce){.ny-note,.ny-wish{transition:opacity .2s;transform:none}}
