:root { color-scheme: light; font-family: Inter, "PingFang SC", "Microsoft YaHei", sans-serif; color: #263552; background: #f6f7fb; }
[hidden] { display: none !important; }
* { box-sizing: border-box; }
html, body { min-height: 100%; margin: 0; background: #f6f7fb; }
button, input { font: inherit; }
.gift-shell { width: min(100%, 430px); min-height: 100dvh; margin: 0 auto; padding: max(15px, env(safe-area-inset-top)) 17px max(30px, env(safe-area-inset-bottom)); }
.gift-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 36px; margin-bottom: 13px; }
.gift-header a { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 6px; color: #53627a; font-size: 12px; font-weight: 800; text-decoration: none; }
.gift-header > span { flex: 1 1 auto; min-width: 0; max-width: 190px; overflow: hidden; color: #7b8799; font-size: 10px; font-weight: 750; text-align: right; text-overflow: ellipsis; white-space: nowrap; }
.gift-state { display: grid; min-height: 70dvh; place-items: center; align-content: center; gap: 10px; color: #718097; text-align: center; }
.gift-state > span { display: grid; width: 54px; height: 54px; place-items: center; border-radius: 18px; color: #986e1d; background: #fff0c7; font-size: 23px; font-weight: 900; }
.gift-state strong { color: #35445e; font-size: 18px; }
.gift-state p { max-width: 300px; margin: 0; font-size: 12px; line-height: 1.65; }
.gift-state a { min-width: 190px; min-height: 44px; padding: 0 18px; border-radius: 12px; color: #fff; background: #315fd7; font-size: 12px; font-weight: 850; line-height: 44px; text-decoration: none; }
.gift-hero { position: relative; min-height: 288px; overflow: hidden; border-radius: 23px; background: #294c91; box-shadow: 0 17px 38px rgba(28,49,96,.18); }
.gift-hero > img { position: absolute; width: 100%; height: 100%; object-fit: cover; }
.gift-hero__shade { position: absolute; inset: 0; background: rgba(15,28,58,.58); }
.gift-hero__copy { position: absolute; right: 0; bottom: 0; left: 0; padding: 25px 23px; color: #fff; }
.gift-hero__copy > span { display: inline-flex; padding: 5px 8px; border: 1px solid rgba(255,255,255,.26); border-radius: 99px; background: rgba(20,32,66,.22); font-size: 9px; font-weight: 850; }
.gift-hero h1 { margin: 9px 0 0; font-size: 31px; line-height: 1.15; }
.gift-hero p { margin: 8px 0 0; color: rgba(255,255,255,.88); font-size: 13px; line-height: 1.55; }
.gift-hero small { display: block; margin-top: 13px; color: rgba(255,255,255,.75); font-size: 10px; }
.gift-status-card { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 12px; padding: 14px; border: 1px solid #dfe4ed; border-radius: 16px; background: #fff; }
.gift-status-card > div { padding: 9px 10px; border-radius: 11px; background: #f6f8fc; }
.gift-status-card span, .gift-status-card strong { display: block; }
.gift-status-card span { color: #8994a5; font-size: 9px; font-weight: 750; }
.gift-status-card strong { margin-top: 4px; color: #40506b; font-size: 14px; }
.gift-status-card p { grid-column: 1 / -1; margin: 2px 2px 0; color: #748096; font-size: 10px; line-height: 1.55; }
.gift-card { margin-top: 12px; padding: 20px; border: 1px solid #e0e5ed; border-radius: 19px; background: #fff; box-shadow: 0 8px 22px rgba(42,58,91,.04); }
.gift-eyebrow { margin: 0; color: #9a711f; font-size: 9px; font-weight: 900; letter-spacing: .08em; }
.gift-card h2 { margin: 6px 0 0; color: #31415e; font-size: 19px; }
.gift-description { margin: 13px 0 0; color: #67768d; font-size: 12px; line-height: 1.72; white-space: pre-wrap; }
.gift-rules { margin-top: 13px; padding: 13px; border: 1px solid #eadfbe; border-radius: 12px; color: #6f624c; background: #fffbf1; font-size: 10px; line-height: 1.72; white-space: pre-wrap; }
.gift-section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.gift-section-heading > span { padding: 5px 8px; border-radius: 99px; color: #6c7c94; background: #f1f4f8; font-size: 9px; font-weight: 800; }
.gift-prize-grid { display: grid; gap: 9px; margin-top: 15px; }
.gift-prize { display: grid; grid-template-columns: 68px minmax(0, 1fr) auto; gap: 11px; align-items: center; padding: 10px; border: 1px solid #e7e1d5; border-radius: 13px; background: #fffdfa; }
.gift-prize__image { display: grid; width: 68px; height: 68px; overflow: hidden; place-items: center; border-radius: 10px; color: #9b7d42; background: #fff0c9; font-size: 20px; font-weight: 900; }
.gift-prize__image img { width: 100%; height: 100%; object-fit: cover; }
.gift-prize__copy { min-width: 0; }
.gift-prize__copy strong, .gift-prize__copy span, .gift-prize__copy small { display: block; }
.gift-prize__copy strong { color: #4d432f; font-size: 13px; }
.gift-prize__copy span { margin-top: 4px; color: #88775b; font-size: 10px; }
.gift-prize__copy small { margin-top: 5px; color: #998b75; font-size: 9px; line-height: 1.45; }
.gift-prize > b { min-width: 39px; padding: 5px 7px; border-radius: 99px; color: #8b651c; background: #fff0c6; font-size: 9px; text-align: center; }
.gift-join-card > p:not(.gift-eyebrow), .gift-ticket-card > p:not(.gift-eyebrow) { margin: 11px 0 0; color: #6e7a8f; font-size: 11px; line-height: 1.65; }
.gift-consent { display: flex; align-items: flex-start; gap: 9px; margin-top: 14px; padding: 12px; border: 1px solid #e1e6ed; border-radius: 12px; color: #65738a; background: #fafbfd; font-size: 10px; line-height: 1.6; }
.gift-consent input { flex: 0 0 auto; width: 17px; height: 17px; margin: 1px 0 0; accent-color: #315fd7; }
#giftJoinButton, .gift-share { width: 100%; min-height: 50px; margin-top: 14px; border: 0; border-radius: 13px; color: #fff; background: #315fd7; font-size: 14px; font-weight: 900; }
#giftJoinButton:disabled { opacity: .55; }
.gift-ticket-card { text-align: center; }
.gift-ticket-card__mark { display: grid; width: 46px; height: 46px; margin: 0 auto 10px; place-items: center; border-radius: 15px; color: #187755; background: #e6f6ed; font-size: 24px; font-weight: 900; }
.gift-ticket-card code { display: block; margin-top: 14px; padding: 13px; border: 1px dashed #9fb2d8; border-radius: 12px; color: #2d4d85; background: #f2f6fd; font-size: 19px; font-weight: 900; letter-spacing: .08em; }
.gift-result-card > div { margin-top: 14px; }
.gift-own-result { padding: 15px; border: 1px solid #d6e6dc; border-radius: 13px; color: #35604b; background: #f5fbf7; text-align: center; }
.gift-own-result.is-miss { border-color: #e1e5eb; color: #627086; background: #f8f9fb; }
.gift-own-result strong, .gift-own-result code, .gift-own-result small { display: block; }
.gift-own-result code { margin-top: 9px; padding: 8px; border-radius: 8px; color: #31577d; background: #fff; font-size: 16px; font-weight: 900; }
.gift-own-result small { margin-top: 7px; font-size: 9px; line-height: 1.5; }
.gift-public-winners { display: grid; gap: 7px; }
.gift-winner { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 10px; border-radius: 10px; background: #f6f8fb; }
.gift-winner span { color: #6c7990; font-size: 9px; }
.gift-winner strong { color: #44536e; font-size: 10px; }
.gift-result-card details { margin-top: 12px; color: #728096; font-size: 10px; }
.gift-result-card details code { display: block; margin-top: 8px; overflow-wrap: anywhere; padding: 10px; border-radius: 9px; background: #f5f7fa; font-size: 8px; line-height: 1.6; }
.gift-share { color: #465875; background: #fff; border: 1px solid #d9e0eb; }
.gift-footer { margin: 18px 7px 0; color: #8b95a6; font-size: 9px; line-height: 1.6; text-align: center; }
.gift-toast { position: fixed; z-index: 30; bottom: max(24px, env(safe-area-inset-bottom)); left: 50%; width: min(calc(100% - 34px), 396px); padding: 11px 13px; border-radius: 11px; color: #fff; background: rgba(34,47,73,.94); font-size: 11px; line-height: 1.5; text-align: center; transform: translateX(-50%); }
@media (max-width: 350px) { .gift-shell { padding-right: 12px; padding-left: 12px; } .gift-card { padding: 17px; } .gift-prize { grid-template-columns: 56px minmax(0, 1fr); } .gift-prize__image { width: 56px; height: 56px; } .gift-prize > b { grid-column: 2; justify-self: start; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; } }
