/* Concept themes shared by /embed, /display and /c. Each theme only sets tokens and a decoration layer (.fx);
   embed.css and display.css lay the page out with those tokens. Fonts are self-hosted (SIL OFL), so an embed
   never calls a third party. */
@font-face { font-family: 'TS Script'; font-display: swap; src: url(/fonts/great-vibes-latin-400-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD }
@font-face { font-family: 'TS Script'; font-display: swap; src: url(/fonts/great-vibes-latin-ext-400-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF }
@font-face { font-family: 'TS Serif'; font-weight: 500; font-display: swap; src: url(/fonts/cormorant-garamond-latin-500-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD }
@font-face { font-family: 'TS Serif'; font-weight: 500; font-display: swap; src: url(/fonts/cormorant-garamond-latin-ext-500-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF }
@font-face { font-family: 'TS Round'; font-weight: 600; font-display: swap; src: url(/fonts/fredoka-latin-600-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD }
@font-face { font-family: 'TS Round'; font-weight: 600; font-display: swap; src: url(/fonts/fredoka-latin-ext-600-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF }

@font-face { font-family: 'TS Condensed'; font-weight: 600; font-display: swap; src: url(/fonts/barlow-condensed-latin-600-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD }
@font-face { font-family: 'TS Condensed'; font-weight: 600; font-display: swap; src: url(/fonts/barlow-condensed-latin-ext-600-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF }

:root {
  --font: 'Inter Variable', Inter, ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --title-font: var(--font);
  --num-font: var(--font);
  --num-weight: 650;
  --title-weight: 600;
  --ink: #fafafa;
  --muted: rgba(250, 250, 250, .72);
  --num: var(--ink);
  --tile-bg: transparent;
  --tile-border: transparent;
  --tile-shadow: none;
  --radius: 14px;
  --glow: none;
  --tracking: .12em;
  --card-bg: transparent;
  --card-border: none;
  --card-shadow: none;
  --badge-bg: rgba(255, 255, 255, .14);
  --badge-ink: var(--ink);
}

[data-theme='classic'] { --bg: var(--accent) }

/* 🚀 Launch: dark, neon violet and blue, a faint tech grid. */
[data-theme='launch'] {
  --bg: radial-gradient(90% 120% at 0% 0%, rgba(124, 58, 237, .6), transparent 60%),
        radial-gradient(90% 120% at 100% 100%, rgba(37, 99, 235, .55), transparent 60%), #07061a;
  --ink: #f5f3ff;
  --muted: rgba(221, 214, 254, .72);
  --num: #fff;
  --tile-bg: rgba(255, 255, 255, .05);
  --tile-border: rgba(167, 139, 250, .38);
  --tile-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 10px 32px -14px rgba(124, 58, 237, .8);
  --glow: 0 0 18px rgba(139, 92, 246, .8), 0 0 2px rgba(255, 255, 255, .7);
  --num-font: 'JetBrains Mono', 'SF Mono', ui-monospace, Menlo, Consolas, monospace;
  --num-weight: 600;
  --badge-bg: linear-gradient(90deg, #7c3aed, #2563eb);
  --badge-ink: #fff;
}

/* 🏗️ Construction: charcoal steel, a faint truss pattern, safety amber, condensed type, a hazard band. */
[data-theme='construction'] {
  --bg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='36'%3E%3Cpath d='M0 36L18 0L36 36L54 0L72 36M0 .75H72M0 35.25H72' fill='none' stroke='%23ffb703' stroke-opacity='.1' stroke-width='1.5'/%3E%3C/svg%3E") 0 0 / 72px 36px,
        linear-gradient(160deg, #2a2c30 0%, #17181a 100%);
  --ink: #f3f1ea;
  --muted: #b9b3a3;
  --num: #ffb703;
  --font: 'TS Condensed', 'Barlow Condensed', 'DIN Condensed', 'Arial Narrow', sans-serif;
  --title-font: var(--font);
  --num-font: var(--font);
  --num-weight: 600;
  --tracking: .22em;
  --tile-bg: #1d1f22;
  --tile-border: #3a3c40;
  --tile-shadow: inset 0 -4px 0 #ffb703, 0 14px 30px -18px rgba(0, 0, 0, .9);
  --radius: 3px;
  --badge-bg: #ffb703;
  --badge-ink: #17181a;
}
[data-theme='construction'] .title { text-transform: uppercase; letter-spacing: .05em }

/* ⚖️ Law: midnight navy, ivory serif, fine pinstripes and gold rules. */
[data-theme='law'] {
  --bg: repeating-linear-gradient(90deg, rgba(214, 190, 140, .05) 0 1px, transparent 1px 12px),
        radial-gradient(90% 80% at 50% 0%, #1c2b46 0%, #0b1424 100%);
  --ink: #f1ead9;
  --muted: #b9a77d;
  --num: #f1ead9;
  --font: 'TS Serif', 'Cormorant Garamond', Garamond, Georgia, serif;
  --title-font: var(--font);
  --num-font: var(--font);
  --num-weight: 500;
  --title-weight: 500;
  --tracking: .32em;
  --badge-bg: transparent;
  --badge-ink: #c8ad6e;
}
[data-theme='law'] .title { font-variant: small-caps; letter-spacing: .06em }
[data-theme='law'] .unit + .unit { border-left: 1px solid rgba(200, 173, 110, .35); border-radius: 0 }

/* 📐 Engineering: blueprint blue with a drafting grid, dashed frames and corner marks. */
[data-theme='engineering'] {
  --bg: linear-gradient(rgba(255, 255, 255, .15) 1px, transparent 1px) 0 0 / 60px 60px,
        linear-gradient(90deg, rgba(255, 255, 255, .15) 1px, transparent 1px) 0 0 / 60px 60px,
        linear-gradient(rgba(255, 255, 255, .055) 1px, transparent 1px) 0 0 / 12px 12px,
        linear-gradient(90deg, rgba(255, 255, 255, .055) 1px, transparent 1px) 0 0 / 12px 12px,
        radial-gradient(90% 90% at 50% 40%, #1560a8 0%, #0c4580 100%);
  --ink: #eaf3ff;
  --muted: #a9c8ec;
  --num: #fff;
  --num-font: 'JetBrains Mono', 'SF Mono', ui-monospace, Menlo, Consolas, monospace;
  --num-weight: 500;
  --tracking: .2em;
  --tile-bg: rgba(9, 52, 99, .6);
  --tile-border: rgba(234, 243, 255, .6);
  --radius: 0;
  --badge-bg: transparent;
  --badge-ink: #a9c8ec;
}
[data-theme='engineering'] .unit { border-style: dashed }
[data-theme='engineering'] .label, [data-theme='engineering'] .badge, [data-theme='engineering'] .target { font-family: var(--num-font) }

/* 🤝 Consulting: calm off-white, teal accents, a dot grid and soft concentric rings. */
[data-theme='consulting'] {
  --bg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20'%3E%3Ccircle cx='2' cy='2' r='1.1' fill='%230f766e' fill-opacity='.2'/%3E%3C/svg%3E") 0 0 / 20px 20px,
        linear-gradient(180deg, #f9fbfa 0%, #edf3f1 100%);
  --ink: #0f2f2b;
  --muted: #5f7a75;
  --num: #0f2f2b;
  --num-weight: 600;
  --tile-bg: #fff;
  --tile-border: #d7e3df;
  --tile-shadow: 0 1px 0 #d7e3df, 0 14px 30px -22px rgba(15, 47, 43, .5);
  --radius: 12px;
  --badge-bg: #0f766e;
  --badge-ink: #fff;
}
[data-theme='consulting'] .unit { border-top: 3px solid #0f766e }

/* 📈 Finance: deep green-black, a rising chart, ledger lines, emerald and gold. */
[data-theme='finance'] {
  --bg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 120' preserveAspectRatio='none'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%2310b981' stop-opacity='.26'/%3E%3Cstop offset='1' stop-color='%2310b981' stop-opacity='0'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M0 104L40 94L80 98L120 76L160 82L200 60L240 66L280 42L320 48L360 24L400 12V120H0Z' fill='url(%23g)'/%3E%3Cpath d='M0 104L40 94L80 98L120 76L160 82L200 60L240 66L280 42L320 48L360 24L400 12' fill='none' stroke='%2334d399' stroke-opacity='.6' stroke-width='1.5' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E") left bottom / 100% 60% no-repeat,
        linear-gradient(rgba(52, 211, 153, .07) 1px, transparent 1px) 0 0 / 100% 28px,
        radial-gradient(80% 70% at 15% 0%, #0f3b2c 0%, transparent 70%), #06110d;
  --ink: #ecfdf5;
  --muted: #86c7aa;
  --num: #ecfdf5;
  --num-weight: 600;
  --tile-bg: rgba(6, 17, 13, .65);
  --tile-border: rgba(52, 211, 153, .35);
  --tile-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), 0 12px 30px -18px rgba(16, 185, 129, .6);
  --radius: 10px;
  --badge-bg: rgba(52, 211, 153, .14);
  --badge-ink: #34d399;
}
[data-theme='finance'] .label { color: #34d399 }

/* 🎂 Birthday: blush pink, rose-gold confetti, a white card in a pink frame. */
[data-theme='birthday'] {
  --bg: radial-gradient(80% 70% at 85% 10%, #ffffff 0%, transparent 60%), linear-gradient(135deg, #fbd9df 0%, #f9e4e1 50%, #f6cfd6 100%);
  --ink: #b5485e;
  --muted: #c98393;
  --num: #e0707f;
  --num-fill: linear-gradient(180deg, #f7a8a8 0%, #e0707f 50%, #c7586c 100%);
  --font: 'TS Round', ui-rounded, 'SF Pro Rounded', Nunito, system-ui, sans-serif;
  --title-font: var(--font);
  --num-font: var(--font);
  --num-weight: 600;
  --tracking: .22em;
  --card-bg: rgba(255, 255, 255, .92);
  --card-border: 2px solid #f4b9c3;
  --card-shadow: 0 0 0 8px rgba(255, 255, 255, .5), 0 18px 40px -22px rgba(181, 72, 94, .55);
  --badge-bg: transparent;
  --badge-ink: #e0707f;
}

/* 👶 Welcome baby: cream paper, soft watercolour clouds, little gold stars, powder pink and baby blue. */
[data-theme='baby'] {
  --bg: radial-gradient(60% 50% at 10% 90%, rgba(196, 222, 245, .55), transparent 70%),
        radial-gradient(55% 45% at 92% 12%, rgba(248, 214, 226, .6), transparent 70%), #fbf8f1;
  --ink: #6f665b;
  --muted: #a3988a;
  --num: #7f9cc0;
  --font: 'TS Round', ui-rounded, 'SF Pro Rounded', Nunito, system-ui, sans-serif;
  --title-font: var(--font);
  --num-font: var(--font);
  --num-weight: 600;
  --title-weight: 600;
  --tracking: .24em;
  --tile-bg: rgba(255, 255, 255, .7);
  --tile-border: rgba(232, 222, 205, .9);
  --tile-shadow: 0 10px 26px -18px rgba(111, 102, 91, .55);
  --radius: 999px;
  --badge-bg: transparent;
  --badge-ink: #c9a35a;
}

/* 💍 Wedding: deep navy, gold dust, a gold double frame, script title and serif numerals. */
[data-theme='wedding'] {
  --bg: radial-gradient(90% 80% at 50% 50%, #2a2f3c 0%, #1b1e27 100%);
  --ink: #efe6d2;
  --muted: #c4ab73;
  --num: #d9b766;
  --num-fill: linear-gradient(180deg, #f3dc9b 0%, #d4ad55 45%, #a07a2c 100%);
  --font: 'TS Serif', 'Cormorant Garamond', Didot, 'Bodoni 72', Georgia, serif;
  --title-font: 'TS Script', 'Snell Roundhand', 'Apple Chancery', cursive;
  --title-weight: 400;
  --num-font: 'TS Serif', 'Cormorant Garamond', Didot, Georgia, serif;
  --num-weight: 500;
  --tracking: .3em;
  --card-bg: rgba(30, 34, 44, .82);
  --card-border: 1.5px solid #c9a24e;
  --card-shadow: 0 0 0 5px rgba(30, 34, 44, .82), 0 0 0 6px rgba(201, 162, 78, .55), 0 24px 50px -20px rgba(0, 0, 0, .8);
  --badge-bg: transparent;
  --badge-ink: #c9a24e;
}

/* 🎆 New year: midnight violet, gold sparkles, serif numerals in gold. */
[data-theme='newyear'] {
  --bg: radial-gradient(70% 60% at 50% 0%, #33246b 0%, transparent 70%), linear-gradient(180deg, #0b1026 0%, #140c30 100%);
  --ink: #f4ecff;
  --muted: #c9b8e8;
  --num: #f3d48a;
  --num-fill: linear-gradient(180deg, #fff1c1 0%, #e2b95a 50%, #b07f26 100%);
  --font: 'TS Serif', 'Cormorant Garamond', Georgia, serif;
  --title-font: var(--font);
  --num-font: var(--font);
  --num-weight: 500;
  --title-weight: 500;
  --tracking: .3em;
  --badge-bg: transparent;
  --badge-ink: #e2b95a;
}

/* 🔥 Flash sale: near-black, alarm red, signal-yellow digits, a moving hazard stripe. */
[data-theme='sale'] {
  --bg: radial-gradient(100% 140% at 100% 0%, rgba(255, 59, 48, .5), transparent 55%), #140b0b;
  --ink: #fff;
  --muted: rgba(255, 255, 255, .72);
  --num: #ffd60a;
  --tile-bg: #1f1212;
  --tile-border: rgba(255, 59, 48, .6);
  --tile-shadow: inset 0 0 0 1px rgba(255, 59, 48, .15), 0 10px 30px -14px rgba(255, 59, 48, .9);
  --radius: 10px;
  --num-weight: 800;
  --glow: 0 0 14px rgba(255, 214, 10, .45);
  --badge-bg: #ff3b30;
  --badge-ink: #fff;
}

/* ⚡ Minimal: no background at all, so it sits on any site. */
[data-theme='minimal'] {
  --bg: transparent;
  --ink: #111113;
  --muted: rgba(17, 17, 19, .58);
  --num: var(--ink);
  --num-weight: 600;
}
[data-theme='minimal'][data-ink='light'] { --ink: #fafafa; --muted: rgba(250, 250, 250, .7) }

/* Metallic numerals and titles. */
[data-theme='wedding'] .num, [data-theme='birthday'] .num, [data-theme='newyear'] .num, [data-theme='wedding'] .title {
  background: var(--num-fill); -webkit-background-clip: text; background-clip: text; color: transparent;
}
/* Emoji icons keep their own colours inside metallic titles. */
.title .icon { -webkit-text-fill-color: initial; color: initial; background: none }
[data-theme='wedding'] .title { line-height: 1.15; padding: 0 .1em; letter-spacing: 0 }
[data-theme='birthday'] .title, [data-theme='baby'] .title { letter-spacing: .02em }
[data-theme='baby'] .label, [data-theme='birthday'] .label, [data-theme='wedding'] .label { font-weight: 500 }

/* Decoration layer behind the content. */
.fx { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 0 }
.fx i { position: absolute; display: block }

[data-theme='launch'] .fx {
  background-image: linear-gradient(rgba(167, 139, 250, .1) 1px, transparent 1px), linear-gradient(90deg, rgba(167, 139, 250, .1) 1px, transparent 1px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse at center, #000 20%, transparent 75%);
}

/* Confetti pieces are spans the runtime scatters; shape and colour come from inline variables. */
[data-theme='birthday'] .fx i {
  top: -8%; width: var(--w, 8px); height: var(--h, 12px); border-radius: var(--r, 2px); background: var(--c, #f4b9c3);
  opacity: .9; animation: confetti var(--d, 12s) linear var(--delay, 0s) infinite;
}
@keyframes confetti {
  from { transform: translate3d(0, 0, 0) rotate(0) }
  to { transform: translate3d(var(--sway, 20px), 120vh, 0) rotate(var(--spin, 540deg)) }
}

/* Gold dust: static specks, denser towards the edges. */
[data-theme='wedding'] .fx i { width: var(--s, 2px); height: var(--s, 2px); border-radius: 50%; background: #d8b867; opacity: var(--o, .6) }

/* Baby clouds and stars. */
[data-theme='baby'] .fx .cloud {
  width: var(--w, 140px); height: calc(var(--w, 140px) * .42); border-radius: 999px; opacity: .95;
  background: radial-gradient(circle at 30% 35%, #fff 0 40%, transparent 41%) 0 0 / 100% 100%,
              radial-gradient(circle at 62% 30%, #fff 0 46%, transparent 47%) 0 0 / 100% 100%, #fff;
  box-shadow: inset 0 -8px 14px rgba(214, 196, 170, .45), 0 10px 22px -12px rgba(160, 140, 110, .45);
  animation: cloud var(--d, 26s) ease-in-out var(--delay, 0s) infinite alternate;
}
[data-theme='baby'] .fx .cloud::before {
  content: ''; position: absolute; left: 22%; bottom: 30%; width: 34%; height: 95%; border-radius: 50%; background: inherit; box-shadow: inherit;
}
[data-theme='baby'] .fx .cloud::after {
  content: ''; position: absolute; left: 48%; bottom: 22%; width: 30%; height: 80%; border-radius: 50%; background: #fff;
}
[data-theme='baby'] .fx .star { color: #d7b56d; font-size: var(--s, 10px); line-height: 1; opacity: .85; animation: twinkle 3.5s ease-in-out var(--delay, 0s) infinite }
@keyframes cloud { to { transform: translate3d(var(--dx, 18px), -6px, 0) } }
@keyframes twinkle { 50% { opacity: .3; transform: scale(.8) } }

/* New-year sparkles. */
[data-theme='newyear'] .fx i {
  width: var(--s, 3px); height: var(--s, 3px); border-radius: 50%; background: #f3d48a; box-shadow: 0 0 6px 1px rgba(243, 212, 138, .8);
  opacity: var(--o, .8); animation: twinkle var(--d, 3s) ease-in-out var(--delay, 0s) infinite;
}
[data-theme='newyear'] .fx .star { width: auto; height: auto; background: none; box-shadow: none; color: #f3d48a; font-size: var(--s, 12px); line-height: 1 }

/* Construction hazard band along the bottom. */
[data-theme='construction'] .fx::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 8px;
  background: repeating-linear-gradient(-45deg, #ffb703 0 12px, #17181a 12px 24px);
}

/* Law: double gold rules top and bottom. */
[data-theme='law'] .fx::before, [data-theme='law'] .fx::after {
  content: ''; position: absolute; left: 5%; right: 5%; height: 4px;
  border-top: 1px solid rgba(200, 173, 110, .6); border-bottom: 1px solid rgba(200, 173, 110, .3);
}
[data-theme='law'] .fx::before { top: 12px }
[data-theme='law'] .fx::after { bottom: 12px }

/* Engineering: drafting corner marks. */
[data-theme='engineering'] .fx::before, [data-theme='engineering'] .fx::after {
  content: ''; position: absolute; width: 22px; height: 22px; border: 2px solid rgba(234, 243, 255, .75);
}
[data-theme='engineering'] .fx::before { top: 10px; left: 10px; border-right: 0; border-bottom: 0 }
[data-theme='engineering'] .fx::after { bottom: 10px; right: 10px; border-left: 0; border-top: 0 }

/* Consulting: soft concentric rings in two corners. */
[data-theme='consulting'] .fx::before, [data-theme='consulting'] .fx::after { content: ''; position: absolute; border-radius: 50% }
[data-theme='consulting'] .fx::before {
  width: 70vmin; height: 70vmin; right: -28vmin; top: -34vmin; border: 1px solid rgba(15, 118, 110, .2);
  box-shadow: 0 0 0 7vmin rgba(15, 118, 110, .035), 0 0 0 14vmin rgba(15, 118, 110, .025);
}
[data-theme='consulting'] .fx::after { width: 36vmin; height: 36vmin; left: -14vmin; bottom: -18vmin; background: rgba(15, 118, 110, .07) }

[data-theme='sale'] .fx::before {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 6px;
  background: repeating-linear-gradient(-45deg, #ffd60a 0 10px, #111 10px 20px); background-size: 28.28px 6px;
  animation: stripes 1.2s linear infinite;
}
@keyframes stripes { to { background-position: 28.28px 0 } }
[data-theme='sale'] .urgent .num { animation: pulse 1s ease-in-out infinite }
@keyframes pulse { 50% { opacity: .55 } }

.badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px;
  background: var(--badge-bg); color: var(--badge-ink); font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
}
.badge:empty { display: none }
[data-theme='sale'] .badge { animation: pulse 1.6s ease-in-out infinite }
[data-theme='wedding'] .badge, [data-theme='baby'] .badge, [data-theme='birthday'] .badge { font-weight: 500; letter-spacing: .35em; padding: 0 }

@media (prefers-reduced-motion: reduce) {
  .fx i, .fx::before, .fx::after, .badge, .urgent .num { animation: none !important }
}

/* ---------- Theme details and the finish screen (embed card and full-screen page) ---------- */
.intro { margin: 0; color: var(--num); font-family: var(--title-font); line-height: 1.15; text-wrap: balance }
.intro.company { font-family: var(--font); font-weight: 700; letter-spacing: var(--tracking); text-transform: uppercase; color: var(--muted) }
[data-theme='wedding'] .intro.names { font-style: italic; font-weight: 400 }
.portrait { display: block; aspect-ratio: 1; object-fit: cover; border-radius: 50%; border: 3px solid var(--num); box-shadow: var(--tile-shadow) }
.contact { display: flex; flex-wrap: wrap; justify-content: center; gap: .4em .9em; color: var(--muted) }
.contact a { color: inherit; text-decoration: none; border-bottom: 1px solid transparent }
.contact a:hover { border-bottom-color: currentColor }
[data-finished] .contact a {
  color: var(--badge-ink); background: var(--badge-bg); border: 0; border-radius: 999px; padding: .45em 1em; font-weight: 600;
}
.finish { position: relative; display: flex; flex-direction: column; align-items: center; gap: .4em; max-width: 100% }
.finish[hidden] { display: none }
.finish-title { max-width: 18ch; font-family: var(--title-font); font-weight: var(--title-weight); color: var(--num); text-shadow: var(--glow); line-height: 1.12; text-wrap: balance; animation: finish-in .9s cubic-bezier(.2, .8, .2, 1) both }
.finish-body { max-width: 40ch; color: var(--muted); text-wrap: pretty; animation: finish-in .9s .25s cubic-bezier(.2, .8, .2, 1) both }
[data-theme='wedding'] .finish-body { color: var(--num); font-family: var(--title-font); font-style: italic }
[data-finished] .target, [data-finished] #target { display: none }
@keyframes finish-in { from { opacity: 0; transform: translateY(12px) scale(.96) } }
/* Welcome baby: a slow float and a soft glow. */
[data-theme='baby'] .finish-title { animation: finish-in .9s both, float 3.6s 1s ease-in-out infinite }
[data-theme='baby'][data-finished] .portrait { animation: glow 2.8s ease-in-out infinite }
@keyframes float { 50% { transform: translateY(-6px) } }
@keyframes glow { 50% { box-shadow: 0 0 0 10px color-mix(in srgb, var(--num) 25%, transparent) } }
/* Confetti for weddings, birthdays, new year and launches. */
.confetti { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 3 }
.confetti i {
  position: absolute; top: -12px; left: var(--x); width: 8px; height: 14px; border-radius: 2px;
  background: hsl(var(--h) 85% 62%); transform: rotate(var(--r));
  animation: confetti 3.4s var(--d) cubic-bezier(.3, .6, .5, 1) infinite;
}
[data-theme='wedding'] .confetti i { background: hsl(42 70% calc(55% + var(--h) * .06%)); border-radius: 50% }
@keyframes confetti { to { transform: translate3d(calc((var(--h) - 180) * .25px), 110vh, 0) rotate(calc(var(--r) + 540deg)) } }
@media (prefers-reduced-motion: reduce) { .confetti { display: none } .finish-title, .finish-body, .portrait { animation: none !important } }
