:root { color-scheme: light; --orange: #f05b24; --ink: #27221e; --muted: #857467; --line: #ede2da; }
* { box-sizing: border-box; }
html { min-width: 280px; min-height: 100%; background: #fffaf7; -webkit-text-size-adjust: 100%; }
body { margin: 0; color: var(--ink); font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; background: linear-gradient(155deg, #fff 8%, #fffaf6 60%, #fff0e7 100%); }
button, input { font: inherit; }
button { cursor: pointer; -webkit-tap-highlight-color: transparent; }
button:disabled { cursor: default; }
button:focus-visible, input:focus-visible + .option-content { outline: 3px solid #8a371a; outline-offset: 4px; }
button { border: 0; }
h1, h2, p { margin: 0; }
[hidden] { display: none !important; }
.app { width: 100%; max-width: 540px; min-height: 100svh; margin: auto; }
.page { padding: 24px 20px max(28px, env(safe-area-inset-bottom)); }
.initial-page { min-height: 70vh; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 18px; color: var(--muted); }
.welcome-page { padding-top: 16px; }
.welcome-card { overflow: hidden; border-radius: 28px; background: #fff; text-align: center; padding: 12px 0 26px; box-shadow: 0 12px 40px #8742180d; }
.brand-logo { display: block; width: 150px; height: 128px; margin: 0 auto; object-fit: contain; }
.welcome-kicker { color: #8f6e58; font-size: 13px; letter-spacing: 3px; }
.welcome-title { margin-top: 16px; font-size: clamp(37px, 10vw, 48px); font-weight: 750; line-height: 1.3; letter-spacing: 3px; }
.accent { display: block; color: var(--orange); }
.hero-image { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: contain; margin: 8px auto 0; }
.gift-caption { margin-top: 4px; font-size: 19px; font-weight: 650; }
.gift-detail { margin-top: 7px; color: var(--muted); font-size: 14px; }
.activity-label { margin-top: 20px; color: #946f57; text-align: center; font-size: 13px; overflow-wrap: anywhere; }
.primary-button { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 52px; padding: 13px 18px; margin: 20px 0 0; border-radius: 16px; background: var(--orange); color: #fff; font-size: 17px; font-weight: 650; text-align: center; box-shadow: 0 6px 18px #f05b2417; }
.primary-button:active:not(:disabled) { background: #dc4e1b; transform: translateY(1px); }
.primary-button:disabled { color: #8b7567; background: #eddbd0; box-shadow: none; }
.text-button { display: block; width: 100%; min-height: 46px; margin-top: 8px; padding: 10px; background: transparent; color: #a34a25; font-size: 15px; text-align: center; }
.text-button:disabled { opacity: .5; }
.privacy-note, .footer-note { margin: 16px 8px 0; color: #8c7b70; font-size: 12px; line-height: 1.7; text-align: center; }
.footer-note { margin-top: 10px; }
.eyebrow { display: flex; align-items: center; gap: 9px; color: #8b6551; font-size: 13px; letter-spacing: 1px; }
.orange-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--orange); flex-shrink: 0; }
.page-title { margin-top: 18px; font-size: 29px; line-height: 1.4; letter-spacing: -.5px; font-weight: 700; }
.subtitle { margin-top: 12px; font-size: 15px; color: var(--muted); line-height: 1.8; }
.glass { background: linear-gradient(135deg, #ffffffed, #ffffff85); border: 1px solid #fff; box-shadow: 0 10px 30px #7d3e1a0d, inset 0 1px 1px #fff; -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
.board { margin-top: 22px; padding: 18px 12px; border-radius: 24px; }
.board-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 4px 16px; font-size: 15px; font-weight: 650; }
.count-label { color: #a7431b; font-size: 13px; white-space: nowrap; }
.number-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px 7px; width: 100%; }
.number-tile { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; width: 100%; min-width: 0; aspect-ratio: 5 / 8; padding: 0; border-radius: 16px; border: 1px solid #fff; color: #191919; background: linear-gradient(145deg, #fff, #fff8f1bf 48%, #ffe0ca80); box-shadow: 0 4px 10px #7e432214, inset 0 2px 2px #fff; font-size: 23px; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; transition: transform .12s ease; }
.number-tile:active:not(:disabled) { transform: scale(.94); }
.number-tile.selected { color: #fff; border-color: #ffbc9d; background: linear-gradient(145deg, #ff996a, var(--orange) 70%); box-shadow: 0 5px 12px #f05b2430, inset 0 1px 2px #ffffff80; }
.tile-caption { min-height: 12px; font-size: 10px; font-weight: 500; }
.sticky-actions { position: sticky; bottom: 0; z-index: 5; margin: 20px -20px -28px; padding: 12px 20px max(16px, env(safe-area-inset-bottom)); background: #fffaf7f2; border-top: 1px solid #f2e8e1; -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
.sticky-actions .primary-button { margin-top: 8px; }
.selection-note { color: #8b6d58; text-align: center; font-size: 13px; min-height: 21px; }
.question-card { margin: 20px 0 0; padding: 22px 18px; border-radius: 22px; }
.question-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.question-order { color: #ad431c; font-size: 17px; font-weight: 650; }
.question-type { color: #8e7a6c; font-size: 12px; }
.question-title { margin: 18px 0; font-size: 19px; line-height: 1.75; font-weight: 650; overflow-wrap: anywhere; }
.options { margin: 0; padding: 0; border: 0; min-width: 0; }
.option { position: relative; display: block; margin-top: 12px; cursor: pointer; }
.option input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.option-content { display: flex; align-items: center; gap: 12px; min-height: 53px; padding: 14px 12px; border: 1px solid var(--line); border-radius: 13px; background: #fff; color: #302923; font-size: 16px; line-height: 1.7; }
.option-id { font-weight: 650; flex: 0 0 16px; }
.option-text { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.option-check { display: flex; align-items: center; justify-content: center; width: 19px; height: 19px; flex: 0 0 19px; border: 1px solid #d5c6bc; border-radius: 50%; font-size: 12px; color: transparent; }
.option input:checked + .option-content { background: #fff1e9; border-color: var(--orange); color: #9f3813; }
.option input:checked + .option-content .option-check { background: var(--orange); border-color: var(--orange); color: #fff; }
.option input:disabled + .option-content { opacity: .65; }
.result-page { text-align: center; }
.receipt-card { margin-top: 18px; padding: 32px 16px 36px; border-radius: 28px; }
.success-icon { display: flex; justify-content: center; align-items: center; width: 58px; height: 58px; margin: 0 auto 22px; border-radius: 50%; color: #fff; background: var(--orange); font-size: 30px; }
.result-title { font-size: 25px; font-weight: 700; }
.result-subtitle { margin-top: 12px; color: var(--muted); font-size: 15px; }
.receipt-label { margin-top: 32px; color: #a26e4f; font-size: 14px; letter-spacing: 3px; }
.receipt-number { margin-top: 8px; color: var(--orange); font-size: clamp(64px, 19vw, 100px); line-height: 1.3; font-weight: 750; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.gift-label { margin-top: 22px; color: #8e624b; font-size: 15px; }
.error-panel { margin-top: 18px; padding: 16px; border: 1px solid #f7d8c8; border-radius: 16px; background: #fff0e7; color: #9f3d16; font-size: 14px; line-height: 1.8; overflow-wrap: anywhere; }
.error-panel .text-button { color: #9f3d16; margin: 6px 0 -6px; }
.warning-panel { margin-top: 16px; color: #a04a25; font-size: 13px; }
.toast { position: fixed; z-index: 20; bottom: max(100px, calc(env(safe-area-inset-bottom) + 85px)); left: 50%; transform: translateX(-50%); max-width: min(86vw, 420px); padding: 12px 18px; border-radius: 13px; background: #38281ee8; color: #fff; font-size: 14px; text-align: center; box-shadow: 0 5px 20px #0002; }
.loader { display: inline-block; width: 19px; height: 19px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: turn .8s linear infinite; }
.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; }
.noscript { padding: 30px; text-align: center; }
@keyframes turn { to { transform: rotate(360deg); } }
@media (min-width: 600px) { .app { box-shadow: 0 0 70px #b47b4c10; } .page { padding-top: 32px; } }
@media (max-width: 350px) { .page { padding-left: 14px; padding-right: 14px; } .board { padding-left: 8px; padding-right: 8px; } .number-grid { gap: 8px 5px; } .number-tile { border-radius: 12px; font-size: 21px; } .sticky-actions { margin-left: -14px; margin-right: -14px; padding-left: 14px; padding-right: 14px; } .question-card { padding: 18px 14px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: 0s !important; transition-duration: 0s !important; } }
