/*
 * STAR website - styles.
 *
 * Fluent 2 (the Windows 11 / Microsoft design language): Segoe UI Variable, neutral
 * layers with a hairline stroke, 4 px controls and 8 px cards, the Fluent shadow
 * ramp, an acrylic header, and the brand red as the one accent. Light and dark
 * follow the system until the visitor picks one (site.js sets data-theme).
 */

/* ---------------------------------------------------------------- tokens */
:root {
  --font: "Segoe UI Variable Text", "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue",
    Arial, "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC", "Noto Sans SC", sans-serif;
  --font-display: "Segoe UI Variable Display", "Segoe UI", -apple-system, BlinkMacSystemFont,
    "Helvetica Neue", Arial, "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC", "Noto Sans SC", sans-serif;

  /* brand (the orbit star) */
  --brand-1: #d9388a;
  --brand-2: #ff3d4e;
  --brand-3: #ff7a3d;
  --ring-1: #f0457f;
  --ring-2: #ff9448;
  --brand-gradient: linear-gradient(45deg, var(--brand-1) 0%, var(--brand-2) 55%, var(--brand-3) 100%);

  --radius-s: 4px;
  --radius-m: 8px;
  --radius-l: 12px;
  --radius-xl: 16px;

  --ease: cubic-bezier(0.33, 0, 0.67, 1);
  --ease-out: cubic-bezier(0.1, 0.9, 0.2, 1);
  --dur-fast: 150ms;
  --dur: 250ms;
  --dur-slow: 600ms;

  --page-max: 1240px;
  --gutter: 24px;
  --header-h: 56px;

  /* light */
  color-scheme: light;
  --bg: #fafafa;
  --bg-alt: #f3f3f3;
  --layer: #ffffff;
  --layer-2: #f9f9f9;
  --layer-hover: #f5f5f5;
  --control: #ffffff;
  --control-hover: #f5f5f5;
  --control-pressed: #ebebeb;
  --stroke: rgba(0, 0, 0, 0.08);
  --stroke-strong: rgba(0, 0, 0, 0.16);
  --stroke-control: rgba(0, 0, 0, 0.12);
  --text: #1b1b1b;
  --text-2: #616161;
  --text-3: #8a8a8a;
  --accent: #d81f2f;
  --accent-hover: #c21a2b;
  --accent-pressed: #a81624;
  --on-accent: #ffffff;
  --accent-text: #c2182a;
  --accent-soft: rgba(216, 31, 47, 0.08);
  --focus: #000000;
  --focus-inner: #ffffff;
  --header-bg: rgba(250, 250, 250, 0.72);
  --scrim: rgba(0, 0, 0, 0.4);
  --bloom-opacity: 0.5;
  --shadow-2: 0 0 2px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.14);
  --shadow-4: 0 0 2px rgba(0, 0, 0, 0.12), 0 2px 4px rgba(0, 0, 0, 0.14);
  --shadow-8: 0 0 2px rgba(0, 0, 0, 0.12), 0 4px 8px rgba(0, 0, 0, 0.14);
  --shadow-16: 0 0 2px rgba(0, 0, 0, 0.12), 0 8px 16px rgba(0, 0, 0, 0.14);
  --shadow-28: 0 0 8px rgba(0, 0, 0, 0.12), 0 14px 28px rgba(0, 0, 0, 0.14);
  --shadow-64: 0 0 8px rgba(0, 0, 0, 0.12), 0 32px 64px rgba(0, 0, 0, 0.14);
}

/* dark: the same values twice, for the system preference and for the visitor's pick */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #141414;
    --bg-alt: #1b1b1b;
    --layer: #232323;
    --layer-2: #1f1f1f;
    --layer-hover: #2b2b2b;
    --control: #2d2d2d;
    --control-hover: #333333;
    --control-pressed: #282828;
    --stroke: rgba(255, 255, 255, 0.08);
    --stroke-strong: rgba(255, 255, 255, 0.16);
    --stroke-control: rgba(255, 255, 255, 0.1);
    --text: #f5f5f5;
    --text-2: #adadad;
    --text-3: #8a8a8a;
    --accent: #d81f2f;
    --accent-hover: #e0243a;
    --accent-pressed: #b81b2a;
    --on-accent: #ffffff;
    --accent-text: #ff5c6b;
    --accent-soft: rgba(255, 61, 78, 0.12);
    --focus: #ffffff;
    --focus-inner: #000000;
    --header-bg: rgba(20, 20, 20, 0.72);
    --scrim: rgba(0, 0, 0, 0.6);
    --bloom-opacity: 0.55;
    --shadow-2: 0 0 2px rgba(0, 0, 0, 0.24), 0 1px 2px rgba(0, 0, 0, 0.28);
    --shadow-4: 0 0 2px rgba(0, 0, 0, 0.24), 0 2px 4px rgba(0, 0, 0, 0.28);
    --shadow-8: 0 0 2px rgba(0, 0, 0, 0.24), 0 4px 8px rgba(0, 0, 0, 0.28);
    --shadow-16: 0 0 2px rgba(0, 0, 0, 0.24), 0 8px 16px rgba(0, 0, 0, 0.28);
    --shadow-28: 0 0 8px rgba(0, 0, 0, 0.24), 0 14px 28px rgba(0, 0, 0, 0.28);
    --shadow-64: 0 0 8px rgba(0, 0, 0, 0.24), 0 32px 64px rgba(0, 0, 0, 0.28);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #141414;
  --bg-alt: #1b1b1b;
  --layer: #232323;
  --layer-2: #1f1f1f;
  --layer-hover: #2b2b2b;
  --control: #2d2d2d;
  --control-hover: #333333;
  --control-pressed: #282828;
  --stroke: rgba(255, 255, 255, 0.08);
  --stroke-strong: rgba(255, 255, 255, 0.16);
  --stroke-control: rgba(255, 255, 255, 0.1);
  --text: #f5f5f5;
  --text-2: #adadad;
  --text-3: #8a8a8a;
  --accent: #d81f2f;
  --accent-hover: #e0243a;
  --accent-pressed: #b81b2a;
  --on-accent: #ffffff;
  --accent-text: #ff5c6b;
  --accent-soft: rgba(255, 61, 78, 0.12);
  --focus: #ffffff;
  --focus-inner: #000000;
  --header-bg: rgba(20, 20, 20, 0.72);
  --scrim: rgba(0, 0, 0, 0.6);
  --bloom-opacity: 0.55;
  --shadow-2: 0 0 2px rgba(0, 0, 0, 0.24), 0 1px 2px rgba(0, 0, 0, 0.28);
  --shadow-4: 0 0 2px rgba(0, 0, 0, 0.24), 0 2px 4px rgba(0, 0, 0, 0.28);
  --shadow-8: 0 0 2px rgba(0, 0, 0, 0.24), 0 4px 8px rgba(0, 0, 0, 0.28);
  --shadow-16: 0 0 2px rgba(0, 0, 0, 0.24), 0 8px 16px rgba(0, 0, 0, 0.28);
  --shadow-28: 0 0 8px rgba(0, 0, 0, 0.24), 0 14px 28px rgba(0, 0, 0, 0.28);
  --shadow-64: 0 0 8px rgba(0, 0, 0, 0.24), 0 32px 64px rgba(0, 0, 0, 0.28);
}

/* ---------------------------------------------------------------- base */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

:lang(zh-TW) body,
html:lang(zh-TW) {
  --font: "Segoe UI Variable Text", "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue",
    Arial, "Microsoft JhengHei UI", "Microsoft JhengHei", "PingFang TC", "Noto Sans TC", sans-serif;
  --font-display: "Segoe UI Variable Display", "Segoe UI", -apple-system, BlinkMacSystemFont,
    "Helvetica Neue", Arial, "Microsoft JhengHei UI", "Microsoft JhengHei", "PingFang TC", "Noto Sans TC", sans-serif;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--accent-text);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

button {
  font: inherit;
  color: inherit;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
  box-shadow: 0 0 0 1px var(--focus-inner);
  border-radius: var(--radius-s);
}

[hidden] {
  display: none !important;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 100;
  padding: 8px 16px;
  border-radius: var(--radius-s);
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
  transition: top var(--dur-fast) var(--ease);
}

.skip-link:focus {
  top: 8px;
  text-decoration: none;
}

.container {
  width: 100%;
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------------------------------------------------------------- icons */
.icon {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-16 {
  width: 16px;
  height: 16px;
}

.icon-24 {
  width: 24px;
  height: 24px;
}

/* ---------------------------------------------------------------- buttons and links */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 20px;
  border-radius: var(--radius-s);
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
  transition: background-color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease),
    color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
  user-select: none;
}

.btn:hover {
  text-decoration: none;
}

.btn-small {
  min-height: 32px;
  padding: 0 12px;
  font-size: 14px;
}

.btn-primary {
  background: var(--accent);
  color: var(--on-accent);
}

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-primary:active {
  background: var(--accent-pressed);
}

.btn-secondary {
  background: var(--control);
  color: var(--text);
  border-color: var(--stroke-control);
  box-shadow: var(--shadow-2);
}

.btn-secondary:hover {
  background: var(--control-hover);
}

.btn-secondary:active {
  background: var(--control-pressed);
  box-shadow: none;
}

.btn-subtle {
  background: transparent;
  color: var(--text);
}

.btn-subtle:hover {
  background: var(--layer-hover);
}

.btn[aria-disabled="true"],
.btn:disabled {
  background: var(--bg-alt);
  color: var(--text-3);
  border-color: var(--stroke);
  box-shadow: none;
  cursor: not-allowed;
  pointer-events: none;
}

.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 36px;
  height: 36px;
  padding: 0 8px;
  border: 0;
  border-radius: var(--radius-s);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease);
}

.icon-button:hover {
  background: var(--layer-hover);
}

.icon-button:active {
  background: var(--control-pressed);
}

/* Microsoft's "Learn more >" link */
.link-chevron {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
  color: var(--accent-text);
}

.link-chevron .icon {
  width: 16px;
  height: 16px;
  transition: transform var(--dur-fast) var(--ease);
}

.link-chevron:hover .icon,
a:hover > .link-chevron .icon {
  transform: translateX(3px);
}

/* ---------------------------------------------------------------- badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}

.badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.badge-live {
  color: #0e7a0d;
  background: rgba(16, 124, 16, 0.12);
}

[data-theme="dark"] .badge-live {
  color: #54b054;
  background: rgba(84, 176, 84, 0.14);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .badge-live {
    color: #54b054;
    background: rgba(84, 176, 84, 0.14);
  }
}

.badge-soon {
  color: var(--text-2);
  background: var(--bg-alt);
  box-shadow: inset 0 0 0 1px var(--stroke);
}

.badge-glass {
  color: #ffffff;
  background: rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}

.badge-glass.is-live::before {
  background: #6ccb5f;
}

/* ---------------------------------------------------------------- brand */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
}

.brand:hover {
  text-decoration: none;
}

.brand-mark {
  width: 28px;
  height: 28px;
}

.brand-wordmark {
  height: 14px;
  width: auto;
  color: var(--text);
}

/* ---------------------------------------------------------------- header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: var(--header-bg);
  backdrop-filter: blur(30px) saturate(180%);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.site-header.is-scrolled {
  border-bottom-color: var(--stroke);
  box-shadow: var(--shadow-2);
}

.site-header .container {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 24px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-right: auto;
}

.site-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 12px;
  border-radius: var(--radius-s);
  color: var(--text);
  font-size: 14px;
  text-decoration: none;
  transition: background-color var(--dur-fast) var(--ease);
}

.site-nav a:hover {
  background: var(--layer-hover);
}

.site-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 2px;
  height: 3px;
  border-radius: 3px;
  background: var(--accent);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.header-actions .btn {
  margin-left: 8px;
}

.menu-button {
  display: none;
}

/* ---------------------------------------------------------------- language menu (Fluent menu) */
.lang-picker {
  position: relative;
}

.lang-trigger .lang-short {
  font-size: 13px;
  font-weight: 600;
}

.flyout {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 60;
  min-width: 180px;
  padding: 4px;
  margin: 0;
  list-style: none;
  border-radius: var(--radius-m);
  background: var(--layer);
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow-16);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity var(--dur-fast) var(--ease), transform var(--dur) var(--ease-out),
    visibility 0s linear var(--dur);
}

.flyout.is-open {
  opacity: 1;
  visibility: visible;
  transform: none;
  pointer-events: auto;
  transition: opacity var(--dur-fast) var(--ease), transform var(--dur) var(--ease-out), visibility 0s;
}

.flyout.flyout-up {
  top: auto;
  bottom: calc(100% + 6px);
  transform: translateY(6px);
}

.flyout.flyout-up.is-open {
  transform: none;
}

.flyout button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  height: 36px;
  padding: 0 12px;
  border: 0;
  border-radius: var(--radius-s);
  background: transparent;
  color: var(--text);
  font-size: 14px;
  text-align: left;
  cursor: pointer;
}

.flyout button:hover,
.flyout button:focus-visible {
  background: var(--layer-hover);
}

.flyout button .check {
  width: 16px;
  height: 16px;
  visibility: hidden;
  color: var(--accent-text);
}

.flyout button[aria-checked="true"] .check {
  visibility: visible;
}

/* ---------------------------------------------------------------- mobile drawer */
.drawer-scrim {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: var(--scrim);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur) var(--ease);
}

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 80;
  width: min(320px, 86vw);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: var(--layer);
  box-shadow: var(--shadow-64);
  transform: translateX(105%);
  transition: transform var(--dur) var(--ease-out);
}

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 44px;
  padding: 0 4px 8px;
  border-bottom: 1px solid var(--stroke);
  margin-bottom: 8px;
}

.drawer a {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 44px;
  padding: 0 12px;
  border-radius: var(--radius-s);
  color: var(--text);
  font-size: 15px;
  text-decoration: none;
}

.drawer a:hover {
  background: var(--layer-hover);
}

.drawer .btn {
  margin-top: 8px;
}

body.drawer-open .drawer-scrim {
  opacity: 1;
  pointer-events: auto;
}

body.drawer-open .drawer {
  transform: none;
}

body.drawer-open {
  overflow: hidden;
}

/* ---------------------------------------------------------------- hero */
.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: 72px 0 88px;
}

.bloom {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: var(--bloom-opacity);
  /* fades out before the section ends, so the next one starts without an edge */
  -webkit-mask-image: linear-gradient(to bottom, #000 62%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 62%, transparent 100%);
}

.bloom span {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  will-change: transform;
}

.bloom .b1 {
  width: 560px;
  height: 560px;
  right: 2%;
  top: -12%;
  background: radial-gradient(circle at 30% 30%, var(--brand-2), transparent 68%);
  animation: drift-a 18s var(--ease) infinite alternate;
}

.bloom .b2 {
  width: 520px;
  height: 520px;
  right: 22%;
  top: 30%;
  background: radial-gradient(circle at 50% 50%, var(--brand-1), transparent 66%);
  animation: drift-b 22s var(--ease) infinite alternate;
}

.bloom .b3 {
  width: 440px;
  height: 440px;
  right: -6%;
  top: 40%;
  background: radial-gradient(circle at 50% 50%, var(--brand-3), transparent 66%);
  animation: drift-c 20s var(--ease) infinite alternate;
}

.bloom .b4 {
  width: 700px;
  height: 380px;
  left: -14%;
  bottom: -30%;
  background: radial-gradient(circle at 50% 50%, rgba(217, 56, 138, 0.55), transparent 70%);
  animation: drift-b 26s var(--ease) infinite alternate-reverse;
}

@keyframes drift-a {
  to {
    transform: translate(-60px, 40px) scale(1.08);
  }
}

@keyframes drift-b {
  to {
    transform: translate(50px, -30px) scale(0.94);
  }
}

@keyframes drift-c {
  to {
    transform: translate(-30px, -50px) scale(1.1);
  }
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: 48px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  padding: 6px 12px 6px 8px;
  border-radius: 999px;
  background: var(--layer);
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow-2);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
}

.eyebrow img {
  width: 18px;
  height: 18px;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(38px, 5.4vw, 64px);
  line-height: 1.08;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

/* each half of the title stays whole: a line never ends on one character */
.hero h1 > span {
  display: inline-block;
}

/* English needs the word space the Chinese titles do not */
html:lang(en) .hero h1 > span:first-child::after {
  content: " ";
  white-space: pre;
}

.hero h1 .accent {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero .lead {
  max-width: 560px;
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-2);
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin-top: 44px;
  padding-top: 24px;
  border-top: 1px solid var(--stroke);
  max-width: 560px;
}

.hero-stats dt {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.2;
}

.hero-stats dd {
  margin: 2px 0 0;
  font-size: 13px;
  color: var(--text-2);
}

/* the visual: a Fluent glass window holding the orbit star */
.hero-visual {
  position: relative;
  justify-self: center;
  width: min(100%, 460px);
  aspect-ratio: 1;
}

.glass {
  position: absolute;
  inset: 8%;
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.18));
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: var(--shadow-64);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
}

[data-theme="dark"] .glass {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.03));
  border-color: rgba(255, 255, 255, 0.12);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .glass {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.03));
    border-color: rgba(255, 255, 255, 0.12);
  }
}

.glass-bar {
  position: absolute;
  top: 14px;
  left: 16px;
  display: flex;
  gap: 6px;
}

.glass-bar i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--stroke-strong);
}

.hero-mark {
  position: absolute;
  inset: 20%;
  display: grid;
  place-items: center;
  animation: float 7s var(--ease) infinite alternate;
}

.hero-mark img {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 18px 36px rgba(255, 61, 78, 0.35));
}

.hero-mark::before {
  content: "";
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 61, 78, 0.32), transparent 70%);
  filter: blur(24px);
  z-index: -1;
  animation: glow 7s var(--ease) infinite alternate;
}

@keyframes float {
  to {
    transform: translateY(-14px);
  }
}

@keyframes glow {
  to {
    opacity: 0.6;
    transform: scale(1.1);
  }
}

.hero-chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--radius-m);
  background: var(--layer);
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow-16);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.hero-chip .chip-icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: var(--accent-soft);
  color: var(--accent-text);
}

.hero-chip small {
  display: block;
  font-weight: 400;
  font-size: 12px;
  color: var(--text-2);
}

.hero-chip.c1 {
  left: -4%;
  top: 22%;
  animation: float 8s var(--ease) infinite alternate-reverse;
}

.hero-chip.c2 {
  right: -6%;
  bottom: 18%;
  animation: float 9s var(--ease) 1s infinite alternate;
}

/* ---------------------------------------------------------------- sections */
.section {
  padding: 88px 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section-head {
  max-width: 720px;
  margin-bottom: 40px;
}

.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}

.section-head p {
  font-size: 17px;
  color: var(--text-2);
}

/* ---------------------------------------------------------------- cards */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-m);
  background: var(--layer);
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow-4);
  overflow: hidden;
  transition: box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

a.card {
  color: inherit;
  text-decoration: none;
}

a.card:hover {
  box-shadow: var(--shadow-28);
  transform: translateY(-2px);
}

a.card:active {
  box-shadow: var(--shadow-8);
  transform: none;
}

/* games */
.game-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.game-art {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #111;
}

.game-art svg {
  width: 100%;
  height: 100%;
  transition: transform var(--dur-slow) var(--ease-out);
}

a.card:hover .game-art svg {
  transform: scale(1.04);
}

.game-art .badge {
  position: absolute;
  left: 14px;
  top: 14px;
}

.game-art .game-name {
  position: absolute;
  left: 18px;
  bottom: 14px;
  right: 18px;
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #ffffff;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.45);
}

.game-card.is-soon .game-art svg {
  filter: grayscale(0.55) brightness(0.78);
}

.game-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  padding: 20px 20px 22px;
}

.game-body h3 {
  font-size: 20px;
  line-height: 1.3;
  font-weight: 600;
}

.game-body p {
  color: var(--text-2);
  font-size: 15px;
  flex: 1;
}

.game-body .meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 4px;
}

.game-body .meta small {
  color: var(--text-3);
  font-size: 13px;
}

.game-card.is-more {
  border-style: dashed;
  border-color: var(--stroke-strong);
  background: transparent;
  box-shadow: none;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 32px 24px;
  min-height: 100%;
}

.game-card.is-more .plus {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: var(--layer);
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow-4);
  color: var(--text-2);
}

.game-card.is-more h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 6px;
}

.game-card.is-more p {
  color: var(--text-2);
  font-size: 14px;
  max-width: 240px;
}

/* why */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.feature {
  padding: 24px;
  gap: 12px;
}

.icon-tile {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-m);
  background: var(--accent-soft);
  color: var(--accent-text);
  margin-bottom: 4px;
}

.icon-tile .icon {
  width: 22px;
  height: 22px;
}

.feature h3 {
  font-size: 18px;
  line-height: 1.35;
  font-weight: 600;
}

.feature p {
  font-size: 15px;
  color: var(--text-2);
}

/* steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  counter-reset: step;
  list-style: none;
  margin: 0;
  padding: 0;
}

.step {
  position: relative;
  padding: 28px 24px 24px;
  counter-increment: step;
}

.step::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: var(--brand-gradient);
  color: #ffffff;
  font-weight: 700;
  font-size: 15px;
  box-shadow: 0 6px 16px rgba(255, 61, 78, 0.3);
}

.step h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 6px;
}

.step p {
  color: var(--text-2);
  font-size: 15px;
}

/* faq: Fluent accordion */
.faq {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.faq details {
  border-radius: var(--radius-m);
  background: var(--layer);
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow-2);
  overflow: hidden;
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 60px;
  padding: 14px 20px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  transition: background-color var(--dur-fast) var(--ease);
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary:hover {
  background: var(--layer-hover);
}

.faq summary .icon {
  width: 16px;
  height: 16px;
  color: var(--text-2);
  transition: transform var(--dur) var(--ease);
}

.faq details[open] summary .icon {
  transform: rotate(180deg);
}

.faq .answer {
  padding: 0 20px 20px;
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.7;
}

/* closing band */
.cta-band {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-radius: var(--radius-xl);
  padding: 56px 48px;
  background: #141414;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  box-shadow: var(--shadow-28);
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: -40% -10% -40% 40%;
  z-index: -1;
  background: radial-gradient(closest-side, rgba(255, 61, 78, 0.55), transparent),
    radial-gradient(closest-side at 70% 70%, rgba(255, 122, 61, 0.45), transparent),
    radial-gradient(closest-side at 30% 60%, rgba(217, 56, 138, 0.45), transparent);
  filter: blur(40px);
}

.cta-band h2 {
  font-family: var(--font-display);
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 600;
  margin-bottom: 8px;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 17px;
}

.cta-band .btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  box-shadow: none;
}

.cta-band .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.14);
}

.cta-mark {
  width: 120px;
  height: 120px;
  flex: none;
  filter: drop-shadow(0 12px 28px rgba(255, 61, 78, 0.45));
}

/* ---------------------------------------------------------------- game page */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
  font-size: 14px;
  color: var(--text-2);
}

.breadcrumb li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.breadcrumb a {
  color: var(--text-2);
}

.breadcrumb a:hover {
  color: var(--text);
}

.breadcrumb .icon {
  width: 12px;
  height: 12px;
}

.game-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: 40px 0 64px;
}

.game-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 48px;
  align-items: center;
}

.game-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(40px, 5.6vw, 64px);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: 0.01em;
  margin: 14px 0 16px;
}

.game-hero .lead {
  font-size: 18px;
  color: var(--text-2);
  max-width: 520px;
  margin-bottom: 28px;
}

.game-hero .facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
  color: var(--text-2);
}

.game-hero .facts li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.game-hero .facts .icon {
  width: 16px;
  height: 16px;
  color: var(--accent-text);
}

.game-cover {
  position: relative;
  border-radius: var(--radius-l);
  overflow: hidden;
  aspect-ratio: 16 / 10;
  box-shadow: var(--shadow-64);
  border: 1px solid var(--stroke);
  background: #111;
}

.game-cover svg {
  width: 100%;
  height: 100%;
}

.game-cover .game-name {
  position: absolute;
  left: 28px;
  bottom: 22px;
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #ffffff;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.5);
}

/* Fluent pivot (tabs) */
.pivot {
  display: flex;
  gap: 4px;
  margin-bottom: 28px;
  padding-bottom: 2px;
  overflow-x: auto;
  scrollbar-width: none;
  border-bottom: 1px solid var(--stroke);
}

.pivot::-webkit-scrollbar {
  display: none;
}

.pivot button {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 14px;
  border: 0;
  border-radius: var(--radius-s) var(--radius-s) 0 0;
  background: transparent;
  color: var(--text-2);
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: color var(--dur-fast) var(--ease), background-color var(--dur-fast) var(--ease);
}

.pivot button:hover {
  color: var(--text);
  background: var(--layer-hover);
}

.pivot button[aria-selected="true"] {
  color: var(--text);
}

.pivot button[aria-selected="true"]::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: -3px;
  height: 3px;
  border-radius: 3px;
  background: var(--accent);
}

.pivot .icon {
  width: 18px;
  height: 18px;
}

.feature-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 32px;
  align-items: start;
  animation: panel-in var(--dur) var(--ease-out);
}

.feature-panel[hidden] {
  display: none;
}

@keyframes panel-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
}

.feature-panel .panel-intro h3 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  margin: 16px 0 10px;
}

.feature-panel .panel-intro p {
  color: var(--text-2);
  font-size: 17px;
}

.checklist {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--radius-m);
  background: var(--layer);
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow-2);
  font-size: 15px;
  line-height: 1.45;
}

.checklist .icon {
  width: 18px;
  height: 18px;
  margin-top: 1px;
  color: var(--accent-text);
}

.req-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.req {
  padding: 24px;
  gap: 10px;
}

.req h3 {
  font-size: 17px;
  font-weight: 600;
}

.req p {
  font-size: 15px;
  color: var(--text-2);
}

/* coming soon / not found */
.status-page {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  min-height: calc(100vh - var(--header-h) - 260px);
  display: flex;
  align-items: center;
  padding: 72px 0;
}

.status-card {
  max-width: 640px;
  margin: 0 auto;
  padding: 48px 40px;
  text-align: center;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow-28);
}

.status-card .status-mark {
  width: 88px;
  height: 88px;
  margin-bottom: 8px;
}

.status-card h1 {
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 600;
  line-height: 1.15;
}

.status-card p {
  color: var(--text-2);
  font-size: 17px;
  max-width: 460px;
}

.status-card .hero-actions {
  justify-content: center;
  margin-top: 12px;
}

/* ---------------------------------------------------------------- footer */
.site-footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--stroke);
  padding: 56px 0 28px;
  font-size: 14px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 32px;
}

.footer-brand p {
  margin-top: 14px;
  max-width: 280px;
  color: var(--text-2);
  font-size: 14px;
}

.site-footer h2 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 12px;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.site-footer ul a {
  color: var(--text-2);
}

.site-footer ul a:hover {
  color: var(--text);
}

.site-footer .muted {
  color: var(--text-3);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  margin-top: 44px;
  padding-top: 20px;
  border-top: 1px solid var(--stroke);
  color: var(--text-2);
  font-size: 13px;
}

.footer-bottom .lang-picker .icon-button {
  height: 32px;
  font-size: 13px;
  color: var(--text-2);
}

.footer-bottom .lang-picker .icon-button:hover {
  color: var(--text);
}

.footer-bottom .note {
  flex-basis: 100%;
  color: var(--text-3);
  font-size: 12px;
}

.footer-bottom .copy {
  margin-left: auto;
}

/* ---------------------------------------------------------------- shared bits for the new pages */
.icon-12 {
  width: 12px;
  height: 12px;
}

.header-download .icon {
  margin-left: -2px;
}

.site-nav a[aria-current="page"] {
  font-weight: 600;
}

.section-more {
  margin-top: 28px;
}

/* ---------------------------------------------------------------- download page (a Microsoft Store app page) */
.dl-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: 40px 0 72px;
}

.app-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 40px;
  align-items: center;
  margin-top: 8px;
}

.app-tile {
  display: grid;
  place-items: center;
  width: 200px;
  height: 200px;
  border-radius: 40px;
  background: #141414;
  box-shadow: var(--shadow-64), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
}

.app-tile::before {
  content: "";
  position: absolute;
  inset: -30%;
  background: radial-gradient(circle at 55% 45%, rgba(255, 61, 78, 0.35), transparent 60%);
}

.app-tile img {
  position: relative;
  width: 132px;
  height: 132px;
  filter: drop-shadow(0 10px 22px rgba(255, 61, 78, 0.4));
}

.app-info h1 {
  font-family: var(--font-display);
  font-size: clamp(34px, 4.6vw, 52px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0 0 12px;
}

.app-info .lead {
  font-size: 18px;
  color: var(--text-2);
  max-width: 560px;
  margin-bottom: 16px;
}

.app-info .facts,
.dl-hero .facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
  font-size: 14px;
  color: var(--text-2);
}

.app-info .facts li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.app-info .facts .icon {
  width: 16px;
  height: 16px;
  color: var(--accent-text);
}

.dl-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 24px;
  margin: 16px 0 0;
  font-size: 13px;
}

.dl-meta div {
  display: flex;
  gap: 6px;
}

.dl-meta dt {
  color: var(--text-3);
}

.dl-meta dd {
  margin: 0;
  color: var(--text);
  font-weight: 600;
}

.dl-sha {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0 0;
  font-size: 12px;
  color: var(--text-3);
}

.dl-sha code {
  word-break: break-all;
  color: var(--text-2);
}

.dl-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.dl-item {
  flex-direction: row;
  align-items: center;
  gap: 24px;
  padding: 16px;
}

.dl-thumb {
  flex: none;
  width: 200px;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-m);
  overflow: hidden;
  background: #111;
}

.dl-thumb svg {
  width: 100%;
  height: 100%;
}

.dl-item.is-soon .dl-thumb svg {
  filter: grayscale(0.55) brightness(0.78);
}

.dl-body {
  flex: 1;
  min-width: 0;
}

.dl-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.dl-title h3 {
  font-size: 20px;
  font-weight: 600;
}

.dl-title h3 a {
  color: var(--text);
}

.dl-body > p {
  color: var(--text-2);
  font-size: 14px;
}

.dl-action {
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
}

.dl-thumb-tool {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: radial-gradient(120% 100% at 15% 0%, rgba(255, 61, 78, 0.34), transparent 62%),
    linear-gradient(135deg, #26141a, #141414 72%);
}

.dl-thumb-tool .icon {
  width: 40px;
  height: 40px;
  color: #ff7a85;
}

.dl-thumb-tool span {
  font-family: "Cascadia Code", "Cascadia Mono", Consolas, monospace;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.78);
}

.section-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
}

/* ---------------------------------------------------------------- callouts (Microsoft Learn's Note / Tip / Important / Warning) */
.callout {
  --c: #0f6cbd;
  --c-bg: rgba(15, 108, 189, 0.07);
  margin: 20px 0;
  padding: 14px 18px;
  border-radius: var(--radius-m);
  border: 1px solid color-mix(in srgb, var(--c) 30%, transparent);
  border-left: 4px solid var(--c);
  background: var(--c-bg);
  font-size: 15px;
  line-height: 1.65;
}

.callout p {
  margin: 0;
}

.callout .callout-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
  font-weight: 600;
  color: var(--c);
}

.callout .callout-title .icon {
  width: 18px;
  height: 18px;
}

.callout-tip {
  --c: #107c10;
  --c-bg: rgba(16, 124, 16, 0.07);
}

.callout-important {
  --c: #8764b8;
  --c-bg: rgba(135, 100, 184, 0.08);
}

.callout-warning {
  --c: #b35c00;
  --c-bg: rgba(255, 185, 0, 0.1);
}

[data-theme="dark"] .callout {
  --c: #4fa3e8;
  --c-bg: rgba(79, 163, 232, 0.1);
}

[data-theme="dark"] .callout-tip {
  --c: #6ccb5f;
  --c-bg: rgba(108, 203, 95, 0.1);
}

[data-theme="dark"] .callout-important {
  --c: #b4a0ff;
  --c-bg: rgba(180, 160, 255, 0.1);
}

[data-theme="dark"] .callout-warning {
  --c: #fce100;
  --c-bg: rgba(252, 225, 0, 0.08);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .callout {
    --c: #4fa3e8;
    --c-bg: rgba(79, 163, 232, 0.1);
  }

  :root:not([data-theme="light"]) .callout-tip {
    --c: #6ccb5f;
    --c-bg: rgba(108, 203, 95, 0.1);
  }

  :root:not([data-theme="light"]) .callout-important {
    --c: #b4a0ff;
    --c-bg: rgba(180, 160, 255, 0.1);
  }

  :root:not([data-theme="light"]) .callout-warning {
    --c: #fce100;
    --c-bg: rgba(252, 225, 0, 0.08);
  }
}

/* ---------------------------------------------------------------- guide (Microsoft Learn's docs: articles, the article, its contents) */
.guide-main {
  padding: 28px 0 72px;
}

.guide-main.is-hub {
  padding-top: 0;
}

.guide-layout {
  display: grid;
  grid-template-columns: 252px minmax(0, 800px) 224px;
  justify-content: center;
  gap: 48px;
  align-items: start;
  max-width: 1480px;
}

/* the articles, left */
.guide-nav {
  position: sticky;
  top: calc(var(--header-h) + 20px);
  max-height: calc(100vh - var(--header-h) - 40px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 2px 4px 24px 2px;
  scrollbar-width: thin;
}

.guide-filter,
.guide-search {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 10px;
  border-radius: var(--radius-s);
  border: 1px solid var(--stroke-strong);
  border-bottom-color: var(--text-3);
  background: var(--layer);
  color: var(--text-2);
  transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}

.guide-filter:focus-within,
.guide-search:focus-within {
  border-bottom-color: var(--accent);
  box-shadow: inset 0 -1px 0 var(--accent);
}

.guide-filter input,
.guide-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 14px;
}

.guide-filter input::placeholder,
.guide-search input::placeholder {
  color: var(--text-3);
}

.guide-filter {
  margin: 0 0 12px;
}

.gnav,
.gnav ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

.gnav-title {
  margin: 16px 0 4px;
  padding-left: 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-3);
}

.gnav-group:first-child .gnav-title {
  margin-top: 4px;
}

.gnav a {
  position: relative;
  display: block;
  padding: 6px 12px;
  border-radius: var(--radius-s);
  font-size: 14px;
  line-height: 1.4;
  color: var(--text-2);
  text-decoration: none;
  transition: background-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}

.gnav a:hover {
  background: var(--layer-hover);
  color: var(--text);
}

.gnav a[aria-current="page"] {
  background: var(--layer-hover);
  color: var(--text);
  font-weight: 600;
}

.gnav a[aria-current="page"]::before,
.guide-toc a[aria-current="location"]::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 3px;
  border-radius: 3px;
  background: var(--accent);
}

.gnav-empty {
  margin: 12px;
  font-size: 13px;
  color: var(--text-3);
}

/* the article's own contents, right */
.guide-toc {
  position: sticky;
  top: calc(var(--header-h) + 20px);
  max-height: calc(100vh - var(--header-h) - 40px);
  overflow-y: auto;
  padding: 4px 0;
  scrollbar-width: thin;
}

.toc-title {
  margin: 0 0 8px;
  padding-left: 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.guide-toc ol,
.toc-inline ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

.guide-toc a {
  position: relative;
  display: block;
  padding: 5px 12px;
  border-radius: var(--radius-s);
  font-size: 13px;
  line-height: 1.45;
  color: var(--text-2);
  text-decoration: none;
  transition: background-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}

.guide-toc a:hover {
  background: var(--layer-hover);
  color: var(--text);
}

.guide-toc a[aria-current="location"] {
  color: var(--text);
  font-weight: 600;
}

/* the article */
.guide-article h1 {
  font-family: var(--font-display);
  font-size: clamp(30px, 3.6vw, 40px);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.01em;
  margin: 4px 0 10px;
}

.guide-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 13px;
  color: var(--text-2);
}

.guide-meta .icon {
  margin-right: -2px;
}

.guide-article > .lead {
  font-size: 18px;
  line-height: 1.65;
  color: var(--text-2);
  margin-bottom: 8px;
}

.toc-inline,
.gnav-mobile {
  display: none;
  margin: 16px 0 0;
  border-radius: var(--radius-m);
  background: var(--layer);
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow-2);
}

.gnav-mobile {
  margin: 0 0 16px;
}

.toc-inline summary,
.gnav-mobile summary {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 16px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.toc-inline summary span,
.gnav-mobile summary span {
  flex: 1;
}

.toc-inline summary::-webkit-details-marker,
.gnav-mobile summary::-webkit-details-marker {
  display: none;
}

.toc-inline[open] summary > .icon:last-child,
.gnav-mobile[open] summary > .icon:last-child {
  transform: rotate(180deg);
}

.toc-inline ol {
  padding: 0 8px 10px;
}

.toc-inline a {
  display: block;
  padding: 7px 8px;
  border-radius: var(--radius-s);
  color: var(--text-2);
  font-size: 15px;
  text-decoration: none;
}

.toc-inline a[aria-current="location"] {
  color: var(--text);
  font-weight: 600;
}

.gnav-mobile > .gnav {
  padding: 0 8px 12px;
}

.guide-section {
  padding-top: 28px;
  scroll-margin-top: calc(var(--header-h) + 8px);
}

.guide-section h2 {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
  line-height: 1.25;
  margin: 8px 0 14px;
  padding-top: 20px;
  border-top: 1px solid var(--stroke);
}

.guide-h3 {
  margin: 26px 0 8px;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.35;
  scroll-margin-top: calc(var(--header-h) + 16px);
}

.guide-section p,
.guide-section li {
  font-size: 16px;
  line-height: 1.75;
}

.guide-section p {
  margin: 0 0 12px;
}

.guide-list {
  margin: 8px 0 14px;
  padding-left: 22px;
}

.guide-list li {
  margin: 6px 0;
}

.guide-list li::marker {
  color: var(--accent-text);
}

.guide-steps {
  counter-reset: gstep;
  list-style: none;
  margin: 12px 0 16px;
  padding: 0;
}

.guide-steps > li {
  position: relative;
  counter-increment: gstep;
  padding: 0 0 16px 44px;
  min-height: 30px;
}

.guide-steps > li > p {
  margin: 0 0 6px;
}

.guide-steps > li::before {
  content: counter(gstep);
  position: absolute;
  left: 0;
  top: 1px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--brand-gradient);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
}

.guide-steps > li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 13.5px;
  top: 34px;
  bottom: 2px;
  width: 1px;
  background: var(--stroke-strong);
}

.guide-steps .code-block,
.guide-steps .callout {
  margin: 8px 0 4px;
}

.guide-article kbd {
  display: inline-block;
  min-width: 24px;
  padding: 1px 7px;
  margin: 0 2px;
  border-radius: var(--radius-s);
  border: 1px solid var(--stroke-strong);
  border-bottom-width: 2px;
  background: var(--layer);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.6;
  text-align: center;
  vertical-align: 1px;
}

.guide-article code {
  padding: 1px 6px;
  border-radius: var(--radius-s);
  background: var(--bg-alt);
  border: 1px solid var(--stroke);
  font-family: "Cascadia Code", "Cascadia Mono", Consolas, "Courier New", monospace;
  font-size: 0.88em;
  word-break: break-word;
}

.ui-path {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px;
  vertical-align: baseline;
}

.ui-path b {
  font-weight: 600;
}

.ui-path .icon {
  color: var(--text-3);
}

/* code with a copy button */
.code-block {
  margin: 12px 0 18px;
  border-radius: var(--radius-m);
  border: 1px solid var(--stroke);
  background: var(--bg-alt);
  overflow: hidden;
}

.code-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 36px;
  padding: 0 4px 0 14px;
  border-bottom: 1px solid var(--stroke);
  background: var(--layer);
  font-size: 12px;
  color: var(--text-2);
}

.code-copy {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 10px;
  border: 0;
  border-radius: var(--radius-s);
  background: transparent;
  color: var(--text-2);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}

.code-copy:hover {
  background: var(--layer-hover);
  color: var(--text);
}

.code-copy.is-done {
  color: var(--accent-text);
}

.code-block pre {
  margin: 0;
  padding: 14px 16px;
  overflow-x: auto;
  font-family: "Cascadia Code", "Cascadia Mono", Consolas, "Courier New", monospace;
  font-size: 13.5px;
  line-height: 1.65;
  tab-size: 4;
}

.guide-article .code-block code {
  padding: 0;
  border: 0;
  background: none;
  font-size: inherit;
  white-space: pre;
  word-break: normal;
}

/* tables */
.table-wrap {
  margin: 12px 0 18px;
  overflow-x: auto;
  border-radius: var(--radius-m);
  border: 1px solid var(--stroke);
  background: var(--layer);
}

.guide-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
  line-height: 1.6;
}

.guide-table th,
.guide-table td {
  padding: 10px 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--stroke);
}

.guide-table thead th {
  background: var(--bg-alt);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
  white-space: nowrap;
}

.guide-table tbody th {
  font-weight: 600;
  min-width: 128px;
}

.guide-table tbody tr:last-child > * {
  border-bottom: 0;
}

.guide-table.is-compact th,
.guide-table.is-compact td {
  padding: 7px 12px;
}

/* how the pieces hang together */
.flow {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 14px 0 20px;
}

.flow-row {
  display: flex;
  align-items: stretch;
}

.flow-node {
  flex: 1 1 0;
  min-width: 0;
  padding: 12px 14px;
  border-radius: var(--radius-m);
  background: var(--layer);
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow-2);
}

.flow-node.is-main {
  border: 1.5px solid transparent;
  background: linear-gradient(var(--layer), var(--layer)) padding-box, var(--brand-gradient) border-box;
}

.flow-node b {
  display: block;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
}

.flow-node span {
  display: block;
  margin-top: 2px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-2);
}

.flow-link {
  flex: 0 0 104px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 0 6px;
  text-align: center;
  font-size: 12px;
  line-height: 1.35;
  color: var(--text-2);
}

.flow-arrow {
  color: var(--accent-text);
}

/* related articles, previous / next */
.guide-related {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 12px 0 16px;
  padding: 0;
}

.guide-related li {
  margin: 0;
}

.guide-related a {
  display: flex;
  gap: 12px;
  height: 100%;
  padding: 14px 16px;
  border-radius: var(--radius-m);
  border: 1px solid var(--stroke);
  background: var(--layer);
  box-shadow: var(--shadow-2);
  color: var(--text);
  text-decoration: none;
  transition: box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.guide-related a:hover {
  box-shadow: var(--shadow-8);
  border-color: var(--stroke-strong);
}

.guide-related a > .icon {
  flex: none;
  margin-top: 3px;
  color: var(--accent-text);
}

.guide-related b {
  display: block;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.45;
}

.guide-related small {
  display: block;
  margin-top: 2px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-2);
}

.guide-pager {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 48px;
}

.guide-pager a {
  gap: 4px;
  padding: 16px 18px;
}

.guide-pager small {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-2);
}

.guide-pager b {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
}

.pager-next {
  grid-column: 2;
  align-items: flex-end;
  text-align: right;
}

.qa {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}

.qa-item {
  padding: 16px 20px;
  border-radius: var(--radius-m);
  background: var(--layer);
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow-2);
}

.qa-item h3 {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  margin: 0 0 4px;
}

.guide-section .qa-item p {
  margin: 0;
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.7;
}

/* icon | words, with the buttons under the words, however many there are */
.guide-more {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  column-gap: 20px;
  row-gap: 14px;
  margin-top: 16px;
  padding: 24px;
}

.guide-pager + .guide-more {
  margin-top: 16px;
}

.guide-more .icon-tile {
  flex: none;
  margin: 0;
}

.guide-more > div:not(.icon-tile):not(.guide-more-actions) {
  flex: 1;
}

.guide-more h2 {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 4px;
}

.guide-more p {
  margin: 0;
  color: var(--text-2);
  font-size: 15px;
}

.guide-more-actions {
  grid-column: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* the guide's landing page */
.guide-hub {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 28px 0 36px;
}

.hub-head h1 {
  font-family: var(--font-display);
  font-size: clamp(34px, 5vw, 52px);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 8px 0 12px;
}

.hub-head .lead {
  max-width: 700px;
  font-size: 18px;
  line-height: 1.65;
  color: var(--text-2);
  margin: 0 0 12px;
}

.hub-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
}

.guide-search {
  height: 40px;
  width: min(100%, 360px);
}

.hub-groups {
  padding-bottom: 16px;
}

.hub-group {
  margin-top: 32px;
}

.hub-group h2 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.3;
  margin: 0 0 4px;
}

.hub-group > p {
  margin: 0 0 14px;
  color: var(--text-2);
}

.hub-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.hub-card {
  flex-direction: row;
  gap: 14px;
  padding: 18px;
}

.hub-card .icon-tile {
  flex: none;
  margin: 0;
}

.hub-card h3 {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  margin: 0 0 4px;
}

.hub-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-2);
}

.hub-empty {
  margin: 32px 0 0;
  color: var(--text-2);
}

@media (max-width: 1240px) {
  .guide-layout {
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 40px;
  }

  .guide-toc {
    display: none;
  }

  .toc-inline {
    display: block;
  }
}

@media (max-width: 1000px) {
  .hub-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .guide-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .guide-nav {
    display: none;
  }

  .gnav-mobile {
    display: block;
  }
}

@media (max-width: 700px) {
  .flow-row {
    flex-direction: column;
  }

  .flow-link {
    flex: none;
    flex-direction: row;
    padding: 6px 0;
  }

  .flow-arrow {
    transform: rotate(90deg);
  }

  .guide-related,
  .hub-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .guide-pager {
    grid-template-columns: minmax(0, 1fr);
  }

  .pager-next {
    grid-column: 1;
  }
}

@media (max-width: 900px) {
  .app-head {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .app-tile {
    width: 132px;
    height: 132px;
    border-radius: 28px;
  }

  .app-tile img {
    width: 88px;
    height: 88px;
  }

  .dl-thumb {
    width: 160px;
  }
}

@media (max-width: 600px) {
  .dl-item {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }

  .dl-thumb {
    width: 100%;
  }

  .dl-action .btn {
    width: 100%;
  }

  .guide-more {
    flex-direction: column;
    align-items: flex-start;
  }

  .guide-section h2 {
    font-size: 22px;
  }
}

/* ---------------------------------------------------------------- game page: 功能一览's cards (a bento of the menu itself) */
.section-head .eyebrow {
  margin-bottom: 16px;
}

.bento {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 20px;
}

.bento-card {
  grid-column: span 6;
  min-height: 500px;
  isolation: isolate;
}

.bento-arch,
.bento-aim {
  grid-column: span 7;
}

.bento-visuals,
.bento-radar {
  grid-column: span 5;
}

.bento-text {
  position: relative;
  z-index: 3;
  max-width: 560px;
  padding: 28px 30px 0;
}

.bento-text h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.3;
}

.bento-text p {
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-2);
}

.bento-visual {
  position: relative;
  flex: 1;
  min-height: 300px;
  margin-top: 22px;
}

/* the card's foot fades into the card, so a picture that runs on does not end in a hard line */
.bento-visual::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  height: 72px;
  pointer-events: none;
  background: linear-gradient(to bottom, transparent, var(--layer));
}

.bento-arch .bento-visual::after {
  display: none;
}

/* Fluent's reveal highlight: a soft light that follows the pointer */
.bento-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(560px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 61, 78, 0.1), transparent 45%);
  opacity: 0;
  transition: opacity var(--dur-slow) var(--ease);
}

.bento-card:hover::before {
  opacity: 1;
}

/* pictures of the menu: one per theme, cut to the part worth seeing */
.shot {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

/* the picture's frame carries its size and place; margins in % are of the card's width */
.shot-frame {
  position: absolute;
  left: 0;
  top: 0;
  width: var(--shot-w, 160%);
  aspect-ratio: 1800 / 1125;
  margin-left: var(--shot-x, 6%);
  margin-top: var(--shot-y, 0%);
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid var(--stroke-strong);
  box-shadow: var(--shadow-28);
  transform-origin: 0 0;
  transition: transform 900ms var(--ease-out);
}

.shot-img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  max-width: none;
  height: 100%;
}

.bento-card:hover .shot-frame {
  transform: translate(-1.2%, -1.6%) scale(1.012);
}

/* 人物视觉's preview: a beam runs down the figure, as the overlay reads it */
.shot-scan {
  display: none;
}

.shot-visuals .shot-scan {
  position: absolute;
  left: 80.6%;
  top: 37%;
  width: 15.6%;
  height: 44.6%;
  display: block;
  overflow: hidden;
  pointer-events: none;
}

.shot-visuals .shot-scan::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 26%;
  background: linear-gradient(to bottom, rgba(0, 255, 120, 0), rgba(0, 255, 120, 0.16) 70%, rgba(170, 255, 200, 0.85) 98%, rgba(0, 255, 120, 0));
  transform: translateY(-110%);
  animation: shot-scan 3.6s var(--ease) infinite;
}

@keyframes shot-scan {
  0% {
    transform: translateY(-110%);
  }
  70%,
  100% {
    transform: translateY(400%);
  }
}

.shot-dark {
  display: none;
}

[data-theme="dark"] .shot-dark {
  display: block;
}

[data-theme="dark"] .shot-light {
  display: none;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .shot-dark {
    display: block;
  }

  :root:not([data-theme="light"]) .shot-light {
    display: none;
  }
}

/* a sheen that crosses each picture once, as its card comes into view */
.shot::after {
  content: "";
  position: absolute;
  inset: -10% -40%;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(105deg, transparent 42%, rgba(255, 255, 255, 0.16) 50%, transparent 58%);
  transform: translateX(-70%);
  opacity: 0;
}

.bento-card.is-visible .shot::after {
  animation: shot-sheen 1.8s var(--ease) 0.5s 1 both;
}

@keyframes shot-sheen {
  0% {
    transform: translateX(-70%);
    opacity: 1;
  }
  100% {
    transform: translateX(70%);
    opacity: 1;
  }
}

.shot-visuals {
  --shot-w: 150%;
  --shot-x: -47%;
  --shot-y: -19%;
}

.shot-aim {
  --shot-w: 128%;
  --shot-x: -22%;
  --shot-y: -4%;
}

.shot-radar {
  --shot-w: 200%;
  --shot-x: -36%;
  --shot-y: -44.5%;
}

/* how STAR sits between the machines */
.arch {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 0 24px 28px;
}

.arch-svg {
  display: block;
  width: 100%;
  max-width: 660px;
  height: auto;
  overflow: visible;
}

.arch-tall {
  display: none;
  max-width: 320px;
}

.arch-line {
  fill: none;
  stroke: var(--stroke-strong);
  stroke-width: 1.5;
}

.arch-line.is-return {
  stroke-dasharray: 3 6;
}

.arch-pulse {
  fill: none;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-dasharray: 9 91;
  stroke-dashoffset: 100;
  animation: arch-flow 2.8s linear infinite;
}

@keyframes arch-flow {
  to {
    stroke-dashoffset: 0;
  }
}

.arch-node circle {
  fill: var(--layer-2);
  stroke: var(--stroke-strong);
  stroke-width: 1.2;
}

.arch-icon {
  overflow: visible;
  fill: none;
  stroke: var(--text);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.arch text {
  fill: var(--text-2);
  font-family: var(--font);
  font-size: 13px;
}

.arch .arch-edge {
  fill: var(--text-3);
  font-size: 11px;
  letter-spacing: 0.02em;
}

.arch .arch-core-label {
  fill: var(--text);
  font-weight: 600;
}

.arch-disc {
  fill: var(--layer);
  stroke-width: 2;
}

.arch-glow {
  transform-box: fill-box;
  transform-origin: center;
  animation: arch-breathe 3.4s var(--ease) infinite;
}

@keyframes arch-breathe {
  0%,
  100% {
    opacity: 0.55;
    transform: scale(0.9);
  }
  50% {
    opacity: 1;
    transform: scale(1.08);
  }
}

.arch-orbit {
  fill: none;
  stroke: var(--accent-text);
  stroke-opacity: 0.6;
  stroke-width: 1.3;
  stroke-dasharray: 2 7;
  transform-box: fill-box;
  transform-origin: center;
  animation: arch-spin 18s linear infinite;
}

@keyframes arch-spin {
  to {
    transform: rotate(360deg);
  }
}

/* the radar: the menu's page behind, a phone in front */
.radar-visual {
  position: absolute;
  inset: 0;
}

.phone {
  position: absolute;
  z-index: 3;
  left: 7%;
  bottom: -44px;
  width: 152px;
  aspect-ratio: 9 / 18.5;
  padding: 7px;
  border-radius: 28px;
  background: #0d0d10;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.09), 0 24px 48px rgba(0, 0, 0, 0.32), 0 6px 14px rgba(0, 0, 0, 0.18);
  animation: phone-float 7s var(--ease) infinite alternate;
}

@keyframes phone-float {
  to {
    transform: translateY(-10px);
  }
}

.phone-screen {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border-radius: 21px;
  background: radial-gradient(120% 70% at 50% 0%, #1a1f2a, #0a0d12 70%);
  color: rgba(255, 255, 255, 0.85);
}

.phone-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 14px 12px 4px;
  font-size: 10px;
  font-weight: 600;
  white-space: nowrap;
}

.phone-dot {
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #3fe0c5;
  box-shadow: 0 0 8px #3fe0c5;
}

.phone-ms {
  margin-left: auto;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.5);
}

.scope {
  position: relative;
  width: 88%;
  aspect-ratio: 1;
  margin: 12px auto 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(63, 224, 197, 0.07), transparent 70%);
}

.scope svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.scope-ring,
.scope-cross {
  fill: none;
  stroke: rgba(255, 255, 255, 0.13);
  stroke-width: 1;
}

.scope-sweep {
  position: absolute;
  inset: 3%;
  border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(255, 61, 78, 0) 0deg, rgba(255, 61, 78, 0) 290deg, rgba(255, 61, 78, 0.42) 360deg);
  animation: scope-spin 3.6s linear infinite;
}

@keyframes scope-spin {
  to {
    transform: rotate(360deg);
  }
}

.blip .cone {
  opacity: 0.22;
}

.blip-ally circle,
.blip-ally .cone {
  fill: #3fe0c5;
}

.blip-self circle,
.blip-self .cone {
  fill: #ffffff;
}

.blip-enemy circle {
  fill: #ff3d4e;
}

.blip-enemy .ping {
  fill: none;
  stroke: #ff3d4e;
  stroke-width: 1.5;
  transform-box: fill-box;
  transform-origin: center;
  animation: blip-ping 2.4s var(--ease) infinite;
}

.blip-enemy.e2 .ping {
  animation-delay: -1.2s;
}

@keyframes blip-ping {
  0% {
    transform: scale(1);
    opacity: 0.9;
  }
  100% {
    transform: scale(3.2);
    opacity: 0;
  }
}

.blip-self {
  transform: translate(100px, 104px) rotate(-12deg);
  animation: blip-self 10s var(--ease) infinite alternate;
}

.blip.b1 {
  transform: translate(66px, 128px) rotate(-40deg);
  animation: blip-b1 9s var(--ease) infinite alternate;
}

.blip.b2 {
  transform: translate(132px, 138px) rotate(30deg);
  animation: blip-b2 11s var(--ease) infinite alternate;
}

.blip.e1 {
  transform: translate(74px, 52px);
  animation: blip-e1 8s var(--ease) infinite alternate;
}

.blip.e2 {
  transform: translate(140px, 70px);
  animation: blip-e2 12s var(--ease) infinite alternate;
}

@keyframes blip-self {
  to {
    transform: translate(104px, 92px) rotate(14deg);
  }
}

@keyframes blip-b1 {
  to {
    transform: translate(58px, 104px) rotate(-6deg);
  }
}

@keyframes blip-b2 {
  to {
    transform: translate(146px, 118px) rotate(-18deg);
  }
}

@keyframes blip-e1 {
  to {
    transform: translate(86px, 40px);
  }
}

@keyframes blip-e2 {
  to {
    transform: translate(128px, 58px);
  }
}

.phone-tabs {
  display: flex;
  gap: 4px;
  width: max-content;
  margin: 12px auto 0;
  padding: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 9.5px;
  font-weight: 600;
}

.phone-tabs span {
  padding: 3px 10px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.6);
}

.phone-tabs .is-on {
  background: #ff3d4e;
  color: #ffffff;
}

/* the numbers under the cards */
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.stat {
  padding: 24px 26px;
  border-radius: var(--radius-m);
  background: var(--layer);
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow-4);
}

.stat-num {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(34px, 3.8vw, 48px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat-num small {
  margin-left: 4px;
  font-size: 0.46em;
  letter-spacing: 0;
}

.stat-label {
  margin: 6px 0 0;
  font-size: 14px;
  color: var(--text-2);
}

/* the full list, after the cards */
.subhead {
  max-width: 720px;
  margin: 80px 0 24px;
}

.subhead h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: clamp(24px, 2.6vw, 30px);
  font-weight: 600;
  line-height: 1.25;
}

.subhead p {
  margin: 0;
  font-size: 16px;
  color: var(--text-2);
}

@media (max-width: 1000px) {
  .bento-arch,
  .bento-aim,
  .bento-visuals,
  .bento-radar {
    grid-column: span 12;
  }

  .bento-card {
    min-height: 460px;
  }

  .shot-visuals {
    --shot-w: 100%;
    --shot-x: 0%;
    --shot-y: -20%;
  }

  .shot-radar {
    --shot-w: 140%;
    --shot-x: -22%;
    --shot-y: -31%;
  }

  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .bento {
    gap: 14px;
  }

  .bento-card {
    min-height: 0;
  }

  .bento-text {
    padding: 22px 22px 0;
  }

  .bento-text h3 {
    font-size: 20px;
  }

  .bento-visual {
    min-height: 300px;
  }

  .bento-arch .bento-visual {
    min-height: 470px;
  }

  .arch {
    padding: 0 16px 20px;
  }

  .arch-wide {
    display: none;
  }

  .arch-tall {
    display: block;
  }

  .shot-visuals {
    --shot-w: 175%;
    --shot-x: -70%;
    --shot-y: -24%;
  }

  .shot-aim {
    --shot-w: 210%;
    --shot-x: -44%;
    --shot-y: -10%;
  }

  .shot-radar {
    --shot-w: 230%;
    --shot-x: -60%;
    --shot-y: -54%;
  }

  .phone {
    width: 128px;
    left: 6%;
  }

  .stats {
    gap: 12px;
  }

  .stat {
    padding: 18px;
  }

  .subhead {
    margin-top: 56px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .arch-pulse,
  .shot::after,
  .shot-scan {
    display: none !important;
  }

  .bento-card:hover .shot-frame {
    transform: none;
  }
}

/* ---------------------------------------------------------------- community links: Telegram and Discord */
.brand-logo {
  display: block;
  flex: none;
  width: 20px;
  height: 20px;
}

.brand-logo.brand-16 {
  width: 16px;
  height: 16px;
}

[data-brand] {
  display: inline-flex;
}

/* buttons in the brands' own colours */
.btn-telegram,
.btn-discord {
  color: #ffffff;
  box-shadow: var(--shadow-4);
}

.btn-telegram .brand-logo,
.btn-discord .brand-logo {
  width: 18px;
  height: 18px;
}

.btn-telegram {
  background: #229ed9;
}

.btn-telegram:hover {
  background: #1b8ac0;
  color: #ffffff;
}

.btn-telegram:active {
  background: #1879a8;
}

.btn-discord {
  background: #5865f2;
}

.btn-discord:hover {
  background: #4752c4;
  color: #ffffff;
}

.btn-discord:active {
  background: #3c45a5;
}

/* the hero's row: 加入社区 [Telegram] [Discord] */
.hero-community {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  margin-top: 16px;
}

.hero-community-label {
  margin-right: 2px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-2);
}

.drawer-social {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 8px 0 4px;
  padding-top: 8px;
  border-top: 1px solid var(--stroke);
}

.drawer-social:not(:has(a:not([hidden]))) {
  display: none;
}

.site-footer ul a.has-icon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.social-telegram:hover,
.site-footer ul a.social-telegram:hover {
  color: #229ed9;
}

.social-discord:hover,
.site-footer ul a.social-discord:hover {
  color: #5865f2;
}

@media (max-width: 900px) {
  .header-actions .social-link {
    display: none;
  }
}

/* ---------------------------------------------------------------- reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out);
  transition-delay: var(--delay, 0ms);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.no-js .reveal {
  opacity: 1;
  transform: none;
}

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1080px) {
  .req-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-chip.c1 {
    left: 0;
  }

  .hero-chip.c2 {
    right: 0;
  }
}

@media (max-width: 900px) {
  :root {
    --gutter: 20px;
  }

  .site-nav,
  .header-actions .btn,
  .header-actions .lang-picker {
    display: none;
  }

  .menu-button {
    display: inline-flex;
  }

  .hero {
    padding: 48px 0 64px;
  }

  .hero-grid,
  .game-hero-grid,
  .feature-panel {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    order: -1;
    width: min(100%, 340px);
  }

  .game-grid,
  .feature-grid,
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .cta-band {
    flex-direction: column;
    align-items: flex-start;
    padding: 40px 28px;
  }

  .cta-mark {
    display: none;
  }

  .section {
    padding: 64px 0;
  }
}

@media (max-width: 600px) {
  :root {
    --gutter: 16px;
  }

  body {
    font-size: 15px;
  }

  .game-grid,
  .feature-grid,
  .steps,
  .req-grid,
  .checklist {
    grid-template-columns: 1fr;
  }

  .hero .lead,
  .game-hero .lead {
    font-size: 16px;
  }

  .hero-stats {
    gap: 20px;
  }

  .hero-chip {
    display: none;
  }

  .hero-visual {
    width: min(100%, 260px);
  }

  .hero-actions .btn {
    flex: 1 1 auto;
  }

  .status-card {
    padding: 36px 22px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom .copy {
    margin-left: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (forced-colors: active) {
  .btn-primary,
  .badge,
  .icon-tile {
    border: 1px solid CanvasText;
  }
}
