:root {
  color-scheme: light;
  --paper: #f4f5fa;
  --white: #fff;
  --ink: #171c2c;
  --muted: #515a72;
  --line: #e1e4ee;
  --accent: #4e4dcc;
  --accent-soft: #eeedff;
  --accent-border: #a5a2ec;
  --radius: 12px;
  --shadow: 0 2px 5px rgb(25 31 58 / .045);
  --sans: "Instrument Sans", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.65 var(--sans); }
img { max-width: 100%; display: block; }
figure, h1, h2, h3, p { margin: 0; }
h1, h2 { line-height: 1.18; }
h3 { font-size: 1.15rem; line-height: 1.4; }
button { font: inherit; cursor: pointer; }
a { color: inherit; text-underline-offset: .2em; }
a:hover { color: var(--accent); }
a:focus-visible, summary:focus-visible, button:focus-visible { outline: 3px solid #5551d3; outline-offset: 3px; }
[hidden] { display: none !important; }
.wrap { width: min(1320px, calc(100% - 40px)); margin-inline: auto; }
.section { padding-block: 54px; }
section[id], aside[id], #pre-registration, #app-downloads, #cash-deposit, #cash-fees { scroll-margin-top: 78px; }
.skip { position: fixed; z-index: 10; inset: .75rem auto auto .75rem; transform: translateY(-180%); padding: .7rem 1rem; background: white; }
.skip:focus { transform: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.site-header { position: sticky; top: 0; z-index: 3; border-bottom: 1px solid var(--line); background: rgb(244 245 250 / .95); backdrop-filter: blur(14px); }
.header-inner { min-height: 61px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 22px; }
.brand { display: inline-flex; justify-self: start; gap: 9px; align-items: center; font-size: .97rem; font-weight: 760; line-height: 1.25; text-decoration: none; white-space: nowrap; }
.brand small { display: block; color: var(--muted); font-size: .66rem; font-weight: 550; }
.brand-mark { width: 30px; height: 30px; flex: none; border-radius: 5px; }
.header-inner nav { display: flex; align-items: center; gap: clamp(17px, 3vw, 41px); }
.header-inner nav a, .header-link { font-size: .9rem; font-weight: 700; text-decoration: none; white-space: nowrap; }
.header-link { justify-self: end; padding: .39rem .7rem; border: 1px solid var(--line); border-radius: 8px; background: var(--white); }
.header-link span { margin-left: .23rem; }

.notice {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  margin-block: 11px 15px;
  min-height: 46px;
  padding: 8px 16px;
  border: 1px solid var(--accent-border);
  border-radius: var(--radius);
  background: var(--white);
  text-decoration: none;
  font-size: .88rem;
}
.notice > span:nth-child(2) { text-align: center; font-weight: 650; }
.notice-arrow { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); }

.hero-band { background: var(--paper); color: #132923; }
.hero.wrap { width: min(1200px, calc(100% - 96px)); }
.hero { display: grid; grid-template-columns: 1.11fr 1fr; align-items: center; gap: clamp(32px, 5vw, 88px); padding-block: 42px 38px; }
.hero .eyebrow { color: #9e4026; letter-spacing: .11em; display: flex; align-items: center; gap: 11px; }
.hero .eyebrow span { width: 21px; height: 2px; background: currentColor; }
.hero h1 { font-family: "Noto Serif SC", "Songti SC", "STSong", SimSun, serif; font-size: clamp(2.7rem, 5.35vw, 5.13rem); letter-spacing: -.055em; margin-block: 22px 24px; }
.hero em { color: #35614c; font-style: normal; }
.lede { max-width: 31rem; color: #50635a; font-size: clamp(1rem, 1.45vw, 1.16rem); }
.actions { display: flex; align-items: center; gap: 12px; margin-block: 26px 9px; flex-wrap: wrap; }
.button { min-height: 50px; display: inline-flex; align-items: center; justify-content: center; gap: 20px; padding: .63rem 1.13rem; border-radius: 8px; font-size: .9rem; font-weight: 720; text-decoration: none; border: 1px solid #17382f; }
.primary { background: #17382f; color: #fff; }
.primary:hover { color: #d8ebae; }
.secondary:hover { background: #e9eae0; }
.hero .updated { margin-top: 12px; color: #50635a; font-size: .77rem; }
.hero-photo { height: clamp(380px, 36vw, 520px); position: relative; overflow: hidden; border-radius: 16px; background: #32381f; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 60%; }
.hero-photo figcaption { display: flex; gap: 10px; align-items: center; position: absolute; inset: auto 15px 15px; border-radius: 8px; padding: .75rem .95rem; background: #fffdf8; font-size: .82rem; font-weight: 650; }
.caption-dot { width: 8px; height: 8px; border-radius: 50%; background: #558268; }
.hero-photo figcaption a { margin-left: auto; padding-inline: .3rem; text-decoration: none; }

.hero .register-note { color: #50635a; font-size: .88rem; }
.hero .register-note strong { color: #17382f; }
.hero-photo figcaption a:hover { color: #9e4026; }

.guide-features { padding-block: 38px 36px; background: linear-gradient(var(--paper), #fff 35%, #f9faff); border-bottom: 1px solid var(--line); }
.feature-heading { margin: 0 0 12px; text-align: center; }
.feature-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.feature-card { display: flex; flex-direction: column; align-items: center; padding: 6px 10px 15px; border-radius: var(--radius); text-align: center; text-decoration: none; }
.feature-card:hover { background: #f0f2ff; }
.feature-card strong { font-size: clamp(.93rem, 1.65vw, 1.25rem); }
.feature-card strong span { color: var(--accent); font-size: .75em; }
.feature-card small { color: var(--muted); font-size: .83rem; }
.feature-icon {
  display: block;
  width: min(100%, 168px);
  aspect-ratio: 1;
  background: url("assets/guide-3d-icons.png") no-repeat;
  background-size: 200% 200%;
  transition: transform 240ms ease;
}
.feature-lightning { background-position: 0 0; }
.feature-piggy { background-position: 100% 0; }
.feature-coins { background-position: 0 100%; }
.feature-shield { background-position: 100% 100%; }
.feature-card:is(:hover, :focus-visible) .feature-icon { transform: translateY(-6px) scale(1.04); }
.feature-card:nth-child(2) { --reveal-delay: 70ms; }
.feature-card:nth-child(3) { --reveal-delay: 140ms; }
.feature-card:nth-child(4) { --reveal-delay: 210ms; }
.reveal-in:not(:focus-within) { animation: guide-fade-up .56s cubic-bezier(.22, 1, .36, 1) var(--reveal-delay, 0ms) both; }
@keyframes guide-fade-up {
  from { opacity: .18; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.eyebrow { color: var(--accent); font-weight: 750; font-size: .78rem; letter-spacing: .035em; }

.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; margin-bottom: 34px; }
.section-head > p { max-width: 29rem; color: var(--muted); }
h2 { margin-top: 10px; font-size: clamp(1.75rem, 3.05vw, 2.55rem); letter-spacing: -.045em; }
.opening-grid { display: grid; grid-template-columns: .86fr 1.4fr; gap: 18px; align-items: start; }
.checklist { border-radius: 14px; background: #e9e9fe; border: 1px solid #d4d5fb; padding: 23px; }
.pre-register { margin-block: 8px 13px; color: var(--muted); font-size: .88rem; }
.pre-register a { color: var(--accent); font-weight: 700; }
.checks { padding: 0; list-style: none; margin-block: 13px 21px; }
.checks li { padding: .48rem 0 .48rem 1.6rem; position: relative; border-bottom: 1px solid #d4d5f0; }
.checks li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 800; }
.download-links, .text-links { display: flex; gap: .55rem 1.25rem; flex-wrap: wrap; }
.download-links a { padding: .45rem .68rem; border-radius: 6px; background: var(--white); font-size: .85rem; font-weight: 700; text-decoration: none; }
.timeline { list-style: none; counter-reset: step; margin: 0; padding: 8px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: white; box-shadow: var(--shadow); }
.timeline li:last-child { border-bottom: 0; }
.timeline li { counter-increment: step; display: grid; grid-template-columns: 35px 1fr; column-gap: 15px; padding-block: 12px 17px; border-bottom: 1px solid var(--line); }
.timeline li::before { content: counter(step, decimal-leading-zero); display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid #d9dbf7; border-radius: 50%; font-size: .78rem; font-weight: 750; }
.timeline p { color: var(--muted); font-size: .94rem; margin-top: 4px; }

.funding { background: #eeeffb; border-block: 1px solid #e1e3f4; }
.funding-grid { display: grid; grid-template-columns: 1.85fr 1fr; gap: 23px; align-items: start; }
.methods { border-radius: 14px; background: var(--white); border: 1px solid var(--line); overflow: clip; box-shadow: var(--shadow); }
summary { cursor: pointer; }
summary::-webkit-details-marker { display: none; }
summary::marker { content: ""; }
.methods details + details { border-top: 1px solid var(--line); }
.methods summary { display: grid; grid-template-columns: 42px 1fr auto 16px; align-items: center; gap: 9px; padding: 17px 20px; list-style: none; }
.methods summary::after, .faq summary::after { content: "+"; font-size: 1.2rem; font-weight: 400; line-height: 1; justify-self: end; }
details[open] > summary::after { content: "−"; }
.methods summary::after { grid-column: 4; }
.methods summary:hover, .methods details[open] summary { background: #f5f4ff; }
.methods summary strong, .methods summary small { display: block; }
.methods summary strong { font-size: 1.05rem; }
.methods summary small { color: var(--muted); font-size: .8rem; }
.method-no { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 7px; background: var(--accent-soft); color: var(--accent); font-size: .84rem; font-weight: 750; }
.tag { display: inline-flex; padding: .22rem .51rem; border-radius: 40px; white-space: nowrap; line-height: 1.3; font-size: .72rem; font-weight: 700; }
.preferred, .pass { background: #e1f5f0; color: #176258; }
.method-body { padding: 15px 25px 20px 71px; color: var(--muted); font-size: .92rem; }
.method-body p + p { margin-top: 9px; }
.method-body ol { margin: 0 0 10px; padding-left: 1.15rem; }
.method-body a { color: var(--accent); font-weight: 700; }
.method-body .text-links { margin-top: 10px; }
.atm-photo { overflow: hidden; border-radius: 14px; background: #252852; color: white; }
.atm-photo img { width: 100%; height: auto; max-height: 430px; aspect-ratio: 1 / 1.1; object-fit: cover; object-position: center 41%; }
.atm-photo figcaption { padding: 12px 16px; font-size: .8rem; }
.funding-note { margin-top: 22px; padding: 16px 19px; border: 1px solid var(--accent-border); border-radius: var(--radius); background: white; display: flex; align-items: baseline; flex-wrap: wrap; gap: 5px 13px; font-size: .91rem; }
.funding-note a { font-weight: 750; }

.location-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 19px; }
.location-filters button { border: 1px solid #bfc3e2; padding: .46rem .77rem; border-radius: 30px; background: transparent; color: var(--accent); font-weight: 700; font-size: .82rem; }
.location-filters button[aria-pressed="true"] { background: var(--accent); color: white; border-color: var(--accent); }
.locations-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 17px; }
.location { border: 1px solid var(--line); background: var(--white); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow); }
.location > img { width: 100%; height: 160px; object-fit: cover; object-position: center; background: #e9ebf7; }
.location > div { padding: 17px; display: flex; flex-direction: column; align-items: flex-start; flex: 1; }
.location-label { font-size: .77rem; color: var(--muted); display: flex; align-items: center; gap: 8px; min-height: 24px; }
.location h3 { margin-block: 4px 6px; }
.location p:not(.location-label) { color: var(--muted); font-size: .9rem; }
.map { margin-top: auto; padding-top: 12px; font-weight: 720; font-size: .83rem; }
.fineprint { color: var(--muted); margin-top: 16px; font-size: .82rem; }

.rewards { background: #ebeafd; border-block: 1px solid #dbd9f7; }
.reward-detail { color: var(--muted); }
.reward-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.reward-card { border: 1px solid #d8d8f3; border-radius: var(--radius); padding: 22px; background: var(--white); box-shadow: var(--shadow); }
.reward-card h3 { margin-bottom: 4px; }
.reward-card p { color: var(--muted); font-size: .88rem; }
.reward-card .reward-value { margin-block: 12px 4px; color: var(--accent); font-size: clamp(1.27rem, 2.3vw, 1.95rem); font-weight: 750; line-height: 1.25; }
.reward-extra { border-top: 1px solid var(--line); margin-top: 12px; padding-top: 10px; }
.reward-extra strong, .reward-heading > strong { color: var(--accent); }
.reward-wide { margin-top: 13px; }
.reward-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 6px 20px; flex-wrap: wrap; }
.reward-heading > strong { font-size: .88rem; }
.reward-options { display: grid; gap: 10px; list-style: none; margin: 15px 0 0; padding: 0; }
.reward-trades { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.reward-phones { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.reward-options li { background: #f3f2ff; border: 1px solid #e3e1fc; border-radius: 8px; padding: 12px 15px; }
.reward-options strong { display: block; color: var(--accent); font-size: clamp(1rem, 2vw, 1.35rem); overflow-wrap: anywhere; }
.reward-detail { margin-top: 18px; font-size: .87rem; }
.reward-detail a { display: inline-block; margin-top: 8px; color: var(--accent); }
.faq summary { display: grid; grid-template-columns: 1fr 18px; gap: 12px; align-items: center; list-style: none; padding-block: 13px; font-weight: 700; }

.faq { display: grid; grid-template-columns: .9fr 1.4fr; gap: 32px; }
.faq > div:last-child { padding-inline: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: white; box-shadow: var(--shadow); }
.faq details + details { border-top: 1px solid var(--line); }
.faq details p { color: var(--muted); padding-bottom: 14px; font-size: .92rem; }
footer { border-top: 1px solid var(--line); }
.footer-inner { padding-block: 25px; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
footer p { font-size: .82rem; color: var(--muted); }
.footer-links { display: flex; flex-wrap: wrap; gap: 7px 15px; font-size: .82rem; }

dialog { border: none; border-radius: 13px; padding: 0; width: min(700px, calc(100% - 26px)); max-height: min(90dvh, 950px); background: var(--white); color: var(--ink); }
dialog::backdrop { background: rgb(16 18 38 / .76); }
.dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 15px; }
.dialog-head button { border: 1px solid var(--line); background: var(--paper); color: var(--ink); border-radius: 50%; width: 34px; height: 34px; line-height: 1; font-size: 1.5rem; }
.dialog-body { max-height: min(calc(90dvh - 56px), 894px); overflow: auto; overscroll-behavior: contain; }
.dialog-body img { width: 100%; height: auto; }

#download-dialog .dialog-head { min-height: 58px; padding-inline: 20px; border-bottom: 1px solid var(--line); background: #f5f5ff; }
#download-title { margin: 0; font-size: 1.17rem; letter-spacing: 0; }
.download-body { padding: 16px 20px 20px; max-height: min(calc(90dvh - 58px), 892px); }
#download-intro { color: var(--muted); font-size: .88rem; margin-bottom: 13px; }
.download-grid { display: grid; grid-template-columns: minmax(0, 1fr) 172px; align-items: start; gap: 16px; }
.download-devices { display: grid; gap: 8px; }
.download-device { padding: 10px 12px; border-radius: 9px; border: 1px solid var(--line); }
.download-device h3 { margin-bottom: 3px; font-size: .99rem; }
.download-device p { color: var(--muted); font-size: .84rem; }
.download-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.download-actions a { padding: .33rem .52rem; border-radius: 6px; background: var(--accent-soft); color: var(--accent); font-size: .78rem; font-weight: 750; text-decoration: none; }
.download-actions a:hover, .download-qr a:hover { text-decoration: underline; }
.download-qr { display: grid; justify-items: center; gap: 5px; text-align: center; padding: 10px; border: 1px solid var(--line); border-radius: 9px; font-size: .8rem; }
.download-qr img { width: min(100%, 155px); }
.download-qr a { color: var(--accent); font-weight: 750; }

@media (max-width: 570px) {
  #download-dialog .dialog-head { padding-inline: 12px; }
  #download-title { font-size: 1rem; }
  .download-body { padding: 12px; }
  .download-grid { grid-template-columns: 1fr; gap: 10px; }
}

@media (max-width: 1000px) {
  .hero.wrap { width: calc(100% - 56px); }
  .hero { gap: 24px; }
}

@media (max-width: 760px) {
  .wrap { width: calc(100% - 28px); }
  .section { padding-block: 38px; }
  section[id], aside[id], #pre-registration, #app-downloads, #cash-deposit, #cash-fees { scroll-margin-top: 97px; }
  .header-inner { grid-template-columns: 1fr auto; gap: 4px 10px; padding-block: 7px 5px; }
  .header-inner nav { grid-column: span 2; grid-row: 2; justify-content: space-between; }
  .header-inner nav a { padding: .22rem .34rem; }
  .header-link { font-size: .8rem; }
  .notice { gap: 8px; padding-inline: 10px; font-size: .8rem; }
  .hero.wrap { width: calc(100% - 36px); }
  .hero { grid-template-columns: 1fr; padding-block: 30px 18px; gap: 18px; }
  .hero h1 { font-size: clamp(2rem, 8.9vw, 4.2rem); margin-block: 15px 16px; }
  .hero .actions { margin-block: 18px 9px; }
  .hero .button { gap: 8px; min-height: 43px; padding: .43rem .65rem; }
  .hero-photo { height: clamp(255px, 65vw, 380px); }
  .guide-features { padding-block: 26px 20px; }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; }
  .feature-icon { width: min(100%, 124px); }
  .section-head { display: block; margin-bottom: 23px; }
  .section-head > p { margin-top: 12px; }
  .opening-grid, .funding-grid, .faq { grid-template-columns: 1fr; }
  .checklist { padding: 19px; }
  .methods summary { padding: 13px 11px; grid-template-columns: 33px 1fr auto 12px; gap: 7px; }
  .methods summary strong { font-size: .97rem; }
  .method-no { width: 29px; height: 29px; }
  .method-body { padding-inline: 17px; }
  .atm-photo img { height: 260px; aspect-ratio: auto; }
  .locations-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .location > img { height: 112px; }
  .location > div { padding: 10px; }
  .location-label { gap: 4px; flex-wrap: wrap; }
  .reward-grid { grid-template-columns: 1fr; gap: 8px; }
  .reward-card { padding: 15px; }
  .reward-options { gap: 6px; }
  .reward-options li { padding: 9px; }
  .reward-options p { font-size: .8rem; }
  .footer-inner { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal-in:not(:focus-within) { animation: none; }
  .feature-icon { transition: none; }
  .feature-card:is(:hover, :focus-visible) .feature-icon { transform: none; }
}
