:root {
  --paper: #fffdf8;
  --paper-soft: #f8f2ea;
  --ink: #3e1f1d;
  --muted: #7d6260;
  --wine: #670008;
  --wine-soft: #552525;
  --gold: #b79b5d;
  --gold-deep: #8f7336;
  --line: rgba(62, 31, 29, 0.14);
  --kazakh-ornament: url("assets/ornament-kazachstan.svg");
  --vintage-ornaments: url("assets/vintage-ornaments/75842.jpg");
  --test-gold-ornament: url("assets/test-bg-gold.svg");
  --fon-ornament-1: url("assets/fon1-gold.svg");
  --fon-ornament-1-2: url("assets/fon1-2-gold.svg");
  --fon-ornament-2: url("assets/fon2-gold.svg");
  --photo-rip-mask: url("assets/torn-collection/mask_cropped.png");
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 50% 0%, rgba(183, 155, 93, 0.14), transparent 30rem),
    var(--paper);
  color: var(--ink);
  font-family: "Cormorant Garamond", Georgia, serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

a {
  color: inherit;
  text-decoration: none;
}

[hidden] {
  display: none !important;
}

.invite {
  container-type: inline-size;
  position: relative;
  width: min(100vw, 430px);
  max-width: 100%;
  margin: 0 auto;
  overflow: hidden;
  background: var(--paper);
  box-shadow: 0 0 44px rgba(62, 31, 29, 0.12);
}

.invite * {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.invite::before,
.invite::after {
  display: none;
  position: absolute;
  z-index: 0;
  width: 170px;
  height: 78px;
  background: var(--gold);
  content: "";
  opacity: 0.08;
  pointer-events: none;
  mask: var(--kazakh-ornament) center / contain no-repeat;
  -webkit-mask: var(--kazakh-ornament) center / contain no-repeat;
}

.invite::before {
  top: 650px;
  left: -86px;
  transform: rotate(90deg);
}

.invite::after {
  top: 1320px;
  right: -88px;
  transform: rotate(-90deg);
}

.section-pad {
  position: relative;
  padding: 34px 28px;
}

.section-pad::before {
  display: block;
  position: absolute;
  z-index: 0;
  width: 96px;
  height: 210px;
  background: var(--fon-ornament-1) center / contain no-repeat;
  content: "";
  opacity: 0.168;
  pointer-events: none;
}

.section-pad > * {
  position: relative;
  z-index: 1;
}

.intro::before {
  top: 42px;
  right: 8px;
  width: 82px;
  height: 178px;
  background-image: var(--fon-ornament-1-2);
  opacity: 0.12;
}

.center::before {
  left: 8px;
  bottom: 10px;
  width: 82px;
  height: 178px;
  background-image: var(--fon-ornament-1);
  opacity: 0.12;
}

.details::before {
  display: none;
}

.venue::before {
  top: 20px;
  left: 10px;
  width: 64px;
  height: 236px;
  background-image: var(--fon-ornament-2);
  opacity: 0.144;
  transform: scaleX(-1);
}

.calendar::before {
  right: 8px;
  bottom: 10px;
  width: 82px;
  height: 178px;
  background-image: var(--fon-ornament-1-2);
  opacity: 0.144;
}

.rsvp::before {
  top: 14px;
  left: 8px;
  width: 82px;
  height: 178px;
  background-image: var(--fon-ornament-1);
  opacity: 0.132;
}

.center,
.details,
.venue,
.calendar,
.rsvp,
.closing {
  text-align: center;
}

.tiny,
.small-title,
.detail-label,
.detail-note,
.field-label,
legend {
  margin: 0;
  color: var(--muted);
  font-family: Montserrat, Arial, sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  line-height: 1.6;
  text-transform: uppercase;
}

h1,
h2,
h3,
.detail-script,
.script-line {
  font-family: Caveat, "Noto Serif", serif;
  font-weight: 600;
}

.hero {
  position: relative;
  background: var(--paper);
}

.photo-frame {
  position: relative;
  overflow: hidden;
  background: #eadfce;
  isolation: isolate;
}

.photo-frame img {
  object-position: var(--photo-x, 50%) var(--photo-y, 50%);
}

.photo-frame::before,
.photo-frame::after {
  position: absolute;
  left: -8%;
  z-index: 2;
  width: 116%;
  height: 112px;
  background: var(--paper);
  content: "";
  pointer-events: none;
  mask: var(--photo-rip-mask) center / 100% 100% no-repeat;
  mask-mode: alpha;
  -webkit-mask: var(--photo-rip-mask) center / 100% 100% no-repeat;
  -webkit-mask-mode: alpha;
}

.photo-frame::before {
  top: -56px;
}

.photo-frame::after {
  bottom: -56px;
  transform: rotate(180deg);
}

.hero-photo {
  height: 45vh;
  min-height: 320px;
  max-height: 430px;
}

.hero-photo::before,
.footer-photo::after {
  display: none;
}

.hero-copy {
  position: relative;
  z-index: 5;
  margin-top: -8px;
  padding: 38px 28px 46px;
  text-align: center;
  --name-center-correction: -3px;
}

.hero-copy h1 {
  display: inline-block;
  max-width: 100%;
  margin: 10px auto 24px;
  color: var(--wine-soft);
  font-family: "Fleur De Leah", Caveat, "Noto Serif", serif;
  font-size: 84px;
  font-weight: 400;
  line-height: 0.82;
  text-align: center;
  transform: translateX(var(--name-center-correction)) scaleX(0.85);
  transform-origin: center;
}

.event-name {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 25px;
  font-weight: 600;
  letter-spacing: 0.11em;
}

.ornament {
  display: grid;
  position: relative;
  grid-template-columns: auto;
  align-items: center;
  justify-content: center;
  width: min(102%, 480px);
  height: 92px;
  margin: 30px 0 0;
  color: var(--gold-deep);
}

.ornament::before {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 0;
  width: 100%;
  height: 92px;
  background: var(--test-gold-ornament) center / contain no-repeat;
  content: "";
  opacity: 0.62;
  pointer-events: none;
  transform: translate(-50%, -50%);
}

.ornament span {
  display: none;
}

.toi-music-button {
  display: grid;
  position: relative;
  z-index: 1;
  width: 66px;
  min-width: 66px;
  height: 66px;
  min-height: 66px;
  place-items: center;
  margin: 0;
  padding: 0;
  border: 1px solid var(--gold);
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 28%, rgba(255, 255, 255, 0.95), transparent 28%),
    linear-gradient(145deg, rgba(255, 253, 248, 0.98), rgba(248, 242, 234, 0.82));
  color: var(--gold-deep);
  box-shadow:
    0 10px 22px rgba(62, 31, 29, 0.08),
    inset 0 0 0 5px rgba(183, 155, 93, 0.08);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.toi-music-button::before,
.toi-music-button::after {
  position: absolute;
  border: 1px solid rgba(183, 155, 93, 0.42);
  border-radius: 50%;
  content: "";
}

.toi-music-button::before {
  inset: 7px;
}

.toi-music-button::after {
  inset: -7px;
  opacity: 0.35;
}

.toi-music-button b {
  position: relative;
  z-index: 1;
  font: inherit;
  transform: translateY(-1px);
}

.toi-music-button:hover {
  transform: translateY(-1px);
}

.toi-music-button.is-playing {
  border-color: var(--wine);
  background: var(--wine);
  color: var(--paper);
}

.music-status {
  min-height: 0;
  margin: 0;
}

.intro {
  position: relative;
  background:
    radial-gradient(circle at 9% 65%, transparent 0 22px, rgba(183, 155, 93, 0.12) 23px 27px, transparent 28px),
    var(--paper);
  text-align: center;
}

.intro p {
  margin: 0 auto;
  max-width: 18rem;
  font-size: 18px;
  line-height: 1.55;
}

.script-line {
  color: #4d2726;
  font-size: 36px;
  line-height: 1.12;
}

.intro .script-line {
  font-size: 26px;
  line-height: 1.18;
}

.image-band {
  margin: 0;
}

.wide-photo {
  height: 260px;
}

.image-band-small .wide-photo:not(.details-photo) {
  height: 200px;
}

.details-photo {
  height: 448px;
}

.venue-photo {
  height: 432px;
}

.footer-photo {
  height: 430px;
}

.small-title {
  color: var(--ink);
  font-size: 11px;
  letter-spacing: 0.12em;
}

.ceremony-title {
  margin: 8px auto 10px;
  color: var(--wine-soft);
  font-size: 54px;
  line-height: 0.98;
}

.body-caps {
  margin: 0 auto;
  max-width: 18rem;
  font-family: Montserrat, Arial, sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  line-height: 1.65;
  text-transform: uppercase;
}

.gold-divider {
  display: none;
}

.details {
  padding-top: 18px;
}

h3 {
  margin: 6px 0 18px;
  color: var(--wine-soft);
  font-size: 40px;
  line-height: 1;
}

.owners-name {
  display: grid;
  gap: 8px;
  font-size: 32px;
  line-height: 1.05;
}

.owners-name span {
  display: block;
}

.detail-card {
  position: relative;
  margin: 18px auto 0;
  padding: 17px 12px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.detail-card.time {
  margin-top: 10px;
}

.detail-script {
  margin: 8px 0 2px;
  color: var(--wine-soft);
  font-size: 40px;
  line-height: 1;
}

.venue-address {
  margin: 10px auto 12px;
  max-width: 18rem;
  color: var(--ink);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.35;
}

.map-button {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  margin-top: 16px;
  padding: 0 28px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  font-family: Montserrat, Arial, sans-serif;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.calendar {
  background: var(--paper);
}

.calendar-box {
  margin: 18px auto 0;
  max-width: 284px;
  padding: 18px 16px;
  border: 1px solid rgba(183, 155, 93, 0.24);
}

.calendar-month {
  margin-bottom: 12px;
  color: var(--wine-soft);
  font-size: 24px;
}

.weekdays,
.days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  align-items: center;
  font-family: Montserrat, Arial, sans-serif;
  font-size: 10px;
  text-align: center;
}

.weekdays {
  color: var(--muted);
  text-transform: uppercase;
}

.days {
  margin-top: 8px;
}

.days span {
  display: grid;
  min-height: 28px;
  place-items: center;
  border-radius: 50%;
}

.days .selected {
  background: var(--wine);
  color: var(--paper);
}

.rsvp {
  padding-top: 20px;
}

form {
  margin: 0 auto;
  max-width: 286px;
  text-align: left;
}

input[type="text"] {
  width: 100%;
  height: 33px;
  padding: 0 12px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  font-family: Montserrat, Arial, sans-serif;
  font-size: 12px;
}

input[type="text"]::placeholder {
  color: rgba(62, 31, 29, 0.46);
}

fieldset {
  margin: 15px 0 0;
  padding: 0;
  border: 0;
}

fieldset label {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-top: 13px;
  color: var(--ink);
  font-family: Montserrat, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.45;
}

input[type="radio"] {
  width: 15px;
  min-width: 15px;
  height: 15px;
  margin: 0;
  accent-color: var(--wine);
}

button[type="submit"],
.music-gate-actions button {
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  background: var(--wine);
  color: var(--paper);
  font-family: Montserrat, Arial, sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

button[type="submit"] {
  display: block;
  width: 132px;
  margin: 17px auto 0;
  padding: 0 20px;
}

button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.form-message {
  min-height: 24px;
  margin: 12px 0 0;
  color: var(--wine-soft);
  font-family: Montserrat, Arial, sans-serif;
  font-size: 11px;
  line-height: 1.45;
  text-align: center;
}

.closing {
  padding-top: 6px;
}

.closing .script-line {
  margin: 0 auto 12px;
  max-width: 17rem;
  padding: 0 28px;
}

.success-modal,
.music-gate {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(62, 31, 29, 0.44);
  backdrop-filter: blur(5px);
}

.music-gate {
  z-index: 60;
  background:
    radial-gradient(circle at 50% 18%, rgba(183, 155, 93, 0.2), transparent 190px),
    rgba(62, 31, 29, 0.5);
}

.success-panel,
.music-gate-panel {
  position: relative;
  width: min(100%, 340px);
  padding: 30px 22px 24px;
  border: 1px solid rgba(183, 155, 93, 0.48);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.98), rgba(255, 253, 248, 0.94)),
    radial-gradient(circle at 50% 0%, rgba(183, 155, 93, 0.2), transparent 130px);
  box-shadow: 0 24px 72px rgba(30, 12, 12, 0.3);
  text-align: center;
}

.music-gate-panel::before {
  display: none;
  width: 120px;
  height: 26px;
  margin: 0 auto 12px;
  background: var(--gold);
  content: "";
  mask: var(--kazakh-ornament) center / contain no-repeat;
  -webkit-mask: var(--kazakh-ornament) center / contain no-repeat;
}

.success-panel h3,
.music-gate-panel h3 {
  margin: 8px 0 10px;
  font-size: 40px;
}

.success-panel p:not(.tiny),
.music-gate-panel p:not(.tiny) {
  margin: 0 auto 18px;
  max-width: 17rem;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.45;
}

.success-close {
  position: absolute;
  top: 8px;
  right: 8px;
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(183, 155, 93, 0.42);
  border-radius: 50%;
  background: transparent;
  color: var(--wine-soft);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  line-height: 1;
}

.music-gate-actions {
  display: grid;
  gap: 10px;
}

.music-gate-actions button {
  width: 100%;
  margin: 0;
}

.music-gate-actions button:last-child {
  border: 1px solid rgba(62, 31, 29, 0.22);
  background: transparent;
  color: var(--ink);
}

@media (min-width: 700px) {
  body {
    padding: 42px 0;
  }

  .invite {
    width: 430px;
  }

  .wide-photo {
    height: 250px;
  }

  .details-photo {
    height: 448px;
  }

  .venue-photo {
    height: 432px;
  }

  .footer-photo {
    height: 420px;
  }
}

@media (max-width: 390px) {
  .section-pad,
  .hero-copy {
    padding-right: 22px;
    padding-left: 22px;
  }

  .hero-copy h1 {
    font-size: 74px;
    transform: translateX(var(--name-center-correction)) scaleX(0.82);
  }

  .event-name {
    font-size: 22px;
  }

  .intro .script-line {
    font-size: 26px;
  }

  .ceremony-title {
    font-size: 42px;
  }

  .body-caps {
    font-size: 12px;
    letter-spacing: 0.05em;
  }

  .wide-photo {
    height: 225px;
  }

  .details-photo {
    height: 400px;
  }

  .venue-photo {
    height: 384px;
  }

  .footer-photo {
    height: 360px;
  }
}

@media (max-width: 340px) {
  .hero-copy h1 {
    font-size: 62px;
    transform: translateX(var(--name-center-correction)) scaleX(0.78);
  }

  .intro .script-line {
    font-size: 26px;
  }

  .ceremony-title {
    font-size: 38px;
  }
}

.bg-options-page {
  padding: 26px 14px;
  background: var(--paper-soft);
}

.bg-options-shell {
  width: min(100%, 1120px);
  margin: 0 auto;
}

.bg-options-header {
  margin: 0 auto 24px;
  max-width: 680px;
  padding: 30px 22px;
  background: var(--paper);
  text-align: center;
  box-shadow: inset 0 0 0 1px rgba(183, 155, 93, 0.22);
}

.bg-options-header h1 {
  margin: 8px 0 10px;
  color: var(--wine-soft);
  font-family: Caveat, "Noto Serif", serif;
  font-size: 64px;
  line-height: 0.9;
}

.bg-options-header p:not(.tiny) {
  margin: 0 auto;
  max-width: 34rem;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.45;
}

.bg-options-header nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
}

.bg-options-header a {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  font-family: Montserrat, Arial, sans-serif;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.bg-option-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.bg-option-card {
  padding: 18px;
  background: rgba(255, 253, 248, 0.94);
  box-shadow: inset 0 0 0 1px rgba(183, 155, 93, 0.22);
}

.bg-option-number {
  margin: 0 0 12px;
  color: var(--muted);
  font-family: Montserrat, Arial, sans-serif;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-align: center;
  text-transform: uppercase;
}

.bg-mini-invite {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  padding: 74px 24px 34px;
  background: var(--paper);
  text-align: center;
}

.bg-mini-invite::before,
.bg-mini-invite::after {
  display: none;
  position: absolute;
  background-image: url("assets/test-bg-crop.svg");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 100% auto;
  content: "";
  opacity: 0.34;
  pointer-events: none;
}

.bg-ornament {
  position: absolute;
  z-index: 0;
  display: block;
  width: 260px;
  height: auto;
  opacity: 0.34;
  pointer-events: none;
}

.bg-ornament-b {
  display: none;
}

.bg-mini-invite h2,
.bg-mini-invite p,
.bg-mini-invite span {
  position: relative;
  z-index: 1;
}

.bg-mini-invite h2 {
  margin: 0;
  color: var(--wine-soft);
  font-family: "Fleur De Leah", Caveat, "Noto Serif", serif;
  font-size: 58px;
  font-weight: 400;
  line-height: 0.9;
}

.bg-mini-invite p {
  margin: 14px 0 56px;
  font-size: 21px;
  letter-spacing: 0.12em;
}

.bg-mini-invite span {
  display: block;
  color: #4d2726;
  font-family: Caveat, "Noto Serif", serif;
  font-size: 24px;
  line-height: 1.2;
}

.bg-variant-01 .bg-mini-invite::before {
  top: 22px;
  right: -34px;
  width: 240px;
  height: 72px;
}

.bg-variant-01 .bg-ornament-a {
  top: 22px;
  right: -34px;
}

.bg-variant-01 .bg-mini-invite::after {
  display: none;
}

.bg-variant-02 .bg-mini-invite::before {
  left: -34px;
  bottom: 28px;
  width: 250px;
  height: 74px;
  transform: rotate(180deg);
}

.bg-variant-02 .bg-ornament-a {
  bottom: 28px;
  left: -34px;
  transform: rotate(180deg);
}

.bg-variant-02 .bg-mini-invite::after {
  display: none;
}

.bg-variant-03 .bg-mini-invite::before {
  top: 54px;
  left: -70px;
  width: 260px;
  height: 74px;
  transform: rotate(90deg);
}

.bg-variant-03 .bg-ornament-a {
  top: 54px;
  left: -96px;
  transform: rotate(90deg);
}

.bg-variant-03 .bg-ornament-b {
  right: -98px;
  bottom: 48px;
  display: block;
  transform: rotate(-90deg);
}

.bg-variant-03 .bg-mini-invite::after {
  right: -72px;
  bottom: 48px;
  width: 260px;
  height: 74px;
  transform: rotate(-90deg);
}

.bg-variant-04 .bg-mini-invite::before {
  top: 72px;
  left: 50%;
  width: 310px;
  height: 90px;
  opacity: 0.28;
  transform: translateX(-50%);
}

.bg-variant-04 .bg-ornament-a {
  top: 72px;
  left: 50%;
  width: 320px;
  opacity: 0.28;
  transform: translateX(-50%);
}

.bg-variant-04 .bg-mini-invite::after {
  display: none;
}

.bg-variant-05 .bg-mini-invite::before {
  top: 16px;
  left: 50%;
  width: 280px;
  height: 82px;
  opacity: 0.3;
  transform: translateX(-50%) rotate(180deg);
}

.bg-variant-05 .bg-ornament-a {
  top: 16px;
  left: 50%;
  width: 290px;
  opacity: 0.3;
  transform: translateX(-50%) rotate(180deg);
}

.bg-variant-05 .bg-ornament-b {
  right: 50%;
  bottom: 18px;
  display: block;
  width: 290px;
  opacity: 0.3;
  transform: translateX(50%);
}

.bg-variant-05 .bg-mini-invite::after {
  right: 50%;
  bottom: 18px;
  width: 280px;
  height: 82px;
  opacity: 0.3;
  transform: translateX(50%);
}

.bg-variant-06 .bg-mini-invite::before {
  top: 14px;
  left: -46px;
  width: 220px;
  height: 66px;
}

.bg-variant-06 .bg-ornament-a {
  top: 14px;
  left: -46px;
  width: 230px;
}

.bg-variant-06 .bg-ornament-b {
  right: -46px;
  bottom: 14px;
  display: block;
  width: 230px;
  transform: rotate(180deg);
}

.bg-variant-06 .bg-mini-invite::after {
  right: -46px;
  bottom: 14px;
  width: 220px;
  height: 66px;
  transform: rotate(180deg);
}

.bg-variant-07 .bg-mini-invite::before {
  top: 198px;
  left: 50%;
  width: 310px;
  height: 70px;
  opacity: 0.36;
  transform: translateX(-50%);
}

.bg-variant-07 .bg-ornament-a {
  top: 198px;
  left: 50%;
  width: 320px;
  opacity: 0.36;
  transform: translateX(-50%);
}

.bg-variant-07 .bg-mini-invite::after {
  display: none;
}

.bg-variant-08 .bg-mini-invite::before {
  top: 36px;
  left: 50%;
  width: auto;
  width: 320px;
  height: 82px;
  opacity: 0.18;
  transform: translateX(-50%);
}

.bg-variant-08 .bg-ornament-a {
  top: 36px;
  left: 50%;
  width: 330px;
  opacity: 0.18;
  transform: translateX(-50%);
}

.bg-variant-08 .bg-mini-invite::after {
  display: none;
}

@media (max-width: 620px) {
  .bg-options-page {
    padding: 0;
  }

  .bg-option-grid {
    gap: 0;
  }
}

.test-placement-page {
  min-height: 100vh;
  margin: 0;
  padding: clamp(18px, 4vw, 48px) 12px;
  background: #7b070d;
  color: var(--ink);
}

.test-placement-shell {
  width: min(100%, 520px);
  margin: 0 auto;
}

.test-placement-card {
  position: relative;
  min-height: min(860px, calc(100vh - 36px));
  overflow: hidden;
  padding: clamp(54px, 12vw, 88px) clamp(24px, 7vw, 52px);
  background: var(--paper);
  box-shadow: 0 24px 70px rgba(38, 6, 8, 0.28);
  text-align: center;
}

.test-placement-card > *:not(.test-ornament) {
  position: relative;
  z-index: 1;
}

.test-ornament {
  position: absolute;
  left: 50%;
  z-index: 0;
  display: block;
  width: min(94%, 430px);
  height: auto;
  opacity: 0.62;
  pointer-events: none;
  transform: translateX(-50%);
}

.test-ornament-top {
  top: 348px;
}

.test-ornament-bottom {
  bottom: 72px;
  opacity: 0.24;
  transform: translateX(-50%) rotate(180deg);
}

.test-placement-card .tiny {
  margin: 0 0 22px;
  color: rgba(93, 45, 45, 0.58);
  font-family: Montserrat, Arial, sans-serif;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.test-placement-card h1 {
  margin: 0;
  color: var(--wine-soft);
  font-family: "Fleur De Leah", Caveat, "Noto Serif", serif;
  font-size: clamp(62px, 17vw, 104px);
  font-weight: 400;
  line-height: 0.9;
}

.test-subtitle {
  margin: 26px 0 64px;
  color: #3d2323;
  font-size: clamp(24px, 7vw, 38px);
  letter-spacing: 0.16em;
}

.test-ornament-row {
  position: relative;
  display: flex;
  width: min(102%, 480px);
  height: 92px;
  align-items: center;
  justify-content: center;
  margin: 0 auto 118px;
}

.test-ornament-line {
  position: absolute;
  top: 50%;
  left: 50%;
  display: block;
  width: 100%;
  height: auto;
  opacity: 0.62;
  pointer-events: none;
  transform: translate(-50%, -50%);
}

.test-music {
  position: relative;
  z-index: 1;
  display: grid;
  width: 72px;
  height: 72px;
  margin: 0;
  place-items: center;
  border: 1px solid rgba(201, 162, 59, 0.65);
  border-radius: 50%;
  background: var(--paper);
  color: #a78226;
  font-size: 34px;
  box-shadow: 0 0 0 10px rgba(201, 162, 59, 0.08), 0 0 0 22px rgba(255, 253, 248, 0.84), 0 16px 36px rgba(54, 38, 10, 0.08);
}

.test-script {
  max-width: 420px;
  margin: 0 auto 42px;
  color: #4d2726;
  font-family: Caveat, "Noto Serif", serif;
  font-size: clamp(28px, 8vw, 40px);
  line-height: 1.22;
}

.test-body {
  max-width: 410px;
  margin: 0 auto;
  color: #4d2726;
  font-size: clamp(24px, 6.5vw, 36px);
  line-height: 1.55;
}

@media (max-width: 420px) {
  .test-placement-card {
    min-height: 760px;
    padding-inline: 22px;
  }

  .test-ornament {
    width: 440px;
  }

  .test-ornament-row {
    width: 480px;
    margin-bottom: 92px;
  }

  .test-music {
    width: 70px;
    height: 70px;
  }
}
