@charset "UTF-8";

:root {
  color-scheme: dark;

  /* Codex-Harmonized Airy Deep Charcoal, Teal & Cool Slate Ground */
  --ground-base: #192024;
  --ground-charcoal: #25292b;
  --ground-teal: #202d32;

  /* Primary Typography Inks */
  --ink: #f6f0e4;
  --ink-soft: #e6dfd2;
  --muted: #c8c1b4;
  --muted-soft: #9fa4a2;

  /* Harmonized Four-Realm Accents */
  --gold: #e6c38c;
  --ivory: #f8f2e6;
  --ice: #9ad4e8;
  --silver: #e2f4fb;
  --parchment-gold: #deb885;
  --paper: #f2e8d7;
  --sage: #98baa9;
  --natural-silver: #dce8e2;

  /* Mechanical Clock Tokens (Direct Page 1 Continuity) */
  --clock-ink: #f1e4cf;
  --clock-face: #23211d;

  /* Typography Stack */
  --serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STZhongsong", "STSong", SimSun, Georgia, serif;
  --brand-serif: "Cormorant Garamond", "Georgia", "Times New Roman", "Noto Serif SC", serif;
  --sans: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --mono: "Bahnschrift", "Aptos Mono", "SFMono-Regular", Consolas, monospace;

  /* Spatial Rhythm (Full-width aligned framing with crisp 1-screen dvh budget) */
  --edge-x: clamp(18px, 2.2vw, 34px);
  --edge-y: clamp(8px, 1.25dvh, 18px);

  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  min-height: 100%;
  background-color: var(--ground-base);
  color: var(--ink);
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  color: inherit;
  font: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

h1, h2, h3, p {
  margin: 0;
}

[tabindex="-1"]:focus {
  outline: none;
}

:focus-visible {
  outline: 2px solid #f7dfad;
  outline-offset: 4px;
  border-radius: 6px;
}

::selection {
  background: rgba(230, 195, 140, 0.34);
  color: #fff9ee;
}

.sr-only,
.skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link:focus {
  position: fixed;
  z-index: 80;
  top: 12px;
  left: 12px;
  padding: 8px 14px;
  border-radius: 4px;
  background: var(--ivory);
  color: #161a1c;
  font-size: 0.85rem;
  font-weight: 600;
}

/* ============================================================================
   1. Multi-Depth Mineral Space Backdrop
      AGY Vertical Double Helix & Horizontal Flows recolored in Codex's
      airy charcoal, petrol teal & cool blue-grey luminous depth!
   ============================================================================ */
.space-backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.space-atmosphere, html[data-travel] body::before {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 58% 52% at 9% 21%, rgba(86, 74, 58, 0.60) 0%, transparent 50%),
    radial-gradient(ellipse 70% 62% at 92% 18%, rgba(72, 108, 122, 0.72) 0%, transparent 58%),
    radial-gradient(ellipse 58% 52% at 52% 48%, rgba(50, 74, 84, 0.42) 0%, transparent 64%),
    radial-gradient(ellipse 56% 50% at 12% 88%, rgba(72, 62, 52, 0.46) 0%, transparent 56%),
    radial-gradient(ellipse 64% 56% at 76% 88%, rgba(72, 92, 82, 0.50) 0%, transparent 56%),
    linear-gradient(124deg, #2a2f32 0%, #1d262b 48%, #243339 100%);
}

.space-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

/* Tactile fine mineral slate grain */
.space-grain {
  position: absolute;
  inset: 0;
  opacity: 0.030;
  mix-blend-mode: overlay;
  background-image: url("./grain-1x.png");
  background-image: image-set(url("./grain-1x.png") 1x, url("./grain-2x.png") 2x);
  background-size: 160px 160px;
}

/* Very gentle airy vignette — never smothers the lifted slate-teal luminance */
.space-vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 96% 92% at 50% 48%, transparent 62%, rgba(13, 18, 21, 0.30) 100%),
    linear-gradient(180deg, rgba(16, 21, 24, 0.18) 0%, transparent 14%, transparent 88%, rgba(14, 19, 22, 0.28) 100%);
}

/* ============================================================================
   2. Main Shell & Top Continuity Header (Locked M Mark + 4-Digit Flip Clock)
   ============================================================================ */
.hub-shell {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: var(--edge-y) var(--edge-x) clamp(8px, 1.15dvh, 16px);
}

.hub-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  max-width: 1680px;
  width: 100%;
  margin-inline: auto;
  padding-bottom: clamp(6px, 0.85dvh, 10px);
  border-bottom: 1px solid rgba(232, 224, 210, 0.14);
}

.brand-group {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 36px;
}

.brand-return {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 4px 6px 4px 2px;
  border-radius: 6px;
  transition: opacity 240ms ease;
}

.brand-mark {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  transition: filter 320ms ease, transform 320ms ease;
}

.brand-return:hover .brand-mark {
  filter: drop-shadow(0 0 12px rgba(230, 195, 140, 0.56));
  transform: translateY(-1px);
}

.wordmark {
  color: var(--ink-soft);
  font: 500 clamp(1.02rem, 1.32vw, 1.22rem)/1.15 "Aptos", "Helvetica Neue", var(--sans);
  letter-spacing: -0.025em;
  white-space: nowrap;
  transition: color 240ms ease;
}

.wordmark span {
  color: #b4b2aa;
}

.brand-return:hover .wordmark {
  color: var(--ivory);
}

.brand-sep {
  width: 1px;
  height: 14px;
  background: rgba(236, 228, 210, 0.34);
  flex-shrink: 0;
}

.hub-badge {
  font-size: 0.80rem;
  letter-spacing: 0.16em;
  color: var(--muted);
  white-space: nowrap;
}

/* Authentic Page 1 4-Digit Mechanical Split-Flap Clock */
.clock {
  display: grid;
  justify-items: end;
  gap: 4px;
  flex-shrink: 0;
}

.clock-digits {
  display: flex;
  align-items: center;
  gap: 4px;
}

.digit {
  position: relative;
  isolation: isolate;
  display: block;
  width: clamp(1.24rem, 1.62vw, 1.56rem);
  height: 1.80rem;
  border: 1px solid rgba(230, 195, 140, 0.38);
  border-radius: 4px;
  background: linear-gradient(#2e2a24 0%, #24221e 49%, #262420 51%, #1b1b19 100%);
  box-shadow: 0 3px 9px rgba(8, 12, 14, 0.40), inset 0 1px rgba(255, 248, 236, 0.10);
  color: var(--clock-ink);
  font: 500 1.04rem/calc(1.80rem - 2px) var(--mono);
  font-variant-numeric: tabular-nums;
  text-align: center;
  perspective: 93px;
}

.digit::after {
  content: "";
  position: absolute;
  z-index: 3;
  top: 50%;
  height: 1px;
  inset-inline: 0;
  background: rgba(11, 13, 14, 0.72);
}

.clock-divider {
  color: #d2ba97;
  font: 500 0.92rem/1 var(--mono);
  margin-inline: 1px;
}

.clock-date {
  color: #c2beb3;
  font-size: 0.70rem;
  line-height: 1.3;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.flip-leaf {
  position: absolute;
  inset-inline: 0;
  height: 50%;
  overflow: hidden;
  background: var(--clock-face);
  backface-visibility: hidden;
}

.flip-leaf span {
  display: block;
  height: 1.80rem;
  transform: translateY(-1px);
}

.flip-leaf--top {
  z-index: 2;
  top: 0;
  border-radius: 3px 3px 0 0;
  transform-origin: 50% 100%;
  animation: leaf-away 235ms cubic-bezier(.45, .08, .79, .55) both;
}

.flip-leaf--hold,
.flip-leaf--bottom {
  bottom: 0;
  border-radius: 0 0 3px 3px;
}

.flip-leaf--hold span,
.flip-leaf--bottom span {
  transform: translateY(-50%);
}

.flip-leaf--bottom {
  z-index: 2;
  transform-origin: 50% 0;
  animation: leaf-arrive 260ms 235ms cubic-bezier(.16, .55, .41, 1) both;
}

@keyframes leaf-away {
  to { transform: rotateX(-90deg); filter: brightness(.72); }
}

@keyframes leaf-arrive {
  from { transform: rotateX(90deg); filter: brightness(.65); }
}

/* ============================================================================
   3. Centered Two-Line Welcome Guide: 欢迎来到 / mentorantem
   ============================================================================ */
.hub-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: clamp(14px, 1.9dvh, 22px);
  padding-top: clamp(10px, 1.8dvh, 18px);
  padding-bottom: clamp(6px, 1.0dvh, 14px);
  max-width: 1680px;
  width: 100%;
  margin-inline: auto;
}

.hub-welcome {
  position: relative;
  isolation: isolate;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(2px, 0.35dvh, 5px);
  padding-block: 0;
  margin-top: 0;
}

/* Edgeless dark radial protective vignette keeping enlarged welcome crisp over golden helix */
.hub-welcome::before {
  content: "";
  position: absolute;
  inset: -16px -108px -20px;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(
    ellipse 58% 70% at 52% 58%,
    rgba(19, 26, 31, 0.78) 0%,
    rgba(19, 26, 31, 0.48) 46%,
    transparent 78%
  );
}

.welcome-ornament {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  opacity: 0.88;
}

.ornament-rule {
  width: clamp(38px, 5.4vw, 74px);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(230, 195, 140, 0.72));
}

.ornament-rule--right {
  background: linear-gradient(90deg, rgba(154, 212, 232, 0.72), transparent);
}

.ornament-diamond {
  width: 5px;
  height: 5px;
  transform: rotate(45deg);
  border: 1px solid rgba(248, 242, 230, 0.78);
  background: rgba(230, 195, 140, 0.42);
}

.welcome-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(1px, 0.2dvh, 4px);
  filter: drop-shadow(0 4px 22px rgba(10, 16, 20, 0.78));
}

.welcome-cn {
  display: block;
  font-family: var(--serif);
  font-size: clamp(32px, min(3.4vw, 4.45dvh), 46px);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: 0.24em;
  text-indent: 0.24em;
  color: #faf4e8;
}

.welcome-brand {
  display: block;
  font-family: var(--brand-serif);
  font-size: clamp(56px, min(6.2vw, 7.75dvh), 82px);
  font-weight: 500;
  line-height: 0.96;
  letter-spacing: 0.085em;
  text-indent: 0.085em;
  color: transparent;
  background: linear-gradient(102deg, #e9c996 6%, #fffaf0 44%, #f6efe2 68%, #d2ebf5 96%);
  -webkit-background-clip: text;
  background-clip: text;
}

.welcome-whisper {
  margin-top: clamp(3px, 0.4dvh, 6px);
  font-family: var(--serif);
  font-size: clamp(14px, min(1.22vw, 1.72dvh), 18px);
  letter-spacing: 0.30em;
  text-indent: 0.30em;
  color: rgba(242, 236, 224, 0.94);
  text-shadow: 0 2px 16px rgba(10, 16, 20, 0.88);
}

/* ============================================================================
   4. Preserved AGY Asymmetric 4-Realm Constellation
      - Flush-aligned to header/footer full width (max-width: 1680px, 0 side indent)
      - Proportionally enlarged heights eating empty bottom gap within 1 screen
   ============================================================================ */
.realms-constellation {
  /* Preserve the original glass compositing so fine helix strands show through. */
  will-change: opacity;
  display: flex;
  flex-direction: column;
  gap: clamp(12px, 1.8dvh, 24px);
  margin-bottom: auto;
}

@media (hover: hover) {
  .realms-constellation:has(.realm:hover) .realm:not(:hover) {
    opacity: 0.90;
  }
}

.tier-primary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(20px, 2.2vw, 36px);
  align-items: start;
}

.tier-secondary {
  display: grid;
  grid-template-columns: minmax(0, 1.38fr) minmax(0, 0.90fr);
  gap: clamp(20px, 2.2vw, 36px);
  align-items: end;
  padding-inline: 0;
}

/* ============================================================================
   5. Mature Directional Translucent Glass Cards
      - Text side (left): richer 0.80-0.68 obsidian-slate glass so typography &
        buttons are crystal-clear with zero background bleed interference!
      - Artwork side (right): gracefully opens to ~0.46 translucent glass so the
        vertical double helix & teal-slate mineral space visibly participate!
   ============================================================================ */
.realm {
  --mx: 50%;
  --my: 50%;
  --accent-rgb: 230, 195, 140;
  --tint-rgb: 118, 94, 62;
  --accent-bright: #fbf4e6;
  --accent-soft: #e6c38c;

  position: relative;
  display: flex;
  flex-direction: column;
  text-align: left;
  border-radius: 10px;
  border: 1px solid rgba(236, 228, 210, 0.27);
  background:
    linear-gradient(
      106deg,
      rgba(24, 29, 32, 0.78) 0%,
      rgba(26, 33, 36, 0.66) 46%,
      rgba(var(--tint-rgb), 0.25) 76%,
      rgba(28, 37, 41, 0.44) 100%
    ),
    linear-gradient(180deg, rgba(44, 52, 55, 0.22) 0%, rgba(19, 25, 29, 0.38) 100%);
  backdrop-filter: blur(15px) saturate(126%);
  -webkit-backdrop-filter: blur(15px) saturate(126%);
  overflow: hidden;
  box-shadow:
    0 20px 44px -16px rgba(6, 12, 16, 0.50),
    inset 0 1px 0 rgba(255, 252, 244, 0.16),
    inset 0 -1px 0 rgba(var(--accent-rgb), 0.10);
  transition:
    transform 380ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 320ms ease,
    border-color 320ms ease,
    box-shadow 380ms ease;
  will-change: transform, opacity;
}

/* GPU-composited 1px Cursor-Tracking Spotlight Border Sweep */
.realm-border-glow {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  pointer-events: none;
  z-index: 4;
  opacity: 0;
  background: radial-gradient(
    260px circle at var(--mx) var(--my),
    rgba(var(--accent-rgb), 0.94) 0%,
    rgba(255, 250, 240, 0.44) 26%,
    transparent 68%
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  transition: opacity 300ms ease;
  will-change: opacity;
}

/* Signature delicate top metallic light hairline */
.realm::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1.5px;
  background: linear-gradient(90deg, transparent 0%, rgba(var(--accent-rgb), 0.88) 34%, var(--accent-bright) 58%, transparent 100%);
  opacity: 0.42;
  transform: scaleX(0.42);
  transform-origin: left center;
  transition: opacity 360ms ease, transform 540ms cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 3;
}

/* Subtle volumetric tint wash favoring the artwork hemisphere */
.realm::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 68% 78% at 84% 46%, rgba(var(--tint-rgb), 0.24) 0%, transparent 66%),
    radial-gradient(ellipse 46% 48% at 8% 92%, rgba(var(--accent-rgb), 0.06) 0%, transparent 58%);
  opacity: 0.78;
  transition: opacity 360ms ease;
}

/* Pointer-tracking glass specular sheen (gentle surface lift on hover) */
.realm-sheen {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  background:
    radial-gradient(320px circle at var(--mx) var(--my), rgba(var(--accent-rgb), 0.15), transparent 64%),
    linear-gradient(135deg, rgba(255, 252, 246, 0.045) 0%, transparent 55%);
  transition: opacity 320ms ease;
  will-change: opacity;
}

.realm:hover,
.realm:focus-visible {
  transform: translate3d(0, -3px, 0);
  border-color: rgba(var(--accent-rgb), 0.50);
  box-shadow:
    0 24px 56px -14px rgba(5, 10, 14, 0.64),
    0 0 34px rgba(var(--accent-rgb), 0.14),
    inset 0 1px 0 rgba(255, 252, 244, 0.22);
}

.realm:hover .realm-border-glow,
.realm:focus-visible .realm-border-glow {
  opacity: 1;
}

.realm:hover::before,
.realm:focus-visible::before {
  opacity: 0.96;
  transform: scaleX(1);
}

.realm:hover::after,
.realm:focus-visible::after {
  opacity: 1;
}

.realm:hover .realm-sheen,
.realm:focus-visible .realm-sheen {
  opacity: 1;
}

.realm-inner {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: clamp(10px, 1.6dvh, 18px);
}

.realm-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(6px, 0.9dvh, 11px);
  max-width: 58%;
}

/* Literary pre-title phrase (ZERO numbers) */
.realm-poetic {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: clamp(0.79rem, min(0.96vw, 1.32dvh), 0.95rem);
  letter-spacing: 0.15em;
  color: var(--accent-soft);
  transition: color 280ms ease;
}

.realm-poetic::before {
  content: "";
  width: 14px;
  height: 1px;
  background: linear-gradient(90deg, rgba(var(--accent-rgb), 0.92), transparent);
  transition: width 340ms ease;
}

.realm:hover .realm-poetic,
.realm:focus-visible .realm-poetic {
  color: var(--accent-bright);
}

.realm:hover .realm-poetic::before,
.realm:focus-visible .realm-poetic::before {
  width: 22px;
}

.realm-title {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.20;
  letter-spacing: 0.055em;
  color: var(--ivory);
  text-shadow: 0 2px 14px rgba(10, 14, 16, 0.45);
  transition: color 280ms ease, transform 360ms cubic-bezier(0.22, 1, 0.36, 1);
}

.realm:hover .realm-title,
.realm:focus-visible .realm-title {
  color: var(--accent-bright);
  transform: translateX(2px);
}

.realm-verse {
  font-size: clamp(0.92rem, min(1.12vw, 1.58dvh), 1.10rem);
  line-height: 1.66;
  letter-spacing: 0.025em;
  color: rgba(236, 230, 218, 0.88);
  text-wrap: balance;
}

/* ============================================================================
   6. Unified Entry Buttons — Clear Visual Hierarchy (Open Live vs In-Prep Ghost)
      All 4 share identical alignment & symmetry; 医学题库 stands out warmly,
      while the 3 in-prep cards adopt a restrained low-contrast ghost button.
   ============================================================================ */
.realm-action-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 14px;
  max-width: 68%;
}

/* Default / In-Preparation Ghost Button (Restrained Low-Contrast) */
.realm-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: clamp(38px, 4.9dvh, 45px);
  padding: 8px 19px 8px 21px;
  border-radius: 7px;
  border: 1px solid rgba(var(--accent-rgb), 0.24);
  background: rgba(var(--accent-rgb), 0.045);
  box-shadow: inset 0 1px 0 rgba(255, 252, 246, 0.06);
  color: rgba(226, 224, 217, 0.68);
  font-size: clamp(0.85rem, min(0.98vw, 1.36dvh), 0.96rem);
  font-weight: 450;
  letter-spacing: 0.10em;
  white-space: nowrap;
  transition:
    background 280ms ease,
    border-color 280ms ease,
    color 260ms ease,
    box-shadow 300ms ease,
    transform 240ms cubic-bezier(0.22, 1, 0.36, 1);
}

/* Live Open Entry Button (医学题库 — Warm Champagne-Gold Prominent Hierarchy) */
.realm-btn--live {
  border-color: rgba(242, 206, 146, 0.80);
  background: linear-gradient(135deg, rgba(238, 200, 140, 0.28) 0%, rgba(214, 168, 100, 0.13) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 252, 242, 0.28), 0 6px 20px rgba(218, 170, 96, 0.18);
  color: #fdf6e9;
  font-weight: 500;
}

.btn-arrow {
  display: inline-block;
  font-size: 0.94rem;
  line-height: 1;
  color: rgba(var(--accent-rgb), 0.52);
  transition: transform 280ms cubic-bezier(0.22, 1, 0.36, 1), color 240ms ease;
}

.realm-btn--live .btn-arrow {
  color: var(--accent-soft);
}

.realm:hover .realm-btn,
.realm:focus-visible .realm-btn {
  border-color: rgba(var(--accent-rgb), 0.50);
  background: rgba(var(--accent-rgb), 0.11);
  color: rgba(244, 240, 232, 0.90);
}

.realm:hover .realm-btn--live,
.realm:focus-visible .realm-btn--live {
  border-color: rgba(252, 228, 180, 0.98);
  background: linear-gradient(135deg, rgba(244, 210, 152, 0.38) 0%, rgba(222, 176, 108, 0.22) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 252, 242, 0.36), 0 8px 26px rgba(232, 188, 118, 0.28);
  color: #ffffff;
}

.realm:hover .btn-arrow,
.realm:focus-visible .btn-arrow {
  color: rgba(var(--accent-rgb), 0.88);
  transform: translate3d(3px, 0, 0);
}

.realm:hover .realm-btn--live .btn-arrow,
.realm:focus-visible .realm-btn--live .btn-arrow {
  color: var(--accent-bright);
  transform: translate3d(3px, -1px, 0);
}

.realm:active .realm-btn {
  transform: scale(0.97);
}

.realm-state {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.77rem;
  letter-spacing: 0.10em;
  color: rgba(206, 206, 200, 0.74);
  white-space: nowrap;
}

.realm-state--live {
  color: #f4d8a6;
}

.state-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.state-dot--med {
  background: #f5d296;
  box-shadow: 0 0 10px rgba(245, 210, 150, 0.88);
}

.state-dot--ai {
  border: 1.2px solid rgba(154, 212, 232, 0.88);
  background: rgba(154, 212, 232, 0.22);
}

.state-dot--essay {
  border: 1.2px solid rgba(222, 184, 133, 0.88);
  background: rgba(222, 184, 133, 0.22);
}

.state-dot--run {
  border: 1.2px solid rgba(152, 186, 169, 0.90);
  background: rgba(152, 186, 169, 0.22);
}

/* ============================================================================
   7. Individual Realm Weights, Harmonized Palettes & 3D Luminous Artwork
   ============================================================================ */
.realm-art {
  position: absolute;
  inset: 0 0 0 auto;
  z-index: 1;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.82) 22%, #000 58%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.82) 22%, #000 58%);
  transition: transform 520ms cubic-bezier(0.22, 1, 0.36, 1), opacity 380ms ease;
  will-change: transform, opacity;
}

.art-svg {
  display: block;
  height: 100%;
  width: auto;
}

/* 7A. 医学题库 — Large (Champagne Gold & Ivory White) */
.realm--med {
  --accent-rgb: 230, 195, 140;
  --tint-rgb: 120, 93, 58;
  --accent-bright: #fcf5e8;
  --accent-soft: #e6c38c;
  min-height: clamp(218px, 32.8dvh, 376px);
  padding: clamp(21px, 2.9dvh, 38px) clamp(32px, 3.3vw, 52px);
}

.realm--med .realm-title {
  font-size: clamp(1.82rem, min(2.78vw, 3.82dvh), 2.84rem);
}

.realm-art--med {
  width: 55%;
  opacity: 0.92;
}

.realm-art--med .art-svg,
.realm-art--ai .art-svg {
  height: 103%;
}

.realm--med:hover .realm-art--med,
.realm--med:focus-visible .realm-art--med {
  opacity: 1;
  transform: translate3d(0, -3.5px, 0) scale(1.024);
}

/* Calm Physiological Sinus Heartbeat ("Lub-Dub" 1.65s cycle, crisp 1.062 / 1.038 amplitude + >1.02s diastole rest) */
.med-heart-beat {
  transform-box: fill-box;
  transform-origin: 50% 56%;
  transition: transform 480ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.med-heart-glow {
  transform-box: fill-box;
  transform-origin: 50% 56%;
  mix-blend-mode: screen;
  opacity: 0;
  transition: opacity 480ms ease, transform 480ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.realm--med:hover .med-heart-beat,
.realm--med:focus-visible .med-heart-beat {
  animation: heartLubDub 1.65s infinite;
}

.realm--med:hover .med-heart-glow,
.realm--med:focus-visible .med-heart-glow {
  animation: heartGlowLubDub 1.65s ease-out infinite;
}

@keyframes heartLubDub {
  0% {
    transform: scale(1);
    animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
  }
  9% {
    transform: scale(1.062);
    animation-timing-function: ease-in-out;
  }
  17% {
    transform: scale(1.016);
    animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
  }
  26% {
    transform: scale(1.038);
    animation-timing-function: ease-out;
  }
  38% {
    transform: scale(1);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes heartGlowLubDub {
  0%   { opacity: 0;    transform: scale(0.95); }
  9%   { opacity: 0.92; transform: scale(1.05); }
  17%  { opacity: 0.28; transform: scale(1.00); }
  26%  { opacity: 0.66; transform: scale(1.03); }
  38%  { opacity: 0;    transform: scale(0.96); }
  100% { opacity: 0;    transform: scale(0.95); }
}

.med-axis-pulse {
  stroke-dasharray: 28 190;
  stroke-dashoffset: 0;
  opacity: 0.72;
  animation: axisPulse 5.2s linear infinite;
}

@keyframes axisPulse {
  from { stroke-dashoffset: 218; }
  to   { stroke-dashoffset: 0; }
}

/* 7B. AI 观察 — Large (STRICTLY EQUAL area & stature to 医学题库 — Ice Blue & Cool Silver) */
.realm--ai {
  --accent-rgb: 154, 212, 232;
  --tint-rgb: 74, 120, 140;
  --accent-bright: #ecf9ff;
  --accent-soft: #9ad4e8;
  min-height: clamp(218px, 32.8dvh, 376px);
  margin-top: clamp(6px, 1.0dvh, 16px); /* Preserved AGY diagonal stagger, dvh-scaled */
  padding: clamp(21px, 2.9dvh, 38px) clamp(32px, 3.3vw, 52px);
}

.realm--ai .realm-title {
  font-size: clamp(1.82rem, min(2.78vw, 3.82dvh), 2.84rem);
}

.realm-art--ai {
  width: 56%;
  opacity: 0.92;
}

.realm--ai:hover .realm-art--ai,
.realm--ai:focus-visible .realm-art--ai {
  opacity: 1;
  transform: translate3d(0, -3.5px, 0) scale(1.024);
}

.ai-orbit {
  transform-origin: 164px 126px;
  animation: orbitSweep 28s linear infinite;
}

.realm--ai:hover .ai-orbit {
  animation-duration: 12s;
}

@keyframes orbitSweep {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* 7C. 随笔杂谈 — Medium (Soft Warm Gold & Paper Parchment) */
.realm--essay {
  --accent-rgb: 222, 184, 133;
  --tint-rgb: 130, 102, 66;
  --accent-bright: #f8eedc;
  --accent-soft: #deb885;
  min-height: clamp(162px, 24.0dvh, 272px);
  padding: clamp(17px, 2.3dvh, 30px) clamp(28px, 2.9vw, 44px);
}

.realm--essay .realm-inner {
  gap: clamp(10px, 1.45dvh, 18px);
}

.realm--essay .realm-copy {
  max-width: 58%;
  gap: clamp(5px, 0.75dvh, 9px);
}

.realm--essay .realm-title {
  font-size: clamp(1.52rem, min(2.18vw, 3.06dvh), 2.20rem);
}

.realm--essay .realm-verse {
  font-size: clamp(0.88rem, min(1.06vw, 1.48dvh), 1.04rem);
  line-height: 1.62;
}

.realm--essay .realm-btn {
  min-height: clamp(36px, 4.6dvh, 42px);
  padding: 6px 17px 6px 19px;
  font-size: clamp(0.83rem, min(0.95vw, 1.30dvh), 0.92rem);
}

.realm-art--essay {
  width: 50%;
  opacity: 0.90;
  padding-right: 6px;
  overflow: hidden;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.5s ease;
}

/* Aspect-ratio locked to SVG viewBox 270x194 so 3D spine coordinates stay pixel-exact at all sizes */
.essay-book-stage {
  position: relative;
  height: 100%;
  aspect-ratio: 270 / 194;
  flex-shrink: 0;
}

.essay-book-stage .art-svg--essay {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
}

/* Solid 3D book never distorts — gentle unified -3px levitation with locked 3D page stage */
.realm--essay:hover .realm-art--essay,
.realm--essay:focus-visible .realm-art--essay {
  opacity: 1;
  transform: translate3d(0, -3px, 0);
}

/* Soft Warm Spine Hearth Micro-Glow Accompanying Page Turns */
.essay-spine-glow {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  mix-blend-mode: screen;
  background: radial-gradient(
    ellipse 34% 46% at 47.4% 66%,
    rgba(255, 228, 170, 0.44) 0%,
    rgba(232, 182, 110, 0.20) 48%,
    transparent 78%
  );
  transition: opacity 550ms ease;
  will-change: opacity;
}

.realm--essay:hover .essay-spine-glow,
.realm--essay:focus-visible .essay-spine-glow {
  animation: essaySpineBreath 3.6s ease-in-out infinite;
}

@keyframes essaySpineBreath {
  0%, 100% { opacity: 0.42; }
  38%      { opacity: 0.86; }
  70%      { opacity: 0.46; }
}

/* 3D Perspective Stage Locked Exactly to the Book's Real Spine Axis (x=128/270=47.4%, y=143/194=73.7%) */
.essay-turn-stage {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  perspective: 900px;
  perspective-origin: 47.4% 26%;
  transform-style: preserve-3d;
}

/* Static 3D Plane Tilt Matching the Book's Camera Pitch (56deg) & Subtle Roll (-2deg) */
.essay-book-plane {
  position: absolute;
  left: 47.4%;
  top: 38.7%;
  width: 35.5%;
  height: 35%;
  transform-origin: 0% 100%;
  transform-style: preserve-3d;
  transform: rotateZ(-2deg) rotateX(56deg);
}

/* Translucent Warm-Gold / Parchment-Ivory Luminous Folio Pages Hinged Strictly Along Left Spine */
.essay-page {
  position: absolute;
  inset: 0;
  transform-origin: left center;
  backface-visibility: visible;
  opacity: 0;
  border-radius: 1px 11px 9px 1px;
  background:
    repeating-linear-gradient(
      180deg,
      transparent 0px,
      transparent 7px,
      rgba(255, 248, 232, 0.12) 7px,
      rgba(255, 248, 232, 0.12) 8px
    ),
    linear-gradient(
      94deg,
      rgba(148, 108, 60, 0.36) 0%,
      rgba(244, 214, 162, 0.44) 22%,
      rgba(255, 246, 224, 0.56) 76%,
      rgba(255, 252, 244, 0.74) 94%,
      rgba(255, 242, 210, 0.12) 100%
    );
  border-top: 1px solid rgba(255, 248, 230, 0.46);
  border-right: 1px solid rgba(255, 250, 238, 0.58);
  border-bottom: 1px solid rgba(236, 198, 140, 0.30);
  box-shadow:
    inset 10px 0 16px -8px rgba(72, 48, 24, 0.44),
    0 0 14px rgba(246, 210, 146, 0.24);
  -webkit-mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.72) 0%, #000 14%, #000 92%, rgba(0, 0, 0, 0.35) 100%);
  mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.72) 0%, #000 14%, #000 92%, rgba(0, 0, 0, 0.35) 100%);
  will-change: transform, opacity;
}

.essay-page--2 {
  top: 2%;
  height: 96%;
  background:
    repeating-linear-gradient(
      180deg,
      transparent 0px,
      transparent 8px,
      rgba(255, 244, 222, 0.10) 8px,
      rgba(255, 244, 222, 0.10) 9px
    ),
    linear-gradient(
      94deg,
      rgba(136, 98, 54, 0.32) 0%,
      rgba(238, 202, 146, 0.40) 24%,
      rgba(255, 242, 216, 0.52) 78%,
      rgba(255, 250, 238, 0.68) 94%,
      rgba(255, 238, 204, 0.10) 100%
    );
}

/* Single page turn: 2.2s serene sweep + 1.4s calm interval -> 3.6s cadence across alternating 7.2s loop */
.realm--essay:hover .essay-page--1,
.realm--essay:focus-visible .essay-page--1 {
  animation: bookPageTurn 7.2s linear 0.12s infinite;
}

.realm--essay:hover .essay-page--2,
.realm--essay:focus-visible .essay-page--2 {
  animation: bookPageTurn 7.2s linear 3.72s infinite;
}

@keyframes bookPageTurn {
  0% {
    opacity: 0;
    transform: rotateY(-14deg) skewY(0deg);
    animation-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  }
  4% {
    opacity: 0.78;
    transform: rotateY(-24deg) skewY(-2deg);
    animation-timing-function: cubic-bezier(0.36, 0.08, 0.42, 0.96);
  }
  15.5% {
    opacity: 0.92;
    transform: rotateY(-92deg) skewY(-4.5deg);
    animation-timing-function: cubic-bezier(0.22, 0.62, 0.36, 1);
  }
  26% {
    opacity: 0.60;
    transform: rotateY(-154deg) skewY(-1.5deg);
    animation-timing-function: ease-out;
  }
  30.6% {
    opacity: 0;
    transform: rotateY(-166deg) skewY(0deg);
  }
  30.7%, 100% {
    opacity: 0;
    transform: rotateY(-14deg) skewY(0deg);
  }
}

/* 7D. 跑步档案 — Smallest (Low-Saturation Sage Green & Natural Silver + Lifted Static Copper-Terracotta Glow)
   Extra-clean left text protection + rightward shifted & earlier-feathered artwork mask */
.realm--run {
  --accent-rgb: 152, 186, 169;
  --tint-rgb: 126, 114, 92;
  --accent-bright: #eef6f0;
  --accent-soft: #9ec0af;
  min-height: clamp(148px, 21.6dvh, 242px);
  padding: clamp(16px, 2.1dvh, 26px) clamp(24px, 2.5vw, 38px);
  background:
    linear-gradient(
      104deg,
      rgba(22, 28, 30, 0.86) 0%,
      rgba(23, 30, 32, 0.78) 52%,
      rgba(158, 112, 76, 0.25) 76%,
      rgba(36, 44, 43, 0.44) 100%
    ),
    linear-gradient(180deg, rgba(44, 52, 55, 0.22) 0%, rgba(19, 25, 29, 0.38) 100%);
}

.realm--run .realm-inner {
  gap: clamp(10px, 1.55dvh, 18px);
}

.realm--run .realm-copy {
  max-width: 62%;
  gap: clamp(5px, 0.75dvh, 8px);
}

.realm--run .realm-title {
  font-size: clamp(1.36rem, min(1.84vw, 2.62dvh), 1.84rem);
}

.realm--run .realm-verse {
  font-size: clamp(0.85rem, min(0.98vw, 1.38dvh), 0.97rem);
  line-height: 1.56;
}

.realm--run .realm-action-row {
  max-width: 78%;
  gap: 8px 12px;
}

.realm--run .realm-btn {
  min-height: clamp(34px, 4.4dvh, 40px);
  padding: 5px 15px 5px 17px;
  font-size: clamp(0.82rem, min(0.92vw, 1.26dvh), 0.90rem);
}

.realm-art--run {
  right: -10px;
  width: 50%;
  opacity: 0.99;
  mask-image: linear-gradient(90deg, transparent 0%, transparent 18%, rgba(0, 0, 0, 0.62) 44%, #000 72%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, transparent 18%, rgba(0, 0, 0, 0.62) 44%, #000 72%);
}

.realm-art--run .art-svg {
  height: 100%;
}

.realm--run:hover .realm-art--run,
.realm--run:focus-visible .realm-art--run {
  opacity: 1;
  transform: translate3d(0, -3px, 0) scale(1.024);
}

.run-track {
  stroke-dasharray: 240;
  stroke-dashoffset: 0;
}

.realm--run:hover .run-track {
  animation: strideFlow 1.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.run-beacon-halo {
  transform-origin: 154px 25px;
  animation: beaconBreath 3.6s ease-in-out infinite;
}

@keyframes beaconBreath {
  0%, 100% { opacity: 0.24; transform: scale(0.90); }
  50%      { opacity: 0.52; transform: scale(1.24); }
}

@keyframes strideFlow {
  0%   { stroke-dashoffset: 240; }
  100% { stroke-dashoffset: 0; }
}

/* ============================================================================
   8. Minimal Continuity Footer (Strictly Centered 3-Column Grid + English Echo)
   ============================================================================ */
.hub-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px 24px;
  max-width: 1680px;
  width: 100%;
  margin-inline: auto;
  padding-top: clamp(6px, 0.85dvh, 10px);
  border-top: 1px solid rgba(236, 228, 210, 0.16);
  font-size: 0.78rem;
  color: var(--muted-soft);
}

.footer-return {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 28px;
  color: var(--muted);
  letter-spacing: 0.06em;
  transition: color 240ms ease, transform 260ms ease;
}

.footer-return:hover {
  color: var(--ivory);
  transform: translateX(-2px);
}

.footer-echo {
  justify-self: center;
  text-align: center;
  font-family: var(--sans);
  font-size: 11.5px;
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: 0.065em;
  color: rgba(196, 198, 194, 0.62);
  white-space: nowrap;
}

.footer-motto {
  justify-self: end;
  text-align: right;
  font-family: var(--serif);
  letter-spacing: 0.12em;
  color: rgba(208, 202, 190, 0.70);
}

/* ============================================================================
   9. Minimal Honest Chamber Notice Sheet (For Realms In Preparation)
   ============================================================================ */
.sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(12, 17, 20, 0.62);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 300ms ease;
}

.sheet-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.chamber-sheet {
  --sheet-rgb: 154, 212, 232;
  position: fixed;
  z-index: 70;
  top: 50%;
  left: 50%;
  width: min(440px, calc(100vw - 36px));
  padding: 28px 30px 26px;
  border-radius: 12px;
  border: 1px solid rgba(var(--sheet-rgb), 0.38);
  background: linear-gradient(155deg, rgba(30, 36, 39, 0.92) 0%, rgba(19, 24, 27, 0.94) 100%);
  backdrop-filter: blur(18px) saturate(126%);
  -webkit-backdrop-filter: blur(18px) saturate(126%);
  box-shadow: 0 28px 72px rgba(5, 9, 12, 0.60), 0 0 42px rgba(var(--sheet-rgb), 0.12);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, calc(-50% + 14px)) scale(0.97);
  transition:
    opacity 280ms ease,
    transform 340ms cubic-bezier(0.22, 1, 0.36, 1);
}

.chamber-sheet.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}

.sheet-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.sheet-poetic {
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  color: rgba(var(--sheet-rgb), 0.94);
}

.sheet-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(246, 240, 228, 0.20);
  display: inline-grid;
  place-items: center;
  font-size: 1.15rem;
  line-height: 1;
  color: var(--muted);
  transition: border-color 240ms ease, color 240ms ease, background-color 240ms ease;
}

.sheet-close:hover {
  border-color: rgba(var(--sheet-rgb), 0.60);
  color: var(--ivory);
  background: rgba(var(--sheet-rgb), 0.14);
}

.sheet-title {
  font-family: var(--serif);
  font-size: 1.66rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--ivory);
  margin-bottom: 8px;
}

.sheet-verse {
  font-size: 0.90rem;
  line-height: 1.68;
  color: rgba(236, 230, 218, 0.86);
  margin-bottom: 18px;
}

.sheet-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 99px;
  border: 1px solid rgba(var(--sheet-rgb), 0.32);
  background: rgba(var(--sheet-rgb), 0.10);
  font-size: 0.76rem;
  letter-spacing: 0.10em;
  color: var(--ink-soft);
  margin-bottom: 14px;
}

.sheet-note {
  font-size: 0.85rem;
  line-height: 1.75;
  color: var(--muted);
  margin-bottom: 22px;
}

.sheet-actions {
  display: flex;
  justify-content: flex-end;
}

.sheet-back {
  padding: 9px 18px;
  border-radius: 6px;
  border: 1px solid rgba(var(--sheet-rgb), 0.42);
  background: rgba(var(--sheet-rgb), 0.12);
  color: var(--ivory);
  font-size: 0.82rem;
  letter-spacing: 0.10em;
  transition: background-color 240ms ease, border-color 240ms ease;
}

.sheet-back:hover {
  background: rgba(var(--sheet-rgb), 0.22);
  border-color: rgba(var(--sheet-rgb), 0.72);
}


/* ============================================================================
   10. Tablet Adaptation (861px - 1080px)
   ============================================================================ */
@media (max-width: 1080px) {
  .tier-primary {
    gap: 24px;
  }

  .tier-secondary {
    gap: 24px;
    padding-inline: 0;
  }

  .hub-footer {
    gap: 8px 14px;
  }

  .realm-copy {
    max-width: 64%;
  }
}

/* ============================================================================
   11. Purpose-Built Mobile Layout (<= 860px)
       Re-organized vertical hierarchy (Large == Large > Medium > Smallest)
       with prominent, comfortable tap buttons and airy Helix spacing!
   ============================================================================ */
@media (max-width: 860px) {
  :root {
    --edge-x: 20px;
    --edge-y: 16px;
  }

  .hub-shell {
    justify-content: flex-start;
    gap: 18px;
    padding-bottom: 24px;
  }

  .hub-header {
    align-items: center;
    gap: 10px;
  }

  .brand-group {
    gap: 8px;
  }

  .brand-mark {
    width: 22px;
    height: 22px;
  }

  .wordmark {
    font-size: 0.96rem;
  }

  .brand-sep,
  .hub-badge {
    display: none;
  }

  .digit {
    width: 1.18rem;
    height: 1.66rem;
    font-size: 0.96rem;
    line-height: calc(1.66rem - 2px);
  }

  .flip-leaf span {
    height: 1.66rem;
  }

  .clock-date {
    font-size: 0.64rem;
  }

  .hub-main {
    justify-content: flex-start;
    gap: 20px;
    padding-block: 4px 8px;
  }

  .hub-welcome {
    position: relative;
    gap: 6px;
    padding-block: 6px 4px;
  }

  .welcome-cn {
    font-size: clamp(1.32rem, 5.8vw, 1.64rem);
  }

  .welcome-brand {
    font-size: clamp(2.05rem, 9.2vw, 2.68rem);
  }

  .welcome-whisper {
    font-size: 0.79rem;
    letter-spacing: 0.24em;
    text-indent: 0.24em;
  }

  .realms-constellation {
    gap: 18px;
  }

  .tier-primary,
  .tier-secondary {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    padding-inline: 0;
  }

  /* Equal Large Weight on Mobile */
  .realm--med,
  .realm--ai {
    margin-top: 0;
    min-height: 224px;
    padding: 22px 22px 20px;
  }

  .realm--med .realm-title,
  .realm--ai .realm-title {
    font-size: 1.58rem;
  }

  /* Medium Weight on Mobile */
  .realm--essay {
    min-height: 174px;
    padding: 18px 22px 16px;
  }

  .realm--essay .realm-title {
    font-size: 1.38rem;
  }

  /* Compact Independent Smallest Entry on Mobile */
  .realm--run {
    min-height: 146px;
    padding: 16px 20px 15px;
  }

  .realm--run .realm-title {
    font-size: 1.22rem;
  }

  .realm-copy,
  .realm--essay .realm-copy {
    max-width: 68%;
  }

  .realm--run .realm-copy {
    max-width: 74%;
  }

  .realm-action-row,
  .realm--run .realm-action-row {
    max-width: 100%;
  }

  .realm-verse {
    font-size: 0.84rem;
    line-height: 1.60;
  }

  .realm-btn {
    min-height: 38px;
    padding: 7px 15px 7px 17px;
    font-size: 0.82rem;
  }

  .realm--run .realm-btn {
    min-height: 34px;
    padding: 5px 13px 5px 14px;
    font-size: 0.79rem;
  }

  .realm-art--med,
  .realm-art--ai {
    width: 56%;
    opacity: 0.80;
  }

  .realm-art--essay {
    width: 48%;
    opacity: 0.78;
  }

  .realm-art--run {
    right: -6px;
    width: 48%;
    opacity: 0.78;
  }

  .hub-footer {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 6px;
    margin-top: auto;
    padding-top: 14px;
    font-size: 0.74rem;
  }

  .footer-return,
  .footer-echo,
  .footer-motto {
    justify-self: center;
    text-align: center;
  }

  .footer-echo {
    white-space: normal;
    font-size: 11px;
  }
}

@media (max-width: 390px) {
  .realm-copy,
  .realm--essay .realm-copy {
    max-width: 72%;
  }

  .realm--run .realm-copy {
    max-width: 78%;
  }

  .realm-art {
    opacity: 0.70;
  }
}

/* ============================================================================
   12. Reduced Motion Accessibility
   ============================================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .realm:hover,
  .realm:focus-visible,
  .realm:hover .realm-art,
  .realm:focus-visible .realm-art,
  .realm:hover .realm-title,
  .realm:focus-visible .realm-title,
  .realm:hover .btn-arrow,
  .realm:focus-visible .btn-arrow,
  .realm--med:hover .med-heart-beat,
  .realm--med:focus-visible .med-heart-beat,
  .realm--med:hover .med-heart-glow,
  .realm--med:focus-visible .med-heart-glow,
  .realm--essay:hover .essay-spine-glow,
  .realm--essay:focus-visible .essay-spine-glow,
  .realm--essay:hover .essay-page,
  .realm--essay:focus-visible .essay-page {
    transform: none !important;
    animation: none !important;
  }

  .med-heart-glow,
  .essay-spine-glow,
  .essay-turn-stage {
    opacity: 0 !important;
  }
}
