/* OneVit Advent v2 · "Sticker tree".
   Deep Christmas green, candy-cane red, cream paper, navy ink. Flat colour, hard offset shadows,
   real cut-outs, tape and marker scribbles. No gradients-as-lighting, no glass, no soft glows. */

@font-face { font-family: 'Quicksand'; src: url('/fonts/Quicksand-VariableFont_wght.woff2') format('woff2'); font-weight: 300 700; font-display: swap; }
@font-face { font-family: 'Archivo Black'; src: url('fonts/archivo-black-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-display: block; }
@font-face { font-family: 'Permanent Marker'; src: url('/fonts/PermanentMarker-Regular.woff2') format('woff2'); font-weight: 400; font-display: swap; }

:root {
  --green: #2c354f;
  --green-2: #232a40;
  --green-3: #171c2b;
  --pine-line: #2e8a5e;
  --red: #d6263a;
  --red-2: #b01b2e;
  --cream: #f6f0e3;
  --paper: #fffaf0;
  --navy: #2c354f;
  --gold: #f2c14e;
  --gold-2: #d9a326;
  --lime: #c8ef4f;
  --ink: #2c354f;
  --display: 'Archivo Black', 'Arial Black', sans-serif;
  --marker: 'Permanent Marker', 'Comic Sans MS', cursive;
  --sans: 'Quicksand', ui-sans-serif, system-ui, sans-serif;
  --hard: 0 6px 0 rgb(0 0 0 / .22);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --snap: cubic-bezier(.2, .9, .25, 1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: var(--cream); -webkit-font-smoothing: antialiased; overflow-x: clip; }
button { font: inherit; color: inherit; }
img { display: block; max-width: 100%; }
.marker { font-family: var(--marker); font-weight: 400; }

#snow { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; }
#fx { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 200; }

/* ============ green section ============ */
.green { position: relative; background: var(--green); color: var(--cream); padding-bottom: 60px; }
.green::before { /* print grain, not a lighting gradient */
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .14; mix-blend-mode: overlay;
  background-image: 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='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.nav { position: relative; z-index: 3; display: flex; justify-content: space-between; align-items: center; max-width: 1400px; margin: 0 auto; padding: 18px 24px; }
.wordmark { font-size: 26px; letter-spacing: -.01em; color: inherit; text-decoration: none; }
.wordmark b { font-weight: 700; }
.wordmark span { font-weight: 300; }
.nav nav { display: flex; gap: 4px; }
.nav nav a { color: var(--cream); text-decoration: none; font-weight: 700; font-size: 14px; padding: 8px 12px; border-radius: 8px; transition: background .12s; }
.nav nav a:hover { background: rgb(255 255 255 / .1); }
@media (max-width: 640px) { .nav nav a:not(:last-child) { display: none; } }

/* candy cane ribbon */
.cane-ribbon { position: relative; z-index: 3; margin: 8px -20px 0; transform: rotate(-2.2deg); overflow: hidden; border-block: 4px solid #fff;
  background: repeating-linear-gradient(-45deg, var(--red) 0 22px, #fff 22px 44px); box-shadow: var(--hard); }
.cane-track { display: flex; width: max-content; animation: marquee 26s linear infinite; }
.cane-track span { padding: 10px 0; white-space: nowrap; font-family: var(--display); font-size: 18px; text-transform: uppercase; letter-spacing: .01em; color: var(--red-2);
  -webkit-text-stroke: 7px #fff; paint-order: stroke fill; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* hero */
.hero { position: relative; z-index: 2; max-width: 1400px; margin: 0 auto; padding: 46px 24px 10px; }
.mega { margin: 0; font-family: var(--display); font-weight: 400; text-transform: uppercase; line-height: .82; letter-spacing: -.045em; color: var(--cream); }
.mega span { display: block; font-size: clamp(56px, 10.4vw, 176px); white-space: nowrap; }
.mega-2 { color: var(--lime); padding-left: 7vw; }
.mega-dot { color: var(--red); font-style: normal; }
.mega span { animation: slam .55s var(--snap) backwards; }
.mega-2 { animation-delay: .12s !important; }
@keyframes slam { from { transform: translateY(40%) scaleY(1.3); opacity: 0; } }

.stk-bottle { position: absolute; width: clamp(80px, 11vw, 170px); height: auto; z-index: 4;
  filter: drop-shadow(0 0 0 #fff) drop-shadow(3px 0 0 #fff) drop-shadow(-3px 0 0 #fff) drop-shadow(0 3px 0 #fff) drop-shadow(0 -3px 0 #fff) drop-shadow(0 8px 0 rgb(0 0 0 / .25));
  transition: transform .25s var(--spring); animation: stickOn .45s var(--spring) backwards; }
.stk-bottle:hover { transform: rotate(var(--r)) scale(1.06); }
@keyframes stickOn { from { transform: rotate(var(--r)) scale(1.5); opacity: 0; } }
.b1 { --r: 12deg; right: 1.5%; top: 70px; width: clamp(80px, 9vw, 140px); transform: rotate(var(--r)); animation-delay: .35s; }
.b2 { --r: -14deg; right: 30%; top: auto; bottom: 0; width: clamp(64px, 8vw, 120px); transform: rotate(var(--r)); animation-delay: .5s; }
.b3 { --r: 9deg; right: -190px; bottom: 140px; transform: rotate(var(--r)); }
@media (max-width: 760px) { .b1, .b2, .b3 { display: none; } .mega span { font-size: 13.2vw; } .mega-2 { padding-left: 0; } }

.hero-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; margin-top: 34px; flex-wrap: wrap; }
.hero-lede { max-width: 44ch; margin: 0; font-size: 18px; line-height: 1.55; font-weight: 600; color: rgb(246 240 227 / .88); }

/* marker notes */
.note { position: relative; font-family: var(--marker); color: var(--cream); font-size: 22px; line-height: 1.15; }
.note p { margin: 0; }
.note-hero { background: var(--paper); color: var(--navy); padding: 18px 22px 18px; transform: rotate(3deg); box-shadow: var(--hard); margin-right: 6%; }
.note-hero .note-arrow { position: absolute; right: -60px; bottom: -78px; width: 100px; stroke: var(--cream); }
.tape { position: absolute; width: 90px; height: 26px; background: rgb(255 255 255 / .55); top: -12px; left: 50%; margin-left: -45px; transform: rotate(-4deg); box-shadow: 0 1px 2px rgb(0 0 0 / .1); }
.note-arrow { fill: none; stroke: currentColor; stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; }
.note-arrow path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw .7s 1.2s var(--snap) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.note-arrow path { stroke-dasharray: 220; stroke-dashoffset: 220; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@media (max-width: 760px) { .note-hero { margin: 0 0 0 auto; font-size: 19px; } .note-hero .note-arrow { right: auto; left: -40px; bottom: -70px; transform: scaleX(-1); } }

/* HUD: a sticker, not glass */
.hud { position: sticky; top: 10px; z-index: 60; display: flex; align-items: stretch; width: max-content; max-width: calc(100% - 24px); margin: 40px auto 0;
  background: var(--paper); color: var(--navy); border: 3px solid #fff; border-radius: 14px; box-shadow: var(--hard); overflow: hidden; }
.hud > div { display: flex; align-items: center; gap: 8px; padding: 8px 14px; font-weight: 700; font-size: 14px; white-space: nowrap; }
.hud > div + div { border-left: 2px dashed rgb(44 53 79 / .2); }
.hud small { font-weight: 600; opacity: .7; font-size: 12.5px; }
.hud-streak { background: var(--red); color: #fff; }
.hud-streak small { opacity: .9; }
.hud-streak .odo { font-family: var(--display); font-size: 20px; }
.hud-streak.is-bump { animation: bump .45s var(--spring); }
@keyframes bump { 40% { transform: scale(1.12) rotate(-3deg); } }
.hud svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.hud-count b { font-variant-numeric: tabular-nums; }
@media (max-width: 560px) { .hud small { display: none; } .hud > div { padding: 8px 11px; } }

.odo { display: inline-flex; align-items: flex-start; height: 1em; line-height: 1; overflow: hidden; font-variant-numeric: tabular-nums; }
.odo-col { flex: none; display: flex; flex-direction: column; transition: transform .8s var(--spring); }
.odo-col span { height: 1em; display: block; text-align: center; }

/* ============ the tree ============ */
.tree-wrap { position: relative; z-index: 2; max-width: 980px; margin: 30px auto 0; padding: 30px 16px 10px; }
.tree-scribble { position: absolute; left: 4%; right: 4%; top: 0; width: 92%; height: 100%; z-index: 0; pointer-events: none; }
.tree-scribble path { fill: rgb(6 53 33 / .55); stroke: #2e8a5e; stroke-width: 4; stroke-linejoin: round; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.6s .3s var(--snap) forwards; vector-effect: non-scaling-stroke; }
.tree { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: clamp(8px, 1.4vw, 16px); --s: clamp(46px, 11.6vw, 112px); }
.row { position: relative; display: flex; justify-content: center; gap: clamp(6px, 1.4vw, 16px); }
/* fairy lights strung under each row */
.row:not(.row-star):not(.row-gifts)::after {
  content: ''; position: absolute; left: -4%; right: -4%; bottom: calc(var(--s) * -.18); height: calc(var(--s) * .35); z-index: -1;
  border-bottom: 3px dotted var(--gold); border-radius: 0 0 50% 50%; animation: twinkle 1.4s steps(2) infinite;
}
.row:nth-child(even)::after { animation-delay: .7s; }
@keyframes twinkle { 50% { border-bottom-color: #fff7d6; } }
.row-gifts { margin-top: calc(var(--s) * .12); gap: clamp(10px, 2vw, 22px); }

/* a sticker */
.st {
  --bg: var(--red); --fg: #fff; --r: 0deg; --p: 0;
  position: relative; width: var(--s); height: var(--s); padding: 0; border: 0; background: none; cursor: pointer;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation; user-select: none; -webkit-user-select: none;
  transform: rotate(var(--r)); perspective: 600px;
  animation: stickOn .4s var(--spring) backwards; animation-delay: calc(var(--n) * 40ms + 700ms);
}
.tree.is-in .st { animation: none; }
.tree.is-in .st.is-today { animation: wiggle 2.6s ease-in-out infinite; }
.tree.is-in .st.is-pressing { animation: none; }
.st:focus-visible { outline: 3px dashed var(--lime); outline-offset: 6px; border-radius: 50%; }

/* what's left behind when it's peeled: glue residue ring + reward */
.st-under { position: absolute; inset: 0; border-radius: 50%; display: grid; place-items: center; text-align: center;
  border: 3px dashed rgb(246 240 227 / .45); background: rgb(6 53 33 / .5); color: var(--cream); opacity: 0; transition: opacity .25s .2s; }
.st.is-open .st-under { opacity: 1; }
.st-under svg { width: 36%; height: 36%; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.st-under small { display: block; font-size: clamp(8px, 1vw, 11px); font-weight: 700; line-height: 1.1; margin-top: 2px; max-width: 90%; margin-inline: auto; }

.st-face {
  position: absolute; inset: 0; border-radius: 50%; display: grid; place-items: center; background: var(--bg); color: var(--fg);
  border: calc(var(--s) * .055) solid #fff; box-shadow: 0 calc(var(--s) * .06) 0 rgb(0 0 0 / .28);
  transform-origin: 0 0; transform: rotate3d(1, -1, 0, calc(var(--p) * -38deg)); transition: box-shadow .15s;
  overflow: hidden;
}
.st-face b { font-family: var(--display); font-weight: 400; font-size: calc(var(--s) * .44); line-height: 1; letter-spacing: -.04em; position: relative; }
/* bauble cap */
.st-cap { position: absolute; left: 50%; top: calc(var(--s) * -.14); width: calc(var(--s) * .26); height: calc(var(--s) * .16); margin-left: calc(var(--s) * -.13); z-index: 2;
  background: var(--gold); border: 3px solid #fff; border-radius: 4px 4px 2px 2px; box-shadow: 0 3px 0 rgb(0 0 0 / .2); transition: opacity .2s; }
.st.is-open .st-cap { opacity: 0; }
/* peel curl: the lifted corner shows the white back */
.st-face::after { content: ''; position: absolute; left: -10%; top: -10%; width: 60%; height: 60%; border-radius: 0 0 100% 0;
  background: linear-gradient(135deg, #fff 45%, #e9e2d3 70%, transparent 71%); transform: scale(calc(var(--p) * 1.2)); transform-origin: 0 0; }

/* styles */
.st.s-red { --bg: var(--red); --fg: #fff; }
.st.s-cream { --bg: var(--paper); --fg: var(--navy); }
.st.s-navy { --bg: var(--navy); --fg: var(--paper); }
.st.s-lime { --bg: var(--lime); --fg: #063521; }
.st.s-cane .st-face { background: repeating-linear-gradient(-45deg, var(--red) 0 calc(var(--s) * .1), #fff calc(var(--s) * .1) calc(var(--s) * .2)); }
.st.s-cane .st-face b { background: #fff; color: var(--red-2); border-radius: 50%; width: 64%; height: 64%; display: grid; place-items: center; font-size: calc(var(--s) * .34); }
.st.s-green .st-face { background: #094a2f; color: var(--lime); border-color: var(--lime); }

/* presents */
.st.is-gift, .st.is-gift .st-face, .st.is-gift .st-under { border-radius: 10px; }
.st.is-gift { width: calc(var(--s) * 1.12); height: calc(var(--s) * .92); }
.st.is-gift .st-face::before { content: ''; position: absolute; inset: 0; background:
  linear-gradient(90deg, transparent 42%, var(--gold) 42% 58%, transparent 58%), linear-gradient(0deg, transparent 42%, var(--gold) 42% 58%, transparent 58%); }
.st.is-gift .st-cap { width: calc(var(--s) * .44); margin-left: calc(var(--s) * -.22); height: calc(var(--s) * .2); top: calc(var(--s) * -.16); background: none; border: 0; box-shadow: none;
  background: radial-gradient(circle at 30% 60%, var(--gold) 0 34%, transparent 35%), radial-gradient(circle at 70% 60%, var(--gold) 0 34%, transparent 35%); }
.st.is-gift .st-face b { text-shadow: 0 0 0 transparent; z-index: 1; background: inherit; }

/* gold star */
.st.is-star { --s2: calc(var(--s) * 1.5); width: var(--s2); height: var(--s2); }
.st.is-star .st-face, .st.is-star .st-under { border: 0; border-radius: 0; box-shadow: none; background: var(--gold);
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); }
.st.is-star .st-face { filter: drop-shadow(0 6px 0 rgb(0 0 0 / .25)); background: linear-gradient(var(--gold), var(--gold)) padding-box; color: var(--green-3); }
.st.is-star .st-face b { font-size: calc(var(--s) * .5); margin-top: 12%; }
.st.is-star .st-under { background: rgb(6 53 33 / .6); }
.star-outline { position: absolute; inset: -7%; pointer-events: none; background: #fff; z-index: -1;
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); }
.st.is-star.is-open .star-outline { opacity: .25; }
.st.is-star .st-cap { display: none; }

/* states */
.st.is-today { z-index: 3; animation: wiggle 2.6s ease-in-out infinite; }
@keyframes wiggle { 0%, 70%, 100% { transform: rotate(var(--r)); } 76% { transform: rotate(calc(var(--r) - 9deg)) scale(1.06); } 82% { transform: rotate(calc(var(--r) + 8deg)) scale(1.06); } 88% { transform: rotate(calc(var(--r) - 4deg)); } }
.st.is-pressing { animation: none; transform: rotate(var(--r)) translate(calc(var(--jx, 0) * 1px), calc(var(--jy, 0) * 1px)); }
.st.is-pressing .st-face { box-shadow: 0 calc(var(--s) * .02) 0 rgb(0 0 0 / .28); }
.st.is-open .st-face { visibility: hidden; }
.st.is-missed .st-face { filter: grayscale(.85) brightness(.75); }
.st.is-missed::after { content: ''; position: absolute; inset: 12%; z-index: 3; pointer-events: none;
  background: linear-gradient(45deg, transparent 46%, var(--red) 46% 54%, transparent 54%), linear-gradient(-45deg, transparent 46%, var(--red) 46% 54%, transparent 54%); opacity: .9; }
.st.is-missed.can-save::after { opacity: .5; }
.st.is-locked { cursor: not-allowed; }
.st.is-shake { animation: shake .35s !important; }
@keyframes shake { 25% { transform: rotate(calc(var(--r) - 8deg)); } 75% { transform: rotate(calc(var(--r) + 8deg)); } }
.st.is-saved .st-under { border-color: var(--lime); }

/* peeled sticker flying away */
.peeled { position: fixed; left: 0; top: 0; z-index: 210; pointer-events: none; border-radius: 50%; display: grid; place-items: center; }

/* annotations around the tree */
.note-star { position: absolute; left: 4%; top: 10px; transform: rotate(-6deg); color: var(--gold); }
.note-star .note-arrow { width: 90px; position: absolute; right: -96px; top: -6px; }
.note-gifts { position: absolute; left: 2%; bottom: 40px; transform: rotate(4deg); color: var(--lime); }
.note-gifts .note-arrow { width: 90px; position: absolute; right: -96px; top: 10px; }
.today-arrow { position: absolute; z-index: 5; pointer-events: none; color: var(--lime); font-family: var(--marker); font-size: 22px; display: none; transform: rotate(-8deg); }
.today-arrow svg { display: block; width: 62px; margin-left: 30px; fill: none; stroke: currentColor; stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; }
.today-arrow.is-on { display: block; animation: nudge 1.2s ease-in-out infinite; }
@keyframes nudge { 50% { translate: 4px 4px; } }
@media (max-width: 760px) { .note-star, .note-gifts { font-size: 16px; } .note-star .note-arrow, .note-gifts .note-arrow { width: 50px; right: -50px; } .note-gifts { bottom: 20px; left: 0; } }

.torn { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 40px; z-index: 3; }
.torn path { fill: var(--cream); }

/* ============ cream: streak ============ */
.cream { position: relative; z-index: 2; background: var(--cream); padding: 70px 24px 110px; }
.streak-top { max-width: 1200px; margin: 0 auto; display: flex; align-items: flex-end; gap: 28px; flex-wrap: wrap; }
.streak-num { font-family: var(--display); color: var(--red); line-height: .8; }
.streak-num .odo { font-size: clamp(140px, 22vw, 320px); letter-spacing: -.06em; height: .86em; line-height: .86; }
.streak-num .odo-col span { height: .86em; line-height: .86; }
.streak-say { padding-bottom: 22px; }
.streak-say .marker { margin: 0; font-size: clamp(30px, 4vw, 52px); line-height: 1; color: var(--green); transform: rotate(-3deg); transform-origin: left; }
.streak-sub { margin: 14px 0 0; font-weight: 600; font-size: 16px; color: rgb(44 53 79 / .75); max-width: 36ch; }

.cane-meter { position: relative; max-width: 1200px; margin: 30px auto 0; }
.cane-meter svg { width: 100%; height: auto; overflow: visible; display: block; }
.cane-track-path { fill: none; stroke: rgb(44 53 79 / .1); stroke-width: 34; stroke-linecap: round; }
.cane-fill { fill: none; stroke: url(#stripes); stroke-width: 34; stroke-linecap: round; stroke-dasharray: 0 100; transition: stroke-dasharray 1.2s var(--snap); filter: drop-shadow(0 5px 0 rgb(0 0 0 / .18)); }
.miles { position: absolute; inset: 0; pointer-events: none; }
.mile { position: absolute; transform: translate(-50%, -100%); text-align: center; width: 120px; }
.mile-badge { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 3px solid #fff; background: var(--paper); color: var(--navy); font-family: var(--display); font-size: 15px; box-shadow: 0 4px 0 rgb(0 0 0 / .18); transform: rotate(-6deg); transition: transform .3s var(--spring), background .2s; }
.mile.is-hit .mile-badge { background: var(--green); color: var(--lime); transform: rotate(6deg) scale(1.1); }
.mile.is-gold .mile-badge { background: var(--gold); color: var(--green-3); }
.mile b { display: block; font-size: 13px; margin-top: 4px; line-height: 1.1; }
.mile span { display: block; font-size: 11.5px; font-weight: 600; color: rgb(44 53 79 / .65); line-height: 1.2; }
.mile:nth-child(even) { transform: translate(-50%, 18px); }
.mile:nth-child(even) .mile-badge { order: 2; }
@media (max-width: 760px) { .mile { width: 80px; } .mile b { font-size: 11px; } .mile span { display: none; } .mile-badge { width: 32px; height: 32px; font-size: 12px; } }

.days { max-width: 1200px; margin: 60px auto 0; display: grid; grid-template-columns: repeat(25, 1fr); gap: 6px; }
@media (max-width: 760px) { .days { grid-template-columns: repeat(13, 1fr); } }
.day { aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; font-family: var(--display); font-size: clamp(9px, 1vw, 13px); background: rgb(44 53 79 / .07); color: rgb(44 53 79 / .4); }
.day.is-on { background: var(--green); color: var(--lime); }
.day.is-saved { background: repeating-linear-gradient(-45deg, #cfe1f2 0 4px, #fff 4px 8px); color: var(--navy); }
.day.is-missed { background: transparent; box-shadow: inset 0 0 0 2px var(--red); color: var(--red); }
.day.is-today { background: var(--red); color: #fff; }
.day.is-gold { box-shadow: inset 0 0 0 2px var(--gold-2); }
.day.is-pop { animation: bump .45s var(--spring); }

.snow-row { max-width: 1200px; margin: 22px auto 0; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-weight: 600; font-size: 14.5px; color: rgb(44 53 79 / .8); }
.flake { width: 44px; height: 44px; border-radius: 50%; background: #fff; display: grid; place-items: center; color: #4f7fb3; box-shadow: 0 4px 0 rgb(0 0 0 / .14); transition: transform .3s var(--spring), opacity .2s; }
.flake svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.flake.is-used { opacity: .3; transform: scale(.85) rotate(30deg); box-shadow: none; }

/* lined paper note */
.lined { position: relative; max-width: 1060px; margin: 90px auto 0; padding: 44px 48px 40px 92px; transform: rotate(-1deg);
  background: linear-gradient(90deg, transparent 66px, rgb(214 38 58 / .45) 66px 68px, transparent 68px), repeating-linear-gradient(transparent 0 33px, rgb(79 127 179 / .28) 33px 34px), var(--paper);
  box-shadow: 0 8px 0 rgb(0 0 0 / .08); display: grid; grid-template-columns: 1.4fr 1fr; gap: 10px 50px; }
.lined .tape { width: 110px; top: -14px; }
.lined .t1 { left: 8%; margin: 0; transform: rotate(-7deg); }
.lined .t2 { left: auto; right: 6%; margin: 0; transform: rotate(5deg); }
.lined h2 { grid-column: 1 / -1; margin: 0 0 4px; font-size: clamp(34px, 4vw, 52px); line-height: 1; color: var(--red); }
.lined ol { list-style: none; margin: 0; padding: 0; }
.lined li { display: grid; grid-template-columns: 34px 1fr; gap: 10px; font-size: 16px; line-height: 34px; font-weight: 600; }
.lined li b { font-family: var(--marker); font-weight: 400; color: var(--green); font-size: 24px; }
.lined-side .marker { margin: 0; font-size: 22px; line-height: 34px; color: var(--green); }
.lined-side ul { list-style: none; margin: 0; padding: 0; }
.lined-side li { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; line-height: 34px; font-weight: 600; }
.lined-side li b { font-family: var(--marker); font-weight: 400; font-size: 22px; color: var(--red); }
.lined-side li.gold b, .lined-side li.gold span { color: var(--gold-2); }
@media (max-width: 760px) { .lined { grid-template-columns: 1fr; padding: 40px 20px 28px 52px; background: linear-gradient(90deg, transparent 36px, rgb(214 38 58 / .45) 36px 38px, transparent 38px), repeating-linear-gradient(transparent 0 33px, rgb(79 127 179 / .28) 33px 34px), var(--paper); } .lined li { line-height: 1.5; padding: 6px 0; } }

.green-foot { position: relative; z-index: 2; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; background: var(--green); color: var(--cream); padding: 28px 24px 100px; font-size: 13px; font-weight: 600; }

/* ============ reveal: gift tag ============ */
.reveal { position: fixed; inset: 0; z-index: 150; visibility: hidden; }
.reveal.is-open { visibility: visible; }
.reveal-bg { position: absolute; inset: 0; background: rgb(6 53 33 / .72); opacity: 0; transition: opacity .2s; }
.reveal.is-open .reveal-bg { opacity: 1; }
.tag-rig { position: absolute; left: 50%; top: 0; width: min(400px, calc(100% - 28px)); transform: translateX(-50%); transform-origin: 50% 0; display: flex; flex-direction: column; align-items: center; pointer-events: none; }
.string { width: 3px; height: clamp(30px, 8vh, 90px); background: repeating-linear-gradient(var(--red) 0 8px, #fff 8px 16px); }
.tag {
  position: relative; width: 100%; pointer-events: auto; background: var(--paper); color: var(--navy); padding: 34px 26px 22px;
  clip-path: polygon(14% 0, 86% 0, 100% 7%, 100% 100%, 0 100%, 0 7%);
  border-bottom: 12px solid transparent;
  background-image: repeating-linear-gradient(-45deg, var(--red) 0 12px, #fff 12px 24px); background-size: 100% 12px; background-repeat: no-repeat; background-position: bottom; background-color: var(--paper);
  max-height: calc(100dvh - 110px); overflow: auto;
}
.tag-rig { transform: translateX(-50%) translateY(-120%); }
.reveal.is-shown .tag-rig { animation: swing 1.1s var(--snap) forwards; }
@keyframes swing {
  0% { transform: translateX(-50%) translateY(-120%) rotate(0); }
  35% { transform: translateX(-50%) translateY(0) rotate(9deg); }
  55% { transform: translateX(-50%) rotate(-6deg); }
  72% { transform: translateX(-50%) rotate(3deg); }
  86% { transform: translateX(-50%) rotate(-1.4deg); }
  100% { transform: translateX(-50%) rotate(0); }
}
.reveal.is-leaving .tag-rig { animation: yank .3s ease-in forwards; }
@keyframes yank { from { transform: translateX(-50%); } to { transform: translateX(-50%) translateY(-130%); } }
.tag-hole { position: absolute; left: 50%; top: 12px; width: 16px; height: 16px; margin-left: -8px; border-radius: 50%; background: var(--green-3); box-shadow: inset 0 0 0 3px var(--gold); }
.tag-close { position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; border-radius: 8px; border: 2px solid var(--navy); background: none; cursor: pointer; display: grid; place-items: center; }
.tag-close svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; }
.tag-day { display: flex; align-items: baseline; gap: 8px; font-family: var(--display); color: var(--red); line-height: .8; }
.tag-day small { font-family: var(--marker); font-size: 22px; color: var(--green); }
.tag-day span { font-size: 92px; letter-spacing: -.06em; }
.tag-pic { margin-top: 12px; }
.tag-pic:empty { display: none; }
.tag-pic .polaroid { display: inline-block; background: #fff; padding: 8px 8px 26px; box-shadow: 0 5px 0 rgb(0 0 0 / .12); transform: rotate(-4deg); position: relative; }
.tag-pic .polaroid img { width: 150px; height: 150px; object-fit: contain; }
.tag-pic .polaroid::before { content: ''; position: absolute; width: 70px; height: 20px; left: 50%; margin-left: -35px; top: -10px; background: rgb(200 239 79 / .7); transform: rotate(3deg); }
.tag-pic .big-glyph { font-family: var(--display); font-size: 64px; line-height: .9; letter-spacing: -.05em; color: var(--green); }
.tag-pic .big-glyph small { display: block; font-family: var(--marker); font-size: 20px; letter-spacing: 0; color: var(--red); margin-top: 4px; }
.tag-kind { margin: 14px 0 0; font-size: 22px; color: var(--green); transform: rotate(-2deg); transform-origin: left; }
.tag h3 { margin: 4px 0 0; font-family: var(--display); font-weight: 400; font-size: 28px; line-height: 1; letter-spacing: -.03em; text-transform: uppercase; }
.tag-text { margin: 10px 0 0; font-size: 15px; line-height: 1.5; font-weight: 600; color: rgb(44 53 79 / .78); }
.code { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 16px; padding: 7px 7px 7px 14px; border: 2.5px dashed var(--navy); border-radius: 10px; }
.code b { font-family: var(--display); font-weight: 400; font-size: 20px; letter-spacing: .04em; }
.code button { border: 0; cursor: pointer; background: var(--green); color: var(--lime); font-weight: 700; padding: 9px 13px; border-radius: 7px; box-shadow: 0 3px 0 var(--green-3); transition: transform .1s; }
.code button:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--green-3); }
.tag-actions { display: flex; gap: 8px; margin-top: 16px; }
.btn { flex: 1; border: 0; cursor: pointer; background: var(--red); color: #fff; font-weight: 700; font-size: 15.5px; padding: 14px 16px; border-radius: 10px; box-shadow: 0 5px 0 var(--red-2); transition: transform .1s, box-shadow .1s; }
.btn:hover { background: #e0303f; }
.btn:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--red-2); }
.btn-quiet { flex: none; background: transparent; color: var(--navy); box-shadow: inset 0 0 0 2.5px var(--navy); }
.btn-quiet:hover { background: rgb(44 53 79 / .06); }
.btn-quiet:active { box-shadow: inset 0 0 0 2.5px var(--navy); }
a.btn { display: block; text-align: center; text-decoration: none; }
.btn:focus-visible, .code button:focus-visible, .tag-close:focus-visible { outline: 3px solid var(--lime); outline-offset: 2px; }
.tag-foot { margin: 16px 0 6px; font-size: 12.5px; font-weight: 700; color: rgb(44 53 79 / .6); }

/* ============ toast + mock ============ */
.toast { position: fixed; left: 50%; bottom: 22px; z-index: 260; transform: translate(-50%, 180%) rotate(-2deg); transition: transform .35s var(--spring);
  background: var(--paper); color: var(--navy); padding: 12px 18px; border: 3px solid #fff; border-radius: 12px; box-shadow: var(--hard); max-width: calc(100% - 32px); text-align: center; }
.toast.is-on { transform: translate(-50%, 0) rotate(-2deg); }
.toast b { display: block; font-family: var(--marker); font-weight: 400; font-size: 20px; color: var(--red); }
.toast span { font-size: 13.5px; font-weight: 600; }

.mock { position: fixed; left: 12px; bottom: 12px; z-index: 300; background: #111; color: #fff; border-radius: 10px; padding: 7px; font-size: 12px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; max-width: calc(100% - 24px); }
.mock select, .mock button { background: #2a2a2a; color: #fff; border: 1px solid #444; border-radius: 7px; padding: 5px 8px; font-size: 12px; cursor: pointer; }
.mock .day-out { min-width: 48px; text-align: center; font-weight: 700; }
.mock.is-min > :not(.mock-toggle) { display: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .tree-scribble path, .note-arrow path { stroke-dashoffset: 0; }
}

/* snow day reward chip */
.chip-snow { display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px 12px 14px; border-radius: 999px; background: #fff; color: #3f74ad;
  border: 3px solid #cfe1f2; box-shadow: 0 5px 0 rgb(0 0 0 / .14); transform: rotate(-5deg); font-family: var(--display); font-size: 26px; }
.chip-snow svg { width: 34px; height: 34px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; animation: spinflake 6s linear infinite; }
@keyframes spinflake { to { transform: rotate(360deg); } }
.chip-fly { position: fixed; z-index: 220; pointer-events: none; padding: 10px; font-size: 0; gap: 0; }
.chip-fly svg { animation: none; }
.hud-snow.is-bump { animation: bump .45s var(--spring); }

/* ============ good list points in the HUD ============ */
.hud-pts { color: var(--gold-2); }
.hud-pts b { color: var(--navy); font-family: var(--display); font-weight: 400; font-size: 16px; }
.hud-pts svg { fill: var(--gold); stroke: var(--gold-2); }

/* ============ the present under the tree: grows with your tier ============ */
.present { --w: 120px; position: relative; display: block; margin: 26px auto 0; width: var(--w); height: calc(var(--w) * .82); padding: 0; border: 0; background: none; cursor: pointer; z-index: 2;
  transition: width .5s var(--spring), height .5s var(--spring); }
.present:focus-visible { outline: 3px dashed var(--lime); outline-offset: 8px; }
.pr-box { position: absolute; left: 6%; right: 6%; bottom: 0; height: 74%; border-radius: 6px; border: 4px solid #fff; box-shadow: 0 7px 0 rgb(0 0 0 / .25); background: var(--wrap, #c9a77a); }
.pr-lid { position: absolute; left: 0; right: 0; top: 14%; height: 20%; border-radius: 5px; border: 4px solid #fff; background: var(--wrap, #c9a77a); filter: brightness(.94); box-shadow: 0 4px 0 rgb(0 0 0 / .15); }
.pr-box::before, .pr-lid::before { content: ''; position: absolute; top: 0; bottom: 0; left: 50%; width: 16%; margin-left: -8%; background: var(--ribbon, #8b6b45); }
.pr-box::after { content: ''; position: absolute; left: 0; right: 0; top: 42%; height: 16%; background: var(--ribbon, #8b6b45); }
.pr-bow { position: absolute; left: 50%; top: 0; width: 44%; height: 22%; margin-left: -22%;
  background: radial-gradient(circle at 26% 60%, var(--ribbon, #8b6b45) 0 30%, transparent 31%), radial-gradient(circle at 74% 60%, var(--ribbon, #8b6b45) 0 30%, transparent 31%), radial-gradient(circle at 50% 80%, var(--ribbon, #8b6b45) 0 14%, transparent 15%); }
.pr-tag { position: absolute; right: -58%; top: 34%; transform: rotate(8deg); background: var(--paper); color: var(--navy); padding: 6px 10px 6px 14px; border-radius: 4px; box-shadow: 0 3px 0 rgb(0 0 0 / .2);
  clip-path: polygon(10px 0, 100% 0, 100% 100%, 10px 100%, 0 50%); white-space: nowrap; text-align: left; }
.pr-tag b { display: block; font-family: var(--marker); font-weight: 400; font-size: 13px; color: var(--red); line-height: 1; }
.pr-tag span { font-family: var(--display); font-size: 13px; text-transform: uppercase; }
/* kraft paper for the good list */
.present.tier-good { --w: 120px; --wrap: repeating-linear-gradient(45deg, #c9a77a 0 6px, #c19e70 6px 12px); --ribbon: var(--red); }
/* red with gold for very good */
.present.tier-very { --w: 150px; --wrap: var(--red); --ribbon: var(--gold); }
.present.tier-very .pr-box { background: radial-gradient(circle, rgb(255 255 255 / .9) 0 2px, transparent 3px) 0 0 / 16px 16px, var(--red); }
/* gold foil for the gold list */
.present.tier-gold { --w: 180px; --wrap: var(--gold); --ribbon: var(--red); }
.present.tier-gold .pr-box, .present.tier-gold .pr-lid { background: repeating-linear-gradient(90deg, #f2c14e 0 10px, #f6cf6b 10px 20px); }
.present.tier-gold::after { content: '✶'; position: absolute; right: 6%; top: -8%; color: #fff7d6; font-size: 28px; animation: twinkle 1.2s steps(2) infinite; }
.present.tier-good, .present.tier-very, .present.tier-gold { animation: presentIn .6s var(--spring); }
@keyframes presentIn { from { transform: scale(.5) rotate(-8deg); } }
/* not bought yet: a dashed outline of where your present will go */
.present.is-empty .pr-box, .present.is-empty .pr-lid { background: transparent; border: 3px dashed rgb(246 240 227 / .55); box-shadow: none; }
.present.is-empty .pr-box::before, .present.is-empty .pr-box::after, .present.is-empty .pr-lid::before, .present.is-empty .pr-bow { display: none; }
.present.is-empty .pr-tag { background: rgb(246 240 227 / .85); }
@media (max-width: 760px) { .present { --w: 90px !important; } .pr-tag { right: -80%; } }

/* ============ the good list ============ */
.goodlist { max-width: 1200px; margin: 0 auto 110px; display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
@media (max-width: 860px) { .goodlist { grid-template-columns: 1fr; gap: 40px; } }
.gl-kicker { margin: 0; font-size: 24px; color: var(--red); transform: rotate(-3deg); transform-origin: left; }
.gl-title { margin: 8px 0 0; font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(48px, 6vw, 92px); line-height: .86; letter-spacing: -.045em; color: var(--green); }
.gl-lede { margin: 20px 0 0; font-size: 17px; line-height: 1.55; font-weight: 600; color: rgb(44 53 79 / .8); max-width: 44ch; }
.gl-earn { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 8px; }
.gl-earn li { display: grid; grid-template-columns: 64px 1fr; align-items: center; gap: 12px; font-weight: 600; font-size: 15px; }
.gl-earn b { font-family: var(--display); font-weight: 400; font-size: 17px; color: #fff; background: var(--green); border-radius: 999px; padding: 6px 0; text-align: center; box-shadow: 0 3px 0 var(--green-3); }
.gl-status { margin: 22px 0 0; padding: 14px 16px; background: var(--paper); border: 2.5px dashed var(--red); border-radius: 10px; font-size: 15px; font-weight: 600; line-height: 1.45; }
.gl-status b { color: var(--red); }

.scroll { position: relative; transform: rotate(2deg); filter: drop-shadow(0 10px 0 rgb(0 0 0 / .1)); }
.scroll-roll { display: block; height: 30px; margin: 0 -14px; border-radius: 15px; background: linear-gradient(#e9dcc0, #fff6e2 40%, #d9c8a4); border: 3px solid #fff; position: relative; z-index: 1; }
.scroll-paper { margin: -14px 0; padding: 36px 30px 30px; background: #fff6e2;
  background-image: repeating-linear-gradient(transparent 0 38px, rgb(201 167 122 / .25) 38px 39px); }
.scroll-head { margin: 0 0 14px; font-size: 30px; color: var(--green); text-align: center; }
.gl-body { display: grid; grid-template-columns: 1fr 64px; gap: 16px; }
.gl-tiers { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.gl-tier { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; padding: 10px 12px; border-radius: 12px; opacity: .5; transition: opacity .3s, background .3s, transform .3s var(--spring); }
.gl-tier.is-hit { opacity: 1; }
.gl-tier.is-current { background: rgb(44 53 79 / .1); transform: scale(1.03); box-shadow: inset 0 0 0 2.5px var(--green); }
.gl-tier b { display: block; font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: 18px; letter-spacing: -.02em; }
.gl-tier div span { font-size: 14px; font-weight: 600; color: rgb(44 53 79 / .75); }
.gl-tier em { font-style: normal; font-family: var(--marker); font-size: 18px; color: var(--red); white-space: nowrap; }
.gl-tier.is-hit em::after { content: ' ✓'; color: var(--green); }
/* mini presents, scaled by tier */
.gl-mini { justify-self: center; display: block; border: 3px solid #fff; border-radius: 5px; box-shadow: 0 4px 0 rgb(0 0 0 / .2); position: relative;
  background: linear-gradient(90deg, transparent 42%, var(--rb) 42% 58%, transparent 58%), linear-gradient(0deg, transparent 42%, var(--rb) 42% 58%, transparent 58%), var(--wr); }
.gl-mini.tier-good { width: 34px; height: 30px; --wr: #c9a77a; --rb: var(--red); }
.gl-mini.tier-very { width: 46px; height: 40px; --wr: var(--red); --rb: var(--gold); }
.gl-mini.tier-gold { width: 58px; height: 50px; --wr: var(--gold); --rb: var(--red); }
/* the "you" marker climbing the list */
.gl-rail { position: relative; border-radius: 999px; background: repeating-linear-gradient(-45deg, rgb(214 38 58 / .15) 0 6px, transparent 6px 12px); box-shadow: inset 0 0 0 2px rgb(214 38 58 / .3); }
.gl-you { --at: 0; position: absolute; left: 50%; bottom: calc(var(--at) * 100%); transform: translate(-50%, 50%) rotate(-6deg); transition: bottom 1s var(--spring);
  display: grid; place-items: center; width: 62px; height: 62px; border-radius: 50%; background: var(--red); color: #fff; border: 4px solid #fff; box-shadow: 0 4px 0 rgb(0 0 0 / .2);
  font-family: var(--marker); font-size: 12px; line-height: 1; text-align: center; }
.gl-you b { display: block; font-family: var(--display); font-weight: 400; font-size: 18px; }
.scroll-sign { margin: 22px 0 0; text-align: right; font-size: 18px; color: var(--navy); opacity: .75; }

.gl-earn .gl-order b { background: var(--gold); color: var(--green-3); box-shadow: 0 3px 0 var(--gold-2); font-size: 14px; text-transform: uppercase; }
.gl-earn .gl-order.is-done { text-decoration: line-through; text-decoration-color: var(--green); }
.gl-earn .gl-order.is-done b::after { content: ' ✓'; }
.scroll-terms { margin: 8px 0 0; font-size: 11.5px; font-weight: 600; color: rgb(44 53 79 / .55); text-align: right; }
@media (max-width: 860px) {
  .goodlist { grid-template-columns: minmax(0, 1fr); }
  .scroll-paper { padding: 30px 16px 22px; }
  .gl-body { grid-template-columns: minmax(0, 1fr) 48px; gap: 10px; }
  .gl-tier { grid-template-columns: 44px minmax(0, 1fr); gap: 10px; padding: 8px; }
  .gl-tier em { grid-column: 2; font-size: 15px; white-space: normal; }
  .gl-tier b { font-size: 15px; }
  .gl-mini.tier-gold { width: 44px; height: 38px; }
  .gl-you { width: 50px; height: 50px; }
}
/* how-it-works note is one column now the contents of the tree are a secret */
.lined { grid-template-columns: 1fr; max-width: 820px; }
.gl-earn .gl-order.is-done { text-decoration: none; }
@media (max-width: 860px) { .scroll-roll { margin: 0 -4px; } }
.green { overflow-x: clip; }

/* ============ simple streak card (replaces big number + cane) ============ */
.streak-card { max-width: 1000px; margin: 0 auto; background: var(--paper); border-radius: 18px; padding: 22px 24px 24px; box-shadow: 0 6px 0 rgb(0 0 0 / .08); }
.sc-head { display: flex; justify-content: space-between; align-items: center; gap: 14px 20px; flex-wrap: wrap; }
.sc-streak { margin: 0; display: flex; align-items: baseline; gap: 10px; font-weight: 700; font-size: 18px; }
.sc-streak .odo { font-family: var(--display); font-size: 44px; color: var(--red); letter-spacing: -.04em; }
.streak-card .days { margin: 18px 0 0; }
.streak-card .snow-row { margin: 0; gap: 8px; font-size: 15px; }
.streak-card .snow-row b { font-family: var(--display); font-weight: 400; color: #3f74ad; }
.streak-card .flake { width: 34px; height: 34px; box-shadow: 0 3px 0 rgb(0 0 0 / .12); border: 2px solid #cfe1f2; }
.streak-card .flake svg { width: 18px; height: 18px; }

/* ============ the good list (red section) ============ */
.green > .torn path { fill: var(--red); }
.gl { position: relative; z-index: 2; background: var(--red); color: var(--cream); padding: 70px 24px 120px; overflow-x: clip; }
.gl::before { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .12; mix-blend-mode: overlay;
  background-image: 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='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.gl .torn-cream { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 40px; }
.gl .torn-cream path { fill: var(--cream); }
.gl-wrap { position: relative; max-width: 1240px; margin: 0 auto; }
.gl-head { display: grid; grid-template-columns: auto 1fr; gap: 6px 40px; align-items: end; }
.gl-ask { grid-column: 1 / -1; margin: 0; font-size: 26px; color: var(--gold); transform: rotate(-3deg); transform-origin: left; }
.gl-h { margin: 0; font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(56px, 9vw, 150px); line-height: .82; letter-spacing: -.05em; color: var(--cream); }
.gl-rules { margin: 0 0 10px; max-width: 40ch; font-size: 18px; line-height: 1.45; font-weight: 600; color: rgb(246 240 227 / .9); }
.gl-rules b { white-space: nowrap; color: #fff; background: rgb(0 0 0 / .16); padding: 0 5px; border-radius: 4px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
@media (max-width: 860px) { .gl-head { grid-template-columns: 1fr; } }

.gl-grid { display: grid; grid-template-columns: minmax(300px, 420px) 1fr; gap: 50px; align-items: center; margin-top: 46px; }
@media (max-width: 960px) { .gl-grid { grid-template-columns: minmax(0, 1fr); gap: 46px; } }

/* your entry: a sheet torn off a notepad, handwritten */
.sheet { position: relative; background: var(--paper); color: var(--navy); padding: 30px 26px 26px; transform: rotate(-1.5deg); box-shadow: 0 8px 0 rgb(0 0 0 / .2);
  background-image: repeating-linear-gradient(transparent 0 43px, rgb(79 127 179 / .25) 43px 44px); background-position: 0 66px; }
.sheet .tape { top: -13px; }
.sheet-title { margin: 0 0 8px; font-family: var(--display); text-transform: uppercase; font-size: 22px; letter-spacing: -.02em; display: flex; justify-content: space-between; align-items: baseline; }
.sheet-title span { font-family: var(--marker); text-transform: none; font-size: 16px; color: var(--red); letter-spacing: 0; }
.sheet-rows { margin: 0; }
.sheet-rows div { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 44px; }
.sheet-rows dt { font-size: 14px; font-weight: 700; color: rgb(44 53 79 / .6); }
.sheet-rows dd { margin: 0; display: flex; align-items: center; gap: 10px; }
.hand { font-family: var(--marker); font-size: 22px; color: var(--navy); }
#glShop.is-yes { color: var(--green); }
.sheet-bar { position: relative; width: 110px; height: 12px; border-radius: 99px; background: rgb(44 53 79 / .1); overflow: hidden; }
.sheet-bar i { position: absolute; inset: 0; transform-origin: left; transform: scaleX(0); background: var(--green); border-radius: inherit; transition: transform .8s var(--spring); }
.sheet-bar em { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-style: normal; font-size: 8.5px; font-weight: 700; color: rgb(44 53 79 / .55); }
.sheet-next { margin: 14px 0 0; padding-top: 12px; border-top: 2px dashed rgb(44 53 79 / .2); font-size: 20px; color: var(--red); }

/* the rubber stamp */
.stamp { position: absolute; right: -18px; top: 46%; display: grid; place-items: center; text-align: center; min-width: 150px; padding: 10px 16px; transform: rotate(-14deg);
  border: 5px solid currentColor; border-radius: 12px; outline: 2px solid currentColor; outline-offset: 3px; color: var(--green); background: rgb(255 250 240 / .4);
  font-family: var(--display); text-transform: uppercase; line-height: .9; pointer-events: none;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.4' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -2.2 1.6'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.4' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -2.2 1.6'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.stamp b { font-weight: 400; font-size: 30px; letter-spacing: -.02em; }
.stamp small { font-size: 13px; letter-spacing: .2em; margin-top: 4px; }
.stamp.tier-very { color: var(--red); }
.stamp.tier-gold { color: var(--gold-2); }
.stamp.is-slam { animation: slam-stamp .45s cubic-bezier(.2, .7, .3, 1.2); }
@keyframes slam-stamp { from { transform: rotate(-26deg) scale(2.6); opacity: 0; } 60% { transform: rotate(-12deg) scale(.94); opacity: 1; } to { transform: rotate(-14deg) scale(1); } }
@media (max-width: 560px) { .stamp { right: -6px; top: auto; bottom: 46px; min-width: 120px; } .stamp b { font-size: 24px; } }

/* three presents, getting bigger */
.gifts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 18px; align-items: end; }
.gift { position: relative; text-align: center; padding: 18px 12px 20px; border-radius: 18px; transition: background .3s, transform .35s var(--spring); }
.gift.is-current { background: rgb(0 0 0 / .16); transform: translateY(-8px); }
.gift:not(.is-hit) .mini-present { filter: saturate(.35) brightness(.85); }
.gift:not(.is-hit):not(.is-next) { opacity: .7; }
.gift-state { display: inline-block; margin: 14px 0 0; padding: 4px 10px; border-radius: 6px; font-size: 12.5px; font-weight: 700; background: rgb(0 0 0 / .2); color: #fff; }
.gift.is-current .gift-state { background: var(--gold); color: var(--green-3); }
.gift.is-hit:not(.is-current) .gift-state { background: var(--green); color: var(--lime); }
.gift-name { margin: 10px 0 0; font-family: var(--display); text-transform: uppercase; font-size: 22px; letter-spacing: -.02em; line-height: 1; }
.gift-how { margin: 6px 0 0; font-size: 14px; font-weight: 700; color: rgb(246 240 227 / .85); }
.gift-how i { font-style: normal; color: var(--gold); }
.gift-what { margin: 8px 0 0; font-size: 19px; line-height: 1.15; color: #fff; }
.gift[data-tier="gold"] .gift-what { color: var(--gold); }
@media (max-width: 560px) { .gifts { grid-template-columns: 1fr; gap: 6px; } .gift { display: grid; grid-template-columns: 90px 1fr; text-align: left; gap: 0 14px; align-items: center; padding: 12px; }
  .gift .mini-present { grid-row: span 4; margin: 0 auto; } .gift-state { justify-self: start; margin: 0; } .gift.is-current { transform: none; } }

/* mini present, reusing the tree present's parts */
.mini-present { --w: 90px; position: relative; display: block; margin: 0 auto; width: var(--w); height: calc(var(--w) * .82); }
.mini-present.tier-good { --w: 76px; --wrap: repeating-linear-gradient(45deg, #c9a77a 0 6px, #c19e70 6px 12px); --ribbon: var(--red); }
.mini-present.tier-very { --w: 104px; --wrap: var(--green); --ribbon: var(--gold); }
.mini-present.tier-gold { --w: 136px; --wrap: var(--gold); --ribbon: var(--red); }
.mini-present.tier-gold .pr-box, .mini-present.tier-gold .pr-lid { background: repeating-linear-gradient(90deg, #f2c14e 0 10px, #f6cf6b 10px 20px); }
.gift.is-current .mini-present { animation: hop 1.8s ease-in-out infinite; }
@keyframes hop { 0%, 70%, 100% { transform: none; } 78% { transform: translateY(-10px) rotate(-4deg); } 86% { transform: translateY(0) rotate(2deg); } }
@media (max-width: 560px) { .mini-present.tier-good { --w: 56px; } .mini-present.tier-very { --w: 66px; } .mini-present.tier-gold { --w: 78px; } }

.gl-small { margin: 46px 0 0; max-width: 80ch; font-size: 13px; line-height: 1.55; font-weight: 600; color: rgb(246 240 227 / .72); }
/* good list fixes: rules under the heading, stamp in the corner, locked presents keep their colour */
.gl-head { grid-template-columns: 1fr; }
.gl-rules { max-width: 54ch; margin: 18px 0 0; }
.stamp { top: auto; bottom: 64px; right: -22px; min-width: 132px; padding: 8px 14px; }
.stamp b { font-size: 26px; }
.gift:not(.is-hit) .mini-present { filter: none; }
.gift:not(.is-hit):not(.is-next) { opacity: .62; }
.gift.is-next .mini-present { animation: wobble 3s ease-in-out infinite; }
@keyframes wobble { 0%, 80%, 100% { transform: none; } 85% { transform: rotate(-5deg); } 90% { transform: rotate(5deg); } 95% { transform: rotate(-2deg); } }
.sheet-rows div:nth-child(3) { padding-right: 0; }
@media (max-width: 560px) { .stamp { bottom: 58px; right: -8px; } }
/* stamp hangs off the top corner so it never covers the entries */
.stamp { top: -34px; bottom: auto; right: -40px; z-index: 2; }
.sheet-title span { margin-right: 92px; }
@media (max-width: 560px) { .stamp { top: -40px; bottom: auto; right: -10px; } .sheet-title span { display: none; } }
.stamp { background: var(--paper); box-shadow: 0 4px 0 rgb(0 0 0 / .18); } .stamp.tier-gold { color: #b8860b; }

/* HUD: every number gets a word */
.hud > div { gap: 6px; font-size: 14px; }
.hud > div > span { font-weight: 600; opacity: .75; }
.hud-streak > span { opacity: .95 !important; }
.hud b { font-family: var(--display); font-weight: 400; font-size: 18px; }
.hud-snow b { color: #3f74ad; }
.hud-pts b { color: var(--gold-2); }
.hud-count b { font-family: var(--sans); font-weight: 700; font-size: 14px; }
/* "day streak" on desktop, "days" on phones */
.hud .sm { display: none; }
@media (max-width: 560px) { .hud .lg { display: none; } .hud .sm { display: inline; } .hud > div { padding: 8px 10px; font-size: 13px; } .hud b { font-size: 16px; } }
.tree-hint { position: relative; z-index: 3; margin: 0 0 14px; text-align: center; font-size: 22px; color: var(--lime); transform: rotate(-2deg); }
@media (max-width: 760px) { .note-star, .note-gifts { display: none; } .tree-hint { font-size: 18px; } }
@media (max-width: 440px) { .hud-count { display: none !important; } }

/* ============ christmas day unboxing ============ */
.ub { position: fixed; inset: 0; z-index: 180; display: grid; place-items: center; overflow: hidden; --glow: 0; }
.ub.tier-good { --wrap: repeating-linear-gradient(45deg, #c9a77a 0 8px, #c19e70 8px 16px); --ribbon: var(--red); }
.ub.tier-very { --wrap: var(--green); --ribbon: var(--gold); }
.ub.tier-gold { --wrap: repeating-linear-gradient(90deg, #f2c14e 0 14px, #f6cf6b 14px 28px); --ribbon: var(--red); }
.ub-bg { position: absolute; inset: 0; background: radial-gradient(circle at 50% 42%, #137a50, #052a1a 72%); opacity: 0; transition: opacity .45s; }
.ub.is-in .ub-bg { opacity: 1; }
.ub.is-out { opacity: 0; transition: opacity .35s; }
.ub-stage { position: relative; display: grid; justify-items: center; transform: translateY(-6vh); }

.ub-box { --bw: min(64vw, 300px); position: relative; width: var(--bw); height: calc(var(--bw) * .78); margin-top: calc(var(--bw) * .42); padding: 0; border: 0; background: none; cursor: pointer;
  perspective: 900px; transform-style: preserve-3d; transform: translateY(-130vh) rotate(-12deg); -webkit-tap-highlight-color: transparent; }
.ub.is-in .ub-box { animation: ubDrop .9s .15s cubic-bezier(.3, 1.35, .5, 1) forwards; }
@keyframes ubDrop { 0% { transform: translateY(-130vh) rotate(-12deg); } 70% { transform: translateY(0) rotate(3deg) scaleY(.92); } 100% { transform: none; } }
.ub.is-in:not(.is-open) .ub-box { animation: ubDrop .9s .15s cubic-bezier(.3, 1.35, .5, 1) forwards, ubIdle 1.6s 1.4s ease-in-out infinite; }
@keyframes ubIdle { 0%, 100% { translate: 0 0; } 50% { translate: 0 -6px; } }
.ub-box:focus-visible { outline: 3px dashed var(--lime); outline-offset: 14px; }

.ub-back { position: absolute; inset: 0; border-radius: 10px; background: radial-gradient(circle at 50% 30%, #fff3c4, #e9b949 40%, #7a4f12); border: 5px solid #fff; }
.ub-front { position: absolute; inset: 0; z-index: 3; border-radius: 10px; background: var(--wrap); border: 5px solid #fff; box-shadow: 0 12px 0 rgb(0 0 0 / .25); transform-origin: 50% 100%; overflow: hidden; }
.ub .rib-v { position: absolute; top: 0; bottom: 0; left: 50%; width: 16%; margin-left: -8%; background: var(--ribbon); }
.ub .rib-h { position: absolute; left: 0; right: 0; top: 44%; height: 16%; background: var(--ribbon); }
.ub-tag { position: absolute; right: 8%; bottom: 10%; transform: rotate(-8deg); background: var(--paper); color: var(--navy); font-family: var(--marker); font-size: clamp(11px, 3vw, 14px); line-height: 1.2; padding: 6px 10px; border-radius: 4px; text-align: left; box-shadow: 0 3px 0 rgb(0 0 0 / .2); }
.ub-lid { position: absolute; z-index: 4; left: -7%; right: -7%; top: -20%; height: 26%; border-radius: 10px; background: var(--wrap); border: 5px solid #fff; box-shadow: 0 6px 0 rgb(0 0 0 / .2); overflow: hidden; }
.ub-lid::after { content: ''; position: absolute; inset: 0; background: rgb(0 0 0 / .06); }
.ub-bow { position: absolute; z-index: 5; left: 50%; top: -44%; width: 56%; height: 30%; margin-left: -28%;
  background: radial-gradient(ellipse 30% 46% at 26% 60%, var(--ribbon) 0 98%, transparent 100%), radial-gradient(ellipse 30% 46% at 74% 60%, var(--ribbon) 0 98%, transparent 100%), radial-gradient(circle at 50% 78%, var(--ribbon) 0 14%, transparent 15%);
  filter: drop-shadow(0 0 0 #fff) drop-shadow(2px 0 0 #fff) drop-shadow(-2px 0 0 #fff) drop-shadow(0 -2px 0 #fff) drop-shadow(0 4px 0 rgb(0 0 0 / .2)); }
/* light leaking out of the lid seam, brighter each tap */
.ub-seam { position: absolute; z-index: 4; left: 3%; right: 3%; top: 4%; height: 5px; border-radius: 4px; background: #fff7d6; opacity: var(--glow);
  box-shadow: 0 0 calc(var(--glow) * 40px) calc(var(--glow) * 14px) rgb(255 215 106 / .9); transition: opacity .2s, box-shadow .2s; }

/* the reward, waiting inside */
.ub-reward { position: absolute; z-index: 2; left: 50%; bottom: 12%; transform: translate(-50%, 0) scale(.5); opacity: 0; display: grid; place-items: center; }
.ub-reward img { width: calc(var(--bw) * .62); max-width: none; filter: drop-shadow(0 0 0 #fff) drop-shadow(4px 0 0 #fff) drop-shadow(-4px 0 0 #fff) drop-shadow(0 4px 0 #fff) drop-shadow(0 -4px 0 #fff) drop-shadow(0 14px 0 rgb(0 0 0 / .25)); }
.ub-badge { position: absolute; right: -34%; top: 6%; display: grid; place-items: center; width: calc(var(--bw) * .38); aspect-ratio: 1; border-radius: 50%; background: var(--red); color: #fff; border: 5px solid #fff; transform: rotate(14deg);
  font-family: var(--display); font-size: calc(var(--bw) * .1); line-height: .9; box-shadow: 0 6px 0 rgb(0 0 0 / .25); text-align: center; }
.ub-badge small { display: block; font-family: var(--marker); font-size: calc(var(--bw) * .045); }
.ub-disc { display: grid; place-items: center; width: calc(var(--bw) * .82); aspect-ratio: 1; border-radius: 50%; background: var(--red); color: #fff; border: 7px solid #fff; transform: rotate(-8deg); box-shadow: 0 10px 0 rgb(0 0 0 / .25); text-align: center; }
.ub.tier-very .ub-disc { background: var(--lime); color: var(--green-3); }
.ub-disc b { font-family: var(--display); font-weight: 400; font-size: calc(var(--bw) * .3); line-height: .85; letter-spacing: -.05em; }
.ub-disc small { font-family: var(--marker); font-size: calc(var(--bw) * .07); }

.ub-hint { margin: 30px 0 0; font-size: 26px; color: var(--lime); animation: ubPulse 1.2s ease-in-out infinite; opacity: 0; transition: opacity .3s .9s; }
.ub.is-in .ub-hint { opacity: 1; }
@keyframes ubPulse { 50% { transform: scale(1.08) rotate(-2deg); } }
.ub-taps { display: flex; gap: 8px; margin-top: 10px; }
.ub-taps i { width: 14px; height: 14px; border-radius: 50%; border: 3px solid var(--lime); transition: background .15s, transform .2s var(--spring); }
.ub-taps i.on { background: var(--lime); transform: scale(1.25); }

/* BOOM */
.ub.is-open .ub-hint, .ub.is-open .ub-taps { opacity: 0; transition: opacity .15s; }
.ub.is-open .ub-box { animation: none; transform: none; cursor: default; }
.ub.is-open .ub-seam { opacity: 0; }
.ub.is-open .ub-bow { animation: ubBow 1s cubic-bezier(.2, .7, .4, 1) forwards; }
@keyframes ubBow { to { transform: translate(-60vw, -90vh) rotate(-520deg) scale(.6); } }
.ub.is-open .ub-lid { animation: ubLid 1.05s cubic-bezier(.2, .7, .4, 1) forwards; }
@keyframes ubLid { 30% { transform: translate(6vw, -30vh) rotate(40deg); } to { transform: translate(55vw, -110vh) rotate(320deg); } }
.ub.is-open .ub-front { animation: ubFront .8s .12s cubic-bezier(.5, 1.6, .5, 1) forwards; }
@keyframes ubFront { to { transform: rotateX(-102deg); } }
.ub.is-open .ub-reward { animation: ubRise 1.1s .25s cubic-bezier(.3, 1.5, .5, 1) forwards, ubFloat 2.6s 1.5s ease-in-out infinite; }
@keyframes ubRise { to { transform: translate(-50%, -78%) scale(1.15); opacity: 1; } }
@keyframes ubFloat { 0%, 100% { translate: 0 0; rotate: 0deg; } 50% { translate: 0 -10px; rotate: -2deg; } }
.ub-flash { position: absolute; inset: 0; background: #fffbe6; opacity: 0; pointer-events: none; }
.ub.is-open .ub-flash { animation: ubFlash .55s ease-out; }
@keyframes ubFlash { 0% { opacity: 0; } 12% { opacity: .9; } 100% { opacity: 0; } }
.ub.is-open .ub-bg { background: radial-gradient(circle at 50% 42%, #1c9a66, #063521 72%); }

/* the card */
.ub-card { position: absolute; left: 50%; bottom: 16px; width: min(440px, calc(100% - 28px)); transform: translate(-50%, 130%); transition: transform .6s var(--spring);
  background: var(--paper); color: var(--navy); border-radius: 18px; padding: 20px 22px 18px; box-shadow: 0 10px 0 rgb(0 0 0 / .25); z-index: 3; max-height: 56vh; overflow: auto; }
.ub.is-card .ub-card { transform: translate(-50%, 0); }
.ub-merry { margin: 0; font-size: 26px; color: var(--red); transform: rotate(-2deg); transform-origin: left; }
.ub-tier { margin: 6px 0 0; font-weight: 700; font-size: 14px; color: var(--green); }
.ub-card h3 { margin: 2px 0 0; font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: 26px; line-height: 1; letter-spacing: -.03em; }
.ub-text { margin: 8px 0 0; font-size: 14.5px; line-height: 1.5; font-weight: 600; color: rgb(44 53 79 / .78); }
.ub.is-card .ub-stage { transition: transform .6s var(--spring); }
@media (max-height: 760px) { .ub-box { --bw: min(52vw, 230px); } .ub.is-card .ub-stage { transform: translateY(-24vh) scale(.85); } }
@media (min-height: 761px) { .ub.is-card .ub-stage { transform: translateY(-18vh); } }

/* ============ fairy lights: red, green, blue, gold ============ */
.row:not(.row-star):not(.row-gifts)::after { display: none; }
.wire { position: absolute; left: -6%; right: -6%; bottom: calc(var(--s) * -.22); height: calc(var(--s) * .4); z-index: -1; pointer-events: none;
  border-bottom: 2px solid rgb(3 28 17 / .85); border-radius: 0 0 50% 50%; }
.bulb { position: absolute; width: calc(var(--s) * .1); height: calc(var(--s) * .15); max-width: 12px; max-height: 18px; min-width: 6px; min-height: 9px;
  border-radius: 45% 45% 50% 50% / 40% 40% 60% 60%; background: var(--c); transform: translate(-50%, -10%) rotate(var(--rot));
  box-shadow: 0 0 6px 2px var(--c), 0 0 18px 5px color-mix(in srgb, var(--c) 55%, transparent); animation: bulbBlink 2.8s ease-in-out infinite; animation-delay: var(--dl); }
.bulb::before { content: ''; position: absolute; left: 22%; right: 22%; top: -22%; height: 30%; border-radius: 2px; background: #1d3b2c; }
.bulb::after { content: ''; position: absolute; left: 22%; top: 18%; width: 28%; height: 28%; border-radius: 50%; background: rgb(255 255 255 / .7); }
@keyframes bulbBlink { 0%, 100% { opacity: 1; } 45% { opacity: 1; } 55% { opacity: .35; box-shadow: none; } 65% { opacity: 1; } }

/* ============ snowbank the tree stands in ============ */
.green { padding-bottom: 0; }
.snowbank { position: relative; z-index: 2; display: block; width: 100%; height: clamp(50px, 7vw, 90px); margin-top: -30px; margin-bottom: 0; }
.snowbank path { fill: #fdfdfb; }
.snowbank .sb-shade { fill: #dfe9f2; }
.green > .torn { position: relative; display: block; margin-top: -2px; background: #dfe9f2; bottom: auto; }
/* unbox: keyboard focus only, and keep the bottle on screen on short phones */
.ub-box:focus:not(:focus-visible) { outline: none; }
.ub.is-card .ub-stage { transform: translateY(-10vh) scale(.9); }
@media (max-height: 760px) { .ub.is-card .ub-stage { transform: translateY(-14vh) scale(.72); } }
/* lights hang lower, between rows, and a touch bigger */
.wire { bottom: calc(var(--s) * -.36); height: calc(var(--s) * .44); z-index: 0; }
.bulb { width: calc(var(--s) * .12); height: calc(var(--s) * .17); max-width: 14px; max-height: 20px; }
.row { z-index: auto; }
.row > .st { z-index: 1; }
/* chunkier snowbank, the tree base sinks into it */
.snowbank { height: clamp(70px, 9vw, 120px); margin-top: -64px; }
.green > .torn { background: #fdfdfb; }

/* ============ playable snow: bank behind the tree, flakes in front ============ */
#ground { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; }
#snow { z-index: 5; }
.green { padding-bottom: 64px; }
.green > .torn { margin-top: 0; background: #e2ecf5; }
.present { margin-top: 34px; }
.green { padding-bottom: 0; }
.tree-wrap { padding-bottom: 54px; }
.tree-wrap { padding-bottom: 26px; }
.green { -webkit-user-select: none; user-select: none; }

/* snow canvases live inside the green section and scroll with it natively */
#snow { position: absolute; left: 0; top: 0; width: 100%; height: 100%; z-index: 5; pointer-events: none; }
#ground { position: absolute; left: 0; width: 100%; height: 170px; z-index: 1; pointer-events: none; bottom: auto; }

/* ============ streak + how it works, in the good list's language ============ */
.cream { padding: 80px 24px 110px; }
.cr-wrap { max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
@media (max-width: 960px) { .cr-wrap { grid-template-columns: minmax(0, 1fr); gap: 70px; } }
.cr-ask { margin: 0; font-size: 24px; color: var(--red); transform: rotate(-3deg); transform-origin: left; }
.cr-h { margin: 6px 0 0; font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(44px, 5.4vw, 84px); line-height: .84; letter-spacing: -.05em; color: var(--green); }
.cr-sub { margin: 14px 0 0; max-width: 42ch; font-size: 16.5px; line-height: 1.5; font-weight: 600; color: rgb(44 53 79 / .78); }
.cr-sheet { margin-top: 30px; }
.cr-block:nth-child(2) .cr-sheet { transform: rotate(1.2deg); }

/* streak sheet */
.ss-top { display: flex; justify-content: space-between; align-items: center; gap: 12px 18px; flex-wrap: wrap; min-height: 44px; }
.ss-count { margin: 0; display: flex; align-items: baseline; gap: 10px; }
.ss-count .odo { font-family: var(--display); font-size: 48px; color: var(--red); letter-spacing: -.04em; }
.ss-count .hand { font-size: 22px; }
.cr-sheet .snow-row { margin: 0; gap: 6px; font-size: 14.5px; font-weight: 700; }
.cr-sheet .snow-row b { font-family: var(--display); font-weight: 400; color: #3f74ad; }
.cr-sheet .flake { width: 32px; height: 32px; border: 2px solid #cfe1f2; box-shadow: 0 3px 0 rgb(0 0 0 / .1); }
.cr-sheet .flake svg { width: 17px; height: 17px; }
.cr-sheet .days { margin: 14px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(36px, 1fr)); gap: 8px 6px; }
.cr-sheet .day { font-family: var(--marker); font-size: 15px; background: transparent; color: rgb(44 53 79 / .35); box-shadow: inset 0 0 0 2px rgb(44 53 79 / .12); position: relative; }
.cr-sheet .day.is-on { background: var(--green); color: var(--lime); box-shadow: none; transform: rotate(-6deg); }
.cr-sheet .day.is-on:nth-child(even) { transform: rotate(5deg); }
.cr-sheet .day.is-saved { background: #e6f0f9; color: #3f74ad; box-shadow: inset 0 0 0 2px #cfe1f2; }
.cr-sheet .day.is-today { background: var(--red); color: #fff; box-shadow: 0 0 0 3px var(--paper), 0 0 0 5px var(--red); }
.cr-sheet .day.is-missed { color: rgb(44 53 79 / .4); box-shadow: inset 0 0 0 2px rgb(214 38 58 / .35); }
.cr-sheet .day.is-missed::after { content: '✕'; position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--marker); font-size: 26px; color: var(--red); }
.cr-sheet .day.is-gold { box-shadow: inset 0 0 0 2px var(--gold-2); color: var(--gold-2); }

/* how it works sheet */
.how-list { list-style: none; margin: 0; padding: 0; }
.how-list li { display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: start; padding: 9px 0; min-height: 44px; font-size: 15.5px; line-height: 1.45; font-weight: 600; }
.how-list b { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; font-family: var(--marker); font-weight: 400; font-size: 20px; color: var(--green); box-shadow: inset 0 0 0 2.5px var(--green); transform: rotate(-8deg); }
.how-list li:last-child b { color: var(--gold-2); box-shadow: inset 0 0 0 2.5px var(--gold-2); }
.cr-wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } @media (max-width: 960px) { .cr-wrap { grid-template-columns: minmax(0, 1fr); } }

/* ============ gift tag v2: a real tag, centred, one voice per job ============ */
.tag-rig { filter: drop-shadow(0 9px 0 rgb(3 30 18 / .45)); }
.string { position: relative; z-index: 2; width: 3px; margin-bottom: -26px; height: clamp(56px, 11vh, 116px); }
.tag {
  text-align: center; padding: 52px 26px 34px; border-bottom: 0;
  clip-path: polygon(64px 0, calc(100% - 64px) 0, 100% 64px, 100% 100%, 0 100%, 0 64px);
  background-color: var(--paper);
  background-image:
    repeating-linear-gradient(-45deg, var(--red) 0 10px, var(--paper) 10px 20px),
    radial-gradient(rgb(44 53 79 / .05) 1px, transparent 1.2px);
  background-size: 100% 12px, 5px 5px; background-repeat: no-repeat, repeat; background-position: bottom, 0 0;
}
/* punched hole with a brass eyelet; the string drops into it */
.tag-hole { top: 16px; width: 22px; height: 22px; margin-left: -11px; background: var(--green-3); box-shadow: 0 0 0 4px var(--gold), 0 0 0 5.5px var(--gold-2), inset 0 2px 0 rgb(0 0 0 / .35); }
.tag-close { display: none; }
.tag-day { flex-direction: column; align-items: center; gap: 0; margin-top: 6px; }
.tag-day small { font-family: var(--sans); font-weight: 800; font-size: 12px; letter-spacing: .32em; text-transform: uppercase; color: var(--navy); opacity: .7; margin: 0 0 6px .32em; }
.tag-day span { font-size: 84px; letter-spacing: -.05em; line-height: .78; }
.tag-pic { margin-top: 16px; }
/* the kind is a little rubber stamp, not another scribble */
.tag-kind { display: inline-block; margin: 18px 0 0; padding: 4px 10px 3px; transform: rotate(-3deg); transform-origin: center;
  font-family: var(--sans); font-weight: 800; font-size: 11.5px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--green); border: 2px solid currentColor; border-radius: 4px; }
.tag h3 { margin-top: 12px; font-size: 27px; text-wrap: balance; }
.tag-text { margin: 10px auto 0; max-width: 30ch; text-wrap: pretty; }
/* code reads like a cut-out coupon */
.code { margin-top: 18px; padding: 8px 8px 8px 16px; border: 2px dashed rgb(44 53 79 / .55); border-radius: 6px; background: #fff; }
.code b { font-size: 19px; letter-spacing: .08em; color: var(--navy); }
.code button { background: var(--navy); color: var(--paper); box-shadow: 0 3px 0 #1a2033; border-radius: 6px; padding: 9px 14px; }
.code button:active { box-shadow: 0 1px 0 #1a2033; }
/* one main button, "Later" as a quiet link under it */
.tag-actions { flex-direction: column; align-items: stretch; gap: 4px; margin-top: 18px; }
.btn-quiet { align-self: center; background: none; box-shadow: none; color: rgb(44 53 79 / .7); font-size: 14px; padding: 10px 14px; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
.btn-quiet:hover { background: none; color: var(--navy); }
.btn-quiet:active { box-shadow: none; transform: none; }
.tag-foot { margin: 14px 0 0; padding-top: 12px; border-top: 1.5px dashed rgb(44 53 79 / .22); font-size: 12px; color: rgb(44 53 79 / .62); }
.tag .btn:focus-visible, .tag .code button:focus-visible, .ub-card .btn:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; }
/* real product photos on the tag: bigger, cropped square like a print */
.tag-pic .polaroid.is-photo { padding: 8px 8px 30px; transform: rotate(-3deg); }
.tag-pic .polaroid.is-photo img { width: 210px; height: 210px; object-fit: cover; display: block; }
.tag-pic .polaroid::before { background: rgb(242 193 78 / .75); }
/* with a photo the day number steps back so the tag fits a phone screen */
.tag:has(.is-photo) .tag-day { flex-direction: row; align-items: baseline; justify-content: center; gap: 8px; }
.tag:has(.is-photo) .tag-day small { margin: 0; }
.tag:has(.is-photo) .tag-day span { font-size: 44px; }
.tag:has(.is-photo) .tag-pic { margin-top: 22px; }
.tag:has(.is-photo) .polaroid.is-photo img { width: 190px; height: 190px; }
/* holding a sticker must never trigger the browser's own long-press (menu, iOS callout, image drag, text select) */
.tree, .tree * { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; -webkit-user-drag: none; }
.st.is-today, .st.is-pressing { touch-action: none; }
.gift-fine { margin: 4px 0 0; font-size: 12px; font-weight: 700; color: rgb(255 255 255 / .78); }
@media (max-width: 560px) { .gift .mini-present { grid-row: span 5; } .gift-fine { grid-column: 2; } }
.pr-tag { white-space: normal; width: max-content; max-width: 122px; } .pr-tag span { display: block; line-height: 1.05; margin-top: 2px; }
@media (max-width: 760px) { .pr-tag { right: -70%; max-width: 96px; } .pr-tag span { font-size: 11.5px; } }

/* ============ illustrated characters ============ */
/* mascots + penguin: the white sticker outline is baked into the webp, so only the hard drop shadow here */
.stk-char { filter: drop-shadow(0 8px 0 rgb(0 0 0 / .25)); }
.b1.stk-char { --r: 10deg; right: 1%; top: 30px; width: clamp(130px, 14vw, 210px); }
.b2.stk-char { --r: -9deg; right: 27%; bottom: -14px; width: clamp(96px, 10vw, 150px); }
/* penguin stands in the snowbank left of the tree base, facing the present */
.b3.stk-char { --r: -4deg; right: auto; left: max(-70px, min(8px, calc(8px - (100vw - 980px) / 2))); bottom: 26px; width: clamp(96px, 10vw, 140px); z-index: 3; }
@media (prefers-reduced-motion: no-preference) {
  .b3.stk-char { animation: stickOn .45s var(--spring) backwards, waddle 3.2s 1.2s ease-in-out infinite; transform-origin: 50% 100%; }
  @keyframes waddle { 0%, 70%, 100% { transform: rotate(var(--r)); } 78% { transform: rotate(calc(var(--r) - 5deg)); } 86% { transform: rotate(calc(var(--r) + 4deg)); } 94% { transform: rotate(calc(var(--r) - 2deg)); } }
}
@media (max-width: 760px) {
  .b3.stk-char { display: block; left: 4px; bottom: 20px; width: 72px; }
}

/* taped photo cards for the scenic ones */
.polaroid { position: absolute; z-index: 2; margin: 0; width: var(--pw, 210px); padding: 10px 10px 0; background: var(--paper); color: var(--navy);
  transform: rotate(var(--r, 4deg)); box-shadow: 0 8px 0 rgb(0 0 0 / .2); pointer-events: none; }
.polaroid img { width: 100%; height: auto; aspect-ratio: 440 / 376; object-fit: cover; }
.polaroid figcaption { margin: 0; padding: 8px 2px 10px; font-size: calc(var(--pw, 210px) * .085); line-height: 1.1; text-align: center; }
.polaroid .tape { top: -13px; width: 74px; margin-left: -37px; }

/* red panda: bottom right of the good list, in the dead space beside the small print */
.pol-panda { --pw: clamp(150px, 12vw, 176px); --r: 5deg; right: 2%; bottom: -78px; }
@media (max-width: 1100px) { .pol-panda { display: none; } }

/* reindeer: beside the "How it works" heading */
.cr-head { position: relative; }
.pol-reindeer { --pw: clamp(150px, 14vw, 200px); --r: -5deg; right: 2%; top: 4px; }
/* keep the heading clear of the photo: it wraps to two lines beside it */
@media (min-width: 961px) { .cr-block:nth-child(2) .cr-head { padding-right: clamp(170px, 16vw, 230px); } }
@media (max-width: 960px) { .pol-reindeer { display: none; } }

/* ============ terms: key conditions by the offer, full terms at the foot ============ */
.gl-key { margin-top: 10px; }
.gl-key a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.gl-key a[href="#terms"]:first-of-type { text-decoration: none; margin-left: 1px; }
.adv-terms { flex-basis: 100%; margin-top: 8px; padding-top: 18px; border-top: 1px solid rgb(246 240 227 / .18); color: rgb(246 240 227 / .62); font-size: 12px; line-height: 1.6; font-weight: 500; }
.adv-terms h2 { margin: 0 0 6px; font-size: 13px; font-weight: 700; color: var(--cream); letter-spacing: .02em; }
.adv-terms p { margin: 0; max-width: 90ch; }

/* phones: "SOMETHING" fits the width instead of running to the edge */
@media (max-width: 560px) { .gl-h { font-size: 12.5vw; } }
