:root {
  color-scheme: light;
  --serif-font: "STZhongsong", "华文中宋", "STSong", "SimSun", serif;
  --canvas: #f4f6f8;
  --canvas-top: #fbfcfd;
  --canvas-bottom: #eceff3;
  --surface: #ffffff;
  --surface-soft: #f8fafc;
  --line: #d8dee6;
  --line-strong: #aeb8c4;
  --text: #20262d;
  --muted: #65717e;
  --accent: #6b7886;
  --accent-soft: #eef2f5;
  --nav-muted: #98a2ad;
  --nav-hover: #5f6a76;
  --nav-active: #171d23;
  --shadow: 0 8px 22px rgba(31, 42, 55, 0.07);
  --page-slide-distance: 30px;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
  overflow-x: hidden;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  color: var(--text);
  background:
    linear-gradient(180deg, var(--canvas-top) 0%, var(--canvas) 46%, var(--canvas-bottom) 100%);
}

button,
a {
  font: inherit;
}

button {
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
p {
  margin: 0;
}

.app-shell {
  min-height: 100vh;
  min-height: 100svh;
}

.scale-nav {
  position: fixed;
  top: 50%;
  left: 0;
  z-index: 20;
  width: 116px;
  height: 190px;
  padding: 0;
  opacity: 1;
  transform: translateY(-50%);
  transition: none;
  view-transition-name: none;
}

.scale-nav::before {
  content: none;
}

.scale-nav:hover,
.scale-nav:focus-within {
  opacity: 1;
  transform: translateY(-50%);
}

.scale-nav:hover::before,
.scale-nav:focus-within::before {
  content: none;
}

.scale-axis {
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 12px;
  width: 1px;
  background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--accent) 46%, transparent), transparent);
  transform: none;
  transform-origin: center;
  transition: none;
  z-index: 1;
  view-transition-name: scale-axis;
}

.scale-nav:hover .scale-axis,
.scale-nav:focus-within .scale-axis {
  transform: none;
}

.scale-wheel {
  position: relative;
  height: 100%;
  transform: none;
  transform-origin: 12px 50%;
  transition: transform 420ms cubic-bezier(0.2, 0.74, 0.28, 1);
  z-index: 2;
}

.scale-nav:hover .scale-wheel,
.scale-nav:focus-within .scale-wheel {
  transform: none;
}

.scale-link {
  position: absolute;
  top: 50%;
  left: 0;
  display: block;
  width: 116px;
  height: 54px;
  color: var(--nav-muted);
  outline: none;
  transform: translateY(-50%) translateY(var(--scale-y, 0px));
  transition: color 220ms ease, transform 420ms cubic-bezier(0.2, 0.74, 0.28, 1);
}

.scale-link-source {
  view-transition-name: scale-route-source;
}

.scale-link-play {
  view-transition-name: scale-route-play;
}

.scale-link:nth-child(2) {
  padding-left: 0;
}

.scale-link:hover,
.scale-link:focus-visible {
  color: var(--nav-hover);
}

.scale-link.active {
  color: var(--nav-active);
}

.scale-tick {
  position: absolute;
  top: 50%;
  left: 0;
  display: block;
  width: 42px;
  height: 3px;
  overflow: hidden;
  background: transparent;
  transform: translateY(-50%);
}

.scale-tick::after {
  position: absolute;
  inset: 0;
  background: currentColor;
  content: "";
  transform: scaleX(1);
  transform-origin: left center;
  transition: background-color 220ms ease;
}

.scale-link.active .scale-tick {
  height: 3px;
}

.scale-abbr {
  position: absolute;
  top: 50%;
  left: 42px;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-family: var(--serif-font);
  font-size: 26px;
  font-weight: 800;
  line-height: 1;
  opacity: 0.86;
  transform: translateY(-50%) scale(1);
  transition: left 560ms cubic-bezier(0.12, 0.82, 0.16, 1), opacity 260ms ease, border-color 240ms ease, transform 420ms cubic-bezier(0.2, 0.74, 0.28, 1), border-width 220ms ease;
}

.scale-link:hover .scale-abbr,
.scale-link:focus-visible .scale-abbr {
  border-color: currentColor;
}

.scale-link.active .scale-abbr {
  border-width: 3px;
  color: var(--nav-active);
  opacity: 1;
  transform: translateY(-50%) scale(1.08);
}

.page-orbit {
  min-height: 100vh;
  min-height: 100svh;
  transform-origin: 50% 42vh;
  transition: transform 420ms cubic-bezier(0.16, 0.78, 0.24, 1), filter 260ms ease;
  will-change: transform;
  view-transition-name: page-orbit;
}

.page-orbit-enter {
  animation: page-rise 360ms cubic-bezier(0.18, 0.78, 0.24, 1) both;
}

.page-orbit-enter-next {
  animation-name: page-slide-in-next;
  animation-duration: 430ms;
}

.page-orbit-enter-prev {
  animation-name: page-slide-in-prev;
  animation-duration: 430ms;
}

.scale-nav.is-open + .page-orbit {
  transform: none;
}

.home-shell {
  display: flex;
  width: min(1344px, 100%);
  min-height: 100vh;
  min-height: 100svh;
  margin: 0 auto;
  flex-direction: column;
  padding: 22px 8px 12px 42px;
}

.play-shell {
  width: min(1440px, 100%);
}

.site-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 0 16px;
  border-bottom: 1px solid var(--line);
}

.site-brand {
  min-width: 0;
}

.site-head h1 {
  margin-top: 0;
  font-family: var(--serif-font);
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: 0;
}

.theme-banner {
  display: flex;
  width: min(440px, 45vw);
  min-width: 292px;
  min-height: 34px;
  align-items: center;
  gap: 8px;
  padding: 3px 5px;
  border: 1px solid color-mix(in srgb, var(--line-strong) 72%, #ffffff 28%);
  border-radius: 4px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(246, 248, 251, 0.86));
  box-shadow: 0 5px 16px rgba(31, 42, 55, 0.06);
}

.theme-banner-label,
.theme-banner-name {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.1;
  white-space: nowrap;
}

.theme-banner-name {
  min-width: 42px;
  color: var(--accent);
  text-align: center;
}

.theme-swatch-row {
  display: flex;
  min-width: 0;
  flex: 1 1 auto;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.theme-swatch {
  display: grid;
  width: 28px;
  height: 22px;
  place-items: center;
  padding: 2px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #ffffff;
  cursor: pointer;
  transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
}

.theme-swatch::before {
  display: block;
  width: 100%;
  height: 100%;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 2px;
  background: var(--theme-swatch);
  box-shadow: inset 0 0 0 1px rgba(31, 42, 55, 0.12);
  content: "";
}

.theme-swatch:hover,
.theme-swatch:focus-visible {
  border-color: var(--theme-swatch);
  background: var(--theme-swatch-soft);
  outline: none;
}

.theme-swatch.active {
  border-color: var(--theme-swatch);
  background: var(--theme-swatch-soft);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--theme-swatch) 28%, transparent);
}

.module-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(330px, 0.78fr);
  gap: 14px;
  padding: 18px 0 12px;
}

.module-card {
  position: relative;
  min-width: 0;
}

.play-board {
  min-width: 0;
  padding-top: 18px;
}

.play-grid {
  min-height: 238px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  align-content: start;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #ffffff;
  box-shadow: 0 3px 12px rgba(42, 55, 48, 0.04);
}

.play-card {
  display: grid;
  min-height: 86px;
  grid-template-columns: 60px 1fr;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface-soft);
  transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.play-card:hover,
.play-card:focus-visible {
  border-color: var(--line-strong);
  background: #ffffff;
  box-shadow: 0 5px 16px rgba(42, 55, 48, 0.08);
  outline: none;
}

.play-card-icon {
  display: block;
  width: 60px;
  height: 60px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #122241;
  padding: 4px;
}

.play-card-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: scale(1.12);
}

.play-card-copy {
  min-width: 0;
}

.play-card-copy b {
  display: block;
  color: var(--text);
  font-size: 17px;
  line-height: 1.25;
}

.cloud-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr));
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #ffffff;
  box-shadow: 0 3px 12px rgba(42, 55, 48, 0.04);
}

.cloud-card {
  min-width: 0;
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface-soft);
}

.cloud-card-main {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.cloud-mark {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #ffffff;
  color: var(--accent);
  font-family: var(--serif-font);
  font-size: 26px;
  font-weight: 800;
}

.cloud-copy {
  min-width: 0;
}

.cloud-copy h3 {
  color: var(--text);
  font-size: 18px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.cloud-copy p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.cloud-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 8px;
}

.cloud-tags span {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #ffffff;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.2;
}

.cloud-meta {
  display: grid;
  gap: 5px;
  margin: 0;
}

.cloud-meta div {
  min-width: 0;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
}

.cloud-meta dt {
  color: var(--muted);
  font-size: 12px;
}

.cloud-meta dd {
  min-width: 0;
  margin: 0;
  color: var(--text);
  font-size: 13px;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cloud-meta code {
  color: var(--accent);
  font-family: Consolas, "Courier New", monospace;
  font-size: 12px;
}

.cloud-download {
  width: 100%;
  min-height: 38px;
}

.cloud-empty {
  display: grid;
  min-height: 180px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #ffffff;
  color: var(--muted);
}

.module-heart {
  grid-column: 1 / -1;
}

.module-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 46px;
  padding-bottom: 8px;
}

.module-head h2 {
  color: var(--text);
  font-family: var(--serif-font);
  font-size: 20px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0;
}

.module-head p {
  margin-top: 2px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.3;
}

.module-action {
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: #ffffff;
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 160ms ease, background-color 160ms ease;
}

.module-action:hover,
.module-action:focus-visible {
  border-color: var(--accent);
  background: var(--accent-soft);
  outline: none;
}

.module-body {
  position: relative;
}

.module-body.is-refreshing {
  opacity: .66;
  transition: opacity .16s ease;
}

.module-action:disabled {
  opacity: .62;
  cursor: progress;
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.game-card,
.link-card,
.verse-card {
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface);
  box-shadow: 0 3px 12px rgba(31, 42, 55, 0.04);
  transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.game-card:hover,
.game-card:focus-visible,
.link-card:hover,
.link-card:focus-visible,
.verse-card:hover,
.verse-card:focus-visible {
  border-color: var(--line-strong);
  background: var(--surface-soft);
  box-shadow: 0 8px 18px rgba(31, 42, 55, 0.08);
  outline: none;
}

.game-card {
  display: grid;
  min-height: 92px;
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 12px;
  text-align: left;
  cursor: pointer;
}

.game-card img {
  width: 58px;
  height: 58px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 4px;
  object-fit: cover;
}

.game-card b {
  display: block;
  font-size: 17px;
  line-height: 1.22;
  overflow-wrap: anywhere;
}

.game-card small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.25;
}

.tone-peace {
  --tone: #2f6d55;
}

.tone-identity {
  --tone: #52616f;
}

.tone-honor {
  --tone: #8a5b25;
}

.tone-jiangnan {
  --tone: #4b776f;
}

.game-card {
  border-left: 4px solid var(--tone);
}

.link-panel,
.link-sections {
  display: grid;
  gap: 10px;
}

.link-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.link-tab {
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 4px 4px 0 0;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease;
}

.link-tab:hover,
.link-tab:focus-visible {
  border-color: var(--line-strong);
  background: #ffffff;
  outline: none;
}

.link-tab.active {
  border-color: var(--line-strong);
  border-bottom-color: #ffffff;
  background: #ffffff;
  color: var(--text);
}

.link-section {
  min-width: 0;
}

.link-section-title {
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
}

.link-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.link-pager {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.2;
}

.link-page-btn {
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #ffffff;
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 160ms ease, background-color 160ms ease;
}

.link-page-btn:hover,
.link-page-btn:focus-visible {
  border-color: var(--line-strong);
  background: var(--surface-soft);
  outline: none;
}

.link-page-btn:disabled {
  opacity: 0.44;
  cursor: not-allowed;
}

.link-card {
  display: flex;
  min-height: 54px;
  align-items: center;
  gap: 8px;
  padding: 7px;
}

.link-icon {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #ffffff;
  object-fit: contain;
  padding: 1px;
}

.link-mark {
  display: grid;
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface-soft);
  color: var(--accent);
  font-size: 14px;
  font-weight: 800;
}

.link-card b {
  display: block;
  min-width: 0;
  font-size: 14px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.link-copy {
  min-width: 0;
}

.link-copy small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.verse-list {
  display: grid;
  gap: 8px;
}

.verse-card {
  display: grid;
  min-height: 58px;
  grid-template-columns: 32px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  color: var(--text);
}

.verse-index {
  position: relative;
  display: block;
  min-height: 42px;
  color: var(--accent);
  font-family: var(--serif-font);
  font-size: 20px;
  font-weight: 800;
  line-height: 1.05;
  text-align: center;
}

.verse-index::after {
  position: absolute;
  top: 28px;
  bottom: 2px;
  left: 50%;
  width: 1px;
  background: var(--line);
  content: "";
}

.verse-copy {
  display: flex;
  min-width: 0;
  min-height: 42px;
  flex-direction: column;
  justify-content: center;
}

.verse-copy b {
  display: block;
  color: var(--text);
  font-size: 14px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.verse-copy small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.verse-author {
  color: var(--muted);
  text-align: right;
}

.loading-mask {
  display: grid;
  min-height: 154px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface-soft);
  color: var(--muted);
}

.loading-mask span {
  display: block;
  width: 24px;
  height: 24px;
  margin-bottom: 8px;
  border: 2px solid var(--line);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 900ms linear infinite;
}

.loading-mask b {
  font-size: 13px;
  line-height: 1.2;
}

.site-footer {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: auto;
  padding-top: 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.site-footer a {
  display: inline-flex;
  align-items: center;
  color: inherit;
  text-decoration: none;
}

.filing-separator {
  margin: 0 14px;
  color: var(--muted);
}

.police-filing-logo {
  width: 16px;
  height: auto;
  max-height: 18px;
  margin-right: 5px;
  object-fit: contain;
  flex: 0 0 auto;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--text);
  outline: none;
}

.test-stage {
  --test-bg: none;
  min-height: 100vh;
  min-height: 100svh;
  padding: 16px;
  background-color: var(--canvas);
  background-image:
    linear-gradient(90deg, rgba(248, 250, 252, 0.92) 0%, rgba(248, 250, 252, 0.88) 52%, rgba(248, 250, 252, 0.84) 100%),
    var(--test-bg);
  background-position: center, center;
  background-repeat: no-repeat;
  background-size: cover, cover;
}

.test-stage.tone-honor {
  background-position: center, center;
}

.test-banner,
.test-card {
  width: min(900px, 100%);
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.test-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 78px;
  padding: 10px 12px;
}

.back-btn,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: #ffffff;
  color: var(--text);
  cursor: pointer;
  line-height: 1;
  text-align: center;
  transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.back-btn {
  padding: 0 12px;
  white-space: nowrap;
}

.btn {
  min-width: 92px;
  padding: 0 14px;
}

.back-btn:hover,
.back-btn:focus-visible,
.btn:hover,
.btn:focus-visible {
  border-color: var(--accent);
  background: var(--accent-soft);
  outline: none;
}

.btn.primary {
  border-color: var(--accent);
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(45, 77, 67, 0.18);
}

.btn.primary:hover,
.btn.primary:focus-visible {
  background: color-mix(in srgb, var(--accent) 88%, #000 12%);
}

.btn:disabled {
  opacity: 0.48;
  cursor: not-allowed;
  box-shadow: none;
}

.test-title {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
}

.test-title img {
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 4px;
  object-fit: cover;
}

.test-title p {
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
}

.test-title h1 {
  margin-top: 1px;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: 0;
}

.test-title span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.2;
}

.test-card {
  margin-top: 14px;
  padding: 18px;
}

.intro-card {
  display: grid;
  gap: 14px;
}

.test-kicker {
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
}

.test-card h2 {
  max-width: 22em;
  font-size: 28px;
  font-weight: 800;
  line-height: 1.28;
  letter-spacing: 0;
}

.intro-meta,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.intro-meta span,
.tag-row span {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--accent-soft);
  color: var(--text);
  font-size: 13px;
  line-height: 1.2;
}

.intro-meta span {
  padding: 0 10px;
}

.tag-row span {
  padding: 0 9px;
}

.question-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.25;
}

.question-top b {
  color: var(--accent);
}

.progress {
  height: 8px;
  margin: 8px 0 16px;
  overflow: hidden;
  border-radius: 4px;
  background: var(--line);
}

.progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
}

.option-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.option {
  min-height: 62px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #ffffff;
  color: var(--text);
  text-align: left;
  line-height: 1.42;
  overflow-wrap: anywhere;
  cursor: pointer;
  transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.option:hover,
.option:focus-visible {
  border-color: var(--accent);
  background: var(--surface-soft);
  outline: none;
}

.option.selected {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: inset 3px 0 0 var(--accent);
}

.test-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
}

.question-card .test-actions .btn {
  min-width: 132px;
}

.result-head {
  text-align: center;
}

.result-head .test-kicker {
  justify-content: center;
}

.result-card h2 {
  margin-inline: auto;
}

.result-copy {
  max-width: 58em;
  margin: 12px auto 0;
  color: var(--text);
  font-size: 16px;
  line-height: 1.68;
  text-align: center;
}

.result-card .tag-row {
  justify-content: center;
  margin-top: 14px;
}

.result-dimensions {
  display: grid;
  grid-template-columns: minmax(240px, 0.82fr) minmax(260px, 1fr);
  align-items: center;
  gap: 18px;
  margin-top: 18px;
}

.radar-panel {
  display: grid;
  place-items: center;
  min-width: 0;
  border: 1px solid rgba(64, 158, 255, 0.16);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 46%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 60%),
    rgba(255, 255, 255, 0.74);
  padding: 12px;
}

.radar-chart {
  display: block;
  width: min(100%, 280px);
  aspect-ratio: 1;
  overflow: visible;
}

.radar-grid {
  fill: none;
  stroke: rgba(64, 158, 255, 0.18);
  stroke-width: 1;
}

.radar-axis {
  stroke: rgba(96, 98, 102, 0.22);
  stroke-width: 1;
}

.radar-area {
  fill: color-mix(in srgb, var(--accent) 24%, transparent);
  stroke: none;
}

.radar-line {
  fill: none;
  stroke: var(--accent);
  stroke-linejoin: round;
  stroke-width: 2.5;
}

.radar-point {
  fill: #ffffff;
  stroke: var(--accent);
  stroke-width: 2;
}

.radar-label {
  fill: var(--muted);
  font-size: 11px;
  dominant-baseline: middle;
}

.test-path-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 14px 0 2px;
}

.path-tab {
  min-height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--accent, #2f6d55);
  padding: 4px 14px;
}

.path-tab.active,
.path-tab:hover {
  background: var(--accent, #2f6d55);
  color: #fff;
}

.dimension-bars {
  display: grid;
  gap: 9px;
  margin: 18px 0 2px;
}

.dimension-bar {
  display: grid;
  grid-template-columns: minmax(88px, 1fr) 44px;
  gap: 8px;
  align-items: center;
  color: #2f3a45;
  font-size: 13px;
}

.dimension-bar span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dimension-bar b {
  text-align: right;
}

.dimension-bar i {
  grid-column: 1 / -1;
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.12);
}

.dimension-bar em {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--accent, #2f6d55);
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes page-rise {
  from {
    opacity: 0;
    transform: translate3d(0, 26px, 0);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes page-slide-in-next {
  from {
    opacity: 0;
    transform: translate3d(0, var(--page-slide-distance), 0);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes page-slide-out-next {
  from {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }

  to {
    opacity: 0;
    transform: translate3d(0, calc(var(--page-slide-distance) * -1), 0);
  }
}

@keyframes page-slide-in-prev {
  from {
    opacity: 0;
    transform: translate3d(0, calc(var(--page-slide-distance) * -1), 0);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes page-slide-out-prev {
  from {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }

  to {
    opacity: 0;
    transform: translate3d(0, var(--page-slide-distance), 0);
  }
}

.page-orbit-leave {
  pointer-events: none;
  animation: page-soft-out 190ms cubic-bezier(0.4, 0, 1, 1) both;
}

.page-orbit-leave-next {
  animation-name: page-slide-out-next;
}

.page-orbit-leave-prev {
  animation-name: page-slide-out-prev;
}

@keyframes page-soft-out {
  from {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }

  to {
    opacity: 0;
    transform: translate3d(0, 14px, 0);
  }
}

@keyframes page-stay {
  from,
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

::view-transition-old(page-orbit) {
  animation: page-stay 160ms linear both;
  mix-blend-mode: normal;
}

::view-transition-new(page-orbit) {
  animation: page-rise 380ms cubic-bezier(0.18, 0.78, 0.24, 1) both;
  mix-blend-mode: normal;
}

body[data-page-motion="next"] ::view-transition-old(page-orbit) {
  animation: page-slide-out-next 430ms cubic-bezier(0.2, 0.74, 0.28, 1) both;
}

body[data-page-motion="next"] ::view-transition-new(page-orbit) {
  animation: page-slide-in-next 430ms cubic-bezier(0.2, 0.74, 0.28, 1) both;
}

body[data-page-motion="prev"] ::view-transition-old(page-orbit) {
  animation: page-slide-out-prev 430ms cubic-bezier(0.2, 0.74, 0.28, 1) both;
}

body[data-page-motion="prev"] ::view-transition-new(page-orbit) {
  animation: page-slide-in-prev 430ms cubic-bezier(0.2, 0.74, 0.28, 1) both;
}

::view-transition-group(scale-route-source),
::view-transition-group(scale-route-play),
::view-transition-group(scale-axis) {
  animation-duration: 430ms;
  animation-timing-function: cubic-bezier(0.2, 0.74, 0.28, 1);
}

::view-transition-old(scale-route-source),
::view-transition-new(scale-route-source),
::view-transition-old(scale-route-play),
::view-transition-new(scale-route-play),
::view-transition-old(scale-axis),
::view-transition-new(scale-axis) {
  mix-blend-mode: normal;
}

@media (max-width: 860px) {
  .scale-nav {
    top: auto;
    bottom: calc(8px + env(safe-area-inset-bottom));
    left: 50%;
    width: min(142px, calc(100vw - 24px));
    height: 54px;
    opacity: 1;
    transform: translateX(-50%);
  }

  .scale-nav::before {
    position: absolute;
    inset: 5px 0;
    border: 1px solid rgba(255, 255, 255, 0.76);
    border-radius: 4px;
    background:
      linear-gradient(90deg, rgba(255, 255, 255, 0.84), rgba(238, 242, 246, 0.64)),
      linear-gradient(90deg, color-mix(in srgb, var(--accent) 10%, transparent), rgba(255, 255, 255, 0.48));
    box-shadow: 0 8px 22px rgba(31, 42, 55, 0.16);
    content: "";
  }

  .scale-nav:hover,
  .scale-nav:focus-within {
    transform: translateX(-50%);
  }

  .scale-nav:hover::before,
  .scale-nav:focus-within::before {
    content: "";
  }

  .scale-axis {
    display: none;
  }

  .scale-wheel {
    height: 100%;
    transform-origin: 50% 50%;
  }

  .scale-link {
    top: 50%;
    left: 50%;
    width: 44px;
    height: 44px;
    transform: translate(-50%, -50%) translateX(var(--scale-mobile-x, 0px));
  }

  .scale-link:nth-child(2) {
    padding-left: 0;
  }

  .scale-tick {
    display: none;
  }

  .scale-abbr {
    left: 50%;
    width: 38px;
    height: 38px;
    border-width: 1px;
    background: rgba(255, 255, 255, 0.76);
    font-family: var(--serif-font);
    font-size: 22px;
    transform: translate(-50%, -50%) scale(1);
  }

  .scale-link.active .scale-abbr {
    border-width: 2px;
    background: #ffffff;
    transform: translate(-50%, -50%) scale(1.06);
  }

  .scale-nav.is-open + .page-orbit {
    transform: none;
  }

  .home-shell {
    width: min(100%, 100%);
    padding: 14px 8px calc(74px + env(safe-area-inset-bottom));
  }

  .site-head h1,
  .module-head h2,
  .verse-index {
    font-family: var(--serif-font);
  }

  .module-layout {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .module-heart {
    grid-column: auto;
  }

  .game-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .link-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .play-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .site-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    padding-top: 4px;
    padding-bottom: 12px;
  }

  .site-head h1 {
    font-size: 34px;
  }

  .theme-banner {
    width: 100%;
    min-width: 0;
  }

  .module-layout {
    padding-top: 14px;
  }

  .game-grid,
  .play-grid,
  .option-list {
    grid-template-columns: 1fr;
  }

  .link-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  .link-card {
    min-height: 48px;
    gap: 5px;
    padding: 5px;
  }

  .link-icon {
    width: 28px;
    height: 28px;
  }

  .link-card b {
    font-size: 13px;
    line-height: 1.18;
  }

  .link-copy small {
    display: none;
  }

  .game-card {
    min-height: 78px;
  }

  .test-stage {
    padding: 8px;
  }

  .test-banner {
    align-items: flex-start;
    flex-direction: column;
  }

  .back-btn {
    min-height: 34px;
  }

  .test-card {
    padding: 14px;
  }

  .test-card h2 {
    font-size: 24px;
  }

  .result-dimensions {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .radar-panel {
    padding: 8px;
  }

  .test-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }
}

.app-shell {
  isolation: isolate;
}

:root {
  --glass: rgba(255, 255, 255, 0.58);
  --glass-strong: rgba(255, 255, 255, 0.76);
  --glass-soft: rgba(255, 255, 255, 0.38);
  --glass-line: rgba(255, 255, 255, 0.56);
  --shade-line: rgba(35, 45, 62, 0.12);
  --ink-soft: rgba(32, 38, 45, 0.76);
  --aqua: #22b8cf;
  --rose: #e2557a;
  --gold: #e7a13a;
  --violet: #7c5cff;
  --accent-wash-a: color-mix(in srgb, var(--accent) 62%, #22b8cf);
  --accent-wash-b: color-mix(in srgb, var(--accent) 56%, #e2557a);
  --accent-wash-c: color-mix(in srgb, var(--accent) 48%, #e7a13a);
  --glass-shadow: 0 20px 54px rgba(31, 42, 55, 0.14);
  --glass-shadow-soft: 0 10px 28px rgba(31, 42, 55, 0.10);
}

body {
  background:
    radial-gradient(circle at 10% 10%, color-mix(in srgb, var(--accent-wash-a) 26%, transparent) 0 18%, transparent 34%),
    radial-gradient(circle at 88% 12%, color-mix(in srgb, var(--accent-wash-b) 24%, transparent) 0 16%, transparent 32%),
    radial-gradient(circle at 75% 86%, color-mix(in srgb, var(--accent-wash-c) 28%, transparent) 0 18%, transparent 36%),
    linear-gradient(135deg, var(--canvas-top) 0%, color-mix(in srgb, var(--accent-soft) 46%, #eef5f8) 42%, #f7f0ea 100%);
  background-attachment: fixed;
}

body::before,
body::after {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  content: "";
}

body::before {
  background:
    radial-gradient(circle at 34% 22%, rgba(255, 255, 255, 0.56) 0 9%, transparent 24%),
    conic-gradient(from 145deg at 48% 36%,
      color-mix(in srgb, var(--accent) 54%, #ffffff),
      var(--accent-wash-a),
      var(--accent-wash-b),
      var(--accent-wash-c),
      color-mix(in srgb, var(--accent) 46%, #7c5cff),
      color-mix(in srgb, var(--accent) 54%, #ffffff));
  background-size: 130% 130%, 150% 150%;
  background-position: 42% 32%, 50% 48%;
  opacity: 0.22;
  filter: blur(20px) saturate(1.18) contrast(1.03);
  animation: aurora-shift 16s ease-in-out infinite alternate;
}

body::after {
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.34) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.26) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(180deg, transparent, #000 20%, #000 72%, transparent);
  opacity: 0.34;
}

.home-shell {
  --shell-left: 112px;
  --shell-right: 34px;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0 var(--shell-right) 12px var(--shell-left);
}

.site-head {
  min-height: 74px;
  position: relative;
  z-index: 0;
  width: auto;
  margin-left: calc(var(--shell-left) * -1);
  margin-right: calc(var(--shell-right) * -1);
  padding: 10px var(--shell-right) 10px var(--shell-left);
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  justify-content: space-between;
  gap: 28px;
}

.site-head::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.76), rgba(255, 255, 255, 0.48)),
    linear-gradient(100deg, color-mix(in srgb, var(--accent-wash-a) 20%, transparent), color-mix(in srgb, var(--accent-wash-b) 14%, transparent) 58%, color-mix(in srgb, var(--accent-wash-c) 18%, transparent));
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.58), 0 12px 34px rgba(31, 42, 55, 0.10);
  backdrop-filter: blur(22px) saturate(1.28);
  -webkit-backdrop-filter: blur(22px) saturate(1.28);
  content: "";
  pointer-events: none;
}

.site-head::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: -1;
  height: 1px;
  background: rgba(255, 255, 255, 0.58);
  content: "";
  pointer-events: none;
}

.site-head h1 {
  color: color-mix(in srgb, var(--text) 86%, var(--accent) 14%);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.64);
}

.scale-nav {
  left: 0;
  width: 104px;
}

.scale-axis {
  left: 10px;
  width: 2px;
  border-radius: 999px;
  background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--accent) 76%, transparent), transparent);
  box-shadow: 0 0 22px color-mix(in srgb, var(--accent) 28%, transparent);
}

.scale-tick::after {
  border-radius: 999px;
  box-shadow: 0 0 14px color-mix(in srgb, currentColor 24%, transparent);
}

.scale-abbr {
  border-color: rgba(255, 255, 255, 0.64);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.36)),
    color-mix(in srgb, var(--accent) 10%, transparent);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.76),
    0 12px 26px rgba(31, 42, 55, 0.14);
  backdrop-filter: blur(18px) saturate(1.3);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
}

.scale-link:hover .scale-abbr,
.scale-link:focus-visible .scale-abbr,
.scale-link.active .scale-abbr {
  color: var(--accent);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.84),
    0 0 0 4px color-mix(in srgb, var(--accent) 10%, transparent),
    0 16px 34px rgba(31, 42, 55, 0.18);
}

.theme-banner,
.module-card,
.play-grid,
.cloud-grid,
.test-banner,
.test-card {
  border: 1px solid var(--glass-line);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.42)),
    linear-gradient(90deg, color-mix(in srgb, var(--accent) 8%, transparent), transparent);
  box-shadow: var(--glass-shadow-soft);
  backdrop-filter: blur(22px) saturate(1.22);
  -webkit-backdrop-filter: blur(22px) saturate(1.22);
}

.theme-banner {
  width: auto;
  min-width: 0;
  min-height: 44px;
  flex: 0 0 auto;
  justify-content: flex-end;
  gap: 14px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  margin-left: auto;
  padding: 5px 0 5px 18px;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.theme-swatch-row {
  flex: 0 1 auto;
  justify-content: flex-end;
  gap: 8px;
}

.theme-banner-label,
.theme-banner-name {
  display: none;
  color: var(--ink-soft);
}

.theme-swatch {
  width: 40px;
  height: 28px;
  border-color: rgba(255, 255, 255, 0.64);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.46);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.62);
}

.theme-swatch::before {
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.68), 0 5px 12px color-mix(in srgb, var(--theme-swatch) 22%, transparent);
}

.theme-swatch:hover,
.theme-swatch:focus-visible,
.theme-swatch.active {
  border-color: color-mix(in srgb, var(--theme-swatch) 58%, white);
  background: color-mix(in srgb, var(--theme-swatch-soft) 72%, white);
}

.module-layout {
  gap: 16px;
  max-width: none;
  margin-right: 0;
  margin-left: 0;
}

.page-body {
  width: min(1248px, calc(100vw - var(--shell-left) - var(--shell-right) - 28px));
  margin: 18px auto 0;
  transform-origin: 50% 44%;
  backface-visibility: hidden;
  will-change: transform, opacity, filter;
}

.module-card {
  overflow: hidden;
  border-radius: 18px;
  padding: 12px;
  animation: glass-in 420ms cubic-bezier(0.2, 0.72, 0.24, 1) both;
}

.module-heart {
  animation-delay: 40ms;
}

.module-ambition {
  animation-delay: 90ms;
}

.module-verse {
  animation-delay: 140ms;
}

.module-card::before,
.play-grid::before,
.test-card::before {
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.88), transparent);
  content: "";
}

.module-head {
  padding: 2px 2px 10px;
}

.module-head h2 {
  color: color-mix(in srgb, var(--text) 82%, var(--accent) 18%);
}

.module-head p,
.link-section-title,
.question-top,
.test-title span,
.site-footer {
  color: color-mix(in srgb, var(--muted) 86%, var(--accent) 14%);
}

.module-action,
.link-page-btn,
.back-btn,
.btn {
  border-color: rgba(255, 255, 255, 0.58);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.54);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.62), 0 8px 18px rgba(31, 42, 55, 0.08);
  backdrop-filter: blur(12px) saturate(1.18);
  -webkit-backdrop-filter: blur(12px) saturate(1.18);
}

.module-action:hover,
.module-action:focus-visible,
.link-page-btn:hover,
.link-page-btn:focus-visible,
.back-btn:hover,
.back-btn:focus-visible,
.btn:hover,
.btn:focus-visible {
  border-color: color-mix(in srgb, var(--accent) 46%, white);
  background: color-mix(in srgb, var(--accent-soft) 68%, white);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 10%, transparent), 0 10px 22px rgba(31, 42, 55, 0.11);
}

.game-card,
.link-card,
.verse-card,
.play-card,
.cloud-card,
.cloud-tags span,
.cloud-mark,
.option,
.intro-meta span,
.tag-row span,
.progress {
  border-color: rgba(255, 255, 255, 0.58);
  border-radius: 14px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.68), rgba(255, 255, 255, 0.36)),
    color-mix(in srgb, var(--accent-soft) 36%, transparent);
  box-shadow: 0 8px 22px rgba(31, 42, 55, 0.08);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
}

.game-card:hover,
.game-card:focus-visible,
.link-card:hover,
.link-card:focus-visible,
.verse-card:hover,
.verse-card:focus-visible,
.play-card:hover,
.play-card:focus-visible,
.cloud-card:hover,
.option:hover,
.option:focus-visible {
  border-color: color-mix(in srgb, var(--accent) 42%, white);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.48)),
    color-mix(in srgb, var(--accent-soft) 62%, transparent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 8%, transparent), 0 16px 34px rgba(31, 42, 55, 0.13);
}

.game-card {
  border-left-width: 0;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.38)),
    linear-gradient(90deg, color-mix(in srgb, var(--tone) 24%, transparent), transparent 66%);
}

.game-card img,
.play-card-icon,
.test-title img {
  border-color: rgba(255, 255, 255, 0.64);
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(31, 42, 55, 0.16);
}

.game-card img {
  filter: saturate(1.14) contrast(1.04);
}

.play-grid,
.cloud-grid {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  padding: 14px;
}

.play-card {
  min-height: 94px;
}

.play-card-icon {
  background:
    radial-gradient(circle at 28% 22%, rgba(255, 255, 255, 0.32), transparent 34%),
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 34%, #14233f), #101826);
}

.link-tab {
  border-color: rgba(255, 255, 255, 0.46);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.34);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.link-tab:hover,
.link-tab:focus-visible,
.link-tab.active {
  border-color: color-mix(in srgb, var(--accent) 36%, white);
  background: color-mix(in srgb, var(--accent-soft) 64%, white);
  color: color-mix(in srgb, var(--text) 76%, var(--accent) 24%);
}

.link-icon,
.link-mark {
  border-color: rgba(255, 255, 255, 0.58);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.66);
}

.verse-card {
  min-height: 64px;
}

.verse-index {
  color: color-mix(in srgb, var(--accent) 82%, var(--violet) 18%);
}

.verse-index::after {
  background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--accent) 52%, transparent), transparent);
}

.loading-mask {
  border-color: rgba(255, 255, 255, 0.56);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.42);
  backdrop-filter: blur(18px) saturate(1.18);
  -webkit-backdrop-filter: blur(18px) saturate(1.18);
}

.site-footer {
  gap: 8px;
  max-width: none;
  margin-right: 0;
  margin-left: 0;
  padding: 10px 8px 0;
}

.site-footer a {
  padding: 3px 8px;
  border-radius: 999px;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  background: rgba(255, 255, 255, 0.48);
  color: color-mix(in srgb, var(--text) 78%, var(--accent) 22%);
}

.test-stage {
  background-color: #f4f7fb;
  background-image:
    radial-gradient(circle at 16% 10%, color-mix(in srgb, var(--accent) 22%, transparent) 0 18%, transparent 34%),
    radial-gradient(circle at 85% 18%, rgba(226, 85, 122, 0.18) 0 14%, transparent 30%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.74) 0%, rgba(255, 255, 255, 0.54) 52%, rgba(255, 255, 255, 0.38) 100%),
    var(--test-bg);
  background-attachment: fixed;
}

.test-banner,
.test-card {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
}

.btn.primary {
  border-color: color-mix(in srgb, var(--accent) 64%, white);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 92%, white), color-mix(in srgb, var(--accent) 72%, #111827));
  box-shadow: 0 12px 28px color-mix(in srgb, var(--accent) 24%, transparent);
}

.progress {
  overflow: hidden;
  background: rgba(255, 255, 255, 0.44);
}

.progress span {
  background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 58%, var(--aqua)));
  box-shadow: 0 0 18px color-mix(in srgb, var(--accent) 35%, transparent);
  transition: width 260ms ease;
}

.option.selected {
  border-color: color-mix(in srgb, var(--accent) 52%, white);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.48)),
    color-mix(in srgb, var(--accent-soft) 76%, transparent);
  box-shadow: inset 3px 0 0 var(--accent), 0 12px 28px rgba(31, 42, 55, 0.11);
}

@keyframes glass-in {
  from {
    opacity: 0;
    filter: blur(8px);
  }

  to {
    opacity: 1;
    filter: blur(0);
  }
}

@keyframes aurora-shift {
  from {
    background-position: 40% 30%, 48% 45%;
  }

  to {
    background-position: 62% 42%, 56% 54%;
  }
}

.page-orbit-enter,
.page-orbit-enter-next,
.page-orbit-enter-prev,
.page-orbit-leave,
.page-orbit-leave-next,
.page-orbit-leave-prev {
  animation: none;
}

.page-orbit-leave {
  pointer-events: none;
}

.page-orbit-enter .page-body {
  animation: page-body-rise 320ms cubic-bezier(0.2, 0.72, 0.24, 1) both;
}

.page-orbit-enter-next .page-body {
  animation: page-cube-in-next 430ms cubic-bezier(0.18, 0.78, 0.24, 1) both;
}

.page-orbit-leave-next .page-body {
  animation: page-cube-out-next 190ms cubic-bezier(0.4, 0, 1, 1) both;
}

.page-orbit-enter-prev .page-body {
  animation: page-cube-in-prev 430ms cubic-bezier(0.18, 0.78, 0.24, 1) both;
}

.page-orbit-leave-prev .page-body {
  animation: page-cube-out-prev 190ms cubic-bezier(0.4, 0, 1, 1) both;
}

.scale-nav-motion-next .scale-wheel {
  animation: scale-wheel-cube-next 430ms cubic-bezier(0.18, 0.78, 0.24, 1) both;
}

.scale-nav-motion-prev .scale-wheel {
  animation: scale-wheel-cube-prev 430ms cubic-bezier(0.18, 0.78, 0.24, 1) both;
}

@keyframes page-body-rise {
  from {
    opacity: 0;
    filter: blur(6px);
    transform: translate3d(0, 12px, 0) rotateX(3deg);
  }

  to {
    opacity: 1;
    filter: blur(0);
    transform: translate3d(0, 0, 0) rotateX(0);
  }
}

@keyframes page-cube-in-next {
  from {
    opacity: 0;
    filter: blur(8px);
    transform: perspective(1200px) translate3d(0, 44px, 0) rotateX(14deg) scale(0.985);
  }

  to {
    opacity: 1;
    filter: blur(0);
    transform: perspective(1200px) translate3d(0, 0, 0) rotateX(0) scale(1);
  }
}

@keyframes page-cube-out-next {
  from {
    opacity: 1;
    filter: blur(0);
    transform: perspective(1200px) translate3d(0, 0, 0) rotateX(0) scale(1);
  }

  to {
    opacity: 0;
    filter: blur(8px);
    transform: perspective(1200px) translate3d(0, -34px, 0) rotateX(-12deg) scale(0.985);
  }
}

@keyframes page-cube-in-prev {
  from {
    opacity: 0;
    filter: blur(8px);
    transform: perspective(1200px) translate3d(0, -44px, 0) rotateX(-14deg) scale(0.985);
  }

  to {
    opacity: 1;
    filter: blur(0);
    transform: perspective(1200px) translate3d(0, 0, 0) rotateX(0) scale(1);
  }
}

@keyframes page-cube-out-prev {
  from {
    opacity: 1;
    filter: blur(0);
    transform: perspective(1200px) translate3d(0, 0, 0) rotateX(0) scale(1);
  }

  to {
    opacity: 0;
    filter: blur(8px);
    transform: perspective(1200px) translate3d(0, 34px, 0) rotateX(12deg) scale(0.985);
  }
}

@keyframes scale-wheel-cube-next {
  0% {
    filter: blur(0);
    transform: perspective(800px) rotateX(0);
  }

  45% {
    filter: blur(2px);
    transform: perspective(800px) rotateX(-16deg);
  }

  100% {
    filter: blur(0);
    transform: perspective(800px) rotateX(0);
  }
}

@keyframes scale-wheel-cube-prev {
  0% {
    filter: blur(0);
    transform: perspective(800px) rotateX(0);
  }

  45% {
    filter: blur(2px);
    transform: perspective(800px) rotateX(16deg);
  }

  100% {
    filter: blur(0);
    transform: perspective(800px) rotateX(0);
  }
}

@media (max-width: 860px) {
  .scale-nav {
    left: 50%;
    width: min(142px, calc(100vw - 24px));
    transform: translateX(-50%);
  }

  .scale-nav:hover,
  .scale-nav:focus-within {
    transform: translateX(-50%);
  }

  .scale-nav::before {
    border-color: rgba(255, 255, 255, 0.66);
    border-radius: 999px;
    background:
      linear-gradient(90deg, rgba(255, 255, 255, 0.68), rgba(255, 255, 255, 0.36)),
      color-mix(in srgb, var(--accent-soft) 50%, transparent);
    backdrop-filter: blur(18px) saturate(1.2);
    -webkit-backdrop-filter: blur(18px) saturate(1.2);
  }

  .scale-abbr,
  .scale-link.active .scale-abbr {
    background:
      linear-gradient(145deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.42)),
      color-mix(in srgb, var(--accent-soft) 42%, transparent);
  }

  .home-shell {
    --shell-left: 8px;
    --shell-right: 8px;
    padding: 12px 8px calc(74px + env(safe-area-inset-bottom));
  }

  .page-body {
    width: 100%;
    margin-top: 14px;
  }
}

@media (min-width: 861px) and (max-width: 1180px) {
  .home-shell {
    --shell-left: 100px;
    --shell-right: 18px;
    padding-right: var(--shell-right);
    padding-left: var(--shell-left);
  }

  .theme-banner {
    width: auto;
    min-width: 0;
    flex-basis: auto;
  }

  .theme-swatch {
    width: 34px;
    height: 26px;
  }
}

@media (max-width: 620px) {
  body::before {
    background:
      radial-gradient(circle at 32% 20%, rgba(255, 255, 255, 0.58) 0 8%, transparent 24%),
      conic-gradient(from 145deg at 50% 28%,
        color-mix(in srgb, var(--accent) 58%, #ffffff),
        var(--accent-wash-a),
        var(--accent-wash-b),
        var(--accent-wash-c),
        color-mix(in srgb, var(--accent) 46%, #7c5cff),
        color-mix(in srgb, var(--accent) 58%, #ffffff));
    opacity: 0.18;
  }

  .site-head {
    min-height: 58px;
    align-items: center;
    flex-direction: row;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 0;
  }

  .site-brand {
    flex: 0 0 auto;
  }

  .site-head h1 {
    font-size: clamp(26px, 8vw, 34px);
    white-space: nowrap;
  }

  .theme-banner {
    width: auto;
    min-width: 0;
    min-height: 34px;
    flex: 1 1 auto;
    justify-content: flex-end;
    gap: 4px;
    padding: 4px 6px;
    border-radius: 0;
  }

  .theme-banner-label,
  .theme-banner-name {
    display: none;
  }

  .theme-swatch-row {
    justify-content: flex-end;
    gap: 3px;
  }

  .theme-swatch {
    width: 25px;
    height: 22px;
  }

  .module-card,
  .play-grid,
  .test-banner,
  .test-card {
    border-radius: 16px;
  }

  .filing-separator {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .scale-nav,
  .scale-nav::before,
  .scale-axis,
  .scale-wheel,
  .scale-tick,
  .scale-tick::after,
  .scale-abbr,
  .module-card,
  body::before,
  .page-body,
  .scale-nav-motion-next .scale-wheel,
  .scale-nav-motion-prev .scale-wheel,
  .page-orbit,
  .page-orbit-leave {
    transition: none;
    animation: none;
  }

  .scale-nav.is-open + .page-orbit {
    transform: none;
  }
}

/* 20261006 visual refresh. Layout and interaction hooks stay unchanged. */
:root {
  --d20261006-bg-top: #f8fbff;
  --d20261006-bg-mid: #edf5ff;
  --d20261006-bg-bottom: #f7f7fb;
  --d20261006-ink: #1d1d1f;
  --d20261006-secondary: rgba(29, 29, 31, 0.62);
  --d20261006-tertiary: rgba(29, 29, 31, 0.46);
  --d20261006-panel: rgba(255, 255, 255, 0.66);
  --d20261006-panel-strong: rgba(255, 255, 255, 0.82);
  --d20261006-panel-soft: rgba(255, 255, 255, 0.48);
  --d20261006-border: rgba(255, 255, 255, 0.72);
  --d20261006-border-strong: rgba(255, 255, 255, 0.9);
  --d20261006-hairline: rgba(60, 60, 67, 0.12);
  --d20261006-shadow: 0 18px 52px rgba(31, 45, 61, 0.12), 0 4px 16px rgba(31, 45, 61, 0.06);
  --d20261006-shadow-soft: 0 10px 30px rgba(31, 45, 61, 0.09), 0 1px 0 rgba(255, 255, 255, 0.55) inset;
  --d20261006-shadow-tight: 0 6px 18px rgba(31, 45, 61, 0.08), 0 1px 0 rgba(255, 255, 255, 0.68) inset;
  --d20261006-blur: blur(28px) saturate(1.6);
  --d20261006-radius-lg: 28px;
  --d20261006-radius-md: 22px;
  --d20261006-radius-sm: 16px;
  --surface: rgba(255, 255, 255, 0.72);
  --surface-soft: rgba(255, 255, 255, 0.5);
  --line: rgba(255, 255, 255, 0.68);
  --line-strong: rgba(60, 60, 67, 0.18);
  --text: var(--d20261006-ink);
  --muted: var(--d20261006-secondary);
  --shadow: var(--d20261006-shadow);
}

body {
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88) 0%, rgba(249, 252, 255, 0.46) 34%, rgba(246, 247, 251, 0.92) 100%),
    conic-gradient(from 210deg at 52% 18%,
      #d7efff 0deg,
      #f0e6ff 82deg,
      #fff2dc 154deg,
      #dff6ef 226deg,
      #e7efff 306deg,
      #d7efff 360deg);
  background-attachment: fixed;
}

body::before {
  inset: -18vh -14vw;
  z-index: -2;
  background:
    conic-gradient(from 145deg at 46% 38%,
      rgba(116, 185, 255, 0.38),
      rgba(172, 146, 255, 0.28),
      rgba(255, 207, 150, 0.34),
      rgba(126, 218, 188, 0.28),
      rgba(116, 185, 255, 0.38));
  background-size: 120% 120%;
  opacity: 0.76;
  filter: blur(54px) saturate(1.24);
  animation: none;
}

body::after {
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.56), rgba(255, 255, 255, 0.18)),
    linear-gradient(90deg, rgba(255, 255, 255, 0.22) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.18) 1px, transparent 1px);
  background-size: auto, 72px 72px, 72px 72px;
  mask-image: linear-gradient(180deg, #000, rgba(0, 0, 0, 0.72) 62%, transparent);
  opacity: 0.46;
}

.home-shell {
  --shell-left: 118px;
  --shell-right: 34px;
  padding-top: 16px;
  padding-bottom: 18px;
}

.site-head {
  min-height: 72px;
  margin: 0 auto;
  width: min(1248px, calc(100vw - var(--shell-left) - var(--shell-right) - 28px));
  padding: 10px 14px 10px 22px;
  border: 1px solid var(--d20261006-border);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(255, 255, 255, 0.52)),
    rgba(255, 255, 255, 0.52);
  box-shadow: var(--d20261006-shadow-soft);
  backdrop-filter: var(--d20261006-blur);
  -webkit-backdrop-filter: var(--d20261006-blur);
}

.site-head::before,
.site-head::after,
.module-card::before,
.play-grid::before,
.test-card::before {
  content: none;
}

.site-head h1 {
  color: var(--d20261006-ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  font-size: clamp(30px, 3.7vw, 44px);
  font-weight: 760;
  letter-spacing: 0;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.72);
}

.theme-banner {
  min-height: 42px;
  padding: 4px 0 4px 16px;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.theme-swatch-row {
  gap: 9px;
}

.theme-swatch {
  width: 38px;
  height: 28px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.44);
  box-shadow: 0 5px 14px rgba(31, 45, 61, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.theme-swatch::before {
  border: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.62);
}

.theme-swatch:hover,
.theme-swatch:focus-visible,
.theme-swatch.active {
  border-color: rgba(255, 255, 255, 0.96);
  background: rgba(255, 255, 255, 0.62);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--theme-swatch) 20%, transparent), 0 8px 22px rgba(31, 45, 61, 0.12);
}

.page-body {
  margin-top: 18px;
}

.module-layout {
  gap: 18px;
  padding-top: 0;
}

.module-card,
.play-grid,
.cloud-grid,
.test-banner,
.test-card,
.loading-mask,
.cloud-empty {
  border: 1px solid var(--d20261006-border);
  border-radius: var(--d20261006-radius-lg);
  background:
    linear-gradient(180deg, var(--d20261006-panel-strong), var(--d20261006-panel-soft)),
    rgba(255, 255, 255, 0.54);
  box-shadow: var(--d20261006-shadow);
  backdrop-filter: var(--d20261006-blur);
  -webkit-backdrop-filter: var(--d20261006-blur);
}

.module-card {
  padding: 16px;
  overflow: hidden;
}

.module-head {
  min-height: 48px;
  padding: 1px 4px 14px;
}

.module-head h2 {
  color: var(--d20261006-ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  font-size: 21px;
  font-weight: 760;
}

.module-head p,
.link-section-title,
.question-top,
.test-title span,
.site-footer,
.cloud-copy p,
.cloud-meta dt,
.cloud-tags span {
  color: var(--d20261006-secondary);
}

.game-card,
.link-card,
.verse-card,
.play-card,
.cloud-card,
.option,
.intro-meta span,
.tag-row span,
.cloud-tags span,
.cloud-mark,
.link-tab,
.link-icon,
.link-mark {
  border: 1px solid rgba(255, 255, 255, 0.66);
  border-radius: var(--d20261006-radius-md);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.44)),
    rgba(255, 255, 255, 0.42);
  box-shadow: var(--d20261006-shadow-tight);
  backdrop-filter: blur(20px) saturate(1.45);
  -webkit-backdrop-filter: blur(20px) saturate(1.45);
}

.game-card:hover,
.game-card:focus-visible,
.link-card:hover,
.link-card:focus-visible,
.verse-card:hover,
.verse-card:focus-visible,
.play-card:hover,
.play-card:focus-visible,
.cloud-card:hover,
.option:hover,
.option:focus-visible {
  border-color: var(--d20261006-border-strong);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.58)),
    rgba(255, 255, 255, 0.6);
  box-shadow: 0 20px 46px rgba(31, 45, 61, 0.14), 0 0 0 1px rgba(255, 255, 255, 0.38) inset;
}

.game-grid {
  gap: 12px;
}

.game-card {
  min-height: 104px;
  padding: 14px;
  border-left-width: 1px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.44)),
    linear-gradient(135deg, color-mix(in srgb, var(--tone) 18%, transparent), rgba(255, 255, 255, 0.2));
}

.game-card img,
.play-card-icon,
.test-title img,
.link-icon,
.link-mark,
.cloud-mark {
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 18px;
  box-shadow: 0 12px 24px rgba(31, 45, 61, 0.13), inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.game-card b,
.link-card b,
.verse-copy b,
.play-card-copy b,
.cloud-copy h3 {
  color: var(--d20261006-ink);
  font-weight: 680;
}

.play-grid,
.cloud-grid {
  gap: 14px;
  padding: 18px;
  border-radius: var(--d20261006-radius-lg);
}

.play-card {
  min-height: 100px;
  padding: 12px 14px;
}

.play-card-icon {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.54), rgba(255, 255, 255, 0.18)),
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 34%, #7ab8ff), #22324a);
}

.cloud-card {
  padding: 16px;
  gap: 14px;
}

.cloud-tags span {
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
}

.cloud-meta div {
  grid-template-columns: 46px minmax(0, 1fr);
}

.cloud-meta dd,
.cloud-meta code {
  color: rgba(29, 29, 31, 0.78);
}

.module-action,
.link-page-btn,
.back-btn,
.btn {
  min-height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.52)),
    rgba(255, 255, 255, 0.42);
  color: var(--d20261006-ink);
  box-shadow: 0 8px 22px rgba(31, 45, 61, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.module-action:hover,
.module-action:focus-visible,
.link-page-btn:hover,
.link-page-btn:focus-visible,
.back-btn:hover,
.back-btn:focus-visible,
.btn:hover,
.btn:focus-visible {
  border-color: rgba(255, 255, 255, 0.96);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.64)),
    rgba(255, 255, 255, 0.54);
  box-shadow: 0 12px 28px rgba(31, 45, 61, 0.12), 0 0 0 3px color-mix(in srgb, var(--accent) 14%, transparent);
}

.btn.primary {
  border-color: color-mix(in srgb, var(--accent) 36%, white);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--accent) 86%, white), color-mix(in srgb, var(--accent) 76%, #2b4b72));
  color: #fff;
  box-shadow: 0 14px 30px color-mix(in srgb, var(--accent) 24%, transparent), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.link-tab {
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--d20261006-secondary);
}

.link-tab.active,
.link-tab:hover,
.link-tab:focus-visible {
  color: var(--d20261006-ink);
  border-color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.72);
}

.verse-index {
  color: color-mix(in srgb, var(--accent) 78%, #147ce5);
}

.verse-index::after {
  background: linear-gradient(180deg, transparent, rgba(60, 60, 67, 0.18), transparent);
}

.site-footer a {
  background: rgba(255, 255, 255, 0.34);
  border: 1px solid rgba(255, 255, 255, 0.42);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
}

.scale-axis {
  left: 11px;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(60, 60, 67, 0.22), transparent);
  box-shadow: none;
}

.scale-tick::after {
  background: currentColor;
  opacity: 0.46;
  box-shadow: none;
}

.scale-abbr {
  border: 1px solid rgba(255, 255, 255, 0.74);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.46)),
    rgba(255, 255, 255, 0.44);
  color: rgba(29, 29, 31, 0.5);
  box-shadow: 0 12px 30px rgba(31, 45, 61, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.82);
  backdrop-filter: var(--d20261006-blur);
  -webkit-backdrop-filter: var(--d20261006-blur);
}

.scale-link:hover .scale-abbr,
.scale-link:focus-visible .scale-abbr,
.scale-link.active .scale-abbr {
  color: color-mix(in srgb, var(--accent) 72%, #147ce5);
  border-color: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 38px rgba(31, 45, 61, 0.16), 0 0 0 4px rgba(255, 255, 255, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.scale-link.active .scale-abbr {
  border-width: 1px;
}

.test-stage {
  background-color: transparent;
  background-image:
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.28)),
    var(--test-bg);
}

.option.selected {
  border-color: color-mix(in srgb, var(--accent) 34%, white);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.58)),
    color-mix(in srgb, var(--accent-soft) 54%, transparent);
  box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--accent) 34%, transparent), 0 14px 30px rgba(31, 45, 61, 0.12);
}

.progress {
  background: rgba(255, 255, 255, 0.42);
}

.progress span {
  background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 86%, #147ce5), color-mix(in srgb, var(--accent) 55%, #69d2ff));
}

@media (max-width: 860px) {
  .home-shell {
    --shell-left: 10px;
    --shell-right: 10px;
    padding: 10px 10px calc(82px + env(safe-area-inset-bottom));
  }

  .site-head {
    width: 100%;
    border-radius: 24px;
  }

  .page-body {
    width: 100%;
    margin-top: 14px;
  }

  .scale-nav::before {
    border: 1px solid var(--d20261006-border);
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.46)),
      rgba(255, 255, 255, 0.5);
    box-shadow: var(--d20261006-shadow-tight);
    backdrop-filter: var(--d20261006-blur);
    -webkit-backdrop-filter: var(--d20261006-blur);
  }
}

@media (max-width: 620px) {
  .site-head {
    min-height: 62px;
    padding: 8px 10px 8px 14px;
  }

  .site-head h1 {
    font-size: clamp(25px, 7.8vw, 32px);
  }

  .theme-swatch-row {
    gap: 4px;
  }

  .theme-swatch {
    width: 26px;
    height: 22px;
  }

  .module-card,
  .play-grid,
  .cloud-grid,
  .test-banner,
  .test-card,
  .cloud-empty,
  .loading-mask {
    border-radius: 22px;
  }

  .game-card,
  .link-card,
  .verse-card,
  .play-card,
  .cloud-card,
  .option {
    border-radius: 18px;
  }
}

/* Restore the full-width top banner and the original title type context. */
.home-shell {
  padding-top: 0;
}

.site-head {
  min-height: 74px;
  position: relative;
  z-index: 0;
  width: auto;
  margin: 0 calc(var(--shell-right) * -1) 0 calc(var(--shell-left) * -1);
  padding: 10px var(--shell-right) 10px var(--shell-left);
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  justify-content: space-between;
  gap: 28px;
}

.site-head::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.5)),
    linear-gradient(100deg, color-mix(in srgb, var(--accent) 12%, transparent), rgba(255, 255, 255, 0.16) 58%, rgba(255, 229, 191, 0.22));
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.62), 0 12px 34px rgba(31, 45, 61, 0.1);
  backdrop-filter: blur(24px) saturate(1.35);
  -webkit-backdrop-filter: blur(24px) saturate(1.35);
  content: "";
  pointer-events: none;
}

.site-head::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: -1;
  height: 1px;
  background: rgba(255, 255, 255, 0.6);
  content: "";
  pointer-events: none;
}

.site-head h1 {
  color: color-mix(in srgb, var(--text) 86%, var(--accent) 14%);
  font-family: var(--serif-font);
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: 0;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.66);
}

@media (max-width: 860px) {
  .site-head {
    width: auto;
    margin-right: calc(var(--shell-right) * -1);
    margin-left: calc(var(--shell-left) * -1);
    border-radius: 0;
  }
}

@media (max-width: 620px) {
  .site-head {
    min-height: 58px;
    padding: 8px 10px;
  }

  .site-head h1 {
    font-size: clamp(26px, 8vw, 34px);
    white-space: nowrap;
  }
}

/* Widen the usable content area for source, play, and cloud. */
.home-shell {
  --shell-left: 96px;
  --shell-right: 28px;
}

.page-body {
  width: min(1500px, calc(100vw - var(--shell-left) - var(--shell-right) - 8px));
}

@media (min-width: 1600px) {
  .home-shell {
    --shell-left: 104px;
    --shell-right: 40px;
  }
}

@media (max-width: 860px) {
  .home-shell {
    --shell-left: 10px;
    --shell-right: 10px;
  }

  .page-body {
    width: 100%;
  }
}

/* Fixed section banner. */
html {
  scroll-behavior: smooth;
}

.home-shell {
  padding: 94px var(--shell-right) 12px var(--shell-left);
}

.page-orbit {
  transform: none;
  will-change: auto;
}

.site-head {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 88;
  width: auto;
  min-height: 74px;
  margin: 0;
  padding: 10px var(--shell-right) 10px var(--shell-left);
  overflow: hidden;
}

.site-mainbar {
  position: relative;
  z-index: 1;
  display: flex;
  width: 100%;
  min-width: 0;
  align-items: center;
  gap: 18px;
}

.site-brand {
  display: flex;
  min-width: 0;
  flex: 0 0 auto;
  align-items: baseline;
  gap: 10px;
}

.site-brand-kicker {
  color: color-mix(in srgb, var(--text) 52%, var(--accent) 48%);
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.site-head h1 {
  margin: 0;
}

.site-section-nav {
  display: flex;
  min-width: 0;
  flex: 1 1 auto;
  align-items: stretch;
  justify-content: center;
  gap: 6px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}

.site-section-nav::-webkit-scrollbar {
  display: none;
}

.site-section-link {
  display: grid;
  min-width: 104px;
  align-content: center;
  gap: 4px;
  padding: 9px 14px 8px;
  border: 1px solid transparent;
  border-bottom-color: color-mix(in srgb, var(--accent) 18%, transparent);
  border-radius: 4px;
  color: color-mix(in srgb, var(--text) 72%, var(--muted) 28%);
  text-align: center;
  text-decoration: none;
  transition: border-color 180ms ease, background-color 180ms ease, box-shadow 180ms ease, color 180ms ease;
}

.site-section-link span {
  font-size: 15px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.site-section-link b {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.site-section-link:hover,
.site-section-link:focus-visible,
.site-section-link.active {
  border-color: color-mix(in srgb, var(--accent) 38%, rgba(255, 255, 255, 0.68));
  background: color-mix(in srgb, var(--accent-soft) 36%, rgba(255, 255, 255, 0.46));
  color: var(--accent);
  box-shadow: inset 0 -2px 0 var(--accent), 0 12px 28px color-mix(in srgb, var(--accent) 13%, transparent);
  outline: none;
}

.site-section-link:hover b,
.site-section-link:focus-visible b,
.site-section-link.active b {
  color: color-mix(in srgb, var(--text) 60%, var(--accent) 40%);
}

.site-head .theme-banner {
  margin-left: 0;
  padding-left: 0;
}

.page-section {
  scroll-margin-top: 98px;
  animation: section-slide-in 460ms cubic-bezier(0.2, 0.72, 0.24, 1) both;
}

.module-ambition {
  animation-delay: 70ms;
}

.module-verse {
  animation-delay: 120ms;
}

.play-board.page-section,
.cloud-board.page-section {
  animation-delay: 40ms;
}

@keyframes section-slide-in {
  from {
    opacity: 0;
    filter: blur(6px);
    transform: translate3d(0, 18px, 0);
  }

  to {
    opacity: 1;
    filter: blur(0);
    transform: translate3d(0, 0, 0);
  }
}

.app-test .test-stage {
  padding-top: 132px;
}

.test-banner {
  position: fixed;
  top: 14px;
  left: 50%;
  z-index: 92;
  width: min(900px, calc(100% - 24px));
  transform: translateX(-50%);
}

@media (max-width: 1020px) {
  .site-head {
    padding-right: 18px;
  }

  .site-brand {
    gap: 8px;
  }

  .site-section-link {
    min-width: 94px;
    padding-right: 10px;
    padding-left: 10px;
  }

  .site-head .theme-banner {
    flex: 0 0 auto;
  }

  .site-head .theme-swatch {
    width: 34px;
  }
}

@media (max-width: 760px) {
  .home-shell {
    padding-top: 124px;
  }

  .site-head {
    min-height: 108px;
    padding: 8px 10px 10px;
  }

  .site-mainbar {
    flex-wrap: wrap;
    gap: 8px 10px;
  }

  .site-brand {
    flex: 1 1 auto;
  }

  .site-brand-kicker {
    display: none;
  }

  .site-section-nav {
    order: 3;
    flex-basis: 100%;
    justify-content: flex-start;
    padding-bottom: 2px;
  }

  .site-section-link {
    min-width: 86px;
    padding: 8px 10px;
  }

  .site-section-link span {
    font-size: 14px;
  }

  .site-head .theme-banner {
    min-height: 34px;
  }

  .site-head .theme-swatch-row {
    gap: 5px;
  }

  .site-head .theme-swatch {
    width: 30px;
    height: 24px;
  }

  .page-section {
    scroll-margin-top: 128px;
  }
}

@media (max-width: 620px) {
  .site-head h1 {
    font-size: clamp(25px, 7.2vw, 32px);
  }

  .app-test .test-stage {
    padding-top: 154px;
  }

  .test-banner {
    top: 8px;
    width: calc(100% - 16px);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .page-section {
    animation: none;
  }
}

/* Element-like top page tabs. */
@font-face {
  font-family: "EStar STZhongsong";
  src: url("/assets/banner-stzhongsong.woff2?v=20261007-banner-wide-1") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

.home-shell {
  --shell-left: 28px;
  --shell-right: 28px;
  padding-top: 114px;
}

.site-head,
.site-head *,
.test-banner,
.test-banner * {
  font-family: "EStar STZhongsong", "STZhongsong", "华文中宋", serif;
  font-weight: 700;
}

.site-head {
  min-height: 94px;
  border-bottom: 1px solid #dcdfe6;
  background: #ffffff;
  box-shadow: 0 1px 4px rgba(48, 49, 51, 0.06);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.site-head::before,
.site-head::after {
  content: none;
}

.site-mainbar {
  max-width: 1500px;
  margin: 0 auto;
  gap: 24px;
}

.site-brand {
  flex: 0 0 auto;
}

.site-head h1 {
  color: #303133;
  font-family: "EStar STZhongsong", "STZhongsong", "华文中宋", serif;
  font-size: 36px;
  font-weight: 700;
  line-height: 1.3;
  text-shadow: none;
}

.site-page-tabs {
  display: flex;
  min-width: 0;
  flex: 1 1 auto;
  align-self: stretch;
  align-items: center;
  justify-content: center;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.site-page-tabs::-webkit-scrollbar {
  display: none;
}

.site-page-tab {
  position: relative;
  display: inline-flex;
  height: 74px;
  min-width: 140px;
  max-width: 200px;
  flex: 1 0 140px;
  align-items: center;
  justify-content: center;
  padding: 0 28px;
  border: 0;
  color: #606266;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.3;
  white-space: nowrap;
  text-decoration: none;
  transition: color 180ms ease, background-color 180ms ease;
}

.site-page-tab::after {
  position: absolute;
  right: 28px;
  bottom: 0;
  left: 28px;
  height: 2px;
  border-radius: 0;
  background: transparent;
  content: "";
}

.site-page-tab:hover,
.site-page-tab:focus-visible,
.site-page-tab.active {
  color: #409eff;
  background: transparent;
  outline: none;
}

.site-page-tab.active::after {
  background: #409eff;
}

.site-section-nav,
.site-section-link,
.site-brand-kicker {
  display: none;
}

.site-head .theme-banner {
  flex: 0 0 auto;
}

.page-section {
  scroll-margin-top: 118px;
}

.test-banner .back-btn {
  font-size: 20px;
}

.test-banner .test-title h1 {
  font-size: 30px;
  font-weight: 700;
}

.test-banner .test-title p,
.test-banner .test-title span {
  font-size: 17px;
  font-weight: 700;
}

@media (min-width: 1600px) {
  .home-shell {
    --shell-left: 40px;
    --shell-right: 40px;
  }
}

@media (max-width: 1020px) {
  .home-shell {
    --shell-left: 18px;
    --shell-right: 18px;
    padding-top: 148px;
  }

  .site-head {
    min-height: 128px;
    padding: 10px 18px;
  }

  .site-mainbar {
    flex-wrap: wrap;
    gap: 8px 12px;
  }

  .site-brand {
    flex: 1 1 auto;
  }

  .site-page-tabs {
    order: 3;
    flex-basis: 100%;
    align-self: auto;
    border-top: 1px solid #ebeef5;
  }

  .site-page-tab {
    height: 50px;
    min-width: 0;
    max-width: none;
    flex: 1 1 0;
    padding: 0 18px;
    font-size: 24px;
  }

  .site-page-tab::after {
    right: 18px;
    left: 18px;
  }

  .page-section {
    scroll-margin-top: 152px;
  }
}

@media (max-width: 620px) {
  .home-shell {
    --shell-left: 10px;
    --shell-right: 10px;
  }

  .site-head {
    padding-right: 10px;
    padding-left: 10px;
  }

  .site-head h1 {
    font-size: 30px;
  }

  .site-page-tab {
    font-size: 22px;
    padding-right: 10px;
    padding-left: 10px;
  }

  .site-head .theme-swatch-row {
    gap: 4px;
  }

  .site-head .theme-swatch {
    width: 22px;
  }

  .test-banner .back-btn {
    font-size: 18px;
  }

  .test-banner .test-title h1 {
    font-size: 26px;
  }

  .test-banner .test-title p,
  .test-banner .test-title span {
    font-size: 16px;
  }
}

/* One viewport per main page, with the fixed banner included in its height. */
.app-main {
  --banner-height: 71.06px;
  position: relative;
  height: 100vh;
  height: 100dvh;
  min-height: 0;
  overflow: hidden;
}

.app-main .site-head {
  height: var(--banner-height);
  min-height: 0;
  padding-top: 0;
  padding-bottom: 0;
}

.app-main .site-mainbar {
  height: 100%;
  min-height: 0;
  max-width: none;
}

.app-main .site-brand {
  height: 100%;
  min-height: 0;
  align-items: center;
  gap: 10px;
}

.app-main .site-brand-icon {
  display: block;
  width: 80px;
  height: 80px;
  flex: 0 0 80px;
  object-fit: contain;
}

@media (max-width: 1020px) {
  .app-main .site-brand-icon {
    width: 68px;
    height: 68px;
    flex-basis: 68px;
  }
}

.app-main .site-page-tabs,
.app-main .site-page-tab {
  height: 100%;
}

@media (min-width: 1021px) {
  .app-main .site-head {
    padding-right: 28px;
    padding-left: 28px;
  }

  .app-main .site-mainbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 0;
  }

  .app-main .site-brand {
    grid-column: 1;
    justify-self: start;
  }

  .app-main .site-page-tabs {
    grid-column: 2;
    width: min(600px, calc(100vw - 560px));
  }
}

.app-main .page-orbit {
  position: relative;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

.app-main .home-shell {
  display: flex;
  height: 100%;
  min-height: 0;
  padding: calc(var(--banner-height) + 12px) var(--shell-right) 12px var(--shell-left);
}

.app-main .page-body {
  display: flex;
  width: 100%;
  height: 100%;
  min-height: 0;
  flex-direction: column;
  gap: 8px;
  margin-top: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  scrollbar-width: thin;
}

.app-main .module-layout {
  min-height: 0;
  flex: 1 1 0;
  grid-template-rows: minmax(196px, 38fr) minmax(0, 62fr);
  gap: 12px;
  padding: 0;
}

.app-main .module-card {
  display: flex;
  min-height: 0;
  flex-direction: column;
  padding: 12px;
}

.app-main .module-head {
  min-height: 44px;
  flex: 0 0 auto;
  padding: 0 2px 8px;
}

.app-main .module-head h2 {
  font-size: 20px;
}

.app-main .module-body {
  min-height: 0;
  flex: 1 1 auto;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  scrollbar-width: thin;
}

.app-main .game-grid {
  gap: 8px;
}

.app-main .game-card {
  min-height: 72px;
  grid-template-columns: 44px minmax(0, 1fr);
  padding: 8px;
  gap: 8px;
}

.app-main .game-card img {
  width: 44px;
  height: 44px;
}

.app-main .game-card b {
  font-size: 16px;
}

.app-main .game-card small {
  margin-top: 3px;
  font-size: 12px;
}

.app-main .link-panel {
  gap: 8px;
}

.app-main .link-grid {
  gap: 6px;
}

.app-main .link-card {
  min-height: 44px;
  padding: 5px 7px;
}

.app-main .link-icon {
  width: 28px;
  height: 28px;
}

.app-main .verse-list {
  gap: 6px;
}

.app-main .verse-card {
  min-height: 48px;
  padding: 5px 8px;
}

.app-main .verse-index,
.app-main .verse-copy {
  min-height: 36px;
}

.app-main .site-footer {
  flex: 0 0 auto;
  margin-top: 0;
  padding: 0;
}

.app-main .play-board,
.app-main .cloud-board {
  min-height: 0;
  padding-top: 0;
}

.app-main .page-orbit-enter .page-body,
.app-main .page-orbit-leave .page-body,
.app-main .page-section {
  animation: none;
}

.app-main .page-orbit-leave {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.app-main .page-orbit {
  animation: none;
}

.app-main .page-orbit-enter,
.app-main .page-orbit-leave {
  will-change: transform, opacity;
}

@media (max-width: 1020px) {
  .app-main {
    --banner-height: 95.744px;
  }

  .app-main .site-mainbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr) 36px;
    gap: 0 12px;
    padding: 4px 0;
  }

  .app-main .site-page-tabs {
    grid-column: 1 / -1;
    align-self: stretch;
  }
}

@media (max-width: 860px) {
  .app-main .module-layout {
    flex: 0 0 auto;
    grid-template-rows: auto;
  }

  .app-main .module-body {
    overflow-y: visible;
  }

  .app-main .game-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  .app-main .page-orbit {
    animation: none;
  }
}

/* Content items use small corners; tags and category tabs keep their own shape. */
.module-card,
.game-card,
.game-card img,
.link-card,
.link-icon,
.link-mark,
.verse-card,
.play-grid,
.play-card,
.play-card-icon,
.cloud-grid,
.cloud-card,
.cloud-mark,
.loading-mask,
.cloud-empty,
.test-banner,
.test-title img,
.test-card,
.radar-panel,
.option,
.module-action,
.link-page-btn,
.back-btn,
.btn,
.site-footer a,
.theme-swatch,
.theme-swatch::before,
.progress,
.progress span,
.dimension-bar i,
.dimension-bar em {
  border-radius: 6px;
}

.app-main[data-page="source"],
.app-main .page-source {
  --accent: #c54d61;
  --accent-soft: #faebef;
}

.app-main[data-page="play"],
.app-main .page-play {
  --accent: #238768;
  --accent-soft: #e6f5ed;
}

.app-main[data-page="cloud"],
.app-main .page-cloud {
  --accent: #327cbd;
  --accent-soft: #e8f1fc;
}

.app-main .page-source {
  background: linear-gradient(160deg, #fdf3f5, #f6f7fa 64%, #f4f6fa);
}

.app-main .page-play {
  background: linear-gradient(160deg, #eaf7ef, #f6faf7 64%, #eff5f3);
}

.app-main .page-cloud {
  background: linear-gradient(160deg, #edf4ff, #f6f8fc 64%, #f0f4fb);
}

.site-page-tab {
  font-size: 24px;
}

.site-page-tab[data-page-route="source"] {
  --tab-color: #c54d61;
}

.site-page-tab[data-page-route="play"] {
  --tab-color: #238768;
}

.site-page-tab[data-page-route="cloud"] {
  --tab-color: #327cbd;
}

.site-page-tab,
.site-page-tab:hover,
.site-page-tab:focus-visible,
.site-page-tab.active {
  color: #303133;
  background: transparent;
}

.site-page-tab::after {
  right: 0;
  left: 0;
  height: 4px;
}

.site-page-tab.active::after {
  background: var(--tab-color);
}

.site-head h1 {
  font-size: 42px;
  line-height: 1.2;
}

@media (max-width: 1020px) {
  .site-head h1 {
    font-size: 38px;
  }

  .site-page-tab {
    font-size: 22px;
  }
}

@media (max-width: 620px) {
  .site-head h1 {
    font-size: 34px;
  }

  .site-page-tab {
    font-size: 20px;
  }
}

.module-head h2 {
  font-family: "EStar STZhongsong", "STZhongsong", "华文中宋", serif;
  white-space: nowrap;
}

.site-page-tabs {
  position: relative;
}

.site-page-tab::after {
  content: none;
}

.site-page-indicator {
  position: absolute;
  bottom: 0;
  left: 0;
  z-index: 1;
  height: 4px;
  border-radius: 0;
  pointer-events: none;
  will-change: transform, width, background-color;
}

/* Source modules get softer framing while concrete entries retain small corners. */
.app-main .page-source .module-layout {
  grid-template-rows: minmax(214px, 35fr) minmax(0, 65fr);
}

.app-main .page-source .module-card {
  border-color: rgba(0, 0, 0, 0.025);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 4px 10px 30px -8px rgba(0, 0, 0, 0.10);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.app-main .page-source .module-head {
  min-height: 38px;
  padding-bottom: 8px;
}

.app-main .page-source .module-head > div {
  display: flex;
  min-width: 0;
  align-items: baseline;
  gap: 12px;
}

.app-main .page-source .module-head h2 {
  font-size: 24px;
  line-height: 1.2;
}

.app-main .page-source .module-head p {
  margin-top: 0;
  font-size: 14px;
}

.app-main .page-source .game-card,
.app-main .page-source .link-card,
.app-main .page-source .verse-card {
  border-color: rgba(0, 0, 0, 0.02);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 2px 5px 16px -3px rgba(0, 0, 0, 0.055);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.app-main .page-source .game-card:hover,
.app-main .page-source .game-card:focus-visible,
.app-main .page-source .link-card:hover,
.app-main .page-source .link-card:focus-visible,
.app-main .page-source .verse-card:hover,
.app-main .page-source .verse-card:focus-visible {
  border-color: rgba(0, 0, 0, 0.045);
  background: #ffffff;
  box-shadow: 2px 7px 20px -4px rgba(0, 0, 0, 0.08);
}

.app-main .page-source .game-card img,
.app-main .page-source .link-icon {
  border-color: rgba(48, 49, 51, 0.05);
  box-shadow: none;
}

.app-main .page-source .game-card {
  min-height: 74px;
  padding-top: 6px;
  padding-bottom: 6px;
}

.app-main .page-source .game-card b {
  font-size: 18px;
}

.app-main .page-source .game-card small {
  font-size: 14px;
}

.app-main .page-source .link-panel {
  gap: 6px;
}

.app-main .page-source .link-tab {
  min-height: 32px;
  font-size: 15px;
}

.app-main .page-source .link-grid,
.app-main .page-source .verse-list {
  gap: 5px;
}

.app-main .page-source .link-card {
  min-height: 48px;
  padding-top: 4px;
  padding-bottom: 4px;
}

.app-main .page-source .link-card b,
.app-main .page-source .verse-copy b {
  font-size: 16px;
  line-height: 1.35;
}

.app-main .page-source .link-copy small {
  font-size: 13px;
  line-height: 1.25;
}

.app-main .page-source .link-pager,
.app-main .page-source .link-page-btn {
  font-size: 13px;
}

.app-main .page-source .link-page-btn {
  min-height: 28px;
}

.app-main .page-source .verse-card {
  min-height: 54px;
  padding-top: 4px;
  padding-bottom: 4px;
}

.app-main .page-source .verse-copy small {
  font-size: 14px;
  line-height: 1.25;
}

.app-main .page-source .verse-index {
  font-size: 22px;
}

@media (max-height: 780px) {
  .app-main .page-source .module-card {
    padding: 10px;
  }
}

@media (max-width: 860px) {
  .app-main .page-source .module-layout {
    grid-template-rows: auto;
  }
}

.app-main .play-board,
.app-main .cloud-board {
  display: flex;
  min-height: 0;
  flex: 1 1 0;
  flex-direction: column;
}

.app-main .play-board > .module-head,
.app-main .cloud-board > .module-head {
  min-height: 38px;
  padding-bottom: 8px;
}

.app-main .play-board .module-head > div,
.app-main .cloud-board .module-head > div {
  display: flex;
  min-width: 0;
  align-items: baseline;
  gap: 12px;
}

.app-main .play-board .module-head h2,
.app-main .cloud-board .module-head h2 {
  font-size: 24px;
  line-height: 1.2;
}

.app-main .play-board .module-head p,
.app-main .cloud-board .module-head p {
  margin-top: 0;
  font-size: 14px;
}

.app-main .play-grid,
.app-main .cloud-grid,
.app-main .cloud-empty,
.app-main .cloud-board > .loading-mask {
  min-height: 0;
  flex: 1 1 0;
  padding: 14px;
  border-color: rgba(0, 0, 0, 0.025);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 4px 10px 30px -8px rgba(0, 0, 0, 0.10);
  overflow-y: auto;
  overscroll-behavior-y: contain;
  scrollbar-width: thin;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.app-main .play-grid {
  grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr));
  grid-auto-rows: 100px;
}

.app-main .cloud-grid {
  grid-template-columns: repeat(auto-fill, minmax(min(360px, 100%), 1fr));
  grid-auto-rows: auto;
  align-items: start;
}

.app-main .play-grid,
.app-main .cloud-grid {
  align-content: start;
}

.app-main .play-card,
.app-main .cloud-card {
  border-color: rgba(0, 0, 0, 0.02);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 2px 5px 16px -3px rgba(0, 0, 0, 0.055);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.app-main .play-card {
  grid-template-columns: 60px minmax(0, 1fr);
  min-height: 100px;
  height: 100px;
}
.app-main .play-card-copy { min-width:0; display:grid; gap:5px; }
.app-main .play-card-copy b { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.app-main .play-card-copy small { color:var(--muted,#909399); font-size:13px; line-height:1.4; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.mini-game-message { color:var(--muted,#909399); font-size:14px; margin:12px; grid-column:1/-1; }

.app-main .play-card-icon {
  width: 60px;
  height: 60px;
  padding: 0;
  border: 0;
  background: transparent;
}

.app-main .cloud-card {
  grid-template-rows: auto auto auto;
  gap: 16px;
  padding: 20px;
  border: 0;
  border-radius: 11px;
  background: #ffffff;
  box-shadow: 17px 20px 40px rgba(0, 0, 0, 0.16);
}

.app-main .cloud-card-main {
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 14px;
}

.app-main .cloud-file-icon {
  display: block;
  width: 56px;
  height: 56px;
  object-fit: contain;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.app-main .cloud-grid {
  gap: 24px;
  padding: 20px 28px 48px 20px;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.app-main .cloud-meta dd {
  white-space: normal;
  overflow-wrap: anywhere;
}

.app-main .cloud-meta code {
  font-size: 14px;
}

.app-main .cloud-download.btn {
  width: auto;
  min-width: 96px;
  height: 44px;
  min-height: 44px;
  padding: 0 30px;
  border: 0;
  border-radius: 22px;
  background: #000000;
  color: #ffffff;
  font-size: 17px;
  font-weight: 600;
  line-height: 20px;
  box-shadow: none;
  justify-self: center;
}

.app-main .cloud-download > span {
  letter-spacing: 4px;
  padding-left: 4px;
}

.app-main .cloud-download:hover,
.app-main .cloud-download:focus-visible {
  background: #292929;
  color: #ffffff;
  box-shadow: none;
}

.app-main .cloud-download:focus-visible {
  outline: 3px solid #0071e3;
  outline-offset: 3px;
}

.app-main .play-card:hover,
.app-main .play-card:focus-visible {
  border-color: rgba(0, 0, 0, 0.045);
  background: #ffffff;
  box-shadow: 2px 7px 20px -4px rgba(0, 0, 0, 0.08);
}

.app-main .cloud-card:hover {
  background: #ffffff;
  box-shadow: 17px 20px 40px rgba(0, 0, 0, 0.16);
}

.app-main .play-card-icon,
.app-main .cloud-mark {
  box-shadow: none;
}

.app-main .play-card-copy b,
.app-main .cloud-copy h3 {
  font-size: 20px;
}

.app-main .cloud-copy p,
.app-main .cloud-meta dd {
  font-size: 15px;
}

.app-main .cloud-tags span,
.app-main .cloud-meta dt {
  font-size: 13px;
}

.app-main .btn {
  font-size: 16px;
}

.app-test .test-banner,
.app-test .test-card {
  border-color: rgba(0, 0, 0, 0.025);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 4px 10px 30px -8px rgba(0, 0, 0, 0.10);
}

/* Desktop tracks use the available panel height; mobile keeps natural rows. */
@media (min-width: 861px) {
  .app-main .page-source .module-layout {
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  }

  .app-main .page-source .game-grid,
  .app-main .page-source .link-panel,
  .app-main .page-source .verse-list {
    min-height: 100%;
  }

  .app-main .page-source .game-grid {
    grid-auto-rows: minmax(74px, 1fr);
  }

  .app-main .page-source .link-panel {
    grid-template-rows: auto minmax(0, 1fr) auto;
  }

  .app-main .page-source .link-grid {
    grid-auto-rows: minmax(48px, 1fr);
    gap: 4px;
  }

  .app-main .page-source .verse-list {
    grid-auto-rows: minmax(54px, 1fr);
  }

  .app-main .page-source .game-card {
    grid-template-columns: 56px minmax(0, 1fr);
    padding: 8px 12px;
    gap: 12px;
  }

  .app-main .page-source .game-card img {
    width: 56px;
    height: 56px;
  }

  .app-main .page-source .link-card {
    gap: 12px;
    padding-right: 12px;
    padding-left: 12px;
  }

  .app-main .page-source .link-icon {
    width: 34px;
    height: 34px;
  }

  .app-main .page-source .verse-card {
    padding-right: 12px;
    padding-left: 12px;
  }
}

@media (min-width: 1100px) and (min-height: 820px) {
  .app-main .page-source .game-card b {
    font-size: 20px;
  }

  .app-main .page-source .link-card b,
  .app-main .page-source .verse-copy b {
    font-size: 18px;
  }

  .app-main .page-source .link-copy small,
  .app-main .page-source .verse-copy small {
    font-size: 15px;
  }
}

@media (min-width: 1200px) {
  .app-main .page-source .module-layout {
    grid-template-rows: minmax(228px, 35fr) minmax(0, 65fr);
  }

  .app-main .page-source .module-heart {
    grid-column: 1;
    grid-row: 1;
  }

  .app-main .page-source .module-ambition {
    grid-column: 1;
    grid-row: 2;
  }

  .app-main .page-source .module-verse {
    grid-column: 2;
    grid-row: 1 / 3;
  }
}

@media (min-width: 1200px) and (max-width: 1599px) {
  .app-main .page-source .game-card {
    grid-template-columns: 44px minmax(0, 1fr);
    padding-right: 8px;
    padding-left: 8px;
    gap: 8px;
  }

  .app-main .page-source .game-card img {
    width: 44px;
    height: 44px;
  }

  .app-main .page-source .game-card b {
    font-size: 18px;
  }
}

@media (min-width: 1600px) and (min-height: 950px) {
  .app-main .page-source .game-card {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .app-main .page-source .game-card img {
    width: 72px;
    height: 72px;
  }

  .app-main .page-source .game-card b {
    font-size: 22px;
  }

  .app-main .page-source .link-card b,
  .app-main .page-source .verse-copy b {
    font-size: 20px;
  }

  .app-main .page-source .game-card small,
  .app-main .page-source .link-copy small,
  .app-main .page-source .verse-copy small {
    font-size: 16px;
  }

  .app-main .page-source .link-icon {
    width: 40px;
    height: 40px;
  }
}

/* Transparent brush lettering in the shared main-page banner. */
.app-main .site-brand-title {
  display: flex;
  align-items: center;
  gap: 0;
  margin: 0;
  white-space: nowrap;
  line-height: 1;
}

.app-main .site-brand-calligraphy {
  display: block;
  width: 112px;
  height: 56px;
  flex: 0 0 auto;
  object-fit: contain;
}

.app-main .site-brand-section {
  flex: 0 0 auto;
}

.app-main .site-brand-divider {
  display: block;
  width: 1px;
  height: 28px;
  margin-left: 10px;
  flex: 0 0 1px;
  background: #c0c4cc;
}

@media (max-width: 1020px) {
  .app-main .site-brand-calligraphy {
    width: 92px;
    height: 46px;
  }

  .app-main .site-brand-divider {
    height: 24px;
    margin-left: 6px;
  }
}

.app-main .site-page-tab {
  flex-direction: column;
  gap: 0;
}

.app-main .site-page-tab-subtitle {
  color: #909399;
  font-family: Arial, sans-serif;
  font-size: 11px;
  font-weight: 400;
  line-height: 16px;
  letter-spacing: 3px;
  padding-left: 3px;
}

@media (max-width: 1020px) {
  .app-main {
    --banner-height: 112px;
  }

  .app-main .site-mainbar {
    grid-template-rows: minmax(0, 1fr) 52px;
  }

  .app-main .site-page-tab-subtitle {
    font-size: 10px;
    line-height: 14px;
  }
}

/* Real document navigation keeps backend visit tracing and vertical page motion. */
.question-load-status { min-height:24px; margin-top:12px; color:var(--muted); font-size:13px; text-align:center; }
.question-load-status .btn { min-height:28px; padding:2px 10px; }
.test-card[aria-busy="true"] .option:disabled { opacity:1; cursor:wait; }
@view-transition { navigation:auto; }
.app-main .page-orbit { view-transition-name:page-content; }
::view-transition-old(root), ::view-transition-new(root) { animation:none; }
::view-transition-group(page-content) { animation-duration:480ms; animation-timing-function:cubic-bezier(0.45,0,0.2,1); overflow:clip; }
::view-transition-old(page-content), ::view-transition-new(page-content) { mix-blend-mode:normal; animation-duration:480ms; animation-timing-function:cubic-bezier(0.45,0,0.2,1); animation-fill-mode:both; }
html[data-page-motion="next"]::view-transition-old(page-content) { animation-name:main-page-out-up; }
html[data-page-motion="next"]::view-transition-new(page-content) { animation-name:main-page-in-up; }
html[data-page-motion="prev"]::view-transition-old(page-content) { animation-name:main-page-out-down; }
html[data-page-motion="prev"]::view-transition-new(page-content) { animation-name:main-page-in-down; }
@keyframes main-page-out-up { to { transform:translateY(-100%); } }
@keyframes main-page-in-up { from { transform:translateY(100%); } }
@keyframes main-page-out-down { to { transform:translateY(100%); } }
@keyframes main-page-in-down { from { transform:translateY(-100%); } }
@media(prefers-reduced-motion:reduce) {
  @view-transition { navigation:none; }
  ::view-transition-group(page-content), ::view-transition-old(page-content), ::view-transition-new(page-content) { animation:none; }
}
