/* Glowvite — shared page styles (home, app, invitation page, legal pages). */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.55 var(--font-ui); color: #1f1d2b; background: #fbf7f1; }
img, svg { max-width: 100%; }
a { color: #d6336c; }
h1, h2, h3 { line-height: 1.15; font-family: var(--font-title); }
[hidden] { display: none !important; }
.wrap { width: min(1160px, 92vw); margin: 0 auto; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; border: 0; border-radius: 999px; padding: .8em 1.5em; font: 700 16px/1.1 var(--font-fun);
  background: #e63946; color: #fff; cursor: pointer; text-decoration: none; transition: transform .15s, box-shadow .15s, background .15s; box-shadow: 0 6px 16px -6px rgba(230, 57, 70, .6); }
.btn:hover { transform: translateY(-1px); } .btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: default; transform: none; }
.btn.ghost { background: transparent; color: inherit; box-shadow: inset 0 0 0 2px currentColor; }
.btn.soft { background: #f1ece4; color: #1f1d2b; box-shadow: none; }
.btn.small { padding: .55em 1em; font-size: 14px; }
.btn.big { padding: 1em 2em; font-size: 18px; }
.muted { color: #6f6a7a; } .small { font-size: 13px; }
.err { color: #c92a2a; font-weight: 600; min-height: 1.2em; }
input, textarea, select { font: inherit; color: inherit; width: 100%; padding: .7em .85em; border: 1.5px solid #ddd5c9; border-radius: 12px; background: #fff; }
input:focus, textarea:focus, select:focus { outline: none; border-color: #e63946; box-shadow: 0 0 0 3px rgba(230, 57, 70, .15); }
label { display: block; font-weight: 600; font-size: 14px; }
label > input, label > textarea, label > select { margin-top: 6px; font-weight: 400; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: #1f1d2b; color: #fff; padding: 12px 20px; border-radius: 12px; z-index: 100; box-shadow: 0 10px 30px rgba(0, 0, 0, .3); max-width: 90vw; }

/* header / footer */
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, #fbf7f1 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid #eee5d8; }
.top .wrap { display: flex; align-items: center; gap: 18px; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; font: 800 21px/1 var(--font-fun); color: #1f1d2b; text-decoration: none; }
.logo img { width: 34px; height: 34px; }
.top nav { margin-left: auto; display: flex; gap: 18px; align-items: center; }
.top nav a:not(.btn) { color: #1f1d2b; text-decoration: none; font-weight: 600; }
.foot { position: relative; margin-top: 70px; padding: 54px 0 28px; color: #5f596b; font-size: 14.5px; background: linear-gradient(180deg, #fff6ee, #ffeef3); border-top: 0; }
.foot::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: linear-gradient(90deg, #e63946, #ff8fab, #ffd166, #06d6a0, #118ab2, #9d4edd); }
.foot a { color: #3d3848; text-decoration: none; } .foot a:hover { color: #d6336c; }
.foot-top { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 2fr); gap: 40px; }
.foot-brand .logo { font-size: 22px; } .foot-brand p { margin: 12px 0 0; max-width: 34ch; line-height: 1.6; color: #6f6a7a; }
.foot-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.foot-cols h4 { margin: 0 0 12px; font: 800 12px/1 var(--font-ui); letter-spacing: .14em; text-transform: uppercase; color: #9a8fa8; }
.foot-cols a { display: block; padding: 5px 0; font-weight: 600; }
.foot-bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 36px; padding-top: 18px; border-top: 1px solid #f0dfd6; font-size: 13px; color: #8a8496; }
.foot-bottom a { color: #8a8496; font-weight: 600; }
@media (max-width: 760px) { .foot-top { grid-template-columns: 1fr; gap: 28px; } .foot-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 440px) { .foot-cols { grid-template-columns: 1fr 1fr; } }
/* back link + help page */
.backlink { display: inline-flex; align-items: center; gap: 8px; margin: -6px 0 18px; padding: 8px 16px 8px 12px; border-radius: 999px; background: #fff3ea; color: #3d3848; font-weight: 700; font-size: 14px; text-decoration: none; box-shadow: inset 0 0 0 1.5px #f3d9c7; transition: transform .15s, background .15s, box-shadow .15s; }
.backlink:hover { background: #ffe3ec; box-shadow: inset 0 0 0 1.5px #ffb3c6; transform: translateX(-3px); color: #d6336c; }
.faq { border: 1.5px solid #f0e4d8; border-radius: 16px; padding: 0 18px; margin: 10px 0; background: #fffdfa; }
.faq summary { cursor: pointer; padding: 14px 0; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; } .faq summary::after { content: '+'; font-size: 20px; line-height: 1; color: #d6336c; }
.faq[open] summary::after { content: '−'; } .faq > div { padding: 0 0 16px; color: #4f4a5c; line-height: 1.6; }
.contact-card { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 20px 22px; border-radius: 18px; background: linear-gradient(135deg, #fff3ea, #ffeef3); }
.contact-card p { margin: 4px 0 0; color: #6f6a7a; } .contact-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* home */
.hero { padding: 56px 0 30px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1fr 1.05fr; gap: 50px; align-items: center; }
.hero h1 { font-size: clamp(38px, 5.4vw, 64px); margin: 0 0 18px; letter-spacing: -.02em; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, #e63946, #fb6f92 50%, #ffb703); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: 19px; color: #4a4558; max-width: 34em; }
.hero .cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 26px; }
.hero-stage { position: relative; border-radius: 28px; padding: 40px 20px 34px; background: radial-gradient(circle at 50% 25%, var(--bg2), var(--bg)); box-shadow: 0 30px 70px -30px rgba(16, 33, 58, .6); }
.hero-stage .env { width: min(440px, 80vw); }
.hero-stage .pc { max-width: 520px; margin: 0 auto; }
.ticks { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 22px; padding: 0; list-style: none; color: #4a4558; font-weight: 600; font-size: 15px; }
.ticks li::before { content: '✓'; color: #2b9348; font-weight: 900; margin-right: 7px; }
.section { padding: 64px 0 10px; }
.section h2 { font-size: clamp(28px, 3.4vw, 40px); margin: 0 0 10px; text-align: center; }
.section .sub { text-align: center; color: #6f6a7a; max-width: 40em; margin: 0 auto 34px; font-size: 18px; }
.themes { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 26px; }
.theme-card { background: #fff; border-radius: 22px; padding: 14px 14px 18px; box-shadow: 0 16px 40px -24px rgba(0, 0, 0, .35); display: flex; flex-direction: column; gap: 12px; }
.theme-card .pc-face { box-shadow: none; }
.themes .tgroup { grid-column: 1 / -1; margin: 18px 0 -6px; font: 800 14px/1 var(--font-ui); letter-spacing: .14em; text-transform: uppercase; color: #8a8496; }
.themes .tgroup:first-child { margin-top: 0; }
.theme-card h3 { margin: 6px 6px 0; font-size: 20px; }
.theme-card p { margin: 0 6px; color: #6f6a7a; font-size: 14.5px; }
.theme-card .row { display: flex; gap: 10px; margin: 4px 6px 0; flex-wrap: wrap; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 22px; counter-reset: s; }
.step { background: #fff; border-radius: 20px; padding: 24px; box-shadow: 0 16px 40px -28px rgba(0, 0, 0, .35); }
.step::before { counter-increment: s; content: counter(s); display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: #ffe3ec; color: #d6336c; font: 800 18px/1 var(--font-fun); margin-bottom: 12px; }
.step h3 { margin: 0 0 6px; font-size: 19px; }
.step p { margin: 0; color: #6f6a7a; }
.track-demo { background: #fff; border-radius: 22px; padding: 22px; box-shadow: 0 16px 40px -28px rgba(0, 0, 0, .35); overflow-x: auto; }

/* invitation page */
.inv { min-height: 100svh; background: radial-gradient(circle at 50% 18%, var(--bg2), var(--bg) 70%); color: var(--hint-ink, #fff); padding: 6vh 0 40px; overflow-x: hidden; }
.inv-hello { text-align: center; font: 700 clamp(18px, 2.4vw, 24px)/1.3 var(--font-fun); margin: 0 auto 4vh; width: min(640px, 90vw); }
.inv-hello small { display: block; font-size: .7em; opacity: .8; font-weight: 600; margin-top: 4px; }
.inv-stage { display: grid; place-items: center; min-height: 52vh; }
.inv-card { width: min(980px, 94vw); margin: 0 auto; opacity: 0; transform: scale(.55) translateY(-8%); transition: transform 1s cubic-bezier(.2, .9, .25, 1.15), opacity .6s; }
.inv-card.show { opacity: 1; transform: none; }
.inv-tools { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin: 22px auto 0; }
.inv-tools .btn { background: color-mix(in srgb, var(--paper) 94%, transparent); color: var(--ink); box-shadow: 0 6px 18px -8px rgba(0, 0, 0, .5); }
.inv-tools .btn.primary { background: var(--accent); color: #fff; }
.rsvp { width: min(640px, 94vw); margin: 34px auto 0; background: var(--paper); color: var(--ink); border-radius: 24px; padding: 28px clamp(18px, 4vw, 36px); box-shadow: 0 24px 60px -24px rgba(0, 0, 0, .55); }
.rsvp h2 { margin: 0 0 4px; font-size: 28px; text-align: center; }
.rsvp .q { text-align: center; color: color-mix(in srgb, var(--ink) 65%, transparent); margin: 0 0 18px; }
.choice { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.choice button { border: 2px solid color-mix(in srgb, var(--ink) 15%, transparent); background: #fff; border-radius: 18px; padding: 16px 10px; font: 800 17px/1.2 var(--font-fun); color: var(--ink); cursor: pointer; transition: all .15s; }
.choice button span { display: block; font-size: 30px; margin-bottom: 6px; }
.choice button[aria-pressed='true'] { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, #fff); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); }
.counts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 18px; }
.counter { background: #fff; border-radius: 16px; padding: 12px 14px; border: 1.5px solid color-mix(in srgb, var(--ink) 10%, transparent); text-align: center; }
.counter b { display: block; font: 700 14px/1.2 var(--font-ui); color: color-mix(in srgb, var(--ink) 70%, transparent); margin-bottom: 8px; }
.counter div { display: flex; align-items: center; justify-content: center; gap: 14px; }
.counter button { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--accent); color: #fff; font: 800 22px/1 var(--font-ui); cursor: pointer; }
.counter button:disabled { opacity: .3; }
.counter output { font: 800 30px/1 var(--font-fun); min-width: 1.6em; }
.rsvp label { margin-top: 16px; color: color-mix(in srgb, var(--ink) 80%, transparent); }
.rsvp .send { width: 100%; margin-top: 20px; background: var(--accent); }
.rsvp .done { text-align: center; }
.rsvp .done .big { font-size: 54px; line-height: 1; margin-bottom: 8px; }
.rsvp .done h2 { margin-bottom: 8px; }
.inv-foot { text-align: center; font-size: 13px; opacity: .75; margin-top: 40px; }
.inv-foot a { color: inherit; }
.notice { width: min(640px, 92vw); margin: 0 auto 20px; background: rgba(255, 255, 255, .92); color: #1f1d2b; border-radius: 16px; padding: 14px 18px; text-align: center; font-weight: 600; }
#fx { position: fixed; inset: 0; pointer-events: none; z-index: 50; width: 100vw; height: 100vh; }
.zoomer { position: fixed; z-index: 49; pointer-events: none; }
.zoomer.car { left: 0; bottom: 12vh; width: min(360px, 70vw); transform: translateX(-110%); animation: car-run 3.4s cubic-bezier(.4, 0, .2, 1) forwards; }
.zoomer.car .car-body { position: relative; z-index: 2; animation: car-bob .18s ease-in-out infinite alternate; }
.zoomer.car svg { display: block; width: 100%; height: auto; filter: drop-shadow(0 10px 8px rgba(0, 0, 0, .35)); }
.zoomer.car .pp-wheel { transform-box: fill-box; transform-origin: center; animation: wheel-spin .22s linear infinite; }
@keyframes wheel-spin { to { transform: rotate(360deg); } }
/* the buddy car blinks twice and winks as it stops */
.zoomer.car .pp-lid { animation: car-blink 3.4s steps(1) forwards; }
@keyframes car-blink { 0%, 20% { opacity: 0; } 21%, 23% { opacity: 1; } 24%, 45% { opacity: 0; } 50%, 60% { opacity: 1; } 61%, 100% { opacity: 0; } }
@keyframes car-bob { to { transform: translateY(-2px); } }
@keyframes car-run {
  0% { transform: translateX(-110%); }
  38% { transform: translateX(calc(50vw - 50%)) skewX(-4deg); }
  44% { transform: translateX(calc(50vw - 46%)) skewX(3deg); }
  50%, 66% { transform: translateX(calc(50vw - 50%)) skewX(0); }
  100% { transform: translateX(calc(100vw + 20%)) skewX(-6deg); } }
.zoomer.car .speed { position: absolute; left: -38%; height: 5px; border-radius: 3px; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .9)); animation: speed-lines 3.4s linear forwards; }
.zoomer.car .s1 { top: 38%; width: 46%; } .zoomer.car .s2 { top: 58%; width: 60%; } .zoomer.car .s3 { top: 76%; width: 38%; }
@keyframes speed-lines { 0%, 34% { opacity: 1; } 42%, 70% { opacity: 0; } 78%, 100% { opacity: 1; } }
.zoomer.car .puff { position: absolute; left: -2%; bottom: 14%; width: 34px; height: 34px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, .9), rgba(220, 220, 230, 0) 70%); opacity: 0; animation: puff 3.4s ease-out forwards; }
.zoomer.car .p2 { animation-delay: .12s; } .zoomer.car .p3 { animation-delay: .24s; }
@keyframes puff { 0%, 48% { opacity: 0; transform: translate(0, 0) scale(.4); } 56% { opacity: 1; } 72% { opacity: 0; transform: translate(-90px, -26px) scale(2.4); } 100% { opacity: 0; } }
.zoomer.rocket { left: 12vw; bottom: -200px; width: 90px; animation: rocket-up 2s cubic-bezier(.5, 0, .4, 1) forwards; }
@keyframes rocket-up { to { transform: translate(30vw, calc(-100vh - 300px)) rotate(18deg); } }
.zoomer.balloon { bottom: -160px; width: 70px; animation: float-up 4.2s ease-in forwards; }
@keyframes float-up { to { transform: translateY(calc(-100vh - 260px)) translateX(30px); } }
.zoomer.drop { top: -60px; animation: drop-down 4s linear forwards; will-change: transform; }
.zoomer.drop.up { top: auto; bottom: -60px; animation-name: toss-up; }
@keyframes drop-down { 0% { transform: translateY(0) rotate(0); opacity: 0; } 10% { opacity: 1; } 100% { transform: translateY(calc(100vh + 120px)) rotate(200deg); opacity: .9; } }
@keyframes toss-up { 0% { transform: translateY(0) rotate(0); opacity: 0; } 10% { opacity: 1; } 55% { transform: translateY(-75vh) rotate(260deg); } 100% { transform: translateY(-10vh) rotate(540deg); opacity: 0; } }
.shake { animation: shake .5s 3; }
@keyframes shake { 0%, 100% { transform: translate(0); } 25% { transform: translate(-6px, 3px); } 50% { transform: translate(5px, -4px); } 75% { transform: translate(-3px, 4px); } }
.roar { position: fixed; left: 50%; top: 30%; z-index: 51; transform: translate(-50%, -50%) scale(.2); font: 900 clamp(60px, 14vw, 160px)/1 var(--font-title); color: #f77f00; -webkit-text-stroke: 4px #fff; animation: roar 1.4s cubic-bezier(.2, 1.4, .4, 1) forwards; pointer-events: none; }
@keyframes roar { 60% { transform: translate(-50%, -50%) scale(1.1); opacity: 1; } 100% { transform: translate(-50%, -50%) scale(1.2); opacity: 0; } }

/* account in the top menu */
.acct { display: inline-flex; align-items: center; gap: 8px; color: #1f1d2b; text-decoration: none; font-weight: 600; }
.avatar { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(135deg, #ff8fab, #e63946); color: #fff; font: 800 15px/1 var(--font-fun); box-shadow: 0 3px 8px -3px rgba(230, 57, 70, .6); }
@media (max-width: 560px) { .top .hide-sm { display: none; } .top nav { gap: 10px; } }
/* sign-in code box */
.code-input { font: 800 30px/1 ui-monospace, 'SF Mono', Menlo, Consolas, monospace; letter-spacing: .55em; text-align: center; padding: .55em .2em .55em .75em; margin: 6px 0 12px; }
.code-input::placeholder { color: #d9cfc2; }

/* maps (OpenStreetMap tiles around the pin) */
.place-map, .where-map { position: relative; overflow: hidden; border-radius: 16px; height: 220px; background: #e8e4dc; isolation: isolate; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08); }
.map-tiles { position: absolute; left: 50%; top: 50%; }
.map-tiles img { position: absolute; width: 256px; height: 256px; max-width: none; user-select: none; -webkit-user-drag: none; }
.map-pin { position: absolute; left: 50%; top: 50%; width: 34px; transform: translate(-50%, -100%); filter: drop-shadow(0 4px 4px rgba(0, 0, 0, .35)); z-index: 2; animation: pin-drop .7s cubic-bezier(.3, 1.6, .5, 1) both; }
.map-pin svg { display: block; width: 100%; height: auto; } .map-pin .pin-body { fill: var(--accent, #e63946); }
@keyframes pin-drop { from { transform: translate(-50%, -260%); opacity: 0; } to { transform: translate(-50%, -100%); opacity: 1; } }
.map-pulse { position: absolute; left: 50%; top: 50%; width: 46px; height: 18px; margin: -9px 0 0 -23px; border-radius: 50%; background: color-mix(in srgb, var(--accent, #e63946) 45%, transparent); z-index: 1; animation: pin-pulse 2s ease-out infinite; }
@keyframes pin-pulse { from { transform: scale(.4); opacity: .9; } to { transform: scale(2.2); opacity: 0; } }
.map-credit { position: absolute; right: 6px; bottom: 6px; z-index: 3; font: 600 11px/1 var(--font-ui); color: #333; background: rgba(255, 255, 255, .85); padding: 3px 6px; border-radius: 6px; text-decoration: none; }
.where { width: min(640px, 94vw); margin: 26px auto 0; background: var(--paper); color: var(--ink); border-radius: 24px; overflow: hidden; box-shadow: 0 24px 60px -24px rgba(0, 0, 0, .55); }
.where-map { border-radius: 0; height: 240px; }
.where-text { padding: 18px clamp(18px, 4vw, 30px) 22px; text-align: center; }
.where-text h2 { margin: 0 0 4px; font-size: 22px; } .where-text p { margin: 0; color: color-mix(in srgb, var(--ink) 70%, transparent); }
.where-go { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 14px; }
.where-go .btn:not(.soft) { background: var(--accent); color: #fff; }
/* editor: place search */
.place-wrap { position: relative; }
.place-list { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 20; margin: 0; padding: 6px; list-style: none; background: #fff; border-radius: 14px; box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .35), 0 0 0 1px rgba(0, 0, 0, .06); max-height: 320px; overflow: auto; }
.place-list li { padding: 9px 12px; border-radius: 10px; cursor: pointer; display: grid; gap: 2px; }
.place-list li b { font-weight: 700; } .place-list li small { color: #7a7487; font-size: 12.5px; }
.place-list li:hover, .place-list li[aria-selected='true'] { background: #fff1e6; }
.place-list li.note { cursor: default; color: #7a7487; font-size: 13px; background: none; }
.place-tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.place-pinbar { display: flex; justify-content: space-between; align-items: center; font-size: 13.5px; color: #5f596b; margin-top: -4px; }
.linkish { border: 0; background: none; color: #d6336c; font: inherit; font-weight: 700; cursor: pointer; padding: 0; text-decoration: underline; }

/* gift box */
.gift { width: min(640px, 94vw); margin: 26px auto 0; text-align: center; }
.giftbox { position: relative; width: 220px; height: 210px; margin: 0 auto; border: 0; background: none; cursor: pointer; display: block; }
.gb-box { position: absolute; left: 20px; right: 20px; bottom: 30px; height: 120px; border-radius: 10px; background: linear-gradient(160deg, var(--accent), color-mix(in srgb, var(--accent) 70%, #000)); box-shadow: 0 18px 30px -14px rgba(0, 0, 0, .6); }
.gb-lid { position: absolute; left: 10px; right: 10px; top: 46px; height: 36px; border-radius: 8px; z-index: 2; background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 85%, #fff), var(--accent)); transition: transform .8s cubic-bezier(.3, 1.4, .5, 1), opacity .6s .3s; }
.gb-ribbon { position: absolute; left: 50%; top: 46px; bottom: 30px; width: 22px; margin-left: -11px; z-index: 3; background: var(--accent2); }
.gb-bow { position: absolute; left: 50%; top: 18px; width: 70px; height: 34px; margin-left: -35px; z-index: 4; border-radius: 50% 50% 40% 40%; background: radial-gradient(circle at 30% 50%, var(--accent2) 45%, transparent 47%), radial-gradient(circle at 70% 50%, var(--accent2) 45%, transparent 47%); transition: transform .8s cubic-bezier(.3, 1.4, .5, 1), opacity .6s .3s; }
.gb-tap { position: absolute; left: 0; right: 0; bottom: 0; font: 700 15px/1 var(--font-fun); color: var(--hint-ink, #fff); animation: hint 1.6s ease-in-out infinite; }
.giftbox:not(.open) { animation: gift-wiggle 2.6s ease-in-out infinite; }
@keyframes gift-wiggle { 0%, 80%, 100% { transform: rotate(0); } 85% { transform: rotate(-4deg); } 90% { transform: rotate(4deg); } 95% { transform: rotate(-2deg); } }
.giftbox.open .gb-lid, .giftbox.open .gb-bow { transform: translateY(-120px) rotate(-18deg); opacity: 0; }
.gift-in { background: var(--paper); color: var(--ink); border-radius: 24px; padding: 26px clamp(18px, 4vw, 34px); box-shadow: 0 24px 60px -24px rgba(0, 0, 0, .55); animation: gift-pop .6s cubic-bezier(.3, 1.5, .5, 1); }
@keyframes gift-pop { from { transform: scale(.6); opacity: 0; } }
.gift-in .big { font-size: 48px; } .gift-in h2 { margin: 6px 0 8px; } .gmsg { font: 400 18px/1.5 var(--font-hand); margin: 0 0 16px; }
.gcode { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; margin: 0 0 16px; padding: 12px 16px; border: 2px dashed color-mix(in srgb, var(--accent) 50%, transparent); border-radius: 14px; }
.gcode span { font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: color-mix(in srgb, var(--ink) 60%, transparent); }
.gcode b { font: 800 20px/1 ui-monospace, Menlo, Consolas, monospace; letter-spacing: .06em; }
.gift-in .btn:not(.soft) { background: var(--accent); color: #fff; }

/* legal pages */
.doc { width: min(780px, 92vw); margin: 40px auto; background: #fff; padding: clamp(22px, 5vw, 48px); border-radius: 22px; box-shadow: 0 16px 40px -28px rgba(0, 0, 0, .35); }
.doc h1 { margin-top: 0; } .doc h2 { margin-top: 1.6em; font-size: 21px; }

@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; } .hero { padding-top: 30px; } .top nav a.hide-sm { display: none; } }
@media (max-width: 520px) { .themes { grid-template-columns: 1fr; } .choice button { font-size: 15px; } }
@media (prefers-reduced-motion: reduce) { .zoomer, .roar { display: none; } .inv-card { transition-duration: .01s; } }
.tbl { width: 100%; border-collapse: collapse; font-size: 15px; }
.tbl th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: #8a8496; padding: 10px 12px; border-bottom: 2px solid #f0e9df; white-space: nowrap; }
.tbl td { padding: 12px; border-bottom: 1px solid #f3ede4; vertical-align: middle; }
.pill { display: inline-block; padding: 4px 11px; border-radius: 99px; font-size: 13px; font-weight: 700; white-space: nowrap; }
.pill.yes { background: #d3f9d8; color: #2b8a3e; } .pill.no { background: #ffe3e3; color: #c92a2a; } .pill.wait { background: #fff3bf; color: #9c6500; } .pill.none { background: #f1f3f5; color: #6f6a7a; } .pill.sent { background: #e7f5ff; color: #1971c2; } .pill.err { background: #ffe3e3; color: #c92a2a; }

.alsosend { margin: 14px 0 0; font-weight: 600; color: #5f596b; } .alsosend a { color: #d6336c; }
/* home gallery search */
.gsearch { display: grid; gap: 10px; max-width: 760px; margin: 0 auto 18px; }
.gsearch input { width: 100%; padding: 13px 18px; border-radius: 999px; border: 1px solid #e6ddd0; font: inherit; font-size: 16px; background: #fff; box-shadow: 0 6px 18px -12px rgba(0, 0, 0, .3); }
.gsearch .chips { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.gsearch .chips button { border: 1px solid #e6ddd0; background: #fff; border-radius: 999px; padding: 6px 14px; font: inherit; font-size: 14px; cursor: pointer; color: #4a4458; }
.gsearch .chips button[aria-pressed='true'] { background: #2b2520; border-color: #2b2520; color: #fff; }
.themes [hidden], .themes .tgroup[hidden] { display: none !important; }
#theme-none { text-align: center; }
.gsearch .moodchips { align-items: center; } .gsearch .moodchips span { margin-right: 4px; }
.gsearch .moodchips button[aria-pressed='true'] { background: #9c7a3c; border-color: #9c7a3c; }

/* performance: the browser skips laying out and painting gallery cards that are far off screen */
.theme-card { content-visibility: auto; contain-intrinsic-size: auto 420px; }
.theme-card .pc:empty { aspect-ratio: 3 / 2; border-radius: 14px; background: linear-gradient(110deg, #f1ebe2 30%, #f8f4ee 50%, #f1ebe2 70%); background-size: 250% 100%; animation: pcLoad 1.4s linear infinite; }
@keyframes pcLoad { to { background-position: -150% 0; } }
/* beta tag next to the logo (beta.glowvite.xrainier.com only) */
.logo .beta-tag { display: inline-block; margin-left: 8px; padding: 3px 8px 2px; border-radius: 999px; background: linear-gradient(135deg, #ffb703, #fb8500); color: #fff;
  font: 800 10.5px/1.2 system-ui, sans-serif; letter-spacing: .12em; vertical-align: middle; box-shadow: 0 2px 6px -2px rgba(251, 133, 0, .6); transform: translateY(-1px); }

.pill.maybe { background: #fff3bf; color: #946200; }

/* pricing page */
.pricing .pcards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; margin: 26px 0 34px; }
.pcard { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 24px 22px; border-radius: 22px; background: #fff; border: 1px solid #eee5d8; box-shadow: 0 14px 32px -24px rgba(0, 0, 0, .45); }
.pcard h2 { margin: 0; font-size: 20px; } .pcard .pp { font-size: 34px; font-weight: 800; color: #2b2520; } .pcard .pp small { font-size: 14px; font-weight: 500; color: #8a8496; }
.pcard ul { margin: 8px 0 16px; padding-left: 18px; line-height: 1.7; flex: 1; } .pcard .btn { align-self: stretch; text-align: center; }
.pcard.best { border: 2px solid #e63946; box-shadow: 0 18px 40px -22px rgba(230, 57, 70, .55); }
.ptag { position: absolute; top: -12px; right: 18px; padding: 4px 12px; border-radius: 999px; background: #e63946; color: #fff; font-size: 12px; font-weight: 800; letter-spacing: .04em; }
.pill.plus { background: linear-gradient(135deg, #fff3d6, #fde2f0); color: #8a5a00; }
.pcard .picon { width: 96px; height: 96px; object-fit: contain; margin: -6px 0 4px; filter: drop-shadow(0 10px 12px rgba(80, 40, 20, .18)); }
