:root{font-family:Pretendard,system-ui,-apple-system,BlinkMacSystemFont,sans-serif;line-height:1.5;font-weight:400;color-scheme:light;color:#334155;background-color:#f0f4f8;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}body{margin:0;min-width:320px;min-height:100vh}*{margin:0;padding:0;box-sizing:border-box}body{font-family:Pretendard,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;background:#0a0a0f;color:#f1f5f9;min-height:100vh;font-size:16px}.app{display:grid;grid-template-columns:1fr 320px;grid-template-rows:auto auto 1fr;min-height:100vh}.header{grid-column:1 / -1;background:#111118;padding:22px 40px;border-bottom:1px solid rgba(255,255,255,.06)}.header h1{font-size:24px;color:#f1f5f9;margin-bottom:4px;font-weight:600;letter-spacing:-.5px}.header p{font-size:14px;color:#ffffff59;font-weight:400}.progress-container{grid-column:1 / -1;background:#111118;padding:12px 40px 14px;border-bottom:1px solid rgba(255,255,255,.06)}.progress-bar{height:3px;background:linear-gradient(90deg,#6366f1,#818cf8);border-radius:2px;transition:width .5s ease}.progress-label{display:block;margin-top:8px;font-size:14px;color:#818cf8;font-weight:500}.main{padding:28px 40px;overflow-y:auto;max-height:calc(100vh - 90px);background:#0a0a0f}.section{margin-bottom:20px;background:#13131a;border:1px solid rgba(255,255,255,.06);border-radius:12px;padding:24px;transition:border-color .2s}.section:hover{border-color:#ffffff1a}.section h2{font-size:18px;color:#e2e8f0;margin-bottom:16px;padding-bottom:12px;border-bottom:1px solid rgba(255,255,255,.06);font-weight:600;letter-spacing:-.3px}.section h3{font-size:16px;color:#cbd5e1;margin-bottom:10px;font-weight:600}.section.final{border-color:#6366f14d;box-shadow:0 0 20px #6366f10d}textarea{width:100%;min-height:240px;background:#0a0a0f;border:1px solid rgba(255,255,255,.08);border-radius:10px;padding:16px;color:#f1f5f9;font-size:15px;resize:vertical;font-family:inherit;margin-bottom:14px;line-height:1.8;transition:border-color .2s}textarea:focus{outline:none;border-color:#6366f166}textarea::placeholder{color:#64748b}.input-group{display:flex;gap:10px;margin-top:14px}.input-group input{flex:1;background:#0a0a0f;border:1px solid rgba(255,255,255,.08);border-radius:8px;padding:12px 16px;color:#f1f5f9;font-size:15px;transition:border-color .2s}.input-group input:focus{outline:none;border-color:#6366f166}.input-group select{background:#0a0a0f;border:1px solid rgba(255,255,255,.08);border-radius:8px;padding:12px 16px;color:#f1f5f9;font-size:15px}button{background:#6366f1;color:#fff;border:none;border-radius:8px;padding:12px 24px;font-size:15px;cursor:pointer;transition:all .15s;font-weight:500;white-space:nowrap}button:hover:not(:disabled){background:#5558e6}button:disabled{opacity:.35;cursor:not-allowed}.skip-option{margin-top:16px;padding:16px;background:#f59e0b0f;border:1px dashed rgba(245,158,11,.25);border-radius:8px}.skip-option p{font-size:14px;color:#fbbf24;margin-bottom:12px}.skip-button{background:#f59e0b26;color:#fbbf24;border:1px solid rgba(245,158,11,.25)}.skip-button:hover:not(:disabled){background:#f59e0b40}.result-box{background:#0a0a0f;border:1px solid rgba(255,255,255,.06);border-radius:10px;padding:18px;white-space:pre-wrap;word-break:break-word;font-size:15px;line-height:1.8;max-height:500px;overflow-y:auto;color:#e2e8f0}.result-box.final-script{max-height:700px;font-size:15px;line-height:1.9;border-color:#6366f126}.reroll-btn{float:right;background:#ffffff0f;color:#94a3b8;font-size:13px;padding:6px 14px;border-radius:6px;border:1px solid rgba(255,255,255,.06)}.reroll-btn:hover:not(:disabled){background:#ffffff1a;color:#e2e8f0}.past-banner{display:flex;align-items:center;justify-content:space-between;padding:12px 16px;background:#6366f10f;border:1px solid rgba(99,102,241,.15);border-radius:8px;margin-bottom:16px;color:#818cf8;font-size:14px;font-weight:500}.back-current-btn{background:#6366f126;color:#818cf8;font-size:13px;padding:6px 14px;border:1px solid rgba(99,102,241,.2)}.elapsed{color:#f59e0b;font-size:13px;font-weight:400}.loading{display:flex;align-items:center;gap:16px;padding:20px;background:#13131a;border-radius:10px;border:1px solid rgba(255,255,255,.06)}.loading-info{display:flex;flex-direction:column;gap:4px}.loading-info p{color:#818cf8;font-weight:500;font-size:15px}.loading-elapsed{font-size:13px;color:#64748b;font-weight:400}.spinner{width:22px;height:22px;border:2px solid rgba(255,255,255,.06);border-top:2px solid #6366f1;border-radius:50%;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.error{background:#ef444414;border:1px solid rgba(239,68,68,.2);border-radius:8px;padding:14px 18px;color:#f87171;font-size:14px;margin-bottom:16px;font-weight:500}.log-panel{background:#111118;border-left:1px solid rgba(255,255,255,.06);padding:20px 16px;overflow-y:auto;max-height:calc(100vh - 90px);display:flex;flex-direction:column}.log-panel h3{font-size:12px;color:#94a3b8;margin-bottom:12px;text-transform:uppercase;letter-spacing:1.5px;font-weight:600}.history-section{margin-bottom:16px;padding-bottom:14px;border-bottom:1px solid rgba(255,255,255,.04)}.history-list{display:flex;flex-direction:column;gap:2px}.history-item{display:flex;align-items:center;gap:10px;padding:8px 10px;border-radius:6px;cursor:pointer;transition:all .12s;font-size:13px;color:#94a3b8}.history-item:hover{background:#ffffff0a;color:#e2e8f0}.history-item.current{background:#6366f114;color:#818cf8;border-left:2px solid #6366f1}.history-item.viewing{background:#6366f10d;color:#6366f1;border-left:2px solid #4f46e5}.history-dot{width:6px;height:6px;border-radius:50%;background:#475569;flex-shrink:0}.history-item.current .history-dot{background:#6366f1;box-shadow:0 0 6px #6366f166}.history-item.viewing .history-dot{background:#4f46e5}.history-content{flex:1;display:flex;flex-direction:column;min-width:0}.history-label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:500}.history-time{font-size:11px;color:#64748b}.history-badge{font-size:11px;background:#6366f126;color:#818cf8;padding:2px 8px;border-radius:4px;flex-shrink:0;font-weight:600}.log-content{display:flex;flex-direction:column;gap:2px;flex:1;overflow-y:auto}.log-entry{font-size:12px;color:#94a3b8;padding:5px 8px;border-radius:4px;transition:all .12s;font-family:SF Mono,Fira Code,monospace}.log-entry.clickable{cursor:pointer}.log-entry.clickable:hover{color:#818cf8;background:#6366f10f}::-webkit-scrollbar{width:5px}::-webkit-scrollbar-track{background:#ffffff0d}::-webkit-scrollbar-thumb{background:#c8b4ff66;border-radius:3px}::-webkit-scrollbar-thumb:hover{background:#c8b4ff99}.mode-select{display:grid;grid-template-columns:repeat(3,1fr);gap:24px;max-width:960px;margin:0 auto}.mode-wrapper{display:flex;align-items:center;justify-content:center;min-height:calc(100vh - 200px);padding-top:10vh}.mode-btn{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:24px;padding:80px 32px;background:#0a0a0f;border:1px solid rgba(255,255,255,.06);border-radius:16px;cursor:pointer;transition:all .2s;color:#94a3b8}.mode-btn:hover{border-color:#6366f14d;background:#6366f10a}.mode-btn.active{border-color:#6366f166;background:#6366f10f}.mode-icon{font-size:72px;opacity:.6}.mode-title{font-size:28px;font-weight:600;color:#e2e8f0}.mode-desc{font-size:18px;color:#94a3b8;text-align:center;line-height:1.5}.back-btn{float:right;background:#ffffff0a;color:#94a3b8;font-size:13px;padding:5px 12px;border-radius:6px;border:1px solid rgba(255,255,255,.06)}.back-btn:hover:not(:disabled){color:#e2e8f0;background:#ffffff14}.mode-nav{margin-bottom:16px;padding-bottom:14px;border-bottom:1px solid rgba(255,255,255,.04)}.mode-nav-list{display:flex;flex-direction:column;gap:3px}.mode-nav-item{display:flex;align-items:center;gap:10px;padding:10px 12px;border-radius:6px;cursor:pointer;font-size:13px;color:#94a3b8;transition:all .12s;background:none;border:none;width:100%;text-align:left;font-weight:500}.mode-nav-item:hover{background:#ffffff0a;color:#e2e8f0}.mode-nav-item.active{background:#6366f114;color:#818cf8}.mode-nav-icon{font-size:16px;width:22px;text-align:center}.mode-nav-label{flex:1}.mode-nav-badge{font-size:11px;background:#22c55e26;color:#4ade80;padding:2px 8px;border-radius:4px;font-weight:600}@media(max-width:768px){.app{grid-template-columns:1fr}.log-panel{display:none}.main{padding:16px}.mode-select{grid-template-columns:1fr}}
