:root{--ground:#0E1217;--card:#151B22;--line:#232C36;--line2:#2A333D;--text:#E8E6E1;--muted:#9AA4AF;--brass:#E3B55E;--brass2:#F2CC80;--blue:#7DB8F2;--orange:#F0A23B;--red:#E07A7E;--grey:#8A939C}
*{box-sizing:border-box}
html,body{margin:0;background:#0E1217;color:#E8E6E1;font-family:Inter,system-ui,sans-serif;-webkit-text-size-adjust:100%}
a{color:#E3B55E}a:hover{color:#F2CC80}
h1,h2,h3{font-family:Sora,sans-serif}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:0 18px;border-radius:10px;border:1px solid #2A333D;background:#1A2129;color:#E8E6E1;font:600 15px Inter,sans-serif;cursor:pointer;text-decoration:none}
.btn:hover{background:#222B35;color:#E8E6E1}
.btn[disabled],.btn.disabled{opacity:.5;cursor:not-allowed}
.btn[disabled]:hover{background:#1A2129}
.primary{background:#E3B55E;border-color:#E3B55E;color:#14110B}
.primary:hover{background:#F2CC80;color:#14110B}
.primary[disabled]:hover{background:#E3B55E}
.danger{border-color:#5A2A2D;color:#E07A7E}
.small{min-height:36px;padding:0 12px;font-size:14px}
.card{background:#151B22;border:1px solid #232C36;border-radius:14px;padding:20px}
.muted{color:#9AA4AF}
.label{font:600 12px Inter,sans-serif;letter-spacing:.06em;text-transform:uppercase;color:#9AA4AF}
.navbtn{display:inline-flex;align-items:center;background:none;border:0;color:#9AA4AF;font:600 15px Inter,sans-serif;min-height:44px;padding:0 14px;cursor:pointer;border-radius:8px;text-decoration:none}
.navbtn:hover{color:#E8E6E1;background:#1A2129}
.navbtn.on{color:#E8E6E1;background:#1A2129}
.pill{display:inline-flex;align-items:center;min-height:36px;padding:0 14px;border-radius:999px;border:1px solid #2A333D;background:#151B22;color:#C9CED4;font:500 14px Inter,sans-serif;cursor:pointer}
.pill.on{background:#E3B55E;color:#14110B;border-color:#E3B55E}
.tag{display:inline-flex;align-items:center;padding:2px 10px;border-radius:999px;font:600 12px Inter,sans-serif}
.row{display:flex;align-items:center;gap:12px}
.between{justify-content:space-between}
.col{display:flex;flex-direction:column}
.rowbtn{display:flex;align-items:center;gap:12px;width:100%;text-align:left;padding:10px 12px;border-radius:12px;border:1px solid #1E262F;background:#11161C;color:#E8E6E1;cursor:pointer;font:500 14px Inter,sans-serif}
.rowbtn:hover{background:#18202A}
input,select,textarea{border-radius:10px;border:1px solid #2A333D;background:#0E1217;color:#E8E6E1;padding:10px 12px;font:500 14px Inter,sans-serif;max-width:100%}
input,select{min-height:44px}
input[type=checkbox]{width:22px;min-height:22px;height:22px;accent-color:#E3B55E}
input:focus,select:focus,textarea:focus,.btn:focus-visible,.pill:focus-visible,.navbtn:focus-visible,.rowbtn:focus-visible,.champ:focus-visible{outline:2px solid #E3B55E;outline-offset:2px}

.screen-center{flex:1;display:flex;align-items:center;justify-content:center;padding:48px 16px;min-height:100vh}
.topbar{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;padding:10px 24px;border-bottom:1px solid #1E262F}
.brand{display:flex;align-items:center;gap:10px;text-decoration:none;color:#E8E6E1;font:700 20px Sora,sans-serif}
.brand:hover{color:#E8E6E1}
.brand img{width:28px;height:28px;border-radius:7px}
.avatar{width:36px;height:36px;border-radius:50%;background:#2A333D;display:flex;align-items:center;justify-content:center;font:600 14px Inter,sans-serif;overflow:hidden;flex:none}
.avatar img{width:100%;height:100%;object-fit:cover}
.main{flex:1;width:100%;max-width:1320px;margin:0 auto;padding:24px;box-sizing:border-box}
.layout{display:flex;flex-wrap:wrap;gap:24px;align-items:flex-start}
.grow{flex:999 1 600px;min-width:0;display:flex;flex-direction:column;gap:20px}
.side{flex:1 1 340px;min-width:280px;display:flex;flex-direction:column;gap:10px}
.grid-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:12px}
.grid-2{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:20px}
.stat-value{font:700 26px Sora,sans-serif}
.num{width:28px;height:28px;border-radius:50%;background:#2A333D;display:flex;align-items:center;justify-content:center;font-weight:700;flex:none}
.num.on{background:#E3B55E;color:#14110B}
.progress{height:8px;border-radius:999px;background:#0E1217;border:1px solid #232C36;overflow:hidden}
.progress>div{height:100%;background:#E3B55E;transition:width .4s}
.notice{border-radius:12px;padding:12px 14px;background:#33240F;color:#F0C98A;font-size:14px;line-height:1.5}
.notice.info{background:#14273A;color:#B9D9F7}
.notice.err{background:#3A1A1C;color:#F2B3B5}
.thumb{width:40px;height:40px;border-radius:8px;background:#2A3440;display:flex;align-items:center;justify-content:center;font:700 18px Sora,sans-serif;overflow:hidden;flex:none}
.thumb,.portrait{position:relative}
.thumb img,.portrait img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.thumb.sm{width:32px;height:32px;border-radius:6px;font-size:14px}
.bar{width:4px;align-self:stretch;border-radius:2px}
.champs{display:grid;grid-template-columns:repeat(auto-fill,minmax(104px,1fr));gap:12px}
.champ{display:flex;flex-direction:column;align-items:center;gap:6px;padding:12px 8px;border-radius:12px;cursor:pointer;background:#151B22;border:2px solid #232C36;color:#E8E6E1;min-width:0}
.champ.on{background:#1F2A35;border-color:#E3B55E}
.champ.locked{cursor:not-allowed;opacity:.55}
.portrait{width:64px;height:64px;border-radius:10px;display:flex;align-items:center;justify-content:center;font:700 26px Sora,sans-serif;background:#2A3440;color:#E8E6E1;overflow:hidden}
.portrait.grey{background:#20262D;color:#5C656E}
.portrait.grey img{filter:grayscale(1)}
.cname{font:600 13px Inter,sans-serif;color:#E8E6E1;text-align:center;overflow-wrap:anywhere}
.badge{font:600 11px Inter,sans-serif;padding:2px 8px;border-radius:999px}
.slot{display:flex;justify-content:space-between;align-items:center;gap:8px;min-height:44px;padding:0 14px;border-radius:10px;background:#11161C;border:1px solid #1E262F}
.slot.human{background:#1F2A35;border-color:#3A4756}
.prow{display:flex;align-items:center;gap:10px;padding:8px 10px;border-radius:10px;background:#11161C}
.prow.me{background:#1F2A35}
.statusrow{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}
#toast{position:fixed;left:50%;bottom:24px;transform:translateX(-50%);max-width:calc(100vw - 32px);background:#3A1A1C;color:#F2B3B5;border:1px solid #5A2A2D;border-radius:12px;padding:12px 16px;font:500 14px Inter,sans-serif;display:none;z-index:10}
#toast.ok{background:#14273A;color:#B9D9F7;border-color:#2A4A6A}
table{width:100%;border-collapse:collapse;font-size:14px}
th,td{text-align:left;padding:8px 6px;border-bottom:1px solid #1E262F;vertical-align:middle}
th{color:#9AA4AF;font:600 12px Inter,sans-serif;letter-spacing:.06em;text-transform:uppercase}
.scroll-x{overflow-x:auto}
@media (max-width:640px){
  .topbar{padding:10px 16px}
  .main{padding:16px}
  .card{padding:16px}
  .side{min-width:0}
  .grid-2{grid-template-columns:minmax(0,1fr)}
  .champs{grid-template-columns:repeat(auto-fill,minmax(92px,1fr));gap:8px}
}
.imgs{display:flex;flex-wrap:wrap;gap:10px}
.imgs a,.thumbwrap{display:block;position:relative;width:132px;height:96px;border-radius:10px;overflow:hidden;border:1px solid #2A333D;background:#0E1217;flex:none}
.imgs img{width:100%;height:100%;object-fit:cover;display:block}
.thumbwrap .x{position:absolute;top:4px;right:4px;width:28px;height:28px;border-radius:50%;border:0;background:rgba(14,18,23,.85);color:#E8E6E1;font:700 16px Inter,sans-serif;cursor:pointer;line-height:1}
.dropzone{display:flex;flex-direction:column;gap:10px;padding:16px;border:1px dashed #3A4756;border-radius:12px;background:#11161C}
.dropzone.over{border-color:#E3B55E;background:#1A1E16}
.linklike{color:#E3B55E;cursor:pointer;text-decoration:underline}
.linklike:hover{color:#F2CC80}
.choice{display:flex;align-items:center;gap:12px;min-height:52px;padding:8px 12px;border-radius:10px;border:1px solid #1E262F;background:#11161C;cursor:pointer}
.choice.on{border-color:#E3B55E;background:#1F2A35}
.choice input{accent-color:#E3B55E;width:18px;height:18px;min-height:18px;flex:none}
textarea{width:100%;resize:vertical;line-height:1.5}
.msg .text{line-height:1.6;overflow-wrap:anywhere}
.src{font:600 11px Inter,sans-serif;padding:2px 8px;border-radius:999px;background:#1E242B;color:#C9CED4}
.rowbtn.report{text-decoration:none;align-items:flex-start;padding:12px 14px}
table.stats tr.me td{background:#1F2A35}
table.stats td{white-space:nowrap}
details.ctx summary{cursor:pointer;color:#9AA4AF;font:600 13px Inter,sans-serif}
.lightbox{position:fixed;inset:0;z-index:20;background:rgba(8,10,13,.92);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;padding:16px;cursor:zoom-out}
.lightbox img{max-width:100%;max-height:calc(100vh - 100px);object-fit:contain;border-radius:8px}
.md{line-height:1.65;overflow-wrap:anywhere}
.md>*:first-child{margin-top:0}.md>*:last-child{margin-bottom:0}
.md h3,.md h4,.md h5,.md h6{font-family:Sora,sans-serif;margin:14px 0 6px}
.md p{margin:8px 0}.md ul,.md ol{margin:8px 0;padding-left:22px}
.md code{background:#0E1217;border:1px solid #232C36;border-radius:6px;padding:1px 5px;font-size:.9em}
.md pre{background:#0E1217;border:1px solid #232C36;border-radius:10px;padding:12px;overflow-x:auto}
.md pre code{border:0;padding:0;background:none}
@media (max-width:640px){
  .imgs a,.thumbwrap{width:calc(50% - 5px);height:110px}
}
.cl-form{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(360px,100%),1fr));gap:16px}
