@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700;800&family=Sawarabi+Mincho&display=swap');

:root {
  --bg-0: #040713;
  --bg-1: #07101d;
  --bg-2: #0a1628;
  --bg-3: #111529;
  --panel: rgba(9, 15, 28, 0.68);
  --panel-strong: rgba(8, 12, 23, 0.82);
  --panel-soft: rgba(14, 20, 36, 0.5);
  --line: rgba(182, 214, 255, 0.14);
  --line-strong: rgba(205, 224, 255, 0.24);
  --text: #ecf4ff;
  --muted: rgba(222, 233, 248, 0.72);
  --muted-strong: rgba(232, 240, 252, 0.84);
  --cyan: #74e4ff;
  --cyan-strong: #3fc7ff;
  --violet: #be93ff;
  --pink: #ff8bc5;
  --gold: #efcb79;
  --danger: #291322;
  --shadow: 0 32px 120px rgba(0, 0, 0, 0.48);
  --gloss: linear-gradient(180deg, rgba(255,255,255,0.11), rgba(255,255,255,0.02) 18%, rgba(255,255,255,0) 36%);
  --gradient-line: linear-gradient(90deg, rgba(116, 228, 255, 0), rgba(116, 228, 255, 0.9), rgba(190, 147, 255, 0.9), rgba(239, 203, 121, 0));
  --radius-xl: 34px;
  --radius-lg: 26px;
  --radius-md: 18px;
  --radius-sm: 14px;
  --max-width: 1240px;
  --copy-width: 76ch;
  --ease-premium: cubic-bezier(0.19, 1, 0.22, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 18%, rgba(89, 178, 255, 0.12), transparent 0 24%),
    radial-gradient(circle at 82% 12%, rgba(225, 118, 255, 0.1), transparent 0 18%),
    radial-gradient(circle at 50% 110%, rgba(103, 194, 255, 0.08), transparent 0 34%),
    linear-gradient(180deg, #02040d 0%, #040713 18%, #050915 44%, #040611 100%);
  font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', sans-serif;
  line-height: 1.92;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

body::before {
  background:
    repeating-linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.02) 0px,
      rgba(255, 255, 255, 0.02) 1px,
      transparent 1px,
      transparent 4px
    );
  mix-blend-mode: soft-light;
  opacity: 0.24;
}

body::after {
  background:
    radial-gradient(circle at center, transparent 52%, rgba(2, 4, 13, 0.46) 100%),
    linear-gradient(180deg, rgba(4, 7, 19, 0.24), rgba(4, 7, 19, 0.54));
}

body.glitch-pulse::before {
  opacity: 0.42;
  transform: translateY(1px);
}

body.glitch-pulse .site-shell {
  transform: translate3d(0.6px, 0, 0);
}

::selection {
  background: rgba(116, 228, 255, 0.22);
  color: #fff;
}

img,
svg,
canvas {
  display: block;
  max-width: 100%;
}

#starfield {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.site-shell {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 36px), var(--max-width));
  margin: 0 auto;
  padding: 18px 0 42px;
  transition: transform 180ms steps(2, jump-none);
}

.panel {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(11, 18, 32, 0.78), rgba(8, 12, 24, 0.72));
  border: 0.8px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px) saturate(120%);
  -webkit-backdrop-filter: blur(18px) saturate(120%);
}

.panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gloss);
  pointer-events: none;
}

.panel::after {
  content: "";
  position: absolute;
  left: 26px;
  right: 26px;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,0.26), rgba(255,255,255,0));
  opacity: 0.72;
  pointer-events: none;
}

.panel-sub {
  background: linear-gradient(180deg, rgba(14, 20, 36, 0.66), rgba(8, 12, 23, 0.56));
  border-color: rgba(190, 209, 245, 0.11);
  border-radius: var(--radius-lg);
}

.panel-chrome {
  background: linear-gradient(180deg, rgba(8, 13, 24, 0.76), rgba(7, 10, 19, 0.62));
}

.section-soft-edge {
  isolation: isolate;
  border-top-color: rgba(190, 209, 245, 0.07);
  border-bottom-color: rgba(190, 209, 245, 0.07);
}

.section-soft-edge-top,
.section-soft-edge-both {
  margin-top: -12px;
}

.section-soft-edge::before {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.024) 10%, rgba(255,255,255,0) 24%),
    radial-gradient(120% 22% at 50% 0%, rgba(255,255,255,0.065), rgba(255,255,255,0) 72%),
    radial-gradient(120% 18% at 50% 100%, rgba(255, 139, 197, 0.06), rgba(255, 139, 197, 0) 76%),
    linear-gradient(180deg, rgba(116, 228, 255, 0.055), rgba(116, 228, 255, 0) 78px),
    linear-gradient(0deg, rgba(190, 147, 255, 0.05), rgba(190, 147, 255, 0) 92px),
    repeating-linear-gradient(180deg, rgba(255,255,255,0.014) 0px, rgba(255,255,255,0.014) 1px, transparent 1px, transparent 6px);
  opacity: 0.96;
}

.section-soft-edge-top::after,
.section-soft-edge-both::after {
  opacity: 0.36;
}

.section-soft-edge-bottom::before,
.section-soft-edge-both::before {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.022) 10%, rgba(255,255,255,0) 24%),
    radial-gradient(120% 22% at 50% 0%, rgba(255,255,255,0.065), rgba(255,255,255,0) 72%),
    radial-gradient(120% 22% at 50% 100%, rgba(255,255,255,0.04), rgba(255,255,255,0) 62%),
    linear-gradient(180deg, rgba(116, 228, 255, 0.055), rgba(116, 228, 255, 0) 78px),
    linear-gradient(0deg, rgba(190, 147, 255, 0.05), rgba(190, 147, 255, 0) 92px),
    repeating-linear-gradient(180deg, rgba(255,255,255,0.014) 0px, rgba(255,255,255,0.014) 1px, transparent 1px, transparent 6px);
}

.parallax-layer {
  --parallax-y: 0px;
  will-change: transform;
  pointer-events: none;
}

.observer-grid.parallax-layer,
.observer-noise.parallax-layer,
.signal.parallax-layer,
.constellation.parallax-layer {
  transform: translate3d(0, var(--parallax-y), 0);
}

.orbit-a.parallax-layer {
  transform: translate(-50%, calc(-50% + var(--parallax-y))) rotate(-18deg);
}

.orbit-b.parallax-layer {
  transform: translate(-50%, calc(-50% + var(--parallax-y))) rotate(12deg);
}

.noise-panel {
  isolation: isolate;
}

.noise-panel .section-heading::after,
.noise-panel .play-flow::before,
.quote-archive::before,
.free-story-grid::before,
.gimmick-grid::before,
.zodiac-layout::before,
.guide-grid::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -18px;
  height: 1px;
  background: var(--gradient-line);
  opacity: 0.75;
}

.site-header {
  position: sticky;
  top: 12px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 20px;
  margin-bottom: 20px;
  border-radius: 999px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  position: relative;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #fff3c3, var(--gold) 40%, rgba(239, 203, 121, 0.04) 72%);
  box-shadow: 0 0 26px rgba(239, 203, 121, 0.8), 0 0 48px rgba(116, 228, 255, 0.16);
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: -7px;
  border-radius: 50%;
  border: 1px solid rgba(116, 228, 255, 0.18);
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.22;
}

.brand-text strong {
  font-size: 0.98rem;
  letter-spacing: 0.16em;
}

.brand-text small {
  color: var(--muted);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.site-nav a,
.footer-links a {
  color: var(--muted);
  text-decoration: none;
}

.site-nav a {
  position: relative;
  padding: 8px 14px;
  border-radius: 999px;
  border: 0.8px solid transparent;
  transition:
    color 280ms var(--ease-premium),
    border-color 280ms var(--ease-premium),
    background 280ms var(--ease-premium);
}

.site-nav a:hover,
.site-nav a:focus-visible,
.footer-links a:hover,
.footer-links a:focus-visible {
  color: #fff;
  border-color: rgba(116, 228, 255, 0.22);
  background: rgba(116, 228, 255, 0.04);
  outline: none;
}

.section-panel,
.hero,
.site-footer {
  margin-bottom: 26px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr);
  gap: 38px;
  padding: 84px 52px;
}

.hero-copy {
  align-self: center;
}

.eyebrow,
.log-kicker,
.story-kicker,
.card-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.75rem;
  font-weight: 700;
}

.eyebrow::before,
.log-kicker::before,
.story-kicker::before,
.card-kicker::before {
  content: "";
  width: 28px;
  height: 1px;
  background: linear-gradient(90deg, rgba(116,228,255,0), rgba(116,228,255,0.9));
}

h1,
h2,
h3,
h4,
blockquote,
.episode-prose,
.quote-card blockquote {
  margin: 0;
}

h1,
h2,
.quote-card blockquote,
.episode-prose,
.hero-note,
.log-note {
  font-family: 'Sawarabi Mincho', 'Hiragino Mincho ProN', serif;
}

h1,
h2,
h3,
h4 {
  line-height: 1.16;
}

h1 {
  max-width: 12ch;
  font-size: clamp(3rem, 5.4vw, 5.5rem);
  letter-spacing: -0.05em;
  text-wrap: balance;
}

h2 {
  max-width: 16ch;
  font-size: clamp(2.15rem, 4vw, 3.8rem);
  letter-spacing: -0.03em;
  text-wrap: balance;
}

h3 {
  font-size: clamp(1.16rem, 1.2rem + 0.3vw, 1.58rem);
  line-height: 1.42;
}

h4 {
  font-size: 1.08rem;
  line-height: 1.5;
}

p,
li,
summary,
.button,
span,
small,
strong {
  font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', sans-serif;
}

.lead,
.section-heading > p:last-child,
.info-card p,
.story-side-card p,
.quote-card p,
.gimmick-card p,
.character-card p,
.notice-box p,
.site-footer p,
.flow-step p,
.flow-loop-note p,
.zodiac-feature p,
.guide-card p,
.app-free-callout p,
.observer-log p {
  color: var(--muted);
}

.lead,
.section-heading > p:last-child {
  max-width: var(--copy-width);
}

.lead-hero {
  margin-top: 24px;
  font-size: 1.06rem;
}

.hero-note {
  margin-top: 18px;
  color: rgba(236, 244, 255, 0.76);
  font-size: 0.98rem;
  line-height: 1.95;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 20px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.03em;
  border: 0.8px solid transparent;
  transition:
    transform 420ms var(--ease-premium),
    box-shadow 420ms var(--ease-premium),
    border-color 420ms var(--ease-premium),
    background 420ms var(--ease-premium);
}

.button::after {
  content: "";
  position: absolute;
  inset: auto 16px 10px;
  height: 1px;
  background: linear-gradient(90deg, rgba(116,228,255,0), rgba(116,228,255,0.92), rgba(190,147,255,0.92), rgba(116,228,255,0));
  opacity: 0.82;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  outline: none;
}

.button-primary {
  color: #fff;
  background: linear-gradient(180deg, rgba(17, 31, 58, 0.9), rgba(12, 19, 35, 0.78));
  border-color: rgba(116, 228, 255, 0.28);
  box-shadow: 0 16px 46px rgba(12, 25, 53, 0.54);
}

.button-primary:hover,
.button-primary:focus-visible {
  box-shadow: 0 24px 56px rgba(15, 31, 65, 0.68), 0 0 28px rgba(116, 228, 255, 0.1);
}

.button-secondary {
  color: var(--muted-strong);
  background: rgba(255, 255, 255, 0.02);
  border-color: rgba(190, 147, 255, 0.2);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  box-shadow: 0 20px 48px rgba(22, 15, 42, 0.42);
}

.hero-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 32px;
}

.meta-chip {
  padding: 18px 18px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 0.8px solid rgba(190, 209, 245, 0.1);
}

.meta-chip span {
  display: inline-block;
  margin-bottom: 8px;
  font-family: 'Sawarabi Mincho', serif;
  font-size: 1.08rem;
  color: var(--text);
}

.meta-chip small {
  display: block;
  color: var(--muted);
  line-height: 1.7;
}

.hero-stage {
  position: relative;
  display: grid;
  align-content: center;
  gap: 16px;
}

.observer-frame {
  position: relative;
  min-height: 660px;
  border-radius: 34px;
  background:
    radial-gradient(circle at 50% 28%, rgba(116, 228, 255, 0.12), transparent 0 18%),
    radial-gradient(circle at 62% 68%, rgba(190, 147, 255, 0.12), transparent 0 20%),
    linear-gradient(180deg, rgba(11, 17, 31, 0.9), rgba(6, 9, 18, 0.92));
  border: 0.8px solid rgba(190, 209, 245, 0.14);
  overflow: hidden;
}

.observer-frame::before,
.observer-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.observer-frame::before {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.08), transparent 16%, transparent 72%, rgba(255,255,255,0.03)),
    repeating-linear-gradient(180deg, rgba(255,255,255,0.022) 0px, rgba(255,255,255,0.022) 1px, transparent 1px, transparent 5px);
  opacity: 0.54;
}

.observer-frame::after {
  inset: 18px;
  border-radius: 26px;
  border: 1px solid rgba(116, 228, 255, 0.08);
}

.observer-grid,
.observer-noise,
.orbit,
.signal,
.constellation,
.character {
  position: absolute;
}

.observer-grid {
  inset: 0;
  background:
    linear-gradient(rgba(116, 228, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(116, 228, 255, 0.06) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(180deg, transparent 0, rgba(0,0,0,0.94) 18%, rgba(0,0,0,0.94) 100%);
  opacity: 0.25;
}

.observer-noise {
  inset: 0;
  background:
    radial-gradient(circle at 18% 74%, rgba(255, 139, 197, 0.08), transparent 0 14%),
    radial-gradient(circle at 76% 26%, rgba(190, 147, 255, 0.09), transparent 0 11%);
  mix-blend-mode: screen;
}

.orbit {
  border: 1px solid rgba(116, 228, 255, 0.15);
  border-radius: 50%;
}

.orbit-a {
  width: 420px;
  height: 420px;
  left: 50%;
  top: 48%;
  transform: translate(-50%, -50%) rotate(-18deg);
}

.orbit-b {
  width: 520px;
  height: 300px;
  left: 50%;
  top: 54%;
  transform: translate(-50%, -50%) rotate(12deg);
  border-color: rgba(239, 203, 121, 0.14);
}

.signal {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.65), transparent);
  opacity: 0.4;
}

.signal-a {
  left: 44px;
  right: 68px;
  top: 128px;
}

.signal-b {
  left: 84px;
  right: 40px;
  bottom: 132px;
}

.constellation-main {
  inset: 0;
}

.constellation-main span {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff, var(--cyan) 56%, rgba(116,228,255,0.1));
  box-shadow: 0 0 20px rgba(116, 228, 255, 0.6);
}

.constellation-main span:nth-child(1) { top: 18%; left: 58%; }
.constellation-main span:nth-child(2) { top: 34%; left: 70%; }
.constellation-main span:nth-child(3) { top: 48%; left: 56%; }
.constellation-main span:nth-child(4) { top: 64%; left: 67%; }
.constellation-main span:nth-child(5) { top: 76%; left: 52%; }

.constellation-main::before,
.constellation-main::after {
  content: "";
  position: absolute;
  left: 56%;
  top: 18%;
  width: 16%;
  height: 54%;
  border-left: 1px solid rgba(116, 228, 255, 0.18);
  border-bottom: 1px solid rgba(116, 228, 255, 0.18);
  transform: skewX(-18deg) rotate(10deg);
  transform-origin: top left;
}

.constellation-main::after {
  left: 52%;
  top: 48%;
  width: 15%;
  height: 28%;
  border-color: rgba(239, 203, 121, 0.18);
  transform: skewX(22deg) rotate(-14deg);
}

.character {
  filter: drop-shadow(0 0 24px rgba(255,255,255,0.1));
}

.character .body {
  width: 100%;
  height: 100%;
  border-radius: 50%;
}

.character .face {
  position: absolute;
  inset: 0;
}

.character .eye,
.character .mouth {
  position: absolute;
  background: #12203b;
}

.character-gapo {
  left: 19%;
  bottom: 18%;
  width: 132px;
  height: 132px;
}

.character-gapo .body {
  background: radial-gradient(circle at 32% 28%, #fff4af, #ffd763 58%, #ea9d10 100%);
  box-shadow: 0 0 32px rgba(239, 203, 121, 0.22);
}

.spark {
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.9), rgba(255,255,255,0));
}

.spark-a { left: -6px; top: 18px; }
.spark-b { right: -6px; top: 32px; }

.character-gapomi {
  left: 48%;
  top: 16%;
  width: 108px;
  height: 108px;
}

.character-gapomi .body {
  background: radial-gradient(circle at 35% 30%, #ffe7f8, #ff9ccf 60%, #ff6fbb 100%);
  box-shadow: 0 0 36px rgba(255, 139, 197, 0.22);
}

.character-gapomi .halo {
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  border: 1px solid rgba(255, 139, 197, 0.3);
}

.character-gahahaha {
  right: 18%;
  bottom: 22%;
  width: 124px;
  height: 124px;
}

.character-gahahaha .body {
  background: radial-gradient(circle at 32% 30%, #dbccff, #a16ef5 56%, #5f1fff 100%);
  clip-path: polygon(50% 0%, 64% 12%, 82% 4%, 88% 24%, 100% 36%, 90% 54%, 98% 78%, 78% 84%, 68% 100%, 48% 90%, 30% 100%, 18% 82%, 0% 78%, 10% 56%, 0% 34%, 16% 20%, 18% 0%, 38% 10%);
  box-shadow: 0 0 40px rgba(161, 110, 245, 0.18);
}

.character-gahahaha .noise-ring {
  position: absolute;
  inset: -14px;
  border-radius: 50%;
  border: 1px dashed rgba(190, 147, 255, 0.28);
  transform: rotate(14deg);
}

.character .eye {
  top: 42%;
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.character .eye:first-child { left: 36%; }
.character .eye:nth-child(2) { right: 36%; }

.character .mouth {
  left: 50%;
  bottom: 28%;
  width: 26px;
  height: 10px;
  border-radius: 0 0 12px 12px;
  transform: translateX(-50%);
}

.eye-angry {
  height: 3px !important;
  top: 46% !important;
  border-radius: 2px !important;
  transform: rotate(-12deg);
}

.eye-angry:nth-child(2) {
  transform: rotate(12deg);
}

.grin {
  width: 30px !important;
  height: 14px !important;
  border-radius: 0 0 18px 18px !important;
}

.observer-log {
  padding: 20px 22px 18px;
}

.observer-log p {
  margin: 0 0 8px;
  font-size: 0.93rem;
}

.log-note {
  margin-top: 12px;
  color: rgba(236, 244, 255, 0.8) !important;
  font-size: 0.94rem;
}

.section-panel {
  padding: 128px 56px;
}

.section-heading {
  position: relative;
  padding-bottom: 34px;
  margin-bottom: 42px;
}

.section-heading-wide h2,
.section-heading-wide p {
  max-width: 20ch;
}

.section-heading-wide > p:last-child {
  max-width: 74ch;
}

.section-heading::after {
  bottom: 0;
}

.feature-grid,
.quote-archive,
.gimmick-grid,
.guide-grid,
.free-story-grid {
  position: relative;
}

.feature-grid,
.gimmick-grid,
.guide-grid,
.character-cards,
.story-side-grid,
.zodiac-side-grid,
.flow-steps {
  display: grid;
  gap: 18px;
}

.world-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.info-card,
.story-side-card,
.gimmick-card,
.guide-card,
.character-card,
.flow-step,
.quote-card,
.zodiac-feature,
.notice-box,
.app-free-callout,
.episode-card {
  position: relative;
  background: linear-gradient(180deg, rgba(15, 22, 39, 0.7), rgba(9, 13, 24, 0.52));
  border: 0.8px solid rgba(190, 209, 245, 0.1);
  border-radius: 24px;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(12px) saturate(120%);
  -webkit-backdrop-filter: blur(12px) saturate(120%);
  transition:
    transform 480ms var(--ease-premium),
    box-shadow 480ms var(--ease-premium),
    border-color 480ms var(--ease-premium),
    background 480ms var(--ease-premium);
}

.info-card::before,
.story-side-card::before,
.gimmick-card::before,
.guide-card::before,
.flow-step::before,
.quote-card::before,
.episode-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.015) 18%, rgba(255,255,255,0) 36%);
  pointer-events: none;
}

.info-card:hover,
.story-side-card:hover,
.gimmick-card:hover,
.guide-card:hover,
.flow-step:hover,
.quote-card:hover,
.episode-card:hover,
.info-card:focus-within,
.story-side-card:focus-within,
.gimmick-card:focus-within,
.guide-card:focus-within,
.flow-step:focus-within,
.quote-card:focus-within,
.episode-card:focus-within {
  transform: translateY(-6px) translateX(1px);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.34), 0 0 26px rgba(116, 228, 255, 0.06);
  border-color: rgba(116, 228, 255, 0.22);
}

.info-card:hover::after,
.story-side-card:hover::after,
.gimmick-card:hover::after,
.guide-card:hover::after,
.flow-step:hover::after,
.quote-card:hover::after,
.episode-card:hover::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  border: 1px solid transparent;
  background: linear-gradient(120deg, rgba(116,228,255,0.16), rgba(190,147,255,0.1), rgba(239,203,121,0.12)) border-box;
  mask: linear-gradient(#000 0 0) padding-box, linear-gradient(#000 0 0);
  -webkit-mask: linear-gradient(#000 0 0) padding-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.info-card,
.story-side-card,
.gimmick-card,
.guide-card,
.character-card {
  padding: 28px 26px;
}

.info-card h3,
.story-side-card h3,
.gimmick-card h3,
.guide-card h3,
.character-card h3,
.flow-step h4,
.zodiac-feature h3 {
  margin-top: 6px;
  margin-bottom: 12px;
}

.card-kicker {
  color: rgba(239, 203, 121, 0.9);
}

.glow-cyan,
.glow-violet,
.glow-gold {
  isolation: isolate;
}

.glow-cyan::after,
.glow-violet::after,
.glow-gold::after {
  content: "";
  position: absolute;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  filter: blur(40px);
  z-index: -1;
  opacity: 0.2;
}

.glow-cyan::after {
  right: -36px;
  top: -30px;
  background: rgba(116, 228, 255, 0.38);
}

.glow-violet::after {
  right: -30px;
  bottom: -24px;
  background: rgba(190, 147, 255, 0.32);
}

.glow-gold::after {
  left: -20px;
  top: -18px;
  background: rgba(239, 203, 121, 0.28);
}

.quote-panel .section-heading {
  margin-bottom: 56px;
}

.quote-archive {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 18px;
  padding-top: 22px;
}

.quote-card {
  padding: 32px 30px 28px;
  min-height: 300px;
}

.quote-card > * {
  position: relative;
  z-index: 1;
}

.quote-card-inventory {
  isolation: isolate;
  background:
    linear-gradient(180deg, rgba(15, 22, 39, 0.78), rgba(9, 13, 24, 0.58)),
    repeating-linear-gradient(90deg, rgba(116, 228, 255, 0.03) 0px, rgba(116, 228, 255, 0.03) 1px, transparent 1px, transparent 38px),
    repeating-linear-gradient(180deg, rgba(190, 147, 255, 0.024) 0px, rgba(190, 147, 255, 0.024) 1px, transparent 1px, transparent 28px),
    linear-gradient(90deg, transparent 0 22%, rgba(255, 139, 197, 0.03) 22% 22.4%, transparent 22.4% 100%),
    linear-gradient(180deg, transparent 0 64%, rgba(116, 228, 255, 0.03) 64% 64.4%, transparent 64.4% 100%);
}

.inventory-binary {
  position: absolute;
  right: 24px;
  bottom: 22px;
  width: min(52%, 240px);
  color: rgba(229, 241, 255, 0.24);
  opacity: 0.18;
  font-size: 0.66rem;
  line-height: 1.78;
  letter-spacing: 0.22em;
  text-align: right;
  text-transform: uppercase;
  white-space: normal;
  z-index: 0;
  mix-blend-mode: screen;
}

.quote-card-inventory blockquote,
.quote-card-inventory p {
  max-width: 24ch;
}

.quote-card-major {
  grid-row: span 2;
  min-height: 618px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.quote-meta {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.86rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.quote-ep {
  color: rgba(239, 203, 121, 0.92);
}

.quote-title {
  color: rgba(190, 147, 255, 0.9);
}

.quote-speaker {
  color: rgba(116, 228, 255, 0.92);
}

.quote-card blockquote {
  margin: 28px 0 18px;
  font-size: clamp(1.42rem, 2.1vw, 2.25rem);
  line-height: 1.8;
  letter-spacing: 0.03em;
  color: #fff;
}

.quote-card p {
  margin: 0;
}

.free-story-panel .section-heading {
  margin-bottom: 28px;
}

.app-free-callout {
  margin-bottom: 24px;
  padding: 22px 24px;
}

.app-free-callout strong,
.flow-loop-note strong,
.notice-box strong {
  display: block;
  margin-bottom: 6px;
  font-size: 0.92rem;
  color: rgba(239, 203, 121, 0.95);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.free-story-grid {
  display: grid;
  gap: 16px;
  padding-top: 22px;
}

.episode-card {
  overflow: hidden;
}

.episode-card summary {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  list-style: none;
  cursor: pointer;
  padding: 28px 30px;
}

.episode-card summary::-webkit-details-marker {
  display: none;
}

.episode-card h3 {
  margin: 6px 0 6px;
}

.episode-card summary p {
  margin: 0;
  color: var(--muted);
}

.episode-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 88px;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  border: 0.8px solid rgba(116, 228, 255, 0.18);
  color: var(--text);
  font-size: 0.92rem;
}

.episode-body {
  padding: 0 30px 30px;
}

.episode-prose {
  white-space: pre-wrap;
  line-height: 2.1;
  color: rgba(245, 247, 255, 0.92);
  font-size: 1.02rem;
  max-width: 72ch;
}

.play-flow {
  position: relative;
  padding-top: 22px;
}

.play-flow::before {
  top: 0;
}

.play-flow-head,
.flow-loop-note,
.notice-box {
  padding: 24px 26px;
}

.play-flow-head h3 {
  margin-bottom: 10px;
}

.flow-steps {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 20px 0;
}

.flow-step {
  padding: 24px 22px;
}

.flow-step-no {
  display: inline-flex;
  margin-bottom: 14px;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  color: rgba(239, 203, 121, 0.9);
}

.flow-step p {
  margin: 0;
}

.gimmick-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 28px;
  padding-top: 22px;
}

.gimmick-icon {
  position: relative;
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
  border: 0.8px solid rgba(190, 209, 245, 0.12);
}

.icon-jump::before,
.icon-boost::before,
.icon-star::before,
.icon-action::before,
.icon-guard::before,
.icon-space::before,
.icon-jump::after,
.icon-boost::after,
.icon-star::after,
.icon-action::after,
.icon-guard::after,
.icon-space::after {
  content: "";
  position: absolute;
}

.icon-jump::before {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  left: 15px;
  top: 12px;
  background: radial-gradient(circle, #fff, var(--cyan));
}

.icon-jump::after {
  width: 18px;
  height: 1px;
  left: 12px;
  bottom: 12px;
  background: var(--gold);
}

.icon-boost::before {
  width: 22px;
  height: 8px;
  left: 12px;
  top: 20px;
  background: linear-gradient(90deg, var(--cyan), var(--violet));
  transform: skewX(-22deg);
}

.icon-boost::after {
  width: 0;
  height: 0;
  right: 10px;
  top: 15px;
  border-left: 10px solid var(--gold);
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
}

.icon-star::before {
  inset: 12px;
  background: radial-gradient(circle, #fff, var(--gold) 55%, transparent 56%);
  clip-path: polygon(50% 0%, 61% 36%, 100% 38%, 68% 58%, 79% 100%, 50% 76%, 21% 100%, 32% 58%, 0% 38%, 39% 36%);
}

.icon-action::before {
  width: 26px;
  height: 10px;
  left: 10px;
  top: 18px;
  border-radius: 999px;
  border: 1px solid rgba(116, 228, 255, 0.8);
}

.icon-action::after {
  width: 0;
  height: 0;
  left: 24px;
  top: 10px;
  border-left: 12px solid rgba(239, 203, 121, 0.94);
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
}

.icon-guard::before {
  width: 22px;
  height: 24px;
  left: 13px;
  top: 11px;
  border-radius: 12px 12px 14px 14px;
  border: 1px solid rgba(190, 147, 255, 0.78);
}

.icon-guard::after {
  width: 8px;
  height: 8px;
  left: 20px;
  top: 18px;
  border-radius: 50%;
  background: var(--cyan);
}

.icon-space::before {
  width: 20px;
  height: 20px;
  left: 14px;
  top: 14px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 6px rgba(116, 228, 255, 0.18);
  background: radial-gradient(circle, transparent 46%, rgba(0, 0, 0, 0.92) 52%);
}

.icon-space::after {
  width: 30px;
  height: 12px;
  left: 9px;
  top: 18px;
  border-radius: 50%;
  border: 1px solid rgba(239, 203, 121, 0.6);
}

.zodiac-layout {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: 18px;
  padding-top: 22px;
}

.zodiac-feature {
  padding: 32px 30px;
}

.zodiac-side-grid {
  grid-template-columns: 1fr;
}

.trial-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.trial-badges span {
  padding: 10px 15px;
  border-radius: 999px;
  border: 0.8px solid rgba(190, 209, 245, 0.12);
  background: rgba(255,255,255,0.028);
  color: var(--muted-strong);
}

.guide-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding-top: 22px;
}

.guide-note {
  margin-top: 22px;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 28px 30px;
  border-radius: 28px;
}

.site-footer strong {
  display: block;
  margin-bottom: 4px;
  letter-spacing: 0.14em;
}

.site-footer p {
  margin: 0;
}

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

.footer-links a {
  position: relative;
  padding-bottom: 2px;
}

.footer-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(116,228,255,0), rgba(116,228,255,0.82), rgba(190,147,255,0.82), rgba(116,228,255,0));
  opacity: 0.68;
}

@media (max-width: 1160px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-stage {
    max-width: 760px;
  }

  .quote-archive {
    grid-template-columns: 1fr 1fr;
  }

  .quote-card-major {
    grid-row: auto;
    min-height: 360px;
  }

  .world-grid,
  .gimmick-grid,
  .guide-grid,
  .flow-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  body {
    line-height: 1.84;
  }

  .site-shell {
    width: min(calc(100% - 20px), var(--max-width));
    padding-top: 10px;
  }

  .site-header {
    border-radius: 28px;
    padding: 16px;
  }

  .site-nav {
    gap: 6px;
  }

  .site-nav a {
    padding: 7px 11px;
    font-size: 0.88rem;
  }

  .hero,
  .section-panel {
    padding: 96px 24px;
  }

  .observer-frame {
    min-height: 520px;
  }

  .character-gapo {
    left: 12%;
    width: 106px;
    height: 106px;
  }

  .character-gapomi {
    left: 46%;
    width: 92px;
    height: 92px;
  }

  .character-gahahaha {
    right: 14%;
    width: 104px;
    height: 104px;
  }

  .hero-meta-grid,
  .world-grid,
  .quote-archive,
  .gimmick-grid,
  .guide-grid,
  .flow-steps,
  .zodiac-layout,
  .character-cards {
    grid-template-columns: 1fr;
  }

  .meta-chip,
  .quote-card,
  .info-card,
  .gimmick-card,
  .guide-card,
  .flow-step,
  .episode-card summary,
  .episode-body,
  .play-flow-head,
  .flow-loop-note,
  .notice-box,
  .app-free-callout,
  .site-footer,
  .zodiac-feature {
    padding-left: 22px;
    padding-right: 22px;
  }

  .quote-card-major {
    min-height: auto;
  }

  .inventory-binary {
    width: min(58%, 210px);
    font-size: 0.62rem;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 560px) {
  body {
    line-height: 1.82;
  }

  .site-shell {
    width: min(calc(100% - 14px), var(--max-width));
  }

  .site-header {
    position: static;
    gap: 14px;
    margin-bottom: 14px;
  }

  .brand {
    gap: 10px;
  }

  .brand-text strong {
    font-size: 0.9rem;
  }

  .brand-text small {
    font-size: 0.68rem;
  }

  .hero,
  .section-panel {
    padding-top: 88px;
    padding-bottom: 88px;
    padding-left: 18px;
    padding-right: 18px;
    gap: 28px;
  }

  h1 {
    font-size: clamp(2.3rem, 10vw, 3.3rem);
  }

  h2 {
    font-size: clamp(1.86rem, 7.4vw, 2.5rem);
  }

  h3 {
    font-size: 1.12rem;
  }

  .lead-hero,
  .section-heading > p:last-child,
  .episode-prose,
  .hero-note,
  .guide-card p,
  .gimmick-card p,
  .flow-step p,
  .quote-card p,
  .story-side-card p,
  .info-card p {
    font-size: 0.97rem;
  }

  .hero-actions,
  .footer-links,
  .trial-badges {
    gap: 10px;
  }

  .button {
    width: 100%;
  }

  .hero-meta-grid {
    gap: 10px;
  }

  .meta-chip {
    padding: 16px;
  }

  .observer-frame {
    min-height: 420px;
  }

  .observer-log {
    padding: 18px;
  }

  .quote-card blockquote {
    font-size: 1.26rem;
    line-height: 1.76;
  }

  .quote-card-inventory blockquote,
  .quote-card-inventory p {
    max-width: none;
  }

  .inventory-binary {
    right: 18px;
    bottom: 18px;
    width: 72%;
    font-size: 0.56rem;
    letter-spacing: 0.16em;
    opacity: 0.16;
  }

  .episode-card summary {
    flex-direction: column;
    align-items: flex-start;
  }

  .episode-toggle {
    min-width: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .site-shell,
  .button,
  .info-card,
  .story-side-card,
  .gimmick-card,
  .guide-card,
  .flow-step,
  .quote-card,
  .episode-card {
    transition: none !important;
  }

  .parallax-layer {
    transform: none !important;
  }

  .info-card:hover,
  .story-side-card:hover,
  .gimmick-card:hover,
  .guide-card:hover,
  .flow-step:hover,
  .quote-card:hover,
  .episode-card:hover,
  .button:hover {
    transform: none !important;
  }
}

:root {
  --cursor-x: 50vw;
  --cursor-y: 46vh;
  --cursor-intensity: 0;
  --starfield-shift: 0px;
}

body::before {
  opacity: calc(0.2 + var(--cursor-intensity) * 0.14);
}

body::after {
  background:
    radial-gradient(circle 180px at var(--cursor-x) var(--cursor-y), rgba(255, 255, 255, calc(0.018 + var(--cursor-intensity) * 0.04)), transparent 62%),
    radial-gradient(circle 260px at var(--cursor-x) var(--cursor-y), rgba(116, 228, 255, calc(var(--cursor-intensity) * 0.08)), transparent 72%),
    radial-gradient(circle 360px at var(--cursor-x) var(--cursor-y), rgba(255, 139, 197, calc(var(--cursor-intensity) * 0.024)), transparent 78%),
    radial-gradient(circle at center, transparent 52%, rgba(2, 4, 13, 0.46) 100%),
    linear-gradient(180deg, rgba(4, 7, 19, 0.24), rgba(4, 7, 19, 0.54));
}

#starfield {
  transform: translate3d(0, var(--starfield-shift), 0) scale(1.03);
  transform-origin: center top;
  transition: transform 220ms linear, filter 320ms ease, opacity 320ms ease;
}

.site-shell {
  isolation: isolate;
}

.site-shell::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle 180px at var(--cursor-x) var(--cursor-y), rgba(255, 255, 255, calc(var(--cursor-intensity) * 0.03)), transparent 64%),
    radial-gradient(circle 280px at var(--cursor-x) var(--cursor-y), rgba(116, 228, 255, calc(var(--cursor-intensity) * 0.05)), transparent 72%),
    radial-gradient(circle 380px at var(--cursor-x) var(--cursor-y), rgba(255, 139, 197, calc(var(--cursor-intensity) * 0.014)), transparent 78%);
  mix-blend-mode: screen;
  opacity: 0.9;
}

.site-shell > * {
  position: relative;
  z-index: 1;
}

.site-nav a,
.footer-links a,
.restart-link {
  display: inline-flex;
  align-items: center;
}

.site-nav a {
  overflow: hidden;
  transform: translateZ(0);
  transition:
    transform 320ms var(--ease-premium),
    box-shadow 320ms var(--ease-premium),
    color 280ms var(--ease-premium),
    border-color 280ms var(--ease-premium),
    background 280ms var(--ease-premium);
  background:
    radial-gradient(circle 92px at var(--hover-x, 50%) var(--hover-y, 50%), rgba(116, 228, 255, 0.12), transparent 58%),
    rgba(116, 228, 255, 0.01);
}

.site-nav a:hover,
.site-nav a:focus-visible {
  transform: translate3d(0, -1px, 0);
  box-shadow: 0 12px 28px rgba(10, 18, 34, 0.36);
}

.button {
  overflow: hidden;
  transform: translateZ(0);
}

.button-primary {
  background:
    radial-gradient(circle 140px at var(--hover-x, 50%) var(--hover-y, 50%), rgba(255, 255, 255, 0.14), transparent 58%),
    linear-gradient(180deg, rgba(17, 31, 58, 0.9), rgba(12, 19, 35, 0.78));
}

.button-secondary {
  background:
    radial-gradient(circle 124px at var(--hover-x, 50%) var(--hover-y, 50%), rgba(116, 228, 255, 0.12), transparent 58%),
    rgba(255, 255, 255, 0.02);
}

.button:hover,
.button:focus-visible {
  transform: translate3d(0, -3px, 0) skewX(-0.15deg);
}

.info-card:hover,
.story-side-card:hover,
.gimmick-card:hover,
.guide-card:hover,
.flow-step:hover,
.quote-card:hover,
.episode-card:hover,
.info-card:focus-within,
.story-side-card:focus-within,
.gimmick-card:focus-within,
.guide-card:focus-within,
.flow-step:focus-within,
.quote-card:focus-within,
.episode-card:focus-within {
  transform: translate3d(0, -6px, 0) scale(1.002);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.34), 0 0 32px rgba(116, 228, 255, 0.08);
}

.quote-card blockquote {
  position: relative;
  letter-spacing: 0.045em;
  text-shadow: 0 0 18px rgba(4, 7, 19, 0.36);
  transition:
    transform 540ms var(--ease-premium),
    text-shadow 540ms var(--ease-premium),
    filter 540ms var(--ease-premium),
    letter-spacing 540ms var(--ease-premium);
}

.quote-card:hover blockquote,
.quote-card:focus-within blockquote {
  transform: translate3d(1px, 0, 0);
  text-shadow:
    -0.025em 0 0 rgba(255, 139, 197, 0.52),
    0.025em 0 0 rgba(116, 228, 255, 0.48),
    0 0 24px rgba(116, 228, 255, 0.08);
}

h1,
h2,
.hero-note,
.log-note,
.quote-card blockquote {
  text-shadow: 0 0 18px rgba(4, 7, 19, 0.34);
}

.hero-note,
.log-note {
  letter-spacing: 0.024em;
}

.observer-metrics {
  position: fixed;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  z-index: 18;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  min-width: 104px;
  padding: 14px 12px 14px 16px;
  border-right: none;
  border-radius: 20px 0 0 20px;
  background: linear-gradient(180deg, rgba(9, 15, 28, 0.76), rgba(7, 11, 20, 0.62));
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.34);
  pointer-events: none;
}

.observer-metrics::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  bottom: 14px;
  width: 1px;
  background: linear-gradient(180deg, rgba(116, 228, 255, 0), rgba(116, 228, 255, 0.84), rgba(190, 147, 255, 0.7), rgba(116, 228, 255, 0));
}

.metric-label {
  font-size: 0.56rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(222, 233, 248, 0.46);
}

.metric-value {
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  font-variant-numeric: tabular-nums;
  color: rgba(236, 244, 255, 0.84);
}

.metric-rule {
  align-self: stretch;
  height: 1px;
  margin: 4px 0;
  background: linear-gradient(90deg, rgba(116, 228, 255, 0), rgba(116, 228, 255, 0.56), rgba(190, 147, 255, 0.46), rgba(116, 228, 255, 0));
  opacity: 0.56;
}

.footer-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.restart-link {
  position: relative;
  color: rgba(222, 233, 248, 0.42);
  text-decoration: none;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  padding-bottom: 2px;
  transition:
    color 280ms var(--ease-premium),
    opacity 280ms var(--ease-premium),
    transform 280ms var(--ease-premium);
}

.restart-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 139, 197, 0), rgba(255, 139, 197, 0.38), rgba(116, 228, 255, 0.28), rgba(255, 139, 197, 0));
  opacity: 0.28;
}

.footer-links a,
.restart-link {
  transform: translateZ(0);
}

.footer-links a:hover,
.footer-links a:focus-visible,
.restart-link:hover,
.restart-link:focus-visible {
  transform: translate3d(0, -1px, 0);
}

.restart-link:hover,
.restart-link:focus-visible {
  color: rgba(236, 244, 255, 0.76);
  outline: none;
}

body.system-reboot::before {
  opacity: 0.78;
  transform: translate3d(0, 2px, 0) scaleY(1.02);
}

body.system-reboot .site-shell {
  transform: translate3d(-1.3px, 0, 0);
}

body.system-reboot #starfield {
  filter: saturate(1.45) contrast(1.18) brightness(1.08) blur(0.2px);
}

body.system-reboot .observer-metrics {
  box-shadow: 0 20px 46px rgba(0, 0, 0, 0.4), 0 0 28px rgba(255, 139, 197, 0.08);
}

@media (max-width: 860px) {
  .observer-metrics {
    top: auto;
    right: 10px;
    bottom: 20px;
    transform: none;
    min-width: 88px;
    padding: 12px 10px 12px 12px;
    border-right: 0.8px solid rgba(182, 214, 255, 0.14);
    border-radius: 18px;
  }

  .metric-label {
    font-size: 0.52rem;
  }

  .metric-value {
    font-size: 0.68rem;
  }

  .footer-actions {
    width: 100%;
    align-items: flex-start;
  }
}

@media (max-width: 560px) {
  h1,
  h2,
  .quote-card blockquote {
    text-shadow: 0 0 20px rgba(4, 7, 19, 0.42);
  }

  .hero-note,
  .log-note {
    font-size: 1rem;
    letter-spacing: 0.03em;
  }

  .quote-card blockquote {
    font-size: 1.34rem;
    letter-spacing: 0.05em;
  }

  .observer-metrics {
    right: 6px;
    bottom: 12px;
    min-width: 80px;
    padding: 10px 8px 10px 10px;
    opacity: 0.92;
  }

  .restart-link {
    font-size: 0.62rem;
    letter-spacing: 0.12em;
  }
}

@media (prefers-reduced-motion: reduce) {
  #starfield,
  .site-nav a,
  .footer-links a,
  .restart-link,
  .quote-card blockquote {
    transform: none !important;
  }

  .site-shell::before {
    display: none;
  }

  .observer-metrics {
    display: none;
  }

  .quote-card:hover blockquote,
  .quote-card:focus-within blockquote {
    text-shadow: 0 0 18px rgba(4, 7, 19, 0.36);
  }
}
