
:root {
  --wine: #8f1838;
  --wine-deep: #711128;
  --ink: #181310;
  --ink-soft: #5f554c;
  --kraft: #e9cfaa;
  --kraft-deep: #d9b982;
  --cream: #fbf4e9;
  --cream-2: #f7ecdd;
  --line: #d3b78f;
  --shadow: rgba(62, 39, 18, 0.11);
  --danger: #9b1234;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 50% -20%, rgba(255,255,255,.72), transparent 42%),
    linear-gradient(180deg, #ead8bc 0%, #dfc295 100%);
  font-family: Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.shell {
  width: min(100%, 720px);
  margin: 0 auto;
  padding: 34px 20px 24px;
}

.brand {
  padding: 4px 10px 20px;
  text-align: center;
}

.brand-logo {
  display: block;
  width: min(260px, 53vw);
  height: auto;
  margin: 0 auto;
}

.brand-accent {
  width: min(220px, 44vw);
  height: 4px;
  margin: 10px auto 12px;
  border-radius: 999px;
  background: var(--wine);
  transform: skewX(-18deg);
  opacity: .96;
}

.brand-subtitle {
  margin: 0;
  color: var(--ink);
  font-size: clamp(10px, 2.4vw, 13px);
  font-weight: 600;
  letter-spacing: .26em;
  text-transform: uppercase;
}

.brand-subtitle span {
  color: var(--wine);
  letter-spacing: .18em;
}

.card {
  position: relative;
  overflow: hidden;
  padding: clamp(30px, 5vw, 44px);
  border: 1px solid rgba(101, 73, 44, .16);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.28), rgba(255,255,255,.08)),
    var(--cream);
  box-shadow:
    0 18px 50px var(--shadow),
    inset 0 1px 0 rgba(255,255,255,.72);
}

.card::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: 84px;
  height: 3px;
  transform: translateX(-50%);
  border-radius: 0 0 8px 8px;
  background: var(--wine);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--wine);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .18em;
  text-align: center;
}

h1 {
  max-width: 560px;
  margin: 0 auto 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(32px, 6.6vw, 46px);
  font-weight: 700;
  line-height: .99;
  letter-spacing: -.035em;
  text-align: center;
}

.intro {
  max-width: 530px;
  margin: 0 auto 30px;
  color: var(--ink-soft);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(18px, 4vw, 24px);
  line-height: 1.35;
  text-align: center;
}

form {
  max-width: 550px;
  margin: 0 auto;
}

form label {
  display: block;
  margin: 0 0 11px 2px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 800;
}

.input-wrap {
  padding: 2px;
  border-radius: 19px;
  background: linear-gradient(135deg, #d2b58b, #b99563);
}

input {
  display: block;
  width: 100%;
  height: 60px;
  padding: 0 23px;
  border: 0;
  border-radius: 17px;
  outline: none;
  background: #fffdf9;
  color: #171310;
  font-size: clamp(21px, 4.8vw, 27px);
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}

input::placeholder {
  color: #938a82;
  opacity: 1;
}

input:focus {
  box-shadow: inset 0 0 0 2px rgba(143, 24, 56, .42);
}

button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  min-height: 62px;
  margin-top: 16px;
  border: 0;
  border-radius: 18px;
  background: linear-gradient(180deg, #94183a 0%, #85132f 100%);
  color: white;
  box-shadow: 0 10px 24px rgba(113,17,40,.18);
  font-size: 19px;
  font-weight: 800;
  letter-spacing: .04em;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}

button:hover {
  background: linear-gradient(180deg, #861430 0%, #731027 100%);
  box-shadow: 0 12px 28px rgba(113,17,40,.22);
}

button:active {
  transform: translateY(1px);
}

button:disabled {
  opacity: .66;
  cursor: wait;
}

.arrow {
  font-size: 24px;
  line-height: 1;
  transform: translateY(-1px);
}

.form-message {
  min-height: 20px;
  margin: 12px 4px 0;
  color: var(--danger);
  font-size: 14px;
  font-weight: 700;
}

.result {
  max-width: 550px;
  margin: 30px auto 0;
  padding: 28px;
  border: 1px solid rgba(155, 114, 73, .48);
  border-radius: 24px;
  background: rgba(255,255,255,.48);
}

.hidden { display: none; }

.result .type {
  margin: 0 0 13px;
  color: var(--wine);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: .15em;
}

.result h2 {
  margin: 0 0 16px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(33px, 7.5vw, 49px);
  line-height: 1.02;
  letter-spacing: -.02em;
}

.result .message {
  margin: 0;
  color: #2a211b;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(21px, 4.8vw, 28px);
  line-height: 1.34;
}

.result .prize {
  margin: 21px 0 0;
  padding: 17px 19px;
  border: 1.5px solid var(--wine);
  border-radius: 16px;
  color: var(--wine);
  background: rgba(143,24,56,.035);
  font-size: 20px;
  font-weight: 800;
  text-align: center;
}

.secondary {
  margin-top: 22px;
  border: 1.5px solid var(--wine);
  background: transparent;
  color: var(--wine);
  box-shadow: none;
}

.secondary:hover {
  background: var(--wine);
  color: white;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 22px 0 2px;
  color: rgba(63,49,37,.56);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 12px;
  letter-spacing: .06em;
}

.footer-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--wine);
  opacity: .6;
}

@media (max-width: 520px) {
  .shell {
    padding: 12px 14px 18px;
  }

  .brand {
    padding: 0 6px 16px;
  }

  .brand-logo {
    width: min(215px, 48vw);
  }

  .brand-accent {
    margin-top: 8px;
    margin-bottom: 10px;
  }

  .brand-subtitle {
    font-size: 9.5px;
    letter-spacing: .22em;
  }

  .card {
    padding: 26px 22px 28px;
    border-radius: 26px;
  }

  .eyebrow {
    font-size: 10.5px;
    margin-bottom: 12px;
  }

  h1 {
    font-size: clamp(31px, 8.3vw, 39px);
    margin-bottom: 16px;
  }

  .intro {
    font-size: clamp(17px, 4.8vw, 21px);
    margin-bottom: 26px;
  }

  input {
    height: 64px;
    font-size: 21px;
    padding: 0 18px;
  }

  button {
    min-height: 60px;
    border-radius: 16px;
    font-size: 17px;
  }

  .result {
    padding: 24px 20px;
  }

  .footer {
    padding-top: 14px;
    font-size: 12px;
  }
}
