@font-face{font-family:EDC;src:url("assets/source-han-regular.otf?v=f17c25ab14") format("opentype");font-display:swap;font-weight:400}
@font-face{font-family:EDC;src:url("assets/source-han-bold.otf?v=231959e5eb") format("opentype");font-display:swap;font-weight:700}
@font-face { font-family: "EDC Sans EN"; src: url("assets/EDCSansEN-Regular.otf?v=fb1dec41de") format("opentype"); font-display: swap; font-weight: 400; }
@font-face { font-family: "EDC Sans EN"; src: url("assets/EDCSansEN-Medium.otf?v=a8e4d10cac") format("opentype"); font-display: swap; font-weight: 500; }
@font-face { font-family: "EDC Sans EN"; src: url("assets/EDCSansEN-Bold.otf?v=57ae24d53d") format("opentype"); font-display: swap; font-weight: 700; }

@font-face {
  font-family: "DIN Condensed Local";
  src: local("DIN Condensed Bold"), local("DINCondensed-Bold");
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: dark;
  font-family: EDC, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--paper);
  background: var(--bg);
  scroll-behavior: smooth;
  --font-en: "EDC Sans EN", EDC, "PingFang SC", sans-serif;
  --font-en-display: "DIN Condensed Local", "DIN Condensed", "Arial Narrow", var(--font-en);
  --bg: #1c1c1c;
  --panel: #262626;
  --panel-inset: clamp(28px, 3.6vw, 56px);
  --panel-gap: clamp(22px, 2.6vw, 40px);
  --panel-radius: 12px;
  --feature-heading: clamp(24px, 2.2vw, 34px);
  --feature-body: 14px;
  --letter-heading: 15px;
  --paper: #ededed;
  --soft: #bdbdbd;
  --accent: #f96c24;
  --blue: #4194f5;
  --gold: #f0c277;
  --line: #3b3b3b;
}

* { box-sizing: border-box; }
body, h1, h2, h3, p { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
:where(a, button):focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }
img { display: block; max-width: 100%; }
.wrap { width: min(1280px, 88.8%); margin-inline: auto; }

header { overflow: clip; border-bottom: 1px solid var(--line); }
.bar, .foot { display: flex; align-items: center; }
.bar { min-height: 88px; }
header .brand { position: relative; display: block; width: 155px; aspect-ratio: 155 / 38; }
header .brand img {
  position: absolute;
  width: 154.83871%;
  height: auto;
  max-width: none;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.skip {
  position: fixed;
  left: 12px;
  top: -70px;
  background: #fff;
  color: #000;
  padding: 10px;
  z-index: 20;
}
.skip:focus { top: 8px; }

.hero { overflow: clip; border-bottom: 1px solid var(--line); }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(32px, 5.5vw, 88px);
  padding-top: clamp(44px, 5.4vw, 80px);
}
.hero-copy { padding-bottom: clamp(38px, 4.8vw, 68px); }
.kicker, .index, :root[lang="en"] .detail-copy li {
  font-family: var(--font-en-display);
  font-weight: 700;
}
.kicker {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--ink, var(--accent));
  font-size: 11px;
  letter-spacing: .14em;
}
.kicker i {
  position: relative;
  inset-block-start: -.14em;
  flex: none;
  display: inline-block;
  width: 7px;
  height: 7px;
  background: currentColor;
  border-radius: 50%;
}
.hero-copy h1 {
  font-size: clamp(36px, 4.2vw, 62px);
  line-height: 1.18;
  letter-spacing: -.065em;
  margin: 24px 0 28px;
}
.shop-name { display: block; }

.shop-initials {
  position: relative;
  top: .048em;
  font-family: var(--font-en);
  font-size: 1.16em;
  font-weight: 500;
  line-height: .87;
  letter-spacing: -.055em;
}
.hero-copy p, .feature-copy p {
  color: var(--soft);
  font-size: var(--feature-body);
  line-height: 1.85;
}
.cta {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 36px;
  padding: 10px 20px;
  background: var(--accent);
  color: #181818;
  border-radius: 4px;
  font-weight: 700;
  font-size: 13px;
}
.cta:hover { background: #ff8544; }

.hero-visual {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  min-width: 0;
}
.hero-visual { align-self: end; }
.hero-device {
  position: relative;
  width: min(100%, 485px);
  aspect-ratio: 965 / 1136;
}
.app-screen { width: 100%; height: auto; filter: drop-shadow(0 9px 15px #0005); }
.hero-device > .app-screen { position: absolute; inset: 0; height: 100%; }
.pack-window {
  --pack-width: min(80cqw, 326px, 68.5cqh);
  --pack-stride: calc(max(60.5%, var(--pack-width) * .89 + 4px) + clamp(3px, 8cqw - 19px, 16px));
  position: absolute;
  inset: 3.6% 2% 6.4%;
  container-type: size;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  cursor: grab;
}
.pack-window.ready { overflow: clip; scroll-snap-type: none; touch-action: pan-y pinch-zoom; }
.pack-window.is-dragging { cursor: grabbing; user-select: none; }
.pack-window:focus-visible { outline: 2px solid var(--accent); outline-offset: -3px; }
.pack-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: var(--pack-stride);
  margin-left: calc((100% - var(--pack-stride)) / 2);
  width: 100%;
  height: 100%;
}
.pack-slot { position: relative; scroll-snap-align: start; }
.package-link {
  position: absolute;
  top: 50%;
  left: 50%;
  width: var(--pack-width);
  aspect-ratio: 458 / 672;
  transform: translate(-50%, -50%);
  cursor: inherit;
}
.package-link img { width: 100%; height: auto; }
.pack-body {
  position: absolute;
  inset: 0;
  transform-origin: var(--pivot-x) var(--pivot-y);
}
.pack-body img {
  position: absolute;
  top: var(--art-top);
  left: var(--art-left);
  width: var(--art-width);
  filter: drop-shadow(3px 4px 7px rgb(0 0 0 / 14%)) drop-shadow(7px 9px 5px rgb(0 0 0 / 8%));
}
.pack-fixture { position: absolute; inset: 0; }
.package-link:focus-visible { outline-offset: 2px; }
.pack-hint {
  position: absolute;
  inset: auto 0 2.8%;
  text-align: center;
  color: #999;
  font-size: clamp(9px, 1vw, 11px);
}

.section { padding: 86px 0 92px; }
.section-head { position: relative; }
.section-head h2 {
  font-size: clamp(28px, 2.85vw, 42px);
  line-height: 1.25;
  letter-spacing: -.055em;
  margin: 10px 0;
}
.section-head p, .detail-copy p {
  font-size: var(--feature-body);
  line-height: 1.9;
  color: var(--soft);
}
.section-head p { margin-top: 13px; }

.demo-stage {
  isolation: isolate;
  position: relative;
  display: grid;
  place-items: center;
  background: #363636;
  overflow: hidden;
}
.demo-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("assets/board.webp") center / 480px;
  filter: grayscale(1);
  mix-blend-mode: soft-light;
  opacity: .32;
  z-index: -1;
}
.index { position: absolute; top: 15px; left: 16px; font-size: 11px; letter-spacing: .08em; color: #d0d0d0; }
.play-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--panel-gap); }
.play-card { background: var(--panel); border-radius: var(--panel-radius); }
.play-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 44%);
  align-items: center;
  gap: clamp(16px, 2.5vw, 36px);
  padding: clamp(40px, 4.55vw, 68px) var(--panel-inset);
}
.play-card .app-screen { width: min(100%, 219px); justify-self: center; }
.play-card h2, .about .section-head h2 { font-size: var(--feature-heading); line-height: 1.25; letter-spacing: -.045em; }
.play-card p, .letter { font-size: var(--feature-body); line-height: 1.85; }
.play-name { display: inline-flex; align-items: center; gap: .19em; white-space: nowrap; }
.play-action { display: block; }
.title-icon { width: auto; height: 1em; }
#spinner .title-icon { height: .82em; }
#slider { --ink: var(--accent); }
#spinner, #stats { --ink: var(--blue); }
#eggs, #share { --ink: var(--gold); }
.feature-copy h2 {
  margin: 14px 0 19px;
  line-height: 1.25;
  letter-spacing: -.045em;
}
.feature-copy p { max-width: 26em; }
/* The open sticker row separates the two pairs of panels. */
.play-gallery { padding-block: clamp(50px, 5.5vw, 78px); }
.sticker-feature {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 6fr);
  padding-inline: var(--panel-inset);
  align-items: center;
  gap: clamp(20px, 3vw, 44px);
}
.sticker-feature .feature-copy { grid-area: 1 / 1; text-align: left; }
.sticker-feature .feature-copy h2 { font-size: clamp(26px, 3vw, 39px); }
.sticker-feature .feature-copy p { max-width: 29em; text-wrap: balance; }
.collection-phone { display: none; }
.sticker-spread {
  grid-area: 1 / 2;
  position: relative;
  width: 100%;
  max-width: 690px;
  justify-self: end;
  aspect-ratio: 2.65;
  list-style: none;
  margin: 0;
  padding: 0;
}
.sticker-spread li {
  position: absolute;
  top: var(--y);
  left: var(--x);
  width: min(var(--size), 102px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%) rotate(var(--tilt));
}
.sticker-spread img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 8px 9px #0006);
}
.sticker-title-start, .sticker-title-end { white-space: nowrap; }
.title-sticker {
  position: relative;
  display: inline-block;
  width: 1.21em;
  height: auto;
  margin-inline: -.07em -.22em;
  vertical-align: -.12em;
}
.about { padding-top: 0; margin-block-start: clamp(42px, 5.4vw, 80px); }
.about-panel {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 6fr);
  align-items: start;
  gap: clamp(20px, 3vw, 44px);
  padding: var(--panel-inset);
}
.about .section-head p { max-width: 22em; line-height: 1.85; }
.letter-window {
  position: relative;
  /* Align the visible rail while moving the reading column with it. */
  left: calc(var(--panel-inset) + 8px);
}
.letter-scroll {
  position: absolute;
  top: 0;
  right: 0;
  appearance: none;
  -webkit-appearance: none;
  writing-mode: vertical-lr;
  direction: ltr;
  width: 20px;
  height: 100%;
  margin: 0;
  cursor: pointer;
  touch-action: none;
  background: transparent;
}
.letter-scroll::-webkit-slider-runnable-track {
  height: 100%; width: 4px; border-radius: 4px; background: #3c3c3c;
}
.letter-scroll::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 4px; height: var(--thumb-height); border-radius: 4px; background: #999;
}
.letter-scroll::-moz-range-track { width: 4px; height: 100%; border-radius: 4px; background: #3c3c3c; }
.letter-scroll::-moz-range-thumb { width: 4px; height: var(--thumb-height); border: 0; border-radius: 4px; background: #999; }
.letter-scroll:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.letter-window.has-scroll .letter { scrollbar-width: none; }
.letter-window.has-scroll .letter::-webkit-scrollbar { display: none; }
.about .section-head h2 { margin: 12px 0 24px; }
.letter {
  height: clamp(250px, 35svh, 320px);
  overflow-y: auto;
  padding-right: 26px;
  color: var(--soft);
  --letter-fade: 0px;
  --letter-mask: linear-gradient(to bottom, #000 calc(100% - var(--letter-fade)), transparent 100%);
  -webkit-mask-image: var(--letter-mask);
  mask-image: var(--letter-mask);
  scrollbar-color: #747474 transparent;
  scrollbar-width: thin;
}
.letter:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.letter .letter-greeting, .letter h3 { color: var(--paper); font-weight: 700; font-size: var(--letter-heading); }
.letter .letter-greeting { margin-top: 0; }
.letter h3 { margin: 25px 0 0; }
.letter p { max-width: 58em; margin-top: 12px; }
.letter h3 + p { margin-top: 5px; }
.letter p.closing { margin-top: 24px; }
.letter > span { display: block; margin-top: 16px; }
footer{border-top:1px solid var(--line)}.foot{min-height:92px;justify-content:flex-end}.foot a{font-size:13px;color:#d0d0d0;letter-spacing:.05em}.foot a:hover{color:var(--accent)}
.foot .footer-legal { margin-inline-end: auto; padding-block: 16px; }
dialog{color:var(--paper);width:min(790px,calc(100% - 32px));max-height:90dvh;border:1px solid #575757;background:var(--bg);border-radius:12px;padding:0;box-shadow:0 22px 80px #0008}dialog::backdrop{background:#090909c9;backdrop-filter:blur(6px)}.detail-inner{position:relative;display:grid;grid-template-columns:44% 1fr}.close{position:absolute;z-index:3;top:12px;right:12px;width:36px;height:36px;border-radius:50%;border:1px solid #7777;background:#232323;color:#ddd;font-size:26px;line-height:1}.detail-copy{padding:58px 34px 38px}.detail-copy .kicker{color:var(--ink)}.detail-copy h2{font-size:32px;margin:7px 0 18px}.detail-copy h3{font-size:16px;margin-bottom:7px}.detail-copy ul{display:flex;flex-wrap:wrap;gap:6px;list-style:none;padding:0;margin:18px 0 0}.detail-copy li{border:1px solid #575757;padding:4px 8px;font-size:11px;border-radius:40px}.demo-stage{min-height:350px}.demo-stage small{position:absolute;bottom:16px;color:#e2e2e2;font-size:11px}.demo-still{width:72%;max-height:230px;object-fit:contain}

@media (max-width: 850px) {
  .play-gallery { grid-template-columns: 1fr; }
  :root { --feature-heading: clamp(24px, 3.7vw, 35px); --panel-inset: clamp(28px, 5vw, 48px); }
  .play-card { grid-template-columns: minmax(0, 1fr) minmax(0, 45%); padding: clamp(39px, 6vw, 54px) var(--panel-inset); }
  .wrap { width: 90%; }
  .section { padding-block: 54px; }
  .about { padding-top: 0; }
}
@media (max-width: 700px) {
  .hero-grid { grid-template-columns: 1fr; padding-top: 46px; }
  .hero-copy { padding-bottom: 0; }
  .hero-copy h1 { font-size: clamp(35px, 8.85vw, 54px); margin: 18px 0 17px; }
  .cta { margin-top: 24px; }
  .hero-device { width: min(100%, 425px); aspect-ratio: 965 / 1230; }
}
@media (max-width: 600px) {
  .bar { min-height: 64px; }
  header .brand { width: 110px; }
  :root { --panel-inset: clamp(18px, 5.5vw, 30px); --panel-gap: clamp(20px, 6.25vw, 32px); --feature-heading: clamp(22px, 5.4vw, 29px); --feature-body: 12.5px; --letter-heading: clamp(13px, 3.6vw, 15px); }
  .section { padding-block: 41px; }
  .about { padding-top: 0; }
  .section-head h2 { margin: 8px 0; font-size: 28px; }
  .sticker-feature { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 14px; padding-right: 0; }
  .sticker-feature .kicker { gap: 6px; font-size: clamp(9px, 2.6vw, 11px); letter-spacing: .1em; }
  .sticker-feature .feature-copy h2 { font-size: clamp(20px, 5vw, 26px); }
  .sticker-feature .feature-copy p { line-height: 1.65; }
  .sticker-feature .sticker-title-start, .sticker-feature .sticker-title-end { display: inline-block; }
  .sticker-spread {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    place-items: center;
    gap: 15px 10px;
    max-width: 210px;
    padding-block: 8px;
    aspect-ratio: auto;
  }
  .sticker-spread li {
    position: static;
    width: clamp(34px, 11vw, 56px);
    transform: rotate(var(--tilt));
  }
  .sticker-spread li:nth-child(even) { transform: translateY(38%) rotate(var(--tilt)); }
  .about-panel { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .about .section-head p { max-width: 100%; line-height: 1.7; }
  .index { left: 10px; top: 9px; }
  .play-card { grid-template-columns: minmax(0, 1fr) minmax(0, 40%); gap: 16px; padding: clamp(32px, 8.2vw, 44px) var(--panel-inset); }
  .play-card h2 { margin: 11px 0 14px; }
  .play-card p, .letter { line-height: 1.78; }
  .about .section-head h2 { margin: 9px 0 20px; }
  .detail-inner { grid-template-columns: 1fr; }
  .demo-stage { min-height: 235px; }
  .demo-still { width: 146px; max-height: 155px; }
  .detail-copy { padding: 24px; }
  .detail-copy h2 { font-size: 26px; margin: 5px 0 15px; }
  .foot { min-height: 72px; }
}
/* Phone touch layouts, including landscape. */
@media (pointer: coarse) and (max-width: 600px),
       (pointer: coarse) and (max-width: 960px) and (max-height: 500px) {
  :root { --feature-body: 12.5px; --letter-heading: 13px; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
  .sticker-feature {
    background: var(--panel);
    border-radius: var(--panel-radius);
    grid-template-columns: minmax(0, 1fr) minmax(0, 40%);
    gap: 16px;
    padding: clamp(32px, 8.2vw, 44px) var(--panel-inset);
  }
  #gameplay { padding-bottom: var(--panel-gap); }
  .screen-pair { padding-top: var(--panel-gap); }
  .sticker-feature .feature-copy h2 { position: relative; font-size: var(--feature-heading); margin: 11px 0 14px; }
  .sticker-feature :is(.sticker-title-start, .sticker-title-end) { display: block; }
  .sticker-feature .title-sticker { position: absolute; top: .12em; left: 3.95em; margin: 0; }
  .sticker-feature .feature-copy p { line-height: 1.78; text-wrap: wrap; }
  .sticker-spread { display: none; }
  .collection-phone { display: block; width: min(100%, 219px); justify-self: center; }
  .about-panel { grid-template-columns: minmax(0, 1fr); row-gap: clamp(48px, 12vw, 64px); }
  .letter-window { left: auto; margin-right: calc(0px - var(--panel-inset) - 8px); }
  .letter { --soft: #898989; --paper: #a2a2a2; }
  :is(#top, .hero, .close, a[href="#top"]) { -webkit-tap-highlight-color: transparent; }
  :root:not(.phone-keyboard) :is(#top, #top a, .hero a, .pack-window, .close, a[href="#top"]):focus { outline: none; }
  .hero-device { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
  .pack-window.ready {
    inset: 0;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    touch-action: pan-x pan-y pinch-zoom;
    overscroll-behavior-x: contain;
    --pack-width: min(76.8cqw, 326px, 61.65cqh);
    --pack-stride: calc(max(58.08cqw, var(--pack-width) * .89 + 4px) + clamp(3px, 7.68cqw - 19px, 16px));
    mask: linear-gradient(#000 0 0) center 36% / 96% 90% no-repeat;
  }
  .pack-window.ready .pack-track {
    width: max-content;
    height: 97.2%;
    margin: 0;
    padding-inline: calc((100cqw - var(--pack-stride)) / 2);
    box-sizing: content-box;
  }
  .pack-window.ready .pack-slot { scroll-snap-align: center; scroll-snap-stop: always; }
  .pack-hint { pointer-events: none; }
}
@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

.language-link {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  min-width: 44px;
  min-height: 44px;
  margin-inline-start: auto;
  padding-inline: 6px;
  color: var(--soft);
  font-size: 13px;
  white-space: nowrap;
}

.language-link:hover { color: var(--accent); }
.language-link:focus-visible { outline-offset: -2px; }
.language-link span { font: 15px/1 var(--font-en); }

:root[lang="en"],
:root[lang="en"] .demo-stage small,
.language-link[lang="en"],
:root[lang="zh-CN"] p span[lang="en"] { font-family: var(--font-en); }
:root[lang="en"] .language-link[lang="zh-CN"] { font-family: EDC, "PingFang SC", sans-serif; }
:root[lang="en"] .play-name,
:root[lang="en"] :is(.sticker-title-start, .sticker-title-end) { white-space: normal; }

/* Align the visible left edges of the headings while keeping their line widths. */
:is(.hero-copy h1, .shop-name, .feature-copy h2, .about .section-head h2,
    .letter-greeting, .letter h3, .detail-copy h2, .detail-copy h3) {
  position: relative;
  inset-inline-start: var(--title-inset, -.025em);
}

.hero-copy h1 { --title-inset: -.014em; }
.shop-name { --title-inset: -.098em; }
.letter-greeting { --title-inset: -.08em; }
:root[lang="zh-CN"] #heading-coin { --title-inset: -.065em; }

:root[lang="en"] :is(.feature-copy h2, .detail-copy h2, .detail-copy h3) { --title-inset: -.04em; }
:root[lang="en"] .hero-copy h1 { --title-inset: -.018em; }
:root[lang="en"] .shop-name { --title-inset: -.073em; }
:root[lang="en"] :is(#eggs .feature-copy h2, #heading-spinner, #heading-block, #info-spinner h3) { --title-inset: -.09em; }
:root[lang="en"] #heading-coin { --title-inset: -.052em; }
:root[lang="en"] :is(.about .section-head h2, .letter h3) { --title-inset: 0; }

:root[lang="en"] #spinner .play-action {
  position: relative;
  inset-inline-start: -.05em;
}

#stats .title-second-line {
  position: relative;
  inset-inline-start: .045em;
}

@media (max-width: 600px) {
  .language-link { padding-inline-end: 0; }
  :root[lang="en"] .sticker-feature .title-sticker {
    position: static;
    margin-inline-end: .16em;
  }
}
