#lotteryEnter{pointer-events:auto;flex:none;background:#ba332e;color:#fff8dc;border:2px solid #f2c65a;border-radius:14px;padding:12px 20px;font-weight:800}
#lotteryEnter[hidden],#lotteryDialog[hidden]{display:none!important}
.inCentralPark #lotteryEnter,.claw-playing #lotteryEnter{display:none!important}
.lottery-open .stage,.lottery-open .bar{pointer-events:none}
#lotteryDialog{position:fixed;inset:12px;z-index:6000;display:flex;flex-direction:column;overflow:hidden;border:3px solid #cfaa5f;border-radius:24px;background:#fff6df;color:#523c2c;font:16px/1.5 system-ui,sans-serif;box-shadow:0 10px 60px #302b1bd9}
#lotteryDialog header{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 24px;background:#96342d;color:#fff6df}
#lotteryDialog header{flex-shrink:0}#lotteryDialog header>div:first-child{display:block}#lotteryDialog header small{color:inherit;letter-spacing:.04em}
#lotteryDialog h2,#lotteryDialog h3,#lotteryDialog h4,#lotteryDialog p{margin:4px 0}#lotteryDialog h2{font-size:24px}
#lotteryDialog button{font:inherit;cursor:pointer;border:1px solid #bcab89;border-radius:10px;padding:9px 14px;background:#fffdf4;color:#693c26;min-height:44px}
#lotteryDialog button:disabled{opacity:.5;cursor:default}#lotteryDialog button:focus-visible{outline:3px solid #23785e;outline-offset:3px}
.lottery-layout{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(360px,1fr);gap:22px;padding:22px;overflow:auto;min-height:0}
.lottery-layout{flex:1;align-content:start;grid-auto-rows:max-content}
.lottery-picture{align-self:start;min-width:0;background:#f8e9c7;border-radius:18px;overflow:hidden;text-align:center}
.lottery-picture>img{display:block;width:100%;aspect-ratio:3/2;object-fit:contain}.lottery-result-title{padding:15px}.lottery-result-title h3{font-size:26px}.lottery-result-title strong{color:#a72921;font-size:32px}
.lottery-welcome{min-height:410px;padding:30px 12px;display:flex;align-items:center;justify-content:center;flex-direction:column;background:radial-gradient(ellipse at center,#fffdf2,#f4dc9a)}
.lottery-welcome>span{letter-spacing:.25em;color:#ab6f23}.lottery-welcome strong{font-size:26px;color:#a32921}.lottery-welcome canvas{height:210px;width:180px}
.lottery-ticket{min-width:0;padding:18px;border-radius:18px;background:#fffdf5;border:1px solid #e0cda3;align-self:start}.lottery-ticket h3{font-size:20px}.lottery-ticket h3 small{font-size:13px;font-weight:400}
.lottery-rules{padding-bottom:12px;border-bottom:1px dashed #ba9d69}.lottery-rules>strong{font-size:22px;color:#a63228}.lottery-rules p{font-size:14px}.lottery-rules>div{display:flex;flex-direction:column;font-size:14px}.lottery-rules small{font-size:12px;color:#776b56}
#lotteryMessage{min-height:24px;color:#9e4524;font-weight:700;font-size:14px;padding:10px 0}
.lottery-number-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:8px;margin:10px 0}.lottery-number-grid button[aria-pressed=true]{background:#a3342c!important;color:#fff!important;border-color:#a3342c!important}
.lottery-buttons{display:flex;gap:8px;flex-wrap:wrap;margin-top:14px}#lotteryDialog .lottery-primary{background:#a73129;color:white;border-color:#a73129;font-weight:800}
.lottery-balls{display:flex;gap:7px;flex-wrap:wrap;margin:10px 0 18px}.lottery-ball{width:48px;min-height:48px;display:inline-flex;align-items:center;justify-content:center;background:#f1e4c4;border:2px solid #d0ac65;border-radius:50%;font-weight:800;font-size:19px;box-sizing:border-box}
#lotteryDialog .lottery-ball{border-radius:50%;padding:4px}.lottery-hit,#lotteryDialog .lottery-hit{background:#2b7259;color:#fff;border-color:#2b7259}
@media(max-width:760px){#lotteryDialog{inset:4px;border-radius:16px;font-size:14px}#lotteryDialog header{padding:10px 12px}#lotteryDialog h2{font-size:19px}.lottery-layout{grid-template-columns:1fr;padding:12px;gap:12px}.lottery-picture{max-width:480px;width:100%;margin:auto}.lottery-welcome{min-height:0;padding:12px}.lottery-welcome canvas{width:100px;height:117px}.lottery-welcome h3{font-size:19px}.lottery-welcome strong{font-size:22px}.lottery-ticket{padding:12px}.lottery-result-title{padding:8px}.lottery-result-title strong{font-size:26px}.lottery-ball{width:45px;min-height:45px}}
@media(max-height:500px) and (min-width:761px){.lottery-layout{gap:12px;padding:12px;grid-template-columns:minmax(240px,.8fr) minmax(340px,1fr)}.lottery-welcome{min-height:0;padding:12px}.lottery-welcome canvas{height:117px;width:100px}#lotteryDialog header{padding:6px 16px}.lottery-ticket{padding:12px}}
