:root{font-family:system-ui,Avenir,Helvetica,Arial,sans-serif;line-height:1.5;font-weight:400;color-scheme:light dark;color:#ffffffde;background-color:#242424;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}a{font-weight:500;color:#646cff;text-decoration:inherit}a:hover{color:#535bf2}body{margin:0;display:flex;place-items:center;min-width:320px;min-height:100vh}h1{font-size:3.2em;line-height:1.1}button{border-radius:8px;border:1px solid transparent;padding:.6em 1.2em;font-size:1em;font-weight:500;font-family:inherit;background-color:#1a1a1a;cursor:pointer;transition:border-color .25s}button:hover{border-color:#646cff}button:focus,button:focus-visible{outline:4px auto -webkit-focus-ring-color}@media (prefers-color-scheme: light){:root{color:#213547;background-color:#fff}a:hover{color:#747bff}button{background-color:#f9f9f9}}*{box-sizing:border-box}body{margin:0;padding:0;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;background:linear-gradient(135deg,#1e1e2e,#2d2d44);color:#e0e0e0;min-height:100vh}#root{max-width:1200px;margin:0 auto;padding:1rem;min-width:0}h2{text-align:center;color:#fff;font-size:clamp(1.8rem,4vw,2.5rem);margin:1.5rem 0;text-shadow:0 2px 4px rgba(0,0,0,.3);font-weight:300;line-height:1.2}.card{background:#ffffff0d;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border:1px solid rgba(255,255,255,.1);border-radius:12px;padding:1.5rem;margin:1.5rem 0;box-shadow:0 8px 32px #0003;transition:all .3s ease}.card:hover{box-shadow:0 12px 40px #0000004d}.row{display:flex;gap:1rem;align-items:end;flex-wrap:wrap}.row>div{flex:1;min-width:200px}label{display:block;margin-bottom:.5rem;font-weight:500;color:#b8b8d0;font-size:.9rem}input,select{width:100%;padding:.75rem;border:2px solid rgba(255,255,255,.1);border-radius:8px;background:#ffffff14;color:#fff;font-size:1rem;transition:all .3s ease}input:focus,select:focus{outline:none;border-color:#6366f1;box-shadow:0 0 0 3px #6366f11a;background:#ffffff1f}input::placeholder{color:#888}select option{background:#2d2d44;color:#fff}button{padding:.75rem 1.5rem;border:none;border-radius:8px;background:linear-gradient(135deg,#6366f1,#8b5cf6);color:#fff;font-size:1rem;font-weight:500;cursor:pointer;transition:all .3s ease;box-shadow:0 4px 12px #6366f14d;min-height:44px;min-width:44px}button:hover{box-shadow:0 6px 20px #6366f166;background:linear-gradient(135deg,#5855f0,#7c3aed)}button:active{transform:translateY(0)}button:disabled{background:#ffffff1a;color:#666;cursor:not-allowed;box-shadow:none}.table-container{overflow-x:auto;margin-top:1rem;border-radius:8px;box-shadow:0 4px 12px #0000001a;scrollbar-width:none;-ms-overflow-style:none}.table-container::-webkit-scrollbar{display:none}table{width:100%;min-width:500px;border-collapse:collapse;background:#ffffff08;border-radius:8px;overflow:hidden}thead{background:linear-gradient(135deg,#4f46e5,#7c3aed)}th{padding:1rem;text-align:left;font-weight:600;color:#fff;text-transform:uppercase;font-size:.85rem;letter-spacing:.5px}td{padding:.875rem 1rem;border-bottom:1px solid rgba(255,255,255,.05);color:#e0e0e0}tbody tr:hover{background:#ffffff0d}tbody tr:last-child td{border-bottom:none}.ok{color:#10b981;font-weight:600}.bad{color:#ef4444;font-weight:600}.muted{color:#9ca3af;font-size:.9rem;line-height:1.5}.mono{font-family:SF Mono,Monaco,Inconsolata,Roboto Mono,Consolas,Courier New,monospace;background:#ffffff14;padding:.25rem .5rem;border-radius:4px;font-size:.9rem}#cascade-summary{margin-bottom:.5rem}#cascade-out{background:#ffffff08;border:1px solid rgba(255,255,255,.08)}#slot-dist{max-height:300px;overflow-y:auto;padding:.5rem;background:#ffffff05;border-radius:6px;border:1px solid rgba(255,255,255,.05)}#slot-dist>div{padding:.25rem 0;border-bottom:1px solid rgba(255,255,255,.05)}#slot-dist>div:last-child{border-bottom:none}#out{background:#ffffff08;border-left:4px solid #6366f1}@media (max-width: 480px){#root{padding:.75rem}.row{flex-direction:column;gap:.75rem;align-items:stretch}.row>div{min-width:unset;width:100%;text-align:left}.card{padding:1rem;margin:1rem 0}table{font-size:.85rem}th,td{padding:.6rem .4rem}th{font-size:.75rem}.slot-display{flex-direction:column;align-items:flex-start;gap:.25rem}.slot-legend{flex-direction:column;gap:.5rem;align-items:flex-start}button{padding:1rem 1.5rem;font-size:1.1rem;width:100%}input,select{padding:1rem .75rem;font-size:1.1rem}label{font-size:1rem;margin-bottom:.75rem}.results-container{align-items:center}.probability-section{width:100%;display:flex;justify-content:center}.slot-section{width:100%;text-align:center}.slot-distribution{text-align:center;max-width:400px;margin:0 auto}.slot-distribution-header h4{text-align:center}.slot-legend{justify-content:center}.slot-list{align-items:center}.slot-item{max-width:350px;margin:0 auto .5rem}.no-selection-message,.no-slots-message{text-align:center;max-width:400px;margin:0 auto}#cascade-out,#out{max-width:100%;overflow-x:hidden}}@media (min-width: 481px) and (max-width: 768px){.results-container{align-items:center}.probability-section{width:100%;display:flex;justify-content:center}.slot-section{width:100%;text-align:center}.slot-distribution{text-align:center;max-width:500px;margin:0 auto}.slot-distribution-header h4{text-align:center}.slot-legend{justify-content:center}.slot-list{align-items:center}.slot-item{max-width:450px;margin:0 auto .5rem}.no-selection-message,.no-slots-message{text-align:center;max-width:500px;margin:0 auto}#cascade-out,#out{max-width:100%;overflow-x:hidden}.table-container{width:100%;max-width:100%}}@media (max-width: 768px){.row{flex-direction:column;align-items:stretch}.row>div{min-width:unset;width:100%;text-align:left}.card{padding:1.25rem;margin:1.25rem 0}table{font-size:.9rem}th,td{padding:.75rem .5rem}.slot-item{flex-direction:column;align-items:flex-start;gap:.5rem}.slot-probability{align-items:flex-start}}::-webkit-scrollbar{width:8px}::-webkit-scrollbar-track{background:#ffffff0d;border-radius:4px}::-webkit-scrollbar-thumb{background:#fff3;border-radius:4px}::-webkit-scrollbar-thumb:hover{background:#ffffff4d}.results-container{display:flex;gap:1.5rem;align-items:flex-start}.probability-section{flex:1;min-width:0}.slot-section{flex:1;min-width:300px}.no-selection-message{color:#888;font-style:italic;text-align:center;padding:2rem;background:#ffffff05;border-radius:12px;border:1px solid rgba(255,255,255,.05)}@media (max-width: 1024px){.results-container{flex-direction:column;gap:1rem}.slot-section{min-width:0}}.slot-distribution{margin-top:0}.slot-distribution-header h4{margin:0 0 .5rem;color:#fff;font-size:1.2rem;font-weight:500}.slot-legend{margin:0 0 1rem;font-size:.85rem;color:#b0b0b0;display:flex;gap:1.5rem;align-items:center}.legend-item{display:flex;align-items:center;gap:.3rem}.slot-list{display:flex;flex-direction:column;gap:.5rem}.slot-item{display:flex;justify-content:space-between;align-items:center;padding:.75rem;background:#ffffff08;border:1px solid rgba(255,255,255,.08);border-radius:8px;transition:all .2s ease}.slot-item:hover{background:#ffffff0f;border-color:#ffffff26;transform:translateY(-1px)}.slot-display{display:flex;align-items:center;gap:.5rem;flex-wrap:wrap}.slot-group{display:inline-flex;align-items:center;gap:.2rem;padding:.25rem .5rem;border-radius:6px;font-size:.85rem;font-weight:500}.weapon-slot{background:#dc783c33;border:1px solid rgba(220,120,60,.4);color:#ffb380}.armor-slot{background:#4682dc33;border:1px solid rgba(70,130,220,.4);color:#80b3ff}.slot-icon{font-size:1rem;line-height:1}.slot-level{font-weight:600;min-width:.8rem;text-align:center}.no-slots{color:#888;font-style:italic;font-size:.9rem}.slot-probability{display:flex;flex-direction:column;align-items:flex-end;gap:.1rem}.probability-main{font-weight:600;font-size:1rem;color:#fff}.probability-odds{font-size:.75rem;color:#b0b0b0;white-space:nowrap}.no-slots-message{color:#888;font-style:italic;text-align:center;padding:1rem;background:#ffffff05;border-radius:8px;border:1px solid rgba(255,255,255,.05)}
