body {
  margin: 0;
  min-height: 100vh;
  background-color: #000;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
  color: #fff;
  font-family: "Ubuntu Mono", "Cascadia Mono", Consolas, monospace;
  font-size: 16px;
}

body::before {
  position: fixed;
  z-index: 0;
  inset: 0;
  background: transparent;
  -webkit-backdrop-filter: blur(12px) brightness(0.68);
  backdrop-filter: blur(1px) brightness(0.68);
  -webkit-mask-image: radial-gradient(circle 48% at 50% 37.5%, #000 0%, #000 32%, transparent 100%);
  mask-image: radial-gradient(circle 48% at 50% 37.5%, #000 0%, #000 32%, transparent 100%);
  content: "";
  pointer-events: none;
}

#matrixCanvas {
  position: fixed;
  z-index: 2;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.28;
  pointer-events: none;
}

body::after {
  position: fixed;
  z-index: 1;
  inset: 0;
  background: radial-gradient(
    circle at 50% 37.5%,
    rgba(0, 0, 0, 0.98) 0%,
    rgba(0, 0, 0, 0.94) 12%,
    rgba(0, 0, 0, 0.78) 28%,
    rgba(0, 0, 0, 0.52) 46%,
    rgba(0, 0, 0, 0.28) 64%,
    rgba(0, 0, 0, 0.1) 78%,
    transparent 92%
  );
  content: "";
  pointer-events: none;
}

.mouse-blur {
  position: fixed;
  z-index: 2;
  top: var(--mouse-y, 50%);
  left: var(--mouse-x, 50%);
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(0, 1, 2, 0.938) 0%,
    rgba(120, 134, 255, 0) 30%,
    transparent 72%
  );
  filter: blur(28px);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: opacity 180ms ease;
}

.mouse-blur.is-visible {
  opacity: 1;
}

.site-content {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 100vh;
  padding: 24px 0 96px;
  box-sizing: border-box;
}

.logo-area,
.telegram-area,
.footer-area {
  position: relative;
  display: grid;
  place-items: center;
  text-align: center;
}

.logo-area {
  flex: 0 0 auto;
}

.terminal-launch-area {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 5px;
  place-items: start center;
  flex: 0 0 auto;
}

.main-menu {
  display: grid;
  gap: 5px;
  justify-items: center;
  align-items: center;
  flex: 0 0 auto;
  z-index: 2;
}

.main-menu-btn,
.terminal-launch-btn,
.telegram-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 220px;
  padding: 10px 22px;
  border: 1px solid rgba(0, 255, 65, 0.8);
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.68);
  color: #00ff41;
  cursor: pointer;
  font: inherit;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  transition: background-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.main-menu-btn:hover,
.main-menu-btn:focus-visible,
.terminal-launch-btn:hover,
.terminal-launch-btn:focus-visible,
.telegram-btn:hover,
.telegram-btn:focus-visible {
  background: rgba(0, 59, 0, 0.9);
  box-shadow: 0 0 18px rgba(0, 255, 65, 0.35);
  outline: none;
  transform: translateY(-2px);
}

.main-menu-btn:link,
.main-menu-btn:visited,
.main-menu-btn:hover,
.main-menu-btn:active,
.main-menu-btn:focus {
  color: #00ff41;
}

.terminal-modal[hidden] {
  display: none;
}

.terminal-modal {
  position: fixed;
  z-index: 10;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
}

.terminal-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(4px);
}

.terminal-modal__window {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 80vw;
  height: 80vh;
  min-width: 320px;
  min-height: 260px;
  overflow: hidden;
  border: 1px solid rgba(0, 255, 65, 0.8);
  border-radius: 5px;
  background: #000;
  box-shadow: 0 0 45px rgba(0, 255, 65, 0.25);
}

.terminal-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 38px;
  padding: 0 10px 0 14px;
  border-bottom: 1px solid rgba(0, 255, 65, 0.45);
  background: #001b00;
  color: #00ff41;
}

.terminal-modal__header h2 {
  margin: 0;
  font-size: 14px;
  font-weight: 400;
}

.terminal-modal__close {
  border: 0;
  background: transparent;
  color: #00ff41;
  cursor: pointer;
  font: 24px/1 "Courier New", monospace;
}

.terminal-modal__close:hover,
.terminal-modal__close:focus-visible {
  color: #fff;
  outline: none;
}

.terminal-frame {
  display: block;
  width: 100%;
  min-height: 0;
  flex: 1;
  border: 0;
}

.terminal-is-open {
  overflow: hidden;
}

.radio-popup[hidden] {
  display: none;
}

.radio-popup {
  position: fixed;
  z-index: 11;
  inset: 0;
  pointer-events: none;
}

.radio-popup__window {
  position: fixed;
  top: 2.5vh;
  left: 37.5vw;
  display: flex;
  flex-direction: column;
  width: 25vw;
  height: 95vh;
  overflow: hidden;
  border: 1px solid rgba(255, 217, 61, 0.9);
  border-radius: 5px;
  background: #080808;
  box-shadow: 0 0 35px rgba(255, 217, 61, 0.2);
  pointer-events: auto;
  touch-action: none;
}

.radio-popup__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 38px;
  padding: 0 10px 0 14px;
  border-bottom: 1px solid rgba(255, 217, 61, 0.5);
  background: #211d00;
  color: #ffd93d;
  cursor: move;
  user-select: none;
  touch-action: none;
}

.radio-popup__header h2 {
  margin: 0;
  font-size: 14px;
  font-weight: 400;
}

.radio-popup__close {
  border: 0;
  background: transparent;
  color: #ffd93d;
  cursor: pointer;
  font: 24px/1 "Courier New", monospace;
}

.radio-popup__close:hover,
.radio-popup__close:focus-visible {
  color: #fff;
  outline: none;
}

.radio-popup__window--dragging {
  box-shadow: 0 0 48px rgba(255, 217, 61, 0.4);
}

.radio-popup__frame {
  display: block;
  width: 100%;
  min-height: 0;
  flex: 1;
  border: 0;
}

.telegram-area {
  flex: 0 0 auto;
  gap: 5px;
}

.logo-area > object {
  position: relative;
  z-index: 2;
}

.footer-area {
  position: absolute;
  right: 0;
  bottom: 25px;
  left: 0;
  align-content: center;
}

.footer-area p {
  margin: 0;
}

@media (max-width: 600px) {
  .terminal-modal {
    padding: 10px;
  }

  .terminal-modal__window {
    width: 90vw;
    height: 70vh;
    min-width: 0;
  }

  .radio-popup__window {
    left: 5vw;
    width: 90vw;
  }
}

.contact,
.copyright {
  color: #fff;
}

a:link,
a:visited,
a:hover,
a:active {
  color: #fff;
}

a:active {
  font-size: large;
}

.telegram-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.telegram-btn:link,
.telegram-btn:visited,
.telegram-btn:hover,
.telegram-btn:active {
  color: #00ff41;
  text-decoration: none;
}

