@font-face {
  font-family: "Drug";
  font-weight: 400;
  font-display: swap;
  src: url(fonts/Druk-Wide-Cy-Web-Bold.woff2) format("woff2");
}

*, *::before, *::after { box-sizing: border-box; }
html { background-color: #000; }
body {
  margin: 0;
  background: none;
  color: #f5f5f5;
  font-family: "Ruda", sans-serif;
  -webkit-font-feature-settings: "liga";
  font-feature-settings: "liga";
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
a:active, a:focus, *:focus { outline: 0 !important; }
h3 { margin: 0; font-weight: 400; line-height: 1.2; }

#brx-content { margin: 0; }

#particles-js {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
  height: 100vh;
  max-width: 100%;
  background-color: #000;
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  filter: contrast(111%) brightness(70%);
  overflow: hidden;
}
#particles-js::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(0,0,0,.3), rgba(0,0,0,.3));
  pointer-events: none;
}
#particles-js > * { position: relative; }
.particles-js-canvas-el {
  position: absolute !important;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
}

/* верхний блок: бегущая строка + иконки */
.top {
  height: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  align-self: center;
  color: #f5f5f5;
}
.typing {
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #a6b1b9;
  font-size: .9em;
  font-family: "Ruda", sans-serif;
  text-align: center;
  padding: 0 1em;
}
.typed-cursor { color: #a6b1b9; }
.icons {
  z-index: 5;
  height: 50px;
  width: 500px;
  max-width: 100%;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
}
.icons a {
  display: inline-flex;
  margin: 0 1.5em;
  font-size: 17px;
  color: #efd28d;
  transition: 1s;
  cursor: pointer;
  z-index: 1;
}
.icons a:nth-child(3) { font-size: 16px; }
.icons a:hover { color: #b8c1c7; }
.icons a:first-child:hover { color: #efd28d; }

/* центральный блок */
.center {
  height: calc(100vh - 100px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-evenly;
  align-self: center;
}
.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  align-self: center;
  margin-bottom: 100px;
}
.title {
  color: #e8ebed;
  font-family: "Drug", sans-serif;
  text-align: center;
  font-size: 2.5em;
  background: linear-gradient(85deg, #efd28d, #FBE3A7, #C1AA73, #AAAAAA, #e8ebed, #efd28d, #212121);
  background-size: 400%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradient-animation 50s infinite, blur-animation 20s infinite;
}
@keyframes gradient-animation {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes blur-animation {
  0% { filter: blur(0); }
  50% { filter: blur(.8px); }
  100% { filter: blur(0); }
}
.subtitle {
  color: #e8ebed;
  font-family: "Ruda", sans-serif;
  text-align: center;
  font-size: 1.2em;
}

/* плеер */
.player { z-index: 10; margin-top: 10px; display: flex; justify-content: center; }
.player button {
  background: transparent;
  border: 0;
  padding: 0;
  margin: 15px 0 0;
  width: 42px; height: 42px;
  color: #efd28d;
  cursor: pointer;
  border-radius: 50%;
  animation: pulse-animation 3s infinite;
}
.player button svg { width: 42px; height: 42px; display: block; }
@keyframes pulse-animation {
  0% { box-shadow: 0 0 0 0 rgba(239,210,141,.6); }
  100% { box-shadow: 0 0 0 22px rgba(239,210,141,0); }
}

/* часы */
#liveClock {
  position: fixed;
  bottom: 5px;
  left: 0; right: 0;
  text-align: center;
  color: #efd28d;
  font-family: "Drug", sans-serif;
  font-size: 14px;
  font-weight: bold;
  filter: blur(.6px);
}

/* попап «Донат» */
.popup {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #000;
  animation: fadeInUp .6s both;
}
.popup.hide { display: none; }
@keyframes fadeInUp {
  from { opacity: 0; transform: translate3d(0, 40px, 0); }
  to { opacity: 1; transform: none; }
}
.popup-content {
  width: 100%; height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 1.5em;
  background: linear-gradient(270deg, #070D13, #111F2D);
  background-size: 400% 400%;
  animation: AnimationName 20s ease infinite;
}
@keyframes AnimationName {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.popup .close {
  font-size: 40px;
  color: #b8c1c7;
  margin-bottom: 1em;
  cursor: pointer;
}
.popup .close:hover { animation: rotate 1s; }
@keyframes rotate { from { transform: rotate(0); } to { transform: rotate(360deg); } }
.popup-text { width: 500px; max-width: 100%; text-align: center; }
.popup-title { font-size: 2em; color: #b8c1c7; line-height: 1.2; font-family: "Drug", sans-serif; }
.popup-text p { color: #b8c1c7; font-family: "Ruda", sans-serif; font-size: 1em; line-height: 1.6; }
.popup-text a { color: #efd28d; }
.popup-buttons { margin-top: 1.5em; display: flex; gap: 1em; }
.btn {
  display: inline-block;
  padding: .7em 1.6em;
  background: #efd28d;
  color: #3a3939;
  font-family: "Ruda", sans-serif;
  font-weight: 700;
  border-radius: 4px;
  transition: .3s;
}
.btn:hover { background: #fbe3a7; }

@media (max-width: 767px) {
  #particles-js { flex-wrap: nowrap; }
}
@media (max-width: 478px) {
  .icons a { font-size: 15px; }
  .icons a:nth-child(3) { font-size: 14px; }
  .title { font-size: 1.5em; }
  .subtitle { font-size: .8em; }
  .popup-title { font-size: 1.3em; }
  .popup-content { padding-top: 3em; }
}
