* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: linear-gradient(to bottom, #0a1a2a, #050d15);
  color: #c5d5e0;
  font-family: 'Oswald', sans-serif;
  line-height: 1.8;
  text-align: center;
  padding: 40px 20px;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* Текстура для всего сайта - имитация металла с ржавчиной */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect width="100" height="100" fill="%230a1a2a" opacity="0.3"/><path d="M20,20 Q40,5 60,20 T100,20" fill="none" stroke="%235a2a1a" stroke-width="0.5" opacity="0.2"/><path d="M30,40 Q50,25 70,40 T110,40" fill="none" stroke="%235a2a1a" stroke-width="0.5" opacity="0.2"/></svg>');
  pointer-events: none;
  z-index: -1;
}

.container {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* Добавляем эффект "мокрого стекла" для контейнера */
.container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(30, 144, 255, 0.03) 0%, rgba(0, 206, 209, 0.03) 100%);
  pointer-events: none;
  border-radius: 4px;
  z-index: -1;
}

header {
  margin-bottom: 40px;
  padding: 20px;
  position: relative;
}

/* Заголовок в стиле BioShock */
h1 {
  font-family: 'Oswald', sans-serif;
  font-size: 4.5rem;
  color: #d4af37;
  text-shadow: 
    0 0 10px rgba(212, 175, 55, 0.7),
    0 0 20px rgba(212, 175, 55, 0.4);
  letter-spacing: 4px;
  margin-bottom: 10px;
  position: relative;
  text-transform: uppercase;
  font-weight: 700;
}

/* Добавляем эффект "мерцающего неона" для заголовка */
h1::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #d4af37, transparent);
  box-shadow: 0 0 8px #d4af37;
}

p {
  font-size: 1.1rem;
  color: #a0c0d0;
  margin: 10px 0;
}

.tagline {
  font-style: italic;
  color: #8ab0c5;
  margin: 10px 0 40px;
  font-size: 1.3rem;
  letter-spacing: 1px;
  text-shadow: 0 0 5px rgba(138, 176, 197, 0.3);
}

/* Линия-разделитель в стиле BioShock */
.line {
  width: 100px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #00a2ff, transparent);
  margin: 20px auto;
  position: relative;
}

.line::before, .line::after {
  content: "";
  position: absolute;
  top: -3px;
  width: 10px;
  height: 8px;
  background: #00a2ff;
  border-radius: 50%;
}

.line::before {
  left: 20px;
}

.line::after {
  right: 20px;
}

.games {
  margin: 60px 0;
  padding: 20px;
  background: rgba(5, 20, 30, 0.6);
  border: 1px solid rgba(0, 162, 255, 0.3);
  border-radius: 8px;
  box-shadow: 
    0 0 20px rgba(0, 162, 255, 0.2),
    inset 0 0 15px rgba(0, 100, 150, 0.1);
  position: relative;
  overflow: hidden;
}

/* Эффект "пузырьков" для секции игр */
.games::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 30px 30px;
  pointer-events: none;
}

h2 {
  font-family: 'Oswald', sans-serif;
  font-size: 2.8rem;
  color: #00a2ff;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-shadow: 0 0 8px rgba(0, 162, 255, 0.5);
}

#games-list {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: center;
}

.empty {
  color: #557585;
  font-style: italic;
  padding: 20px;
  border: 1px dashed rgba(0, 162, 255, 0.3);
  border-radius: 4px;
  background: rgba(0, 20, 30, 0.3);
}

/* Карточки игр в стиле BioShock */
.game-item {
  background: linear-gradient(to bottom, rgba(10, 30, 45, 0.8), rgba(5, 20, 30, 0.9));
  border: 1px solid rgba(0, 162, 255, 0.4);
  border-radius: 6px;
  padding: 20px 25px;
  width: 80%;
  max-width: 500px;
  transition: all 0.3s ease;
  box-shadow: 
    0 0 10px rgba(0, 162, 255, 0.2),
    inset 0 0 5px rgba(0, 100, 150, 0.2);
  position: relative;
  overflow: hidden;
}

/* Эффект "ржавчины" по краям карточки */
.game-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><path d="M5,5 L95,5 L95,95 L5,95 Z M10,10 L90,10 L90,90 L10,90 Z" fill="none" stroke="%238b4513" stroke-width="0.5" opacity="0.1"/></svg>');
  pointer-events: none;
  opacity: 0.6;
}

.game-item:hover {
  border-color: #00a2ff;
  transform: translateY(-3px);
  box-shadow: 
    0 5px 15px rgba(0, 162, 255, 0.3),
    inset 0 0 15px rgba(0, 162, 255, 0.2);
}

.game-item h3 {
  color: #00a2ff;
  margin-bottom: 8px;
  font-size: 1.6rem;
  letter-spacing: 1px;
  text-shadow: 0 0 5px rgba(0, 162, 255, 0.4);
}

.game-item p {
  color: #8ab0c5;
  margin-bottom: 15px;
  font-size: 1.1rem;
}

/* Кнопка "Играть" в стиле BioShock */
.play-btn {
  display: inline-block;
  background: linear-gradient(to bottom, #006ba6, #004d7a);
  color: #e6f0ff;
  padding: 10px 25px;
  text-decoration: none;
  border-radius: 4px;
  font-family: 'Oswald', sans-serif;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: 1px solid #00a2ff;
  transition: all 0.3s;
  box-shadow: 
    0 0 10px rgba(0, 162, 255, 0.3),
    inset 0 0 5px rgba(255, 255, 255, 0.1);
  text-shadow: 0 0 3px rgba(255, 255, 255, 0.5);
}

.play-btn:hover {
  background: linear-gradient(to bottom, #0088cc, #006ba6);
  box-shadow: 
    0 0 15px rgba(0, 162, 255, 0.6),
    inset 0 0 10px rgba(255, 255, 255, 0.2);
  transform: scale(1.05);
  cursor: pointer;
}

footer {
  margin-top: 80px;
  font-size: 0.9rem;
  color: #557585;
  padding: 20px;
  border-top: 1px solid rgba(0, 162, 255, 0.2);
}

footer::before {
  content: "⚠";
  margin-right: 5px;
  color: #d4af37;
}

/* Добавляем эффект "старой бумаги" для всего контента */
@media (max-width: 600px) {
  h1 {
    font-size: 2.8rem;
  }
  
  h2 {
    font-size: 2.2rem;
  }
  
  .game-item {
    width: 90%;
    padding: 15px 18px;
  }
  
  body {
    background: linear-gradient(to bottom, #081520, #040a10);
  }
}

/* Эффект мерцания для всего сайта - имитация неоновых вывесок в BioShock */
@keyframes flicker {
  0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% {
    opacity: 1;
  }
  20%, 22%, 24%, 55% {
    opacity: 0.8;
  }
}

/* Мерцание для заголовка */
h1 {
  animation: flicker 5s infinite;
}

/* Анимация "пузырьков" для секции игр */
@keyframes bubbles {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: -30px -30px;
  }
}

.games::before {
  animation: bubbles 20s linear infinite;
}
