@import "https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700;800&family=Rajdhani:wght@500;600;700&display=swap";:root{color:#e9eaf0;font-synthesis:none;text-rendering:optimizelegibility;--bg:#101114;--panel:#17191e;--panel-2:#1d2027;--panel-3:#242832;--line:#2b2f39;--muted:#858b99;--text:#e9eaf0;--accent:#d8a35d;--accent-2:#edbd79;background:#101114;font-family:DM Sans,sans-serif}*{box-sizing:border-box}body{background:var(--bg);min-width:320px;margin:0}button,input,textarea,select{font:inherit}button{cursor:pointer}.app-shell{background:radial-gradient(ellipse at 50% -20%, #6e553621, transparent 48%), var(--bg);min-height:100vh}.topbar{z-index:20;-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);background:#101114f0;border-bottom:1px solid #262930;justify-content:space-between;align-items:center;height:70px;padding:0 max(50vw - 660px,28px);display:flex;position:sticky;top:0}.brand{color:inherit;align-items:center;gap:11px;text-decoration:none;display:flex}.brand-mark{color:#1c1712;background:linear-gradient(145deg,#e6b56e,#a76e35);border-radius:9px;place-items:center;width:37px;height:37px;font-size:22px;font-weight:800;display:grid;box-shadow:0 4px 18px #bd88422b}.brand-mark.small{border-radius:6px;width:25px;height:25px;font-size:15px}.brand-copy{flex-direction:column;gap:1px;display:flex}.brand-title{letter-spacing:1.6px;font:700 17px Rajdhani,sans-serif}.brand-subtitle{color:#858b99;letter-spacing:1.65px;font-size:9px;font-weight:700}.top-nav{align-items:center;gap:30px;height:100%;display:flex}.nav-link{color:#969ba7;border-bottom:2px solid #0000;align-items:center;height:100%;padding-top:2px;font-size:13px;font-weight:600;text-decoration:none;display:flex}.nav-link.active{color:#f0c17e;border-color:#d6a25d}.top-actions{align-items:center;gap:12px;display:flex}.icon-button{color:#aeb3bf;background:0 0;border:1px solid #0000;border-radius:8px;place-items:center;width:36px;height:36px;display:grid}.icon-button:hover{color:#fff;background:#252932;border-color:#353a45}.admin-button,.primary-button{color:#17130e;background:linear-gradient(135deg,#e9bd7c,#c58e4d);border:1px solid #bd8b4c;border-radius:7px;justify-content:center;align-items:center;gap:8px;padding:9px 14px;font-size:12px;font-weight:800;display:inline-flex;box-shadow:0 3px 12px #bd88421c}.admin-button:hover,.primary-button:hover{filter:brightness(1.08)}.main-content{max-width:1320px;margin:0 auto;padding:0 28px 35px}.hero{border-bottom:1px solid #292d35;padding:43px 0 28px}.hero-kicker{color:#d5a25f;letter-spacing:1.7px;align-items:center;gap:8px;font-size:10px;font-weight:800;display:flex}.live-dot,.status-dot{background:#6fbd87;border-radius:50%;width:7px;height:7px;box-shadow:0 0 10px #6fbd8755}.hero-heading-row{justify-content:space-between;align-items:flex-end;gap:25px;margin-top:12px;display:flex}h1{letter-spacing:-.7px;margin:0;font:700 clamp(34px,5vw,48px)/1 Rajdhani,sans-serif}h1 span{color:#e2ad69}.hero-description{color:#9298a5;margin:10px 0 0;font-size:13px}.hero-stats{gap:26px;padding-bottom:2px;display:flex}.hero-stats div{flex-direction:column;gap:3px;min-width:65px;display:flex}.hero-stats strong{color:#f1c27f;font:700 21px Rajdhani,sans-serif}.hero-stats span{color:#858b98;font-size:10px}.mode-section{border-bottom:1px solid #292d35;padding:23px 0 21px}.section-label,.legend-title{color:#7e8491;letter-spacing:1.5px;font-size:9px;font-weight:800}.mode-tabs{flex-wrap:wrap;gap:8px;margin-top:12px;display:flex}.mode-tab{color:#a5aab5;background:#191c22;border:1px solid #2b303a;border-radius:7px;align-items:center;gap:9px;padding:11px 15px;font-size:12px;font-weight:700;transition:all .15s;display:flex;position:relative}.mode-tab:hover{color:#f0d1a3;border-color:#64513a}.mode-tab.selected{color:#edc080;background:linear-gradient(#30271d,#211e1a);border-color:#9c7545;box-shadow:inset 0 0 0 1px #8d66352b}.tab-indicator{background:#e1ad69;border-radius:3px;height:2px;position:absolute;bottom:-1px;left:15px;right:15px}.tier-toolbar{justify-content:space-between;align-items:center;gap:18px;padding:25px 0 15px;display:flex}.current-mode-title{font:700 22px Rajdhani,sans-serif}.current-mode-subtitle{color:#858b98;margin-top:2px;font-size:11px}.toolbar-actions{align-items:center;gap:9px;display:flex}.search-box{color:#858b98;background:#191c22;border:1px solid #303540;border-radius:7px;align-items:center;gap:8px;height:35px;padding:0 10px;display:flex}.search-box:focus-within{border-color:#9a7549}.search-box input{color:#e9eaf0;background:0 0;border:0;outline:0;width:170px;font-size:11px}.search-box input::placeholder{color:#737987}.subtle-button{color:#c2c6cf;background:#20232a;border:1px solid #343945;border-radius:7px;justify-content:center;align-items:center;gap:7px;padding:8px 11px;font-size:11px;font-weight:700;display:inline-flex}.subtle-button:hover{color:#f0c17e;border-color:#756044}.tier-legend{background:#17191e;border:1px solid #282c34;border-radius:7px;flex-wrap:wrap;align-items:center;gap:11px;margin-bottom:19px;padding:10px 12px;display:flex}.legend-title{margin-right:5px}.legend-chip{color:#aeb3bd;align-items:center;gap:5px;font-size:10px;font-weight:700;display:flex}.legend-chip i{border-radius:2px;width:7px;height:7px;display:inline-block}.roles-list{flex-direction:column;gap:26px;display:flex}.role-block{min-width:0}.role-heading{align-items:center;gap:11px;margin:0 0 10px 1px;display:flex}.role-icon{color:#e4b575;background:#28231d;border:1px solid #4a3927;border-radius:8px;place-items:center;width:34px;height:34px;display:grid}.role-heading h2{letter-spacing:.2px;margin:0;font:700 18px Rajdhani,sans-serif}.role-heading p{color:#858b98;margin:1px 0 0;font-size:10px}.tier-rows{flex-direction:column;gap:5px;display:flex}.tier-row{background:#17191e;border:1px solid #2b3039;border-radius:7px;grid-template-columns:112px minmax(0,1fr);min-height:88px;transition:border-color .15s,background .15s;display:grid;overflow:hidden}.tier-row.drag-over{background:#211e19;border-color:#d7a25f}.tier-label{background:color-mix(in srgb,var(--tier-color) 17%,#1a1b20);border-right:1px solid #30333a;flex-direction:column;justify-content:center;align-items:center;gap:3px;display:flex;position:relative}.tier-label:before{content:"";background:var(--tier-color);width:3px;position:absolute;top:0;bottom:0;left:0}.tier-label strong{color:var(--tier-color);font:700 22px Rajdhani,sans-serif}.tier-label span{color:#9297a1;text-align:center;padding:0 5px;font-size:9px}.tier-content{align-items:center;min-width:0;padding:8px 11px;display:flex}.empty-tier{color:#666d7a;padding:0 7px;font-size:10px;font-style:italic}.character-grid{flex-wrap:wrap;align-items:flex-start;gap:12px;display:flex}.character-card{cursor:grab;border-radius:6px;flex-direction:column;align-items:center;gap:5px;width:70px;padding:3px;transition:background .15s,transform .15s;display:flex}.character-card:hover{background:#292d36;transform:translateY(-2px)}.character-card:active{cursor:grabbing}.portrait-wrap{background:linear-gradient(145deg,#353a45,#22252d);border:1px solid #424854;border-radius:7px;width:56px;height:56px;position:relative;overflow:hidden}.portrait-wrap img{object-fit:contain;width:100%;height:100%}.portrait-placeholder{color:#707987;place-items:center;height:100%;display:grid}.portrait-edit{color:#f1c17c;opacity:0;background:#141519dc;border-radius:4px;place-items:center;width:18px;height:18px;display:grid;position:absolute;bottom:3px;right:3px}.character-card:hover .portrait-edit{opacity:1}.character-name{color:#c9cdd5;text-align:center;overflow-wrap:anywhere;width:100%;font-size:9px;line-height:1.25}.unranked-panel{background:#17191e;border:1px solid #2b3039;border-radius:8px;margin-top:28px;padding:16px}.unranked-heading{justify-content:space-between;align-items:center;margin-bottom:12px;display:flex}.unranked-heading h3{margin:0;font:700 16px Rajdhani,sans-serif}.unranked-heading p{color:#858b98;margin:2px 0 0;font-size:10px}.unranked-heading>span{color:#c7ccd5;background:#292d36;border-radius:5px;place-items:center;min-width:25px;height:23px;font-size:10px;font-weight:700;display:grid}.unranked-list{flex-wrap:wrap;gap:7px;display:flex}.unranked-chip{color:#c5cad3;background:#22262e;border:1px solid #343a46;border-radius:5px;align-items:center;gap:6px;padding:5px 8px;font-size:10px;display:flex}.unranked-chip img{object-fit:contain;border-radius:3px;width:20px;height:20px}.unranked-chip svg:last-child{color:#858b98}.empty-unranked{color:#737987;font-size:10px}.footer{color:#737987;border-top:1px solid #292d35;align-items:center;gap:15px;margin-top:35px;padding:18px 0 0;font-size:9px;display:flex}.footer-brand{color:#c0c4cd;letter-spacing:.8px;align-items:center;gap:7px;font:700 11px Rajdhani,sans-serif;display:flex}.footer-version{margin-left:auto}.drawer-backdrop,.modal-backdrop{z-index:50;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);background:#07080bc9;justify-content:flex-end;display:flex;position:fixed;inset:0}.editor-drawer{background:#15171c;border-left:1px solid #353a45;flex-direction:column;width:min(510px,100%);height:100%;animation:.2s ease-out slide-in;display:flex;box-shadow:-20px 0 60px #0007}@keyframes slide-in{0%{opacity:.7;transform:translate(30px)}to{opacity:1;transform:translate(0)}}.drawer-header,.modal-header{border-bottom:1px solid #2b3039;justify-content:space-between;align-items:center;padding:20px 22px;display:flex}.drawer-eyebrow{color:#d4a363;letter-spacing:1.4px;font-size:9px;font-weight:800}.drawer-header h2,.modal-header h2{margin:3px 0 0;font:700 24px Rajdhani,sans-serif}.drawer-content{flex:1;padding:17px 22px 25px;overflow-y:auto}.editor-notice{color:#b7a17f;background:#292319;border:1px solid #57452d;border-radius:6px;align-items:flex-start;gap:9px;padding:11px;font-size:10px;line-height:1.5;display:flex}.editor-notice svg{flex-shrink:0;margin-top:1px}.editor-section{border-bottom:1px solid #2a2e36;padding:19px 0}.editor-section-heading{justify-content:space-between;align-items:center;margin-bottom:12px;display:flex}.editor-section-heading h3{margin:0;font:700 16px Rajdhani,sans-serif}.editor-section-heading p{color:#858b98;margin:2px 0 0;font-size:10px}.small-button{padding:7px 10px;font-size:10px}.character-admin-list{flex-direction:column;gap:6px;display:flex}.admin-character{background:#1e2128;border:1px solid #2e333d;border-radius:6px;align-items:center;gap:9px;padding:7px;display:flex}.admin-character>img,.admin-placeholder{object-fit:contain;background:#303540;border-radius:5px;flex-shrink:0;width:37px;height:37px}.admin-placeholder{color:#818997;place-items:center;display:grid}.admin-character-copy{flex-direction:column;flex:1;gap:3px;min-width:0;display:flex}.admin-character-copy strong{color:#e0e3e9;font-size:11px}.admin-character-copy span{color:#858b98;text-overflow:ellipsis;white-space:nowrap;font-size:9px;overflow:hidden}.icon-button.compact{width:29px;height:29px}.icon-button.danger:hover{color:#ed8b83;border-color:#77443f}.empty-admin{color:#858b98;flex-direction:column;align-items:center;gap:7px;padding:22px 10px;font-size:10px;display:flex}.empty-admin strong{color:#cbd0d8;font-size:12px}.empty-users{color:#d8aa6b;background:#30271d;border-radius:50%;place-items:center;width:42px;height:42px;display:grid}.placement-form{flex-direction:column;gap:11px;display:flex}.field-label{color:#c5cad3;flex-direction:column;gap:6px;font-size:10px;font-weight:700;display:flex}.field-label input,.field-label textarea,.field-label select{color:#e4e7ed;resize:vertical;background:#20232a;border:1px solid #373d49;border-radius:6px;outline:none;width:100%;padding:10px;font-size:11px}.field-label input:focus,.field-label textarea:focus,.field-label select:focus{border-color:#a77b49}.field-label input::placeholder,.field-label textarea::placeholder{color:#737987}.field-label select option{background:#20232a}.form-two-col{grid-template-columns:1fr 1fr;gap:10px;display:grid}.full{width:100%}.primary-button:disabled{opacity:.45;cursor:not-allowed}.backup-actions{grid-template-columns:1fr 1fr;gap:8px;display:grid}.drawer-footer{background:#17191e;border-top:1px solid #2b3039;justify-content:space-between;align-items:center;padding:13px 22px;display:flex}.drawer-footer>span{color:#89919e;align-items:center;gap:7px;font-size:9px;display:flex}.text-danger-button{color:#d7837b;background:0 0;border:0;align-items:center;gap:6px;padding:7px 0;font-size:10px;font-weight:700;display:inline-flex}.text-danger-button:hover{color:#ff9d94}.modal-backdrop{justify-content:center;align-items:center;padding:18px}.character-modal{background:#17191e;border:1px solid #3a404c;border-radius:10px;width:min(460px,100%);max-height:calc(100vh - 36px);overflow:auto;box-shadow:0 25px 90px #000a}.character-modal>.field-label{margin:17px 20px}.modal-header{padding:17px 20px}.optional{color:#7e8592;margin-left:4px;font-weight:400}.image-upload-area{color:#a4aab5;cursor:pointer;background:#20232a;border:1px dashed #505866;border-radius:7px;flex-direction:column;justify-content:center;align-items:center;gap:7px;min-height:125px;display:flex}.image-upload-area:hover{color:#eac187;border-color:#c09053}.image-upload-area strong{font-size:11px}.image-upload-area span{color:#858b98;font-size:9px}.image-upload-area img{object-fit:contain;max-width:100%;max-height:150px}.remove-image{color:#d7837b;background:0 0;border:0;padding:5px 0;font-size:9px}.modal-actions{border-top:1px solid #2b3039;align-items:center;gap:8px;padding:15px 20px;display:flex}.modal-spacer{flex:1}.toast{z-index:80;color:#c5e5ce;background:#1d3025;border:1px solid #3e614a;border-radius:7px;align-items:center;gap:8px;padding:11px 15px;font-size:11px;animation:.2s ease-out toast-in;display:flex;position:fixed;bottom:22px;left:50%;transform:translate(-50%);box-shadow:0 8px 35px #0008}@keyframes toast-in{0%{opacity:0;transform:translate(-50%,8px)}to{opacity:1;transform:translate(-50%)}}@media (width<=760px){.topbar{height:62px;padding:0 16px}.top-nav{display:none}.main-content{padding:0 14px 25px}.hero{padding:31px 0 22px}.hero-heading-row{flex-direction:column;align-items:flex-start}.hero-stats{gap:23px}.mode-tabs{grid-template-columns:1fr 1fr;display:grid}.mode-tab{justify-content:flex-start;padding:10px;font-size:10px}.tier-toolbar{flex-direction:column;align-items:flex-start}.toolbar-actions{width:100%}.search-box{flex:1}.search-box input{width:100%;min-width:0}.tier-row{grid-template-columns:75px minmax(0,1fr);min-height:78px}.tier-label strong{font-size:19px}.tier-label span{font-size:8px}.tier-content{padding:6px}.character-grid{gap:5px}.character-card{width:59px}.portrait-wrap{width:48px;height:48px}.character-name{font-size:8px}.tier-legend{gap:8px}.legend-title{width:100%}.footer{flex-wrap:wrap}.footer-version{margin-left:0}}@media (width<=420px){.brand-title{font-size:15px}.brand-subtitle{font-size:8px}.admin-button{padding:8px 10px}.hero-stats{justify-content:space-between;width:100%}.tier-row{grid-template-columns:65px minmax(0,1fr)}.backup-actions{grid-template-columns:1fr}}
