:root {
  --bg: #0b0c10;
  --card: #121318;
  --text: #e6e7eb;
  --muted: #a3a7b3;
  --brand: #ff4d4f;
  --brand-2: #ff7a45;
  --accent: #2dd4bf;
  --container: 1000px;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
}

img {
  max-width: 100%;
  display: block;
  border-radius: 12px;
}

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

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 16px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(180%) blur(8px);
  background: color-mix(in oklab, var(--bg) 85%, black 15%);
  border-bottom: 1px solid #1f2128;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}

.site-header .container {
  max-width: 860px;
}

.brand {
  font-weight: 700;
  letter-spacing: 0.2px;
}

.brand-group {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.brand-logo {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  object-fit: cover;
}
.header-cta {
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  color: white;
  padding: 10px 14px;
  border-radius: 10px;
}

.hero {
  position: relative;
  display: grid;
  grid-template-rows: auto auto;
  padding-bottom: 50px;
}

.hero-media {
  display: contents;
}

.hero-media::after {
  content: none;
}

.hero > *:not(.hero-media) {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 16px;
}

.hero-media img {
  width: 100%;
  height: clamp(220px, 50vw, 420px);
  object-fit: cover;
  object-position: center;
}

.banner {
  position: relative;
  width: 100%;
  height: clamp(300px, 40vw, 360px);
  border-radius: 12px;
  overflow: hidden;
  max-width: 860px;
  margin-inline: auto;
}

.banner-track {
  position: absolute;
  inset: 0;
  display: flex;
  will-change: transform;
  transition: transform .6s ease;
}

.banner-slide {
  flex: 0 0 100%;
}

.banner-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero h1 {
  font-size: clamp(28px, 6vw, 48px);
  margin: 12px 0;
}

.hero p {
  color: var(--muted);
  font-size: clamp(14px, 3.5vw, 18px);
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.hero-copy {
  padding-top: 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid #262a35;
  font-weight: 600;
}

.btn.primary {
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  border: none;
  color: white;
}

.btn.ghost {
  background: transparent;
  color: var(--text);
}

.btn.outline {
  background: transparent;
  border-color: var(--accent);
  color: var(--accent);
}

.trust {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.section {
  padding: 20px 0;
}

#hot-game .container {
  max-width: 860px;
  position: relative;
  z-index: 2;
}

#hot-game .section-title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: clamp(22px, 5vw, 28px);
  margin: 0;
}

#hot-game .section-sub {
  margin: 6px 0 16px;
  color: var(--muted);
  font-size: 14px;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
  color: white;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  border-radius: 999px;
}

.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 768px) {
  .cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  background: var(--card);
  border: 1px solid #1f2128;
  border-radius: 16px;
  padding: 16px;
  display: grid;
  gap: 8px;
}

.snap-gallery {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 85%;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0 16px 6px;
}

.snap-gallery figure {
  margin: 0;
  scroll-snap-align: center;
}

@media (min-width: 768px) {
  .snap-gallery {
    grid-auto-columns: 40%;
  }
}

.snap-gallery.hot-game {
  display: flex;
  gap: 0;
  padding: 64px 16px 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-left: 50%;
  scroll-padding-right: 50%;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  max-width: 860px;
  margin-inline: auto;
}

.snap-gallery.hot-game::before,
.snap-gallery.hot-game::after {
  content: "";
  position: sticky;
  top: 0;
  width: 48px;
  height: 100%;
  flex: 0 0 auto;
  pointer-events: none;
}

.snap-gallery.hot-game::before {
  left: 0;
  background: linear-gradient(90deg, var(--bg) 40%, transparent 100%);
}

.snap-gallery.hot-game::after {
  right: 0;
  margin-left: auto;
  background: linear-gradient(270deg, var(--bg) 40%, transparent 100%);
}

.hot-wrapper {
  position: relative;
  max-width: 860px;
  margin-inline: auto;
  margin-top: 8px;
  z-index: 1;
}

.hot-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid #262a35;
  background: color-mix(in oklab, var(--bg) 75%, black 25%);
  color: var(--text);
  z-index: 5000;
  box-shadow: 0 8px 16px rgba(0,0,0,.35);
  pointer-events: auto;
  user-select: none;
}
.hot-nav.prev { left: 6px; }
.hot-nav.next { right: 6px; }

.snap-gallery.hot-game::-webkit-scrollbar {
  display: none;
  height: 0;
  width: 0;
}
.snap-gallery.hot-game .game-card {
  position: relative;
  flex: 0 0 62%;
  margin-left: -18%;
  scroll-snap-align: center;
  scroll-snap-stop: always;
  transition: transform .25s ease, filter .25s ease;
  filter: saturate(.9) brightness(.92);
  will-change: transform;
  transform-origin: center center;
}

.snap-gallery.hot-game .game-card:first-child {
  margin-left: 0;
}

@media (min-width: 768px) {
  .snap-gallery.hot-game .game-card {
    flex-basis: 26%;
    margin-left: -5%;
  }
}

.game-card.active {
  filter: none;
}

.game-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 22px;
  border: 6px solid #e6e7eb;
  box-shadow: 0 10px 24px rgba(0,0,0,.35);
}

.game-card::before {
  content: "HOT";
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 700;
  color: white;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  border-radius: 999px;
  box-shadow: 0 6px 12px rgba(0,0,0,.25);
}
.cta {
  background: linear-gradient(180deg, color-mix(in oklab, var(--brand) 18%, transparent 82%), transparent 60%);
}

.cta-inner {
  display: grid;
  gap: 12px;
  place-items: center;
  text-align: center;
}

.support-inner {
  display: grid;
  gap: 12px;
  place-items: center;
  text-align: center;
}

.support-actions {
  display: flex;
  gap: 12px;
}

.site-footer {
  border-top: 1px solid #1f2128;
  padding: 20px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.footer-inner a {
  color: var(--muted);
}
