body { margin: 0; min-height: 100vh; background: var(--surface-page); overflow-x: hidden; }
  .entries { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }

  /* ---- Global cosmos: one continuous, living field behind the whole page ---- */
  .saya-cosmos { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; background: var(--surface-page); }
  /* Living青蓝 fluid — low-res canvas, blurred up into a breathing deep-sea field (dark only). */
  .saya-fluid {
    position: absolute; inset: -4%; width: 108%; height: 108%; display: block;
    filter: blur(40px) saturate(1.2);
    opacity: calc(0.82 - var(--scrollp, 0) * 0.55);
    transition: opacity 200ms linear; will-change: opacity;
  }
  /* Faint structural nebula/grid carrier — in dark it only carries the grid; light rebuilds it as blueprint. */
  .saya-cosmos-neb {
    position: absolute; inset: -12%; will-change: transform;
    transition: transform 600ms cubic-bezier(0.22,0.61,0.36,1);
    background: none;
  }
  /* Stardust motes layer — sharp, drifting luminous grains + rare comets (dark only). */
  .saya-stardust {
    position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none;
    opacity: calc(0.9 - var(--scrollp, 0) * 0.45); transition: opacity 200ms linear; mix-blend-mode: screen;
  }
  [data-theme="light"] .saya-stardust { display: none; }

  /* 沉淀 — as you scroll, the field sinks toward black. */
  .saya-cosmos-sink {
    position: absolute; inset: 0;
    /* 沉淀 → 深海: settle into a deep teal-blue ocean, not near-black */
    background: linear-gradient(180deg, #06141C 0%, #051A26 52%, #04222F 100%);
    opacity: calc(var(--scrollp, 0) * 0.66); transition: opacity 160ms linear; pointer-events: none;
  }
  .saya-cosmos-stars { position: absolute; inset: -8%; will-change: transform; transition: transform 500ms cubic-bezier(0.22,0.61,0.36,1); }
  .saya-cosmos-glow {
    position: absolute; left: 0; top: 0; width: 680px; height: 680px; margin: -340px 0 0 -340px;
    border-radius: 50%; opacity: 0; transition: opacity 600ms ease; will-change: transform;
    background: radial-gradient(circle, color-mix(in oklab, var(--accent) 22%, transparent) 0%, color-mix(in oklab, var(--teal) 12%, transparent) 38%, transparent 64%);
    mix-blend-mode: screen;
  }
  .saya-content { position: relative; z-index: 1; }
  /* Cursor halo — violet-forward, matching the original nebula. */
  .saya-cosmos-glow { background: radial-gradient(circle, color-mix(in oklab, var(--accent) 22%, transparent) 0%, color-mix(in oklab, var(--teal) 12%, transparent) 38%, transparent 64%) !important; }

  /* Orbiting words around the portal — the rhythm anchor (slow, low-contrast). */
  .portal-words { position: absolute; inset: -34px; width: calc(100% + 68px); height: calc(100% + 68px); overflow: visible; pointer-events: none; }
  .portal-words text { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.32em; fill: color-mix(in oklab, var(--accent) 48%, transparent); text-transform: uppercase; }
  @keyframes portalWords { to { transform: rotate(360deg); } }
  @media (prefers-reduced-motion: no-preference) { .portal-words { animation: portalWords 64s linear infinite; transform-origin: 50% 50%; } }
  [data-theme="light"] .portal-words text { fill: color-mix(in oklab, var(--accent-gallery) 50%, transparent); }

  /* Gooey 中↔英 ink-merge on the three rooms (the one high-interaction easter egg). */
  .goo-label { position: relative; display: block; height: 1.12em; }
  .goo-label > span { position: absolute; left: 0; top: 0; white-space: nowrap; transition: opacity 420ms cubic-bezier(0.4,0,0.2,1), transform 420ms cubic-bezier(0.4,0,0.2,1); }

  /* Hide fluid/sink on paper; keep blueprint nebula. */
  [data-theme="light"] .saya-fluid, [data-theme="light"] .saya-cosmos-sink { display: none; }

  /* ===== Light theme — "晒图台 / Drafting paper": crisp warm-paper blueprint, not a faded nebula ===== */
  [data-theme="light"] body { background: var(--surface-page); }
  /* Stars don't read on paper — drop them entirely. */
  [data-theme="light"] .saya-cosmos-stars { display: none; }
  /* One restrained cool wash for depth on white — subtle, not muddy. */
  [data-theme="light"] .saya-cosmos-neb {
    mix-blend-mode: normal; opacity: 1; animation: none;
    background:
      radial-gradient(72% 60% at 16% 0%,  color-mix(in oklab, var(--accent) 6%, transparent), transparent 60%),
      radial-gradient(64% 56% at 100% 6%, color-mix(in oklab, var(--accent-gallery) 5%, transparent), transparent 62%);
    background-repeat: no-repeat;
    background-size: 140% 140%, 130% 130%;
    background-position: 0% 0%, 100% 0%;
  }
  /* The blueprint grid is the signature element — crisp two-tier drafting lines, softly vignetted. */
  [data-theme="light"] .saya-cosmos-neb::before {
    background-image:
      linear-gradient(color-mix(in oklab, #14161D 9%, transparent) 1px, transparent 1px),
      linear-gradient(90deg, color-mix(in oklab, #14161D 9%, transparent) 1px, transparent 1px),
      linear-gradient(color-mix(in oklab, #14161D 4%, transparent) 1px, transparent 1px),
      linear-gradient(90deg, color-mix(in oklab, #14161D 4%, transparent) 1px, transparent 1px);
    background-size: 96px 96px, 96px 96px, 24px 24px, 24px 24px;
    -webkit-mask-image: radial-gradient(96% 82% at 50% 26%, #000 28%, transparent 90%);
            mask-image: radial-gradient(96% 82% at 50% 26%, #000 28%, transparent 90%);
  }
  /* Cursor halo as a soft printed bloom (multiply, warm). */
  [data-theme="light"] .saya-cosmos-glow {
    mix-blend-mode: multiply; width: 520px; height: 520px; margin: -260px 0 0 -260px;
    background: radial-gradient(circle, color-mix(in oklab, var(--accent) 12%, transparent) 0%, transparent 60%);
  }
  /* Cool edge vignette so the white page has subtle depth, not flat. */
  [data-theme="light"] .saya-cosmos::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(180deg, transparent 64%, color-mix(in oklab, #8A93A8 8%, transparent));
  }
  /* On paper, glowing text/rules look wrong — make them crisp ink. */
  [data-theme="light"] .saya-glow-text { animation: none !important; text-shadow: none !important; }
  [data-theme="light"] .saya-scan { box-shadow: none; }
  /* Cards lift off the paper with a warm shadow + crisp hairline. */
  [data-theme="light"] .feat-card, [data-theme="light"] .goods-card, [data-theme="light"] .gal-thumb,
  [data-theme="light"] .entries > div > a {
    box-shadow: 0 16px 40px -28px color-mix(in oklab, #2A3140 60%, transparent);
  }
  @media (max-width: 860px) { .entries { grid-template-columns: 1fr; } .hero-grid { grid-template-columns: 1fr !important; } .saya-portal { display: none !important; } .hero-portal-col { display: none !important; } }

  /* ---- Motion layer ---- */
  @keyframes sayaRise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: translateY(0); } }
  @keyframes sayaToastIn { from { opacity: 0; transform: translate(-50%, 16px); } to { opacity: 1; transform: translate(-50%, 0); } }
  @keyframes sayaToastPulse {
    0%, 100% { box-shadow: 0 22px 60px -24px rgba(0,0,0,0.72), 0 0 0 1px color-mix(in oklab, var(--accent-gallery) 40%, transparent), 0 0 34px -8px color-mix(in oklab, var(--accent-gallery) 38%, transparent); }
    50%      { box-shadow: 0 22px 60px -24px rgba(0,0,0,0.72), 0 0 0 1px color-mix(in oklab, var(--accent-gallery) 60%, transparent), 0 0 52px -4px color-mix(in oklab, var(--accent-gallery) 60%, transparent); }
  }
  @keyframes sayaGlowPulse {
    0%, 100% { text-shadow: 0 0 26px color-mix(in oklab, var(--accent) 28%, transparent), 0 0 4px color-mix(in oklab, var(--accent) 18%, transparent); }
    50%      { text-shadow: 0 0 52px color-mix(in oklab, var(--accent) 48%, transparent), 0 0 8px color-mix(in oklab, var(--accent) 30%, transparent); }
  }
  @keyframes sayaDrift {
    0%   { transform: translate(0, 0) rotate(0deg); }
    50%  { transform: translate(0, -16px) rotate(1.2deg); }
    100% { transform: translate(0, 0) rotate(0deg); }
  }
  @keyframes sayaOrbit { to { transform: rotate(360deg); } }
  @keyframes sayaRingPulse {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50%      { opacity: 0.9; transform: scale(1.025); }
  }

  /* Entrance reveal — VISIBLE is the base. We only hide+animate once JS has
     confirmed rAF/animations actually advance (root gets .motion-on). In any
     frozen/throttled/print context .motion-on is never added, so content shows. */
  @media (prefers-reduced-motion: no-preference) {
    .motion-on .reveal { opacity: 0; animation: sayaRise 900ms cubic-bezier(0.22, 0.61, 0.36, 1) forwards; animation-delay: var(--rd, 0ms); }
    .motion-on .entry-reveal { opacity: 0; }
    .motion-on .entry-reveal.in { animation: sayaRise 760ms cubic-bezier(0.22,0.61,0.36,1) forwards; animation-delay: var(--rd, 0ms); }
    .saya-glow-text { animation: sayaGlowPulse 6.5s ease-in-out infinite; }
    .saya-portal { animation: sayaDrift 11s ease-in-out infinite; }
    .saya-portal .ring { animation: sayaOrbit 28s linear infinite; }
    .saya-portal .ring-2 { animation: sayaOrbit 44s linear infinite reverse, sayaRingPulse 7s ease-in-out infinite; }
    .saya-portal .core { animation: sayaOrbit 70s linear infinite; }
  }
  /* cursor glow follows pointer over the hero */
  .saya-cursorglow {
    display: none;
  }
  .saya-parallax { will-change: transform; transition: transform 220ms cubic-bezier(0.22,0.61,0.36,1); }

  /* ---- Click ripple: a pulse on the nebula ---- */
  .saya-clicklayer { position: fixed; inset: 0; z-index: 9999; pointer-events: none; overflow: hidden; }
  .saya-ripple {
    position: absolute; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%;
    border: 1.5px solid color-mix(in oklab, var(--accent) 70%, transparent);
    box-shadow: 0 0 18px color-mix(in oklab, var(--accent) 45%, transparent), inset 0 0 10px color-mix(in oklab, var(--teal) 40%, transparent);
    animation: sayaRipple 620ms cubic-bezier(0.22,0.61,0.36,1) forwards; mix-blend-mode: screen;
  }
  .saya-ripple-core {
    position: absolute; width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50%;
    background: radial-gradient(circle, color-mix(in oklab, var(--accent) 50%, transparent), transparent 68%);
    animation: sayaRippleCore 520ms ease-out forwards; mix-blend-mode: screen;
  }
  .saya-spark {
    position: absolute; width: 3px; height: 3px; margin: -1.5px 0 0 -1.5px; border-radius: 50%;
    background: color-mix(in oklab, var(--teal-bright, var(--teal)) 90%, white);
    box-shadow: 0 0 8px color-mix(in oklab, var(--accent) 60%, transparent);
    animation: sayaSpark 560ms cubic-bezier(0.16,0.8,0.3,1) forwards; mix-blend-mode: screen;
  }
  [data-theme="light"] .saya-ripple, [data-theme="light"] .saya-ripple-core, [data-theme="light"] .saya-spark { mix-blend-mode: multiply; }
  @keyframes sayaRipple { 0% { transform: scale(0.4); opacity: 0.9; } 100% { transform: scale(7.5); opacity: 0; } }
  @keyframes sayaRippleCore { 0% { transform: scale(0.5); opacity: 0.85; } 100% { transform: scale(2.4); opacity: 0; } }
  @keyframes sayaSpark { 0% { transform: translate(0,0) scale(1); opacity: 1; } 100% { transform: translate(var(--dx), var(--dy)) scale(0.3); opacity: 0; } }
  @media (prefers-reduced-motion: reduce) { .saya-clicklayer { display: none; } }

  /* ---- Latest-update bands ---- */
  @media (max-width: 860px) {
    .band-2col, .fiction-2col, .gal-feature { grid-template-columns: 1fr !important; }
    .gal-plates { grid-template-columns: repeat(2, 1fr) !important; }
  }
  .art-row { border-top: 1px solid var(--border-hairline); transition: background 200ms ease, padding-left 200ms ease; }
  .art-row:hover { background: var(--surface-raised); padding-left: 12px; }
  .feat-card img, .gal-thumb img { transition: transform 600ms cubic-bezier(0.22,0.61,0.36,1); }
  .feat-card:hover img { transform: scale(1.05); }
  .gal-thumb:hover img { transform: scale(1.07); }
  .gal-thumb { transition: border-color 220ms ease; }
  .gal-thumb:hover { border-color: color-mix(in oklab, var(--accent-gallery) 55%, var(--border-hairline)) !important; }
  .chap-row { transition: padding-left 180ms ease, background 180ms ease; }
  .chap-row:hover { padding-left: 8px; }

  /* ---- Phone (≤600px) ---- */
  @media (max-width: 600px) {
    header { padding-left: 20px !important; padding-right: 20px !important; }
    .hero-grid { padding: 56px 20px 56px !important; }
    .entry-reveal { padding-left: 20px !important; padding-right: 20px !important; }
    .gal-goods { grid-template-columns: repeat(2, 1fr) !important; }
    /* three-rooms overview is redundant on phone (each band is reachable by scrolling) */
    .rooms-section { display: none !important; }
    /* compact header: Saya only, smaller nav, no 中/EN */
    .home-nav { gap: 16px !important; }
    .home-nav a { font-size: 12px !important; }
    .lang-toggle { display: none !important; }
    .site-mark > span:first-child > span:nth-child(2) { display: none !important; } /* 沙耶 */
    .site-mark > span:nth-child(2) { display: none !important; }                    /* tagline */
  }