/* Ethan Lee · Manga Arcade Portfolio Ultra Edition */

:root {
  --bg-0: #060611;
  --bg-1: #0a0820;
  --bg-2: #121133;
  --bg-3: #17153f;

  --panel: rgba(11, 14, 34, 0.84);
  --panel-strong: rgba(13, 16, 38, 0.94);
  --line: rgba(129, 145, 255, 0.22);

  --text: #eef3ff;
  --muted: #afbbda;
  --soft: #8090ba;
  --white: #ffffff;

  --pink: #ff4fd8;
  --pink-soft: #ff9ae9;
  --purple: #9b6dff;
  --purple-soft: #c9b0ff;
  --blue: #4d7cff;
  --sky: #7ed7ff;
  --cyan: #2ce5ff;
  --green: #71ffb0;
  --yellow: #ffe169;
  --orange: #ffab57;
  --red: #ff6d85;

  --font-main: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-pixel: "Press Start 2P", monospace;
  --font-pixel2: "Silkscreen", monospace;
  --font-terminal: "VT323", monospace;

  --radius-xl: 34px;
  --radius-lg: 26px;
  --radius-md: 18px;

  --shadow-xl: 0 24px 60px rgba(0, 0, 0, 0.38);
  --shadow-lg: 0 16px 34px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 10px 24px rgba(0, 0, 0, 0.18);

  --rainbow: linear-gradient(
    90deg,
    var(--pink),
    var(--purple),
    var(--blue),
    var(--cyan),
    var(--green),
    var(--yellow),
    var(--orange),
    var(--pink)
  );
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

html,
body {
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  font-family: var(--font-main);
  color: var(--text);
  line-height: 1.72;
  position: relative;
  background:
    radial-gradient(circle at 12% 12%, rgba(255, 79, 216, 0.16), transparent 22%),
    radial-gradient(circle at 86% 14%, rgba(44, 229, 255, 0.16), transparent 22%),
    radial-gradient(circle at 84% 78%, rgba(255, 225, 105, 0.11), transparent 22%),
    radial-gradient(circle at 18% 82%, rgba(113, 255, 176, 0.10), transparent 22%),
    linear-gradient(180deg, var(--bg-0) 0%, var(--bg-1) 26%, var(--bg-2) 66%, var(--bg-3) 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(to bottom, black, transparent 95%);
  -webkit-mask-image: linear-gradient(to bottom, black, transparent 95%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.075;
  mix-blend-mode: screen;
  background:
    repeating-linear-gradient(
      to bottom,
      rgba(255,255,255,0) 0px,
      rgba(255,255,255,0) 2px,
      rgba(44,229,255,0.12) 3px,
      rgba(44,229,255,0.12) 4px
    );
}

canvas#stars {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.50;
}

/* Side manga rail */
.anime-rail {
  position: fixed;
  top: 0;
  bottom: 0;
  width: 112px;
  z-index: 2;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
  opacity: 0.58;
}

.anime-rail-left { left: 8px; }
.anime-rail-right { right: 8px; }

.rail-burst,
.rail-bubble,
.rail-sfx,
.rail-character {
  position: relative;
  box-shadow: var(--shadow-md);
}

.rail-burst {
  width: 78px;
  aspect-ratio: 1;
  clip-path: polygon(
    50% 0%, 60% 18%, 78% 6%, 74% 26%, 100% 24%, 82% 42%,
    98% 54%, 76% 60%, 88% 80%, 66% 74%, 64% 100%, 50% 82%,
    36% 100%, 34% 74%, 12% 80%, 24% 60%, 2% 54%, 18% 42%,
    0% 24%, 26% 26%, 22% 6%, 40% 18%
  );
  display: grid;
  place-items: center;
  font-family: var(--font-pixel2);
  font-size: 14px;
  font-weight: 700;
  color: #111827;
  transform: rotate(-8deg);
  background: linear-gradient(135deg, var(--yellow), var(--orange));
  border: 3px solid #111827;
}

.rail-burst-alt {
  transform: rotate(8deg);
  background: linear-gradient(135deg, #ffffff, #c8f3ff);
}

.rail-bubble {
  width: 92px;
  padding: 10px 8px;
  border-radius: 16px;
  background: #ffffff;
  color: #111827;
  border: 3px solid #111827;
  font-family: var(--font-pixel2);
  font-size: 11px;
  line-height: 1.4;
  text-align: center;
}

.rail-bubble::after {
  content: "";
  position: absolute;
  left: 18px;
  bottom: -10px;
  width: 16px;
  height: 16px;
  background: #fff;
  border-right: 3px solid #111827;
  border-bottom: 3px solid #111827;
  transform: rotate(45deg);
}

.rail-sfx {
  padding: 6px 10px;
  border: 3px solid #111827;
  border-radius: 999px;
  font-family: var(--font-pixel2);
  font-size: 12px;
  color: #111827;
  background: linear-gradient(135deg, #ffffff, #ffe7fb);
  transform: rotate(-6deg);
}

.rail-character {
  width: 88px;
  height: 122px;
  border-radius: 18px;
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,0.06) 0 5px, rgba(255,255,255,0.00) 5px 12px),
    linear-gradient(180deg, rgba(18,22,58,0.96), rgba(10,12,28,0.96));
  border: 3px solid #fff;
  overflow: hidden;
}

.rail-label {
  position: absolute;
  top: 6px;
  left: 6px;
  right: 6px;
  text-align: center;
  padding: 3px 0;
  border-radius: 999px;
  background: var(--yellow);
  color: #111827;
  border: 2px solid #111827;
  font-family: var(--font-pixel2);
  font-size: 10px;
  z-index: 4;
}

.anime-head {
  position: absolute;
  left: 18px;
  top: 32px;
  width: 48px;
  height: 48px;
  border-radius: 46% 46% 50% 50%;
  background: linear-gradient(180deg, #ffd9c6, #ffd2ae);
  border: 3px solid #111827;
  box-shadow: inset 0 -6px 0 rgba(0,0,0,0.06);
  z-index: 2;
}

.anime-head::before {
  content: "";
  position: absolute;
  left: -7px;
  top: -14px;
  width: 58px;
  height: 26px;
  border-radius: 60% 60% 28% 28%;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.18) 0 18%, transparent 18% 100%),
    linear-gradient(90deg, var(--pink), var(--purple), var(--cyan));
  border: 3px solid #111827;
  border-bottom: none;
}

.anime-head::after {
  content: "";
  position: absolute;
  left: 10px;
  top: 16px;
  width: 6px;
  height: 8px;
  border-radius: 50%;
  background: #111827;
  box-shadow:
    18px 0 0 #111827,
    4px 2px 0 1px rgba(255,255,255,0.7),
    22px 2px 0 1px rgba(255,255,255,0.7);
}

.anime-body {
  position: absolute;
  left: 21px;
  bottom: 12px;
  width: 44px;
  height: 26px;
  border-radius: 14px 14px 8px 8px;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  border: 3px solid #111827;
}

/* Base */
a {
  color: var(--cyan);
  text-decoration: none;
}

a:hover {
  color: var(--pink);
}

.page {
  width: min(1260px, 92%);
  margin: 0 auto;
  position: relative;
  z-index: 4;
}

.glass {
  background: linear-gradient(180deg, rgba(13,16,38,0.92), rgba(9,11,28,0.9));
  border: 1px solid var(--line);
  box-shadow: var(--shadow-xl);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.neon {
  position: relative;
  overflow: hidden;
}

.neon::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1.5px;
  border-radius: inherit;
  background: var(--rainbow);
  background-size: 320% 320%;
  animation: flow 18s linear infinite;
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
  opacity: 0.82;
}

/* Humanized details: a few notebook/tape marks instead of more effects */
.info-card::after,
.repo-card::after,
.quick-link::after {
  content: "";
  position: absolute;
  right: 18px;
  top: 14px;
  width: 32px;
  height: 10px;
  border-radius: 2px;
  background: rgba(255, 225, 105, 0.14);
  border: 1px solid rgba(255, 225, 105, 0.18);
  transform: rotate(4deg);
  opacity: 0.72;
  pointer-events: none;
}

.repo-card,
.quick-link {
  position: relative;
  overflow: hidden;
}

.info-card h3::after {
  content: "";
  display: block;
  width: 42px;
  height: 3px;
  margin-top: 8px;
  border-radius: 999px;
  background: currentColor;
  opacity: 0.22;
}

@keyframes flow {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

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

.accent-pink { color: var(--pink); }
.accent-purple { color: var(--purple-soft); }
.accent-blue { color: var(--sky); }
.accent-cyan { color: var(--cyan); }
.accent-green { color: var(--green); }
.accent-yellow { color: var(--yellow); }
.accent-orange { color: var(--orange); }

.pixel2 { font-family: var(--font-pixel2); }

/* Navigation */
.navbar {
  position: sticky;
  top: 14px;
  z-index: 99;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 18px 0 22px;
  padding: 14px 18px;
  border-radius: 999px;
  background: rgba(9,12,30,0.78);
  border: 1px solid rgba(126, 146, 255, 0.22);
  box-shadow:
    0 0 18px rgba(44,229,255,0.10),
    0 0 38px rgba(155,109,255,0.10);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  font-size: 18px;
  color: var(--text);
}

.brand-mark {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-family: var(--font-pixel2);
  color: white;
  font-size: 18px;
  background: linear-gradient(135deg, var(--pink), var(--purple), var(--blue), var(--cyan));
  box-shadow:
    0 0 16px rgba(255,79,216,0.42),
    0 0 32px rgba(44,229,255,0.24);
}

.brand-name {
  font-family: var(--font-pixel2);
  letter-spacing: 0.7px;
  text-shadow: 0 0 8px rgba(44,229,255,0.72);
}

.nav-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12px;
  font-family: var(--font-pixel2);
  letter-spacing: 0.5px;
}

.nav-links a {
  color: #dce7ff;
  opacity: 0.92;
  transition: 0.2s;
}

.nav-links a:hover {
  transform: translateY(-2px);
  color: var(--yellow);
  text-shadow: 0 0 8px rgba(255,225,105,0.65);
}

/* Ticker */
.ticker {
  padding: 12px 0;
  border-radius: 24px;
  overflow: hidden;
  margin-bottom: 24px;
  background: rgba(9,12,30,0.82);
  border: 1px solid rgba(126,146,255,0.22);
  box-shadow: 0 0 16px rgba(44,229,255,0.08);
}

.ticker-track {
  display: flex;
  gap: 38px;
  width: max-content;
  padding-left: 30px;
  animation: marquee 30s linear infinite;
  font-family: var(--font-pixel);
  font-size: 9px;
  white-space: nowrap;
}

.ticker-track span:nth-child(8n+1) { color: var(--pink); }
.ticker-track span:nth-child(8n+2) { color: var(--purple); }
.ticker-track span:nth-child(8n+3) { color: var(--cyan); }
.ticker-track span:nth-child(8n+4) { color: var(--green); }
.ticker-track span:nth-child(8n+5) { color: var(--yellow); }
.ticker-track span:nth-child(8n+6) { color: var(--orange); }
.ticker-track span:nth-child(8n+7) { color: var(--blue); }
.ticker-track span:nth-child(8n+8) { color: var(--pink-soft); }

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1.06fr 0.94fr;
  gap: 24px;
  padding-bottom: 34px;
}

.hero-main {
  min-height: 760px;
  padding: 44px;
  border-radius: var(--radius-xl);
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.hero-main::after {
  content: "";
  position: absolute;
  width: 460px;
  height: 460px;
  top: -120px;
  right: -130px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, var(--pink), var(--purple), var(--blue), var(--cyan), var(--green), var(--yellow), var(--pink));
  opacity: 0.16;
  filter: blur(3px);
  animation: spin 18s linear infinite;
}

.hero-main::before {
  content: "";
  position: absolute;
  left: -110px;
  bottom: -110px;
  width: 350px;
  height: 350px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,79,216,0.16), transparent 70%);
  pointer-events: none;
}

.hero-chip {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(7,10,24,0.82);
  border: 1px solid rgba(44,229,255,0.26);
  font-family: var(--font-pixel2);
  font-size: 12px;
  color: white;
  box-shadow: 0 0 16px rgba(44,229,255,0.14);
  position: relative;
  z-index: 2;
  letter-spacing: 0.8px;
}

.live-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 12px rgba(113,255,176,0.9);
}

.hero h1 {
  position: relative;
  z-index: 2;
  font-size: clamp(44px, 7vw, 92px);
  line-height: 0.95;
  letter-spacing: -2px;
  margin-bottom: 16px;
  font-weight: 900;
}

.title-small {
  display: block;
  font-family: var(--font-pixel2);
  font-size: clamp(16px, 2vw, 24px);
  letter-spacing: 1px;
  color: var(--yellow);
  margin-bottom: 14px;
  text-shadow: 0 0 8px rgba(255,225,105,0.62);
}

.rainbow-title {
  display: block;
  background: var(--rainbow);
  background-size: 320% 320%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: flow 16s linear infinite;
}

.hero-sub {
  display: block;
  margin-top: 14px;
  font-size: clamp(16px, 1.8vw, 23px);
  color: #dce7ff;
  font-family: var(--font-pixel2);
  letter-spacing: 1px;
  line-height: 1.35;
}

.typebox {
  position: relative;
  z-index: 5;
  width: fit-content;
  max-width: 100%;
  min-height: 60px;
  margin-bottom: 18px;
  padding: 10px 18px;
  border-radius: 16px;
  background: #050915;
  border: 2px solid rgba(44,229,255,0.42);
  box-shadow:
    0 0 18px rgba(44,229,255,0.22),
    0 0 34px rgba(255,79,216,0.12),
    inset 0 0 16px rgba(44,229,255,0.08);
  font-family: var(--font-terminal);
  font-size: 30px;
  line-height: 1.2;
  color: #d8f7ff;
  white-space: nowrap;
  overflow: hidden;
  border-right: 4px solid var(--green);
  animation: blink 0.8s step-end infinite;
}

.typebox span {
  color: var(--green);
}

@keyframes blink {
  50% { border-right-color: transparent; }
}

.hero-desc {
  position: relative;
  z-index: 2;
  max-width: 740px;
  font-size: 18px;
  color: var(--muted);
  margin-bottom: 26px;
}

.hero-actions {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 22px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 18px;
  border-radius: 999px;
  font-weight: 900;
  transition: 0.22s;
  border: 1px solid transparent;
  font-family: var(--font-pixel2);
  letter-spacing: 0.8px;
  font-size: 14px;
}

.btn:hover {
  transform: translateY(-3px) scale(1.02);
}

.btn-primary {
  color: white;
  background: var(--rainbow);
  background-size: 320% 320%;
  animation: flow 16s linear infinite;
  box-shadow:
    0 0 10px rgba(255,79,216,0.35),
    0 0 28px rgba(44,229,255,0.22);
}

.btn-secondary {
  color: white;
  background: rgba(9,13,30,0.82);
  border-color: rgba(126,146,255,0.24);
}

.btn-secondary:hover {
  box-shadow: 0 0 16px rgba(44,229,255,0.14);
}

.tags {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag {
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-family: var(--font-pixel2);
  color: white;
  background: rgba(10,14,31,0.88);
  border: 1px solid rgba(126,146,255,0.24);
  letter-spacing: 0.5px;
}

.hero-side {
  display: grid;
  gap: 18px;
}

/* Enhanced game stage */
.manga-cover {
  min-height: 500px;
  padding: 18px;
  border-radius: 30px;
  background:
    radial-gradient(circle at 30% 20%, rgba(255,79,216,0.14), transparent 26%),
    radial-gradient(circle at 80% 70%, rgba(44,229,255,0.12), transparent 24%),
    linear-gradient(180deg, rgba(13,16,38,0.96), rgba(8,10,24,0.92));
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.manga-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle, rgba(255,255,255,0.06) 1.2px, transparent 1.4px);
  background-size: 12px 12px;
  opacity: 0.55;
  pointer-events: none;
}

.cover-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-pixel2);
  color: white;
  margin-bottom: 14px;
  position: relative;
  z-index: 2;
  letter-spacing: 0.8px;
}

.cover-title span:last-child {
  color: var(--yellow);
  text-shadow: 0 0 8px rgba(255,225,105,0.55);
}

.arcade-stage {
  min-height: 386px;
  border-radius: 22px;
  position: relative;
  overflow: hidden;
  border: 3px solid rgba(255,255,255,0.92);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.16) 0 1px, transparent 1px 100%) 0 0 / 100% 22px,
    linear-gradient(90deg, rgba(255,255,255,0.10) 0 1px, transparent 1px 100%) 0 0 / 22px 100%,
    linear-gradient(180deg, #111b4f 0%, #213c92 38%, #3573d9 69%, #6cc8ff 100%);
  box-shadow:
    0 0 18px rgba(44,229,255,0.12),
    inset 0 -80px 130px rgba(0,0,0,0.08);
  z-index: 2;
  image-rendering: pixelated;
}

.arcade-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(circle at 12% 24%, rgba(255,255,255,0.24) 0 2px, transparent 3px),
    radial-gradient(circle at 74% 18%, rgba(255,255,255,0.22) 0 2px, transparent 3px),
    radial-gradient(circle at 86% 46%, rgba(255,255,255,0.18) 0 2px, transparent 3px),
    linear-gradient(110deg, transparent 0 18%, rgba(255,255,255,0.10) 18% 19%, transparent 19% 100%);
  pointer-events: none;
  opacity: 0.72;
}

.stage-hud {
  position: absolute;
  z-index: 20;
  left: 16px;
  top: 14px;
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(8,12,28,0.78);
  border: 2px solid rgba(255,255,255,0.85);
  font-family: var(--font-pixel2);
  font-size: 12px;
  color: white;
  box-shadow: 4px 4px 0 rgba(15,23,42,0.42);
}

.mini-hp {
  display: inline-flex;
  gap: 3px;
  align-items: center;
  padding-left: 6px;
  border-left: 2px solid rgba(255,255,255,0.35);
}

.mini-hp i {
  display: block;
  width: 8px;
  height: 8px;
  background: var(--green);
  border: 1px solid #111827;
  box-shadow: 0 0 6px rgba(113,255,176,0.65);
}

.score-chip {
  position: absolute;
  z-index: 20;
  top: 14px;
  right: 16px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(8,12,28,0.78);
  border: 2px solid rgba(255,255,255,0.85);
  color: var(--yellow);
  font-family: var(--font-pixel2);
  font-size: 12px;
  box-shadow: 4px 4px 0 rgba(15,23,42,0.42);
}

.level-name {
  position: absolute;
  z-index: 18;
  left: 50%;
  top: 54px;
  transform: translateX(-50%);
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.92);
  color: #111827;
  border: 3px solid #111827;
  box-shadow: 4px 4px 0 rgba(15,23,42,0.34);
  font-family: var(--font-pixel2);
  font-size: 13px;
  letter-spacing: 0.6px;
  white-space: nowrap;
}

.cover-caption {
  position: absolute;
  z-index: 20;
  right: 18px;
  bottom: 14px;
  padding: 8px 12px;
  background: var(--yellow);
  color: #111827;
  border: 3px solid #111827;
  box-shadow: 5px 5px 0 rgba(15,23,42,0.45);
  transform: rotate(-4deg);
  font-family: var(--font-pixel2);
  font-size: 15px;
  letter-spacing: 0.5px;
}

.sun {
  position: absolute;
  width: 76px;
  height: 76px;
  right: 42px;
  top: 56px;
  border-radius: 50%;
  z-index: 2;
  background:
    linear-gradient(90deg, transparent 0 36%, rgba(255,255,255,0.25) 36% 42%, transparent 42% 100%),
    radial-gradient(circle, #fff7be, var(--yellow));
  box-shadow: 0 0 24px rgba(255,225,105,0.56);
  border: 3px solid rgba(255,255,255,0.32);
}

.pixel-cloud {
  position: absolute;
  z-index: 4;
  width: 24px;
  height: 24px;
  background: #f5f8ff;
  box-shadow:
    24px 0 0 #f5f8ff,
    48px 0 0 #f5f8ff,
    12px -12px 0 #f5f8ff,
    36px -12px 0 #f5f8ff,
    24px -24px 0 #f5f8ff;
  opacity: 0.96;
  filter: drop-shadow(4px 4px 0 rgba(15,23,42,0.22));
}

.pixel-cloud.c1 { top: 82px; left: 30px; transform: scale(0.72); }
.pixel-cloud.c2 { top: 120px; right: 138px; transform: scale(0.82); }
.pixel-cloud.c3 { top: 178px; left: 160px; transform: scale(0.62); }

.speed-line {
  position: absolute;
  height: 3px;
  background: rgba(255,255,255,0.5);
  border-radius: 999px;
  transform: rotate(-16deg);
  z-index: 1;
}

.speed-line.l1 { width: 110px; top: 74px; left: 28px; }
.speed-line.l2 { width: 150px; top: 104px; right: 16px; }
.speed-line.l3 { width: 90px; top: 172px; left: 146px; }
.speed-line.l4 { width: 130px; bottom: 122px; right: 78px; }

.mountain {
  position: absolute;
  bottom: 58px;
  z-index: 1;
  width: 0;
  height: 0;
  border-left: 90px solid transparent;
  border-right: 90px solid transparent;
  border-bottom: 124px solid rgba(53, 102, 197, 0.58);
  filter: brightness(0.96);
}

.mountain::after {
  content: "";
  position: absolute;
  left: -28px;
  top: 42px;
  width: 56px;
  height: 24px;
  background: rgba(255,255,255,0.18);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

.mountain.m1 { left: -26px; }
.mountain.m2 { left: 118px; border-left-width: 70px; border-right-width: 70px; border-bottom-width: 98px; }
.mountain.m3 { right: 80px; border-left-width: 84px; border-right-width: 84px; border-bottom-width: 112px; }

.pixel-bush {
  position: absolute;
  bottom: 54px;
  z-index: 2;
  width: 96px;
  height: 44px;
  background:
    linear-gradient(90deg, #21b95f 0 20%, #2ad071 20% 40%, #21b95f 40% 60%, #2ad071 60% 80%, #21b95f 80% 100%);
  border: 4px solid #11572d;
  box-shadow:
    inset 0 6px 0 rgba(255,255,255,0.10),
    0 4px 0 rgba(17,87,45,0.35);
  clip-path: polygon(0 100%, 0 45%, 12% 45%, 12% 24%, 25% 24%, 25% 10%, 42% 10%, 42% 28%, 58% 28%, 58% 8%, 75% 8%, 75% 30%, 88% 30%, 88% 48%, 100% 48%, 100% 100%);
}

.pixel-bush.b1 { left: 22px; }
.pixel-bush.b2 { left: 318px; transform: scale(0.92); }

.brick,
.question,
.code-block {
  position: absolute;
  width: 30px;
  height: 30px;
  top: 128px;
  z-index: 6;
  border-top: 4px solid #ffd29e;
  border-left: 4px solid #ffd29e;
  border-right: 4px solid #9d5a16;
  border-bottom: 4px solid #9d5a16;
  box-shadow: 0 3px 0 rgba(0,0,0,0.18);
}

.brick {
  background:
    linear-gradient(0deg, rgba(0,0,0,0.06), rgba(0,0,0,0.06)),
    linear-gradient(90deg, #e79c40 0 46%, #d98528 46% 54%, #e79c40 54% 100%);
}

.brick.b1 { left: 150px; }
.brick.b2 { left: 278px; }

.question {
  left: 192px;
  background: linear-gradient(180deg, #ffd95a, #f1b700);
}

.question::after {
  content: "?";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-pixel2);
  font-size: 16px;
  color: #8a5100;
  text-shadow: 1px 1px 0 rgba(255,255,255,0.3);
}

.code-block {
  left: 235px;
  background: linear-gradient(180deg, #9fffe0, #22d3ee);
  border-top-color: #ddfff6;
  border-left-color: #ddfff6;
  border-right-color: #0b8ca0;
  border-bottom-color: #0b8ca0;
}

.code-block::after {
  content: "PY";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #083344;
  font-family: var(--font-pixel2);
  font-size: 13px;
  font-weight: 700;
}

.coin {
  position: absolute;
  z-index: 7;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff4a3, #ffd84d 65%, #f5b700);
  box-shadow: 0 0 12px rgba(255,216,77,0.74);
  border: 2px solid rgba(255,255,255,0.34);
  animation: coinbob 1.6s ease-in-out infinite;
}

.coin::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 3px;
  width: 4px;
  height: 10px;
  border-radius: 999px;
  background: rgba(170, 115, 0, 0.62);
}

.coin.c1 { left: 198px; top: 84px; }
.coin.c2 { left: 228px; top: 70px; animation-delay: 0.18s; }
.coin.c3 { left: 258px; top: 84px; animation-delay: 0.34s; }

@keyframes coinbob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.platform {
  position: absolute;
  height: 22px;
  background: #b66d3d;
  border-top: 4px solid #d18a57;
  border-bottom: 4px solid #7c4422;
  z-index: 5;
}

.platform.p1 { width: 92px; left: 58px; top: 232px; }
.platform.p2 { width: 112px; left: 182px; top: 196px; }
.platform.p3 { width: 88px; left: 318px; top: 244px; }

.portal {
  position: absolute;
  z-index: 5;
  left: 318px;
  bottom: 72px;
  width: 54px;
  height: 76px;
  border-radius: 50% 50% 12px 12px;
  border: 5px solid #111827;
  background:
    radial-gradient(ellipse at center, rgba(255,255,255,0.82) 0 12%, rgba(44,229,255,0.65) 12% 36%, rgba(155,109,255,0.72) 36% 64%, rgba(255,79,216,0.62) 64% 100%);
  box-shadow:
    0 0 18px rgba(44,229,255,0.55),
    0 0 28px rgba(255,79,216,0.26);
  animation: portalPulse 1.8s ease-in-out infinite;
}

@keyframes portalPulse {
  0%, 100% { filter: brightness(1); transform: scale(1); }
  50% { filter: brightness(1.12); transform: scale(1.03); }
}

.slime {
  position: absolute;
  z-index: 6;
  left: 258px;
  bottom: 54px;
  width: 38px;
  height: 30px;
  background: linear-gradient(180deg, #9fffe0, #35d181);
  border: 3px solid #0f5132;
  border-radius: 50% 50% 12px 12px;
  box-shadow: inset 0 5px 0 rgba(255,255,255,0.18), 0 4px 0 rgba(0,0,0,0.2);
  animation: slimeHop 1.4s ease-in-out infinite;
}

.slime::before,
.slime::after {
  content: "";
  position: absolute;
  top: 10px;
  width: 5px;
  height: 5px;
  background: #111827;
}

.slime::before { left: 10px; }
.slime::after { right: 10px; }

@keyframes slimeHop {
  0%, 100% { transform: translateY(0) scaleX(1.05); }
  50% { transform: translateY(-6px) scaleX(0.95); }
}

.pipe {
  position: absolute;
  z-index: 6;
  bottom: 48px;
  right: 38px;
  width: 72px;
  height: 92px;
  background: #27c96d;
  border-left: 4px solid #87ffb3;
  border-top: 4px solid #87ffb3;
  border-right: 4px solid #148946;
  border-bottom: 4px solid #148946;
}

.pipe::before {
  content: "";
  position: absolute;
  left: -8px;
  top: -20px;
  width: 84px;
  height: 24px;
  background: #31dd79;
  border-left: 4px solid #8dffba;
  border-top: 4px solid #8dffba;
  border-right: 4px solid #148946;
  border-bottom: 4px solid #148946;
}

.flagpole {
  position: absolute;
  z-index: 6;
  right: 126px;
  bottom: 48px;
  width: 8px;
  height: 134px;
  background: linear-gradient(180deg, #f5f8ff, #dbe7ff);
  border: 2px solid #111827;
}

.flagpole::before {
  content: "";
  position: absolute;
  left: -4px;
  top: -12px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--yellow);
  border: 2px solid #111827;
}

.flag {
  position: absolute;
  left: 6px;
  top: 18px;
  width: 34px;
  height: 22px;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  border: 2px solid #111827;
  clip-path: polygon(0 0, 100% 20%, 78% 50%, 100% 80%, 0 100%);
  animation: waveflag 1.8s ease-in-out infinite;
  transform-origin: left center;
}

@keyframes waveflag {
  0%, 100% { transform: skewY(0deg); }
  50% { transform: skewY(4deg); }
}

.ground {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 52px;
  background:
    linear-gradient(0deg, rgba(0,0,0,0.08), rgba(0,0,0,0.08)),
    linear-gradient(90deg, #94602f 0 16%, #8a5829 16% 33%, #94602f 33% 50%, #8a5829 50% 66%, #94602f 66% 83%, #8a5829 83% 100%);
  border-top: 6px solid #c58649;
  box-shadow: inset 0 8px 0 rgba(255,255,255,0.08);
  z-index: 5;
}

.ground::after {
  content: "";
  position: absolute;
  inset: 8px 0 0;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.12) 0 2px, transparent 2px 100%) 0 0 / 32px 100%;
  opacity: 0.7;
}

.pixel-hero {
  position: absolute;
  left: 96px;
  bottom: 56px;
  width: 82px;
  height: 110px;
  transform: scale(1.08);
  z-index: 8;
  animation: idle 1.1s ease-in-out infinite;
}

@keyframes idle {
  0%, 100% { transform: scale(1.08) translateY(0); }
  50% { transform: scale(1.08) translateY(-2px); }
}

.pixel-hero .part {
  position: absolute;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.15);
}

.pixel-hero .hat {
  width: 44px;
  height: 14px;
  left: 18px;
  top: 0;
  background: #ff5e73;
  border-top: 3px solid #ff9aa7;
}

.pixel-hero .hat2 {
  width: 60px;
  height: 10px;
  left: 10px;
  top: 10px;
  background: #e2455c;
}

.pixel-hero .hair {
  width: 12px;
  height: 12px;
  left: 48px;
  top: 22px;
  background: #5a3428;
}

.pixel-hero .head {
  width: 42px;
  height: 30px;
  left: 20px;
  top: 18px;
  background: #ffd3b0;
}

.pixel-hero .eye {
  width: 5px;
  height: 5px;
  left: 46px;
  top: 30px;
  background: #111827;
}

.pixel-hero .scarf {
  width: 34px;
  height: 8px;
  left: 18px;
  top: 46px;
  background: var(--yellow);
  border: 2px solid #111827;
}

.pixel-hero .scarf::after {
  content: "";
  position: absolute;
  right: -13px;
  top: 1px;
  width: 14px;
  height: 7px;
  background: var(--yellow);
  border: 2px solid #111827;
  border-left: 0;
  animation: scarfWave 1.2s ease-in-out infinite;
}

@keyframes scarfWave {
  0%, 100% { transform: skewY(0deg); }
  50% { transform: skewY(-14deg); }
}

.pixel-hero .body {
  width: 36px;
  height: 30px;
  left: 22px;
  top: 54px;
  background: #2a8dff;
  border-top: 4px solid #77b3ff;
}

.pixel-hero .shirt {
  width: 18px;
  height: 18px;
  left: 31px;
  top: 54px;
  background: #ff626b;
}

.pixel-hero .arm1 {
  width: 11px;
  height: 20px;
  left: 12px;
  top: 56px;
  background: #ffd3b0;
}

.pixel-hero .arm2 {
  width: 11px;
  height: 20px;
  left: 58px;
  top: 56px;
  background: #ffd3b0;
}

.pixel-hero .leg1 {
  width: 12px;
  height: 20px;
  left: 24px;
  top: 84px;
  background: #3152e3;
}

.pixel-hero .leg2 {
  width: 12px;
  height: 20px;
  left: 44px;
  top: 84px;
  background: #3152e3;
}

.pixel-hero .shoe1 {
  width: 18px;
  height: 8px;
  left: 18px;
  top: 106px;
  background: #6f3e22;
}

.pixel-hero .shoe2 {
  width: 18px;
  height: 8px;
  left: 41px;
  top: 106px;
  background: #6f3e22;
}

.speech-bubble {
  margin-top: 14px;
  position: relative;
  padding: 14px 16px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(238,245,255,0.94));
  color: #111827;
  font-family: var(--font-pixel2);
  font-size: 13px;
  line-height: 1.6;
  box-shadow: 6px 6px 0 rgba(0,0,0,0.42);
  border: 3px solid #111827;
  z-index: 2;
}

.speech-bubble::after {
  content: "";
  position: absolute;
  left: 26px;
  bottom: -14px;
  width: 20px;
  height: 20px;
  background: white;
  border-right: 3px solid #111827;
  border-bottom: 3px solid #111827;
  transform: rotate(45deg);
}

/* Sections */
.stats-card {
  padding: 24px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(13,16,38,0.96), rgba(9,11,28,0.92));
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
}

.card-title {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 8px;
}

.stats-card p {
  color: var(--muted);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 16px;
}

.stat {
  padding: 16px;
  border-radius: 18px;
  background: rgba(9,13,30,0.92);
  border: 1px solid var(--line);
  transition: 0.2s;
}

.stat:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 16px rgba(44,229,255,0.12);
}

.stat strong {
  display: block;
  font-size: 22px;
  font-family: var(--font-pixel2);
  color: white;
  margin-bottom: 4px;
}

.stat span {
  font-size: 13px;
  color: var(--soft);
}

.mission-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.mission-list div {
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(9,13,30,0.92);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.mission-list strong {
  color: var(--yellow);
  font-family: var(--font-pixel2);
  letter-spacing: 0.8px;
}

section {
  padding: 32px;
  border-radius: var(--radius-xl);
  margin-bottom: 24px;
}

.section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}

.section-title h2 {
  font-size: clamp(26px, 3vw, 36px);
  letter-spacing: -1px;
  font-weight: 900;
}

.section-title .label {
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(9,14,31,0.95);
  border: 1px solid var(--line);
  color: var(--yellow);
  font-family: var(--font-pixel);
  font-size: 8px;
  box-shadow: 0 0 10px rgba(255,225,105,0.12);
  white-space: nowrap;
}

.stage-title-left {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

/* Distinct non-emoji stage visuals */
.stage-visual {
  width: 70px;
  height: 62px;
  border-radius: 18px;
  position: relative;
  flex: 0 0 auto;
  display: inline-block;
  background: rgba(8, 12, 28, 0.96);
  border: 3px solid currentColor;
  box-shadow:
    5px 5px 0 rgba(0,0,0,0.38),
    0 0 16px color-mix(in srgb, currentColor 35%, transparent);
  overflow: hidden;
}

.stage-visual::before,
.stage-visual::after,
.stage-visual span::before,
.stage-visual span::after {
  content: "";
  position: absolute;
  box-sizing: border-box;
}

.stage-visual.profile::before {
  left: 20px;
  top: 12px;
  width: 30px;
  height: 30px;
  border-radius: 48%;
  background: #ffd3b0;
  border: 3px solid currentColor;
}

.stage-visual.profile::after {
  left: 16px;
  top: 6px;
  width: 38px;
  height: 18px;
  border-radius: 18px 18px 8px 8px;
  background: linear-gradient(90deg, var(--pink), var(--purple), var(--cyan));
  border: 3px solid currentColor;
}

.stage-visual.profile span::before {
  left: 27px;
  top: 25px;
  width: 4px;
  height: 5px;
  background: currentColor;
  box-shadow: 13px 0 0 currentColor;
}

.stage-visual.profile span::after {
  left: 18px;
  bottom: 5px;
  width: 34px;
  height: 14px;
  border-radius: 10px 10px 0 0;
  background: rgba(126,215,255,0.75);
  border: 3px solid currentColor;
}

.stage-visual.quest::before {
  inset: 10px;
  border: 3px solid currentColor;
  background:
    radial-gradient(circle at 18% 22%, currentColor 0 4px, transparent 5px),
    radial-gradient(circle at 50% 52%, currentColor 0 4px, transparent 5px),
    radial-gradient(circle at 82% 78%, currentColor 0 4px, transparent 5px);
  opacity: 0.95;
}

.stage-visual.quest::after {
  left: 18px;
  top: 20px;
  width: 36px;
  height: 22px;
  border-top: 3px dashed currentColor;
  border-right: 3px dashed currentColor;
  transform: rotate(18deg);
}

.stage-visual.comic::before {
  left: 9px;
  top: 10px;
  width: 22px;
  height: 42px;
  border: 3px solid currentColor;
  background: rgba(255,255,255,0.08);
}

.stage-visual.comic::after {
  left: 36px;
  top: 10px;
  width: 25px;
  height: 18px;
  border: 3px solid currentColor;
  background: rgba(255,225,105,0.18);
  box-shadow: 0 24px 0 -3px rgba(9,12,30,0.9), 0 24px 0 0 currentColor;
}

.stage-visual.python::before {
  left: 10px;
  top: 12px;
  width: 50px;
  height: 36px;
  border: 3px solid currentColor;
  border-radius: 8px;
  background: rgba(4,8,20,0.9);
}

.stage-visual.python::after {
  left: 18px;
  top: 23px;
  width: 16px;
  height: 4px;
  background: currentColor;
  box-shadow: 0 10px 0 currentColor, 22px 10px 0 currentColor;
}

.stage-visual.projects::before {
  left: 12px;
  top: 22px;
  width: 46px;
  height: 26px;
  border: 3px solid currentColor;
  background: rgba(255,171,87,0.36);
}

.stage-visual.projects::after {
  left: 18px;
  top: 14px;
  width: 34px;
  height: 16px;
  border: 3px solid currentColor;
  border-bottom: none;
  border-radius: 12px 12px 0 0;
}

.stage-visual.projects span::before {
  left: 32px;
  top: 28px;
  width: 7px;
  height: 12px;
  background: currentColor;
}

.stage-visual.github::before {
  left: 12px;
  top: 13px;
  width: 46px;
  height: 34px;
  border: 3px solid currentColor;
  border-radius: 8px;
  background:
    linear-gradient(currentColor 0 0) 8px 9px / 18px 3px no-repeat,
    linear-gradient(currentColor 0 0) 8px 18px / 30px 3px no-repeat,
    linear-gradient(currentColor 0 0) 8px 27px / 24px 3px no-repeat;
}

.stage-visual.github::after {
  left: 11px;
  top: 11px;
  width: 48px;
  height: 9px;
  background: currentColor;
  opacity: 0.35;
}

.stage-visual.skills::before {
  left: 16px;
  bottom: 13px;
  width: 8px;
  height: 18px;
  background: currentColor;
  box-shadow: 14px -12px 0 currentColor, 28px -5px 0 currentColor;
}

.stage-visual.skills::after {
  left: 12px;
  bottom: 10px;
  width: 48px;
  height: 3px;
  background: currentColor;
}

.stage-visual.roadmap::before {
  left: 12px;
  top: 14px;
  width: 45px;
  height: 35px;
  border-top: 3px dashed currentColor;
  border-right: 3px dashed currentColor;
  transform: rotate(12deg);
}

.stage-visual.roadmap::after {
  left: 12px;
  top: 14px;
  width: 10px;
  height: 10px;
  background: currentColor;
  border-radius: 50%;
  box-shadow: 22px 18px 0 currentColor, 44px 30px 0 currentColor;
}

.stage-visual.contact::before {
  left: 10px;
  top: 17px;
  width: 50px;
  height: 30px;
  border: 3px solid currentColor;
  background: rgba(255,255,255,0.05);
}

.stage-visual.contact::after {
  left: 15px;
  top: 22px;
  width: 40px;
  height: 22px;
  background:
    linear-gradient(145deg, transparent 0 47%, currentColor 47% 53%, transparent 53%),
    linear-gradient(35deg, transparent 0 47%, currentColor 47% 53%, transparent 53%);
}

.stage-cyan { color: var(--cyan); text-shadow: 0 0 8px rgba(44,229,255,0.65); }
.stage-pink { color: var(--pink); text-shadow: 0 0 8px rgba(255,79,216,0.65); }
.stage-yellow { color: var(--yellow); text-shadow: 0 0 8px rgba(255,225,105,0.55); }
.stage-green { color: var(--green); text-shadow: 0 0 8px rgba(113,255,176,0.55); }
.stage-purple { color: var(--purple-soft); text-shadow: 0 0 8px rgba(155,109,255,0.60); }
.stage-blue { color: var(--sky); text-shadow: 0 0 8px rgba(126,215,255,0.5); }
.stage-orange { color: var(--orange); text-shadow: 0 0 8px rgba(255,171,87,0.5); }

/* Layout cards */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.info-card {
  padding: 22px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(13,16,38,0.96), rgba(9,11,28,0.92));
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  transition: 0.24s;
  position: relative;
  overflow: hidden;
}

.info-card::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 4px;
  background: var(--rainbow);
  transform: scaleX(0);
  transform-origin: left;
  transition: 0.28s;
}

.info-card:hover {
  transform: translateY(-6px);
  box-shadow:
    0 0 14px rgba(44,229,255,0.12),
    0 0 28px rgba(255,79,216,0.10);
}

.info-card:hover::before {
  transform: scaleX(1);
}

.icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  margin-bottom: 14px;
  font-family: var(--font-pixel2);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #07111f;
  background: linear-gradient(135deg, #ffffff 0%, #dff8ff 38%, #fff6b8 100%);
  border: 3px solid #ffffff;
  box-shadow:
    0 0 0 2px rgba(44,229,255,0.35),
    0 0 16px rgba(44,229,255,0.22),
    0 0 28px rgba(255,79,216,0.12);
  image-rendering: pixelated;
}

.icon.me { background: linear-gradient(135deg, #ffffff, #fff6b8); box-shadow: 0 0 0 2px rgba(255,225,105,0.50), 0 0 18px rgba(255,225,105,0.22); }
.icon.go, .icon.alg { background: linear-gradient(135deg, #fff6b8, #ffd08a); box-shadow: 0 0 0 2px rgba(255,171,87,0.50), 0 0 18px rgba(255,171,87,0.22); }
.icon.data, .icon.stat { background: linear-gradient(135deg, #dff8ff, #7ed7ff); box-shadow: 0 0 0 2px rgba(126,215,255,0.50), 0 0 18px rgba(44,229,255,0.22); }
.icon.ml, .icon.lab { background: linear-gradient(135deg, #f7d2ff, #c9b0ff); box-shadow: 0 0 0 2px rgba(155,109,255,0.52), 0 0 18px rgba(255,79,216,0.20); }
.icon.net { background: linear-gradient(135deg, #d6fff0, #71ffb0); box-shadow: 0 0 0 2px rgba(113,255,176,0.48), 0 0 18px rgba(113,255,176,0.20); }
.icon.doc, .icon.py, .icon.dev { background: linear-gradient(135deg, #ffffff, #dff8ff); box-shadow: 0 0 0 2px rgba(44,229,255,0.40), 0 0 18px rgba(44,229,255,0.22); }

.info-card h3 {
  font-size: 19px;
  margin-bottom: 10px;
  font-weight: 800;
  color: white;
}

.info-card p,
.info-card li {
  color: var(--muted);
  font-size: 15px;
}

.info-card ul {
  padding-left: 18px;
  margin-top: 12px;
}

/* Comic */
.comic-section {
  background:
    radial-gradient(circle at 10% 16%, rgba(255,79,216,0.09), transparent 20%),
    radial-gradient(circle at 88% 14%, rgba(44,229,255,0.09), transparent 22%),
    linear-gradient(180deg, rgba(13,16,38,0.93), rgba(9,11,28,0.92));
}

.comic-strip {
  display: grid;
  grid-template-columns: 1fr 1.25fr 1fr;
  gap: 18px;
  align-items: stretch;
}

.comic-panel {
  padding: 22px;
  border-radius: 26px;
  background:
    radial-gradient(circle, rgba(255,255,255,0.08) 1px, transparent 1px),
    linear-gradient(180deg, rgba(14,19,44,0.98), rgba(9,12,30,0.95));
  background-size: 12px 12px, auto;
  border: 3px solid rgba(255,255,255,0.9);
  position: relative;
  overflow: hidden;
  min-height: 260px;
  box-shadow: var(--shadow-md);
}

.comic-panel::before {
  content: "";
  position: absolute;
  inset: -40px;
  background: repeating-conic-gradient(from 0deg, rgba(255,255,255,0.08) 0 4deg, transparent 4deg 12deg);
  opacity: 0.18;
  transform: translateX(-18%);
  pointer-events: none;
}

.burst-tag {
  position: absolute;
  top: 14px;
  right: 14px;
  transform: rotate(-8deg);
  padding: 8px 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--yellow), var(--orange));
  color: #111827;
  font-family: var(--font-pixel2);
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 0 12px rgba(255,225,105,0.20);
  z-index: 2;
  border: 2px solid #111827;
}

.comic-panel h3 {
  font-size: 26px;
  font-family: var(--font-pixel2);
  margin-bottom: 8px;
  color: white;
  text-shadow: 0 0 10px rgba(255,79,216,0.20);
  position: relative;
  z-index: 2;
}

.comic-panel p {
  color: var(--muted);
  font-size: 15px;
  position: relative;
  z-index: 2;
}

.manga-bubble {
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: 22px;
  background: white;
  color: #111827;
  font-family: var(--font-pixel2);
  font-size: 13px;
  line-height: 1.7;
  position: relative;
  box-shadow: 6px 6px 0 rgba(0,0,0,0.42);
  border: 3px solid #111827;
  z-index: 2;
}

.manga-bubble::after {
  content: "";
  position: absolute;
  left: 20px;
  bottom: -13px;
  width: 22px;
  height: 22px;
  background: white;
  border-right: 3px solid #111827;
  border-bottom: 3px solid #111827;
  transform: rotate(45deg);
}

.chibi-scene {
  margin-top: 18px;
  height: 155px;
  border-radius: 22px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #1c2c68 0%, #2a53b6 58%, #63b4ff 100%);
  border: 2px solid rgba(255,255,255,0.90);
  z-index: 2;
}

.chibi-ground {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 34px;
  background: #8f5a2b;
  border-top: 5px solid #c58649;
}

.chibi {
  position: absolute;
  left: 45%;
  bottom: 30px;
  width: 52px;
  height: 70px;
  transform: translateX(-50%);
}

.chibi span { position: absolute; }

.chibi .head {
  width: 34px;
  height: 30px;
  left: 9px;
  top: 8px;
  border-radius: 40%;
  background: #ffd3b0;
}

.chibi .hair {
  width: 42px;
  height: 18px;
  left: 5px;
  top: 0;
  border-radius: 50% 50% 20% 20%;
  background: linear-gradient(90deg, var(--pink), var(--purple), var(--cyan));
}

.chibi .eye1,
.chibi .eye2 {
  width: 4px;
  height: 6px;
  top: 20px;
  background: #111827;
}

.chibi .eye1 { left: 18px; }
.chibi .eye2 { left: 30px; }

.chibi .body {
  width: 32px;
  height: 28px;
  left: 10px;
  top: 38px;
  background: #2a8dff;
  border-top: 4px solid #77b3ff;
}

.chibi .cape {
  width: 40px;
  height: 36px;
  left: 7px;
  top: 38px;
  background: rgba(255,79,216,0.55);
  clip-path: polygon(0 0, 100% 0, 82% 100%, 18% 100%);
  z-index: -1;
  animation: cape 1.8s ease-in-out infinite;
}

@keyframes cape {
  0%, 100% { transform: skewX(0); }
  50% { transform: skewX(-8deg); }
}

/* Python */
.python-layout {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 18px;
}

.python-main {
  min-height: 430px;
  padding: 28px;
  border-radius: 28px;
  background:
    radial-gradient(circle at 18% 18%, rgba(255,225,105,0.14), transparent 18%),
    radial-gradient(circle at 84% 14%, rgba(44,229,255,0.16), transparent 18%),
    linear-gradient(180deg, rgba(13,16,38,0.96), rgba(9,11,28,0.92));
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}

.python-main::before {
  content: "MAIN WEAPON";
  position: absolute;
  top: 18px;
  right: 18px;
  font-family: var(--font-pixel);
  font-size: 8px;
  color: var(--yellow);
}

.python-title {
  font-size: clamp(52px, 6vw, 84px);
  line-height: 1;
  font-weight: 900;
  margin-bottom: 14px;
  font-family: var(--font-pixel2);
  background: linear-gradient(90deg, var(--yellow), var(--green), var(--cyan), var(--blue), var(--purple), var(--pink));
  background-size: 320% 320%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: flow 18s linear infinite;
}

.python-main p {
  color: var(--muted);
}

.terminal {
  margin-top: 18px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 0 18px rgba(44,229,255,0.10);
  background: #040814;
}

.terminal-bar {
  display: flex;
  gap: 7px;
  padding: 12px 14px;
  background: #12192f;
}

.terminal-bar i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: block;
}

.terminal-bar i:nth-child(1) { background: var(--red); }
.terminal-bar i:nth-child(2) { background: var(--yellow); }
.terminal-bar i:nth-child(3) { background: var(--green); }

.terminal-code {
  padding: 18px;
  font-family: var(--font-terminal);
  font-size: 30px;
  line-height: 1.5;
  color: #dce7ff;
}

.green { color: var(--green); }
.blue { color: var(--sky); }
.pink { color: var(--pink-soft); }
.yellow { color: #ffe8a0; }

/* Project / GitHub */
.project-badge {
  display: inline-block;
  margin-bottom: 10px;
  padding: 6px 10px;
  border-radius: 999px;
  color: white;
  background: linear-gradient(90deg, var(--pink), var(--purple), var(--blue));
  font-size: 11px;
  font-family: var(--font-pixel2);
  box-shadow: 0 0 12px rgba(155,109,255,0.14);
  letter-spacing: 0.6px;
}

.status-label {
  display: inline-block;
  margin-bottom: 12px;
  margin-left: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(9,13,30,0.95);
  border: 1px solid rgba(255,225,105,0.40);
  color: #fff0b0;
  font-family: var(--font-pixel2);
  font-size: 11px;
  letter-spacing: 0.6px;
}

.github-board {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 18px;
}

.github-card {
  padding: 18px;
  border-radius: 24px;
  background: rgba(9,13,30,0.94);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
}

.github-card img {
  width: 100%;
  display: block;
  border-radius: 18px;
}

.repo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 18px;
}

.repo-card {
  padding: 16px;
  border-radius: 18px;
  background: rgba(9,13,30,0.94);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  transition: 0.22s;
}

.repo-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 16px rgba(44,229,255,0.12);
}

.repo-card strong {
  display: block;
  margin-bottom: 6px;
  color: white;
  font-family: var(--font-pixel2);
  font-size: 15px;
}

.repo-card span {
  display: inline-block;
  margin-bottom: 8px;
  color: #fff0b0;
  font-family: var(--font-pixel2);
  font-size: 12px;
}

.repo-card p {
  color: var(--muted);
  font-size: 14px;
}

.quick-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.quick-link {
  padding: 18px;
  border-radius: 20px;
  background: rgba(9,13,30,0.94);
  border: 1px solid var(--line);
  transition: 0.22s;
}

.quick-link:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 16px rgba(44,229,255,0.12);
}

.quick-link strong {
  display: block;
  margin-bottom: 6px;
  font-size: 16px;
  color: white;
}

.quick-link p {
  font-size: 14px;
  color: var(--muted);
}

/* Skills / roadmap / contact */
.power-card {
  text-align: center;
  padding: 20px 16px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(13,16,38,0.96), rgba(9,11,28,0.92));
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
}

.power-card .num {
  display: block;
  font-size: 30px;
  font-family: var(--font-pixel2);
  margin-bottom: 8px;
  background: linear-gradient(90deg, var(--pink), var(--purple), var(--blue), var(--cyan), var(--green), var(--yellow));
  background-size: 320% 320%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: flow 18s linear infinite;
}

.power-card .label {
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.skill-bars {
  display: grid;
  gap: 16px;
}

.skill {
  padding: 16px;
  border-radius: 20px;
  background: rgba(9,13,30,0.94);
  border: 1px solid var(--line);
}

.skill-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-weight: 800;
}

.skill-top span:last-child {
  color: var(--soft);
  font-size: 13px;
  font-family: var(--font-pixel2);
}

.bar {
  height: 12px;
  border-radius: 999px;
  background: rgba(148,163,184,0.16);
  overflow: hidden;
}

.bar div {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--pink), var(--purple), var(--blue), var(--cyan), var(--green), var(--yellow));
  background-size: 320% 320%;
  animation: flow 18s linear infinite;
  box-shadow: 0 0 12px rgba(44,229,255,0.24);
}

.timeline {
  display: grid;
  gap: 14px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 135px 1fr;
  gap: 16px;
  padding: 18px;
  border-radius: 24px;
  background: rgba(9,13,30,0.94);
  border: 1px solid var(--line);
  transition: 0.22s;
}

.timeline-item:hover {
  transform: translateX(4px);
  box-shadow: 0 0 14px rgba(44,229,255,0.10);
}

.timeline-date {
  font-family: var(--font-pixel);
  font-size: 9px;
  color: var(--yellow);
  line-height: 1.9;
}

.timeline-content h3 {
  font-size: 18px;
  margin-bottom: 4px;
  color: white;
}

.timeline-content p {
  color: var(--muted);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.contact {
  padding: 18px;
  border-radius: 22px;
  background: rgba(9,13,30,0.94);
  border: 1px solid var(--line);
  transition: 0.22s;
  overflow-wrap: anywhere;
}

.contact:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 14px rgba(44,229,255,0.10);
}

.contact strong {
  display: block;
  margin-bottom: 6px;
  font-size: 16px;
  color: white;
}

.footer {
  padding: 18px 0 52px;
  text-align: center;
  color: var(--soft);
  font-size: 14px;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: 0.72s ease;
}

.reveal.show {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 1380px) {
  .anime-rail {
    width: 82px;
    opacity: 0.44;
    transform: scale(0.82);
  }

  .anime-rail-left { left: -8px; }
  .anime-rail-right { right: -8px; }
}

@media (max-width: 1180px) {
  .anime-rail {
    display: none;
  }
}

@media (max-width: 1080px) {
  .comic-strip,
  .repo-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 980px) {
  .hero,
  .grid-2,
  .grid-3,
  .python-layout,
  .github-board,
  .quick-links,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .nav-links {
    display: none;
  }

  .hero-main {
    min-height: auto;
  }

  .repo-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .page { width: 94%; }

  .navbar { border-radius: 24px; }

  .hero-main,
  .stats-card,
  .manga-cover,
  section,
  .info-card {
    padding: 22px;
  }

  .stats-grid,
  .repo-grid,
  .comic-strip {
    grid-template-columns: 1fr;
  }

  .timeline-item {
    grid-template-columns: 1fr;
  }

  .section-title {
    flex-direction: column;
    align-items: flex-start;
  }

  .stage-title-left {
    align-items: flex-start;
  }

  .hero h1 {
    letter-spacing: -1px;
  }

  .typebox {
    white-space: normal;
    font-size: 24px;
    min-height: 56px;
  }

  .terminal-code {
    font-size: 24px;
  }

  .cover-caption {
    font-size: 12px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .arcade-stage {
    min-height: 360px;
  }
}

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


.workbench-note {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(9, 13, 30, 0.76);
  border: 1px dashed rgba(255, 225, 105, 0.45);
  color: var(--muted);
  display: flex;
  gap: 12px;
  align-items: center;
  box-shadow: var(--shadow-md);
}

.workbench-note strong {
  color: var(--yellow);
  font-family: var(--font-pixel2);
  letter-spacing: 0.6px;
}

.workbench-note span {
  font-size: 14px;
}


.contact-status {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(9, 13, 30, 0.76);
  border: 1px dashed rgba(44, 229, 255, 0.42);
  color: var(--muted);
  display: flex;
  gap: 12px;
  align-items: center;
  box-shadow: var(--shadow-md);
}

.contact-status strong {
  color: var(--cyan);
  font-family: var(--font-pixel2);
  letter-spacing: 0.6px;
}

.contact-status span {
  font-size: 14px;
}


a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(255, 225, 105, 0.9);
  outline-offset: 4px;
}


section.glass::after {
  content: "";
  position: absolute;
  right: 28px;
  top: 20px;
  width: 54px;
  height: 12px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transform: rotate(2deg);
  pointer-events: none;
}

section.glass {
  position: relative;
}


.stage-visual {
  transform: rotate(-1deg);
}

.stage-visual:hover {
  transform: rotate(0deg) translateY(-2px);
  transition: 0.22s ease;
}


.route-sign {
  position: absolute;
  z-index: 18;
  left: 18px;
  bottom: 68px;
  padding: 5px 8px;
  background: rgba(255, 255, 255, 0.92);
  color: #111827;
  border: 3px solid #111827;
  box-shadow: 4px 4px 0 rgba(15, 23, 42, 0.34);
  font-family: var(--font-pixel2);
  font-size: 11px;
  transform: rotate(2deg);
}


/* ===== Manga side background upgrade ===== */
body::before,
body::after {
  content: "";
  position: fixed;
  top: 0;
  bottom: 0;
  width: 170px;
  pointer-events: none;
  z-index: 1;
  opacity: 0.38;
}

body::before {
  left: 0;
  background:
    radial-gradient(circle at 30% 18%, rgba(255,255,255,0.08) 0 2px, transparent 2px 7px),
    repeating-radial-gradient(circle at 30% 18%, rgba(255,255,255,0.16) 0 1.2px, transparent 1.2px 6px),
    linear-gradient(180deg, rgba(255,255,255,0.02), transparent 38%, rgba(255,255,255,0.03) 38% 68%, transparent 68%),
    linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0));
}

body::after {
  right: 0;
  background:
    radial-gradient(circle at 70% 28%, rgba(255,255,255,0.08) 0 2px, transparent 2px 7px),
    repeating-radial-gradient(circle at 70% 28%, rgba(255,255,255,0.16) 0 1.2px, transparent 1.2px 6px),
    linear-gradient(180deg, rgba(255,255,255,0.03), transparent 32%, rgba(255,255,255,0.02) 32% 74%, transparent 74%),
    linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0));
}

.manga-wall {
  position: fixed;
  top: 18px;
  bottom: 18px;
  width: 138px;
  z-index: 2;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  opacity: 0.88;
}

.manga-wall-left { left: 14px; }
.manga-wall-right { right: 14px; }

.manga-card {
  position: relative;
  flex: 1 1 0;
  min-height: 112px;
  border-radius: 20px;
  overflow: hidden;
  border: 3px solid rgba(255,255,255,0.9);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.12), rgba(255,255,255,0.03)),
    linear-gradient(180deg, rgba(13,16,34,0.86), rgba(6,8,20,0.9));
  box-shadow: 0 16px 40px rgba(0,0,0,0.32);
}

.manga-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-radial-gradient(circle at 50% 50%, rgba(255,255,255,0.12) 0 1px, transparent 1px 5px),
    linear-gradient(135deg, rgba(255,255,255,0.07), transparent 35%);
  mix-blend-mode: screen;
  opacity: 0.26;
}

.manga-card::after {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
}

.panel-tag {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 3;
  padding: 4px 7px;
  background: rgba(255,255,255,0.96);
  border: 2px solid #111827;
  color: #111827;
  font-family: var(--font-pixel2);
  font-size: 9px;
  letter-spacing: 0.4px;
  box-shadow: 3px 3px 0 rgba(17,24,39,0.22);
}

.tone-card {
  background:
    radial-gradient(circle at 50% 50%, rgba(255,255,255,0.06) 0 24%, transparent 24%),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.12) 0 1px, transparent 1px 7px),
    linear-gradient(180deg, rgba(18,20,39,0.95), rgba(6,8,18,0.96));
}

.eye-panel {
  position: absolute;
  left: 18px;
  right: 18px;
  top: 48px;
  height: 76px;
}

.eye {
  position: absolute;
  top: 10px;
  width: 42px;
  height: 28px;
  border: 4px solid #fff;
  border-radius: 80% 20% 80% 20% / 70% 30% 70% 30%;
  transform: rotate(-6deg);
  box-shadow: inset 0 -8px 0 rgba(255,255,255,0.12);
}

.eye-left { left: 6px; }
.eye-right { right: 6px; transform: scaleX(-1) rotate(-6deg); }

.eye::before {
  content: "";
  position: absolute;
  left: 13px;
  top: 6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(255,255,255,0.15);
}

.eye-shine {
  position: absolute;
  left: 50%;
  bottom: 8px;
  width: 64px;
  height: 2px;
  transform: translateX(-50%);
  background: repeating-linear-gradient(90deg, rgba(255,255,255,0.9) 0 10px, transparent 10px 15px);
  opacity: 0.7;
}

.impact-text {
  position: absolute;
  right: 10px;
  bottom: 12px;
  font-family: var(--font-pixel2);
  font-size: 16px;
  color: rgba(255,255,255,0.96);
  transform: rotate(-8deg);
}

.motion-card {
  background:
    radial-gradient(circle at 50% 52%, rgba(255,255,255,0.18), transparent 22%),
    repeating-linear-gradient(105deg, rgba(255,255,255,0.16) 0 2px, transparent 2px 10px),
    linear-gradient(180deg, rgba(14,18,36,0.95), rgba(7,9,18,0.96));
}

.speed-core {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  transform: translate(-50%, -50%);
  box-shadow:
    0 0 0 7px rgba(255,255,255,0.12),
    0 0 0 18px rgba(255,255,255,0.06);
}

.bubble-mini,
.dialog-bubble-bw {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 12px;
  padding: 8px 6px;
  text-align: center;
  background: rgba(255,255,255,0.98);
  color: #111827;
  border: 3px solid #111827;
  border-radius: 14px;
  font-family: var(--font-pixel2);
  font-size: 10px;
  line-height: 1.35;
}

.portrait-card {
  background:
    repeating-radial-gradient(circle at 80% 18%, rgba(255,255,255,0.14) 0 1px, transparent 1px 6px),
    linear-gradient(180deg, rgba(14,18,36,0.95), rgba(7,9,18,0.96));
}

.portrait-head {
  position: absolute;
  left: 32px;
  top: 42px;
  width: 72px;
  height: 76px;
  border-radius: 46% 46% 52% 52%;
  background: linear-gradient(180deg, rgba(255,255,255,0.84), rgba(255,255,255,0.56));
  border: 4px solid rgba(255,255,255,0.95);
  box-shadow: inset 0 -10px 0 rgba(0,0,0,0.14);
}

.portrait-hair {
  position: absolute;
  left: 24px;
  top: 26px;
  width: 88px;
  height: 44px;
  border-radius: 50% 50% 28% 28%;
  background:
    linear-gradient(180deg, rgba(255,255,255,1), rgba(210,210,210,0.85));
  border: 4px solid rgba(255,255,255,0.96);
  border-bottom: none;
  transform: rotate(-5deg);
}

.portrait-neck {
  position: absolute;
  left: 56px;
  top: 108px;
  width: 24px;
  height: 18px;
  background: rgba(255,255,255,0.84);
  border: 4px solid rgba(255,255,255,0.95);
  border-top: none;
}

.portrait-collar {
  position: absolute;
  left: 34px;
  bottom: 16px;
  width: 68px;
  height: 28px;
  border-radius: 12px 12px 0 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(255,255,255,0.6));
  border: 4px solid rgba(255,255,255,0.95);
}

.portrait-lines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(118deg, transparent 0 12px, rgba(255,255,255,0.12) 12px 13px, transparent 13px 18px);
  opacity: 0.7;
}

.burst-card {
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,0.15) 0 2px, transparent 2px 12px),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.08) 0 2px, transparent 2px 12px),
    linear-gradient(180deg, rgba(12,16,34,0.96), rgba(5,8,18,0.98));
}

.burst-card.alt {
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,0.12) 0 2px, transparent 2px 11px),
    repeating-linear-gradient(45deg, rgba(255,255,255,0.08) 0 2px, transparent 2px 11px),
    linear-gradient(180deg, rgba(12,16,34,0.96), rgba(5,8,18,0.98));
}

.burst-bw {
  position: absolute;
  left: 50%;
  top: 56%;
  width: 84px;
  height: 84px;
  display: grid;
  place-items: center;
  transform: translate(-50%, -50%) rotate(-6deg);
  clip-path: polygon(50% 0%, 60% 18%, 78% 6%, 74% 26%, 100% 24%, 82% 42%, 98% 54%, 76% 60%, 88% 80%, 66% 74%, 64% 100%, 50% 82%, 36% 100%, 34% 74%, 12% 80%, 24% 60%, 2% 54%, 18% 42%, 0 24%, 26% 26%, 22% 6%, 40% 18%);
  background: #fff;
  color: #111827;
  border: 3px solid #111827;
  font-family: var(--font-pixel2);
  font-size: 15px;
}

.sfx-tape {
  position: absolute;
  right: 10px;
  bottom: 12px;
  padding: 5px 8px;
  border: 2px solid rgba(255,255,255,0.95);
  color: rgba(255,255,255,0.96);
  font-family: var(--font-pixel2);
  font-size: 9px;
  transform: rotate(-7deg);
}

.sfx-tape.alt { transform: rotate(7deg); }

.dialog-card {
  background:
    radial-gradient(circle at 50% 58%, rgba(255,255,255,0.06) 0 22%, transparent 22%),
    linear-gradient(180deg, rgba(16,20,38,0.95), rgba(7,9,18,0.96));
}

.dialog-lines {
  position: absolute;
  inset: 18px;
  background: repeating-linear-gradient(130deg, rgba(255,255,255,0.15) 0 1px, transparent 1px 7px);
  opacity: 0.48;
}

.stairs-card {
  background:
    repeating-linear-gradient(180deg, rgba(255,255,255,0.10) 0 1px, transparent 1px 6px),
    linear-gradient(180deg, rgba(15,18,38,0.96), rgba(6,8,18,0.98));
}

.pixel-steps {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 26px;
  height: 80px;
}

.pixel-steps span {
  position: absolute;
  bottom: 0;
  width: 22px;
  background: rgba(255,255,255,0.92);
  border: 3px solid #111827;
  box-shadow: 0 6px 0 rgba(0,0,0,0.1);
}

.pixel-steps span:nth-child(1) { left: 0; height: 18px; }
.pixel-steps span:nth-child(2) { left: 24px; height: 34px; }
.pixel-steps span:nth-child(3) { left: 48px; height: 50px; }
.pixel-steps span:nth-child(4) { left: 72px; height: 66px; }

.coin-bw {
  position: absolute;
  right: 18px;
  top: 36px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 3px solid #fff;
  background: radial-gradient(circle at 35% 35%, #fff, rgba(255,255,255,0.55));
  box-shadow: 0 0 0 5px rgba(255,255,255,0.08);
}

.stairs-label {
  position: absolute;
  left: 16px;
  top: 36px;
  color: rgba(255,255,255,0.96);
  font-family: var(--font-pixel2);
  font-size: 12px;
  transform: rotate(-5deg);
}

.grid-card {
  background:
    linear-gradient(180deg, rgba(14,17,34,0.96), rgba(6,8,18,0.98));
}

.grid-screen {
  position: absolute;
  left: 16px;
  right: 16px;
  top: 42px;
  bottom: 18px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.grid-screen span {
  display: grid;
  place-items: center;
  border: 2px solid rgba(255,255,255,0.85);
  color: rgba(255,255,255,0.96);
  font-family: var(--font-pixel2);
  font-size: 12px;
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,0.08) 0 1px, transparent 1px 8px),
    linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
}

/* tune existing rails toward monochrome manga */
.anime-rail {
  width: 116px;
  opacity: 0.78;
}

.anime-rail-left { left: 160px; }
.anime-rail-right { right: 160px; }

.rail-burst {
  color: #111827;
  background: linear-gradient(135deg, #ffffff, #d9d9d9);
  border: 3px solid #111827;
}

.rail-burst-alt {
  background: linear-gradient(135deg, #ececec, #ffffff);
}

.rail-bubble {
  background: rgba(255,255,255,0.98);
}

.rail-sfx {
  background: linear-gradient(135deg, #ffffff, #dfdfdf);
}

.rail-character {
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,0.10) 0 4px, rgba(255,255,255,0.02) 4px 10px),
    linear-gradient(180deg, rgba(18,22,58,0.86), rgba(8,10,20,0.9));
  border: 3px solid rgba(255,255,255,0.92);
}

.rail-label {
  background: #fff;
}

.anime-head {
  background: linear-gradient(180deg, #ffffff, #d7d7d7);
  box-shadow: inset 0 -8px 0 rgba(0,0,0,0.14);
}

.anime-head::before {
  background:
    linear-gradient(135deg, rgba(255,255,255,0.55) 0 18%, transparent 18% 100%),
    linear-gradient(90deg, #f3f3f3, #bcbcbc, #ffffff);
}

.anime-head::after {
  background: #111827;
  box-shadow:
    18px 0 0 #111827,
    4px 2px 0 1px rgba(255,255,255,0.9),
    22px 2px 0 1px rgba(255,255,255,0.9);
}

.anime-body {
  background: linear-gradient(90deg, #d7d7d7, #ffffff);
}

@media (max-width: 1360px) {
  .manga-wall { width: 122px; }
  .anime-rail-left { left: 144px; }
  .anime-rail-right { right: 144px; }
}

@media (max-width: 1200px) {
  .manga-wall,
  .anime-rail {
    display: none;
  }

  body::before,
  body::after {
    width: 58px;
    opacity: 0.22;
  }
}
