:root {
  --primary: #00d4ff;
  --accent: #00ff88;
  --background: #0f1419;
  --foreground: #e8eaed;
  --card: #1a2a4a;
  --muted: #a0a8b0;
  --border: #2a3a4a;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--foreground);
  background:
    radial-gradient(circle at 18% 16%, rgba(0, 212, 255, 0.16), transparent 28%),
    radial-gradient(circle at 84% 18%, rgba(0, 255, 136, 0.12), transparent 24%),
    linear-gradient(180deg, #101822 0%, var(--background) 52%, #0b1015 100%);
  font-family: Inter, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

[hidden] {
  display: none !important;
}

.site-header {
  width: min(1180px, calc(100% - 40px));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand,
.top-nav,
.header-actions {
  display: flex;
  align-items: center;
}

.brand {
  gap: 12px;
  font-family: Sora, sans-serif;
  font-weight: 700;
  letter-spacing: 0;
  font-size: 1.35rem;
}

.brand-mark {
  height: 30px;
  display: inline-flex;
  flex: 0 0 auto;
}

.brand-mark img {
  height: 100%;
  width: auto;
  object-fit: contain;
}

.top-nav {
  gap: 8px;
}

.header-actions {
  gap: 10px;
}

.top-nav a {
  min-height: 38px;
  padding: 9px 13px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 0.9rem;
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease;
}

.top-nav a:hover,
.top-nav a[aria-current="page"] {
  color: var(--foreground);
  border-color: rgba(0, 212, 255, 0.32);
  background: rgba(255, 255, 255, 0.04);
}

.language-switcher {
  position: relative;
  flex: 0 0 auto;
}

.language-trigger {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border: 0;
  border-radius: var(--radius);
  color: var(--foreground);
  background: transparent;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease;
}

.language-trigger:hover,
.language-trigger[aria-expanded="true"] {
  background: rgba(0, 212, 255, 0.1);
  color: var(--primary);
}

.language-trigger svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.language-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 20;
  width: 160px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.32);
  animation: menuIn 160ms ease both;
}

.language-menu button {
  width: 100%;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border: 0;
  color: var(--foreground);
  background: transparent;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease;
}

.language-menu button span:last-child {
  color: var(--muted);
  font-size: 0.74rem;
}

.language-menu button:hover {
  background: rgba(255, 255, 255, 0.06);
}

.language-menu button.is-active {
  color: var(--primary);
  background: rgba(0, 212, 255, 0.1);
}

@keyframes menuIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

main {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0 64px;
}

.hero {
  min-height: 170px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 24px;
  border-bottom: 1px solid var(--border);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: Sora, sans-serif;
  letter-spacing: 0;
}

h1 {
  max-width: 820px;
  font-size: clamp(2.1rem, 5.4vw, 4.1rem);
  line-height: 1;
  text-shadow: 0 0 28px rgba(0, 212, 255, 0.22);
}

.hero-text {
  max-width: 980px;
  margin: 16px 0 28px;
  color: var(--muted);
  font-size: clamp(0.9rem, 1.1vw, 0.98rem);
  line-height: 1.6;
}

.status-strip {
  min-width: 164px;
  margin-bottom: 28px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(26, 42, 74, 0.72);
  box-shadow: var(--shadow);
}

.status-strip span {
  display: block;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.status-strip strong {
  display: block;
  margin-top: 6px;
  font-family: Sora, sans-serif;
  font-size: 1.35rem;
}

.games-section {
  padding-top: 34px;
  max-width: 900px;
  margin: 0 auto;
}

.section-heading {
  margin: 0 0 10px 76px;
}

h2 {
  font-size: clamp(1.6rem, 4vw, 2.7rem);
}

.game-carousel {
  position: relative;
  padding: 0 76px;
}

.game-viewport {
  overflow: hidden;
  border-radius: var(--radius);
}

.game-card {
  flex: 0 0 100%;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--card) 90%, transparent);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.24);
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.game-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: 0 18px 44px rgba(0, 212, 255, 0.15), 0 28px 60px rgba(0, 0, 0, 0.28);
}

.game-card.is-changing {
  animation: gameCardIn 180ms ease both;
}

@keyframes gameCardIn {
  from {
    opacity: 0.72;
    transform: translateX(8px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.game-visual {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #0c1218;
}

.game-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 260ms ease, filter 260ms ease;
}

.game-card:hover .game-visual img {
  transform: scale(1.035);
  filter: saturate(1.12);
}

.game-visual.is-placeholder {
  display: grid;
  place-items: center;
  border-bottom: 1px solid var(--border);
  background:
    linear-gradient(135deg, rgba(0, 212, 255, 0.08), transparent 40%),
    linear-gradient(315deg, rgba(0, 255, 136, 0.08), transparent 38%),
    #0c1218;
}

.game-visual.is-placeholder::before {
  content: "COMING SOON";
  display: grid;
  place-items: center;
  width: min(220px, 60%);
  aspect-ratio: 16 / 9;
  border: 1px dashed rgba(0, 212, 255, 0.42);
  border-radius: var(--radius);
  color: var(--muted);
  font-family: Sora, sans-serif;
  font-size: clamp(0.8rem, 2vw, 1rem);
  font-weight: 700;
}

.game-info {
  padding: 16px 18px 18px;
}

.game-kicker {
  margin: 0 0 9px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

h3 {
  font-size: clamp(1.18rem, 2.2vw, 1.45rem);
}

h3 a {
  transition: color 180ms ease;
}

h3 a:hover {
  color: var(--primary);
}

.game-info p:last-child {
  margin: 9px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.carousel-button {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(0, 212, 255, 0.34);
  border-radius: 50%;
  color: var(--foreground);
  background: rgba(15, 20, 25, 0.82);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.28);
  cursor: pointer;
  transform: translateY(-50%);
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease, opacity 180ms ease;
}

.carousel-button:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(26, 42, 74, 0.94);
  transform: translateY(-50%) scale(1.04);
}

.carousel-button:disabled {
  cursor: default;
  opacity: 0.38;
}

.carousel-button:disabled:hover {
  color: var(--foreground);
  border-color: rgba(0, 212, 255, 0.34);
  background: rgba(15, 20, 25, 0.82);
  transform: translateY(-50%);
}

.carousel-button svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.carousel-button-prev {
  left: 0;
}

.carousel-button-next {
  right: 0;
}

.catalog-section {
  margin-top: 56px;
  padding-top: 34px;
  border-top: 1px solid var(--border);
}

.catalog-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.catalog-heading h2 {
  font-size: clamp(1.35rem, 2.6vw, 2rem);
}

.game-search {
  width: min(320px, 100%);
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 13px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--muted);
  background: rgba(15, 20, 25, 0.5);
  transition: border-color 180ms ease, background 180ms ease;
}

.game-search:focus-within {
  border-color: var(--primary);
  background: rgba(15, 20, 25, 0.72);
}

.game-search svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.game-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--foreground);
  background: transparent;
  font: inherit;
  font-size: 0.94rem;
}

.game-search input::placeholder {
  color: var(--muted);
}

.game-catalog {
  display: grid;
  gap: 26px;
}

.catalog-chapter {
  display: grid;
  gap: 14px;
}

.catalog-chapter-title {
  margin: 0;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(42, 58, 74, 0.82);
  color: var(--foreground);
  font-family: Sora, sans-serif;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  font-weight: 700;
}

.genre-list {
  display: grid;
  gap: 16px;
}

.genre-section {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(26, 42, 74, 0.42);
}

.genre-section h4 {
  margin: 0;
  color: var(--accent);
  font-family: Sora, sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
}

.catalog-game-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.catalog-game {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(42, 58, 74, 0.9);
  border-radius: var(--radius);
  background: rgba(15, 20, 25, 0.54);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.catalog-game:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
  background: rgba(15, 20, 25, 0.82);
}

.catalog-game img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #0c1218;
}

.catalog-game-placeholder {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  background:
    linear-gradient(135deg, rgba(0, 212, 255, 0.08), transparent 40%),
    #0c1218;
}

.catalog-game-placeholder::before {
  content: "";
  width: 42%;
  aspect-ratio: 1;
  border: 1px dashed rgba(0, 212, 255, 0.46);
  border-radius: var(--radius);
}

.catalog-game span {
  display: block;
  padding: 10px 11px 11px;
  color: var(--foreground);
  font-weight: 700;
  line-height: 1.3;
}

.search-empty {
  margin: 0;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--muted);
  background: rgba(26, 42, 74, 0.42);
}

@media (max-width: 760px) {
  .site-header,
  main {
    width: min(100% - 28px, 1180px);
  }

  .site-header {
    min-height: 64px;
  }

  .header-actions {
    gap: 4px;
  }

  .top-nav a {
    padding-inline: 9px;
  }

  .language-trigger span {
    display: none;
  }

  main {
    padding-top: 24px;
  }

  .hero {
    min-height: 0;
    grid-template-columns: 1fr;
    gap: 0;
  }

  .hero-text {
    margin-bottom: 22px;
  }

  .status-strip {
    width: 100%;
    margin-bottom: 24px;
  }

  .section-heading {
    margin-left: 48px;
  }

  .games-section {
    max-width: 100%;
  }

.game-carousel {
    padding: 0 48px;
  }

  .carousel-button {
    width: 34px;
    height: 34px;
  }

  .carousel-button svg {
    width: 18px;
    height: 18px;
  }

  .catalog-section {
    margin-top: 40px;
  }

  .catalog-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .game-search {
    width: 100%;
  }

  .catalog-game-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
