/* Modern Gatsby / Pinterest Luxury — слой поверх app.css. Приоритет визуала. */

:root {
  --bg: #131313;
  --bg-deep: #0B0B0B;
  --bg-sunken: #0B0B0B;
  --surface: #1C1816;
  --surface-elevated: #29201C;
  --bg-raised: #1C1816;
  --burgundy: #4D0509;
  --burgundy-rich: #650C18;
  --burgundy-hover: #7A1420;
  --gold: #DAAC6F;
  --gold-light: #E8CFA0;
  --gold-muted: #8F7047;
  --gold-soft: #8F7047;
  --ivory: #FFFBEF;
  --text: #FFFBEF;
  --muted: #A99C8B;
  --olive: #292C20;
  --emerald: #263C30;
  --emerald-accent: #527C60;
  --radius: 16px;
  --radius-sm: 12px;
  --radius-lg: 24px;
  --radius-pill: 999px;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Manrope", "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --page-title-size: clamp(2rem, 7vw, 2.5rem);
  --section-title-size: clamp(1.55rem, 5vw, 2rem);
  --card-border: 0;
  --shadow-soft: 0 18px 48px rgba(0, 0, 0, .42);
  --shadow-photo: 0 16px 40px rgba(0, 0, 0, .5);
}

body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  background:
    radial-gradient(ellipse 100% 55% at 50% -5%, rgba(101, 12, 24, .38), transparent 58%),
    radial-gradient(ellipse 70% 40% at 100% 80%, rgba(38, 60, 48, .12), transparent 50%),
    var(--bg);
}

body::before { opacity: .028; }

h1, h2, h3, h4 {
  font-weight: 400;
  letter-spacing: .01em;
}

.site-header {
  background: transparent;
  border-bottom: 0;
  box-shadow: none;
}
.site-header::after { display: none; }
.header-inner { padding-top: .75rem; padding-bottom: .65rem; }
.brand {
  font-family: var(--sans);
  font-weight: 500;
  letter-spacing: .16em;
  font-size: .68rem;
  color: var(--gold-light);
}
.brand__mark,
.site-logo--header {
  width: 2.75rem;
  height: auto;
  aspect-ratio: 3 / 2;
  border-radius: 8px;
  object-fit: contain;
  background: #4D0509;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .35);
}
.site-logo {
  display: block;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  background: #4D0509;
}
.site-logo--hero {
  width: min(14rem, 72vw);
  height: auto;
  aspect-ratio: 3 / 2;
  margin: .15rem auto .95rem;
  border-radius: 18px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, .45);
}
.site-logo--page {
  width: 8rem;
  height: auto;
  aspect-ratio: 3 / 2;
  margin: 0 auto .85rem;
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .35);
}
.site-logo--seal {
  width: 5.5rem;
  height: auto;
  aspect-ratio: 3 / 2;
  border-radius: 12px;
  box-shadow: 0 8px 18px rgba(77, 5, 9, .28);
}
.site-logo-wrap { margin: 0 0 .85rem; }
.party__logo {
  width: min(16rem, 78vw);
  height: auto;
  aspect-ratio: 3 / 2;
  margin: .35rem auto 1rem;
  border-radius: 20px;
  box-shadow: var(--shadow-photo);
}

.main { padding-top: 1rem; }

.page-title {
  font-size: var(--page-title-size);
  font-weight: 400;
  letter-spacing: .01em;
  text-transform: none;
  color: var(--ivory);
}
.page-title::before,
.page-title::after {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(218, 172, 111, .45), transparent);
  border: 0;
}

.section-title {
  font-size: var(--section-title-size);
  font-weight: 400;
  text-transform: none;
  letter-spacing: .01em;
  color: var(--gold-light);
  border-bottom: 0;
  padding-bottom: 0;
}
.section-title::after { display: none; }

.card {
  background: var(--surface);
  border: 0;
  border-radius: var(--radius);
  box-shadow: none;
  padding: 1.15rem 1.2rem;
}
.card.frame,
.frame {
  border: 0;
  outline: 0;
  border-radius: var(--radius-lg);
  box-shadow: none;
  background: var(--surface);
}
.frame::before,
.frame::after { display: none; }

.btn {
  border-radius: var(--radius-pill);
  min-height: 50px;
  padding: .85rem 1.55rem;
  font-family: var(--sans);
  font-weight: 500;
  font-size: .88rem;
  letter-spacing: .08em;
  border-width: 1px;
  box-shadow: none;
}
.btn--primary {
  background: linear-gradient(180deg, var(--burgundy-rich), var(--burgundy));
  border-color: rgba(218, 172, 111, .35);
  color: var(--ivory);
}
.btn--primary:hover {
  background: linear-gradient(180deg, var(--burgundy-hover), var(--burgundy-rich));
  color: var(--ivory);
}
.btn--secondary,
.btn--ghost {
  border-radius: var(--radius-pill);
  background: transparent;
}
.btn--danger {
  border-radius: var(--radius-pill);
  background: var(--burgundy-rich);
  border-color: rgba(218, 172, 111, .3);
}
.btn--small { min-height: 44px; border-radius: var(--radius-pill); }

input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
select,
textarea {
  border-radius: var(--radius-sm);
  border-color: rgba(218, 172, 111, .28);
  background: rgba(11, 11, 11, .72);
}

.bottom-nav {
  background: rgba(11, 11, 11, .88);
  border-top: 1px solid rgba(218, 172, 111, .18);
  box-shadow: 0 -12px 32px rgba(0, 0, 0, .35);
  backdrop-filter: blur(14px);
}
.bottom-nav__link {
  border-top-width: 0;
  color: var(--muted);
}
.bottom-nav__link.is-active {
  color: var(--gold-light);
  border-top-color: transparent;
}
.bottom-nav__link.is-active::before {
  content: "";
  position: absolute;
  top: .35rem;
  width: 1.1rem;
  height: 2px;
  border-radius: 2px;
  background: var(--gold);
}
.bottom-nav__item { position: relative; }
.bottom-nav__link { position: relative; }

.top-nav { border-top: 0; }
.top-nav__link {
  font-family: var(--sans);
  letter-spacing: .12em;
  font-size: .7rem;
  border-bottom-width: 0;
}
.top-nav__link.is-active {
  color: var(--gold-light);
  border-bottom: 0;
}

/* ---------- Портреты: никогда не растягивать горизонтально ---------- */

.guest-tile__photo,
.character-hero__photo,
.invite-photo__img {
  aspect-ratio: 3 / 4;
  height: auto !important;
  object-fit: cover;
  object-position: center 16%;
  border-radius: 20px;
  border: 0 !important;
  outline: 0 !important;
}

.guest-grid--hosts .guest-tile__photo,
.guest-grid--fit .guest-tile__photo,
.guest-grid--dash .guest-tile__photo,
.dash-intro .guest-grid--dash .guest-tile__photo {
  aspect-ratio: 3 / 4 !important;
  height: auto !important;
  max-height: none;
}

.guests-board {
  min-height: 0;
}
.guests-board .guest-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem .75rem;
  flex-wrap: unset;
}
.guests-board .guest-grid > li {
  flex: unset;
  max-width: none;
  width: auto;
}
.guests-board .guest-grid--hosts {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 28rem;
  margin-inline: auto;
}
@media (min-width: 900px) {
  .guests-board .guest-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.35rem 1rem;
  }
  .guests-board .guest-grid--hosts {
    grid-template-columns: repeat(2, minmax(0, 14rem));
    justify-content: center;
    max-width: none;
  }
}

.guest-tile__photo {
  box-shadow: var(--shadow-photo);
  border-radius: 18px;
}
.guest-tile__body {
  padding: .65rem .2rem 0;
  text-align: left;
}
.guest-tile__name {
  font-size: clamp(1rem, 3.2vw, 1.2rem);
  color: var(--ivory);
  -webkit-line-clamp: 2;
}
.guest-tile__meta {
  font-family: var(--sans);
  font-style: normal;
  font-size: .78rem;
  color: var(--muted);
}
.guest-tile__player { font-size: .72rem; }

.character-hero__stage {
  margin-left: calc(-1rem - var(--safe-l));
  margin-right: calc(-1rem - var(--safe-r));
  border-radius: 0 0 28px 28px;
  overflow: hidden;
}
.character-hero__photo {
  border-radius: 0;
  max-height: min(78vh, 40rem);
}
.character-hero__frame { display: none; }
.character-hero__veil {
  background: linear-gradient(180deg, transparent 42%, rgba(11, 11, 11, .55) 72%, rgba(11, 11, 11, .94) 100%);
}
.character-hero__name {
  font-size: clamp(2.2rem, 8vw, 3.1rem);
  font-weight: 400;
  color: var(--ivory);
}
.character-hero__kicker {
  letter-spacing: .18em;
  color: var(--gold-light);
}
.character-hero__public .card {
  background: transparent;
  padding: 0;
  box-shadow: none;
}

@media (min-width: 720px) {
  .character-hero__stage {
    margin: 0;
    border-radius: 24px;
  }
  .character-hero__photo { border-radius: 24px; }
}

.doc-card {
  border-radius: 16px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .28);
}
.doc-card::before { content: none; }
.paper {
  border-radius: 20px;
  outline: 0;
  box-shadow: 0 14px 36px rgba(0, 0, 0, .3);
}
.paper::before { opacity: .7; top: 1rem; right: 1rem; }

.secret-dossier {
  border: 0;
  border-left: 3px solid var(--burgundy-rich);
  border-radius: 18px;
  background: var(--surface);
}
.dossier-panel__title {
  font-size: 1.28rem;
}
.dossier-block__title {
  letter-spacing: .03em;
}
.dossier-story h1 {
  background:
    linear-gradient(90deg, rgba(218, 172, 111, .1), transparent 70%);
  padding-left: .65rem;
  margin-left: -.15rem;
  border-radius: 0 8px 8px 0;
}
.dossier-story > h1:first-child {
  background: none;
  padding-left: 0;
}

.rules-page {
  display: grid;
  gap: 1rem;
  max-width: none;
  margin: 0 auto;
}
.rules-page__head { text-align: center; }
.rules-page__lead {
  margin: .2rem 0 0;
  color: var(--muted);
  font-size: .95rem;
}
.rules-page__cta { margin: 0; }

.rules-dossier {
  border-left: 3px solid var(--burgundy-rich);
  border-radius: 18px;
  background: var(--surface);
  overflow: hidden;
}
.rules-dossier .dossier-panel:first-child {
  border-top: 0;
  background:
    linear-gradient(160deg, rgba(101, 12, 24, .28), transparent 70%);
}
.rules-dossier .dossier-block__list {
  color: rgba(255, 251, 239, .9);
}
.rules-dossier .dossier-block__list strong {
  color: var(--gold-light);
  font-weight: 600;
}
.rules-note {
  margin: .85rem 0 0;
  color: var(--muted);
  font-size: .9rem;
}

.rules-facts {
  margin-top: .35rem;
  padding: 1.35rem 1.25rem 1.45rem;
  border-radius: 18px;
  border: 1px solid rgba(218, 172, 111, .22);
  background:
    linear-gradient(165deg, rgba(101, 12, 24, .22), transparent 55%),
    rgba(18, 12, 10, .55);
}
.rules-facts__head {
  text-align: center;
  max-width: 34rem;
  margin: 0 auto 1.15rem;
}
.rules-facts__eyebrow {
  margin: 0;
  font-size: .72rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold-light);
}
.rules-facts__title {
  margin: .35rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.4vw, 1.7rem);
  font-weight: 500;
  color: var(--cream);
}
.rules-facts__lead {
  margin: .45rem 0 0;
  color: var(--muted);
  font-size: .92rem;
  line-height: 1.45;
}
.rules-facts__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .85rem 1rem;
}
@media (min-width: 720px) {
  .rules-facts__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem 1.15rem;
  }
}
.rules-facts__item {
  display: grid;
  gap: .2rem;
  padding: .55rem .2rem;
  text-align: center;
  border-top: 1px solid rgba(218, 172, 111, .16);
}
.rules-facts__num {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3vw, 1.95rem);
  font-weight: 500;
  line-height: 1.1;
  color: var(--gold-light);
  letter-spacing: .02em;
}
.rules-facts__label {
  color: rgba(255, 251, 239, .78);
  font-size: .82rem;
  line-height: 1.35;
}

/* ---------- Приглашение / party hero ---------- */

/* Главная: приглашение с декором + компактный старт */
.home-board {
  display: grid;
  gap: 1rem;
  max-width: none;
  margin: 0 auto;
}
.home-board__head { text-align: center; }
.home-board__title {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.85rem, 6.5vw, 2.6rem);
  font-weight: 400;
  line-height: 1.1;
  color: var(--ivory);
}
.home-board__for {
  margin: .55rem 0 0;
  font-size: .92rem;
  color: var(--muted);
}
.home-board__for strong {
  color: var(--gold-light);
  font-weight: 500;
}
.home-board__hint {
  margin: .35rem auto 0;
  max-width: 28rem;
}
.home-board__actions {
  display: grid;
  gap: .65rem;
}
.home-board__actions .btn { width: 100%; }

.party__ornament {
  display: block;
  width: min(12rem, 70%);
  height: 1.35rem;
  margin: 0 auto .75rem;
  background: url("../img/decorations/divider.db6e5899e864.svg") center / contain no-repeat;
}

.home-hosts {
  display: grid;
  gap: 1rem;
  align-items: stretch;
  margin: 0;
  width: 100%;
  max-width: none;
}
.home-hosts__stage {
  position: relative;
  margin: 0;
  border-radius: 24px;
  overflow: hidden;
  background: #1C1816;
  box-shadow: var(--shadow-photo);
}
.home-hosts__photo {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  /* Только rem: vh/dvh на мобиле меняются при скролле (адресная строка) и «тянут» кадр */
  max-height: 22rem;
  object-fit: cover;
  object-position: center 18%;
}
.home-invite {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0;
  padding: 1.5rem 1.25rem 1.6rem;
  border-radius: 24px;
  background:
    linear-gradient(160deg, rgba(101, 12, 24, .95), rgba(77, 5, 9, .92));
  text-align: center;
  color: var(--ivory);
  box-shadow: var(--shadow-soft);
  min-width: 0;
}
@media (min-width: 720px) {
  .home-hosts {
    /* Как character-hero: портрет слева, контент справа на всю ширину контейнера */
    grid-template-columns: minmax(18rem, 24rem) minmax(0, 1fr);
    gap: 1.5rem 1.85rem;
  }
  .home-hosts__photo {
    height: 100%;
    max-height: none;
    aspect-ratio: auto;
  }
  .home-invite {
    padding: 1.85rem 1.75rem 2rem;
  }
}
.home-invite__kicker {
  margin: 0 0 .55rem;
  font-size: .72rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold-light);
}
.home-invite__hosts {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.55rem, 4.5vw, 2.05rem);
  font-weight: 400;
  line-height: 1.12;
  color: var(--ivory);
}
.home-invite__tagline {
  margin: .75rem auto 0;
  max-width: 20rem;
  font-family: var(--serif);
  font-size: 1.05rem;
  font-style: italic;
  line-height: 1.45;
  color: rgba(255, 251, 239, .86);
}
.home-invite .party-invite__pearl {
  width: min(100%, 14rem);
  height: 1.25rem;
  margin: 1rem auto .3rem;
}
.home-invite__map { margin: 1.1rem 0 0; }
.home-invite__map .btn {
  border-color: rgba(218, 172, 111, .45);
  color: var(--gold-light);
}
.home-invite__map .btn:hover,
.home-invite__map .btn:focus-visible {
  border-color: var(--gold);
  color: var(--ivory);
  background: rgba(218, 172, 111, .12);
}

.home-when {
  margin: .15rem auto 0;
  max-width: 20rem;
  text-align: center;
}
.home-when__weekday {
  margin: 0;
  font-size: .72rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(232, 207, 160, .78);
}
.home-when__date {
  margin: .4rem 0 0;
  font-family: var(--serif);
  font-size: clamp(1.55rem, 4.5vw, 2.05rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: .02em;
  color: var(--gold);
}
.home-when__time {
  margin: .45rem 0 0;
  font-family: var(--serif);
  font-size: 1.3rem;
  letter-spacing: .12em;
  color: var(--ivory);
}
.home-when__rule {
  display: block;
  width: 3.5rem;
  height: 1px;
  margin: .85rem auto;
  background: linear-gradient(90deg, transparent, rgba(218, 172, 111, .7), transparent);
}
.home-when__city {
  margin: 0;
  font-size: .92rem;
  letter-spacing: .08em;
  color: rgba(255, 251, 239, .88);
}
.home-when__address {
  margin: .3rem 0 0;
  font-family: var(--serif);
  font-size: 1.1rem;
  line-height: 1.35;
  color: var(--gold-light);
}

.countdown {
  margin: .25rem auto 0;
  max-width: 28rem;
  text-align: center;
}
.countdown__garland {
  display: block;
  width: min(100%, 22rem);
  height: 2.25rem;
  margin: 0 auto .55rem;
  background: url("../img/decorations/fairy-lights.2fc4e0181b7e.svg") center / contain no-repeat;
}
.countdown__label {
  margin: 0 0 .75rem;
  font-family: var(--serif);
  font-size: 1.2rem;
  color: var(--gold-light);
  font-weight: 400;
}
.countdown__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .25rem .4rem;
  align-items: start;
}
.countdown__value {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.7rem, 7vw, 2.35rem);
  font-weight: 400;
  line-height: 1;
  color: var(--gold);
  letter-spacing: .04em;
  font-variant-numeric: tabular-nums;
}
.countdown__unit {
  display: block;
  margin-top: .25rem;
  font-size: .62rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  font-family: var(--sans);
}
.countdown__done {
  margin: .55rem 0 0;
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--gold-light);
}

.atmosphere {
  margin: 0 calc(-1rem - var(--safe-l));
  border-radius: 0;
  overflow: hidden;
  max-height: 10rem;
}
.atmosphere img {
  width: 100%;
  height: 10rem;
  object-fit: cover;
  display: block;
  filter: saturate(.92) brightness(.9);
}
@media (min-width: 720px) {
  .atmosphere {
    margin-left: 0;
    margin-right: 0;
    border-radius: 22px;
  }
}

.pearl-divider {
  display: block;
  width: min(100%, 20rem);
  height: 1.5rem;
  margin: 1.25rem auto;
  background: url("../img/decorations/pearl-strand.24de4bbb27d1.svg") center / contain no-repeat;
}

.hosts-feature {
  margin: 0 auto 1.5rem;
  max-width: 28rem;
}
.hosts-feature__photo {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center 20%;
  border-radius: 24px;
  box-shadow: var(--shadow-photo);
}
.hosts-feature__caption {
  margin: .75rem 0 0;
  text-align: center;
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--gold-light);
}

/* Dashboard / ход вечера */
body.page-dashboard {
  display: flex;
  flex-direction: column;
  height: 100dvh;
  overflow: hidden;
}
body.page-dashboard .site-header {
  flex: none;
}
body.page-dashboard .main {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  padding-top: .5rem;
  padding-bottom: .5rem;
  overflow: hidden;
}
body.page-dashboard .dash-intro,
body.page-dashboard .dash-stage {
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
  overflow: hidden;
}
body.page-dashboard .dash-intro {
  gap: .45rem;
}
body.page-dashboard .dash-intro__head {
  flex: none;
}
body.page-dashboard .dash-intro__board {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}
.dash-act {
  margin: .2rem 0 0;
  font-family: var(--serif);
  font-size: clamp(1.15rem, 3.4vw, 1.5rem);
  color: var(--gold-light);
}
.dash-stage {
  display: flex;
  flex-direction: column;
  gap: .55rem;
  width: min(42rem, 100%);
  margin: 0 auto;
}
.dash-stage__head {
  flex: none;
  text-align: center;
}
.dash-stage .page-title {
  margin: 0;
  font-size: clamp(1.85rem, 4.5vw, 2.6rem);
  line-height: 1.1;
}
.dash-stage .dash-timer {
  margin: .15rem 0 0;
  font-size: clamp(1.2rem, 3.2vw, 1.65rem);
}
.dash-kicker {
  margin: 0 0 .25rem;
  font-family: var(--sans);
  font-size: .72rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold-light);
}
.dash-lead {
  margin: .2rem auto 0;
  max-width: 36rem;
  font-family: var(--serif);
  font-size: clamp(.95rem, 2.6vw, 1.1rem);
  line-height: 1.35;
  color: rgba(255, 251, 239, .88);
}
.dash-intro__head .dash-lead {
  margin-top: .25rem;
  font-size: clamp(.88rem, 2.4vw, 1rem);
}
.dash-quote {
  flex: none;
  margin: 0;
  padding: .65rem .85rem;
  border: 0;
  border-left: 3px solid var(--gold);
  border-radius: 0 14px 14px 0;
  background: rgba(218, 172, 111, .08);
  font-family: var(--serif);
  font-size: clamp(.92rem, 2.4vw, 1.05rem);
  font-style: italic;
  line-height: 1.35;
  color: rgba(255, 251, 239, .9);
}
.dash-notes {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: .35rem;
}
.dash-notes .section-title {
  flex: none;
  margin: 0;
  font-size: clamp(1.05rem, 3vw, 1.25rem);
}
.dash-notes__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: .4rem;
  min-height: 0;
  overflow: hidden;
}
.dash-notes__list li {
  position: relative;
  padding: .55rem .75rem .55rem 1.55rem;
  border-radius: 12px;
  background: var(--surface);
  color: rgba(255, 251, 239, .9);
  font-size: clamp(.88rem, 2.2vw, .98rem);
  line-height: 1.3;
}
.dash-notes__list li::before {
  content: "◆";
  position: absolute;
  left: .65rem;
  top: .7rem;
  font-size: .5rem;
  color: var(--gold);
}
.dash-results {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}
.dash-intro .guest-grid {
  display: grid !important;
  grid-template-columns: repeat(var(--guest-cols, 6), minmax(0, 1fr));
  gap: .55rem .55rem;
  justify-content: center;
  grid-auto-rows: minmax(0, 1fr);
  align-content: stretch;
  flex: 1 1 0;
  min-height: 0;
  overflow: hidden;
  margin: 0;
}
.dash-intro .guest-grid > li {
  flex: unset;
  max-width: none;
  width: auto;
  min-width: 0;
  min-height: 0;
}
.dash-intro .guest-tile {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  min-width: 0;
}
.dash-intro .guest-grid--dash .guest-tile__photo {
  flex: 1 1 0;
  min-height: 0;
  aspect-ratio: auto !important;
  width: 100%;
  height: 0 !important;
  max-height: none;
  object-fit: cover;
}
.dash-intro .guest-tile__body {
  flex: none;
  padding-top: .4rem;
  gap: .12rem;
}
.dash-intro .guest-tile__name {
  font-size: clamp(.78rem, 1.7vw, 1.05rem);
}
.dash-intro .guest-tile__meta {
  font-size: clamp(.64rem, 1.3vw, .76rem);
  -webkit-line-clamp: 1;
}
.dash-intro .guest-tile__player {
  font-size: clamp(.6rem, 1.2vw, .7rem);
}
body.page-dashboard .notice {
  display: none !important;
}
body.page-dashboard--finales .dash-finale {
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: .35rem;
  overflow: hidden;
}
.dash-finale__head {
  flex: none;
  text-align: center;
}
.dash-finale__head .dash-kicker {
  margin-bottom: .1rem;
}
.dash-finale__head .page-title {
  margin: 0;
  font-size: clamp(1.2rem, 2.8vw, 1.55rem);
  line-height: 1.1;
}
.dash-finale__stage {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: .85rem;
  width: min(84rem, 100%);
  margin-inline: auto;
}
.dash-finale__nav {
  align-self: center;
  flex: none;
  width: 2.6rem;
  height: 2.6rem;
  border: 1px solid rgba(218, 172, 111, .45);
  border-radius: 999px;
  background: rgba(18, 12, 10, .55);
  color: var(--gold-light);
  font-family: var(--serif);
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
}
.dash-finale__nav:hover,
.dash-finale__nav:focus-visible {
  border-color: var(--gold);
  color: var(--ivory);
  outline: none;
}
.dash-finale__viewport {
  position: relative;
  min-width: 0;
  min-height: 0;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.dash-finale__card {
  display: none;
  width: max-content;
  max-width: min(68rem, 100%);
  max-height: 100%;
  min-height: 0;
  grid-template-columns: auto minmax(22rem, 36rem);
  gap: 1.15rem 1.75rem;
  align-items: center;
}
.dash-finale__card.is-active {
  display: grid;
}
.dash-finale__photo-wrap {
  flex: none;
  width: clamp(15rem, 30vw, 22rem);
  min-height: 0;
}
.dash-finale__photo {
  display: block;
  width: 100%;
  height: auto;
  max-height: calc(100dvh - 8.75rem);
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: var(--shadow-photo);
}
.dash-finale__photo--placeholder {
  display: grid;
  place-items: center;
  background: rgba(218, 172, 111, .12);
  color: var(--gold-light);
  font-family: var(--serif);
  font-size: clamp(2.5rem, 8vw, 4rem);
}
.dash-finale__info {
  min-width: 0;
  min-height: 0;
  max-height: calc(100dvh - 8.75rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: .32rem;
  overflow: hidden;
  padding: .1rem 0;
}
.dash-finale__label {
  margin: 0;
  font-family: var(--sans);
  font-size: .72rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold-light);
}
.dash-finale__name {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.9rem, 4.2vw, 2.85rem);
  font-weight: 400;
  line-height: 1.08;
  color: var(--ivory);
}
.dash-finale__role {
  margin: 0;
  color: rgba(255, 251, 239, .84);
  font-size: clamp(1rem, 2.1vw, 1.15rem);
}
.dash-finale__player {
  margin: 0;
  color: var(--muted);
  font-size: .9rem;
}
.dash-finale__ending-title {
  margin: .65rem 0 0;
  padding-top: .65rem;
  border-top: 1px solid rgba(218, 172, 111, .28);
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2.8vw, 1.75rem);
  font-style: italic;
  color: var(--gold-light);
  line-height: 1.2;
}
.dash-finale__ending {
  flex: 0 1 auto;
  min-height: 0;
  margin-top: .2rem;
  overflow: auto;
  padding-right: .15rem;
  font-size: clamp(.95rem, 1.85vw, 1.1rem);
  line-height: 1.45;
  color: rgba(255, 251, 239, .9);
}
.dash-finale__ending.prose p {
  margin: 0 0 .55rem;
}
.dash-finale__ending.prose p:last-child {
  margin-bottom: 0;
}
.dash-finale__ending > :first-child { margin-top: 0; }
.dash-finale__ending > :last-child { margin-bottom: 0; }
.dash-finale__counter {
  flex: none;
  margin: 0;
  text-align: center;
  font-family: var(--serif);
  font-size: .98rem;
  color: var(--gold-light);
  letter-spacing: .06em;
}
.dash-finale--common .dash-finale__card--story {
  width: min(48rem, 100%);
  max-width: min(48rem, 100%);
  grid-template-columns: 1fr;
  justify-items: stretch;
  align-content: center;
  gap: .55rem;
  text-align: left;
}
.dash-finale--common .dash-finale__card--story.is-active,
.dash-finale--common .dash-finale__card.is-active {
  display: grid;
}
.dash-finale--common .dash-finale__card--story .dash-finale__name {
  font-size: clamp(1.85rem, 4vw, 2.7rem);
}
.dash-finale__verdict {
  margin: .55rem 0 0;
  padding-top: .55rem;
  border-top: 1px solid rgba(218, 172, 111, .28);
  font-family: var(--serif);
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  line-height: 1.2;
  color: rgba(255, 251, 239, .72);
}
.dash-finale__verdict.is-proven,
.dash-finale__card.is-proven .dash-finale__verdict {
  color: var(--gold-light);
}
.dash-finale__facts {
  list-style: none;
  margin: .45rem 0 0;
  padding: 0;
  display: grid;
  gap: .3rem;
}
.dash-finale__facts--lead {
  margin-top: .85rem;
  max-width: 38rem;
}
.dash-finale__facts--lead li {
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  line-height: 1.4;
}
.dash-finale__facts li {
  position: relative;
  padding: .35rem 0 .35rem 1rem;
  color: rgba(255, 251, 239, .88);
  font-size: clamp(.92rem, 1.7vw, 1.05rem);
  line-height: 1.35;
}
.dash-finale__facts li::before {
  content: "◆";
  position: absolute;
  left: 0;
  top: .55rem;
  font-size: .45rem;
  color: var(--gold);
}
.dash-finale__story {
  min-height: 0;
  max-height: calc(100dvh - 12rem);
  overflow: auto;
  margin: .2rem 0 0;
  font-size: clamp(1rem, 2vw, 1.18rem);
  line-height: 1.48;
  color: rgba(255, 251, 239, .92);
}
.dash-finale__story.prose p {
  margin: 0 0 .7rem;
}
.dash-finale__story.prose p:last-child {
  margin-bottom: 0;
}
.dash-face {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  object-fit: cover;
  flex: none;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .35);
}
.dash-face--lg {
  width: 4.5rem;
  height: 4.5rem;
}
.dash-face--placeholder {
  display: grid;
  place-items: center;
  background: rgba(218, 172, 111, .14);
  color: var(--gold-light);
  font-family: var(--serif);
  font-size: .85rem;
}
.dash-face--lg.dash-face--placeholder {
  font-size: 1.2rem;
}
.dash-crimes {
  list-style: none;
  margin: .35rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .55rem .75rem;
  max-height: calc(100dvh - 12rem);
  overflow: auto;
}
.dash-crimes__item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: .65rem;
  align-items: center;
  padding: .65rem .8rem;
  border-radius: 14px;
  background: rgba(255, 251, 239, .04);
  border: 1px solid rgba(218, 172, 111, .18);
}
.dash-crimes__item.is-proven {
  border-color: rgba(218, 172, 111, .55);
  background: rgba(218, 172, 111, .1);
}
.dash-crimes__body {
  display: flex;
  flex-direction: column;
  gap: .15rem;
  min-width: 0;
}
.dash-crimes__title {
  font-family: var(--serif);
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--ivory);
}
.dash-crimes__meta {
  font-size: .82rem;
  color: var(--muted);
}
.dash-crimes__item.is-proven .dash-crimes__meta {
  color: var(--gold-light);
}
.dash-heirs {
  margin: .45rem 0 0;
  display: grid;
  gap: .45rem;
}
.dash-heirs__row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: .85rem;
  align-items: center;
  padding: .65rem .85rem;
  border-radius: 14px;
  background: rgba(255, 251, 239, .04);
  border: 1px solid rgba(218, 172, 111, .18);
}
.dash-heirs__row dt {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  color: var(--ivory);
}
.dash-heirs__row dd {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.2rem, 2.4vw, 1.45rem);
  color: var(--gold-light);
}
.dash-investigators {
  list-style: none;
  margin: .45rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .85rem;
}
.dash-investigators__item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: .9rem;
  align-items: center;
  padding: .9rem 1rem;
  border-radius: 16px;
  background: rgba(255, 251, 239, .04);
  border: 1px solid rgba(218, 172, 111, .18);
}
.dash-investigators__item.is-success {
  border-color: rgba(218, 172, 111, .55);
  background: rgba(218, 172, 111, .1);
}
.dash-investigators__role {
  margin: 0;
  font-family: var(--sans);
  font-size: .7rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold-light);
}
.dash-investigators__name {
  margin: .15rem 0 0;
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2.6vw, 1.55rem);
  color: var(--ivory);
}
.dash-investigators__ending {
  margin: .2rem 0 0;
  font-family: var(--serif);
  font-style: italic;
  color: var(--gold-light);
  font-size: 1rem;
}
.dash-investigators__status {
  margin: .35rem 0 0;
  color: rgba(255, 251, 239, .86);
  font-size: .95rem;
  line-height: 1.35;
}
.dash-heirs__reasons {
  list-style: none;
  margin: .75rem 0 0;
  padding: 0;
  display: grid;
  gap: .35rem;
  color: rgba(255, 251, 239, .82);
  font-size: .95rem;
}
.dash-heirs__reasons li {
  position: relative;
  padding-left: 1rem;
}
.dash-heirs__reasons li::before {
  content: "◆";
  position: absolute;
  left: 0;
  top: .2rem;
  font-size: .45rem;
  color: var(--gold);
}
@media (max-width: 820px) {
  .dash-finale__stage {
    gap: .45rem;
  }
  /* На коротких экранах весь слайд должен оставаться доступен:
     прокручивается только содержимое, стрелки и счётчик остаются на месте. */
  .dash-finale__viewport {
    align-items: flex-start;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior-y: contain;
  }
  .dash-finale__card {
    width: min(36rem, 100%);
    max-height: none;
    margin-block: auto;
    flex-shrink: 0;
  }
  .dash-finale__card.is-active {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: .75rem;
  }
  .dash-finale__photo-wrap {
    width: min(12.5rem, 42vw);
  }
  .dash-finale__photo {
    max-height: 34dvh;
  }
  .dash-finale__info {
    width: 100%;
    max-height: none;
    overflow: visible;
    align-items: center;
  }
  .dash-finale__ending {
    text-align: left;
    width: 100%;
  }
  .dash-finale__ending-title {
    width: 100%;
  }
  .dash-finale__nav {
    width: 2.25rem;
    height: 2.25rem;
    font-size: 1.45rem;
  }
  .dash-crimes,
  .dash-investigators {
    grid-template-columns: 1fr;
  }
  .dash-finale--common .dash-finale__card--story {
    width: min(36rem, 100%);
  }
}
@media (prefers-reduced-motion: reduce) {
  .dash-finale__card { transition: none; }
}
.dash-intro__board .section-title--board {
  margin-bottom: .35rem;
}
.dash-intro .page-title {
  font-size: clamp(1.85rem, 4.5vw, 2.75rem);
  color: var(--ivory);
  line-height: 1.1;
}
.dash-timer--under {
  margin: 0;
  font-size: clamp(1rem, 2.6vw, 1.25rem);
}
.dash-timer {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 400;
}
.dash-hint {
  font-family: var(--sans);
  font-style: normal;
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--muted);
}

body.page-gate {
  background:
    radial-gradient(ellipse 90% 55% at 50% 8%, rgba(101, 12, 24, .42), transparent 58%),
    #131313;
}
body.page-gate::before,
body.page-gate::after {
  content: none;
  display: none;
}

.gate__panel {
  border: 0;
  outline: 0;
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(101, 12, 24, .55), rgba(28, 24, 22, .96) 42%, #1C1816);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .55);
}
.gate__panel.frame::before,
.gate__panel.frame::after { display: none; }
.gate__logo,
.gate__logo.site-logo--hero {
  width: min(12.5rem, 68vw);
  height: auto;
  aspect-ratio: 3 / 2;
  margin: 0 auto .75rem;
  border-radius: 18px;
}
.gate__title {
  margin-top: .35rem;
  font-size: clamp(2rem, 7vw, 2.6rem);
  color: var(--ivory);
}
.gate__welcome {
  margin: .85rem auto 0;
  max-width: 22rem;
  font-family: var(--serif);
  font-size: clamp(1.15rem, 4vw, 1.35rem);
  font-style: italic;
  line-height: 1.4;
  color: rgba(255, 251, 239, .88);
}
.gate__aside {
  margin: 1.15rem 0 0;
  text-align: center;
  font-family: var(--serif);
  font-size: .95rem;
  font-style: italic;
  color: rgba(218, 172, 111, .78);
}
.gate__quote,
.gate__lead,
.gate__date { color: rgba(255, 251, 239, .82); }
.gate__form .field__label { color: var(--ivory); }
.gate.is-intro .gate__panel {
  opacity: 0;
  pointer-events: none;
  animation: none;
}
.gate.is-revealed .gate__panel {
  animation: gate-in .55s ease both;
}

/* ---------- Заставка: бархатные шторы ---------- */

.gate-intro {
  position: fixed;
  inset: 0;
  z-index: 40;
  overflow: hidden;
  background: #4D0509;
}
.gate-intro__curtain {
  position: absolute;
  top: 0;
  bottom: 0;
  width: calc(50% + 2px);
  background-color: #4D0509;
  background-image:
    linear-gradient(90deg, rgba(11, 3, 4, .35), transparent 18%, transparent 82%, rgba(11, 3, 4, .28)),
    linear-gradient(180deg, rgba(218, 172, 111, .12), transparent 14%, transparent 86%, rgba(0, 0, 0, .35)),
    url("../img/backgrounds/curtain-burgundy.ed3092d2f4cb.jpg");
  background-size: cover;
  background-repeat: no-repeat;
  transition: transform 1.8s cubic-bezier(.22, .82, .18, 1);
  will-change: transform;
}
.gate-intro__curtain--left {
  left: 0;
  background-position: left center;
  box-shadow:
    inset -18px 0 36px rgba(0, 0, 0, .35),
    8px 0 28px rgba(0, 0, 0, .45);
}
.gate-intro__curtain--left::after {
  content: "";
  position: absolute;
  top: 8%;
  bottom: 8%;
  right: 0;
  width: 2px;
  background: linear-gradient(180deg, transparent, rgba(218, 172, 111, .55), transparent);
}
.gate-intro__curtain--right {
  right: 0;
  background-position: right center;
  box-shadow:
    inset 18px 0 36px rgba(0, 0, 0, .35),
    -8px 0 28px rgba(0, 0, 0, .45);
}
.gate-intro__curtain--right::after {
  content: "";
  position: absolute;
  top: 8%;
  bottom: 8%;
  left: 0;
  width: 2px;
  background: linear-gradient(180deg, transparent, rgba(218, 172, 111, .55), transparent);
}
.gate-intro__brand {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: .85rem;
  padding: 1.5rem;
  pointer-events: none;
  transition: opacity .9s ease, transform 1.2s ease;
}
.gate-intro__logo {
  width: min(16rem, 72vw);
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: contain;
  border-radius: 18px;
  background: #4D0509;
  box-shadow: 0 18px 48px rgba(0, 0, 0, .5);
}
.gate-intro__wordmark {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.15rem, 4.5vw, 1.55rem);
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--gold);
  text-align: center;
}
.gate-intro__ornament {
  display: block;
  width: min(12rem, 55vw);
  height: 1.2rem;
  background: url("../img/decorations/divider.db6e5899e864.svg") center / contain no-repeat;
  opacity: .85;
}
.gate-intro__skip {
  position: absolute;
  z-index: 3;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  min-height: 44px;
  padding: .55rem 1rem;
  border: 1px solid rgba(218, 172, 111, .4);
  border-radius: 999px;
  background: rgba(19, 19, 19, .45);
  color: var(--gold-light);
  font-family: var(--sans);
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  cursor: pointer;
}
.gate-intro__skip:hover,
.gate-intro__skip:focus-visible {
  border-color: var(--gold);
  color: var(--ivory);
  background: rgba(77, 5, 9, .55);
}

.gate.is-opening .gate-intro__curtain--left { transform: translateX(-105%); }
.gate.is-opening .gate-intro__curtain--right { transform: translateX(105%); }
.gate.is-opening .gate-intro__brand {
  opacity: 0;
  transform: scale(.96);
}
.gate.is-opening .gate-intro__skip { opacity: 0; pointer-events: none; }

@media (prefers-reduced-motion: reduce) {
  .gate-intro__curtain,
  .gate-intro__brand,
  .gate.is-revealed .gate__panel { transition: none !important; animation: none !important; }
}

/* Login gate still uses a couple of party ornaments */
.party__eyebrow {
  margin: 0 0 .55rem;
  text-align: center;
  font-size: .72rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold-light);
}
.party-invite__pearl {
  display: block;
  width: min(100%, 18rem);
  height: 1.4rem;
  margin: 1rem auto .35rem;
  background: url("../img/decorations/pearl-strand.24de4bbb27d1.svg") center / contain no-repeat;
}

.actions-row {
  display: grid;
  gap: .75rem;
  margin: 1.25rem auto;
  max-width: 22rem;
}
.actions-row .btn { width: 100%; }

.finance-panel {
  border: 0;
  border-radius: 20px;
  background:
    linear-gradient(160deg, rgba(218, 172, 111, .08), transparent 50%),
    var(--surface);
}

@media (prefers-reduced-motion: reduce) {
  .countdown__garland,
  .secret.is-opening .secret-envelope__card,
  .secret.is-revealed .secret__body { animation: none !important; }
}

/* ---------- Конверт / только для ваших глаз ---------- */

.eyes-only {
  display: grid;
  justify-items: center;
  gap: .4rem;
  margin: 0;
  padding: 1rem 1.15rem .95rem;
  text-align: center;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(101, 12, 24, .45), transparent 70%),
    rgba(12, 10, 9, .35);
  border-bottom: 1px solid rgba(218, 172, 111, .2);
}
.eyes-only__rule {
  display: block;
  width: min(11rem, 55%);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(218, 172, 111, .75), transparent);
}
.eyes-only__title {
  margin: 0;
  font-family: var(--serif);
  font-size: .95rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
}
.eyes-only__text {
  margin: 0;
  max-width: 22rem;
  font-size: .82rem;
  line-height: 1.4;
  color: rgba(255, 251, 239, .72);
}
.secret-dossier > .eyes-only {
  margin: 0;
  border-radius: 0;
}
.secret-dossier__docs--solo { padding-top: .35rem; }

.secret.is-envelope.is-locked .secret__body {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  border: 0;
  filter: none;
  opacity: 0;
  pointer-events: none;
}
.secret.is-envelope .secret__open,
.secret.is-envelope [data-secret-open-fallback] {
  position: static;
  transform: none;
  width: auto;
  left: auto;
  top: auto;
}
.secret__open,
.secret__open:hover,
.secret__open:active,
.secret__open:focus-visible {
  transform: translate(-50%, -50%);
  transition: background var(--ease), color var(--ease), border-color var(--ease);
}

.secret-envelope {
  margin: 0 0 var(--space-md, 1rem);
}
.secret-envelope__card {
  position: relative;
  padding: 1.75rem 1.35rem 1.5rem;
  border-radius: 22px;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(255, 251, 239, .55), transparent 55%),
    linear-gradient(165deg, #F4EBD8 0%, #E8D9BF 48%, #DCC9A8 100%);
  color: #2A1C14;
  text-align: center;
  box-shadow:
    0 18px 40px rgba(0, 0, 0, .35),
    inset 0 0 0 1px rgba(143, 112, 71, .35);
  overflow: hidden;
}
.secret-envelope__card::before {
  content: "";
  position: absolute;
  inset: .65rem;
  border-radius: 16px;
  border: 1px solid rgba(143, 112, 71, .28);
  pointer-events: none;
}
.secret-envelope__ornament {
  position: absolute;
  width: 1.6rem;
  height: 1.6rem;
  background: url("../img/decorations/corner.e9bbdb8191d1.svg") center / contain no-repeat;
  opacity: .55;
  pointer-events: none;
  z-index: 1;
}
.secret-envelope__ornament--tl { top: .85rem; left: .85rem; }
.secret-envelope__ornament--tr { top: .85rem; right: .85rem; transform: scaleX(-1); }
.secret-envelope__ornament--bl { bottom: .85rem; left: .85rem; transform: scaleY(-1); }
.secret-envelope__ornament--br { bottom: .85rem; right: .85rem; transform: scale(-1); }

.secret-envelope__stamp {
  position: relative;
  margin: 0 0 .65rem;
  font-size: .68rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: #650C18;
  font-weight: 600;
}
.secret-envelope__title {
  position: relative;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.55rem, 5vw, 1.95rem);
  font-weight: 500;
  color: #3A2218;
}
.secret-envelope__lead {
  position: relative;
  margin: .7rem auto 0;
  max-width: 22rem;
  font-family: var(--serif);
  font-size: 1.12rem;
  font-style: italic;
  line-height: 1.4;
  color: #5A3A28;
}
.secret-envelope__body {
  position: relative;
  margin: .85rem auto 0;
  max-width: 24rem;
  font-size: .95rem;
  line-height: 1.55;
  color: #4A3224;
}
.secret-envelope__open {
  position: relative;
  margin-top: 1.15rem;
  min-width: 12rem;
}
.secret-envelope__aside {
  position: relative;
  margin: 1rem 0 0;
  font-family: var(--serif);
  font-size: .95rem;
  font-style: italic;
  color: #8F7047;
}

.secret.is-opening .secret-envelope__card {
  animation: envelope-open .28s ease-out both;
}
.secret.is-revealed .secret__body {
  animation: dossier-reveal .42s ease-out both;
}

@keyframes envelope-open {
  from { opacity: 1; transform: scale(1); }
  to { opacity: 0; transform: scale(.96) translateY(-.35rem); }
}
@keyframes dossier-reveal {
  from { opacity: .35; transform: translateY(.4rem); }
  to { opacity: 1; transform: none; }
}
