:root {
  --ygom-yellow: #ffb515;
  --ygom-yellow-soft: #ffd468;
  --ink: #10100f;
  --paper: #f7f5ef;
  --white: #fff;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { background: var(--paper); color: var(--ink); font-family: Inter, "Helvetica Neue", Arial, sans-serif; overflow: hidden; }
button, input { font: inherit; }
button { cursor: pointer; }
.screen { display: none; min-height: 100dvh; width: 100%; overflow: hidden; }
.screen.is-active { display: flex; }

/* TV / tela de atração */
.welcome-screen { position: relative; flex-direction: column; background: radial-gradient(circle at 18% 18%, rgba(255,255,255,.95), transparent 32%), linear-gradient(125deg, #f8f6ef 0%, #f1eee4 62%, #e9e4d7 100%); }
.welcome-screen::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .3; background-image: radial-gradient(#111 .75px, transparent .75px); background-size: 16px 16px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 70%); mask-image: linear-gradient(90deg, transparent, #000 70%); }
.welcome-header { position: relative; z-index: 3; display: flex; align-items: flex-start; justify-content: space-between; padding: clamp(26px, 3.3vw, 64px) clamp(28px, 5vw, 96px) 0; }
.main-logo { width: clamp(130px, 10.5vw, 202px); height: auto; }
.live-pill { display: flex; align-items: center; gap: 11px; padding: 11px 17px; border: 1px solid rgba(16,16,15,.14); border-radius: 999px; background: rgba(255,255,255,.55); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); font-size: clamp(11px,.85vw,15px); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.live-pill i { width: 9px; height: 9px; border-radius: 50%; background: var(--ygom-yellow); box-shadow: 0 0 0 6px rgba(255,181,21,.18); animation: livePulse 2s ease-in-out infinite; }
.welcome-content { position: relative; z-index: 2; flex: 1; display: grid; grid-template-columns: minmax(440px,.96fr) minmax(520px,1.04fr); align-items: center; gap: 2vw; padding: 2vh clamp(28px,5vw,96px) 4vh; }
.hero-copy { max-width: 820px; padding-bottom: 2vh; }
.eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 18px; color: #865b00; font-size: clamp(12px,.95vw,17px); font-weight: 900; letter-spacing: .16em; text-transform: uppercase; }
.hero-copy h1 { margin: 0; font-size: clamp(65px,6.2vw,119px); font-weight: 900; letter-spacing: -.075em; line-height: .87; }
.hero-copy h1 span { position: relative; display: block; width: max-content; margin: .12em 0 .08em; padding: .01em .11em .075em .07em; background: var(--ygom-yellow); transform: rotate(-1.4deg); box-shadow: 9px 9px 0 var(--ink); }
.hero-text { max-width: 610px; margin: clamp(26px,3vh,42px) 0 clamp(24px,3.2vh,44px); color: #4e4c47; font-size: clamp(17px,1.25vw,24px); line-height: 1.48; }
.primary-button { display: inline-flex; align-items: center; justify-content: center; gap: 18px; min-height: 64px; padding: 0 31px; border: 0; border-radius: 999px; background: var(--ink); color: var(--white); font-size: clamp(16px,1.05vw,20px); font-weight: 850; box-shadow: 0 12px 28px rgba(16,16,15,.18); transition: transform .2s, box-shadow .2s; }
.primary-button b { font-size: 1.4em; line-height: 1; }
.primary-button:hover { transform: translateY(-3px); box-shadow: 0 18px 34px rgba(16,16,15,.24); }
.primary-button:active { transform: scale(.98); }
.wheel-stage { position: relative; width: min(42vw,790px); aspect-ratio: 1; justify-self: center; }
.wheel-preview { position: absolute; inset: 7%; border: clamp(9px,.85vw,16px) solid var(--ink); border-radius: 50%; background: repeating-conic-gradient(from -9deg,var(--ygom-yellow) 0 36deg,var(--ink) 36deg 72deg); box-shadow: 0 0 0 13px #fff,0 0 0 16px var(--ink),24px 34px 0 rgba(16,16,15,.12); animation: welcomeFloat 6s ease-in-out infinite; }
.wheel-preview::after { content: ""; position: absolute; inset: 8%; border: 2px dashed rgba(255,255,255,.45); border-radius: 50%; }
.wheel-preview-inner { position: absolute; inset: 29%; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 8px solid var(--ink); border-radius: 50%; background: #fff; box-shadow: 0 8px 0 rgba(0,0,0,.12); }
.wheel-preview-inner span { font-size: clamp(31px,3.2vw,62px); font-weight: 950; letter-spacing: -.07em; }
.wheel-preview-inner small { margin-top: -4px; font-size: clamp(11px,.9vw,17px); font-weight: 900; letter-spacing: .18em; }
.pointer-preview { position: absolute; z-index: 5; top: 1%; left: 50%; width: 9%; aspect-ratio: 1; background: #fff; border: 5px solid var(--ink); clip-path: polygon(0 0,100% 0,50% 100%); transform: translateX(-50%); filter: drop-shadow(0 9px 0 rgba(16,16,15,.18)); }
.orbit { position: absolute; border: 2px dashed rgba(16,16,15,.18); border-radius: 50%; }
.orbit-one { inset: 0; animation: orbitSpin 24s linear infinite; }
.orbit-two { inset: -5%; border-style: solid; border-color: rgba(255,181,21,.32); }
.prize-chip { position: absolute; z-index: 4; padding: 11px 17px; border: 2px solid var(--ink); border-radius: 999px; background: #fff; font-size: clamp(10px,.8vw,15px); font-weight: 950; letter-spacing: .12em; box-shadow: 5px 5px 0 var(--ink); }
.chip-one { top: 13%; right: -1%; transform: rotate(6deg); }
.chip-two { bottom: 17%; left: -5%; transform: rotate(-7deg); }
.chip-three { right: -3%; bottom: 9%; transform: rotate(3deg); background: var(--ygom-yellow); }
.welcome-footer { position: relative; z-index: 3; display: flex; align-items: center; justify-content: center; gap: clamp(15px,2vw,38px); min-height: 64px; padding: 12px 24px; background: var(--ink); color: #fff; font-size: clamp(10px,.8vw,15px); font-weight: 850; letter-spacing: .18em; }
.welcome-footer i { width: 5px; height: 5px; border-radius: 50%; background: var(--ygom-yellow); }

/* Cadastro em tablet */
.registration-screen { display: none; grid-template-columns: minmax(360px,.77fr) minmax(600px,1.23fr); background: #fff; }
.registration-screen.is-active { display: grid; }
.registration-brand { position: relative; display: flex; flex-direction: column; min-height: 100dvh; padding: clamp(28px,3.5vw,58px); overflow: hidden; background: var(--ink); color: #fff; }
.registration-brand::after { content: ""; position: absolute; width: 70%; aspect-ratio: 1; right: -30%; bottom: -21%; border: 2px dashed rgba(255,181,21,.38); border-radius: 50%; box-shadow: 0 0 0 70px rgba(255,181,21,.05),0 0 0 140px rgba(255,181,21,.035); }
.back-button { position: relative; z-index: 2; width: max-content; padding: 10px 0; border: 0; background: transparent; color: rgba(255,255,255,.72); font-size: 14px; font-weight: 750; }
.brand-copy { position: relative; z-index: 2; margin: auto 0; }
.brand-logo-card,.compact-logo { display: flex; padding: 10px 13px; border-radius: 13px; background: #fff; }
.brand-logo-card { width: clamp(130px,13vw,190px); margin-bottom: clamp(30px,5vh,60px); }
.brand-logo-card img,.compact-logo img { display: block; width: 100%; height: auto; }
.dark-eyebrow { color: var(--ygom-yellow); }
.brand-copy h1 { max-width: 630px; margin: 0; font-size: clamp(40px,4vw,69px); line-height: .97; letter-spacing: -.058em; }
.brand-copy > p:last-child { max-width: 550px; margin: 27px 0 0; color: rgba(255,255,255,.62); font-size: clamp(16px,1.2vw,21px); line-height: 1.55; }
.privacy-note { position: relative; z-index: 2; display: flex; align-items: center; gap: 12px; max-width: 480px; color: rgba(255,255,255,.52); font-size: 12px; line-height: 1.4; }
.shield { display: grid; flex: 0 0 auto; place-items: center; width: 24px; height: 24px; border: 2px solid var(--ygom-yellow); border-radius: 8px; color: var(--ygom-yellow); font-weight: 900; }
.registration-form-wrap { display: flex; flex-direction: column; min-height: 100dvh; padding: clamp(28px,3.2vw,62px) clamp(36px,6vw,112px); background: #fff; }
.step-line { display: flex; align-items: center; gap: 16px; color: #222; font-size: 12px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.step-line .muted { color: #a3a19b; }
.step-track { flex: 1; max-width: 160px; height: 3px; border-radius: 99px; background: #e9e7e0; overflow: hidden; }
.step-track i { display: block; width: 50%; height: 100%; background: var(--ygom-yellow); }
.registration-form { width: min(100%,840px); margin: auto; }
.form-heading { margin-bottom: clamp(24px,4vh,48px); }
.form-heading .eyebrow { margin-bottom: 13px; font-size: 12px; }
.form-heading h2 { margin: 0; font-size: clamp(34px,3.1vw,57px); letter-spacing: -.055em; line-height: 1; }
.field { display: block; flex: 1; margin-bottom: clamp(17px,2.2vh,25px); }
.field > span { display: block; margin-bottom: 9px; color: #5b5954; font-size: 13px; font-weight: 800; }
.field-row { display: flex; gap: 18px; }
.instagram-field { flex: .72; }
.communication-field { flex: 1.28; }
.input-wrap { display: flex; align-items: center; gap: 13px; height: clamp(55px,7.2vh,70px); padding: 0 18px; border: 1.5px solid #dad7cf; border-radius: 16px; background: #faf9f6; transition: border-color .2s,box-shadow .2s,background .2s; }
.input-wrap:focus-within { border-color: var(--ygom-yellow); background: #fff; box-shadow: 0 0 0 4px rgba(255,181,21,.15); }
.field-icon { width: 22px; color: #77746d; font-style: normal; font-size: 14px; text-align: center; }
.field-icon.square { font-size: 11px; }
.input-wrap input,.input-wrap select { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 16px; }
.input-wrap select { cursor: pointer; }
.input-wrap input::placeholder { color: #a7a49c; }
.form-button { width: 100%; margin-top: 4px; background: var(--ygom-yellow); color: var(--ink); box-shadow: 0 12px 28px rgba(255,181,21,.22); }
.form-error,.spin-error { margin: -8px 0 15px; padding: 11px 14px; border-radius: 12px; background: #fff0ed; color: #a92b17; font-size: 13px; font-weight: 750; }

/* Roleta SVG: cada texto é centralizado matematicamente na própria fatia */
.wheel-screen { position: relative; flex-direction: column; background: radial-gradient(circle at 25% 50%,#292824 0,#171716 35%,#0e0e0d 72%); color: #fff; }
.wheel-screen::before { content: ""; position: absolute; inset: 0; opacity: .12; pointer-events: none; background-image: radial-gradient(#fff .7px,transparent .7px); background-size: 15px 15px; -webkit-mask-image: linear-gradient(90deg,#000,transparent 66%); mask-image: linear-gradient(90deg,#000,transparent 66%); }
.tablet-header { position: relative; z-index: 5; display: flex; align-items: center; justify-content: space-between; padding: clamp(21px,3vw,39px) clamp(26px,4vw,58px) 0; }
.compact-logo { width: clamp(112px,11vw,168px); }
.wheel-step { color: #fff; }
.wheel-step .step-track { background: rgba(255,255,255,.13); }
.wheel-step .step-track i { width: 100%; }
.test-mode-pill { display:flex; align-items:center; gap:9px; min-height:40px; padding:0 15px; border:1px solid rgba(255,181,21,.45); border-radius:999px; background:rgba(255,181,21,.1); color:#fff; font-size:11px; font-weight:950; letter-spacing:.1em; text-transform:uppercase; }
.test-mode-pill i { color:var(--ygom-yellow); font-size:9px; font-style:normal; }
.test-mode-pill small { padding-left:9px; border-left:1px solid rgba(255,255,255,.18); color:rgba(255,255,255,.48); font-size:8px; letter-spacing:.08em; }
.wheel-experience { position: relative; z-index: 2; flex: 1; display: grid; grid-template-columns: minmax(600px,1.2fr) minmax(350px,.8fr); align-items: center; gap: clamp(20px,3vw,55px); width: min(100%,1580px); margin: 0 auto; padding: clamp(12px,1.5vh,22px) clamp(24px,3vw,48px) clamp(24px,3vh,42px); }
.real-wheel-stage { position: relative; width: min(70vh,62vw,820px); aspect-ratio: 1; justify-self: center; }
.wheel-glow { position: absolute; inset: 8%; border-radius: 50%; background: var(--ygom-yellow); filter: blur(70px); opacity: .22; }
.real-wheel { position: absolute; inset: 5.5%; border: clamp(10px,1vw,16px) solid #fff; border-radius: 50%; background: #f5f1e7; box-shadow: 0 0 0 5px #111,0 0 0 16px var(--ygom-yellow),0 0 0 22px #10100f,24px 30px 45px rgba(0,0,0,.45); overflow: hidden; transition: transform 5.8s cubic-bezier(.12,.62,.04,1); will-change: transform; }
.real-wheel svg { display: block; width: 100%; height: 100%; }
.wheel-segment { stroke: rgba(16,16,15,.33); stroke-width: 2; }
.wheel-segment-label { font-family: Inter,"Helvetica Neue",Arial,sans-serif; font-weight: 950; letter-spacing: .35px; text-anchor: middle; dominant-baseline: middle; pointer-events: none; text-transform: uppercase; }
.wheel-hub { position: absolute; z-index: 7; inset: 37%; display: flex; flex-direction: column; align-items: center; justify-content: center; border: clamp(8px,.75vw,12px) solid #111; border-radius: 50%; background: #fff; color: #111; box-shadow: 0 0 0 5px var(--ygom-yellow),0 8px 18px rgba(0,0,0,.23); }
.wheel-hub span { font-size: clamp(22px,3.2vh,38px); font-weight: 950; letter-spacing: -.075em; }
.wheel-hub small { margin-top: -3px; color: #7a756d; font-size: clamp(8px,1vh,12px); font-weight: 950; letter-spacing: .24em; }
.real-pointer { position: absolute; z-index: 10; top: 0; left: 50%; width: 10%; aspect-ratio: .92; border: 5px solid #111; background: var(--ygom-yellow); clip-path: polygon(0 0,100% 0,50% 100%); transform: translateX(-50%); filter: drop-shadow(0 10px 6px rgba(0,0,0,.3)); transform-origin: 50% 0; }
.real-pointer.is-ticking { animation: pointerTick .12s ease-out both; }
.spin-panel { max-width: 520px; }
.spin-panel h1 { margin: 0; font-size: clamp(50px,5vw,78px); line-height: .91; letter-spacing: -.065em; }
.spin-panel h1 span { color: var(--ygom-yellow); }
.spin-panel > p:not(.eyebrow):not(.spin-error) { max-width: 470px; margin: clamp(20px,3vh,33px) 0; color: rgba(255,255,255,.6); font-size: clamp(16px,1.5vw,21px); line-height: 1.55; }
.spin-error { margin: -10px 0 18px; }
.spin-button { display: flex; align-items: center; justify-content: space-between; gap: 22px; width: min(100%,480px); min-height: clamp(76px,10vh,100px); padding: 10px 13px 10px 31px; border: 0; border-radius: 999px; background: var(--ygom-yellow); color: #111; box-shadow: 0 15px 38px rgba(255,181,21,.22); font-size: clamp(18px,1.6vw,23px); font-weight: 950; transition: transform .2s,filter .2s; }
.spin-button:not(:disabled):hover { transform: translateY(-3px); filter: brightness(1.05); }
.spin-button:disabled { cursor: progress; opacity: .8; }
.spin-button i { display: grid; place-items: center; width: clamp(58px,7.5vh,76px); aspect-ratio: 1; border-radius: 50%; background: #111; color: #fff; font-size: 34px; font-style: normal; }
.spin-button:disabled i { animation: orbitSpin .8s linear infinite; }
.one-spin-note { display: flex; align-items: center; gap: 8px; margin: 18px 0 0 8px; color: rgba(255,255,255,.42); font-size: 11px; }

/* Resultado ao lado da roleta parada */
.wheel-result-panel { position: relative; z-index: 5; width: min(100%,540px); max-height: calc(100dvh - 145px); padding: clamp(25px,3.2vh,38px); overflow-y: auto; border: 1px solid rgba(255,255,255,.18); border-radius: 28px; background: #fff; color: #111; box-shadow: 0 24px 70px rgba(0,0,0,.38); animation: resultReveal .5s cubic-bezier(.2,.8,.2,1) both; }
.wheel-result-panel.is-winner { border-color: var(--ygom-yellow); background: var(--ygom-yellow); }
.result-status { display: block; margin-bottom: clamp(18px,2.5vh,28px); font-size: 10px; font-weight: 950; letter-spacing: .2em; opacity: .5; text-transform: uppercase; }
.result-icon { display: grid; place-items: center; width: clamp(58px,8vh,76px); aspect-ratio: 1; margin-bottom: 17px; border: 3px solid currentColor; border-radius: 50%; background: rgba(255,255,255,.32); font-size: clamp(28px,4vh,40px); font-weight: 900; }
.wheel-result-panel.is-consolation .result-icon { border-color: var(--ygom-yellow); color: #8a5d00; background: rgba(255,181,21,.13); }
.result-kicker { margin: 0 0 10px; font-size: clamp(11px,1vw,14px); font-weight: 950; letter-spacing: .16em; text-transform: uppercase; }
.wheel-result-panel h1 { margin: 0; font-size: clamp(48px,5.5vw,72px); font-weight: 950; letter-spacing: -.07em; line-height: .82; }
.wheel-result-panel h1 span { overflow-wrap: anywhere; }
.wheel-result-panel.is-winner h1 span { display: inline-block; margin-top: .16em; padding: .04em .14em .1em; background: #111; color: #fff; transform: rotate(-1deg); }
.wheel-result-panel.is-consolation h1 span { color: #9b6900; }
.prize-result-card { display: flex; flex-direction: column; width: 100%; margin: clamp(22px,2.8vh,30px) 0; padding: clamp(16px,2vh,22px) 23px; border: 2px solid #111; border-radius: 18px; background: rgba(255,255,255,.72); box-shadow: 6px 6px 0 #111; }
.prize-result-card small { margin-bottom: 5px; font-size: 10px; font-weight: 900; letter-spacing: .2em; text-transform: uppercase; }
.prize-result-card strong { font-size: clamp(20px,2.2vw,30px); line-height: 1.15; }
.prize-result-card p { margin: 7px 0 0; color: rgba(16,16,15,.6); font-size: 14px; }
.consolation-copy { margin: clamp(22px,2.8vh,30px) 0; color: rgba(16,16,15,.62); font-size: clamp(16px,1.4vw,19px); line-height: 1.55; }
.result-button { display: inline-flex; align-items: center; justify-content: center; gap: 15px; min-height: 58px; padding: 0 28px; border: 0; border-radius: 999px; background: #111; color: #fff; font-weight: 900; }
.confetti { position: absolute; z-index: 2; inset: 0; overflow: hidden; pointer-events: none; }
.confetti i { position: absolute; top: -8%; border-radius: 2px; animation-name: confettiFall; animation-timing-function: linear; animation-iteration-count: infinite; }
.system-message { position: fixed; z-index: 100; left: 50%; top: 28px; width: min(90vw,620px); padding: 16px 20px; border-radius: 14px; background: #a92b17; color: #fff; font-weight: 800; text-align: center; transform: translateX(-50%); box-shadow: 0 16px 38px rgba(0,0,0,.25); }

[hidden] { display: none !important; }
@keyframes livePulse { 50% { box-shadow: 0 0 0 11px rgba(255,181,21,0); } }
@keyframes welcomeFloat { 50% { transform: translateY(-12px) rotate(1.7deg); } }
@keyframes orbitSpin { to { transform: rotate(360deg); } }
@keyframes pointerTick { 45% { transform: translateX(-50%) rotate(7deg); } }
@keyframes confettiFall { to { transform: translate3d(var(--drift),118vh,0) rotate(720deg); } }
@keyframes resultReveal { from { opacity: 0; transform: translateX(28px) scale(.98); } }

@media (max-width: 1050px) {
  .welcome-content { grid-template-columns: .95fr 1.05fr; }
  .hero-copy h1 { font-size: clamp(56px,6.9vw,76px); }
  .wheel-stage { width: min(45vw,580px); }
  .registration-screen { grid-template-columns: .72fr 1.28fr; }
  .registration-brand { padding: 28px; }
  .registration-form-wrap { padding: 28px 42px; }
  .brand-copy h1 { font-size: clamp(35px,4.3vw,50px); }
  .wheel-experience { grid-template-columns: minmax(500px,1.16fr) minmax(315px,.84fr); gap: 18px; padding-left: 20px; padding-right: 28px; }
  .real-wheel-stage { width: min(66vh,60vw,650px); }
  .spin-panel h1 { font-size: clamp(47px,5.9vw,64px); }
}

@media (max-width: 760px) {
  body { overflow: auto; }
  .screen { overflow: visible; }
  .welcome-header { padding: 24px 22px 0; }
  .live-pill { display: none; }
  .welcome-content { display: flex; flex-direction: column; align-items: stretch; padding: 7vh 22px 28px; }
  .hero-copy h1 { font-size: clamp(54px,16vw,76px); }
  .hero-copy h1 span { box-shadow: 6px 6px 0 var(--ink); }
  .hero-text { font-size: 17px; }
  .wheel-stage { width: 94vw; margin: 20px auto -32%; opacity: .28; }
  .welcome-footer { flex-wrap: wrap; gap: 9px 18px; padding: 17px; }
  .registration-screen.is-active { display: block; }
  .registration-brand { min-height: auto; padding: 22px; }
  .registration-brand .brand-copy,.registration-brand .privacy-note { display: none; }
  .registration-form-wrap { min-height: calc(100dvh - 68px); padding: 25px 22px 40px; }
  .registration-form { margin-top: 8vh; }
  .field-row { display: block; }
  .tablet-header { padding: 20px 20px 0; }
  .wheel-step { display: none; }
  .test-mode-pill small { display:none; }
  .wheel-experience { display: flex; flex-direction: column; padding: 26px 20px 40px; }
  .real-wheel-stage { width: min(88vw,460px); flex: 0 0 auto; }
  .spin-panel { text-align: center; }
  .spin-panel .eyebrow,.one-spin-note { justify-content: center; }
  .spin-panel h1 { font-size: 52px; }
  .spin-button { margin: 0 auto; }
  .wheel-result-panel { width: min(100%,520px); max-height: none; text-align: center; }
  .wheel-result-panel .result-icon { margin-left: auto; margin-right: auto; }
  .wheel-result-panel h1 { font-size: clamp(48px,14vw,68px); }
}

@media (prefers-reduced-motion: reduce) {
  *,*::before,*::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
}
