 :root {
    --bg: #18090f;
    --panel: rgba(43, 16, 27, 0.9);
    --gold: #e8c77e;
    --gold-light: #f8e6b5;
    --text: #fff8f0;
    --muted: #c5aeb4;
    --border: rgba(232, 199, 126, 0.22);
    --red: #a52b48;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    min-height: 100vh; overflow-x: hidden; color: var(--text);
    background: radial-gradient(ellipse at 50% 0%, #492033 0%, transparent 55%),
                linear-gradient(145deg, #18090f, #260d18 55%, #10070c);
    font-family: "Montserrat", sans-serif;
}
button, textarea { font: inherit; }
button { -webkit-tap-highlight-color: transparent; }
.page {
    position: relative; z-index: 1; width: min(100% - 32px, 720px);
    min-height: 100vh; margin: 0 auto; padding: 38px 0 22px;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.top-label, footer, .eyebrow, .step-label, .prize-small {
    color: var(--gold); font-size: 10px; font-weight: 700;
    letter-spacing: 3px; text-align: center;
}
.top-label { margin-bottom: 20px; }
.card {
    position: relative; width: 100%; min-height: 610px; padding: 36px 48px;
    overflow: hidden; border: 1px solid var(--border); border-radius: 28px;
    background: var(--panel); box-shadow: 0 25px 90px rgba(0,0,0,.38),
    inset 0 0 50px rgba(232,199,126,.025); backdrop-filter: blur(18px);
}
.card::before, .card::after {
    position: absolute; width: 110px; height: 110px; content: "";
    pointer-events: none; border-color: rgba(232,199,126,.35);
}
.card::before { top: 14px; left: 14px; border-top: 1px solid; border-left: 1px solid; border-radius: 12px 0 0; }
.card::after { right: 14px; bottom: 14px; border-right: 1px solid; border-bottom: 1px solid; border-radius: 0 0 12px; }
.progress-wrap { position: relative; z-index: 1; margin-bottom: 34px; }
.progress { display: flex; justify-content: center; gap: 9px; }
.progress-step {
    width: 38px; height: 4px; border-radius: 10px;
    background: rgba(255,255,255,.13); transition: background .4s, box-shadow .4s, transform .4s;
}
.progress-step.active { background: var(--gold); box-shadow: 0 0 13px rgba(232,199,126,.55); transform: scaleY(1.35); }
.progress-caption { margin-top: 11px; color: #a88b95; font-size: 10px; text-align: center; letter-spacing: .5px; }
.screen { display: none; text-align: center; animation: appear .55s ease both; }
.screen.active { display: block; }
@keyframes appear { from { opacity: 0; transform: translateY(17px) scale(.99); } to { opacity: 1; transform: translateY(0) scale(1); } }
.eyebrow { margin-bottom: 15px; }
h1, h2 { color: var(--text); font-family: "Cormorant Garamond", serif; font-weight: 600; line-height: 1.08; }
h1 { font-size: clamp(52px, 10vw, 76px); }
h2 { max-width: 550px; margin: 0 auto 15px; font-size: clamp(32px, 6vw, 47px); }
.gold { color: var(--gold); }
.description { max-width: 470px; margin: 17px auto 25px; color: var(--muted); font-size: 14px; line-height: 1.8; }
.envelope {
    position: relative; display: flex; width: 130px; height: 120px; margin: 30px auto 18px;
    align-items: center; justify-content: center; border: 1px solid rgba(232,199,126,.5);
    border-radius: 18px; background: linear-gradient(145deg,#70243d,#3a1427);
    box-shadow: 0 15px 40px rgba(0,0,0,.3); cursor: pointer; transition: .3s;
}
.envelope:hover { transform: translateY(-7px) rotate(-2deg); box-shadow: 0 20px 50px rgba(211,75,104,.2); }
.envelope-icon { color: var(--gold-light); font-size: 58px; }
.seal { position: absolute; right: -9px; bottom: -9px; display: grid; width: 35px; height: 35px; place-items: center; border: 1px solid var(--gold); border-radius: 50%; background: #9c304b; color: var(--gold-light); }
.envelope-glow { position: absolute; inset: -15px; border: 1px solid rgba(232,199,126,.12); border-radius: 25px; animation: pulse 2.5s infinite; }
@keyframes pulse { 50% { transform: scale(1.09); opacity: .25; } }
.hint { margin: 12px 0 22px; color: #a88b95; font-size: 11px; letter-spacing: .5px; }
.primary-btn {
    display: inline-flex; min-height: 52px; padding: 0 27px; align-items: center; justify-content: center;
    gap: 18px; border: 1px solid rgba(248,230,181,.45); border-radius: 50px;
    background: linear-gradient(110deg,#a52b48,#762039); box-shadow: 0 8px 25px rgba(165,43,72,.22);
    color: #fff8f0; font-size: 12px; font-weight: 700; letter-spacing: .5px;
    text-decoration: none; cursor: pointer; transition: transform .25s, box-shadow .25s;
}
.primary-btn:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(211,75,104,.3); }
.primary-btn span { color: var(--gold-light); font-size: 18px; }
.step-label { margin-bottom: 18px; }
.question-icon { margin-bottom: 15px; color: var(--gold); font-size: 36px; filter: drop-shadow(0 0 13px rgba(232,199,126,.2)); }
.answers { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; max-width: 520px; margin: 26px auto 0; }
.answer-btn {
    display: flex; min-height: 66px; padding: 13px 15px; align-items: center; gap: 11px;
    border: 1px solid rgba(232,199,126,.2); border-radius: 15px;
    background: rgba(255,255,255,.035); color: var(--text); font-size: 12px;
    line-height: 1.5; text-align: left; cursor: pointer; transition: .25s ease;
}
.answer-btn span { flex: 0 0 auto; font-size: 22px; }
.answer-btn:hover { transform: translateY(-3px); border-color: var(--gold); background: rgba(232,199,126,.09); }
.answer-btn:disabled { cursor: default; opacity: .72; }
.answer-btn.selected { border-color: var(--gold); background: rgba(232,199,126,.14); box-shadow: 0 0 20px rgba(232,199,126,.1); }
.answer-wide { grid-column: 1 / -1; }
.reaction { min-height: 24px; margin-top: 17px; color: var(--gold-light); font-family: "Cormorant Garamond",serif; font-size: 21px; }
.answer-input {
    display: block; width: min(100%, 510px); min-height: 120px; margin: 24px auto 0; padding: 17px 18px;
    resize: vertical; border: 1px solid rgba(232,199,126,.3); border-radius: 16px;
    outline: none; background: rgba(255,255,255,.045); color: var(--text);
    font-size: 13px; line-height: 1.7; transition: border-color .2s, box-shadow .2s;
}
.answer-input::placeholder { color: #927b84; }
.answer-input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(232,199,126,.09); }
.input-footer { display: flex; width: min(100%, 510px); margin: 8px auto 20px; justify-content: space-between; gap: 12px; color: #a88b95; font-size: 10px; }
.continue-btn { margin-top: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.success-icon { display: grid; width: 75px; height: 75px; margin: 15px auto 22px; place-items: center; border: 1px solid var(--gold); border-radius: 50%; background: rgba(232,199,126,.08); color: var(--gold); font-size: 36px; box-shadow: 0 0 35px rgba(232,199,126,.12); }
.gift-box {
    position: relative; display: flex; width: 190px; height: 175px; margin: 30px auto 10px;
    flex-direction: column; align-items: center; justify-content: center; border: 1px solid rgba(232,199,126,.4);
    border-radius: 20px; background: linear-gradient(145deg,#70243d,#351222); cursor: pointer; transition: transform .3s, box-shadow .3s, opacity .7s;
}
.gift-box:hover { transform: translateY(-7px) scale(1.03); box-shadow: 0 15px 40px rgba(211,75,104,.2); }
.gift-emoji { font-size: 76px; line-height: 1.2; }
.gift-bow { position: absolute; top: 9px; right: 15px; font-size: 26px; }
.gift-caption { margin-top: 7px; color: var(--gold-light); font-size: 9px; font-weight: 700; letter-spacing: 2px; }
.final-sparkle { margin-bottom: 10px; color: var(--gold); font-size: 25px; letter-spacing: 12px; }
.final-icon { margin-bottom: 10px; font-size: 55px; }
.prize-card {
    position: relative; max-width: 340px; margin: 25px auto; padding: 25px 20px; overflow: hidden;
    border: 1px solid rgba(232,199,126,.5); border-radius: 20px;
    background: radial-gradient(circle at 50% 0%,rgba(232,199,126,.16),transparent 65%),linear-gradient(145deg,#4a1b32,#25101e);
    box-shadow: 0 15px 40px rgba(0,0,0,.2);
}
.prize-logo { display: grid; width: 58px; height: 58px; margin: 0 auto 15px; place-items: center; border-radius: 17px; background: linear-gradient(145deg,#a64bd2,#6e2c9c); color: white; font-size: 39px; font-weight: 700; }
.prize-small { font-size: 8px; letter-spacing: 2px; }
.prize-title { margin-top: 8px; color: white; font-size: 28px; font-weight: 700; }
.prize-subtitle { margin-top: 5px; color: var(--gold-light); font-size: 12px; }
.final-message { max-width: 430px; margin: 20px auto; color: var(--muted); font-size: 13px; line-height: 1.8; }
.link-btn { margin-top: 4px; }
footer { margin-top: 22px; color: rgba(232,199,126,.55); font-size: 8px; letter-spacing: 2px; }
.ambient { position: fixed; z-index: 0; width: 300px; height: 300px; border-radius: 50%; filter: blur(100px); opacity: .16; pointer-events: none; }
.ambient-one { top: 5%; left: -130px; background: #a52b48; }
.ambient-two { right: -130px; bottom: 5%; background: #a87b37; }
.snow { position: fixed; z-index: 2; inset: 0; overflow: hidden; pointer-events: none; }
.snowflake { position: absolute; top: -20px; color: rgba(255,248,240,.8); user-select: none; animation: snowfall linear forwards; }
@keyframes snowfall { to { transform: translate3d(var(--drift),110vh,0) rotate(360deg); opacity: .1; } }
@media (max-width: 600px) {
    .page { width: min(100% - 22px,500px); padding: 25px 0 15px; }
    .top-label { font-size: 8px; letter-spacing: 2px; }
    .card { min-height: 0; padding: 30px 19px; border-radius: 22px; }
    .progress-wrap { margin-bottom: 27px; }
    .progress-step { width: 31px; }
    .answers { grid-template-columns: 1fr; gap: 9px; margin-top: 21px; }
    .answer-wide { grid-column: auto; }
    .answer-btn { min-height: 57px; }
    .description { font-size: 13px; }
    .question-icon { font-size: 32px; }
    .reaction { font-size: 19px; }
    footer { font-size: 7px; }
}
@media (max-height: 760px) and (min-width: 601px) {
    .page { padding-top: 18px; }
    .card { min-height: 0; padding-top: 25px; padding-bottom: 25px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
