/* ==========================================================================
   Template: Şenlik (confetti-party)
   A joyful celebration card: bunting, confetti bursts, balloons and bold
   Memphis-lite shapes. Sticker-like cards with ink outlines and hard offset
   shadows, chunky rounded buttons and a tilted scalloped date badge.
   Intro: a gift box — wrapping-paper doors with a ribbon cross and a bow
   that splits in two as the doors swing open.
   ========================================================================== */

.tpl-confetti-party {
  --cp-bow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 130'%3E%3Cpath d='M100 50C72 6 14 0 18 40C22 74 74 66 100 50ZM100 50C128 6 186 0 182 40C178 74 126 66 100 50Z'/%3E%3Cpath d='M93 54L62 122L78 114L86 128L106 58ZM107 54L138 122L122 114L114 128L94 58Z'/%3E%3Crect x='86' y='36' width='28' height='30' rx='10'/%3E%3C/svg%3E");
  --cp-fold: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 130'%3E%3Cpath d='M100 50C80 30 50 24 38 32C52 38 78 46 100 50ZM100 50C120 30 150 24 162 32C148 38 122 46 100 50Z'/%3E%3Cpath d='M100 50C84 58 56 66 30 58C50 72 80 62 100 50ZM100 50C116 58 144 66 170 58C150 72 120 62 100 50Z'/%3E%3Crect x='93' y='40' width='14' height='22' rx='5'/%3E%3C/svg%3E");
  --cp-badge: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Ccircle cx='50' cy='50' r='42'/%3E%3Ccircle cx='92' cy='50' r='7.6'/%3E%3Ccircle cx='89.5' cy='64.4' r='7.6'/%3E%3Ccircle cx='82.2' cy='77' r='7.6'/%3E%3Ccircle cx='71' cy='86.4' r='7.6'/%3E%3Ccircle cx='57.3' cy='91.4' r='7.6'/%3E%3Ccircle cx='42.7' cy='91.4' r='7.6'/%3E%3Ccircle cx='29' cy='86.4' r='7.6'/%3E%3Ccircle cx='17.8' cy='77' r='7.6'/%3E%3Ccircle cx='10.5' cy='64.4' r='7.6'/%3E%3Ccircle cx='8' cy='50' r='7.6'/%3E%3Ccircle cx='10.5' cy='35.6' r='7.6'/%3E%3Ccircle cx='17.8' cy='23' r='7.6'/%3E%3Ccircle cx='29' cy='13.6' r='7.6'/%3E%3Ccircle cx='42.7' cy='8.6' r='7.6'/%3E%3Ccircle cx='57.3' cy='8.6' r='7.6'/%3E%3Ccircle cx='71' cy='13.6' r='7.6'/%3E%3Ccircle cx='82.2' cy='23' r='7.6'/%3E%3Ccircle cx='89.5' cy='35.6' r='7.6'/%3E%3C/svg%3E");
  --cp-squig: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 12'%3E%3Cpath d='M0 6q5 -6 10 0t10 0t10 0t10 0' fill='none' stroke='black' stroke-width='3.2' stroke-linecap='round'/%3E%3C/svg%3E");
  --cp-tile: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240' viewBox='0 0 240 240'%3E%3Crect x='193.5' y='59' width='5' height='12' rx='1.5' transform='rotate(16 196 65)'/%3E%3Ccircle cx='169' cy='37' r='3.6'/%3E%3Cpath d='M189 103q2 -4.5 4 0t4 0t4 0t4 0' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' transform='rotate(78 197 103)'/%3E%3Ccircle cx='208' cy='196' r='3.6'/%3E%3Cpath d='M136 202q2 -4.5 4 0t4 0t4 0t4 0' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' transform='rotate(54 144 202)'/%3E%3Cpath d='M179 219L184 228L174 228Z' transform='rotate(51 179 224)'/%3E%3Cpath d='M17 200q2 -4.5 4 0t4 0t4 0t4 0' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' transform='rotate(120 25 200)'/%3E%3Cpath d='M101 201L106 210L96 210Z' transform='rotate(16 101 206)'/%3E%3Crect x='97.5' y='136' width='5' height='12' rx='1.5' transform='rotate(161 100 142)'/%3E%3Cpath d='M100 14L105 23L95 23Z' transform='rotate(108 100 19)'/%3E%3Crect x='34.5' y='27' width='5' height='12' rx='1.5' transform='rotate(104 37 33)'/%3E%3Ccircle cx='33' cy='100' r='3.6'/%3E%3C/svg%3E");
  --ink: var(--c-text);
  --bw: 2px;
  --wrap: var(--c-primary);
  --ribbon: var(--c-accent);
  --radius: 22px;
  --radius-sm: 14px;
  --btn-radius: 999px;
  --shadow: 0 22px 44px -30px color-mix(in srgb, var(--c-text) 50%, transparent);
  --hard: 5px 6px 0 var(--ink);
  --names-size: clamp(4.2rem, 23vw, 9rem);
  --title-size: clamp(2.1rem, 7.6vw, 3.1rem);
  --eyebrow-spacing: .14em;
  --content-width: 40rem;
  --intro-bg: var(--c-bg);
  --door-bg: var(--wrap);
  --intro-duration: 1.2s;
  font-size: clamp(1.03rem, 2.6vw, 1.12rem);
}
/* Dark party: neon ribbon on deep wrap, softer ink outlines */
.tpl-confetti-party.palette-gece { --wrap: var(--c-surface); --ribbon: var(--c-primary); --ink: color-mix(in srgb, var(--c-text) 82%, var(--c-bg)); --shadow: 0 24px 50px -28px rgba(0, 0, 0, .8); }
.tpl-confetti-party.palette-pastel { --wrap: var(--c-pop1); --ribbon: var(--c-primary); }
.tpl-confetti-party ::selection { background: var(--c-accent); color: var(--c-on-pop); }
.tpl-confetti-party :focus-visible { outline-color: var(--c-primary); }

/* ---- Ornament colours (inline SVG classes) ------------------------------- */
.tpl-confetti-party .cp-c1, .tpl-confetti-party .cp-b1 { fill: var(--c-primary); }
.tpl-confetti-party .cp-c2, .tpl-confetti-party .cp-b2 { fill: var(--c-accent); }
.tpl-confetti-party .cp-c3, .tpl-confetti-party .cp-b3 { fill: var(--c-pop1); }
.tpl-confetti-party .cp-c4 { fill: var(--c-pop2); }
.tpl-confetti-party .cp-s1, .tpl-confetti-party .cp-r1 { stroke: var(--c-primary); }
.tpl-confetti-party .cp-s2, .tpl-confetti-party .cp-r2 { stroke: var(--c-accent); }
.tpl-confetti-party .cp-s3, .tpl-confetti-party .cp-r3 { stroke: var(--c-pop1); }
.tpl-confetti-party .cp-s4, .tpl-confetti-party .cp-r4 { stroke: var(--c-pop2); }
.tpl-confetti-party .cp-burst [class^="cp-s"], .tpl-confetti-party .cp-burst [class^="cp-r"] { stroke-width: 2.6; }
.tpl-confetti-party .cp-string { stroke: color-mix(in srgb, var(--ink) 55%, transparent); stroke-width: 1.6; }
.tpl-confetti-party .cp-bunting .cp-string { stroke-width: 2; }
.tpl-confetti-party .cp-hl { fill: #fff; opacity: .38; }
.tpl-confetti-party .cp-stripe { stroke: color-mix(in srgb, #fff 80%, transparent); }

/* ---- Backgrounds --------------------------------------------------------- */
.tpl-confetti-party.bg-konfeti::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .4;
  background: conic-gradient(var(--c-primary) 0 25%, var(--c-pop1) 0 50%, var(--c-accent) 0 75%, var(--c-pop2) 0) 0 0 / 240px 240px;
  -webkit-mask: var(--cp-tile) 0 0 / 240px 240px repeat;
  mask: var(--cp-tile) 0 0 / 240px 240px repeat;
}
.tpl-confetti-party.palette-gece.bg-konfeti::before { opacity: .42; }
.tpl-confetti-party.bg-puantiye {
  background-image:
    radial-gradient(circle, color-mix(in srgb, var(--c-primary) 18%, transparent) 3px, transparent 3.5px),
    radial-gradient(circle, color-mix(in srgb, var(--c-pop1) 30%, transparent) 3px, transparent 3.5px);
  background-size: 34px 34px;
  background-position: 0 0, 17px 17px;
}
.tpl-confetti-party.bg-sade {
  background-image:
    radial-gradient(ellipse 60% 40% at 0% 0%, color-mix(in srgb, var(--c-pop1) 14%, transparent), transparent 70%),
    radial-gradient(ellipse 60% 40% at 100% 100%, color-mix(in srgb, var(--c-primary) 10%, transparent), transparent 70%);
  background-attachment: fixed;
}

/* ---- Intro: gift box ------------------------------------------------------ */
.tpl-confetti-party .inv-intro {
  --rib-y: max(11%, calc(50% - 17.5rem));
  --rib-w: 46px;
  --bow-w: clamp(176px, 46vw, 260px);
  background: var(--c-bg);
}
.tpl-confetti-party .inv-intro__door {
  background-color: var(--wrap);
  background-image: radial-gradient(circle, color-mix(in srgb, #fff 14%, transparent) 2px, transparent 2.6px);
  background-size: 26px 26px;
  box-shadow: none;
}
.tpl-confetti-party .inv-intro__door--right { background-position: 13px 13px; }
.tpl-confetti-party .cp-w1 { fill: color-mix(in srgb, var(--wrap) 55%, #fff); }
.tpl-confetti-party .cp-w2 { fill: var(--ribbon); }
.tpl-confetti-party .cp-w3 { fill: color-mix(in srgb, var(--wrap) 70%, #000); }
.tpl-confetti-party .cp-ws1, .tpl-confetti-party .cp-wr1 { stroke: color-mix(in srgb, var(--wrap) 55%, #fff); stroke-width: 2.4; }
.tpl-confetti-party .cp-ws2, .tpl-confetti-party .cp-wr2 { stroke: var(--ribbon); stroke-width: 2.4; }
.tpl-confetti-party .cp-ws3, .tpl-confetti-party .cp-wr3 { stroke: color-mix(in srgb, var(--wrap) 70%, #000); stroke-width: 2.4; }
.tpl-confetti-party.palette-gece .cp-w1 { fill: var(--c-pop1); }
.tpl-confetti-party.palette-gece .cp-ws1, .tpl-confetti-party.palette-gece .cp-wr1 { stroke: var(--c-pop1); }
.tpl-confetti-party.palette-gece .cp-w3 { fill: var(--c-accent); }
.tpl-confetti-party.palette-gece .cp-ws3, .tpl-confetti-party.palette-gece .cp-wr3 { stroke: var(--c-accent); }
.tpl-confetti-party .inv-intro__door-face .orn { opacity: .9; }
/* Ribbon cross: vertical half-band on each door's inner edge + a horizontal band. */
.tpl-confetti-party .inv-intro__door::before,
.tpl-confetti-party .inv-intro__door::after { content: ""; position: absolute; pointer-events: none; }
.tpl-confetti-party .inv-intro__door::before { top: 0; bottom: 0; width: calc(var(--rib-w) / 2); z-index: 2; }
.tpl-confetti-party .inv-intro__door--left::before { right: 0; background: linear-gradient(90deg, color-mix(in srgb, var(--ribbon) 72%, #000) 0 2px, var(--ribbon) 2px 6px, color-mix(in srgb, var(--ribbon) 55%, #fff) 6px 8px, var(--ribbon) 8px calc(100% - 3px), color-mix(in srgb, var(--ribbon) 85%, #000) calc(100% - 3px)); }
.tpl-confetti-party .inv-intro__door--right::before { left: 0; background: linear-gradient(270deg, color-mix(in srgb, var(--ribbon) 72%, #000) 0 2px, var(--ribbon) 2px 6px, color-mix(in srgb, var(--ribbon) 55%, #fff) 6px 8px, var(--ribbon) 8px calc(100% - 3px), color-mix(in srgb, var(--ribbon) 85%, #000) calc(100% - 3px)); }
.tpl-confetti-party .inv-intro__door::after {
  left: 0; right: 0; top: var(--rib-y); height: var(--rib-w); margin-top: calc(var(--rib-w) / -2); z-index: 1;
  background: linear-gradient(180deg, color-mix(in srgb, var(--ribbon) 72%, #000) 0 2px, var(--ribbon) 2px 6px, color-mix(in srgb, var(--ribbon) 55%, #fff) 6px 8px, var(--ribbon) 8px calc(100% - 8px), color-mix(in srgb, var(--ribbon) 55%, #fff) calc(100% - 8px) calc(100% - 6px), var(--ribbon) calc(100% - 6px) calc(100% - 2px), color-mix(in srgb, var(--ribbon) 72%, #000) calc(100% - 2px));
}
/* Bow: one full bow centred on the seam; each door's face clips its own half. */
.tpl-confetti-party .inv-intro__door-face::before,
.tpl-confetti-party .inv-intro__door-face::after {
  content: ""; position: absolute; width: var(--bow-w); aspect-ratio: 200 / 130;
  top: calc(var(--rib-y) - var(--bow-w) * .25);
  -webkit-mask-size: 100% 100%; mask-size: 100% 100%; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
}
.tpl-confetti-party .inv-intro__door-face::after { z-index: 3; background: var(--ribbon); -webkit-mask-image: var(--cp-bow); mask-image: var(--cp-bow); }
.tpl-confetti-party .inv-intro__door-face::before { z-index: 4; background: color-mix(in srgb, var(--ribbon) 70%, #000); opacity: .4; -webkit-mask-image: var(--cp-fold); mask-image: var(--cp-fold); }
.tpl-confetti-party .inv-intro__door--left .inv-intro__door-face::before,
.tpl-confetti-party .inv-intro__door--left .inv-intro__door-face::after { right: calc(var(--bow-w) / -2); }
.tpl-confetti-party .inv-intro__door--right .inv-intro__door-face::before,
.tpl-confetti-party .inv-intro__door--right .inv-intro__door-face::after { left: calc(var(--bow-w) / -2); }

/* Gift tag card */
.tpl-confetti-party .inv-intro__content {
  margin-top: 4rem;
  width: min(100% - 2.6rem, 23rem);
  padding: 3.7rem 1.5rem 1.9rem;
  gap: .6rem;
  background: var(--c-surface);
  border: 2.5px solid var(--ink);
  border-radius: 28px;
  box-shadow: 7px 8px 0 var(--ink);
  transform: rotate(-1.5deg);
}
.tpl-confetti-party .inv-intro__seal {
  position: absolute; top: -3.3rem; left: 50%; margin-left: -3.3rem;
  width: 6.6rem; height: 6.6rem;
  background: radial-gradient(circle, var(--c-accent) 0 52%, color-mix(in srgb, var(--c-on-pop) 70%, transparent) 52.5% 54%, var(--c-accent) 54.5%);
  -webkit-mask: var(--cp-badge) center / 100% 100% no-repeat; mask: var(--cp-badge) center / 100% 100% no-repeat;
  color: var(--c-on-pop); box-shadow: none;
  font-family: var(--f-display); font-weight: 700; font-size: 1.75rem; letter-spacing: 0;
  transform: rotate(-12deg);
}
.tpl-confetti-party .inv-intro__eyebrow { font-family: var(--f-display); font-weight: 600; color: var(--c-primary); letter-spacing: .16em; font-size: .76rem; }
.tpl-confetti-party .inv-intro__title { font-family: var(--f-display); font-weight: 700; color: var(--c-primary); line-height: 1; font-size: clamp(2.6rem, 12vw, 3.6rem); text-shadow: .05em .05em 0 var(--c-accent); overflow-wrap: anywhere; }
.tpl-confetti-party .inv-intro__guest { font-weight: 700; }
.tpl-confetti-party .inv-intro__date { color: var(--c-text); font-weight: 700; letter-spacing: .03em; padding: .3rem 1rem; border-radius: 999px; background: color-mix(in srgb, var(--c-pop1) 32%, var(--c-surface)); }
.tpl-confetti-party .inv-intro__open {
  margin-top: .9rem; padding: .95rem 2rem;
  border: 2.5px solid var(--ink); border-radius: 999px;
  background: var(--c-primary); color: var(--c-on-primary);
  font-family: var(--f-display); font-weight: 600; font-size: 1rem; letter-spacing: .1em;
  box-shadow: 0 5px 0 var(--ink);
  animation: cp-wiggle 3s ease-in-out 1.4s 3;
}
.tpl-confetti-party .inv-intro__open:hover { transform: translateY(-2px); box-shadow: 0 7px 0 var(--ink); }
.tpl-confetti-party .inv-intro__open:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--ink); }
@keyframes cp-wiggle { 0%, 80%, 100% { rotate: 0deg; } 84% { rotate: -4deg; } 88% { rotate: 4deg; } 92% { rotate: -2deg; } 96% { rotate: 1deg; } }

/* ---- Hero ---------------------------------------------------------------- */
.cp-hero {
  min-height: min(100svh, 58rem);
  padding: clamp(6.5rem, 20vw, 9rem) 1.25rem clamp(6rem, 14vw, 7.5rem);
  background: radial-gradient(ellipse 62% 48% at 50% 52%, var(--c-bg) 35%, color-mix(in srgb, var(--c-bg) 0%, transparent) 100%);
}
.cp-hero__deco { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.cp-hero__deco .orn { position: absolute; display: block; }
.cp-bunting { top: -2px; left: 50%; width: clamp(560px, 92vw, 880px); transform: translateX(-50%); }
.cp-burst { width: clamp(150px, 36vw, 300px); }
.cp-burst--tl { left: 0; top: clamp(4.6rem, 15vw, 8rem); }
.cp-burst--br { right: 0; bottom: 0; transform: rotate(180deg); }
.cp-balloons { width: clamp(78px, 20vw, 170px); animation: cp-float 7s ease-in-out infinite; }
.cp-balloons--r { right: -.6rem; bottom: 13%; }
.cp-balloons--l { left: -1.4rem; top: 38%; width: clamp(64px, 15vw, 140px); scale: -1 1; animation-delay: -3s; }
.cp-balloons--l .cp-b1 { fill: var(--c-pop2); }
.cp-balloons--l .cp-b3 { fill: var(--c-primary); }
@keyframes cp-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
.cp-shape { position: absolute; display: block; }
.cp-shape--dot { width: 18px; height: 18px; border-radius: 50%; background: var(--c-pop2); top: 24%; right: 14%; }
.cp-shape--ring { width: 30px; height: 30px; border-radius: 50%; border: 5px solid var(--c-primary); bottom: 22%; left: 10%; }
.cp-shape--moon { width: 40px; height: 20px; border-radius: 40px 40px 0 0; background: var(--c-accent); top: 52%; right: 7%; rotate: -24deg; }
.cp-shape--squig { width: 80px; height: 12px; background: var(--c-pop1); -webkit-mask: var(--cp-squig) 0 0 / 40px 12px repeat-x; mask: var(--cp-squig) 0 0 / 40px 12px repeat-x; bottom: 10%; left: 18%; rotate: -12deg; }
.cp-shape--tri { width: 26px; height: 24px; background: var(--c-primary); clip-path: polygon(50% 0, 100% 100%, 0 100%); top: 31%; left: 12%; rotate: 18deg; }
.cp-shape--plus { width: 22px; height: 22px; background: linear-gradient(var(--c-pop2), var(--c-pop2)) center / 100% 6px no-repeat, linear-gradient(var(--c-pop2), var(--c-pop2)) center / 6px 100% no-repeat; top: 74%; right: 28%; rotate: 20deg; }

.cp-hero__inner { gap: 1rem; position: relative; }
.cp-hero__eyebrow { letter-spacing: 0; text-transform: none; }
.cp-hero__eyebrow span {
  display: inline-block; padding: .45em 1.15em; border-radius: 999px;
  background: var(--c-secondary); color: var(--c-bg);
  font-family: var(--f-display); font-weight: 600; font-size: .86rem; letter-spacing: .16em; text-transform: uppercase;
  box-shadow: 3px 4px 0 var(--c-accent); rotate: -4deg;
}
.cp-hero__names { font-weight: 700; color: var(--c-primary); line-height: .92; letter-spacing: -.015em; text-shadow: .05em .055em 0 var(--c-accent); gap: .08em; max-width: 100%; }
.cp-hero__names .inv-hero__name { overflow-wrap: break-word; hyphens: auto; max-width: 100%; padding-inline: .06em; }
.cp-hero--long { --names-size: clamp(3rem, 13.5vw, 6.4rem); }
.cp-hero--xlong { --names-size: clamp(2.3rem, 10vw, 4.8rem); }
.cp-hero--long .cp-hero__names, .cp-hero--xlong .cp-hero__names { line-height: 1.02; max-width: 15ch; }
.cp-hero--duo { --names-size: clamp(3.4rem, 16vw, 7rem); }
.cp-hero__amp {
  display: grid; place-items: center; width: 1.9em; height: 1.9em; margin: .15em 0 .1em;
  border-radius: 50%; border: var(--bw) solid var(--ink); background: var(--c-accent); color: var(--c-on-pop);
  font-family: var(--f-display); font-weight: 700; font-size: .36em; text-shadow: none; rotate: -10deg; box-shadow: 3px 3px 0 var(--ink);
}
.cp-hero__squiggle { display: block; width: 120px; height: 12px; margin-top: .2rem; background: var(--c-pop1); -webkit-mask: var(--cp-squig) 0 0 / 40px 12px repeat-x; mask: var(--cp-squig) 0 0 / 40px 12px repeat-x; }
.cp-hero__when { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1rem 1.3rem; margin-top: .5rem; }
.cp-badge { position: relative; isolation: isolate; width: 7.6rem; aspect-ratio: 1; display: grid; place-content: center; justify-items: center; line-height: 1; color: var(--c-on-primary); rotate: -8deg; }
.cp-badge::before, .cp-badge::after { content: ""; position: absolute; inset: 0; z-index: -1; -webkit-mask: var(--cp-badge) center / 100% 100% no-repeat; mask: var(--cp-badge) center / 100% 100% no-repeat; }
.cp-badge::before { background: var(--ink); translate: 5px 6px; }
.cp-badge::after { background: radial-gradient(circle, var(--c-primary) 0 52%, color-mix(in srgb, var(--c-on-primary) 55%, transparent) 52.5% 54%, var(--c-primary) 54.5%); }
.cp-badge__month, .cp-badge__year { font-size: .7rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; padding-left: .16em; }
.cp-badge__day { font-family: var(--f-display); font-weight: 700; font-size: 2.9rem; margin: .06em 0 .04em; font-variant-numeric: lining-nums tabular-nums; }
.cp-hero__meta { display: grid; gap: .2rem; text-align: left; justify-items: start; }
.cp-hero__weekday { font-family: var(--f-display); font-weight: 600; font-size: 1.4rem; line-height: 1.1; color: var(--c-secondary); }
.cp-hero__time { font-weight: 700; color: var(--c-text); }
.cp-hero__venue { color: var(--c-text); font-weight: 600; background: linear-gradient(transparent 60%, color-mix(in srgb, var(--c-accent) 60%, transparent) 60% 92%, transparent 92%); padding-inline: .1em; }
.cp-hero__hashtag { margin-top: .4rem; padding: .3em 1em; border-radius: 999px; border: 2px dashed var(--c-primary); font-family: var(--f-display); font-weight: 600; letter-spacing: .03em; color: var(--c-primary); rotate: 2deg; }
.tpl-confetti-party .inv-hero__scroll { color: var(--ink); opacity: .7; border-width: 2px; }

/* Photo cover: white type over a dark wash (palette-independent) */
.tpl-confetti-party .cp-hero.has-cover { background: none; }
.tpl-confetti-party .cp-hero.has-cover::before { background: linear-gradient(180deg, rgba(18, 12, 34, .5), rgba(18, 12, 34, .74)); }
.tpl-confetti-party .cp-hero.has-cover .cp-hero__names { color: #fff; text-shadow: .05em .055em 0 var(--c-primary); }
.tpl-confetti-party .cp-hero.has-cover .cp-hero__weekday,
.tpl-confetti-party .cp-hero.has-cover .cp-hero__time,
.tpl-confetti-party .cp-hero.has-cover .cp-hero__venue,
.tpl-confetti-party .cp-hero.has-cover .cp-hero__hashtag,
.tpl-confetti-party .cp-hero.has-cover .inv-hero__scroll { color: #fff; }
.tpl-confetti-party .cp-hero.has-cover .cp-hero__venue { background: none; }
.tpl-confetti-party .cp-hero.has-cover .cp-hero__hashtag { border-color: #fff; }
.tpl-confetti-party .cp-hero.has-cover .cp-hero__eyebrow span { background: #fff; color: #1d1530; }
.tpl-confetti-party .cp-hero.has-cover .cp-badge::before { background: #1d1530; }
.tpl-confetti-party .cp-hero.has-cover .cp-balloons, .tpl-confetti-party .cp-hero.has-cover .cp-shape { display: none; }

/* ---- Section heads & dividers -------------------------------------------- */
.cp-divider { display: block; width: min(200px, 56%); margin: 0 auto; }
.tpl-confetti-party .inv-divider { width: min(170px, 50%); }
.tpl-confetti-party .inv-section__head { gap: .7rem; }
.tpl-confetti-party .inv-eyebrow {
  display: inline-block; padding: .38em 1em; border-radius: 999px;
  border: var(--bw) solid var(--ink); background: var(--c-accent); color: var(--c-on-pop);
  font-family: var(--f-display); font-weight: 600; font-size: .74rem; letter-spacing: .14em; rotate: -3deg;
}
.tpl-confetti-party .inv-section__title { font-weight: 700; letter-spacing: -.01em; line-height: 1.08; }
.tpl-confetti-party .inv-section__head::after { content: ""; width: 80px; height: 12px; background: var(--c-primary); -webkit-mask: var(--cp-squig) 0 0 / 40px 12px repeat-x; mask: var(--cp-squig) 0 0 / 40px 12px repeat-x; }
.tpl-confetti-party .inv-section__lead { color: var(--c-muted); }
.tpl-confetti-party .inv-section__lead strong { color: var(--c-text); }

/* ---- Cards: stickers with ink outline + hard shadow ---------------------- */
.tpl-confetti-party .inv-card,
.tpl-confetti-party .inv-session {
  background: var(--c-surface);
  border: var(--bw) solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 6px 7px 0 var(--c-accent), 6px 7px 0 var(--bw) var(--ink);
}
.tpl-confetti-party .inv-rsvp__card { box-shadow: 6px 7px 0 var(--c-pop1), 6px 7px 0 var(--bw) var(--ink); }
.tpl-confetti-party .inv-upload .inv-card { box-shadow: 6px 7px 0 var(--c-pop2), 6px 7px 0 var(--bw) var(--ink); }
.tpl-confetti-party .inv-guestbook .inv-card { box-shadow: 6px 7px 0 var(--c-primary), 6px 7px 0 var(--bw) var(--ink); }

/* ---- Welcome & people ---------------------------------------------------- */
.tpl-confetti-party .inv-welcome__guest { font-size: 1.2rem; }
.tpl-confetti-party .inv-welcome__guest strong { font-family: var(--f-display); font-weight: 700; color: var(--c-secondary); background: linear-gradient(transparent 58%, color-mix(in srgb, var(--c-accent) 55%, transparent) 58% 94%, transparent 94%); padding-inline: .12em; }
.tpl-confetti-party .inv-welcome__message { font-family: var(--f-display); font-weight: 500; font-size: clamp(1.2rem, 3.6vw, 1.45rem); line-height: 1.55; }
.tpl-confetti-party .inv-people__list { gap: 1.8rem; }
.tpl-confetti-party .inv-person {
  padding: 1.5rem 2.2rem 1.6rem; min-width: min(100%, 16rem);
  background: var(--c-surface); border: var(--bw) solid var(--ink); border-radius: var(--radius);
  box-shadow: 5px 6px 0 var(--c-pop1), 5px 6px 0 var(--bw) var(--ink); rotate: -1.5deg;
}
.tpl-confetti-party .inv-person:nth-child(3) { rotate: 1.5deg; box-shadow: 5px 6px 0 var(--c-pop2), 5px 6px 0 var(--bw) var(--ink); }
.tpl-confetti-party .inv-person__role { display: inline-block; padding: .3em .9em; border-radius: 999px; background: var(--c-primary); color: var(--c-on-primary); font-weight: 700; font-size: .68rem; letter-spacing: .14em; }
.tpl-confetti-party .inv-person__name { font-weight: 600; line-height: 1.15; margin-top: .3rem; }
.tpl-confetti-party .inv-person__photo { border: var(--bw) solid var(--ink); box-shadow: 4px 4px 0 var(--c-accent); }
.tpl-confetti-party .inv-people__photo { border: var(--bw) solid var(--ink); border-radius: 28px; box-shadow: 8px 9px 0 var(--c-accent); rotate: -1.5deg; }
.tpl-confetti-party .inv-people__amp { display: grid; place-items: center; width: 3.4rem; height: 3.4rem; border-radius: 50%; border: var(--bw) solid var(--ink); background: var(--c-accent); color: var(--c-on-pop); font-family: var(--f-display); font-weight: 700; font-size: 1.5rem; rotate: -10deg; box-shadow: 3px 3px 0 var(--ink); }

/* ---- Countdown: colourful tilted tiles ----------------------------------- */
.tpl-confetti-party .inv-countdown__grid { gap: clamp(.55rem, 2.4vw, 1.1rem); max-width: 34rem; }
.tpl-confetti-party .inv-countdown__unit {
  padding: clamp(.9rem, 3.4vw, 1.4rem) .2rem; gap: .35rem;
  border: var(--bw) solid var(--ink); border-radius: 18px;
  background: var(--c-pop1); color: var(--c-on-pop);
  box-shadow: 0 5px 0 var(--ink); rotate: -3deg;
}
.tpl-confetti-party .inv-countdown__unit:nth-child(1) { background: var(--c-primary); color: var(--c-on-primary); }
.tpl-confetti-party .inv-countdown__unit:nth-child(2) { background: var(--c-accent); rotate: 2.5deg; }
.tpl-confetti-party .inv-countdown__unit:nth-child(3) { background: var(--c-pop1); rotate: -2deg; }
.tpl-confetti-party .inv-countdown__unit:nth-child(4) { background: var(--c-pop2); rotate: 3deg; }
.tpl-confetti-party .inv-countdown__value { font-weight: 700; color: inherit; font-size: clamp(1.75rem, 7.6vw, 2.9rem); font-variant-numeric: lining-nums tabular-nums; }
.tpl-confetti-party .inv-countdown__label { color: inherit; font-weight: 700; font-size: clamp(.58rem, 1.9vw, .7rem); letter-spacing: .12em; padding-left: .12em; }

/* ---- Sessions ------------------------------------------------------------ */
.tpl-confetti-party .inv-sessions__list { max-width: 46rem; gap: 1.8rem; }
.tpl-confetti-party .inv-session { padding: clamp(1.3rem, 4vw, 1.9rem); gap: clamp(1rem, 4vw, 1.6rem); }
.tpl-confetti-party .inv-session:nth-child(even) { box-shadow: 6px 7px 0 var(--c-pop1), 6px 7px 0 var(--bw) var(--ink); }
.tpl-confetti-party .inv-session__date {
  min-width: 5rem; padding: .7rem .5rem .6rem; gap: .1rem;
  background: var(--c-primary); color: var(--c-on-primary);
  border: var(--bw) solid var(--ink); border-radius: 16px; box-shadow: 3px 4px 0 var(--ink); rotate: -5deg;
}
.tpl-confetti-party .inv-session__day { font-family: var(--f-display); font-weight: 700; font-size: 2.4rem; line-height: 1; font-variant-numeric: lining-nums tabular-nums; }
.tpl-confetti-party .inv-session__month { font-weight: 700; font-size: .72rem; letter-spacing: .12em; }
.tpl-confetti-party .inv-session__year { color: inherit; opacity: .85; font-size: .72rem; font-weight: 600; }
.tpl-confetti-party .inv-session__title { font-weight: 600; line-height: 1.15; }
.tpl-confetti-party .inv-session__when { color: var(--c-muted); }
.tpl-confetti-party .inv-session__time { display: inline-block; padding: .05em .7em; border-radius: 999px; background: color-mix(in srgb, var(--c-pop1) 34%, var(--c-surface)); color: var(--c-text); font-weight: 700; }
.tpl-confetti-party .inv-session__venue { font-family: var(--f-display); font-weight: 600; font-size: 1.1rem; color: var(--c-secondary); }
.tpl-confetti-party .inv-session__desc { padding: .55rem .9rem; border-radius: 12px; border: 2px dashed color-mix(in srgb, var(--c-primary) 55%, transparent); color: var(--c-text); font-weight: 600; }
.tpl-confetti-party .inv-calendar__menu { border: var(--bw) solid var(--ink); border-radius: 14px; box-shadow: 4px 5px 0 var(--ink); }
.tpl-confetti-party .inv-calendar__menu a { font-weight: 600; }
@media (max-width: 420px) {
  .tpl-confetti-party .inv-session__date { padding: .4rem .9rem; rotate: -3deg; gap: .45rem; margin-bottom: .1rem; }
  .tpl-confetti-party .inv-session__day { font-size: 1.6rem; }
}
@media (min-width: 768px) {
  .tpl-confetti-party .inv-sessions__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tpl-confetti-party .inv-sessions__list > :only-child { grid-column: 1 / -1; width: min(100%, 36rem); justify-self: center; }
  .tpl-confetti-party .inv-sessions__list > :last-child:nth-child(odd):not(:only-child) { grid-column: 1 / -1; width: min(100%, 26rem); justify-self: center; }
}

/* Dress code: tilted sticker */
.tpl-confetti-party .inv-dress { padding-block: clamp(1.5rem, 5vw, 2.5rem) var(--section-pad); }
.tpl-confetti-party .inv-dress-code {
  width: fit-content; max-width: 100%; margin-inline: auto; gap: .15rem; padding: 1rem 2.4rem 1.1rem;
  border: var(--bw) solid var(--ink); border-radius: 999px; background: var(--c-pop2); color: var(--c-on-pop);
  box-shadow: 4px 5px 0 var(--ink); rotate: -3deg;
}
.tpl-confetti-party .inv-dress-code__label { color: inherit; font-weight: 700; font-size: .7rem; letter-spacing: .18em; }
.tpl-confetti-party .inv-dress-code__value { color: inherit; font-weight: 600; font-size: 1.55rem; line-height: 1.15; }

/* ---- Buttons & forms ----------------------------------------------------- */
.tpl-confetti-party .inv-btn {
  border: var(--bw) solid var(--ink); box-shadow: 0 4px 0 var(--ink);
  font-family: var(--f-display); font-weight: 600; font-size: .95rem; letter-spacing: .02em; padding: .6rem 1.3rem;
  transition: background-color .2s, color .2s, transform .18s var(--ease-out), box-shadow .18s var(--ease-out);
}
.tpl-confetti-party .inv-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--ink); }
.tpl-confetti-party .inv-btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }
.tpl-confetti-party .inv-btn--primary { min-height: 54px; font-size: 1.05rem; }
.tpl-confetti-party .inv-btn--primary:hover { background: color-mix(in srgb, var(--c-primary) 88%, #000); }
.tpl-confetti-party .inv-btn--ghost { background: var(--c-surface); color: var(--c-text); }
.tpl-confetti-party .inv-btn--ghost:hover { background: color-mix(in srgb, var(--c-accent) 30%, var(--c-surface)); }
.tpl-confetti-party .inv-label { font-weight: 700; color: var(--c-text); font-size: .88rem; letter-spacing: .02em; }
.tpl-confetti-party .inv-input { border: var(--bw) solid color-mix(in srgb, var(--ink) 30%, transparent); border-radius: 14px; background: color-mix(in srgb, var(--c-bg) 45%, var(--c-surface)); }
.tpl-confetti-party .inv-input:focus { border-color: var(--c-primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--c-primary) 22%, transparent); }
.tpl-confetti-party .inv-choice__option span { border: var(--bw) solid color-mix(in srgb, var(--ink) 30%, transparent); border-radius: 999px; font-weight: 700; background: var(--c-surface); transition: background-color .2s, border-color .2s, box-shadow .2s, transform .2s; }
.tpl-confetti-party .inv-choice__option:hover span { border-color: var(--ink); }
.tpl-confetti-party .inv-choice__option input:checked + span { background: var(--c-primary); border-color: var(--ink); color: var(--c-on-primary); box-shadow: 0 4px 0 var(--ink); transform: translateY(-2px); }
.tpl-confetti-party .inv-hint a, .tpl-confetti-party .inv-link-btn { color: var(--c-primary); font-weight: 700; }
.tpl-confetti-party .inv-dropzone { border: 2.5px dashed var(--c-primary); border-radius: 20px; color: var(--c-text); background: color-mix(in srgb, var(--c-pop1) 12%, var(--c-surface)); }
.tpl-confetti-party .inv-dropzone:hover, .tpl-confetti-party .inv-dropzone.is-dragover { background: color-mix(in srgb, var(--c-pop1) 24%, var(--c-surface)); }
.tpl-confetti-party .inv-dropzone .inv-icon { box-sizing: content-box; width: 1.6rem; height: 1.6rem; padding: .75rem; border-radius: 50%; background: var(--c-accent); color: var(--c-on-pop); border: var(--bw) solid var(--ink); box-shadow: 3px 3px 0 var(--ink); rotate: -8deg; margin-bottom: .3rem; }
.tpl-confetti-party .inv-dropzone__title { font-family: var(--f-display); font-weight: 600; font-size: 1.1rem; }
.tpl-confetti-party .inv-upload__item { border-radius: 14px; }
.tpl-confetti-party .inv-rsvp__thanks { font-weight: 700; color: var(--c-primary); }

/* ---- Gallery: polaroid snaps --------------------------------------------- */
.tpl-confetti-party .inv-gallery__grid { gap: .9rem; }
.tpl-confetti-party .inv-gallery__item { padding: 6px 6px 18px; background: var(--c-surface); border: var(--bw) solid var(--ink); border-radius: 10px; box-shadow: 3px 4px 0 var(--ink); aspect-ratio: 5 / 6; }
.tpl-confetti-party .inv-gallery__item img { border-radius: 5px; }
.tpl-confetti-party .inv-gallery__grid li:nth-child(odd) .inv-gallery__item { rotate: -1.5deg; }
.tpl-confetti-party .inv-gallery__grid li:nth-child(even) .inv-gallery__item { rotate: 1.5deg; }
.tpl-confetti-party .inv-gallery .inv-note { font-weight: 600; }

/* ---- Guestbook: sticky notes --------------------------------------------- */
.tpl-confetti-party .inv-guestbook__list { gap: 1.6rem; margin-top: 2.6rem; }
@media (min-width: 640px) { .tpl-confetti-party .inv-guestbook__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tpl-confetti-party .inv-guestbook__entry {
  position: relative; padding: 1.7rem 1.4rem 1.2rem; border: 0; border-radius: 4px 4px 18px 4px;
  background: color-mix(in srgb, var(--c-accent) 40%, var(--c-surface)); color: var(--c-text);
  box-shadow: 0 14px 22px -16px color-mix(in srgb, #000 55%, transparent); rotate: -1.6deg;
}
.tpl-confetti-party .inv-guestbook__entry:nth-child(3n+2) { background: color-mix(in srgb, var(--c-pop1) 40%, var(--c-surface)); rotate: 1.4deg; }
.tpl-confetti-party .inv-guestbook__entry:nth-child(3n) { background: color-mix(in srgb, var(--c-pop2) 40%, var(--c-surface)); rotate: -.8deg; }
.tpl-confetti-party .inv-guestbook__entry::before { content: ""; position: absolute; top: -11px; left: 50%; width: 76px; height: 22px; margin-left: -38px; background: color-mix(in srgb, var(--c-surface) 62%, transparent); border-inline: 1px dashed color-mix(in srgb, var(--c-text) 18%, transparent); rotate: -4deg; }
.tpl-confetti-party .inv-guestbook__entry blockquote { font-family: var(--f-script); font-style: normal; font-weight: 600; font-size: 1.55rem; line-height: 1.2; }
.tpl-confetti-party .inv-guestbook__author { font-family: var(--f-display); font-weight: 600; font-size: .95rem; color: var(--c-secondary); }

/* ---- Contact / gift ------------------------------------------------------ */
.tpl-confetti-party .inv-contact__name, .tpl-confetti-party .inv-gift__holder { font-weight: 600; font-size: 1.4rem; }
.tpl-confetti-party .inv-contact__role, .tpl-confetti-party .inv-gift__bank { display: inline-block; padding: .2em .9em; border-radius: 999px; background: color-mix(in srgb, var(--c-pop2) 30%, var(--c-surface)); color: var(--c-text); font-weight: 700; font-size: .8rem; }
.tpl-confetti-party .inv-gift__iban code { color: var(--c-secondary); font-weight: 600; }

/* ---- Footer & music ------------------------------------------------------ */
.tpl-confetti-party .inv-footer { padding-top: 3rem; padding-bottom: 4rem; gap: 1rem; }
.tpl-confetti-party .inv-footer__ornament { width: min(220px, 62vw); }
.tpl-confetti-party .inv-footer__text { font-family: var(--f-display); font-weight: 500; font-size: 1.2rem; color: var(--c-text); }
.tpl-confetti-party .inv-footer__names { font-weight: 700; font-size: clamp(2.6rem, 11vw, 3.8rem); line-height: 1; color: var(--c-primary); text-shadow: .05em .055em 0 var(--c-accent); overflow-wrap: anywhere; }
.tpl-confetti-party .inv-footer__hashtag { padding: .25em 1em; border-radius: 999px; border: 2px dashed var(--c-primary); font-family: var(--f-display); font-weight: 600; rotate: -2deg; }
.tpl-confetti-party .inv-footer__brand { color: var(--c-muted); }
.tpl-confetti-party .inv-music { background: var(--c-accent); color: var(--c-on-pop); border: var(--bw) solid var(--ink); box-shadow: 0 4px 0 var(--ink); }

@media (min-width: 900px) {
  .cp-balloons--r { right: 4%; bottom: 14%; }
  .cp-balloons--l { left: 4%; top: 30%; }
  .cp-shape--tri { left: 20%; }
  .cp-shape--dot { right: 22%; top: 28%; }
  .cp-shape--ring { left: 18%; }
}

/* Motion: gentle and optional */
.is-static .cp-balloons, .is-static .inv-intro__open { animation: none; }
@media (prefers-reduced-motion: reduce) {
  .cp-balloons, .tpl-confetti-party .inv-intro__open { animation: none !important; }
}
.tpl-confetti-party.palette-gece .inv-intro__date,
.tpl-confetti-party.palette-gece .inv-session__time { background: color-mix(in srgb, var(--c-accent) 24%, var(--c-surface)); }
.tpl-confetti-party.palette-gece .inv-contact__role { background: color-mix(in srgb, var(--c-pop2) 30%, var(--c-surface)); }
