:root{
  --bg:#0c0f13;--panel:#12171e;--panel2:#171d25;--line:#222b36;
  --text:#f3f6fa;--muted:#8d98a7;--accent:#78d14b;--accent2:#d9a441;
  --danger:#ff5f66;--cyan:#58d8ff;--purple:#9f67ff;--shadow:0 18px 60px rgba(0,0,0,.35)
}
*{box-sizing:border-box}
html,body{margin:0;min-height:100%;font-family:Inter,Segoe UI,Arial,sans-serif;background:radial-gradient(circle at top right,#18221b 0,transparent 28%),var(--bg);color:var(--text)}
button,input{font:inherit}
button{cursor:pointer}
.app-shell{display:grid;grid-template-columns:260px 1fr;min-height:100vh}
.sidebar{position:sticky;top:0;height:100vh;padding:26px 18px;border-right:1px solid var(--line);background:rgba(10,13,17,.92);backdrop-filter:blur(18px);display:flex;flex-direction:column}
.brand{display:flex;align-items:center;gap:12px;padding:4px 8px 30px}
.brand-mark{width:42px;height:42px;border:1px solid #3a4d32;background:linear-gradient(145deg,#20341c,#111813);display:grid;place-items:center;font-weight:900;color:var(--accent);clip-path:polygon(12% 0,100% 0,100% 88%,88% 100%,0 100%,0 12%)}
.brand-title{font-weight:800;letter-spacing:.08em}.brand-subtitle{font-size:10px;color:var(--muted);margin-top:3px;letter-spacing:.16em}
.nav{display:flex;flex-direction:column;gap:8px}
.nav-item{border:0;background:transparent;color:#aab4c2;display:flex;gap:12px;align-items:center;text-align:left;padding:13px 14px;border-radius:10px;transition:.2s}
.nav-item:hover{background:#131a22;color:#fff}.nav-item.active{background:linear-gradient(90deg,rgba(120,209,75,.16),rgba(120,209,75,.04));color:#d9ffd0;border:1px solid rgba(120,209,75,.15)}
.nav-icon{width:24px;text-align:center;color:var(--accent)}
.sidebar-bottom{margin-top:auto;border-top:1px solid var(--line);padding:20px 8px 4px;display:flex;align-items:center;gap:10px}
.status-dot{width:9px;height:9px;background:var(--accent);border-radius:50%;box-shadow:0 0 16px var(--accent)}
.small-label{font-size:10px;color:var(--muted)}.small-value{font-size:12px;color:#d9ffd0}
.main{padding:28px 38px 60px;min-width:0}
.topbar{display:flex;justify-content:space-between;align-items:center;margin-bottom:28px}
.topbar h1{margin:3px 0 0;font-size:30px}.eyebrow{font-size:10px;letter-spacing:.18em;color:var(--accent);font-weight:800}
.top-actions{display:flex;gap:10px}
.icon-btn,.ghost-btn{border:1px solid var(--line);background:#11161c;color:#d8dee7;border-radius:9px;padding:10px 13px}
.steam-btn{border:1px solid #314154;background:#17212c;color:white;border-radius:9px;padding:10px 16px;display:flex;align-items:center;gap:9px;font-weight:700;text-decoration:none}
.steam-btn:hover{background:#1e2c3b}.steam-logo{color:#79b9ff}.steam-btn.wide{width:100%;justify-content:center;margin:18px 0}
.hero{display:grid;grid-template-columns:1.05fr .95fr;min-height:340px;border:1px solid var(--line);background:linear-gradient(135deg,#10151b 0%,#0f1318 50%,#171c15 100%);border-radius:18px;overflow:hidden;box-shadow:var(--shadow)}
.hero-copy{padding:42px;position:relative;z-index:1}.hero-badge{display:inline-block;color:#dfffb8;background:rgba(120,209,75,.1);border:1px solid rgba(120,209,75,.28);padding:7px 10px;border-radius:6px;font-size:10px;font-weight:800;letter-spacing:.15em}
.hero h2{font-size:46px;line-height:1.03;margin:18px 0 14px;max-width:640px}.hero h2 .hero-cs2{background:linear-gradient(135deg,#ffe394,#f7b733);-webkit-background-clip:text;background-clip:text;color:transparent}.hero p{max-width:600px;color:var(--muted);line-height:1.6}
.hero-stats{display:flex;gap:34px;margin-top:28px}.hero-stats div{display:flex;flex-direction:column}.hero-stats strong{font-size:24px}.hero-stats span{color:var(--muted);font-size:11px;margin-top:4px}
.hero-art{position:relative;min-height:340px;overflow:hidden;background:#0f141a}.hero-art-image{position:absolute;inset:0;background-image:linear-gradient(180deg,rgba(10,14,18,.08),rgba(10,14,18,.22)), url("assets/fivee-hero.jpg");background-size:cover;background-position:center right}.hero-art:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(11,14,18,.1),rgba(11,14,18,0) 25%,rgba(11,14,18,.16) 100%)}
.hero-card-float{position:absolute;padding:8px 11px;border:1px solid rgba(255,255,255,.08);background:rgba(10,14,18,.72);backdrop-filter:blur(10px);border-radius:8px;color:#d9e1ea;font-size:11px;z-index:1}.hero-card-float.one{right:24px;bottom:24px}.hero-card-float.two{left:16px;top:18px}
.section-heading{display:flex;justify-content:space-between;align-items:end;margin:34px 0 16px}.section-heading h3{margin:4px 0 0;font-size:22px}.muted{color:var(--muted);font-size:12px}
.mode-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.mode-card{position:relative;height:235px;border:1px solid var(--line);border-radius:15px;overflow:hidden;background:#141a21;text-align:left;color:white;padding:0;transition:.22s}
.mode-card:hover{transform:translateY(-3px);border-color:#3b4b38;box-shadow:var(--shadow)}
.mode-art{position:absolute;inset:0;background-size:cover;background-position:center;filter:saturate(.95) contrast(1.02)}
.mode-overlay{position:absolute;inset:0;background:linear-gradient(180deg,transparent 20%,rgba(9,11,14,.28) 45%,rgba(9,11,14,.95) 100%)}
.mode-info{position:absolute;left:18px;right:18px;bottom:17px}.mode-info h4{font-size:22px;margin:0 0 6px}.mode-info p{margin:0;color:#b7c0ca;font-size:12px}.mode-tag{position:absolute;top:14px;left:14px;background:rgba(8,11,14,.7);border:1px solid rgba(255,255,255,.09);padding:6px 8px;border-radius:6px;font-size:10px}
.servers-panel{display:none;margin-top:22px}.servers-panel.visible{display:block}
.server-list{display:flex;flex-direction:column;gap:10px}
.server-row{display:grid;grid-template-columns:1.5fr .8fr .6fr .8fr auto;gap:12px;align-items:center;padding:15px 16px;background:var(--panel);border:1px solid var(--line);border-radius:12px}
.server-name strong{display:block}.server-name small,.server-meta{color:var(--muted);font-size:11px}.players{font-weight:800}.connect-actions{display:flex;gap:8px}
.connect-btn,.copy-btn,.chat-input-row button{border:0;border-radius:8px;padding:9px 12px;font-weight:800}.connect-btn{background:var(--accent);color:#0b1208}.copy-btn{background:#202833;color:#dfe6ee}
.view{display:none}.view.active-view{display:block}
.panel{background:var(--panel);border:1px solid var(--line);border-radius:14px;padding:20px}.panel h4{margin-top:0}
.community-layout,.profile-grid{display:grid;grid-template-columns:1.4fr .8fr;gap:14px}.chat{height:260px;overflow:auto;display:flex;flex-direction:column;gap:10px;padding:8px 0}.message{background:#171e26;border:1px solid #202a34;padding:10px 12px;border-radius:9px;color:#cdd4dd}.chat-input-row{display:flex;gap:9px;margin-top:10px}.chat-input-row input{flex:1;border:1px solid var(--line);background:#0e1318;color:white;border-radius:8px;padding:11px}.chat-input-row button{background:var(--accent);color:#0b1208}
.member-list{display:flex;flex-direction:column;gap:12px}.member-list>div{display:grid;grid-template-columns:36px 1fr auto;align-items:center;gap:10px}.avatar{width:36px;height:36px;border-radius:8px;background:#202a34;display:grid;place-items:center;color:var(--accent);font-weight:900}.member-list small{color:var(--muted)}
.leaderboard{width:100%;border-collapse:collapse}.leaderboard th,.leaderboard td{padding:14px;border-bottom:1px solid var(--line);text-align:left}.leaderboard th{color:var(--muted);font-size:11px}.rank{padding:5px 8px;background:#252c35;border-radius:6px;font-size:10px}.rank.gold{color:#ffd36d}.rank.purple{color:#c094ff}.rank.blue{color:#68cfff}
.table-status{text-align:center!important;color:var(--muted);padding:30px!important}
.news-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.news-card{background:var(--panel);border:1px solid var(--line);border-radius:14px;padding:20px}.news-card>span{font-size:10px;color:var(--accent)}.news-card p{color:var(--muted);line-height:1.5}
.profile-header-card{display:flex;align-items:center;gap:18px;background:linear-gradient(135deg,#141a21,#182118);border:1px solid var(--line);border-radius:16px;padding:24px}.profile-avatar{width:72px;height:72px;border-radius:14px;background:#202a34;display:grid;place-items:center;font-size:28px;color:var(--accent);font-weight:900;overflow:hidden}.profile-avatar-image{width:100%;height:100%;object-fit:cover}.profile-header-card h2{margin:4px 0}.profile-header-card p{margin:0;color:var(--muted);font-size:12px}.profile-actions{margin-left:auto;display:flex;align-items:center;gap:10px}.privilege{border:1px solid rgba(120,209,75,.3);background:rgba(120,209,75,.08);padding:8px 10px;border-radius:7px;color:#caffb7;font-size:10px;font-weight:900}
.stat-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin:14px 0}.stat-card{background:var(--panel);border:1px solid var(--line);border-radius:14px;padding:18px}.stat-card span,.stat-card small{display:block;color:var(--muted);font-size:11px}.stat-card strong{display:block;font-size:26px;margin:7px 0}.progress-row,.activity{display:flex;justify-content:space-between;margin:10px 0;color:#cfd6df}.progress{height:8px;background:#0f141a;border-radius:999px;overflow:hidden}.progress i{display:block;height:100%;background:var(--accent)}.activity span{color:var(--muted);font-size:11px}
.toast{position:fixed;right:24px;bottom:24px;background:#151c23;border:1px solid #2b3743;color:white;padding:12px 16px;border-radius:9px;opacity:0;transform:translateY(8px);transition:.2s;pointer-events:none}.toast.show{opacity:1;transform:none}.hidden{display:none!important}.auth-gate{max-width:520px;margin:40px auto;text-align:center;padding:34px}.auth-gate p{color:var(--muted);line-height:1.6}.auth-gate .steam-btn{max-width:280px;margin:22px auto 0}
.modal-backdrop{display:none;position:fixed;inset:0;background:rgba(3,5,7,.72);backdrop-filter:blur(6px);place-items:center;z-index:20}.modal-backdrop.show{display:grid}.modal{width:min(440px,92vw);background:#121820;border:1px solid var(--line);border-radius:16px;padding:28px;position:relative;text-align:center}.modal-close{position:absolute;right:12px;top:10px;background:none;border:0;color:#9da9b7;font-size:24px}.steam-big{font-size:54px;color:#79b9ff}.modal p{color:var(--muted);line-height:1.5}.modal small{color:#6f7a86}
body.light{--bg:#eef2f5;--panel:#fff;--panel2:#f7f9fb;--line:#dce3ea;--text:#17202a;--muted:#66717d;--shadow:0 18px 50px rgba(30,40,50,.12)}body.light .sidebar{background:rgba(248,250,252,.92)}body.light .hero{background:linear-gradient(135deg,#fff,#f3f7f2)}body.light .nav-item:hover{background:#edf2f6}body.light .mode-overlay{background:linear-gradient(180deg,transparent 20%,rgba(245,247,250,.05) 45%,rgba(10,15,20,.88) 100%)}
@media(max-width:980px){.app-shell{grid-template-columns:78px 1fr}.sidebar{padding:22px 10px}.brand>div:not(.brand-mark),.nav-item span:last-child,.sidebar-bottom>div:last-child{display:none}.nav-item{justify-content:center}.mode-grid{grid-template-columns:repeat(2,1fr)}.hero{grid-template-columns:1fr}.hero-art{display:none}.community-layout,.profile-grid{grid-template-columns:1fr}.server-row{grid-template-columns:1fr 1fr}.connect-actions{grid-column:1/-1}}
@media(max-width:640px){.main{padding:20px 14px 40px}.topbar{align-items:flex-start;gap:12px}.steam-btn span:last-child{display:none}.hero-copy{padding:28px}.hero h2{font-size:36px}.mode-grid{grid-template-columns:1fr}.stat-grid{grid-template-columns:repeat(2,1fr)}.news-grid{grid-template-columns:1fr}.server-row{grid-template-columns:1fr}.profile-header-card{align-items:flex-start;flex-wrap:wrap}.privilege{margin-left:0}}



/* redesign */
.brand-mark{
  width:46px;height:46px;border-radius:14px;
  background:linear-gradient(145deg,#182318,#0d120d);
  border:1px solid rgba(120,209,75,.24);
  display:grid;place-items:center;position:relative;overflow:hidden;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.04),0 0 24px rgba(120,209,75,.12)
}
.brand-shape{
  position:absolute;inset:7px;border-radius:11px;
  background:
    linear-gradient(135deg,transparent 0 42%,rgba(255,202,86,.95) 43% 57%,transparent 58% 100%),
    linear-gradient(180deg,rgba(120,209,75,.32),rgba(120,209,75,.08));
  clip-path:polygon(14% 0,100% 0,100% 78%,78% 100%,0 100%,0 14%);
  opacity:.92
}
.brand-letter{
  position:relative;z-index:1;font-weight:900;font-size:18px;color:#f5f8fb;
  text-shadow:0 0 18px rgba(0,0,0,.35)
}

.nav-icon{
  width:22px;height:22px;display:inline-block;position:relative;flex:0 0 22px
}
.nav-icon:before,.nav-icon:after{content:"";position:absolute}
.icon-servers:before{
  inset:3px;border:2px solid currentColor;border-radius:6px;
  box-shadow:0 8px 0 -5px currentColor,0 -8px 0 -5px transparent
}
.icon-servers:after{
  width:6px;height:6px;border-radius:50%;background:currentColor;right:2px;top:8px
}
.icon-community:before{
  width:8px;height:8px;border-radius:50%;background:currentColor;left:2px;top:7px;
  box-shadow:10px 0 0 0 currentColor,5px -6px 0 0 currentColor
}
.icon-community:after{
  left:1px;right:1px;bottom:2px;height:7px;border:2px solid currentColor;border-top:none;border-radius:0 0 9px 9px
}
.icon-rating:before{
  left:3px;bottom:3px;width:4px;height:10px;background:currentColor;
  box-shadow:6px -4px 0 0 currentColor,12px -8px 0 0 currentColor;border-radius:2px
}
.icon-news:before{
  inset:2px;border:2px solid currentColor;border-radius:5px
}
.icon-news:after{
  left:6px;right:6px;top:6px;height:2px;background:currentColor;
  box-shadow:0 5px 0 0 currentColor,0 10px 0 0 currentColor
}
.icon-profile:before{
  width:10px;height:10px;border-radius:50%;background:currentColor;left:6px;top:2px
}
.icon-profile:after{
  left:3px;right:3px;bottom:2px;height:8px;border-radius:8px 8px 4px 4px;background:currentColor
}

.mode-grid{align-items:stretch}
.mode-card{height:220px}
.mode-tag{
  position:absolute;top:14px;left:14px;background:rgba(8,11,14,.72);
  border:1px solid rgba(255,255,255,.09);padding:6px 8px;border-radius:999px;font-size:10px;
  z-index:2
}
.mode-info{
  position:absolute;left:18px;right:18px;bottom:16px;display:flex;align-items:end;justify-content:space-between;gap:12px;z-index:2
}
.mode-copy{display:flex;flex-direction:column;gap:6px}
.mode-copy h4{font-size:20px;margin:0}
.mode-copy p{margin:0;color:#c5cfda;font-size:12px;max-width:170px;line-height:1.35}
.mode-badge{
  width:48px;height:48px;border-radius:14px;border:1px solid rgba(255,255,255,.16);
  background:rgba(8,11,14,.55);display:grid;place-items:center;font-weight:900;
  color:#fff;font-size:15px;backdrop-filter:blur(8px);box-shadow:0 10px 30px rgba(0,0,0,.25)
}
.mode-badge.wide{font-size:13px}
.mode-overlay{background:linear-gradient(180deg,transparent 16%,rgba(9,11,14,.15) 42%,rgba(9,11,14,.96) 100%)}

.section-heading.compact{margin:0}
.panel-soon{
  margin-top:20px;background:linear-gradient(135deg,#11161d,#182018);
  border:1px solid rgba(120,209,75,.14);border-radius:18px;padding:20px 22px;
  display:grid;grid-template-columns:1.15fr .85fr;gap:24px;align-items:center
}
.daily-bonus p{margin:8px 0 0;color:var(--muted);line-height:1.65}
.bonus-chip{
  display:inline-flex;align-items:center;justify-content:center;padding:10px 14px;
  border-radius:999px;background:rgba(255,201,77,.12);border:1px solid rgba(255,201,77,.3);
  color:#ffd56d;font-size:12px;font-weight:800
}
.bonus-meta{display:flex;gap:30px;margin-top:18px;flex-wrap:wrap}
.bonus-meta div{display:flex;flex-direction:column}
.bonus-meta strong{font-size:20px}
.bonus-meta span{font-size:11px;color:var(--muted);margin-top:4px}
.daily-bonus-right{display:flex;align-items:center;justify-content:center;gap:18px}
.coin-stack{position:relative;width:150px;height:120px}
.coin{
  position:absolute;border-radius:50%;background:
    radial-gradient(circle at 30% 30%,#fff4b1 0,#ffe08a 20%,#ffc84d 52%,#c27d14 100%);
  box-shadow:0 18px 30px rgba(0,0,0,.25), inset 0 0 0 3px rgba(255,255,255,.18)
}
.coin:after{
  content:"F";position:absolute;inset:0;display:grid;place-items:center;
  font-weight:900;color:#734a06;text-shadow:0 1px 0 rgba(255,255,255,.45)
}
.coin.big{width:88px;height:88px;left:30px;top:10px}
.coin.mid{width:62px;height:62px;left:0;top:42px}
.coin.small{width:52px;height:52px;right:0;top:52px}
.bonus-card{
  min-width:170px;padding:16px 18px;border-radius:16px;background:rgba(10,14,18,.72);
  border:1px solid rgba(255,255,255,.08)
}
.bonus-card small{display:block;color:#9db0c6;margin-bottom:8px}
.bonus-card strong{display:block;font-size:20px;margin-bottom:6px}
.bonus-card b{color:#ffd56d;font-size:26px}

body.light .panel-soon{background:linear-gradient(135deg,#ffffff,#f4f7f8)}
body.light .brand-mark{background:linear-gradient(145deg,#eef2f7,#dfe7ef)}
body.light .brand-shape{background:
  linear-gradient(135deg,transparent 0 42%,rgba(255,191,35,.92) 43% 57%,transparent 58% 100%),
  linear-gradient(180deg,rgba(120,209,75,.28),rgba(120,209,75,.07))}
body.light .brand-letter{color:#0e1520}

@media(max-width:980px){
  .panel-soon{grid-template-columns:1fr}
}
@media(max-width:640px){
  .mode-info{flex-direction:column;align-items:flex-start}
  .panel-soon{padding:18px}
  .bonus-meta{gap:18px}
}

/* Steam profile */
.profile-dashboard{
  --profile-surface:#171b20;
  --profile-surface-2:#1d2228;
  --profile-red:#ff3445;
  padding:24px;border:1px solid #202832;border-radius:20px;
  background:
    radial-gradient(circle at 20% -10%,rgba(120,209,75,.07),transparent 30%),
    linear-gradient(180deg,#0d1115,#0b0e12);
  box-shadow:var(--shadow)
}
.profile-hero-card{min-height:120px;display:flex;align-items:center;gap:22px;padding:4px 2px 22px}
.profile-dashboard .profile-avatar{
  width:112px;height:112px;flex:0 0 112px;border-radius:50%;border:3px solid #222b34;
  background:#1e2935;font-size:34px;box-shadow:0 10px 35px rgba(0,0,0,.4)
}
.profile-identity{min-width:0}.profile-name-line{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.profile-name-line h2{margin:0;font-size:34px;font-weight:900;font-style:italic;letter-spacing:.12em;overflow-wrap:anywhere}
.profile-level{padding:8px 14px;background:linear-gradient(105deg,#4b5665,#323a46);color:#c8d1df;font-weight:900;font-style:italic;clip-path:polygon(8% 0,100% 0,92% 100%,0 100%)}
.profile-online{margin:9px 0 0;color:#28e26c;font-size:14px}.profile-online span{display:inline-block;width:8px;height:8px;border-radius:50%;background:#28e26c;box-shadow:0 0 12px rgba(40,226,108,.65);margin-right:6px}
.profile-logout{margin-left:auto;align-self:flex-start;border:1px solid #2d343d;background:#171c22;color:#aeb7c2;padding:9px 14px;border-radius:9px;text-decoration:none}.profile-logout:hover{color:white;border-color:#485361}
.profile-stat-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px;margin:8px 0 22px}
.profile-stat{min-height:82px;padding:15px 16px;background:var(--profile-surface);border:1px solid rgba(255,255,255,.025);border-radius:15px}
.profile-stat>span{display:block;font-size:13px;color:#dce2ea;font-weight:700;margin-bottom:7px}
.profile-stat strong{display:flex;align-items:center;gap:10px;font-size:26px;font-style:italic;font-weight:950}.profile-stat strong i{color:var(--profile-red);font-style:normal;font-size:23px}.profile-stat strong b{font-weight:950}
.profile-tabs{display:grid;grid-template-columns:repeat(6,1fr);gap:5px;padding:5px;background:#14181d;border-radius:14px;margin-bottom:10px}
.profile-tabs button{border:0;background:transparent;color:#8f98a4;min-height:44px;border-radius:10px;font-weight:750;white-space:nowrap}.profile-tabs button span{margin-right:7px}.profile-tabs button.active{background:#242a31;color:#fff}.profile-tabs button:disabled{cursor:default;opacity:.62}
.profile-info-card{background:var(--profile-surface);border:1px solid rgba(255,255,255,.025);border-radius:16px;padding:18px 12px 12px}
.profile-info-card h3{margin:0 6px 16px;font-size:24px;font-style:italic;font-weight:950}
.profile-info-list{display:flex;flex-direction:column;gap:5px}
.profile-info-list>div{display:flex;justify-content:space-between;align-items:center;gap:20px;min-height:54px;padding:12px 15px;background:rgba(255,255,255,.045);border-radius:13px}
.profile-info-list span{color:#d9e0e8;font-weight:650}.profile-info-list strong{text-align:right}.stats-waiting{color:#f1bb54}.stats-connected{color:#28e26c}
body.light .profile-dashboard{--profile-surface:#fff;--profile-surface-2:#f2f5f7;background:linear-gradient(180deg,#f8fafb,#eef2f4);border-color:#dce3ea}
body.light .profile-tabs{background:#e9eef2}body.light .profile-tabs button.active{background:#fff;color:#17202a}body.light .profile-stat{border-color:#dce3ea}
@media(max-width:1100px){.profile-stat-grid{grid-template-columns:repeat(3,1fr)}.profile-tabs{grid-template-columns:repeat(3,1fr)}}
@media(max-width:700px){.profile-dashboard{padding:16px}.profile-hero-card{align-items:flex-start;flex-wrap:wrap}.profile-dashboard .profile-avatar{width:86px;height:86px;flex-basis:86px}.profile-name-line h2{font-size:25px}.profile-logout{margin-left:0}.profile-stat-grid{grid-template-columns:repeat(2,1fr)}.profile-tabs{grid-template-columns:1fr 1fr}.profile-info-list>div{align-items:flex-start;flex-direction:column;gap:5px}.profile-info-list strong{text-align:left}}
