:root{color-scheme:dark;--navy:#071827;--navy2:#0b2233;--panel:#0e2434;--stroke:#294152;--text:#f5e9d7;--muted:#a6b8c5;--gold:#f3c455;--amber:#eba832;--red:#8f2021;--black:#080e15;--green:#005c50}
*{box-sizing:border-box}body{margin:0;background:linear-gradient(180deg,#03101c,#0a2030 45%,#061723);color:var(--text);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;font-size:15px;-webkit-font-smoothing:antialiased}button,select,input{font:inherit}button:focus-visible,select:focus-visible,label:focus-visible{outline:3px solid var(--gold);outline-offset:3px}.app{max-width:560px;margin:auto;padding:calc(env(safe-area-inset-top) + 20px) 16px calc(env(safe-area-inset-bottom) + 34px)}
.header{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:0 3px 22px}.brand{display:flex;gap:11px;align-items:center}.brand-emblem{color:#fbd779;font-size:32px;line-height:1}.eyebrow{color:var(--muted);font-size:10px;letter-spacing:.16em;font-weight:800;margin:0 0 6px}.brand h1{font-size:23px;letter-spacing:.03em;line-height:1;margin:0;font-weight:850}.brand h1 span{color:var(--gold)}.status-pill{border:1px solid #395164;background:#0c2737;border-radius:100px;font-size:11px;white-space:nowrap;font-weight:750;color:#afc9d4;padding:8px 11px}
.upload-card,.frequency-card,.review-card{border:1px solid var(--stroke);border-radius:20px;background:linear-gradient(135deg,#112b3c,#0c1e2d);padding:17px;margin-bottom:18px;box-shadow:0 11px 38px rgba(0,0,0,.14)}.section-row{display:flex;align-items:flex-start;justify-content:space-between;gap:9px}.section-row h2{margin:0 0 13px;font-size:19px;letter-spacing:-.015em}.counter{font-size:11px;color:#cfdbe3;border:1px solid #375364;border-radius:10px;padding:6px 9px;white-space:nowrap;margin-top:5px}.upload-button,.primary-button{display:flex;align-items:center;justify-content:center;gap:11px;background:linear-gradient(110deg,#ffe08b,#d79d29);color:#22200f;border:0;border-radius:13px;font-weight:900;min-height:53px;padding:11px 17px;width:100%;cursor:pointer;box-shadow:0 5px 24px #b88d2333;letter-spacing:.015em}.upload-icon{font-size:22px}.button-arrow{margin-left:auto;font-size:25px;font-weight:450}.upload-button{justify-content:flex-start}#file-input{position:absolute;opacity:0;pointer-events:none;width:1px;height:1px}.helper{color:#a9bbc8;line-height:1.55;font-size:12.5px;margin:12px 2px 3px}.helper b{color:#e6edf1}.progress{margin-top:13px;padding:10px 13px;background:#071b2b;color:#c4d1db;border-radius:11px;font-size:12px;line-height:1.5;border:1px solid #173247}.alerts{padding:10px 12px;margin-top:10px;background:#54371d;border:1px solid #9b7435;border-radius:11px;color:#ffe6b4;font-size:12.5px;line-height:1.4}.alerts[hidden],.photo-preview[hidden],.review-card[hidden]{display:none}.photo-preview{margin-top:13px;border-radius:12px;overflow:hidden;max-height:135px;background:#05131e}.photo-preview img{width:100%;max-height:135px;object-fit:contain;display:block}
.wheel-section{margin:20px auto}.wheel-header{padding:0 5px}.gold-badge{color:#f9d26b;background:#45361666;border:1px solid #b38a34;border-radius:18px;padding:7px 11px;font-size:11px;font-weight:850;white-space:nowrap}.selector-wrap{border-radius:15px;background:#102a3b;border:1px solid #385066;padding:12px;margin-bottom:12px}.selector-wrap>label{display:block;font-size:11px;color:#e9c365;letter-spacing:.16em;font-weight:850;margin:0 0 8px}.select-shell{position:relative}.select-shell select{appearance:none;-webkit-appearance:none;background:#07192a;border:1px solid #a47c32;border-radius:10px;color:#fff1c2;width:100%;height:49px;padding:0 36px 0 14px;font-size:14px;font-weight:760;outline-offset:2px}.select-shell select:disabled{color:#728896;border-color:#3a4a57}.select-shell>span{position:absolute;right:14px;top:6px;font-size:25px;color:#e3bd62;pointer-events:none}
.wheel-panel{background:radial-gradient(ellipse at 50% 40%,#0f3147,#051525 68%);border-radius:21px;border:1px solid #294455;padding:4px 0 8px;display:flex;justify-content:center;overflow:hidden}.wheel-panel svg{width:min(100%,394px);height:auto;max-height:none;display:block}.wheel-pocket{stroke:#87939b;stroke-width:2.45;stroke-linejoin:round;transition:fill .15s,filter .15s}.wheel-pocket.active{stroke:#fff4a2;stroke-width:3;filter:drop-shadow(0px 0px 8px #ffca4d99)}.wheel-number{font-family:Arial,Helvetica,sans-serif;fill:#f2e3d2;font-size:47px;font-weight:400;text-anchor:middle;dominant-baseline:middle;pointer-events:none}.wheel-number.active{fill:#2a1e08;font-weight:700}.wheel-interior{stroke:#8d9aa2;stroke-width:3}.legend{display:flex;align-items:center;justify-content:center;gap:14px;flex-wrap:wrap;font-size:11px;color:var(--muted);margin-top:12px}.legend span{display:flex;gap:7px;align-items:center}.legend i{width:11px;height:11px;display:inline-block;border-radius:50%}.dot-gold{background:var(--gold)}.dot-dark{background:#151b22;border:1px solid #8c9caa}
.frequency-card{margin-top:25px}.table-wrap{width:100%;overflow:hidden;border-radius:11px;border:1px solid #304657}.frequency-card table{width:100%;border-collapse:collapse;font-size:14px}.frequency-card th{font-size:10px;letter-spacing:.13em;color:#8faebc;background:#071927;padding:12px 15px;text-align:left}.frequency-card th:last-child{text-align:right}.frequency-card td{padding:10px 15px;border-top:1px solid #263e4c}.frequency-card td:first-child{color:#acbdc8;width:21%}.frequency-card td:nth-child(2){font-weight:850;font-size:17px}.frequency-card td:last-child{text-align:right;font-weight:750;color:#eee3c7}.frequency-card tr.top{background:#3f351a4d}.frequency-card tr.top td:nth-child(2),.frequency-card tr.top td:last-child{color:#f6d27f}.empty-table{text-align:center!important;font-size:12px!important;font-weight:normal!important;padding:24px 8px!important;color:#9eb2c0!important}
.secondary-button,.reset-button{border:1px solid #4d6574;background:#162e3f;border-radius:13px;color:#f2dfbb;width:100%;padding:13px;min-height:47px;font-weight:820;letter-spacing:.02em;cursor:pointer}.secondary-button:disabled{opacity:.45;cursor:not-allowed}.frequency-card .secondary-button{margin-top:14px;font-size:12px}.reset-button{border-color:#684851;color:#e9cad1;background:#271a26;font-size:13px;min-height:54px;margin-bottom:18px}.footer-note{font-size:11px;line-height:1.5;color:#8496a7;text-align:center;padding:0 20px}
.text-button{background:transparent;border:0;color:#d6b35a;font-size:12px;white-space:nowrap;padding:7px}.review-stats{font-size:12px;color:#f5d588;margin:12px 0}.spin-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px;margin:10px 0 15px}.spin{border:1px solid #395063;border-radius:9px;padding:6px 2px;background:#091a28;min-height:52px;color:#f8e9d3;cursor:pointer;position:relative}.spin b{display:block;font-size:15px}.spin small{display:block;font-size:9px;color:#90a8b4;margin-bottom:2px}.spin.needs-check{border:2px solid #eea342;background:#463118}.spin.corrected{border-color:#67a99a}.form-error{min-height:14px;color:#ef9999;font-size:12px}dialog{border:1px solid #5a7180;border-radius:17px;background:#0d2637;color:var(--text);padding:20px;width:calc(100% - 34px);max-width:350px;box-shadow:0 18px 65px #0009}dialog::backdrop{background:#030b14cb}.dialog-head{display:flex;justify-content:space-between;align-items:center}.x-button{background:transparent;border:0;color:#f7e5d2;font-size:22px;padding:7px}dialog h2{margin:8px 0 12px}#edit-number{width:100%;height:60px;border:1px solid #8a7747;background:#071b2a;color:#ffdf85;border-radius:11px;padding:0 15px;font-size:27px;font-weight:800;margin:12px 0}#edit-form .primary-button{margin-top:10px}.dialog-actions{display:flex;gap:8px;margin-top:17px}.dialog-actions>*{flex:1;min-width:0;font-size:11px}.primary-button.danger{background:#c75d61;color:#170a0d}
@media(min-width:500px){.app{padding-left:24px;padding-right:24px}.wheel-panel svg{width:420px}}@media(max-width:350px){.brand h1{font-size:19px}.brand-emblem{font-size:25px}.section-row h2{font-size:17px}.wheel-panel svg{width:100%}}
