/* ————————————————————————————————
   kur0k4g3 — blood & static
———————————————————————————————— */

:root {
  --blood-deep: #1c0000;
  --blood: #8b0000;
  --blood-bright: #ff1a1a;
  --bone: #d9ccc7;
  --ash: #8e8380;
  --bgx: 0px;
  --font-blood: "Nosifer", "Impact", serif;
  --font-creep: "Creepster", "Impact", cursive;
  --font-mono: "Share Tech Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }

html, body { height: 100%; }

html {
  background: #000;
  scrollbar-color: #4a0000 #080000;
}

body {
  margin: 0;
  background: #000;
  color: var(--bone);
  font-family: var(--font-mono);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior: none;
}

body.locked { overflow: hidden; }

.svg-defs {
  position: absolute;
  width: 0; height: 0;
  overflow: hidden;
}

/* ————— world / background ————— */

.world {
  position: fixed;
  inset: 0;
  overflow: hidden;
  background: #040000;
  isolation: isolate;
}

.bg-layer {
  position: absolute;
  inset: -5%;
  z-index: 0;
  transform: translate3d(0, calc(var(--scroll, 0px) * -0.04), 0);
  transition: transform 160ms linear;
  will-change: transform;
}

.bg-base,
.bg-ghost,
.slice {
  background-image: url("../assets/redgirl.png");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.bg-base {
  position: absolute;
  inset: 0;
  filter: brightness(0.52) saturate(1.18) contrast(1.22);
  animation: bgDrift 48s ease-in-out infinite alternate;
  will-change: transform;
}

@keyframes bgDrift {
  from { transform: scale(1.02) translate3d(-1%, -1%, 0); }
  to   { transform: scale(1.12) translate3d(1%, 2%, 0); }
}

.bg-ghost {
  position: absolute;
  inset: 0;
  opacity: 0;
  mix-blend-mode: screen;
  pointer-events: none;
  transition: transform 70ms linear, opacity 110ms linear;
  will-change: transform, opacity;
}

body.beat .bg-ghost--r {
  opacity: 0.42;
  filter: saturate(4) hue-rotate(-22deg) contrast(1.6) brightness(1.1);
  transform: translate3d(var(--bgx), calc(var(--bgx) * 0.35), 0) scale(1.035);
}

body.beat .bg-ghost--c {
  opacity: 0.32;
  filter: grayscale(1) contrast(2.6) brightness(1.2);
  transform: translate3d(calc(var(--bgx) * -0.9), 0, 0) scale(1.05);
}

.bg-slices {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.slice {
  position: absolute;
  inset: 0;
  opacity: 0;
  mix-blend-mode: screen;
  will-change: transform, opacity, clip-path;
}

.bg-tint {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(120% 80% at 50% 8%, rgba(140, 0, 0, 0.16), transparent 62%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.82) 0%, rgba(18, 0, 0, 0.35) 38%, rgba(0, 0, 0, 0.72) 100%);
}

.blood-rain {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.55;
  mix-blend-mode: screen;
}

.grain {
  position: absolute;
  inset: -20%;
  z-index: 6;
  pointer-events: none;
  opacity: 0.16;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grainShift 0.9s steps(3) infinite;
}

@keyframes grainShift {
  0%   { transform: translate3d(0, 0, 0); }
  33%  { transform: translate3d(-2%, 1.5%, 0); }
  66%  { transform: translate3d(1.5%, -2%, 0); }
  100% { transform: translate3d(0, 0, 0); }
}

.scanlines {
  position: absolute;
  inset: 0;
  z-index: 6;
  pointer-events: none;
  opacity: 0.4;
  background: repeating-linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.55) 0px,
    rgba(0, 0, 0, 0.55) 1px,
    transparent 1px,
    transparent 3px
  );
  animation: scanScroll 12s linear infinite;
}

@keyframes scanScroll {
  from { background-position: 0 0; }
  to   { background-position: 0 120px; }
}

.vignette {
  position: absolute;
  inset: 0;
  z-index: 7;
  pointer-events: none;
  background:
    radial-gradient(120% 90% at 50% 45%, transparent 30%, rgba(28, 0, 0, 0.55) 72%, #000 100%),
    radial-gradient(60% 40% at 50% 100%, rgba(120, 0, 0, 0.25), transparent 70%);
}

.beat-flash {
  position: absolute;
  inset: 0;
  z-index: 8;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(circle at 50% 45%, rgba(255, 20, 20, 0.35), rgba(120, 0, 0, 0.14) 45%, transparent 75%);
  mix-blend-mode: screen;
  transition: opacity 200ms ease-out;
}

body.beat .beat-flash { opacity: 1; transition-duration: 30ms; }

.lightning {
  position: absolute;
  inset: 0;
  z-index: 6;
  pointer-events: none;
  overflow: hidden;
  mix-blend-mode: screen;
}

.lightning svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  opacity: 0;
}

.lightning .bolt-glow {
  fill: none;
  stroke: rgba(255, 30, 30, 0.55);
  stroke-width: 9;
  stroke-linecap: round;
  filter: blur(4px);
}

.lightning .bolt-core {
  fill: none;
  stroke: #ffdcdc;
  stroke-width: 1.6;
  stroke-linecap: round;
  filter: drop-shadow(0 0 5px #ff1a1a) drop-shadow(0 0 16px rgba(255, 0, 0, 0.9));
}

.lightning svg.bolt--huge .bolt-glow {
  filter: blur(11px);
  stroke-opacity: 0.8;
}

.lightning svg.bolt--huge .bolt-core {
  filter: drop-shadow(0 0 10px #ff1a1a) drop-shadow(0 0 42px rgba(255, 0, 0, 1));
}

.lightning .bolt-branch {
  fill: none;
  stroke: rgba(255, 70, 70, 0.75);
  stroke-width: 1;
  stroke-linecap: round;
  filter: drop-shadow(0 0 6px rgba(255, 0, 0, 0.8));
}

.lightning-glow {
  position: absolute;
  inset: 0;
  opacity: 0;
  background: radial-gradient(circle at 50% 35%, rgba(255, 40, 40, 0.55), rgba(130, 0, 0, 0.24) 42%, transparent 74%);
}

.splatters {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  overflow: hidden;
}

.splat {
  position: absolute;
  display: block;
  pointer-events: none;
  filter: drop-shadow(0 0 6px rgba(110, 0, 0, 0.45));
  animation: splatIn 520ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes splatIn {
  from { opacity: 0; transform: scale(0.2) rotate(var(--r, 0deg)); }
  to   { opacity: var(--o, 0.94); transform: scale(1) rotate(var(--r, 0deg)); }
}

/* ————— bio ————— */

.bio {
  position: absolute;
  inset: 0;
  z-index: 5;
  overflow-x: hidden;
  overflow-y: hidden;
  overscroll-behavior: contain;
  opacity: 0;
  transform: scale(0.96);
  filter: blur(12px);
  transition: opacity 1.6s ease, transform 1.8s cubic-bezier(0.16, 1, 0.3, 1), filter 1.5s ease;
  pointer-events: none;
}

body.unlocked .bio {
  opacity: 1;
  transform: none;
  filter: none;
  pointer-events: auto;
  overflow-y: auto;
}

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(0.45rem, 1.5vh, 1rem);
  min-height: 100%;
  padding: clamp(3rem, 10vh, 6rem) clamp(1rem, 4vw, 2.5rem) clamp(4.5rem, 10vh, 6.5rem);
  text-align: center;
}

.scroll-reveal {
  opacity: 0;
  transform: translate3d(0, 34px, 0) scale(0.985);
  filter: blur(10px);
  transition:
    opacity 900ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 900ms cubic-bezier(0.16, 1, 0.3, 1),
    filter 700ms ease;
  transition-delay: var(--reveal-delay, 0s);
  will-change: opacity, transform, filter;
}

.scroll-reveal.is-visible {
  opacity: 1;
  transform: none;
  filter: none;
}

.scroll-reveal.scroll-reveal--pill {
  transform: translate3d(0, 16px, 0) scale(0.86);
  filter: blur(6px);
  transition-duration: 620ms, 620ms, 480ms;
}

.scroll-reveal.scroll-reveal--text {
  transform: translate3d(0, 18px, 0);
  filter: blur(6px);
  transition-duration: 760ms, 760ms, 560ms;
}

.more {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  padding: clamp(1.5rem, 5vh, 3rem) clamp(1rem, 4vw, 2.5rem) clamp(3rem, 8vh, 5rem);
}

body.unlocked .hero > * {
  animation: boltIn 950ms cubic-bezier(0.16, 1, 0.3, 1) backwards;
}

body.unlocked .more > * {
  animation: riseIn 1.3s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}

@keyframes boltIn {
  0%   { opacity: 0; transform: translate3d(0, 16px, 0) scale(1.03); filter: blur(10px) brightness(2.2) saturate(2.4); }
  10%  { opacity: 1; transform: translate3d(0, -3px, 0) scale(1.012); filter: blur(0) brightness(2.6) saturate(2.6); }
  18%  { opacity: 0.28; filter: brightness(1.6) saturate(2.2); }
  28%  { opacity: 1; filter: brightness(1.9) saturate(2); }
  46%  { opacity: 0.55; filter: brightness(1.2) saturate(1.4); }
  60%  { opacity: 1; filter: brightness(1.05); }
  100% { opacity: 1; transform: none; filter: none; }
}

body.unlocked .hero > :nth-child(1) { animation-delay: 0.1s; }
body.unlocked .hero > :nth-child(2) { animation-delay: 0.28s; }
body.unlocked .hero > :nth-child(3) { animation-delay: 0.4s; }
body.unlocked .hero > :nth-child(4) { animation-delay: 0.52s; }
body.unlocked .hero > :nth-child(5) { animation-delay: 0.66s; }
body.unlocked .hero > :nth-child(6) { animation-delay: 0.8s; }
body.unlocked .more > :nth-child(1) { animation-delay: 0.35s; }
body.unlocked .more > :nth-child(2) { animation-delay: 0.5s; }
body.unlocked .more > :nth-child(3) { animation-delay: 0.65s; }

.bio::-webkit-scrollbar { width: 6px; }
.bio::-webkit-scrollbar-track { background: rgba(10, 0, 0, 0.6); }
.bio::-webkit-scrollbar-thumb { background: #5e0000; border-radius: 3px; }
.bio::-webkit-scrollbar-thumb:hover { background: #a00000; }
.bio { scrollbar-width: thin; scrollbar-color: #5e0000 #0a0000; }

@keyframes riseIn {
  from { opacity: 0; transform: translateY(26px) scale(0.98); }
  to   { opacity: 1; transform: none; }
}

/* ————— avatar ————— */

.avatar-block {
  position: relative;
  display: grid;
  place-items: center;
  margin-bottom: clamp(0.9rem, 2.6vh, 1.9rem);
}

.avatar-wrap {
  position: relative;
  width: clamp(148px, 26vh, 232px);
  aspect-ratio: 1;
  transition: transform 90ms ease-out, filter 90ms ease-out;
}

body.beat .avatar-wrap {
  transform: scale(1.035);
  filter: brightness(1.22) contrast(1.08);
}

.avatar-ring {
  position: absolute;
  inset: -17px;
  border-radius: 50%;
  pointer-events: none;
  border: 5px dashed rgba(243, 236, 232, 0.92);
  box-shadow:
    0 0 22px rgba(255, 0, 0, 0.28),
    inset 0 0 20px rgba(255, 0, 0, 0.2),
    0 0 0 1px rgba(20, 0, 0, 0.8);
  animation: spin 90s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.avatar-frame {
  position: absolute;
  inset: 0;
  display: block;
  border-radius: 50%;
  overflow: hidden;
  background: #0a0000;
  box-shadow:
    0 0 0 1px rgba(190, 20, 20, 0.75),
    0 0 0 4px rgba(30, 0, 0, 0.9),
    0 0 34px 4px rgba(210, 0, 0, 0.35),
    inset 0 0 40px 12px rgba(0, 0, 0, 0.9);
  isolation: isolate;
}

.avatar-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 34%;
  filter: grayscale(1) contrast(1.22) brightness(0.92) brightness(1.02);
  transform: scale(1.06);
}

.avatar-img--glitch {
  opacity: 0;
  mix-blend-mode: screen;
  filter: grayscale(1) contrast(2.2) hue-rotate(-40deg) brightness(1.3);
  transition: opacity 100ms linear, transform 100ms linear;
}

body.beat .avatar-img--glitch {
  opacity: 0.45;
  transform: translate3d(calc(var(--bgx) * 0.3), 0, 0) scale(1.1);
}

.avatar-blood {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(110% 60% at 50% -12%, rgba(125, 0, 0, 0.72), rgba(60, 0, 0, 0.1) 62%, transparent 78%),
    radial-gradient(34% 28% at 84% 76%, rgba(150, 0, 0, 0.6), transparent 72%),
    radial-gradient(28% 36% at 16% 64%, rgba(110, 0, 0, 0.5), transparent 74%),
    radial-gradient(22% 18% at 62% 30%, rgba(160, 0, 0, 0.35), transparent 70%);
  mix-blend-mode: multiply;
  animation: bloodBreathe 7s ease-in-out infinite alternate;
}

@keyframes bloodBreathe {
  from { opacity: 0.82; }
  to   { opacity: 1; }
}

.avatar-drips {
  position: absolute;
  left: 6%;
  right: 6%;
  top: 4%;
  z-index: 3;
  height: 58%;
  pointer-events: none;
}

/* dripping blood strips */
.drips {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.drip {
  position: absolute;
  top: 0;
  left: var(--x, 50%);
  width: var(--w, 5px);
  height: var(--h, 22px);
  border-radius: 0 0 48% 52%;
  background: linear-gradient(180deg, #2a0000 0%, #7d0000 55%, #b30000 100%);
  box-shadow: 0 0 9px rgba(190, 0, 0, 0.45);
  transform-origin: top center;
  animation: dripSway var(--dur, 6s) ease-in-out infinite alternate;
  animation-delay: var(--delay, 0s);
  opacity: var(--o, 0.9);
}

.drip::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -2px;
  width: calc(var(--w, 5px) * 1.9);
  height: calc(var(--w, 5px) * 2.1);
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle at 34% 28%, #d41414, #7d0000 62%, #430000 100%);
  box-shadow: 0 0 8px rgba(200, 0, 0, 0.5);
}

@keyframes dripSway {
  from { transform: scaleY(0.82) translateX(-0.5px); }
  to   { transform: scaleY(1.12) translateX(0.5px); }
}

/* ————— name ————— */

.name-line {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0.3rem;
  max-width: 90vw;
  margin-top: 0.4rem;
}

.online {
  width: clamp(10px, 1.5vw, 15px);
  height: clamp(10px, 1.5vw, 15px);
  margin-top: 0.12em;
  flex: none;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ff7a6a, #ee0a0a 55%, #7e0000 100%);
  box-shadow: 0 0 14px rgba(255, 0, 0, 0.9), 0 0 30px rgba(200, 0, 0, 0.5);
  animation: onlinePulse 2.2s ease-in-out infinite;
}

@keyframes onlinePulse {
  0%, 100% { transform: scale(1); opacity: 0.95; }
  50%      { transform: scale(0.86); opacity: 0.7; }
}

.name {
  position: relative;
  margin: 0;
  font-family: var(--font-blood);
  font-weight: 400;
  font-size: clamp(2.3rem, 8.4vw, 5rem);
  line-height: 0.95;
  letter-spacing: 0.015em;
  text-transform: lowercase;
  background: linear-gradient(180deg, #ff7a68 0%, #ec1515 30%, #b30000 62%, #5c0000 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  filter:
    drop-shadow(0 0 16px rgba(255, 0, 0, 0.55))
    drop-shadow(0 0 2px rgba(255, 50, 40, 0.8))
    drop-shadow(0 5px 3px rgba(40, 0, 0, 0.9));
  transition: filter 90ms linear, transform 90ms linear;
}

body.beat .name {
  filter:
    drop-shadow(0 0 22px rgba(255, 0, 0, 0.8))
    drop-shadow(0 0 3px rgba(255, 60, 60, 0.9))
    drop-shadow(0 6px 3px rgba(40, 0, 0, 0.9));
}

.name::before,
.name::after {
  content: attr(data-text);
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  background: none;
  -webkit-text-fill-color: currentColor;
  opacity: 0;
  pointer-events: none;
  filter: none;
  transition: opacity 80ms linear, transform 80ms linear;
}

.name::before { color: #ff9a8a; clip-path: inset(4% 0 58% 0); }
.name::after  { color: #7de8ff; clip-path: inset(62% 0 6% 0); }

body.beat .name::before { opacity: 0.8; transform: translate3d(-5px, -1px, 0); }
body.beat .name::after  { opacity: 0.55; transform: translate3d(5px, 1px, 0); }

.name-drips {
  width: min(74vw, 460px);
  height: 30px;
  margin-top: calc(clamp(2.3rem, 8.4vw, 5rem) * -0.2);
  position: relative;
}

/* ————— typing ————— */

.typing {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35em;
  min-height: 1.9em;
  margin: 0.15rem 0 0;
  font-family: var(--font-blood);
  font-size: clamp(0.82rem, 2.2vw, 1.06rem);
  letter-spacing: 0.06em;
  text-transform: lowercase;
  color: #e01414;
  text-shadow:
    0 0 14px rgba(255, 0, 0, 0.6),
    0 0 3px rgba(255, 30, 30, 0.7),
    0 2px 0 rgba(0, 0, 0, 0.9);
}

.typed { white-space: pre; }

.caret {
  display: inline-block;
  width: 0.42em;
  height: 1.15em;
  border-radius: 45% 45% 50% 50%;
  background: linear-gradient(180deg, #ff2a2a, #7d0000);
  box-shadow: 0 0 10px rgba(255, 0, 0, 0.7);
  animation: caretBlink 1.15s steps(1) infinite;
}

@keyframes caretBlink {
  0%, 49%  { opacity: 1; }
  50%, 100% { opacity: 0.05; }
}

/* ————— links ————— */

.links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.4rem;
  margin-top: 0.8rem;
}

.icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  color: #bd1010;
  border-radius: 50%;
  filter: drop-shadow(0 0 10px rgba(210, 0, 0, 0.3));
  transition: color 200ms, transform 220ms cubic-bezier(0.16, 1, 0.3, 1), filter 220ms;
  -webkit-tap-highlight-color: transparent;
}

.icon svg {
  width: 36px;
  height: 36px;
  filter: drop-shadow(0 2px 0 rgba(0, 0, 0, 0.8));
}

.icon:hover,
.icon:focus-visible {
  color: #ff2b2b;
  outline: none;
  transform: translateY(-3px) scale(1.07);
  filter: drop-shadow(0 0 20px rgba(255, 20, 20, 0.75));
}

.icon:active { transform: translateY(0) scale(0.95); }

.scroll-hint {
  position: absolute;
  left: 0;
  right: 0;
  bottom: clamp(1.1rem, 4vh, 2.2rem);
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  font-family: var(--font-creep);
  font-size: clamp(0.72rem, 2vw, 0.95rem);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #b41313;
  text-shadow: 0 0 12px rgba(255, 0, 0, 0.55), 0 2px 0 rgba(0, 0, 0, 0.9);
  transition: opacity 0.5s ease, transform 0.5s ease;
  pointer-events: none;
}

.scroll-hint__arrow {
  font-size: 1.15em;
  line-height: 1;
  animation: scrollBob 1.8s ease-in-out infinite;
}

@keyframes scrollBob {
  0%, 100% { transform: translateY(-2px); opacity: 0.55; }
  50%      { transform: translateY(4px); opacity: 1; }
}

.bio.scrolled .scroll-hint {
  opacity: 0;
  transform: translateY(10px);
}

/* ————— bio card + stack ————— */

.card {
  position: relative;
  width: min(92vw, 620px);
  margin-top: 0.6rem;
  padding: 1.15rem 1.5rem 1.2rem;
  border: 2px dashed rgba(238, 229, 224, 0.7);
  border-radius: 26px;
  background: radial-gradient(130% 150% at 8% 0%, rgba(74, 0, 0, 0.6), rgba(3, 0, 0, 0.88) 62%);
  box-shadow:
    0 0 0 1px rgba(120, 0, 0, 0.4),
    0 22px 50px rgba(0, 0, 0, 0.75),
    inset 0 0 46px rgba(110, 0, 0, 0.28);
  font-family: var(--font-creep);
  font-size: clamp(0.92rem, 2.3vw, 1.24rem);
  line-height: 1.4;
  letter-spacing: 0.045em;
  text-transform: uppercase;
  color: #ff1a1a;
  text-shadow: 0 0 14px rgba(255, 0, 0, 0.5), 0 2px 0 rgba(0, 0, 0, 0.9);
}

.card p { margin: 0; }

.card::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0.55;
  background:
    radial-gradient(26px 18px at 7% 10%, rgba(170, 0, 0, 0.8), transparent 70%),
    radial-gradient(18px 12px at 95% 84%, rgba(150, 0, 0, 0.7), transparent 70%),
    radial-gradient(10px 8px at 62% 4%, rgba(150, 0, 0, 0.6), transparent 70%),
    linear-gradient(180deg, rgba(120, 0, 0, 0.22), transparent 42%);
  mix-blend-mode: screen;
}

.skills {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 0.55rem;
  width: min(94vw, 660px);
  margin: 0.5rem 0 0.9rem;
  padding: 0;
  list-style: none;
}

.skill {
  font-family: var(--font-creep);
  font-size: clamp(0.8rem, 2.05vw, 1.02rem);
  line-height: 1.2;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #ff1616;
  background: linear-gradient(180deg, rgba(30, 0, 0, 0.92), rgba(4, 0, 0, 0.94));
  border: 2px dashed rgba(238, 229, 224, 0.66);
  border-radius: 999px;
  padding: 0.28rem 0.9rem 0.34rem;
  text-shadow: 0 0 10px rgba(255, 0, 0, 0.55), 0 1px 0 #000;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.55), inset 0 0 16px rgba(100, 0, 0, 0.25);
  transition: color 180ms, border-color 180ms, background 180ms, box-shadow 180ms, transform 180ms;
  cursor: default;
}

.skill:hover {
  color: #fff;
  border-color: rgba(255, 43, 43, 0.95);
  background: linear-gradient(180deg, #4d0000, #170000);
  box-shadow: 0 0 22px rgba(210, 0, 0, 0.55), inset 0 0 18px rgba(150, 0, 0, 0.35);
  transform: translateY(-2px);
}

/* ————— demon mode ————— */

.demon {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  width: min(92vw, 620px);
  margin-top: 1.6rem;
}

.demon-title {
  margin: 0;
  padding-left: 0.5rem;
  font-family: var(--font-creep);
  font-size: clamp(1rem, 2.8vw, 1.5rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: left;
  color: #e01414;
  text-shadow: 0 0 14px rgba(255, 0, 0, 0.55), 0 2px 0 rgba(0, 0, 0, 0.9);
}

.card--long {
  width: 100%;
  margin-top: 0;
  padding: clamp(1.2rem, 4vw, 1.9rem) clamp(1rem, 4vw, 1.7rem);
  border-radius: 22px;
  font-size: clamp(0.86rem, 2.15vw, 1.12rem);
  line-height: 1.6;
}

.card--long::before { opacity: 0.4; }

.card--long p { margin: 0; }
.card--long p + p { margin-top: 1.2em; }

.card--long .shout {
  font-size: 1.16em;
  letter-spacing: 0.07em;
  color: #ff2f2f;
}

.card--long .term,
.card--long .laugh {
  color: #ff2f2f;
  text-shadow: 0 0 18px rgba(255, 0, 0, 0.6), 0 2px 0 rgba(0, 0, 0, 0.9);
}

.card--long .term { letter-spacing: 0.05em; }

.card-more {
  margin-top: 1.2em;
  animation: revealMore 0.6s ease both;
}

.card-more p { margin: 0; }
.card-more p + p { margin-top: 1.2em; }

@keyframes revealMore {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}

.card-actions {
  display: flex;
  justify-content: flex-start;
  margin-top: 1.4rem;
}

.card-toggle {
  font-family: var(--font-creep);
  font-size: clamp(0.85rem, 2.2vw, 1.05rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #e01414;
  background: linear-gradient(180deg, #3a0000, #170000);
  border: 2px solid rgba(170, 10, 10, 0.9);
  border-radius: 14px;
  padding: 0.5rem 1.3rem 0.55rem;
  cursor: pointer;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.6), inset 0 0 20px rgba(140, 0, 0, 0.3);
  text-shadow: 0 0 10px rgba(255, 0, 0, 0.5);
  transition: color 180ms, border-color 180ms, background 180ms, box-shadow 180ms, transform 180ms;
  -webkit-tap-highlight-color: transparent;
}

.card-toggle:hover {
  color: #fff;
  border-color: #ff2b2b;
  background: linear-gradient(180deg, #5a0000, #220000);
  box-shadow: 0 0 22px rgba(210, 0, 0, 0.55), inset 0 0 24px rgba(160, 0, 0, 0.4);
  transform: translateY(-1px);
}

.card-toggle:focus-visible {
  outline: 2px solid #ff3a3a;
  outline-offset: 3px;
}

.card-toggle:active { transform: translateY(0) scale(0.98); }

/* ————— sound ————— */

.yt-host {
  position: fixed;
  left: -9999px;
  top: 0;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.sound {
  position: fixed;
  right: clamp(0.8rem, 2.5vw, 1.6rem);
  bottom: clamp(0.8rem, 2.5vw, 1.6rem);
  z-index: 70;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.42rem 0.7rem 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #a89691;
  background: rgba(8, 0, 0, 0.6);
  border: 1px solid rgba(130, 0, 0, 0.45);
  border-radius: 3px;
  cursor: pointer;
  backdrop-filter: blur(4px);
  transition: color 200ms, border-color 200ms, box-shadow 200ms;
  -webkit-tap-highlight-color: transparent;
}

.sound svg { width: 15px; height: 15px; }
.sound__off { display: none; }
.sound[aria-pressed="false"] .sound__on { display: none; }
.sound[aria-pressed="false"] .sound__off { display: block; }
.sound[aria-pressed="false"] { color: #6e5d59; border-color: rgba(80, 0, 0, 0.3); }

.sound:hover,
.sound:focus-visible {
  color: #ffd9d5;
  border-color: rgba(220, 20, 20, 0.8);
  box-shadow: 0 0 18px rgba(200, 0, 0, 0.4);
  outline: none;
}

/* ————— gate / intro ————— */

.gate {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #000;
  cursor: crosshair;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: opacity 700ms ease;
}

.gate-bg {
  position: absolute;
  inset: -8%;
  background: url("../assets/redgirl.png") center / cover no-repeat;
  filter: brightness(0.24) saturate(1.4) contrast(1.25) blur(2.5px);
  opacity: 0.8;
  animation: gateDrift 36s ease-in-out infinite alternate;
  will-change: transform, filter;
}

@keyframes gateDrift {
  from { transform: scale(1.06) translate3d(-1%, 0, 0); }
  to   { transform: scale(1.16) translate3d(1%, -1.5%, 0); }
}

.gate-veil {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 44%, rgba(60, 0, 0, 0.35) 0%, rgba(8, 0, 0, 0.82) 48%, #000 82%),
    repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.4) 0 1px, transparent 1px 3px);
}

.gate-veil::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 46%, rgba(190, 0, 0, 0.55), rgba(90, 0, 0, 0.35) 42%, transparent 76%);
  mix-blend-mode: screen;
  opacity: 0;
  transition: opacity 800ms ease;
}

.gate[data-step="1"] .gate-veil::after { opacity: 0.35; }
.gate[data-step="2"] .gate-veil::after { opacity: 0.62; }
.gate[data-step="3"] .gate-veil::after { opacity: 0.92; }

.gate .lightning { z-index: 3; }

.gate-splats {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}

.gate-content {
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(0.6rem, 2vh, 1.3rem);
  width: min(92vw, 900px);
  padding: 2rem 1rem;
  text-align: center;
  transition: opacity 500ms ease, transform 700ms cubic-bezier(0.16, 1, 0.3, 1), filter 500ms;
}

.gate-line {
  margin: 0;
  font-family: var(--font-blood);
  font-weight: 400;
  line-height: 1.3;
}

.gate-line--main {
  font-size: clamp(1.5rem, 6.4vw, 3.6rem);
  background: linear-gradient(180deg, #fff6f2 0%, #e7dad4 38%, #b6a49f 62%, #8a0b0b 82%, #420000 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  filter:
    drop-shadow(0 0 22px rgba(255, 0, 0, 0.4))
    drop-shadow(0 5px 3px rgba(0, 0, 0, 0.95));
  animation: gateBreath 6s ease-in-out infinite;
}

@keyframes gateBreath {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 16px rgba(255, 0, 0, 0.3)) drop-shadow(0 5px 3px rgba(0, 0, 0, 0.95)); }
  50%      { transform: scale(1.015); filter: drop-shadow(0 0 30px rgba(255, 0, 0, 0.55)) drop-shadow(0 5px 3px rgba(0, 0, 0, 0.95)); }
}

.gate-line--sub {
  font-family: var(--font-creep);
  font-size: clamp(1.15rem, 4vw, 2.1rem);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #e6d9d4;
  text-shadow:
    0 0 20px rgba(255, 0, 0, 0.45),
    0 0 3px rgba(255, 0, 0, 0.65),
    0 3px 0 rgba(30, 0, 0, 0.9);
}

.gate-extra {
  margin: 0;
  font-family: var(--font-creep);
  font-size: clamp(0.95rem, 3.3vw, 1.7rem);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #8f0b0b;
  opacity: 0;
  transform: translateY(8px);
  filter: blur(4px);
  transition: opacity 900ms ease, transform 900ms ease, filter 900ms ease, color 900ms ease;
  max-width: 30ch;
  line-height: 1.25;
  text-shadow: 0 0 16px rgba(255, 0, 0, 0.35), 0 2px 0 rgba(0, 0, 0, 0.9);
}

.gate[data-step="1"] .gate-extra[data-at="1"] {
  opacity: 1;
  transform: none;
  filter: none;
  color: #b31212;
}

.gate[data-step="2"] .gate-extra[data-at="1"] { color: #d0c2bd; }

.gate[data-step="2"] .gate-extra[data-at="2"] {
  opacity: 1;
  transform: none;
  filter: none;
  color: #8f0b0b;
}

.gate-hint {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
  margin-top: clamp(0.8rem, 3vh, 1.8rem);
}

.gate-hint__label {
  font-size: clamp(0.55rem, 1.7vw, 0.68rem);
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: #8c7a76;
  animation: hintPulse 2.4s ease-in-out infinite;
}

@keyframes hintPulse {
  0%, 100% { opacity: 0.5; }
  50%      { opacity: 1; }
}

.gate-drops {
  display: inline-flex;
  gap: 0.65rem;
}

.gate-drops i {
  width: 9px;
  height: 13px;
  border-radius: 50% 50% 50% 50% / 62% 62% 38% 38%;
  border: 1px solid rgba(150, 20, 20, 0.7);
  background: rgba(40, 0, 0, 0.5);
  transition: background 350ms, box-shadow 350ms, transform 350ms;
}

.gate[data-step="1"] .gate-drops i:nth-child(1),
.gate[data-step="2"] .gate-drops i:nth-child(-n + 2),
.gate[data-step="3"] .gate-drops i {
  background: radial-gradient(circle at 35% 30%, #ff3a3a, #8b0000 70%);
  box-shadow: 0 0 14px rgba(255, 20, 20, 0.75);
  transform: scale(1.16);
}

.gate-pool {
  position: absolute;
  left: -8%;
  right: -8%;
  bottom: 0;
  z-index: 6;
  height: 0%;
  pointer-events: none;
  background:
    radial-gradient(60% 26% at 20% 0%, rgba(200, 20, 20, 0.55), transparent 70%),
    linear-gradient(180deg, #7a0000 0%, #4a0000 22%, #170000 70%);
  box-shadow: 0 -14px 55px rgba(190, 0, 0, 0.5), inset 0 10px 30px rgba(255, 0, 0, 0.18);
  border-radius: 46% 54% 0 0 / 22px 16px 0 0;
  transition: height 1.1s cubic-bezier(0.22, 0.9, 0.24, 1);
}

.gate-pool::before {
  content: "";
  position: absolute;
  inset: -12px 0 auto 0;
  height: 26px;
  background:
    radial-gradient(24px 16px at 12% 60%, #7a0000 60%, transparent 62%),
    radial-gradient(34px 20px at 34% 40%, #6b0000 60%, transparent 62%),
    radial-gradient(20px 14px at 58% 66%, #7a0000 60%, transparent 62%),
    radial-gradient(30px 18px at 78% 44%, #650000 60%, transparent 62%),
    radial-gradient(22px 15px at 94% 60%, #7a0000 60%, transparent 62%);
  filter: blur(1px);
  opacity: 0.95;
}

.gate-flood {
  position: fixed;
  left: var(--fx, 50%);
  top: var(--fy, 50%);
  z-index: 7;
  width: 240vmax;
  height: 240vmax;
  margin: -120vmax 0 0 -120vmax;
  border-radius: 43% 57% 51% 49% / 49% 44% 56% 51%;
  background: radial-gradient(circle at 50% 50%, rgba(230, 14, 14, 0.97) 0%, rgba(150, 0, 0, 0.98) 24%, rgba(66, 0, 0, 1) 50%, #0b0000 76%);
  box-shadow: 0 0 140px rgba(150, 0, 0, 0.65);
  opacity: 0;
  transform: scale(0) rotate(-14deg);
  pointer-events: none;
  transition: transform 720ms cubic-bezier(0.55, 0, 0.25, 1), opacity 260ms ease, border-radius 720ms ease;
}

.gate.flooding .gate-flood {
  opacity: 1;
  transform: scale(1) rotate(3deg);
  border-radius: 50% 50% 47% 53% / 53% 49% 51% 47%;
}

.gate-spray {
  position: absolute;
  width: 9px;
  height: 9px;
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  background: radial-gradient(circle at 35% 30%, #ff2a2a, #7f0000 72%);
  pointer-events: none;
  animation: sprayOut 680ms cubic-bezier(0.2, 0.7, 0.3, 1) forwards;
}

@keyframes sprayOut {
  from { opacity: 0.95; transform: translate3d(0, 0, 0) scale(1) rotate(0deg); }
  to   { opacity: 0; transform: translate3d(var(--tx, 0), var(--ty, 0), 0) scale(var(--s, 1)) rotate(180deg); }
}

.blood-run {
  position: absolute;
  transform-origin: top center;
  border-radius: 0 0 46% 46% / 0 0 100% 100%;
  background: linear-gradient(180deg, rgba(196, 0, 0, 0.95), #740000 42%, #2c0000 82%, rgba(20, 0, 0, 0));
  filter: drop-shadow(0 0 6px rgba(150, 0, 0, 0.45));
  animation: bloodRun 1.35s cubic-bezier(0.25, 0.8, 0.3, 1) forwards;
  opacity: 0.92;
  pointer-events: none;
}

@keyframes bloodRun {
  from { transform: scaleY(0.04) translateX(0); }
  to   { transform: scaleY(1) translateX(var(--drift, 0)); }
}

.gate-flash {
  position: absolute;
  inset: 0;
  z-index: 9;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(circle at 50% 50%, rgba(255, 40, 40, 0.55), rgba(120, 0, 0, 0.2) 40%, transparent 72%);
  mix-blend-mode: screen;
}

/* blood transition out */
.gate.revealing { background: transparent; }

.gate.revealing .gate-bg,
.gate.revealing .gate-veil,
.gate.revealing .gate-splats,
.gate.revealing .gate-content,
.gate.revealing .gate-pool,
.gate.revealing .gate-flood {
  opacity: 0;
  transition: opacity 140ms linear;
}

.gate[data-step="3"] .gate-line--main { animation: gatePanic 280ms steps(2, end) infinite; }

@keyframes gatePanic {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  25%  { transform: translate3d(-4px, 2px, 0) scale(1.01); }
  50%  { transform: translate3d(3px, -3px, 0) scale(0.995); }
  75%  { transform: translate3d(-2px, 3px, 0) scale(1.008); }
  100% { transform: translate3d(0, 0, 0) scale(1); }
}

body.revealed .world { animation: worldIn 1.15s cubic-bezier(0.16, 1, 0.3, 1) both; }

@keyframes worldIn {
  0%   { transform: scale(1.14); filter: blur(18px) brightness(1.5) saturate(1.7); }
  55%  { transform: scale(0.995); filter: blur(1.5px) brightness(1.06); }
  100% { transform: none; filter: none; }
}

/* ————— small screens ————— */

@media (max-height: 620px) {
  .avatar-wrap { width: clamp(110px, 22vh, 160px); }
  .name { font-size: clamp(2rem, 7vw, 3.2rem); }
  .hero { padding-top: clamp(2rem, 7vh, 4rem); }
  .typing { font-size: clamp(0.7rem, 1.9vw, 0.86rem); }
  .name-drips { height: 18px; }
}

@media (max-width: 560px) {
  .card { padding: 0.95rem 1rem; border-radius: 20px; }
  .skills { gap: 0.4rem 0.42rem; }
  .skill { padding: 0.24rem 0.72rem 0.3rem; }
  .sound__label { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .bg-base,
  .gate-bg,
  .avatar-ring,
  .grain,
  .scanlines,
  .gate-line--main,
  .gate-hint__label {
    animation: none;
  }
  .drip { animation: none; }
  .gate-flood { transition-duration: 0.01ms; }
  body.revealed .world { animation: none; }
  .gate[data-step="3"] .gate-line--main { animation: none; }
  .gate-spray,
  .blood-run { animation: none; }
  .bg-layer { transform: none; transition: none; }
  body.unlocked .hero > * { animation: none; }
  .scroll-reveal {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    transition: none !important;
  }
}
