/* ============== Reset & Tokens ============== */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

:root {
  --bg-0: #07061a;
  --bg-1: #0d0a26;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-strong: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #f4f1ff;
  --muted: #a9a4c9;
  --pink: #ff6fd8;
  --purple: #a871ff;
  --cyan: #3fe0ff;
  --gold: #ffd86b;
  --green: #6dffb1;
  --shadow-lg: 0 30px 80px -20px rgba(0,0,0,.55), 0 12px 30px -10px rgba(0,0,0,.5);
  --radius-card: 22px;
  --radius-pill: 999px;
  --grad-text: linear-gradient(110deg, #ff6fd8 0%, #a871ff 50%, #3fe0ff 100%);
  --font-base: 'Inter', 'Noto Sans SC', 'Noto Sans JP', 'PingFang SC', 'Hiragino Sans GB', 'Hiragino Sans', 'Yu Gothic', 'Microsoft YaHei', system-ui, -apple-system, sans-serif;
  --font-display: 'Plus Jakarta Sans', 'Noto Sans JP', 'Noto Sans SC', 'PingFang SC', system-ui, sans-serif;
}

html[lang="ja"], html[data-lang="ja"] {
  --font-base: 'Noto Sans JP', 'Hiragino Sans', 'Yu Gothic', 'Inter', system-ui, sans-serif;
  --font-display: 'Noto Sans JP', 'Plus Jakarta Sans', system-ui, sans-serif;
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-base);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg-0);
  background-image:
    radial-gradient(80% 60% at 80% 0%, rgba(168,113,255,.18) 0%, transparent 60%),
    radial-gradient(60% 50% at 0% 30%, rgba(63,224,255,.10) 0%, transparent 60%);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* ============== Background Aurora ============== */
.bg-aurora {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  overflow: hidden;
}
.aurora {
  position: absolute; border-radius: 50%; filter: blur(110px); opacity: .55;
  will-change: transform;
}
.aurora-1 { width: 600px; height: 600px; background: #ff6fd8; top: -200px; left: -100px; animation: drift1 26s ease-in-out infinite alternate; }
.aurora-2 { width: 700px; height: 700px; background: #5d3eff; bottom: -250px; right: -150px; animation: drift2 32s ease-in-out infinite alternate; }
.aurora-3 { width: 500px; height: 500px; background: #3fe0ff; top: 40%; left: 50%; transform: translate(-50%, -50%); opacity: .25; animation: drift3 38s ease-in-out infinite alternate; }
@keyframes drift1 { from { transform: translate(0,0) scale(1); } to { transform: translate(80px, 60px) scale(1.1); } }
@keyframes drift2 { from { transform: translate(0,0) scale(1); } to { transform: translate(-100px, -40px) scale(1.15); } }
@keyframes drift3 { from { transform: translate(-50%,-50%) scale(1); } to { transform: translate(-40%, -55%) scale(1.1); } }
.grain {
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.06 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity: .35; mix-blend-mode: overlay;
}

/* ============== Topbar ============== */
.topbar {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 32px;
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  background: linear-gradient(180deg, rgba(7,6,26,.7) 0%, rgba(7,6,26,.35) 100%);
  border-bottom: 1px solid var(--border);
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 800; font-size: 18px;
  letter-spacing: .2px;
}
.brand-mark {
  display: grid; place-items: center; width: 36px; height: 36px;
  border-radius: 11px;
  background: rgba(255,255,255,.06);
  border: 1px solid var(--border-strong);
  box-shadow: 0 6px 18px -8px rgba(168,113,255,.6);
}
.brand-text em { color: var(--muted); font-style: normal; margin: 0 4px; font-weight: 500; }
.nav-links { display: flex; gap: 28px; }
.nav-links a {
  font-size: 14px; font-weight: 500; color: var(--muted);
  transition: color .2s ease;
}
.nav-links a:hover { color: var(--text); }
.topbar-right { display: flex; align-items: center; gap: 12px; }

.lang-switch {
  display: inline-flex;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  padding: 3px;
  gap: 2px;
}
.lang-btn {
  background: transparent;
  border: 0;
  color: var(--muted);
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .5px;
  cursor: pointer;
  transition: color .2s ease, background .2s ease;
}
.lang-btn:hover { color: var(--text); }
.lang-btn.is-active {
  background: linear-gradient(135deg, #ff6fd8 0%, #a871ff 100%);
  color: #fff;
  box-shadow: 0 4px 12px -4px rgba(168,113,255,.7);
}

.cta-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px; border-radius: var(--radius-pill);
  background: linear-gradient(135deg, #ff6fd8 0%, #a871ff 100%);
  color: white; font-weight: 600; font-size: 13px;
  box-shadow: 0 8px 22px -8px rgba(168,113,255,.7);
  transition: transform .15s ease, box-shadow .2s ease;
}
.cta-pill:hover { transform: translateY(-1px); box-shadow: 0 12px 26px -8px rgba(168,113,255,.85); }

/* ============== Hero ============== */
.hero {
  position: relative;
  padding: 80px 32px 100px;
  max-width: 1280px; margin: 0 auto;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 56px;
  align-items: center;
}
.hero-copy { max-width: 580px; }
.kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 500; color: var(--muted);
  padding: 6px 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  background: var(--surface);
}
.kicker .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(109,255,177,.18);
  animation: pulseDot 2.4s infinite;
}
@keyframes pulseDot {
  0%, 100% { box-shadow: 0 0 0 4px rgba(109,255,177,.18); }
  50% { box-shadow: 0 0 0 8px rgba(109,255,177,.05); }
}
.hero-title {
  margin: 22px 0 18px;
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-weight: 800;
}
.grad {
  background: var(--grad-text);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub {
  font-size: 17px; color: var(--muted);
  max-width: 520px;
  margin: 0 0 32px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 40px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 22px;
  border-radius: var(--radius-pill);
  font-weight: 600; font-size: 14px;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, #ff6fd8 0%, #a871ff 100%);
  color: white;
  box-shadow: 0 12px 28px -10px rgba(168,113,255,.7);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 34px -10px rgba(168,113,255,.85); }
.btn-ghost {
  background: var(--surface-strong);
  border: 1px solid var(--border-strong);
  color: var(--text);
}
.btn-ghost:hover { background: rgba(255,255,255,.10); border-color: rgba(255,255,255,.25); }

.hero-stats {
  display: grid; grid-template-columns: repeat(3, auto);
  gap: 32px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}
.hero-stats > div { display: flex; flex-direction: column; gap: 2px; }
.hero-stats strong {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  background: var(--grad-text);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-stats span { color: var(--muted); font-size: 13px; }

/* ============== Phone Mockup ============== */
.hero-art { position: relative; display: grid; place-items: center; min-height: 540px; }
.phone-frame {
  position: relative;
  width: 280px; aspect-ratio: 9/19;
  border-radius: 42px;
  background: linear-gradient(160deg, #2c2350 0%, #110d2e 100%);
  padding: 10px;
  box-shadow:
    0 50px 100px -25px rgba(0,0,0,.7),
    0 0 0 2px rgba(255,255,255,.05),
    inset 0 0 0 2px rgba(255,255,255,.03);
  transform: rotate(-4deg);
  animation: phoneFloat 6s ease-in-out infinite alternate;
}
.phone-frame-lg { width: 320px; transform: rotate(0deg); animation: none; }
@keyframes phoneFloat {
  from { transform: rotate(-4deg) translateY(0); }
  to { transform: rotate(-2deg) translateY(-12px); }
}
.phone-screen {
  position: relative;
  width: 100%; height: 100%;
  border-radius: 33px;
  overflow: hidden;
  background: #1c1140;
}
.phone-shot .phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

/* ============== Phone Poster - 纯素材合成的酷炫游戏画面 ============== */
.poster {
  position: absolute; inset: 0;
  overflow: hidden;
  background:
    radial-gradient(80% 60% at 30% 20%, rgba(168,113,255,.45) 0%, transparent 60%),
    radial-gradient(70% 50% at 80% 75%, rgba(255,111,150,.32) 0%, transparent 65%),
    linear-gradient(180deg, #5b3c8e 0%, #2f1b6b 60%, #1a0d3a 100%);
  display: flex; flex-direction: column;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
}

/* 顶部 UI 栏 */
.poster .topbar {
  position: relative;
  z-index: 5;
  padding: 7% 5% 2%;
  display: flex; align-items: center; justify-content: space-between;
  gap: 6px;
  color: #fff;
  font-weight: 700;
}
.poster .topbar .col-l, .poster .topbar .col-c, .poster .topbar .col-r {
  display: flex; flex-direction: column; align-items: center;
  gap: 4px;
  font-size: 10px;
}
.poster .topbar .label {
  font-size: 8px; font-weight: 600;
  color: rgba(255,255,255,.6);
  letter-spacing: 1px; text-transform: uppercase;
}
.poster .topbar .pill {
  padding: 4px 10px;
  background: rgba(0,0,0,.28);
  border-radius: 12px;
  font-size: 11px;
  border: 1px solid rgba(255,255,255,.12);
  white-space: nowrap;
}
.poster .topbar .pill.score { background: rgba(0,0,0,.34); }
.poster .topbar .pill.score b {
  background: linear-gradient(90deg,#ffd86b,#ff8d3d);
  -webkit-background-clip:text; background-clip:text; color:transparent;
  font-weight: 800;
}
.poster .topbar .next-thumb {
  width: 36px; height: 36px;
  display: grid; grid-template: 1fr 1fr / 1fr 1fr;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,.45));
}
.poster .topbar .next-thumb img { width: 100%; height: 100%; }

/* 棋盘 */
.poster .board {
  position: relative;
  flex: 1;
  margin: 4% 6% 4%;
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(0,0,0,.18) 0%, rgba(0,0,0,.30) 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.06),
    inset 0 4px 14px rgba(0,0,0,.4);
  overflow: hidden;
  /* 8x8 网格 */
  --cols: 8; --rows: 8;
}
/* 网格线 */
.poster .board::before {
  content: '';
  position: absolute; inset: 6px;
  background-image:
    linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: calc(100% / 8) calc(100% / 8);
  pointer-events: none;
}

/* jelly 方块（占两格 = 2x2 内 4 角） */
.poster .board .jb {
  position: absolute;
  display: grid;
  grid-template: 1fr 1fr / 1fr 1fr;
  /* 一个 jb 占 2x2 棋盘格 */
  width: calc(2 * (100% - 12px) / 8);
  height: calc(2 * (100% - 12px) / 8);
  left: calc(6px + var(--c, 0) * (100% - 12px) / 8);
  top:  calc(6px + var(--r, 0) * (100% - 12px) / 8);
  filter:
    drop-shadow(0 4px 8px rgba(0,0,0,.45))
    drop-shadow(0 0 12px var(--g, rgba(168,113,255,.5)));
  animation: jellyBob var(--dur, 3.6s) ease-in-out infinite alternate;
  animation-delay: var(--d, 0s);
  transform: rotate(var(--rot, 0deg));
}
.poster .board .jb img { width: 100%; height: 100%; display: block; }
@keyframes jellyBob {
  from { transform: translateY(0) rotate(var(--rot, 0deg)); }
  to   { transform: translateY(-3px) rotate(calc(var(--rot, 0deg) + 3deg)); }
}

/* 单格小 jelly（占 1 格） */
.poster .board .jb.size-1 {
  width: calc(1 * (100% - 12px) / 8);
  height: calc(1 * (100% - 12px) / 8);
}

/* 爆炸特效（多个位置） */
.poster .board .blast {
  position: absolute;
  width: calc(4.5 * (100% - 12px) / 8);
  height: calc(4.5 * (100% - 12px) / 8);
  left: calc(6px + (var(--c, 0) - 1.25) * (100% - 12px) / 8);
  top:  calc(6px + (var(--r, 0) - 1.25) * (100% - 12px) / 8);
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 50%,
      rgba(255,255,255,1) 0%,
      rgba(255,255,200,.95) 8%,
      var(--bc1, rgba(255,180,80,.9)) 22%,
      var(--bc2, rgba(255,80,120,.6)) 42%,
      transparent 70%);
  filter: blur(6px);
  border-radius: 50%;
  mix-blend-mode: screen;
  z-index: 5;
  animation: blastPulse var(--dur, 1.6s) ease-in-out infinite alternate;
}
@keyframes blastPulse {
  from { transform: scale(.9); opacity: .85; }
  to   { transform: scale(1.15); opacity: 1; }
}

/* 中心旋转大光辉 */
.poster .board .ray {
  position: absolute; inset: -10%;
  background: conic-gradient(from 0deg at 50% 50%,
    transparent 0deg, rgba(168,113,255,.18) 22deg, transparent 50deg,
    rgba(255,111,216,.20) 110deg, transparent 145deg,
    rgba(63,224,255,.20) 215deg, transparent 250deg,
    rgba(255,216,107,.20) 320deg, transparent 350deg);
  filter: blur(10px);
  animation: rayRotate 18s linear infinite;
  pointer-events: none;
  mix-blend-mode: screen;
}

/* 彩虹光带横扫 */
.poster .board .arc {
  position: absolute;
  width: 220%; height: 50px;
  left: -60%; top: 30%;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(255,216,107,.25) 18%,
    rgba(255,111,216,.45) 36%,
    rgba(168,113,255,.55) 54%,
    rgba(63,224,255,.40) 74%,
    transparent 100%);
  filter: blur(14px);
  transform: rotate(-18deg);
  pointer-events: none;
  mix-blend-mode: screen;
  animation: arcShine 5s ease-in-out infinite alternate;
}
@keyframes arcShine {
  from { transform: rotate(-18deg) translateX(-12px); opacity: .85; }
  to   { transform: rotate(-15deg) translateX(8px);   opacity: 1; }
}

/* 飞舞粒子 */
.poster .sparks {
  position: absolute; inset: 0; pointer-events: none; z-index: 6;
}
.poster .sparks span {
  position: absolute;
  width: var(--w, 5px); height: var(--w, 5px);
  background: var(--c, #fff);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--c, #fff), 0 0 16px var(--c, #fff);
  opacity: 0;
  left: var(--ox, 50%);
  top: var(--oy, 50%);
  animation: sparkBurst var(--dur, 2.4s) ease-out infinite;
  animation-delay: var(--d, 0s);
}
@keyframes sparkBurst {
  0%   { transform: translate(0,0) scale(.4); opacity: 0; }
  10%  { transform: translate(0,0) scale(1.1); opacity: 1; }
  60%  { opacity: 1; }
  100% { transform: translate(var(--tx, -100px), var(--ty, -100px)) scale(.2); opacity: 0; }
}

/* 闪烁星点 */
.poster .stars {
  position: absolute; inset: 0; pointer-events: none; z-index: 4;
}
.poster .stars span {
  position: absolute;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 0 6px #fff, 0 0 14px rgba(255,216,107,.7);
  opacity: var(--a, .9);
  animation: twinkle 2.4s ease-in-out infinite;
  animation-delay: var(--d, 0s);
}

/* 文字 - MATCH N! */
.poster .combo {
  position: absolute;
  padding: 4px 9px;
  border-radius: 12px 3px 12px 12px;
  background: linear-gradient(135deg, #ffd86b 0%, #ff8d3d 100%);
  color: #2a1259;
  font-weight: 900;
  font-size: 11px;
  letter-spacing: .3px;
  box-shadow:
    0 6px 12px rgba(0,0,0,.45),
    0 0 18px rgba(255,216,107,.7),
    inset 0 -2px 0 rgba(0,0,0,.18),
    inset 0 2px 0 rgba(255,255,255,.5);
  text-shadow: 0 1px 0 rgba(255,255,255,.45);
  white-space: nowrap;
  z-index: 7;
  animation: comboPop 1.6s ease-in-out infinite;
}
.poster .combo.combo-1 { right: 3%; top: 4%; transform: rotate(-8deg); }
.poster .combo.combo-2 {
  left: 3%; bottom: 6%;
  background: linear-gradient(135deg, #3fe0ff 0%, #5d3eff 100%);
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,.4);
  border-radius: 3px 12px 12px 12px;
  transform: rotate(6deg);
  animation-delay: .8s;
}
@keyframes comboPop {
  0%, 100% { transform: rotate(-8deg) scale(1); }
  50%      { transform: rotate(-4deg) scale(1.08); }
}

/* 分数飘字 */
.poster .pop {
  position: absolute;
  font-weight: 900;
  font-size: 13px;
  color: #fff;
  text-shadow:
    0 0 4px #fff,
    0 0 10px var(--gc, #ffd86b),
    0 2px 4px rgba(0,0,0,.7);
  letter-spacing: 1px;
  z-index: 7;
  animation: popHold 2.4s ease-in-out infinite alternate;
  transform: translateY(0);
}
@keyframes popHold {
  0%   { transform: translateY(0) scale(1); opacity: .92; }
  100% { transform: translateY(-6px) scale(1.06); opacity: 1; }
}

/* 连击徽章 */
.poster .xn {
  position: absolute;
  top: 30%; right: 6%;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ff4d8b 0%, #c91e63 100%);
  color: #fff;
  font-weight: 900;
  font-size: 14px;
  display: grid; place-items: center;
  box-shadow:
    0 8px 16px rgba(0,0,0,.5),
    0 0 24px rgba(255,77,139,.75),
    inset 0 -2px 0 rgba(0,0,0,.25),
    inset 0 2px 0 rgba(255,255,255,.4);
  transform: rotate(10deg);
  animation: xnPop 1.6s ease-in-out infinite alternate;
  z-index: 7;
}
@keyframes xnPop {
  from { transform: rotate(10deg) scale(.92); }
  to   { transform: rotate(14deg) scale(1.1); }
}

/* 底部道具栏 */
.poster .bottombar {
  position: relative;
  z-index: 5;
  padding: 2% 5% 7%;
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}
.poster .bottombar .slot {
  position: relative;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 8px;
  padding: 4px;
  display: grid; place-items: center;
  height: 32px;
}
.poster .bottombar .slot img {
  width: 90%; height: 90%;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,.5));
}
.poster .bottombar .slot .lvl {
  position: absolute;
  bottom: -4px; right: -4px;
  background: #ff4d8b;
  color: #fff;
  font-size: 8px; font-weight: 800;
  padding: 1px 5px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,.4);
}

/* spotlight 大手机 — 字体放大 */
.phone-frame-lg .poster .topbar { padding-top: 7%; }
.phone-frame-lg .poster .topbar .pill { font-size: 12px; padding: 5px 12px; }
.phone-frame-lg .poster .combo { font-size: 16px; padding: 8px 14px; }
.phone-frame-lg .poster .xn { width: 52px; height: 52px; font-size: 20px; }
.phone-frame-lg .poster .pop { font-size: 16px; }
.phone-frame-lg .poster .bottombar .slot { height: 50px; }

/* 顶部柔光遮罩，让 UI 部分稍稍融合 */
.poster::after {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 60% at 50% 0%, rgba(168,113,255,.18) 0%, transparent 60%),
    radial-gradient(80% 60% at 70% 100%, rgba(255,111,150,.22) 0%, transparent 65%);
  pointer-events: none;
  z-index: 2;
  mix-blend-mode: screen;
}

/* 在右下消除区域强化爆炸光晕（位置 ~ 78% / 75%） */
.poster .blast {
  position: absolute;
  width: 240px; height: 240px;
  right: -20%; bottom: 12%;
  background:
    radial-gradient(circle at 50% 50%,
      rgba(255,180,80,.85) 0%,
      rgba(255,90,80,.6) 18%,
      rgba(255,40,120,.35) 35%,
      transparent 65%);
  filter: blur(8px);
  border-radius: 50%;
  pointer-events: none;
  z-index: 3;
  mix-blend-mode: screen;
  animation: blastPulse 1.6s ease-in-out infinite alternate;
}
@keyframes blastPulse {
  from { transform: scale(.92); opacity: .85; }
  to   { transform: scale(1.10); opacity: 1; }
}

/* 彩虹光弧从消除点斜扫向左上 */
.poster .arc {
  position: absolute;
  width: 220%;
  height: 60px;
  right: -40%;
  top: 56%;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(255,216,107,.25) 18%,
    rgba(255,111,216,.45) 38%,
    rgba(168,113,255,.55) 56%,
    rgba(63,224,255,.4) 76%,
    transparent 100%);
  filter: blur(16px);
  transform: rotate(-22deg);
  pointer-events: none;
  z-index: 3;
  mix-blend-mode: screen;
  animation: arcShine 5s ease-in-out infinite alternate;
}
@keyframes arcShine {
  from { transform: rotate(-22deg) translateX(-12px); opacity: .8; }
  to   { transform: rotate(-20deg) translateX(8px);   opacity: 1; }
}

/* 旋转的星芒光辉（从棋盘中心散发） */
.poster .ray {
  position: absolute;
  width: 320px; height: 320px;
  right: -10%; bottom: 8%;
  background: conic-gradient(from 0deg at 50% 50%,
    transparent 0deg, rgba(255,216,107,.3) 14deg, transparent 32deg,
    rgba(255,111,216,.28) 90deg, transparent 110deg,
    rgba(255,216,107,.32) 168deg, transparent 188deg,
    rgba(168,113,255,.28) 250deg, transparent 270deg,
    rgba(63,224,255,.28) 320deg, transparent 340deg);
  filter: blur(10px);
  pointer-events: none;
  z-index: 3;
  mix-blend-mode: screen;
  animation: rayRotate 14s linear infinite;
}

/* 飞舞的魔法粒子从消除点向四周散发 */
.poster .sparks {
  position: absolute; inset: 0;
  pointer-events: none;
  z-index: 4;
}
.poster .sparks span {
  position: absolute;
  width: var(--w, 5px); height: var(--w, 5px);
  background: var(--c, #fff);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--c, #fff), 0 0 18px var(--c, #fff);
  opacity: 0;
  /* 起点：右下消除点 */
  right: var(--rx, 22%);
  bottom: var(--by, 28%);
  animation: sparkBurst 2.4s ease-out infinite;
  animation-delay: var(--d, 0s);
}
@keyframes sparkBurst {
  0%   { transform: translate(0,0) scale(.4); opacity: 0; }
  10%  { opacity: 1; transform: translate(0,0) scale(1); }
  60%  { opacity: 1; }
  100% { transform: translate(var(--tx, -100px), var(--ty, -120px)) scale(.2); opacity: 0; }
}

/* 闪烁星光散布全屏 */
.poster .stars {
  position: absolute; inset: 0;
  pointer-events: none;
  z-index: 4;
}
.poster .stars span {
  position: absolute;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 0 6px #fff, 0 0 14px rgba(255,216,107,.7);
  opacity: var(--a, .9);
  animation: twinkle 2.4s ease-in-out infinite;
  animation-delay: var(--d, 0s);
}

/* "MATCH 4!" 爆炸泡泡（贴在消除点旁） */
.poster .combo {
  position: absolute;
  right: 6%;
  bottom: 32%;
  padding: 8px 14px;
  border-radius: 18px 4px 18px 18px;
  background: linear-gradient(135deg, #ffd86b 0%, #ff8d3d 100%);
  color: #2a1259;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-weight: 900;
  font-size: 14px;
  letter-spacing: .5px;
  box-shadow:
    0 10px 20px rgba(0,0,0,.45),
    0 0 28px rgba(255,216,107,.7),
    inset 0 -2px 0 rgba(0,0,0,.18),
    inset 0 2px 0 rgba(255,255,255,.5);
  transform: rotate(-10deg);
  animation: comboPop 1.8s ease-in-out infinite;
  z-index: 6;
  text-shadow: 0 1px 0 rgba(255,255,255,.45);
  white-space: nowrap;
}
.poster .combo small {
  display: block;
  font-size: 9px;
  letter-spacing: 2px;
  font-weight: 800;
  opacity: .75;
  text-align: right;
}
@keyframes comboPop {
  0%, 100% { transform: rotate(-10deg) scale(1); }
  50%      { transform: rotate(-6deg) scale(1.1); }
}

/* "×3" 连击徽章（贴在 Score 区附近） */
.poster .xn {
  position: absolute;
  top: 9%;
  left: 36%;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ff4d8b 0%, #c91e63 100%);
  color: #fff;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-weight: 900;
  font-size: 18px;
  display: grid; place-items: center;
  box-shadow:
    0 10px 20px rgba(0,0,0,.5),
    0 0 28px rgba(255,77,139,.75),
    inset 0 -2px 0 rgba(0,0,0,.25),
    inset 0 2px 0 rgba(255,255,255,.4);
  transform: rotate(10deg);
  animation: xnPop 1.6s ease-in-out infinite alternate;
  z-index: 6;
}
@keyframes xnPop {
  from { transform: rotate(10deg) scale(.92); }
  to   { transform: rotate(14deg) scale(1.1); }
}

/* 大号 spotlight 手机里字体调大 */
.phone-frame-lg .poster .combo { font-size: 16px; padding: 10px 16px; }
.phone-frame-lg .poster .xn { width: 54px; height: 54px; font-size: 22px; }
.phone-frame-lg .poster .blast { width: 280px; height: 280px; }
.phone-frame-lg .poster .ray { width: 380px; height: 380px; }

/* Hero 区外的爆发粒子（围绕手机） */
.hero-burst {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}
.hero-burst span {
  position: absolute;
  width: var(--w, 6px); height: var(--w, 6px);
  background: var(--c, rgba(168,113,255,.9));
  border-radius: 50%;
  box-shadow: 0 0 12px var(--c, rgba(168,113,255,.9)), 0 0 24px var(--c, rgba(168,113,255,.6));
  opacity: 0;
  animation: heroBurst 3.8s ease-out infinite;
  animation-delay: var(--d, 0s);
  top: 50%; left: 50%;
}
@keyframes heroBurst {
  0%   { transform: translate(0,0) scale(0); opacity: 0; }
  15%  { opacity: 1; }
  100% { transform: translate(var(--tx, 200px), var(--ty, -200px)) scale(.3); opacity: 0; }
}

/* 在 spotlight 那个更大的手机里，poster 元素相应放大 */
.phone-frame-lg .poster .logo .l1 { font-size: 36px; }
.phone-frame-lg .poster .logo .l2 { font-size: 42px; }
.phone-frame-lg .poster .combo { font-size: 18px; padding: 10px 16px; }
.phone-frame-lg .poster .xn { width: 64px; height: 64px; font-size: 26px; }
.phone-notch {
  position: absolute;
  top: 14px; left: 50%; transform: translateX(-50%);
  width: 80px; height: 22px;
  border-radius: 0 0 14px 14px;
  background: #07061a;
  z-index: 2;
}

/* Hero/Spotlight 浮动 jelly 装饰（用真实素材） */
.hero-decor, .spotlight-decor {
  position: absolute; inset: 0;
  pointer-events: none;
  z-index: 0;
}
.hero-decor .jelly, .spotlight-decor .jelly {
  position: absolute;
  display: grid;
  grid-template: 1fr 1fr / 1fr 1fr;
  filter:
    drop-shadow(0 14px 24px rgba(0,0,0,.5))
    drop-shadow(0 0 22px var(--glow, rgba(168,113,255,.55)));
  animation: heroFloat 5.4s ease-in-out infinite alternate;
  animation-delay: var(--d, 0s);
  transform: rotate(var(--r, 0deg));
}
.hero-decor .jelly img, .spotlight-decor .jelly img {
  width: 100%; height: 100%; display: block;
  -webkit-user-drag: none; user-select: none;
}
@keyframes heroFloat {
  from { transform: translateY(0) rotate(var(--r, 0deg)); }
  to   { transform: translateY(-18px) rotate(calc(var(--r, 0deg) + 8deg)); }
}

.hero-decor .item, .spotlight-decor .item {
  position: absolute;
  filter: drop-shadow(0 18px 30px rgba(0,0,0,.55));
  user-select: none;
  -webkit-user-drag: none;
}

.hero-scroll {
  position: absolute;
  bottom: 30px; left: 50%;
  transform: translateX(-50%);
  width: 22px; height: 36px;
  border: 2px solid var(--border-strong);
  border-radius: 12px;
  display: grid; place-items: center;
  opacity: .6;
}
.hero-scroll span {
  width: 3px; height: 8px;
  background: var(--text);
  border-radius: 2px;
  animation: scrollDot 1.7s ease-in-out infinite;
}
@keyframes scrollDot {
  0% { transform: translateY(-6px); opacity: 0; }
  50% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(6px); opacity: 0; }
}

/* ============== Section Heads ============== */
.section-head { text-align: center; margin: 0 auto 56px; max-width: 720px; padding: 0 24px; }
.eyebrow {
  display: inline-block;
  font-size: 12px; font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}
.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4.5vw, 52px);
  letter-spacing: -.01em;
  line-height: 1.1;
  margin: 0 0 12px;
  font-weight: 800;
}
.section-sub { color: var(--muted); margin: 0; }

/* ============== Features ============== */
.features {
  padding: 80px 32px;
  max-width: 1280px; margin: 0 auto;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.feature-card {
  position: relative;
  padding: 28px 24px;
  border-radius: var(--radius-card);
  background: var(--surface);
  border: 1px solid var(--border);
  backdrop-filter: blur(8px);
  transition: transform .25s ease, border-color .25s ease, background .25s ease;
}
.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  background: var(--surface-strong);
}
.feature-icon {
  width: 46px; height: 46px;
  border-radius: 13px;
  display: grid; place-items: center;
  margin-bottom: 18px;
  color: white;
}
.ic-1 { background: linear-gradient(135deg, #ff6fd8 0%, #ff3380 100%); }
.ic-2 { background: linear-gradient(135deg, #3fe0ff 0%, #5d3eff 100%); }
.ic-3 { background: linear-gradient(135deg, #ffd86b 0%, #ff8d3d 100%); }
.ic-4 { background: linear-gradient(135deg, #6dffb1 0%, #3fe0ff 100%); }
.feature-card h3 { margin: 0 0 6px; font-size: 17px; font-weight: 700; font-family: var(--font-display); }
.feature-card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.55; }

/* ============== Game Grid ============== */
.games {
  padding: 60px 32px 80px;
  max-width: 1280px; margin: 0 auto;
}
.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 22px;
}
.game-card {
  position: relative;
  border-radius: var(--radius-card);
  background: linear-gradient(180deg, rgba(255,255,255,.08) 0%, rgba(255,255,255,.025) 100%);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: transform .25s ease, border-color .25s ease, box-shadow .3s ease;
  display: flex; flex-direction: column;
}
.game-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-strong);
  box-shadow: 0 30px 60px -20px rgba(168,113,255,.35);
}
.game-card.coming-soon { opacity: .65; }
.game-card.coming-soon:hover { transform: none; box-shadow: none; }

.game-cover {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  background:
    radial-gradient(120% 140% at 50% 0%, #2a1556 0%, #160830 60%, #0a061f 100%);
}
.game-cover::after {
  /* 顶部柔光 */
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 80% at 50% 35%, rgba(168,113,255,.32) 0%, transparent 70%),
    radial-gradient(40% 60% at 80% 80%, rgba(63,224,255,.16) 0%, transparent 70%),
    radial-gradient(40% 60% at 20% 90%, rgba(255,111,216,.14) 0%, transparent 70%);
  pointer-events: none;
}
.game-cover .cover-bg {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(1px 1px at 12% 18%, rgba(255,255,255,.85), transparent 60%),
    radial-gradient(1px 1px at 28% 72%, rgba(255,255,255,.7), transparent 60%),
    radial-gradient(1.5px 1.5px at 62% 24%, rgba(255,255,255,.95), transparent 60%),
    radial-gradient(1px 1px at 78% 60%, rgba(255,255,255,.65), transparent 60%),
    radial-gradient(1.5px 1.5px at 88% 18%, rgba(255,255,255,.9), transparent 60%),
    radial-gradient(1px 1px at 8%  88%, rgba(255,255,255,.6), transparent 60%),
    radial-gradient(2px 2px at 46% 88%, rgba(180,140,255,.85), transparent 60%),
    radial-gradient(1px 1px at 36% 38%, rgba(255,255,255,.75), transparent 60%),
    radial-gradient(1px 1px at 70% 88%, rgba(255,255,255,.6), transparent 60%);
  pointer-events: none;
  opacity: .9;
}
.game-cover .cover-art {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  z-index: 2;
}
.game-cover img.icon-img {
  width: 116px; height: 116px;
  border-radius: 26px;
  box-shadow:
    0 30px 60px -15px rgba(0,0,0,.7),
    0 0 80px rgba(168,113,255,.45),
    inset 0 0 0 1px rgba(255,255,255,.08);
  transition: transform .35s ease;
}
.game-card:hover .game-cover img.icon-img { transform: translateY(-3px) scale(1.04); }
.game-cover .stars { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.game-cover .stars span {
  position: absolute;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(255,255,255,.85), 0 0 12px rgba(168,113,255,.45);
  opacity: var(--a, .8);
  animation: twinkle 3.2s ease-in-out infinite;
  animation-delay: var(--d, 0s);
}
@keyframes twinkle {
  0%, 100% { opacity: var(--a); transform: scale(1); }
  50% { opacity: calc(var(--a) * 0.3); transform: scale(.7); }
}

/* ========== Promo art (Drop Jelly hero composition) ========== */
.game-cover .light-ray {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 50% 52%, rgba(168,113,255,.55) 0%, rgba(168,113,255,.18) 22%, transparent 45%),
    conic-gradient(from 0deg at 50% 52%,
      transparent 0deg, rgba(168,113,255,.22) 22deg, transparent 50deg,
      rgba(255,111,216,.22) 110deg, transparent 140deg,
      rgba(168,113,255,.22) 200deg, transparent 230deg,
      rgba(63,224,255,.20) 290deg, transparent 320deg);
  filter: blur(14px);
  opacity: .85;
  pointer-events: none;
  animation: rayRotate 28s linear infinite;
  z-index: 1;
}
@keyframes rayRotate { from { transform: rotate(0); } to { transform: rotate(360deg); } }

.promo-art {
  position: absolute; inset: 0;
  pointer-events: none;
  z-index: 3;
}
.promo-art .jelly {
  position: absolute;
  display: grid;
  grid-template: 1fr 1fr / 1fr 1fr;
  filter:
    drop-shadow(0 8px 14px rgba(0,0,0,.45))
    drop-shadow(0 0 16px var(--glow, rgba(168,113,255,.55)));
  animation: jellyFloat 4.2s ease-in-out infinite alternate;
  animation-delay: var(--d, 0s);
  transform: rotate(var(--r, 0deg));
}
.promo-art .jelly img {
  width: 100%; height: 100%;
  display: block;
  -webkit-user-drag: none;
  user-select: none;
  pointer-events: none;
}
@keyframes jellyFloat {
  from { transform: translateY(0) rotate(var(--r, 0deg)); }
  to   { transform: translateY(-9px) rotate(calc(var(--r, 0deg) + 5deg)); }
}

.promo-art .item {
  position: absolute;
  filter: drop-shadow(0 10px 18px rgba(0,0,0,.5));
  -webkit-user-drag: none;
  user-select: none;
}
.promo-art .item.rocket {
  width: 96px;
  left: -12px;
  bottom: 8%;
  transform: rotate(-18deg);
  animation: rocketBob 5.5s ease-in-out infinite alternate;
}
.promo-art .item.wand {
  width: 72px;
  right: 4%;
  top: 4%;
  transform: rotate(18deg);
  animation: wandBob 5s ease-in-out infinite alternate;
}
@keyframes rocketBob {
  from { transform: translate(0,0) rotate(-18deg); }
  to   { transform: translate(8px,-6px) rotate(-12deg); }
}
@keyframes wandBob {
  from { transform: translate(0,0) rotate(18deg); }
  to   { transform: translate(-4px, 8px) rotate(22deg); }
}

/* 让中心图标在最高层 + 强化发光 */
.game-cover .cover-art { z-index: 4; }
.game-cover .cover-art img.icon-img {
  filter: drop-shadow(0 30px 50px rgba(0,0,0,.55));
}

/* 在 Drop Jelly 卡里把图标稍微放大、加更强光环 */
#card-drop_jelly .game-cover img.icon-img {
  width: 124px; height: 124px;
  box-shadow:
    0 30px 60px -15px rgba(0,0,0,.7),
    0 0 90px rgba(168,113,255,.6),
    0 0 0 1px rgba(255,255,255,.08);
}

.game-meta {
  padding: 22px 22px 24px;
  display: flex; flex-direction: column; gap: 12px;
  flex: 1;
}
.game-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.game-tag {
  font-size: 11px; font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: rgba(255,255,255,.06);
  color: var(--muted);
  border: 1px solid var(--border);
}
.game-title {
  font-family: var(--font-display);
  font-size: 22px; font-weight: 800;
  margin: 0;
  letter-spacing: -.01em;
}
.game-desc {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.55;
  flex: 1;
}
.game-actions {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px;
  margin-top: 4px;
}
.dl-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  font-weight: 600; font-size: 13px;
  background: linear-gradient(135deg, #ff6fd8 0%, #a871ff 100%);
  color: white;
  box-shadow: 0 10px 22px -10px rgba(168,113,255,.7);
  transition: transform .15s ease, box-shadow .2s ease;
}
.dl-btn:hover { transform: translateY(-1px); box-shadow: 0 14px 28px -10px rgba(168,113,255,.85); }
.dl-btn svg { width: 14px; height: 14px; }
.dl-meta {
  font-size: 12px; color: var(--muted);
}
.cs-badge {
  font-size: 12px; font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: rgba(255,255,255,.04);
  color: var(--muted);
  border: 1px dashed var(--border-strong);
}

/* ============== Spotlight ============== */
.spotlight {
  padding: 80px 32px;
  max-width: 1280px; margin: 0 auto;
}
.spotlight-inner {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 56px;
  align-items: center;
  background: linear-gradient(135deg, rgba(255,111,216,.07) 0%, rgba(63,224,255,.05) 100%);
  border: 1px solid var(--border);
  border-radius: 32px;
  padding: 60px 56px;
  position: relative;
  overflow: hidden;
}
.spotlight-inner::before {
  content: ''; position: absolute;
  inset: 0;
  background: radial-gradient(60% 80% at 0% 50%, rgba(168,113,255,.12) 0%, transparent 60%);
  pointer-events: none;
}
.spotlight-media { display: grid; place-items: center; position: relative; z-index: 1; }
.spotlight-copy { position: relative; z-index: 1; }
.spotlight-copy h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 800;
  margin: 12px 0 16px;
  letter-spacing: -.01em;
}
.spotlight-copy p { color: var(--muted); font-size: 16px; max-width: 540px; }
.spotlight-tags {
  list-style: none; padding: 0; margin: 22px 0 30px;
  display: flex; flex-wrap: wrap; gap: 8px;
}
.spotlight-tags li {
  font-size: 12px; font-weight: 600;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: rgba(255,255,255,.05);
  border: 1px solid var(--border);
  color: var(--text);
}
.spotlight-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.apk-meta { font-size: 13px; color: var(--muted); }

/* ============== About ============== */
.about {
  padding: 60px 32px 80px;
  max-width: 880px; margin: 0 auto;
  text-align: center;
}
.about h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  margin: 0 0 18px;
  letter-spacing: -.01em;
}
.about p { color: var(--muted); font-size: 16px; }
.about a { color: var(--text); border-bottom: 1px solid var(--border-strong); }
.about a:hover { color: var(--pink); }

/* ============== Footer ============== */
.footer {
  border-top: 1px solid var(--border);
  padding: 30px 32px;
  font-size: 13px;
  color: var(--muted);
}
.footer-inner {
  max-width: 1280px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
}
.footer-links { display: flex; gap: 22px; }
.footer-links a:hover { color: var(--text); }

/* ============== Responsive ============== */
@media (max-width: 980px) {
  .topbar { padding: 14px 18px; }
  .nav-links { display: none; }
  .hero { padding: 50px 18px 70px; }
  .hero-inner { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .hero-copy { margin: 0 auto; }
  .hero-actions { justify-content: center; }
  .hero-stats { grid-template-columns: repeat(3, 1fr); justify-items: center; gap: 18px; text-align: center; }
  .hero-art { min-height: 480px; }
  .features { padding: 60px 18px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .games { padding: 40px 18px 60px; }
  .game-grid { grid-template-columns: 1fr; }
  .spotlight { padding: 60px 18px; }
  .spotlight-inner { grid-template-columns: 1fr; padding: 40px 24px; gap: 32px; text-align: center; }
  .spotlight-actions { justify-content: center; }
  .spotlight-tags { justify-content: center; }
  .footer-inner { justify-content: center; text-align: center; }
}

@media (max-width: 480px) {
  .brand-text em + * { display: none; }
  .hero-title { font-size: 38px; }
  .hero-stats { gap: 12px; }
  .hero-stats strong { font-size: 22px; }
  .feature-grid { grid-template-columns: 1fr; }
  .phone-frame { width: 230px; }
  .lang-btn { padding: 5px 10px; font-size: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  .aurora, .float, .phone-frame, .phone-grid .cell.j, .hero-scroll span { animation: none !important; }
}
