/* Aurevia Lottery · emerald & champagne · responsive interface */
:root{--bg:#091613;--panel:#12251f;--panel2:#172e27;--border:#2b4238;--text:#eff5ef;--muted:#b1c2b7;--gold:#e7ca8d;--gold2:#bd9b59;--green:#a9d3b6;--radius:18px;--font:"Noto Sans TC","PingFang TC","Microsoft JhengHei","Segoe UI",sans-serif;color-scheme:dark}
*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:100px}body{margin:0;background:radial-gradient(ellipse at 80% 0,#17352a66,transparent 50%),var(--bg);color:var(--text);font:17px/1.8 var(--font);letter-spacing:.015em;-webkit-text-size-adjust:100%;text-size-adjust:100%}button,input,select,textarea{font:inherit}button,a,input,select,summary{-webkit-tap-highlight-color:transparent}button{color:inherit;cursor:pointer;touch-action:manipulation}button:disabled{opacity:.43;cursor:not-allowed}a{color:var(--gold);text-decoration:none}a:hover{text-decoration:underline}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible,.table-scroll:focus-visible{outline:3px solid var(--gold);outline-offset:4px}button,input,select,textarea{min-width:0}img,svg{max-width:100%}[hidden]{display:none!important}h1,h2,h3,p{margin:0}h1{font-size:clamp(28px,2.9vw,40px);line-height:1.45;font-weight:650;letter-spacing:.035em}h2{font-size:23px;line-height:1.6;font-weight:650;letter-spacing:.02em}h3{font-size:19px;line-height:1.7;font-weight:600}p{margin-bottom:12px;overflow-wrap:anywhere}strong,b{font-weight:650}.eyebrow,.nav-caption,.nav small,.sidebar-bottom small,.metric .label>span,.brand small,footer>span small{display:none}.subtle,.fine{color:var(--muted);font-size:14px;line-height:1.85}.fine{margin:14px 0 0}.label{font-size:15px;color:var(--muted)}
.sidebar{position:fixed;inset:0 auto 0 0;width:256px;height:100dvh;z-index:20;display:flex;flex-direction:column;padding:30px 18px 22px;background:linear-gradient(170deg,#10271f,#0b1b17 65%);border-right:1px solid #53604466}.brand{display:flex;align-items:center;gap:12px;padding:0 6px 30px;color:var(--text);font-size:19px;font-weight:650;line-height:1.6}.brand:hover{text-decoration:none}.brand-logo{width:66px;height:66px;object-fit:contain;flex:none;filter:drop-shadow(0 3px 8px #0005)}.brand-title{display:flex;flex-direction:column;white-space:nowrap}.brand-title em{font-style:normal;font-size:13px;font-weight:400;color:var(--gold);letter-spacing:.15em}.sidebar nav{display:grid;gap:8px;margin-top:18px}.nav{display:flex;align-items:center;gap:13px;border:1px solid transparent;padding:14px 17px;min-height:56px;border-radius:12px;background:none;color:var(--muted);text-align:left;font-size:16px;line-height:1.6;transition:background .18s,color .18s,border-color .18s}.nav>span{display:flex;align-items:center;justify-content:center;flex:none;width:23px;height:25px}.nav svg{width:22px;height:22px;stroke:currentColor;stroke-width:1.7;fill:none;stroke-linecap:round;stroke-linejoin:round}.nav:hover{color:var(--text);background:#ffffff07}.nav.active{background:linear-gradient(100deg,#ccb47520,#c5ba7910);border-color:#d5bd7955;color:#f2dba5;box-shadow:inset 3px 0 var(--gold)}.sidebar-bottom{margin-top:auto;padding:24px 15px 0;color:#98b39f;font-size:13px;line-height:1.8;border-top:1px solid var(--border)}.sidebar-bottom>.mini-dot{margin-right:8px}.mobile-header-help{display:none}.workspace{margin-left:256px;min-width:0}.topbar{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:84px;padding:16px 40px;border-bottom:1px solid #29423799;background:#0c1d1766}.breadcrumb{font-size:14px;color:var(--muted)}.breadcrumb span{margin:0 14px;color:#6e8b79}.breadcrumb b{font-weight:500;color:var(--text)}.top-actions{display:flex;align-items:center;gap:16px}.badge{display:inline-flex;align-items:center;gap:8px;border:1px solid #395647;border-radius:999px;color:var(--green);background:#23473133;padding:5px 12px;font-size:13px;line-height:1.6;white-space:nowrap}.badge i,.mini-dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:var(--green);flex:none}.badge.muted{color:#c1d6c5;border-color:#3b5745}main{max-width:1600px;margin:auto;padding:32px 40px 0;min-width:0}.game-switchbar{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:14px 18px;margin-bottom:32px;border:1px solid #4e6048;border-radius:14px;background:linear-gradient(115deg,#1d372b,#14291f);box-shadow:0 8px 28px #0002}.switch-caption{font-size:15px;font-weight:500;color:#d1dbcc}.game-switch{display:flex;gap:8px}.game-switch button{min-height:56px;min-width:118px;border-radius:10px;background:#0d211a;border:1px solid #395244;padding:9px 18px;color:#c0d1c5;line-height:1.5;font-size:17px}.game-switch small{display:block;font-size:12px;color:#a0b4a6;margin-top:3px;letter-spacing:.03em}.game-switch button.selected{background:linear-gradient(135deg,#ebd49b,#d7b66e);border-color:#e9d197;color:#18281e;font-weight:700;box-shadow:0 3px 10px #0003}.game-switch button.selected small{color:#354832;font-weight:500}.page-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:24px}.page-heading p{margin:8px 0 0;font-size:15px;color:var(--muted)}.page-heading>.btn{flex:none}.btn{display:inline-flex;align-items:center;justify-content:center;gap:9px;border:1px solid #4a6352;background:#213a2e;color:#e3ece2;border-radius:10px;padding:11px 17px;min-height:46px;font-size:15px;line-height:1.55;font-weight:500;white-space:normal;text-align:center;transition:background .18s,border-color .18s,box-shadow .18s}.btn:hover{background:#2d4b39;border-color:#8b9c76}.btn.gold{background:linear-gradient(115deg,#ead5a1,#d6b875);border-color:#e8cf95;color:#16231a;font-weight:700;box-shadow:0 3px 14px #0002}.btn.gold:hover{background:#f1ddad;box-shadow:0 4px 20px #d5b76c20}.btn.quiet{background:#152b2266;border-color:#395345}.btn.wide{width:100%;margin-top:22px}.text-btn{display:inline-flex;align-items:center;gap:8px;border:0;background:none;padding:8px 0;min-height:40px;color:var(--gold);font-size:14px;line-height:1.7;text-align:left}.text-btn:hover{text-decoration:underline}.source-strip{display:flex;align-items:center;gap:12px 24px;flex-wrap:wrap;color:var(--muted);font-size:13px;line-height:1.8;padding:0 0 20px;border-bottom:1px solid var(--border);margin-bottom:28px}.source-strip>span:first-child{display:flex;align-items:center;gap:9px;color:#c2d4c3}.source-strip b{font-weight:500}.source-strip>details{position:relative;margin-left:auto;font-size:13px;padding:0;border:0;background:none}.source-strip>details summary{min-height:32px;padding:0 20px 0 0;font-size:13px}.source-strip>details summary:after{right:0}.source-strip>details[open]>span{display:block;position:absolute;right:0;top:100%;z-index:6;white-space:nowrap;background:#1c3328;border:1px solid var(--border);padding:12px 16px;border-radius:10px;box-shadow:0 6px 16px #0004}.message{margin:18px 0;padding:14px 17px;border-radius:10px;border:1px solid #847247;background:#342f1e;color:#f0dfba;font-size:15px;line-height:1.85;white-space:pre-line}.message.error{border-color:#9e6c5d;background:#3b2921;color:#f5c5b6}.page{display:none;min-width:0}.page.active{display:block;animation:enter .2s ease-out}.card{min-width:0;padding:28px;margin-bottom:24px;border:1px solid var(--border);border-radius:var(--radius);background:linear-gradient(135deg,#172e25aa,transparent 58%),var(--panel);box-shadow:0 6px 24px #00000012}.card h2+p{margin-top:8px}.card-top,.section-top{display:flex;align-items:center;justify-content:space-between;gap:20px}.card-top .subtle{white-space:nowrap}.section-top{margin-bottom:24px;flex-wrap:wrap}.section-top.compact{margin-bottom:16px}.section-top p{margin:5px 0 0}.overview-grid{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(280px,1fr);gap:24px}.overview-grid .card{margin-bottom:24px}.latest{position:relative;border-color:#66704c;background:radial-gradient(ellipse at 0 0,#29493466,transparent 70%),var(--panel)}.draw-title{display:flex;align-items:baseline;gap:12px;flex-wrap:wrap;margin:20px 0 0;font-size:24px;line-height:1.6}.draw-title>span{color:var(--muted);font-size:14px}.balls{display:flex;align-items:center;gap:8px}.ball{display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;flex:none;border:1px solid #66784f;border-radius:50%;background:#2a3d29;color:#f4dfa5;font-size:15px;font-weight:650;font-variant-numeric:tabular-nums;line-height:1}.balls.large{gap:12px;margin:27px 0 24px}.large .ball{width:54px;height:54px;font-size:25px;border-color:#c5ae6c;background:linear-gradient(145deg,#e8d69b,#ba9d5f);color:#16271b;box-shadow:inset 0 1px 2px #fff7,0 3px 8px #0003}.zone-extra{display:inline-flex;flex-direction:column;align-items:center;position:relative;flex:none;margin-left:4px}.zone-extra small{position:absolute;bottom:100%;margin-bottom:5px;white-space:nowrap;font-size:11px;line-height:1.2;color:#c2d8c9}.zone-separator{font-size:15px;color:#9bb49d}.secondary-ball{border-color:#81b49e!important;background:#244f3d!important;color:#d6f4e3!important}.special-ball{border-color:#9c9eae!important;background:#363b48!important;color:#eddded!important}.draw-facts{display:flex;align-items:center;gap:18px;flex-wrap:wrap;font-size:14px;color:var(--muted);padding-top:5px}.draw-facts b{color:var(--text);font-weight:600;margin-left:9px}.latest>.fine{font-size:13px}.research-note{display:flex;flex-direction:column;justify-content:center;border-color:#476147;background:radial-gradient(ellipse at 100% 0,#67794b33,transparent 80%),#152b21}.research-note h2{font-size:24px}.research-note p{font-size:15px;color:var(--muted);margin:10px 0 20px}.quick-actions{display:grid;grid-template-columns:1fr 1fr;gap:12px}.quick-actions .btn{min-height:48px}.research-range{display:inline-block;color:#bdcdbb;font-size:13px;margin-top:15px}.metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;margin-bottom:24px}.metric{min-width:0;padding:22px;border:1px solid var(--border);border-radius:14px;background:#13281f;box-shadow:inset 0 1px #ffffff04}.metric .label{display:flex;align-items:center;gap:8px;font-size:14px;color:#bdcdbf}.metric strong{display:block;margin:9px 0 4px;font-size:34px;line-height:1.45;font-weight:650;letter-spacing:.025em;font-variant-numeric:tabular-nums}.metric strong em{font-style:normal;font-size:16px;color:var(--muted);font-weight:400;margin-left:6px}.metric strong.probability{font-size:clamp(19px,1.9vw,28px);letter-spacing:0}.metric small{display:block;margin:5px 0 0;color:var(--muted);font-size:13px;line-height:1.7}.segmented{display:flex;gap:4px;border:1px solid #365240;border-radius:10px;background:#0e2119;padding:4px;flex:none}.segmented button{border:0;background:none;color:#b6c7b9;border-radius:7px;min-height:40px;padding:8px 13px;font-size:14px}.segmented button.selected{background:#3d4c31;color:#f2dfaa;font-weight:650}.heatmap{display:grid;grid-template-columns:repeat(13,minmax(0,1fr));gap:10px}.number-cell{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:4px;min-height:82px;padding:10px 2px;border-radius:12px;border:1px solid #4b6148;transition:transform .16s,border-color .16s}.number-cell:hover{border-color:var(--gold);transform:translateY(-2px)}.number-cell strong{font-size:23px;font-weight:650;line-height:1.4;font-variant-numeric:tabular-nums}.number-cell small{font-size:13px;color:#d1ddc7;line-height:1.5}.heat1{background:#183329;color:#c9d9cd}.heat2{background:#2b4430;color:#e3e7ca}.heat3{background:#4f5734;color:#fff0ba}.heat4{background:#796d40;color:#fff4ce}.legend{display:flex;align-items:center;flex-wrap:wrap;gap:6px;margin-top:18px;font-size:13px;color:var(--muted)}.legend i{width:13px;height:10px;border-radius:3px}.legend>span:first-child{margin-right:6px}.legend-right{margin-left:auto;color:#bdcbb8}.bottom-grid{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:24px}.recent-row{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:17px 0;border-bottom:1px solid var(--border)}.recent-row:last-child{border:0;padding-bottom:0}.recent-date{font-size:15px;line-height:1.7;white-space:nowrap}.recent-date small{display:block;font-size:13px;color:var(--muted)}.recent-row .ticket-balls{gap:6px}.recent-row .ball{width:31px;height:31px;font-size:14px}.recent-row .zone-extra small{font-size:10px;margin-bottom:3px}.dist-item{margin:21px 0}.dist-label{display:flex;justify-content:space-between;gap:15px;color:var(--muted);font-size:14px;margin-bottom:10px}.dist-label b{font-weight:500;color:#e0e9dc}.dist-track{height:7px;overflow:hidden;background:#2d4335;border-radius:99px}.dist-track i{display:block;height:100%;border-radius:99px;background:linear-gradient(90deg,#ab9865,#e2ca8b)}.two-col,.comparison-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}.two-col>*,.comparison-grid>*{min-width:0}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin-top:24px}label{display:flex;flex-direction:column;gap:9px;font-size:15px;line-height:1.7;color:#d1dfd2}input,select,textarea{width:100%;padding:12px 13px;min-height:48px;border:1px solid #4a6651;border-radius:9px;background:#0d2119;color:#f0f5ee;font-size:16px;line-height:1.6;color-scheme:dark}textarea{min-height:90px;resize:vertical}input::placeholder,textarea::placeholder{color:#9db19f;opacity:1}select{cursor:pointer}input[type=number]{font-variant-numeric:tabular-nums}.method-note{padding:14px 17px;margin-top:20px;border-left:3px solid #b8a36c;border-radius:0 8px 8px 0;background:#0e211a;color:#c0d0c2;font-size:14px;line-height:1.85}.result-card{display:flex;flex-direction:column}.empty-state{text-align:center;color:var(--muted);padding:38px 20px}.empty-state h3{font-size:18px;color:#c5d4c5;font-weight:500}.empty-state p{font-size:14px;max-width:450px;margin:9px auto 0}.empty-symbol{display:block;color:#c6b77e;font-size:42px;line-height:1.4;margin:8px 0 17px}.result-card>.empty-state{margin:auto}.candidate-row{padding:24px 0;border-bottom:1px solid var(--border)}.candidate-row:last-of-type{border:0}.candidate-row .balls{margin:19px 0 13px;gap:8px}.candidate-row .ball{width:42px;height:42px;font-size:20px}.candidate-row small{display:block;font-size:14px;line-height:1.8;color:var(--muted)}.ticket-balls{flex-wrap:nowrap}.callout{padding:17px 20px;margin:0 0 24px;border:1px solid #6c6e48;border-radius:12px;background:#293421;color:#e1dfbb;font-size:15px;line-height:1.9}.callout small{font-size:13px}.toolbar,.explore-controls{display:flex;justify-content:space-between;align-items:center;gap:18px;flex-wrap:wrap;margin-bottom:22px}.toolbar label,.explore-controls>label{flex-direction:row;align-items:center;gap:12px;white-space:nowrap}.toolbar select,.explore-controls select{width:auto;min-width:170px}.subtabs{display:flex;gap:6px;flex-wrap:wrap;padding:0 0 12px;border-bottom:1px solid var(--border)}.subtabs button{border:0;border-radius:8px;background:none;color:#bed0c0;font-size:15px;padding:10px 15px;min-height:44px;line-height:1.6}.subtabs button.selected{color:#f1dba5;background:#36452d;box-shadow:inset 0 -2px #d9c183}.mode-tabs{margin-bottom:24px}.advanced{margin-top:24px}.advanced summary span{display:block;color:var(--muted);font-size:13px;margin-top:3px}.checkbox-label{flex-direction:row;align-items:center;gap:10px;margin:17px 0}.checkbox-label input,.checklist input{width:20px;height:20px;min-height:0;flex:none;margin:0;accent-color:#d5c086}.advanced .form-grid{margin:18px 0}.check-group{margin-top:20px}.check-group>span{font-size:15px;color:#d0dfce}.checklist{display:flex;gap:14px 20px;flex-wrap:wrap;margin-top:12px}.checklist label{display:flex;flex-direction:row;align-items:center;gap:8px;font-size:14px}.drag-controls{display:flex;align-items:end;gap:14px;flex-wrap:wrap;margin:22px 0}.drag-controls>label{flex:1;min-width:200px}.table-scroll{max-width:100%;overflow:auto;border:1px solid #304c3a;border-radius:11px;scrollbar-width:thin;scrollbar-color:#718264 #12251f;overscroll-behavior-x:contain}table{width:100%;border-collapse:collapse;font-size:15px;line-height:1.7;white-space:nowrap;font-variant-numeric:tabular-nums}th{padding:14px 15px;text-align:left;font-size:14px;color:#c5d6bf;background:#1e3929;font-weight:600}td{padding:15px;border-bottom:1px solid #2a4334;color:#dce7da}tbody tr:last-child td{border-bottom:0}tbody tr:hover{background:#24422c44}td .ball{width:30px;height:30px;font-size:14px}td .balls{gap:5px}.number-link{border:0;background:none;padding:3px}.bar-track{width:100px;height:6px;overflow:hidden;background:#2a4433;border-radius:99px}.bar-track i{display:block;height:100%;background:#d0b779;border-radius:99px}#exploreContent .two-col{margin-bottom:26px}#exploreContent h3{margin:14px 0}#exploreContent>.table-scroll{max-height:720px}#exploreContent thead{position:sticky;top:0;z-index:1}#historyTable .ball{width:29px;height:29px;font-size:13px}#historyTable .zone-extra small{font-size:10px}#historyTable .ticket-balls{padding-top:8px}.backtest-form{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;align-items:end;margin-top:24px}.form-grid:has(#tMethod){grid-template-columns:repeat(3,minmax(0,1fr))}.test-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;margin-bottom:24px}.test-metrics .metric strong{font-size:28px}.chart{width:100%;height:auto;display:block}.chart text{font-family:var(--font);font-size:12px;fill:#c2d3bf}.chart .grid{stroke:#3b5140;stroke-width:1}.chart-legend{display:flex;flex-wrap:wrap;gap:18px;font-size:14px;color:var(--muted);margin:10px 0 20px}.chart-legend i{display:inline-block;width:22px;height:3px;vertical-align:middle;margin-right:8px;background:var(--gold)}.chart-legend .baseline{background:#8cc6a6}.data-facts{margin:22px 0}.data-facts>div{display:flex;justify-content:space-between;gap:22px;padding:12px 0;border-bottom:1px solid var(--border);font-size:15px;line-height:1.8}.data-facts dt{color:var(--muted)}.data-facts dd{margin:0;max-width:67%;color:#e0ebdd;text-align:right;overflow-wrap:anywhere}.link-row{display:flex;gap:12px 20px;flex-wrap:wrap;margin:22px 0;font-size:14px}.link-row a{overflow-wrap:anywhere}details{border-top:1px solid var(--border);margin-top:18px;padding-top:3px;font-size:15px;line-height:1.9;color:#bacdbb}summary{position:relative;list-style:none;cursor:pointer;padding:14px 25px 14px 0;color:#e3d09e;font-size:15px;line-height:1.7;min-height:48px}summary::-webkit-details-marker{display:none}summary:after{content:'＋';position:absolute;right:0;top:50%;transform:translateY(-50%);font-size:18px;color:#d9c48b}details[open]>summary:after{content:'−'}details>p{margin:8px 0 16px}details li{overflow-wrap:anywhere;margin:8px 0}.explanation{margin-top:16px}.explanation>summary{font-size:14px;color:#c0cdb5}.explanation>.fine{margin-top:4px}.upload-zone{display:flex;align-items:center;justify-content:center;text-align:center;min-height:170px;margin:24px 0;padding:24px;border:1px dashed #7b9066;border-radius:14px;background:#233a2833;cursor:pointer}.upload-zone span{font-size:32px;color:var(--gold);line-height:1.4}.upload-zone strong{font-size:17px;font-weight:600}.upload-zone small{font-size:14px;color:var(--muted)}.upload-zone input{max-width:100%;min-height:38px;width:290px;font-size:13px;padding:5px 8px}.button-row{display:flex;gap:12px;flex-wrap:wrap;margin-top:18px}.button-row>.btn{flex:1 1 auto}.search-label{flex-direction:row;align-items:center;gap:12px;white-space:nowrap}.search-label input{width:215px}.pagination{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-top:20px;font-size:14px;color:var(--muted)}.pagination>div{display:flex;align-items:center;gap:14px}.manual{color:#ebce91}.official{color:#b4d7b9}footer{display:flex;align-items:center;justify-content:space-between;gap:14px 24px;flex-wrap:wrap;padding:30px 0;margin-top:18px;border-top:1px solid var(--border);font-size:14px;color:var(--muted)}footer>span{color:#d6e0ce;font-size:15px}footer>.button-row{margin:0}footer p{font-size:13px;line-height:1.9;flex-basis:100%;margin:0;color:#aebfab}dialog{width:640px;max-width:calc(100% - 32px);max-height:calc(100dvh - 40px);overflow:auto;margin:auto;padding:35px;border:1px solid #7e895f;border-radius:20px;background:#132a20;color:var(--text);box-shadow:0 30px 100px #0008;line-height:1.9}dialog::backdrop{background:#020b08c9;backdrop-filter:blur(4px)}.dialog-close{position:absolute;right:14px;top:10px;border:0;background:none;width:44px;min-height:44px;font-size:30px;color:#c7d5bd}.help-steps{padding-left:24px;font-size:16px;color:#c4d5c2}.help-steps li{padding:10px 0}.help-steps b{color:#eef4e6}dialog p{font-size:15px;color:#b9ccb8}dialog h2{padding-right:18px;margin:12px 0}.details-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:22px 0}.details-grid>div{padding:16px;background:#0c2117;border:1px solid #314c36;border-radius:10px;color:var(--muted);font-size:14px}.details-grid strong{display:block;margin-top:5px;font-size:28px;color:var(--gold)}.detail-draws{font-size:14px;color:#c1d1be}.loading{animation:pulse 1.2s infinite}.sr-only,.skip-link:not(:focus){position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.skip-link:focus{position:fixed;top:10px;left:10px;z-index:100;background:var(--gold);color:#102116;padding:12px 18px;border-radius:8px}
/* Portfolio builder */
.wheel-principle{font-size:15px}.wheel-intro{grid-template-columns:1fr}.wheel-intro>.card{margin-bottom:0}.wheel-intro{margin-bottom:24px}.wheel-fields{grid-template-columns:repeat(4,minmax(0,1fr));margin:0 0 4px!important;grid-column:1/-1}.wheel-fields>label{grid-column:auto!important}#wheelForm{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin-top:26px}#wheelForm>label:has(textarea),#wheelForm>.button-row,#wCompleteFields,#wModeNote,.wheel-scenario{grid-column:1/-1}#wheelForm>.button-row{justify-content:flex-start;margin:0}#wheelForm>.button-row>.btn{flex:0 1 auto}#wheelForm>.fine{align-self:end;margin:0}#wCompleteFields{max-width:520px}#wModeNote{margin:0}.wheel-scenario{margin:0}.wheel-prizes{grid-template-columns:repeat(4,minmax(0,1fr));margin:15px 0}.wheel-prizes>label{grid-column:auto!important}.wheel-quote{display:flex;flex-wrap:wrap;gap:20px 45px;border-radius:12px;border:1px solid #6b784e;background:linear-gradient(110deg,#31472c77,#192f21);padding:20px 24px;margin:26px 0 0;font-size:14px;color:#cbd9c3;line-height:1.7}.wheel-quote b{display:block;font-size:25px;color:#f2dda5;margin-top:5px;font-variant-numeric:tabular-nums}.wheel-quote small{flex-basis:100%;color:#e0c798;font-size:14px}.wheel-quote.error{border-color:#9e6c5d;background:#3b2921;color:#f5c5b6}.wheel-tools{justify-content:flex-end;margin:0 0 24px}.wheel-tools .btn{flex:0 1 auto}.wheel-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;margin-bottom:24px}.wheel-metrics .metric strong{font-size:29px;overflow-wrap:anywhere}.wheel-metrics .metric small{font-size:13px}.wheel-result-heading .section-top{margin-bottom:18px}.wheel-result-heading h2{margin-bottom:8px}.wheel-result-heading .badge{white-space:normal}.wheel-ticket{display:flex;align-items:center;gap:26px;border-bottom:1px solid var(--border);padding:15px 0}.wheel-ticket>span{flex:none;width:50px;font-size:14px;color:#aec4aa}.wheel-ticket>b{font-weight:600;font-size:19px;word-spacing:9px;line-height:1.8;color:#efdaa5;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.wheel-tier-summary{display:flex;flex-wrap:wrap;gap:12px;padding:18px 0}.wheel-tier-summary span{font-size:14px;border-radius:8px;background:#24402b;padding:9px 13px}.wheel-tier-summary b{color:var(--gold);margin-left:8px}.wheel-check-controls{display:flex;align-items:end;gap:18px;margin:24px 0}.wheel-check-controls label{width:280px;max-width:100%}#wheelResults>article,#wheelResults>.wheel-metrics{margin-bottom:24px}#wheelResults table small{display:block;font-size:13px;color:var(--muted);white-space:normal;min-width:160px}.wheel-guide{margin-bottom:24px;padding:9px 26px}.wheel-guide>summary{font-size:17px;font-weight:600}.wheel-guide h3{margin:18px 0 5px;color:#ead5a0}.wheel-guide p{font-size:15px}.wheel-guide details{margin-top:14px}.wheel-guide details p{font-size:15px}.wheel-explain{margin:0 0 20px}.wheel-guide>summary+.wheel-explain{border-top:1px solid var(--border);padding-top:8px}
@keyframes enter{from{opacity:.7;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}@keyframes pulse{50%{opacity:.5}}
@media(min-width:1700px){main{padding:40px 56px 0}.heatmap{gap:13px}.number-cell{min-height:90px}}
@media(max-width:1440px){.sidebar{width:228px;padding:26px 14px}.workspace{margin-left:228px}.brand{gap:9px;font-size:17px}.brand-logo{width:58px;height:58px}.brand-title em{font-size:12px}.topbar{padding:16px 28px}main{padding:28px 28px 0}.overview-grid{grid-template-columns:minmax(0,1.15fr) minmax(280px,1fr)}.card{padding:24px}.large .ball{width:44px;height:44px;font-size:23px}.balls.large{gap:8px}.metric{padding:20px}.number-cell{min-height:76px}.heatmap{gap:8px}.recent-row{flex-wrap:wrap;gap:13px}.recent-row .ticket-balls{margin-left:auto}.metric strong.probability{font-size:22px}.candidate-row .ball{width:36px;height:36px;font-size:19px}.candidate-row .balls{gap:6px}.wheel-fields{grid-template-columns:repeat(2,minmax(0,1fr))}.bottom-grid{grid-template-columns:1fr 1fr}}
@media(max-width:1100px){body{font-size:17px}.sidebar{position:sticky;inset:auto;top:0;flex-direction:row;align-items:center;justify-content:space-between;width:100%;height:82px;padding:10px 28px;border-right:0;border-bottom:1px solid #56684b;background:#0d211a}.brand{padding:0;font-size:19px;gap:12px;line-height:1.35}.brand-logo{width:58px;height:58px}.brand-title{flex-direction:row;align-items:baseline;gap:12px}.brand-title em{font-size:14px;letter-spacing:.08em}.sidebar nav{position:fixed;z-index:25;bottom:14px;left:50%;transform:translateX(-50%);width:calc(100% - 44px);max-width:790px;display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:4px;margin:0;padding:8px;border:1px solid #65724f;border-radius:18px;background:#132c23f7;backdrop-filter:blur(18px);box-shadow:0 5px 28px #0008}.nav{display:flex;flex-direction:column;justify-content:center;gap:5px;min-height:62px;padding:8px 4px;font-size:13px;text-align:center;border-radius:11px}.nav>span{height:22px;width:22px}.nav.active{box-shadow:none;background:#b9aa6c25;border-color:#b5aa6b66}.sidebar-bottom{display:none}.mobile-header-help{display:inline-flex;padding:8px 14px;min-height:42px;font-size:14px}.workspace{margin-left:0}.topbar{display:none}main{max-width:1120px;padding:28px 28px 110px}.game-switchbar{margin-bottom:28px}.game-switch button{min-width:130px}.overview-grid{grid-template-columns:minmax(0,1.2fr) minmax(270px,1fr)}.bottom-grid,.comparison-grid{grid-template-columns:1fr}.two-col{grid-template-columns:repeat(2,minmax(0,1fr))}.two-col:has(#candidateForm),#data>.two-col{grid-template-columns:1fr}.two-col:has(#candidateForm) .form-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.candidate-row .ball{width:43px;height:43px;font-size:21px}.candidate-row .balls{gap:9px}.large .ball{width:42px;height:42px;font-size:22px}.metrics,.test-metrics,.wheel-metrics{gap:15px}.metric strong.probability{font-size:22px}.heatmap{grid-template-columns:repeat(10,minmax(0,1fr))}.number-cell{min-height:79px}.recent-row{flex-wrap:nowrap}.recent-row .ball{width:34px;height:34px;font-size:15px}.recent-row .ticket-balls{gap:7px}.wheel-intro{grid-template-columns:1fr}.wheel-fields{grid-template-columns:repeat(4,minmax(0,1fr))}.wheel-prizes{grid-template-columns:repeat(3,minmax(0,1fr))}footer{padding-bottom:18px}}
@media(max-width:800px){.overview-grid{grid-template-columns:1fr}.research-note h2{font-size:22px}.research-note p{margin:6px 0 15px}.research-range{display:none}.overview-grid{gap:0}.research-note .quick-actions{grid-template-columns:1fr 1fr}.metrics{gap:12px}.metric{padding:18px}.metric strong{font-size:30px}.metric strong.probability{font-size:20px}.metric .label{font-size:14px}.card{padding:24px}.two-col,.test-metrics{grid-template-columns:1fr}.two-col>.card,.comparison-grid>.card{margin:0}.two-col,.comparison-grid{margin-bottom:24px}.section-top{gap:16px}.wheel-fields{grid-template-columns:repeat(2,minmax(0,1fr))}.wheel-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.wheel-metrics .metric strong{font-size:28px}.form-grid:has(#tMethod),.two-col:has(#candidateForm) .form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.game-switchbar{flex-direction:column;align-items:stretch;gap:12px}.game-switchbar>div:first-child{display:none}.game-switch{width:100%}.game-switch button{flex:1;min-width:0}.page-heading{align-items:start}.page-heading p{max-width:430px}.large .ball{width:50px;height:50px;font-size:25px}.balls.large{gap:11px}.source-strip{gap:9px 18px}.source-strip>details{margin-left:0}.recent-row .ticket-balls{gap:6px}.recent-row .ball{width:31px;height:31px}.explore-controls>label{flex:1}.explore-controls select{flex:1;min-width:130px}#exploreContent .two-col{gap:20px}.data-facts>div{font-size:15px}.wheel-quote{gap:18px 30px}.quick-actions .btn{font-size:16px}}
@media(max-width:600px){body{font-size:16px}.sidebar{height:74px;padding:8px 16px}.brand{font-size:18px;gap:10px}.brand-logo{width:51px;height:51px}.brand-title{flex-direction:column;align-items:start;gap:2px;line-height:1.5}.brand-title em{font-size:12px;letter-spacing:.13em}.mobile-header-help{font-size:13px;padding:8px 12px;min-height:40px}.sidebar nav{bottom:0;left:0;transform:none;width:100%;max-width:none;padding:7px 3px calc(7px + env(safe-area-inset-bottom));border-radius:0;border:0;border-top:1px solid #62724f;gap:1px;box-shadow:0 -6px 24px #0005}.nav{min-height:56px;font-size:12px;line-height:1.5;padding:5px 1px;gap:5px;border-radius:8px}.nav>span{height:21px;width:21px}.nav svg{width:21px;height:21px}.nav.active{border-color:transparent}.workspace{min-width:0}main{padding:20px 16px calc(102px + env(safe-area-inset-bottom))}.game-switchbar{padding:8px;margin-bottom:24px;border-radius:12px}.game-switch{gap:5px}.game-switch button{min-height:57px;padding:8px 3px;border-radius:8px;font-size:16px}.game-switch small{font-size:11px}.page-heading{gap:14px;flex-wrap:wrap;margin-bottom:20px}.page-heading>div{flex:1 1 210px}.page-heading h1{font-size:29px}.page-heading p{font-size:14px;margin-top:6px}.page-heading>.btn{padding:10px 14px;font-size:14px;min-height:44px}.source-strip{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:7px 10px;font-size:13px;margin-bottom:22px;padding-bottom:17px}.source-strip>span:nth-child(2){grid-column:1/-1;grid-row:2;overflow-wrap:anywhere}.source-strip>details{margin:0;align-self:start;grid-column:2;grid-row:1}.source-strip>details summary{font-size:12px}.source-strip>details[open]>span{font-size:13px;max-width:calc(100vw - 32px);white-space:normal;width:270px}.card{padding:21px 18px;margin-bottom:20px;border-radius:15px}h2{font-size:21px}h3{font-size:18px}.subtle,.fine{font-size:14px}.label{font-size:14px}.overview-grid .card{margin-bottom:20px}.draw-title{margin-top:16px;font-size:22px;gap:5px 10px}.draw-title>span{font-size:13px}.card-top{gap:10px}.card-top .subtle{font-size:14px}.balls.large{margin:25px 0 19px;gap:7px}.large .ball{width:clamp(31px,9.4vw,44px);height:clamp(31px,9.4vw,44px);font-size:21px}.zone-extra{margin-left:2px}.zone-extra small{font-size:10px;margin-bottom:4px}.draw-facts{gap:12px 18px;font-size:14px}.draw-facts b{margin-left:7px}.latest>.fine{font-size:13px}.research-note h2{font-size:21px}.research-note p{font-size:14px}.quick-actions{gap:10px}.quick-actions .btn{font-size:15px}.metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-bottom:20px}.metrics>.metric:last-child{grid-column:1/-1;display:grid;grid-template-columns:1fr auto;gap:4px 12px;align-items:center}.metrics>.metric:last-child .label{grid-column:1}.metrics>.metric:last-child strong{grid-column:2;grid-row:1/3;font-size:24px;margin:0}.metrics>.metric:last-child small{grid-column:1;font-size:13px}.metric{padding:17px}.metric strong{font-size:30px}.metric small{font-size:13px}.metric .label{font-size:14px}.section-top{gap:14px;margin-bottom:22px}.section-top h2{font-size:21px}.segmented{width:100%;gap:3px}.segmented button{flex:1;padding:8px 5px;font-size:14px;min-height:40px}.heatmap{grid-template-columns:repeat(7,minmax(0,1fr));gap:6px}.number-cell{min-height:69px;padding:9px 1px;border-radius:9px;gap:2px}.number-cell strong{font-size:22px}.number-cell small{font-size:12px}.legend{font-size:12px;gap:5px}.legend-right{flex-basis:100%;margin:6px 0 0}.bottom-grid{gap:0}.recent-row{padding:16px 0;flex-wrap:wrap;gap:15px}.recent-row .ticket-balls{margin-left:0;max-width:100%;gap:5px}.recent-row .ball{width:31px;height:31px;font-size:14px}.recent-date{display:flex;align-items:center;gap:12px;font-size:14px}.recent-date small{font-size:13px}.dist-label{font-size:14px}.two-col,.comparison-grid{gap:20px;margin-bottom:20px}.form-grid{gap:18px 14px;margin-top:22px}label{font-size:15px;gap:8px}input,select,textarea{font-size:16px;min-height:48px;padding:12px 11px}.form-grid:has(#cMethod)>label:first-child,.form-grid:has(#tMethod)>label:first-child{grid-column:1/-1}.form-grid:has(#cMethod)>label:last-child,.form-grid:has(#tMethod)>label:last-child{grid-column:1/-1}.btn{font-size:15px;padding:11px 14px;min-height:46px}.btn.wide{margin-top:20px}.text-btn{font-size:14px}.method-note{font-size:14px;padding:13px 15px}.advanced summary span{font-size:13px}.checklist{gap:14px}.checklist label{font-size:14px}.advanced .form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.advanced .form-grid>label{grid-column:auto!important}.candidate-row .ball{width:clamp(28px,8.4vw,38px);height:clamp(28px,8.4vw,38px);font-size:18px}.candidate-row .balls{gap:5px}.candidate-row small{font-size:14px}.zone-separator{font-size:12px}.candidate-row .label{font-size:14px}.result-card .section-top{align-items:start}.result-card .section-top .btn{font-size:13px;min-height:40px;padding:8px 12px}.callout{font-size:14px;padding:16px;margin-bottom:20px}.subtabs{width:100%;display:flex;flex-wrap:nowrap;gap:4px;overflow:auto;padding-bottom:10px;scrollbar-width:thin}.subtabs button{font-size:14px;white-space:nowrap;flex:1;padding:9px 10px}.explore-controls>label{width:100%;font-size:14px}.explore-controls select{min-width:0}.drag-controls{gap:10px}.drag-controls>label{flex-basis:100%;min-width:0}.drag-controls .btn{flex:1}.toolbar label{width:100%;font-size:14px}.toolbar select{flex:1;min-width:0}table{font-size:15px}th{font-size:14px;padding:13px 12px}td{padding:14px 12px}.table-scroll{border-radius:9px}.test-metrics{gap:12px}.test-metrics .metric strong{font-size:28px}.chart-legend{font-size:13px;gap:14px}.search-label{width:100%}.search-label input{flex:1;width:auto;min-width:0}.data-facts>div{font-size:14px;gap:16px}.data-facts dd{max-width:65%}.button-row{gap:10px}.button-row>.btn{flex-basis:calc(50% - 10px)}.pagination{font-size:14px;gap:14px}.pagination>div{width:100%;justify-content:space-between;gap:10px}.pagination .btn{font-size:14px;padding:9px 12px;min-height:42px}.link-row{font-size:14px}.upload-zone{padding:20px 13px}.upload-zone strong{font-size:16px}.upload-zone small{font-size:13px}.explanation>summary{font-size:14px}.wheel-fields{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 14px}#wheelForm{grid-template-columns:1fr;gap:18px}#wheelForm>*{grid-column:1/-1}.wheel-fields>label:first-child,.wheel-fields>label:last-child{grid-column:1/-1!important}.wheel-fields>label{font-size:15px}.wheel-prizes{grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}.wheel-prizes label{font-size:14px}.wheel-quote{padding:17px 16px;gap:16px 24px;font-size:14px;margin-top:22px}.wheel-quote b{font-size:23px}.wheel-quote>span:last-of-type{flex-basis:100%}.wheel-quote small{font-size:13px}.wheel-tools{justify-content:flex-start;gap:10px}.wheel-tools .btn{flex:1;font-size:14px}.wheel-metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-bottom:20px}.wheel-metrics .metric{padding:16px 14px}.wheel-metrics .metric strong{font-size:25px;line-height:1.5;margin-top:11px}.wheel-metrics .metric small{font-size:13px}.wheel-metrics .metric .label{font-size:13px;line-height:1.7}.wheel-ticket{gap:11px;padding:14px 0;align-items:start}.wheel-ticket>span{width:34px;font-size:13px;line-height:2}.wheel-ticket>b{font-size:16px;word-spacing:3px;line-height:1.9}.wheel-check-controls{flex-wrap:wrap;gap:14px;margin:22px 0}.wheel-check-controls label,.wheel-check-controls .btn{width:100%}.wheel-guide{padding:6px 18px}.wheel-guide>summary{font-size:16px}.wheel-guide p,.wheel-guide details p{font-size:14px}.wheel-result-heading>.section-top{gap:14px}.wheel-result-heading .badge{font-size:12px}#wheelResults>article,#wheelResults>.wheel-metrics{margin-bottom:20px}#wheelResults table small{font-size:13px}footer{gap:14px;padding-top:24px;align-items:start}footer>.button-row{gap:16px}footer p{font-size:13px}dialog{padding:28px 21px;max-width:calc(100% - 24px);max-height:calc(100dvh - 24px);border-radius:16px}dialog p{font-size:15px}.help-steps{font-size:15px}.details-grid{gap:10px}.details-grid>div{padding:14px;font-size:14px}.details-grid strong{font-size:25px}}
@media(max-width:360px){main{padding-left:12px;padding-right:12px}.sidebar{padding-left:12px;padding-right:12px}.brand-title{font-size:17px}.brand-logo{width:47px;height:47px}.brand-title em{font-size:11px}.mobile-header-help{font-size:12px;padding:7px 10px}.nav{font-size:11.5px}.card{padding:20px 16px}.page-heading h1{font-size:27px}.large .ball{width:31px;height:31px;font-size:19px}.balls.large{gap:5px}.metrics>.metric:last-child{display:block}.metrics>.metric:last-child strong{margin:8px 0;font-size:24px}.number-cell{min-height:65px}.number-cell strong{font-size:20px}.number-cell small{font-size:12px}.wheel-metrics{grid-template-columns:1fr}.wheel-metrics .metric strong{font-size:30px}.wheel-fields{grid-template-columns:1fr}.wheel-fields>label{grid-column:1/-1!important}.research-note .quick-actions{grid-template-columns:1fr}.segmented button{font-size:13px}.recent-row .ball{width:28px;height:28px;font-size:13px}.recent-row .ticket-balls{gap:4px}.wheel-quote{gap:16px}.metric{padding:15px}.candidate-row .ball{width:28px;height:28px;font-size:16px}.candidate-row .balls{gap:4px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*:before,*:after{animation:none!important;transition:none!important}}
/* Simple wheel workflow and grouped footer identity */
footer .footer-identity{display:flex;align-items:baseline;flex-wrap:wrap;gap:5px 16px;flex:1 1 620px;min-width:0}footer .footer-brand{white-space:nowrap;font-size:15px;color:#d6e0ce}footer .footer-reminder{flex:1 1 390px;margin:0;font-size:13px;line-height:1.9;color:#aebfab}.sidebar>.mobile-header-help{display:none}#wheelForm>.wheel-simple-budget,#wheelForm>.wheel-mode-choice,#wheelForm>.simple-hint,#wheelForm>.wheel-advanced{grid-column:1/-1}.wheel-simple-budget{display:flex;align-items:end;gap:22px}.wheel-simple-budget>label{width:min(320px,100%);font-size:18px;font-weight:600}.wheel-simple-budget input{font-size:25px;min-height:62px;padding:13px 16px}.wheel-simple-budget p{font-size:15px;color:var(--muted);margin:0 0 14px}.wheel-mode-choice{display:grid;grid-template-columns:1fr 1fr;gap:12px;max-width:620px}.wheel-mode-choice button{background:#11271d;border:1px solid #466044;border-radius:12px;padding:14px 18px;text-align:left;font-size:17px;color:#c5d5c4;min-height:80px}.wheel-mode-choice button small{display:block;color:#aebfab;font-size:13px;margin-top:4px}.wheel-mode-choice button.selected{border-color:#d1bc7f;background:#3c482c;color:#f0dda5;box-shadow:inset 0 0 0 1px #d1bc7f33}.wheel-mode-choice button.selected small{color:#d3d8bc}.simple-hint{font-size:15px;color:#c4d4bd;margin:0}.wheel-advanced{margin:0}.wheel-advanced>summary{font-size:14px;color:#c0cdb5}.wheel-advanced-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;padding-top:16px}.wheel-advanced-grid>.wheel-fields,.wheel-advanced-grid>label:has(textarea),.wheel-advanced-grid>.button-row,.wheel-advanced-grid>#wCompleteFields,.wheel-advanced-grid>#wModeNote,.wheel-advanced-grid>.wheel-scenario{grid-column:1/-1}.wheel-advanced-grid .wheel-fields{grid-template-columns:repeat(3,minmax(0,1fr))}.wheel-advanced-grid .fine{font-size:13px;font-weight:400}.wheel-more-results{padding:8px 25px}.wheel-more-results>summary{font-size:16px;font-weight:600}.wheel-more-results>.wheel-metrics{margin-top:20px}.wheel-more-results>.fine{margin:12px 0 18px}.wheel-more-results .table-scroll{margin:18px 0}.wheel-more-results .metric strong{font-size:25px}
@media(max-width:1100px){.sidebar>.mobile-header-help{display:inline-flex}}
@media(max-width:600px){footer .footer-identity{gap:5px 12px}footer .footer-reminder{flex-basis:100%}.wheel-simple-budget{display:block}.wheel-simple-budget>label{width:100%}.wheel-simple-budget p{margin:10px 0 0;font-size:14px}.wheel-mode-choice{gap:10px}.wheel-mode-choice button{padding:13px;font-size:16px;min-height:78px}.wheel-mode-choice button small{font-size:13px}.simple-hint{font-size:14px}.wheel-advanced-grid{grid-template-columns:1fr;gap:18px}.wheel-advanced-grid>*{grid-column:1/-1}.wheel-advanced-grid .wheel-fields{grid-template-columns:1fr}.wheel-advanced-grid .wheel-fields>label{grid-column:1/-1!important}.wheel-more-results{padding:6px 17px}.wheel-more-results>summary{font-size:15px}}
/* Footer help stays at the far right on every layout. */
footer>.footer-actions{margin-left:auto;justify-content:flex-end;flex:0 0 auto}
/* Keep the two-line brand lockup compact. */
.brand-title{line-height:1.15;row-gap:3px}.brand-title>span{display:block;line-height:1}.brand-title em{display:block;line-height:1.15}
