/* ============================================
   ZENO · Bloodmoon Anime
   Mobile-first responsive · Netlify-ready
   ============================================ */

:root {
  --bg-0: #06010205;
  --bg-1: #0a0203;
  --bg-2: #16060a;
  --paper: rgba(20, 4, 7, 0.86);
  --paper-2: rgba(8, 2, 4, 0.94);
  --line: #3a0a12;
  --line-2: #5e0a14;
  --blood: #b81b2a;
  --blood-2: #ff3a4e;
  --blood-soft: #d23a4a;
  --gold: #d8b074;
  --ink: #ecd6d9;
  --ink-2: #c8a0a8;
  --ink-3: #9c7c80;
  --ink-4: #5e0a14;
  --shadow-1: 0 30px 80px rgba(120, 5, 15, 0.45);
  --glow-1: 0 0 18px rgba(184, 27, 42, 0.55);
  --glow-2: 0 0 38px rgba(220, 30, 40, 0.5);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg-1);
  color: var(--ink);
  font-family: 'Cormorant Garamond', 'Noto Serif JP', serif;
  font-size: 16px;
  line-height: 1.45;
  min-height: 100dvh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Layered red atmosphere */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(900px 600px at 50% -10%, rgba(180, 20, 30, 0.42), transparent 60%),
    radial-gradient(1200px 800px at 50% 110%, rgba(60, 5, 10, 0.7), transparent 70%),
    radial-gradient(600px 400px at 100% 30%, rgba(110, 12, 22, 0.35), transparent 70%),
    linear-gradient(180deg, #0a0203 0%, #06010180 60%, #0a0203 100%);
  z-index: -3;
}
/* Film grain noise */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .15  0 0 0 0 0  0 0 0 0 0  0 0 0 .22 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  pointer-events: none;
  mix-blend-mode: overlay;
  z-index: -2;
  opacity: 0.5;
}

/* Bloodmoon */
.moon {
  position: fixed;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: clamp(220px, 40vw, 360px);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 35%, #ff8088 0%, #d2202d 40%, #a8131f 60%, #660810 100%);
  box-shadow:
    0 0 80px rgba(220, 30, 40, 0.45),
    0 0 180px rgba(220, 30, 40, 0.25),
    inset 0 0 40px rgba(0, 0, 0, 0.35);
  z-index: -1;
  opacity: 0.85;
  animation: moonPulse 6s ease-in-out infinite;
}
.moon::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle at 70% 60%, rgba(0, 0, 0, 0.32), transparent 38%),
    radial-gradient(circle at 25% 70%, rgba(0, 0, 0, 0.28), transparent 32%),
    radial-gradient(circle at 60% 25%, rgba(0, 0, 0, 0.18), transparent 22%);
}
@keyframes moonPulse {
  0%, 100% { box-shadow: 0 0 80px rgba(220, 30, 40, 0.45), 0 0 180px rgba(220, 30, 40, 0.25), inset 0 0 40px rgba(0, 0, 0, 0.35); }
  50%      { box-shadow: 0 0 110px rgba(255, 60, 70, 0.6),  0 0 230px rgba(220, 30, 40, 0.35), inset 0 0 40px rgba(0, 0, 0, 0.35); }
}

/* FX Background — petals + bats */
.fx-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}
.petal {
  position: absolute;
  width: 14px;
  height: 14px;
  color: rgba(220, 30, 40, 0.55);
  filter: drop-shadow(0 0 4px rgba(220, 30, 40, 0.35));
  animation: petalFall linear infinite, petalSway ease-in-out infinite alternate;
  pointer-events: none;
}
.bat {
  position: absolute;
  width: 22px;
  height: 22px;
  color: rgba(8, 2, 4, 0.92);
  filter: drop-shadow(0 0 4px rgba(180, 20, 30, 0.4));
  animation: batFlap 0.55s steps(2) infinite, batDrift linear infinite;
  pointer-events: none;
  opacity: 0.7;
}
@keyframes petalFall  { 0% { transform: translateY(-15vh) rotate(0); } 100% { transform: translateY(115vh) rotate(540deg); } }
@keyframes petalSway  { 0% { margin-left: 0; } 100% { margin-left: 24px; } }
@keyframes batFlap    { 50% { transform: scaleY(0.6) scaleX(1.05); } }
@keyframes batDrift   { 0% { transform: translateX(-15vw) translateY(0); } 100% { transform: translateX(115vw) translateY(-30px); } }

/* Custom cursor (desktop only) */
.cursor-dot, .cursor-ring {
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  top: 0; left: 0;
  transform: translate(-100px, -100px);
  display: none;
}
.cursor-dot {
  width: 6px; height: 6px;
  background: var(--blood-2);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--blood);
  transition: transform 0.05s linear;
}
.cursor-ring {
  width: 30px; height: 30px;
  border: 1.5px solid rgba(220, 30, 40, 0.6);
  border-radius: 50%;
  transition: transform 0.18s ease-out, width 0.18s, height 0.18s, border-color 0.18s;
}
.cursor-ring.hover {
  width: 50px; height: 50px;
  border-color: var(--blood-2);
  background: rgba(220, 30, 40, 0.08);
}
@media (hover: hover) and (pointer: fine) {
  .cursor-dot, .cursor-ring { display: block; }
  body { cursor: none; }
  a, button, input { cursor: none; }
}

/* ============================================
   Splash / Enter screen
   ============================================ */
.splash {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at center, rgba(20, 4, 7, 0.85), rgba(6, 1, 2, 0.97));
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  cursor: pointer;
  animation: splashIn 0.4s ease-out;
  padding: 24px;
}
.splash.fade {
  animation: splashOut 0.55s ease-in forwards;
  pointer-events: none;
}
@keyframes splashIn  { from { opacity: 0; } to { opacity: 1; } }
@keyframes splashOut { from { opacity: 1; transform: scale(1); } to { opacity: 0; transform: scale(1.05); } }

.splash-inner {
  text-align: center;
  position: relative;
  padding: 40px 30px;
}
.splash-kanji {
  font-family: 'Noto Serif JP', serif;
  font-weight: 900;
  font-size: clamp(110px, 22vw, 220px);
  color: var(--blood);
  line-height: 1;
  margin-bottom: 8px;
  text-shadow: 0 0 30px rgba(220, 30, 40, 0.8), 0 0 80px rgba(220, 30, 40, 0.4);
  animation: kanjiBreathe 3s ease-in-out infinite;
  letter-spacing: -0.04em;
}
@keyframes kanjiBreathe {
  0%, 100% { text-shadow: 0 0 30px rgba(220, 30, 40, 0.8), 0 0 80px rgba(220, 30, 40, 0.4); transform: scale(1); }
  50%      { text-shadow: 0 0 50px rgba(255, 60, 70, 0.95), 0 0 130px rgba(220, 30, 40, 0.6); transform: scale(1.04); }
}
.splash-skull {
  display: none;
}
.splash-title {
  font-family: 'Cinzel Decorative', serif;
  font-weight: 700;
  font-size: clamp(22px, 4.5vw, 32px);
  color: var(--ink);
  letter-spacing: 2px;
  margin-bottom: 18px;
  text-shadow: 0 0 16px rgba(220, 30, 40, 0.4);
}
.splash-title span { color: var(--blood); }
.splash-cta {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: clamp(13px, 2.5vw, 16px);
  letter-spacing: 4px;
  color: var(--ink-2);
  text-transform: uppercase;
  margin-bottom: 14px;
  animation: pulseFade 1.7s ease-in-out infinite;
}
.splash-cta .dash {
  width: 30px;
  height: 1px;
  background: var(--blood);
  display: inline-block;
}
@keyframes pulseFade {
  0%, 100% { opacity: 0.55; }
  50%      { opacity: 1; }
}
.splash-hint {
  font-style: italic;
  color: var(--ink-3);
  font-size: 12px;
  letter-spacing: 1px;
}

/* ============================================
   Main page
   ============================================ */
.page {
  min-height: 100dvh;
  display: grid;
  place-items: start center;
  padding: 30px 16px 110px;
  opacity: 0;
  transition: opacity 0.6s ease 0.1s;
}
.page.show { opacity: 1; }
.page[aria-hidden="true"] { pointer-events: none; }
.page.show[aria-hidden="false"] { pointer-events: auto; }

/* Card container */
.card {
  width: 100%;
  max-width: 580px;
  position: relative;
  background:
    linear-gradient(180deg, rgba(20, 3, 6, 0.94) 0%, rgba(10, 2, 4, 0.96) 100%);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-1), inset 0 1px 0 rgba(180, 40, 50, 0.18);
  padding: 26px 22px 22px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transform: translateY(10px);
  transition: transform 0.6s ease 0.15s;
}
.page.show .card { transform: translateY(0); }

/* Ornate corners */
.corn {
  position: absolute;
  width: 26px;
  height: 26px;
  border: 1.5px solid var(--blood);
  pointer-events: none;
}
.corn.tl { top: 8px; left: 8px;  border-right: none; border-bottom: none; }
.corn.tr { top: 8px; right: 8px; border-left:  none; border-bottom: none; }
.corn.bl { bottom: 8px; left: 8px;  border-right: none; border-top: none; }
.corn.br { bottom: 8px; right: 8px; border-left:  none; border-top: none; }

/* Crest header */
.crest {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: 'Cinzel Decorative', serif;
  color: var(--blood);
  font-size: 11px;
  letter-spacing: 6px;
  margin-bottom: 14px;
}
.crest .orn { color: var(--ink-4); font-size: 14px; }
.crest .crest-text { font-family: 'Noto Serif JP', 'Cinzel Decorative', serif; font-weight: 700; }

/* Banner */
.banner {
  position: relative;
  width: calc(100% + 44px);
  margin: 0 -22px 0 -22px;
  height: 150px;
  overflow: hidden;
  border-top: 1px solid var(--line-2);
  border-bottom: 1px solid var(--line-2);
  background: #1a060a;
}
.banner-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: hue-rotate(-30deg) saturate(1.4) contrast(1.1) brightness(0.85);
  display: block;
}
.banner-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 2, 4, 0.25) 0%, rgba(10, 2, 4, 0.45) 60%, rgba(10, 2, 4, 0.95) 100%),
    radial-gradient(circle at 50% 50%, rgba(184, 27, 42, 0.18), transparent 70%);
  pointer-events: none;
}
.banner-vignette {
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 80px rgba(0, 0, 0, 0.7);
  pointer-events: none;
}

/* Avatar */
.avatar-wrap {
  position: relative;
  width: 148px;
  height: 148px;
  margin: -74px auto 8px;
  z-index: 2;
}
.avatar-glow {
  position: absolute;
  inset: -16px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(220, 30, 40, 0.55), rgba(220, 30, 40, 0) 70%);
  filter: blur(12px);
  z-index: -1;
}
.avatar-ring {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, var(--ink-4), var(--blood), var(--blood-2), var(--ink-4), var(--blood), var(--ink-4));
  animation: ringSpin 8s linear infinite;
  filter: blur(0.5px);
  z-index: -1;
}
@keyframes ringSpin { to { transform: rotate(360deg); } }
.avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #0a0203;
  box-shadow:
    inset 0 0 0 1px rgba(220, 30, 40, 0.4),
    0 0 22px rgba(220, 30, 40, 0.45);
  filter: contrast(1.08) brightness(0.95) saturate(0.95);
  display: block;
}
.avatar-status {
  position: absolute;
  right: 8px;
  bottom: 8px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ff3a4e;
  border: 3px solid #0a0203;
  box-shadow: 0 0 10px rgba(255, 60, 70, 0.8);
}
.avatar-status::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: rgba(255, 60, 70, 0.4);
  animation: dotPing 1.6s ease-out infinite;
  z-index: -1;
}
@keyframes dotPing {
  0% { transform: scale(0.7); opacity: 0.7; }
  100% { transform: scale(1.6); opacity: 0; }
}
.avatar-drip {
  position: absolute;
  left: 50%;
  top: -10px;
  transform: translateX(-50%);
  width: 8px;
  height: 8px;
  background: radial-gradient(circle, #ff3a4e, #b81b2a 70%);
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  box-shadow: 0 0 12px var(--blood);
  animation: dripDown 3.2s ease-in-out infinite;
}
@keyframes dripDown {
  0%, 60%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.85; }
  80%           { transform: translateX(-50%) translateY(14px); opacity: 0.3; }
}

/* Identity */
.identity {
  text-align: center;
  margin-top: 4px;
}
.name {
  margin: 6px 0 6px;
  font-family: 'Cinzel Decorative', serif;
  font-weight: 900;
  font-size: clamp(26px, 6.4vw, 38px);
  color: var(--ink);
  letter-spacing: 1.5px;
  line-height: 1.1;
  text-shadow: 0 0 18px rgba(220, 30, 40, 0.4), 0 3px 0 #2a040a;
}
.name .accent {
  color: var(--blood);
  text-shadow: 0 0 14px rgba(220, 30, 40, 0.6);
}
.name .skull-mini {
  vertical-align: -2px;
  color: var(--blood);
  margin-left: 6px;
  filter: drop-shadow(0 0 6px var(--blood));
}
.meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  font-style: italic;
  font-size: clamp(13px, 3.4vw, 16px);
  color: var(--ink-2);
}
.meta .username { color: var(--ink); font-weight: 500; font-style: normal; letter-spacing: 0.3px; }
.meta .sep { color: var(--ink-4); }

/* Quote */
.quote {
  margin: 18px auto 0;
  text-align: center;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: clamp(15px, 3.6vw, 18px);
  color: var(--ink);
  padding: 12px 18px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  position: relative;
}
.quote::before, .quote::after {
  font-family: 'Cinzel Decorative', serif;
  color: var(--blood);
  font-size: 28px;
  line-height: 0;
  vertical-align: -10px;
  margin: 0 6px;
}
.quote::before { content: '"'; }
.quote::after  { content: '"'; }
.quote .dots { color: var(--blood); }

/* Bio + stats */
.info {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 14px;
  margin-top: 18px;
}
.bio {
  padding: 14px 16px;
  background: rgba(58, 10, 18, 0.18);
  border: 1px solid var(--line);
  position: relative;
}
.bio::before, .bio::after {
  content: '';
  position: absolute;
  width: 14px; height: 14px;
  border: 1px solid var(--blood);
}
.bio::before { top: -1px; left: -1px; border-right: none; border-bottom: none; }
.bio::after  { bottom: -1px; right: -1px; border-left: none; border-top: none; }
.bio-label {
  display: block;
  font-family: 'Cinzel Decorative', serif;
  color: var(--blood);
  font-size: 10px;
  letter-spacing: 4px;
  margin-bottom: 4px;
}
.bio p {
  margin: 0;
  font-style: italic;
  color: var(--ink);
  font-size: 15px;
}

.stats {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  font-style: italic;
  color: var(--ink-3);
  font-size: 13px;
}
.stat {
  display: flex;
  align-items: center;
  gap: 8px;
}
.stat .ic { color: var(--blood); flex-shrink: 0; }
.stat b { color: var(--ink); font-style: normal; font-family: 'Cinzel Decorative', serif; letter-spacing: 1px; }

/* ============================================
   Links
   ============================================ */
.links {
  margin-top: 20px;
  display: grid;
  gap: 9px;
}

.lk {
  position: relative;
  display: grid;
  grid-template-columns: 44px 1fr 28px;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  background: linear-gradient(135deg, rgba(58, 10, 18, 0.45), rgba(20, 4, 8, 0.55));
  border: 1px solid var(--line);
  text-decoration: none;
  color: var(--ink);
  font-family: 'Cinzel Decorative', serif;
  font-size: 14px;
  letter-spacing: 3px;
  font-weight: 700;
  overflow: hidden;
  transition: transform 0.18s, border-color 0.25s, background 0.25s, letter-spacing 0.25s, box-shadow 0.25s;
}
.lk::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--blood);
  box-shadow: 0 0 12px var(--blood);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.3s ease;
}
.lk::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 0%, rgba(255, 60, 70, 0.18) 50%, transparent 100%);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
  pointer-events: none;
}
.lk:hover, .lk:focus-visible {
  border-color: var(--blood);
  background: linear-gradient(135deg, rgba(184, 27, 42, 0.25), rgba(58, 10, 18, 0.45));
  box-shadow: 0 0 22px rgba(220, 30, 40, 0.25), inset 0 0 24px rgba(184, 27, 42, 0.12);
  transform: translateX(2px);
  outline: none;
  letter-spacing: 3.4px;
}
.lk:hover::before, .lk:focus-visible::before { transform: scaleY(1); transform-origin: top; }
.lk:hover::after { transform: translateX(100%); }

.lk-ic {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  background: rgba(10, 2, 4, 0.6);
  border: 1px solid var(--line);
  color: var(--blood);
  transition: color 0.25s, border-color 0.25s, background 0.25s, transform 0.25s;
}
.lk:hover .lk-ic, .lk:focus-visible .lk-ic {
  color: var(--blood-2);
  border-color: var(--blood);
  background: rgba(184, 27, 42, 0.22);
  transform: rotate(-4deg);
}
.lk-name {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lk-arrow {
  display: grid;
  place-items: center;
  color: var(--ink-4);
  transition: color 0.25s, transform 0.25s;
}
.lk:hover .lk-arrow, .lk:focus-visible .lk-arrow {
  color: var(--blood-2);
  transform: translateX(4px);
}

/* Per-link accent tints */
.lk-tg   .lk-ic { color: #4aa6e8; }
.lk-tg:hover   .lk-ic { color: #6ec5ff; }
.lk-dc   .lk-ic { color: #8a92ff; }
.lk-dc:hover   .lk-ic { color: #b1b9ff; }
.lk-zen  .lk-ic { color: var(--blood); }
.lk-zen:hover  .lk-ic { color: var(--blood-2); }
.lk-faah .lk-ic { color: #f4c95d; }
.lk-faah:hover .lk-ic { color: #ffe28a; }
.lk-rail .lk-ic { color: #d8b074; }
.lk-rail:hover .lk-ic { color: #f0cfa0; }

/* Footer */
.foot {
  margin-top: 22px;
  text-align: center;
  font-family: 'Cinzel Decorative', serif;
  font-size: 9px;
  color: var(--ink-4);
  letter-spacing: 5px;
}
.foot-orn { display: block; color: var(--blood); font-size: 14px; margin-bottom: 4px; }

/* ============================================
   Music player
   ============================================ */
.player {
  position: fixed;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%) translateY(80px);
  width: min(580px, calc(100% - 28px));
  background: rgba(8, 2, 4, 0.92);
  border: 1px solid var(--line);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  z-index: 50;
  box-shadow: var(--shadow-1);
  opacity: 0;
  transition: transform 0.5s ease 0.4s, opacity 0.5s ease 0.4s;
}
.player.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}
.player::before, .player::after {
  content: '';
  position: absolute;
  width: 12px; height: 12px;
  border: 1px solid var(--blood);
}
.player::before { top: -1px; left: -1px; border-right: none; border-bottom: none; }
.player::after  { bottom: -1px; right: -1px; border-left: none; border-top: none; }
.p-btn {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  background: var(--blood);
  color: #fff;
  border: none;
  cursor: pointer;
  transition: transform 0.15s, background 0.15s, box-shadow 0.15s;
  box-shadow: var(--glow-1);
}
.p-btn:hover { transform: scale(1.06); background: var(--blood-2); box-shadow: var(--glow-2); }
.p-btn .ic { fill: #fff; color: #fff; }
.p-info { min-width: 0; }
.p-title {
  font-weight: 600;
  color: var(--ink);
  font-size: 12px;
  letter-spacing: 0.3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 4px;
}
.p-progress {
  display: flex;
  align-items: center;
  gap: 8px;
}
.p-bar {
  flex: 1;
  height: 4px;
  background: rgba(58, 10, 18, 0.6);
  cursor: pointer;
  position: relative;
  border-radius: 2px;
  overflow: hidden;
}
.p-fill {
  position: absolute;
  inset: 0;
  width: 0%;
  background: linear-gradient(90deg, var(--blood), var(--blood-2));
  box-shadow: 0 0 6px rgba(220, 30, 40, 0.6);
}
.p-time {
  font-variant-numeric: tabular-nums;
  font-size: 10px;
  color: var(--ink-3);
  letter-spacing: 0.3px;
}
.p-vol {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--blood);
}
.p-vol input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 70px;
  height: 4px;
  background: rgba(58, 10, 18, 0.6);
  outline: none;
  border-radius: 2px;
  cursor: pointer;
}
.p-vol input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px; height: 12px;
  background: var(--blood);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--blood);
  cursor: pointer;
}
.p-vol input[type="range"]::-moz-range-thumb {
  width: 12px; height: 12px;
  background: var(--blood);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--blood);
  cursor: pointer;
  border: none;
}

/* Inline SVG icon helper */
.ic {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
  fill: currentColor;
}
.ic[viewBox] { fill: currentColor; }
svg.ic use { color: inherit; }

/* ============================================
   Responsive — Mobile (<= 520px)
   ============================================ */
@media (max-width: 520px) {
  .page { padding: 18px 12px 130px; }
  .card { padding: 22px 18px 18px; max-width: 100%; }
  .crest { font-size: 10px; letter-spacing: 4px; }
  .banner { height: 120px; width: calc(100% + 36px); margin: 0 -18px; }
  .avatar-wrap { width: 130px; height: 130px; margin-top: -65px; }
  .info { grid-template-columns: 1fr; gap: 10px; }
  .stats { flex-direction: row; justify-content: space-around; }
  .lk { grid-template-columns: 38px 1fr 22px; gap: 10px; padding: 12px 14px; font-size: 12px; letter-spacing: 2px; }
  .lk:hover, .lk:focus-visible { letter-spacing: 2.4px; }
  .lk-ic { width: 32px; height: 32px; }
  .lk-ic .ic { width: 18px; height: 18px; }
  .player { bottom: 8px; width: calc(100% - 16px); padding: 8px 10px; gap: 8px; }
  .p-btn { width: 34px; height: 34px; }
  .p-vol input[type="range"] { width: 50px; }
  .p-title { font-size: 11px; }
  .moon { top: -40px; width: clamp(180px, 60vw, 260px); }
}
@media (max-width: 360px) {
  .lk-name { font-size: 11px; letter-spacing: 1.5px; }
  .name { letter-spacing: 1px; }
}

/* Wide desktop fine-tune */
@media (min-width: 768px) {
  .page { padding: 50px 24px 120px; }
  .card { padding: 30px 28px 26px; }
  .banner { height: 170px; width: calc(100% + 56px); margin: 0 -28px; }
  .avatar-wrap { width: 160px; height: 160px; margin-top: -80px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .moon, .splash-kanji, .avatar-ring, .avatar-status::after, .avatar-drip { animation: none; }
}
