/* =====================================================================
   Bio page — retro pixel (8-bit) theme
   --accent / --accent2 / --dim come from assets/js/config.js at runtime.
   The lover page (#love) keeps its own cream-pink theme further down.
   ===================================================================== */

:root {
  --accent: #a78bfa;
  --accent2: #38bdf8;
  --dim: 0.5;

  /* pixel palette */
  --ink: #0b0920;
  --win: #16123b;
  --win-2: #211b52;
  --win-3: #2e2670;
  --hi: #efeaff;
  --gold: #ffd166;
  --pink: #ff7aa8;
  --px: 4px;                 /* one "pixel" of the UI frames */

  --text: #f1eefe;
  --muted: #b6afe2;
  --faint: #847dc0;
  --line: rgba(255, 255, 255, 0.08);

  --online: #3ddc84;
  --idle: #f0b232;
  --dnd: #f23f43;
  --offline: #80848e;
  --spotify: #1db954;

  --font-px: "VT323", ui-monospace, "Cascadia Mono", monospace;
  --font-px2: "Tiny5", "VT323", ui-monospace, monospace;
  --circle: polygon(68.75% 0%, 68.75% 6.25%, 81.25% 6.25%, 81.25% 12.5%, 87.5% 12.5%, 87.5% 18.75%, 93.75% 18.75%, 93.75% 31.25%, 100% 31.25%, 100% 68.75%, 93.75% 68.75%, 93.75% 81.25%, 87.5% 81.25%, 87.5% 87.5%, 81.25% 87.5%, 81.25% 93.75%, 68.75% 93.75%, 68.75% 100%, 31.25% 100%, 31.25% 93.75%, 18.75% 93.75%, 18.75% 87.5%, 12.5% 87.5%, 12.5% 81.25%, 6.25% 81.25%, 6.25% 68.75%, 0% 68.75%, 0% 31.25%, 6.25% 31.25%, 6.25% 18.75%, 12.5% 18.75%, 12.5% 12.5%, 18.75% 12.5%, 18.75% 6.25%, 31.25% 6.25%, 31.25% 0%);
  --notch: polygon(4px 0, calc(100% - 4px) 0, calc(100% - 4px) 4px, 100% 4px, 100% calc(100% - 4px),
    calc(100% - 4px) calc(100% - 4px), calc(100% - 4px) 100%, 4px 100%, 4px calc(100% - 4px),
    0 calc(100% - 4px), 0 4px, 4px 4px);
}

* { box-sizing: border-box; }

html, body { margin: 0; }

body {
  min-height: 100dvh;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-px);
  font-size: 20px;
  line-height: 1.15;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; }
[hidden] { display: none !important; }

.px-sprites { position: absolute; width: 0; height: 0; overflow: hidden; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* pixel icons (pixelarticons) are drawn on a 24px grid: keep them at 24px so they stay sharp */
[class^="pixelart-icons-font-"],
[class*=" pixelart-icons-font-"] {
  display: inline-block;
  font-size: 24px;
  line-height: 1;
  vertical-align: middle;
}

/* ---------- Pixel frame ----------
   A border made of box-shadows: corners are left out, which gives the stepped "pixel" corner.
   --bd border · --ol outline · --sh hard shadow under the frame · --lt/--dk inner bevel */
.win, .win-title, .bio, .social, .badge, .link-btn, .lcard, .cassette, .pbtn, .px-list,
.gm-tab, .gm-banner, .gm-stats, .gm-chip, .gm-char-img, .toast, .notice, .qn-btn, .thought {
  --u: var(--px);
  --bd: var(--hi);
  --ol: var(--ink);
  --sh: rgba(3, 2, 14, 0.6);
  --lt: rgba(255, 255, 255, 0.06);
  --dk: rgba(0, 0, 0, 0.28);
  box-shadow:
    0 calc(-1 * var(--u)) 0 0 var(--bd),
    0 var(--u) 0 0 var(--bd),
    calc(-1 * var(--u)) 0 0 0 var(--bd),
    var(--u) 0 0 0 var(--bd),
    0 calc(-2 * var(--u)) 0 0 var(--ol),
    0 calc(2 * var(--u)) 0 0 var(--ol),
    calc(-2 * var(--u)) 0 0 0 var(--ol),
    calc(2 * var(--u)) 0 0 0 var(--ol),
    calc(-1 * var(--u)) calc(-1 * var(--u)) 0 0 var(--ol),
    var(--u) calc(-1 * var(--u)) 0 0 var(--ol),
    calc(-1 * var(--u)) var(--u) 0 0 var(--ol),
    var(--u) var(--u) 0 0 var(--ol),
    0 calc(3 * var(--u)) 0 0 var(--sh),
    inset var(--u) var(--u) 0 0 var(--lt),
    inset calc(-1 * var(--u)) calc(-1 * var(--u)) 0 0 var(--dk);
}

/* ---------- Background: pixel night sky ---------- */
.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

/* banded gradient, like a 16-bit game sky */
.bg-sky {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    #04031a 0 18%, #070626 18% 33%, #0b0933 33% 46%, #100d41 46% 58%,
    #16124e 58% 68%, #1e175c 68% 77%, #281e69 77% 85%, #352676 85% 100%);
}

.bg-moon {
  position: absolute;
  top: 8vh;
  right: 9vw;
  width: 120px;
  height: 120px;
  filter: drop-shadow(0 0 26px rgba(255, 214, 140, 0.35));
}

.bg-hills {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 22vh;
  min-height: 110px;
}

.bg-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bg-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, var(--dim));
}

#particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* ---------- Pixel cursor (effects.cursor in config.js) ---------- */
.px-cursor .stage,
.px-cursor .enter { cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='32' shape-rendering='crispEdges'%3E%3Crect x='0' y='0' width='2' height='2' fill='%230b0920'/%3E%3Crect x='0' y='2' width='2' height='2' fill='%230b0920'/%3E%3Crect x='2' y='2' width='2' height='2' fill='%230b0920'/%3E%3Crect x='0' y='4' width='2' height='2' fill='%230b0920'/%3E%3Crect x='2' y='4' width='2' height='2' fill='%23ffffff'/%3E%3Crect x='4' y='4' width='2' height='2' fill='%230b0920'/%3E%3Crect x='0' y='6' width='2' height='2' fill='%230b0920'/%3E%3Crect x='2' y='6' width='2' height='2' fill='%23ffffff'/%3E%3Crect x='4' y='6' width='2' height='2' fill='%23ffffff'/%3E%3Crect x='6' y='6' width='2' height='2' fill='%230b0920'/%3E%3Crect x='0' y='8' width='2' height='2' fill='%230b0920'/%3E%3Crect x='2' y='8' width='2' height='2' fill='%23ffffff'/%3E%3Crect x='4' y='8' width='2' height='2' fill='%23ffffff'/%3E%3Crect x='6' y='8' width='2' height='2' fill='%23ffffff'/%3E%3Crect x='8' y='8' width='2' height='2' fill='%230b0920'/%3E%3Crect x='0' y='10' width='2' height='2' fill='%230b0920'/%3E%3Crect x='2' y='10' width='2' height='2' fill='%23ffffff'/%3E%3Crect x='4' y='10' width='2' height='2' fill='%23ffffff'/%3E%3Crect x='6' y='10' width='2' height='2' fill='%23ffffff'/%3E%3Crect x='8' y='10' width='2' height='2' fill='%23ffffff'/%3E%3Crect x='10' y='10' width='2' height='2' fill='%230b0920'/%3E%3Crect x='0' y='12' width='2' height='2' fill='%230b0920'/%3E%3Crect x='2' y='12' width='2' height='2' fill='%23ffffff'/%3E%3Crect x='4' y='12' width='2' height='2' fill='%23ffffff'/%3E%3Crect x='6' y='12' width='2' height='2' fill='%23ffffff'/%3E%3Crect x='8' y='12' width='2' height='2' fill='%23ffffff'/%3E%3Crect x='10' y='12' width='2' height='2' fill='%23ffffff'/%3E%3Crect x='12' y='12' width='2' height='2' fill='%230b0920'/%3E%3Crect x='0' y='14' width='2' height='2' fill='%230b0920'/%3E%3Crect x='2' y='14' width='2' height='2' fill='%23ffffff'/%3E%3Crect x='4' y='14' width='2' height='2' fill='%23ffffff'/%3E%3Crect x='6' y='14' width='2' height='2' fill='%23ffffff'/%3E%3Crect x='8' y='14' width='2' height='2' fill='%23ffffff'/%3E%3Crect x='10' y='14' width='2' height='2' fill='%23ffffff'/%3E%3Crect x='12' y='14' width='2' height='2' fill='%23ffffff'/%3E%3Crect x='14' y='14' width='2' height='2' fill='%230b0920'/%3E%3Crect x='0' y='16' width='2' height='2' fill='%230b0920'/%3E%3Crect x='2' y='16' width='2' height='2' fill='%23ffffff'/%3E%3Crect x='4' y='16' width='2' height='2' fill='%23ffffff'/%3E%3Crect x='6' y='16' width='2' height='2' fill='%23ffffff'/%3E%3Crect x='8' y='16' width='2' height='2' fill='%23ffffff'/%3E%3Crect x='10' y='16' width='2' height='2' fill='%23ffffff'/%3E%3Crect x='12' y='16' width='2' height='2' fill='%23ffffff'/%3E%3Crect x='14' y='16' width='2' height='2' fill='%23ffffff'/%3E%3Crect x='16' y='16' width='2' height='2' fill='%230b0920'/%3E%3Crect x='0' y='18' width='2' height='2' fill='%230b0920'/%3E%3Crect x='2' y='18' width='2' height='2' fill='%23ffffff'/%3E%3Crect x='4' y='18' width='2' height='2' fill='%23ffffff'/%3E%3Crect x='6' y='18' width='2' height='2' fill='%23ffffff'/%3E%3Crect x='8' y='18' width='2' height='2' fill='%23ffffff'/%3E%3Crect x='10' y='18' width='2' height='2' fill='%23ffffff'/%3E%3Crect x='12' y='18' width='2' height='2' fill='%23ffffff'/%3E%3Crect x='14' y='18' width='2' height='2' fill='%23ffffff'/%3E%3Crect x='16' y='18' width='2' height='2' fill='%23ffffff'/%3E%3Crect x='18' y='18' width='2' height='2' fill='%230b0920'/%3E%3Crect x='0' y='20' width='2' height='2' fill='%230b0920'/%3E%3Crect x='2' y='20' width='2' height='2' fill='%23ffffff'/%3E%3Crect x='4' y='20' width='2' height='2' fill='%23ffffff'/%3E%3Crect x='6' y='20' width='2' height='2' fill='%23ffffff'/%3E%3Crect x='8' y='20' width='2' height='2' fill='%23ffffff'/%3E%3Crect x='10' y='20' width='2' height='2' fill='%23ffffff'/%3E%3Crect x='12' y='20' width='2' height='2' fill='%230b0920'/%3E%3Crect x='14' y='20' width='2' height='2' fill='%230b0920'/%3E%3Crect x='16' y='20' width='2' height='2' fill='%230b0920'/%3E%3Crect x='18' y='20' width='2' height='2' fill='%230b0920'/%3E%3Crect x='0' y='22' width='2' height='2' fill='%230b0920'/%3E%3Crect x='2' y='22' width='2' height='2' fill='%23ffffff'/%3E%3Crect x='4' y='22' width='2' height='2' fill='%23ffffff'/%3E%3Crect x='6' y='22' width='2' height='2' fill='%230b0920'/%3E%3Crect x='8' y='22' width='2' height='2' fill='%23ffffff'/%3E%3Crect x='10' y='22' width='2' height='2' fill='%23ffffff'/%3E%3Crect x='12' y='22' width='2' height='2' fill='%230b0920'/%3E%3Crect x='0' y='24' width='2' height='2' fill='%230b0920'/%3E%3Crect x='2' y='24' width='2' height='2' fill='%23ffffff'/%3E%3Crect x='4' y='24' width='2' height='2' fill='%230b0920'/%3E%3Crect x='8' y='24' width='2' height='2' fill='%230b0920'/%3E%3Crect x='10' y='24' width='2' height='2' fill='%23ffffff'/%3E%3Crect x='12' y='24' width='2' height='2' fill='%23ffffff'/%3E%3Crect x='14' y='24' width='2' height='2' fill='%230b0920'/%3E%3Crect x='0' y='26' width='2' height='2' fill='%230b0920'/%3E%3Crect x='2' y='26' width='2' height='2' fill='%230b0920'/%3E%3Crect x='8' y='26' width='2' height='2' fill='%230b0920'/%3E%3Crect x='10' y='26' width='2' height='2' fill='%23ffffff'/%3E%3Crect x='12' y='26' width='2' height='2' fill='%23ffffff'/%3E%3Crect x='14' y='26' width='2' height='2' fill='%230b0920'/%3E%3Crect x='0' y='28' width='2' height='2' fill='%230b0920'/%3E%3Crect x='10' y='28' width='2' height='2' fill='%230b0920'/%3E%3Crect x='12' y='28' width='2' height='2' fill='%23ffffff'/%3E%3Crect x='14' y='28' width='2' height='2' fill='%23ffffff'/%3E%3Crect x='16' y='28' width='2' height='2' fill='%230b0920'/%3E%3Crect x='10' y='30' width='2' height='2' fill='%230b0920'/%3E%3Crect x='12' y='30' width='2' height='2' fill='%230b0920'/%3E%3Crect x='14' y='30' width='2' height='2' fill='%230b0920'/%3E%3C/svg%3E") 0 0, auto; }

.px-cursor .stage :is(a, button, [role="tab"], input, [data-tip][tabindex]),
.px-cursor .enter { cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='32' shape-rendering='crispEdges'%3E%3Crect x='0' y='0' width='2' height='2' fill='%230b0920'/%3E%3Crect x='0' y='2' width='2' height='2' fill='%230b0920'/%3E%3Crect x='2' y='2' width='2' height='2' fill='%230b0920'/%3E%3Crect x='0' y='4' width='2' height='2' fill='%230b0920'/%3E%3Crect x='2' y='4' width='2' height='2' fill='%23ffd166'/%3E%3Crect x='4' y='4' width='2' height='2' fill='%230b0920'/%3E%3Crect x='0' y='6' width='2' height='2' fill='%230b0920'/%3E%3Crect x='2' y='6' width='2' height='2' fill='%23ffd166'/%3E%3Crect x='4' y='6' width='2' height='2' fill='%23ffd166'/%3E%3Crect x='6' y='6' width='2' height='2' fill='%230b0920'/%3E%3Crect x='0' y='8' width='2' height='2' fill='%230b0920'/%3E%3Crect x='2' y='8' width='2' height='2' fill='%23ffd166'/%3E%3Crect x='4' y='8' width='2' height='2' fill='%23ffd166'/%3E%3Crect x='6' y='8' width='2' height='2' fill='%23ffd166'/%3E%3Crect x='8' y='8' width='2' height='2' fill='%230b0920'/%3E%3Crect x='0' y='10' width='2' height='2' fill='%230b0920'/%3E%3Crect x='2' y='10' width='2' height='2' fill='%23ffd166'/%3E%3Crect x='4' y='10' width='2' height='2' fill='%23ffd166'/%3E%3Crect x='6' y='10' width='2' height='2' fill='%23ffd166'/%3E%3Crect x='8' y='10' width='2' height='2' fill='%23ffd166'/%3E%3Crect x='10' y='10' width='2' height='2' fill='%230b0920'/%3E%3Crect x='0' y='12' width='2' height='2' fill='%230b0920'/%3E%3Crect x='2' y='12' width='2' height='2' fill='%23ffd166'/%3E%3Crect x='4' y='12' width='2' height='2' fill='%23ffd166'/%3E%3Crect x='6' y='12' width='2' height='2' fill='%23ffd166'/%3E%3Crect x='8' y='12' width='2' height='2' fill='%23ffd166'/%3E%3Crect x='10' y='12' width='2' height='2' fill='%23ffd166'/%3E%3Crect x='12' y='12' width='2' height='2' fill='%230b0920'/%3E%3Crect x='0' y='14' width='2' height='2' fill='%230b0920'/%3E%3Crect x='2' y='14' width='2' height='2' fill='%23ffd166'/%3E%3Crect x='4' y='14' width='2' height='2' fill='%23ffd166'/%3E%3Crect x='6' y='14' width='2' height='2' fill='%23ffd166'/%3E%3Crect x='8' y='14' width='2' height='2' fill='%23ffd166'/%3E%3Crect x='10' y='14' width='2' height='2' fill='%23ffd166'/%3E%3Crect x='12' y='14' width='2' height='2' fill='%23ffd166'/%3E%3Crect x='14' y='14' width='2' height='2' fill='%230b0920'/%3E%3Crect x='0' y='16' width='2' height='2' fill='%230b0920'/%3E%3Crect x='2' y='16' width='2' height='2' fill='%23ffd166'/%3E%3Crect x='4' y='16' width='2' height='2' fill='%23ffd166'/%3E%3Crect x='6' y='16' width='2' height='2' fill='%23ffd166'/%3E%3Crect x='8' y='16' width='2' height='2' fill='%23ffd166'/%3E%3Crect x='10' y='16' width='2' height='2' fill='%23ffd166'/%3E%3Crect x='12' y='16' width='2' height='2' fill='%23ffd166'/%3E%3Crect x='14' y='16' width='2' height='2' fill='%23ffd166'/%3E%3Crect x='16' y='16' width='2' height='2' fill='%230b0920'/%3E%3Crect x='0' y='18' width='2' height='2' fill='%230b0920'/%3E%3Crect x='2' y='18' width='2' height='2' fill='%23ffd166'/%3E%3Crect x='4' y='18' width='2' height='2' fill='%23ffd166'/%3E%3Crect x='6' y='18' width='2' height='2' fill='%23ffd166'/%3E%3Crect x='8' y='18' width='2' height='2' fill='%23ffd166'/%3E%3Crect x='10' y='18' width='2' height='2' fill='%23ffd166'/%3E%3Crect x='12' y='18' width='2' height='2' fill='%23ffd166'/%3E%3Crect x='14' y='18' width='2' height='2' fill='%23ffd166'/%3E%3Crect x='16' y='18' width='2' height='2' fill='%23ffd166'/%3E%3Crect x='18' y='18' width='2' height='2' fill='%230b0920'/%3E%3Crect x='0' y='20' width='2' height='2' fill='%230b0920'/%3E%3Crect x='2' y='20' width='2' height='2' fill='%23ffd166'/%3E%3Crect x='4' y='20' width='2' height='2' fill='%23ffd166'/%3E%3Crect x='6' y='20' width='2' height='2' fill='%23ffd166'/%3E%3Crect x='8' y='20' width='2' height='2' fill='%23ffd166'/%3E%3Crect x='10' y='20' width='2' height='2' fill='%23ffd166'/%3E%3Crect x='12' y='20' width='2' height='2' fill='%230b0920'/%3E%3Crect x='14' y='20' width='2' height='2' fill='%230b0920'/%3E%3Crect x='16' y='20' width='2' height='2' fill='%230b0920'/%3E%3Crect x='18' y='20' width='2' height='2' fill='%230b0920'/%3E%3Crect x='0' y='22' width='2' height='2' fill='%230b0920'/%3E%3Crect x='2' y='22' width='2' height='2' fill='%23ffd166'/%3E%3Crect x='4' y='22' width='2' height='2' fill='%23ffd166'/%3E%3Crect x='6' y='22' width='2' height='2' fill='%230b0920'/%3E%3Crect x='8' y='22' width='2' height='2' fill='%23ffd166'/%3E%3Crect x='10' y='22' width='2' height='2' fill='%23ffd166'/%3E%3Crect x='12' y='22' width='2' height='2' fill='%230b0920'/%3E%3Crect x='0' y='24' width='2' height='2' fill='%230b0920'/%3E%3Crect x='2' y='24' width='2' height='2' fill='%23ffd166'/%3E%3Crect x='4' y='24' width='2' height='2' fill='%230b0920'/%3E%3Crect x='8' y='24' width='2' height='2' fill='%230b0920'/%3E%3Crect x='10' y='24' width='2' height='2' fill='%23ffd166'/%3E%3Crect x='12' y='24' width='2' height='2' fill='%23ffd166'/%3E%3Crect x='14' y='24' width='2' height='2' fill='%230b0920'/%3E%3Crect x='0' y='26' width='2' height='2' fill='%230b0920'/%3E%3Crect x='2' y='26' width='2' height='2' fill='%230b0920'/%3E%3Crect x='8' y='26' width='2' height='2' fill='%230b0920'/%3E%3Crect x='10' y='26' width='2' height='2' fill='%23ffd166'/%3E%3Crect x='12' y='26' width='2' height='2' fill='%23ffd166'/%3E%3Crect x='14' y='26' width='2' height='2' fill='%230b0920'/%3E%3Crect x='0' y='28' width='2' height='2' fill='%230b0920'/%3E%3Crect x='10' y='28' width='2' height='2' fill='%230b0920'/%3E%3Crect x='12' y='28' width='2' height='2' fill='%23ffd166'/%3E%3Crect x='14' y='28' width='2' height='2' fill='%23ffd166'/%3E%3Crect x='16' y='28' width='2' height='2' fill='%230b0920'/%3E%3Crect x='10' y='30' width='2' height='2' fill='%230b0920'/%3E%3Crect x='12' y='30' width='2' height='2' fill='%230b0920'/%3E%3Crect x='14' y='30' width='2' height='2' fill='%230b0920'/%3E%3C/svg%3E") 0 0, pointer; }

/* ---------- Enter screen ("press start") ---------- */
.enter {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 30px;
  width: 100%;
  padding: 0 16px;
  border: 0;
  background: rgba(5, 4, 20, 0.84);
  color: var(--text);
  font-family: var(--font-px);
  transition: opacity 0.48s steps(4), visibility 0.48s;
}

.enter.is-leaving {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.enter-logo {
  font: 40px var(--font-px2);
  color: var(--gold);
  text-shadow: 4px 4px 0 #6d3d10, 0 0 26px rgba(255, 209, 102, 0.35);
  word-break: break-word;
}

.enter-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 28px;
  letter-spacing: 2px;
  text-transform: uppercase;
  animation: blink-cta 1.2s steps(1) infinite;
}

@keyframes blink-cta {
  70% { opacity: 0; }
}

.enter:focus-visible .enter-cta {
  outline: 4px solid var(--gold);
  outline-offset: 8px;
}

@keyframes blink {
  50% { opacity: 0; }
}

/* ---------- Layout ---------- */
.stage {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  min-height: 100dvh;
  padding: 30px 16px 64px;
}

.px-col { width: min(620px, 100%); }

/* reveal after the enter screen: windows drop in one after another, in steps */
.px-col > * {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.4s steps(4), transform 0.4s steps(4);
}

.stage.is-visible .px-col > * { opacity: 1; transform: none; }
.px-col > :nth-child(2) { transition-delay: 0.08s; }
.px-col > :nth-child(3) { transition-delay: 0.16s; }
.px-col > :nth-child(4) { transition-delay: 0.24s; }
.px-col > :nth-child(5) { transition-delay: 0.32s; }
.px-col > :nth-child(6) { transition-delay: 0.4s; }

.stage :focus-visible {
  outline: 4px solid var(--gold);
  outline-offset: 6px;
}

/* ---------- Windows ---------- */
.win {
  position: relative;
  scroll-margin-top: 48px; /* room for the title tab when jumping here */
  margin: 40px 8px 8px;
  padding: 34px 20px 22px;
  background: var(--win);
}

.win-title {
  --bd: var(--ink);
  --ol: transparent;
  --sh: transparent;
  --lt: rgba(255, 255, 255, 0.4);
  --dk: rgba(0, 0, 0, 0.2);
  position: absolute;
  top: -22px;
  left: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 6px 12px 6px 8px;
  background: var(--gold);
  color: var(--ink);
  font: 16px var(--font-px2);
  font-weight: normal;
  letter-spacing: 1px;
  line-height: 1;
  text-transform: uppercase;
}


/* ---------- Profile ---------- */
/* avatar on the left, name/info on the right; with a custom status the thought bubble
   takes a row above the name */
.profile {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas: "avatar info";
  align-items: center;
  column-gap: 24px;
}

.profile.has-thought { grid-template-areas: "avatar thought" "avatar info"; }
.profile.has-thought .profile-info { align-self: start; }
.profile .avatar-wrap { grid-area: avatar; }
.profile-info { grid-area: info; }

/* ---------- Thought bubble (Discord custom status) ----------
   A cream pixel cloud with two small "thinking" dots trailing toward the avatar. */
.thought {
  --u: 3px;
  --bd: #f6f1e4;
  --ol: var(--ink);
  --sh: rgba(3, 2, 14, 0.45);
  --lt: transparent;
  --dk: rgba(60, 40, 90, 0.1);
  grid-area: thought;
  position: relative;
  justify-self: start;
  align-self: end;
  max-width: calc(100% - 18px);
  margin: 6px 0 32px 18px; /* room below for the dots, clear of the name */
  padding: 4px 12px;
  background: #f6f1e4;
  color: var(--ink);
  font-size: 22px;
  line-height: 26px;
  overflow-wrap: anywhere;
  animation: think 2.6s steps(1) infinite;
}

.thought::before,
.thought::after {
  content: "";
  position: absolute;
  background: #f6f1e4;
  /* a square with its corners left out reads as a tiny pixel circle */
  box-shadow: 0 -3px 0 0 var(--ink), 0 3px 0 0 var(--ink), -3px 0 0 0 var(--ink), 3px 0 0 0 var(--ink);
}

.thought::before { width: 12px; height: 12px; left: -22px; bottom: -20px; }
.thought::after { width: 6px; height: 6px; left: -38px; bottom: -32px; }

.thought img.emoji {
  display: inline-block;
  width: 22px;
  height: 22px;
  margin-right: 4px;
  vertical-align: -4px;
}

@keyframes think {
  50% { transform: translateY(-3px); }
}

.avatar-wrap {
  position: relative;
  flex: none;
  width: 112px;
  height: 112px;
  margin: 8px;
}

/* ring: accent stepped circle, then a dark one, then the avatar */
.avatar-ring,
.avatar-ring::after {
  position: absolute;
  clip-path: var(--circle);
}

.avatar-ring {
  inset: -8px;
  background: var(--accent);
}

.avatar-ring::after {
  content: "";
  inset: 4px;
  background: var(--ink);
}

.avatar {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--win-2);
  clip-path: var(--circle);
}

.avatar-deco {
  position: absolute;
  top: -12%;
  left: -12%;
  width: 124%;
  height: 124%;
  pointer-events: none;
}

.status-dot {
  position: absolute;
  right: 2px;
  bottom: 2px;
  width: 20px;
  height: 20px;
  background: var(--offline);
  box-shadow: 0 0 0 4px var(--ink);
}

.status-dot[data-status="online"],  .mini-dot[data-status="online"]  { background: var(--online); }
.status-dot[data-status="idle"],    .mini-dot[data-status="idle"]    { background: var(--idle); }
.status-dot[data-status="dnd"],     .mini-dot[data-status="dnd"]     { background: var(--dnd); }
.status-dot[data-status="offline"], .mini-dot[data-status="offline"] { background: var(--offline); }

.profile-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.name {
  margin: 0;
  font: 32px var(--font-px2);
  font-weight: normal;
  line-height: 1.1;
  color: var(--text);
  text-shadow: 4px 4px 0 var(--ink);
  word-break: break-word;
}

.name.fx-glow {
  color: #fff;
  text-shadow: 4px 4px 0 var(--ink), 0 0 18px color-mix(in srgb, var(--accent) 80%, transparent);
}

.name.fx-gradient {
  background: linear-gradient(180deg, #fff 0 50%, var(--accent) 50% 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: none;
  filter: drop-shadow(4px 4px 0 var(--ink));
}

.meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 14px;
  margin: 0;
  font-size: 22px;
  color: var(--muted);
}

.meta:empty { display: none; }

.meta span {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.meta i { color: var(--faint); }

/* Discord status: square + state, then the custom status in a small speech box */
.presence {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  margin: 0;
  font-size: 22px;
}

.pr-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
}

.presence .mini-dot {
  position: static;
  flex: none;
  width: 12px;
  height: 12px;
  box-shadow: 0 0 0 3px var(--ink);
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  padding: 6px 8px;
}

.badges:empty { display: none; }

.badge {
  --u: 2px;
  --sh: transparent;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  background: var(--win-3);
  color: var(--gold);
  font-size: 16px;
}

/* RPG text box with a blinking block cursor */
.bio {
  --bd: var(--hi);
  --sh: transparent;
  position: relative;
  min-height: 56px;
  margin: 26px 8px 0;
  padding: 12px 16px;
  background: var(--ink);
  font-size: 24px;
  line-height: 32px;
}

.caret {
  display: inline-block;
  width: 12px;
  height: 20px;
  margin-left: 4px;
  vertical-align: -2px;
  background: var(--gold);
  animation: blink 1s steps(1) infinite;
}

.bio.no-caret .caret { display: none; }

.socials {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  margin-top: 26px;
}

.socials:empty { display: none; }

.social {
  --brand: var(--accent);
  position: relative;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin: 8px;
  padding: 0;
  border: 0;
  background: var(--win-3);
  color: var(--text);
  font-size: 22px;
}

.social:hover,
.social:focus-visible {
  --bd: var(--brand);
  color: var(--brand);
  transform: translateY(-4px);
}

.social:active {
  --sh: transparent;
  transform: translateY(4px);
}

.links {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
  margin-top: 22px;
}

.links:empty { display: none; }

.link-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 8px;
  padding: 10px 14px;
  background: var(--win-3);
  font-size: 22px;
}

.link-btn > i:first-child { color: var(--gold); }
.link-btn .arrow { margin-left: auto; color: var(--faint); }

.link-btn:hover,
.link-btn:focus-visible {
  --bd: var(--gold);
  transform: translateY(-4px);
}

/* ---------- Tooltips ---------- */
.stage [data-tip] { position: relative; }

.stage [data-tip]::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 14px);
  left: 50%;
  z-index: 5;
  padding: 3px 8px;
  background: var(--ink);
  color: var(--text);
  font: 18px var(--font-px);
  white-space: nowrap;
  box-shadow: 0 0 0 2px var(--hi);
  transform: translateX(-50%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.12s steps(2);
}

.stage [data-tip]:hover::after,
.stage [data-tip]:focus-visible::after { opacity: 1; }

/* ---------- Rows shared by the lover card and the activity window ---------- */
.acard {
  display: flex;
  align-items: center;
  gap: 14px;
  color: inherit;
  text-align: left;
}

.acard-media {
  position: relative;
  flex: none;
  width: 56px;
  height: 56px;
}

.acard-img,
.acard-fallback {
  width: 100%;
  height: 100%;
  clip-path: var(--notch);
}

.acard-img {
  object-fit: cover;
  background: var(--win-2);
}

.acard-img.round { clip-path: var(--circle); }

.acard-fallback {
  display: grid;
  place-items: center;
  background: var(--win-3);
  color: var(--gold);
}

.acard-small {
  position: absolute;
  right: -6px;
  bottom: -6px;
  width: 24px;
  height: 24px;
  object-fit: cover;
  background: var(--ink);
  box-shadow: 0 0 0 3px var(--ink);
}

.mini-dot {
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 14px;
  height: 14px;
  background: var(--offline);
  box-shadow: 0 0 0 3px var(--ink);
}

.acard-body {
  flex: 1;
  min-width: 0;
}

.acard-label {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
  font: 12px var(--font-px2);
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--faint);
}

.acard-label i { font-size: 14px; }
.acard-label .fa-discord { color: #8f98ff; }
.acard-label .fa-spotify { color: var(--spotify); }

.acard-title,
.acard-sub {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.acard-title { font-size: 24px; }

.acard-title small {
  margin-left: 8px;
  font-size: 18px;
  color: var(--faint);
}

.acard-sub {
  font-size: 20px;
  color: var(--muted);
}

.acard-sub i { color: var(--faint); font-size: 14px; }
.acard-sub .fa-spotify { color: var(--spotify); }

.acard-sub img.emoji {
  display: inline-block;
  width: 18px;
  height: 18px;
  margin-right: 4px;
  vertical-align: -3px;
}

.acard-elapsed {
  font-size: 18px;
  color: var(--faint);
}

/* Spotify progress: segmented bar */
.stage .progress {
  height: 12px;
  margin-top: 8px;
  background: var(--ink);
  box-shadow: 0 0 0 2px var(--win-3);
}

.stage .progress-bar {
  height: 100%;
  width: 0;
  background: repeating-linear-gradient(90deg, var(--spotify) 0 6px, transparent 6px 8px);
  transition: width 1s steps(4);
}

.stage .times {
  display: flex;
  justify-content: space-between;
  margin-top: 4px;
  font-size: 18px;
  color: var(--faint);
}

/* ---------- Lover card ("player 2") ---------- */
.lover { margin: 40px 0 0; }
.lover:empty { display: none; }

.lcard {
  --bd: var(--pink);
  margin: 8px;
  padding: 14px 16px;
  background: #2a1238;
}

.lcard .acard-label { color: var(--pink); }
.lcard .acard-label i { animation: blink 1.4s steps(1) infinite; }
.lcard .acard-fallback { color: var(--pink); background: #3b1a4c; }
.lcard .acard-sub .fa-discord { color: #8f98ff; }

.lcard-go {
  flex: none;
  color: var(--pink);
}

a.lcard:hover,
a.lcard:focus-visible {
  --bd: #ffc0d6;
  transform: translateY(-4px);
}

a.lcard:hover .lcard-go { animation: nudge 0.6s steps(2) infinite; }

@keyframes nudge {
  50% { transform: translateX(4px); }
}

/* ---------- Notices (bottom-left): game / app / Spotify in progress ---------- */
.notices {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 30;
  display: flex;
  flex-direction: column;
  gap: 22px;
  width: min(330px, calc(100vw - 48px));
  pointer-events: none;
}

.notice {
  position: relative;
  padding: 12px 44px 12px 14px;
  background: var(--win);
  pointer-events: auto;
  animation: notice-in 0.36s steps(6) both;
}

/* gold strip on the left, like an in-game pop-up */
.notice::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 4px;
  background: var(--gold);
}

.notice.is-leaving { animation: notice-out 0.36s steps(4) both; }

@keyframes notice-in {
  from { transform: translateX(calc(-100% - 48px)); }
}

@keyframes notice-out {
  to { transform: translateX(calc(-100% - 48px)); }
}

.notice .acard-media { width: 64px; height: 64px; }
.notice .acard-title { font-size: 24px; }
.notice a.acard:hover .acard-title { color: var(--gold); }

.nt-close {
  position: absolute;
  top: 6px;
  right: 6px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--faint);
}

.nt-close:hover,
.nt-close:focus-visible {
  background: var(--win-3);
  color: var(--text);
}

/* ---------- Quick jump buttons (PC, right edge) ---------- */
.quick-nav {
  position: fixed;
  top: 50%;
  right: 32px;
  z-index: 20;
  display: flex;
  flex-direction: column;
  gap: 22px;
  transform: translateY(-50%);
}

.qn-btn {
  position: relative;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin: 8px;
  padding: 0;
  border: 0;
  background: var(--win-3);
  color: var(--text);
}

.qn-btn:hover {
  --bd: var(--gold);
  color: var(--gold);
  transform: translateX(-4px);
}

.qn-btn:active {
  --sh: transparent;
  transform: translateY(4px);
}

.qn-btn[aria-current="true"] {
  background: var(--gold);
  color: var(--ink);
}

/* tooltip to the left of the button */
.stage .qn-btn[data-tip]::after {
  top: 50%;
  right: calc(100% + 18px);
  bottom: auto;
  left: auto;
  transform: translateY(-50%);
}

@media (max-width: 900px), (hover: none) {
  .quick-nav { display: none; }
}

/* ---------- Music: cassette player ---------- */
.cassette {
  --bd: var(--ink);
  --ol: transparent;
  --lt: rgba(255, 255, 255, 0.12);
  --dk: rgba(0, 0, 0, 0.3);
  position: relative;
  max-width: 440px;
  margin: 4px auto 0;
  padding: 16px 18px 0;
  background: #3a3186;
}

/* screws */
.cassette::before,
.cassette::after {
  content: "";
  position: absolute;
  top: 6px;
  width: 6px;
  height: 6px;
  background: #1c1648;
}

.cassette::before { left: 6px; }
.cassette::after { right: 6px; }

.cs-label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 10px 8px;
  background:
    linear-gradient(var(--pink) 0 4px, transparent 4px 8px, var(--accent) 8px 12px, transparent 12px) top / 100% 12px no-repeat,
    #f3eedf;
  color: var(--ink);
}

.cs-side {
  display: grid;
  place-items: center;
  flex: none;
  width: 32px;
  height: 32px;
  background: var(--ink);
  color: var(--gold);
  font: 16px var(--font-px2);
}

.cs-text {
  flex: 1;
  min-width: 0;
}

.cs-title,
.cs-artist {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.cs-title { font-size: 26px; line-height: 1; }
.cs-artist { font-size: 20px; color: #5d548f; }

.cs-cover {
  position: relative;
  display: grid;
  place-items: center;
  flex: none;
  width: 48px;
  height: 48px;
  overflow: hidden;
  background: var(--accent);
  color: var(--ink);
  box-shadow: 0 0 0 3px var(--ink);
}

.cs-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cs-window {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 96px;
  margin: 12px 22px 0;
  padding: 0 18px;
  background: #110e30;
  box-shadow: inset 0 0 0 4px var(--ink), inset 0 8px 0 0 rgba(0, 0, 0, 0.35);
}

.cs-spool {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
}

/* tape wound on each spool: left shrinks and right grows as the song plays (--prog 0 → 1) */
.cs-tape {
  position: absolute;
  width: var(--t);
  height: var(--t);
  background: #6a4130;
  clip-path: var(--circle);
}

.cs-left .cs-tape { --t: calc(48% + (1 - var(--prog, 0)) * 52%); }
.cs-right .cs-tape { --t: calc(48% + var(--prog, 0) * 52%); }

.cs-reel {
  position: relative;
  width: 36px;
  height: 36px;
  animation: spin 1.5s steps(12) infinite;
  animation-play-state: paused;
}

.win-music.is-playing .cs-reel { animation-play-state: running; }

.cs-strip {
  position: absolute;
  right: 50px;
  bottom: 14px;
  left: 50px;
  height: 4px;
  background: #6a4130;
}

.cs-foot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  width: 70%;
  height: 24px;
  margin: 12px auto 0;
  background: #2a2266;
  clip-path: polygon(8% 0, 92% 0, 100% 100%, 0 100%);
}

.cs-foot i {
  width: 8px;
  height: 8px;
  background: var(--ink);
}

.cs-from {
  margin: 14px 0 0;
  font-size: 20px;
  text-align: center;
  color: var(--faint);
}

#music-playlist { color: var(--muted); }

/* pixel slider */
.px-range {
  --p: 0%;
  -webkit-appearance: none;
  appearance: none;
  display: block;
  width: 100%;
  height: 24px;
  margin: 14px 0 0;
  background: transparent;
  cursor: pointer;
}

.px-range::-webkit-slider-runnable-track {
  height: 12px;
  background: linear-gradient(90deg, var(--gold) var(--p), var(--ink) var(--p));
  box-shadow: 0 0 0 4px var(--win-3);
}

.px-range::-moz-range-track {
  height: 12px;
  background: linear-gradient(90deg, var(--gold) var(--p), var(--ink) var(--p));
  box-shadow: 0 0 0 4px var(--win-3);
}

.px-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 24px;
  margin-top: -6px;
  border: 0;
  border-radius: 0;
  background: var(--hi);
  box-shadow: 0 0 0 4px var(--ink);
}

.px-range::-moz-range-thumb {
  width: 12px;
  height: 24px;
  border: 0;
  border-radius: 0;
  background: var(--hi);
  box-shadow: 0 0 0 4px var(--ink);
}

.px-range:focus-visible { outline-offset: 8px; }

.px-times {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  font-size: 20px;
  color: var(--muted);
}

.px-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 12px;
}

.pbtn {
  --sh: rgba(3, 2, 14, 0.75);
  position: relative;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin: 8px 0 12px;
  padding: 0;
  border: 0;
  background: var(--win-3);
  color: var(--text);
}

.pbtn:hover { background: #3c3290; }

.pbtn:active {
  --sh: transparent;
  transform: translateY(4px);
}

.pbtn.is-on {
  --bd: var(--gold);
  color: var(--gold);
}

.pbtn-play {
  width: 64px;
  height: 64px;
  background: var(--gold);
  color: var(--ink);
}

.pbtn-play:hover { background: #ffdd8a; }

.pbtn-sm { width: 40px; height: 40px; }

.repeat-one {
  position: absolute;
  top: 3px;
  right: 4px;
  display: none;
  font: 8px var(--font-px2);
}

.pbtn[data-repeat="one"] .repeat-one { display: block; }

.px-vol {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 4px;
}

.px-vol .vol-range {
  width: 150px;
  margin: 0;
}

.px-list-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 24px 8px 12px;
  font: 16px var(--font-px2);
  text-transform: uppercase;
}

#music-count {
  font: 20px var(--font-px);
  text-transform: none;
  color: var(--faint);
}

.px-list {
  --u: 2px;
  --bd: var(--win-3);
  --ol: transparent;
  --sh: transparent;
  margin: 0 4px;
  padding: 6px;
  list-style: none;
  background: var(--ink);
}

.px-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 6px 8px 6px 0;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  text-align: left;
}

.px-row:hover,
.px-row:focus-visible { background: var(--win-2); }

.px-row.is-current {
  background: var(--win-2);
  color: var(--gold);
}

/* RPG menu cursor on the current song */
.px-cur {
  flex: none;
  visibility: hidden;
  color: var(--gold);
}

.px-row.is-current .px-cur {
  visibility: visible;
  animation: blink 1s steps(1) infinite;
}

.px-row:hover .px-cur { visibility: visible; }

.px-row-num {
  flex: none;
  width: 22px;
  font-size: 20px;
  color: var(--faint);
}

.px-thumb {
  position: relative;
  display: grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  overflow: hidden;
  background: var(--accent);
  color: var(--ink);
}

.px-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.px-thumb .eq {
  position: absolute;
  inset: 0;
  display: none;
  align-items: flex-end;
  justify-content: center;
  gap: 3px;
  padding-bottom: 10px;
  background: rgba(11, 9, 32, 0.6);
}

.win-music.is-playing .px-row.is-current .eq { display: flex; }

.px-text {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
}

.px-row-title,
.px-row-artist {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.px-row-title { font-size: 22px; }

.px-row-artist {
  font-size: 18px;
  color: var(--muted);
}

/* equalizer bars */
.eq i {
  width: 4px;
  height: 16px;
  background: var(--gold);
  transform-origin: bottom;
  transform: scaleY(0.25);
}

.is-playing .eq i { animation: eq-px 0.8s steps(3) infinite; }
.is-playing .eq i:nth-child(2) { animation-delay: -0.27s; }
.is-playing .eq i:nth-child(3) { animation-delay: -0.53s; }

@keyframes eq-px {
  0%, 100% { transform: scaleY(0.25); }
  50% { transform: scaleY(1); }
}

/* ---------- Games window ---------- */
.gm-wuwa { --g: #6fe0d0; }
.gm-genshin { --g: #f2cf78; }
.gm-hsr { --g: #c3b2ff; }

.gm-tabs {
  display: flex;
  gap: 18px;
  padding: 4px 8px 0;
}

.gm-tab {
  --sh: rgba(3, 2, 14, 0.75);
  position: relative;
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 0;
  margin: 8px 0 12px;
  padding: 10px 6px;
  border: 0;
  background: var(--win-3);
  color: var(--muted);
  font: 16px var(--font-px2);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.gm-tab:hover { color: var(--text); }

.gm-tab[aria-selected="true"] {
  --bd: var(--hi);
  background: var(--g);
  color: var(--ink);
  transform: translateY(-4px);
}

.gm-tab .live-dot {
  width: 8px;
  height: 8px;
  background: var(--online);
  box-shadow: 0 0 0 2px var(--ink);
  animation: blink 1s steps(1) infinite;
}

.gm-stage {
  position: relative;
  margin-top: 14px;
}

.gm-banner {
  --bd: var(--g);
  position: relative;
  margin: 8px;
  padding: 14px 16px;
  /* checker dither fading in from the right, a common 8-bit trick */
  background:
    linear-gradient(90deg, var(--win-2) 52%, transparent 52%),
    repeating-conic-gradient(color-mix(in srgb, var(--g) 32%, var(--win-2)) 0 25%, var(--win-2) 0 50%) 0 0 / 8px 8px;
}

.gm-game {
  margin: 0;
  font: 24px var(--font-px2);
  font-weight: normal;
  color: var(--g);
  text-shadow: 4px 4px 0 var(--ink);
}

.gm-player {
  margin-top: 6px;
  font-size: 26px;
}

.gm-sign {
  margin-top: 2px;
  font-size: 20px;
  color: var(--muted);
}

.gm-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
}

.gm-meta:empty { display: none; }

.gm-chip {
  --u: 2px;
  --bd: var(--win-3);
  --sh: transparent;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 4px;
  padding: 2px 10px 2px 6px;
  border: 0;
  background: var(--ink);
  color: var(--text);
  font: 20px var(--font-px);
}

button.gm-chip:hover,
button.gm-chip:focus-visible { --bd: var(--g); color: var(--g); }

.gm-chip.is-live { --bd: var(--online); color: var(--online); }

.live-sq {
  width: 8px;
  height: 8px;
  margin: 0 4px;
  background: var(--online);
  animation: blink 1s steps(1) infinite;
}

/* level + EXP bar */
.gm-level {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 8px 0;
}

.gm-lv {
  font: 16px var(--font-px2);
  color: var(--muted);
}

.gm-lv b {
  margin-left: 6px;
  font-size: 24px;
  font-weight: normal;
  color: var(--g);
}

.gm-bar {
  flex: 1;
  height: 16px;
  background:
    repeating-linear-gradient(90deg, var(--g) 0 8px, transparent 8px 12px) 0 0 / var(--fill, 0%) 100% no-repeat,
    repeating-linear-gradient(90deg, var(--win-3) 0 8px, transparent 8px 12px);
  box-shadow: 0 0 0 4px var(--ink);
}

.gm-max {
  font: 16px var(--font-px2);
  color: var(--g);
}

/* stats as an RPG status list: LABEL ....... VALUE */
.gm-stats {
  --u: 2px;
  --bd: var(--win-3);
  --sh: transparent;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 26px;
  margin: 22px 4px 0;
  padding: 10px 14px;
  background: var(--ink);
}

.gm-stats dd { margin: 0; }

.gm-stat {
  display: flex;
  align-items: baseline;
  gap: 6px;
  min-width: 0;
  padding: 3px 0;
}

/* label, then a dotted leader up to the value */
.gm-stat-label {
  display: flex;
  flex: 1;
  align-items: baseline;
  gap: 6px;
  min-width: 0;
  font-size: 20px;
  color: var(--muted);
}

.gm-stat-label span {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.gm-stat-label::after {
  content: "";
  flex: 1;
  min-width: 12px;
  height: 2px;
  background: linear-gradient(90deg, var(--faint) 50%, transparent 0) 0 0 / 6px 2px repeat-x;
  opacity: 0.6;
}

.gm-stat-value {
  flex: none;
  margin: 0;
  font-size: 22px;
  color: var(--g);
}

.gm-sub {
  margin: 22px 8px 12px;
  font: 12px var(--font-px2);
  font-weight: normal;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--faint);
}

.gm-chars {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px 8px;
}

.gm-char {
  min-width: 0;
  margin: 0;
  text-align: center;
}

.gm-char-img {
  --u: 2px;
  --bd: #b28cff;
  --sh: transparent;
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  margin: 4px;
  overflow: hidden;
  background: #3e2f6e;
  color: var(--muted);
}

.gm-char[data-rarity="5"] .gm-char-img {
  --bd: #f2c35a;
  background: #6b4a2a;
}

.gm-char-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gm-char-lv {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 1px 0;
  background: rgba(11, 9, 32, 0.78);
  font-size: 16px;
  line-height: 1;
}

.gm-char figcaption {
  margin-top: 4px;
  overflow: hidden;
  font-size: 18px;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: var(--muted);
}

.gm-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.gm-empty {
  margin: 16px 8px 0;
  font-size: 20px;
  color: var(--faint);
}

.gm-source {
  margin: 18px 8px 0;
  font-size: 16px;
  color: var(--faint);
}

.gm-source a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- Footer + toast ---------- */
.footer {
  margin-top: 28px;
  font-size: 18px;
  text-align: center;
  color: var(--faint);
}

.footer:empty { display: none; }

.toast {
  --sh: transparent;
  position: fixed;
  bottom: 28px;
  left: 50%;
  z-index: 60;
  padding: 6px 14px;
  background: var(--win);
  font: 20px var(--font-px);
  opacity: 0;
  transform: translate(-50%, 10px);
  pointer-events: none;
  transition: opacity 0.2s steps(2), transform 0.2s steps(2);
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ---------- Shared with the lover page (kept as before) ---------- */
@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  15% { transform: scale(1.28); }
  30% { transform: scale(1); }
  45% { transform: scale(1.18); }
  60% { transform: scale(1); }
}

.progress {
  height: 4px;
  margin-top: 8px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: var(--spotify);
  transition: width 1s linear;
}

.times {
  display: flex;
  justify-content: space-between;
  margin-top: 4px;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.42);
  font-variant-numeric: tabular-nums;
}

.range {
  --p: 0%;
  -webkit-appearance: none;
  appearance: none;
  height: 14px;
  margin: 0;
  background: transparent;
  cursor: pointer;
}

.range::-webkit-slider-runnable-track {
  height: 3px;
  border-radius: 99px;
  background: linear-gradient(90deg, #fff var(--p), rgba(255, 255, 255, 0.22) var(--p));
}

.range::-moz-range-track {
  height: 3px;
  border-radius: 99px;
  background: linear-gradient(90deg, #fff var(--p), rgba(255, 255, 255, 0.22) var(--p));
}

.range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 11px;
  height: 11px;
  margin-top: -4px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2);
}

.range::-moz-range-thumb {
  width: 11px;
  height: 11px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2);
}

.range:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* =====================================================================
   Lover page (#love) — cream-pink theme
   ===================================================================== */
html.love-open { overflow: hidden; }

.love {
  --l-bg1: #fff8f3;
  --l-bg2: #ffeef2;
  --l-bg3: #ffe1e9;
  --l-pink: #f59ab5;
  --l-pink-deep: #df7898;
  --l-ink: #6b3a4b;
  --l-ink-soft: #a07685;
  --l-card: rgba(255, 255, 255, 0.62);
  --l-line: rgba(236, 140, 168, 0.28);
  --l-shadow: rgba(224, 120, 154, 0.16);

  position: fixed;
  inset: 0;
  z-index: 40;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  color: var(--l-ink);
  font-family: "Quicksand", "Outfit", system-ui, sans-serif;
  background: linear-gradient(165deg, var(--l-bg1) 0%, var(--l-bg2) 50%, var(--l-bg3) 100%);
  clip-path: circle(0px at var(--ox, 50%) var(--oy, 22%));
  transition: clip-path 0.85s cubic-bezier(0.7, 0, 0.25, 1);
}

.love.is-open { clip-path: circle(150vmax at var(--ox, 50%) var(--oy, 22%)); }

/* background stays put while the content scrolls */
.love-bg {
  position: sticky;
  top: 0;
  z-index: 0;
  height: 100dvh;
  margin-bottom: -100dvh;
  overflow: hidden;
  pointer-events: none;
}

.love-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(50px);
  opacity: 0.75;
  animation: blob 18s ease-in-out infinite alternate;
}

.love-blob.b1 { top: -90px; left: -90px; width: 340px; height: 340px; background: #ffc8d6; }
.love-blob.b2 { right: -70px; bottom: -70px; width: 320px; height: 320px; background: #ffe0cc; animation-delay: -6s; }
.love-blob.b3 { top: 38%; left: 58%; width: 240px; height: 240px; background: #fbd0e6; animation-delay: -12s; }

@keyframes blob {
  to { transform: translate(40px, 30px) scale(1.12); }
}

.love-heart {
  position: absolute;
  bottom: -40px;
  animation: heart-up linear infinite;
}

@keyframes heart-up {
  0% { transform: translate(0, 0) rotate(-12deg); }
  50% { transform: translate(var(--sway, 20px), -55vh) rotate(12deg); }
  100% { transform: translate(0, -115vh) rotate(-12deg); }
}

.love-inner {
  position: relative;
  z-index: 1;
  width: min(560px, 100%);
  margin: 0 auto;
  padding: 20px 18px 48px;
}

.love-top { display: flex; }

.love-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border: 1px solid var(--l-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
  color: var(--l-ink);
  font: 600 0.9rem "Quicksand", system-ui, sans-serif;
  cursor: pointer;
  box-shadow: 0 6px 18px var(--l-shadow);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.love-back:hover,
.love-back:focus-visible {
  transform: translateX(-2px);
  box-shadow: 0 0 0 2px var(--l-pink), 0 8px 22px var(--l-shadow);
  outline: none;
}

/* hero */
.love-hero {
  position: relative;
  padding: 30px 0 6px;
  text-align: center;
  animation: love-rise 0.8s 0.25s ease both;
}

@keyframes love-rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

.love-moon {
  position: absolute;
  top: 0;
  right: 4%;
  width: 92px;
  height: 92px;
  pointer-events: none;
}

.moon {
  position: absolute;
  inset: 14px;
  border-radius: 50%;
  box-shadow: inset -14px 8px 0 0 #ffd0dc;
  filter: drop-shadow(0 0 14px rgba(245, 154, 181, 0.6));
  transform: rotate(-18deg);
  animation: moon-float 6s ease-in-out infinite;
}

@keyframes moon-float {
  50% { transform: rotate(-12deg) translateY(-5px); }
}

.sparkle {
  position: absolute;
  color: var(--l-pink);
  font-style: normal;
  line-height: 1;
  animation: twinkle 2.6s ease-in-out infinite;
}

.sparkle.s1 { top: 0; left: 4px; font-size: 11px; }
.sparkle.s2 { top: 30px; right: -6px; font-size: 8px; animation-delay: -0.8s; }
.sparkle.s3 { bottom: 2px; left: 18px; font-size: 9px; animation-delay: -1.5s; }
.sparkle.s4 { bottom: 18px; right: 10px; font-size: 6px; animation-delay: -2s; }

@keyframes twinkle {
  0%, 100% { opacity: 0.25; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.1); }
}

.love-avatar-wrap {
  position: relative;
  width: 132px;
  height: 132px;
  margin: 0 auto;
}

.love-avatar {
  width: 100%;
  height: 100%;
  border: 5px solid #fff;
  border-radius: 50%;
  object-fit: cover;
  background: #ffe4ea;
  box-shadow: 0 12px 34px rgba(224, 120, 154, 0.35), 0 0 0 9px rgba(245, 154, 181, 0.18);
}

.love-deco {
  position: absolute;
  top: -12%;
  left: -12%;
  width: 124%;
  height: 124%;
  pointer-events: none;
}

.love-dot {
  position: absolute;
  right: 8px;
  bottom: 8px;
  width: 24px;
  height: 24px;
  border: 4px solid #fff;
  border-radius: 50%;
  background: var(--offline);
}

.love-dot[data-status="online"] { background: var(--online); }
.love-dot[data-status="idle"] { background: var(--idle); }
.love-dot[data-status="dnd"] { background: var(--dnd); }

.love-kicker {
  margin: 20px 0 0;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--l-pink-deep);
}

.love-name {
  margin: 0;
  font-family: "Dancing Script", cursive;
  font-size: clamp(2.5rem, 9vw, 3.3rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--l-pink-deep);
  text-shadow: 0 2px 0 #fff, 0 10px 26px rgba(224, 120, 154, 0.3);
  word-break: break-word;
}

.love-handle {
  margin: 2px 0 0;
  font-size: 0.92rem;
  color: var(--l-ink-soft);
}

.love-status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  max-width: 100%;
  margin: 16px 0 0;
  padding: 9px 16px;
  border-radius: 18px 18px 18px 5px;
  background: #fff;
  box-shadow: 0 6px 18px var(--l-shadow);
  font-size: 0.95rem;
  font-weight: 500;
}

.love-status img.emoji {
  display: inline-block;
  width: 1.25em;
  height: 1.25em;
  margin-right: 2px;
}

/* cards */
.love-card {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 22px;
  background: var(--l-card);
  box-shadow: 0 10px 30px var(--l-shadow);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: love-rise 0.8s 0.4s ease both;
}

.love-card-title {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 12px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--l-pink-deep);
}

/* couple */
.couple-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
}

.couple-p {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 0;
  max-width: 40%;
  margin: 0;
}

.couple-p img {
  width: 72px;
  height: 72px;
  border: 3px solid #fff;
  border-radius: 50%;
  object-fit: cover;
  background: #ffe4ea;
  box-shadow: 0 6px 16px rgba(224, 120, 154, 0.25);
}

.couple-p figcaption {
  max-width: 100%;
  overflow: hidden;
  font-size: 0.88rem;
  font-weight: 600;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.couple-heart {
  margin-bottom: 26px;
  color: var(--l-pink);
  font-size: 1.7rem;
  filter: drop-shadow(0 4px 10px rgba(245, 154, 181, 0.5));
  animation: heartbeat 1.6s ease-in-out infinite;
}

.love-days {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed var(--l-line);
}

.days-num {
  font-family: "Dancing Script", cursive;
  font-size: 3.2rem;
  font-weight: 700;
  line-height: 1;
  color: var(--l-pink-deep);
}

.days-label { font-weight: 700; }

.days-since {
  margin-top: 2px;
  font-size: 0.8rem;
  color: var(--l-ink-soft);
}

.love-sync {
  margin: 14px 0 0;
  font-size: 0.88rem;
  text-align: center;
  color: var(--l-ink-soft);
}

.love-sync i { color: var(--l-pink-deep); }

/* her song */
.ls-main {
  display: flex;
  align-items: center;
  gap: 16px;
}

.ls-disc {
  position: relative;
  flex: none;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background:
    radial-gradient(circle, transparent 0 30%, rgba(255, 255, 255, 0.5) 30.5% 32%, transparent 32.5%),
    repeating-radial-gradient(circle, #f6b3c6 0 1.4px, #f9c7d5 1.4px 2.8px);
  box-shadow: 0 8px 22px rgba(224, 120, 154, 0.35), inset 0 0 0 2px rgba(255, 255, 255, 0.6);
  animation: spin 4.2s linear infinite;
  animation-play-state: paused;
}

.love-song.is-playing .ls-disc { animation-play-state: running; }

.ls-label {
  position: absolute;
  inset: 31%;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  background: #fff;
  color: var(--l-pink);
  font-size: 0.8rem;
}

.ls-label img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ls-label::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 6px;
  height: 6px;
  margin: auto;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 2px var(--l-pink);
}

.ls-body {
  flex: 1;
  min-width: 0;
}

.ls-body .love-card-title { margin-bottom: 4px; }

.ls-title,
.ls-artist {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.ls-title {
  font-size: 1.05rem;
  font-weight: 700;
}

.ls-artist {
  font-size: 0.88rem;
  color: var(--l-ink-soft);
}

.love .ls-seek {
  width: 100%;
  margin-top: 14px;
}

.love .range::-webkit-slider-runnable-track {
  background: linear-gradient(90deg, var(--l-pink) var(--p), rgba(224, 120, 154, 0.2) var(--p));
}

.love .range::-moz-range-track {
  background: linear-gradient(90deg, var(--l-pink) var(--p), rgba(224, 120, 154, 0.2) var(--p));
}

.love .range::-webkit-slider-thumb { box-shadow: 0 0 0 3px rgba(245, 154, 181, 0.45); }
.love .range::-moz-range-thumb { box-shadow: 0 0 0 3px rgba(245, 154, 181, 0.45); }
.love .range:focus-visible { outline-color: var(--l-pink); }

.ls-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 6px;
}

.ls-btn {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--l-ink-soft);
  font-size: 1rem;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.ls-btn:hover,
.ls-btn:focus-visible {
  color: var(--l-ink);
  background: rgba(245, 154, 181, 0.15);
  outline: none;
}

.ls-btn:focus-visible { box-shadow: 0 0 0 2px var(--l-pink); }

.ls-play {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #f7a8bf, #ec84a5);
  color: #fff;
  box-shadow: 0 8px 20px rgba(224, 120, 154, 0.35);
}

.ls-play:hover,
.ls-play:focus-visible {
  color: #fff;
  background: linear-gradient(135deg, #f7a8bf, #ec84a5);
  transform: scale(1.06);
}

/* what she's doing */
.now-item {
  display: flex;
  align-items: center;
  gap: 14px;
  color: inherit;
}

.now-item + .now-item {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--l-line);
}

.now-img {
  flex: none;
  width: 64px;
  height: 64px;
  border-radius: 14px;
  object-fit: cover;
  background: #ffe4ea;
  box-shadow: 0 4px 12px var(--l-shadow);
}

.now-fallback {
  display: grid;
  place-items: center;
  color: var(--l-pink-deep);
  font-size: 1.4rem;
}

.now-body {
  flex: 1;
  min-width: 0;
}

.now-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--l-ink-soft);
}

.now-label .fa-spotify { color: #1db954; }

.now-title,
.now-sub {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.now-title { font-weight: 700; }

.now-sub {
  font-size: 0.86rem;
  color: var(--l-ink-soft);
}

.love .progress { background: rgba(224, 120, 154, 0.18); }
.love .progress-bar { background: var(--l-pink); }
.love .times { color: var(--l-ink-soft); }

/* letter */
.love-letter {
  position: relative;
  padding: 22px 22px 16px;
  background:
    repeating-linear-gradient(transparent 0 31px, rgba(245, 154, 181, 0.2) 31px 32px),
    #fffaf6;
  background-position: 0 58px;
}

.letter-stamp {
  position: absolute;
  top: 16px;
  right: 18px;
  color: var(--l-pink);
  font-size: 1.2rem;
  transform: rotate(12deg);
}

.letter-title {
  margin: 0 0 6px;
  font-family: "Dancing Script", cursive;
  font-size: 2rem;
  font-weight: 700;
  color: var(--l-pink-deep);
}

.letter-body p {
  margin: 0;
  font-size: 1rem;
  line-height: 32px;
}

.letter-sign {
  margin: 8px 0 0;
  font-family: "Dancing Script", cursive;
  font-size: 1.4rem;
  text-align: right;
  color: var(--l-pink-deep);
}

/* photos */
.love-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 18px;
  margin-top: 20px;
  padding: 0 6px;
}

.polaroid {
  margin: 0;
  padding: 8px 8px 24px;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(107, 58, 75, 0.15);
  transform: rotate(var(--r, 0deg));
  transition: transform 0.25s ease;
}

.polaroid:hover { transform: rotate(0deg) scale(1.04); }

.polaroid img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 3px;
  object-fit: cover;
  background: #ffe9ee;
}

/* actions + footer */
.love-actions {
  display: flex;
  justify-content: center;
  margin-top: 24px;
}

.love-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f7a8bf, #ec84a5);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(224, 120, 154, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.love-btn:hover,
.love-btn:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--l-pink), 0 12px 28px rgba(224, 120, 154, 0.4);
  outline: none;
}

.love-foot {
  margin-top: 22px;
  font-size: 0.8rem;
  text-align: center;
  color: var(--l-ink-soft);
}

.love-foot i { color: var(--l-pink); }

/* the glowing cursor is invisible on a light background with blend mode "screen" */
.love-open .cursor {
  mix-blend-mode: normal;
  background: radial-gradient(circle, rgba(245, 154, 181, 0.5), transparent 70%);
}

/* ---------- Responsive ---------- */
@media (max-width: 560px) {
  .stage { padding: 20px 8px 48px; }
  .win { padding: 32px 14px 18px; }
  .profile {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "avatar" "info";
    justify-items: center;
    row-gap: 16px;
    text-align: center;
  }
  .profile.has-thought { grid-template-areas: "thought" "avatar" "info"; }
  /* bubble sits above the head, a little to the right; dots fall toward the head */
  .thought {
    justify-self: center;
    max-width: calc(100% - 48px);
    margin: 6px 0 22px 36px;
  }
  .thought::before { left: 38%; bottom: -24px; }
  .thought::after { left: calc(38% - 16px); bottom: -38px; }
  .profile-info { align-items: center; }
  .meta, .badges, .presence { justify-content: center; }
  /* phones: compact notices so they cover less of the page */
  .notices { right: 8px; bottom: 12px; left: 8px; gap: 14px; width: auto; }
  .notice { padding: 8px 40px 8px 12px; }
  .notice .acard { gap: 10px; }
  .notice .acard-media { width: 44px; height: 44px; }
  .notice .acard-label { margin-bottom: 2px; }
  .notice .acard-title { font-size: 20px; }
  .notice .acard-sub + .acard-sub,
  .notice [data-sp-start] { display: none; }
  .nt-close { top: 50%; transform: translateY(-50%); }
  .name { font-size: 24px; }
  .socials { gap: 10px; }
  .cs-window { margin: 12px 8px 0; }
  .px-controls { gap: 10px; }
  .pbtn { width: 44px; height: 44px; }
  .pbtn-play { width: 56px; height: 56px; }
  .gm-tabs { gap: 12px; padding: 4px 4px 0; }
  .gm-tab { font-size: 12px; }
  .gm-stats { grid-template-columns: minmax(0, 1fr); }
  .gm-chars { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .bg-moon { width: 80px; height: 80px; right: 6vw; }
  .enter-logo { font-size: 24px; }
}

@media (max-width: 360px) {
  .pbtn { width: 40px; height: 40px; }
  .px-controls { gap: 6px; }
}

/* touch devices change volume with hardware buttons (iOS ignores audio.volume) */
@media (hover: none), (pointer: coarse) {
  .px-vol .vol-range { display: none; }
}

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