/* Daily Angpau result page. The server determines which result is visible. */
* { box-sizing: border-box; }
html { min-height: 100%; background: #0d1420; }
body.angpau-page { min-height: 100vh; min-height: 100dvh; margin: 0; color: #f8f3e9; font-family: Lato, "Segoe UI", Arial, sans-serif; background: radial-gradient(ellipse at 50% 20%, #64231f5c 0%, transparent 42%), radial-gradient(ellipse at 10% 90%, #b48e3b13, transparent 34%), #0d1420; }
.angpau-page #form1 { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.angpau-header { border-bottom: 1px solid #d6b87525; background: #101824df; }
.angpau-header-inner { display: flex; align-items: center; gap: 16px; width: min(100%, 1120px); min-height: 76px; margin: 0 auto; padding: 12px 28px; }
.angpau-back { display: grid; place-items: center; flex: 0 0 40px; height: 40px; border: 1px solid #d6b87545; border-radius: 12px; background: #d6b8750c; color: #e7ce99; font-size: 23px; line-height: 1; text-decoration: none; }
.angpau-brand { display: inline-flex; align-items: center; flex: 0 0 44px; width: 44px; height: 44px; }
.angpau-brand img { display: block; max-width: 100%; max-height: 100%; object-fit: contain; }
.angpau-header-title { margin-left: auto; color: #e6d4ae; font-size: 13px; font-weight: 700; letter-spacing: .04em; }
.angpau-main { position: relative; display: flex; flex: 1 0 auto; align-items: center; justify-content: center; width: 100%; padding: 42px 20px 60px; }
.divAngPau, .divMsg { display: none; }
.angpau-surface { position: relative; width: min(100%, 500px); overflow: hidden; padding: 42px 40px 36px; border: 1px solid #d4aa614a; border-radius: 25px; background: radial-gradient(ellipse at 50% 0%, #8d2b2840, transparent 53%), linear-gradient(160deg, #202a39, #141d2b 70%); box-shadow: 0 24px 70px #0006, inset 0 1px #ffffff0b; text-align: center; }
.angpau-surface::before { content: ''; position: absolute; top: 0; left: 18%; right: 18%; height: 1px; background: linear-gradient(90deg, transparent, #f0d39b, transparent); }
.angpau-spark { position: absolute; color: #e7c782; opacity: .7; font-size: 23px; }
.angpau-spark-left { top: 100px; left: 14%; }
.angpau-spark-right { top: 142px; right: 14%; font-size: 15px; }
.angpau-envelope { position: relative; width: 136px; height: 154px; overflow: hidden; margin: 8px auto 28px; border: 1px solid #efc7778c; border-radius: 12px 12px 22px 22px; background: linear-gradient(155deg, #ed6558 0%, #bd3034 47%, #8c1f29 100%); box-shadow: 0 15px 36px #0006, inset 0 1px #ffdfb14d; transform: rotate(-4deg); }
.angpau-envelope::before { content: ''; position: absolute; inset: 10px; border: 1px solid #f5d48a70; border-radius: 7px 7px 15px 15px; }
.angpau-envelope::after { content: ''; position: absolute; left: 50%; bottom: -62px; width: 180px; height: 180px; border: 1px solid #f5d48a26; border-radius: 50%; transform: translateX(-50%); box-shadow: 0 0 0 12px #f5d48a0b, 0 0 0 24px #f5d48a0b; }
.angpau-envelope-flap { position: absolute; z-index: 1; top: -62px; left: 50%; width: 160px; height: 120px; border: 1px solid #f5d48a7a; border-radius: 0 0 50% 50%; background: linear-gradient(155deg, #f07862, #bf3336); transform: translateX(-50%); }
.angpau-envelope-seal { position: absolute; z-index: 2; top: 60px; left: 50%; display: grid; place-items: center; width: 39px; height: 39px; border: 2px solid #f4d79a; border-radius: 50%; background: linear-gradient(135deg, #f4dca5, #c69a4a); color: #992931; font-size: 22px; transform: translateX(-50%); box-shadow: 0 3px 10px #70121870; }
.angpau-eyebrow { margin: 0 0 10px; color: #d8b773; font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.angpau-surface h1 { margin: 0; color: #faf5ea; font-size: clamp(24px, 4vw, 30px); font-weight: 700; line-height: 1.25; }
.angpau-amount { margin-top: 13px; color: #f3d895; font-size: clamp(36px, 7vw, 52px); font-weight: 800; line-height: 1.15; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.angpau-divider { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 25px auto; color: #c5a46b; font-size: 12px; }
.angpau-divider span { width: 55px; height: 1px; background: #d6b87542; }
.angpau-action { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; min-height: 52px; padding: 12px 18px; border: 1px solid #e1c183; border-radius: 12px; background: linear-gradient(135deg, #efdaa8, #caa45f); color: #191b22; font-size: 14px; font-weight: 700; text-decoration: none; transition: filter .2s ease, transform .2s ease; }
.angpau-action span { font-size: 19px; line-height: 1; }
.angpau-action:hover { filter: brightness(1.08); transform: translateY(-1px); }
.angpau-action:focus-visible, .angpau-back:focus-visible, .angpau-brand:focus-visible { outline: 2px solid #f2d89b; outline-offset: 3px; }
.angpau-message-card { padding-top: 48px; }
.angpau-message-icon { display: grid; place-items: center; width: 62px; height: 62px; margin: 0 auto 24px; border: 1px solid #d6b87555; border-radius: 19px; background: #d6b87515; color: #e1c483; font-size: 28px; }
.angpau-message { margin: 16px 0 28px; color: #bec8d7; font-size: 15px; line-height: 1.7; overflow-wrap: anywhere; }
.angpau-message p { margin: 0; }
@media (max-width: 540px) {
    .angpau-header-inner { min-height: 66px; gap: 12px; padding: 10px 16px; }
    .angpau-brand { flex-basis: 40px; width: 40px; height: 40px; }
    .angpau-main { padding: 24px 16px calc(34px + env(safe-area-inset-bottom, 0px)); }
    .angpau-surface { padding: 30px 24px 25px; border-radius: 21px; }
    .angpau-envelope { width: 120px; height: 136px; margin: 5px auto 25px; }
    .angpau-envelope-seal { top: 54px; }
    .angpau-spark-left { top: 76px; }
    .angpau-spark-right { top: 112px; }
}
@media (prefers-reduced-motion: reduce) { .angpau-action { transition: none; } }
