:root {
  color-scheme: light;
  --bg: #f5f6f8;
  --card: #ffffff;
  --text: #404040;
  --muted: #727272;
  --accent: #ffdf6c;
  --border: #e9e9e5;
  --gradient: linear-gradient(135deg, #ffe78d, #ffdf6c);
  --hero-gradient: linear-gradient(125deg, #fffdf4, #fff3c4);
  --ink: #404040;
  font-family: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-synthesis: none;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--bg); color: var(--text); min-height: 100vh; min-height: 100svh; -webkit-font-smoothing: antialiased; }
button, input, a { -webkit-tap-highlight-color: transparent; }
button, input { font: inherit; }
button, a { touch-action: manipulation; }
button { cursor: pointer; }
a { color: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid #b38517; outline-offset: 4px; }
button:disabled { cursor: wait; opacity: .65; }
.money-pattern { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: -1; }
.money-pattern span { position: absolute; color: #c7a039; opacity: .065; font-size: 80px; font-weight: 750; transform: rotate(-15deg); }
.money-pattern span:nth-child(1) { top: 5%; left: 8%; font-size: 115px; }
.money-pattern span:nth-child(2) { top: 38%; right: 3%; font-size: 150px; }
.money-pattern span:nth-child(3) { top: 82%; left: 9%; }
.money-pattern span:nth-child(4) { top: 72%; right: 13%; font-size: 40px; }
.money-pattern span:nth-child(5) { top: 25%; left: 22%; font-size: 30px; }
.money-pattern span:nth-child(6) { top: 4%; right: 20%; font-size: 40px; }
.app { position: relative; width: min(100%, 520px); margin: 0 auto; padding: calc(24px + env(safe-area-inset-top, 0px)) 24px calc(18px + env(safe-area-inset-bottom, 0px)); min-height: 100svh; }
.hero { position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) 84px; align-items: center; column-gap: 12px; padding: 20px 20px 0; background: var(--hero-gradient); border: 1px solid #eee0ac; border-radius: 20px; box-shadow: 0 12px 36px #6d5b1910; }
.hero-copy { position: relative; z-index: 2; min-width: 0; }
.hero h1 { font-size: clamp(21px, 5.7vw, 28px); letter-spacing: -1px; font-weight: 800; line-height: 1.15; white-space: nowrap; margin: 0 0 10px; }
.title-dot { color: #c18b12; }
.hero p { font-size: 13px; line-height: 1.6; margin: 0; color: #646052; }
.hero strong { font-weight: 800; color: var(--text); background: var(--accent); padding: 1px 5px; border-radius: 4px; white-space: nowrap; }
.hero-art { position: relative; width: 84px; height: 88px; z-index: 1; }
.hero-art img { position: absolute; width: 84px; top: 3px; right: 0; transform: rotate(8deg); filter: drop-shadow(-3px 7px 7px #a07b1d25); }
.orbit { position: absolute; border: 1px solid #d7b65455; width: 112px; height: 48px; right: -15px; top: 24px; border-radius: 50%; transform: rotate(-38deg); }
.orbit-two { transform: rotate(40deg); width: 98px; height: 82px; top: 1px; right: -7px; border-color: #d7b65430; }
.art-spark { position: absolute; color: #bd9029; font-weight: 700; }
.spark-one { right: -6px; top: -7px; font-size: 19px; }
.spark-two { left: 0; bottom: -1px; font-size: 17px; }
.hero-bottom { position: relative; z-index: 2; grid-column: 1/-1; margin: 16px -20px 0; padding: 10px 16px; display: flex; justify-content: space-between; gap: 8px; white-space: nowrap; border-top: 1px solid #e5d6a3; background: #ffdf6c24; font-size: 10px; font-weight: 600; color: #736440; }
.progress-section { margin: 27px 0 20px; }
.progress-label { display: flex; align-items: center; justify-content: space-between; margin-bottom: 11px; font-size: 11px; font-weight: 500; color: var(--muted); }
#step-count { color: var(--text); font-size: 13px; font-weight: 750; letter-spacing: 1px; }
#step-count span { color: #91918a; font-weight: 500; }
progress { display: block; appearance: none; -webkit-appearance: none; width: 100%; height: 5px; border: 0; border-radius: 20px; overflow: hidden; background: #e5e5e0; }
progress::-webkit-progress-bar { background: #e5e5e0; border-radius: 20px; }
progress::-webkit-progress-value { background: var(--gradient); border-radius: 20px; transition: width .3s; }
progress::-moz-progress-bar { background: var(--gradient); border-radius: 20px; }
.question-card { padding: 24px; background: var(--card); border: 1px solid var(--border); border-radius: 22px; box-shadow: 0 12px 35px #28281806; animation: enter .3s ease; }
.question-meta { display: flex; align-items: center; justify-content: space-between; margin-bottom: 13px; }
.question-number { font-size: 10px; font-weight: 750; letter-spacing: 1.8px; color: #84702f; }
h2 { font-size: 24px; font-weight: 700; line-height: 1.25; letter-spacing: -.7px; margin: 0 0 10px; }
h2:focus, h1:focus { outline: none; }
.question-card h2 { margin-bottom: 23px; }
.answer-fields { display: grid; gap: 9px; min-height: 66px; }
.number-label { display: block; font-size: 10px; color: var(--muted); margin: 0 0 8px; letter-spacing: .4px; }
.number-input { width: 100%; height: 62px; padding: 0 17px; background: #f2f3f4; border: 1px solid #e8e8e5; border-radius: 12px; color: var(--text); font-size: 17px; transition: border-color .2s; appearance: textfield; }
.number-input::-webkit-inner-spin-button { appearance: none; }
.number-input::placeholder { color: #93938e; font-size: 15px; }
.number-input:focus { border-color: #c9a746; outline: none; box-shadow: 0 0 0 3px #ffdf6c30; }
.option { position: relative; display: flex; align-items: center; gap: 12px; min-height: 51px; border: 1px solid #e9e9e5; border-radius: 12px; padding: 12px 14px; background: #f8f8f7; font-size: 13px; line-height: 1.5; cursor: pointer; transition: background .18s, border-color .18s; }
.option:hover { background: #fffaf0; border-color: #e3d4a5; }
.option input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.radio-mark { display: grid; place-items: center; flex-shrink: 0; width: 19px; height: 19px; border: 1px solid #c9c9bf; border-radius: 50%; transition: all .2s; }
.option:has(input:checked) { background: #fff7dc; border-color: #d5b346; }
.option input:checked + .radio-mark { border: 5px solid #d5b346; background: #fff; }
.option:has(input:focus-visible) { outline: 2px solid #b38517; outline-offset: 2px; }
.error-text { font-size: 11px; line-height: 1.5; color: #b53b3b; min-height: 17px; margin: 10px 0 6px; }
.actions { display: flex; gap: 10px; }
.button { display: flex; align-items: center; justify-content: center; gap: 16px; min-height: 54px; border: 0; border-radius: 12px; font-size: 15px; font-weight: 750; line-height: 1.3; text-decoration: none; transition: filter .2s, transform .2s; }
.primary { flex: 1; width: 100%; background: var(--gradient); color: var(--ink); box-shadow: 0 5px 18px #b89a2914; }
.primary:hover { filter: brightness(1.025); }
.primary:active { transform: translateY(1px); }
.primary > span:last-child:not(:first-child) { font-size: 23px; font-weight: 400; }
.back { flex: 0 0 52px; background: #f1f2f1; color: #68685f; font-size: 22px; border: 1px solid #e7e7e2; }
.status-view { min-height: 70vh; display: flex; align-items: center; justify-content: center; flex-direction: column; text-align: center; color: var(--muted); gap: 13px; }
.status-view p { font-size: 14px; line-height: 1.6; max-width: 330px; }
.status-view h1 { color: var(--text); font-size: 27px; margin: 0; }
.status-view .button { flex: none; max-width: 320px; margin-top: 10px; }
.status-icon { font-size: 65px; color: #b58d27; }
.loading-money { animation: pulse 1.5s ease infinite; }
.success-view { text-align: center; animation: enter .45s ease; }
.celebration { position: relative; padding: 6px 0 18px; display: flex; align-items: center; justify-content: center; gap: 30px; }
.celebration > img { filter: drop-shadow(0 8px 12px #ac842520); }
.celebration > span { font-size: 25px; font-weight: 750; color: #c49b2e; transform: rotate(12deg); }
.celebration > span:first-child { font-size: 19px; align-self: flex-end; margin-bottom: 24px; }
.success-view h1 { font-size: 36px; letter-spacing: -1.3px; color: var(--text); margin: 0 0 12px; }
.success-intro { font-size: 15px; line-height: 1.5; color: var(--muted); margin: 0 0 27px; }
.reward-card { position: relative; overflow: hidden; display: flex; align-items: center; flex-direction: column; padding: 23px 20px 25px; border: 1px solid #ead79a; border-radius: 24px; background: var(--hero-gradient); box-shadow: 0 12px 35px #6d5b1910; }
.reward-caption { font-size: 9px; font-weight: 750; letter-spacing: 2px; color: #84702f; }
.reward-amount { position: relative; z-index: 1; color: var(--text); font-size: 72px; font-weight: 800; letter-spacing: -3px; line-height: 1.35; white-space: nowrap; }
.reward-card > span:last-of-type { font-size: 13px; letter-spacing: .2px; }
.reward-card .reward-decoration { position: absolute; font-size: 120px; font-weight: 750; right: -12px; bottom: -28px; opacity: .07; transform: rotate(-15deg); }
.claim-card { margin-top: 21px; background: var(--card); border: 1px solid var(--border); border-radius: 22px; padding: 22px; }
.claim-card h2 { font-size: 21px; margin: 0 0 10px; }
.claim-card p { color: var(--muted); font-size: 12px; line-height: 1.65; margin: 0 0 21px; }
.claim-card .reward-unavailable { color: #7b6429; font-size: 12px; background: #fff7dc; padding: 15px; border-radius: 10px; margin: 0; }
@keyframes enter { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulse { 50% { transform: scale(1.08) rotate(5deg); opacity: .7; } }
@media (min-width: 600px) {
  .app { padding-top: 36px; padding-bottom: 28px; }
  .hero { grid-template-columns: minmax(0, 1fr) 90px; padding-top: 22px; }
  .hero h1 { font-size: 30px; }
  .hero-art { width: 90px; height: 92px; }
  .hero-art img { width: 88px; }
  .hero p { font-size: 14px; }
  .hero-bottom { font-size: 11px; }
  .question-card { padding: 27px; }
  h2 { font-size: 26px; }
  .success-view { padding-top: 8px; }
  .success-view h1 { font-size: 41px; }
  .reward-amount { font-size: 83px; }
  .claim-card { padding: 26px; }
}
@media (max-width: 360px) {
  .app { padding-left: 16px; padding-right: 16px; }
  .hero { grid-template-columns: minmax(0, 1fr) 66px; column-gap: 8px; padding: 18px 16px 0; }
  .hero-art { width: 66px; height: 80px; }
  .hero-art img { width: 70px; }
  .hero h1 { font-size: clamp(18px, 5.6vw, 20px); letter-spacing: -.8px; }
  .hero p { font-size: 11px; }
  .hero-bottom { margin-left: -16px; margin-right: -16px; padding-left: 12px; padding-right: 12px; font-size: 9px; }
  .question-card { padding: 20px; }
  .success-view h1 { font-size: 31px; }
  .reward-amount { font-size: 63px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
