/* ==========================================================================
   Tap2Memo – pozivnica za goste (mobile-first)
   Izgled "papirnate pozivnice": krem/pijesak papir, zlatna folija (tanke linije, monogram,
   kutni ukrasi), tekst u tamnom vinu / tinti, nježni puder i višnja naglasci, botaničke linijske ilustracije.
   Tema po događaju: body[data-theme="wedding" | "christening"] (vidi events.js → theme).
   Omotnica koja se otvara scrollanjem: .opener (+ js/opener.js).
   ========================================================================== */

/* ---------- TEMA ---------- */
body.inv {
  --col: 560px; --pad: 1.25rem; --nav-h: 62px; --bar-h: 52px;
  --serif: var(--t2m-font-serif);
  --script: "Great Vibes", "Dancing Script", cursive;

  --paper: #faf7f2; --paper-2: #f3ebe2; --paper-3: #ece2d6; --stage: #e5dbcf;
  --ink: #3b1d25; --ink-2: #4a3a36; --brown: #6b5e54; --brown-dark: #2b2118;
  --gold: #a8874a; --gold-dark: #85692f; --gold-2: #e6d3a3; --gold-line: rgba(168, 135, 74, .42); --gold-faint: rgba(168, 135, 74, .18);
  --foil: linear-gradient(135deg, #9a7a3a 0%, #e6d3a3 28%, #c8a560 52%, #f4e8c8 70%, #a8874a 100%);
  --blush: #f3e2de; --rose: #b8616f; --rose-dark: #8c3a4a;
  --seal-hi: #f4e8c8; --seal-mid: #c8a560; --seal-lo: #74592a;
  --env-1: #f7f1e8; --env-2: #ebdfd0; --env-3: #dfd0be;
  --liner-1: #f3e2de; --liner-2: #e8c5c0;
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .42 0 0 0 0 .33 0 0 0 0 .22 0 0 0 .075 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");

  color: var(--ink-2);
  background: var(--grain), var(--paper);
  overflow-x: clip;
  font-variant-numeric: lining-nums;
}
body.inv[data-theme="christening"] {
  --paper: #f8f8f3; --paper-2: #eff2ea; --paper-3: #e6ebe1; --stage: #e2e8de;
  --ink: #2b2118; --ink-2: #4a4239; --brown: #6b6a5e; --brown-dark: #2b2118;
  --gold: #7a8f72; --gold-dark: #5b7056; --gold-2: #c9d3c0; --gold-line: rgba(122, 143, 114, .45); --gold-faint: rgba(122, 143, 114, .2);
  --foil: linear-gradient(135deg, #9a7a3a 0%, #e6d3a3 28%, #c8a560 52%, #f4e8c8 70%, #a8874a 100%);
  --blush: #eef1e8; --rose: #b8616f; --rose-dark: #8c3a4a;
  --seal-hi: #dfe6d6; --seal-mid: #a8b5a0; --seal-lo: #4f5f4a;
  --env-1: #f8f8f2; --env-2: #e6ebdf; --env-3: #d9e1d2;
  --liner-1: #eef1e8; --liner-2: #dfe6d6;
}

body.is-loading { visibility: hidden; }
.ico { width: 1.15em; height: 1.15em; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
h1, h2, h3 { margin: 0; line-height: 1.12; font-weight: 500; }
p { margin: 0; }
.small { font-size: .85rem; }
.inv .muted { color: var(--brown); }
.paper { background: var(--grain), radial-gradient(120% 80% at 50% 0%, #fff 0%, transparent 60%), var(--paper); }

/* ---------- zajednički ukrasi ---------- */
.names { font-family: var(--serif); font-style: italic; font-weight: 500; color: var(--ink); letter-spacing: -.01em; line-height: 1; }
.names em { font-style: italic; font-weight: 400; color: var(--gold); font-size: .72em; padding: 0 .08em; }
.orn-div { width: 150px; height: 15px; color: var(--gold); margin: 0 auto; }
.corner { position: absolute; width: 34px; height: 34px; color: var(--gold); pointer-events: none; }
.corner svg { width: 100%; height: 100%; }
.corner.tl { top: 14px; left: 14px; }
.corner.tr { top: 14px; right: 14px; transform: scaleX(-1); }
.corner.bl { bottom: 14px; left: 14px; transform: scaleY(-1); }
.corner.br { bottom: 14px; right: 14px; transform: scale(-1, -1); }
.mono { position: relative; display: grid; place-items: center; aspect-ratio: 1; }
.mono svg { position: absolute; inset: 0; width: 100%; height: 100%; color: var(--gold); }
.mono span { position: relative; font-family: var(--serif); font-style: italic; font-weight: 500; color: var(--ink); line-height: 1; white-space: nowrap; }
.illu { color: var(--gold); width: 58%; height: 58%; opacity: .8; }
body[data-theme="christening"] .illu-w, body:not([data-theme="christening"]) .illu-d { display: none; }

.hero-eyebrow, .sec-eyebrow { font-family: var(--t2m-font-sans); font-size: .66rem; letter-spacing: .34em; text-transform: uppercase; font-weight: 600; color: var(--gold-dark); }

/* gumbi u stilu pozivnice */
.inv .btn { font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 600; padding: .95rem 1.4rem; gap: .55rem; }
.inv .btn .ico { width: 1.25em; height: 1.25em; }
.inv .btn-lg { padding: 1.1rem 1.8rem; font-size: .78rem; }
.inv .btn-sm { padding: .72rem 1.05rem; font-size: .68rem; letter-spacing: .14em; }
.btn-ink { background: var(--ink); color: #fff; box-shadow: 0 12px 26px -10px rgba(59, 29, 37, .55); }
.btn-ink:hover { background: var(--t2m-blue-dark); }
.btn-line { background: rgba(255, 255, 255, .55); color: var(--ink); border: 1px solid var(--gold-line) !important; }
.btn-line:hover { background: #fff; border-color: var(--gold) !important; }
.inv .btn-gold { background: var(--foil); color: var(--ink); }
.inv .btn-ghost { background: var(--paper-2); color: var(--ink); border: 1px solid var(--gold-line); }
.inv .icon-circle { background: var(--paper); border: 1px solid var(--gold-line); color: var(--gold); border-radius: 50%; }
.inv .icon-circle svg { stroke-width: 1.5; }
.inv .badge { background: transparent; border: 1px solid var(--gold-line); color: var(--gold-dark); font-size: .56rem; letter-spacing: .2em; padding: .28rem .6rem; }

/* ---------- GATE ---------- */
.gate { min-height: 100vh; min-height: 100svh; display: grid; place-items: center; padding: 1.25rem; background: var(--grain), radial-gradient(80% 60% at 50% 30%, rgba(255,255,255,.55), transparent 70%), var(--stage); }
.gate-card { position: relative; width: min(420px, 100%); padding: 2.4rem 1.6rem 0; text-align: center; border: 1px solid var(--gold-line); border-radius: 4px; box-shadow: 0 40px 70px -30px rgba(79, 61, 46, .45), 0 4px 14px rgba(79, 61, 46, .08); }
.gate-card::before { content: ""; position: absolute; inset: 8px; border: 1px solid var(--gold-faint); pointer-events: none; }
.gate-cover { width: 138px; height: 172px; margin: .4rem auto 0; display: grid; place-items: center; border-radius: 999px 999px 6px 6px; background: linear-gradient(170deg, var(--blush), var(--paper-2)); outline: 1px solid var(--gold-line); outline-offset: 5px; }
.gate-cover.has-img { background-image: var(--cover); background-size: cover; background-position: center; }
.gate-cover.has-img .illu { display: none; }
.gate-cover-inner { display: grid; gap: .45rem; justify-items: center; margin-top: 1.5rem; }
.gate-cover-inner .names { font-size: clamp(2.3rem, 11vw, 2.9rem); }
.gate-date { font-size: .72rem; letter-spacing: .24em; text-transform: uppercase; color: var(--ink-2); }
.gate-body { padding: 1.3rem 0 1.5rem; display: grid; gap: .9rem; justify-items: center; }
.gate-lead { font-family: var(--serif); font-style: italic; font-size: 1.1rem; line-height: 1.45; color: var(--ink-2); max-width: 22rem; }
.gate-body h2 { font-size: 1.6rem; }
#gate-form { width: 100%; display: grid; gap: .7rem; margin-top: .2rem; }
#gate-code { width: 100%; text-align: center; font-size: 1.05rem; font-weight: 600; letter-spacing: .3em; padding: .95rem 1rem; border: 1px solid var(--gold-line); border-radius: 999px; background: rgba(255, 255, 255, .7); text-transform: uppercase; color: var(--ink); }
#gate-code::placeholder { color: #a8998a; letter-spacing: .24em; }
#gate-code:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px var(--gold-faint); }
#gate-code.shake { animation: shake .4s; border-color: var(--rose); }
@keyframes shake { 0%,100% { translate: 0; } 20%,60% { translate: -6px; } 40%,80% { translate: 6px; } }
.gate-error { color: var(--rose-dark); font-weight: 600; font-size: .85rem; }
.gate-hint { display: flex; gap: .5rem; align-items: flex-start; text-align: left; color: var(--brown); }
.gate-hint .ico { color: var(--rose); margin-top: .15rem; }
.powered { text-align: center; font-size: .7rem; color: var(--brown); padding: .85rem; margin: 0 -1.6rem; border-top: 1px solid var(--gold-faint); letter-spacing: .04em; }
.powered b { color: var(--ink); font-weight: 700; }
.powered b span { color: var(--t2m-blue); }

/* ---------- TOPBAR + GLAZBA ---------- */
.topbar { position: fixed; top: 0; left: 0; right: 0; z-index: 40; height: calc(var(--bar-h) + env(safe-area-inset-top)); padding: env(safe-area-inset-top) 60px 0 .9rem; display: flex; align-items: center; gap: .7rem;
  background: rgba(250, 247, 242, .86); backdrop-filter: blur(12px) saturate(1.1); -webkit-backdrop-filter: blur(12px) saturate(1.1); border-bottom: 1px solid var(--gold-faint);
  transform: translateY(-105%); transition: transform .5s cubic-bezier(.2,.7,.2,1); }
body[data-theme="christening"] .topbar { background: rgba(248, 248, 243, .86); }
body.is-opened .topbar { transform: none; }
.tb-mono { width: 34px; height: 34px; flex: 0 0 auto; border-radius: 50%; border: 1px solid var(--gold-line); display: grid; place-items: center; font-family: var(--serif); font-style: italic; font-weight: 600; font-size: .92rem; color: var(--gold-dark); letter-spacing: -.03em; }
.topbar-title { flex: 1; min-width: 0; font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 1.2rem; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.music-btn { position: fixed; z-index: 45; top: calc(6px + env(safe-area-inset-top)); right: 10px; width: 40px; height: 40px; border-radius: 50%; padding: 0; display: grid; place-items: center;
  background: var(--paper); border: 1px solid var(--gold-line); color: var(--gold-dark); box-shadow: 0 6px 16px -6px rgba(79, 61, 46, .45);
  opacity: 0; transform: scale(.8); transition: opacity .4s, transform .4s cubic-bezier(.2,.7,.2,1); }
.music-btn.in { opacity: 1; transform: none; }
.music-btn .mb-note { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; }
.music-btn .mb-ring { position: absolute; inset: -5px; border-radius: 50%; border: 1px dashed var(--gold-line); opacity: 0; transition: opacity .3s; }
.music-btn .mb-bars { display: none; gap: 2.5px; align-items: flex-end; height: 16px; }
.music-btn .mb-bars i { display: block; width: 2.5px; height: 16px; border-radius: 2px; background: currentColor; transform-origin: 50% 100%; animation: eq 1s ease-in-out infinite; }
.music-btn .mb-bars i:nth-child(2) { animation-delay: -.35s; animation-duration: .8s; }
.music-btn .mb-bars i:nth-child(3) { animation-delay: -.6s; animation-duration: 1.15s; }
.music-btn .mb-bars i:nth-child(4) { animation-delay: -.15s; animation-duration: .9s; }
.music-btn.is-playing .mb-bars { display: flex; }
.music-btn.is-playing .mb-note { display: none; }
.music-btn.is-playing .mb-ring { opacity: 1; animation: spin 9s linear infinite; }
.music-btn:not(.is-playing)::after { content: ""; position: absolute; width: 22px; height: 1.5px; background: currentColor; transform: rotate(-45deg); border-radius: 2px; opacity: .8; }
.music-btn.is-waiting::after { display: none; }
.music-btn.is-waiting .mb-ring { opacity: 1; border-style: solid; animation: ping 1.8s ease-out infinite; }
@keyframes eq { 0%, 100% { transform: scaleY(.25); } 50% { transform: scaleY(1); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes ping { 0% { transform: scale(.9); opacity: .9; } 100% { transform: scale(1.35); opacity: 0; } }
.music-cap { position: fixed; z-index: 45; top: calc(54px + env(safe-area-inset-top)); right: 10px; display: flex; align-items: center; gap: .6rem; padding: .55rem .9rem .55rem .7rem; border-radius: 999px;
  background: var(--paper); border: 1px solid var(--gold-line); box-shadow: 0 10px 24px -10px rgba(79, 61, 46, .45); opacity: 0; transform: translateY(-6px); transition: opacity .45s, transform .45s; pointer-events: none; }
.music-cap.show { opacity: 1; transform: none; }
.music-cap .mc-note { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--foil); color: var(--ink); font-size: .85rem; }
.music-cap b { display: block; font-family: var(--serif); font-style: italic; font-weight: 600; font-size: 1rem; color: var(--ink); line-height: 1.1; }
.music-cap small { display: block; font-size: .6rem; letter-spacing: .2em; text-transform: uppercase; color: var(--brown); }

/* ---------- OMOTNICA (opener) ---------- */
.opener { position: relative; height: 290vh; height: 290svh; }
.op-stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; isolation: isolate;
  background: var(--grain), radial-gradient(70% 55% at 50% 45%, rgba(255, 255, 255, .6), transparent 75%), var(--stage); }
.op-anchor { position: absolute; left: 0; right: 0; bottom: 0; height: 100vh; height: 100svh; pointer-events: none; }
.op-bg { position: absolute; inset: 0; pointer-events: none; }
.op-deco { position: absolute; width: 150px; height: 250px; color: var(--gold); opacity: .38; }
.op-deco.tl { top: -40px; left: -34px; transform: rotate(140deg); }
.op-deco.br { bottom: -40px; right: -34px; transform: rotate(-40deg); }
.op-top { position: absolute; z-index: 8; left: 0; right: 0; top: calc(50% - var(--envW) * .66 - 5.4rem); display: grid; justify-items: center; gap: .2rem; text-align: center; pointer-events: none; }
.op-top span { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 1.7rem; color: var(--ink); line-height: 1.05; }
.op-top small { font-size: .62rem; letter-spacing: .34em; text-transform: uppercase; color: var(--gold-dark); }
.op-hint { position: absolute; z-index: 8; left: 0; right: 0; bottom: calc(18px + env(safe-area-inset-bottom)); display: grid; justify-items: center; gap: .3rem; font-size: .62rem; letter-spacing: .24em; text-transform: uppercase; color: var(--brown); text-align: center; padding: 0 1rem; pointer-events: none; }
.op-hint .ico { width: 20px; height: 20px; color: var(--gold); animation: nudge 1.8s ease-in-out infinite; }
@keyframes nudge { 0%, 100% { transform: translateY(0); opacity: .6; } 50% { transform: translateY(5px); opacity: 1; } }

.env { --envW: min(74vw, 330px, 42vh); position: absolute; z-index: 3; width: var(--envW); aspect-ratio: 100 / 132; left: calc(50% - var(--envW) / 2); top: calc(52% - var(--envW) * .66); perspective: 1500px; }
@supports (height: 1svh) { .env { --envW: min(74vw, 330px, 42svh); } }
.op-top { --envW: min(74vw, 330px, 42vh); }
@supports (height: 1svh) { .op-top { --envW: min(74vw, 330px, 42svh); } }
.env-shadow, .env-back, .env-card, .env-front, .env-seal, .seal-half { will-change: transform, opacity; }
.env-flap { will-change: transform; }
.env-shadow { position: absolute; inset: 0; z-index: 0; border-radius: 6px; box-shadow: 0 46px 70px -28px rgba(79, 61, 46, .55), 0 10px 22px -6px rgba(79, 61, 46, .22); }
.env-back { position: absolute; inset: 0; z-index: 1; border-radius: 6px; background: linear-gradient(180deg, var(--env-3), var(--env-2)); }
.env-card { position: absolute; z-index: 2; left: 5%; top: 3.5%; width: 90%; height: 93%; container-type: inline-size; border-radius: 3px; transform-origin: 50% 50%;
  background: var(--grain), radial-gradient(120% 70% at 50% 0%, #fff, transparent 70%), var(--paper); box-shadow: 0 1px 6px rgba(79, 61, 46, .18); }
.ec-frame { position: absolute; inset: 5cqw; border: 1px solid var(--gold-line); display: grid; place-content: center; justify-items: center; gap: 3.2cqw; text-align: center; padding: 4cqw; }
.ec-frame::before { content: ""; position: absolute; inset: 1.8cqw; border: 1px solid var(--gold-faint); }
.ec-eyebrow { font-size: 3.1cqw; letter-spacing: .34em; text-transform: uppercase; color: var(--gold-dark); font-weight: 600; }
.env-card .mono { width: 34cqw; }
.env-card .mono span { font-size: 10.5cqw; color: var(--gold-dark); }
.ec-names { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 11.5cqw; line-height: 1.02; color: var(--ink); }
.ec-names em { color: var(--gold); font-weight: 400; font-size: .72em; }
.ec-div { width: 52cqw; height: 5.2cqw; color: var(--gold); }
.ec-date { font-size: 3.3cqw; letter-spacing: .26em; text-transform: uppercase; color: var(--ink-2); }

.env-front { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.env-front svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 -1px 1.5px rgba(79, 61, 46, .14)); }
.ef-side { fill: url(#g-env-side); stroke: rgba(138, 111, 85, .2); stroke-width: .8; vector-effect: non-scaling-stroke; }
.ef-side.r { fill: url(#g-env-side-r); }
.ef-bottom { fill: url(#g-env-bottom); stroke: rgba(138, 111, 85, .24); stroke-width: .8; vector-effect: non-scaling-stroke; }
.env-to { position: absolute; left: 0; right: 0; bottom: 11%; text-align: center; font-family: var(--script); font-size: calc(var(--envW) * .095); color: var(--brown-dark); opacity: .78; line-height: 1; }
.env-flap { position: absolute; z-index: 5; left: 0; top: 0; width: 100%; height: 56%; transform-origin: 50% 0; transform-style: preserve-3d; }
.flap-out, .flap-in { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.flap-out svg, .flap-in svg { width: 100%; height: 100%; overflow: visible; }
.flap-out path { fill: url(#g-flap); stroke: rgba(138, 111, 85, .22); stroke-width: .8; vector-effect: non-scaling-stroke; }
.flap-out svg { filter: drop-shadow(0 4px 4px rgba(79, 61, 46, .16)); }
.flap-in { transform: rotateX(180deg); }
.flap-in svg { transform: scaleY(-1); } /* nakon dvostrukog okretanja vrh preklopa gleda prema gore */
.flap-in path { fill: url(#g-liner); }
.flap-in .fl-line { fill: none; stroke: var(--gold-line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.env-hit { position: absolute; inset: 0; z-index: 4; border: 0; padding: 0; background: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.env-seal { --s: calc(var(--envW) * .25); position: absolute; z-index: 7; width: var(--s); height: var(--s); left: calc(50% - var(--s) / 2); top: calc(var(--envW) * 1.32 * .535 - var(--s) / 2);
  border: 0; padding: 0; background: none; cursor: pointer; border-radius: 50%; filter: drop-shadow(0 5px 6px rgba(70, 48, 12, .35)); -webkit-tap-highlight-color: transparent; }
.env-seal:focus-visible { box-shadow: 0 0 0 4px var(--gold-faint); }
.seal-half { position: absolute; inset: 0; display: grid; place-items: center; }
.seal-half svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.seal-l { clip-path: polygon(0 0, 53% 0, 47% 30%, 55% 52%, 46% 74%, 51% 100%, 0 100%); }
.seal-r { clip-path: polygon(53% 0, 100% 0, 100% 100%, 51% 100%, 46% 74%, 55% 52%, 47% 30%); }
.seal-mono { position: relative; font-family: var(--serif); font-style: italic; font-weight: 600; font-size: calc(var(--envW) * .078); color: var(--seal-lo); letter-spacing: -.03em; line-height: 1;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .5), 0 -1px 0 rgba(0, 0, 0, .22); }
.opener.is-anim .env-seal { animation: breathe 2.8s ease-in-out infinite; }
@keyframes breathe { 0%, 100% { scale: 1; } 50% { scale: 1.05; } }

/* otvorena pozivnica */
.op-hero { position: absolute; inset: 0 0 calc(var(--nav-h) + env(safe-area-inset-bottom)) 0; z-index: 2; opacity: 0; pointer-events: none; display: grid; place-items: center; padding: calc(var(--bar-h) + env(safe-area-inset-top) + .6rem) 1.4rem 2.6rem; }
.op-hero::before { content: ""; position: absolute; inset: 9px; border: 1px solid var(--gold-faint); pointer-events: none; }
.op-hero.is-live { pointer-events: auto; }
.hero-inner { position: relative; width: min(520px, 100%); display: grid; justify-items: center; gap: .55rem; text-align: center; will-change: transform; }
.hero-arch { --h: clamp(150px, 31vh, 400px); height: var(--h); width: calc(var(--h) * .8); margin: .45rem 0 .6rem; display: grid; place-items: center; border-radius: 999px 999px 8px 8px;
  background: linear-gradient(170deg, var(--blush), var(--paper-2)); outline: 1px solid var(--gold-line); outline-offset: 6px; box-shadow: 0 24px 40px -22px rgba(79, 61, 46, .55); }
@supports (height: 1svh) { .hero-arch { --h: clamp(150px, 31svh, 400px); } }
.hero-arch.has-img { background-image: var(--cover); background-size: cover; background-position: center 30%; }
.hero-arch.has-img .illu { display: none; }
.hero-inner .names { font-size: clamp(2.7rem, 13vw, 4.4rem); }
.hero-sub { font-family: var(--serif); font-style: italic; font-size: clamp(1.1rem, 4.4vw, 1.35rem); color: var(--ink-2); line-height: 1.35; max-width: 24rem; }
.hero-meta { display: grid; gap: .3rem; font-size: .7rem; letter-spacing: .22em; text-transform: uppercase; color: var(--ink); }
.hero-meta span { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; }
.hero-meta .ico { color: var(--gold); width: 1.3em; height: 1.3em; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .55rem; margin-top: .6rem; }
.hero-down { position: absolute; left: 50%; bottom: 8px; translate: -50% 0; width: 40px; height: 40px; display: grid; place-items: center; color: var(--gold); }
.hero-down .ico { width: 24px; height: 24px; animation: nudge 1.8s ease-in-out infinite; }
body[data-phase="during"] .hero-eyebrow { color: var(--rose-dark); }

/* statično (tijekom/nakon, reduced motion) – odmah otvorena pozivnica */
.opener.is-static { height: auto; }
.opener.is-static .op-stage { position: relative; height: auto; display: grid; }
.opener.is-static .op-anchor { height: 100%; }
.opener.is-static .env, .opener.is-static .op-hint, .opener.is-static .op-top { display: none; }
.opener.is-static .op-hero { position: relative; inset: auto; opacity: 1; pointer-events: auto; min-height: calc(100vh - var(--nav-h)); min-height: calc(100svh - var(--nav-h) - env(safe-area-inset-bottom)); }

/* ---------- SADRŽAJ ---------- */
.side-deco { display: none; }
.content { position: relative; width: min(var(--col), 100%); margin: 0 auto; padding: 3.2rem var(--pad) calc(var(--nav-h) + 3rem + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 3.6rem; }
.card { position: relative; display: grid; gap: 1.3rem; scroll-margin-top: calc(var(--bar-h) + 16px); }
.card.paper { padding: 2.6rem 1.4rem 2.2rem; border: 1px solid var(--gold-line); border-radius: 4px; box-shadow: 0 30px 60px -34px rgba(79, 61, 46, .45); }
.card.paper::before { content: ""; position: absolute; inset: 8px; border: 1px solid var(--gold-faint); pointer-events: none; }
.sec-head { display: grid; justify-items: center; gap: .45rem; text-align: center; }
.sec-title, .card-title { font-family: var(--serif); font-weight: 500; font-size: clamp(2rem, 8vw, 2.55rem); color: var(--ink); line-height: 1.08; letter-spacing: -.005em; }
.sec-head .muted { font-size: .78rem; }
.content > [data-phase] { display: none; }
body[data-phase="before"] .content > [data-phase~="before"], body[data-phase="during"] .content > [data-phase~="during"], body[data-phase="after"] .content > [data-phase~="after"] { display: grid; }

/* redoslijed sekcija po fazi */
body[data-phase="before"] #uspomene { order: 1; }
.foot { order: 2; }
body[data-phase="during"] #uspomene { order: -3; }
body[data-phase="during"] #countdown { order: -2; }
body[data-phase="during"] #knjiga { order: -1; }
body[data-phase="after"] #zahvalnica { order: -3; }
body[data-phase="after"] #uspomene { order: -2; }
body[data-phase="after"] #knjiga { order: -1; }

/* ulazak sekcija pri scrollanju */
.js-reveal .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .9s cubic-bezier(.2, .7, .2, 1); }
.js-reveal .reveal.in { opacity: 1; transform: none; }

/* ---------- PORUKA / ZAHVALNICA ---------- */
.message, .thanks { text-align: center; justify-items: center; }
.msg-sprig { width: 44px; height: 74px; color: var(--gold); opacity: .85; }
.message-text { font-family: var(--serif); font-size: clamp(1.25rem, 5vw, 1.45rem); line-height: 1.6; font-weight: 400; font-style: italic; color: var(--ink-2); white-space: pre-line; max-width: 30rem; }
.message-sign { font-family: var(--script); font-size: 2.6rem; color: var(--gold-dark); line-height: 1.1; margin-top: .2rem; }
.thanks { gap: .9rem; }
.thanks .message-text { font-size: 1.2rem; }

/* ---------- ODBROJAVANJE ---------- */
.countdown { text-align: center; }
.cd-grid { display: grid; grid-template-columns: repeat(4, 1fr); padding: 1.3rem 0 1.1rem; border-top: 1px solid var(--gold-line); border-bottom: 1px solid var(--gold-line); position: relative; }
.cd-grid::before, .cd-grid::after { content: "◆"; position: absolute; left: 50%; translate: -50% -50%; top: 0; font-size: .55rem; color: var(--gold); background: var(--paper); padding: 0 .5rem; line-height: 1; }
.cd-grid::after { top: 100%; }
.cd-grid div { display: grid; gap: .35rem; justify-items: center; }
.cd-grid div + div { border-left: 1px solid var(--gold-faint); }
.cd-grid b { font-family: var(--serif); font-weight: 500; font-size: clamp(2.5rem, 12vw, 3.5rem); color: var(--ink); line-height: 1; font-variant-numeric: lining-nums tabular-nums; }
.cd-grid span { font-size: .58rem; letter-spacing: .28em; text-transform: uppercase; color: var(--gold-dark); font-weight: 600; }
.now-playing { display: grid; gap: .6rem; text-align: left; }
.now-playing .np { display: flex; gap: .9rem; align-items: center; padding: .9rem 1.1rem; border-radius: 6px; background: var(--paper-2); border: 1px solid var(--gold-line); }
.now-playing .np.next { background: transparent; border-style: dashed; }
.now-playing .np .icon-circle { width: 44px; height: 44px; }
.now-playing .np small { display: block; font-size: .58rem; letter-spacing: .24em; text-transform: uppercase; color: var(--gold-dark); font-weight: 600; }
.now-playing .np b { font-family: var(--serif); font-size: 1.3rem; font-weight: 500; color: var(--ink); }
.now-playing .np time { margin-left: auto; font-family: var(--serif); font-size: 1.35rem; color: var(--rose-dark); }
.now-playing .np.next time { color: var(--ink-2); }

/* ---------- NAŠA PRIČA ---------- */
.story-strip { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 calc(var(--pad) * -1); padding: .6rem var(--pad) 1.2rem; scrollbar-width: none; overscroll-behavior-x: contain; }
.story-strip::-webkit-scrollbar { display: none; }
.story-item { flex: 0 0 60%; max-width: 250px; scroll-snap-align: center; display: grid; gap: .7rem; justify-items: center; margin: 0; padding: 0; border: 0; background: none; cursor: zoom-in; text-align: center; }
.story-item:nth-child(even) { margin-top: 2.2rem; }
.story-item .ph { width: 100%; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 4px; background: var(--paper-2); outline: 1px solid var(--gold-line); outline-offset: 5px; box-shadow: 0 20px 36px -22px rgba(79, 61, 46, .6); }
.story-item:nth-child(odd) .ph { border-radius: 999px 999px 4px 4px; }
.story-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.story-item:hover img { transform: scale(1.04); }
.story-item figcaption, .story-item span.cap { font-family: var(--serif); font-style: italic; font-size: 1.05rem; color: var(--ink-2); }

/* ---------- RASPORED ---------- */
.timeline { --tcol: 4.6rem; --dot: 2.6rem; list-style: none; margin: 0; padding: 0; display: grid; gap: 1.6rem; position: relative; }
.timeline::before { content: ""; position: absolute; top: .6rem; bottom: .6rem; left: calc(var(--tcol) + .9rem + var(--dot) / 2); width: 1px; background: linear-gradient(180deg, transparent, var(--gold) 12%, var(--gold) 88%, transparent); opacity: .6; }
.timeline li { display: grid; grid-template-columns: var(--tcol) var(--dot) 1fr; gap: .9rem; align-items: center; position: relative; }
.timeline time { font-family: var(--serif); font-size: 1.55rem; font-weight: 500; color: var(--ink); text-align: right; font-variant-numeric: lining-nums; line-height: 1; }
.timeline .icon-circle { width: var(--dot); height: var(--dot); position: relative; z-index: 1; }
.timeline .icon-circle svg { width: 18px; height: 18px; }
.timeline b { display: block; font-family: var(--serif); font-size: 1.28rem; font-weight: 600; color: var(--ink); line-height: 1.15; }
.timeline span { display: block; color: var(--brown); font-size: .82rem; margin-top: .15rem; }
.timeline li.done { opacity: .5; }
.timeline li.now time { color: var(--rose-dark); }
.timeline li.now .icon-circle { background: var(--foil); color: var(--ink); border-color: transparent; box-shadow: 0 0 0 4px var(--gold-faint); }

/* ---------- LOKACIJE ---------- */
.locations { display: grid; gap: 1.2rem; }
.loc { position: relative; display: grid; gap: .9rem; padding: 1.6rem 1.2rem 1.3rem; text-align: center; border: 1px solid var(--gold-line); border-radius: 4px; background: var(--grain), var(--paper); box-shadow: 0 24px 44px -32px rgba(79, 61, 46, .5); }
.loc-head { display: grid; gap: .25rem; justify-items: center; }
.loc-label { font-size: .6rem; letter-spacing: .32em; text-transform: uppercase; font-weight: 600; color: var(--gold-dark); }
.loc-head b { font-family: var(--serif); font-size: 1.6rem; font-weight: 500; color: var(--ink); line-height: 1.1; }
.loc-head span { color: var(--brown); font-size: .85rem; }
.loc iframe { width: 100%; height: 190px; border: 1px solid var(--gold-faint); border-radius: 4px; background: var(--paper-2); filter: grayscale(.35) sepia(.18) contrast(.96); }
.loc-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: .45rem; }
.loc-actions .btn { padding: .7rem .3rem; font-size: .6rem; letter-spacing: .1em; }
.loc-actions .btn .ico { width: 1.1em; height: 1.1em; }

/* ---------- RSVP ---------- */
.rsvp { gap: 1.4rem; }
.rsvp-deadline { font-family: var(--serif); font-style: italic; font-size: 1.1rem; color: var(--brown); }
#rsvp-form { display: grid; gap: 1.15rem; }
#rsvp-form label { display: grid; gap: .3rem; font-size: .62rem; letter-spacing: .22em; text-transform: uppercase; font-weight: 600; color: var(--brown); }
#rsvp-form input[type="text"], #rsvp-form textarea, .upload-name input { width: 100%; padding: .65rem .1rem; border: 0; border-bottom: 1px solid var(--gold-line); border-radius: 0; background: transparent; font-size: 1.02rem; font-weight: 500; color: var(--ink); letter-spacing: 0; text-transform: none; }
#rsvp-form input[type="text"]::placeholder, #rsvp-form textarea::placeholder, .upload-name input::placeholder { color: #a8998a; font-weight: 400; }
#rsvp-form input:focus, #rsvp-form textarea:focus, .upload-name input:focus { outline: none; border-bottom-color: var(--gold); box-shadow: 0 1px 0 var(--gold); }
#rsvp-form textarea { resize: vertical; }
.seg { border: 0; padding: 0; margin: .2rem 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: .55rem; }
.seg-opt { position: relative; }
.seg-opt input { position: absolute; opacity: 0; pointer-events: none; }
#rsvp-form .seg-opt span { display: flex; align-items: center; justify-content: center; gap: .4rem; padding: .95rem .5rem; border-radius: 999px; border: 1px solid var(--gold-line); font-weight: 600; font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); cursor: pointer; transition: all .2s; background: rgba(255,255,255,.5); text-align: center; line-height: 1.2; }
#rsvp-form .seg-opt input:checked + span { border-color: var(--ink); background: var(--ink); color: #fff; }
#rsvp-form .seg-opt:last-child input:checked + span { border-color: var(--rose); background: var(--blush); color: var(--rose-dark); }
#rsvp-form .seg-opt input:focus-visible + span { box-shadow: 0 0 0 4px var(--gold-faint); }
.counts { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem .9rem; }
.counts .full { grid-column: 1 / -1; }
.num { display: grid; grid-template-columns: 42px 1fr 42px; border: 1px solid var(--gold-line); border-radius: 999px; overflow: hidden; background: rgba(255,255,255,.5); }
.num button { border: 0; background: transparent; color: var(--gold-dark); font-size: 1.2rem; font-weight: 500; }
.num button:hover { background: var(--paper-2); }
#rsvp-form .num input { border: 0 !important; text-align: center; background: transparent !important; -moz-appearance: textfield; font-family: var(--serif); font-size: 1.3rem; font-weight: 600; color: var(--ink); padding: .45rem 0; width: 100%; font-variant-numeric: lining-nums; }
.num input::-webkit-outer-spin-button, .num input::-webkit-inner-spin-button { -webkit-appearance: none; }
#rsvp-submit { margin-top: .4rem; width: 100%; }
.rsvp-privacy { text-align: center; font-size: .75rem; }
.rsvp-done, .rsvp-closed { display: flex; gap: 1rem; align-items: flex-start; }
.rsvp-done { flex-direction: column; align-items: center; text-align: center; padding: .4rem 0 0; gap: .8rem; }
.done-seal { position: relative; width: 78px; height: 78px; display: grid; place-items: center; filter: drop-shadow(0 6px 8px rgba(70, 48, 12, .3)); }
.done-seal svg:first-child { position: absolute; inset: 0; width: 100%; height: 100%; }
.done-seal .ico { position: relative; width: 26px; height: 26px; color: var(--seal-lo); stroke-width: 2.4; }
.rsvp-done h3 { font-family: var(--serif); font-size: 1.8rem; color: var(--ink); }
.rsvp-done p { max-width: 24rem; }
.rsvp-closed .icon-circle { flex: 0 0 auto; }

/* ---------- USPOMENE ---------- */
.teaser { display: flex; gap: 1rem; align-items: flex-start; padding: 1.1rem; border-radius: 6px; background: var(--paper-2); border: 1px dashed var(--gold-line); }
.teaser b { display: block; font-family: var(--serif); font-size: 1.25rem; font-weight: 600; color: var(--ink); line-height: 1.2; margin-bottom: .3rem; }
.upload { display: grid; gap: .9rem; }
.upload-name { display: grid; gap: .2rem; font-size: .62rem; letter-spacing: .22em; text-transform: uppercase; font-weight: 600; color: var(--brown); }
.upload-drop { display: grid; justify-items: center; gap: .35rem; padding: 1.7rem 1rem; border: 1px dashed var(--gold); background: var(--grain), var(--paper); border-radius: 6px; color: var(--ink); text-align: center; cursor: pointer; transition: background .2s, box-shadow .2s; }
.upload-drop:hover, .upload-drop.drag { box-shadow: 0 0 0 4px var(--gold-faint); }
.upload-drop .ico { width: 30px; height: 30px; color: var(--gold); stroke-width: 1.4; }
.upload-drop b { font-family: var(--serif); font-size: 1.35rem; font-weight: 600; }
.upload-progress { display: grid; gap: .4rem; }
.up-item { display: grid; grid-template-columns: 44px 1fr auto; gap: .7rem; align-items: center; font-size: .82rem; }
.up-item img, .up-item .up-ph { width: 44px; height: 44px; border-radius: 6px; object-fit: cover; background: var(--paper-3); }
.up-item .bar { height: 3px; border-radius: 2px; background: var(--paper-3); overflow: hidden; margin-top: .3rem; }
.up-item .bar i { display: block; height: 100%; width: 30%; background: var(--gold); animation: indet 1.1s ease-in-out infinite; }
.up-item.ok .bar i { width: 100%; animation: none; background: #7a8f72; }
.up-item.err .bar i { width: 100%; animation: none; background: var(--rose); }
@keyframes indet { 0% { margin-left: -30%; } 100% { margin-left: 100%; } }

.chips { display: flex; gap: .45rem; flex-wrap: wrap; justify-content: center; }
.chip { padding: .45rem .95rem; border-radius: 999px; border: 1px solid var(--gold-line); background: transparent; font-weight: 600; font-size: .64rem; letter-spacing: .16em; text-transform: uppercase; color: var(--brown); }
.chip.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .4rem; }
.tile { position: relative; aspect-ratio: 1; border-radius: 4px; overflow: hidden; background: var(--paper-2); border: 0; padding: 0; cursor: pointer; }
.tile img, .tile video { width: 100%; height: 100%; object-fit: cover; display: block; }
.tile .tag { position: absolute; left: 5px; bottom: 5px; padding: .15rem .45rem; border-radius: 3px; background: rgba(59, 29, 37, .72); color: #fff; font-size: .55rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.tile .tag.pro { background: var(--foil); color: var(--ink); }
.tile .play { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; }
.tile .play .ico { width: 34px; height: 34px; fill: #fff; stroke: none; filter: drop-shadow(0 2px 8px rgba(0,0,0,.4)); }
.tile.pending::after { content: "Čeka odobrenje"; position: absolute; inset: 0; display: grid; place-items: center; background: rgba(250, 247, 242, .78); color: var(--brown); font-size: .66rem; font-weight: 600; text-align: center; }
.empty { text-align: center; padding: 1rem; font-family: var(--serif); font-style: italic; font-size: 1.1rem; }
@media (min-width: 520px) { .grid { grid-template-columns: repeat(4, 1fr); } }

/* ---------- KNJIGA USPOMENA ---------- */
.book { overflow: hidden; text-align: center; justify-items: center; color: #f4ecdf; padding: 2.6rem 1.4rem 2.2rem; border-radius: 4px;
  background: radial-gradient(420px 240px at 100% 0%, rgba(184, 97, 111, .28), transparent), radial-gradient(380px 240px at 0% 100%, rgba(200, 165, 96, .16), transparent), linear-gradient(160deg, #3b1d25, #2a141a);
  box-shadow: 0 30px 60px -30px rgba(42, 20, 26, .7); }
body[data-theme="christening"] .book { background: radial-gradient(420px 240px at 100% 0%, rgba(168, 181, 160, .22), transparent), radial-gradient(380px 240px at 0% 100%, rgba(200, 165, 96, .16), transparent), linear-gradient(160deg, #3b1d25, #2a141a); }
.book::before { content: ""; position: absolute; inset: 9px; border: 1px solid rgba(200, 165, 96, .5); pointer-events: none; }
.book .sec-eyebrow { color: var(--gold-2); }
.book .sec-title { color: var(--t2m-cream); }
.book-lead { max-width: 28rem; opacity: .9; font-family: var(--serif); font-style: italic; font-size: 1.15rem; line-height: 1.45; }
.book-teaser { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; width: 100%; margin: .4rem 0 .2rem; }
.bt-note { display: grid; gap: .3rem; align-content: start; background: #fffdf8; color: var(--t2m-ink); border-radius: 3px; padding: .4rem .4rem .5rem; transform: rotate(var(--tilt, 0deg)); box-shadow: 0 10px 22px rgba(0,0,0,.25); border-top: 3px solid var(--gold-2); text-align: left; }
.bt-ph { display: grid; place-items: center; aspect-ratio: 1; border-radius: 2px; overflow: hidden; background: linear-gradient(135deg, var(--paper-2), var(--blush)); font-family: var(--serif); font-size: 1.3rem; color: var(--gold-dark); }
.bt-ph img { width: 100%; height: 100%; object-fit: cover; }
.bt-txt { line-height: 1.1; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.bt-note small { font-size: .62rem; color: var(--t2m-gray); font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.book-actions { display: grid; justify-items: center; gap: .7rem; margin-top: .3rem; }
.book-all { color: #f4ecdf; font-weight: 600; font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; opacity: .9; }
.book-all:hover { opacity: 1; text-decoration: underline; }

/* ---------- INFO ---------- */
.info-list { display: grid; border-top: 1px solid var(--gold-line); }
.info-list details { border-bottom: 1px solid var(--gold-line); }
.info-list summary { list-style: none; cursor: pointer; padding: 1rem .2rem; font-family: var(--serif); font-size: 1.35rem; font-weight: 500; color: var(--ink); display: flex; justify-content: space-between; align-items: center; gap: .6rem; }
.info-list summary::-webkit-details-marker { display: none; }
.info-list summary .ico { color: var(--gold); transition: transform .25s; }
.info-list details[open] summary .ico { transform: rotate(180deg); }
.info-list p { color: var(--ink-2); padding: 0 .2rem 1.1rem; font-size: .93rem; }
.contacts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .6rem; }
.contacts a { display: flex; align-items: center; gap: .55rem; padding: .7rem .85rem; min-width: 0; border-radius: 999px; border: 1px solid var(--gold-line); background: rgba(255,255,255,.5); color: var(--ink); font-family: var(--serif); font-size: 1.15rem; font-weight: 600; line-height: 1.1; }
.contacts a .ico { color: var(--gold); }
.contacts a small { display: block; font-family: var(--t2m-font-sans); font-weight: 500; color: var(--brown); font-size: .68rem; letter-spacing: 0; white-space: nowrap; }

/* ---------- FOOT ---------- */
.foot { display: grid; justify-items: center; gap: .9rem; padding: 1rem 0 .5rem; text-align: center; }
.foot-mono { width: 88px; }
.foot-mono span { font-size: 1.6rem; color: var(--gold-dark); }
.foot-names { font-family: var(--script); font-size: 2.2rem; color: var(--ink); line-height: 1; }
.foot .t2m-logo { color: var(--ink); font-size: .9rem; opacity: .75; margin-top: .6rem; }

/* ---------- BOTTOM NAV ---------- */
.bottom-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; height: calc(var(--nav-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
  background: rgba(250, 247, 242, .93); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--gold-faint); display: flex; justify-content: center;
  transform: translateY(110%); transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
body[data-theme="christening"] .bottom-nav { background: rgba(248, 248, 243, .93); }
body.is-opened .bottom-nav { transform: none; }
.bottom-nav a { flex: 1 1 0; max-width: 140px; display: grid; justify-items: center; align-content: center; gap: .25rem; color: var(--brown); font-size: .55rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; padding: .35rem 0; }
.bottom-nav a .ico { width: 21px; height: 21px; stroke-width: 1.5; }
.bottom-nav a.on { color: var(--ink); }
.bottom-nav a.on .ico { color: var(--gold-dark); }
.bottom-nav a.accent { color: var(--rose-dark); }
.bottom-nav a.accent .ico { background: var(--blush); border-radius: 50%; padding: 5px; width: 31px; height: 31px; }

/* ---------- LIGHTBOX ---------- */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(30, 16, 20, .95); display: grid; grid-template-rows: 1fr auto; }
.lb-stage { display: grid; place-items: center; padding: 3.5rem 1rem 1rem; min-height: 0; }
.lb-stage img, .lb-stage video { max-width: 100%; max-height: calc(100dvh - 8rem); border-radius: 4px; object-fit: contain; }
.lb-bar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .8rem 1rem calc(.8rem + env(safe-area-inset-bottom)); color: #f4ecdf; font-size: .85rem; }
.lb-close, .lb-prev, .lb-next { position: absolute; border: 0; background: rgba(255,255,255,.12); color: #fff; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; }
.lb-close { top: calc(.8rem + env(safe-area-inset-top)); right: .8rem; }
.lb-prev { left: .5rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: .5rem; top: 50%; transform: translateY(-50%); }
.lb-close .ico, .lb-prev .ico, .lb-next .ico { width: 22px; height: 22px; }

/* ---------- TOAST ---------- */
.toast { position: fixed; left: 50%; bottom: calc(var(--nav-h, 64px) + 1rem + env(safe-area-inset-bottom)); transform: translate(-50%, 20px); opacity: 0; background: var(--ink, #3b1d25); color: #fff; padding: .75rem 1.2rem; border-radius: 999px; font-weight: 600; font-size: .85rem; box-shadow: var(--t2m-shadow-lg); transition: all .25s; z-index: 200; pointer-events: none; max-width: calc(100% - 2rem); text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.err { background: var(--rose-dark, #8c3a4a); }

/* ---------- PREHRANA: brzi odabir (T2M.dietPicker) ---------- */
.diet-field { display: grid; gap: .5rem; }
.diet-field .lbl { font-size: .62rem; letter-spacing: .22em; text-transform: uppercase; font-weight: 600; color: var(--brown); }
.diet-field .lbl small { font-weight: 500; letter-spacing: .04em; text-transform: none; font-size: .72rem; }
.dp-chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.dp-chip { padding: .5rem .85rem; border-radius: 999px; border: 1px solid var(--gold-line); background: rgba(255,255,255,.5); color: var(--ink); font-size: .8rem; font-weight: 500; line-height: 1.2; transition: all .15s; }
.dp-chip.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.dp-chip.allergy { border-color: rgba(184, 97, 111, .55); }
.dp-chip.allergy.on { background: var(--rose-dark); border-color: var(--rose-dark); }
.dp-counts { display: grid; gap: .3rem; margin-top: .2rem; }
.dp-count { display: flex; justify-content: space-between; align-items: center; gap: .6rem; padding: .35rem .5rem .35rem .9rem; border-radius: 999px; background: var(--paper-2); font-size: .82rem; font-weight: 500; color: var(--ink); text-transform: none; letter-spacing: 0; }
.dp-count.allergy { background: var(--blush); }
.dp-step { display: inline-flex; align-items: center; gap: .3rem; }
.dp-step button { width: 30px; height: 30px; border: 1px solid var(--gold-line); border-radius: 50%; background: #fff; color: var(--gold-dark); font-weight: 600; font-size: 1rem; }
.dp-step b { min-width: 2.2em; text-align: center; }

/* ---------- DESKTOP ---------- */
@media (min-width: 720px) {
  .content { padding-top: 4.5rem; gap: 4.2rem; }
  .card.paper { padding: 3rem 2.6rem 2.6rem; }
  .story-item { flex-basis: 44%; }
  .op-deco { width: 220px; height: 360px; opacity: .32; }
}
@media (min-width: 900px) {
  body.inv { background: var(--grain), var(--stage); }
  .content { background: var(--grain), var(--paper); box-shadow: 0 0 0 1px var(--gold-faint), 0 40px 80px -40px rgba(79, 61, 46, .35); padding-left: 2.4rem; padding-right: 2.4rem; --pad: 2.4rem; }
  .side-deco { display: block; position: fixed; inset: 0; pointer-events: none; z-index: 2; opacity: 0; transition: opacity 1.2s ease; }
  body.is-opened .side-deco { opacity: 1; }
  .side-deco .sd { position: absolute; top: 50%; width: 170px; height: 290px; color: var(--gold); opacity: .3; }
  .side-deco .sd.l { left: calc(50% - var(--col) / 2 - 230px); transform: translateY(-40%) rotate(-12deg); }
  .side-deco .sd.r { right: calc(50% - var(--col) / 2 - 230px); transform: translateY(-60%) rotate(12deg) scaleX(-1); }
  .opener, .content, .bottom-nav, .topbar { z-index: 1; }
  .bottom-nav, .topbar { z-index: 30; }
  .topbar { z-index: 40; }
}

/* ---------- MANJE POKRETA ---------- */
@media (prefers-reduced-motion: reduce) {
  .js-reveal .reveal { opacity: 1; transform: none; transition: none; }
  .opener.is-anim .env-seal, .hero-down .ico, .op-hint .ico { animation: none; }
}
