:root {
  color-scheme: dark;
  --bg: #170e17;
  --surface: #251622;
  --edge: #4b303e;
  --text: #fff3e8;
  --soft: #ceb7bf;
  --gold: #efc98e;
  --wine: #a42e50;
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  font-family: "Open Sans", system-ui, sans-serif;
}
* { box-sizing: border-box }
[hidden] { display: none !important }
body { margin: 0; min-width: 280px; background: radial-gradient(ellipse at 50% 0%, #2a1424, transparent 800px), var(--bg); color: var(--text); font-size: 15px; line-height: 1.6 }
.wrap { width: min(1136px, calc(100% - 64px)); margin-inline: auto }
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 83px }
.brand { font: 25px/1.2 Georgia, serif; display: inline-flex; align-items: center; gap: 11px; color: var(--text); text-decoration: none }
.brand i { color: var(--gold) }
.brand-mark { display: grid; place-items: center; border: 1px solid #765645; border-radius: 50%; width: 35px; height: 35px; color: var(--gold); font-size: 20px; flex: none }
.button { appearance: none; display: inline-flex; justify-content: center; align-items: center; gap: .7em; border: 1px solid transparent; border-radius: 7px; min-height: 44px; padding: 10px 17px; font: inherit; font-weight: 700; font-size: 13px; line-height: 1.3; text-decoration: none; color: var(--text); cursor: pointer; transition: transform 140ms var(--ease-out), background-color 180ms ease, border-color 180ms ease }
.arrow { position: relative; width: 10px; height: 10px; flex: none }
.arrow::before, .arrow::after { content: ""; position: absolute }
.arrow::before { inset: 0 0 auto auto; width: 6px; height: 6px; border-top: 1px solid; border-right: 1px solid }
.arrow::after { top: 4px; right: 0; width: 11px; height: 1px; background: currentColor; transform: rotate(-45deg) }
.button:active, .door:active { transform: scale(.975) }
.outline { border-color: #76505f; background: #2a1725 }
.outline:hover { border-color: #ad748a; background: #3a2032 }
.primary { background: #f4d5a5; color: #32171f }
.primary:hover { background: #ffe9c6 }
.whatsapp { background: #b7efc9; color: #143020 }
.whatsapp:hover { background: #d9f9e3 }
button:disabled { opacity: .6; cursor: wait }
:focus-visible { outline: 2px solid #f1d28f; outline-offset: 4px }
.hero { overflow: hidden; border: 1px solid #68404a; border-radius: 19px; min-height: 476px; display: flex; align-items: center; background: linear-gradient(90deg, #230f20 0%, #210e1bd1 23%, #2b102939 63%, transparent 100%), url('hero.webp') center 54% / cover, radial-gradient(ellipse at 79% 51%, #85314d, #311629 65%) }
.hero-copy { width: min(620px, 100%); min-width: 0; padding: clamp(25px, 6vw, 78px) }
.eyebrow { margin: 0 0 12px; color: var(--gold); font-size: 11px; font-weight: 700; letter-spacing: .19em; text-transform: uppercase }
.eyebrow span { font-size: 1.25em; margin-right: .35em }
h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; font-weight: 400; margin: 0; overflow-wrap: anywhere }
h1 { font-size: clamp(48px, 8vw, 102px); line-height: .91; letter-spacing: -.075em }
h1 em { color: var(--gold); font-weight: 400 }
h1.personal { font-size: clamp(39px, 6vw, 76px); letter-spacing: -.055em; line-height: 1 }
h2 { font-size: clamp(30px, 4.2vw, 49px); line-height: 1.12; letter-spacing: -.04em }
h3 { font-size: 30px }
.intro { max-width: 380px; margin: 25px 0; color: #f0dce0; overflow-wrap: anywhere; white-space: pre-wrap }
.section { margin-top: 56px }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 21px }
.muted { margin: 8px 0 0; color: var(--soft) }
.hint { color: var(--soft); font-size: 13px; margin: 0 }
.legend { display: flex; flex-wrap: wrap; gap: 10px 18px; color: var(--soft); font-size: 12px; padding-bottom: 4px }
.legend span { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold) }
.dot.closed { background: transparent; border: 1px solid #bb8599 }
.doors { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px }
.door { position: relative; display: grid; place-content: center; gap: 9px; justify-items: center; min-height: 119px; padding: 10px; border: 1px solid var(--edge); border-radius: 11px; color: #dcc1ca; cursor: pointer; background: linear-gradient(150deg, #312030, #241623); transition: border-color 160ms ease, transform 140ms var(--ease-out) }
.door:hover { border-color: #ab7188 }
.door.available { color: #f9dfad; border-color: #a95668; background: radial-gradient(ellipse at 40% 0%, #6f2a43, #3d1b31 78%) }
.door.available:hover { border-color: #edac96 }
.door.final { border-color: #a57850 }
.door-number { font: 39px/.95 Georgia, serif }
.door-state { min-height: 16px; font: 10px/1.3 system-ui, sans-serif; font-weight: 650; letter-spacing: .045em }
.spark { position: absolute; right: 10px; top: 6px; font: 14px/1 Georgia, serif; color: #d7a882 }
.footer { display: flex; justify-content: space-between; gap: 12px; margin-top: 54px; padding: 23px 0 32px; border-top: 1px solid var(--edge); color: var(--soft); font-size: 13px }
.footer span span { color: var(--gold); margin-left: 5px }
.settings, .result { border: 1px solid var(--edge); background: var(--surface); border-radius: 12px; padding: clamp(17px, 3vw, 30px) }
.settings { display: grid; grid-template-columns: 1fr 1fr minmax(100px, .42fr); gap: 16px }
.wide { grid-column: 1 / -1 }
label { display: grid; gap: 7px; min-width: 0; font-size: 13px; font-weight: 650 }
input, select, textarea { width: 100%; border: 1px solid #765365; border-radius: 7px; padding: 10px 12px; background: #1a101a; color: var(--text); font: inherit; font-size: 16px; min-height: 45px }
textarea { resize: vertical }
input::placeholder, textarea::placeholder { color: #b498a5 }
.door-head { margin-top: 24px }
.publish { display: flex; align-items: center; justify-content: space-between; gap: 16px; border-top: 1px solid var(--edge); margin-top: 24px; padding-top: 18px }
.publish .button { flex-shrink: 0 }
.error { color: #ffb7bb; font-size: 14px }
.result label { margin-top: 20px }
.actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 17px }
dialog { position: fixed; width: min(540px, calc(100% - 24px)); max-height: 91dvh; padding: clamp(19px, 5vw, 36px); border-radius: 15px; color: var(--text); background: #281925; border: 1px solid #765365; box-shadow: 0 20px 90px #080408ab }
dialog::backdrop { background: #0c060dc4 }
dialog h2 { padding-right: 28px }
.close { position: absolute; top: 12px; right: 12px; border: 1px solid var(--edge); border-radius: 50%; width: 38px; height: 38px; display: grid; place-items: center; padding: 0; background: var(--bg); color: var(--text); font: 24px/1 system-ui; cursor: pointer }
#dialog-content { margin-top: 17px }
#dialog-content form { display: grid; gap: 14px }
#dialog-content .message { white-space: pre-wrap; overflow-wrap: anywhere }
#dialog-content img { display: block; max-width: 100%; max-height: 45dvh; object-fit: contain; border-radius: 8px; margin-top: 16px }
#dialog-content audio { display: block; width: 100%; margin-top: 16px }
.voucher { display: inline-block; margin-top: 13px; border: 1px dashed #c49875; border-radius: 9px; background: #412034; padding: 17px; color: var(--gold); overflow-wrap: anywhere }
.toast { opacity: 0; position: fixed; bottom: 16px; right: 18px; max-width: calc(100% - 36px); transform: translateY(8px); pointer-events: none; transition: opacity 150ms ease, transform 150ms var(--ease-out); background: #f5d9ad; color: #32171f; padding: 10px 15px; border-radius: 8px; z-index: 2 }
.toast.visible { opacity: 1; transform: translateY(0) }
@media (max-width: 800px) {
  .doors { grid-template-columns: repeat(4, minmax(0, 1fr)) }
  .hero { min-height: 425px }
}
@media (max-width: 550px) {
  .wrap { width: calc(100% - 30px) }
  .top { min-height: 68px; gap: 6px }
  .brand { font-size: 18px; gap: 6px }
  .brand-mark { width: 29px; height: 29px; font-size: 15px }
  .top .button { padding-inline: 9px; font-size: 11px }
  .hero { min-height: 480px; align-items: end; background: linear-gradient(0deg, #230f20 3%, #230f20d9 35%, #230f2033 76%), url('hero.webp') 71% center / cover, #3f1c32 }
  .hero-copy { padding: 23px }
  .intro { margin: 17px 0 }
  .section { margin-top: 34px }
  .section-head { align-items: start; flex-direction: column }
  .door-head { flex-direction: row; align-items: center }
  .doors { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px }
  .door { min-height: 94px; padding: 5px }
  .door-number { font-size: 31px }
  .settings { grid-template-columns: 1fr 1fr }
  .publish { align-items: start; flex-direction: column }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0s !important; animation-duration: 0s !important }
}
