@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700&family=Playfair+Display:ital,wght@1,600&display=swap');

:root {
  --ink: #17162d;
  --ink-soft: #3d3b51;
  --cream: #f8f4eb;
  --paper: #fffdf8;
  --peach: #ffb766;
  --coral: #f27869;
  --lavender: #8d78c9;
  --line: rgba(23, 22, 45, .12);
  --max: 1240px;
  --radius: 32px;
  --shadow: 0 30px 80px rgba(42, 30, 73, .14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: "DM Sans", "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }

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

.skip-link {
  position: fixed;
  top: -50px;
  left: 24px;
  z-index: 1000;
  padding: 12px 18px;
  border-radius: 8px;
  background: white;
  color: var(--ink);
  transition: top .2s;
}
.skip-link:focus { top: 16px; }

.site-header {
  position: absolute;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(calc(100% - 64px), var(--max));
  height: 96px;
  margin: 0 auto;
  color: #fff;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: "Manrope", sans-serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: .11em;
}

.brand-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid currentColor;
  border-radius: 12px;
  transform: rotate(12deg);
}
.brand-mark::before,
.brand-mark::after,
.brand-mark span::before,
.brand-mark span::after {
  content: "";
  position: absolute;
  width: 7px;
  height: 7px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
}
.brand-mark::before { top: 7px; left: 7px; }
.brand-mark::after { right: 7px; bottom: 7px; }
.brand-mark span::before { top: 7px; right: 7px; }
.brand-mark span::after { left: 7px; bottom: 7px; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 36px;
  font-size: 14px;
  font-weight: 500;
}
.site-nav a { position: relative; }
.site-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .25s ease;
}
.site-nav a:hover::after { transform: scaleX(1); transform-origin: left; }

.language-switch {
  min-width: 64px;
  padding: 9px 13px;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 999px;
  color: inherit;
  background: rgba(255,255,255,.09);
  cursor: pointer;
  backdrop-filter: blur(10px);
}
.language-switch:hover { background: rgba(255,255,255,.18); }
.menu-button { display: none; }

.hero {
  position: relative;
  min-height: 820px;
  height: min(900px, 100vh);
  color: #fff;
  background: #28244f;
  overflow: hidden;
}
.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(24,20,46,.72) 0%, rgba(31,27,56,.34) 39%, rgba(23,18,42,.03) 70%),
    linear-gradient(0deg, rgba(16,14,33,.53) 0%, transparent 32%);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: min(calc(100% - 64px), var(--max));
  height: 100%;
  margin: 0 auto;
  padding-bottom: 40px;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 26px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.eyebrow > span:first-child { width: 28px; height: 1px; background: var(--peach); }
.hero h1 {
  max-width: 720px;
  margin: 0;
  font-family: "Manrope", sans-serif;
  font-size: clamp(64px, 7.5vw, 112px);
  font-weight: 500;
  line-height: .96;
  letter-spacing: -.06em;
}
.hero h1 em {
  font-family: "Playfair Display", serif;
  font-weight: 600;
  color: #ffe0a8;
}
.hero-content > p {
  max-width: 540px;
  margin: 30px 0 34px;
  color: rgba(255,255,255,.8);
  font-size: 18px;
  line-height: 1.7;
}
.hero-actions { display: flex; align-items: center; gap: 30px; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  min-height: 58px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 600;
  transition: transform .25s, box-shadow .25s, background .25s;
}
.button:hover { transform: translateY(-2px); }
.button-primary { color: var(--ink); background: #fff4dd; box-shadow: 0 12px 30px rgba(29,16,59,.2); }
.button-primary:hover { background: #fff; box-shadow: 0 16px 36px rgba(29,16,59,.28); }
.button-light { color: var(--ink); background: #fff; }
.text-link { display: inline-flex; gap: 12px; font-size: 15px; font-weight: 600; }
.text-link span:last-child { transition: transform .2s; }
.text-link:hover span:last-child { transform: translateX(4px); }

.hero-meta {
  position: absolute;
  z-index: 2;
  right: max(32px, calc((100vw - var(--max)) / 2));
  bottom: 38px;
  display: flex;
  color: #fff;
}
.hero-meta > div {
  display: flex;
  flex-direction: column;
  min-width: 118px;
  padding: 0 24px;
  border-left: 1px solid rgba(255,255,255,.25);
}
.hero-meta strong { font-size: 15px; }
.hero-meta span { margin-top: 4px; color: rgba(255,255,255,.58); font-size: 11px; letter-spacing: .07em; text-transform: uppercase; }
.scroll-cue {
  position: absolute;
  z-index: 2;
  bottom: 38px;
  left: max(32px, calc((100vw - var(--max)) / 2));
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255,255,255,.66);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .12em;
}
.scroll-cue i { position: relative; width: 38px; height: 1px; background: currentColor; }
.scroll-cue i::after { content: ""; position: absolute; right: 0; bottom: 0; width: 8px; height: 1px; background: currentColor; transform: rotate(-35deg); transform-origin: right; }

.section { width: min(calc(100% - 64px), var(--max)); margin: 0 auto; }
.games-section { padding: 136px 0 140px; }
.section-heading {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 80px;
  align-items: end;
  margin-bottom: 64px;
}
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--coral);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.section-kicker::before { content: ""; width: 22px; height: 1px; background: currentColor; }
.section-kicker.light { color: #ffd5a6; }
.section-heading h2,
.studio-intro h2,
.contact-band h2 {
  margin: 0;
  font-family: "Manrope", sans-serif;
  font-size: clamp(42px, 5vw, 68px);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -.05em;
}
.section-heading > p {
  max-width: 490px;
  margin: 0 0 5px;
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.75;
}

.game-card {
  display: grid;
  grid-template-columns: 52% 48%;
  min-height: 690px;
  margin-top: 34px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.game-card-light { background: #fffdf7; }
.game-card-dark { color: #fff; background: #1e1834; }
.game-art { position: relative; min-height: 690px; overflow: hidden; }
.game-art::after { content: ""; position: absolute; inset: 0; box-shadow: inset -30px 0 80px rgba(17,12,39,.08); pointer-events: none; }
.game-art img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.game-card:hover .game-art img { transform: scale(1.025); }
.game-number {
  position: absolute;
  top: 28px;
  left: 28px;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255,255,255,.6);
  border-radius: 50%;
  color: white;
  background: rgba(20,18,43,.2);
  font-size: 12px;
  backdrop-filter: blur(12px);
}
.art-chip {
  position: absolute;
  right: 24px;
  bottom: 24px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 15px;
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 999px;
  color: white;
  background: rgba(25,18,48,.28);
  font-size: 12px;
  font-weight: 600;
  backdrop-filter: blur(13px);
}
.game-copy { display: flex; flex-direction: column; justify-content: center; padding: 68px 64px; }
.game-logo { margin-bottom: 38px; }
.tile-logo { display: flex; align-items: center; gap: 16px; }
.app-icon {
  width: 64px;
  height: 64px;
  flex: none;
  border-radius: 17px;
  object-fit: cover;
  box-shadow: 0 12px 28px rgba(33,24,63,.22);
}
.tile-logo strong { font-family: "Manrope", sans-serif; font-size: 34px; line-height: .84; letter-spacing: -.06em; }
.karma-logo { display: inline-flex; align-items: center; gap: 17px; width: fit-content; color: #ffe8b9; }
.karma-wordmark { display: flex; flex-direction: column; align-items: flex-start; }
.karma-wordmark small { margin-left: 3px; font-size: 11px; font-weight: 700; letter-spacing: .4em; }
.karma-wordmark strong { margin: -3px 0 -4px; font-family: "Manrope", sans-serif; font-size: 45px; font-weight: 500; letter-spacing: .08em; }
.karma-wordmark span { align-self: flex-end; font-size: 9px; letter-spacing: .3em; }
.game-tagline { margin: 0 0 16px; font-family: "Manrope", sans-serif; font-size: 28px; font-weight: 600; letter-spacing: -.03em; }
.game-description { max-width: 480px; margin: 0 0 24px; color: #696778; font-size: 16px; line-height: 1.72; }
.game-card-dark .game-description { color: rgba(255,255,255,.66); }
.feature-list { display: grid; gap: 9px; margin: 0 0 34px; padding: 0; list-style: none; font-size: 14px; }
.feature-list li { display: flex; align-items: center; gap: 10px; }
.feature-list li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 4px rgba(242,120,105,.12); }
.game-card-dark .feature-list li::before { background: #d5b6ff; box-shadow: 0 0 0 4px rgba(213,182,255,.12); }
.store-links { display: flex; flex-wrap: wrap; gap: 10px; }
.store-button {
  display: flex;
  align-items: center;
  min-width: 164px;
  min-height: 54px;
  padding: 8px 14px;
  border-radius: 11px;
  color: #fff;
  background: #171620;
  transition: transform .2s, box-shadow .2s;
}
.store-button:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(20,16,33,.18); }
.store-button svg { width: 25px; height: 25px; margin-right: 10px; fill: currentColor; }
.store-button span { display: flex; flex-direction: column; font-family: "Manrope", sans-serif; font-size: 16px; line-height: 1.05; }
.store-button small { margin-bottom: 3px; font-family: "DM Sans", sans-serif; font-size: 8px; font-weight: 500; letter-spacing: .04em; }
.store-button-light { color: #1b1930; background: #fff; }

.studio-section { padding: 0 0 140px; }
.studio-intro { max-width: 950px; margin: 0 auto 70px; text-align: center; }
.studio-intro .section-kicker { justify-content: center; }
.studio-intro h2 em { display: block; font-family: "Playfair Display", serif; color: var(--coral); font-weight: 600; }
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.value-card { position: relative; min-height: 330px; padding: 42px 36px; border-right: 1px solid var(--line); }
.value-card:last-child { border-right: 0; }
.value-index { color: rgba(23,22,45,.35); font-size: 11px; }
.value-icon { margin: 45px 0 24px; color: var(--coral); font-size: 32px; }
.value-card h3 { margin: 0 0 13px; font-family: "Manrope", sans-serif; font-size: 21px; }
.value-card p { margin: 0; color: #6c6979; font-size: 15px; line-height: 1.7; }

.contact-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
  width: min(calc(100% - 64px), var(--max));
  margin: 0 auto 100px;
  padding: 65px 72px;
  border-radius: var(--radius);
  color: #fff;
  background:
    radial-gradient(circle at 75% 10%, rgba(255,182,102,.22), transparent 26%),
    linear-gradient(125deg, #2b2349, #17162d 60%);
  overflow: hidden;
}
.contact-band h2 { max-width: 650px; font-size: clamp(36px, 4.2vw, 56px); }
.contact-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 18px; flex: none; }
.contact-email { color: rgba(255,255,255,.68); font-size: 13px; }

.site-footer {
  padding: 80px max(32px, calc((100vw - var(--max)) / 2)) 32px;
  color: #fff;
  background: #111021;
}
.site-footer > div:not(.footer-bottom) { display: inline-flex; vertical-align: top; }
.footer-brand { flex-direction: column; width: 46%; }
.footer-brand p { margin: 22px 0 0; color: rgba(255,255,255,.47); font-size: 14px; }
.footer-links { justify-content: flex-end; gap: clamp(50px, 7vw, 100px); width: 53%; }
.footer-links > div { display: flex; flex-direction: column; gap: 11px; min-width: 100px; }
.footer-links span { margin-bottom: 9px; color: rgba(255,255,255,.35); font-size: 10px; letter-spacing: .13em; text-transform: uppercase; }
.footer-links a { color: rgba(255,255,255,.72); font-size: 13px; }
.footer-links a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; margin-top: 78px; padding-top: 25px; border-top: 1px solid rgba(255,255,255,.1); color: rgba(255,255,255,.35); font-size: 11px; }
.footer-bottom p { margin: 0; }
.dot { margin: 0 8px; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .75s ease, transform .75s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* Legal and support pages */
.inner-page { background: var(--paper); }
.inner-page .site-header { position: relative; color: var(--ink); }
.inner-page .language-switch { border-color: var(--line); background: rgba(23,22,45,.04); }
.inner-hero {
  width: min(calc(100% - 64px), var(--max));
  margin: 30px auto 0;
  padding: 90px 8% 82px;
  border-radius: var(--radius);
  color: #fff;
  background:
    radial-gradient(circle at 82% 25%, rgba(255,182,102,.22), transparent 24%),
    linear-gradient(125deg, #2f2854, #18162e);
}
.inner-hero h1 { max-width: 800px; margin: 0; font-family: "Manrope", sans-serif; font-size: clamp(46px, 7vw, 82px); font-weight: 500; line-height: 1; letter-spacing: -.06em; }
.inner-hero p { max-width: 660px; margin: 24px 0 0; color: rgba(255,255,255,.7); font-size: 17px; line-height: 1.7; }
.inner-hero .section-kicker { color: #ffd5a6; }
.content-wrap { display: grid; grid-template-columns: 250px 1fr; gap: 80px; width: min(calc(100% - 64px), 1080px); margin: 90px auto 120px; }
.content-aside { position: sticky; top: 30px; align-self: start; }
.content-aside span { display: block; margin-bottom: 12px; color: #9793a3; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.content-aside p { margin: 0; color: var(--ink-soft); font-size: 13px; line-height: 1.6; }
.content-aside a { display: block; margin-top: 20px; color: var(--coral); font-size: 13px; font-weight: 600; }
.prose { max-width: 740px; }
.prose section { margin-bottom: 48px; scroll-margin-top: 20px; }
.prose h2 { margin: 0 0 18px; font-family: "Manrope", sans-serif; font-size: 26px; letter-spacing: -.03em; }
.prose h3 { margin: 25px 0 10px; font-size: 17px; }
.prose p, .prose li { color: #5e5b6c; font-size: 15px; line-height: 1.8; }
.prose ul { padding-left: 20px; }
.prose a { color: var(--coral); text-decoration: underline; text-underline-offset: 3px; }
html[lang="en"] .lang-zh { display: none; }
html[lang="zh-CN"] .lang-en { display: none; }

.support-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; width: min(calc(100% - 64px), 1080px); margin: 70px auto 120px; }
.support-card { min-height: 220px; padding: 34px; border: 1px solid var(--line); border-radius: 22px; background: #fff; }
.support-card .card-icon { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 30px; border-radius: 14px; color: var(--coral); background: rgba(242,120,105,.1); }
.support-app-icon { width: 58px; height: 58px; margin-bottom: 28px; border-radius: 16px; object-fit: cover; box-shadow: 0 10px 24px rgba(33,24,63,.16); }
.support-card h2 { margin: 0 0 12px; font-family: "Manrope", sans-serif; font-size: 22px; }
.support-card p { margin: 0; color: #6e6a79; font-size: 14px; line-height: 1.7; }
.support-card a:not(.button) { display: inline-block; margin-top: 20px; color: var(--coral); font-size: 14px; font-weight: 600; }
.faq { grid-column: 1 / -1; margin-top: 34px; }
.faq > h2 { margin-bottom: 25px; font-family: "Manrope", sans-serif; font-size: 34px; }
.faq-item { border-top: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-item button { display: flex; justify-content: space-between; width: 100%; padding: 24px 0; border: 0; color: var(--ink); background: none; text-align: left; cursor: pointer; }
.faq-item button span:last-child { transition: transform .2s; }
.faq-item button[aria-expanded="true"] span:last-child { transform: rotate(45deg); }
.faq-answer { display: none; max-width: 780px; padding: 0 0 24px; color: #6e6a79; font-size: 14px; line-height: 1.75; }
.faq-item button[aria-expanded="true"] + .faq-answer { display: block; }

@media (max-width: 980px) {
  .site-header { width: calc(100% - 40px); }
  .menu-button {
    position: relative;
    z-index: 22;
    display: grid;
    gap: 6px;
    width: 44px;
    height: 44px;
    place-content: center;
    border: 1px solid rgba(255,255,255,.35);
    border-radius: 50%;
    color: inherit;
    background: rgba(23,22,45,.1);
    cursor: pointer;
  }
  .inner-page .menu-button { border-color: var(--line); }
  .menu-button > span:not(.sr-only) { display: block; width: 17px; height: 1.5px; background: currentColor; transition: transform .2s; }
  .menu-open .menu-button > span:first-child { transform: translateY(3.75px) rotate(45deg); }
  .menu-open .menu-button > span:nth-child(2) { transform: translateY(-3.75px) rotate(-45deg); }
  .site-nav {
    position: fixed;
    inset: 0;
    z-index: 21;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 30px;
    color: #fff;
    background: rgba(17,16,33,.97);
    font-size: 24px;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s;
  }
  .menu-open .site-nav { opacity: 1; pointer-events: auto; }
  .language-switch { font-size: 14px; }
  .section-heading { grid-template-columns: 1fr; gap: 28px; }
  .game-card { grid-template-columns: 1fr 1fr; }
  .game-copy { padding: 50px 38px; }
  .store-links { flex-direction: column; align-items: flex-start; }
  .contact-band { padding: 55px 48px; }
}

@media (max-width: 760px) {
  .site-header { height: 76px; }
  .brand { font-size: 18px; }
  .brand-mark { width: 34px; height: 34px; }
  .hero { min-height: 740px; height: 100svh; }
  .hero-image { object-position: 61% center; }
  .hero-scrim { background: linear-gradient(90deg, rgba(24,20,46,.77), rgba(31,27,56,.2)), linear-gradient(0deg, rgba(16,14,33,.65), transparent 42%); }
  .hero-content { width: calc(100% - 40px); padding-bottom: 20px; }
  .eyebrow { margin-bottom: 20px; font-size: 10px; }
  .hero h1 { font-size: clamp(52px, 16vw, 76px); }
  .hero-content > p { max-width: 420px; margin: 24px 0 28px; font-size: 16px; line-height: 1.55; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 20px; }
  .hero-meta, .scroll-cue { display: none; }
  .section { width: calc(100% - 36px); }
  .games-section { padding: 90px 0 95px; }
  .section-heading { margin-bottom: 40px; }
  .section-heading h2, .studio-intro h2 { font-size: 42px; }
  .section-heading > p { font-size: 15px; }
  .game-card { grid-template-columns: 1fr; min-height: auto; margin-top: 22px; border-radius: 24px; }
  .game-art { min-height: 510px; }
  .game-copy { padding: 48px 28px 50px; }
  .game-logo { margin-bottom: 30px; }
  .game-tagline { font-size: 25px; }
  .store-links { flex-direction: row; }
  .store-button { min-width: 156px; }
  .studio-section { padding-bottom: 95px; }
  .studio-intro { margin-bottom: 50px; }
  .values-grid { grid-template-columns: 1fr; }
  .value-card { min-height: 260px; border-right: 0; border-bottom: 1px solid var(--line); }
  .value-card:last-child { border-bottom: 0; }
  .value-icon { margin: 30px 0 18px; }
  .contact-band { align-items: flex-start; flex-direction: column; width: calc(100% - 36px); margin-bottom: 70px; padding: 45px 28px; border-radius: 24px; }
  .contact-actions { align-items: flex-start; }
  .site-footer { padding: 65px 24px 28px; }
  .site-footer > div:not(.footer-bottom) { display: flex; width: 100%; }
  .footer-brand { margin-bottom: 55px; }
  .footer-links { justify-content: flex-start; flex-wrap: wrap; gap: 42px; }
  .footer-bottom { flex-direction: column; gap: 8px; margin-top: 55px; }
  .inner-hero { width: calc(100% - 36px); margin-top: 12px; padding: 68px 28px; }
  .content-wrap { grid-template-columns: 1fr; gap: 42px; width: calc(100% - 36px); margin: 65px auto 90px; }
  .content-aside { position: relative; top: 0; }
  .support-grid { grid-template-columns: 1fr; width: calc(100% - 36px); }
  .faq { grid-column: auto; }
}

@media (max-width: 420px) {
  .hero-content { padding-top: 48px; }
  .hero h1 { font-size: 50px; }
  .game-art { min-height: 430px; }
  .store-links { flex-direction: column; }
  .store-button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
