:root {
  --wine: #5b1e2d;
  --wine-deep: #35151f;
  --rose: #d8a6b3;
  --pearl: #f7f2ee;
  --cream: #f1e2d6;
  --gold: #d4af37;
  --taupe: #d6c1aa;
  --ink: #2e2024;
  --muted: #746269;
  --danger: #a33143;
  --shadow: 0 18px 55px rgba(53, 21, 31, .14);
}

* { box-sizing: border-box; }

html { min-height: 100%; background: var(--pearl); }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font: 16px/1.5 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 10% 0%, rgba(216, 166, 179, .34), transparent 35%),
    radial-gradient(circle at 95% 15%, rgba(212, 175, 55, .14), transparent 28%),
    linear-gradient(180deg, #fffaf6 0%, var(--pearl) 62%, #efe3dc 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .35;
  background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23d4af37' stroke-opacity='.12'%3E%3Ccircle cx='40' cy='40' r='31'/%3E%3C/g%3E%3C/svg%3E");
}

.shell { width: min(100%, 620px); margin: 0 auto; padding: 24px 16px calc(30px + env(safe-area-inset-bottom)); }

.hero { display: flex; align-items: center; gap: 16px; padding: 12px 6px 24px; }

.mark {
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(212, 175, 55, .75);
  border-radius: 50%;
  color: var(--gold);
  background: var(--wine);
  box-shadow: 0 8px 22px rgba(91, 30, 45, .22);
  font: 32px/1 Georgia, serif;
}

.mark span { transform: translateY(-1px); }
.eyebrow, .step-label { color: #9b7923; font-size: 11px; font-weight: 800; letter-spacing: .18em; }
h1, h2 { margin: 0; color: var(--wine-deep); font-family: Georgia, "Times New Roman", serif; line-height: 1.15; }
h1 { margin-top: 3px; font-size: clamp(25px, 6vw, 34px); }
h2 { margin: 8px 0 10px; font-size: 28px; }
p { margin: 8px 0 18px; }
.event-line { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.event-location-link { display: inline-block; margin-top: 7px; color: var(--wine); font-size: 13px; font-weight: 700; text-underline-offset: 3px; }

.card {
  position: relative;
  overflow: hidden;
  padding: clamp(22px, 6vw, 34px);
  border: 1px solid rgba(91, 30, 45, .08);
  border-radius: 26px;
  background: rgba(255, 253, 250, .94);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.card::after {
  content: "";
  position: absolute;
  top: -90px;
  right: -95px;
  width: 180px;
  height: 180px;
  border: 1px solid rgba(212, 175, 55, .17);
  border-radius: 50%;
  pointer-events: none;
}

.hidden { display: none !important; }
.center { min-height: 220px; display: grid; place-items: center; align-content: center; color: var(--muted); }
.spinner { width: 34px; height: 34px; border: 3px solid var(--cream); border-top-color: var(--wine); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.progress { height: 4px; margin: -10px 0 24px; border-radius: 9px; background: var(--cream); }
.progress span { display: block; width: 72%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--wine), var(--gold)); }
.muted, small, .support, .legal { color: var(--muted); }
small { display: block; margin-top: 6px; font-size: 12px; }

form { display: grid; gap: 17px; }
label > span, legend { display: block; margin-bottom: 7px; font-size: 13px; font-weight: 750; color: var(--wine-deep); }
input {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid #dacdc8;
  border-radius: 13px;
  outline: none;
  background: #fff;
  color: var(--ink);
  font: inherit;
  transition: border-color .2s, box-shadow .2s;
}
input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(212, 175, 55, .14); }

.marketing-box { margin: 3px 0 0; padding: 16px; border: 1px solid rgba(91, 30, 45, .12); border-radius: 16px; background: #fbf5f1; }
.marketing-box legend { padding: 0 5px; }
.marketing-box p { margin: 0 0 12px; color: var(--muted); font-size: 12px; }
.check { display: flex; gap: 10px; align-items: center; margin: 9px 0; cursor: pointer; }
.check input { width: 18px; min-height: 18px; accent-color: var(--wine); }
.check span { margin: 0; font-weight: 500; }

.button {
  display: flex;
  width: 100%;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  margin-top: 5px;
  padding: 12px 18px;
  border: 0;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--wine), #7e2e42);
  box-shadow: 0 9px 22px rgba(91, 30, 45, .22);
  cursor: pointer;
  font: 750 15px/1.2 inherit;
  text-align: center;
  text-decoration: none;
}
.button:disabled { opacity: .55; cursor: wait; }
.button.secondary { color: var(--wine); background: #f1e2d6; box-shadow: none; }
.button.ghost { color: var(--wine); background: transparent; border: 1px solid rgba(91, 30, 45, .18); box-shadow: none; }
.button.compact { width: auto; min-height: 48px; margin: 0; }
.text-button { display: block; margin: 14px auto 0; padding: 4px; border: 0; color: var(--wine); background: transparent; cursor: pointer; font: 650 14px inherit; }
.text-button.danger { color: var(--danger); }

.legal { margin: 15px 3px 0; font-size: 11px; text-align: center; }
a { color: var(--wine); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.notice { padding: 13px 14px; border-radius: 13px; font-size: 13px; }
.notice.error { color: #7b1f31; background: #fdecef; border: 1px solid #f2c4cd; }
.notice.warm { margin: 18px 0; color: #5c4714; background: #fbf2d7; border: 1px solid #ead59b; }
.notice.dev { color: #315337; background: #eaf6e8; border: 1px solid #b8d8b5; }

.review-list { margin: 20px 0; border-top: 1px solid #ebdfd8; }
.review-list div { padding: 15px 0; border-bottom: 1px solid #ebdfd8; }
.review-list dt { color: var(--muted); font-size: 12px; }
.review-list dd { margin: 3px 0 0; font-weight: 700; word-break: break-word; }
.otp { min-height: 64px; letter-spacing: .32em; text-align: center; font-size: 27px; font-weight: 750; }

.success { text-align: center; }
.success-mark, .icon-circle { display: grid; width: 66px; height: 66px; place-items: center; margin: 0 auto 18px; border: 1px solid var(--gold); border-radius: 50%; color: var(--gold); background: var(--wine); font-size: 30px; }
.ticket { margin: 22px 0; padding: 18px; border: 1px dashed #bd9b3a; border-radius: 16px; background: #fffaf0; }
.ticket span { display: block; color: var(--muted); font-size: 10px; letter-spacing: .14em; }
.ticket strong { display: block; margin-top: 6px; color: var(--wine); font-size: 24px; letter-spacing: .08em; }
.event-summary { font-weight: 650; }

.badge { display: inline-flex; padding: 4px 8px; border-radius: 8px; color: #315337; background: #e7f3e5; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.field-row { display: flex; gap: 9px; }
footer { display: flex; justify-content: center; gap: 9px; padding: 24px 10px 0; color: var(--muted); font-size: 12px; }

@media (max-width: 380px) {
  .shell { padding-inline: 10px; }
  .card { border-radius: 20px; padding: 20px; }
  .hero { gap: 11px; }
  .mark { width: 50px; height: 50px; flex-basis: 50px; }
  .field-row { display: grid; }
  .button.compact { width: 100%; }
}
