/* Design "Завеса": emerald velvet theatre curtains with gold fringe, ivory page with an arched terrace */
body.theme-zavesa { --paper: #fbf8f1; --paper-2: #efe7d6; --ink: #1f2b26; --muted: #6c776f; --accent: #1f4d3f; --accent-2: #8fb39c; --gold: #b38a3c; --gold-2: #ead39a; --line: rgb(31 77 63 / .16); }

/* ── opening ── */
.opening.theatre { background: transparent; }
.curtain {
  --fold: 9vw;
  position: absolute; top: 0; bottom: 0; width: 53%; z-index: 3;
  background:
    linear-gradient(180deg, rgb(0 0 0 / .42), transparent 16%, transparent 62%, rgb(0 0 0 / .5)),
    radial-gradient(60% 40% at 50% 8%, rgb(255 240 200 / .14), transparent 70%),
    repeating-linear-gradient(90deg, #08241c 0, #0f4434 calc(var(--fold) * .22), #2a7558 calc(var(--fold) * .42), #3d8a6b calc(var(--fold) * .5), #1a5a44 calc(var(--fold) * .7), #08241c var(--fold));
}
.curtain::before { /* gold braid + fringe along the hem */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 26px;
  background:
    linear-gradient(#f1dca4, #a9792f) top / 100% 5px no-repeat,
    repeating-linear-gradient(90deg, #f0d89c 0 2px, #b8893a 2px 3px, transparent 3px 5px) bottom / 100% 21px no-repeat;
}
.curtain::after { /* velvet sheen */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(100deg, transparent 30%, rgb(255 255 255 / .05) 45%, transparent 60%);
}
.curtain.l { left: 0; clip-path: polygon(0% 0%, 100% 0%, 100% 18%, 100% 36%, 100% 52%, 100% 62%, 100% 78%, 100% 100%, 0% 100%); }
.curtain.r { right: 0; clip-path: polygon(100% 0%, 0% 0%, 0% 18%, 0% 36%, 0% 52%, 0% 62%, 0% 78%, 0% 100%, 100% 100%); }

.valance { position: absolute; left: 0; top: 0; width: 100%; height: clamp(70px, 12vh, 120px); z-index: 5; filter: drop-shadow(0 8px 10px rgb(0 0 0 / .45)); }
.valance .trim { fill: none; stroke: url(#g-gold); stroke-width: 3; vector-effect: non-scaling-stroke; }

.cartouche { position: absolute; left: 50%; top: 47%; width: clamp(190px, 56vw, 290px); transform: translate(-50%, -50%); z-index: 6; filter: drop-shadow(0 14px 18px rgb(0 0 0 / .5)); }
.cartouche svg { width: 100%; height: auto; }
.knot { position: absolute; left: 50%; top: 47%; width: clamp(80px, 22vw, 112px); transform: translate(-50%, 34%); z-index: 5; }
.knot svg { width: 100%; height: auto; }

.tieback { position: absolute; top: 56%; width: clamp(34px, 9vw, 52px); z-index: 6; opacity: 0; }
.tieback.l { left: 5.5%; }
.tieback.r { right: 5.5%; }
.tieback svg { width: 100%; height: auto; }

.beam { position: absolute; top: -12%; width: 70vw; height: 140vh; z-index: 4; opacity: 0; pointer-events: none; transform-origin: 50% 0; mix-blend-mode: screen;
  background: linear-gradient(rgb(255 238 196 / .65), rgb(255 238 196 / 0) 85%);
  clip-path: polygon(47% 0, 53% 0, 100% 100%, 0 100%); }
.beam.l { left: -18vw; transform: rotate(-24deg); }
.beam.r { right: -18vw; transform: rotate(24deg); }
.opening.theatre .tap-hint { color: var(--gold-2); z-index: 7; text-shadow: 0 1px 6px rgb(0 0 0 / .6); }

/* ── letter ── */
.terrace { position: absolute; left: 50%; transform: translateX(-50%); width: min(118vw, 600px); height: auto; pointer-events: none; }
.terrace.top { top: 0; }
.terrace.bottom { bottom: 92px; width: min(108vw, 560px); }
.arch-frame { position: absolute; inset: 14px; border: 1px solid var(--line); border-radius: 240px 240px 16px 16px; pointer-events: none; }
.arch-frame::after { content: ""; position: absolute; inset: 7px; border: 1px solid rgb(179 138 60 / .4); border-radius: 233px 233px 10px 10px; }
.cover { overflow: hidden; }
.cover .sheet { position: relative; z-index: 1; margin-top: 4vh; }
.cover .names.solo { font-size: clamp(76px, 22vw, 120px); margin: 8px 0 0; }
.cover .turns { font: 400 clamp(20px, 5.4vw, 26px)/1.2 var(--caps); letter-spacing: .3em; text-transform: uppercase; color: var(--gold); margin: 2px 0 0; }
.cover .turns b { display: block; font: 400 clamp(76px, 22vw, 112px)/1 var(--serif); letter-spacing: 0; color: var(--accent); margin-top: 6px; background: linear-gradient(180deg, #d9b968, #9c7429 70%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cover .date { margin-top: 14px; }
.garland { width: min(100%, 560px); margin: 0 auto; height: auto; }
