/* Coin Pusher — official site. Dark neon arcade, gold and violet like the game's own UI. */

@font-face {
  font-family: "Luckiest Guy";
  src: url("fonts/luckiest-guy.woff2") format("woff2");
  font-display: swap;
}

:root {
  --bg: #0a0616;
  --bg-2: #130a29;
  --bg-3: #1d1040;
  --line: rgba(190, 160, 255, 0.16);
  --text: #f6f1ff;
  --muted: #b9acd9;
  --gold: #ffd23f;
  --gold-2: #ff9d1c;
  --pink: #ff3fa4;
  --cyan: #3be3ff;
  --violet: #8b5cff;
  --radius: 22px;
  --display: "Luckiest Guy", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --body: -apple-system, "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.7 var(--body);
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(var(--max), 100% - 2 * var(--gutter)); margin-inline: auto; }

/* ---------- shared type ---------- */

.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font: 15px/1 var(--display); letter-spacing: .08em; color: var(--gold);
  text-transform: uppercase;
}
.kicker::before { content: ""; width: 28px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--gold), var(--pink)); }
h1, h2, h3 { margin: 0; line-height: 1.12; font-weight: 900; }
h2 {
  margin-top: 16px;
  font-family: var(--display);
  font-size: clamp(34px, 5.4vw, 64px);
  letter-spacing: .01em;
}
:lang(zh) h2, :lang(zh) h1 { font-family: var(--body); letter-spacing: .02em; }
h2 em, h1 em {
  font-style: normal;
  background: linear-gradient(180deg, #fff6c2 0%, var(--gold) 45%, var(--gold-2) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 4px 18px rgba(255, 170, 30, .35));
}
.lead { color: var(--muted); font-size: clamp(16px, 1.6vw, 19px); max-width: 620px; margin: 20px 0 0; }

.section { position: relative; padding: clamp(48px, 5vw, 84px) 0; }
.section + .section { border-top: 1px solid var(--line); }

/* ---------- nav ---------- */

.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background .3s, backdrop-filter .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled { background: rgba(10, 6, 22, .78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-color: var(--line); }
.nav-inner { display: flex; align-items: center; gap: 24px; height: 72px; }
.nav-logo img { height: 40px; width: auto; }
.nav-links { display: flex; gap: 26px; margin-left: auto; font-size: 15px; color: var(--muted); }
.nav-links a:hover { color: var(--text); }
.lang {
  border: 1px solid var(--line); background: rgba(255, 255, 255, .04); border-radius: 999px;
  padding: 6px 14px; font-size: 14px; cursor: pointer;
}
.lang:hover { border-color: var(--gold); }
.nav-cta {
  padding: 10px 18px; border-radius: 999px; font-weight: 800; font-size: 14px; color: #2a1300;
  background: linear-gradient(180deg, #ffe680, var(--gold) 50%, var(--gold-2));
  box-shadow: 0 6px 22px rgba(255, 170, 30, .35), inset 0 -2px 0 rgba(0, 0, 0, .18);
  white-space: nowrap;
}
.menu-btn { display: none; margin-left: auto; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; }
.menu-btn span { display: block; width: 22px; height: 2px; margin: 5px auto; background: var(--text); border-radius: 2px; transition: transform .3s, opacity .3s; }
.nav.open .menu-btn span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.open .menu-btn span:nth-child(2) { opacity: 0; }
.nav.open .menu-btn span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 960px) {
  .nav-links, .nav .nav-cta { display: none; }
  .menu-btn { display: block; }
  .nav .lang { order: 3; }
  .nav.open { background: rgba(10, 6, 22, .96); }
  .nav.open .nav-links {
    display: flex; flex-direction: column; gap: 0; position: absolute; top: 72px; left: 0; right: 0;
    padding: 8px var(--gutter) 24px; background: rgba(10, 6, 22, .96); border-bottom: 1px solid var(--line); font-size: 18px;
  }
  .nav.open .nav-links a { padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--text); }
}

/* ---------- hero ---------- */

.hero { position: relative; min-height: 100svh; display: grid; align-items: end; overflow: hidden; }
.hero-media { position: absolute; inset: 0; }
.hero-media video { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 6, 22, .55) 0%, rgba(10, 6, 22, 0) 25%, rgba(10, 6, 22, .1) 50%, rgba(10, 6, 22, .92) 86%, var(--bg) 100%),
    linear-gradient(90deg, rgba(10, 6, 22, .85) 0%, rgba(10, 6, 22, .25) 55%, rgba(10, 6, 22, 0) 100%);
}
.hero-body { position: relative; padding: 140px 0 64px; }
.hero-logo { width: clamp(220px, 30vw, 380px); height: auto; margin: 0 0 18px -8px; filter: drop-shadow(0 10px 40px rgba(139, 92, 255, .5)); }
.hero h1 { font-size: clamp(40px, 6.6vw, 84px); max-width: 12em; }
.hero .lead { color: #e1d8f5; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.store {
  display: inline-flex; align-items: center; gap: 12px; padding: 12px 22px 12px 18px; border-radius: 16px;
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .18); backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px); cursor: default;
}
.store svg { width: 28px; height: 28px; flex: none; }
.store small { display: block; font-size: 12px; color: var(--gold); font-weight: 700; line-height: 1.3; }
.store b { display: block; font-size: 18px; line-height: 1.2; }
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: 56px; border-radius: var(--radius); overflow: hidden;
  background: var(--line); border: 1px solid var(--line);
}
.stat { background: rgba(19, 10, 41, .82); padding: 20px 22px; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.stat b { display: block; font: 38px/1 var(--display); color: var(--gold); }
.stat span { display: block; margin-top: 8px; color: var(--muted); font-size: 14px; }
@media (max-width: 720px) {
  .hero { min-height: 0; }
  .hero-body { padding-top: 46svh; padding-bottom: 40px; }
  .hero-logo { display: none; }
  .hero-media::after { background: linear-gradient(180deg, rgba(10, 6, 22, .45) 0%, rgba(10, 6, 22, 0) 18%, rgba(10, 6, 22, .6) 40%, rgba(10, 6, 22, .9) 62%, var(--bg) 100%); }
  .stats { grid-template-columns: repeat(2, 1fr); margin-top: 36px; }
  .stat b { font-size: 30px; }
}

/* ---------- ticker ---------- */

.ticker { overflow: hidden; border-block: 1px solid var(--line); background: var(--bg-2); padding: 16px 0; }
.ticker-track { display: flex; gap: 40px; width: max-content; animation: ticker 60s linear infinite; }
.ticker span { font: 20px/1 var(--display); color: var(--muted); white-space: nowrap; display: inline-flex; align-items: center; gap: 40px; }
.ticker span::after { content: "✦"; color: var(--gold); font-size: 14px; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- split layout ---------- */

.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.split.reverse > :first-child { order: 2; }
@media (max-width: 880px) {
  .split, .split.reverse { grid-template-columns: 1fr; }
  .split.reverse > :first-child { order: 0; }
}

.frame {
  position: relative; border-radius: 28px; overflow: hidden; background: #000;
  border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .55), 0 0 0 6px rgba(139, 92, 255, .08), 0 0 80px rgba(139, 92, 255, .25);
}
.frame video, .frame img { width: 100%; height: 100%; object-fit: cover; }
.frame.square { aspect-ratio: 1; }
.frame.tall { aspect-ratio: 3 / 4; }
.glow-gold { box-shadow: 0 30px 80px rgba(0, 0, 0, .55), 0 0 90px rgba(255, 180, 40, .28); }

.points { list-style: none; padding: 0; margin: 34px 0 0; display: grid; gap: 14px; }
.points li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; padding: 16px 18px; border-radius: 18px; background: rgba(255, 255, 255, .03); border: 1px solid var(--line); }
.points .ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 22px; background: linear-gradient(160deg, rgba(255, 210, 63, .22), rgba(139, 92, 255, .22)); }
.points b { display: block; font-size: 17px; }
.points p { margin: 2px 0 0; color: var(--muted); font-size: 15px; line-height: 1.6; }

/* ---------- prize boxes ---------- */

/* prize boxes: see sections.css */

/* jackpot: see sections.css */

/* ---------- phone frame (gallery) ---------- */

.phone {
  width: min(360px, 100%); margin-inline: auto; aspect-ratio: 1080 / 1920; border-radius: 42px; padding: 10px;
  background: linear-gradient(160deg, #3a2a68, #120a26); box-shadow: 0 40px 90px rgba(0, 0, 0, .6), 0 0 90px rgba(139, 92, 255, .3);
}
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 33px; }

/* plaza and skins: see sections.css */

/* crowd band and rewards: see sections.css */

/* ---------- gallery ---------- */

.gallery { overflow: hidden; }
.shots {
  display: flex; gap: 22px; margin-top: 44px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 10px var(--gutter) 30px;
  scrollbar-width: thin; scrollbar-color: var(--violet) transparent;
}
.shots figure { margin: 0; flex: 0 0 auto; width: clamp(210px, 22vw, 260px); scroll-snap-align: center; }
.shots .phone { width: 100%; border-radius: 34px; padding: 8px; aspect-ratio: 828 / 1792; }
.shots .phone img { border-radius: 27px; }
.shots figcaption { text-align: center; margin-top: 14px; color: var(--muted); font-size: 14px; font-weight: 700; }

footer { border-top: 1px solid var(--line); padding: 40px 0 50px; color: var(--muted); font-size: 14px; }
.foot { display: flex; flex-wrap: wrap; gap: 20px 40px; justify-content: space-between; align-items: center; }
.foot nav { display: flex; flex-wrap: wrap; gap: 22px; }
.foot nav a:hover { color: var(--text); }
.disclaimer { margin-top: 18px; font-size: 13px; opacity: .8; }

/* ---------- motion ---------- */

.reveal { opacity: 0; transform: translateY(28px); }
.no-js .reveal, .reduced .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker-track { animation: none; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- document pages (terms / privacy / contact) ---------- */

.doc { padding: 130px 0 90px; }
.doc .wrap { max-width: 780px; }
.doc h1 { font-size: clamp(36px, 5vw, 54px); margin-top: 14px; }
.doc .lead { margin-bottom: 30px; }
.doc .draft { padding: 14px 18px; border-radius: 14px; background: rgba(255, 210, 63, .08); border: 1px solid rgba(255, 210, 63, .35); color: #ffe9a8; font-size: 14px; }
.doc section { padding: 26px 0; border-bottom: 1px solid var(--line); }
.doc h2 { font-family: var(--body); font-size: 22px; margin: 0 0 8px; }
.doc p, .doc li { color: var(--muted); }
.doc ul { padding-left: 20px; }
