:root {
  color-scheme: light;
  --ink: #102033;
  --muted: #66758a;
  --teal: #167d84;
  --line: #d4e2e5;
  --surface: #ffffff;
  --shadow: 0 14px 34px rgba(33, 52, 66, 0.1);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body { margin: 0; color: var(--ink); background: linear-gradient(180deg, #f7fbfa 0%, #edf4f5 100%); }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
[hidden] { display: none !important; }

.app-shell { width: min(940px, calc(100% - 32px)); margin: 0 auto; padding: 18px 0 56px; }
.topbar { display: grid; grid-template-columns: 48px 1fr auto; align-items: center; gap: 12px; min-height: 58px; }
.icon-link, .language-link {
  display: inline-grid; place-items: center; min-height: 44px; border: 1px solid var(--line); border-radius: 8px;
  background: rgba(255, 255, 255, 0.86); color: var(--teal); font-weight: 850;
}
.icon-link { width: 44px; font-size: 26px; }
.language-link { padding: 0 14px; font-size: 14px; }
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; font-size: 18px; }
.brand-mark {
  display: inline-grid; place-items: center; width: 38px; height: 38px; flex: 0 0 auto; border: 1px solid rgba(20, 127, 137, 0.24);
  border-radius: 8px; background: #061a3b url("../assets/pwa/icon-96.png?v=20260910-owner-reviewed-data-export-v359") center / cover no-repeat; color: transparent; font-size: 0; font-weight: 950;
}

.stepper { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 34px 0 48px; }
.step {
  display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; border-bottom: 3px solid #d8e3e5;
  color: #8894a2; font-size: 14px; font-weight: 800;
}
.step b { display: inline-grid; place-items: center; width: 25px; height: 25px; border-radius: 50%; background: #e4eaec; }
.step.is-current, .step.is-complete { color: var(--teal); border-color: var(--teal); }
.step.is-current b { color: white; background: var(--teal); }
.step.is-complete b { color: var(--teal); background: #dff2f1; }

.choice-screen { min-height: 520px; animation: screen-in 180ms ease-out; }
.screen-heading { margin-bottom: 28px; }
.screen-heading p { margin: 0 0 8px; color: var(--teal); font-size: 14px; font-weight: 900; }
.screen-heading h1 { margin: 0; font-size: clamp(34px, 5vw, 56px); line-height: 1.12; letter-spacing: 0; }
.choice-list, .game-list { display: grid; gap: 14px; }
.choice-button, .game-link {
  width: 100%; min-height: 100px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface);
  box-shadow: 0 7px 18px rgba(33, 52, 66, 0.06); cursor: pointer;
}
.choice-button {
  display: grid; grid-template-columns: 56px 1fr 32px; align-items: center; gap: 16px; padding: 18px 22px;
  color: var(--ink); text-align: left;
}
.choice-icon {
  display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 8px; background: #e5f5f4;
  color: var(--teal); font-size: 24px; font-weight: 950;
}
.choice-button strong { display: block; font-size: clamp(23px, 3vw, 31px); line-height: 1.2; letter-spacing: 0; }
.choice-arrow { color: #84929f; font-size: 30px; line-height: 1; }
.choice-button:hover, .choice-button:focus-visible, .game-start:hover, .game-start:focus-visible {
  border-color: #65aeb3; box-shadow: 0 10px 24px rgba(22, 125, 132, 0.14);
  outline: 3px solid rgba(22, 125, 132, 0.13); outline-offset: 2px;
}

.game-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.game-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 9px 24px rgba(33, 52, 66, 0.08);
}
.game-preview { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #dce9e9; }
.game-preview video { display: block; width: 100%; height: 100%; object-fit: cover; }
.game-preview > span {
  position: absolute; top: 12px; left: 12px; padding: 6px 10px; border-radius: 6px;
  background: rgba(10, 33, 45, 0.78); color: #fff; font-size: 12px; font-weight: 850;
}
.game-copy { display: flex; min-height: 255px; padding: 22px; flex-direction: column; align-items: flex-start; }
.game-focus { margin: 0 0 8px; color: var(--teal); font-size: 14px; font-weight: 900; }
.game-copy h2 { margin: 0; font-size: clamp(27px, 3vw, 36px); line-height: 1.15; letter-spacing: 0; }
.game-description { margin: 14px 0 22px; color: var(--muted); font-size: 16px; font-weight: 700; line-height: 1.55; }
.game-start {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; width: 100%; min-height: 52px;
  margin-top: auto; padding: 0 17px; border-radius: 8px; background: var(--teal); color: #fff; font-size: 17px; font-weight: 900;
}
.game-start span { font-size: 22px; }

@keyframes screen-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 660px) {
  .app-shell { width: min(100% - 24px, 940px); padding-top: 10px; }
  .topbar { grid-template-columns: 44px minmax(0, 1fr) auto; }
  .brand-mark { display: none; }
  .brand { font-size: 16px; }
  .language-link { padding: 0 10px; font-size: 13px; }
  .stepper { margin: 22px 0 34px; }
  .step { gap: 5px; font-size: 12px; }
  .step b { width: 22px; height: 22px; }
  .choice-screen { min-height: 430px; }
  .screen-heading h1 { font-size: 34px; }
  .choice-button { grid-template-columns: 48px 1fr 24px; min-height: 88px; padding: 15px; }
  .choice-icon { width: 46px; height: 46px; font-size: 21px; }
  .choice-button strong { font-size: 23px; }
  .game-list { grid-template-columns: 1fr; }
  .game-copy { min-height: 230px; padding: 18px; }
  .game-description { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) { .choice-screen { animation: none; } }

/* Unified v327 family-app selection flow. */
.motion-app-body {
  --navy: #05294f;
  --blue: #1680ff;
  --cyan: #17a9bc;
  --ice: #ecf8ff;
  --yellow: #f6c84c;
  min-height: 100%;
  background:
    linear-gradient(rgba(5, 41, 79, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(5, 41, 79, 0.035) 1px, transparent 1px),
    linear-gradient(155deg, #f8fdff 0%, #eaf8ff 57%, #f4fbff 100%);
  background-size: 42px 42px, 42px 42px, auto;
}

.motion-app-body .app-shell {
  width: 100%;
  margin: 0;
  padding: 0 0 72px;
}

.motion-app-body .topbar {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 14px;
  min-height: 82px;
  padding: 14px max(24px, calc((100vw - 1180px) / 2));
  color: #fff;
  background: var(--navy);
  box-shadow: 0 12px 34px rgba(2, 28, 57, 0.18);
}

.motion-app-body .icon-link,
.motion-app-body .language-link {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
}

.motion-app-body .icon-link:hover,
.motion-app-body .language-link:hover {
  background: rgba(255, 255, 255, 0.16);
}

.motion-app-body .brand {
  font-size: 17px;
  font-weight: 900;
}

.motion-app-body .brand > span:last-child {
  display: grid;
  gap: 2px;
}

.motion-app-body .brand strong,
.motion-app-body .brand small {
  display: block;
  letter-spacing: 0;
}

.motion-app-body .brand small {
  color: rgba(255, 255, 255, 0.66);
  font-size: 11px;
  font-weight: 750;
}

.motion-app-body .stepper,
.motion-app-body .choice-screen {
  width: min(1120px, calc(100% - 48px));
  margin-left: auto;
  margin-right: auto;
}

.motion-app-body .stepper {
  gap: 0;
  margin-top: 30px;
  margin-bottom: 52px;
  border: 1px solid rgba(8, 72, 118, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 12px 34px rgba(5, 41, 79, 0.07);
  overflow: hidden;
}

.motion-app-body .step {
  min-height: 54px;
  border: 0;
  border-right: 1px solid rgba(8, 72, 118, 0.1);
  color: #71839a;
}

.motion-app-body .step:last-child { border-right: 0; }
.motion-app-body .step.is-current,
.motion-app-body .step.is-complete { color: var(--cyan); }
.motion-app-body .step.is-current { background: #e8f9fd; }
.motion-app-body .step.is-current b { background: var(--cyan); }
.motion-app-body .step.is-complete b { background: #d8f4f7; }

.motion-app-body .choice-screen { min-height: 460px; }
.motion-app-body .screen-heading { margin-bottom: 24px; }
.motion-app-body .screen-heading p {
  margin-bottom: 7px;
  color: var(--cyan);
  font-size: 13px;
  letter-spacing: 0;
}

.motion-app-body .screen-heading h1 {
  color: var(--navy);
  font-size: clamp(34px, 4.2vw, 52px);
  line-height: 1.12;
}

.motion-app-body .choice-list { gap: 12px; }
.motion-app-body .choice-button {
  grid-template-columns: minmax(0, 1fr) 34px;
  min-height: 94px;
  padding: 18px 24px 18px 28px;
  border-color: rgba(8, 72, 118, 0.15);
  border-left: 5px solid var(--blue);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 30px rgba(5, 41, 79, 0.07);
}

.motion-app-body .choice-button:nth-child(2) { border-left-color: var(--cyan); }
.motion-app-body .choice-button:nth-child(3) { border-left-color: var(--yellow); }
.motion-app-body .choice-button strong {
  color: var(--navy);
  font-size: clamp(23px, 2.6vw, 30px);
}

.motion-app-body .choice-arrow { color: var(--blue); }
.motion-app-body .choice-button:hover,
.motion-app-body .choice-button:focus-visible {
  border-color: rgba(22, 128, 255, 0.45);
  border-left-color: var(--blue);
  background: #fff;
  box-shadow: 0 16px 34px rgba(22, 128, 255, 0.13);
}

.motion-app-body .game-list { gap: 18px; }
.motion-app-body .game-card {
  border-color: rgba(8, 72, 118, 0.15);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 16px 38px rgba(5, 41, 79, 0.09);
}

.motion-app-body .game-preview { background: #dff5fb; }
.motion-app-body .game-preview > span { background: rgba(5, 41, 79, 0.84); }
.motion-app-body .game-focus { color: var(--cyan); }
.motion-app-body .game-copy h2 { color: var(--navy); }
.motion-app-body .game-start { background: var(--blue); }

@media (max-width: 720px) {
  .motion-app-body .app-shell { padding-bottom: 34px; }
  .motion-app-body .topbar {
    grid-template-columns: 42px minmax(0, 1fr) auto;
    min-height: 70px;
    padding: 10px 14px;
  }
  .motion-app-body .brand-mark { display: none; }
  .motion-app-body .brand { font-size: 15px; }
  .motion-app-body .brand small { font-size: 9px; }
  .motion-app-body .language-link { padding: 0 9px; }
  .motion-app-body .stepper,
  .motion-app-body .choice-screen { width: min(100% - 28px, 1120px); }
  .motion-app-body .stepper { margin-top: 18px; margin-bottom: 32px; }
  .motion-app-body .step { min-height: 48px; padding: 4px; font-size: 11px; }
  .motion-app-body .step b { display: none; }
  .motion-app-body .choice-screen { min-height: 400px; }
  .motion-app-body .screen-heading h1 { font-size: 33px; }
  .motion-app-body .choice-button {
    grid-template-columns: minmax(0, 1fr) 24px;
    min-height: 82px;
    padding: 14px 16px 14px 19px;
  }
  .motion-app-body .choice-button strong { font-size: 22px; }
  .motion-app-body .game-list { grid-template-columns: 1fr; }
  .motion-app-body .game-copy { min-height: 210px; }
}
