/* ==========================================================================
   Zen ink skin
   Carries the Zen layout's canvas onto the other layouts: a near-black page,
   a white-ink wash over it, and the painted mark (渊 seal + Abyss wordmark)
   in place of the round logo.

   Layout structure is deliberately untouched — each layout keeps its own
   chrome, grid and spacing, and body[data-layout="zen"] needs none of this.
   ========================================================================== */

:root {
  --zen-ink: #07070a;
  --zen-brush: 'Ma Shan Zheng', KaiTi, STKaiti, 'Kaiti SC', SimSun, serif;
  /* Wet ink grain, lifted from the Zen layout's panels. */
  --zen-grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.72' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 .3 .3 .3 0 0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.055'/%3E%3C/svg%3E");
}

/* multiplayer.css forces its own canvas with !important; the ink wins here. */
html,
body {
  background-color: var(--zen-ink) !important;
}

/* White ink wash across the page. */
body::before {
  background:
    radial-gradient(
      ellipse at 16% 20%,
      rgba(255, 255, 255, 0.13) 0,
      transparent 38%
    ),
    radial-gradient(
      ellipse at 82% 14%,
      rgba(255, 255, 255, 0.07) 0,
      transparent 34%
    ),
    radial-gradient(
      ellipse at 58% 86%,
      rgba(255, 255, 255, 0.09) 0,
      transparent 40%
    ) !important;
  filter: blur(34px);
  opacity: 0.5;
}

/* Paper grain over the canvas, so the page reads as charcoal rather than flat. */
body {
  background-image:
    var(--zen-grain),
    radial-gradient(
      ellipse at 50% 0%,
      rgba(255, 255, 255, 0.04),
      transparent 62%
    ) !important;
  background-attachment: fixed;
}

/* ------------------------------------------------------ painted wordmark ---- */
/* The topbar brand drops the round logo for the seal from the Zen mark; the
   label beside it (shown on narrow screens) is lettered in the same brush. */
.brand img {
  display: none !important;
}

.brand::before {
  content: "渊";
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  font-family: var(--zen-brush);
  font-size: 30px;
  line-height: 1;
  color: #fff;
  text-shadow:
    0 0 16px rgba(255, 255, 255, 0.45),
    0 0 40px rgba(255, 255, 255, 0.16);
}

.brand span {
  font-family: var(--zen-brush);
  font-size: 30px;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: #fff;
  text-shadow:
    0 0 18px rgba(255, 255, 255, 0.4),
    0 0 44px rgba(255, 255, 255, 0.14);
}

/* The OS desktop paints its own blue aurora bloom behind the bar; wash it out. */
body[data-layout="os"]::before {
  background:
    radial-gradient(
      46% 60% at 26% 6%,
      rgba(255, 255, 255, 0.11),
      transparent 70%
    ),
    radial-gradient(
      38% 52% at 78% 0%,
      rgba(255, 255, 255, 0.07),
      transparent 72%
    ) !important;
}

/* The desktop watermark is already a wordmark — give it the brush too. */
body[data-layout="os"] .os-brand strong {
  font-family: var(--zen-brush);
  font-weight: 400;
  font-size: clamp(58px, 9vw, 118px);
  letter-spacing: 0;
  color: #fff;
  background: none;
  filter: drop-shadow(0 0 26px rgba(255, 255, 255, 0.22));
}

body[data-layout="os"] .os-brand span {
  color: rgba(255, 255, 255, 0.42);
}
