.wrap{max-width:var(--max); margin:0 auto; padding:0 16px}
main.wrap{padding:16px 16px 26px; overflow-x:clip}
main,
.wrap,
.grid,
.card,
.topic,
.board,
.panel{max-width:100%}

.topbar{
  position:sticky;
  top:0;
  z-index:50;
  backdrop-filter:blur(10px);
  background:rgba(10,12,22,.55);
  border-bottom:1px solid var(--line2);
  box-shadow:0 10px 40px rgba(0,0,0,.20);
}
.topbar-inner{display:flex; align-items:center; justify-content:space-between; height:62px}
.brand{display:flex; align-items:center; gap:10px; text-decoration:none}
.brand-dot{
  width:12px;
  height:12px;
  border-radius:50%;
  background:radial-gradient(circle at 30% 30%, var(--accent2), var(--accent));
  box-shadow:0 0 0 6px rgba(214,178,94,.08), 0 10px 30px rgba(0,0,0,.35);
}
.brand-text{font-weight:800; letter-spacing:.2px}

.nav{display:flex; align-items:center; gap:10px; flex-wrap:wrap; justify-content:flex-end}
.nav a{
  text-decoration:none;
  padding:8px 10px;
  border-radius:12px;
  color:var(--muted);
}
.nav a:hover{background:var(--panel2); color:var(--text)}
.pill{
  border:1px solid rgba(246,210,107,.35);
  background:linear-gradient(180deg, rgba(246,210,107,.22), rgba(255,255,255,.06));
  color:var(--text)!important;
}

.grid{display:grid; gap:14px}
.grid > *{min-width:0}
@media (min-width:900px){ .grid.cols2{grid-template-columns:1.1fr .9fr} }

.card,
.partners-card{
  background:linear-gradient(180deg, rgba(255,255,255,.065), rgba(255,255,255,.04));
  border:1px solid rgba(255,255,255,.10);
  border-radius:var(--r2);
  box-shadow:var(--shadowSoft);
}
.card .hd,
.partners-card .hd{
  padding:14px 14px 10px;
  border-bottom:1px solid var(--line);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}
.card .bd,
.partners-card .bd{
  padding:14px;
  min-width:0;
}

.footer{
  border-top:1px solid var(--line);
  background:rgba(10,10,18,.55);
  padding:16px 0;
  margin-top:22px;
}
.footer-inner{
  display:flex;
  justify-content:space-between;
  gap:10px;
  flex-wrap:wrap;
  color:var(--muted);
}

.backdrop{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.55);
  z-index:80;
}
.drawer{
  position:fixed;
  top:0;
  left:0;
  bottom:0;
  width:min(86vw, 360px);
  background:rgba(10,10,18,.92);
  backdrop-filter:blur(12px);
  border-right:1px solid rgba(255,255,255,.10);
  box-shadow:0 30px 80px rgba(0,0,0,.6);
  z-index:90;
  transform:translateX(-105%);
  transition:transform .22s ease;
  display:flex;
  flex-direction:column;
  padding:14px;
}
.drawer-open .drawer{transform:translateX(0)}
.drawer-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:4px 2px 10px;
}
.drawer-brand{display:flex; align-items:center; gap:10px}
.drawer-close{
  width:40px;
  height:40px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.14);
  background:rgba(255,255,255,.06);
  color:var(--text);
  cursor:pointer;
  font-weight:900;
}
.drawer-body{display:flex; flex-direction:column; gap:10px; padding:10px 2px; overflow:auto}
.drawer-link{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:12px 12px;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.05);
  text-decoration:none;
  font-weight:800;
}
.drawer-link:hover{background:rgba(255,255,255,.08)}
.drawer-link.danger{border-color:rgba(255,92,122,.30)}
.drawer-foot{padding:10px 2px 2px}

.hamburger{
  display:none;
  width:42px;
  height:42px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.14);
  background:rgba(255,255,255,.06);
  color:var(--text);
  cursor:pointer;
  padding:10px;
  align-items:center;
  justify-content:center;
  gap:5px;
}
.hamburger span{
  display:block;
  height:2px;
  width:18px;
  background:rgba(255,255,255,.88);
  border-radius:2px;
  margin:3px auto;
}

.dockbar{
  position:fixed;
  left:12px;
  right:12px;
  bottom:12px;
  z-index:80;
  display:none;
  gap:8px;
  padding:10px;
  border-radius:22px;
  background:rgba(10,12,22,.60);
  border:1px solid rgba(255,255,255,.12);
  border-top:1px solid rgba(255,255,255,.10);
  box-shadow:0 18px 60px rgba(0,0,0,.55);
  backdrop-filter:blur(14px);
}
.dock-item{
  flex:1;
  min-width:0;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:4px;
  padding:8px 6px;
  border-radius:16px;
  text-decoration:none;
  color:var(--muted);
}
.dock-ico{font-size:18px; line-height:1}
.dock-txt{font-size:11px; line-height:1}
.dock-item.active{
  color:var(--text);
  background:linear-gradient(180deg, rgba(214,178,94,.20), rgba(214,178,94,.06));
  border:1px solid rgba(214,178,94,.26);
}
.dock-mid{
  transform:translateY(-10px);
  background:rgba(246,210,107,.16);
  border:1px solid rgba(246,210,107,.24);
  color:var(--text);
}
.dock-mid .dock-ico{font-size:20px}


.site-strip{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 16px;border-bottom:1px solid rgba(255,255,255,.06);font-size:12px;color:var(--muted2)}
.site-strip-left,.site-strip-right{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.site-strip a{color:var(--muted2);text-decoration:none}
.site-strip a:hover{color:#fff}
.brand-copy{display:flex;flex-direction:column;gap:2px;min-width:0}
.brand-sub{font-size:11px;color:var(--muted2);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:48vw}
.footer-stack{display:grid;gap:10px}
.footer-brandline{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.footer-links{display:flex;gap:14px;flex-wrap:wrap}
.footer-links a{text-decoration:none;color:var(--muted2)}
.footer-links a:hover{color:#fff}
