:root {
  --bg: #ffffff;
  --bg-soft: #f4f9ff;
  --ink: #10233b;
  --muted: #5f7290;
  --blue: #287BF6;
  --cyan: #5da8ff;
  --card: #ffffff;
  --border: rgba(20, 124, 255, 0.16);
  --shadow: 0 16px 36px rgba(17, 84, 167, 0.16);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(48rem 24rem at -10% -8%, #ebf5ff 0%, transparent 62%),
    radial-gradient(46rem 22rem at 110% 0%, #e2f6ff 0%, transparent 62%),
    var(--bg);
}

a {
  color: inherit;
}

img {
  width: 100%;
  display: block;
}

.container {
  width: min(1160px, calc(100% - 2rem));
  margin: 0 auto;
}

.section-pad {
  padding: 4.6rem 0;
}

.section-pad-sm {
  padding: 3.1rem 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 95;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(16, 35, 59, 0.08);
}

.site-header-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.62rem;
  text-decoration: none;
  font-family: "Sora", "Avenir Next", sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--ink);
}

.brand-icon {
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 0.28rem;
  object-fit: cover;
  flex-shrink: 0;
}

.top-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.top-nav a {
  text-decoration: none;
  color: #244367;
  font-size: 0.94rem;
  font-weight: 600;
}

.btn {
  border: 0;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 0.76rem 1.18rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(20, 124, 255, 0.24);
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
}

.top-nav .btn-primary {
  color: #fff;
}

.btn-lang {
  color: #15528d;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(20, 124, 255, 0.26);
  min-width: 64px;
  padding: 0.62rem 0.9rem;
}

.btn-outline {
  color: #15528d;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(20, 124, 255, 0.28);
}

.hero-grid {
  display: grid;
  grid-template-columns: 0.94fr 1.06fr;
  gap: 1rem;
  align-items: center;
}

.hero {
  background: #287BF6;
  color: #fff;
}

.hero .hero-copy p {
  color: #fff;
}

.hero .btn-primary {
  background: rgba(9, 71, 169, 0.9);
  color: #fff;
}

.hero .btn-outline {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4);
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Sora", "Avenir Next", sans-serif;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.2rem, 5.8vw, 4.5rem);
  line-height: 0.97;
  margin-bottom: 0.8rem;
}

h2 {
  font-size: clamp(1.7rem, 4.2vw, 2.85rem);
  line-height: 1.05;
}

.hero-copy p {
  margin: 0;
}

.hero-copy .hero-sub {
  margin-top: 0.45rem;
  margin-bottom: 1.2rem;
  color: var(--muted);
  font-size: 1.04rem;
}

.cta-row {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
  align-items: center;
}

.hero .cta-row {
  margin-top: 50px;
}

.hero .cta-row .btn-primary {
  font-size: 1.08rem;
  padding: 1.02rem 1.7rem;
}

.eyebrow,
.section-tag,
.section-mini {
  display: inline-flex;
  margin: 0 0 0.7rem;
  border-radius: 999px;
  padding: 0.37rem 0.68rem;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
  color: #1263b8;
  background: #eaf5ff;
  box-shadow: inset 0 0 0 1px rgba(20, 124, 255, 0.18);
}

.tag-list {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag-list li {
  border-radius: 999px;
  padding: 0.42rem 0.7rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #15528d;
  background: #ecf7ff;
  box-shadow: inset 0 0 0 1px rgba(20, 124, 255, 0.2);
}

.hero-art {
  position: relative;
  min-height: 0;
  display: flex;
  align-items: center;
}

.hero-main {
  min-height: 0;
  height: auto;
  object-fit: contain;
  border-radius: 28px;
  border: none;
  box-shadow: none;
}

.section-head {
  margin-bottom: 1.1rem;
  max-width: 72ch;
}

.section-head p {
  margin: 0.45rem 0 0;
  color: var(--muted);
}

.game-grid,
.flow-grid,
.trend-grid,
.social-grid {
  display: grid;
  gap: 0.85rem;
}

.game-grid,
.flow-grid,
.trend-grid,
.social-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.game-card,
.flow-card,
.trend-card,
.social-card {
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.game-card img,
.flow-card img,
.trend-card img,
.social-card img {
  height: 185px;
  object-fit: cover;
}

.games-carousel {
  overflow: hidden;
  position: relative;
  background: #ececec;
}

.games-track {
  display: flex;
  align-items: stretch;
  gap: 0.85rem;
  width: max-content;
  animation: games-marquee 32s linear infinite;
}

.games-carousel:hover .games-track {
  animation-play-state: paused;
}

.games-carousel .game-card {
  flex: 0 0 clamp(180px, 20vw, 248px);
  aspect-ratio: 3 / 2;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ececec;
  border: none;
  box-shadow: none;
}

.games-carousel .game-card img {
  width: 90%;
  height: 90%;
  object-fit: contain;
  background: transparent;
}

@keyframes games-marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(calc(-50% - 0.425rem));
  }
}

.flow-grid {
  align-items: start;
}

.flow-card img {
  aspect-ratio: 1 / 1;
  width: 100%;
  height: auto;
}

@media (min-width: 1025px) {
  .flow-card:nth-child(1),
  .flow-card:nth-child(3) {
    margin-top: 2rem;
  }

  .flow-card:nth-child(2) {
    margin-top: 0;
  }
}

.flow-card h3,
.flow-card p {
  margin-left: 0.86rem;
  margin-right: 0.86rem;
}

.flow-card h3 {
  margin-top: 0.8rem;
  margin-bottom: 0.35rem;
  font-size: 1.08rem;
}

.flow-card p {
  margin-top: 0;
  margin-bottom: 0.9rem;
  font-size: 0.95rem;
  color: var(--muted);
}

.social-top {
  padding: 0.62rem 0.72rem 0.45rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #335274;
}

.social-top b {
  font-size: 0.86rem;
}

.social-card p {
  margin: 0;
  padding: 0.68rem 0.75rem 0.82rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.join-zone {
  padding-top: 3.4rem;
}

.join-panel {
  border-radius: 28px;
  padding: 1.1rem;
  background:
    radial-gradient(60% 110% at 0% 0%, rgba(6, 197, 255, 0.18), transparent),
    radial-gradient(60% 110% at 100% 0%, rgba(20, 124, 255, 0.2), transparent),
    var(--bg-soft);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
  align-items: center;
}

.join-panel p {
  margin: 0;
  color: var(--muted);
}

.join-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.55rem;
}

.join-form input {
  width: 100%;
  border-radius: 999px;
  border: 1px solid rgba(20, 124, 255, 0.3);
  background: #fff;
  padding: 0.75rem 0.95rem;
  font-size: 0.95rem;
  outline: none;
}

.join-form input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(20, 124, 255, 0.14);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.site-footer {
  border-top: 1px solid rgba(16, 35, 59, 0.1);
  padding: 1.1rem 0 1.4rem;
  background: #fff;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.9rem 1.2rem;
  align-items: end;
}

.footer-inner p {
  margin: 0.35rem 0 0;
  color: #5f7290;
  font-size: 0.9rem;
}

.footer-links {
  display: grid;
  gap: 0.35rem;
  justify-items: end;
  font-size: 0.88rem;
  color: #5f7290;
}

.footer-links a {
  color: #145db0;
  text-decoration: none;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.62s ease, transform 0.62s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1024px) {
  .hero-grid,
  .join-panel,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .hero-art,
  .hero-main {
    min-height: 0;
  }

  .game-grid,
  .flow-grid,
  .trend-grid,
  .social-grid {
    grid-template-columns: 1fr 1fr;
  }

  .games-carousel .game-card {
    flex-basis: clamp(160px, 34vw, 220px);
  }

  .footer-links {
    justify-items: start;
  }
}

@media (max-width: 720px) {
  .site-header-inner {
    min-height: auto;
    padding: 0.55rem 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0.45rem;
  }

  .brand {
    align-self: flex-start;
  }

  .top-nav {
    gap: 0.56rem;
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 0.12rem;
  }

  .top-nav::-webkit-scrollbar {
    display: none;
  }

  .top-nav a {
    font-size: 0.85rem;
    white-space: nowrap;
    flex: 0 0 auto;
  }

  .top-nav .btn,
  .top-nav button {
    white-space: nowrap;
    flex: 0 0 auto;
  }

  .top-nav .btn-primary {
    padding: 0.6rem 0.92rem;
    font-size: 0.84rem;
  }

  .game-grid,
  .flow-grid,
  .trend-grid,
  .social-grid,
  .join-form {
    grid-template-columns: 1fr;
  }

  .games-track {
    animation-duration: 26s;
  }

  .games-carousel .game-card {
    flex-basis: 64vw;
    max-width: 270px;
  }

  .section-pad {
    padding: 3.4rem 0;
  }

  .btn-lang {
    padding: 0.52rem 0.78rem;
    font-size: 0.8rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .games-track {
    animation: none;
  }
}
