* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Courier New', monospace;
  background: #080808;
  color: #e0e0e0;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  line-height: 1.4;
}
.mobile-nav-buttons {
  display: none;
  position: fixed;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10000;
  flex-direction: column;
  gap: 15px;
}
.mobile-nav-btn {
  width: 45px;
  height: 45px;
  background: rgba(15, 15, 25, 0.9);
  border: 1px solid #333;
  color: #00ffd1;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0;
  transition: all 0.3s;
  box-shadow: 3px 3px 0 rgba(0, 255, 209, 0.2);
  font-family: 'Courier New', monospace;
  position: relative;
  overflow: hidden;
}
.mobile-nav-btn:hover {
  border-color: #00ffd1;
  background: rgba(0, 255, 209, 0.1);
  box-shadow: 5px 5px 0 rgba(0, 255, 209, 0.3);
  transform: translateY(-2px);
}
.mobile-nav-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 255, 209, 0.2), transparent);
  transition: left 0.5s ease;
}
.mobile-nav-btn:hover::before {
  left: 100%;
}
.up-btn::after {
  content: 'ВВЕРХ';
  position: absolute;
  bottom: -25px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 9px;
  color: #888;
  white-space: nowrap;
}
.down-btn::after {
  content: 'ВНИЗ';
  position: absolute;
  bottom: -25px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 9px;
  color: #888;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .mobile-nav-buttons {
    display: flex;
  }
  
  .button-panel {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
  }
  
  .glitch-button {
    flex: 0 0 calc(50% - 10px);
    min-width: 0;
    width: auto;
    padding: 12px 15px;
    font-size: 0.85rem;
    margin-bottom: 10px;
  }
  
  .grid {
    flex-direction: column;
  }
  
  .card {
    max-width: 100%;
    margin-bottom: 20px;
  }
  
  .main-title h1 {
    font-size: 2rem;
  }
  
  .section {
    border-left: none;
    padding-left: 0;
  }
  
  .section::before {
    display: none;
  }
  
  .card::after,
  .card::before,
  .card-rays {
    display: none;
  }
  
  .card-bg-image {
    opacity: 0.2;
    filter: grayscale(100%);
  }
  
  .card-content {
    background: transparent;
  }
}


.static-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(0, 255, 209, 0.02) 2px,
      rgba(0, 255, 209, 0.02) 4px
    );
  opacity: 0.3;
  z-index: -3;
  animation: static-flicker 8s infinite alternate;
}
@keyframes static-flicker {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.4; }
}
.alien-pixels {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
  opacity: 0.3;
}
.alien-pixel {
  position: absolute;
  opacity: 0;
  animation: alien-fall linear infinite;
  line-height: 1;
  text-align: center;
  z-index: -1;
}
@keyframes alien-fall {
  0% {
    transform: translateY(-100px) translateX(0) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 0.8;
  }
  90% {
    opacity: 0.8;
  }
  100% {
    transform: translateY(calc(100vh + 100px)) translateX(calc(var(--x-drift) * 100px)) rotate(360deg);
    opacity: 0;
  }
}
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 30px 20px;
  position: relative;
  z-index: 1;
}
.main-title {
  text-align: center;
  margin-bottom: 50px;
  padding: 20px;
  border: 1px solid #333;
  background: rgba(10, 10, 20, 0.7);
  position: relative;
  overflow: hidden;
}
.main-title::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, #00ffd1, transparent);
}
.main-title h1 {
  font-size: 2.8rem;
  color: #00ffd1;
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 10px;
  font-weight: normal;
  text-shadow: 0 0 10px rgba(0, 255, 209, 0.5);
  position: relative;
}
.main-title h1::after {
  content: '_';
  animation: cursor-blink 1s infinite;
  color: #00ffd1;
}
@keyframes cursor-blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}
.title-sub {
  color: #888;
  font-size: 0.9rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-family: monospace;
}
.title-sub span {
  color: #00ffd1;
}
.section {
  margin-bottom: 60px;
  position: relative;
  border-left: 2px solid #333;
  padding-left: 20px;
}
.section::before {
  content: '>';
  position: absolute;
  left: -10px;
  color: #00ffd1;
  font-family: monospace;
  font-size: 1.2rem;
}
.section h2 {
  font-size: 1.6rem;
  margin-bottom: 25px;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: normal;
  padding-bottom: 5px;
  border-bottom: 1px solid #333;
  display: inline-block;
}
.grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-left: -10px;
}
.card {
  flex: 0 0 350px;
  height: 300px;
  background: rgba(15, 15, 25, 0.9);
  border: 1px solid #222;
  border-radius: 0;
  padding: 0;
  position: relative;
  transition: all 0.3s ease;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.3);
  transform: rotate(-0.5deg);
}
.card:nth-child(even) {
  transform: rotate(0.5deg);
  margin-top: 10px;
}
.card:hover {
  transform: rotate(0deg) translateY(-5px) !important;
  border-color: #00ffd1;
  box-shadow: 8px 8px 0 rgba(0, 255, 209, 0.2);
  z-index: 10;
}
.card::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(45deg);
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  opacity: 0;
  z-index: 100;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.card::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 0;
  background: linear-gradient(
    to top,
    rgba(0, 255, 209, 0.2) 0%,
    rgba(0, 255, 209, 0.1) 30%,
    rgba(0, 255, 209, 0.05) 60%,
    transparent 100%
  );
  opacity: 0;
  z-index: 2;
  pointer-events: none;
  transition: height 0.6s ease, opacity 0.5s ease;
}
.card:hover::after {
  opacity: 0.8;
  animation: diamondPulse 2s infinite alternate;
}
.card:hover::before {
  opacity: 1;
  height: 100%;
}
@keyframes diamondPulse {
  0% {
    box-shadow:
      0 0 0 0 rgba(255, 255, 255, 0.3),
      0 0 0 0 rgba(0, 255, 209, 0.3);
  }
  70% {
    box-shadow:
      0 0 0 10px rgba(255, 255, 255, 0),
      0 0 0 20px rgba(0, 255, 209, 0);
  }
  100% {
    box-shadow:
      0 0 0 0 rgba(255, 255, 255, 0),
      0 0 0 0 rgba(0, 255, 209, 0);
  }
}
.card-content {
  position: relative;
  z-index: 50;
  padding: 20px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  background: transparent;
}
.card-rays {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 200px;
  height: 200px;
  transform: translate(-50%, -50%);
  opacity: 0;
  pointer-events: none;
  z-index: 30;
}
.card:hover .card-rays {
  opacity: 0.2;
}
.ray {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 2px;
  height: 0;
  background: linear-gradient(to top, rgba(200, 200, 200, 0.3), transparent);
  transform-origin: center bottom;
  transform: translate(-50%, -50%);
}
.ray:nth-child(1) { transform: translate(-50%, -50%) rotate(0deg); }
.ray:nth-child(2) { transform: translate(-50%, -50%) rotate(45deg); }
.ray:nth-child(3) { transform: translate(-50%, -50%) rotate(90deg); }
.ray:nth-child(4) { transform: translate(-50%, -50%) rotate(135deg); }
.ray:nth-child(5) { transform: translate(-50%, -50%) rotate(180deg); }
.ray:nth-child(6) { transform: translate(-50%, -50%) rotate(225deg); }
.ray:nth-child(7) { transform: translate(-50%, -50%) rotate(270deg); }
.ray:nth-child(8) { transform: translate(-50%, -50%) rotate(315deg); }
.card:hover .ray {
  animation: rayExtend 0.8s ease-out forwards;
}
@keyframes rayExtend {
  to {
    height: 150px;
  }
}
.card-top {
  background: #111;
  padding: 10px 20px;
  border-bottom: 1px solid #222;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.card-status {
  color: #0f0;
  font-size: 0.8rem;
  font-family: monospace;
}
.card-status::before {
  content: '● ';
  animation: status-pulse 2s infinite;
}
@keyframes status-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}
.card-bg-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.3;
  transition: opacity 0.4s ease, filter 0.6s ease;
  z-index: 1;
  background-size: cover;
  background-position: center;
  filter: grayscale(100%);
}
.card-bg-image.exchanger-bg {
  filter: sepia(20%) hue-rotate(160deg) brightness(0.9) contrast(1.1);
}
.card-bg-image.store-bg {
  filter: grayscale(100%) brightness(0.7) contrast(1.1);
}
.card:hover .card-bg-image {
  opacity: 0.5;
  filter: grayscale(80%);
}
.card-bg-texture {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 1px,
      rgba(0, 0, 0, 0.1) 1px,
      rgba(0, 0, 0, 0.1) 2px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 1px,
      rgba(0, 0, 0, 0.05) 1px,
      rgba(0, 0, 0, 0.05) 2px
    );
  opacity: 0.5;
  z-index: 1;
  pointer-events: none;
}
.card-title {
  margin-bottom: 15px;
}
.card-title a {
  color: #00ffd1;
  text-decoration: none;
  font-size: 1.4rem;
  font-weight: bold;
  display: inline-block;
  position: relative;
  padding-right: 20px;
  text-shadow: 0 0 5px rgba(0, 0, 0, 0.8);
}
.card-title a::after {
  content: '→';
  position: absolute;
  right: 0;
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s;
}
.card:hover .card-title a::after {
  opacity: 1;
  transform: translateX(5px);
}
.card-content p {
  color: #e0e0e0;
  text-shadow: 0 0 5px rgba(0, 0, 0, 0.8);
}
.card-tags {
  margin-top: 10px;
  font-size: 0.8rem;
  color: #666;
  font-family: monospace;
}
.card-tags span {
  display: inline-block;
  background: #222;
  padding: 2px 8px;
  margin-right: 5px;
  margin-bottom: 5px;
}
.changelog {
  background: rgba(10, 10, 20, 0.7);
  border: 1px solid #222;
  padding: 20px;
  position: relative;
}
.changelog-entry {
  padding: 15px 0;
  border-bottom: 1px dashed #333;
  position: relative;
  padding-left: 20px;
}
.changelog-entry:last-child {
  border-bottom: none;
}
.changelog-entry::before {
  content: '>';
  position: absolute;
  left: 0;
  color: #00ffd1;
  font-family: monospace;
}
.changelog-date {
  color: #00ffd1;
  font-family: monospace;
  font-size: 0.9rem;
  margin-bottom: 5px;
  display: inline-block;
  background: rgba(0, 255, 209, 0.1);
  padding: 2px 8px;
}
.changelog-text {
  color: #ccc;
  font-size: 0.95rem;
  line-height: 1.5;
}
.changelog-entry.admin-entry {
  background: rgba(0, 255, 209, 0.05);
  padding: 10px;
  border: 1px dashed #00ffd1;
}
.add-changelog-link {
  color: #00ffd1;
  text-decoration: none;
  font-family: monospace;
}
.add-changelog-link:hover {
  text-decoration: underline;
}
.button-panel {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 40px 0;
  flex-wrap: wrap;
}
.glitch-button {
  display: inline-block;
  padding: 12px 30px;
  background: rgba(10, 10, 20, 0.8);
  border: 1px solid #333;
  color: #00ffd1;
  text-decoration: none;
  font-family: 'Courier New', monospace;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9rem;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  min-width: 120px;
  text-align: center;
}
.glitch-button:hover {
  border-color: #00ffd1;
  background: rgba(0, 255, 209, 0.1);
  box-shadow: 0 0 15px rgba(0, 255, 209, 0.3);
  transform: translateY(-2px);
}
.glitch-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 255, 209, 0.2), transparent);
  transition: left 0.5s ease;
}
.glitch-button:hover::before {
  left: 100%;
}
footer {
  text-align: center;
  margin-top: 40px;
  padding: 20px;
  color: #666;
  font-size: 0.8rem;
  border-top: 1px solid #222;
  font-family: monospace;
  position: relative;
}
footer::before {
  content: '//';
  position: absolute;
  left: 20px;
  color: #00ffd1;
}
#date {
  color: #00ffd1;
  font-weight: bold;
  letter-spacing: 1px;
}


.card:hover .card-bg-image.store-bg {
  filter: grayscale(100%) brightness(0.9) contrast(1.2);
  transform: scale(1.05);
}
.scan-line {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(to right, transparent, rgba(0, 255, 209, 0.5), transparent);
  z-index: 9999;
  pointer-events: none;
  animation: scan 3s linear infinite;
  opacity: 0;
}
@keyframes scan {
  0% {
    top: 0;
    opacity: 0;
  }
  2% {
    opacity: 1;
  }
  98% {
    opacity: 1;
  }
  100% {
    top: 100%;
    opacity: 0;
  }
}
.card:hover .card-bg-image.exchanger-bg {
  filter: sepia(20%) hue-rotate(160deg) brightness(1.1) contrast(1.2);
  transform: scale(1.05);
}
.vhs-effect {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    transparent 50%,
    rgba(0, 255, 209, 0.02) 50%
  );
  background-size: 100% 4px;
  opacity: 0;
  animation: vhs-flicker 0.1s infinite;
  pointer-events: none;
  z-index: 0;
}
.card:hover .vhs-effect {
  opacity: 0.3;
}
@keyframes vhs-flicker {
  0% { transform: translateY(0); }
  100% { transform: translateY(4px); }
}
.edit-link {
  position: absolute;
  bottom: 10px;
  z-index: 1000;
  right: 10px;
  color: #ff0000;
  text-decoration: none;
  font-size: 0.8rem;
}
.admin-add {
  margin-bottom: 10px;
}
.admin-add a {
  color: #00ffd1;
  text-decoration: none;
}