/* =========================================================
   Žurka 99 · Olivera & Aleksandra
   Smaragd + nana (Olivera) · Ametist + orhideja (Aleksandra)
   Šampanj-zlato kao akcenat
   ========================================================= */

@property --angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

:root {
  --ink: #0b0614;
  --plum: #1b0b30;
  --pearl: #fff8ee;
  --pearl-dim: #e6dcef;

  /* Olivera – tamni smaragd */
  --mint: #4fd9a0;          /* svetliji ton samo za tekst */
  --emerald: #0b8a5c;
  --jade: #076b47;
  --forest: #033d29;

  /* Aleksandra – tamni ametist */
  --lilac: #c9a6ff;         /* svetliji ton samo za tekst */
  --orchid: #9b3fd1;
  --violet: #6a2fc9;
  --amethyst: #4f1ea8;
  --grape: #260a52;

  /* akcenat */
  --champagne: #fdeec9;
  --gold: #ecc77d;
  --gold-deep: #a97b33;

  --foil-green: linear-gradient(110deg, #0b8a5c 0%, #17a873 22%, #6fe3b4 42%, #c9fbe6 50%, #6fe3b4 58%, #17a873 78%, #0b8a5c 100%);
  --foil-purple: linear-gradient(110deg, #6a2fc9 0%, #8450e0 22%, #b994ff 42%, #e6d8ff 50%, #b994ff 58%, #8450e0 78%, #6a2fc9 100%);
  --foil-gold: linear-gradient(110deg, #c99a45 0%, #ecc77d 22%, #fff3d4 42%, #ffffff 50%, #fff3d4 58%, #ecc77d 78%, #c99a45 100%);
  --holo: linear-gradient(100deg, #4fd9a0 0%, #17a873 22%, var(--champagne) 50%, #b37aef 75%, #9a6cf0 100%);
  --btn-grad: linear-gradient(110deg, #033d29 0%, #0b8a5c 30%, #3a5fa0 50%, #6a2fc9 70%, #260a52 100%);

  --radius: 30px;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-script: "Great Vibes", "Brush Script MT", cursive;
  --font-body: "Nunito Sans", "Segoe UI", Tahoma, sans-serif;
}

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

html {
  font-size: 112.5%;              /* 18px osnova – lakše čitanje */
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 1.2rem;
  line-height: 1.6;
  color: var(--pearl);
  background: var(--ink);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.is-locked { overflow: hidden; }

strong { font-weight: 800; }
.txt-green  { color: var(--mint); }
.txt-purple { color: var(--lilac); }

/* foil tekst – zajednička pravila */
.foil {
  background-size: 260% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: foil 5s ease-in-out infinite alternate;
}
@keyframes foil {
  from { background-position: 100% 0; }
  to   { background-position: 0% 0; }
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes spinAngle { to { --angle: 360deg; } }

/* =========================================================
   POZADINA
   ========================================================= */
.bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }

.bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 80% at 50% -10%, #241042 0%, transparent 60%),
    radial-gradient(100% 70% at 50% 110%, #062a1f 0%, transparent 60%),
    linear-gradient(180deg, #120827 0%, #0b0614 50%, #07130e 100%);
}

.aurora span {
  position: absolute;
  width: 65vmax;
  height: 65vmax;
  border-radius: 50%;
  opacity: 0.55;
  will-change: transform;
  animation: drift 24s ease-in-out infinite alternate;
}
.aurora span:nth-child(1) { background: radial-gradient(circle, rgba(11,138,92,.75), transparent 65%);  top: -28vmax; left: -22vmax; }
.aurora span:nth-child(2) { background: radial-gradient(circle, rgba(90,38,184,.8), transparent 65%);  bottom: -28vmax; right: -22vmax; animation-delay: -7s; }
.aurora span:nth-child(3) { background: radial-gradient(circle, rgba(130,40,180,.55), transparent 65%); top: -18vmax; right: -28vmax; animation-delay: -13s; animation-duration: 30s; }
.aurora span:nth-child(4) { background: radial-gradient(circle, rgba(5,92,61,.7), transparent 65%);    bottom: -24vmax; left: -28vmax; animation-delay: -4s; animation-duration: 27s; }
.aurora span:nth-child(5) { background: radial-gradient(circle, rgba(236,199,125,.22), transparent 65%); top: 30%; left: 25%; width: 50vmax; height: 50vmax; animation-delay: -10s; animation-duration: 34s; }

@keyframes drift {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(9vmax, 7vmax) scale(1.12); }
  100% { transform: translate(-7vmax, 11vmax) scale(0.94); }
}

.vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(130% 100% at 50% 50%, transparent 55%, rgba(4, 2, 8, 0.65) 100%);
}

/* zrnasta tekstura */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 95;
  pointer-events: none;
  opacity: 0.06;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

.sparkle {
  position: absolute;
  width: var(--s, 3px);
  height: var(--s, 3px);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 8px 2px rgba(255, 255, 255, 0.6);
  opacity: 0;
  animation: twinkle var(--t, 4s) ease-in-out var(--delay, 0s) infinite;
}
.sparkle--green  { background: var(--mint);  box-shadow: 0 0 10px 2px rgba(11,138,92,.8); }
.sparkle--purple { background: var(--lilac); box-shadow: 0 0 10px 2px rgba(106,47,201,.8); }
.sparkle--gold   { background: var(--champagne); box-shadow: 0 0 10px 2px rgba(236,199,125,.8); }
.sparkle--star {
  width: calc(var(--s) * 4);
  height: calc(var(--s) * 4);
  border-radius: 0;
  background: var(--champagne);
  box-shadow: none;
  clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%);
}
@keyframes twinkle {
  0%, 100% { opacity: 0; transform: scale(0.3) rotate(0deg); }
  50%      { opacity: 1; transform: scale(1) rotate(45deg); }
}

#fireworks, #confetti {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
#fireworks { z-index: 2; }
#confetti  { z-index: 90; }

/* =========================================================
   DUGMAD
   ========================================================= */
.btn {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  min-height: 64px;
  padding: 0.85rem 1.9rem;
  border: 0;
  border-radius: 999px;
  font: 800 1.25rem/1.2 var(--font-body);
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  background: var(--btn-grad);
  background-size: 220% 100%;
  box-shadow:
    0 14px 34px -8px rgba(106, 47, 201, 0.6),
    0 10px 30px -10px rgba(11, 138, 92, 0.6),
    inset 0 0 0 2px rgba(236, 199, 125, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
  animation: holoShift 7s ease-in-out infinite alternate;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}
/* odsjaj koji prelazi preko dugmeta */
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(110deg, transparent 35%, rgba(255,255,255,.35) 50%, transparent 65%);
  transform: translateX(-120%);
  animation: btnShine 4.5s ease-in-out infinite;
}
@keyframes holoShift { from { background-position: 0% 0; } to { background-position: 100% 0; } }
@keyframes btnShine { 0%, 60% { transform: translateX(-120%); } 85%, 100% { transform: translateX(120%); } }

.btn:hover  { transform: translateY(-3px) scale(1.02); }
.btn:active { transform: translateY(1px) scale(0.97); }
.btn:focus-visible { outline: 4px solid var(--gold); outline-offset: 4px; }

.btn--big { min-height: 76px; padding: 1rem 2.4rem; font-size: 1.45rem; }

.btn--ghost {
  color: var(--pearl);
  background: rgba(255, 255, 255, 0.06);
  border: 2px solid rgba(253, 238, 201, 0.6);
  box-shadow: 0 10px 30px -12px rgba(0,0,0,.6);
  animation: none;
}
.btn--ghost::after { background: linear-gradient(110deg, transparent 35%, rgba(255,255,255,.18) 50%, transparent 65%); }
.btn--ghost:hover { background: rgba(255, 255, 255, 0.14); }

.btn--purple {
  background: linear-gradient(110deg, #260a52, #6a2fc9 50%, #4f1ea8);
  background-size: 200% 100%;
}

.btn--pulse { animation: holoShift 7s ease-in-out infinite alternate, pulse 2.2s ease-in-out infinite; }
@keyframes pulse {
  0%, 100% { box-shadow: 0 14px 34px -8px rgba(106,47,201,.6), 0 0 0 0 rgba(155,63,209,.6), inset 0 0 0 2px rgba(236,199,125,.55); }
  50%      { box-shadow: 0 14px 34px -8px rgba(106,47,201,.6), 0 0 0 20px rgba(155,63,209,0), inset 0 0 0 2px rgba(236,199,125,.55); }
}

/* =========================================================
   KOVERTA
   ========================================================= */
.intro {
  position: fixed;
  inset: 0;
  z-index: 100;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.6rem;
  padding: 2rem 1.25rem;
  text-align: center;
  background:
    radial-gradient(60vmax 50vmax at 15% 10%, rgba(11,138,92,.25), transparent 60%),
    radial-gradient(60vmax 50vmax at 85% 90%, rgba(106,47,201,.32), transparent 60%),
    radial-gradient(40vmax 40vmax at 50% 50%, rgba(236,199,125,.12), transparent 70%),
    #0d0718;
  transition: opacity 0.9s ease, visibility 0.9s ease;
}
.intro.is-gone { opacity: 0; visibility: hidden; }

.intro__rays {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 220vmax;
  height: 220vmax;
  transform: translate(-50%, -50%);
  background: repeating-conic-gradient(from 0deg,
    rgba(109,255,203,.09) 0deg 5deg, transparent 5deg 15deg,
    rgba(155,63,209,.11) 15deg 20deg, transparent 20deg 30deg);
  -webkit-mask-image: radial-gradient(circle, #000 0%, transparent 38%);
  mask-image: radial-gradient(circle, #000 0%, transparent 38%);
  animation: raySpin 80s linear infinite;
  pointer-events: none;
}
@keyframes raySpin { to { transform: translate(-50%, -50%) rotate(360deg); } }

.intro__hello {
  position: relative;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
  font-size: clamp(2rem, 7vw, 3rem);
  background-image: var(--foil-gold);
  animation: fadeDown 1s ease both, foil 5s ease-in-out infinite alternate;
  background-size: 260% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.intro__hint { position: relative; font-size: 1.1rem; color: var(--pearl-dim); }
#openBtn { position: relative; }

@keyframes fadeDown { from { opacity: 0; transform: translateY(-20px); } }

.envelope {
  position: relative;
  width: min(82vw, 440px);
  aspect-ratio: 3 / 2;
  margin-top: 1rem;
  cursor: pointer;
  perspective: 1200px;
  animation: floaty 4s ease-in-out infinite;
  -webkit-tap-highlight-color: transparent;
}
@keyframes floaty {
  0%, 100% { transform: translateY(0) rotate(-1.5deg); }
  50%      { transform: translateY(-14px) rotate(1.5deg); }
}
.envelope > span { position: absolute; display: block; }

.envelope__glow {
  inset: -18%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(236,199,125,.35), rgba(106,47,201,.2) 40%, transparent 70%);
  filter: blur(20px);
  animation: glowPulse 3s ease-in-out infinite;
}
@keyframes glowPulse { 0%, 100% { opacity: .6; transform: scale(.95); } 50% { opacity: 1; transform: scale(1.05); } }

.envelope__back {
  inset: 0;
  border-radius: 16px;
  background: linear-gradient(135deg, #3a1572, #1e0a40);
  box-shadow: 0 40px 60px -20px rgba(0,0,0,.7);
}

.envelope__letter {
  left: 7%;
  right: 7%;
  top: 7%;
  height: 86%;
  z-index: 1;
  display: grid !important;
  place-items: center;
  border-radius: 10px;
  background:
    radial-gradient(circle at 0 0, rgba(11,138,92,.22), transparent 40%),
    radial-gradient(circle at 100% 100%, rgba(106,47,201,.25), transparent 40%),
    var(--pearl);
  box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.2), inset 0 0 0 6px rgba(236,199,125,.35);
  transition: transform 1s cubic-bezier(0.2, 0.8, 0.2, 1) 0.55s;
}
.envelope__letter-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.3rem, 5vw, 1.8rem);
  line-height: 1;
  color: #2b1846;
}
.envelope__letter-text small {
  font-family: var(--font-script);
  font-style: normal;
  font-size: clamp(1.1rem, 4.4vw, 1.5rem);
  color: var(--gold-deep);
  margin-bottom: 0.3rem;
}
.envelope__letter-text b {
  font-style: normal;
  font-weight: 900;
  font-size: clamp(3rem, 12.5vw, 4.6rem);
  background: linear-gradient(90deg, var(--jade) 0 50%, var(--amethyst) 50% 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.envelope__front {
  inset: 0;
  z-index: 2;
  border-radius: 16px;
  background:
    radial-gradient(rgba(255,255,255,.1) 1px, transparent 1.5px) 0 0 / 14px 14px,
    linear-gradient(160deg, rgba(255,255,255,.18), transparent 45%),
    linear-gradient(160deg, #0b8a5c, #055c3d 60%, #022e1f);
  clip-path: polygon(0 0, 50% 54%, 100% 0, 100% 100%, 0 100%);
}

.envelope__flap {
  left: 0;
  right: 0;
  top: 0;
  height: 60%;
  z-index: 3;
  transform-origin: top center;
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1), z-index 0s linear 0.4s;
}
.envelope__flap::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 16px 16px 0 0;
  background:
    radial-gradient(rgba(255,255,255,.1) 1px, transparent 1.5px) 0 0 / 14px 14px,
    linear-gradient(180deg, #7a42d6, #4f1ea8 70%, #2a0b5c);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}

.envelope__seal {
  left: 50%;
  top: 60%;
  z-index: 4;
  width: clamp(66px, 19vw, 90px);
  height: clamp(66px, 19vw, 90px);
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff4d6, #ecc77d 45%, #a97b33 85%);
  box-shadow: 0 8px 18px rgba(0,0,0,.45), inset 0 0 0 4px rgba(255,255,255,.3), inset 0 -6px 10px rgba(0,0,0,.2), 0 0 30px rgba(236,199,125,.55);
  transition: transform 0.45s ease, opacity 0.45s ease;
}
.envelope__seal::before {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 50%;
  border: 2px dashed rgba(90, 55, 0, 0.35);
  animation: spin 20s linear infinite;
}
.envelope__seal span {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.4rem, 5vw, 2rem);
  color: #4a2b00;
  text-shadow: 0 1px 0 rgba(255,255,255,.5);
}

.intro__flash {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(circle at 50% 45%, rgba(255,250,235,1) 0%, rgba(253,238,201,.7) 25%, transparent 65%);
}

/* otvaranje */
.intro.is-open .envelope { animation: none; }
.intro.is-open .intro__hello,
.intro.is-open .intro__hint,
.intro.is-open #openBtn { opacity: 0; transform: translateY(-10px); pointer-events: none; transition: opacity .4s, transform .4s; }
.intro.is-open .envelope__seal { transform: translate(-50%, -50%) scale(0) rotate(160deg); opacity: 0; }
.intro.is-open .envelope__flap { transform: rotateX(180deg); z-index: 0; }
.intro.is-open .envelope__letter { transform: translateY(-58%) scale(1.05); }
.intro.is-open .intro__flash { animation: flash 1.1s ease-out 1.15s forwards; }
@keyframes flash { 0% { opacity: 0; transform: scale(.4); } 40% { opacity: 1; } 100% { opacity: 0; transform: scale(2.2); } }

/* =========================================================
   POZIVNICA – raspored
   ========================================================= */
.invite {
  position: relative;
  z-index: 10;
  max-width: 1000px;
  margin: 0 auto;
  padding: 1rem 1.25rem 4rem;
  display: flex;
  flex-direction: column;
  gap: clamp(3.5rem, 9vw, 6rem);
  pointer-events: none;            /* klik prolazi do balona… */
}
.invite .card,
.invite .ticket,
.invite a,
.invite button { pointer-events: auto; }   /* …osim na karticama i dugmadi */

.reveal {
  opacity: 0;
  transform: translateY(50px) scale(0.98);
  transition: opacity 1s ease, transform 1.1s cubic-bezier(0.2, 0.8, 0.2, 1);
  transition-delay: calc(var(--d, 0) * 0.2s);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* naslovi sekcija */
.sec-head { text-align: center; margin-bottom: 1.8rem; }
.eyebrow {
  display: inline-block;
  margin-bottom: 0.5rem;
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  background-image: var(--foil-gold);
  background-size: 260% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: foil 5s ease-in-out infinite alternate;
}
.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.1rem, 7vw, 3.2rem);
  line-height: 1.12;
}
.section-title em {
  font-style: italic;
  background-image: var(--holo);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: foil 6s ease-in-out infinite alternate;
  padding-right: 0.08em;
}

/* ---------------- HERO ---------------- */
.hero {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.5rem;
  padding: 2rem 0 1rem;
}

.hero__kicker {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-weight: 800;
  font-size: clamp(0.9rem, 3.3vw, 1.15rem);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--champagne);
}
.orn {
  width: clamp(24px, 8vw, 60px);
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold));
  position: relative;
}
.orn::after {
  content: "";
  position: absolute;
  right: -4px;
  top: -3px;
  width: 8px;
  height: 8px;
  background: var(--gold);
  transform: rotate(45deg);
}
.orn--r { transform: scaleX(-1); }

.hero__names {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  column-gap: 0.28em;
  font-family: var(--font-script);
  font-weight: 400;
  font-size: clamp(3.5rem, 13.5vw, 6.8rem);
  line-height: 1.2;
}
.name {
  display: inline-block;
  padding: 0 0.12em;
  background-size: 260% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  clip-path: inset(-30% 100% -30% 0);       /* "ispisivanje" */
}
.name--green  { background-image: var(--foil-green);  filter: drop-shadow(0 0 18px rgba(11,138,92,.5)); }
.name--purple { background-image: var(--foil-purple); filter: drop-shadow(0 0 18px rgba(106,47,201,.55)); }

.hero__names.is-visible .name {
  animation: write 1.9s cubic-bezier(0.6, 0.1, 0.3, 1) forwards, foil 5s ease-in-out 2s infinite alternate;
}
.hero__names.is-visible .name--purple { animation-delay: 0.9s, 2.8s; }
@keyframes write { to { clip-path: inset(-30% -10% -30% 0); } }

.amp {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.55em;
  color: var(--gold);
  opacity: 0;
  transition: opacity 0.8s ease 0.8s;
}
.hero__names.is-visible .amp { opacity: 1; }

/* scena sa 99 */
.stage {
  position: relative;
  display: grid;
  place-items: center;
  width: min(94vw, 600px);
  aspect-ratio: 1.5;
  margin: -0.5rem 0 -0.5rem;
}
.stage > span { position: absolute; display: block; }

.stage__halo {
  width: 70%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: conic-gradient(from 0deg, var(--emerald), var(--mint), var(--gold), var(--orchid), var(--violet), var(--amethyst), var(--jade), var(--emerald));
  filter: blur(42px);
  opacity: 0.5;
  animation: spin 12s linear infinite;
}

.stage__orbit {
  width: 96%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1.5px solid rgba(253, 238, 201, 0.22);
}
.stage__orbit--a { transform: rotateX(76deg) rotateY(-10deg); }
.stage__orbit--b { width: 80%; transform: rotateX(72deg) rotateY(14deg); border-color: rgba(155,63,209,.22); }
.stage__orbit i {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  animation: spin 7s linear infinite;
}
.stage__orbit--b i { animation-duration: 10s; animation-direction: reverse; }
.stage__orbit i::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -9px;
  width: 18px;
  height: 18px;
  margin-left: -9px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 20px 6px rgba(11,138,92,.8);
}
.stage__orbit--b i::before { background: var(--orchid); box-shadow: 0 0 20px 6px rgba(155,63,209,.8); }

.ninety-nine {
  position: relative;
  z-index: 1;
  display: flex;
  font-family: var(--font-display);
  font-weight: 900;
  font-variation-settings: "opsz" 144;
  font-size: clamp(9.5rem, 42vw, 19rem);
  line-height: 0.85;
  user-select: none;
}
.nine {
  position: relative;
  display: inline-block;
  animation: bob 6s ease-in-out infinite;
}
.nine--green  { --r: -7deg; }
.nine--purple { --r: 5deg; margin-left: -0.1em; animation-delay: -3s; }
@keyframes bob {
  0%, 100% { transform: translateY(0) rotate(var(--r)); }
  50%      { transform: translateY(-16px) rotate(calc(var(--r) * -0.6)); }
}

/* 3D dubina */
.nine__depth {
  position: absolute;
  inset: 0;
  color: #022e20;
  text-shadow:
    1px 1px 0 #022e20, 2px 2px 0 #022e20, 3px 3px 0 #03392a, 4px 4px 0 #03392a,
    5px 5px 0 #044331, 6px 6px 0 #044331, 7px 7px 0 #054d38, 8px 8px 0 #054d38,
    0 0 50px rgba(11, 138, 92, 0.6), 10px 18px 40px rgba(0, 0, 0, 0.6);
}
.nine--purple .nine__depth {
  color: #1e0846;
  text-shadow:
    1px 1px 0 #1e0846, 2px 2px 0 #1e0846, 3px 3px 0 #260a58, 4px 4px 0 #260a58,
    5px 5px 0 #2e0d6a, 6px 6px 0 #2e0d6a, 7px 7px 0 #36107c, 8px 8px 0 #36107c,
    0 0 50px rgba(106, 47, 201, 0.65), 10px 18px 40px rgba(0, 0, 0, 0.6);
}
.nine__face {
  position: relative;
  display: inline-block;
  background-size: 260% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: foil 4s ease-in-out infinite alternate;
}
.nine--green  .nine__face { background-image: linear-gradient(110deg, #055c3d 0%, #0b8a5c 25%, #3fcf93 44%, #b9f5dc 50%, #3fcf93 56%, #0b8a5c 75%, #055c3d 100%); }
.nine--purple .nine__face { background-image: linear-gradient(110deg, #3d138c 0%, #5a26b8 25%, #9466f0 44%, #dccaff 50%, #9466f0 56%, #5a26b8 75%, #3d138c 100%); animation-delay: -2s; }

.hero__title {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
  font-size: clamp(2.6rem, 10vw, 4.6rem);
  line-height: 1.1;
  background-image: var(--foil-gold);
  background-size: 260% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: foil 5s ease-in-out infinite alternate;
  filter: drop-shadow(0 4px 20px rgba(236,199,125,.35));
  padding: 0 0.1em;
}
.hero__sub {
  max-width: 30ch;
  font-size: clamp(1.25rem, 4.2vw, 1.55rem);
}
.scroll-cue { margin-top: 1.6rem; }
.scroll-cue__arrow { display: inline-block; animation: nudge 1.6s ease-in-out infinite; }
@keyframes nudge { 0%, 100% { transform: translateY(-2px); } 50% { transform: translateY(6px); } }

/* ---------------- TRAKE ---------------- */
.ribbons {
  position: relative;
  width: 100vw;
  max-width: 100vw;
  height: 150px;
  margin: -2rem 0 -2rem calc(50% - 50vw);
  pointer-events: none;
}
.ribbon {
  position: absolute;
  left: -10%;
  width: 120%;
  top: 50%;
  padding: 0.75rem 0;
  overflow: hidden;
  box-shadow: 0 18px 40px -12px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.25), inset 0 -1px 0 rgba(0,0,0,.2);
}
.ribbon--green  { transform: translateY(-50%) rotate(-4deg); background: linear-gradient(90deg, #022e1f, #076b47 30%, #0f9a68 50%, #076b47 70%, #022e1f); }
.ribbon--purple { transform: translateY(-50%) rotate(3.5deg); background: linear-gradient(90deg, #1c0740, #4f1ea8 30%, #7340d6 50%, #4f1ea8 70%, #1c0740); }
.ribbon__track {
  display: flex;
  width: max-content;
  white-space: nowrap;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
  font-size: 1.45rem;
  letter-spacing: 0.03em;
  color: var(--pearl);
  text-shadow: 0 2px 6px rgba(0,0,0,.3);
  animation: marquee 38s linear infinite;
}
.ribbon--purple .ribbon__track { animation-direction: reverse; animation-duration: 44s; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------------- KARTICE ---------------- */
.card {
  position: relative;
  isolation: isolate;
  padding: clamp(1.6rem, 5vw, 3rem);
  border-radius: var(--radius);
  background:
    radial-gradient(120% 80% at 0% 0%, rgba(11,138,92,.12), transparent 50%),
    radial-gradient(120% 80% at 100% 100%, rgba(106,47,201,.16), transparent 50%),
    linear-gradient(160deg, rgba(36, 16, 62, 0.82), rgba(10, 30, 24, 0.78));
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  backdrop-filter: blur(16px) saturate(1.3);
  box-shadow: 0 40px 80px -24px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
/* animirani zeleno-zlatno-ljubičasti rub */
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  padding: 2px;
  background: conic-gradient(from var(--angle), var(--emerald), transparent 18%, var(--gold) 30%, transparent 42%, var(--violet) 55%, transparent 68%, var(--orchid) 80%, transparent 90%, var(--emerald));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: spinAngle 9s linear infinite;
  pointer-events: none;
}
/* odsjaj koji prati prst/miš */
.card::after,
.ticket::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(400px circle at var(--gx, 50%) var(--gy, 0%), rgba(255,255,255,.12), transparent 45%);
  opacity: var(--glare, 0);
  transition: opacity 0.3s ease;
}

/* ---------------- SLAVLJENICE ---------------- */
.duo__grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1.2rem;
}
.person { text-align: center; padding-top: 2.4rem; }
.person--green  { --c-light: #8ff0c6; --c-mid: #0b8a5c; --c-deep: #022e1f; --c-glow: rgba(11,138,92,.65); }
.person--purple { --c-light: #d2b6ff; --c-mid: #5a26b8; --c-deep: #1c0740; --c-glow: rgba(106,47,201,.7); }

.orb {
  position: relative;
  width: 136px;
  height: 136px;
  margin: 0 auto 1.1rem;
  display: grid;
  place-items: center;
}
.orb::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 26%, #fff 0 5%, var(--c-light) 16%, var(--c-mid) 52%, var(--c-deep) 100%);
  box-shadow: 0 0 60px var(--c-glow), inset -12px -16px 26px rgba(0, 0, 0, 0.35);
  animation: breathe 4s ease-in-out infinite;
}
.person--purple .orb::before { animation-delay: -2s; }
.orb__ring {
  position: absolute;
  inset: -14px;
  border-radius: 50%;
  border: 2px dashed var(--c-light);
  opacity: 0.55;
  animation: spin 16s linear infinite;
}
.orb__ring::after {
  content: "";
  position: absolute;
  top: -6px;
  left: 50%;
  width: 10px;
  height: 10px;
  margin-left: -5px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 12px 3px rgba(236,199,125,.8);
}
.orb__letter {
  position: relative;
  font-family: var(--font-script);
  font-size: 4.6rem;
  line-height: 1;
  color: #fff;
  text-shadow: 0 3px 12px rgba(0, 0, 0, 0.35);
  transform: translateY(4px);
}
@keyframes breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }

.person__name {
  font-family: var(--font-script);
  font-weight: 400;
  font-size: clamp(3rem, 8.5vw, 3.8rem);
  line-height: 1.2;
  color: var(--c-light);
  filter: drop-shadow(0 0 14px var(--c-glow));
}
.person__meta {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--pearl-dim);
}
.person__color {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.8rem, 5.5vw, 2.3rem);
  line-height: 1.2;
  background-size: 260% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: foil 4.5s ease-in-out infinite alternate;
}
.person--green  .person__color { background-image: var(--foil-green); }
.person--purple .person__color { background-image: var(--foil-purple); }

.duo__plus span {
  display: grid;
  place-items: center;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 2.6rem;
  line-height: 1;
  color: #2b1846;
  background: radial-gradient(circle at 35% 30%, #fff4d6, #ecc77d 50%, #a97b33);
  box-shadow: 0 0 30px rgba(236,199,125,.5);
  animation: breathe 3s ease-in-out infinite;
}
.duo__equals {
  margin-top: 1.8rem;
  text-align: center;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.4rem, 4.6vw, 1.9rem);
  color: var(--champagne);
}
.duo__equals span { font-style: normal; font-weight: 900; margin-right: 0.2em; color: var(--gold); }

/* ---------------- KADA I GDE ---------------- */
.info {
  list-style: none;
  display: grid;
  gap: 1.1rem;
  max-width: 640px;
  margin: 0 auto 2rem;
}
.info__row {
  position: relative;
  display: grid;
  grid-template-columns: 72px 1fr;
  align-items: center;
  gap: 1.1rem;
  padding: 1rem 1.2rem;
  border-radius: 22px;
  background: linear-gradient(90deg, rgba(255,255,255,.08), rgba(255,255,255,.03));
  border: 1px solid rgba(255,255,255,.08);
  transition: transform 0.3s ease, background 0.3s ease;
}
.info__row:hover { transform: translateX(6px); background: linear-gradient(90deg, rgba(255,255,255,.12), rgba(255,255,255,.04)); }

.info__icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 20px;
  color: #fff;
  box-shadow: 0 10px 24px -6px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.4);
}
.info__row:nth-child(1) .info__icon { background: linear-gradient(140deg, #17a873, #076b47 55%, #022e1f); }
.info__row:nth-child(2) .info__icon { background: linear-gradient(140deg, #fff3d4, #ecc77d 50%, #a97b33); color: #3b2300; }
.info__row:nth-child(3) .info__icon { background: linear-gradient(140deg, #7a42d6, #4f1ea8 55%, #1c0740); }
.info__icon svg {
  width: 34px;
  height: 34px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.info__icon svg .fill { fill: currentColor; stroke: none; }

.info__label {
  display: block;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}
.info__value {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.4rem, 4.6vw, 1.8rem);
  line-height: 1.25;
}
.info__extra { display: block; font-size: 1.2rem; color: var(--pearl-dim); }

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

/* ---------------- ODBROJAVANJE ---------------- */
.countdown__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.countdown__box {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.3rem 0.4rem 1rem;
  border-radius: 22px;
  overflow: hidden;
  perspective: 400px;
  background: linear-gradient(180deg, rgba(255,255,255,.12) 0%, rgba(255,255,255,.05) 48%, rgba(0,0,0,.15) 52%, rgba(255,255,255,.03) 100%);
  box-shadow: 0 16px 30px -12px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.15);
}
.countdown__box:nth-child(odd)  { border: 2px solid rgba(11,138,92,.55); }
.countdown__box:nth-child(even) { border: 2px solid rgba(106,47,201,.6); }
.countdown__box::after {          /* "flip" linija */
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 43%;
  height: 2px;
  background: rgba(0,0,0,.35);
  box-shadow: 0 1px 0 rgba(255,255,255,.07);
}
.countdown__num {
  display: block;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.7rem, 9vw, 4.4rem);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  background-size: 260% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  transform-origin: 50% 50%;
}
.countdown__box:nth-child(odd)  .countdown__num { background-image: var(--foil-green); }
.countdown__box:nth-child(even) .countdown__num { background-image: var(--foil-purple); }
.countdown__num.flip { animation: flip 0.55s cubic-bezier(0.3, 1.4, 0.5, 1); }
@keyframes flip {
  0%   { transform: rotateX(-90deg); opacity: 0; }
  100% { transform: rotateX(0); opacity: 1; }
}
.countdown__label { margin-top: 0.5rem; font-size: 1.1rem; font-weight: 700; color: var(--pearl-dim); }
.countdown__done {
  text-align: center;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 2rem;
  color: var(--gold);
}

/* ---------------- DRESS CODE ---------------- */
.dresscode { text-align: center; }
.dresscode__lead { font-size: clamp(1.3rem, 4.4vw, 1.6rem); margin-bottom: 2rem; }

.swatches {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem;
  max-width: 600px;
  margin: 0 auto 2.2rem;
}
.swatch { display: flex; flex-direction: column; align-items: center; gap: 0.4rem; }
.swatch__chip {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1.2;
  border-radius: 26px;
  overflow: hidden;
}
/* saten: nabori + odsjaj */
.swatch--green .swatch__chip {
  background:
    repeating-linear-gradient(100deg, rgba(255,255,255,.07) 0 3px, transparent 3px 14px),
    radial-gradient(120% 90% at 20% 10%, #3fcf93 0%, #0b8a5c 35%, #055c3d 70%, #022016 100%);
  box-shadow: 0 20px 44px -10px rgba(11,138,92,.6), inset 0 0 40px rgba(0,0,0,.3);
}
.swatch--purple .swatch__chip {
  background:
    repeating-linear-gradient(100deg, rgba(255,255,255,.07) 0 3px, transparent 3px 14px),
    radial-gradient(120% 90% at 20% 10%, #9466f0 0%, #5a26b8 35%, #3d138c 65%, #16052f 100%);
  box-shadow: 0 20px 44px -10px rgba(106,47,201,.65), inset 0 0 40px rgba(0,0,0,.3);
}
.swatch__chip::after {
  content: "";
  position: absolute;
  inset: -50%;
  background: linear-gradient(115deg, transparent 40%, rgba(255,255,255,.5) 50%, transparent 60%);
  animation: satin 4.5s ease-in-out infinite;
}
.swatch--purple .swatch__chip::after { animation-delay: -2.2s; }
@keyframes satin { 0% { transform: translateX(-45%); } 60%, 100% { transform: translateX(45%); } }

/* etiketa */
.swatch__tag {
  position: absolute;
  z-index: 1;
  right: 12px;
  top: 12px;
  padding: 0.3rem 0.9rem 0.3rem 1.4rem;
  border-radius: 6px 12px 12px 6px;
  font-family: var(--font-script);
  font-size: 1.5rem;
  line-height: 1.2;
  color: #2b1846;
  background: var(--pearl);
  box-shadow: 0 6px 14px rgba(0,0,0,.3);
  transform-origin: 100% 0;
  animation: swing 3.5s ease-in-out infinite;
}
.swatch__tag::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 50%;
  width: 7px;
  height: 7px;
  margin-top: -3.5px;
  border-radius: 50%;
  background: rgba(0,0,0,.25);
}
.swatch--purple .swatch__tag { animation-delay: -1.7s; }
@keyframes swing { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(4deg); } }

.swatch__name { margin-top: 0.4rem; font-family: var(--font-display); font-weight: 900; font-size: 1.7rem; }
.swatch--green  .swatch__name { color: var(--mint); }
.swatch--purple .swatch__name { color: var(--lilac); }
.swatch__who { font-size: 1.05rem; color: var(--pearl-dim); font-style: italic; }

.dresscode__ideas-title { font-weight: 800; margin-bottom: 0.9rem; }
.ideas {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}
.ideas li {
  padding: 0.6rem 1.25rem;
  border-radius: 999px;
  font-size: 1.15rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(253, 238, 201, 0.25);
  transition: transform 0.25s ease, background 0.25s ease;
}
.ideas li:hover { transform: translateY(-4px); background: rgba(255,255,255,.14); }

/* ---------------- ULAZNICA ---------------- */
.ticket-shadow {
  filter: drop-shadow(0 30px 40px rgba(0,0,0,.55)) drop-shadow(0 0 40px rgba(106,47,201,.25));
}
.ticket {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 1fr 210px;
  max-width: 760px;
  margin: 0 auto;
  border-radius: 26px;
  /* izrezani polukrugovi na ivicama perforacije */
  -webkit-mask:
    radial-gradient(circle 20px at calc(100% - 210px) 0, transparent 98%, #000) top / 100% 51% no-repeat,
    radial-gradient(circle 20px at calc(100% - 210px) 100%, transparent 98%, #000) bottom / 100% 51% no-repeat;
  mask:
    radial-gradient(circle 20px at calc(100% - 210px) 0, transparent 98%, #000) top / 100% 51% no-repeat,
    radial-gradient(circle 20px at calc(100% - 210px) 100%, transparent 98%, #000) bottom / 100% 51% no-repeat;
}
.ticket__main {
  position: relative;
  padding: 2.2rem 2rem 2.2rem 2.4rem;
  border-radius: 26px 0 0 26px;
  color: #22113a;
  background:
    radial-gradient(circle at 0% 0%, rgba(11,138,92,.25), transparent 45%),
    radial-gradient(circle at 100% 100%, rgba(106,47,201,.28), transparent 45%),
    repeating-linear-gradient(45deg, rgba(43,24,70,.035) 0 10px, transparent 10px 20px),
    var(--pearl);
}
.ticket__main::before {               /* zlatni okvir */
  content: "";
  position: absolute;
  inset: 12px;
  border: 2px solid rgba(169,123,51,.45);
  border-radius: 18px 0 0 18px;
  border-right: 0;
  pointer-events: none;
}
.ticket__label {
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.ticket__big {
  display: table;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.8rem, 9vw, 4rem);
  line-height: 1.05;
  margin: 0.2rem 0 0.6rem;
  background: linear-gradient(90deg, #055c3d, #0b8a5c 45%, #4f1ea8 55%, #3d138c);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.ticket__text { font-size: clamp(1.2rem, 4vw, 1.4rem); line-height: 1.5; }
.ticket__text .txt-green  { color: #058a5b; }
.ticket__text .txt-purple { color: #6a26d9; }
.ticket__note { margin-top: 0.9rem; font-size: 1.05rem; color: #5a4a6e; font-style: italic; }

.ticket__stub {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 1.4rem 1rem;
  border-radius: 0 26px 26px 0;
  background:
    radial-gradient(circle at 50% 30%, rgba(255,255,255,.18), transparent 60%),
    linear-gradient(160deg, #076b47 0%, #1d2f5c 50%, #4f1ea8 100%);
  border-left: 3px dashed rgba(255,248,238,.6);
}
.ticket__stub svg { position: absolute; width: 74px; top: 14%; }
.ticket__balloon--green  { left: 18%; animation: tBob 3.4s ease-in-out infinite; transform-origin: 50% 100%; }
.ticket__balloon--purple { right: 18%; animation: tBob 3.4s ease-in-out -1.7s infinite; transform-origin: 50% 100%; top: 9% !important; }
@keyframes tBob {
  0%, 100% { transform: translateY(0) rotate(-6deg); }
  50%      { transform: translateY(-10px) rotate(6deg); }
}
.ticket__admit {
  position: relative;
  margin-top: auto;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.1rem;
  letter-spacing: 0.3em;
  line-height: 1.2;
  text-align: center;
  color: var(--pearl);
}
.ticket__admit span { font-size: 2rem; letter-spacing: 0.05em; color: var(--champagne); }

/* ---------------- KRAJ ---------------- */
.finale {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  text-align: center;
  padding: 2rem 0 1rem;
}
.finale__title {
  font-family: var(--font-script);
  font-weight: 400;
  font-size: clamp(4.6rem, 18vw, 8.5rem);
  line-height: 1.15;
  padding: 0 0.15em;
  background-image: var(--holo);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: foil 5s ease-in-out infinite alternate;
  filter: drop-shadow(0 0 26px rgba(236, 199, 125, 0.35));
}
.finale__text { font-size: clamp(1.35rem, 4.6vw, 1.7rem); }
.finale__sign { font-family: var(--font-script); font-size: 2.4rem; color: var(--champagne); margin-bottom: 1rem; }
.finale__hint { margin-top: 0.8rem; font-size: 1.1rem; color: var(--pearl-dim); }
.finale__foot {
  margin-top: 2.2rem;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(253,238,201,.6);
}

/* =========================================================
   BALONI (SVG)
   ========================================================= */
.balloons {
  position: fixed;
  inset: 0;
  z-index: 5;
  overflow: hidden;
  pointer-events: none;
}
.balloon {
  position: absolute;
  left: var(--x);
  bottom: 0;
  width: var(--size);
  pointer-events: auto;
  cursor: pointer;
  animation: rise var(--dur) linear var(--delay, 0s) both;
  will-change: transform;
  -webkit-tap-highlight-color: transparent;
}
@keyframes rise {
  from { transform: translateY(110%); }
  to   { transform: translateY(calc(-100vh - 110%)); }
}
.balloon__inner {
  transform-origin: 50% 100%;
  animation: sway var(--sway, 3s) ease-in-out infinite alternate;
}
@keyframes sway {
  from { transform: translateX(-16px) rotate(-7deg); }
  to   { transform: translateX(16px) rotate(7deg); }
}
.balloon svg { display: block; width: 100%; height: auto; overflow: visible; }
.balloon__body, .balloon__string { transform-box: fill-box; }
.balloon__body { filter: drop-shadow(0 12px 18px rgba(0,0,0,.3)); transform-origin: 50% 40%; }
.balloon__string { transform-origin: 50% 0; animation: wiggle 1.8s ease-in-out infinite alternate; }
@keyframes wiggle { from { transform: rotate(-4deg); } to { transform: rotate(4deg); } }

.balloon.is-popped { pointer-events: none; }
.balloon.is-popped .balloon__body   { animation: pop 0.24s ease-out forwards; }
.balloon.is-popped .balloon__string { animation: fall 0.9s ease-in forwards; }
@keyframes pop {
  0%   { transform: scale(1); opacity: 1; }
  50%  { transform: scale(1.35); opacity: .8; }
  100% { transform: scale(1.7); opacity: 0; }
}
@keyframes fall { to { transform: translateY(160px) rotate(40deg); opacity: 0; } }

/* =========================================================
   KALENDAR – prozorčić
   ========================================================= */
.modal {
  margin: auto;
  width: min(92vw, 480px);
  padding: 2rem 1.5rem;
  border: 0;
  border-radius: var(--radius);
  color: var(--pearl);
  text-align: center;
  background:
    radial-gradient(circle at 0 0, rgba(11,138,92,.25), transparent 45%),
    radial-gradient(circle at 100% 100%, rgba(106,47,201,.3), transparent 45%),
    linear-gradient(160deg, #24103e, #0d241c);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6), 0 0 0 2px rgba(236, 199, 125, 0.35);
}
.modal[open] { animation: modalIn 0.4s cubic-bezier(0.2, 0.9, 0.2, 1.2); }
.modal::backdrop { background: rgba(6, 3, 12, 0.78); -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); }
@keyframes modalIn { from { opacity: 0; transform: translateY(30px) scale(0.94); } }

.modal__title { font-family: var(--font-display); font-size: 1.9rem; line-height: 1.2; margin-bottom: 0.5rem; }
.modal__text { color: var(--pearl-dim); margin-bottom: 1.4rem; }
.modal__actions { display: flex; flex-direction: column; gap: 0.9rem; }
.modal__actions .btn { width: 100%; }

/* poruka */
.toast {
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  z-index: 120;
  max-width: min(92vw, 520px);
  padding: 1rem 1.5rem;
  border-radius: 18px;
  font-size: 1.15rem;
  font-weight: 800;
  text-align: center;
  color: #1a0d2b;
  background: var(--foil-gold);
  background-size: 200% 100%;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  transform: translate(-50%, 150%);
  opacity: 0;
  transition: transform 0.45s cubic-bezier(0.2, 0.9, 0.2, 1.2), opacity 0.4s ease;
  pointer-events: none;
}
.toast.is-shown { transform: translate(-50%, 0); opacity: 1; }

/* =========================================================
   MOBILNI
   ========================================================= */
@media (max-width: 720px) {
  .duo__grid { grid-template-columns: 1fr; gap: 0; }
  .duo__plus { display: grid; place-items: center; margin: -1.2rem 0; position: relative; z-index: 2; }
  .actions .btn { width: 100%; }

  .ticket {
    grid-template-columns: 1fr;
    grid-template-rows: auto 190px;
    -webkit-mask:
      radial-gradient(circle 20px at 0 calc(100% - 190px), transparent 98%, #000) left / 51% 100% no-repeat,
      radial-gradient(circle 20px at 100% calc(100% - 190px), transparent 98%, #000) right / 51% 100% no-repeat;
    mask:
      radial-gradient(circle 20px at 0 calc(100% - 190px), transparent 98%, #000) left / 51% 100% no-repeat,
      radial-gradient(circle 20px at 100% calc(100% - 190px), transparent 98%, #000) right / 51% 100% no-repeat;
  }
  .ticket__main { border-radius: 26px 26px 0 0; padding: 2rem 1.5rem; }
  .ticket__main::before { border-radius: 18px 18px 0 0; border-right: 2px solid rgba(169,123,51,.45); border-bottom: 0; }
  .ticket__stub { border-radius: 0 0 26px 26px; border-left: 0; border-top: 3px dashed rgba(255,248,238,.6); }
  .ticket__stub svg { width: 64px; top: 10%; }
  .ticket__balloon--green  { left: 24%; }
  .ticket__balloon--purple { right: 24%; top: 6% !important; }
}

@media (max-width: 520px) {
  .invite { padding-left: 0.7rem; padding-right: 0.7rem; }
  .card { padding: 1.6rem 1rem; border-radius: 24px; }
  .btn { padding: 0.85rem 1.2rem; }
  .countdown__grid { grid-template-columns: repeat(2, 1fr); }
  .info__row { grid-template-columns: 52px 1fr; padding: 0.85rem 0.8rem; gap: 0.8rem; }
  .info__icon { width: 52px; height: 52px; border-radius: 16px; }
  .info__icon svg { width: 28px; height: 28px; }
  .info__value { font-size: 1.35rem; }
  .swatches { gap: 0.8rem; }
  .swatch__name { font-size: 1.4rem; }
  .swatch__tag { font-size: 1.2rem; right: 8px; top: 8px; }
  .ribbon__track { font-size: 1.2rem; }
  .ribbons { height: 120px; }
}

/* =========================================================
   DODACI: datum u naslovu, razdelnici, broj ulaznice
   ========================================================= */
.hero__date {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.4rem 0.8rem;
  margin-top: 1rem;
  padding: 0.7rem 1.6rem;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.2rem, 4.2vw, 1.5rem);
  color: var(--champagne);
  background: linear-gradient(90deg, rgba(11,138,92,.35), rgba(20,10,35,.6) 50%, rgba(106,47,201,.4));
  border: 1.5px solid rgba(236, 199, 125, 0.55);
  box-shadow: 0 12px 30px -12px rgba(0,0,0,.7), inset 0 1px 0 rgba(255,255,255,.12);
}
.hero__date i { font-style: normal; font-size: 0.75em; color: var(--gold); }
@media (max-width: 520px) {
  .hero__date { flex-wrap: nowrap; white-space: nowrap; gap: 0.45rem; padding: 0.6rem 1.05rem; font-size: 1.05rem; }
}

.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  margin: -1.5rem auto;
  width: min(80%, 420px);
}
.divider span { flex: 1; height: 1.5px; background: linear-gradient(90deg, transparent, rgba(236,199,125,.7)); }
.divider span:last-child { transform: scaleX(-1); }
.divider i { width: 9px; height: 9px; border-radius: 50%; }
.divider i:first-of-type { background: #17a873; box-shadow: 0 0 10px rgba(23,168,115,.8); }
.divider i:last-of-type  { background: #7a42d6; box-shadow: 0 0 10px rgba(122,66,214,.8); }
.divider b {
  width: 14px;
  height: 14px;
  background: linear-gradient(135deg, #fff3d4, var(--gold) 50%, var(--gold-deep));
  transform: rotate(45deg);
  box-shadow: 0 0 14px rgba(236,199,125,.6);
}

.ticket__no {
  position: absolute;
  top: 1.4rem;
  right: 1.6rem;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.05rem;
  letter-spacing: 0.12em;
  color: rgba(169, 123, 51, 0.75);
}
.ticket__label { padding-right: 4.5rem; }

/* kartice: tanka zlatna linija iznutra */
.card { box-shadow: 0 40px 80px -24px rgba(0,0,0,.7), inset 0 1px 0 rgba(255,255,255,.1), inset 0 0 0 1px rgba(236,199,125,.07); }

/* =========================================================
   BEZ POMERANJA LEVO-DESNO NA TELEFONU
   ========================================================= */
/* trake i orbite oko 99 ne smeju da izađu van ekrana */
.ribbons { overflow: hidden; }
.hero { overflow: hidden; }
@supports (overflow: clip) {
  html, body { overflow-x: clip; }
  .hero { overflow: visible; overflow-x: clip; }
}
/* prst može da skroluje samo gore-dole (zumiranje i dalje radi) */
html, body { touch-action: pan-y pinch-zoom; }

/* sloj za glatko pomeranje */
.nine, .balloon, .stage__halo, .stage__orbit i, .ribbon__track { will-change: transform; }

/* animacije van ekrana miruju (štedi bateriju i procesor) */
.is-paused,
.is-paused *,
.is-paused *::before,
.is-paused *::after { animation-play-state: paused !important; }

/* =========================================================
   LAKI REŽIM – telefoni i slabiji uređaji
   Izgleda skoro isto, ali bez najskupljih efekata.
   ========================================================= */
html.lite body::after { display: none; }                       /* bez zrnaste teksture */
html.lite .aurora span { animation: none; will-change: auto; }  /* svetla miruju */
html.lite .aurora span:nth-child(n+4) { display: none; }
html.lite .vignette { display: none; }

/* bez zamućenog stakla – umesto njega gušća pozadina */
html.lite .card {
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  background:
    radial-gradient(120% 80% at 0% 0%, rgba(11,138,92,.18), transparent 50%),
    radial-gradient(120% 80% at 100% 100%, rgba(106,47,201,.22), transparent 50%),
    linear-gradient(160deg, #1f0d36 0%, #120a22 50%, #08201a 100%);
}
html.lite .modal::backdrop { -webkit-backdrop-filter: none; backdrop-filter: none; }

/* rub kartica stoji (ne vrti se) */
html.lite .card::before {
  animation: none;
  background: linear-gradient(135deg, rgba(23,168,115,.9), transparent 30%, rgba(236,199,125,.7) 50%, transparent 70%, rgba(122,66,214,.95));
}

/* sjaj folije bez stalnog preračunavanja */
html.lite .eyebrow,
html.lite .section-title em,
html.lite .person__color,
html.lite .hero__title,
html.lite .finale__title,
html.lite .nine__face { animation: none; background-position: 50% 0; }
html.lite .intro__hello { animation: fadeDown 1s ease both; background-position: 50% 0; }
html.lite .hero__names.is-visible .name { animation: write 1.9s cubic-bezier(0.6, 0.1, 0.3, 1) forwards; background-position: 50% 0; }
html.lite .hero__names.is-visible .name--purple { animation-delay: 0.9s; }
html.lite .name,
html.lite .hero__title,
html.lite .finale__title,
html.lite .person__name { filter: none; }

/* oreol iza 99 bez zamućenja */
html.lite .stage__halo {
  filter: none;
  animation: none;
  width: 90%;
  opacity: 1;
  background: radial-gradient(circle, rgba(236,199,125,.28) 0%, rgba(106,47,201,.28) 30%, rgba(11,138,92,.2) 50%, transparent 70%);
}
html.lite .envelope__glow { filter: none; animation: none; }
html.lite .intro__rays { animation: none; }

/* dugmad: bez preračunavanja pozadine i senke */
html.lite .btn { animation: none; }
html.lite .btn--pulse { animation: pulseScale 2.2s ease-in-out infinite; }
@keyframes pulseScale { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } }

/* baloni, zvezdice i ulaznica bez skupih senki */
html.lite .balloon__body { filter: none; }
html.lite .sparkle { box-shadow: none; }
html.lite .ticket-shadow { filter: none; }
html.lite .ticket { box-shadow: none; }
html.lite .info__row:hover { transform: none; }

/* manje pokreta za one kojima to smeta */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.2s !important;
  }
  .balloon { animation-duration: var(--dur) !important; }
  .name { clip-path: none; }
  .reveal { transform: none; }
}
