/* Draw hardware: graphite face, machined chamfer, cool cyan + violet reflected edges. */
.lbFormalDraw{margin-top:clamp(12px,2.3vw,26px);min-width:0; color:#f5f3fb;color-scheme:dark}
.lbFormalDraw [hidden],.prism-page [data-draw-progress][hidden]{display:none!important}
.lbFormalChoices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(6px,1.15vw,12px)}
.lbFormalMetal{
  --edge:#9ea5b7;--accent:#bee8fa;--shine:#6493a6;--face:#171a20;
  position:relative;isolation:isolate;min-width:0;min-height:58px;display:grid;place-content:center;text-align:center;gap:3px;
  padding:8px 4px;border:1px solid transparent;border-radius:11px;
  font-family:inherit;font-size:clamp(12px,1.35vw,16px);font-weight:750;line-height:1.2;white-space:nowrap;
  color:#f5f3fb;cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent;
  background:linear-gradient(163deg,#353a43 0%,#272b34 16%,var(--face) 42%,#111318 81%,#20252c 100%) padding-box,
    linear-gradient(143deg,var(--edge),#454852 30%,#333742 56%,var(--shine) 100%) border-box;
  box-shadow:inset 0 1px 0 #e7ebfa2d,inset 0 -2px 0 #0b0d12,0 3px 7px #0006;
  transition:transform 110ms ease-out;
}
.lbFormalChoices>button:nth-child(2){--edge:#c5b0d9;--accent:#e8ceff;--shine:#9075a7;--face:#1c1a24}
.lbFormalChoices>button:nth-child(3){--edge:#dbc299;--accent:#ffe2ae;--shine:#9b795d;--face:#231e20}
.lbFormalMetal::before{content:"";position:absolute;inset:0;border-radius:inherit;z-index:-1;pointer-events:none;opacity:0;
  background:linear-gradient(153deg,#ffffff2c 0%,transparent 52%);
  box-shadow:inset 0 0 0 1px var(--accent),0 0 14px -4px var(--shine);transition:opacity 160ms ease-out}
.lbFormalMetal strong{font-size:clamp(12px,1.5vw,18px);font-variant-numeric:tabular-nums;color:var(--accent);line-height:1.1}
.lbFormalMetal small{font-size:.68em;letter-spacing:.06em;color:inherit}
@media (hover:hover){.lbFormalMetal:not(:disabled):hover::before{opacity:.82}}
.lbFormalMetal:not(:disabled):active{transform:translateY(2px)}
.lbFormalMetal:not(:disabled):active::before{opacity:1}
.lbFormalMetal:focus-visible,.lbFormalLink:focus-visible{outline:2px solid #eff4ff;outline-offset:3px}
.lbFormalMetal:disabled{opacity:.62;cursor:not-allowed;box-shadow:inset 0 1px 0 #ffffff18;filter:saturate(.55)}
.lbFormalStatus,.lbFormalRule,.lbFormalLinks{font-size:13px;color:#c9c6d4;line-height:1.45}
.lbFormalRule{margin:8px 0 0}
[data-draw-progress]>span{white-space:nowrap}
.lbFormalStatus:not(:empty){margin:9px 0 0}
.lbFormalLinks{display:flex;flex-wrap:wrap;gap:2px 14px}
.lbFormalLink{display:inline-flex;align-items:center;min-height:44px;padding:0 3px;background:none;border:0;color:#dcddf8;
  text-decoration:underline;text-underline-offset:3px;cursor:pointer;font:inherit;touch-action:manipulation}
.lbFormalDialog{width:min(470px,calc(100% - 32px));max-height:calc(100dvh - 32px);box-sizing:border-box;padding:clamp(15px,4vw,24px);
  border:1px solid #8c8fa1;border-radius:16px;background:linear-gradient(150deg,#2b2b37,#15161e 52%);color:#f5f3fb;
  box-shadow:0 18px 75px #000b;overscroll-behavior:contain;color-scheme:dark;overflow:auto}
.lbFormalDialog::backdrop{background:#0a0a14ca}
.lbFormalDialog h2{margin:0 0 12px;text-wrap:balance;font-size:1.2rem}
.lbFormalDialog p:not(:empty){margin:0 0 12px;color:#d7d4e4;font-variant-numeric:tabular-nums}
.lbFormalDialogActions{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.lbFormalDialogActions button{min-height:46px;font-size:clamp(12px,3.5vw,15px)}
.lbFormalAwardList{display:grid;gap:5px;padding:0 0 0 2rem;overflow:auto;max-height:44dvh;margin:0 0 16px;overscroll-behavior:contain}
.lbFormalAwardList li{content-visibility:auto;contain-intrinsic-size:auto 54px;min-height:54px}
.lbFormalAwardList img{display:inline-block;vertical-align:middle;object-fit:contain;margin:0 8px}
.lbFormalCollection{display:grid;grid-template-columns:repeat(auto-fill,minmax(108px,1fr));list-style:none;gap:12px;padding:0;margin:18px 0}
.lbFormalCollection li{min-width:0;padding:8px;border:1px solid #41464f;border-radius:10px;color:#f5f3fb;overflow-wrap:anywhere}
.lbFormalCollection img{display:block;width:100%;height:auto;aspect-ratio:320/447;object-fit:contain;margin-bottom:7px}
.lbFormalCollection span{display:block;font-variant-numeric:tabular-nums}
@media (max-width:350px){.lbFormalChoices{grid-template-columns:repeat(auto-fit,minmax(74px,1fr))}}
@media (prefers-reduced-motion:reduce){.lbFormalMetal,.lbFormalMetal::before{transition:none}.lbFormalMetal:not(:disabled):active{transform:none}}
.lbFormalCollection[hidden],.lbFormalLink[hidden]{display:none!important}
.lbRecycleRow>div{display:inline-block;max-width:calc(100% - 56px);vertical-align:middle;overflow-wrap:anywhere}
.lbRecycleAction{display:flex;align-items:baseline;gap:0 8px;flex-wrap:wrap;font-size:.82rem;line-height:1.35;color:#bdc8d5}
.lbRecycleAction span[data-recycle-state=redeemed]{color:#a7e0bd}
.lbRecycleAction .lbFormalLink{color:#c3e9ff;font-weight:650}
.lbFormalCollection .lbRecycleAction{margin-top:6px}
.lbFormalCollection .lbRecycleAction .lbFormalLink{min-height:44px}
.lbRecycleOrigin{color:#bdc8d5;font-size:.75rem;margin:4px 0}
.lbRecycleConfirm .lbFormalDialogActions button{white-space:normal}

/* Receipt: graphite shell and brushed-metal controls; gold is reserved for LB. */
[data-draw-result].lbFormalReceipt{
  --receipt-gold:#f6cf87;--receipt-muted:#c4bdce;--receipt-rule:#42394e;
  width:min(818px,calc(100% - 32px));max-height:none;padding:0;overflow:hidden;
  border-color:#766786;border-radius:21px;background:#14121b;
  box-shadow:0 24px 85px #000c,inset 0 1px #fff3;
}
[data-draw-result]::backdrop{background:#0b0813a6}
.lbReceiptLayout{display:grid;grid-template-rows:auto minmax(0,1fr) auto;
  max-height:calc(100dvh - 40px - env(safe-area-inset-top) - env(safe-area-inset-bottom));min-width:0}
.lbReceiptHeader{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;
  padding:20px 24px 16px;border-bottom:1px solid var(--receipt-rule);
  background:linear-gradient(120deg,#2a2334 0%,#1d1926 63%,#221b2b 100%)}
.lbReceiptHeader>div{min-width:0;overflow-wrap:anywhere}
.lbReceiptHeader h2{margin:0 0 4px;color:#faf6ff;line-height:1.15;font-size:clamp(1.38rem,3.2vw,2.05rem);font-weight:800}
.lbReceiptHeader h2:focus{outline:0}
.lbReceiptHeader p[data-draw-result-summary]{font-size:.86rem;margin:0;color:var(--receipt-muted)}
.lbReceiptSkip{min-height:44px;flex:none;max-width:44%;padding:6px 12px;border:1px solid #6b5c7c;border-radius:8px;
  background:#241d30;color:#f4eafc;font:inherit;font-size:.84rem;font-weight:700;cursor:pointer;touch-action:manipulation}
.lbReceiptSkip:hover{background:#352844}
.lbReceiptBody{overflow:auto;overscroll-behavior:contain;scroll-padding-block:14px;background:
  radial-gradient(ellipse at 50% 0,#2b233655,transparent 75%),#121019}
[data-draw-result] .lbReceiptCards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;list-style:none;
  padding:16px 24px;margin:0}
.lbReceiptCards>li{min-width:0;scroll-margin-block:12px}
.lbReceiptCards>li:nth-child(n+31){content-visibility:auto;contain-intrinsic-size:auto 108px}
.lbReceiptCard{display:grid;grid-template-columns:62px minmax(0,1fr) 22px;gap:12px;align-items:start;
  min-height:108px;height:100%;box-sizing:border-box;padding:10px 11px;border:1px solid #45394e;border-radius:12px;
  background:linear-gradient(137deg,#25202e,#1b1823 72%);color:#faf6ff;cursor:pointer;touch-action:manipulation}
.lbReceiptCard:has(input:not(:disabled)):hover{border-color:#8c779c;background:#2c2437}
.lbReceiptCard:has(input:checked){border-color:#d5ab6c;background:linear-gradient(135deg,#33292f,#252033);box-shadow:inset 0 0 0 1px #e8bd7b20}
.lbReceiptCard:has(input:disabled){cursor:default}
.lbReceiptCard img{width:62px;height:86px;object-fit:contain;border-radius:5px;background:#130f1b;display:block}
.lbReceiptDetails{align-self:center;min-width:0;display:grid;gap:5px;overflow-wrap:anywhere}
.lbReceiptTerms{display:flex;align-items:center;flex-wrap:wrap;gap:3px 7px;font-size:.72rem;line-height:1.25}
.lbReceiptTier{background:#393047;border:1px solid #655575;color:#efe2fc;border-radius:4px;
  width:fit-content;padding:2px 6px;font-weight:750}
.lbReceiptName{line-height:1.22;font-size:.93rem}
.lbReceiptState{color:#c9bed4}
[data-draw-result-cards] li[data-state=redeemed] .lbReceiptState{color:#a9e2be}
[data-draw-result-cards] li:is([data-state=shipping],[data-state=shipped]) .lbReceiptState{color:#bde4f8}
.lbReceiptValue{color:var(--receipt-gold);font-weight:800;font-variant-numeric:tabular-nums;font-size:.95rem}
.lbReceiptCheck{width:19px;height:19px;align-self:start;margin:2px 0 0;accent-color:#edc179;cursor:inherit}
.lbReceiptCheck:focus-visible,.lbReceiptSkip:focus-visible{outline:2px solid #ffe3ab;outline-offset:3px}
.lbReceiptFooter{display:grid;gap:5px;border-top:1px solid #6a536c;padding:10px 24px max(7px,env(safe-area-inset-bottom));
  background:linear-gradient(103deg,#261e2b,#1b1723 58%);box-shadow:inset 0 1px #e8c3e317}
.lbReceiptUtility,.lbReceiptLinks{display:flex;align-items:center;justify-content:space-between;gap:6px 16px;flex-wrap:wrap}
.lbReceiptTools{display:flex;align-items:center;gap:12px}
.lbReceiptTotal{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 12px;color:#e7dded;font-size:.83rem}
.lbReceiptTotal strong{font-size:1.35rem;font-weight:850;color:var(--receipt-gold);font-variant-numeric:tabular-nums}
.lbReceiptFooter .lbReceiptFeedback:not(:empty){margin:0 0 4px;font-size:.79rem;color:#e3d5dc;overflow-wrap:anywhere}
.lbReceiptFeedback:focus-visible{outline:2px solid #ffe3ab;outline-offset:2px}
.lbReceiptActions{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.lbReceiptActions .lbFormalMetal,.lbReceiptConfirm .lbFormalMetal{min-height:46px;white-space:normal;padding:8px;color:#faf5ff}
.lbReceiptGold.lbFormalMetal{
  --accent:#fff1cd;--shine:#d59d5d;
  background:linear-gradient(158deg,#fbe0ac,#edbf78 36%,#b78149) padding-box,
    linear-gradient(145deg,#ffedca,#9e6738) border-box;color:#221407;
  box-shadow:inset 0 1px #fff7d8,inset 0 -2px #9a6038,0 2px 6px #09070b88;
}
.lbReceiptFooter .lbFormalLink{font-size:.77rem}
.lbReceiptFooter .lbFormalLink:not(:disabled):hover{color:#fff6e5}
.lbReceiptFooter .lbFormalLink:disabled{text-decoration:none;color:#ada1b6;cursor:default}
.lbReceiptLinks{justify-content:flex-start;column-gap:15px}
.lbReceiptLinks [data-draw-animation]{margin-inline-start:auto}
.lbReceiptConfirm h2{color:#ffe0a8}
@media(max-width:580px){
  [data-draw-result].lbFormalReceipt{width:calc(100% - 20px);border-radius:16px}
  .lbReceiptLayout{max-height:calc(100dvh - 24px - env(safe-area-inset-top) - env(safe-area-inset-bottom))}
  .lbReceiptHeader{padding:14px 13px 12px}
  [data-draw-result] .lbReceiptCards{grid-template-columns:1fr;padding:10px 12px;gap:8px}
  .lbReceiptCard{min-height:95px;grid-template-columns:54px minmax(0,1fr) 20px;gap:10px;padding:8px 10px}
  .lbReceiptCard img{width:54px;height:76px}
  .lbReceiptFooter{padding:5px 12px max(4px,env(safe-area-inset-bottom))}
}

/* ---------- site style: neutral charcoal, one blue action, gold only for LB amounts */
.lbFormalDialog {
  border: 1px solid #2b2b2e; border-radius: 20px; padding: 24px 24px 22px; color: #f5f5f7;
  background: radial-gradient(ellipse 105% 85% at 49% -10%, #222225 0%, #141415 55%, #101011 100%);
  box-shadow: 0 24px 76px #0009; font: 450 15px/1.5 "Segoe UI Variable","Segoe UI","Noto Sans TC","Microsoft JhengHei",sans-serif;
}
.lbFormalDialog::backdrop, [data-draw-result]::backdrop { background: #090a0dbb; }
.lbFormalDialog h2 { margin: 0 0 14px; padding-bottom: 14px; border-bottom: 1px solid #ffffff12; font-size: 21px; font-weight: 800; line-height: 1.3; color: #f5f5f7; }
.lbFormalDialog p:not(:empty) { color: #b2b2b7; font-size: 14px; }
.lbFormalDialog [data-draw-summary]:not(:empty) { color: #f5f5f7; font-size: 18px; font-weight: 700; }
.lbFormalDialogActions { margin-top: 20px; gap: 11px; }
.lbFormalDialog :is(.lbFormalDialogActions,.lbReceiptActions) .lbFormalMetal {
  min-height: 52px; padding: 10px 14px; border: 1px solid #2b2b2e; border-radius: 12px; color: #f4f5f8; font-size: 15px; font-weight: 750;
  background: linear-gradient(150deg, #202021, #19191a); box-shadow: none;
}
.lbFormalDialog :is(.lbFormalDialogActions,.lbReceiptActions) .lbFormalMetal::before { content: none; }
.lbFormalDialog :is([data-draw-submit],[data-receipt-ship],.lbRecycleConfirm button:last-child).lbFormalMetal { border-color: #274674; background: linear-gradient(145deg, #1a2639, #171d2b); color: #f4f7ff; }
.lbFormalDialog .lbReceiptGold.lbFormalMetal { border-color: #6b5734; background: linear-gradient(145deg, #2c2517, #1c1913); color: #f6cf87; }
@media (hover: hover) {
  .lbFormalDialog .lbFormalMetal:enabled:hover { border-color: #565a64; background: #242427; }
  .lbFormalDialog :is([data-draw-submit],[data-receipt-ship]).lbFormalMetal:enabled:hover { border-color: #5089c7; background: #1e3048; }
  .lbFormalDialog .lbReceiptGold.lbFormalMetal:enabled:hover { border-color: #b08d4c; background: #35291a; }
}
.lbFormalDialog .lbFormalMetal:disabled { opacity: 1; filter: none; border-color: #232325; background: #161617; color: #77777e; }
.lbFormalDialog :is(button,input,a):focus-visible { outline: 2px solid #78b9ff; outline-offset: 2px; }
.lbFormalDialog .lbFormalLink { color: #a7abb5; text-decoration: none; }
.lbFormalDialog .lbFormalLink:enabled:hover, .lbFormalDialog a.lbFormalLink:hover { color: #fff; text-decoration: underline; }

[data-draw-result].lbFormalReceipt {
  --receipt-gold: #f6cf87; --receipt-muted: #a9adb5; --receipt-rule: #ffffff12;
  width: min(720px, calc(100% - 32px)); padding: 0; border-color: #2b2b2e; border-radius: 20px;
  background: radial-gradient(ellipse 105% 85% at 49% -10%, #222225 0%, #141415 55%, #101011 100%); box-shadow: 0 24px 76px #0009;
}
.lbReceiptHeader { padding: 22px 24px 18px; background: none; align-items: center; }
.lbFormalDialog .lbReceiptHeader h2 { margin: 0 0 3px; padding: 0; border: 0; font-size: 21px; }
.lbReceiptHeader p[data-draw-result-summary] { font-size: 14px; }
.lbReceiptSkip { min-height: 44px; padding: 0 16px; border: 1px solid #2b2b2e; border-radius: 12px; background: linear-gradient(150deg, #202021, #19191a); color: #f4f5f8; font-size: 14px; }
.lbReceiptSkip:hover { border-color: #565a64; background: #242427; }
.lbReceiptBody { background: none; }
[data-draw-result] .lbReceiptCards { gap: 11px; padding: 18px 24px; }
/* One prize is a moment, not a row in a table. */
[data-draw-result] .lbReceiptCards:not(:has(li:nth-child(2))) { grid-template-columns: minmax(0,1fr); }
[data-draw-result] .lbReceiptCards:not(:has(li:nth-child(2))) .lbReceiptCard { grid-template-columns: 116px minmax(0,1fr) 26px; gap: 20px; padding: 18px; }
[data-draw-result] .lbReceiptCards:not(:has(li:nth-child(2))) .lbReceiptCard img { width: 116px; height: 162px; }
[data-draw-result] .lbReceiptCards:not(:has(li:nth-child(2))) .lbReceiptName { font-size: 20px; }
.lbReceiptCard { border: 1px solid #2b2b2e; border-radius: 12px; background: linear-gradient(150deg, #202021, #19191a); color: #f4f5f8; grid-template-columns: 62px minmax(0,1fr) 26px; }
.lbReceiptCard:has(input:not(:disabled)):hover { border-color: #565a64; background: #242427; }
.lbReceiptCard:has(input:checked) { border-color: #5089c7; background: linear-gradient(145deg, #1a2639, #171d2b); box-shadow: none; }
.lbReceiptCard img { background: none; }
.lbReceiptTerms { font-size: 13px; gap: 4px 8px; }
.lbReceiptTier { border: 0; border-radius: 99px; padding: 2px 10px; background: #ffffff14; color: #f4f5f8; }
.lbReceiptState { color: #a9adb5; }
.lbReceiptName { font-size: 16px; }
.lbReceiptCheck { appearance: none; display: grid; place-items: center; width: 24px; height: 24px; margin: 0; border: 1.5px solid #53555e; border-radius: 7px; background: #111216; }
.lbReceiptCheck:checked { border-color: #65b0ff; background: #65b0ff; }
.lbReceiptCheck:checked::before { content: ""; width: 6px; height: 11px; margin-top: -3px; border: solid #0b1220; border-width: 0 2.5px 2.5px 0; rotate: 42deg; }
.lbReceiptCheck:disabled { opacity: .4; }
.lbReceiptFooter { gap: 8px; padding: 14px 24px max(12px, env(safe-area-inset-bottom)); border-top: 1px solid #ffffff12; background: none; box-shadow: none; }
.lbReceiptTotal { color: #b2b2b7; font-size: 14px; }
.lbReceiptTotal strong { font-size: 20px; }
.lbReceiptFooter .lbReceiptFeedback:not(:empty) { color: #a9adb5; font-size: 13px; }
.lbReceiptFooter .lbFormalLink { font-size: 13px; }
.lbReceiptConfirm h2 { color: #f6cf87; }
@media (max-width: 580px) {
  [data-draw-result].lbFormalReceipt { width: calc(100% - 20px); border-radius: 20px; }
  .lbReceiptHeader { padding: 16px 16px 14px; }
  [data-draw-result] .lbReceiptCards { padding: 12px 14px; }
  [data-draw-result] .lbReceiptCards:not(:has(li:nth-child(2))) .lbReceiptCard { grid-template-columns: 92px minmax(0,1fr) 26px; gap: 14px; padding: 14px; }
  [data-draw-result] .lbReceiptCards:not(:has(li:nth-child(2))) .lbReceiptCard img { width: 92px; height: 128px; }
  .lbReceiptFooter { padding-inline: 16px; }
}
li[data-rank="1"] > .lbReceiptCard { border-color: #8a6a2c; background: linear-gradient(145deg, #2e2616, #1b1812); }
li[data-rank="1"] .lbReceiptTier { background: #ffc94d; color: #221705; }
li[data-rank="2"] > .lbReceiptCard { border-color: #5d3f8c; background: linear-gradient(145deg, #241a33, #18141f); }
li[data-rank="2"] .lbReceiptTier { background: #a75fff; color: #fff; }
li[data-rank="3"] .lbReceiptTier { background: #2f7fd6; color: #fff; }
li[data-rank] > .lbReceiptCard:has(input:checked) { border-color: #65b0ff; }
