* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  background: #000;
  color: #999;
  font-family: "Inter", sans-serif;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
::selection {
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
}
::-webkit-scrollbar {
  width: 5px;
}
::-webkit-scrollbar-track {
  background: #000;
}
::-webkit-scrollbar-thumb {
  background: #333;
}

/* ═══ BG COLOR ANIMATION ═══ */
.bg-anim {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  transition: background 2s ease;
}
.bg-anim.zone-0 {
  background: #000;
}
.bg-anim.zone-1 {
  background: #060606;
}
.bg-anim.zone-2 {
  background: #0a0808;
}
.bg-anim.zone-3 {
  background: #080808;
}
.bg-anim.zone-4 {
  background: #050505;
}
.bg-anim.zone-5 {
  background: #000;
}

/* ═══ SCREENTONES ═══ */
.tone-dots {
  background-image: radial-gradient(
    circle,
    #fff 0.7px,
    transparent 0.7px
  );
  background-size: 8px 8px;
}
.tone-dots-dense {
  background-image: radial-gradient(
    circle,
    #fff 0.4px,
    transparent 0.4px
  );
  background-size: 4px 4px;
}
.tone-lines {
  background-image: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 3px,
    rgba(255, 255, 255, 0.06) 3px,
    rgba(255, 255, 255, 0.06) 4px
  );
}
.tone-cross {
  background-image:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 4px,
      rgba(255, 255, 255, 0.025) 4px,
      rgba(255, 255, 255, 0.025) 5px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 4px,
      rgba(255, 255, 255, 0.025) 4px,
      rgba(255, 255, 255, 0.025) 5px
    );
}
.tone-diag {
  background-image: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 4px,
    rgba(255, 255, 255, 0.03) 4px,
    rgba(255, 255, 255, 0.03) 5px
  );
}

/* ═══ INVERTED BORDER RADIUS ═══ */
.concave-tl {
  border-radius: 0 0 100% 0;
}
.concave-tr {
  border-radius: 0 0 0 100%;
}
.concave-bl {
  border-radius: 0 100% 0 0;
}
.concave-br {
  border-radius: 100% 0 0 0;
}
.concave-all {
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
}
.blob-1 {
  border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
}
.blob-2 {
  border-radius: 30% 70% 70% 30% / 50% 60% 40% 50%;
}

/* ═══ DRAWN POINTER / CALLOUT ═══ */
.pointer-right {
  position: relative;
}
.pointer-right::after {
  content: "";
  position: absolute;
  right: -12px;
  top: 50%;
  transform: translateY(-50%);
  border: 6px solid transparent;
  border-left: 8px solid #fff;
}
.pointer-left {
  position: relative;
}
.pointer-left::after {
  content: "";
  position: absolute;
  left: -12px;
  top: 50%;
  transform: translateY(-50%);
  border: 6px solid transparent;
  border-right: 8px solid #fff;
}
.pointer-down {
  position: relative;
}
.pointer-down::after {
  content: "";
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top: 8px solid #fff;
}

/* Hand-drawn underline */
.drawn-underline {
  position: relative;
  display: inline-block;
}
.drawn-underline::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: -4px;
  right: -4px;
  height: 3px;
  background: #fff;
  border-radius: 2px;
  transform: rotate(-0.5deg);
}

/* Jagged thought border */
.jagged-border {
  position: relative;
  border: 2px solid #fff;
}
.jagged-border::before {
  content: "";
  position: absolute;
  inset: -4px;
  border: 1px dashed rgba(255, 255, 255, 0.15);
  border-radius: 20% 80% 60% 40% / 50% 40% 60% 50%;
  pointer-events: none;
}

/* ═══ MANGA EMOTION SYMBOLS ═══ */
@keyframes angerPulse {
  0%,
  100% {
    transform: scale(1) rotate(0deg);
  }
  50% {
    transform: scale(1.15) rotate(3deg);
  }
}
@keyframes shockWave {
  0% {
    transform: scale(0.5);
    opacity: 1;
  }
  100% {
    transform: scale(2);
    opacity: 0;
  }
}
@keyframes sweatDrop {
  0% {
    transform: translateY(-5px);
    opacity: 0;
  }
  30% {
    opacity: 1;
  }
  100% {
    transform: translateY(15px);
    opacity: 0;
  }
}
@keyframes spiralSpin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
@keyframes sparklePop {
  0%,
  100% {
    opacity: 0;
    transform: scale(0) rotate(0deg);
  }
  50% {
    opacity: 1;
    transform: scale(1) rotate(180deg);
  }
}
@keyframes zigzagShake {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-2px);
  }
  75% {
    transform: translateX(2px);
  }
}
@keyframes crossPulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.6;
  }
  50% {
    transform: scale(1.2);
    opacity: 1;
  }
}

.anger-mark {
  font-size: 28px;
  color: #fff;
  animation: angerPulse 0.4s ease-in-out infinite;
  display: inline-block;
  font-weight: 900;
  line-height: 1;
  font-family: sans-serif;
  text-shadow: 2px 2px 0 #000;
}
.shock-lines {
  position: absolute;
  width: 40px;
  height: 40px;
  pointer-events: none;
}
.shock-lines::before,
.shock-lines::after {
  content: "";
  position: absolute;
  background: #fff;
}
.shock-lines::before {
  width: 100%;
  height: 2px;
  top: 50%;
  transform: translateY(-50%);
}
.shock-lines::after {
  height: 100%;
  width: 2px;
  left: 50%;
  transform: translateX(-50%);
}
.sweat-drop {
  position: absolute;
  width: 8px;
  height: 12px;
  background: #fff;
  border-radius: 50% 50% 50% 50% / 30% 30% 70% 70%;
  animation: sweatDrop 1.5s ease-in-out infinite;
  opacity: 0;
}
.manga-spiral {
  position: absolute;
  width: 20px;
  height: 20px;
  border: 2px solid #fff;
  border-radius: 50%;
  border-left-color: transparent;
  animation: spiralSpin 2s linear infinite;
  opacity: 0.4;
}
.manga-sparkle {
  position: absolute;
  pointer-events: none;
  animation: sparklePop var(--dur, 2s) ease-in-out infinite;
  animation-delay: var(--delay, 0s);
  color: #fff;
}
.zigzag-text {
  animation: zigzagShake 0.3s ease-in-out infinite;
}
.cross-mark {
  position: absolute;
  font-size: 24px;
  color: #fff;
  opacity: 0.5;
  animation: crossPulse 1s ease-in-out infinite;
}

/* ═══ SPEED LINES ═══ */
@keyframes speedDash {
  0% {
    transform: translateX(100%);
    opacity: 0;
  }
  15% {
    opacity: var(--mo, 0.1);
  }
  85% {
    opacity: var(--mo, 0.1);
  }
  100% {
    transform: translateX(-250%);
    opacity: 0;
  }
}
.speed-dash {
  position: absolute;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.12),
    transparent
  );
  animation: speedDash var(--dur, 1.2s) linear infinite;
  animation-delay: var(--delay, 0s);
  top: var(--top, 50%);
  left: 0;
  width: var(--width, 50%);
}

/* ═══ NAV ═══ */
.manga-nav {
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 2px solid #fff;
}
.manga-nav-link {
  color: #555;
  font-family: "Bangers", cursive;
  font-size: 1rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: all 0.2s;
  position: relative;
}
.manga-nav-link:hover,
.manga-nav-link.active {
  color: #fff;
}
.manga-nav-link.active::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 0;
  right: 0;
  height: 3px;
  background: #fff;
}

/* ═══ HERO ═══ */
.hero-section {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background: #000;
}
.hero-title {
  font-family: "Bangers", cursive;
  font-size: clamp(4.5rem, 13vw, 11rem);
  line-height: 0.85;
  letter-spacing: 0.05em;
  color: #fff;
  text-shadow:
    4px 4px 0 #000,
    -1px -1px 0 #000,
    1px -1px 0 #000,
    -1px 1px 0 #000;
  -webkit-text-stroke: 1.5px #000;
}
.hero-subtitle {
  font-family: "Bangers", cursive;
  font-size: clamp(0.85rem, 1.8vw, 1.2rem);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #aaa;
  text-shadow: 2px 2px 0 #000;
}
.hero-tagline {
  font-size: clamp(0.85rem, 1.4vw, 1rem);
  color: #555;
  font-weight: 300;
  max-width: 360px;
  line-height: 1.8;
}

/* Hero avatar — drawn style with concave corners */
.hero-avatar-panel {
  position: relative;
  border: 3px solid #fff;
  background: #0a0a0a;
  overflow: hidden;
  transition:
    box-shadow 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  border-radius: 4px 60px 4px 60px;
}
.hero-avatar-panel:hover {
  box-shadow: 12px 12px 0 #fff;
  transform: translate(-4px, -4px);
}
.hero-avatar-panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%) contrast(1.2) brightness(0.95);
  transition: all 0.6s;
}
.hero-avatar-panel:hover img {
  filter: grayscale(70%) contrast(1.25) brightness(1);
  transform: scale(1.05);
}
.hero-avatar-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 30%,
    rgba(0, 0, 0, 0.8) 100%
  );
  pointer-events: none;
}
.halftone-ov {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.04) 0.7px,
    transparent 0.7px
  );
  background-size: 6px 6px;
  pointer-events: none;
  z-index: 1;
}

#lightningCanvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* ═══ GUTTER ═══ */
.gutter {
  height: 2px;
  background: #fff;
  position: relative;
}
.gutter-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 30px;
  height: 30px;
  background: #000;
  border: 2px solid #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

/* ═══ SECTION ═══ */
.sec-label {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.6rem;
  color: #444;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.sec-title {
  font-family: "Bangers", cursive;
  font-size: clamp(2rem, 5vw, 3rem);
  color: #fff;
  letter-spacing: 0.05em;
  text-shadow: 3px 3px 0 #000;
  -webkit-text-stroke: 0.5px #000;
}
.sec-bar {
  display: block;
  width: 100%;
  height: 3px;
  background: #fff;
  margin-top: 8px;
  border-radius: 2px;
  transform: rotate(-0.3deg);
}

/* ═══ AVATAR ═══ */
.avatar-box {
  position: relative;
  width: 260px;
  height: 320px;
  border: 3px solid #fff;
  background: #111;
  overflow: hidden;
  box-shadow: 8px 8px 0 #fff;
  transition:
    box-shadow 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  border-radius: 60px 4px 60px 4px;
}
.avatar-box:hover {
  box-shadow: 12px 12px 0 #fff;
  transform: translate(-4px, -4px);
}
.avatar-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%) contrast(1.15);
  transition: all 0.5s;
}
.avatar-box:hover img {
  filter: grayscale(80%) contrast(1.2);
  transform: scale(1.05);
}
.avatar-box::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 40%,
    rgba(0, 0, 0, 0.7) 100%
  );
  pointer-events: none;
}
.avatar-badge {
  position: absolute;
  bottom: 12px;
  left: 12px;
  z-index: 2;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.6rem;
  color: #000;
  background: #fff;
  padding: 4px 10px;
  letter-spacing: 0.1em;
  border-radius: 2px;
}

/* ═══ CARDS ═══ */
.mpanel {
  position: relative;
  border: 3px solid #fff;
  background: #0a0a0a;
  overflow: hidden;
  transition:
    box-shadow 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.mpanel:hover {
  box-shadow: 6px 6px 0 #fff;
  transform: translate(-3px, -3px);
}
.stat-box {
  border: 2px solid #fff;
  padding: 1rem;
  text-align: center;
  background: #0a0a0a;
  transition:
    box-shadow 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.stat-box:hover {
  box-shadow: 4px 4px 0 #fff;
  transform: translate(-2px, -2px);
}
.stat-box-white {
  background: #fff;
  transition:
    box-shadow 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.stat-box-white:hover {
  box-shadow: 4px 4px 0 #333;
  transform: translate(-2px, -2px);
}

/* ═══ SKILL BARS ═══ */
.skill-track {
  height: 7px;
  background: #1a1a1a;
  border: 1px solid #333;
  overflow: hidden;
  border-radius: 1px;
}
.skill-fill {
  height: 100%;
  background: #fff;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.skill-fill.go {
  transform: scaleX(var(--lvl));
}

/* ═══ PROJECT CARDS ═══ */
.proj-card {
  position: relative;
  border: 3px solid #fff;
  background: #0a0a0a;
  overflow: hidden;
  transition:
    box-shadow 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.proj-card:hover {
  box-shadow: 8px 8px 0 #fff;
  transform: translate(-4px, -4px);
}
.proj-img {
  height: 200px;
  position: relative;
  overflow: hidden;
  border-bottom: 3px solid #fff;
}
.proj-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%) contrast(1.1);
  transition: all 0.5s;
}
.proj-card:hover .proj-img img {
  filter: grayscale(60%) contrast(1.05);
  transform: scale(1.06);
}
.proj-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, #0a0a0a 100%);
}
.proj-halftone {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.04) 0.7px,
    transparent 0.7px
  );
  background-size: 6px 6px;
  pointer-events: none;
  z-index: 1;
}
.proj-num {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 30px;
  height: 30px;
  background: #fff;
  color: #000;
  font-family: "Bangers", cursive;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: rotate(5deg);
  z-index: 3;
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.4);
  border-radius: 2px;
}
.proj-tag {
  display: inline-block;
  padding: 2px 8px;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.58rem;
  background: #fff;
  color: #000;
  letter-spacing: 0.05em;
  font-weight: 500;
  border-radius: 1px;
}

/* ═══ TIMELINE ═══ */
.tl-line {
  position: absolute;
  left: 15px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: #fff;
}
.tl-dot {
  position: absolute;
  left: 9px;
  width: 15px;
  height: 15px;
  background: #000;
  border: 3px solid #fff;
  z-index: 1;
  border-radius: 50%;
}
.tl-dot.now {
  background: #fff;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}
.tl-card {
  border: 2px solid #333;
  background: #0a0a0a;
  padding: 1.5rem;
  transition:
    box-shadow 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    border-color 0.5s;
}
.tl-card:hover {
  border-color: #fff;
  box-shadow: 4px 4px 0 #fff;
  transform: translate(-2px, -2px);
}

/* ═══ FORM ═══ */
.manga-input {
  width: 100%;
  padding: 0.8rem 1rem;
  background: #0a0a0a;
  border: 2px solid #333;
  color: #fff;
  font-family: "Inter", sans-serif;
  font-size: 0.9rem;
  transition:
    border-color 0.3s,
    box-shadow 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  outline: none;
  border-radius: 2px;
}
.manga-input:focus {
  border-color: #fff;
  box-shadow: 4px 4px 0 rgba(255, 255, 255, 0.15);
}
.manga-input::placeholder {
  color: #333;
}

/* ═══ BUTTONS ═══ */
.btn-ink {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.8rem;
  font-family: "Bangers", cursive;
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  cursor: pointer;
  transition:
    box-shadow 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    background 0.2s,
    color 0.2s;
  text-decoration: none;
  border: 3px solid #fff;
  border-radius: 2px;
}
.btn-ink-fill {
  background: #fff;
  color: #000;
}
.btn-ink-fill:hover {
  box-shadow: 5px 5px 0 #fff;
  transform: translate(-3px, -3px);
}
.btn-ink-outline {
  background: transparent;
  color: #fff;
}
.btn-ink-outline:hover {
  background: #fff;
  color: #000;
  box-shadow: 5px 5px 0 rgba(255, 255, 255, 0.3);
  transform: translate(-3px, -3px);
}

/* ═══ SOCIAL ═══ */
.social-ink {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #333;
  color: #555;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  cursor: pointer;
  text-decoration: none;
  background: transparent;
  border-radius: 2px;
}
.social-ink:hover {
  border-color: #fff;
  color: #000;
  background: #fff;
  box-shadow: 3px 3px 0 #fff;
  transform: translate(-2px, -2px);
}

/* ═══ SCROLL REVEAL ═══ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}
.reveal.vis {
  opacity: 1;
  transform: translateY(0);
}
.rd1 {
  transition-delay: 0.1s;
}
.rd2 {
  transition-delay: 0.2s;
}
.rd3 {
  transition-delay: 0.3s;
}
.rd4 {
  transition-delay: 0.4s;
}

/* ═══ TOAST ═══ */
.toast-ink {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  padding: 0.8rem 1.2rem;
  background: #fff;
  color: #000;
  font-family: "Bangers", cursive;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  z-index: 99999;
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  border: 3px solid #000;
  box-shadow: 4px 4px 0 #000;
  border-radius: 2px;
}
.toast-ink.show {
  transform: translateY(0);
  opacity: 1;
}

/* ═══ TERMINAL ═══ */
.term-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.97);
  display: none;
  flex-direction: column;
  padding: 1.5rem;
}
.term-overlay.open {
  display: flex;
}
.term-box {
  max-width: 780px;
  width: 100%;
  margin: auto;
  border: 3px solid #fff;
  background: #000;
  overflow: hidden;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.term-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: #111;
  border-bottom: 2px solid #fff;
}
.term-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid #fff;
}
.term-body {
  flex: 1;
  padding: 1.2rem;
  overflow-y: auto;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.78rem;
  line-height: 1.9;
  color: #666;
}
.term-body::-webkit-scrollbar {
  width: 3px;
}
.term-body::-webkit-scrollbar-thumb {
  background: #333;
}
.term-input-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-top: 2px solid #fff;
  background: #0a0a0a;
}
.term-input {
  flex: 1;
  background: none;
  border: none;
  color: #fff;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.78rem;
  outline: none;
}
.tw {
  color: #fff;
}

/* ═══ MOBILE ═══ */
.mob-menu {
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: rgba(0, 0, 0, 0.98);
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
}
.mob-menu.open {
  display: flex;
}
.mob-menu a {
  font-family: "Bangers", cursive;
  font-size: 1.8rem;
  color: #444;
  text-decoration: none;
  transition: color 0.2s;
  letter-spacing: 0.1em;
}
.mob-menu a:hover {
  color: #fff;
}
.icon-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #333;
  background: transparent;
  color: #555;
  cursor: pointer;
  transition: all 0.2s;
  border-radius: 2px;
}
.icon-btn:hover {
  border-color: #fff;
  color: #fff;
}
.icon-btn.on {
  border-color: #fff;
  color: #000;
  background: #fff;
}

@media (max-width: 768px) {
  .avatar-box {
    width: 200px;
    height: 250px;
  }
  .hero-avatar-wrap {
    width: 260px !important;
    height: 340px !important;
  }
}
@media (max-width: 1024px) {
  .hero-avatar-wrap {
    width: 320px !important;
    height: 400px !important;
  }
}

/* ADMIN PANEL */
.admin-body {
  min-height: 100vh;
  background: #000;
  color: #999;
  font-family: "Inter", sans-serif;
}

.admin-hidden {
  display: none !important;
}

.admin-shell {
  width: min(1440px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 56px;
}

.admin-topbar,
.admin-dashboard-head,
.admin-panel-head,
.admin-detail-head,
.admin-action-cluster,
.admin-action-row,
.admin-filter-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.admin-topbar,
.admin-dashboard-head {
  justify-content: space-between;
}

.admin-brand {
  color: #fff;
  font-family: "Bangers", cursive;
  font-size: 1.35rem;
  letter-spacing: 0.14em;
  text-decoration: none;
}

.admin-brand span {
  color: #777;
}

.admin-topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.admin-gate-pill,
.admin-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 4px 10px;
  border: 2px solid #333;
  color: #777;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.admin-gate-pill.active,
.admin-badge.read {
  border-color: #fff;
  background: #fff;
  color: #000;
}

.admin-gate-pill.denied,
.admin-badge.archived {
  border-color: #777;
  color: #fff;
}

.admin-hero-panel,
.admin-login-panel,
.admin-panel,
.admin-settings-panel,
.admin-stat-card {
  border: 3px solid #fff;
  background: #0a0a0a;
  position: relative;
}

.admin-hero-panel {
  margin-top: 34px;
  padding: clamp(28px, 5vw, 56px);
  overflow: hidden;
  border-radius: 2px 54px 2px 54px;
}

.admin-main-title {
  margin-top: 10px;
  margin-bottom: 14px;
  font-size: clamp(3rem, 8vw, 6.5rem);
}

.admin-copy,
.admin-muted,
.admin-status-line,
.admin-settings-note {
  color: #777;
  line-height: 1.8;
}

.admin-copy {
  max-width: 760px;
  font-size: 0.98rem;
}

.admin-copy code,
.admin-setting-card code,
.admin-settings-note code {
  color: #fff;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.78rem;
  word-break: break-word;
}

.admin-login-panel,
.admin-dashboard,
.admin-settings-panel {
  margin-top: 24px;
}

.admin-login-panel,
.admin-panel,
.admin-settings-panel {
  padding: 22px;
}

.admin-panel-head {
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 18px;
}

.admin-section-title,
.admin-subtitle {
  color: #fff;
  font-family: "Bangers", cursive;
  letter-spacing: 0.08em;
}

.admin-section-title {
  font-size: 2rem;
}

.admin-subtitle {
  font-size: 1.35rem;
}

.admin-login-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: 14px;
  align-items: end;
}

.admin-field span {
  display: block;
  margin-bottom: 8px;
  color: #777;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.admin-status-line {
  margin-top: 16px;
  padding: 12px;
  border: 1px solid #222;
  background: #050505;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
}

.admin-dashboard-head {
  border: 3px solid #fff;
  background: #050505;
  padding: 22px;
}

.admin-stats-grid,
.admin-settings-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.admin-stat-card {
  padding: 18px;
  transition:
    box-shadow 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.admin-stat-card:hover {
  box-shadow: 5px 5px 0 #fff;
  transform: translate(-3px, -3px);
}

.admin-stat-card span,
.admin-setting-card span,
.admin-meta-grid dt {
  display: block;
  color: #555;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.admin-stat-card strong {
  display: block;
  margin-top: 8px;
  color: #fff;
  font-family: "Bangers", cursive;
  font-size: 2.4rem;
  letter-spacing: 0.08em;
}

.admin-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.8fr) minmax(0, 1.2fr);
  gap: 16px;
  margin-top: 16px;
  align-items: start;
}

.admin-list-panel,
.admin-detail-panel {
  min-height: 560px;
}

.admin-filter-row {
  align-items: stretch;
  margin-bottom: 12px;
}

.admin-filter-row select {
  max-width: 160px;
}

.admin-message-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
  max-height: 560px;
  overflow-y: auto;
  padding-right: 4px;
}

.admin-message-list::-webkit-scrollbar {
  width: 4px;
}

.admin-message-list::-webkit-scrollbar-thumb {
  background: #333;
}

.admin-message-item {
  width: 100%;
  text-align: left;
  border: 2px solid #222;
  background: #050505;
  color: #999;
  padding: 14px;
  cursor: pointer;
  border-radius: 2px;
  transition:
    border-color 0.2s,
    transform 0.3s,
    box-shadow 0.3s;
}

.admin-message-item:hover,
.admin-message-item.active {
  border-color: #fff;
  box-shadow: 4px 4px 0 rgba(255, 255, 255, 0.18);
  transform: translate(-2px, -2px);
}

.admin-message-item.active {
  background: #111;
}

.admin-message-item-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.admin-message-item strong {
  color: #fff;
  font-size: 0.95rem;
}

.admin-message-item small,
.admin-message-preview,
.admin-message-date,
.admin-message-id {
  color: #555;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.68rem;
}

.admin-message-preview {
  margin-top: 10px;
  line-height: 1.6;
}

.admin-empty-state {
  min-height: 480px;
  display: grid;
  place-items: center;
  color: #555;
  border: 2px dashed #222;
  text-align: center;
  padding: 22px;
}

.admin-detail-card {
  display: grid;
  gap: 18px;
}

.admin-detail-head {
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 2px solid #222;
  padding-bottom: 16px;
}

.admin-detail-head h3 {
  margin-top: 6px;
  color: #fff;
  font-family: "Bangers", cursive;
  font-size: 2rem;
  letter-spacing: 0.08em;
}

.admin-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.admin-meta-grid div,
.admin-message-body,
.admin-setting-card {
  border: 2px solid #222;
  background: #050505;
  padding: 14px;
}

.admin-meta-grid dd {
  margin: 7px 0 0;
  color: #ddd;
  word-break: break-word;
  line-height: 1.5;
}

.admin-meta-grid a {
  color: #fff;
}

.admin-message-body p {
  margin-top: 10px;
  color: #ddd;
  line-height: 1.85;
  white-space: pre-wrap;
  word-break: break-word;
}

.admin-action-row {
  flex-wrap: wrap;
}

.admin-danger-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.8rem;
  font-family: "Bangers", cursive;
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  color: #fff;
  background: #000;
  border: 3px solid #777;
  cursor: pointer;
  border-radius: 2px;
  transition:
    background 0.2s,
    color 0.2s,
    transform 0.3s,
    box-shadow 0.3s;
}

.admin-danger-button:hover {
  background: #fff;
  color: #000;
  box-shadow: 5px 5px 0 #777;
  transform: translate(-3px, -3px);
}

.admin-settings-panel {
  border-color: #333;
}

.admin-settings-note {
  margin-top: 16px;
  border-top: 2px solid #222;
  padding-top: 16px;
}

button:disabled,
.btn-ink:disabled,
.admin-danger-button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  transform: none;
  box-shadow: none;
}

@media (max-width: 980px) {
  .admin-login-form,
  .admin-grid,
  .admin-stats-grid,
  .admin-settings-grid,
  .admin-meta-grid {
    grid-template-columns: 1fr;
  }

  .admin-dashboard-head,
  .admin-topbar,
  .admin-panel-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-action-cluster,
  .admin-topbar-actions {
    width: 100%;
  }

  .admin-action-cluster .btn-ink,
  .admin-topbar-actions .btn-ink {
    justify-content: center;
    flex: 1;
  }
}

@media (max-width: 640px) {
  .admin-shell {
    width: min(100% - 20px, 1440px);
    padding-top: 16px;
  }

  .admin-hero-panel,
  .admin-login-panel,
  .admin-panel,
  .admin-dashboard-head,
  .admin-settings-panel {
    padding: 16px;
  }

  .admin-filter-row {
    flex-direction: column;
  }

  .admin-filter-row select {
    max-width: none;
  }
}
