/* Self-hosted fonts (assets/fonts, woff2, SIL OFL). Only latin, latin-ext and gujarati subsets.
   font-display: block so the MP4 recorder never captures a fallback font. */
@font-face { font-family: "Rozha One"; font-weight: 400; font-display: block; src: url("../assets/fonts/rozha-one-400-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Rozha One"; font-weight: 400; font-display: block; src: url("../assets/fonts/rozha-one-400-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Caveat"; font-weight: 700; font-display: block; src: url("../assets/fonts/caveat-700-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Caveat"; font-weight: 700; font-display: block; src: url("../assets/fonts/caveat-700-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Mukta Vaani"; font-weight: 400; font-display: block; src: url("../assets/fonts/mukta-vaani-400-gujarati.woff2") format("woff2"); unicode-range: U+0951-0952, U+0964-0965, U+0A80-0AFF, U+200C-200D, U+20B9, U+25CC, U+A830-A839; }
@font-face { font-family: "Mukta Vaani"; font-weight: 400; font-display: block; src: url("../assets/fonts/mukta-vaani-400-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Mukta Vaani"; font-weight: 400; font-display: block; src: url("../assets/fonts/mukta-vaani-400-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Mukta Vaani"; font-weight: 600; font-display: block; src: url("../assets/fonts/mukta-vaani-600-gujarati.woff2") format("woff2"); unicode-range: U+0951-0952, U+0964-0965, U+0A80-0AFF, U+200C-200D, U+20B9, U+25CC, U+A830-A839; }
@font-face { font-family: "Mukta Vaani"; font-weight: 600; font-display: block; src: url("../assets/fonts/mukta-vaani-600-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Mukta Vaani"; font-weight: 600; font-display: block; src: url("../assets/fonts/mukta-vaani-600-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Mukta Vaani"; font-weight: 700; font-display: block; src: url("../assets/fonts/mukta-vaani-700-gujarati.woff2") format("woff2"); unicode-range: U+0951-0952, U+0964-0965, U+0A80-0AFF, U+200C-200D, U+20B9, U+25CC, U+A830-A839; }
@font-face { font-family: "Mukta Vaani"; font-weight: 700; font-display: block; src: url("../assets/fonts/mukta-vaani-700-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Mukta Vaani"; font-weight: 700; font-display: block; src: url("../assets/fonts/mukta-vaani-700-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Cormorant Garamond"; font-weight: 600; font-display: block; src: url("../assets/fonts/cormorant-garamond-600-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Cormorant Garamond"; font-weight: 600; font-display: block; src: url("../assets/fonts/cormorant-garamond-600-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Cormorant Garamond"; font-weight: 700; font-display: block; src: url("../assets/fonts/cormorant-garamond-700-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Cormorant Garamond"; font-weight: 700; font-display: block; src: url("../assets/fonts/cormorant-garamond-700-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Manrope"; font-weight: 500; font-display: block; src: url("../assets/fonts/manrope-500-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Manrope"; font-weight: 500; font-display: block; src: url("../assets/fonts/manrope-500-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Manrope"; font-weight: 700; font-display: block; src: url("../assets/fonts/manrope-700-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Manrope"; font-weight: 700; font-display: block; src: url("../assets/fonts/manrope-700-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Great Vibes"; font-weight: 400; font-display: block; src: url("../assets/fonts/great-vibes-400-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Great Vibes"; font-weight: 400; font-display: block; src: url("../assets/fonts/great-vibes-400-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Rasa"; font-weight: 600; font-display: block; src: url("../assets/fonts/rasa-600-gujarati.woff2") format("woff2"); unicode-range: U+0951-0952, U+0964-0965, U+0A80-0AFF, U+200C-200D, U+20B9, U+25CC, U+A830-A839; }
@font-face { font-family: "Rasa"; font-weight: 600; font-display: block; src: url("../assets/fonts/rasa-600-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Rasa"; font-weight: 600; font-display: block; src: url("../assets/fonts/rasa-600-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Rasa"; font-weight: 700; font-display: block; src: url("../assets/fonts/rasa-700-gujarati.woff2") format("woff2"); unicode-range: U+0951-0952, U+0964-0965, U+0A80-0AFF, U+200C-200D, U+20B9, U+25CC, U+A830-A839; }
@font-face { font-family: "Rasa"; font-weight: 700; font-display: block; src: url("../assets/fonts/rasa-700-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Rasa"; font-weight: 700; font-display: block; src: url("../assets/fonts/rasa-700-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* Player stage: fixed 360x640 design box, scaled by fitStage(). Positions are in stage px.
   Animation transforms come from js/player.js render(t); CSS only sets layout and looks. */
.stage-wrap { position: relative; overflow: hidden; }
.stage {
  position: absolute; left: 50%; top: 50%; width: 360px; height: 640px;
  transform-origin: center; overflow: hidden; border-radius: 0;
  /* Every stack has a Gujarati font: Rasa (serif display) or Mukta Vaani (body). */
  --display: "Rozha One", "Rasa", Georgia, serif;
  --script: var(--display);
  --body: "Mukta Vaani", system-ui, sans-serif;
  font-family: var(--body);
}
.stage, .stage * { box-sizing: border-box; }
.stage { line-height: 1.35; }
.stage .bg-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.stage .layer, .stage .decor-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.stage .sway { transform-box: view-box; transform-origin: 180px 0; }
.stage .flame { transform-box: fill-box; transform-origin: 50% 100%; }

.stage .el { position: absolute; left: 0; right: 0; margin-inline: auto; text-align: center; transform-origin: center; margin-block: 0; visibility: hidden; }
.stage .mantra { top: 172px; width: 320px; font-size: 17px; letter-spacing: .04em; }
.stage .title { top: 212px; width: 330px; font-family: var(--display); font-weight: 400; font-size: 54px; line-height: 1.05; text-wrap: balance; }
.stage .sub { top: 330px; width: 300px; font-size: 18px; }
.stage .couple { top: 190px; width: 260px; height: 260px; display: grid; place-items: center; }
.stage .couple svg.cartoon { width: 100%; height: 100%; display: block; overflow: visible; }
.stage .couple img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
.stage .couple.framed img { width: 236px; height: 236px; object-fit: cover; border-radius: 52% 48% 50% 50% / 50% 52% 48% 50%; border: 6px solid var(--frame); }
.stage .noimg { width: 220px; height: 220px; border: 3px dashed var(--frame); border-radius: 50%; display: grid; place-items: center; font-size: 16px; }
.stage .names-top { top: 462px; width: 330px; font-family: var(--script); font-size: 32px; line-height: 1.1; }
.stage .amp { color: var(--accent); }

.stage .bubble { top: 66px; width: 210px; margin: 0; padding: 14px 16px; border-radius: 22px; border: 2.5px solid var(--ink-line);
  background: var(--bubble); color: var(--bubble-ink); font-size: 20px; line-height: 1.25; font-weight: 600; text-align: center; }
.stage .bubble.left { left: 18px; right: auto; transform-origin: 30% 100%; }
.stage .bubble.right { right: 18px; left: auto; transform-origin: 70% 100%; background: var(--bubble2); }
.stage .bubble::after { content: ""; position: absolute; bottom: -14px; width: 22px; height: 22px; background: inherit;
  border-right: 2.5px solid var(--ink-line); border-bottom: 2.5px solid var(--ink-line); transform: rotate(45deg); }
.stage .bubble.left::after { left: 46px; }
.stage .bubble.right::after { right: 46px; }

.stage .datecard { top: 282px; width: 200px; padding: 10px 0 12px; border-radius: 16px; background: var(--card); color: var(--card-ink); border: 3px solid var(--accent); }
.stage .datecard .weekday { font-size: 17px; font-weight: 600; }
.stage .datecard .day { font-family: var(--display); font-size: 62px; line-height: 1; margin: 2px 0; }
.stage .datecard .monthyear { font-size: 19px; font-weight: 600; }
.stage .datecard .time { font-size: 16px; margin-top: 4px; opacity: .85; }
.stage .venue { top: 464px; width: 320px; font-size: 19px; font-weight: 600; display: flex; gap: 6px; justify-content: center; align-items: center; }
.stage .pin { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; flex: none; }
.stage .events { top: 502px; width: 330px; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.stage .chip { padding: 5px 12px; border-radius: 999px; background: var(--chip); color: var(--chip-ink); font-size: 15px; }

.stage .joy { top: 64px; width: 320px; font-size: 20px; font-weight: 600; text-wrap: balance; }
.stage .names-big { top: 128px; width: 340px; font-family: var(--script); font-weight: 400; font-size: 46px; line-height: 1.05; }
.stage .stamp { top: 476px; width: 230px; padding: 8px 0; border: 3px solid var(--accent); color: var(--accent); border-radius: 10px;
  font-family: var(--display); font-size: 26px; background: var(--stamp-bg); }

.stage .hearts { position: absolute; left: 50%; bottom: 150px; width: 0; height: 0; }
.stage .heart { position: absolute; left: -11px; top: 0; width: 22px; height: 20px; fill: var(--heart); visibility: hidden; }

/* Theme: mandap */
.theme-mandap { background: #6E1423; color: #FFF1D6; --accent: #F7C948; --frame: #F7C948; --ink-line: #2A0A10;
  --bubble: #FFF1D6; --bubble2: #FFD9A8; --bubble-ink: #4A0E18; --card: #FFF1D6; --card-ink: #4A0E18;
  --chip: #F7C948; --chip-ink: #4A0E18; --heart: #FF8FA3; --stamp-bg: rgba(74, 14, 24, .55); }
.theme-mandap .mantra { color: #F7C948; }
.theme-mandap .names-big { font-size: 40px; }
.lang-en.theme-mandap .title { font-size: 44px; }
.lang-en.theme-notebook .title { font-size: 56px; }

/* Theme: notebook */
.theme-notebook { color: #2A2A33; --accent: #E8582D; --frame: #2A2A33; --ink-line: #2A2A33;
  --bubble: #FFFFFF; --bubble2: #FCE3D6; --bubble-ink: #2A2A33; --card: #FFFFFF; --card-ink: #2A2A33;
  --chip: #2A2A33; --chip-ink: #FBF8F1; --heart: #ED5C7A; --stamp-bg: #FBF8F1;
  --display: "Caveat", "Mukta Vaani", "Comic Sans MS", cursive;
  background: #FBF8F1 repeating-linear-gradient(to bottom, transparent 0 31px, #DCE6F2 31px 32px); }
.theme-notebook .title { font-size: 64px; font-weight: 700; }
.theme-notebook .names-top, .theme-notebook .names-big { font-weight: 700; }
.theme-notebook .names-big { font-size: 54px; }
.theme-notebook .datecard .day { font-weight: 700; }
/* Theme: wedlink (matches wedlinkinvites.in: ivory, wine, antique gold) */
.theme-wedlink { background: #FFF9F2; color: #541D36; --accent: #B68A50; --frame: #B68A50; --ink-line: #541D36;
  --bubble: #FFFFFF; --bubble2: #F6E8E4; --bubble-ink: #241C24; --card: #541D36; --card-ink: #FFF9F2;
  --chip: #541D36; --chip-ink: #FFF9F2; --heart: #B0546F; --stamp-bg: #FFF9F2;
  --display: "Cormorant Garamond", "Rasa", Georgia, serif;
  --script: "Great Vibes", "Rasa", cursive;
  --body: "Manrope", "Mukta Vaani", system-ui, sans-serif; }
.theme-wedlink .mantra { color: #B68A50; font-size: 15px; letter-spacing: .12em; font-weight: 700; }
.theme-wedlink .title { font-weight: 600; font-size: 50px; }
.theme-wedlink .joy { width: 290px; font-size: 18px; }
.theme-wedlink .datecard .day, .theme-wedlink .chip { font-variant-numeric: lining-nums; }
.theme-wedlink .sub { color: #826B77; font-size: 16px; }
.theme-wedlink .names-top { font-size: 40px; }
.theme-wedlink .names-big { font-size: 50px; line-height: 1.1; }
.theme-wedlink .amp { font-family: "Great Vibes", cursive; }
.theme-wedlink .bubble { font-size: 17px; font-weight: 500; border-width: 1.5px; border-radius: 18px; }
.theme-wedlink .bubble::after { border-right-width: 1.5px; border-bottom-width: 1.5px; }
.theme-wedlink .datecard { border-width: 2px; border-radius: 100px 100px 14px 14px; padding: 16px 0 10px; }
.theme-wedlink .datecard .day { font-size: 60px; font-variant-numeric: lining-nums; }
.theme-wedlink .datecard .weekday, .theme-wedlink .datecard .monthyear { font-weight: 500; letter-spacing: .06em; }
.theme-wedlink .datecard .day { font-weight: 600; }
.theme-wedlink .venue { font-weight: 500; font-size: 17px; }
.theme-wedlink .chip { font-size: 13px; border: 1px solid #B68A50; }
.theme-wedlink .stamp { font-weight: 600; border-width: 1.5px; border-radius: 4px; }

/* Gujarati: Caveat, Rozha One, Cormorant and Great Vibes have no Gujarati glyphs, so the stack falls back
   to Rasa / Mukta Vaani, which run wider. Shrink the big lines. */
.lang-gu .title { font-size: 50px; }
.lang-gu.theme-notebook .title { font-size: 50px; font-family: "Mukta Vaani", sans-serif; font-weight: 700; }
.lang-gu.theme-wedlink .title { font-size: 48px; }

/* Film-like depth; no CSS animation clocks inside the stage. */
.stage .decor{transform-origin:center;will-change:transform}
.stage .motion-halo{position:absolute;left:64px;top:206px;width:232px;height:232px;border:1px solid var(--accent);border-radius:50%;background:radial-gradient(ellipse,#fff4d83b,transparent 68%);box-shadow:0 0 0 10px #b68a5009;pointer-events:none}
.stage .motion-dust{position:absolute;inset:0;pointer-events:none}.stage .motion-dust i{position:absolute;left:0;top:0;width:4px;height:4px;border-radius:1px;background:var(--accent);box-shadow:0 0 7px #f7d99870}
.stage .motion-curtain{position:absolute;top:0;bottom:0;width:50%;z-index:20;background:linear-gradient(90deg,#381326,#662b44,#481a31);pointer-events:none}
.stage .motion-curtain-left{left:0;border-right:1px solid #b68a50}.stage .motion-curtain-right{right:0;border-left:1px solid #b68a50}
.stage .motion-sweep{position:absolute;top:-100px;left:0;width:120px;height:840px;background:linear-gradient(90deg,transparent,#fff4dc,transparent);z-index:12;pointer-events:none}
.stage .motion-progress{position:absolute;bottom:0;left:0;width:100%;height:3px;background:var(--accent);transform-origin:left;z-index:22;pointer-events:none}
.stage .datecard{box-shadow:0 12px 22px #27132324}.stage .bubble{box-shadow:0 6px 14px #27132315}
