* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: #040e13;
  color: #f7f9fc;
  font:
    15px/1.5 Arial,
    Helvetica,
    sans-serif;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input {
  font: inherit;
}
button,
a,
input {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
  color: inherit;
  background: #13212c;
  border: 1px solid #253642;
  border-radius: 10px;
  padding: 10px 16px;
  min-height: 44px;
}
button:hover,
a.card:hover {
  border-color: #d0ff00;
  filter: brightness(1.12);
}
:focus-visible {
  outline: 2px solid #d0ff00;
  outline-offset: 4px;
}
.lime {
  background: #d0ff00;
  color: #080e00;
  border-color: #d0ff00;
  font-weight: 700;
}
.muted {
  color: #a5b8c8;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 224px;
  padding: 16px 22px;
  background: linear-gradient(120deg, #0c1921, #061015);
  border-right: 1px solid #1e303b;
  z-index: 30;
  overflow: auto;
}
.logo {
  font-size: 28px;
  font-weight: 1000;
  letter-spacing: -2px;
}
.sidebar nav {
  display: grid;
  gap: 3px;
  margin-top: 21px;
}
.sidebar nav a {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 43px;
  font-size: 14px;
  border-radius: 8px;
  padding: 6px 8px;
}
.sidebar nav a:hover {
  background: #152631;
  color: #f7f9fc;
}
.sidebar nav a.active,
.sidebar nav a[aria-current="page"] {
  background: #12303a;
  color: #12f9ef;
  box-shadow: inset 3px 0 0 #12f9ef;
  font-weight: 700;
}
.ico {
  width: 23px;
  color: #95b3c9;
  font-size: 22px;
  text-align: center;
}
.nav-label {
  font-size: 12px;
  letter-spacing: 1px;
  color: #a6bccc;
  margin: 22px 4px 8px;
}
.sidebar .lime {
  display: block;
  text-align: center;
  margin-top: 20px;
  border-radius: 10px;
  padding: 11px;
}
.sidebar small {
  display: block;
  color: #8ca4b7;
  font-size: 12px;
  line-height: 1.7;
  margin: 17px 3px;
}
.topbar {
  height: 60px;
  position: sticky;
  top: 0;
  margin-left: 224px;
  background: #030c11f5;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 8px 26px;
  border-bottom: 1px solid #22303a;
}
.search-wrap {
  position: relative;
  flex: 1;
  max-width: 605px;
  margin-right: auto;
}
.search-wrap input {
  width: 100%;
  background: #13222d;
  border: 0;
  border-radius: 14px;
  padding: 10px 18px;
  color: white;
  min-height: 38px;
}
.search-results {
  position: absolute;
  top: 46px;
  left: 0;
  right: 0;
  background: #12212c;
  border: 1px solid #34434e;
  padding: 12px;
  border-radius: 12px;
  box-shadow: 0 20px 50px #000;
}
.search-results a {
  display: block;
  padding: 12px;
}
.topbar > a {
  font-size: 14px;
  font-weight: bold;
}
.profile {
  border-radius: 50%;
  padding: 4px 12px;
  font-size: 22px;
}
.menu {
  display: none;
}
main {
  margin-left: 224px;
  min-width: 0;
}
.hero {
  height: 354px;
  position: relative;
  overflow: hidden;
  background: #07111b;
}
.hero-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.home-hero .hero-art {
  object-position: right;
}
.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    #030b13 0%,
    #030b1390 36%,
    transparent 65%
  );
}
.hero-content {
  position: relative;
  z-index: 1;
  padding: 32px 42px;
  max-width: 670px;
}
.eyebrow {
  color: #12f9ef;
  letter-spacing: 2px;
  font-size: 13px;
  font-weight: bold;
}
.hero h1 {
  font-size: 48px;
  line-height: 1.02;
  margin: 12px 0;
  font-weight: 900;
  letter-spacing: -1.4px;
}
.hero p {
  margin: 10px 0 18px;
  max-width: 480px;
}
.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.actions a {
  padding: 10px 25px;
  border-radius: 12px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.benefits {
  display: flex;
  gap: 30px;
  margin-top: 18px;
  font-size: 13px;
}
.benefits b {
  font-size: 22px;
  margin-right: 8px;
}
.hero-controls {
  position: absolute;
  bottom: 8px;
  right: 22px;
  z-index: 2;
  display: flex;
  gap: 6px;
}
.hero-controls button {
  padding: 0;
  width: 36px;
  min-height: 30px;
  border-radius: 30px;
  background: #09121dc9;
}
.hero-controls .selected {
  background: #d0ff00;
  color: #000;
}
.content {
  padding: 12px 28px 24px;
}
.section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 0 6px;
}
.section-title h2 {
  font-size: 20px;
  margin: 0;
}
.section-title a {
  font-size: 13px;
}
.section-sub {
  color: #a5b8c8;
  margin: 0 0 9px;
  font-size: 13px;
}
.featured {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}
.card {
  display: block;
  background: #0c1921;
  border: 1px solid #243441;
  border-radius: 9px;
  overflow: hidden;
  transition:
    transform 0.2s,
    border-color 0.2s;
}
.card:hover {
  transform: translateY(-3px);
}
.card img {
  width: 100%;
  object-fit: cover;
  display: block;
}
.featured .card img {
  height: 145px;
}
.card-body {
  padding: 8px 10px;
}
.card h3 {
  font-size: 15px;
  margin: 0 0 5px;
}
.pills {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.pill {
  background: #1d2c37;
  border-radius: 30px;
  padding: 3px 10px;
  font-size: 12px;
}
.popular {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}
.popular .card img {
  aspect-ratio: 2.1;
}
.section {
  margin-top: 19px;
}
.promo {
  margin-top: 22px;
  background:
    linear-gradient(100deg, #102230, #142d3e80),
    url("/assets/popular-4.webp") center/cover;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 21px 28px;
  border: 1px solid #2c414e;
  border-radius: 12px;
  gap: 20px;
}
.promo h2 {
  font-size: 20px;
  margin: 0 0 5px;
}
.promo p {
  margin: 0;
  max-width: 470px;
  font-size: 13px;
}
.outline {
  border: 1px solid #0feaf0;
  padding: 10px 24px;
  border-radius: 10px;
}
.game-hero {
  height: 325px;
}
.game-hero .hero-art {
  object-fit: cover;
}
.game-hero .hero-content {
  position: absolute;
  bottom: 0;
  padding: 14px 26px;
  max-width: none;
  width: 100%;
  background: linear-gradient(transparent, #030c11);
}
.game-hero h1 {
  font-size: 24px;
  letter-spacing: 0;
  margin: 0 0 4px;
}
.game-hero p {
  margin: 0 0 8px;
}
.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 2.35fr) minmax(245px, 1fr) minmax(
      210px,
      0.83fr
    );
  gap: 16px;
  padding: 16px 26px;
}
.panel {
  background: #0e1b24;
  border: 1px solid #172831;
  border-radius: 11px;
  padding: 14px;
  min-width: 0;
}
.media-panel {
  padding: 7px;
}
.player {
  aspect-ratio: 16/9;
  border-radius: 9px;
  overflow: hidden;
  position: relative;
  background: #000;
}
.player img,
.player video,
.player iframe {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
}
.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
  background: #0002;
  border: 0;
  border-radius: 0;
  width: 100%;
  text-shadow: 0 2px 8px #000;
}
.play-circle {
  display: grid;
  place-items: center;
  font-size: 36px;
  color: #d0ff00;
  background: #050b12d9;
  border: 2px solid #d0ff00;
  border-radius: 50%;
  width: 82px;
  height: 82px;
  margin: 0 auto 8px;
}
.player-label {
  position: absolute;
  bottom: 0;
  left: 0;
  padding: 9px;
  background: #000b;
  width: 100%;
  font-size: 12px;
}
.gallery {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-top: 9px;
}
.gallery button {
  padding: 0;
  overflow: hidden;
  position: relative;
  border: 2px solid transparent;
  border-radius: 8px;
  height: 73px;
}
.gallery button.selected {
  border-color: #d0ff00;
}
.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gallery span {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  background: #0007;
  font-weight: bold;
  font-size: 20px;
}
.info h2 {
  font-size: 26px;
  margin: 0;
}
.info p {
  margin: 0 0 12px;
}
.info .actions {
  gap: 8px;
}
.info .actions button {
  padding: 8px;
  font-size: 12px;
}
.facts {
  margin: 18px 0;
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 12px;
  font-size: 12px;
}
.facts dt {
  color: #afc7d9;
}
.facts dd {
  margin: 0;
}
.recommend h2 {
  font-size: 16px;
  margin: 0 0 10px;
}
.recommend .mini {
  display: flex;
  gap: 10px;
  margin: 10px 0;
  align-items: center;
  font-size: 12px;
}
.mini img {
  width: 80px;
  height: 52px;
  object-fit: cover;
  border-radius: 7px;
}
.mini .pill {
  font-size: 11px;
  padding: 2px 7px;
}
.recommend {
  grid-column: 3;
  grid-row: 1/3;
}
.recommend .panel + .panel {
  margin-top: 16px;
}
.details {
  grid-column: 1/3;
}
.tabs {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid #1c303b;
}
.tabs button {
  background: none;
  border: 0;
  border-radius: 0;
}
.tabs button[aria-selected="true"] {
  border-bottom: 3px solid #d0ff00;
}
.tab-content {
  padding: 14px 6px;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 30px;
}
.tab-content h2 {
  font-size: 23px;
  margin: 0 0 6px;
}
.tab-content p {
  font-size: 14px;
  line-height: 1.8;
  margin: 0;
}
.features {
  font-size: 12px;
  list-style: none;
  padding: 0;
}
.features li {
  margin: 4px 0;
}
.features li:before {
  content: "✓";
  color: #d0ff00;
  margin-right: 10px;
}
footer {
  padding: 20px 28px;
  color: #718e9f;
  font-size: 12px;
  border-top: 1px solid #172831;
}
dialog {
  color: white;
  background: #0c1923;
  border: 1px solid #425764;
  border-radius: 16px;
  width: min(900px, 92vw);
  max-height: 90vh;
  padding: 20px;
}
dialog::backdrop {
  background: #000c;
}
dialog .close {
  float: right;
}
dialog img {
  width: 100%;
  max-height: 65vh;
  object-fit: contain;
}
.dialog-video {
  aspect-ratio: 16/9;
}
.dialog-video video,
.dialog-video iframe {
  width: 100%;
  height: 100%;
  border: 0;
}
.toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  background: #d0ff00;
  color: #071000;
  padding: 12px 24px;
  border-radius: 10px;
  z-index: 100;
}
.hidden,
[hidden] {
  display: none !important;
}
.empty {
  padding: 30px;
  color: #b8cedc;
}
.catalog-results {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.catalog-results .card img {
  height: 170px;
}
@media (min-width: 1700px) {
  main {
    max-width: 1800px;
  }
  .hero {
    height: 430px;
  }
  .featured .card img {
    height: 180px;
  }
}
@media (max-width: 1200px) {
  .sidebar {
    width: 190px;
    padding: 16px 12px;
  }
  main,
  .topbar {
    margin-left: 190px;
  }
  .topbar {
    gap: 16px;
  }
  .detail-grid {
    grid-template-columns: minmax(0, 1.6fr) minmax(240px, 1fr);
  }
  .recommend {
    grid-column: 1/3;
    grid-row: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
  }
  .recommend .panel + .panel {
    margin: 0;
  }
  .details {
    grid-row: 2;
  }
  .hero h1 {
    font-size: 40px;
  }
  .hero-content {
    max-width: 560px;
  }
  .popular {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 900px) {
  .sidebar {
    transform: translateX(-100%);
    width: 224px;
  }
  .sidebar.open {
    transform: translateX(0);
    box-shadow: 0 0 0 100vw #0009;
  }
  .topbar,
  main {
    margin-left: 0;
  }
  .menu {
    display: block;
  }
  .topbar {
    padding: 8px 14px;
    gap: 12px;
  }
  .topbar > a:not(.lime) {
    display: none;
  }
  .hero h1 {
    font-size: 39px;
  }
  .featured .card img {
    height: 125px;
  }
}
@media (max-width: 600px) {
  .topbar {
    gap: 8px;
  }
  .topbar .profile {
    display: none;
  }
  .topbar .lime {
    padding: 8px 14px;
  }
  .search-wrap input {
    font-size: 12px;
    padding: 10px;
  }
  .menu {
    padding: 6px 12px;
  }
  .hero {
    height: 430px;
  }
  .hero-art {
    object-position: 70% center !important;
  }
  .hero-shade {
    background: linear-gradient(0deg, #030b13 0%, #030b1380 75%);
  }
  .hero-content {
    padding: 100px 22px 30px;
  }
  .hero h1 {
    font-size: 36px;
    max-width: 330px;
  }
  .hero p {
    font-size: 14px;
  }
  .benefits {
    gap: 12px;
    font-size: 11px;
  }
  .benefits b {
    font-size: 16px;
  }
  .content {
    padding: 16px;
  }
  .featured {
    grid-template-columns: 1fr;
  }
  .featured .card img {
    height: 160px;
  }
  .popular {
    grid-template-columns: repeat(2, 1fr);
  }
  .promo {
    padding: 20px;
    align-items: start;
    flex-direction: column;
  }
  .game-hero {
    height: 270px;
  }
  .game-hero .hero-art {
    object-position: center !important;
  }
  .game-hero .hero-content {
    padding: 20px;
  }
  .game-hero h1 {
    font-size: 23px;
  }
  .detail-grid {
    padding: 14px;
    grid-template-columns: 1fr;
  }
  .info,
  .recommend,
  .details {
    grid-column: 1;
    grid-row: auto;
  }
  .recommend {
    grid-template-columns: 1fr;
  }
  .tab-content {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .tabs {
    gap: 0;
  }
  .tabs button {
    font-size: 13px;
    padding: 10px;
  }
  .gallery button {
    height: 52px;
  }
  .catalog-results {
    grid-template-columns: 1fr;
  }
  .hero-controls {
    bottom: 8px;
  }
  .facts {
    font-size: 14px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
