* {
  user-select: none;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  user-select: none;
  height: 100%;
  background: #000;
  color: #fff;
  font-family: 'Press Start 2P', monospace;
  image-rendering: pixelated;
  overflow-x: hidden;
  overflow-y: auto;
  filter: contrast(180%) grayscale(85%) brightness(120%);
  background-image: 
    repeating-linear-gradient(0deg, rgba(255,255,255,0.01) 0px, 
    rgba(255,255,255,0.01) 1px, transparent 1px, transparent 2px);
  background-size: 100% 2px;
  animation: scanlines 0.5s steps(2, end) infinite;
}

/* Оптимизация для старых ПК */
body.reduced-animations * {
  animation-duration: 0.01s !important;
  animation-iteration-count: 1 !important;
  transition: none !important;
}

body.reduced-animations {
  animation: none !important;
  filter: contrast(160%) grayscale(70%) brightness(110%) !important;
}

.scroll-container {
  height: auto;
  min-height: 100vh;
  overflow: hidden;
  padding: 20px;
  display: flex;
  flex-direction: column;
}

.main-container {
  max-width: 1200px;
  margin: 120px auto 0;
  width: 100%;
}

.center-header {
  text-align: center;
  padding: 15px 0;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(0,0,0,0.9);
  z-index: 100;
  border-bottom: 2px solid #636363;
  transform: translateY(0);
  transition: transform 0.4s ease-out;
  display: flex;
  justify-content: center;
}

.center-header.hidden {
  transform: translateY(-100%);
}

.header-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 1000px;
  width: 100%;
  padding: 0 15px;
}

.logo-title-wrapper {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 10px;
}

.content-wrapper {
  display: flex;
  justify-content: center;
  gap: 30px;
  padding: 0 15px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.column {
  display: flex;
  flex-direction: column;
  width: 30%;
  min-width: 350px;
  flex-grow: 1;
  transition: transform 0.3s ease, width 0.3s ease;
}

.column:hover {
  transform: scale(1.02);
  z-index: 10;
}

.text-block {
  flex: 1;
  min-height: 0;
  background: rgba(20,20,20,0.9);
  border: 2px solid #636363;
  padding: 20px;
  box-shadow: 
    0 0 12px rgba(0,0,0,0.7), 
    inset 0 0 6px rgba(255,255,255,0.05);
  border-radius: 6px;
  animation: flicker 7s infinite;
  transition: box-shadow 0.3s ease;
}

.column:hover .text-block {
  box-shadow: 
    0 0 20px rgba(0,0,0,0.9), 
    inset 0 0 10px rgba(255,255,255,0.1);
}

.text-content {
  padding: 15px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.7rem;
  line-height: 1.4;
}

.text-content p {
  margin-bottom: 8px;
}

/* Видео секция */
.video-section {
  width: 100%;
  margin-top: 30px;
  display: flex;
  justify-content: center;
}

.video-section .text-block {
  width: 100%;
  max-width: 900px;
  text-align: center;
}

.video-container {
  margin-top: 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.video-container video {
  border: 2px solid #636363;
  border-radius: 4px;
  background: #000;
}

.video-fallback {
  padding: 20px;
  color: #636363;
  font-size: 0.7rem;
  text-align: center;
}

.site-footer {
  margin-top: 40px;
  padding: 15px;
  text-align: center;
  font-size: 0.6rem;
  color: #636363;
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.discord-link {
  color: #ececec;
  text-decoration: underline;
  transition: all 0.3s;
  display: inline-block;
  margin-top: 10px;
}

.footer-console-link {
  color: #636363;
  text-decoration: none;
  transition: all 0.3s;
}

.footer-console-link:hover {
  color: #555555;
  text-decoration: underline;
}

.glitch {
  position: relative;
  color: #fff;
  animation: flicker 5s infinite;
}

.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(0,0,0,0.9);
}

.glitch::before {
  left: 2px;
  text-shadow: -2px 0 red;
  animation: glitch-anim 1s infinite linear alternate-reverse;
}

.glitch::after {
  left: -2px;
  text-shadow: 2px 0 blue;
  animation: glitch-anim2 1.5s infinite linear alternate-reverse;
}

.header-logo {
  height: 50px;
  width: auto;
  image-rendering: pixelated;
  filter: drop-shadow(0 0 2px rgba(255, 0, 0, 0.7));
  object-fit: contain;
}

.member-name {
  position: relative;
  display: inline-block;
  cursor: pointer;
  transition: all 0.3s;
}

.member-name:hover {
  color: transparent;
}

.member-name::after {
  content: attr(data-original);
  position: absolute;
  left: 0;
  top: 0;
  color: #fff;
  overflow: hidden;
  white-space: nowrap;
  width: 0;
  transition: width 0.3s ease;
}

.member-name:hover::after {
  width: 100%;
  animation: glitch-anim 0.5s infinite alternate-reverse, glitch-anim2 0.7s infinite alternate-reverse;
}

.member-name.final::after {
  content: attr(data-final);
  width: 100%;
  animation: none !important;
}

.column.expanded[style*="width: 80%"] {
  min-width: 800px;
}

@media (max-width: 900px) {
  .content-wrapper {
    flex-direction: column;
    align-items: center;
    padding: 0 20px;
    gap: 20px;
  }
  
  .column {
    width: 100%;
    max-width: 600px;
  }
  
  .column:hover {
    transform: none;
  }
  
  .header-logo {
    height: 30px;
  }
  
  .logo-title-wrapper {
    gap: 12px;
  }
  
  .text-content {
    font-size: 0.65rem;
    gap: 6px;
  }
  
  .text-content p {
    margin-bottom: 6px;
  }
  
  .video-section .text-block {
    max-width: 95%;
  }
  
  .column.expanded[style*="width: 80%"] {
    width: 95% !important;
    min-width: unset;
    max-width: 95% !important;
  }
}

@media (max-width: 480px) {
  .scroll-container {
    padding: 15px;
  }
  
  .main-container {
    margin-top: 100px;
  }
  
  .text-block {
    padding: 15px;
  }
  
  .header-logo {
    height: 25px;
  }
  
  .glitch {
    font-size: 0.9rem;
  }
  
  .text-content {
    font-size: 0.6rem;
    gap: 4px;
  }
  
  .text-content p {
    margin-bottom: 4px;
  }
  
  .video-container video {
    max-width: 100%;
  }
  
  .column.expanded[style*="width: 80%"] {
    width: 100% !important;
    max-width: 100% !important;
  }
}

body.no-scroll {
  overflow: hidden;
}