/* 統一發票對獎 section (claude-lottery-20261103; moved here from data-sources.js by claude-lotteryfx-20261104, because a <style>
   added by script is refused by the CSP style-src 'self'). */
.ds-lottery-latest{margin:0;font-size:15px;font-weight:550}
.ds-lottery-win{display:flex;gap:12px;align-items:center;padding:12px 0;border-top:1px solid var(--line);min-width:0}
.ds-lottery-win:first-of-type{margin-top:8px}
.ds-lottery-text{display:grid;gap:2px;min-width:0;flex:1 1 auto}
.ds-lottery-text strong{font-size:15px;font-weight:600}
.ds-lottery-text small{color:var(--muted);font-size:13px;overflow-wrap:anywhere;text-wrap:pretty}
.ds-lottery-win.claimed strong{color:var(--muted)}
.ds-lottery-win button{width:auto;margin:0;min-height:44px;flex:0 0 auto;white-space:nowrap}
.ds-lottery-note{margin:12px 0 0;text-wrap:balance}
.ds-lottery .ds-meta{text-wrap:pretty}
.ds-nw{white-space:nowrap}
.ds-lottery-how{margin:12px 0 0}
.ds-lottery-preview{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-height:48px;margin:12px 0 0;padding:0 2px;
 border:0;border-top:1px solid var(--line);background:transparent;color:var(--ink);font-size:15px;text-align:left;cursor:pointer}
.ds-lottery-preview:hover{background:var(--hover)}
.ds-lottery-chev{color:var(--muted);font-size:20px;line-height:1}

/* 中獎煙火 (claude-lotteryfx-20261104): fireworks for about 2.8 s behind a centred card; the card stays until 〔好〕, a tap anywhere or Esc.
   prefers-reduced-motion: the card alone, no fireworks and no zoom. */
:root{--lfx-gold:#a86b00;--lfx-scrim:#0000008c;--lfx-card-shadow:0 18px 60px #0000003d}
:root[data-theme=dark]{--lfx-gold:#f2c14e;--lfx-scrim:#000000a6;--lfx-card-shadow:0 18px 60px #00000080}
dialog.lfx{position:fixed;inset:0;width:100%;height:100%;max-width:none;max-height:none;margin:0;padding:16px;border:0;background:transparent;color:var(--ink);
 display:grid;place-items:center;overflow:auto;overscroll-behavior:contain}
dialog.lfx:not([open]){display:none}
dialog.lfx::backdrop{background:var(--lfx-scrim)}
.lfx-sky{position:fixed;inset:0;width:100%;height:100%;pointer-events:none;transition:opacity .5s linear}
.lfx-sky.done{opacity:0}
.lfx-card{position:relative;box-sizing:border-box;width:100%;max-width:380px;padding:28px 24px 20px;border-radius:24px;background:var(--bg);color:var(--ink);
 box-shadow:var(--lfx-card-shadow);text-align:center;animation:lfx-in .42s cubic-bezier(.2,.9,.3,1.2) both}
:root[data-theme=dark] .lfx-card{border:1px solid var(--line)}
@keyframes lfx-in{from{opacity:0;transform:scale(.9)}to{opacity:1;transform:none}}
.lfx-demo{position:absolute;top:14px;left:14px;padding:3px 10px;border:1px solid var(--line);border-radius:999px;font-size:12px;font-weight:600;color:var(--muted)}
.lfx-kicker{margin:0;font-size:17px;font-weight:650;color:var(--lfx-gold);letter-spacing:.02em}
.lfx-amount{margin:10px 0 0;font-size:34px;line-height:1.2;font-weight:750;letter-spacing:-.01em;text-wrap:balance}
.lfx-sub{margin:10px 0 0;font-size:15px;line-height:1.5;color:var(--muted);text-wrap:pretty}
.lfx-list{list-style:none;margin:16px 0 0;padding:0;text-align:left;border-top:1px solid var(--line)}
.lfx-list li{display:grid;gap:2px;padding:10px 2px;border-bottom:1px solid var(--line)}
.lfx-list strong{font-size:16px;font-weight:650}
.lfx-list span{font-size:13px;color:var(--muted);text-wrap:pretty}
.lfx-claim{margin:14px 0 0;font-size:14px;line-height:1.5;color:var(--muted);text-wrap:pretty}
.lfx-nw{white-space:nowrap}
.lfx-actions{display:flex;gap:10px;margin-top:22px}
.lfx-btn{flex:1 1 0;min-width:0;min-height:48px;padding:0 14px;border-radius:999px;font-size:15px;font-weight:600;cursor:pointer;white-space:nowrap}
.lfx-btn.lfx-how{border:1px solid var(--line);background:transparent;color:var(--ink)}
.lfx-btn.lfx-how:hover{background:var(--hover)}
.lfx-btn.lfx-ok{border:0;background:var(--accent);color:var(--inverse)}
@media (max-width:340px){.lfx-actions{flex-direction:column}}
@media (prefers-reduced-motion:reduce){.lfx-card{animation:none}.lfx-sky{display:none}}
