:root{color-scheme:light;--bg:#f5f7ff;--surface:#fff;--surface-2:#f1f3fb;--text:#202235;--muted:#62677c;--line:#e2e5ef;--primary:#6759d9;--primary-2:#8b5dc9;--shadow:0 18px 50px rgba(53,45,115,.12)}
:root[data-theme="dark"]{color-scheme:dark;--bg:#151725;--surface:#202334;--surface-2:#292d40;--text:#f4f5fb;--muted:#bdc1d1;--line:#383d52;--primary:#9185f4;--primary-2:#b47be8;--shadow:0 18px 50px rgba(0,0,0,.3)}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--bg);color:var(--text);font-family:system-ui,-apple-system,"Segoe UI",sans-serif;line-height:1.7}a{color:inherit}.skip-link{position:absolute;left:-9999px}.skip-link:focus{left:1rem;top:1rem;z-index:10;background:var(--surface);padding:.7rem 1rem;border-radius:.5rem}.site-header{height:72px;padding:0 max(20px,calc((100% - 1080px)/2));display:flex;align-items:center;gap:2rem;background:var(--surface);border-bottom:1px solid var(--line);position:sticky;top:0;z-index:5}.brand{text-decoration:none;font-weight:800;font-size:1.08rem;white-space:nowrap}.site-header nav{display:flex;gap:1.6rem;margin-left:auto}.site-header nav a,.site-footer a{text-decoration:none;color:var(--muted)}.site-header nav a:hover,.site-header nav a[aria-current="page"],.site-footer a:hover{color:var(--primary)}button{font:inherit}.theme-toggle{width:42px;height:42px;border:1px solid var(--line);border-radius:50%;background:var(--surface-2);cursor:pointer;font-size:1.1rem}main{max-width:1080px;margin:auto;padding:0 20px 72px}.hero{text-align:center;padding:72px 10px 38px}.hero h1{font-size:clamp(2.25rem,6vw,4.2rem);line-height:1.1;margin:.2rem 0 1rem;letter-spacing:-.05em}.hero>p:last-child{max-width:670px;margin:auto;color:var(--muted);font-size:1.08rem}.eyebrow{font-size:.76rem;letter-spacing:.16em;font-weight:800;color:var(--primary);margin:0 0 .45rem}.draw-card,.section-panel,.info-card{background:var(--surface);border:1px solid var(--line);border-radius:24px;box-shadow:var(--shadow)}.draw-card{padding:clamp(24px,5vw,48px);max-width:820px;margin:auto}.numbers-container{display:flex;justify-content:center;align-items:center;gap:12px;min-height:88px;flex-wrap:wrap;margin-bottom:28px}.number-ball{width:64px;height:64px;border-radius:50%;display:grid;place-items:center;color:#fff;font-size:1.35rem;font-weight:800;box-shadow:0 5px 15px rgba(0,0,0,.2);animation:pop .42s ease-out both}.ball-yellow{background:#e5a719}.ball-blue{background:#4386d9}.ball-red{background:#df5555}.ball-gray{background:#707788}.ball-green{background:#3e9c67}@keyframes pop{from{transform:scale(.25);opacity:0}70%{transform:scale(1.08)}to{transform:scale(1);opacity:1}}.placeholder,.tool-note,.empty-message{color:var(--muted)}.button-group{display:flex;gap:12px}.button-group button{padding:15px 22px;border:0;border-radius:12px;cursor:pointer;font-weight:750}.draw-btn{flex:2;color:#fff;background:linear-gradient(135deg,#667eea,#764ba2)}.reset-btn{flex:1;background:var(--surface-2);color:var(--text)}.button-group button:hover{transform:translateY(-2px)}.tool-note{text-align:center;font-size:.82rem;margin:18px 0 0}.content-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin:32px 0}.info-card{padding:26px;box-shadow:none}.info-card h2{font-size:1.1rem;margin:.5rem 0}.info-card p{font-size:.92rem;color:var(--muted);margin:0}.card-icon{font-size:1.5rem}.section-panel{padding:clamp(25px,5vw,46px);margin-top:24px;box-shadow:none}.section-heading{display:flex;justify-content:space-between;align-items:center;gap:20px}.section-heading h2,.article-content h2{margin:0 0 1rem;line-height:1.3}.text-button{border:0;background:none;color:var(--primary);cursor:pointer}.history-list{display:grid;gap:10px;margin-top:18px}.history-item{display:flex;align-items:center;justify-content:space-between;background:var(--surface-2);border-radius:12px;padding:12px 16px}.mini-balls{display:flex;gap:7px;flex-wrap:wrap}.mini-ball{width:32px;height:32px;border-radius:50%;display:grid;place-items:center;color:#fff;font-size:.76rem;font-weight:750}.history-time{color:var(--muted);font-size:.78rem}.article-content{max-width:820px;margin-left:auto;margin-right:auto}.article-content>p:not(.eyebrow),.article-content li{color:var(--muted)}.inline-link{display:inline-block;margin-top:.4rem;color:var(--primary);font-weight:750;text-decoration:none}.check-list{padding-left:1.3rem}.notice{padding:16px 18px;border-left:4px solid var(--primary);background:var(--surface-2);border-radius:0 10px 10px 0}details{border-top:1px solid var(--line);padding:16px 0}summary{cursor:pointer;font-weight:700}details p{margin:.7rem 0 0}.page-header{max-width:780px;padding:64px 0 22px}.page-header h1{font-size:clamp(2rem,5vw,3.3rem);line-height:1.2;margin:.25rem 0 1rem}.page-header p,.prose p,.prose li{color:var(--muted)}.prose{max-width:820px;background:var(--surface);border:1px solid var(--line);border-radius:20px;padding:clamp(24px,5vw,48px)}.prose h2{margin-top:2.2rem;line-height:1.35}.prose h2:first-child{margin-top:0}.prose table{border-collapse:collapse;width:100%}.prose th,.prose td{padding:12px;border-bottom:1px solid var(--line);text-align:left}.prose th{background:var(--surface-2)}.site-footer{background:var(--surface);border-top:1px solid var(--line);padding:38px max(20px,calc((100% - 1080px)/2));display:grid;grid-template-columns:1fr auto;gap:20px}.site-footer p{color:var(--muted);margin:.3rem 0}.site-footer nav{display:flex;gap:18px;flex-wrap:wrap}.copyright{grid-column:1/-1;font-size:.78rem;border-top:1px solid var(--line);padding-top:18px}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:720px){.site-header{gap:10px}.site-header nav{display:none}.content-grid{grid-template-columns:1fr}.hero{padding-top:50px}.number-ball{width:48px;height:48px;font-size:1rem}.button-group{flex-direction:column}.site-footer{grid-template-columns:1fr}.site-footer nav{flex-direction:column;gap:8px}.history-item{align-items:flex-start;gap:10px;flex-direction:column}.prose{border-radius:14px}.prose table{font-size:.85rem}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;animation:none!important;transition:none!important}}
