@font-face {
  font-family: "Poppins";
  src: url("./fonts/Poppins/Poppins-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("./fonts/Poppins/Poppins-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("./fonts/Poppins/Poppins-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #080b10;
  --panel: #111722;
  --panel-2: #18202d;
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.18);
  --text: #f5f7fb;
  --muted: #9aa6b5;
  --gold: #cfa95c;
  --gold-2: #f0cf87;
  --teal: #39b6a3;
  --danger: #ff6b6b;
  --radius-lg: 24px;
  --radius-md: 18px;
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.44);
  font-family: Poppins, Avenir Next, Avenir, Montserrat, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(13, 18, 27, 0.92), #080b10 560px),
    radial-gradient(circle at 16% 8%, rgba(207, 169, 92, 0.18), transparent 360px),
    radial-gradient(circle at 86% 12%, rgba(57, 182, 163, 0.09), transparent 340px),
    #080b10;
  color: var(--text);
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-shell {
  width: min(1360px, 100%);
  margin: 0 auto;
  padding: 10px clamp(16px, 3vw, 42px) 54px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 68px;
  padding: 4px 0;
  background: rgba(11, 15, 21, 0.86);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  overflow: visible;
}

.brand-copy {
  display: grid;
  gap: 0;
  min-width: 0;
  overflow: visible;
}

.brand-copy span {
  display: inline-block;
  padding-right: 8px;
  padding-bottom: 9px;
  overflow: visible;
  background: linear-gradient(135deg, #ffde59, #f57f17);
  background-clip: text;
  color: transparent;
  font-family: Pacifico, cursive;
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-copy small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 400;
  text-transform: uppercase;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #dce3ea;
  font-size: 13px;
  font-weight: 500;
}

.header-actions a {
  min-height: 38px;
  padding: 10px 13px;
  border: 1px solid transparent;
  border-radius: 999px;
}

.header-actions a:hover,
.header-actions a:focus-visible {
  border-color: var(--line);
  outline: none;
  background: rgba(255, 255, 255, 0.04);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 430px);
  gap: clamp(24px, 5vw, 72px);
  align-items: end;
  min-height: clamp(330px, 45vh, 520px);
  padding: clamp(44px, 7vw, 86px) 0 36px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--gold-2);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 700px;
  margin: 0;
  font-size: clamp(30px, 4vw, 50px);
  line-height: 1.08;
  font-weight: 400;
}

.hero-text {
  max-width: 620px;
  margin: 24px 0 0;
  color: #c7d0d9;
  font-size: clamp(15px, 1.6vw, 19px);
  font-weight: 300;
  line-height: 1.65;
}

.hero-panel {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(18, 24, 33, 0.96), rgba(13, 18, 25, 0.96));
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-panel div {
  min-width: 0;
  padding: 14px 16px;
  border-right: 1px solid var(--line);
}

.hero-panel div:last-child {
  border-right: 0;
}

.stat-value,
.stat-label {
  display: block;
}

.stat-value {
  color: var(--text);
  font-size: clamp(15px, 1.8vw, 20px);
  font-weight: 500;
}

.stat-label {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
}

.catalog {
  padding-top: 20px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(23px, 2.5vw, 32px);
  line-height: 1;
  font-weight: 400;
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 24px);
}

.game-card {
  display: grid;
  grid-template-columns: minmax(190px, 58%) minmax(0, 1fr);
  align-items: stretch;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(21, 28, 40, 0.96), rgba(10, 14, 20, 0.98));
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.32);
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.game-card:hover {
  transform: translateY(-4px);
  border-color: rgba(240, 207, 135, 0.36);
  box-shadow: 0 26px 64px rgba(0, 0, 0, 0.42);
}

.preview-button {
  position: relative;
  display: block;
  width: 100%;
  padding: 12px;
  border: 0;
  background: linear-gradient(180deg, #151b25, #090d13);
  cursor: pointer;
  aspect-ratio: 3 / 4;
  overflow: hidden;
}

.preview-button img {
  width: 100%;
  height: 100%;
  display: block;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--radius-md);
  background: #05070a;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.34);
  transition: transform 260ms ease, filter 260ms ease;
}

.preview-button:hover img,
.preview-button:focus-visible img {
  transform: scale(1.018);
  filter: saturate(1.08) contrast(1.04);
}

.preview-button:focus-visible {
  outline: 2px solid var(--gold-2);
  outline-offset: -2px;
}

.game-content {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 16px 18px 0;
}

.game-meta {
  display: grid;
  align-content: start;
  justify-items: start;
  gap: 9px;
  min-width: 0;
  padding: 0;
}

.game-meta h3 {
  margin: 0;
  font-size: clamp(17px, 1.5vw, 22px);
  line-height: 1.15;
  font-weight: 500;
}

.game-meta p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 300;
  line-height: 1.5;
}

.launch-controls {
  display: grid;
  gap: 10px;
}

.demo-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 46px;
  padding: 11px 14px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.08));
  color: var(--text);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(16px);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
}

.demo-button svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

.demo-button:hover,
.demo-button:focus-visible {
  border-color: rgba(255, 255, 255, 0.38);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0.12));
  outline: none;
}

.mode-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  padding: 0;
  border-top: 0;
  background: transparent;
}

.mode-button {
  display: grid;
  place-items: center;
  gap: 5px;
  min-width: 0;
  min-height: 44px;
  padding: 6px 3px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: #d8e0e8;
  cursor: pointer;
  font: inherit;
  font-size: 10px;
  font-weight: 500;
}

.mode-button svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.mode-button:hover,
.mode-button:focus-visible,
.mode-button[aria-pressed="true"] {
  color: var(--gold-2);
  background: transparent;
  outline: none;
}

.launch-status {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 50;
  max-width: min(420px, calc(100vw - 36px));
  min-height: 0;
  padding: 0;
  overflow: hidden;
  background: rgba(17, 24, 34, 0.96);
  border-radius: 18px;
  border: 0 solid transparent;
  color: var(--text);
  box-shadow: var(--shadow);
  font-size: 14px;
  font-weight: 500;
  transform: translateY(18px);
  opacity: 0;
  transition: opacity 180ms ease, transform 180ms ease, padding 180ms ease, border-width 180ms ease;
}

.launch-status.is-visible {
  padding: 13px 15px;
  border-width: 1px;
  border-color: var(--line-strong);
  transform: translateY(0);
  opacity: 1;
}

.launch-status.is-error {
  border-color: rgba(255, 107, 107, 0.52);
  color: #ffd6d6;
}

@media (max-width: 1160px) {
  .game-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    align-items: start;
    min-height: auto;
    padding-top: 52px;
  }

  .hero-panel {
    max-width: 100%;
  }

  .game-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .site-shell {
    padding-inline: 12px;
  }

  .site-header {
    align-items: center;
  }

  .header-actions {
    gap: 6px;
    font-size: 11px;
  }

  .header-actions a {
    min-height: 34px;
    padding: 8px 9px;
  }

  .hero {
    padding-top: 38px;
  }

  h1 {
    font-size: clamp(28px, 10vw, 42px);
  }

  .hero-panel {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hero-panel div {
    padding: 13px 9px;
    border-right: 1px solid var(--line);
    border-bottom: 0;
  }

  .hero-panel div:last-child {
    border-right: 0;
  }

  .stat-value {
    font-size: clamp(14px, 4vw, 17px);
  }

  .stat-label {
    font-size: 10px;
  }

  .game-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .game-card {
    grid-template-columns: 1fr;
  }

  .preview-button {
    padding: 10px;
  }

  .game-content {
    gap: 12px;
    padding: 12px;
  }

  .preview-button img {
    border-radius: var(--radius-md);
  }

  .game-meta {
    gap: 6px;
  }

  .game-meta h3 {
    font-size: clamp(14px, 4.2vw, 17px);
  }

  .game-meta p {
    font-size: 11px;
    line-height: 1.35;
  }

  .demo-button {
    min-height: 40px;
    padding: 9px 10px;
    border-radius: 12px;
    font-size: 11px;
  }

  .mode-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mode-button {
    min-height: 38px;
    border-radius: 11px;
  }
}

@media (max-width: 420px) {
  .game-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
