:root{--bg:#08070a;--panel:#0f1724;--muted:#97a6bd;--accent:#6c63ff;--accent-2:#4fb6ff;--text:#e6eef8;--card:linear-gradient(180deg,hsla(0,0%,100%,.02),hsla(0,0%,100%,.01));--radius:12px;--shadow:0 8px 30px rgba(2,6,23,.6);--success:#34d399}*{box-sizing:border-box}body,html{height:100%}body{font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif;background:radial-gradient(circle at 10% 10%,rgba(63,176,255,.06),transparent 20%),#071226;color:var(--text);margin:0}.container{max-width:1100px;margin:0 auto;padding:2rem}.sb-header{background:transparent;padding:.6rem 0;border-bottom:1px solid hsla(0,0%,100%,.03);position:-webkit-sticky;position:sticky;top:0;z-index:40;background:linear-gradient(180deg,rgba(8,7,10,.9),rgba(8,7,10,.6));-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}.sb-header-inner{max-width:1100px;margin:0 auto;display:flex;align-items:center;gap:1rem;padding:.6rem}.brand{color:var(--text);text-decoration:none;font-weight:700;font-size:1.3rem}.brand .brand-full{height:40px;width:auto;display:inline-block;vertical-align:middle}.header-actions{display:flex;gap:.5rem;align-items:center}.header-actions .profile{margin-left:18px}.bio-input{background:var(--panel);border:1px solid hsla(0,0%,100%,.04);color:var(--text);padding:.95rem 1rem;border-radius:8px}.avatar-img{width:28px;height:28px;border-radius:8px;object-fit:cover;display:block;border:2px solid hsla(0,0%,100%,.03);background:linear-gradient(135deg,var(--accent),var(--accent-2))}.btn{background:transparent;border:1px solid hsla(0,0%,100%,.06);color:var(--text);padding:.85rem 1.15rem;border-radius:12px;text-decoration:none;cursor:pointer;font-size:1rem;font-weight:600;transition:transform .08s ease,box-shadow .12s ease}.btn:active{transform:translateY(1px)}.btn:focus{outline:none;box-shadow:0 6px 18px rgba(2,6,23,.45),0 0 0 6px rgba(108,99,255,.06)}.btn-primary{background:linear-gradient(90deg,var(--accent),var(--accent-2));border:none;color:#fff;font-weight:700}.btn-sm{padding:.45rem .7rem;font-size:.9rem;border-radius:10px}.btn-ghost{background:transparent;border:none;color:var(--muted)}.search-form{flex:1 1;display:flex;gap:.5rem;align-items:center}.search-input{flex:1 1;padding:.7rem 1rem;border-radius:10px;border:1px solid hsla(0,0%,100%,.04);background:hsla(0,0%,100%,.02);color:var(--text)}.hero{padding:2rem 0;display:flex;align-items:center;justify-content:center;min-height:160px}.hero h2{font-size:1.5rem;color:#d8f1ff;font-weight:700;text-align:center;max-width:820px;margin:0 auto 1rem}.full-bleed{width:100vw;position:relative;left:50%;right:50%;margin-left:-50vw;margin-right:-50vw;padding-left:2rem;padding-right:2rem}.full-bleed h2,.full-bleed h3{text-align:left;margin-left:0}.full-bleed .script-list{max-width:calc(4 * 420px + 3 * .75rem);margin-left:2rem;margin-right:2rem;padding-left:0;justify-content:start!important}@media (min-width:1600px){.full-bleed .script-list{margin-left:auto;margin-right:auto;justify-content:center!important}}.script-list{list-style:none;padding:0;margin:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(420px,1fr));grid-gap:.75rem;gap:.75rem;justify-content:start;grid-auto-flow:dense}body,html{overflow-x:hidden;scrollbar-width:none;-ms-overflow-style:none}body::-webkit-scrollbar,html::-webkit-scrollbar{display:none;width:0;height:0}@media (max-width:900px){.script-list{grid-template-columns:repeat(auto-fill,minmax(220px,1fr));justify-content:center}}.script-card{background:linear-gradient(180deg,hsla(0,0%,100%,.02),rgba(0,0,0,.02));padding:0;border-radius:var(--radius);box-shadow:var(--shadow);border:1px solid hsla(0,0%,100%,.03);display:flex;flex-direction:column;justify-content:space-between;overflow:hidden;cursor:pointer}.script-card:focus{outline:none;box-shadow:0 8px 28px rgba(2,6,23,.5);transform:translateY(-1px)}.script-card:hover{transform:translateY(-2px);box-shadow:0 12px 34px rgba(2,6,23,.45)}.card-thumb{width:100%;height:200px;background-size:cover;background-position:50%;position:relative}.card-thumb-placeholder{width:100%;height:200px;display:flex;align-items:center;justify-content:center;background:linear-gradient(180deg,hsla(0,0%,100%,.02),rgba(0,0,0,.02));font-weight:700;color:var(--text);font-size:1rem}.card-thumb-overlay{position:absolute;left:8px;top:8px;right:18px;display:flex;justify-content:space-between;align-items:center}.thumb-stats{background:rgba(0,0,0,.55);padding:.32rem .6rem;border-radius:999px;display:inline-flex;align-items:center;gap:.5rem;font-weight:700}.thumb-time{background:rgba(0,0,0,.22);padding:.18rem .4rem;border-radius:8px;font-size:.82rem}.eye-icon{width:14px;height:14px;display:inline-block;vertical-align:middle}.script-card-top{display:flex;gap:.5rem;align-items:center;padding:.6rem}.script-title{font-size:1.02rem;margin:0}.script-card-body,.script-card-footer{padding:0 .75rem .75rem}.script-card-footer{justify-content:flex-start}.game-icon{width:64px;height:48px}.script-top{display:block}.hero-thumb{border-radius:12px;background-size:cover;background-position:50%;position:relative;overflow:hidden;align-items:flex-end}.hero-placeholder,.hero-thumb{width:100%;height:220px;display:flex}.hero-placeholder{align-items:center;justify-content:center;background:linear-gradient(180deg,hsla(0,0%,100%,.02),rgba(0,0,0,.02));font-weight:800;color:var(--text);font-size:1.2rem}.hero-overlay{position:absolute;left:12px;top:12px;right:12px;display:flex;justify-content:space-between;align-items:center;pointer-events:none}.hero-stats{background:rgba(0,0,0,.55);padding:.35rem .6rem;border-radius:999px;display:inline-flex;align-items:center;gap:.5rem;font-weight:700;pointer-events:auto}.hero-stats .eye-icon{width:14px;height:14px}.hero-time{background:rgba(0,0,0,.25);padding:.25rem .5rem;border-radius:8px;font-size:.9rem;pointer-events:auto}.comments-frame{position:relative;padding:1rem}.comments-frame .comments-locked{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;background:rgba(2,6,23,.6);color:var(--text);font-weight:700;border-radius:8px}.comment-input{width:100%;min-height:120px;padding:1rem;border-radius:8px;border:1px solid hsla(0,0%,100%,.04);background:hsla(0,0%,100%,.02);color:var(--text);resize:vertical;opacity:.6}.script-main{margin-top:.75rem}.stat-pill{background:hsla(0,0%,100%,.02);padding:.4rem .6rem;border-radius:999px;border:1px solid hsla(0,0%,100%,.03);font-weight:700}.uploader-card .avatar{width:44px;height:44px;border-radius:10px;background:linear-gradient(135deg,var(--accent),var(--accent-2));display:flex;align-items:center;justify-content:center;color:#fff;font-weight:800}.uploader-card .avatar img{width:100%;height:100%;object-fit:cover;border-radius:10px;display:block}.profile .avatar-img{width:28px;height:28px;border-radius:8px;object-fit:cover;display:block}.description-heading{margin:1rem 0 .5rem;font-weight:700}.description-box{background:linear-gradient(180deg,hsla(0,0%,100%,.01),hsla(0,0%,100%,0));padding:.6rem;border-radius:10px;margin-top:.5rem}.comments-box{background:hsla(0,0%,100%,.02);padding:1rem;border-radius:10px;color:var(--muted)}.modal-overlay{position:fixed;inset:0;background:rgba(0,0,0,.5);display:flex;align-items:center;justify-content:center;z-index:120}.modal-card{background:var(--panel);padding:1rem;border-radius:12px;max-width:520px;width:100%;box-shadow:var(--shadow);border:1px solid hsla(0,0%,100%,.04)}.toast{position:fixed;right:20px;bottom:20px;background:linear-gradient(90deg,var(--accent),var(--accent-2));padding:.6rem .9rem;box-shadow:0 8px 30px rgba(2,6,23,.6);z-index:130}.game-icon,.toast{color:#fff;border-radius:8px}.game-icon{width:44px;height:44px;background:linear-gradient(135deg,var(--accent),var(--accent-2));display:flex;align-items:center;justify-content:center;font-weight:700}.script-info{flex:1 1}.script-title{color:var(--text);text-decoration:none}.script-card-body{margin-top:.6rem;color:var(--muted)}.script-card-footer{display:flex;align-items:center;justify-content:space-between;margin-top:1rem}.footer-extras{margin-top:2rem;border-top:1px solid hsla(0,0%,100%,.03);padding-top:1rem;display:flex;flex-direction:column;gap:.6rem;align-items:center;text-align:center}.footer-extras h4{margin:0;color:var(--text);font-size:1rem}.footer-extras .tags{display:flex;gap:.75rem;flex-wrap:wrap;justify-content:center}.footer-extras .tag{background:hsla(0,0%,100%,.03);padding:.6rem .8rem;border-radius:999px;font-size:.95rem;color:var(--text);text-decoration:none}.sb-footer{flex-direction:column;gap:.6rem;padding:1.25rem 0}.profile,.sb-footer{display:flex;align-items:center}.profile{gap:.4rem}.profile .small{color:var(--muted)}.profile .profile-btn{background:transparent;border:none;padding:.2rem}.profile-dropdown{position:absolute;right:0;top:calc(100% + 8px);background:var(--panel);border-radius:8px;min-width:200px;border:1px solid hsla(0,0%,100%,.03);box-shadow:var(--shadow);overflow:hidden;z-index:120}.profile-dropdown .dropdown-item{display:block;padding:.6rem .8rem;color:var(--text);text-decoration:none}.profile-dropdown .dropdown-item:hover{background:hsla(0,0%,100%,.02)}.card{background:var(--panel);padding:1.6rem;border-radius:18px;border:1px solid hsla(0,0%,100%,.02);box-shadow:var(--shadow)}.card input[type=email],.card input[type=password],.card input[type=text],.form-panel input,.form-panel select{width:100%;padding:.95rem 1rem;border-radius:14px;border:1px solid hsla(0,0%,100%,.06);background:hsla(0,0%,100%,.03);color:var(--text);margin-top:.5rem;margin-bottom:1rem;font-size:1rem;transition:box-shadow .15s ease,border-color .12s ease;-webkit-appearance:none;-moz-appearance:none;appearance:none}.card input[type=email]:focus,.card input[type=password]:focus,.card input[type=text]:focus,.form-panel input:focus,.form-panel select:focus{outline:none;border-color:var(--accent-2);box-shadow:0 6px 20px rgba(79,182,255,.06),0 0 0 6px rgba(108,99,255,.05)}.card label{display:block;font-weight:700;margin-top:.5rem;color:var(--text);font-size:1.02rem}.card .small.muted{color:var(--muted);margin-top:.25rem}.form-label{display:block;font-weight:700;margin-top:.5rem;color:var(--text);font-size:1.02rem}.modern-card{background:var(--panel);padding:1.6rem;border-radius:18px;border:1px solid hsla(0,0%,100%,.02);box-shadow:var(--shadow)}.modern-input{width:100%;padding:.95rem 1rem;border-radius:12px;border:1px solid hsla(0,0%,100%,.06);background:hsla(0,0%,100%,.02);color:var(--text);margin-top:.5rem;margin-bottom:1rem;font-size:1rem;transition:box-shadow .15s ease,border-color .12s ease}.modern-input:focus{outline:none;border-color:var(--accent-2);box-shadow:0 10px 30px rgba(79,182,255,.06),0 0 0 6px rgba(108,99,255,.05)}.modern-btn{background:transparent;border:1px solid hsla(0,0%,100%,.06);color:var(--text);padding:.85rem 1.15rem;border-radius:12px;text-decoration:none;cursor:pointer;font-size:1rem;font-weight:600;transition:transform .08s ease,box-shadow .12s ease}.modern-btn:active{transform:translateY(1px)}.modern-btn:hover{transform:translateY(-1px);box-shadow:0 10px 24px rgba(2,6,23,.45)}.modern-btn.primary{background:linear-gradient(90deg,var(--accent),var(--accent-2));border:none;color:#fff;font-weight:700}.modern-btn.secondary{background:transparent;border:1px solid hsla(0,0%,100%,.06);color:var(--text)}.feature-grid{display:flex;gap:.75rem;flex-wrap:wrap;margin-top:.25rem}.feature-btn{display:flex;flex-direction:column;align-items:center;gap:.4rem;padding:.6rem .8rem;border-radius:12px;border:1px solid hsla(0,0%,100%,.04);background:linear-gradient(180deg,hsla(0,0%,100%,.01),transparent);cursor:pointer;width:140px;text-align:center;color:var(--text)}.feature-btn div{font-weight:700}.feature-btn.selected{border-color:var(--accent-2);box-shadow:0 10px 30px rgba(79,182,255,.06);transform:translateY(-2px);background:linear-gradient(90deg,var(--accent),var(--accent-2));color:#fff}.rules-list h3{margin-top:.6rem}.rules-list ul{margin-left:1rem}.tag-pill{background:hsla(0,0%,100%,.03);padding:.45rem .6rem;border-radius:999px;display:inline-flex;align-items:center;gap:.5rem}.tag-remove{background:transparent;border:none;color:var(--text);cursor:pointer;padding:0 .25rem;font-weight:700}.form-error{background:linear-gradient(180deg,hsla(0,100%,70%,.06),hsla(0,100%,70%,.02));border:1px solid hsla(0,100%,70%,.12);padding:.6rem .8rem;border-radius:10px;color:#fdd;margin-bottom:.75rem}.main-grid{display:grid;grid-template-columns:1fr 360px;grid-gap:1rem;gap:1rem}@media (max-width:980px){.main-grid{grid-template-columns:1fr}}.editor{background:var(--panel);padding:1rem;border-radius:var(--radius);border:1px solid hsla(0,0%,100%,.02)}@media (max-width:600px){.container{padding:1rem;max-width:100%}.sb-header-inner{padding:.4rem;gap:.5rem;align-items:center}.brand{font-size:1.05rem}.search-form{display:none}.header-actions{gap:.35rem;flex-wrap:wrap}.desktop-actions{display:flex;gap:.35rem;align-items:center}.mobile-menu-btn{display:block;width:36px;height:36px;border-radius:8px;background:transparent;border:1px solid hsla(0,0%,100%,.06);background-image:linear-gradient(180deg,hsla(0,0%,100%,.02),transparent)}.mobile-menu-btn:before{content:"";display:block;width:18px;height:2px;background:var(--text);border-radius:2px;box-shadow:0 6px 0 var(--text),0 -6px 0 var(--text)}.mobile-actions{position:absolute;top:calc(100% + 8px);right:8px;background:var(--panel);border:1px solid hsla(0,0%,100%,.03);border-radius:10px;box-shadow:var(--shadow);padding:.5rem;display:flex;flex-direction:column;gap:.25rem;z-index:120;min-width:160px}.mobile-actions .mobile-action{padding:.6rem .8rem;color:var(--text);text-decoration:none;border-radius:8px}.mobile-actions .mobile-action:hover{background:hsla(0,0%,100%,.02)}.btn,.form-panel input,.modern-btn,.modern-input{padding:.6rem .8rem;font-size:.95rem}.mobile-menu-btn{display:none}@media (max-width:600px){.desktop-actions{display:none}.brand{order:2;margin-left:0}.header-actions{order:1}.sb-header-inner{justify-content:space-between}.mobile-menu-btn{display:flex;order:1;align-items:center;justify-content:center;margin-right:8px;width:40px;height:40px;border-radius:10px}.sb-header .header-actions>.btn.btn-ghost,.sb-header .header-actions>.btn.btn-primary,.sb-header .header-actions>a.btn{display:none}.profile{order:3}}.header-actions>a.btn{display:none}.avatar-img{width:24px;height:24px}.uploader-card .avatar{width:40px;height:40px}.script-list{grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:.5rem}.card-thumb,.card-thumb-placeholder,.hero-thumb{height:140px}.hero-placeholder{font-size:1rem}.script-title{font-size:.98rem}.script-card{border-radius:10px}.modal-card{max-width:92%;padding:.8rem}.modal-card h2,.modal-card h3{font-size:1rem}.comment-input{min-height:100px}.editor textarea.editor-input{min-height:260px}.profile-dropdown{left:8px;right:8px;min-width:unset;width:calc(100% - 16px)}.full-bleed{padding-left:1rem;padding-right:1.5rem}.footer{padding:1.25rem 0}}@media (max-width:360px){.btn,.modern-btn{padding:.5rem .7rem;font-size:.9rem}.hero-thumb{height:120px}.script-list{grid-template-columns:repeat(auto-fill,minmax(140px,1fr))}}textarea.editor-input{width:100%;min-height:460px;max-height:900px;resize:vertical;background:linear-gradient(180deg,hsla(0,0%,100%,.02),rgba(0,0,0,.02));color:var(--text);border-radius:12px;padding:1.25rem;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Roboto Mono,Fira Code,monospace;font-size:1rem;border:1px solid hsla(0,0%,100%,.04);box-shadow:0 8px 30px rgba(2,6,23,.5)}.preview{background:#040a0f;padding:1rem;border-radius:8px;border:1px solid hsla(0,0%,100%,.02);max-height:420px;overflow:auto}.form-panel{background:var(--panel);padding:1rem;border-radius:var(--radius);border:1px solid hsla(0,0%,100%,.02)}.form-panel label{display:block;font-size:.9rem;color:var(--muted);margin-bottom:.25rem}.form-panel input,.form-panel select{width:100%;padding:.95rem 1rem;border-radius:14px;border:1px solid hsla(0,0%,100%,.06);background:hsla(0,0%,100%,.03);color:var(--text);margin-bottom:1rem;font-size:1rem}.form-row{display:flex;gap:.5rem}.form-row .col{flex:1 1}.small{font-size:.85rem}.meta,.small{color:var(--muted)}.meta{margin-top:.5rem}pre.code-block{background:#020611;padding:1rem;border-radius:8px;overflow:auto;color:#dff2ff;border:1px solid hsla(0,0%,100%,.02);font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Roboto Mono,Fira Code,monospace;font-size:.95rem}.actions{display:flex;gap:.5rem;margin-left:auto}.footer{padding:2rem 0;color:var(--muted);text-align:center}.copy-note{font-size:.85rem;color:var(--muted);margin-left:.5rem}.hidden{display:none}