:root {
  --blue: #2494ee;
  --blue-deep: #0a46a0;
  --navy: #0b2a55;
  --yellow: #ffd038;
  --ink: #12233d;
  --muted: #55657d;
  --bg: #f5f8fc;
  --card: #ffffff;
  --radius: 18px;
  font-family: system-ui, -apple-system, "Segoe UI", "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
}
* { box-sizing: border-box; }
body { margin: 0; }
img { max-width: 100%; height: auto; }
a { color: var(--blue-deep); }
.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }

/* hero */
.hero {
  color: #fff;
  background: radial-gradient(1200px 500px at 80% -10%, rgba(255, 208, 56, .22), transparent 60%),
              linear-gradient(160deg, var(--blue) 0%, var(--blue-deep) 70%, var(--navy) 100%);
  padding-bottom: 88px;
}
.nav { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; }
.brand { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; font-weight: 800; font-size: 1.35rem; letter-spacing: .02em; }
.nav-links { display: flex; gap: 22px; }
.nav-links a { color: rgba(255, 255, 255, .9); text-decoration: none; font-weight: 600; }
.nav-links a:hover { color: var(--yellow); }
.hero-body { text-align: center; padding-top: 40px; }
.hero-icon { filter: drop-shadow(0 18px 30px rgba(0, 20, 60, .35)); }
.hero h1 { font-size: clamp(2rem, 5.2vw, 3.5rem); line-height: 1.2; margin: 22px 0 14px; font-weight: 900; }
.lead { max-width: 680px; margin: 0 auto; font-size: 1.12rem; color: rgba(255, 255, 255, .9); }

.cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 28px; }
.hero .cta { justify-content: center; }
.btn { display: inline-block; padding: 12px 22px; border-radius: 999px; font-weight: 700; text-decoration: none; transition: transform .15s, box-shadow .15s; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--yellow); color: #3a2a00; box-shadow: 0 6px 18px rgba(255, 208, 56, .35); }
.btn-ghost { color: inherit; border: 2px solid currentColor; }
.hero .btn-ghost { color: #fff; }
.product .btn-ghost { color: var(--blue-deep); }
.soon { font-size: .9rem; color: var(--muted); background: #e8eef7; padding: 4px 12px; border-radius: 999px; }

.hero-shot { display: block; max-width: 920px; margin: 44px auto 0; }
.hero-shot img { display: block; width: 100%; border-radius: 16px; box-shadow: 0 30px 60px rgba(0, 20, 60, .45); border: 4px solid rgba(255, 255, 255, .85); }

/* why */
.why { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; margin-top: -56px; position: relative; }
.point { background: var(--card); border-radius: var(--radius); padding: 22px 24px; box-shadow: 0 10px 30px rgba(10, 40, 90, .10); }
.point h3 { margin: 0 0 6px; font-size: 1.1rem; }
.point h3::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 3px; background: var(--yellow); margin-inline-end: 10px; vertical-align: middle; }
.point p { margin: 0; color: var(--muted); }

/* products */
.product { display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: center; padding: 84px 0; }
.product-alt { display: block; background: linear-gradient(180deg, #eaf2fd, #f5f8fc); }
.product-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.tag { margin: 0; font-weight: 700; color: var(--blue); letter-spacing: .04em; }
.product h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); margin: 6px 0 12px; }
.product p { color: var(--muted); }
.checks { list-style: none; padding: 0; margin: 18px 0 0; }
.checks li { padding-inline-start: 28px; position: relative; margin: 6px 0; }
.checks li::before { content: ""; position: absolute; inset-inline-start: 0; top: .45em; width: 16px; height: 16px; border-radius: 50%;
  background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat; }
.shot { margin: 0; justify-self: center; }
.shot-popup img { border-radius: 14px; box-shadow: 0 24px 50px rgba(10, 40, 90, .25); }
.phones { display: flex; gap: 14px; justify-content: center; }
.phones img { width: 31%; max-width: 220px; border-radius: 22px; border: 6px solid #0f1b2e; box-shadow: 0 20px 40px rgba(10, 40, 90, .25); background: #0f1b2e; }
.phones img:nth-child(2) { transform: translateY(-24px); }

.note { padding: 56px 0 72px; color: var(--muted); }
.note h2 { color: var(--ink); font-size: 1.3rem; }

/* gameplay */
.play { padding: 80px 0 20px; }
.play h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); margin: 6px 0 10px; }
.section-lead { color: var(--muted); max-width: 780px; margin: 0 0 26px; }
.video { border-radius: 18px; overflow: hidden; background: #000; box-shadow: 0 24px 50px rgba(10, 40, 90, .25); }
.video video { display: block; width: 100%; height: auto; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 22px; }
.gallery a { position: relative; display: block; border-radius: 14px; overflow: hidden; box-shadow: 0 8px 22px rgba(10, 40, 90, .14); }
.gallery img { display: block; width: 100%; transition: transform .25s; }
.gallery a:hover img { transform: scale(1.04); }
.gallery span { position: absolute; inset-inline-start: 10px; bottom: 10px; background: rgba(11, 42, 85, .85); color: #fff; font-size: .85rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.credit { color: var(--muted); font-size: .85rem; margin-top: 14px; }
.product-text { order: 1; }
.phones { order: 2; }
.android-shot { grid-column: 1 / -1; order: 3; }
.android-shot img { width: 100%; border-radius: 16px; border: 8px solid #0f1b2e; box-shadow: 0 20px 40px rgba(10, 40, 90, .25); background: #0f1b2e; }
.android-shot p { margin: 8px 0 0; text-align: center; color: var(--muted); font-size: .9rem; }
.lightbox { position: fixed; inset: 0; z-index: 20; background: rgba(5, 15, 30, .9); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: min(1200px, 100%); max-height: 82vh; border-radius: 12px; }
.lightbox p { color: #fff; margin: 12px 0 0; }
.lightbox button { position: absolute; top: 14px; inset-inline-end: 18px; background: none; border: 0; color: #fff; font-size: 2.4rem; cursor: pointer; line-height: 1; }

/* footer */
.footer { background: var(--navy); color: rgba(255, 255, 255, .85); padding: 28px 0 72px; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
.footer a { color: #fff; text-decoration: none; }
.footer a:hover { color: var(--yellow); }
.brand-small { font-size: 1.05rem; }
.copy { margin: 0; font-size: .9rem; opacity: .7; }

/* visitor counter */
.visits { position: fixed; inset-inline-end: 16px; bottom: 16px; z-index: 10; display: flex; align-items: center; gap: 8px;
  background: rgba(11, 42, 85, .92); color: #fff; font-size: .9rem; padding: 8px 14px; border-radius: 999px;
  box-shadow: 0 8px 24px rgba(0, 20, 60, .3); backdrop-filter: blur(6px); }
.visits strong { color: var(--yellow); font-variant-numeric: tabular-nums; }
.visits .dot { width: 8px; height: 8px; border-radius: 50%; background: #3ddc84; }
.visits[hidden] { display: none; }

/* privacy page */
.page-head { background: linear-gradient(160deg, var(--blue) 0%, var(--blue-deep) 100%); color: #fff; padding-bottom: 36px; }
.page-head h1 { margin: 18px 0 0; font-size: clamp(1.7rem, 4vw, 2.4rem); }
.page-head p { margin: 4px 0 0; opacity: .85; }
.doc { background: var(--card); border-radius: var(--radius); box-shadow: 0 10px 30px rgba(10, 40, 90, .08); padding: 8px 36px 28px; margin: -20px auto 64px; max-width: 820px; position: relative; }
.doc h2 { font-size: 1.2rem; margin-top: 1.8em; }
.doc li { margin: .35em 0; }

@media (max-width: 860px) {
  .product, .product-inner { grid-template-columns: 1fr; }
  .product { padding: 64px 0; }
  .nav-links { gap: 14px; font-size: .95rem; }
  .doc { padding: 4px 20px 20px; }
}

@media (max-width: 700px) { .gallery { grid-template-columns: repeat(2, 1fr); } }

/* demo page: one stage + game picker */
.page-head-slim { padding-bottom: 0; background: var(--navy); }
.nav-links a[aria-current="page"] { color: var(--yellow); }
.arcade { color: #e8eefa; padding: 8px 0 56px;
  background: radial-gradient(900px 420px at 85% 0%, rgba(36, 148, 238, .28), transparent 65%),
              linear-gradient(180deg, var(--navy) 0%, #071c3a 100%); }
.arcade a { color: var(--yellow); }
.arcade-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 18px; padding: 14px 0 22px; }
.arcade-title h1 { margin: 0; font-size: clamp(1.6rem, 3.6vw, 2.2rem); color: #fff; }
.arcade-title p { margin: 0; color: rgba(232, 238, 250, .75); }
.arcade-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }

.theater { background: #0d2348; border: 1px solid rgba(255, 255, 255, .08); border-radius: var(--radius); padding: 12px; box-shadow: 0 24px 60px rgba(0, 8, 25, .45); }
.stage { position: relative; aspect-ratio: 16 / 9; width: 100%; border-radius: 12px; overflow: hidden; display: flex; align-items: center; justify-content: center;
  background: #10264a var(--cover, none) center / cover no-repeat; }
.stage::before { content: ""; position: absolute; inset: 0; background: rgba(5, 15, 35, .5); backdrop-filter: blur(3px); transition: background .2s; }
.stage:hover::before { background: rgba(5, 15, 35, .35); }
.stage .play { position: relative; display: inline-flex; align-items: center; gap: 12px; font: inherit; font-size: 1.25rem; font-weight: 800; padding: 14px 32px 14px 16px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--yellow); color: #3a2a00; box-shadow: 0 10px 28px rgba(0, 0, 0, .45); transition: transform .15s; }
.stage .play:hover { transform: scale(1.05); }
.play-icon { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: #3a2a00; color: var(--yellow); font-size: 1rem; padding-left: 3px; }
.stage.loading .play { opacity: .7; cursor: progress; }
.stage.loading .play-icon { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.stage.started { background: #000; }
.stage.started::before { display: none; }
.stage:fullscreen { border-radius: 0; aspect-ratio: auto; }
.stage-error { position: relative; color: #fff; }
.stage-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 6px 2px; }
.now-playing { display: flex; align-items: baseline; gap: 10px; }
.np-label { font-size: .78rem; font-weight: 700; letter-spacing: .06em; color: rgba(232, 238, 250, .55); }
.now-playing strong { font-size: 1.1rem; color: #fff; }
.stage-tools { display: flex; gap: 8px; }
.tool { font: inherit; font-size: .9rem; font-weight: 700; color: #e8eefa; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); border-radius: 999px; padding: 6px 14px; cursor: pointer; }
.tool:hover:not(:disabled) { background: rgba(255, 255, 255, .16); }
.tool:disabled { opacity: .4; cursor: default; }

.side-title { margin: 0 0 10px; font-size: .85rem; letter-spacing: .08em; color: rgba(232, 238, 250, .6); }
.picker { display: grid; gap: 10px; }
.pick { display: grid; grid-template-columns: 112px 1fr; gap: 12px; align-items: center; width: 100%; padding: 8px; text-align: start; font: inherit; color: inherit; cursor: pointer;
  background: rgba(255, 255, 255, .05); border: 2px solid transparent; border-radius: 14px; transition: background .15s, border-color .15s; }
.pick:hover { background: rgba(255, 255, 255, .1); }
.pick[aria-selected="true"] { background: rgba(255, 208, 56, .1); border-color: var(--yellow); }
.pick img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; }
.pick-text { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.pick-text strong { color: #fff; font-size: 1rem; }
.badge { display: inline-block; font-size: .74rem; font-weight: 800; padding: 2px 9px; border-radius: 999px; background: #d7e9fc; color: var(--blue-deep); }
.badge-online { background: #ffe58a; color: #5a4000; }
.info { margin-top: 16px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .08); border-radius: 14px; padding: 14px 16px 16px; }
.info[hidden] { display: none; }
.info h3 { margin: 0 0 4px; font-size: 1rem; color: #fff; }
.info p { margin: 0; font-size: .93rem; color: rgba(232, 238, 250, .85); }
.facts { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 0; padding: 0; }
.facts li { font-size: .76rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: rgba(255, 255, 255, .1); color: rgba(232, 238, 250, .85); }
.steps { counter-reset: step; list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
.steps li { counter-increment: step; position: relative; padding-inline-start: 34px; font-size: .9rem; line-height: 1.55; }
.steps li::before { content: counter(step); position: absolute; inset-inline-start: 0; top: 0; width: 24px; height: 24px; border-radius: 50%; background: var(--yellow); color: #3a2a00; font-weight: 800; font-size: .8rem; display: flex; align-items: center; justify-content: center; }
.info .hint { margin-top: 12px; font-size: .82rem; color: rgba(232, 238, 250, .6); }

.demo-more { padding: 40px 0 28px; }
.demo-more-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; background: var(--card); border-radius: var(--radius); padding: 22px 28px; box-shadow: 0 10px 30px rgba(10, 40, 90, .08); }
.demo-more h2 { margin: 0; font-size: 1.25rem; }
.demo-more-inner p { margin: 2px 0 0; color: var(--muted); }
.demo-more .cta { margin-top: 0; }
.demo-more .btn-ghost { color: var(--blue-deep); }

@media (max-width: 900px) {
  .arcade-grid { grid-template-columns: 1fr; }
  .picker { grid-template-columns: 1fr 1fr; }
  .pick { grid-template-columns: 1fr; }
  .side { display: contents; }
  .side-title { display: none; }
  .picker { order: 1; }
  .theater { order: 2; }
  .info { order: 3; margin-top: 0; }
  .arcade-grid { gap: 16px; }
}
@media (max-width: 520px) {
  .theater { padding: 6px; border-radius: 14px; }
  .stage .play { font-size: 1.05rem; padding: 10px 22px 10px 12px; }
  .play-icon { width: 32px; height: 32px; }
  .pick-text strong { font-size: .92rem; }
  .demo-more-inner { padding: 18px; }
}

.videos { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.videos .video { margin: 0; }
.videos figcaption { background: var(--card); color: var(--muted); font-size: .9rem; padding: 8px 14px; }
.tested { display: grid; grid-template-columns: 220px 1fr; gap: 20px; align-items: center; margin-top: 28px; background: var(--card); border-radius: 16px; padding: 16px 20px; box-shadow: 0 8px 22px rgba(10, 40, 90, .08); }
.tested-thumb img { display: block; width: 100%; border-radius: 10px; }
.tested h3 { margin: 0 0 4px; font-size: 1.05rem; }
.tested p { margin: 0 0 4px; color: var(--muted); font-size: .92rem; }
@media (max-width: 760px) { .videos, .tested { grid-template-columns: 1fr; } }


.nav-links a { white-space: nowrap; }
@media (max-width: 520px) {
  .nav { flex-wrap: wrap; gap: 8px; }
  .nav-links { gap: 12px; font-size: .88rem; flex-wrap: wrap; }
}

/* languages: CJK glyph shapes per language, scripts the default stack may lack */
:root:lang(zh-CN) { font-family: system-ui, -apple-system, "Segoe UI", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif; }
:root:lang(ja) { font-family: system-ui, -apple-system, "Segoe UI", "Noto Sans JP", "Hiragino Sans", "Yu Gothic UI", "Meiryo", sans-serif; }
:root:lang(ko) { font-family: system-ui, -apple-system, "Segoe UI", "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif; }
:root:lang(th) { font-family: system-ui, -apple-system, "Segoe UI", "Noto Sans Thai", "Leelawadee UI", "Thonburi", sans-serif; }
:root:lang(ar) { font-family: system-ui, -apple-system, "Segoe UI", "Noto Sans Arabic", "Geeza Pro", "Tahoma", sans-serif; }
:root:lang(he) { font-family: system-ui, -apple-system, "Segoe UI", "Noto Sans Hebrew", "Arial Hebrew", "Arial", sans-serif; }

/* nav: long translations wrap instead of overflowing */
.nav { gap: 16px; }
.nav-links { flex-wrap: wrap; justify-content: flex-end; align-items: center; row-gap: 6px; }

/* language menu */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.lang { position: relative; }
.lang summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 6px; color: rgba(255, 255, 255, .9); font-weight: 600;
  padding: 2px 10px; border: 1px solid rgba(255, 255, 255, .35); border-radius: 999px; white-space: nowrap; }
.lang summary::-webkit-details-marker { display: none; }
.lang summary::after { content: "▾"; font-size: .8em; }
.lang summary:hover, .lang[open] summary { color: var(--yellow); border-color: var(--yellow); }
.lang ul { position: absolute; inset-inline-end: 0; top: calc(100% + 8px); z-index: 30; margin: 0; padding: 6px; list-style: none;
  width: max-content; max-width: min(92vw, 520px); max-height: min(70vh, 520px); overflow: auto;
  display: grid; grid-template-columns: repeat(2, minmax(150px, 1fr)); gap: 2px;
  background: #fff; border-radius: 12px; box-shadow: 0 16px 40px rgba(5, 20, 50, .35); }
.lang li a { display: block; padding: 6px 12px; border-radius: 8px; color: var(--ink); text-decoration: none; font-weight: 500; white-space: nowrap; }
.lang li a:hover, .lang li a:focus-visible { background: #e8f2fd; color: var(--blue-deep); }
.lang li a[aria-current="true"] { background: var(--blue); color: #fff; font-weight: 700; }
@media (max-width: 520px) {
  .lang ul { position: fixed; inset-inline: 12px; top: 64px; width: auto; max-width: none; grid-template-columns: repeat(2, 1fr); }
  .lang li a { white-space: normal; }
}

/* privacy policies */
.policy-switch { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px !important; opacity: 1 !important; }
.policy-switch a { color: #fff; text-decoration: none; font-weight: 600; font-size: .92rem; padding: 4px 14px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .4); }
.policy-switch a[aria-current="page"] { background: #fff; color: var(--blue-deep); border-color: #fff; }
.policy-note { font-size: .9rem; color: var(--muted); background: #f1f6fd; border-radius: 10px; padding: 10px 14px; }
