/* SayYes: mobile first. Themes are just token sets: blush (default), midnight, polaroid. */
:root,
[data-theme="blush"] {
    --bg1: #ffe1ea;
    --bg2: #fff5ef;
    --blob1: #ffb3c9;
    --blob2: #ffd6b8;
    --blob3: #f8c4ff;
    --ink: #4a1d2f;
    --muted: #9a6274;
    --accent: #ff4f8b;
    --accent-2: #ff8f7a;
    --accent-ink: #fff;
    --card: rgba(255, 255, 255, .78);
    --card-solid: #fff;
    --line: #f5c3d2;
    --shadow: 0 18px 40px -18px rgba(176, 40, 92, .45);
    --paper: #fffdfb;
    --env: #ff8fb1;
    --env-dark: #f2668f;
    --floater: #ff7aa5;
}

[data-theme="midnight"] {
    --bg1: #1c1240;
    --bg2: #07061a;
    --blob1: #6b2a8a;
    --blob2: #26307a;
    --blob3: #8a2a5c;
    --ink: #fdeef6;
    --muted: #b9a7d6;
    --accent: #ff6fae;
    --accent-2: #a78bfa;
    --accent-ink: #1a0b22;
    --card: rgba(255, 255, 255, .08);
    --card-solid: #221a45;
    --line: rgba(255, 255, 255, .16);
    --shadow: 0 18px 50px -16px rgba(255, 111, 174, .45);
    --paper: #fff8fb;
    --env: #6d4bd1;
    --env-dark: #4f33a8;
    --floater: #ffd6ec;
}

[data-theme="polaroid"] {
    --bg1: #f5ecdc;
    --bg2: #ede0c8;
    --blob1: #f2c9a6;
    --blob2: #e9d7a7;
    --blob3: #f0b7a8;
    --ink: #3a2a22;
    --muted: #8a7462;
    --accent: #d6453d;
    --accent-2: #e59a3b;
    --accent-ink: #fffaf1;
    --card: rgba(255, 250, 241, .85);
    --card-solid: #fffaf1;
    --line: #dccbb0;
    --shadow: 0 16px 34px -16px rgba(90, 50, 20, .45);
    --paper: #fffaf1;
    --env: #c9a77c;
    --env-dark: #b08d62;
    --floater: #d6453d;
}

*,
*::before,
*::after { box-sizing: border-box; }

html, body { margin: 0; height: 100%; }

body {
    font-family: "Nunito", system-ui, sans-serif;
    color: var(--ink);
    background: var(--bg2);
    background: radial-gradient(120% 90% at 50% 0%, var(--bg1), var(--bg2));
    overflow: hidden;
    -webkit-tap-highlight-color: transparent;
    -webkit-font-smoothing: antialiased;
    touch-action: manipulation;
    user-select: none;
    -webkit-user-select: none;
}

button { font: inherit; color: inherit; cursor: pointer; }
.hand { font-family: "Caveat", cursive; }

/* ---------- Background ---------- */
.sky { position: fixed; inset: 0; overflow: hidden; z-index: 0; pointer-events: none; }
.blob {
    position: absolute; border-radius: 50%; filter: blur(60px); opacity: .7;
    animation: drift 18s ease-in-out infinite alternate;
}
.b1 { width: 70vmax; height: 70vmax; background: var(--blob1); top: -30vmax; left: -25vmax; }
.b2 { width: 55vmax; height: 55vmax; background: var(--blob2); bottom: -25vmax; right: -20vmax; animation-delay: -6s; }
.b3 { width: 35vmax; height: 35vmax; background: var(--blob3); top: 40%; left: 55%; animation-delay: -12s; opacity: .5; }
@keyframes drift { to { transform: translate(6vmax, 4vmax) scale(1.08); } }

[data-theme="midnight"] .sky::after {
    content: ""; position: absolute; inset: 0;
    background-image:
        radial-gradient(1.5px 1.5px at 12% 18%, #fff 50%, transparent 51%),
        radial-gradient(1px 1px at 72% 12%, #fff 50%, transparent 51%),
        radial-gradient(1.5px 1.5px at 85% 40%, #fff 50%, transparent 51%),
        radial-gradient(1px 1px at 30% 62%, #fff 50%, transparent 51%),
        radial-gradient(1px 1px at 55% 82%, #fff 50%, transparent 51%),
        radial-gradient(1.5px 1.5px at 8% 88%, #fff 50%, transparent 51%),
        radial-gradient(1px 1px at 44% 30%, #fff 50%, transparent 51%),
        radial-gradient(1px 1px at 92% 74%, #fff 50%, transparent 51%);
    animation: twinkle 4s ease-in-out infinite alternate;
}
@keyframes twinkle { from { opacity: .45; } to { opacity: 1; } }

[data-theme="polaroid"] body::before {
    /* paper grain */
    content: ""; position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: .22; mix-blend-mode: multiply;
    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%3CfeColorMatrix values='0 0 0 0 .4 0 0 0 0 .3 0 0 0 0 .2 0 0 0 .6 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.floaters { position: fixed; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.floaters span {
    position: absolute; bottom: -40px; color: var(--floater); opacity: 0;
    animation: rise linear infinite;
}
@keyframes rise {
    0% { transform: translateY(0) translateX(0) rotate(0); opacity: 0; }
    10% { opacity: .55; }
    50% { transform: translateY(-55vh) translateX(18px) rotate(12deg); }
    90% { opacity: .4; }
    100% { transform: translateY(-110vh) translateX(-12px) rotate(-10deg); opacity: 0; }
}

.confetti { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 30; pointer-events: none; }

/* ---------- Screens ---------- */
main { position: relative; z-index: 2; height: 100vh; height: 100dvh; }

.screen {
    position: absolute; inset: 0;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 14px; text-align: center;
    padding: max(24px, env(safe-area-inset-top)) 20px max(24px, env(safe-area-inset-bottom));
    opacity: 0; visibility: hidden; transform: translateY(24px) scale(.98);
    transition: opacity .6s ease, transform .7s cubic-bezier(.2, .8, .2, 1), visibility 0s .7s;
}
.screen.is-active {
    opacity: 1; visibility: visible; transform: none;
    transition: opacity .6s ease .1s, transform .7s cubic-bezier(.2, .8, .2, 1) .1s, visibility 0s;
}
.screen.is-leaving { opacity: 0; transform: translateY(-24px) scale(.98); }
.screen.scroll { justify-content: flex-start; overflow-y: auto; -webkit-overflow-scrolling: touch; padding-top: max(40px, env(safe-area-inset-top)); }
.screen.scroll > * { flex-shrink: 0; }

.title {
    font-family: "Fraunces", Georgia, serif; font-weight: 700; font-style: italic;
    font-size: clamp(2.2rem, 10vw, 3.6rem); line-height: 1.02; letter-spacing: -.02em;
    margin: 0; max-width: 14ch; text-wrap: balance;
}
.title.big { font-size: clamp(2.8rem, 14vw, 4.6rem); }
.hello { font-size: 1.7rem; margin: 0; color: var(--muted); }
.sub { margin: 0; font-size: 1.08rem; line-height: 1.5; color: var(--muted); max-width: 30ch; font-weight: 700; text-wrap: balance; }
.sub.small { font-size: .98rem; margin-top: 6px; }
.reaction { min-height: 1.6em; margin: 0; font-weight: 800; color: var(--accent); font-size: 1.05rem; }

/* ---------- Buttons ---------- */
.choices { display: flex; gap: 14px; align-items: center; justify-content: center; margin-top: 8px; min-height: 120px; }

.btn {
    border: 0; border-radius: 999px; padding: 16px 34px; font-weight: 800; font-size: 1.15rem;
    min-height: 56px; position: relative; white-space: nowrap;
    transition: transform .35s cubic-bezier(.3, 1.6, .5, 1), box-shadow .3s ease, background .3s ease;
}
.btn-yes {
    color: var(--accent-ink);
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    box-shadow: var(--shadow), inset 0 -3px 0 rgba(0, 0, 0, .12);
    z-index: 3;
}
.btn-yes::after {
    content: ""; position: absolute; inset: -6px; border-radius: inherit; border: 2px solid var(--accent);
    opacity: 0; animation: ping 2.2s ease-out infinite;
}
@keyframes ping { 0% { transform: scale(.9); opacity: .6; } 100% { transform: scale(1.25); opacity: 0; } }
.btn-yes:active { transform: scale(.95); }

.btn-no {
    background: var(--card); color: var(--muted); border: 2px solid var(--line);
    backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
    z-index: 4;
}
.btn-no.is-loose {
    position: fixed; margin: 0;
    transition: left .38s cubic-bezier(.3, 1.4, .5, 1), top .38s cubic-bezier(.3, 1.4, .5, 1), transform .3s ease, font-size .3s ease, padding .3s ease;
}
.btn-no.wiggle { animation: wiggle .4s ease; }
@keyframes wiggle { 25% { rotate: -8deg; } 75% { rotate: 8deg; } }

.btn-next { margin-top: 10px; }
.btn-next .arrow { display: inline-block; transition: transform .3s; }
.btn-next:hover .arrow { transform: translateX(4px); }
.btn:disabled { opacity: .45; pointer-events: none; }

.link-btn { background: none; border: 0; color: var(--muted); font-weight: 700; padding: 12px; text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Music button ---------- */
.music {
    position: fixed; z-index: 40; top: max(14px, env(safe-area-inset-top)); right: 14px;
    width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid var(--line);
    background: var(--card); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    display: grid; place-items: center; color: var(--accent); box-shadow: var(--shadow);
}
.music .bars { display: flex; gap: 3px; align-items: flex-end; height: 16px; }
.music .bars i { width: 3px; height: 100%; background: currentColor; border-radius: 2px; animation: eq 1s ease-in-out infinite; transform-origin: bottom; }
.music .bars i:nth-child(2) { animation-delay: -.3s; }
.music .bars i:nth-child(3) { animation-delay: -.6s; }
.music .bars i:nth-child(4) { animation-delay: -.15s; }
@keyframes eq { 0%, 100% { transform: scaleY(.3); } 50% { transform: scaleY(1); } }
.music .muted-icon { display: none; font-size: 1.3rem; font-weight: 800; }
.music.is-off .bars { display: none; }
.music.is-off .muted-icon { display: block; opacity: .6; }

/* ---------- Envelope ---------- */
.envelope {
    --w: min(78vw, 330px);
    position: relative; width: var(--w); height: calc(var(--w) * .66);
    border: 0; padding: 0; background: none;
    animation: floaty 3.2s ease-in-out infinite;
    filter: drop-shadow(0 24px 30px rgba(120, 30, 70, .25));
    margin-bottom: 18px;
}
@keyframes floaty { 50% { transform: translateY(-10px) rotate(-1.5deg); } }
.env-back, .env-front, .env-flap { position: absolute; left: 0; width: 100%; }
.env-back { inset: 0; height: 100%; background: var(--env-dark); border-radius: 14px; }
.env-front {
    /* the pocket: everything except the top V that the flap closes over */
    bottom: 0; height: 100%; border-radius: 14px; z-index: 3;
    background: var(--env);
    clip-path: polygon(0 0, 50% 54%, 100% 0, 100% 100%, 0 100%);
}
.env-front::after {
    /* bottom fold, a touch darker */
    content: ""; position: absolute; inset: 0;
    background: rgba(0, 0, 0, .06);
    clip-path: polygon(0 100%, 50% 50%, 100% 100%);
}
.env-flap {
    top: 0; height: 58%; z-index: 4; transform-origin: top;
    background: var(--env-dark);
    clip-path: polygon(0 0, 100% 0, 50% 100%);
    transition: transform .6s cubic-bezier(.5, 0, .3, 1), z-index 0s .3s;
}
.letter {
    position: absolute; left: 7%; right: 7%; top: 8%; height: 84%; z-index: 2;
    background: var(--paper); border-radius: 8px;
    display: flex; justify-content: center; padding-top: 18px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .1);
    transition: transform .8s cubic-bezier(.3, 1.2, .5, 1) .45s;
}
.letter-line { font-family: "Caveat", cursive; font-size: 1.5rem; color: #a03d64; }
.seal {
    position: absolute; z-index: 5; left: 50%; top: 52%; translate: -50% -50%;
    width: 54px; height: 54px; border-radius: 50%;
    display: grid; place-items: center; color: #fff; font-size: 1.5rem;
    background: radial-gradient(circle at 35% 30%, #ff7a9f, #c81d55 70%);
    box-shadow: 0 3px 0 #9c1442, 0 6px 14px rgba(0, 0, 0, .25);
    transition: transform .4s ease, opacity .3s ease;
    animation: heartbeat 1.6s ease-in-out infinite;
}
@keyframes heartbeat { 0%, 100% { transform: scale(1); } 15% { transform: scale(1.12); } 30% { transform: scale(1); } 45% { transform: scale(1.08); } }
.env-to {
    position: absolute; z-index: 5; bottom: 9%; left: 0; right: 0;
    font-family: "Caveat", cursive; font-size: 1.45rem; color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, .2);
}
.env-to b { font-weight: 700; }

.envelope.is-open { animation: none; }
.envelope.is-open .seal { transform: scale(0); opacity: 0; animation: none; }
.envelope.is-open .env-flap { transform: rotateX(180deg); z-index: 1; }
.envelope.is-open .letter { transform: translateY(-58%); }
.envelope.is-open .env-to { opacity: 0; transition: opacity .3s; }

.hint {
    margin: 0; font-weight: 800; color: var(--muted); letter-spacing: .02em;
    animation: breathe 2s ease-in-out infinite;
}
@keyframes breathe { 50% { opacity: .45; } }

/* ---------- Mascot (heart buddy) ---------- */
.buddy { width: min(46vw, 190px); height: auto; overflow: visible; animation: bob 2.4s ease-in-out infinite; }
.buddy .body { fill: url(#buddyGrad); }
.buddy .eye { fill: #3b1222; transform-box: fill-box; transform-origin: center; animation: blink 4.5s infinite; }
.buddy .shine { fill: #fff; }
.buddy .cheek { fill: #ff9fbd; opacity: .8; }
.buddy .mouth { fill: none; stroke: #3b1222; stroke-width: 5; stroke-linecap: round; transition: opacity .2s; }
.buddy .sad, .buddy .tear, .buddy .wow { opacity: 0; }
.buddy .tear { fill: #8fd3ff; transition: opacity .2s; }
.buddy.is-sad .happy { opacity: 0; }
.buddy.is-sad .sad, .buddy.is-sad .tear { opacity: 1; }
.buddy.is-sad { animation: shake .45s ease; }
.buddy.is-wow .happy { opacity: 0; }
.buddy.is-wow .wow { opacity: 1; }
.buddy.is-jump { animation: jump .7s cubic-bezier(.3, 1.6, .5, 1) infinite alternate; }
@keyframes bob { 50% { transform: translateY(-8px) rotate(2deg); } }
@keyframes blink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.1); } }
@keyframes shake { 20% { transform: translateX(-8px) rotate(-4deg); } 40% { transform: translateX(8px) rotate(4deg); } 60% { transform: translateX(-5px); } 80% { transform: translateX(5px); } }
@keyframes jump { from { transform: translateY(0) scale(1, 1); } to { transform: translateY(-26px) scale(.96, 1.04); } }

/* ---------- Photos (polaroids) ---------- */
.ask-art, .yay-art { position: relative; display: grid; place-items: center; }
.stack { position: relative; width: min(58vw, 230px); aspect-ratio: 4 / 4.8; margin-bottom: 8px; }
.polaroid {
    position: absolute; inset: 0; background: #fff; padding: 9px 9px 0; border-radius: 4px;
    box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .35);
    display: flex; flex-direction: column;
    transition: transform .6s cubic-bezier(.3, 1.3, .5, 1);
}
.polaroid img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 2px; display: block; background: #f2e6ea; pointer-events: none; }
.polaroid figcaption { flex: 1; display: grid; place-items: center; font-family: "Caveat", cursive; font-size: 1.35rem; color: #5b3442; padding: 2px 4px; line-height: 1; }
.polaroid:nth-child(1) { transform: rotate(-7deg) translate(-8%, 2%); }
.polaroid:nth-child(2) { transform: rotate(6deg) translate(8%, -2%); }
.polaroid:nth-child(3) { transform: rotate(-1deg); }
.stack.single .polaroid { transform: rotate(-3deg); }
.stack .tape {
    position: absolute; z-index: 5; top: -12px; left: 50%; width: 80px; height: 24px; translate: -50% 0; rotate: -4deg;
    background: rgba(255, 236, 200, .75); box-shadow: 0 1px 3px rgba(0, 0, 0, .1);
}
.stack + .buddy, .stack ~ .buddy {
    position: absolute; width: 84px; right: -26px; bottom: -6px; z-index: 6;
}

/* ---------- Questions ---------- */
#s-q { justify-content: flex-start; padding-top: max(26px, env(safe-area-inset-top)); }
.progress { width: min(100%, 420px); height: 8px; border-radius: 8px; background: var(--card); border: 1px solid var(--line); overflow: hidden; margin: 6px 56px 0 0; align-self: flex-start; }
#s-q .progress { align-self: center; width: calc(min(100%, 420px) - 60px); margin: 18px 60px 0 0; }
.progress-fill { height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transition: width .6s cubic-bezier(.3, 1.2, .5, 1); }

.q-wrap { position: relative; width: 100%; max-width: 440px; flex: 1; }
.q {
    position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; gap: 10px;
    padding: 4vh 0 12px; overflow-y: auto; -webkit-overflow-scrolling: touch;
    animation: qIn .55s cubic-bezier(.2, .9, .3, 1) both;
}
.q.out { animation: qOut .35s ease both; pointer-events: none; }
@keyframes qIn { from { opacity: 0; transform: translateX(40px); } }
@keyframes qOut { to { opacity: 0; transform: translateX(-40px); } }
.q-emoji { font-size: 3.2rem; line-height: 1; animation: pop .6s cubic-bezier(.3, 1.8, .5, 1) both .1s; }
@keyframes pop { from { transform: scale(0) rotate(-20deg); } }
.q-step { font-size: .8rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0; }
.q-title { font-family: "Fraunces", Georgia, serif; font-style: italic; font-weight: 700; font-size: clamp(1.8rem, 8vw, 2.4rem); line-height: 1.08; margin: 0 0 10px; max-width: 16ch; text-wrap: balance; }
.q-sub { margin: -6px 0 8px; color: var(--muted); font-weight: 700; }

.opts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; width: 100%; }
.opt {
    position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
    min-height: 98px; padding: 14px 10px; border-radius: 22px;
    background: var(--card); border: 2px solid var(--line);
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    font-weight: 800; font-size: 1rem; line-height: 1.15;
    transition: transform .3s cubic-bezier(.3, 1.6, .5, 1), border-color .2s, background .2s, box-shadow .2s;
    animation: optIn .5s cubic-bezier(.2, .9, .3, 1.2) both;
}
.opt .e { font-size: 2rem; line-height: 1; transition: transform .3s cubic-bezier(.3, 1.8, .5, 1); }
.opt:active { transform: scale(.95); }
.opt.is-on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, var(--card-solid)); box-shadow: var(--shadow); transform: scale(1.03); }
.opt.is-on .e { transform: scale(1.2) rotate(-8deg); }
.opt.is-on::after {
    content: "✓"; position: absolute; top: 8px; right: 10px; width: 22px; height: 22px; border-radius: 50%;
    display: grid; place-items: center; font-size: .75rem; color: var(--accent-ink); background: var(--accent);
}
@keyframes optIn { from { opacity: 0; transform: translateY(16px) scale(.94); } }

.chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; width: 100%; }
.chip {
    padding: 12px 18px; border-radius: 999px; border: 2px solid var(--line); background: var(--card);
    font-weight: 800; min-height: 48px; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.1;
    transition: transform .25s cubic-bezier(.3, 1.6, .5, 1), border-color .2s, background .2s;
    animation: optIn .5s both;
}
.chip small { font-weight: 700; color: var(--muted); font-size: .75rem; }
.chip.is-on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 16%, var(--card-solid)); transform: scale(1.05); }
.group-label { margin: 14px 0 2px; font-weight: 800; font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

.field {
    width: 100%; border-radius: 20px; border: 2px solid var(--line); background: var(--card-solid); color: var(--ink);
    padding: 16px 18px; font: inherit; font-weight: 700; font-size: 16px; resize: none; user-select: text; -webkit-user-select: text;
}
.field:focus { outline: none; border-color: var(--accent); }
textarea.field { min-height: 130px; }
input[type="date"].field { min-height: 54px; text-align: center; margin-top: 4px; }
.q-actions { display: flex; flex-direction: column; align-items: center; gap: 4px; margin-top: 14px; }

/* ---------- Ticket ---------- */
.ticket {
    position: relative; width: min(100%, 360px); margin-top: 8px;
    background: var(--paper); color: #3b1d2a; border-radius: 22px; text-align: left;
    box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .45);
    animation: ticketIn 1s cubic-bezier(.2, 1.2, .3, 1) both .2s;
    overflow: hidden;
}
@keyframes ticketIn { from { opacity: 0; transform: translateY(60px) rotate(-6deg) scale(.9); } }
.ticket::before {
    content: ""; position: absolute; inset: 0 0 auto; height: 8px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
}
.ticket-top { display: flex; justify-content: space-between; align-items: center; padding: 22px 22px 0; }
.admit { font-weight: 800; letter-spacing: .24em; font-size: .78rem; color: var(--accent); }
.ticket-no { font-family: ui-monospace, monospace; font-size: .8rem; color: #9b7f89; }
.ticket-names { font-family: "Fraunces", Georgia, serif; font-style: italic; font-weight: 700; font-size: 1.9rem; padding: 8px 22px 10px; line-height: 1.1; }
.ticket-names i { color: var(--accent); font-style: normal; display: inline-block; animation: heartbeat 1.6s infinite; }
.ticket-list { list-style: none; margin: 0; padding: 4px 22px 18px; display: grid; gap: 12px; }
.ticket-list li { display: grid; grid-template-columns: 30px 1fr; gap: 10px; align-items: start; animation: optIn .5s both; }
.ticket-list .e { font-size: 1.35rem; line-height: 1.2; }
.ticket-list .k { display: block; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: #a3868f; font-weight: 800; }
.ticket-list .v { display: block; font-weight: 800; font-size: 1.05rem; line-height: 1.3; word-break: break-word; }
.ticket-tear { position: relative; height: 26px; }
.ticket-tear::before { content: ""; position: absolute; left: 22px; right: 22px; top: 50%; border-top: 2.5px dashed #e3cdd4; }
.ticket-tear::after {
    content: ""; position: absolute; inset: 0 -13px; height: 26px;
    background: radial-gradient(circle at 0 50%, var(--bg2) 12px, transparent 13px), radial-gradient(circle at 100% 50%, var(--bg2) 12px, transparent 13px);
}
.ticket-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 22px 22px; }
.barcode {
    width: 120px; height: 38px; opacity: .85;
    background: repeating-linear-gradient(90deg, #3b1d2a 0 2px, transparent 2px 4px, #3b1d2a 4px 5px, transparent 5px 8px, #3b1d2a 8px 11px, transparent 11px 12px);
}
.ticket-foot { font-size: 1.35rem; color: var(--accent); text-align: right; line-height: 1; }

.sent { display: flex; align-items: center; gap: 8px; margin: 10px 0 0; font-weight: 800; font-size: .95rem; color: var(--muted); }
.sent-dot { width: 9px; height: 9px; border-radius: 50%; background: #f5b400; animation: breathe 1s infinite; }
.sent.is-ok .sent-dot { background: #22c55e; animation: none; }
.sent.is-err .sent-dot { background: #ef4444; animation: none; }

/* ---------- Small / large screens ---------- */
@media (max-height: 640px) {
    .stack { width: min(44vw, 170px); }
    .buddy { width: min(36vw, 140px); }
    .opt { min-height: 82px; }
    .title { font-size: clamp(2rem, 9vw, 3rem); }
}
@media (min-width: 700px) {
    .opts { grid-template-columns: repeat(3, 1fr); }
    .q-wrap { max-width: 560px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
