:root {
  color-scheme: light;
  --bg: #f7fafc;
  --bg-soft: #ebf8ff;
  --bg-warm: #feebc8;
  --bg-lilac: #faf5ff;
  --bg-mint: #e6fffa;
  --bg-pink: #fff5f5;
  --text: #182033;
  --muted: #5f6f87;
  --line: rgba(97, 120, 150, 0.22);
  --glass: rgba(255, 255, 255, 0.68);
  --glass-strong: rgba(255, 255, 255, 0.86);
  --crystal: rgba(235, 248, 255, 0.72);
  --brand: #4d8fe8;
  --brand-deep: #305eb8;
  --gold: #d8a449;
  --violet: #8f6fd6;
  --neon-pink: #fff5f5;
  --glow-gold: rgba(254, 235, 200, 0.78);
  --glow-blue: rgba(235, 248, 255, 0.9);
  --shadow: 0 22px 70px rgba(66, 90, 125, 0.14);
  --radius: 8px;
  --max: 1180px;
}

[data-theme="night"] {
  color-scheme: dark;
  --bg: #121528;
  --bg-soft: #18223a;
  --bg-warm: #2a2440;
  --bg-lilac: #201936;
  --bg-mint: #142c2b;
  --bg-pink: #2b1b26;
  --text: #f2f6ff;
  --muted: #bdc7d9;
  --line: rgba(222, 232, 255, 0.18);
  --glass: rgba(20, 26, 45, 0.7);
  --glass-strong: rgba(20, 26, 45, 0.88);
  --crystal: rgba(24, 34, 58, 0.78);
  --brand: #9ed3ff;
  --brand-deep: #7da7ff;
  --gold: #f2c66e;
  --violet: #c7a7ff;
  --neon-pink: #2b1b26;
  --glow-gold: rgba(242, 198, 110, 0.36);
  --glow-blue: rgba(158, 211, 255, 0.24);
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.26);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(115deg, #f7fafc 0%, #ebf8ff 34%, #faf5ff 68%, #feebc8 100%),
    var(--bg);
  color: var(--text);
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.75;
  overflow-x: hidden;
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'%3E%3Cpath d='M5 25 21 9' stroke='%23d8a449' stroke-width='3' stroke-linecap='round'/%3E%3Cpath d='m18 4 2 4 4 2-4 2-2 4-2-4-4-2 4-2z' fill='%23EBF8FF' stroke='%238f6fd6' stroke-width='1.6'/%3E%3C/svg%3E") 5 25, auto;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(rgba(255, 255, 255, 0.58) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.52) 1px, transparent 1px),
    repeating-linear-gradient(135deg, rgba(216, 164, 73, 0.05) 0 1px, transparent 1px 34px);
  background-size: 52px 52px, 52px 52px, 100% 100%;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.82), transparent 82%);
  pointer-events: none;
}

body::after {
  content: "";
  position: fixed;
  top: 7rem;
  right: max(-12vw, -120px);
  z-index: -1;
  width: min(58vw, 620px);
  aspect-ratio: 1;
  border: 1px solid rgba(216, 164, 73, 0.28);
  border-radius: 50%;
  background:
    repeating-conic-gradient(from 16deg, rgba(77, 143, 232, 0.13) 0 7deg, transparent 7deg 18deg),
    radial-gradient(circle at center, transparent 0 46%, rgba(255, 255, 255, 0.28) 47% 48%, transparent 49%);
  opacity: 0.58;
  animation: sigilSpin 38s linear infinite, sigilPulse 4.8s ease-in-out infinite;
  pointer-events: none;
}

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

img {
  display: block;
  max-width: 100%;
  height: auto;
}

figure {
  margin: 0;
}

button,
input,
select,
textarea {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 18px;
  width: min(var(--max), calc(100% - 32px));
  margin: 14px auto 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.16);
  box-shadow: none;
  backdrop-filter: blur(18px) saturate(1.2);
}

.site-header.is-scrolled {
  background: var(--glass-strong);
  box-shadow: 0 10px 40px rgba(80, 105, 140, 0.12);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: max-content;
  font-weight: 800;
  color: var(--brand-deep);
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  aspect-ratio: 1;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--violet));
  box-shadow: 0 0 24px rgba(77, 143, 232, 0.34);
}

.site-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
}

.site-nav a {
  padding: 8px 10px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
  white-space: nowrap;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--brand-deep);
  background: rgba(235, 248, 255, 0.82);
}

[data-theme="night"] .site-nav a:hover,
[data-theme="night"] .site-nav a.is-active {
  color: var(--text);
  background: rgba(158, 211, 255, 0.16);
}

.nav-toggle,
.theme-toggle {
  display: inline-grid;
  place-items: center;
  width: 40px;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--brand-deep);
  background: var(--glass-strong);
  cursor: pointer;
  box-shadow: 0 0 18px var(--glow-blue);
}

.nav-toggle {
  display: none;
}

.nav-toggle span,
.nav-toggle::before,
.nav-toggle::after {
  content: "";
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.nav-toggle {
  gap: 4px;
}

.theme-toggle::before {
  content: "";
  width: 18px;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 32%, #fff 0 18%, transparent 19%),
    linear-gradient(135deg, var(--gold), var(--brand));
  box-shadow: 0 0 16px rgba(216, 164, 73, 0.45);
}

.magic-canvas {
  position: fixed;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

main,
.site-header,
.site-footer {
  position: relative;
  z-index: 2;
}

.section {
  padding: 76px 0;
}

.section.is-soft {
  background: rgba(255, 255, 255, 0.34);
}

.section.is-warm {
  background: linear-gradient(120deg, rgba(254, 235, 200, 0.5), rgba(230, 255, 250, 0.46));
}

.section.is-crystal {
  background:
    linear-gradient(130deg, rgba(247, 250, 252, 0.82), rgba(235, 248, 255, 0.64) 46%, rgba(250, 245, 255, 0.66)),
    repeating-linear-gradient(90deg, transparent 0 58px, rgba(216, 164, 73, 0.08) 58px 59px);
}

.wrap {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.24;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(42px, 8vw, 86px);
  color: #ffffff;
  text-shadow: 0 4px 24px rgba(18, 21, 40, 0.4);
}

h2 {
  font-size: clamp(26px, 4vw, 44px);
}

h3 {
  font-size: 20px;
}

p {
  margin: 0;
}

.lead {
  max-width: 760px;
  color: var(--muted);
  font-size: 17px;
}

.hero {
  position: relative;
  min-height: min(840px, 94vh);
  margin-top: -68px;
  padding: 150px 0 92px;
  display: grid;
  align-items: center;
  overflow: hidden;
  color: #fff;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  animation: heroBreath 9s ease-in-out infinite;
  transform-origin: 62% 45%;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(12, 17, 34, 0.58), rgba(22, 34, 60, 0.16) 48%, rgba(247, 250, 252, 0.18)),
    linear-gradient(0deg, rgba(247, 250, 252, 0.96) 0, rgba(247, 250, 252, 0.07) 28%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(900px, calc(100% - 32px));
  margin: 0 auto;
  text-align: center;
  transform: none;
}

.hero-content::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 47%;
  z-index: -1;
  width: min(520px, 72vw);
  aspect-ratio: 1;
  border: 1px solid rgba(254, 235, 200, 0.42);
  border-radius: 50%;
  background:
    repeating-conic-gradient(from 0deg, rgba(254, 235, 200, 0.2) 0 8deg, transparent 8deg 18deg),
    radial-gradient(circle, transparent 0 54%, rgba(235, 248, 255, 0.22) 55% 56%, transparent 57%);
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 0 28px rgba(235, 248, 255, 0.52));
  animation: sigilSpin 42s linear infinite reverse;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: #fff7e8;
  font-weight: 800;
}

.hero-kicker::before {
  content: "";
  width: 34px;
  height: 2px;
  border-radius: 999px;
  background: var(--gold);
  box-shadow: 0 0 16px rgba(254, 235, 200, 0.85);
}

.hero-subtitle {
  max-width: 680px;
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 700;
}

.hero-summary {
  max-width: 760px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 17px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions,
.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 26px;
}

.hero-actions {
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 11px 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 800;
  white-space: nowrap;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: #10233d;
  background: linear-gradient(135deg, #feebc8, #e6fffa 46%, #ebf8ff);
  box-shadow: 0 14px 34px rgba(77, 143, 232, 0.24), 0 0 30px var(--glow-gold);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #fff5f5, #e6fffa 46%, #faf5ff);
  box-shadow: 0 18px 42px rgba(77, 143, 232, 0.28), 0 0 34px rgba(255, 245, 245, 0.88);
}

.btn-ghost {
  color: var(--text);
  border-color: var(--line);
  background: var(--glass-strong);
}

.hero .btn-ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.38);
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(12px);
}

.meta-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  width: min(var(--max), calc(100% - 32px));
  margin: -42px auto 0;
}

.meta-pill {
  min-height: 86px;
  padding: 15px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--glass-strong);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.meta-pill span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.meta-pill strong {
  display: block;
  margin-top: 5px;
  color: var(--text);
  font-size: 17px;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(260px, 0.55fr);
  gap: 34px;
  align-items: end;
  margin-bottom: 28px;
}

.section-head.is-simple {
  display: block;
}

.glass-panel,
.card,
.feature-card,
.faq-item,
.timeline-item,
.guide-step,
.spec-grid > div,
.index-card,
.notice-panel,
.download-panel,
.character-panel,
.status-card-face,
.floating-oracle {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--glass);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.glass-panel {
  padding: 24px;
}

.summary-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 0.58fr);
  gap: 22px;
  align-items: stretch;
}

.summary-copy {
  padding: 28px;
  border-left: 3px solid var(--gold);
}

.summary-copy p + p {
  margin-top: 14px;
}

.spec-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.spec-grid > div {
  padding: 14px;
}

.spec-grid dt {
  margin: 0 0 5px;
  color: var(--muted);
  font-size: 13px;
}

.spec-grid dd {
  margin: 0;
  font-weight: 800;
}

.content-grid,
.feature-grid,
.guide-grid,
.index-grid,
.question-grid,
.article-grid,
.status-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.card,
.feature-card,
.index-card,
.guide-step,
.faq-item,
.timeline-item,
.notice-panel,
.download-panel {
  padding: 20px;
}

.card h3,
.feature-card h3,
.index-card h3,
.guide-step h3,
.faq-item h3,
.timeline-item h3 {
  margin-bottom: 10px;
}

.card p,
.feature-card p,
.index-card p,
.guide-step p,
.faq-item p,
.timeline-item p,
.notice-panel p,
.download-panel p {
  color: var(--muted);
}

.feature-card {
  position: relative;
  overflow: hidden;
  min-height: 0;
  display: grid;
  padding: 0;
  color: var(--text);
  border-color: rgba(216, 164, 73, 0.22);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(235, 248, 255, 0.66) 54%, rgba(250, 245, 255, 0.68)),
    var(--glass);
}

.feature-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  z-index: 2;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--brand), var(--violet));
}

.feature-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(135deg, rgba(254, 235, 200, 0.18), transparent 36%),
    repeating-linear-gradient(135deg, rgba(77, 143, 232, 0.08) 0 1px, transparent 1px 34px);
  opacity: 0.72;
}

.feature-card h3,
.feature-card p {
  position: relative;
  z-index: 1;
  text-shadow: none;
}

.feature-card h3 {
  color: var(--text);
}

.feature-card p {
  color: var(--muted);
}

.feature-art,
.feature-thumb {
  position: relative;
  z-index: 1;
  margin: 0;
  overflow: hidden;
  background: linear-gradient(135deg, var(--bg-soft), var(--bg-lilac));
}

.feature-art {
  min-height: 314px;
  border-bottom: 1px solid rgba(216, 164, 73, 0.2);
}

.feature-thumb {
  height: 100%;
  border-right: 1px solid rgba(216, 164, 73, 0.2);
}

.feature-art picture,
.feature-art img,
.feature-thumb picture,
.feature-thumb img {
  display: block;
  width: 100%;
  height: 100%;
}

.feature-art img,
.feature-thumb img {
  object-fit: cover;
  transition: transform 0.45s ease, filter 0.45s ease;
}

.feature-card:hover img {
  transform: scale(1.035);
  filter: saturate(1.06);
}

.feature-art figcaption {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  padding: 9px 11px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius);
  color: rgba(255, 255, 255, 0.94);
  background: rgba(18, 25, 42, 0.6);
  backdrop-filter: blur(12px);
  font-size: 13px;
}

.feature-copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: 20px;
}

.feature-primary .feature-copy {
  padding: 22px;
}

.feature-number {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 26px;
  margin-bottom: 10px;
  border: 1px solid rgba(216, 164, 73, 0.28);
  border-radius: 999px;
  color: #10233d;
  background: linear-gradient(135deg, #feebc8, #e6fffa);
  box-shadow: 0 0 18px var(--glow-gold);
  font-size: 12px;
  font-weight: 900;
}

.feature-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.feature-tags span {
  padding: 6px 9px;
  border: 1px solid rgba(77, 143, 232, 0.18);
  border-radius: 999px;
  color: var(--brand-deep);
  background: rgba(255, 255, 255, 0.58);
  font-size: 12px;
  font-weight: 800;
}

.showcase-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.98fr);
  gap: 20px;
  align-items: stretch;
}

.showcase-media,
.showcase-panel {
  min-height: 460px;
}

.showcase-media {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--glass);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.showcase-media picture,
.showcase-media img {
  display: block;
  width: 100%;
  height: 100%;
}

.showcase-media img {
  object-fit: cover;
}

.showcase-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(235, 248, 255, 0.62) 56%, rgba(250, 245, 255, 0.58)),
    var(--glass);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.showcase-panel h3 {
  margin-bottom: 10px;
  font-size: clamp(22px, 3vw, 32px);
}

.showcase-panel p {
  color: var(--muted);
}

.character-layout {
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
}

.character-visual {
  position: relative;
  display: grid;
  place-items: center;
  padding: clamp(16px, 2.4vw, 28px);
}

.character-visual::before {
  content: "";
  position: absolute;
  width: min(520px, 82vw);
  aspect-ratio: 1;
  border: 1px solid rgba(216, 164, 73, 0.35);
  border-radius: 50%;
  background:
    repeating-conic-gradient(from 20deg, rgba(254, 235, 200, 0.26) 0 7deg, transparent 7deg 20deg),
    radial-gradient(circle, rgba(235, 248, 255, 0.32) 0 46%, transparent 47%);
  animation: sigilSpin 34s linear infinite;
}

.character-visual picture {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border: 1px solid rgba(216, 164, 73, 0.22);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.36);
  box-shadow: 0 24px 62px rgba(77, 143, 232, 0.18);
}

.character-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 35% center;
  filter: drop-shadow(0 22px 44px rgba(48, 94, 184, 0.22));
  animation: heroBreath 8s ease-in-out infinite;
}

.character-layout[data-mode="daily"] .character-visual img {
  object-position: 65% center;
}

.character-panel {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.78), rgba(235, 248, 255, 0.62)),
    var(--glass);
}

.character-panel p {
  color: var(--muted);
}

.character-switch {
  display: inline-flex;
  gap: 4px;
  margin-top: 18px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.52);
  backdrop-filter: blur(12px);
}

.character-switch button {
  min-height: 36px;
  padding: 7px 13px;
  border: 0;
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-weight: 800;
}

.character-switch button.is-active {
  color: #10233d;
  background: linear-gradient(135deg, #feebc8, #e6fffa);
  box-shadow: 0 0 18px var(--glow-gold);
}

.mini-facts {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.mini-facts span {
  padding: 9px 10px;
  border: 1px solid rgba(216, 164, 73, 0.24);
  border-radius: var(--radius);
  color: var(--brand-deep);
  background: rgba(255, 255, 255, 0.48);
  font-size: 13px;
  font-weight: 800;
}

.status-meter-list {
  display: grid;
  gap: 10px;
}

.character-dashboard {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(126px, 0.88fr);
  gap: 12px;
  align-items: stretch;
  margin-top: 20px;
  padding: 12px;
  border: 1px solid rgba(216, 164, 73, 0.22);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(254, 235, 200, 0.22), rgba(230, 255, 250, 0.28)),
    rgba(255, 255, 255, 0.44);
}

.status-meter {
  display: grid;
  gap: 7px;
}

.status-meter span {
  color: var(--text);
  font-weight: 800;
  font-size: 14px;
}

.status-meter i {
  display: block;
  height: 10px;
  border-radius: 999px;
  background:
    linear-gradient(90deg, var(--gold), var(--brand), var(--violet)) 0 0 / var(--value) 100% no-repeat,
    rgba(255, 255, 255, 0.62);
  box-shadow: inset 0 0 0 1px var(--line), 0 0 18px var(--glow-blue);
}

.status-gallery {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  perspective: 1200px;
}

.status-card {
  min-height: 210px;
  perspective: 1000px;
}

.status-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 210px;
  transform-style: preserve-3d;
  transition: transform 0.55s ease;
}

.status-card:hover .status-card-inner,
.status-card:focus-within .status-card-inner {
  transform: rotateY(180deg);
}

.status-card-face {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 22px;
  border-color: rgba(216, 164, 73, 0.28);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(250, 245, 255, 0.68)),
    var(--glass);
  backface-visibility: hidden;
}

.status-card-face h3 {
  color: var(--brand-deep);
}

.status-card-face p {
  color: var(--muted);
}

.status-card-back {
  transform: rotateY(180deg);
  background:
    linear-gradient(135deg, rgba(230, 255, 250, 0.72), rgba(254, 235, 200, 0.68)),
    var(--glass);
}

.media-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 16px;
  align-items: stretch;
}

.media-tile {
  position: relative;
  min-height: 260px;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow);
}

.media-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-tile figcaption {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  padding: 8px 10px;
  border-radius: var(--radius);
  color: #fff;
  background: rgba(13, 18, 34, 0.58);
  backdrop-filter: blur(12px);
  font-size: 13px;
}

.gallery-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.gallery-strip .media-tile {
  min-height: 168px;
}

.media-tile:hover {
  box-shadow: 0 24px 62px rgba(77, 143, 232, 0.18), 0 0 24px var(--glow-gold);
}

.gameplay-showcase {
  grid-template-columns: minmax(360px, 0.95fr) minmax(0, 1.05fr);
}

.gameplay-showcase .media-tile {
  min-height: 460px;
}

.flow-steps {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.flow-steps div {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(216, 164, 73, 0.24);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.5);
}

.flow-steps strong {
  display: grid;
  place-items: center;
  width: 40px;
  aspect-ratio: 1;
  border-radius: 50%;
  color: #10233d;
  background: linear-gradient(135deg, #feebc8, #e6fffa);
  box-shadow: 0 0 18px var(--glow-gold);
}

.flow-steps span {
  color: var(--text);
  font-weight: 800;
}

.feature-showcase {
  display: grid;
  grid-template-columns: minmax(0, 0.98fr) minmax(0, 1.02fr);
  gap: 20px;
  align-items: stretch;
}

.feature-card.feature-primary {
  min-height: 520px;
  grid-template-rows: minmax(0, 1fr) auto;
}

.feature-stack {
  display: grid;
  grid-template-rows: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.feature-stack .feature-card {
  min-height: 0;
}

.feature-compact {
  grid-template-columns: minmax(188px, 0.42fr) minmax(0, 0.58fr);
}

.feature-compact .feature-copy {
  padding: 18px;
}

.feature-compact .feature-tags {
  margin-top: 10px;
}

.feature-compact h3 {
  margin-bottom: 7px;
}

.scene-board {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 1fr);
  gap: 20px;
  align-items: stretch;
  min-height: 540px;
}

.scene-main {
  height: 100%;
  min-height: 540px;
}

.scene-main figcaption {
  font-size: 14px;
}

.scene-thumbs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(4, 1fr);
  gap: 12px;
  height: 540px;
  min-height: 0;
}

.scene-thumbs .media-tile {
  height: 100%;
  min-height: 0;
}

.scene-thumbs .media-tile figcaption {
  left: 8px;
  right: 8px;
  bottom: 8px;
  padding: 6px 8px;
  font-size: 12px;
}

.timeline {
  display: grid;
  gap: 12px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 16px;
  align-items: start;
}

.timeline-date {
  color: var(--brand-deep);
  font-weight: 900;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-item {
  padding: 0;
  overflow: hidden;
}

.faq-item summary {
  padding: 18px 20px;
  cursor: pointer;
  font-weight: 900;
}

.faq-item p {
  padding: 0 20px 20px;
}

.download-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(230, 255, 250, 0.66));
}

[data-theme="night"] .download-panel {
  background: linear-gradient(135deg, rgba(26, 33, 55, 0.88), rgba(20, 44, 43, 0.66));
}

.page-hero {
  padding: 102px 0 54px;
  background:
    linear-gradient(90deg, rgba(12, 17, 34, 0.76), rgba(36, 54, 88, 0.25)),
    image-set(url("../img/brand-key-art.webp") type("image/webp"), url("../img/favicon") type("image/png"));
  background-size: cover;
  background-position: center;
  color: #fff;
}

.page-hero h1 {
  max-width: 900px;
  font-size: clamp(36px, 6vw, 62px);
}

.page-hero p {
  max-width: 740px;
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 17px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
}

.breadcrumbs a {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 22px;
  align-items: start;
}

.article-main {
  display: grid;
  gap: 18px;
}

.article-section {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.58);
  backdrop-filter: blur(16px);
}

[data-theme="night"] .article-section {
  background: rgba(20, 26, 45, 0.58);
}

.article-section h2 {
  margin-bottom: 14px;
  font-size: clamp(24px, 3vw, 34px);
}

.article-section h3 {
  margin: 22px 0 8px;
}

.article-section p + p,
.article-section ul + p,
.article-section p + ul {
  margin-top: 12px;
}

.article-section ul,
.article-section ol {
  margin: 12px 0 0;
  padding-left: 20px;
  color: var(--muted);
}

.article-section li + li {
  margin-top: 8px;
}

.sidebar {
  position: sticky;
  top: 94px;
  display: grid;
  gap: 14px;
}

.toc a {
  display: block;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}

.toc a:hover {
  color: var(--brand-deep);
}

.last-updated {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  padding: 8px 12px;
  border: 1px solid rgba(254, 235, 200, 0.7);
  border-radius: 999px;
  color: #513f19;
  background: rgba(254, 235, 200, 0.78);
  font-weight: 800;
}

[data-theme="night"] .last-updated {
  color: #ffe8b8;
  background: rgba(216, 164, 73, 0.18);
}

.site-footer {
  padding: 36px 0;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.56);
  backdrop-filter: blur(18px);
}

.floating-oracle {
  position: fixed;
  right: 12px;
  bottom: 12px;
  z-index: 60;
  display: grid;
  grid-template-columns: 42px minmax(0, 146px);
  gap: 8px;
  align-items: center;
  max-width: 220px;
  padding: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(235, 248, 255, 0.7)),
    var(--glass);
  opacity: 0.92;
  transform: translateX(156px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.floating-oracle:hover,
.floating-oracle:focus-within {
  opacity: 1;
  transform: translateX(0) translateY(-2px);
}

.floating-oracle img {
  width: 42px;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: 68% center;
  border-radius: 50%;
  border: 1px solid rgba(216, 164, 73, 0.42);
}

.floating-oracle strong {
  display: block;
  font-size: 12px;
}

.floating-oracle a {
  color: var(--brand-deep);
  font-size: 12px;
  font-weight: 800;
}

.magic-spark {
  position: fixed;
  z-index: 999;
  width: 12px;
  aspect-ratio: 1;
  border-radius: 50%;
  pointer-events: none;
  background: #feebc8;
  box-shadow: 0 0 24px #feebc8, 0 0 36px #ebf8ff;
  animation: sparkPop 0.55s ease-out forwards;
}

[data-theme="night"] .site-footer {
  background: rgba(18, 21, 40, 0.74);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.7fr);
  gap: 24px;
  align-items: start;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-links a {
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.45);
  font-size: 13px;
}

.footer-note {
  color: var(--muted);
  font-size: 14px;
}

.skip-link {
  position: absolute;
  left: 14px;
  top: -80px;
  z-index: 100;
  padding: 9px 12px;
  border-radius: var(--radius);
  color: var(--text);
  background: #fff;
}

.skip-link:focus {
  top: 14px;
}

@keyframes sigilSpin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes sigilPulse {
  0%,
  100% {
    opacity: 0.42;
    filter: drop-shadow(0 0 0 rgba(254, 235, 200, 0));
  }
  50% {
    opacity: 0.68;
    filter: drop-shadow(0 0 24px var(--glow-gold));
  }
}

@keyframes heroBreath {
  0%,
  100% {
    transform: scale(1) translateY(0);
  }
  50% {
    transform: scale(1.035) translateY(-8px);
  }
}

@keyframes sparkPop {
  to {
    transform: translate(-50%, -50%) scale(4);
    opacity: 0;
  }
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: auto 1fr auto;
  }

  .nav-toggle {
    display: inline-grid;
    justify-self: end;
  }

  .theme-toggle {
    justify-self: end;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--glass-strong);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
  }

  .site-header.nav-open .site-nav {
    display: flex;
  }

  .site-nav a {
    border-radius: var(--radius);
  }

  .hero-content {
    transform: none;
  }

  .meta-strip,
  .content-grid,
  .guide-grid,
  .index-grid,
  .gallery-strip,
  .question-grid,
  .article-grid,
  .summary-grid,
  .media-grid,
  .showcase-layout,
  .feature-showcase,
  .scene-board,
  .section-head,
  .article-layout,
  .footer-grid,
  .character-layout,
  .status-gallery {
    grid-template-columns: 1fr;
  }

  .scene-thumbs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: none;
    height: auto;
  }

  .scene-board {
    min-height: 0;
  }

  .scene-thumbs .media-tile {
    min-height: 190px;
    height: auto;
  }

  .feature-card.feature-wide,
  .feature-card.feature-tall {
    grid-column: auto;
    min-height: 260px;
  }

  .feature-card.feature-primary {
    grid-column: auto;
    min-height: 0;
  }

  .feature-primary .feature-art {
    min-height: 280px;
  }

  .feature-compact {
    grid-template-columns: minmax(220px, 0.44fr) minmax(0, 0.56fr);
    min-height: 220px;
  }

  .showcase-media,
  .showcase-panel,
  .gameplay-showcase .media-tile,
  .scene-main {
    min-height: 380px;
  }

  .sidebar {
    position: static;
  }
}

@media (max-width: 640px) {
  body {
    line-height: 1.68;
  }

  .site-header {
    width: calc(100% - 20px);
    margin-top: 10px;
    gap: 10px;
  }

  .brand span:last-child {
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .hero {
    min-height: 84vh;
    padding-top: 136px;
    background-color: #111827;
  }

  .hero-media img {
    object-position: 58% center;
  }

  .hero::before {
    background:
      linear-gradient(90deg, rgba(12, 17, 34, 0.88), rgba(22, 34, 60, 0.45)),
      linear-gradient(0deg, rgba(247, 250, 252, 0.96) 0, rgba(247, 250, 252, 0.04) 28%);
  }

  .hero-summary,
  .lead,
  .page-hero p {
    font-size: 16px;
  }

  .section {
    padding: 54px 0;
  }

  .meta-strip {
    margin-top: -24px;
  }

  .download-panel,
  .timeline-item {
    grid-template-columns: 1fr;
  }

  .btn {
    width: 100%;
  }

  .media-tile {
    min-height: 210px;
  }

  .character-visual {
    min-height: 300px;
    padding: 14px;
  }

  .showcase-media,
  .showcase-panel,
  .gameplay-showcase .media-tile,
  .scene-main {
    min-height: 300px;
  }

  .scene-thumbs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .scene-thumbs .media-tile {
    min-height: 150px;
    height: auto;
  }

  .feature-primary .feature-art {
    min-height: 210px;
  }

  .feature-primary .feature-copy,
  .feature-compact .feature-copy {
    padding: 18px;
  }

  .feature-compact {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .feature-thumb {
    height: 150px;
    min-height: 150px;
    border-right: 0;
    border-bottom: 1px solid rgba(216, 164, 73, 0.2);
  }

  .mini-facts {
    grid-template-columns: 1fr;
  }

  .floating-oracle {
    left: 10px;
    right: 10px;
    bottom: 10px;
    grid-template-columns: 44px 1fr;
    max-width: none;
    transform: none;
  }

  .floating-oracle:hover,
  .floating-oracle:focus-within {
    transform: none;
  }

  .floating-oracle img {
    width: 44px;
  }

  .article-section,
  .glass-panel,
  .summary-copy {
    padding: 18px;
  }
}

@media (max-width: 360px) {
  .character-dashboard,
  .scene-thumbs {
    grid-template-columns: 1fr;
  }

  .scene-thumbs .media-tile {
    min-height: 210px;
  }
}

/* Whitehat protocol additions. Existing site selectors remain unchanged. */
.my-news-home, .my-news-page {
  --my-news-surface: var(--glass, rgba(255, 255, 255, 0.82));
  --my-news-text: var(--text, #182033);
  --my-news-muted: var(--muted, #5f6f87);
  --my-news-accent: var(--brand-deep, #305eb8);
  --my-news-line: var(--line, rgba(97, 120, 150, 0.22));
}
.my-news-home { width: 100%; padding: 26px 16px 42px; color: var(--my-news-text); }
.my-news-home .my-news-shell, .my-news-page .my-news-shell { width: min(var(--container, var(--max, 1180px)), calc(100% - 0px)); margin: 0 auto; }
.my-news-heading { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid var(--my-news-line); }
.my-news-kicker { margin: 0 0 3px; color: var(--my-news-accent); font-size: .78rem; font-weight: 800; letter-spacing: .13em; }
.my-news-heading h2, .my-news-page h1, .my-news-page h2, .my-news-card h2, .my-news-card h3 { color: var(--my-news-text); }
.my-news-heading h2 { margin: 0; font-size: clamp(1.45rem, 2.8vw, 2rem); line-height: 1.25; }
.my-news-all-link, .my-news-card a, .my-news-back { display: inline-flex; align-items: center; width: fit-content; color: var(--my-news-text); font-weight: 700; text-decoration: none; border-bottom: 1px solid var(--my-news-accent); }
.my-news-all-link:hover, .my-news-card a:hover, .my-news-back:hover { color: var(--my-news-accent); }
.my-news-card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.my-news-card { display: flex; flex-direction: column; min-width: 0; min-height: 196px; padding: 20px; color: var(--my-news-text); background: var(--my-news-surface); border: 1px solid var(--my-news-line); border-radius: var(--radius, 8px); box-shadow: var(--shadow, 0 14px 36px rgba(0,0,0,.18)); }
.my-news-card h2, .my-news-card h3 { margin: 0; font-size: 1.08rem; line-height: 1.5; }
.my-news-card time { display: block; margin: 10px 0 0; color: var(--my-news-muted); font-size: .86rem; }
.my-news-card p { margin: 10px 0 16px; color: var(--my-news-muted); }
.my-news-card a { margin-top: auto; }
.my-news-empty { grid-column: 1 / -1; margin: 0; padding: 20px; color: var(--my-news-muted); background: var(--my-news-surface); border: 1px dashed var(--my-news-line); border-radius: var(--radius, 8px); }
.my-news-page { min-height: 100vh; padding: 44px 16px 64px; color: var(--my-news-text); background: var(--bg, var(--cream, #fff)); }
.my-news-page .my-news-topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 28px; color: var(--my-news-muted); }
.my-news-page .my-news-brand { margin: 0; color: var(--my-news-muted); font-size: .93rem; }
.my-news-page .my-news-intro { max-width: 760px; margin: 0 0 24px; color: var(--my-news-muted); }
.my-news-page .my-news-detail { max-width: 820px; padding: clamp(22px, 5vw, 44px); color: var(--my-news-text); background: var(--my-news-surface); border: 1px solid var(--my-news-line); border-radius: var(--radius, 8px); box-shadow: var(--shadow, 0 14px 36px rgba(0,0,0,.18)); }
.my-news-page .my-news-detail h1 { margin: 0; font-size: clamp(1.8rem, 5vw, 3rem); line-height: 1.22; }
.my-news-page .my-news-detail time { display: block; margin: 16px 0 24px; color: var(--my-news-muted); }
.my-news-page .my-news-summary { margin: 0 0 20px; color: var(--my-news-muted); font-size: 1.05rem; }
.my-news-page .my-news-content { margin: 0; color: var(--my-news-text); white-space: pre-wrap; }
.my-news-page .my-news-footer { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.my-friend-link { color: inherit; }
.download-confirm-backdrop { position: fixed; inset: 0; z-index: 9999; display: grid; place-items: center; padding: 18px; background: rgba(0,0,0,.64); }
.download-confirm-panel { width: min(460px, 100%); padding: 24px; color: var(--my-news-text); background: var(--my-news-surface); border: 1px solid var(--my-news-line); border-radius: var(--radius, 8px); box-shadow: var(--shadow, 0 24px 70px rgba(0,0,0,.35)); }
.download-confirm-panel h2 { margin: 0 0 10px; color: var(--my-news-text); font-size: 1.3rem; }
.download-confirm-panel p { margin: 0; color: var(--my-news-muted); }
.download-confirm-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.download-confirm-actions button { min-height: 40px; padding: 0 16px; font: inherit; font-weight: 700; color: var(--my-news-text); background: transparent; border: 1px solid var(--my-news-line); border-radius: 6px; cursor: pointer; }
.download-confirm-actions .download-confirm-primary { color: #19120a; background: var(--my-news-accent); border-color: var(--my-news-accent); }
@media (max-width: 640px) { .my-news-home { padding-inline: 12px; } .my-news-heading, .my-news-page .my-news-topbar { align-items: flex-start; flex-direction: column; } .my-news-page { padding: 26px 12px 44px; } .my-news-card { min-height: 0; } }
