/* B08 · Carnival & Candyland: fonts (SIL Open Font License 1.1, self-hosted) */
@font-face { font-family: "Fredoka"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/fredoka-latin-700-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: "Fredoka"; font-style: normal; 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: "Nunito"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/nunito-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: "Nunito"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/nunito-latin-700-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: "Nunito"; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/nunito-latin-800-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; }

/* sticker proportions (img/st-*.webp) */
:root { --ar-elephant: 340 / 411; --ar-lollipop: 180 / 255; --ar-popcorn: 300 / 513; --ar-ferris: 340 / 367; --ar-donut: 280 / 330; --ar-horse: 300 / 314; --ar-balloons: 300 / 271; --ar-tent: 300 / 234; --ar-cupcake: 160 / 180; }

/* B08 · Carnival & Candyland: hot pink, candy stripes, marquee lights, bright tiles and confetti; elephant, lollipops and carnival rides from the mockup. */
:root {
  --bg: #ffe9f3; --bg2: #ffd5e8; --ink: #5c2148; --muted: #85506f; --accent: #ff4f9a; --accent2: #ffc93c;
  --line: rgb(255 79 154 / .2);
  --card: #fff; --card-line: transparent; --card-shadow: 0 10px 24px rgb(230 80 150 / .16); --radius: 22px;
  --btn-bg: linear-gradient(180deg, #ff74b0, #f23f8d); --btn-ink: #fff; --btn-border: 3px solid #fff; --btn-shadow: 0 0 0 2px #ff9cc8, 0 10px 22px rgb(240 60 140 / .32); --btn-font: "Fredoka", system-ui, sans-serif;
  --f-display: "Fredoka", system-ui, sans-serif; --f-body: "Nunito", system-ui, sans-serif; --f-head: "Fredoka", system-ui, sans-serif; --f-num: "Fredoka", system-ui, sans-serif;
  --name-size: 4.6rem; --name-color: #f2408f;
  --name-shadow: 3px 0 0 #fff, -3px 0 0 #fff, 0 3px 0 #fff, 0 -3px 0 #fff, 2px 2px 0 #fff, -2px 2px 0 #fff, 2px -2px 0 #fff, -2px -2px 0 #fff, 0 7px 0 #c21f6d, 0 10px 14px rgb(160 20 90 / .3);
  --head-size: 1.55rem; --head-color: #fff; --head-ink: #fff;
  --photo-radius: 26px; --photo-border: 6px solid #fff; --photo-shadow: 0 0 0 3px #ff9cc8, 0 16px 32px rgb(220 60 140 / .3); --cover-ar: 7 / 8;
  --gate-bg: linear-gradient(180deg, rgb(255 233 243 / .25), rgb(255 233 243 / .55)), url(../img/bg.webp) center / cover, #ffc4dd; --gate-ink: #5c2148;
  --guest-bg: #fff; --guest-line: #ffb3d3;
  --cd-title: #f2408f; --cd-num: #fff; --cd-label: #fff;
  --cd-tile: linear-gradient(180deg, #ff86bd, #f2408f); --cd-tile-border: 3px solid #fff; --cd-tile-radius: 18px; --cd-tile-shadow: 0 6px 12px rgb(200 40 120 / .25);
  --field-line: #ffb3d3; --dt-ic: #f2408f; --dt-ic-bg: #ffe3f0; --dt-label: #f2408f; --av-bg: linear-gradient(135deg, #ff9cc8, #b78cf0); --av-ink: #fff;
}
body { background: url(../img/b08-stripes.svg) 0 0 / 44px 10px, #ffe9f3; background-blend-mode: normal; }
body::before { content: ""; position: fixed; inset: 0; background: radial-gradient(ellipse at 50% 30%, rgb(255 244 249 / .82), rgb(255 233 243 / .55)); pointer-events: none; z-index: -1; }
.inv { background: transparent; }
.candy, .dt, .wcomp, .card { border: 6px solid transparent; background: linear-gradient(#fff, #fff) padding-box, repeating-linear-gradient(45deg, #ff6aa8 0 9px, #fff 9px 18px) border-box; }

/* Title inside a marquee sign: yellow frame with light bulbs */
.ttl { position: relative; background: #fff7fb; border-radius: 36px; padding: 26px 14px 18px; margin: 8px 2px 0;
  border: 9px solid #ffc93c; box-shadow: 0 0 0 3px #f6a51a, inset 0 0 0 3px #fff3c4, 0 0 22px rgb(255 200 60 / .55), 0 16px 30px rgb(220 60 140 / .22); }
.ttl::before { content: ""; position: absolute; inset: -9px; border-radius: 36px; border: 4px dotted #fffbe0; pointer-events: none; }
.ttl__kicker span { font: 600 1.05rem/1.1 var(--f-display); letter-spacing: .02em; text-transform: none; color: #fff; background: linear-gradient(180deg, #ff74b0, #f23f8d); padding: 7px 26px;
  border-radius: 6px; box-shadow: 0 3px 0 #c21f6d; position: relative; }
.ttl__age span { font: 700 1.9rem/1 var(--f-display); color: #f2408f; background: none; padding: 0; text-shadow: 2px 0 0 #fff, -2px 0 0 #fff, 0 2px 0 #fff, 0 -2px 0 #fff, 0 5px 0 #c21f6d; }
.ttl__age b { color: #3aa6e8; text-shadow: 2px 0 0 #fff, -2px 0 0 #fff, 0 2px 0 #fff, 0 -2px 0 #fff, 0 5px 0 #1f6fa8; }
.ttl__name { margin: 4px 0 0; }
.ttl .lead { color: #5c2148; font-weight: 700; font-size: .96rem; }
.gate__date, .side__date { display: inline-block; margin-top: 16px; padding: 7px 18px; border-radius: 999px; background: #fff; color: #f2408f; box-shadow: 0 0 0 3px #ff9cc8; font-weight: 800; }
.side__guest { display: inline-block; padding: 6px 16px; border-radius: 999px; background: #fff; }

/* Headings on pink (details) or purple (gallery, wishes) ribbons with stars */
.h-sec__t, .ttl__kicker span { isolation: isolate; }
.h-sec__t { position: relative; background: linear-gradient(180deg, #ff74b0, #f23f8d); padding: 7px 24px 8px; border-radius: 8px; box-shadow: 0 4px 0 #c21f6d; text-shadow: 0 2px 0 rgb(160 20 90 / .35); }
.h-sec__t::before, .h-sec__t::after, .ttl__kicker span::before, .ttl__kicker span::after { content: ""; position: absolute; top: 8px; bottom: -8px; width: 24px; z-index: -1; background: #d82f7c;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 34% 50%); }
.h-sec__t::before, .ttl__kicker span::before { left: -16px; }
.h-sec__t::after, .ttl__kicker span::after { right: -16px; transform: scaleX(-1); }
.sec--gallery .h-sec__t, .sec--wishes .h-sec__t { background: linear-gradient(180deg, #b98af2, #8f5bd8); box-shadow: 0 4px 0 #6c3cb4; }
.sec--gallery .h-sec__t::before, .sec--gallery .h-sec__t::after, .sec--wishes .h-sec__t::before, .sec--wishes .h-sec__t::after { background: #7b48c6; }
.h-sec__ic { color: #fff; }
.h-sec__sub, .lead { color: #5c2148; font-weight: 700; }

/* Hero over the carnival */
.sec--hero { background: linear-gradient(180deg, rgb(255 233 243 / .2), rgb(255 233 243 / .6)), url(../img/bg.webp) center / cover; padding-bottom: 70px; }
.sec--hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 70px; z-index: 1; background: linear-gradient(rgb(255 233 243 / 0), #ffe9f3); }
.photo--hero { width: min(64vw, 260px); }

/* Countdown: candy-stripe box, four bright tiles */
.cd-box { border: 7px solid transparent; border-radius: 34px; padding: 16px 12px 18px;
  background: linear-gradient(#fff8fb, #fff8fb) padding-box, repeating-linear-gradient(45deg, #ff6aa8 0 10px, #fff 10px 20px) border-box; box-shadow: 0 12px 26px rgb(230 80 150 / .18); }
.cd__t { font-size: 1.3rem; }
.cd__ic { color: #f2408f; }
.cd__c:nth-child(2) { --cd-tile: linear-gradient(180deg, #6cc8f5, #3aa6e8); }
.cd__c:nth-child(3) { --cd-tile: linear-gradient(180deg, #ffd96a, #ffbc2e); }
.cd__c:nth-child(4) { --cd-tile: linear-gradient(180deg, #c49cf5, #9a66e0); }
.cd__n { text-shadow: 0 2px 0 rgb(0 0 0 / .14); }

/* Details and cards with candy-stripe borders */
.dt { border-radius: 22px; }
.dt__ic { border-radius: 50%; }
.wcomp, .wish { border-radius: 22px; }
.wish { border-width: 4px; }
.card { border-radius: 24px; }
.btn--map { --map-bg: #fff; --map-ink: #8f5bd8; --map-line: #d6bdf7; border-width: 2px; }
.link, .link--map, .link--cal { color: #8f5bd8; }
.gallery__item { border: 5px solid #fff; border-radius: 16px; box-shadow: 0 0 0 2px #ffb3d3, 0 10px 20px rgb(220 60 140 / .2); }
.gallery__item:nth-child(odd) { transform: rotate(-2.5deg); }
.gallery__item:nth-child(even) { transform: rotate(2.5deg); }
.closing__t { color: #f2408f; font-size: 1.8rem; text-shadow: 0 2px 0 #fff; }
.closing__name { font-size: 3.4rem; }
.sec--closing { padding-bottom: 210px; }

/* Confetti */
.fx i { width: 8px; height: 13px; border-radius: 2px; background: #ff4f9a; }
.fx i:nth-child(4n+1) { background: #3aa6e8; }
.fx i:nth-child(4n+2) { background: #ffc93c; }
.fx i:nth-child(4n+3) { background: #9a66e0; width: 10px; height: 10px; border-radius: 50%; }

/* ---------- Elephant, lollipops and rides from the mockup ---------- */
.o { filter: drop-shadow(0 6px 8px rgb(180 40 110 / .2)); }
.gate__in .o1, .side__in .o1 { left: -10px; top: 0; width: 92px; aspect-ratio: var(--ar-balloons); background-image: url(../img/st-balloons.webp); }
.gate__in .o2, .side__in .o2 { right: -16px; top: 200px; width: 70px; aspect-ratio: var(--ar-lollipop); background-image: url(../img/st-lollipop.webp); }
.gate__in .o3, .side__in .o3 { left: -12px; top: 250px; width: 70px; aspect-ratio: var(--ar-cupcake); background-image: url(../img/st-cupcake.webp); }
.sec--hero .deco { z-index: 3; }
.sec--hero .o1 { right: -16px; top: 0; width: 34vw; max-width: 136px; aspect-ratio: var(--ar-ferris); background-image: url(../img/st-ferris.webp); }
.sec--hero .o2 { left: -12px; top: 6px; width: 26vw; max-width: 100px; aspect-ratio: var(--ar-balloons); background-image: url(../img/st-balloons.webp); }
.sec--hero .o3 { left: -10px; top: 250px; width: 20vw; max-width: 78px; aspect-ratio: var(--ar-cupcake); background-image: url(../img/st-cupcake.webp); }
.sec--hero .o4 { right: -12px; top: 236px; width: 20vw; max-width: 80px; aspect-ratio: var(--ar-lollipop); background-image: url(../img/st-lollipop.webp); }
.sec--countdown .o1 { left: -18px; bottom: -10px; width: 24vw; max-width: 96px; aspect-ratio: var(--ar-donut); background-image: url(../img/st-donut.webp); }
.sec--details .o1 { right: -20px; top: 0; width: 28vw; max-width: 112px; aspect-ratio: var(--ar-horse); background-image: url(../img/st-horse.webp); }
.sec--gallery .o1 { left: -24px; top: 0; width: 30vw; max-width: 120px; aspect-ratio: var(--ar-tent); background-image: url(../img/st-tent.webp); opacity: .9; }
.sec--wishes .o1 { right: -14px; top: 0; width: 20vw; max-width: 80px; aspect-ratio: var(--ar-lollipop); background-image: url(../img/st-lollipop.webp); }
.sec--closing .o1 { left: -6px; bottom: 0; width: 42vw; max-width: 170px; aspect-ratio: var(--ar-elephant); background-image: url(../img/st-elephant.webp); }
.sec--closing .o2 { right: -20px; bottom: 0; width: 40vw; max-width: 160px; aspect-ratio: var(--ar-popcorn); background-image: url(../img/st-popcorn.webp); }

@media (min-width: 1024px) { #side .ttl { max-width: 420px; margin-inline: auto; } .side__in .o1 { left: 30px; } .side__in .o2 { right: 30px; } .side__in .o3 { left: 30px; } }
