:root {
  color-scheme: dark;
  font-family: Tahoma, "Segoe UI", Arial, sans-serif;
  color: #fff4e9;
  background: #100e11;
  font-synthesis: none;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  min-width: 280px;
  min-height: 100vh;
  background: radial-gradient(ellipse at 82% 5%, #35161b 0%, transparent 58%), #100e11;
}
h1, h2, h3, p { margin: 0; }
.layout {
  display: grid;
  grid-template-columns: minmax(275px, .86fr) minmax(360px, 1.14fr);
  gap: 18px;
  align-items: stretch;
  width: min(100% - 48px, 960px);
  margin: 0 auto;
  padding: clamp(24px, 6vh, 70px) 0;
}
.hero, .panel { border-radius: 28px; overflow: hidden; }
.hero {
  position: relative;
  display: grid;
  align-items: end;
  min-height: 530px;
  isolation: isolate;
  border: 1px solid #673039;
  background: #150f13;
  color: #fff;
}
.portrait {
  position: absolute;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 28%;
}
.hero::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  background: linear-gradient(0deg, #120d11 1%, #120d11f5 20%, #1a0c14c4 35%, transparent 64%);
}
.hero-content { padding: 31px clamp(20px, 4vw, 39px) 36px; }
.doctor { font-size: clamp(.8rem, 1.6vw, 1rem); color: #f0ceb1; font-weight: 700; }
h1 {
  font-size: clamp(2.28rem, 5.2vw, 3.65rem);
  line-height: 1.25;
  margin: 10px 0 8px;
}
h1 span { display: block; color: #ff777d; }
.lead { font-size: clamp(.84rem, 2vw, 1.08rem); line-height: 1.85; }
.lead strong { color: #f3da9a; }
.panel {
  background: linear-gradient(145deg, #25171b, #181417 66%);
  border: 1px solid #5c3035;
  box-shadow: 0 18px 50px #0005;
  padding: 24px clamp(16px, 4.8vw, 47px) 26px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.wheel-wrap {
  position: relative;
  width: min(100%, 292px);
  aspect-ratio: 1;
  margin: 3px auto 19px;
  border: 6px solid #8c5d38;
  border-radius: 50%;
  box-shadow: 0 8px 26px #0007, 0 0 0 1px #d4aa70;
  font-size: clamp(.67rem, 2.5vw, .83rem);
  direction: ltr;
}
.wheel {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    repeating-conic-gradient(from -22.5deg, #ffffff53 0deg .6deg, transparent .6deg 45deg),
    conic-gradient(from -22.5deg,
      #a12130 0deg 45deg, #301c24 45deg 90deg,
      #a12130 90deg 135deg, #301c24 135deg 180deg,
      #a12130 180deg 225deg, #301c24 225deg 270deg,
      #a12130 270deg 315deg, #8b632b 315deg);
  box-shadow: inset 0 0 24px #12060a63;
}
.sector {
  position: absolute;
  display: grid;
  justify-items: center;
  align-content: center;
  width: 23%;
  min-height: 14%;
  color: #fff;
  line-height: 1.22;
  transform: translate(-50%, -50%);
}
.sector b { font-size: 1.46em; }
.sector small { font-size: .88em; }
.sector small:last-child { line-height: 1.16; }
.sector.one { top: 16%; left: 50%; }
.sector.two { top: 25.96%; left: 74.04%; }
.sector.three { top: 50%; left: 84%; }
.sector.four { top: 74.04%; left: 74.04%; }
.sector.five { top: 84%; left: 50%; }
.sector.six { top: 74.04%; left: 25.96%; }
.sector.seven { top: 50%; left: 16%; }
.sector.eight { top: 25.96%; left: 25.96%; color: #fff7d9; }
.pointer {
  position: absolute;
  z-index: 2;
  top: -9px;
  left: 50%;
  width: 24px;
  height: 31px;
  background: #f5d790;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  transform: translateX(-50%);
}
.hub {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 19%;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 2px solid #f6e3ac;
  color: #ffdc86;
  background: #231218;
  font: 1.5rem Georgia, serif;
  box-shadow: 0 3px 14px #0e08096e;
}
h2 { font-size: 1.28rem; line-height: 1.5; }
.prize-terms {
  margin: 0 0 14px;
  padding: 8px 10px;
  border-radius: 9px;
  background: #352222;
  color: #f5ddc1;
  font-size: .8rem;
  line-height: 1.75;
  text-align: center;
}
.hint { margin: 5px 0 16px; font-size: .83rem; line-height: 1.8; color: #dbc8c8; }
form { display: grid; gap: 12px; }
.names { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
label { display: grid; gap: 6px; font-size: .81rem; font-weight: 700; }
input {
  width: 100%;
  min-height: 43px;
  min-width: 0;
  border: 1px solid #69454b;
  border-radius: 11px;
  background: #201a1d;
  color: #fff5ea;
  font-family: inherit;
  font-size: 16px;
  padding: 9px 11px;
}
input::placeholder { color: #b7a3a7; font-size: .8rem; }
input[aria-invalid="true"] { border-color: #ffa1a0; }
input:focus-visible, button:focus-visible, .result:focus-visible { outline: 2px solid #f1ca83; outline-offset: 2px; }
button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  min-height: 48px;
  border: 0;
  border-radius: 11px;
  background: linear-gradient(105deg, #8e192b, #b32233);
  color: #fff;
  font: inherit;
  font-size: .95rem;
  font-weight: 700;
  cursor: pointer;
}
button:hover:not(:disabled) { filter: brightness(1.12); }
button:disabled { opacity: .7; cursor: wait; }
button span { color: #ffe29a; }
.privacy, .feedback, .result p { font-size: .77rem; line-height: 1.85; }
.privacy { color: #c7b4ba; }
.feedback { color: #ffabab; }
.feedback:not(:empty) { margin-top: 10px; }
.result {
  margin-top: 12px;
  padding: 13px 15px;
  border: 1px solid #7e4a51;
  border-radius: 12px;
  background: #352126;
  color: #fff0e3;
}
.result h3 { font-size: 1.16rem; line-height: 1.75; }
#receipt { margin-top: 4px; }
.result-spark { display: none; }
.result-win {
  padding: 17px clamp(12px, 4vw, 26px) 18px;
  border: 2px solid #edce7f;
  border-radius: 20px;
  background: radial-gradient(ellipse at top, #fff4d0, transparent 75%), #fffaf1;
  color: #38250d;
  box-shadow: 0 9px 24px #7e531725;
  text-align: center;
}
.result-win .result-spark {
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  margin: 0 auto 5px;
  border: 1px solid #b88c2a;
  border-radius: 50%;
  background: #ffdd82;
  color: #573509;
  font-size: 1.24rem;
}
.result-win h3 { font-size: clamp(1rem, 4.3vw, 1.36rem); }
.result .result-prize {
  display: flex;
  align-items: baseline;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0 .37em;
  margin: 3px 0 9px;
  color: #56330b;
  font-size: clamp(1.17rem, 4.7vw, 1.65rem);
  font-weight: 700;
  line-height: 1.3;
}
.result-prize strong {
  font-size: clamp(2.65rem, 13vw, 4.5rem);
  line-height: 1;
}
.result-win #receipt {
  display: inline-block;
  padding: 3px 11px;
  margin-top: 8px;
  border-radius: 6px;
  background: #ffffffa8;
  font-weight: 700;
}
.result .result-whatsapp {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #d8bb80;
  font-size: .88rem;
  line-height: 1.95;
}
.result-whatsapp a {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin: 9px auto 0;
  padding: 9px 16px;
  border-radius: 10px;
  background: #126343;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}
.result-whatsapp a:hover { background: #0b4e34; }
.result-whatsapp a:focus-visible { outline: 2px solid #126343; outline-offset: 3px; }
.confetti {
  position: fixed;
  inset: 0;
  z-index: 10;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
@media (max-width: 735px) {
  .layout { grid-template-columns: 1fr; width: min(100% - 26px, 490px); gap: 12px; padding: 13px 0 25px; }
  .hero, .panel { border-radius: 20px; }
  .hero { min-height: clamp(203px, 55vw, 255px); }
  .portrait { width: 59%; left: 0; object-position: 50% 14%; }
  .hero::after { background: linear-gradient(270deg, #160f14 35%, #160f14ed 48%, #160f1490 62%, transparent 86%), linear-gradient(0deg, #160f14bd, transparent 56%); }
  .hero-content { width: 72%; padding: 17px; }
  h1 { margin-top: 5px; margin-bottom: 4px; font-size: clamp(1.8rem, 8vw, 2.75rem); }
  .panel { padding: 17px 16px 20px; }
  .wheel-wrap { width: min(100%, 247px); margin-bottom: 14px; }
}
