/* Kiosk (iPad) screens */
html, body { height: 100%; }
body.kiosk { overscroll-behavior: none; -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; }
body.kiosk input, body.kiosk textarea { -webkit-user-select: text; user-select: text; }
body.kiosk::before { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: -1; background: radial-gradient(640px 360px at 88% 8%, rgba(37,99,235,.10), transparent 70%), radial-gradient(520px 320px at 6% 92%, rgba(96,165,250,.12), transparent 70%); }

.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 16px; height: calc(68px + env(safe-area-inset-top)); padding: env(safe-area-inset-top) max(28px, env(safe-area-inset-right)) 0 max(28px, env(safe-area-inset-left)); background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line-soft); }
.topbar .event { margin-left: auto; color: var(--ink-3); }
.net { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--amber); background: #fff7ea; border: 1px solid #f6dcb0; padding: 5px 12px; border-radius: 999px; }
.net i { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); }
body.on-wheel .topbar { background: rgba(11,18,32,.8); border-color: var(--navy-line); }
body.on-wheel .topbar .logo, body.on-wheel .topbar .event { color: #fff; }

.screen { width: 100%; max-width: 1080px; margin: 0 auto; padding: 40px 28px 56px; animation: rise .45s cubic-bezier(.2,.8,.2,1); }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (max-width: 640px) { .screen { padding: 28px 16px 40px; } .topbar { padding-left: 16px; padding-right: 16px; } .topbar .event { display: none; } }

/* Home */
.home { display: flex; flex-direction: column; gap: 36px; min-height: calc(100vh - 68px); min-height: calc(100dvh - 68px); justify-content: center; }
.home h1 { font-size: clamp(40px, 6vw, 68px); font-weight: 800; margin-top: 20px; }
.home .lead { margin-top: 16px; }
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 720px) { .choices { grid-template-columns: 1fr; } }
.choice { position: relative; text-align: left; display: flex; flex-direction: column; gap: 10px; padding: 30px; min-height: 280px; border-radius: 26px; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); transition: transform .2s; color: var(--ink); overflow: hidden; }
.choice:active { transform: scale(.98); }
.choice .mono { color: var(--ink-3); }
.choice strong { font-size: clamp(28px, 3.4vw, 38px); letter-spacing: -.03em; line-height: 1.1; }
.choice-sub { color: var(--ink-2); font-size: 16.5px; max-width: 380px; }
.choice-go { margin-top: auto; display: inline-flex; align-self: flex-start; align-items: center; gap: 8px; height: 48px; padding: 0 22px; border-radius: 999px; background: var(--navy); color: #fff; font-weight: 600; }
.choice-ico { width: 56px; height: 56px; border-radius: 16px; background: var(--blue-soft); display: grid; place-items: center; margin-bottom: 6px; }
.choice-ico svg { width: 28px; height: 28px; fill: none; stroke: var(--blue); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.choice.dark { background: var(--navy); border-color: var(--navy); color: #fff; }
.choice.dark::after { content: ""; position: absolute; right: -80px; top: -80px; width: 280px; height: 280px; border-radius: 50%; background: radial-gradient(circle, rgba(37,99,235,.45), transparent 70%); }
.choice.dark .mono { color: #6f7c99; }
.choice.dark .choice-sub { color: #aab6cf; }
.choice.dark .choice-go { background: var(--blue); }
.choice.dark .choice-ico { background: var(--navy-3); }
.choice.dark .choice-ico svg { stroke: var(--sky); }
.eco { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.eco li { padding: 14px 18px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; }
.eco b { font-size: 17px; }
.eco span { font-size: 13.5px; color: var(--ink-3); }
@media (max-width: 560px) { .eco { grid-template-columns: 1fr; } }

/* Form */
.form-head { margin-bottom: 22px; }
.form-head h2 { font-size: clamp(30px, 4vw, 44px); font-weight: 800; margin-top: 10px; }
.steps { display: flex; gap: 8px; margin-top: 22px; }
.steps .st { flex: 1; display: flex; flex-direction: column; gap: 8px; font-size: 13.5px; font-weight: 600; color: var(--fade); }
.steps .st i { height: 5px; border-radius: 4px; background: var(--line); overflow: hidden; position: relative; }
.steps .st i::after { content: ""; position: absolute; inset: 0; width: 0; background: var(--blue); transition: width .4s; }
.steps .st.done, .steps .st.on { color: var(--ink); }
.steps .st.done i::after, .steps .st.on i::after { width: 100%; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 30px; box-shadow: var(--shadow); display: grid; grid-template-columns: 1fr 1fr; gap: 24px 22px; animation: rise .35s cubic-bezier(.2,.8,.2,1); }
@media (max-width: 640px) { .card { grid-template-columns: 1fr; padding: 20px; border-radius: 20px; } }
.field { display: flex; flex-direction: column; gap: 9px; min-width: 0; }
.field.wide { grid-column: 1 / -1; }
.field > label, .field > .lbl { font-weight: 600; font-size: 16px; color: var(--ink); }
.req { color: var(--blue); margin-left: 3px; }
.field input[type=text], .field input[type=tel], .field input[type=email], .field textarea {
  width: 100%; height: 56px; padding: 0 18px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--bg); font-size: 18px; outline: none; transition: border-color .15s, background .15s, box-shadow .15s; -webkit-appearance: none; appearance: none; }
.field textarea { height: 110px; padding: 14px 18px; resize: none; line-height: 1.45; }
.field input:focus, .field textarea:focus { border-color: var(--blue); background: #fff; box-shadow: 0 0 0 4px var(--blue-soft); }
.field.bad input, .field.bad textarea { border-color: var(--red); background: var(--red-soft); }
.err { color: var(--red); font-size: 14px; font-weight: 600; min-height: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { min-height: 50px; padding: 0 20px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--bg); font-size: 16px; font-weight: 600; color: var(--ink-2); transition: .15s; }
.chip.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.field.bad .chip { border-color: #f1b4b4; }
.prods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 760px) { .prods { grid-template-columns: 1fr; } }
.prod { position: relative; text-align: left; padding: 18px 18px 18px 18px; border-radius: 18px; border: 1.5px solid var(--line); background: var(--bg); display: flex; flex-direction: column; gap: 6px; transition: .15s; }
.prod b { font-size: 19px; letter-spacing: -.02em; }
.prod span { font-size: 14px; color: var(--ink-3); line-height: 1.4; padding-right: 26px; }
.prod::after { content: ""; position: absolute; right: 16px; top: 18px; width: 24px; height: 24px; border-radius: 8px; border: 1.5px solid var(--line); background: #fff; }
.prod.on { border-color: var(--blue); background: var(--blue-soft); }
.prod.on::after { background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat; border-color: var(--blue); }
.stars { display: flex; gap: 8px; }
.star { width: 58px; height: 58px; border-radius: 16px; border: 1.5px solid var(--line); background: var(--bg); display: grid; place-items: center; transition: .15s; }
.star svg { width: 30px; height: 30px; fill: var(--line); transition: .15s; }
.star.on { background: #fff7e6; border-color: #f7c766; }
.star.on svg { fill: #f59e0b; transform: scale(1.08); }
.scale { display: grid; grid-template-columns: repeat(11, 1fr); gap: 6px; }
.scale button { height: 52px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--bg); font-weight: 700; font-size: 17px; padding: 0; transition: .15s; }
.scale button.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.scale-ends { display: flex; justify-content: space-between; font-size: 13px; color: var(--ink-3); }
@media (max-width: 560px) { .scale { grid-template-columns: repeat(6, 1fr); } }
.check { display: flex; gap: 14px; align-items: center; padding: 16px 18px; border: 1.5px solid var(--line); border-radius: 16px; background: var(--bg); font-weight: 600; text-align: left; }
.check i { flex: none; width: 28px; height: 28px; border-radius: 9px; border: 1.5px solid var(--line); background: #fff; }
.check.on { border-color: var(--blue); background: var(--blue-soft); }
.check.on i { background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/18px no-repeat; border-color: var(--blue); }
.form-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 22px; }
.form-nav .btn { height: 58px; padding: 0 30px; font-size: 17px; }
.form-nav #nextBtn { min-width: 200px; }

/* Wheel */
body.on-wheel { background: var(--navy); }
body.on-wheel::before { background: radial-gradient(700px 420px at 50% 40%, rgba(37,99,235,.35), transparent 70%), radial-gradient(500px 300px at 90% 90%, rgba(124,58,237,.18), transparent 70%); }
.wheel-screen { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 24px; color: #fff; min-height: calc(100vh - 68px); min-height: calc(100dvh - 68px); justify-content: center; padding-top: 24px; }
.wheel-copy h2 { font-size: clamp(34px, 5vw, 54px); font-weight: 800; margin: 8px 0 10px; }
.wheel-wrap { position: relative; width: min(78vw, 62vh, 600px); aspect-ratio: 1; }
#wheel { width: 100%; height: 100%; display: block; border-radius: 50%; box-shadow: 0 0 0 10px #18233b, 0 0 0 12px #2b3a5c, 0 40px 90px -20px rgba(0,0,0,.7), 0 0 120px rgba(37,99,235,.35); }
.pointer { position: absolute; left: 50%; top: -22px; width: 54px; height: 64px; margin-left: -27px; z-index: 3; transform-origin: 50% 18px; filter: drop-shadow(0 6px 10px rgba(0,0,0,.45)); }
.pointer::before { content: ""; position: absolute; inset: 0; background: #fff; clip-path: polygon(50% 100%, 0 22%, 12% 0, 88% 0, 100% 22%); border-radius: 6px; }
.pointer::after { content: ""; position: absolute; left: 50%; top: 13px; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: var(--blue); }
.pointer.tick { animation: tick .12s ease-out; }
@keyframes tick { 0% { transform: rotate(0); } 40% { transform: rotate(-18deg); } 100% { transform: rotate(0); } }
.hub { position: absolute; left: 50%; top: 50%; width: 24%; height: 24%; transform: translate(-50%, -50%); border-radius: 50%; border: 6px solid #fff; background: radial-gradient(circle at 35% 30%, #3b82f6, #1d4ed8 60%, #1e3a8a); color: #fff; font-weight: 800; font-size: clamp(18px, 2.6vw, 28px); letter-spacing: .06em; box-shadow: 0 10px 30px rgba(0,0,0,.45), inset 0 -6px 12px rgba(0,0,0,.25); z-index: 2; transition: transform .15s; }
.hub:not(:disabled) { animation: pulse 1.6s ease-in-out infinite; }
.hub:disabled { cursor: default; }
@keyframes pulse { 0%, 100% { transform: translate(-50%, -50%) scale(1); } 50% { transform: translate(-50%, -50%) scale(1.07); } }
#confetti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 40; }
.result { position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 50; width: min(520px, calc(100% - 32px)); background: rgba(18,27,46,.94); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid var(--navy-line); border-radius: 28px; padding: 36px 32px 30px; display: flex; flex-direction: column; align-items: center; gap: 10px; box-shadow: 0 40px 100px rgba(0,0,0,.6); animation: pop .5s cubic-bezier(.2,1.4,.4,1); }
@keyframes pop { from { opacity: 0; transform: translate(-50%, -50%) scale(.7); } to { opacity: 1; transform: translate(-50%, -50%) scale(1); } }
.result .mono { color: var(--sky); }
.result h3 { font-size: clamp(32px, 5vw, 46px); font-weight: 800; color: #fff; }
.result p { color: #aab6cf; font-size: 17px; }
.result .ref { color: #6f7c99; margin-top: 4px; font-size: 13px; }
.result .btn { margin-top: 14px; min-width: 200px; height: 56px; font-size: 17px; }

/* Thanks */
.thanks { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 14px; min-height: calc(100vh - 68px); min-height: calc(100dvh - 68px); }
.thanks h2 { font-size: clamp(34px, 5vw, 52px); font-weight: 800; }
.thanks .btn { margin-top: 16px; min-width: 200px; height: 56px; }
.thanks .ref { color: var(--ink-3); }
.tick { width: 96px; height: 96px; border-radius: 50%; background: var(--green); display: grid; place-items: center; box-shadow: 0 0 0 12px var(--green-soft); animation: pop2 .5s cubic-bezier(.2,1.4,.4,1); }
.tick svg { width: 50px; height: 50px; fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
@keyframes pop2 { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }
