@font-face{font-family:Instrument;src:url('assets/instrument-serif.ttf') format('truetype');font-display:swap}
@font-face{font-family:Instrument;src:url('assets/instrument-serif-italic.ttf') format('truetype');font-style:italic;font-display:swap}
@font-face{font-family:Manrope;src:url('assets/manrope.ttf') format('truetype');font-weight:200 800;font-display:swap}
:root{color-scheme:dark;--bg:#131411;--surface:#1b1c18;--input:#22231e;--line:#33342b;--text:#f1eee4;--muted:#aba99a;--gold:#ddbc75;--gold-dark:#8c7549;--serif:Instrument,Georgia,serif;--sans:Manrope,Arial,sans-serif}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);font:13px/1.6 var(--sans);-webkit-font-smoothing:antialiased}button,input,select{font:inherit}button,a,input,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.45}button,input,select{color:inherit}button{border:0}a{color:inherit}button svg,svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}button{touch-action:manipulation}input,select{min-width:0;caret-color:var(--gold)}input::placeholder{color:#a09f91}::selection{background:var(--gold);color:var(--bg)}:focus-visible{outline:2px solid var(--gold);outline-offset:4px}input:focus-visible,select:focus-visible{outline-offset:1px}*{scrollbar-width:thin;scrollbar-color:#6d644b var(--surface)}.svg-defs{position:absolute;width:0;height:0;overflow:hidden}.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}.page{width:min(1180px,calc(100% - 96px));margin:auto}.topbar{height:100px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:20px}.wordmark{display:flex;align-items:center;gap:10px;font:italic 45px/.9 var(--serif);text-decoration:none;letter-spacing:-.03em}.brand-spark{width:32px;height:32px;color:var(--gold);stroke-width:1}.brand-period{color:var(--gold);margin-left:-11px}.header-note{color:var(--muted);font-size:12px;margin-left:30px}.sound-button{display:flex;align-items:center;gap:9px;background:transparent;color:var(--muted);padding:9px 0 9px 12px;font-size:12px}.sound-button:hover{color:var(--gold)}.sound-button svg{width:17px;height:17px}.sound-dot{width:5px;height:5px;border-radius:50%;background:#77786b;margin-left:5px}.sound-button[aria-pressed=true] .sound-dot{background:var(--gold)}.intro{display:flex;justify-content:space-between;align-items:flex-end;gap:20px;margin:43px 0 32px}h1,h2,p{margin:0}h1{font:normal clamp(42px,4.5vw,62px)/1.1 var(--serif);letter-spacing:-.025em}h1 em{color:var(--gold);font-weight:400}.intro p{color:var(--muted);font-size:13px;margin-top:12px}.saved-note{display:flex;align-items:center;gap:7px;color:var(--muted);font-size:11px;padding-bottom:4px;white-space:nowrap}.saved-note svg{width:14px;height:14px;color:var(--gold)}.workspace{display:grid;grid-template-columns:minmax(0,1fr) 366px;gap:65px;align-items:start}.wheel-panel{text-align:center;position:relative;padding:0 14px 0 0}.wheel-stage{width:min(100%,535px);aspect-ratio:1;position:relative;margin:-4px auto 0}.wheel-stage:before{content:'';position:absolute;inset:12%;border-radius:50%;box-shadow:0 25px 70px #0008}.wheel-orbit{position:absolute;inset:0;border:1px solid #343329;border-radius:50%}.wheel-orbit:after,.wheel-orbit:before{content:'';position:absolute;left:50%;width:3px;height:3px;background:var(--gold);border-radius:50%;transform:translateX(-50%)}.wheel-orbit:before{top:-2px}.wheel-orbit:after{bottom:-2px}canvas{display:block;width:100%;height:100%;position:relative;will-change:transform}.pointer{position:absolute;z-index:3;top:0;left:50%;transform:translate(-50%,-2px);filter:drop-shadow(0 4px 3px #0008)}.pointer svg{width:28px;height:38px;fill:var(--gold);stroke:#f5dca6;stroke-width:1}.wheel-hub{position:absolute;inset:calc(50% - 39px);border-radius:50%;background:radial-gradient(circle at 35% 25%,#38372e,#1e201a 75%);color:var(--gold);box-shadow:0 5px 12px #0008,0 0 0 1px #b59554,0 0 0 7px #171913,0 0 0 8px #8b7648;display:flex;align-items:center;justify-content:center;transition:color .2s}.wheel-hub:hover{color:#fff2d1}.wheel-hub svg{width:36px;height:36px;stroke-width:1}.wheel-result{margin:20px auto 18px;min-height:64px}.result-caption{font-size:11px;color:var(--muted)}.wheel-result p{font:normal 31px/1.25 var(--serif);margin:3px 0 0;overflow-wrap:anywhere}.wheel-result.is-winner p{color:var(--gold)}.wheel-result.is-winner{animation:reveal .45s ease-out}.spin-button{height:56px;max-width:330px;width:100%;padding:0 22px;display:flex;align-items:center;justify-content:space-between;margin:auto;background:var(--gold);color:#252319;border-radius:8px;font-weight:800;box-shadow:0 5px 18px #0003;transition:background .2s,transform .2s}.spin-button:hover:not(:disabled){background:#edcd8b;transform:translateY(-2px)}.spin-button:active:not(:disabled){transform:translateY(1px)}.spin-button svg{width:19px}.spin-hint{font-size:11px;color:var(--muted);margin-top:13px}kbd{font:11px var(--sans);border:1px solid #4c4b3d;border-radius:3px;padding:1px 5px;margin:0 3px;color:#c5c1ae}.options-panel{background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:25px 24px 22px;margin-top:5px}.panel-heading{display:flex;align-items:center;justify-content:space-between;gap:8px}.panel-heading h2{font:normal 27px/1.2 var(--serif);letter-spacing:-.02em}.count-badge{font-size:11px;color:var(--gold);background:#d9b86c0d;border:1px solid #65573a;padding:2px 8px;border-radius:20px;white-space:nowrap}.panel-description{color:var(--muted);font-size:11px;margin-top:7px}.field-label{display:block;margin-top:23px;font-size:11px;letter-spacing:.13em;color:var(--muted);font-weight:700}.name-input{background:transparent;border:0;border-bottom:1px solid #414134;width:100%;font-size:14px;padding:8px 0 11px;margin-bottom:20px}.list-heading{display:flex;align-items:center;justify-content:space-between;color:var(--muted);font-size:11px;font-weight:700;letter-spacing:.13em;margin-bottom:10px}.text-button{padding:3px 0;background:none;color:var(--muted);font-size:11px;display:inline-flex;gap:5px;align-items:center;text-decoration-thickness:1px;text-underline-offset:4px}.text-button:hover{color:var(--gold);text-decoration:underline}.text-button svg{width:12px;height:12px}.list-heading .text-button{letter-spacing:0;font-weight:400}.option-list{list-style:none;margin:0;padding:0;display:grid;gap:7px;max-height:333px;overflow-y:auto}.option-row{display:flex;align-items:center;gap:10px;background:var(--input);border:1px solid #35362c;border-radius:6px;padding:0 9px 0 12px;min-height:40px;transition:border-color .2s}.option-row:focus-within{border-color:var(--gold-dark)}.option-dot{width:8px;height:8px;border-radius:50%;flex-shrink:0}.option-row input{flex:1;width:100%;background:transparent;border:0;font-size:12px;padding:9px 0;outline:0}.option-row:has(input:focus-visible){outline:2px solid var(--gold);outline-offset:1px}.delete-option{width:28px;height:30px;background:none;display:grid;place-items:center;color:#b4b0a0;border-radius:4px}.delete-option svg{width:13px;height:13px}.delete-option:hover{color:#f0c4ac;background:#ffffff08}.add-form{display:flex;align-items:center;min-height:41px;border:1px dashed #5e5845;border-radius:6px;margin-top:9px;padding:0 5px 0 12px;gap:5px}.add-form:focus-within{border-color:var(--gold);border-style:solid}.add-form input{border:0;background:none;padding:9px 0;flex:1;width:100%;font-size:11px;outline:0}.add-form button{width:30px;height:30px;display:grid;place-items:center;background:#d9b86c12;color:var(--gold);border-radius:4px}.add-form button:hover{background:#d9b86c25}.add-form svg{width:16px;height:16px}.form-message{font-size:11px;color:#efbf9f;line-height:1.4}.form-message:not(:empty){margin-top:8px}.editor-footer{margin-top:19px;padding-top:17px;border-top:1px solid var(--line)}.remove-setting{display:flex;align-items:center;gap:9px;font-size:11px;cursor:pointer;position:relative}.remove-setting input{position:absolute;opacity:0;width:29px;height:18px;left:0}.toggle-track{width:29px;height:17px;border-radius:12px;background:#46473c;position:relative;flex-shrink:0;transition:background .2s}.toggle-track:after{content:'';position:absolute;left:3px;top:3px;width:11px;height:11px;border-radius:50%;background:#d2cdbb;transition:transform .2s}.remove-setting input:checked+.toggle-track{background:var(--gold)}.remove-setting input:checked+.toggle-track:after{transform:translateX(12px);background:#28261e}.remove-setting input:focus-visible+.toggle-track{outline:2px solid var(--gold);outline-offset:4px}.editor-footer p{color:var(--muted);font-size:11px;margin-top:11px}.preset-area{margin-top:18px;padding-top:15px;border-top:1px solid var(--line)}.preset-area label{color:var(--muted);font-size:11px;display:block;margin-bottom:6px}select{width:100%;background:var(--input);border:1px solid #3c3d31;border-radius:5px;padding:9px 10px;font-size:11px;cursor:pointer}.preset-area p{font-size:11px;color:var(--gold);margin-top:9px}.preset-area p button{color:var(--gold);margin-right:10px}.history-section{margin-top:47px;border-top:1px solid var(--line);padding-top:24px}.history-heading,.history-heading>div{display:flex;align-items:center;gap:10px}.history-heading{justify-content:space-between}.history-heading svg{width:16px;height:16px;color:var(--gold)}.history-heading h2{font:normal 23px/1.2 var(--serif)}.history-heading span{color:var(--muted);font-size:11px;margin-left:5px}.history-list{margin-top:18px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0 24px}.empty-history{font-size:12px;color:var(--muted);padding:5px 0 15px;grid-column:1/-1}.history-item{padding:13px 0;border-bottom:1px solid #2c2e25;display:flex;gap:10px;align-items:center;min-width:0}.history-number{font-size:11px;color:#a2987e;min-width:20px;font-variant-numeric:tabular-nums}.history-item .option-dot{width:6px;height:6px}.history-detail{flex:1;min-width:0}.history-detail strong{font-size:12px;font-weight:500;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.history-detail small{font-size:11px;color:var(--muted);display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.history-item time{font-size:11px;color:var(--muted);font-variant-numeric:tabular-nums}.show-history{margin-top:14px}footer{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-top:48px;padding:23px 0 28px;border-top:1px solid var(--line);color:var(--muted);font-size:11px}.footer-brand{font:italic 19px var(--serif);color:#b9b5a5}.footer-spark{color:var(--gold);margin-left:12px;font-size:16px}.confetti{position:fixed;inset:0;pointer-events:none;overflow:hidden;z-index:5}.confetti i{position:absolute;top:-12px;left:var(--left);width:5px;height:11px;background:var(--color);animation:fall var(--duration) var(--delay) ease-out both}.is-spinning .pointer{animation:tick .13s infinite alternate}.is-spinning .wheel-hub svg{animation:hub-pulse 1.5s ease-in-out infinite}.options-empty{padding:25px 12px;text-align:center;color:var(--muted);font-size:12px;border:1px dashed #55513f;border-radius:6px}.options-empty strong{display:block;font:24px var(--serif);color:var(--text);margin-bottom:7px}[hidden]{display:none!important}@keyframes fall{to{transform:translate(var(--drift),105vh) rotate(var(--turn));opacity:0}}@keyframes tick{to{transform:translate(-50%,-2px) rotate(-5deg)}}@keyframes hub-pulse{50%{opacity:.4}}@keyframes reveal{from{transform:translateY(8px);opacity:.4}to{transform:translateY(0);opacity:1}}
@media(min-width:1450px){.page{width:1180px}.intro{margin-top:48px}.workspace{gap:85px}.wheel-stage{width:550px}}
@media(max-width:1000px){.page{width:calc(100% - 56px)}.workspace{gap:28px;grid-template-columns:minmax(0,1fr) 330px}.options-panel{padding:22px 20px}.wheel-panel{padding:0}.wheel-stage{margin-top:20px}.wheel-result{margin-top:25px}.intro h1{font-size:48px}.saved-note{font-size:11px}.history-list{grid-template-columns:repeat(2,minmax(0,1fr))}.spin-button{max-width:290px}}
@media(max-width:740px){.page{width:calc(100% - 40px);max-width:520px}.topbar{height:78px}.wordmark{font-size:40px}.brand-spark{width:27px;height:27px}.header-note{display:none}.sound-button{font-size:11px}.intro{margin:31px 0 20px;display:block}.intro h1{font-size:45px;line-height:1.05;max-width:340px}.intro p{font-size:12px;max-width:310px;line-height:1.7;margin-top:13px}.saved-note{margin-top:15px;font-size:11px}.workspace{display:flex;flex-direction:column;gap:32px}.wheel-panel{width:100%}.wheel-stage{margin:3px auto 0;max-width:430px}.wheel-hub{inset:calc(50% - 30px);box-shadow:0 5px 12px #0008,0 0 0 1px #b59554,0 0 0 5px #171913,0 0 0 6px #8b7648}.wheel-hub svg{width:29px;height:29px}.pointer svg{width:23px;height:31px}.wheel-result{margin:17px auto;min-height:63px}.spin-button{max-width:100%}.spin-hint{margin-top:12px}.options-panel{width:100%;padding:24px;margin-top:0}.option-list{max-height:335px}.option-row{min-height:44px}.option-row input{font-size:13px}.delete-option{height:36px;width:32px}.add-form{min-height:44px}.add-form input{font-size:12px}.name-input{font-size:15px}.history-section{margin-top:32px}.history-list{grid-template-columns:1fr;margin-top:12px}.history-heading h2{font-size:22px}.history-heading{gap:4px}.history-heading>div{gap:7px}.history-heading span{font-size:11px;margin:0}.history-heading .text-button{font-size:11px}.history-item{padding:12px 0}.history-detail strong{font-size:13px}.history-detail small{font-size:11px}.history-item time{font-size:11px}footer{margin-top:30px;align-items:flex-start;flex-direction:column;gap:7px;padding:22px 0}.footer-brand{font-size:18px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important}.confetti{display:none}.spin-hint{visibility:hidden}}

.panel-description,.editor-footer p,.empty-history{font-size:12px}.remove-setting{font-size:12px}.preset-area label{font-size:11px}

.footer-spark{width:14px;height:14px;vertical-align:middle}

@media(max-width:740px){.options-panel input,.options-panel select{font-size:16px}.panel-heading,.history-heading{flex-wrap:wrap}.panel-heading h2{font-size:26px}}
