/* ==========================================================================
   Tokens
   ========================================================================== */
:root {
  --paper: #efe6d1;
  --paper-light: #f7f0e0;
  --paper-dark: #e3d6b8;
  --ink: #3b2f22;
  --ink-soft: #6b5a45;
  --maroon: #8e1c1a;
  --maroon-deep: #5e0f0f;
  --gold: #a9833a;
  --gold-soft: #d6bd84;

  --serif: 'Cormorant Garamond', Georgia, serif;
  --deva: 'Tiro Devanagari Hindi', 'Noto Serif Devanagari', serif;
  --script: 'Allura', cursive;
  --sans: 'Jost', system-ui, sans-serif;

  --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.0125' numOctaves='4' seed='7' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .55  0 0 0 0 .45  0 0 0 0 .25  0 0 0 .16 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --toran: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='60' viewBox='0 0 64 60'%3E%3Cpath d='M0 4 Q32 22 64 4' fill='none' stroke='%23a9833a' stroke-width='1.4'/%3E%3Cpath d='M32 13 C27 22 28 30 32 34 C36 30 37 22 32 13Z' fill='%237a8f3e'/%3E%3Ccircle cx='32' cy='44' r='9' fill='%23e69a1f'/%3E%3Ccircle cx='32' cy='44' r='6' fill='%23f2b733'/%3E%3Ccircle cx='32' cy='44' r='2.4' fill='%23b4561a'/%3E%3Ccircle cx='32' cy='56' r='2' fill='%23a9833a'/%3E%3C/svg%3E");
}

/* ==========================================================================
   Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html.is-booting body { visibility: hidden; }
body {
  margin: 0;
  min-height: 100svh;
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--paper) var(--noise);
}
body.is-locked { overflow: hidden; }
[hidden] { display: none !important; }
.is-latin { font-family: var(--serif); }
[lang="hi"], [lang="mwr"], .is-deva { font-family: var(--deva); }
button { font: inherit; color: inherit; cursor: pointer; }
p, h1, h2, h3 { margin: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.paper { background: var(--paper) var(--noise); }
.motif { display: block; width: 100%; height: 100%; }

.invocation { color: var(--maroon); font-size: 0.95rem; letter-spacing: 0.04em; }
.hashtag { font-family: var(--script); font-size: 1.9rem; color: var(--gold); line-height: 1.2; }
.t-label { font-family: var(--sans); font-size: 0.66rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-soft); }
.t-eyebrow { font-size: 1.05rem; font-style: italic; color: var(--gold); letter-spacing: 0.02em; }
.is-deva .t-eyebrow { font-style: normal; }
.divider { width: min(220px, 60%); height: 20px; margin: 0.9rem auto; color: var(--gold); }
.rule { width: min(320px, 70%); border: 0; border-top: 1px solid color-mix(in srgb, var(--gold) 45%, transparent); margin: 1.2rem auto; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  padding: 0.65em 1.3em;
  border: 1px solid var(--maroon);
  border-radius: 999px;
  background: var(--maroon);
  color: #fbf3e4;
  font-family: var(--sans); font-size: 0.82rem; letter-spacing: 0.06em;
  text-decoration: none;
  transition: transform 0.2s, background 0.2s, box-shadow 0.2s;
}
.is-deva .btn { font-family: var(--deva); font-size: 0.95rem; letter-spacing: 0; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 16px -8px rgba(94, 15, 15, 0.6); }
.btn svg { width: 1.1em; height: 1.1em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.btn--ghost { background: transparent; color: var(--maroon); }
.btn--ghost:hover { background: color-mix(in srgb, var(--maroon) 8%, transparent); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* ==========================================================================
   Envelope
   ========================================================================== */
/* The royal gate: a palace arch at sunset, a gold seal to open it */
.envelope-screen {
  position: fixed; inset: 0; z-index: 50; overflow: hidden;
  display: grid; place-items: center;
  background: #f6dcc0;
  transition: opacity 1s ease, transform 1.1s cubic-bezier(.6,.05,.3,1);
}
.envelope-screen::before, .cover .frame__paper::before {
  content: ''; position: absolute; inset: 0; z-index: 0;
  background: url(../assets/art/royal-arch-portrait.webp) 50% 100% / cover no-repeat;
}
.envelope-screen::before { animation: drift-in 24s ease-in-out infinite alternate; transform-origin: 50% 40%; }
@media (min-aspect-ratio: 4/5) {
  .envelope-screen::before, .cover .frame__paper::before { background-image: url(../assets/art/royal-arch-wide.webp); }
}
.envelope-screen.is-leaving { opacity: 0; transform: scale(1.35); pointer-events: none; }
@keyframes drift-in { to { transform: scale(1.06); } }

.gate__scene { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.gate__lantern {
  position: absolute; top: 20%; width: clamp(90px, 14vw, 180px); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 214, 130, 0.75), rgba(255, 190, 90, 0.25) 40%, transparent 70%);
  mix-blend-mode: screen; animation: flicker 3.2s ease-in-out infinite;
}
.gate__lantern--l { left: 3%; }
.gate__lantern--r { right: 3%; animation-delay: -1.4s; }
@media (min-aspect-ratio: 4/5) { .gate__lantern { top: 17%; } .gate__lantern--l { left: 4.5%; } .gate__lantern--r { right: 4.5%; } }
@keyframes flicker { 0%, 100% { opacity: 0.75; scale: 1; } 40% { opacity: 1; scale: 1.08; } 70% { opacity: 0.6; scale: 0.96; } }
.gate__shimmer {
  position: absolute; left: 20%; right: 20%; bottom: 14%; height: 9%;
  background: repeating-linear-gradient(90deg, transparent 0 18px, rgba(255, 240, 200, 0.55) 18px 22px, transparent 22px 40px);
  -webkit-mask: radial-gradient(ellipse 50% 50% at 50% 50%, #000, transparent 75%); mask: radial-gradient(ellipse 50% 50% at 50% 50%, #000, transparent 75%);
  mix-blend-mode: screen; opacity: 0.5; animation: shimmer 5s linear infinite;
}
@keyframes shimmer { to { background-position: 80px 0; } }

.gate__card {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  width: min(560px, 88vw); margin-top: -13vh;
  transition: opacity 0.6s ease;
}
.gate__ganesh { width: clamp(46px, 7vh, 64px); height: auto; filter: sepia(1) saturate(4) hue-rotate(-30deg) brightness(0.75); }
.gate .invocation { margin-top: 0.2rem; text-shadow: 0 0 10px rgba(255, 244, 222, 0.9); }
.gate__crest { width: min(250px, 62vw); height: 22px; color: var(--gold); margin: 0.55rem 0 0.1rem; }
.gate__crest--flip { transform: scaleY(-1); margin: 0.1rem 0 0.6rem; }
.gate__title { display: flex; flex-direction: column; align-items: center; font-weight: 400; line-height: 0.95; }
.gate__title-1 {
  font-family: var(--script); font-size: clamp(3.6rem, 11vh, 6rem); color: var(--maroon);
  text-shadow: 0 2px 0 rgba(255, 246, 228, 0.9), 0 0 24px rgba(255, 240, 215, 0.9);
}
.gate__title-2 {
  font-family: var(--serif); font-style: italic; font-weight: 600; font-size: clamp(2rem, 6vh, 3.1rem); margin-top: -0.15em;
  background: linear-gradient(100deg, #8a6420, #e9cf86 35%, #a07a32 55%, #f6e2a0 75%, #8a6420) 0 0 / 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: foil 7s linear infinite;
  filter: drop-shadow(0 1px 0 rgba(255, 246, 228, 0.9));
}
.gate__title { margin-bottom: 0.2rem; }

.seal {
  position: relative; z-index: 3;
  width: clamp(148px, 24vh, 210px); aspect-ratio: 1 / 1; padding: 0;
  border: 0; background: none; border-radius: 50%;
  filter: drop-shadow(0 0 14px rgba(255, 214, 140, 0.8)) drop-shadow(0 8px 12px rgba(90, 50, 10, 0.35));
  transition: transform 0.6s, opacity 0.5s, filter 0.6s;
  animation: seal-pulse 2.6s ease-in-out infinite;
}
.seal::before {
  content: ''; position: absolute; inset: 17%; border-radius: 50%; z-index: 0;
  background: radial-gradient(circle, rgba(255, 250, 238, 0.94) 62%, rgba(255, 246, 228, 0) 76%);
}
.seal::after {
  content: ''; position: absolute; inset: -14%; border-radius: 50%;
  border: 1.5px solid rgba(214, 170, 80, 0.75);
  animation: seal-ring 2.6s ease-out infinite;
}
.seal__wreath { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; object-fit: contain; animation: wreath-turn 40s linear infinite; }
.seal__initials {
  position: absolute; inset: 0; z-index: 2; display: grid; place-items: center;
  font-family: var(--script); font-size: clamp(2.15rem, 5.6vh, 3rem); color: var(--maroon); white-space: nowrap;
  text-shadow: 0 1px 0 #fff6e4;
}
.envelope__hint {
  margin-top: 1.1rem;
  font-family: var(--serif); font-style: italic; font-size: 1.05rem; letter-spacing: 0.06em;
  color: #6e1216;
  text-shadow: 0 0 12px rgba(255, 248, 236, 1), 0 1px 0 rgba(255, 248, 236, 0.9);
  animation: nudge 1.8s ease-in-out infinite;
}

.gate__flash {
  position: absolute; inset: 0; z-index: 4; pointer-events: none; opacity: 0;
  background: radial-gradient(circle at 50% 55%, #fff8e6 0, rgba(255, 228, 160, 0.9) 25%, rgba(255, 210, 130, 0) 70%);
}
.is-opening .seal { animation: seal-open 1.5s cubic-bezier(.5,.05,.3,1) forwards; pointer-events: none; }
.is-opening .seal__wreath { animation: wreath-spin 1.5s cubic-bezier(.5,0,.2,1) forwards; }
.is-opening .gate__card > :not(.seal) { opacity: 0; transition: opacity 0.6s; }
.is-opening .gate__flash { animation: flash 2.4s ease-in-out forwards; }

@keyframes seal-pulse { 50% { transform: scale(1.04); } }
@keyframes seal-ring { 0% { transform: scale(0.85); opacity: 1; } 100% { transform: scale(1.3); opacity: 0; } }
@keyframes wreath-turn { to { rotate: 360deg; } }
@keyframes wreath-spin { to { rotate: 540deg; } }
@keyframes seal-open { 30% { transform: scale(0.92); } 100% { transform: scale(2.6); opacity: 0; filter: drop-shadow(0 0 40px rgba(255, 220, 150, 1)); } }
@keyframes flash { 0% { opacity: 0; } 55% { opacity: 1; } 100% { opacity: 0.9; } }
@keyframes nudge { 50% { transform: translateY(-4px); } }

/* ==========================================================================
   Frame shared by the cover and side page
   ========================================================================== */
.invite { position: relative; }
.frame { position: relative; min-height: 100svh; padding: 10px; background: linear-gradient(135deg, #c9a45c, #a9833a 40%, #d8bd7c 60%, #a07a32); }
.frame__paper {
  position: relative; min-height: calc(100svh - 20px);
  box-shadow: inset 0 0 0 1px rgba(169, 131, 58, 0.6), inset 0 0 0 6px var(--paper), inset 0 0 0 7px rgba(169, 131, 58, 0.4), inset 0 0 80px rgba(120, 90, 40, 0.18);
  overflow: hidden;
}

/* ==========================================================================
   Cover
   ========================================================================== */
.cover { z-index: 2; }
.cover.is-turning { position: fixed; inset: 0; height: 100svh; overflow: hidden; }

.cover .frame__paper::before, .cover .gate__lantern { position: fixed; }
.cover .frame__paper::before { inset: 10px; }
.cover .frame__paper::after {
  content: ''; position: fixed; inset: 10px; z-index: 0; pointer-events: none;
  background: radial-gradient(ellipse 46% 40% at 50% 34%, rgba(255, 248, 234, 0.6), rgba(255, 248, 234, 0) 75%);
}
.cover__crest { position: relative; width: clamp(118px, 18vh, 156px); aspect-ratio: 1 / 1; margin: 0.5rem 0 0.1rem; }
.cover__crest::before {
  content: ''; position: absolute; inset: 17%; border-radius: 50%; z-index: 0;
  background: radial-gradient(circle, rgba(255, 250, 238, 0.95) 62%, rgba(255, 246, 228, 0) 76%);
}
.cover__wreath { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 0 10px rgba(255, 214, 140, 0.7)); animation: wreath-turn 60s linear infinite; }
.cover__monogram {
  position: absolute; inset: 0; z-index: 2; display: grid; place-items: center;
  font-family: var(--script); font-size: clamp(1.7rem, 4.2vh, 2.3rem); color: var(--maroon); white-space: nowrap;
}
.cover .invocation, .cover__names-en, .cover__question, .cover__question-en { text-shadow: 0 0 10px rgba(255, 246, 230, 0.95), 0 0 2px rgba(255, 246, 230, 0.9); }

.cover__content {
  position: relative; z-index: 2;
  min-height: calc(100svh - 20px);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 130px 20px 120px; text-align: center;
}
.cover__emblem { width: 74px; height: auto; margin-bottom: 0.4rem; }
.cover__names { display: flex; flex-direction: column; align-items: center; gap: 0.2rem; margin-top: 0.6rem; font-weight: 400; }
.cover__names-deva { font-size: clamp(2.2rem, 7vw, 3.4rem); color: var(--maroon); line-height: 1.3; }
.cover__names-deva .sep, .envelope__names .sep { font-size: 0.45em; color: var(--gold); margin: 0 0.5em; vertical-align: middle; }
.cover__names-en { font-size: clamp(1.4rem, 4vw, 2rem); font-style: italic; color: var(--ink-soft); }
.cover__names-en .amp { font-family: var(--script); font-style: normal; color: var(--gold); font-size: 1.3em; }
.cover__question { font-size: clamp(1.3rem, 4vw, 1.75rem); color: var(--ink); }
.cover__question-en { font-style: italic; color: var(--ink-soft); margin-top: 0.2rem; min-height: 1.5em; }

.cover__choices { display: flex; gap: clamp(12px, 4vw, 30px); justify-content: center; margin-top: 2rem; width: 100%; }
.side-card {
  position: relative;
  width: min(176px, calc(50% - 8px)); min-height: 228px;
  padding: 2.1rem 0.8rem 1.2rem;
  display: flex; flex-direction: column; align-items: center; gap: 0.15rem;
  border: 1px solid color-mix(in srgb, var(--gold) 60%, transparent);
  border-radius: 999px 999px 12px 12px;
  background: linear-gradient(180deg, var(--paper-light), var(--paper));
  box-shadow: 0 0 0 4px var(--paper), 0 0 0 5px color-mix(in srgb, var(--gold) 35%, transparent), 0 14px 30px -18px rgba(60, 40, 10, 0.5);
  transition: transform 0.35s, box-shadow 0.35s, opacity 0.35s;
}
.is-in .side-card { animation: breathe 3.2s ease-in-out infinite; }
.is-in .side-card--bride { animation-delay: -1.6s; }
.side-card:hover { transform: translateY(-4px); }
.side-card__kolam { width: 30px; height: 30px; color: var(--maroon); margin-bottom: 0.4rem; }
.side-card__deva { font-size: 1.55rem; color: var(--ink); }
.side-card--bride .side-card__deva { color: var(--maroon); }
.side-card__roman { font-style: italic; font-size: 1.15rem; color: var(--ink-soft); }
.side-card__of { margin-top: 0.4rem; }
.side-card__hosts { font-size: 0.82rem; font-style: italic; line-height: 1.35; color: var(--ink-soft); }
@media (max-height: 860px) {
  .cover__content { padding: 58px 16px 16px; justify-content: flex-start; }
  .cover__emblem { width: 46px; margin-bottom: 0; }
  .cover__crest { width: 102px; margin: 0.1rem 0 0; }
  .cover__names { margin-top: 0.15rem; gap: 0; }
  .cover__names-deva { font-size: 2.05rem; }
  .cover__names-en { font-size: 1.2rem; }
  .cover__question { font-size: 1.2rem; }
  .cover__choices { margin-top: 0.55rem; }
  .side-card { min-height: 0; padding-bottom: 0.65rem; }
  .side-card__deva { font-size: 1.25rem; }
  .side-card__roman { font-size: 1rem; }
  .side-card__hosts { font-size: 0.72rem; }
}
.has-choice .side-card { animation: none; }
.has-choice .side-card[aria-pressed="false"] { opacity: 0.55; transform: scale(0.97); }
.has-choice .side-card[aria-pressed="true"] { transform: translateY(-6px); box-shadow: 0 0 0 4px var(--paper), 0 0 0 6px var(--maroon), 0 20px 40px -18px rgba(94, 15, 15, 0.55); }
@keyframes breathe { 50% { box-shadow: 0 0 0 4px var(--paper), 0 0 0 5px color-mix(in srgb, var(--gold) 70%, transparent), 0 18px 36px -16px rgba(169, 131, 58, 0.6); } }

/* ==========================================================================
   Language sheet
   ========================================================================== */
.lang-sheet { border: 0; padding: 0; background: transparent; max-width: calc(100vw - 32px); overflow: visible; }
.lang-sheet::backdrop { background: rgba(40, 28, 12, 0.45); backdrop-filter: blur(2px); }
.lang-sheet[open] { animation: rise 0.45s cubic-bezier(.3,.8,.3,1); }
.lang-sheet__paper {
  position: relative; width: min(440px, calc(100vw - 32px));
  padding: 2.2rem 1.2rem 1.4rem; text-align: center;
  border: 1px solid var(--gold-soft);
  border-radius: 50% 50% 14px 14px / 18% 18% 14px 14px;
  box-shadow: 0 0 0 5px var(--paper), 0 0 0 6px color-mix(in srgb, var(--gold) 45%, transparent), 0 30px 60px -20px rgba(40, 25, 5, 0.6);
}
.lang-sheet__close { position: absolute; top: 1.4rem; right: 1.4rem; width: 32px; height: 32px; border: 0; background: none; padding: 4px; }
.lang-sheet__close svg { width: 100%; height: 100%; fill: none; stroke: var(--ink-soft); stroke-width: 1.6; stroke-linecap: round; }
.lang-sheet__kolam { width: 30px; height: 30px; margin: 0 auto 0.4rem; color: var(--gold); }
.lang-sheet__title { display: flex; flex-direction: column; font-weight: 400; margin-bottom: 1.2rem; }
.lang-sheet__title [lang] { font-size: 1.5rem; color: var(--ink); }
.lang-sheet__en { font-style: italic; font-size: 0.95rem; color: var(--ink-soft); }
.lang-sheet__options { display: grid; grid-template-columns: repeat(var(--cols, 2), 1fr); gap: 10px; }
.lang-option {
  display: flex; flex-direction: column; align-items: center; gap: 0.2rem;
  padding: 1rem 0.4rem;
  border: 1px solid color-mix(in srgb, var(--gold) 55%, transparent);
  border-radius: 6px;
  background: linear-gradient(180deg, var(--paper-light), var(--paper));
  transition: transform 0.2s, border-color 0.2s;
}
.lang-option:hover, .lang-option:focus-visible { transform: translateY(-2px); border-color: var(--maroon); }
.lang-option[data-last] { border-color: var(--maroon); }
.lang-option__native { font-size: 1.45rem; color: var(--ink); }
.lang-option.is-latin .lang-option__native { font-family: var(--serif); }
.lang-option__sub { font-family: var(--sans); font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-soft); }
.lang-option.is-latin .lang-option__sub { font-family: var(--deva); letter-spacing: 0; text-transform: none; font-size: 0.85rem; }
@keyframes rise { from { opacity: 0; transform: translateY(30px); } }
@media (max-width: 380px) { .lang-sheet__options { grid-template-columns: 1fr; } }

/* ==========================================================================
   Side page
   ========================================================================== */
.side-page { z-index: 1; }
.side-page__intro {
  min-height: calc(100svh - 20px);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 60px 20px 40px; text-align: center;
}
.side-page__emblem { width: 70px; height: auto; margin-bottom: 0.6rem; }
.side-page__family { display: flex; flex-direction: column; align-items: center; margin: 0.6rem 0; }
.family__hosts { font-size: 1.15rem; font-weight: 600; color: var(--ink); line-height: 1.35; }
.family__rel { font-style: italic; color: var(--gold); margin-top: 0.2rem; }
.is-deva .family__rel { font-style: normal; }
.family__child { font-size: 1.5rem; color: var(--maroon); }
.side-page__title { font-family: var(--deva); font-weight: 400; font-size: clamp(2.6rem, 9vw, 4rem); color: var(--maroon); line-height: 1.25; margin-top: 0.8rem; outline: none; }
.side-page__roman { font-family: var(--script); font-size: 1.8rem; color: var(--gold); margin-bottom: 0.4rem; }
.side-page__welcome { font-size: 1.3rem; line-height: 1.5; color: var(--ink); }
.side-page__cue {
  margin-top: 1.6rem; border: 0; background: none;
  display: flex; flex-direction: column; align-items: center; gap: 0.2rem;
  font-size: 0.95rem; color: var(--ink-soft);
}
.side-page__cue svg { width: 22px; height: 22px; fill: none; stroke: var(--gold); stroke-width: 1.8; animation: nudge-down 1.6s ease-in-out infinite; }
@keyframes nudge-down { 50% { transform: translateY(5px); } }

.side-page__footer { display: flex; justify-content: center; padding: 2.5rem 1rem 3.5rem; }

.mainday__names { font-family: var(--script); font-size: 2.4rem; color: var(--maroon); line-height: 1.2; margin-top: 0.3rem; }
.is-deva .mainday__names { font-family: var(--deva); font-size: 1.9rem; }
.finale__names { color: var(--maroon); }
.finale__closing { font-size: 1.3rem; color: var(--ink); }
.finale__note { margin-top: 0.5rem; font-size: 0.9rem; color: var(--ink-soft); font-style: italic; }
.theme-finale .btn { margin-top: 1rem; }

.countdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 1.3rem auto 0; max-width: 360px; }
.countdown__unit {
  display: flex; flex-direction: column; align-items: center;
  padding: 0.7rem 0.2rem;
  border: 1px solid color-mix(in srgb, var(--gold) 45%, transparent);
  border-radius: 8px;
  background: var(--paper-light);
}
.countdown__num { font-family: var(--serif); font-size: 1.9rem; font-weight: 600; color: var(--maroon); font-variant-numeric: tabular-nums; line-height: 1.1; }
.countdown__label { font-size: 0.78rem; color: var(--ink-soft); }

/* ==========================================================================
   Music toggle
   ========================================================================== */
.music-toggle, .share-toggle {
  position: fixed; right: 16px; z-index: 40;
  width: 46px; height: 46px; padding: 11px;
  border: 1px solid var(--gold-soft); border-radius: 50%;
  background: var(--paper-light); box-shadow: 0 8px 20px -10px rgba(40, 25, 5, 0.5);
  color: var(--maroon);
}
.music-toggle { bottom: 16px; }
.share-toggle { bottom: 74px; }
.music-toggle svg, .share-toggle svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.share-toggle__note {
  position: absolute; right: calc(100% + 10px); top: 50%; translate: 0 -50%;
  padding: 0.4rem 0.75rem; border-radius: 999px; white-space: nowrap;
  background: var(--paper-light); border: 1px solid var(--gold-soft); color: var(--maroon);
  font-family: var(--serif); font-size: 0.88rem; line-height: 1.2;
  box-shadow: 0 8px 20px -10px rgba(40, 25, 5, 0.5);
}
.is-deva .share-toggle__note { font-family: var(--deva); font-size: 0.95rem; }

/* ==========================================================================
   Small screens and reduced motion
   ========================================================================== */
@media (max-width: 520px) {
  body { font-size: 17px; }
  .cover__content { padding: 130px 12px 150px; }
  .side-card { min-height: 210px; padding: 1.8rem 0.5rem 1rem; }
  .side-card__deva { font-size: 1.35rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
}
