:root {
  color-scheme: dark;
  --background: #080a0d;
  --text: #f4f5f5;
  --muted: #a3a6aa;
  --quiet: #6d7177;
  --line: #30343a;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-synthesis: none;
}
* { box-sizing: border-box; }
html { background: var(--background); }
body { min-width: 320px; margin: 0; color: var(--text); background: var(--background); }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
svg { display: block; }
:focus-visible { outline: 2px solid var(--text); outline-offset: 5px; }
.skip-link { position: fixed; z-index: 20; top: 12px; left: 12px; padding: 10px 14px; background: var(--text); color: var(--background); transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
.page-shell { width: min(1418px, calc(100% - 10.5vw)); min-height: 100svh; margin: auto; display: flex; flex-direction: column; }
.site-header { min-height: 116px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { width: max-content; display: inline-flex; align-items: center; gap: 18px; font-size: 25px; font-weight: 580; letter-spacing: -.03em; line-height: 1; }
.brand-mark { width: 34px; height: 34px; color: var(--text); }
.site-footer a:hover { color: #fff; }
main { flex: 1; }
.hero { position: relative; min-height: 501px; display: flex; align-items: center; overflow: hidden; isolation: isolate; }
.hero-copy { position: relative; z-index: 1; max-width: 780px; padding: 14px 0 42px; }
.hero h1 { margin: 0; font-size: clamp(54px, 6vw, 87px); font-weight: 650; line-height: 1.18; letter-spacing: -.065em; }
.account-actions { display: inline-flex; align-items: center; flex: none; gap: 10px; }
.account-button { min-width: 88px; min-height: 44px; padding: 8px 19px; border: 1px solid #e6e8eb; border-radius: 999px; font-size: 15px; font-weight: 600; transition: background-color .18s ease; }
.account-button:focus-visible { position: relative; z-index: 1; outline: 2px solid #fff; outline-offset: -3px; }
.login-button { background: transparent; color: var(--text); }
.login-button:hover { background: rgba(255,255,255,.12); }
.register-button { background: var(--text); color: var(--background); }
.register-button:hover { background: #d6d8da; }
.register-button:focus-visible { outline-color: var(--background); }
.close-icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.hero-globe { position: absolute; z-index: 0; right: -7%; bottom: -7%; width: min(70%, 960px); height: auto; pointer-events: none; user-select: none; }
.hero-globe img { display: block; width: 100%; height: auto; transition: opacity .7s ease; }
.hero-globe canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .7s ease; }
.globe-orbit { position: absolute; inset: 0; display: block; width: 100%; height: 100%; overflow: visible; }
.currency-node circle { fill: #080a0d; stroke: #b8c5d5; stroke-width: 1.6; }
.currency-node text { fill: #cad5e1; font-family: system-ui, sans-serif; font-size: 20px; font-weight: 500; text-anchor: middle; dominant-baseline: central; }
.hero-globe.is-animated img { opacity: 0; }
.hero-globe.is-animated canvas { opacity: 1; }
.benefits { padding: 50px 0 42px; border-top: 1px solid var(--line); }
.benefits h2 { margin: 0 0 40px; font-size: clamp(22px, 2.4vw, 31px); font-weight: 550; line-height: 1.3; letter-spacing: -.025em; }
.benefits-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(22px, 4vw, 60px); }
.benefit { min-width: 0; }
.benefit-icon { width: 32px; height: 32px; margin-bottom: 20px; color: #d4d6d8; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.benefit h3 { margin: 0 0 12px; font-size: clamp(19px, 1.8vw, 24px); font-weight: 550; line-height: 1.35; }
.benefit p { max-width: 29ch; margin: 0; color: var(--muted); font-size: 15px; line-height: 1.75; }
.site-footer { min-height: 120px; display: flex; align-items: center; justify-content: space-between; gap: 18px; color: var(--muted); font-size: 12px; }
.footer-links { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 12px 22px; }
.site-footer a { color: #c3c6ca; text-decoration: underline; text-underline-offset: 4px; }
.region-dialog { width: min(440px, calc(100% - 40px)); max-height: calc(100dvh - 40px); padding: 0; border: 1px solid #4b5056; border-radius: 18px; background: #121519; color: var(--text); box-shadow: 0 30px 90px rgba(0,0,0,.48); }
.region-dialog::backdrop { background: rgba(0,0,0,.72); }
.dialog-inner { position: relative; padding: 38px; }
.region-dialog[data-landmark] .dialog-inner {
  background-image: linear-gradient(90deg, #121519 0%, rgba(18,21,25,.97) 38%, rgba(18,21,25,.8) 64%, rgba(18,21,25,.58) 100%), var(--landmark-art);
  background-position: center, right bottom;
  background-size: 100% 100%, 95% auto;
  background-repeat: no-repeat;
}
.region-dialog[data-landmark="great-wall"] .dialog-inner { --landmark-art: url('/great-wall-depth.svg'); }
.region-dialog[data-landmark="nagoya"] .dialog-inner { --landmark-art: url('/nagoya-castle-depth.svg'); }
.region-dialog[data-landmark="victoria-harbour"] .dialog-inner { --landmark-art: url('/victoria-harbour-depth.svg'); }
.region-dialog[data-landmark="grand-lisboa"] .dialog-inner { --landmark-art: url('/grand-lisboa-depth.svg'); }
.region-dialog[data-landmark="taipei-101"] .dialog-inner { --landmark-art: url('/taipei-101-depth.svg'); }
.region-dialog[data-landmark="myeongdong"] .dialog-inner { --landmark-art: url('/myeongdong-depth.svg'); }
.region-dialog[data-landmark="marina-bay"] .dialog-inner { --landmark-art: url('/marina-bay-depth.svg'); }
.region-dialog[data-landmark="london-bridge"] .dialog-inner { --landmark-art: url('/london-bridge-depth.svg'); }
.region-dialog[data-landmark="times-square"] .dialog-inner { --landmark-art: url('/times-square-depth.svg'); }
.dialog-close { position: absolute; top: 22px; right: 22px; width: 32px; height: 32px; display: grid; place-items: center; padding: 0; border: 0; background: transparent; color: var(--muted); }
.dialog-close:hover { color: var(--text); }
.region-dialog h2 { margin: 0 30px 15px 0; font-size: 28px; font-weight: 600; line-height: 1.3; }
.region-dialog p { margin: 0; color: #c3c6ca; font-size: 16px; line-height: 1.7; }
.region-picker[hidden], .region-unavailable[hidden], .region-list li[hidden], .region-empty[hidden] { display: none; }
.region-search { min-height: 46px; margin-top: 20px; padding: 0 14px; display: flex; align-items: center; gap: 10px; border: 1px solid #4b5056; border-radius: 10px; color: var(--muted); }
.region-search:focus-within { border-color: #b8c5d5; }
.search-icon { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.region-search input { width: 100%; min-width: 0; padding: 11px 0; border: 0; outline: 0; background: transparent; color: var(--text); font: inherit; font-size: 15px; }
.region-search input::placeholder { color: var(--muted); }
.region-list { max-height: 340px; max-height: min(340px, calc(100dvh - 310px)); margin: 14px 0 0; padding: 0; overflow-y: auto; overscroll-behavior: contain; list-style: none; }
.province-list { max-height: 300px; max-height: min(300px, calc(100dvh - 355px)); }
.region-list li { margin: 2px 0; }
.region-option { width: 100%; min-height: 48px; padding: 7px 8px; display: flex; align-items: center; gap: 12px; border: 0; border-radius: 10px; background: transparent; color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.province-list .region-option { padding-inline: 12px; }
.region-option:hover, .region-option:focus-visible { background: #222831; }
.region-option:focus-visible { outline-offset: -2px; }
.region-flag { width: 28px; height: 28px; flex: none; display: block; border: 1px solid rgba(255,255,255,.18); border-radius: 50%; background: #20252c; object-fit: cover; }
.region-name { min-width: 0; flex: 1; font-size: 15px; line-height: 1.35; }
.region-code { color: var(--quiet); font-size: 12px; letter-spacing: .04em; }
.region-dialog .region-empty { padding: 22px 0 4px; color: var(--muted); text-align: center; font-size: 14px; }
.selected-region { margin: 8px 0 18px; display: flex; align-items: center; gap: 12px; font-size: 18px; font-weight: 600; }
.selected-region .region-flag { width: 36px; height: 36px; }
.notice-clause { display: inline-block; white-space: nowrap; }
.region-actions { margin-top: 34px; display: flex; align-items: center; flex-wrap: wrap; gap: 12px 22px; }
.dialog-back { min-height: 45px; padding: 8px 0; border: 0; background: transparent; color: var(--muted); font: inherit; font-size: 15px; cursor: pointer; }
.province-back { display: block; margin-top: 12px; }
.dialog-back:hover { color: var(--text); }
.dialog-confirm { min-width: 118px; min-height: 45px; padding: 8px 20px; border: 1px solid var(--text); border-radius: 10px; background: var(--text); color: var(--background); font-size: 15px; }
.dialog-confirm:hover { background: #d6d8da; }
@media (max-width: 960px) {
  .page-shell { width: calc(100% - 72px); }
  .hero { min-height: 515px; }
  .hero-globe { right: -19%; bottom: 0; width: 86%; opacity: .72; }
  .benefits-grid { gap: 24px; }
}
@media (max-width: 680px) {
  .page-shell { width: calc(100% - 40px); }
  .site-header { min-height: 86px; }
  .brand { gap: 12px; font-size: 21px; }
  .brand-mark { width: 30px; height: 30px; }
  .hero { min-height: 505px; align-items: flex-start; padding-top: 65px; }
  .hero-copy { padding: 0 0 54px; }
  .hero h1 { font-size: clamp(42px, 10.5vw, 62px); line-height: 1.22; }
  .account-button { min-width: 76px; min-height: 42px; padding: 8px 14px; font-size: 14px; }
  .hero-globe { right: -58%; bottom: -6%; width: 145%; opacity: .38; }
  .benefits { padding-top: 38px; padding-bottom: 38px; }
  .benefits h2 { margin-bottom: 28px; font-size: 22px; }
  .benefits-grid { grid-template-columns: 1fr; gap: 28px; }
  .benefit-icon { margin-bottom: 12px; }
  .benefit h3 { margin-bottom: 6px; font-size: 19px; }
  .site-footer { min-height: 88px; font-size: 11px; }
  .footer-links { gap: 8px 16px; }
  .dialog-inner { padding: 34px 26px 28px; }
  #region-description { font-size: 15px; }
}
@media (min-width: 521px) and (max-width: 760px) {
  .hero-globe { right: -26%; bottom: -7%; width: 105%; opacity: .38; }
}
@media (max-width: 520px) {
  .hero-globe { right: -30%; }
  .site-footer { flex-direction: column; justify-content: center; gap: 8px; text-align: center; }
  .footer-links { justify-content: center; }
}
@media (max-width: 360px) {
  .region-dialog[data-landmark] .dialog-inner { background-size: 100% 100%, 100% auto; }
}
@media (prefers-reduced-motion: reduce) {
  .account-button { transition: none; }
  .hero-globe img, .hero-globe canvas { transition: none; }
  .hero-globe.is-animated img { opacity: 1; }
  .hero-globe.is-animated canvas { opacity: 0; }
}
