    /* Общие стили */
    body {
      margin: 0;
      font-family: 'Roboto', sans-serif;
      background-color: #1C1C1C;
      min-height: 100vh;
      position: relative;
      color: #e0e0e0;
    }

    header {
      background-color: #1e1e1e;
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 8px 30px;
      box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
      position: sticky;
      top: 0;
      z-index: 100;
      text-align: center;
    }

    .logo {
      font-size: 30px;
      font-weight: 700;
      background: linear-gradient(to right, transparent, transparent),
      linear-gradient(to right, #2e7fd4, #225a99);
      background-size: cover;
      background-clip: text;
      color: transparent;
      letter-spacing: 1px;
    }

    .nav-links {
      display: block;
      gap: 20px;
      align-items: center;
    }

    .nav-links a {
      text-decoration: none;
      color: #d0d0d0;
      font-size: 16px;
      font-weight: 500;
      padding: 8px 16px;
      transition: all 0.5s ease;
      display: block;
      border-radius: 10px;
      background: linear-gradient(to right, transparent, transparent),
      linear-gradient(to right, #2e7fd4, #225a99);
      background-size: 0 3px;
      background-position: 100% 100%, 0 100%;
      background-repeat: no-repeat;
      transition: .3s;
    }

    .nav-links a:hover, .Meny .nav-links a.active {
      background-size: 0 3px, 100% 3px;
      transition: all 0.3s ease;
      color: #fff;
      transform: translateY(-2px);
    }

    /* Поисковая строка */
    .search-container {
      position: relative;
      flex-grow: 1;
      max-width: 500px;
      margin: 0 20px;
    }

    .search-input {
      width: 100%;
      padding: 10px 15px;
      border-radius: 25px;
      border: none;
      background-color: #2a2a2a;
      color: #fff;
      font-size: 16px;
      outline: none;
      transition: all 0.3s;
      padding-right: 40px;
    }

    .search-input:focus {
      box-shadow: 0 0 0 2px #00bfff;
      background-color: #333;
    }

    .search-icon {
      position: absolute;
      right: 15px;
      top: 50%;
      transform: translateY(-50%);
      color: #aaa;
      cursor: pointer;
    }

    /* Иконки */
    .user-icon, .dev-icon, .help-icon, .add-icon {
      display: flex;
      justify-content: center;
      align-items: center;
      width: 40px;
      height: 40px;
      background-color: #2a2a2a;
      color: #ffffff;
      cursor: pointer;
      border-radius: 50%;
      transition: all 0.3s ease;
      font-weight: bold;
      font-size: 18px;
      box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    }

    .user-icon:hover, .dev-icon:hover, .help-icon:hover, .add-icon:hover {
      background: linear-gradient(to right, transparent, transparent),
      linear-gradient(to right, #2e7fd4, #225a99);
      color: black;
      transform: scale(1.1);
    }

    .dev-icon {
      position: fixed;
      right: 20px;
      bottom: 20px;
    }

    .help-icon {
      position: fixed;
      right: 70px;
      bottom: 20px;
    }

    .add-icon {
      position: fixed;
      left: 20px;
      bottom: 20px;
    }

    /* Тултипы */
    .tooltip {
      position: fixed;
      background-color: #333;
      color: white;
      padding: 8px 15px;
      border-radius: 6px;
      font-size: 14px;
      pointer-events: none;
      opacity: 0;
      transition: opacity 0.2s;
      z-index: 100;
      box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    }

    /* Модальные окна */
    .modal-overlay {
      position: fixed;
      top: 0; left: 0;
      width: 100%;
      height: 100%;
      background-color: rgba(0,0,0,0.7);
      display: none;
      justify-content: center;
      align-items: center;
      z-index: 1000;
      backdrop-filter: blur(5px);
    }

    .modal {
      position: relative;
      background-color: #1e1e1e;
      padding: 30px;
      border-radius: 12px;
      max-width: 500px;
      text-align: center;
      box-shadow: 0 10px 30px rgba(0,0,0,0.5);
      border: 1px solid #333;
    }

    .modal h2 {
      margin-top: 0;
      font-size: 22px;
      color: #00bfff;
      margin-bottom: 20px;
    }

    .modal p, .modal li {
      color: #ccc;
      line-height: 1.6;
    }

    .modal button {
      margin-top: 20px;
      background: linear-gradient(135deg, #00bfff, #0088cc);
      color: white;
      padding: 12px 25px;
      border: none;
      border-radius: 8px;
      cursor: pointer;
      font-size: 16px;
      transition: all 0.3s;
      font-weight: 500;
    }

    .modal button:hover {
      transform: translateY(-2px);
      box-shadow: 0 5px 15px rgba(0, 191, 255, 0.3);
    }

    .modal-close {
      position: absolute;
      top: 15px;
      right: 20px;
      font-size: 24px;
      color: #888;
      cursor: pointer;
      transition: color 0.2s ease;
    }

    .modal-close:hover {
      color: #00bfff;
    }

    /* Сетка игр */
    .games-container {
      max-width: 1400px;
      margin: 0 auto;
      padding: 30px;
    }

    .games-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
      gap: 30px;
    }

    .game-card {
      background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
      border-radius: 12px;
      overflow: hidden;
      box-shadow: 0 8px 25px rgba(0,0,0,0.3);
      transition: all 0.3s ease;
      cursor: pointer;
      position: relative;
      border: 1px solid rgba(255,255,255,0.05);
    }

    .game-card:hover {
      transform: translateY(-10px);
      box-shadow: 0 15px 35px rgba(0,0,0,0.4);
      border-color: rgba(0, 191, 255, 0.3);
    }

    .game-card::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      height: 4px;
      background: linear-gradient(90deg, #00bfff, #0088cc);
    }

    .game-card-img-container {
      height: 180px;
      overflow: hidden;
      position: relative;
    }

    .game-card img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      transition: transform 0.5s ease;
    }

    .game-card:hover img {
      transform: scale(1.1);
    }

    .game-card-info {
      padding: 20px;
      position: relative;
    }

    .game-card-title {
      font-weight: 600;
      margin-bottom: 10px;
      color: #fff;
      font-size: 20px;
    }

    .game-card-genre {
      color: #aaa;
      font-size: 14px;
      margin-bottom: 15px;
      display: inline-block;
      background: rgba(0,0,0,0.4);
      padding: 5px 12px;
      border-radius: 20px;
    }

    .game-card-rating {
      position: absolute;
      top: -15px;
      right: 20px;
      background: linear-gradient(135deg, #4d95e8, #2765a8);
      color: #ffffff;
      width: 35px;
      height: 35px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      font-weight: bold;
      font-size: 14px;
      box-shadow: 0 3px 15px rgba(255, 204, 0, 0.3);
    }

    /* Сообщение "Ничего не найдено" */
    .no-results {
      grid-column: 1 / -1;
      text-align: center;
      color: #aaa;
      padding: 40px;
      font-size: 18px;
      display: none;
    }

    /* Стили для формы входа */
    .login-form {
      margin-top: 20px;
      text-align: left;
    }

    .login-form input {
      width: 100%;
      padding: 12px;
      margin-bottom: 15px;
      border-radius: 6px;
      border: 1px solid #333;
      background-color: #2a2a2a;
      color: white;
      box-sizing: border-box;
    }

    .login-form button {
      width: 100%;
      padding: 12px;
      background: linear-gradient(135deg, #00bfff, #0088cc);
      color: white;
      border: none;
      border-radius: 6px;
      cursor: pointer;
      font-weight: 500;
    }

    .login-message {
      margin-top: 15px;
      padding: 10px;
      border-radius: 5px;
      text-align: center;
      display: none;
    }

    .login-success {
      background-color: #2d4d2d;
      color: #90ee90;
    }

    .login-error {
      background-color: #4d2d2d;
      color: #ff6b6b;
    }

    /* From Uiverse.io by Priyanshu02020 */ 
#heart {
  display: none;
}

/* From Uiverse.io by Galahhad */ 
.ui-bookmark {
  --icon-size: 24px;
  --icon-secondary-color: rgb(77, 77, 77);
  --icon-hover-color: rgb(97, 97, 97);
  --icon-primary-color: gold;
  --icon-circle-border: 1px solid var(--icon-primary-color);
  --icon-circle-size: 35px;
  --icon-anmt-duration: 0.3s;
  margin-left: 94%;
  position: absolute;
  margin-top: -12px;
}

.ui-bookmark input {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  display: none;
}

.ui-bookmark .bookmark{
  width: var(--icon-size);
  height: auto;
  fill: var(--icon-secondary-color);
  cursor: pointer;
  -webkit-transition: 0.2s;
  -o-transition: 0.2s;
  transition: 0.2s;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  position: relative;
  -webkit-transform-origin: top;
  -ms-transform-origin: top;
  transform-origin: top;
  .safegame{
    fill: var(--icon-secondary-color);
  }
}

.bookmark::after{
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  -webkit-box-shadow: 0 30px 0 -4px var(--icon-primary-color),
    30px 0 0 -4px var(--icon-primary-color),
    0 -30px 0 -4px var(--icon-primary-color),
    -30px 0 0 -4px var(--icon-primary-color),
    -22px 22px 0 -4px var(--icon-primary-color),
    -22px -22px 0 -4px var(--icon-primary-color),
    22px -22px 0 -4px var(--icon-primary-color),
    22px 22px 0 -4px var(--icon-primary-color);
  box-shadow: 0 30px 0 -4px var(--icon-primary-color),
    30px 0 0 -4px var(--icon-primary-color),
    0 -30px 0 -4px var(--icon-primary-color),
    -30px 0 0 -4px var(--icon-primary-color),
    -22px 22px 0 -4px var(--icon-primary-color),
    -22px -22px 0 -4px var(--icon-primary-color),
    22px -22px 0 -4px var(--icon-primary-color),
    22px 22px 0 -4px var(--icon-primary-color);
  border-radius: 50%;
  -webkit-transform: scale(0);
  -ms-transform: scale(0);
  transform: scale(0);
}

.bookmark::before{
  content: "";
  position: absolute;
  border-radius: 50%;
  border: var(--icon-circle-border);
  opacity: 0;
}

/* actions */

.ui-bookmark:hover .bookmark .safegame{
  fill: var(--icon-hover-color);
}

.ui-bookmark input:checked + .bookmark::after{
  -webkit-animation: circles var(--icon-anmt-duration)
    cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
  animation: circles var(--icon-anmt-duration)
    cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
  -webkit-animation-delay: var(--icon-anmt-duration);
  animation-delay: var(--icon-anmt-duration);
}

.ui-bookmark input:checked + .bookmark .safegame{
  fill: var(--icon-primary-color);
  -webkit-animation: bookmark var(--icon-anmt-duration) forwards;
  animation: bookmark var(--icon-anmt-duration) forwards;
  -webkit-transition-delay: 0.3s;
  -o-transition-delay: 0.3s;
  transition-delay: 0.3s;
}

.ui-bookmark input:checked + .bookmark::before{
  -webkit-animation: circle var(--icon-anmt-duration)
    cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
  animation: circle var(--icon-anmt-duration)
    cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
  -webkit-animation-delay: var(--icon-anmt-duration);
  animation-delay: var(--icon-anmt-duration);
}

/* From Uiverse.io by waleedlh10 */ 
.con-like {
  --red: rgb(255, 50, 50);
  position: absolute;
  width: 24px;
  height: 24px;
  margin-left: 91.2%;
  margin-top: -12px;
}

.con-like .like {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  z-index: 20;
  cursor: pointer;
}

.con-like .checkmark {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.con-like .outline,
.con-like .filled {
  fill: var(--red);
  position: absolute;
}

.con-like .filled {
  animation: kfr-filled 0.5s;
  display: none;
}

.con-like .celebrate {
  position: absolute;
  animation: kfr-celebrate 0.5s;
  animation-fill-mode: forwards;
  display: none;
}

.con-like .poly {
  stroke: var(--red);
  fill: var(--red);
}

.con-like .like:checked ~ .checkmark .filled {
  display: block
}

.con-like .like:checked ~ .checkmark .celebrate {
  display: block
}

@keyframes kfr-filled {
  0% {
    opacity: 0;
    transform: scale(0);
  }

  50% {
    opacity: 1;
    transform: scale(1.2);
  }
}

@keyframes kfr-celebrate {
  0% {
    transform: scale(0);
  }

  50% {
    opacity: 0.8;
  }

  100% {
    transform: scale(1.2);
    opacity: 0;
    display: none;
  }
}

@-webkit-keyframes bookmark{
  50% {
    -webkit-transform: scaleY(0.6);
    transform: scaleY(0.6);
  }

  100% {
    -webkit-transform: scaleY(1);
    transform: scaleY(1);
  }
}

@keyframes bookmark{
  50% {
    -webkit-transform: scaleY(0.6);
    transform: scaleY(0.6);
  }

  100% {
    -webkit-transform: scaleY(1);
    transform: scaleY(1);
  }
}

@-webkit-keyframes circle {
  from {
    width: 0;
    height: 0;
    opacity: 0;
  }

  90% {
    width: var(--icon-circle-size);
    height: var(--icon-circle-size);
    opacity: 1;
  }

  to {
    opacity: 0;
  }
}

@keyframes circle {
  from {
    width: 0;
    height: 0;
    opacity: 0;
  }

  90% {
    width: var(--icon-circle-size);
    height: var(--icon-circle-size);
    opacity: 1;
  }

  to {
    opacity: 0;
  }
}

@-webkit-keyframes circles {
  from {
    -webkit-transform: scale(0);
    transform: scale(0);
  }

  40% {
    opacity: 1;
  }

  to {
    -webkit-transform: scale(0.8);
    transform: scale(0.8);
    opacity: 0;
  }
}

@keyframes circles {
  from {
    -webkit-transform: scale(0);
    transform: scale(0);
  }

  40% {
    opacity: 1;
  }

  to {
    -webkit-transform: scale(0.8);
    transform: scale(0.8);
    opacity: 0;
  }
}


    /* Адаптивность */
    @media (max-width: 992px) {
      .games-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
      }
    }

    @media (max-width: 768px) {
      header {
        flex-direction: column;
        align-items: flex-start;
        padding: 15px;
      }

      .logo {
        margin-bottom: 15px;
      }

      .nav-links {
        width: 100%;
        justify-content: space-between;
        flex-wrap: wrap;
      }

      .search-container {
        order: 1;
        width: 100%;
        margin: 15px 0 0 0;
      }

      .games-container {
        padding: 20px;
      }

      .game-card-img-container {
        height: 150px;
      }
    }

    @media (max-width: 576px) {
      .games-grid {
        grid-template-columns: 1fr;
      }

      .game-card-title {
        font-size: 18px;
      }

      .nav-links a {
        width: auto;
      }
    }