:root {
  color-scheme: light;
  --red: #e64d4d;
  --red-dark: #c9323d;
  --teal: #0e4d58;
  --ink: #18363d;
  --muted: #667b7e;
  --cream: #f7f2e8;
  --paper: #fffdf8;
  --line: #dfddd4;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 16px/1.55 -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif; -webkit-font-smoothing: antialiased; }
body.camera-open { overflow: hidden; }
button, input { font: inherit; }
button:focus-visible, input:focus-visible { outline: 3px solid #f1a1a1; outline-offset: 2px; }
.shell { width: min(100%, 560px); min-height: 100dvh; margin: 0 auto; padding: 0 18px max(30px, env(safe-area-inset-bottom)); }
.site-header { min-height: 76px; margin: 0 -18px; padding: 9px 18px; display: flex; align-items: center; justify-content: space-between; gap: 10px; background: #fff; border-bottom: 1px solid var(--line); }
.brand-lockup { display: flex; align-items: center; gap: 5px; min-width: 0; }
.brand-lockup > img:first-child { width: 44px; height: 44px; object-fit: contain; }
.wordmark { width: clamp(128px, 42vw, 180px); height: auto; }
.header-actions { display: flex; align-items: center; gap: 7px; }
.header-tag { padding: 6px 10px; border: 1px solid #e7b9b9; border-radius: 100px; color: var(--red-dark); font-size: 12px; font-weight: 800; white-space: nowrap; }
.site-header button.exit-button { width: auto; min-height: 32px; padding: 5px 10px; border: 1px solid #c7d2d1; border-radius: 100px; background: #fff; color: var(--teal); font-size: 12px; font-weight: 800; white-space: nowrap; }
.site-header button.exit-button:hover { background: #edf3f1; }
.hero { position: relative; overflow: hidden; padding: 35px 3px 25px; }
.hero:after { content: ""; position: absolute; right: -72px; top: -70px; width: 178px; height: 178px; border: 20px solid #e64d4d0c; border-radius: 50%; }
.eyebrow { margin: 0; color: var(--red-dark); font-size: 12px; font-weight: 900; letter-spacing: .15em; }
.hero h1 { position: relative; z-index: 1; margin: 10px 0 11px; color: var(--teal); font-size: clamp(31px, 8.7vw, 43px); line-height: 1.15; letter-spacing: -.045em; }
.hero > p:last-child { position: relative; z-index: 1; max-width: 475px; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.75; }
.campaign-visual { overflow: hidden; margin: 0 0 16px; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: 0 12px 35px #2443490a; }
.campaign-visual img { display: block; width: 100%; height: auto; aspect-ratio: 724 / 327; object-fit: cover; }
.card { margin: 0 0 16px; padding: 23px 21px 24px; border: 1px solid var(--line); border-radius: 20px; background: var(--paper); box-shadow: 0 12px 35px #2443490a; }
.card h2 { margin: 0 0 10px; color: var(--teal); font-size: 23px; line-height: 1.32; letter-spacing: -.025em; }
.step { display: flex; align-items: center; gap: 8px; margin: 0 0 13px; color: var(--red-dark); font-size: 12px; font-weight: 900; letter-spacing: .07em; }
.step:before { content: ""; width: 18px; height: 3px; border-radius: 3px; background: var(--red); }
.muted { margin: 8px 0 20px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.muted strong { color: var(--teal); }
.loading { margin: 0; color: var(--muted); text-align: center; }
label:not(.consent) { display: block; margin: 0 0 17px; color: var(--ink); font-size: 14px; font-weight: 800; }
input:not([type=checkbox]):not([type=radio]) { display: block; width: 100%; min-height: 52px; margin-top: 8px; padding: 12px 14px; border: 1px solid #c8d5d3; border-radius: 11px; background: #fff; color: var(--ink); font-size: 16px; outline: none; }
input:not([type=checkbox]):not([type=radio]):focus { border-color: var(--teal); box-shadow: 0 0 0 3px #0e4d581b; }
input::placeholder { color: #a2adae; }
button:not(.shutter):not(#closeCamera) { width: 100%; min-height: 50px; padding: 12px 15px; border: 0; border-radius: 11px; background: var(--red); color: #fff; font-size: 15px; font-weight: 850; cursor: pointer; }
button:not(.shutter):not(#closeCamera):hover { background: var(--red-dark); }
button.secondary { margin-top: 10px; background: #eaf2f0; color: var(--teal); }
button.secondary:hover { background: #dceae7; }
button:disabled { opacity: .55; cursor: wait !important; }
.fine-print { margin: 12px 0 0; color: var(--muted); font-size: 11px; line-height: 1.65; }
.message { min-height: 1.4em; margin: 11px 0 0; color: #ac3540; font-size: 13px; line-height: 1.6; }
.message.success { color: #237557; }
.message:empty { display: none; }
fieldset { margin: 15px 0; padding: 0; border: 0; }
legend { margin-bottom: 10px; font-size: 14px; font-weight: 800; }
.choice-list { display: grid; gap: 10px; }
.name-choice { display: flex; align-items: center; gap: 12px; min-height: 58px; margin: 0 !important; padding: 11px 14px; border: 1px solid var(--line); border-radius: 11px; color: var(--teal); font-size: 17px !important; background: #fff; }
.name-choice:has(input:checked) { border-color: var(--red); background: #fff1ee; box-shadow: 0 0 0 1px var(--red); }
.name-choice input { width: 19px; height: 19px; margin: 0; accent-color: var(--red); }
.prize-chip { display: grid; grid-template-columns: 1fr auto; gap: 1px 8px; margin: 0 0 22px; padding: 15px 16px; border-radius: 14px; background: var(--teal); color: #fff; }
.prize-chip span { grid-column: 1 / -1; color: #c8dddd; font-size: 11px; font-weight: 800; letter-spacing: .08em; }
.prize-chip strong { font-size: 18px; }
.prize-chip b { color: #ffbbb1; font-size: 19px; }
.share-link { overflow: hidden; margin: 15px 0; padding: 12px; border: 1px dashed #aec2bf; border-radius: 10px; background: #f2f7f5; color: var(--teal); font-size: 12px; overflow-wrap: anywhere; }
.success-mark { display: grid; place-items: center; width: 58px; height: 58px; margin-bottom: 22px; border-radius: 50%; background: #e5f3eb; color: #23815a; font-size: 30px; font-weight: 900; }
.prize-hero { margin: 0 0 18px; padding: 21px; border-radius: 16px; background: linear-gradient(145deg, var(--teal), #17636e); color: #fff; }
.prize-hero span { color: #c7e0df; font-size: 12px; font-weight: 800; letter-spacing: .08em; }
.prize-hero h2 { max-width: 330px; margin: 7px 0 14px; color: #fff; font-size: 27px; }
.prize-hero > strong { color: #ffb0a7; font-size: 43px; line-height: 1; }
.prize-hero small { font-size: 16px; }
.locked-phone { margin: 0 0 10px; padding: 11px 12px; border-radius: 9px; background: #edf3f1; color: var(--muted); font-size: 13px; }
.locked-phone b { margin-left: 5px; color: var(--teal); font-size: 16px; }
.photo-label { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin: 3px 0 8px; font-size: 14px; font-weight: 800; }
.photo-label em { color: var(--muted); font-size: 11px; font-style: normal; font-weight: 500; }
.preview-frame { height: min(95vw, 410px); min-height: 285px; overflow: hidden; display: flex; align-items: center; justify-content: center; border: 1px dashed #9db0b1; border-radius: 13px; background: #f1f6f4; }
.preview-frame img { width: 100%; height: 100%; object-fit: contain; }
#cameraPlaceholder { display: flex; flex-direction: column; align-items: center; gap: 7px; color: var(--muted); font-size: 12px; }
.person-icon { position: relative; width: 95px; height: 110px; margin-bottom: 10px; border: 2px dashed #9db6b3; border-radius: 48px 48px 20px 20px; }
.person-icon:before { content: ""; position: absolute; left: 29px; top: 18px; width: 34px; height: 37px; border-radius: 50%; background: #d7e6e3; }
.person-icon:after { content: ""; position: absolute; left: 14px; top: 61px; width: 63px; height: 36px; border-radius: 34px 34px 12px 12px; background: #d7e6e3; }
.consent { display: flex; gap: 10px; align-items: flex-start; margin: 18px 0 14px; color: #5d7274; font-size: 12px; line-height: 1.65; }
.consent input { width: 18px; height: 18px; margin: 2px 0 0; flex: none; accent-color: var(--red); }
footer { display: flex; align-items: center; justify-content: center; gap: 9px; padding: 22px 0 8px; color: var(--teal); font-size: 11px; font-weight: 800; }
footer span { width: 1px; height: 12px; background: var(--red); }
.hidden { display: none !important; }
.camera-overlay { position: fixed; inset: 0; z-index: 1000; display: flex; flex-direction: column; height: 100vh; height: 100dvh; background: #071c20; color: #fff; }
.camera-top { min-height: 78px; padding: max(12px, env(safe-area-inset-top)) 18px 10px; display: flex; align-items: center; gap: 13px; }
#closeCamera { width: 42px; height: 42px; padding: 0; flex: none; border: 1px solid #ffffff44; border-radius: 50%; background: #ffffff16; color: #fff; font-size: 29px; }
.camera-top strong, .camera-top span { display: block; }
.camera-top span { color: #c9d9d7; font-size: 11px; }
.camera-stage { position: relative; display: flex; align-items: center; justify-content: center; flex: 1; min-height: 0; overflow: hidden; background: #163035; }
.camera-stage video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); }
.camera-stage > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #071c20; }
.face-guide { position: relative; z-index: 1; width: min(72vw, 330px); height: min(72vh, 490px); border: 3px dashed #fff; border-radius: 48% 48% 42% 42%; filter: drop-shadow(0 1px 4px #000); }
.camera-bottom { height: 145px; padding: 12px 10px max(12px, env(safe-area-inset-bottom)); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.camera-bottom small { color: #cbd9d7; }
.camera-capture-actions { display: flex; flex-direction: column; align-items: center; gap: 5px; }
.camera-review-actions { display: flex; width: min(100%, 520px); gap: 10px; }
.camera-review-actions button:not(.shutter):not(#closeCamera) { width: auto; flex: 1; margin-top: 0; }
.camera-confirm-message { min-height: 18px; color: #ffd2cc !important; text-align: center; }
.shutter { display: grid; place-items: center; width: 76px; height: 76px; padding: 6px; border: 4px solid #fff; border-radius: 50%; background: transparent; }
.shutter span { width: 100%; height: 100%; border-radius: 50%; background: var(--red); }
@media (max-width: 360px) { .shell { padding-right: 12px; padding-left: 12px; } .site-header { margin-right: -12px; margin-left: -12px; padding-right: 12px; padding-left: 12px; } .card { padding: 20px 17px 22px; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
