/* Seat page (phones): A Cozy Christmas. Works before any image has loaded. */
@font-face { font-family: "Playfair"; src: url("/assets/theme/fonts/playfair-display-latin-700-italic.woff2") format("woff2"); font-weight: 700; font-style: italic; font-display: swap; }
@font-face { font-family: "Playfair"; src: url("/assets/theme/fonts/playfair-display-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }

:root { --cream: #f6ecdb; --paper: #fbf5ea; --burgundy: #680a0f; --burgundy-deep: #51050a; --green: #254525; --gold: #c79a3e; --ink: #3a2a26; --pct: 0; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; background: var(--cream); }
body { margin: 0; min-height: 100vh; min-height: 100dvh; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; font-size: 17px; line-height: 1.4; color: var(--ink); background: var(--cream); }
/* Background, built from three fixed layers pinned to the edges of the visible page:
   - the snowy village coming down from the top,
   - the snowy evergreen sprigs coming up from the bottom,
   - a thin blend at the very top and very bottom into the same cream the phone's own bars use,
     so there is never a hard line where the picture meets the browser's bars. */
body::before { content: ""; position: fixed; left: 0; right: 0; top: 0; height: 66%; z-index: 0; pointer-events: none; background: url("/assets/theme/img/phone-bg.webp") top center / 150% auto no-repeat; -webkit-mask-image: linear-gradient(to bottom, #000 0, #000 52%, transparent 100%); mask-image: linear-gradient(to bottom, #000 0, #000 52%, transparent 100%); }
body::after { content: ""; position: fixed; left: 0; right: 0; bottom: 22px; height: 42%; z-index: 0; pointer-events: none; background: url("/assets/theme/img/phone-bg.webp") bottom center / 112% auto no-repeat; -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 50%, #000 80%, transparent 100%); mask-image: linear-gradient(to bottom, transparent 0, #000 50%, #000 80%, transparent 100%); }
main::before { content: ""; position: fixed; left: 0; right: 0; top: 0; bottom: 0; z-index: -1; pointer-events: none; background: linear-gradient(to bottom, var(--cream) 0, rgba(246, 236, 219, 0) 100%) top / 100% 64px no-repeat, linear-gradient(to top, var(--cream) 0, rgba(246, 236, 219, 0.85) 30%, rgba(246, 236, 219, 0) 100%) bottom / 100% 52px no-repeat; }
main { position: relative; z-index: 1; max-width: 430px; min-height: 100vh; min-height: 100dvh; margin: 0 auto; padding: max(18px, env(safe-area-inset-top)) 24px max(40px, env(safe-area-inset-bottom)); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
section { width: 100%; display: flex; flex-direction: column; align-items: center; }
.confetti { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 5; pointer-events: none; }

.logo { user-select: none; -webkit-user-select: none; -webkit-user-drag: none; pointer-events: none; display: block; width: 168px; height: auto; margin: 4px auto 6px; filter: drop-shadow(0 6px 8px rgba(70, 30, 20, 0.2)); }
body[data-view="joined"] .logo, body[data-view="gift"] .logo { width: 120px; }

h1 { margin: 6px 0 14px; font-family: "Playfair", Georgia, "Times New Roman", serif; font-style: italic; font-weight: 700; font-size: 36px; line-height: 1.08; color: var(--burgundy); text-wrap: balance; overflow-wrap: anywhere; }
h1::before { content: ""; display: block; width: 120px; height: 2px; margin: 0 auto 14px; background: linear-gradient(90deg, rgba(199, 154, 62, 0), var(--gold), rgba(199, 154, 62, 0)); }
.soft { margin: 18px 0; color: #6a5750; }

/* ---------- form ---------- */
/* The countdown rides along while they type: it sticks to the top so it stays in view above the keyboard. */
.timer { position: sticky; top: max(10px, env(safe-area-inset-top)); z-index: 3; display: inline-flex; align-items: center; gap: 12px; margin: 2px 0 4px; padding: 7px 20px 8px 18px; color: #fff4dc; background: linear-gradient(#7d1118, var(--burgundy-deep)); border-radius: 999px; box-shadow: 0 0 0 1.5px var(--gold) inset, 0 6px 14px rgba(81, 5, 10, 0.28); }
.timer span { font-size: 12px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; opacity: 0.85; }
.timer b { font-family: "Playfair", Georgia, serif; font-weight: 600; font-size: 28px; line-height: 1; font-variant-numeric: lining-nums tabular-nums; }
body[data-view="form"] .logo { width: 132px; }
form { width: 100%; }
.field { display: block; margin: 0 0 10px; }
.field span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
input[type="text"], input[type="tel"] { display: block; width: 100%; height: 56px; padding: 0 18px; font: inherit; font-size: 18px; color: var(--ink); background: rgba(255, 252, 245, 0.94); border: 1.5px solid rgba(199, 154, 62, 0.75); border-radius: 14px; outline: none; -webkit-appearance: none; appearance: none; box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset; }
input::placeholder { color: #8a7a70; }
input:focus { border-color: var(--burgundy); box-shadow: 0 0 0 3px rgba(104, 10, 15, 0.14); }
.error { margin: -4px 4px 10px; min-height: 0; font-size: 14.5px; font-weight: 600; text-align: left; color: #a3121b; }
.error:empty { display: none; }
.cta { display: block; width: 100%; height: 60px; margin: 14px 0 12px; font-family: "Playfair", Georgia, serif; font-style: normal; font-weight: 600; font-size: 21px; letter-spacing: 2.5px; text-transform: uppercase; color: #fff8ea; background: linear-gradient(#7d1118, var(--burgundy-deep)); border: 0; border-radius: 30px; box-shadow: 0 0 0 1.5px var(--gold) inset, 0 8px 16px rgba(81, 5, 10, 0.3); cursor: pointer; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.cta:active { transform: translateY(1px); box-shadow: 0 0 0 1.5px var(--gold) inset, 0 3px 8px rgba(81, 5, 10, 0.3); }
.cta:disabled { opacity: 0.6; }
.fine { margin: 0 6px; font-size: 12.5px; line-height: 1.45; color: #6a5750; }
.status { margin: 10px 0 0; min-height: 1.4em; font-size: 15px; font-weight: 600; color: var(--green); }
.status:empty { display: none; }

/* ---------- your name as a bulb: swipe it up to the big screen ---------- */
/* the whole bulb screen is the swipe area, edge to edge */
section[data-view="bulb"] { touch-action: none; user-select: none; -webkit-user-select: none; width: 100vw; max-width: 100vw; margin: 0 -24px; padding: 0 24px 30px; }
.mybulb-wrap { position: relative; width: 100%; height: 300px; margin: 6px 0 0; display: flex; align-items: flex-end; justify-content: center; }
.mybulb { position: relative; width: 210px; height: 210px; margin-bottom: 8px; border-radius: 50%; display: flex; align-items: center; justify-content: center; text-align: center; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; cursor: grab; will-change: transform; box-shadow: 0 18px 26px rgba(70, 30, 20, 0.28), inset 0 0 0 5px rgba(199, 154, 62, 0.95); animation: bulb-hint 2600ms ease-in-out infinite; }
.mybulb.held, .mybulb.sent { animation: none; }
.mybulb.back { transition: transform 320ms cubic-bezier(0.3, 1.5, 0.5, 1); }
.mybulb.sent { transition: transform 420ms cubic-bezier(0.4, 0, 0.9, 0.6); }
.mybulb span { padding: 0 18px; white-space: pre-line; font-family: "Playfair", Georgia, serif; font-weight: 600; font-size: 38px; line-height: 1.06; overflow-wrap: anywhere; }
.mybulb::before { content: ""; position: absolute; left: 50%; top: -22px; width: 54px; height: 32px; transform: translateX(-50%); border-radius: 7px 7px 2px 2px; background: linear-gradient(90deg, #a8781f, #f6dc95 45%, #c4912f); box-shadow: 0 2px 3px rgba(60, 25, 15, 0.3); }
.mybulb::after { content: ""; position: absolute; left: 15%; top: 11%; width: 36%; height: 26%; border-radius: 50%; background: radial-gradient(ellipse, rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0)); pointer-events: none; }
.mybulb[data-colour="0"] { color: var(--burgundy); background: radial-gradient(circle at 34% 28%, #fffdf6 0%, #f4e6c8 58%, #d9c08c 100%); }
.mybulb[data-colour="1"] { color: #fff4dc; background: radial-gradient(circle at 34% 28%, #b8343f 0%, #7a0f16 58%, #47050a 100%); }
.mybulb[data-colour="2"] { color: #fff4dc; background: radial-gradient(circle at 34% 28%, #57935a 0%, #254525 58%, #122712 100%); }
.mybulb[data-colour="3"] { color: var(--burgundy-deep); background: radial-gradient(circle at 34% 28%, #fff3c4 0%, #dcae4a 58%, #9c7426 100%); }
@keyframes bulb-float { 50% { transform: translateY(-10px); } }
/* The hint: the bulb is nudged up as the see-through finger "swipes" it, then drops back. */
@keyframes bulb-hint { 0%, 16% { transform: translateY(0); } 52% { transform: translateY(-58px); } 74%, 100% { transform: translateY(0); } }
.finger { position: absolute; left: 50%; top: 172px; z-index: 4; width: 196px; margin-left: -8px; pointer-events: none; opacity: 0; filter: drop-shadow(0 6px 8px rgba(60, 25, 15, 0.3)); animation: finger-swipe 2600ms ease-in-out infinite; }
.finger img { display: block; width: 100%; height: auto; -webkit-mask-image: linear-gradient(135deg, #000 80%, transparent 97%); mask-image: linear-gradient(135deg, #000 80%, transparent 97%); } /* the sleeve fades out, no hard edge */
.finger span { position: absolute; left: 56%; top: 6%; padding: 4px 12px; white-space: nowrap; font-size: 13px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: #fff8ea; background: var(--burgundy); border-radius: 999px; box-shadow: 0 0 0 1.5px var(--gold) inset; }
@keyframes finger-swipe { 0% { opacity: 0; transform: translate(34px, 40px); } 16% { opacity: 0.9; transform: translate(0, 0); } 52% { opacity: 0.9; transform: translate(-6px, -150px); } 66% { opacity: 0; transform: translate(-8px, -176px); } 100% { opacity: 0; transform: translate(-8px, -176px); } }
/* once they touch the screen (or the bulb has gone), the hint gets out of the way */
section[data-view="bulb"].touching .finger, .mybulb.sent ~ .finger { animation: none; opacity: 0; }
@media (prefers-reduced-motion: reduce) { .finger { animation: none; opacity: 0.7; transform: translateY(-60px); } .mybulb { animation: none; } }
.swipe-hint { position: absolute; left: 50%; top: 0; width: 34px; margin: 0 0 0 -17px; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.swipe-hint i { width: 20px; height: 20px; border-top: 4px solid var(--gold); border-left: 4px solid var(--gold); transform: rotate(45deg); opacity: 0; animation: chevron 1500ms ease-in-out infinite; }
.swipe-hint i:nth-child(2) { animation-delay: -1300ms; }
.swipe-hint i:nth-child(3) { animation-delay: -1100ms; }
@keyframes chevron { 0% { opacity: 0; } 40% { opacity: 1; } 100% { opacity: 0; } }
.swipe-title { margin-top: 18px; }
.swipe-title::before { content: none; }
.swipe-sub { margin: -6px 0 10px; }
.swatches { display: flex; justify-content: center; gap: 16px; margin: 6px 0 6px; }
.swatches button { width: 46px; height: 46px; padding: 0; border-radius: 50%; border: 0; box-shadow: inset 0 0 0 3px rgba(199, 154, 62, 0.95), 0 4px 8px rgba(70, 30, 20, 0.2); -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.swatches button[data-colour-pick="0"] { background: radial-gradient(circle at 34% 28%, #fffdf6 0%, #f4e6c8 58%, #d9c08c 100%); }
.swatches button[data-colour-pick="1"] { background: radial-gradient(circle at 34% 28%, #b8343f 0%, #7a0f16 58%, #47050a 100%); }
.swatches button[data-colour-pick="2"] { background: radial-gradient(circle at 34% 28%, #57935a 0%, #254525 58%, #122712 100%); }
.swatches button[data-colour-pick="3"] { background: radial-gradient(circle at 34% 28%, #fff3c4 0%, #dcae4a 58%, #9c7426 100%); }
.swatches button[aria-pressed="true"] { outline: 3px solid var(--burgundy); outline-offset: 3px; }
.send-link { margin: 4px 0 0; padding: 10px 14px; font: inherit; font-size: 15px; color: var(--muted, #6a5750); text-decoration: underline; background: none; border: 0; -webkit-tap-highlight-color: transparent; }
body[data-view="bulb"] .logo { width: 104px; }

/* ---------- you're in ---------- */
.ring { position: relative; width: 250px; height: 264px; margin: 2px 0 6px; background: url("/assets/theme/img/ring-sm.webp") center / contain no-repeat; }
.ring-time { position: absolute; left: 0; right: 0; top: 43%; transform: translateY(-50%); font-family: "Playfair", Georgia, serif; font-weight: 600; font-size: 66px; line-height: 1; color: var(--burgundy); font-variant-numeric: lining-nums tabular-nums; }
.look { margin: 8px 0 16px; font-family: "Playfair", Georgia, serif; font-weight: 600; font-size: 23px; color: var(--green); }
.bar { width: 86%; height: 14px; padding: 2px; border-radius: 9px; background: rgba(255, 252, 245, 0.9); border: 1.5px solid rgba(199, 154, 62, 0.8); }
.bar i { display: block; height: 100%; width: calc(var(--pct) * 100%); min-width: 8px; border-radius: 6px; background: linear-gradient(90deg, #1d3a1d, #2f5a2f); box-shadow: 0 0 8px rgba(255, 215, 130, 0.9); transition: width 600ms ease; }
.tally { margin: 8px 0 0; font-family: "Playfair", Georgia, serif; font-weight: 600; font-size: 19px; color: var(--burgundy); font-variant-numeric: lining-nums; }

/* ---------- the cookie: tap it fast ---------- */
.cookie-sub { margin: -6px 0 8px; }
.cookie { display: block; width: 236px; height: 236px; margin: 6px 0 2px; padding: 0; border: 0; border-radius: 50%; background: none; touch-action: manipulation; -webkit-tap-highlight-color: transparent; user-select: none; -webkit-user-select: none; filter: drop-shadow(0 12px 14px rgba(70, 30, 20, 0.28)); transition: transform 90ms ease-out; }
.cookie img { display: block; width: 100%; height: 100%; pointer-events: none; -webkit-user-drag: none; }
/* pressed like a button: it sinks and its shadow tightens */
.cookie.hit { transform: translateY(7px) scale(0.93) rotate(var(--tilt, 2deg)); filter: drop-shadow(0 3px 4px rgba(70, 30, 20, 0.35)); }
.cookie:disabled { opacity: 0.55; }
/* sprinkles shaken off the cookie on every tap */
.crumb { position: fixed; z-index: 6; width: 5px; height: 15px; border-radius: 3px; background: var(--c, #c0202b); pointer-events: none; transform: rotate(var(--r0, 0deg)); animation: crumb 700ms cubic-bezier(0.2, 0.7, 0.4, 1) forwards; }
@keyframes crumb { 60% { opacity: 1; } to { transform: translate(var(--dx), var(--dy)) rotate(var(--r1, 200deg)); opacity: 0; } }

/* ---------- gift ---------- */
/* The Bible study rising out of the present (plays when the gift screen appears, then keeps floating) */
.gift-anim { position: relative; width: 250px; aspect-ratio: 440 / 665; margin: 4px 0 0; }
.gift-anim img { position: absolute; inset: 0; width: 100%; height: 100%; }
.ga-book { z-index: 1; -webkit-mask-image: linear-gradient(#000 0, #000 60%, transparent 66%); mask-image: linear-gradient(#000 0, #000 60%, transparent 66%); transform-origin: 50% 70%; animation: ga-rise 1500ms cubic-bezier(0.2, 1.25, 0.4, 1) 450ms both, ga-float 3800ms ease-in-out 2000ms infinite; }
.ga-box { z-index: 2; -webkit-mask-image: linear-gradient(transparent 58%, #000 64%); mask-image: linear-gradient(transparent 58%, #000 64%); transform-origin: 50% 100%; animation: ga-box 520ms cubic-bezier(0.2, 1.5, 0.4, 1) both; }
.ga-glow { position: absolute; z-index: 0; left: 50%; top: 60%; width: 150%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle, rgba(255, 226, 140, 0.95) 0%, rgba(255, 214, 120, 0.45) 34%, rgba(255, 214, 120, 0) 66%); animation: ga-glow-in 1200ms ease-out 400ms both, ga-glow 2600ms ease-in-out 1600ms infinite; }
.ga-spark { position: absolute; z-index: 3; width: 9px; height: 9px; border-radius: 50%; background: #fffbe6; box-shadow: 0 0 8px 4px rgba(255, 226, 140, 0.95), 0 0 20px 9px rgba(255, 190, 80, 0.5); opacity: 0; animation: ga-spark 2200ms ease-in-out 1400ms infinite; }
.ga-spark:nth-of-type(1) { left: 6%; top: 34%; }
.ga-spark:nth-of-type(2) { left: 88%; top: 44%; animation-delay: 1800ms; }
.ga-spark:nth-of-type(3) { left: 16%; top: 62%; animation-delay: 2300ms; }
.ga-spark:nth-of-type(4) { left: 80%; top: 66%; animation-delay: 2700ms; }
.ga-spark:nth-of-type(5) { left: 46%; top: 4%; animation-delay: 2000ms; }
.ga-spark:nth-of-type(6) { left: 70%; top: 20%; animation-delay: 3100ms; }
/* winners get the sweater-and-Bible picture; everyone else the Bible study alone */
.gift-anim.for-winner { width: 290px; }
.for-winner .ga-book { -webkit-mask-image: linear-gradient(#000 0, #000 65%, transparent 71%); mask-image: linear-gradient(#000 0, #000 65%, transparent 71%); }
.for-winner .ga-box { -webkit-mask-image: linear-gradient(transparent 63%, #000 69%); mask-image: linear-gradient(transparent 63%, #000 69%); }
.for-winner .ga-glow { top: 66%; }
body[data-winner="true"] .gift-anim.for-all { display: none; }
body:not([data-winner="true"]) .gift-anim.for-winner { display: none; }
@keyframes ga-box { 0% { transform: scale(0.8, 0.7); opacity: 0; } 100% { transform: none; opacity: 1; } }
@keyframes ga-rise { 0% { transform: translateY(40%) scale(0.86); opacity: 0; } 25% { opacity: 1; } 100% { transform: none; opacity: 1; } }
@keyframes ga-float { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-3.2%) rotate(-1.2deg); } }
@keyframes ga-glow-in { 0% { opacity: 0; transform: translate(-50%, -50%) scale(0.3); } 100% { opacity: 1; transform: translate(-50%, -50%) scale(1); } }
@keyframes ga-glow { 0%, 100% { opacity: 1; } 50% { opacity: 0.6; } }
@keyframes ga-spark { 0%, 100% { opacity: 0; transform: scale(0.4); } 50% { opacity: 1; transform: scale(1.1); } }
@media (prefers-reduced-motion: reduce) { .ga-book, .ga-box, .ga-glow, .ga-spark { animation: none; } .ga-spark { opacity: 0.8; } }
.gift-body { margin: -4px 0 14px; white-space: pre-line; color: #5a4640; }
.gift-body:empty { display: none; }
.links { width: 100%; margin: 4px 0 0; padding: 0; list-style: none; }
.links li { margin: 0 0 11px; }
.links a { position: relative; display: block; padding: 17px 46px 17px 20px; text-align: left; font-family: "Playfair", Georgia, serif; font-weight: 600; font-size: 19px; line-height: 1.2; color: var(--green); text-decoration: none; background: rgba(255, 252, 245, 0.96); border: 1.5px solid rgba(199, 154, 62, 0.85); border-radius: 14px; box-shadow: 0 4px 10px rgba(70, 30, 20, 0.1); -webkit-tap-highlight-color: transparent; }
.links a::after { content: ""; position: absolute; right: 20px; top: 50%; width: 10px; height: 10px; margin-top: -6px; border-top: 2px solid var(--gold); border-right: 2px solid var(--gold); transform: rotate(45deg); }
.links a:active { background: #f3e7d0; }

/* ---------- winner ---------- */
.won { width: 100%; margin: 0 0 22px; padding-bottom: 22px; border-bottom: 1.5px solid rgba(199, 154, 62, 0.5); display: flex; flex-direction: column; align-items: center; }
.won-title { font-size: 52px; margin-bottom: 14px; }
.won-card { width: 100%; padding: 26px 18px 22px; background: linear-gradient(#fffaf0, #f4e8cf); border: 2px solid var(--gold); border-radius: 18px; box-shadow: 0 0 0 5px rgba(255, 250, 240, 0.9), 0 0 0 6.5px rgba(199, 154, 62, 0.6), 0 12px 22px rgba(70, 30, 20, 0.2); }
.won-name { margin: 0; font-family: "Playfair", Georgia, serif; font-weight: 600; font-size: 34px; line-height: 1.1; color: var(--burgundy); overflow-wrap: anywhere; text-wrap: balance; }
.won-again { margin: 10px 0 0; font-family: "Playfair", Georgia, serif; font-style: italic; font-weight: 700; font-size: 24px; letter-spacing: 1px; color: var(--green); }
.won-again::before { content: ""; display: block; width: 90px; height: 2px; margin: 0 auto 10px; background: linear-gradient(90deg, rgba(199, 154, 62, 0), var(--gold), rgba(199, 154, 62, 0)); }
.won-how { margin: 20px 0 6px; font-family: "Playfair", Georgia, serif; font-weight: 600; font-size: 20px; line-height: 1.25; color: var(--ink); text-wrap: balance; }
.won-code { margin: 0; font-size: 14px; letter-spacing: 1px; color: #6a5750; }
.won-code strong { letter-spacing: 2px; color: var(--ink); }

.conn { margin: 0; padding-top: 14px; min-height: 1.4em; font-size: 13px; color: #8a7a70; }
.conn:empty { display: none; }

section:not([hidden]) > * { animation: rise 420ms ease-out both; }
section:not([hidden]) > *:nth-child(2) { animation-delay: 60ms; }
section:not([hidden]) > *:nth-child(3) { animation-delay: 120ms; }
section:not([hidden]) > *:nth-child(n + 4) { animation-delay: 180ms; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { section:not([hidden]) > * { animation: none; } .bar i { transition: none; } }
@media (max-height: 640px) { .logo { width: 120px; } h1 { font-size: 30px; } input[type="text"], input[type="tel"] { height: 50px; } }

/* ---------- the gift arrives wrapped: "Tap your gift to unwrap it" ---------- */
.unwrap { display: flex; flex-direction: column; align-items: center; }
.unwrap h1 { margin-bottom: 6px; }
.wrapped-gift { display: block; width: 250px; margin: 10px 0 0; padding: 0; border: 0; background: none; touch-action: manipulation; -webkit-tap-highlight-color: transparent; cursor: pointer; transform-origin: 50% 100%; animation: gift-bob 1700ms ease-in-out infinite; filter: drop-shadow(0 16px 14px rgba(70, 30, 20, 0.28)); }
.wrapped-gift img { display: block; width: 100%; height: auto; pointer-events: none; -webkit-user-drag: none; }
.wrapped-gift:active { transform: scale(0.96); }
.wrapped-gift.opening { animation: gift-shake 420ms ease-in-out both; }
.wrapped-gift.waiting { animation: gift-wiggle 700ms ease-in-out infinite; } /* tapped before the winners are out: it wiggles, then opens */
.unwrapped { display: flex; flex-direction: column; align-items: center; width: 100%; }
.unwrapped[hidden] { display: none; }
@keyframes gift-wiggle { 0%, 100% { transform: rotate(0) scale(1.02); } 25% { transform: rotate(-5deg) scale(1.05); } 75% { transform: rotate(5deg) scale(1.05); } }
@keyframes gift-bob { 0%, 100% { transform: translateY(0) rotate(-1.5deg); } 50% { transform: translateY(-9px) rotate(1.5deg); } }
@keyframes gift-shake { 0% { transform: rotate(0) scale(1); } 20% { transform: rotate(-7deg) scale(1.04); } 40% { transform: rotate(7deg) scale(1.07); } 60% { transform: rotate(-5deg) scale(1.1); } 80% { transform: rotate(4deg) scale(1.13); } 100% { transform: rotate(0) scale(1.2); opacity: 0; } }

/* ---------- no zooming: people tap this page fast, and a double tap must never zoom it ---------- */
html, body, body * { touch-action: manipulation; }
section[data-view="bulb"], section[data-view="bulb"] * { touch-action: none; } /* (the ornament is swiped: the page must not scroll under it) */
/* while they are tapping the cookie nothing on the page can be selected or pop up a menu */
section[data-view="joined"], section[data-view="joined"] * { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
