.social {
  background: #000;
  color: #fff;
  padding: 0;
  border-bottom: 2px solid #fff;
}

.social-header {
  padding: 60px 40px 50px;
  border-bottom: 1px solid rgba(255,255,255,.1);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.social-title {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: clamp(80px, 14vw, 160px);
  letter-spacing: -3px;
  line-height: .85;
  color: #fff;
  text-transform: uppercase;
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity .8s ease, transform .8s ease;
}
.social-title.vis { opacity:1; transform:translateX(0); }

.social-subtitle {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 4px;
  color: rgba(255,255,255,.3);
  text-transform: uppercase;
  text-align: right;
  line-height: 1.8;
}

.social-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(255,255,255,.08);
}

@media (max-width:900px) { .social-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width:560px) { .social-grid { grid-template-columns: 1fr; } }

.social-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 40px;
  border-right: 1px solid rgba(255,255,255,.06);
  border-bottom: 1px solid rgba(255,255,255,.06);
  text-decoration: none;
  color: #fff;
  min-height: 240px;
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .5s ease, transform .5s ease, background .25s ease;
}
.social-card.vis { opacity:1; transform:translateY(0); }
.social-card:hover { background: rgba(255,255,255,.03); }

.social-card::before {
  content:'';
  position:absolute;
  top:0; left:0;
  height:2px; width:0;
  transition: width .45s cubic-bezier(.77,0,.18,1);
}
.social-card:hover::before { width:100%; }

#github::before   { background: #6e5494; }
#github:hover     { background: rgba(110,84,148,.06); }
#telegram::before { background: #0088cc; }
#telegram:hover   { background: rgba(0,136,204,.06); }
#discord::before  { background: #7289da; }
#discord:hover    { background: rgba(114,137,218,.06); }
#steam::before    { background: rgba(255,255,255,.5); }
#steam:hover      { background: rgba(255,255,255,.04); }
#mail::before     { background: #22c55e; }
#mail:hover       { background: rgba(34,197,94,.06); }

.social-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.social-card-num {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: 60px;
  line-height: 1;
  letter-spacing: -3px;
  color: rgba(255,255,255,.07);
  transition: color .3s;
}
.social-card:hover .social-card-num { color: rgba(255,255,255,.15); }

.social-icon {
  width: 32px; height: 32px;
  opacity: .2;
  transition: opacity .3s, transform .3s;
  flex-shrink: 0;
}
.social-icon img {
  width:100%; height:100%;
  object-fit:contain;
  filter: brightness(0) invert(1);
}
.social-card:hover .social-icon {
  opacity: .6;
  transform: rotate(10deg) scale(1.1);
}

.social-name {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 34px;
  text-transform: uppercase;
  letter-spacing: .5px;
  line-height: 1;
  margin-bottom: 8px;
  transition: letter-spacing .3s;
}
.social-card:hover .social-name { letter-spacing: 1px; }

.social-username {
  font-family: var(--f-mono);
  font-size: 11px;
  color: rgba(255,255,255,.3);
  letter-spacing: 1px;
  display: flex; align-items: center; gap: 8px;
  transition: color .3s;
}
.social-card:hover .social-username { color: rgba(255,255,255,.6); }

.copy-icon {
  width: 11px; height: 11px;
  opacity: 0;
  filter: brightness(0) invert(1);
  transition: opacity .25s;
  flex-shrink: 0;
}
.social-card:hover .copy-icon { opacity: .4; }

.copy-toast {
  position: fixed;
  bottom: 36px; left: 50%;
  transform: translateX(-50%) translateY(12px);
  background: #fff;
  color: #000;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 4px;
  text-transform: uppercase;
  padding: 12px 24px;
  z-index: 99999;
  opacity: 0;
  transition: opacity .25s, transform .25s;
  pointer-events: none;
  white-space: nowrap;
}
.copy-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (max-width:768px) {
  .social-header { padding: 40px 20px 32px; }
  .social-card { padding: 28px 20px; min-height: 180px; }
  .social-name { font-size: 26px; }
}

@media (max-width:480px) {
  .social-header { padding: 28px 16px 24px; }
  .social-card { padding: 22px 16px; min-height: 160px; }
  .social-name { font-size: 22px; }
  .social-card-num { font-size: 44px; }
}
