:root {
  --night: #0b0a12;
  --night-2: #16121f;
  --velvet: #7a0c16;
  --velvet-dark: #3d050b;
  --gold: #d9b25f;
  --gold-soft: #f3dfa6;
  --ivory: #f6efe2;
  --muted: #b9ad98;
  --paper: #f4ead6;
  --ink: #2a2118;
  --display: "Montserrat", Arial, Helvetica, sans-serif;
  --serif: "Montserrat", Arial, Helvetica, sans-serif;
  --caps: "Montserrat", Arial, Helvetica, sans-serif;
  --script: "Montserrat", Arial, Helvetica, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: radial-gradient(ellipse at 50% 0%, #2a1a2a 0%, var(--night) 60%) fixed, var(--night);
  color: var(--ivory);
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.65;
  font-weight: 400;
  overflow-x: hidden;
}
main { position: relative; z-index: 2; }
button { font: inherit; color: inherit; cursor: pointer; }

/* ——— Cortina ——— */
.curtain {
  position: fixed; inset: 0; z-index: 50; cursor: pointer;
  display: grid; place-items: end center; padding-bottom: 12vh;
}
.curtain__half {
  position: absolute; top: 0; bottom: 0; width: 50.5%;
  background:
    linear-gradient(180deg, rgba(0,0,0,.35), transparent 18%, transparent 80%, rgba(0,0,0,.5)),
    repeating-linear-gradient(90deg, var(--velvet-dark) 0 6px, var(--velvet) 22px 40px, var(--velvet-dark) 58px 64px);
  box-shadow: inset 0 0 80px rgba(0,0,0,.6);
  transition: transform 1.8s cubic-bezier(.7,0,.2,1);
}
.curtain__half--left { left: 0; transform-origin: left; }
.curtain__half--right { right: 0; transform-origin: right; }
.curtain__valance {
  position: absolute; top: 0; left: 0; right: 0; height: 13vh; z-index: 2;
  background:
    radial-gradient(circle at 50% 0, var(--velvet) 60%, transparent 61%) 0 0 / 120px 100%,
    linear-gradient(var(--velvet-dark), var(--velvet));
  border-bottom: 3px solid var(--gold);
  box-shadow: 0 10px 30px rgba(0,0,0,.6);
  transition: transform 1.4s ease .4s;
}
.curtain__hint {
  position: relative; z-index: 3; margin: 0;
  font-family: var(--caps); letter-spacing: .3em; text-transform: uppercase; font-size: 13px;
  color: var(--gold-soft); animation: pulse 2s ease-in-out infinite;
}
.curtain.open { pointer-events: none; }
.curtain.open .curtain__half--left { transform: translateX(-100%) skewX(-4deg); }
.curtain.open .curtain__half--right { transform: translateX(100%) skewX(4deg); }
.curtain.open .curtain__valance { transform: translateY(-100%); }
.curtain.open .curtain__hint { opacity: 0; transition: opacity .3s; }
.curtain.gone { display: none; }

/* ——— Sclipici ——— */
.glitter { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }

/* ——— Limba ——— */
.topbar { position: fixed; top: 0; left: 0; right: 0; z-index: 20; display: flex; justify-content: flex-end; padding: 16px; }
.lang { display: flex; gap: 4px; padding: 4px; border: 1px solid rgba(217,178,95,.35); border-radius: 999px; background: rgba(11,10,18,.6); backdrop-filter: blur(6px); }
.lang button { border: 0; background: transparent; padding: 6px 12px; border-radius: 999px; font-family: var(--caps); font-size: 13px; letter-spacing: .15em; color: var(--muted); }
.lang button[aria-pressed="true"] { background: var(--gold); color: var(--night); }

/* ——— Afișul ——— */
.stage {
  min-height: 100svh; display: flex; flex-direction: column; align-items: center;
  padding: 72px 16px 48px; text-align: center; position: relative;
}
.bulbs {
  position: absolute; top: 0; left: 0; right: 0; height: 14px;
  background: radial-gradient(circle, var(--gold-soft) 0 3px, rgba(243,223,166,.25) 4px 6px, transparent 7px) 0 50% / 28px 14px repeat-x;
  animation: bulbs 1.2s steps(2) infinite;
}
.kicker, .starring, .tagline, .premiere, .ticket__title, .letter__kicker, .bow__hint, .credits {
  font-family: var(--caps); text-transform: uppercase; letter-spacing: .32em; font-size: 12px; color: var(--muted);
}
.kicker { margin: 8px 0 0; }
.starring { margin: 26px 0 0; color: var(--gold); }
.name {
  margin: 6px 0 0; font-family: var(--display); font-weight: 800;
  font-size: clamp(36px, 9vw, 96px); line-height: 1.05; letter-spacing: .04em; font-weight: 900; text-transform: uppercase;
  background: linear-gradient(180deg, #fff8e6 0%, var(--gold-soft) 45%, var(--gold) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: 0 0 40px rgba(217,178,95,.15);
}
.title { margin: 6px 0 0; font-family: var(--serif); font-style: italic; font-weight: 500; font-size: clamp(18px, 3.6vw, 26px); font-weight: 300; color: var(--ivory); }

.poster { position: relative; width: min(440px, 88vw); margin-top: 18px; }
.year {
  position: absolute; left: 50%; top: 4%; transform: translateX(-50%);
  font-family: var(--display); font-weight: 800; font-size: clamp(110px, 30vw, 220px); line-height: 1;
  color: transparent; -webkit-text-stroke: 1.5px rgba(217,178,95,.45); letter-spacing: .02em; white-space: nowrap;
}
.spot {
  position: absolute; left: 50%; top: -18%; width: 150%; height: 135%; transform: translateX(-50%);
  background: radial-gradient(ellipse 38% 55% at var(--sx, 50%) 60%, rgba(255,232,180,.34), rgba(255,232,180,.08) 55%, transparent 72%);
  transition: background-position .2s;
}
.portrait {
  position: relative; display: block; width: 100%; height: auto;
  filter: drop-shadow(0 20px 30px rgba(0,0,0,.6));
  -webkit-mask-image: linear-gradient(180deg, #000 82%, transparent 100%); mask-image: linear-gradient(180deg, #000 82%, transparent 100%);
}
.floor {
  position: absolute; left: 50%; bottom: 2%; width: 90%; height: 60px; transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(255,232,180,.22), transparent 70%);
}
.tagline { margin: 22px 0 0; }
.premiere { margin: 8px 0 0; color: var(--gold); }

/* ——— Bilet ——— */
.ticket {
  position: relative; width: min(620px, calc(100% - 32px)); margin: 24px auto 0; padding: 28px 24px 22px;
  text-align: center; color: var(--ink);
  background: linear-gradient(135deg, var(--gold-soft), var(--gold));
  border-radius: 14px;
  -webkit-mask: radial-gradient(circle 14px at 0 50%, transparent 98%, #000) left / 51% 100% no-repeat,
                radial-gradient(circle 14px at 100% 50%, transparent 98%, #000) right / 51% 100% no-repeat;
          mask: radial-gradient(circle 14px at 0 50%, transparent 98%, #000) left / 51% 100% no-repeat,
                radial-gradient(circle 14px at 100% 50%, transparent 98%, #000) right / 51% 100% no-repeat;
}
.ticket__title { margin: 0; color: var(--ink); opacity: .75; }
.countdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 12px; }
.countdown b { display: block; font-family: var(--display); font-size: clamp(30px, 8vw, 48px); line-height: 1.1; }
.countdown span { font-family: var(--caps); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; }
.ticket__arrived { margin: 12px 0 0; font-family: var(--serif); font-style: italic; font-weight: 600; font-size: 26px; }
.ticket__stub { margin: 16px 0 0; padding-top: 12px; border-top: 2px dashed rgba(42,33,24,.35); font-family: var(--caps); font-size: 11px; letter-spacing: .35em; text-transform: uppercase; }

/* ——— Scrisoarea ——— */
.letter {
  width: min(680px, calc(100% - 32px)); margin: 72px auto 0; padding: 40px 28px;
  color: var(--ink); border-radius: 3px;
  background:
    radial-gradient(ellipse at 20% 10%, rgba(255,255,255,.35), transparent 50%),
    radial-gradient(ellipse at 85% 90%, rgba(120,80,30,.22), transparent 55%),
    radial-gradient(ellipse at 50% 50%, #f3e3bf 0%, #e6cf9e 70%, #c9a86a 100%);
  box-shadow: 0 30px 60px rgba(0,0,0,.55), inset 0 0 70px rgba(110,70,20,.35);
  transform: rotate(-.6deg);
}
.letter__kicker { margin: 0 0 18px; color: var(--velvet); }
.letter__body p { margin: 0 0 14px; font-size: 17px; }
.letter__body p:first-child { font-style: italic; }
.letter__body p:last-child { font-style: italic; }
.letter__sign { margin: 6px 0 0; text-align: right; font-family: var(--script); font-style: italic; font-weight: 300; font-size: 40px; letter-spacing: .04em; color: var(--velvet); }

/* ——— Plecăciunea ——— */
.bow { width: min(680px, calc(100% - 32px)); margin: 88px auto 0; text-align: center; }
.bow__title { margin: 0; font-family: var(--display); font-weight: 700; font-size: clamp(34px, 7vw, 52px); color: var(--gold-soft); }
.bow__hint { margin: 10px 0 0; letter-spacing: .2em; }
.bow__button {
  margin-top: 26px; padding: 14px 30px; border-radius: 999px;
  border: 1px solid var(--gold); background: linear-gradient(180deg, var(--velvet), var(--velvet-dark));
  font-family: var(--caps); font-size: 15px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-soft);
  box-shadow: 0 0 0 0 rgba(217,178,95,.5); animation: glow 2.4s ease-in-out infinite;
  transition: transform .15s;
}
.bow__button:hover { transform: translateY(-2px); }
.bow__button:active { transform: scale(.97); }
.review { margin: 30px auto 0; padding: 22px 24px; max-width: 520px; border-top: 1px solid rgba(217,178,95,.4); border-bottom: 1px solid rgba(217,178,95,.4); }
.review.show { animation: rise .6s ease both; }
.review__stars { margin: 0; color: var(--gold); letter-spacing: .3em; font-size: 20px; }
.review__quote { margin: 10px 0 0; font-family: var(--serif); font-style: italic; font-weight: 500; font-size: clamp(19px, 4.2vw, 25px); line-height: 1.4; }
.review__quote::before { content: "“"; }
.review__quote::after { content: "”"; }
.review__source { margin-top: 10px; font-family: var(--caps); font-size: 12px; letter-spacing: .25em; text-transform: uppercase; color: var(--muted); }

/* ——— Genericul ——— */
.credits { margin: 110px auto 0; padding: 0 16px 64px; text-align: center; line-height: 2.2; }
.credits p { margin: 0; }
.credits__end { margin-top: 14px !important; font-family: var(--script); font-style: italic; font-weight: 300; text-transform: none; letter-spacing: .06em; font-size: 28px; color: var(--gold); }

/* ——— Animații ——— */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s ease, transform .9s ease; }
.letter.reveal { transform: translateY(28px) rotate(-.6deg); }
.reveal.in { opacity: 1; transform: none; }
.letter.reveal.in { transform: rotate(-.6deg); }
@keyframes pulse { 50% { opacity: .45; } }
@keyframes bulbs { 50% { filter: brightness(.55); } }
@keyframes glow { 50% { box-shadow: 0 0 28px 4px rgba(217,178,95,.35); } }
@keyframes rise { from { opacity: 0; transform: translateY(14px) scale(.97); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .letter { padding: 30px 20px; }
  .letter__body p { font-size: 16px; }
}

/* ——— Ornamente în stil Shakespeare ——— */
.ornament { margin: 10px 0 0; font-size: 26px; line-height: 1; color: var(--gold); }
.ornament--ink { color: var(--velvet); text-align: center; margin: 18px 0 0; font-size: 22px; letter-spacing: .4em; }
.letter__kicker { text-align: center; font-size: 15px !important; letter-spacing: .4em !important; }
.letter__body p:first-child::first-letter { font-family: var(--display); font-size: 2.2em; color: var(--velvet); }
.letter__body p:first-child { font-size: 21px; font-weight: 500; }
.letter__end { display: flex; justify-content: flex-end; align-items: center; gap: 14px; margin-top: 4px; }
.letter__end .letter__sign { margin: 0; }
.seal {
  display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%;
  font-family: var(--display); font-size: 26px; color: #f1c9b9;
  background: radial-gradient(circle at 35% 30%, #c22a33, #7a0c16 60%, #4a050c);
  box-shadow: 0 3px 8px rgba(0,0,0,.4), inset 0 0 0 4px rgba(0,0,0,.12), inset 0 0 0 7px rgba(255,255,255,.08);
  transform: rotate(-12deg);
}
.credits { font-size: 13px; }

/* ——— Decorul Londrei în spatele scenei ——— */
.stage > * { position: relative; z-index: 1; }
.stage > .london, .stage > .fireworks, .stage > .bulbs { position: absolute; }
.london { left: 0; right: 0; bottom: 0; height: min(62vh, 520px); z-index: 0; pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 22%); mask-image: linear-gradient(180deg, transparent 0%, #000 22%); }
.london__svg { width: 100%; height: 100%; display: block; opacity: .9; }
.london .eye { animation: eye 120s linear infinite; }
.london .ripple { animation: ripple 4s ease-in-out infinite; }
.london .lampglow { animation: flicker 3.5s ease-in-out infinite; }
@keyframes eye { to { transform: rotate(360deg); } }
@keyframes ripple { 50% { opacity: .05; } }
@keyframes flicker { 50% { opacity: .7; } 55% { opacity: .95; } }

.fireworks { inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.fw { position: absolute; left: var(--x); top: var(--y); width: 4px; height: 4px; border-radius: 50%;
  animation: burst 6s ease-out var(--d) infinite; opacity: 0;
  box-shadow:
    0 -46px 0 0 var(--c), 33px -33px 0 0 var(--c), 46px 0 0 0 var(--c), 33px 33px 0 0 var(--c),
    0 46px 0 0 var(--c), -33px 33px 0 0 var(--c), -46px 0 0 0 var(--c), -33px -33px 0 0 var(--c),
    0 -26px 0 -1px #fff, 18px -18px 0 -1px #fff, 26px 0 0 -1px #fff, 18px 18px 0 -1px #fff,
    0 26px 0 -1px #fff, -18px 18px 0 -1px #fff, -26px 0 0 -1px #fff, -18px -18px 0 -1px #fff; }
@keyframes burst {
  0% { transform: scale(.1); opacity: 0; }
  6% { opacity: 1; }
  30% { transform: scale(1.3); opacity: 0; }
  100% { transform: scale(1.3); opacity: 0; }
}
@media (max-width: 640px) { .london { height: 46vh; } }

/* Orizontul se vede întreg pe orice ecran, iar textul rămâne lizibil peste el */
.london { height: auto; max-height: 520px; }
.london__svg { height: auto; max-height: 520px; opacity: .75; }
.stage { padding-bottom: clamp(70px, 12vw, 160px); }
.stage .tagline, .stage .premiere { text-shadow: 0 0 6px #0b0a12, 0 0 14px #0b0a12, 0 2px 2px #0b0a12; }
@media (max-width: 640px) { .london { height: auto; } }

/* ——— Crăciun și Anul Nou: titlul mare ——— */
.greet { margin: 18px 0 0; line-height: 1.02; font-weight: 900; text-transform: uppercase; letter-spacing: .02em; }
.greet__a, .greet__b { display: block; }
.greet__a { font-size: clamp(30px, 7.4vw, 64px);
  background: linear-gradient(180deg, #fff6dc 0%, #f3dfa6 40%, #b98a35 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 18px rgba(217,178,95,.35)); }
.greet__b { margin-top: 6px; font-size: clamp(16px, 3.6vw, 30px); font-weight: 300; letter-spacing: .18em; color: var(--ivory); }
.direction { margin: 18px auto 0; max-width: 34em; font-style: italic; font-weight: 300; font-size: clamp(13px, 2.4vw, 16px); color: #cbbfa6; opacity: .9; }
.ticket__act { margin: 4px 0 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .14em; font-size: clamp(14px, 2.8vw, 18px); color: var(--velvet); }

/* ——— Artificii desenate cu linii aurii, în stilul orizontului ——— */
.fireworks { inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.firework { position: absolute; width: var(--s); height: var(--s); margin: calc(var(--s) / -2) 0 0 calc(var(--s) / -2); opacity: 0;
  animation: fw-burst var(--t) cubic-bezier(.2,.7,.3,1) var(--d) infinite; }
.firework svg { width: 100%; height: 100%; overflow: visible; }
.firework .trail { position: absolute; left: 50%; top: 50%; width: 1.5px; height: 40vh; margin-left: -.75px;
  background: linear-gradient(180deg, var(--c), transparent); transform-origin: top; opacity: 0;
  animation: fw-trail var(--t) ease-out var(--d) infinite; }
@keyframes fw-burst {
  0%, 14% { transform: scale(.05); opacity: 0; }
  16% { opacity: 1; }
  40% { transform: scale(1); opacity: .9; }
  60% { transform: scale(1.08) translateY(8px); opacity: 0; }
  100% { opacity: 0; }
}
@keyframes fw-trail {
  0% { transform: translateY(40vh) scaleY(.2); opacity: 0; }
  4% { opacity: .8; }
  14% { transform: translateY(0) scaleY(1); opacity: .6; }
  18%, 100% { transform: translateY(0) scaleY(0); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .firework, .firework .trail { animation: none; opacity: .5; transform: none; } .firework .trail { display: none; } }
/* steaua se deschide, iar dâra urcă separat (nu se micșorează odată cu steaua) */
.firework { opacity: 1; animation: none; }
.firework svg { opacity: 0; animation: fw-burst var(--t) cubic-bezier(.2,.7,.3,1) var(--d) infinite; }
@media (prefers-reduced-motion: reduce) { .firework svg { animation: none; opacity: .5; } }
/* artificiile rămân decor: mai discrete, ca textul să se citească */
.fireworks { opacity: .7; }
@media (max-width: 640px) {
  .fireworks { opacity: .5; }
  .firework { width: calc(var(--s) * .6); height: calc(var(--s) * .6); margin: calc(var(--s) * -.3) 0 0 calc(var(--s) * -.3); }
}
