:root {
  --bg-deep: #0a0b10;
  --bg-card: rgba(255, 255, 255, 0.04);
  --bg-card-hover: rgba(255, 255, 255, 0.07);
  --text: #e8eaef;
  --text-muted: #9499a8;
  --accent: #6c9eff;
  --accent-soft: rgba(108, 158, 255, 0.25);
  --border: rgba(255, 255, 255, 0.08);
  --radius: 20px;
  --font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial,
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", "Noto Sans CJK SC",
    sans-serif;
  --font-playful: "Fredoka", "Noto Sans SC", var(--font);

  /* Gaming accent colors */
  --accent-pink: #ff6b9d;
  --accent-purple: #b066ff;
  --accent-cyan: #4ecdc4;
  --accent-yellow: #ffe66d;
  --accent-orange: #ff8c42;
}

/* Entrance animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  background: var(--bg-deep);
  color: var(--text);
  line-height: 1.6;
}

a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 4vw;
  background: rgba(10, 11, 16, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s ease;
}

.site-header.scrolled {
  background: rgba(10, 11, 16, 0.95);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.brand {
  font-weight: 700;
  font-size: 1.08rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
  font-family: var(--font-playful);
  transition: all 0.2s ease;
}
.brand:hover {
  text-decoration: none;
  color: var(--accent);
  text-shadow: 0 0 20px rgba(108, 158, 255, 0.5);
}

.nav-links {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}
.nav-links a {
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  font-family: var(--font-playful);
}
.nav-links a:hover {
  color: var(--text);
}

.hero {
  position: relative;
  padding: 3rem 4vw 4rem;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 30% 50%, rgba(108, 158, 255, 0.12), transparent 60%),
    radial-gradient(ellipse 50% 60% at 80% 30%, rgba(176, 102, 255, 0.1), transparent 50%),
    radial-gradient(ellipse 40% 40% at 60% 80%, rgba(78, 205, 196, 0.08), transparent 40%);
  pointer-events: none;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(108, 158, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(108, 158, 255, 0.02) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

.hero__layout {
  position: relative;
  z-index: 1;
  max-width: 1300px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 2rem 3rem;
  align-items: center;
  animation: fadeInUp 0.8s ease-out;
}

.hero__inner {
  position: relative;
}

.hero__title {
  margin: 0 0 1rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-family: var(--font-playful);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
}

.hero__lead {
  margin: 0;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-muted);
  font-family: var(--font-playful);
}

.hero__visual {
  position: relative;
  border-radius: 24px;
  overflow: visible;
}

.hero__visual-bg {
  position: absolute;
  inset: -30px;
  background: linear-gradient(135deg,
    rgba(108, 158, 255, 0.25) 0%,
    rgba(176, 102, 255, 0.2) 50%,
    rgba(78, 205, 196, 0.15) 100%);
  border-radius: 35px;
  filter: blur(40px);
  z-index: -1;
  animation: pulse 4s ease-in-out infinite;
}

.hero__img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: middle;
  border-radius: 20px;
  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.05);
}

section {
  padding: 3rem 4vw 4rem;
  position: relative;
}

section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 4vw;
  right: 4vw;
  height: 1px;
  background: linear-gradient(90deg,
    transparent,
    rgba(108, 158, 255, 0.2) 20%,
    rgba(176, 102, 255, 0.2) 50%,
    rgba(108, 158, 255, 0.2) 80%,
    transparent);
}

.section-title {
  margin: 0 0 1.75rem;
  font-size: clamp(1.25rem, 2.5vw, 1.55rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text);
  font-family: var(--font-playful);
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 40px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-purple));
  border-radius: 2px;
}

#product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
  position: relative;
}

#product-grid::before {
  content: "";
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 40%;
  background: radial-gradient(ellipse, rgba(176, 102, 255, 0.08), transparent 70%);
  pointer-events: none;
}

.product-card {
  position: relative;
  border-radius: var(--radius);
  padding: 1px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.02));
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.product-card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow:
    0 24px 48px rgba(0, 0, 0, 0.4),
    0 0 30px rgba(108, 158, 255, 0.15);
}

.product-card__glow {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0.5;
  pointer-events: none;
}

.genre-music .product-card__glow {
  background: radial-gradient(circle at 30% 20%, rgba(255, 100, 180, 0.35), transparent 55%);
}
.genre-puzzle .product-card__glow {
  background: radial-gradient(circle at 70% 30%, rgba(100, 200, 255, 0.3), transparent 50%);
}
.genre-strategy .product-card__glow {
  background: radial-gradient(circle at 20% 80%, rgba(120, 255, 160, 0.25), transparent 50%);
}
.genre-arcade .product-card__glow {
  background: radial-gradient(circle at 80% 70%, rgba(255, 180, 80, 0.35), transparent 50%);
}
.genre-merge .product-card__glow {
  background: radial-gradient(circle at 50% 50%, rgba(180, 120, 255, 0.3), transparent 55%);
}
.genre-casual .product-card__glow {
  background: radial-gradient(circle at 40% 40%, rgba(100, 240, 200, 0.25), transparent 50%);
}
.genre-sports .product-card__glow {
  background: radial-gradient(circle at 60% 60%, rgba(80, 200, 255, 0.28), transparent 50%);
}

.product-card__inner {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 1.35rem;
  border-radius: calc(var(--radius) - 1px);
  background: linear-gradient(165deg, rgba(22, 24, 32, 0.95), rgba(14, 15, 20, 0.98));
  border: 1px solid var(--border);
}

.product-card__visual {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
}

.product-card__icon {
  width: 108px;
  height: 108px;
  border-radius: 22px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.06);
  object-fit: cover;
}

.product-card__tag {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  margin-bottom: 0.5rem;
}

.product-card__title {
  margin: 0 0 1rem;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.35;
  flex: 1;
}

.product-card__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #0a0b10;
  background: linear-gradient(135deg, #b8d4ff, #6c9eff);
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(108, 158, 255, 0.3);
}
.product-card__cta:hover {
  filter: brightness(1.1);
  text-decoration: none;
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(108, 158, 255, 0.4);
}

.about-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem 3rem;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.about-layout__figure {
  position: relative;
  order: 1;
}

.about-layout__figure::before {
  content: "";
  position: absolute;
  inset: -30px;
  background: linear-gradient(135deg,
    rgba(78, 205, 196, 0.2),
    rgba(176, 102, 255, 0.15));
  border-radius: 35px;
  filter: blur(35px);
  z-index: -1;
}

.about-layout__img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: middle;
  border-radius: 20px;
  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.05);
}

.about-block {
  order: 2;
}

.about-block p {
  color: var(--text-muted);
  margin: 0 0 1rem;
  font-size: 1rem;
  line-height: 1.75;
  font-family: var(--font-playful);
}

.about-title {
  margin: 0 0 1.2rem;
  font-weight: 700;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-family: var(--font-playful);
  background: linear-gradient(135deg, #e8eeff 0%, #b8d0ff 50%, #8eb8ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

html:not(.site--zh) .about-title {
  background: none;
  color: var(--text);
}

.about-block__note {
  display: none;
}

.support-text {
  width: 100%;
  max-width: 1100px;
}

.support-text p {
  color: var(--text-muted);
  margin: 0;
  font-size: 1rem;
  line-height: 1.75;
  font-family: var(--font-playful);
  word-break: break-word;
  word-wrap: break-word;
  overflow-wrap: break-word;
}
.support-email {
  display: inline-block;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--accent);
  font-family: var(--font-playful);
  transition: all 0.2s ease;
}
.support-email:hover {
  color: var(--text);
  text-decoration: none;
  transform: scale(1.05);
}

.site-footer {
  padding: 2.5rem 4vw 3rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  color: var(--text-muted);
  font-size: 0.88rem;
  position: relative;
  background: linear-gradient(to top, rgba(108, 158, 255, 0.02), transparent);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent,
    rgba(108, 158, 255, 0.3) 30%,
    rgba(176, 102, 255, 0.3) 70%,
    transparent);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.footer-links a {
  color: var(--text-muted);
  transition: all 0.2s ease;
  font-family: var(--font-playful);
}
.footer-links a:hover {
  color: var(--accent);
  text-decoration: none;
  transform: translateY(-2px);
}

.legal-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 3rem 4vw 4rem;
}
.legal-page h1 {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}
.legal-page .meta {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 2rem;
}
.legal-page h2 {
  font-size: 1.1rem;
  margin-top: 1.75rem;
}
.legal-page p,
.legal-page li {
  color: var(--text-muted);
}

@media (max-width: 900px) {
  .hero__layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .hero__inner {
    max-width: 100%;
    text-align: center;
  }
  .hero__lead {
    max-width: 100%;
    margin: 0 auto;
  }
  .hero__visual {
    order: -1;
    max-width: 500px;
    margin: 0 auto;
    width: 100%;
  }
  .hero__visual-bg {
    inset: -20px;
  }
  .about-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .about-block {
    order: 1;
  }
  .about-layout__figure {
    order: 2;
    max-width: 500px;
    margin: 0 auto;
  }
}

@media (max-width: 640px) {
  .site-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .hero {
    padding-top: 2.25rem;
  }
  .hero__title {
    font-size: clamp(1.8rem, 6vw, 2.4rem);
  }
  .hero__visual-bg {
    inset: -10px;
    filter: blur(20px);
  }
}
