/* Jade Lotus: Pandaria jade and gold. */
:root {
  --jade-950: #021512;
  --jade-900: #04201b;
  --jade-850: #062a25;
  --jade-800: #0a362f;
  --jade-700: #0f4a3f;
  --jade-600: #176352;
  --jade-500: #23806a;
  --jade-400: #44a98b;
  --jade-300: #86d4b6;
  --jade-200: #bfeedb;
  --mist: #00ff98;
  --gold-100: #fbf1cf;
  --gold-200: #f1dc9a;
  --gold-300: #e2c069;
  --gold-400: #c99a3c;
  --gold-500: #9a6f22;
  --lacquer: #a12222;
  --ink: #e8f5ee;
  --ink-soft: #b9d6ca;
  --ink-dim: #86ab9d;
  --radius: 14px;
  --max: 1120px;
  --display: 'Kaisei Tokumin', 'Friz Quadrata', Georgia, serif;
  --logo: 'Eagle Lake', 'Kaisei Tokumin', Georgia, serif;
  --body: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--jade-900);
  color: var(--ink);
  font-family: var(--body);
  font-weight: 400;
  font-size: 1.08rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* Faint lattice + grain over everything, like carved jade. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(circle at 20% 10%, rgba(0, 255, 152, .06), transparent 40%),
    radial-gradient(circle at 85% 60%, rgba(226, 192, 105, .05), transparent 45%),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, .012) 0 2px, transparent 2px 14px),
    repeating-linear-gradient(-45deg, rgba(255, 255, 255, .012) 0 2px, transparent 2px 14px);
}
main, footer, .hero { position: relative; z-index: 1; }
.sprite { position: absolute; }
a { color: var(--gold-200); }
::selection { background: var(--jade-500); color: var(--gold-100); }

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

h2, h3, .coin, .countdown b {
  font-family: var(--display);
  font-weight: 800;
}
h3 { font-weight: 700; }
h1, .brand, blockquote, .code-card h3, .tracker-head span { font-family: var(--logo); font-weight: 400; }
.eyebrow, .btn, .links { font-family: var(--body); }
.gold-text, h1 span, h2 {
  background: linear-gradient(180deg, var(--gold-100) 0%, var(--gold-200) 35%, var(--gold-300) 60%, var(--gold-500) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  line-height: 1.2;
  letter-spacing: .01em;
  margin: .2em 0 .3em;
  filter: drop-shadow(0 2px 0 rgba(0, 0, 0, .35));
}
h3 {
  font-size: 1.3rem;
  letter-spacing: .01em;
  color: var(--gold-200);
  margin: .4em 0 .35em;
}
.eyebrow {
  margin: 0;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--jade-300);
}
.lede { color: var(--ink-soft); font-size: 1.2rem; max-width: 46rem; margin: 0 auto; }

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

.hero {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  isolation: isolate;
  background:
    radial-gradient(ellipse 70% 55% at 50% 34%, rgba(68, 169, 139, .35), transparent 70%),
    linear-gradient(180deg, #0b3a33 0%, #0a3029 38%, #062a25 70%, var(--jade-900) 100%);
  overflow: hidden;
}
.sky { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.sun {
  position: absolute;
  left: 50%; top: 30%;
  width: 46vmin; height: 46vmin;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(251, 241, 207, .22) 0%, rgba(226, 192, 105, .10) 38%, transparent 68%);
  animation: breathe 9s ease-in-out infinite;
}
.cloud {
  position: absolute;
  color: rgba(191, 238, 219, .16);
  width: 340px; height: 118px;
}
.cloud.c1 { top: 14%; left: -6%; animation: drift 60s linear infinite; }
.cloud.c2 { top: 26%; right: -8%; width: 280px; color: rgba(226, 192, 105, .14); animation: drift 75s linear infinite reverse; }
.cloud.c3 { top: 52%; left: 8%; width: 220px; color: rgba(191, 238, 219, .1); animation: drift 90s linear infinite; }
.peaks { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: auto; aspect-ratio: 1440 / 360; min-height: 170px; }
.peaks .p1 { fill: url(#pk1); }
.peaks .p2 { fill: url(#pk2); }
.peaks .p3 { fill: url(#pk3); }
.peaks .pagoda { fill: #164f44; stroke: #164f44; opacity: .9; }
.mist {
  position: absolute; left: -10%; right: -10%; bottom: clamp(40px, 9vh, 110px); height: clamp(90px, 18vh, 200px);
  background: radial-gradient(ellipse at 50% 60%, rgba(134, 212, 182, .18), transparent 70%);
  filter: blur(14px);
  animation: mist 16s ease-in-out infinite alternate;
}

.nav {
  display: flex; align-items: center; justify-content: space-between;
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--gold-200); letter-spacing: .02em; font-size: 1.35rem; }
.brand svg { width: 38px; height: 30px; }
.links { display: flex; gap: 26px; align-items: center; font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.links a { color: var(--ink-soft); text-decoration: none; transition: color .2s; }
.links a:hover { color: var(--gold-100); }
.links .pill { color: var(--gold-100); border: 1px solid rgba(226, 192, 105, .55); padding: 8px 16px; border-radius: 999px; background: rgba(4, 32, 27, .4); }

.hero-inner {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  padding: 10px 16px 18vh;
  position: relative;
}
.seal {
  font-family: 'Noto Serif CJK SC', 'Songti SC', 'SimSun', serif;
  font-size: .95rem; letter-spacing: .1em;
  color: #fde7d6;
  background: linear-gradient(160deg, #b62b2b, #7c1414);
  border: 1px solid rgba(251, 241, 207, .35);
  padding: 8px 6px;
  writing-mode: vertical-rl;
  border-radius: 4px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .35), inset 0 0 0 2px rgba(0, 0, 0, .12);
  position: absolute; right: max(4vw, 16px); top: 6vh;
  transform: rotate(4deg);
  opacity: .9;
}
.emblem {
  width: clamp(170px, 24vw, 260px); height: clamp(135px, 19vw, 206px);
  filter: drop-shadow(0 0 28px rgba(0, 255, 152, .28)) drop-shadow(0 10px 18px rgba(0, 0, 0, .35));
  animation: float 7s ease-in-out infinite;
}
.hero .eyebrow { margin-top: 10px; color: var(--gold-300); }
h1 {
  margin: 4px 0 6px;
  font-size: clamp(3rem, 12vw, 7.6rem);
  line-height: 1.12;
  letter-spacing: .01em;
  padding: 0 .06em;
  -webkit-text-stroke: 1.2px rgba(241, 220, 154, .5);
  filter: drop-shadow(0 3px 0 rgba(0, 0, 0, .45)) drop-shadow(0 0 24px rgba(226, 192, 105, .18));
}
.tagline { margin: 8px 0 28px; color: var(--ink-soft); font-size: clamp(1.1rem, 2vw, 1.3rem); font-weight: 400; }

/* Countdown tiles: jade stone with gold edges. */
.countdown { display: flex; gap: clamp(8px, 2vw, 16px); justify-content: center; }
.countdown > div {
  min-width: clamp(68px, 13vw, 96px);
  padding: 12px 10px 8px;
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(35, 128, 106, .55), rgba(10, 54, 47, .85));
  border: 1px solid rgba(226, 192, 105, .55);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .15), inset 0 -10px 18px rgba(0, 0, 0, .25), 0 10px 24px rgba(0, 0, 0, .35);
  position: relative;
}
.countdown > div::after {
  content: ""; position: absolute; inset: 3px; border-radius: 7px;
  border: 1px solid rgba(251, 241, 207, .12); pointer-events: none;
}
.countdown b { display: block; font-size: clamp(1.6rem, 4.4vw, 2.4rem); line-height: 1.15; color: var(--gold-100); font-variant-numeric: tabular-nums; text-shadow: 0 2px 0 rgba(0, 0, 0, .4); }
.countdown span { font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: var(--jade-200); }
.countdown-note { margin: 12px 0 28px; font-size: .95rem; color: var(--ink-dim); }

/* Buttons. */
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 28px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: .9rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}
.btn.jade {
  color: var(--jade-950);
  background: linear-gradient(180deg, var(--gold-100), var(--gold-300) 55%, var(--gold-400));
  box-shadow: 0 0 0 1px rgba(251, 241, 207, .6) inset, 0 0 0 4px rgba(4, 32, 27, .7), 0 0 0 5px rgba(226, 192, 105, .7), 0 12px 30px rgba(0, 255, 152, .18);
}
.btn.jade:hover { transform: translateY(-2px); filter: brightness(1.06); box-shadow: 0 0 0 1px rgba(251, 241, 207, .8) inset, 0 0 0 4px rgba(4, 32, 27, .7), 0 0 0 5px rgba(241, 220, 154, .9), 0 16px 40px rgba(0, 255, 152, .3); }
.btn.ghost { color: var(--gold-100); border: 1px solid rgba(226, 192, 105, .5); background: rgba(4, 32, 27, .35); }
.btn.ghost:hover { background: rgba(23, 99, 82, .45); transform: translateY(-2px); }
.btn.big { padding: 18px 40px; font-size: 1.05rem; }
.headcount { margin-top: 22px; font-size: .95rem; color: var(--jade-300); }

/* ------------------------------------------------------------ sections */

.section { width: min(var(--max), calc(100% - 32px)); margin: 0 auto; padding: clamp(70px, 10vw, 120px) 0 0; }
.section-head { text-align: center; margin-bottom: 44px; }
.divider { display: block; width: min(400px, 80%); height: 24px; margin: 6px auto 22px; }
.divider.left { margin-left: 0; width: 300px; height: 18px; }

/* Jade stone panels with gold filigree corners. */
.tile, .code-card {
  position: relative;
  padding: 30px 26px 26px;
  border-radius: var(--radius);
  background:
    linear-gradient(160deg, rgba(68, 169, 139, .16), rgba(4, 32, 27, .1) 45%),
    linear-gradient(180deg, var(--jade-800), var(--jade-850));
  border: 1px solid rgba(226, 192, 105, .28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 20px 40px rgba(0, 0, 0, .3);
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.tile:hover { transform: translateY(-4px); border-color: rgba(226, 192, 105, .55); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 26px 50px rgba(0, 0, 0, .35), 0 0 40px rgba(0, 255, 152, .06); }
.frame svg { position: absolute; width: 30px; height: 30px; }
.frame .tl { top: 6px; left: 6px; }
.frame .tr { top: 6px; right: 6px; transform: scaleX(-1); }
.frame .bl { bottom: 6px; left: 6px; transform: scaleY(-1); }
.frame .br { bottom: 6px; right: 6px; transform: scale(-1, -1); }

.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.tile { text-align: center; padding: 46px 34px 40px; }
.tile .icon {
  width: 76px; height: 76px; padding: 16px;
  color: var(--gold-200);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(134, 212, 182, .35), rgba(10, 54, 47, .9) 70%);
  border: 1px solid rgba(226, 192, 105, .55);
  box-shadow: 0 0 22px rgba(0, 255, 152, .15);
}
.tile h3 { font-size: 1.55rem; line-height: 1.25; margin: 18px 0 10px; }
.tile p { margin: 0; color: var(--ink-soft); font-size: 1.15rem; }

.who { display: grid; grid-template-columns: 1.25fr 1fr; gap: 50px; align-items: center; }
.who-copy p { color: var(--ink-soft); }
blockquote {
  margin: 22px 0 0;
  padding: 6px 0 6px 20px;
  border-left: 2px solid var(--gold-300);
  font-size: 1.6rem;
  color: var(--gold-100);
}
.code-card h3 { font-size: 1.9rem; text-align: center; margin-top: 0; }
.code-card ol { list-style: none; counter-reset: code; margin: 18px 0 0; padding: 0; }
.code-card li { counter-increment: code; position: relative; padding: 10px 0 10px 50px; border-top: 1px solid rgba(226, 192, 105, .14); color: var(--ink-soft); }
.code-card li:first-child { border-top: 0; }
.code-card li::before {
  content: counter(code, upper-roman);
  position: absolute; left: 0; top: 10px;
  width: 34px; text-align: center;
  font-family: var(--display); font-weight: 700;
  color: var(--gold-300);
}
.code-card b { color: var(--ink); font-weight: 600; }

/* The addon: copy beside a replica of the in-game board. */
.addon { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.addon-copy p { color: var(--ink-soft); }
.features { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 14px; }
.features li { position: relative; padding-left: 34px; color: var(--ink-soft); }
.features li::before {
  content: ""; position: absolute; left: 0; top: .3em; width: 20px; height: 20px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--gold-100), var(--gold-400));
  box-shadow: 0 0 12px rgba(226, 192, 105, .35);
}
.features li::after {
  content: ""; position: absolute; left: 6px; top: calc(.3em + 5px); width: 7px; height: 4px;
  border-left: 2px solid var(--jade-950); border-bottom: 2px solid var(--jade-950); transform: rotate(-45deg);
}
.features b { color: var(--ink); font-weight: 600; }

.tracker {
  margin: 0; justify-self: center; width: min(440px, 100%);
  padding: 14px 18px 16px;
  font-family: var(--body);
  background: linear-gradient(180deg, rgba(0, 0, 0, .62), rgba(0, 0, 0, .5));
  border-radius: 6px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, .45), 0 0 0 1px rgba(255, 255, 255, .05), 0 0 80px rgba(0, 255, 152, .07);
  transform: perspective(1200px) rotateY(-6deg) rotateX(2deg);
}
.tracker-head { display: flex; align-items: center; gap: 8px; padding-bottom: 9px; border-bottom: 1px solid rgba(204, 158, 89, .6); margin-bottom: 10px; }
.tracker-head svg { width: 26px; height: 21px; }
.tracker-head span { font-family: var(--display); color: #f2e1b3; font-size: 1.15rem; flex: 1; }
.tracker-head em { font-style: normal; color: #ffd100; font-weight: 600; font-size: .85rem; margin-left: 10px; }
.tracker-row { display: flex; justify-content: space-between; color: #d9d9d9; font-size: .95rem; line-height: 1.5; }
.tracker-row .t { color: #fff; font-variant-numeric: tabular-nums; }
.quest { margin-top: 12px; }
.quest p { margin: 0; line-height: 1.45; }
.q-title { color: #ffd100; font-weight: 600; text-shadow: 0 1px 0 #000; }
.q-title i { font-style: normal; }
.q-title .mats { color: #3fd47a; } .q-title .vault { color: #d4af37; } .q-title .craft { color: #f4a6c8; }
.q-line { color: #d9d9d9; padding-left: 10px; font-size: .95rem; }
.q-line.done { color: #4ef27a; padding-left: 0; display: flex; gap: 6px; align-items: center; }
.tick { width: 14px; height: 14px; border-radius: 50%; background: #21b04b; position: relative; flex: none; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .3); }
.tick::after { content: ""; position: absolute; left: 4px; top: 3px; width: 5px; height: 3px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg); }
.tracker .dim { color: #9d9d9d; font-weight: 400; }
.tracker-foot { margin: 14px 0 0; color: #d9d9d9; font-size: .9rem; }

/* Steps with gold coins. */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; position: relative; }
.steps::before {
  content: ""; position: absolute; top: 33px; left: 16%; right: 16%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(226, 192, 105, .6), transparent);
}
.steps li { text-align: center; position: relative; padding: 0 8px; }
.coin {
  display: inline-grid; place-items: center;
  width: 66px; height: 66px; border-radius: 50%;
  font-size: 1.7rem;
  color: var(--jade-950);
  background: radial-gradient(circle at 35% 30%, var(--gold-100), var(--gold-300) 50%, var(--gold-500));
  box-shadow: 0 0 0 4px var(--jade-900), 0 0 0 5px rgba(226, 192, 105, .5), 0 10px 22px rgba(0, 0, 0, .4);
  position: relative; z-index: 1;
}
.steps p { color: var(--ink-soft); margin: 0; font-size: 1.02rem; }
.join-cta { text-align: center; margin-top: 54px; padding: 50px 20px; border-radius: 22px; position: relative; overflow: hidden;
  background: radial-gradient(ellipse at 50% 0%, rgba(0, 255, 152, .14), transparent 60%), linear-gradient(180deg, rgba(15, 74, 63, .5), rgba(4, 32, 27, .2));
  border: 1px solid rgba(226, 192, 105, .2);
}
.small { color: var(--ink-dim); font-size: .95rem; margin: 18px 0 0; }

/* ------------------------------------------------------------ footer */

.footer { text-align: center; padding: 90px 16px 50px; color: var(--ink-dim); font-size: .95rem; }
.footer-lotus { width: 70px; height: 56px; opacity: .85; }
.footer p { margin: 6px 0; }
.legal { font-size: .8rem; opacity: .75; max-width: 40rem; margin-inline: auto !important; }

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

.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s ease, transform .9s ease; }
.js .reveal.shown { opacity: 1; transform: none; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes breathe { 0%, 100% { opacity: .85; transform: translate(-50%, -50%) scale(1); } 50% { opacity: 1; transform: translate(-50%, -50%) scale(1.06); } }
@keyframes drift { from { transform: translateX(0); } to { transform: translateX(14vw); } }
@keyframes mist { from { transform: translateX(-3%); opacity: .8; } to { transform: translateX(3%); opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ------------------------------------------------------------ small screens */

@media (max-width: 980px) {
  .tiles { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
  .who, .addon { grid-template-columns: 1fr; gap: 34px; }
}
@media (max-width: 640px) {
  body { font-size: 1.05rem; }
  .links a:not(.pill) { display: none; }
  .steps { grid-template-columns: 1fr; }
  .tracker { font-size: .92rem; }
  .steps::before { display: none; }
  .steps li + li { margin-top: 6px; }
  .seal { display: none; }
  .hero-inner { padding-bottom: 22vh; }
  .countdown > div { min-width: 64px; padding: 10px 6px 6px; }
  .countdown span { letter-spacing: .12em; font-size: .64rem; }
  .nav { padding: 16px 0; }
  .btn { width: 100%; max-width: 340px; }
}
