:root{--bg-start: #ebf4f5;--bg-end: #efe6fc;--text-color: #2d3436;--container-bg: rgba(255, 255, 255, .75);--button-bg: #6c5ce7;--button-hover-bg: #5849be;--disabled-bg: #b2bec3;--font-family: "Poppins", sans-serif;--input-bg: #ffffff;--border-color: rgba(0, 0, 0, .08)}*{box-sizing:border-box;margin:0;padding:0}body{font-family:var(--font-family);background:linear-gradient(135deg,var(--bg-start),var(--bg-end));background-attachment:fixed;color:var(--text-color);min-height:100vh;display:flex;flex-direction:column}#confetti-canvas{position:fixed;top:0;left:0;width:100%;height:100%;pointer-events:none;z-index:2000}.app-header{width:100%;background-color:#fff;height:70px;padding:0 2rem;display:flex;align-items:center;justify-content:space-between;box-shadow:0 4px 12px #0000000d;position:sticky;top:0;z-index:100}.logo-wrapper{display:flex;align-items:center;gap:.8rem}.logo-wrapper svg{height:42px;width:auto}.app-header h1{font-size:1.5rem;font-weight:700;color:#2d3436;margin:0}.header-buttons{display:flex;gap:.75rem}#app-layout{position:relative;display:flex;flex-direction:column;gap:2rem;padding:3rem 1rem 2rem;width:100%;align-items:center;flex:1}#main-content-wrapper{display:flex;flex-direction:column;gap:2rem;width:100%;align-items:center}.icon-btn{display:flex;align-items:center;justify-content:center;padding:.5rem;background-color:#fff;border:1px solid var(--border-color);width:44px;height:44px;border-radius:12px;color:#444;box-shadow:0 2px 8px #0000000d;transition:all .2s ease;cursor:pointer}.icon-btn:hover{background-color:var(--button-bg);color:#fff;border-color:var(--button-bg);transform:translateY(-1px);box-shadow:0 4px 12px #6c5ce740}.panel{background:var(--container-bg);padding:1.5rem;border-radius:24px;box-shadow:0 10px 40px -10px #00000014;backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);border:1px solid rgba(255,255,255,.8);width:100%;max-width:700px;text-align:center}#wheel-section{display:flex;flex-direction:column;align-items:center;width:100%}.description{font-size:1.1rem;margin-bottom:1.5rem;opacity:.8;color:#636e72}.preset-group{margin-bottom:1rem;width:100%}.preset-group select{width:100%;padding:.75rem 1rem;border:1px solid var(--border-color);background:var(--input-bg);border-radius:12px;color:var(--text-color);font-family:var(--font-family);font-size:1rem;box-shadow:inset 0 2px 4px #00000005;transition:border-color .2s;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;background-image:url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%236C5CE7' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 1rem center}.preset-group select:focus{outline:none;border-color:var(--button-bg)}.input-group{display:flex;gap:.5rem;margin-bottom:1rem}#option-input{flex-grow:1;padding:.75rem 1rem;border:1px solid var(--border-color);background:var(--input-bg);border-radius:12px;color:var(--text-color);font-family:var(--font-family);font-size:1rem;box-shadow:inset 0 2px 4px #00000005;transition:border-color .2s}#option-input:focus{outline:none;border-color:var(--button-bg)}#option-input::placeholder{color:#b2bec3}#options-list-container{min-height:120px;max-height:300px;overflow-y:auto;background:#f8f9fa;border-radius:12px;padding:.75rem;margin-bottom:1rem;border:1px solid var(--border-color);text-align:left}#options-list{list-style:none}.option-item{background:#fff;padding:.6rem .8rem;border-radius:8px;display:flex;justify-content:space-between;align-items:center;margin-bottom:.5rem;word-break:break-all;box-shadow:0 2px 4px #00000005;border:1px solid rgba(0,0,0,.03)}.option-item:last-child{margin-bottom:0}.remove-btn{background:transparent;border:none;color:#ff7675;font-size:1.2rem;font-weight:700;cursor:pointer;padding:0 .25rem 0 .75rem;line-height:1;opacity:.8;transition:all .2s ease}.remove-btn:hover{opacity:1;color:#d63031}.controls-buttons{display:flex;gap:1rem;justify-content:space-between}.controls-buttons button{flex-grow:1}button{padding:.75rem 1.5rem;border:none;border-radius:12px;background-color:var(--button-bg);color:#fff;font-family:var(--font-family);font-size:1.1rem;font-weight:600;cursor:pointer;transition:all .3s cubic-bezier(.25,.8,.25,1);box-shadow:0 4px 12px #6c5ce733}button:hover:not(:disabled){background-color:var(--button-hover-bg);transform:translateY(-2px);box-shadow:0 8px 16px #6c5ce74d}button:disabled{background-color:var(--disabled-bg);cursor:not-allowed;opacity:.7;box-shadow:none;transform:none}#clear-btn{background-color:#ffeaa7;color:#d35400;box-shadow:0 4px 12px #fdcb6e33}#clear-btn:hover{background-color:#fdcb6e;box-shadow:0 8px 16px #fdcb6e4d}#error-message{color:#d63031;margin-bottom:1rem;background:#d630311a;padding:.5rem 1rem;border-radius:8px}.hidden{display:none}.wheel-container{position:relative;width:clamp(280px,90vw,600px);margin:1rem auto;display:flex;justify-content:center;align-items:center}.pointer{position:absolute;top:-19px;left:50%;transform:translate(-50%);width:50px;height:45px;background-image:url("data:image/svg+xml,%3Csvg width='50' height='45' viewBox='0 0 50 45' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 5 L45 5 L25 40 Z' fill='%23444444' stroke='%23444444' stroke-width='7' stroke-linejoin='round'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:center;background-size:contain;z-index:10;filter:drop-shadow(0 4px 6px rgba(0,0,0,.2))}#wheel{width:100%;height:auto;border-radius:50%;box-shadow:0 0 20px #00000026;transition:box-shadow .3s ease}.wheel-center{position:absolute;width:18%;aspect-ratio:1;background:#fff;border-radius:50%;top:50%;left:50%;transform:translate(-50%,-50%);z-index:5;box-shadow:0 8px 24px #00000026;border:6px solid #ffffff;display:flex;justify-content:center;align-items:center;cursor:pointer;-webkit-user-select:none;user-select:none;transition:transform .2s ease,box-shadow .3s ease}.wheel-center span{font-size:clamp(1rem,4vw,1.5rem);font-weight:700;color:var(--button-bg);letter-spacing:1px;text-transform:uppercase}.wheel-center:not(.disabled):hover{transform:translate(-50%,-50%) scale(1.05);box-shadow:0 12px 32px #6c5ce740}.wheel-center.disabled{cursor:not-allowed;background:#f1f2f6}.wheel-center.disabled span{color:#b2bec3}.modal-overlay{position:fixed;top:0;left:0;width:100%;height:100%;background-color:#2d343666;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);z-index:1000;display:none;justify-content:center;align-items:center;opacity:0;transition:opacity .3s ease-in-out;padding:1rem}.library-actions{margin-bottom:2rem;display:flex;justify-content:center}.primary-btn{background-color:var(--button-bg);color:#fff;border:none;padding:.75rem 1.5rem;border-radius:12px;font-family:var(--font-family);font-weight:600;cursor:pointer;transition:background-color .2s;box-shadow:0 4px 12px #6c5ce733}.primary-btn:hover{background-color:var(--button-hover-bg)}.library-list-container{text-align:left;margin-bottom:2rem;max-height:300px;overflow-y:auto}.library-list-container h3{font-size:1.1rem;margin-bottom:1rem;color:#636e72;border-bottom:1px solid var(--border-color);padding-bottom:.5rem}.library-list{list-style:none;padding:0;margin:0}.library-item{display:flex;justify-content:space-between;align-items:center;padding:.75rem;background:var(--input-bg);border:1px solid var(--border-color);border-radius:12px;margin-bottom:.5rem;transition:transform .2s,box-shadow .2s}.library-item:hover{transform:translateY(-2px);box-shadow:0 4px 12px #0000000d}.wheel-info{display:flex;flex-direction:column;cursor:pointer;flex-grow:1}.wheel-name{font-weight:600;color:var(--text-color)}.wheel-date{font-size:.8rem;color:#b2bec3}.item-actions{display:flex;gap:.5rem}.load-btn,.delete-btn{padding:.4rem .8rem;border-radius:8px;font-size:.9rem;cursor:pointer;border:none;transition:opacity .2s}.load-btn{background-color:#00b894;color:#fff}.delete-btn{background-color:#ff7675;color:#fff}.load-btn:hover,.delete-btn:hover{opacity:.9}.empty-state{text-align:center;color:#b2bec3;padding:1rem;font-style:italic}.modal-overlay.show{display:flex;opacity:1}.modal-content{background:#fff;color:var(--text-color);padding:2.5rem;border-radius:24px;box-shadow:0 20px 60px #0000001a;text-align:center;max-width:90%;width:450px;transform:scale(.9);transition:transform .3s cubic-bezier(.175,.885,.32,1.275);border:1px solid #f1f2f6}.modal-content.wide-modal{width:600px;max-height:85vh;display:flex;flex-direction:column}.modal-overlay.show .modal-content{transform:scale(1)}.modal-content h2{font-size:clamp(1.5rem,5vw,2rem);margin-bottom:1.5rem;color:#2d3436}#winner-modal .modal-content{background:linear-gradient(135deg,#fff,#f0f3f4);width:auto;min-width:450px;max-width:90vw}.winner-box{border:2px dashed var(--button-bg);border-radius:16px;padding:2rem 1.5rem;margin-bottom:2rem;background-color:#6c5ce70d}#winner-name{font-size:clamp(2rem,8vw,3rem);font-weight:700;color:var(--button-bg);word-break:normal;overflow-wrap:break-word;text-shadow:2px 2px 0px rgba(0,0,0,.05)}#close-modal-btn,#close-settings-btn{width:100%}.settings-container{display:flex;flex-direction:column;gap:1.5rem;margin-bottom:2rem;text-align:left}.setting-control{display:flex;align-items:center;gap:1rem}.setting-control label{flex-basis:120px;flex-shrink:0;font-weight:600;color:#636e72}.setting-value{font-weight:600;width:30px;text-align:right;color:var(--button-bg)}select{flex-grow:1;padding:.6rem;border:1px solid var(--border-color);background:#fff;border-radius:8px;color:var(--text-color);font-family:var(--font-family);font-size:1rem;cursor:pointer}select:focus{outline:none;border-color:var(--button-bg)}input[type=range]{-webkit-appearance:none;-moz-appearance:none;appearance:none;width:100%;height:6px;background:#dfe6e9;border-radius:5px;outline:none;transition:opacity .2s}input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;-moz-appearance:none;appearance:none;width:22px;height:22px;background:var(--button-bg);border-radius:50%;cursor:pointer;border:3px solid white;box-shadow:0 2px 5px #0003;transition:transform .1s}input[type=range]::-webkit-slider-thumb:hover{transform:scale(1.1)}.info-panel,.faq-panel{text-align:left;background:#fff;box-shadow:0 8px 32px #00000008}.info-panel{margin-top:2rem}.info-panel h2,.faq-panel h2{font-size:1.5rem;margin-bottom:.75rem;padding-bottom:.5rem;border-bottom:1px solid #f1f2f6;color:var(--button-bg)}.info-panel h2:not(:first-child){margin-top:2rem}.info-panel p,.how-to-list{line-height:1.8;color:#636e72}.how-to-list{list-style:decimal inside;padding-left:0}.how-to-list li{margin-bottom:.75rem}.how-to-list strong{font-weight:600;color:#2d3436}.faq-accordion{margin-top:1.5rem}.faq-item{border-bottom:1px solid #f1f2f6}.faq-item:last-child{border-bottom:none}.faq-question{width:100%;text-align:left;background:transparent;border:none;padding:1.25rem 0;font-family:var(--font-family);font-size:1.05rem;font-weight:600;color:#2d3436;display:flex;justify-content:space-between;align-items:center;cursor:pointer;box-shadow:none;transition:color .2s ease;border-radius:0;-webkit-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent}button.faq-question:hover,button.faq-question:focus,button.faq-question:active{background:transparent!important;color:var(--button-bg)!important;box-shadow:none!important;transform:none!important;outline:none}.faq-question .icon{font-size:1.5rem;font-weight:400;color:#b2bec3;transition:transform .3s ease,color .3s ease;line-height:1}.faq-item.active .faq-question .icon{transform:rotate(45deg);color:var(--button-bg)}.faq-answer{max-height:0;overflow:hidden;transition:max-height .3s cubic-bezier(.4,0,.2,1)}.answer-content{padding-bottom:1.25rem;color:#636e72;line-height:1.6;font-size:.95rem}.app-footer{background-color:#2d3436;color:#b2bec3;padding:1.5rem;text-align:center;font-size:.9rem;width:100%}.app-footer a{color:#fff;text-decoration:none;font-weight:600;transition:color .2s}.app-footer a:hover{color:var(--button-bg)}@media(min-width:1000px){#app-layout{padding:4rem 2rem 2rem}#main-content-wrapper{display:grid;flex-direction:initial;align-items:start;grid-template-columns:1fr 400px;gap:5rem 2rem;width:100%;max-width:1400px}.panel{width:100%;padding:2rem}#wheel-section{grid-column:1;grid-row:1;justify-self:center;width:100%;max-width:100%;display:flex;justify-content:center}.wheel-container{width:100%;max-width:700px}#controls-container{grid-column:2;grid-row:1 / span 3;position:sticky;top:6rem;max-width:none}.info-panel{grid-column:1;grid-row:2;justify-self:center;max-width:800px;width:100%}.faq-panel{grid-column:1;grid-row:3;justify-self:center;max-width:800px;width:100%}}
