:root {
  --bg: #072000;
  --panel: #0a2800;
  --muted: #8f96a0;
  --accent: #00ff41;
  --accent-glow: rgba(0, 255, 65, 0.4);
  --btn: #0d3000;
  --btn-hover: #103800;
}

@font-face {
  font-family: 'Terminal';
  src: url('terminal.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

/* Page layout */

* {
  box-sizing: border-box;
}

html {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow: hidden;
  font-size: 20px;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Terminal', 'Courier New', monospace;
  color: #eee;
  background: #000;
  height: 100%;
  overflow: hidden;
  position: relative;
  visibility: hidden;
}

body.powered-on {
  background: #072000;
  transition: background 0.5s ease;
}

/* BTOLEPRE */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9998;
  background: 
    repeating-linear-gradient(
      0deg,
      rgba(0, 0, 0, 0.35),
      rgba(0, 0, 0, 0.35) 1px,
      transparent 2px,
      transparent 3px
    );
  animation: scanlines 10s linear infinite;
}

body::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9997;
  background: radial-gradient(
    ellipse at center,
    transparent 0%,
    transparent 45%,
    rgba(0, 0, 0, 0.3) 100%
  );
}

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

.page-wrapper {
  display: flex;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  position: relative;
  z-index: 1;
}


/* CAFX */
.page-wrapper * {
  text-shadow:
    -0.5px 0 0 rgba(255, 0, 0, 0.3),
    0.5px 0 0 rgba(0, 255, 255, 0.3);
}

.main-content {
  flex: 1;
  padding: 60px 80px;
  padding-bottom: max(80px, env(safe-area-inset-bottom) + 40px);
  background: #051800;
  overflow-y: auto;
  color: #eee;
  position: relative;
  z-index: auto;
}

.main-content h1 {
  color: var(--accent);
  margin-bottom: 30px;
  font-size: 3.5em;
  font-weight: 700;
  text-shadow:
    -0.8px 0 0 rgba(255, 0, 0, 0.25),
    0.8px 0 0 rgba(0, 255, 255, 0.25),
    0 0 10px var(--accent-glow),
    0 0 20px var(--accent-glow);
}

.main-content h2 {
  color: var(--accent);
  margin-top: 40px;
  margin-bottom: 20px;
  font-size: 2.2em;
  text-shadow:
    -0.8px 0 0 rgba(255, 0, 0, 0.25),
    0.8px 0 0 rgba(0, 255, 255, 0.25),
    0 0 8px var(--accent-glow);
}

.main-content section {
  margin-bottom: 50px;
  line-height: 1.8;
}

.main-content h1:not(.ascii-art) {
  -moz-text-size-adjust: none;
  text-size-adjust: none;
  font-size: 1.5em !important;
  font-weight: normal;
  color: #0f0;
  line-height: 1.9;
  margin-bottom: 20px;
  font-family: 'Terminal', 'Courier New', monospace;
  text-shadow:
    -0.5px 0 0 rgba(255, 0, 0, 0.3),
    0.5px 0 0 rgba(0, 255, 255, 0.3),
    0 0 3px currentColor;
}

.main-content p {
  font-size: 1.5em;
  color: #0f0;
  line-height: 1.9;
  margin-bottom: 20px;
  font-family: 'Terminal', 'Courier New', monospace;
  text-shadow:
    -0.5px 0 0 rgba(255, 0, 0, 0.3),
    0.5px 0 0 rgba(0, 255, 255, 0.3),
    0 0 3px currentColor;
}

.inline-gif {
  float: right;
  width: 200px;
  height: auto;
  margin: 0 0 20px 30px;
  border: 3px solid var(--accent);
  border-radius: 8px;
  box-shadow: 0 0 20px var(--accent-glow), 0 0 40px var(--accent-glow);
  filter: none;
}

/* Main content scrollbar */
.main-content::-webkit-scrollbar {
  width: 14px;
}

.main-content::-webkit-scrollbar-track {
  background: #051800;
  border-left: 1px solid #0a4000;
}

.main-content::-webkit-scrollbar-thumb {
  background: #0a4000;
  border-radius: 4px;
  border: 2px solid #051800;
}

.main-content::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent-glow);
}

/* Baggy scrollbar */
.sticky-sidebar::-webkit-scrollbar {
  width: 12px;
}

.sticky-sidebar::-webkit-scrollbar-track {
  background: #051800;
  border-left: 1px solid #0a4000;
}

.sticky-sidebar::-webkit-scrollbar-thumb {
  background: #0a4000;
  border-radius: 4px;
  border: 2px solid #051800;
}

.sticky-sidebar::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent-glow);
}

/* FF scrollbar */
.main-content,
.sticky-sidebar {
  scrollbar-width: thin;
  scrollbar-color: #0a4000 #051800;
}


/* Typewriter */

.typewriter-title {
  opacity: 0;
  transition: opacity 0.3s ease;
  overflow: visible;
  border-right: none;
  white-space: pre;
  margin: 0 auto;
  letter-spacing: 0.05em;
  width: auto;
  display: inline-block;
}

.typewriter-title.typing {
}

.typewriter-content {
  opacity: 0;
}

.typewriter-content.typing p {
  opacity: 0;
  animation: typeLine 0.03s steps(1, end) forwards;
}

.typewriter-content.typing p:nth-child(1) {
  animation-delay: 2.5s;
  animation-duration: 4s;
}

.typewriter-content.typing section:first-of-type {
  animation: fadeInTerminal 0.3s ease forwards;
  animation-delay: 6.5s;
  opacity: 0;
}

.typewriter-content.typing section:last-of-type {
  animation: fadeInTerminal 0.3s ease forwards;
  animation-delay: 7.5s;
  opacity: 0;
}

@keyframes typing {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

@keyframes blink-caret {
  from,
  to {
    border-color: transparent;
  }
  50% {
    border-color: var(--accent);
  }
}

@keyframes typeLine {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeInTerminal {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInFromLeft {
  from {
    opacity: 0;
    transform: translateX(-100px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes glitchIn {
  0% {
    opacity: 0;
    transform: translateX(-50px) skewX(-10deg);
    filter: blur(5px);
  }
  20% {
    opacity: 0.5;
    transform: translateX(-30px) skewX(5deg);
  }
  40% {
    opacity: 0.8;
    transform: translateX(-10px) skewX(-3deg);
  }
  60% {
    opacity: 0.9;
    transform: translateX(5px) skewX(2deg);
  }
  80% {
    opacity: 1;
    transform: translateX(-2px) skewX(-1deg);
  }
  100% {
    opacity: 1;
    transform: translateX(0) skewX(0);
    filter: blur(0);
  }
}

/* Screen flicker */
@keyframes flicker {
  0% {
    opacity: 0.97;
  }
  5% {
    opacity: 1;
  }
  10% {
    opacity: 0.97;
  }
  20% {
    opacity: 1;
  }
  40% {
    opacity: 0.98;
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0.97;
  }
}

.main-content,
.sticky-sidebar {
  animation: flicker 0.15s infinite;
}

.ascii-art {
  font-family: monospace;
  font-size: 1em;
  margin: 0 0 30px 0;
  white-space: pre;
  overflow-x: auto;
  color: var(--accent);
  text-shadow: 0 0 10px var(--accent-glow), 0 0 20px var(--accent-glow);
  letter-spacing: 0;
  word-spacing: 0;
  tab-size: 4;
}

.ascii-art * {
  text-shadow: 0 0 10px var(--accent-glow), 0 0 20px var(--accent-glow);
}

@media (max-width: 1400px) {
  .ascii-art {
    font-size: 1em;
  }
}

@media (max-width: 1024px) {
  .ascii-art {
    font-size: 0.8em;
  }
}

.inline-gif {
  float: right;
  width: 200px;
  height: auto;
  margin: 0 0 20px 30px;
  border: 3px solid var(--accent);
  border-radius: 8px;
  box-shadow: 0 0 20px var(--accent-glow), 0 0 40px var(--accent-glow);
  filter: none;
  transition: transform 0.3s ease;
}

.inline-gif:hover {
  transform: scale(1.05);
}

/* Loading text for Baggy lists */
.loader {
  --w: 10ch;
  font-weight: bold;
  font-family: 'Terminal', 'Courier New', monospace;
  font-size: 0.9em;
  line-height: 1.4em;
  letter-spacing: var(--w);
  width: var(--w);
  overflow: hidden;
  white-space: nowrap;
  color: #0000;
  display: inline-block;
  vertical-align: middle;
  text-shadow: 
    calc(0*var(--w)) 0 #0f0,
    calc(-1*var(--w)) 0 #0f0,
    calc(-2*var(--w)) 0 #0f0,
    calc(-3*var(--w)) 0 #0f0,
    calc(-4*var(--w)) 0 #0f0,
    calc(-5*var(--w)) 0 #0f0,
    calc(-6*var(--w)) 0 #0f0,
    calc(-7*var(--w)) 0 #0f0,
    calc(-8*var(--w)) 0 #0f0,
    calc(-9*var(--w)) 0 #0f0;
  animation: l20 2s infinite linear;
}

.loader:before {
  content: "Loading...";
}

@keyframes l20 {
  9.09% {
    text-shadow: 
      calc(0*var(--w)) -10px #0f0,
      calc(-1*var(--w)) 0 #0f0,
      calc(-2*var(--w)) 0 #0f0,
      calc(-3*var(--w)) 0 #0f0,
      calc(-4*var(--w)) 0 #0f0,
      calc(-5*var(--w)) 0 #0f0,
      calc(-6*var(--w)) 0 #0f0,
      calc(-7*var(--w)) 0 #0f0,
      calc(-8*var(--w)) 0 #0f0,
      calc(-9*var(--w)) 0 #0f0
  }
  18.18% {
    text-shadow: 
      calc(0*var(--w)) 0 #0f0,
      calc(-1*var(--w)) -10px #0f0,
      calc(-2*var(--w)) 0 #0f0,
      calc(-3*var(--w)) 0 #0f0,
      calc(-4*var(--w)) 0 #0f0,
      calc(-5*var(--w)) 0 #0f0,
      calc(-6*var(--w)) 0 #0f0,
      calc(-7*var(--w)) 0 #0f0,
      calc(-8*var(--w)) 0 #0f0,
      calc(-9*var(--w)) 0 #0f0
  }
  27.27% {
    text-shadow: 
      calc(0*var(--w)) 0 #0f0,
      calc(-1*var(--w)) 0 #0f0,
      calc(-2*var(--w)) -10px #0f0,
      calc(-3*var(--w)) 0 #0f0,
      calc(-4*var(--w)) 0 #0f0,
      calc(-5*var(--w)) 0 #0f0,
      calc(-6*var(--w)) 0 #0f0,
      calc(-7*var(--w)) 0 #0f0,
      calc(-8*var(--w)) 0 #0f0,
      calc(-9*var(--w)) 0 #0f0
  }
  36.36% {
    text-shadow: 
      calc(0*var(--w)) 0 #0f0,
      calc(-1*var(--w)) 0 #0f0,
      calc(-2*var(--w)) 0 #0f0,
      calc(-3*var(--w)) -10px #0f0,
      calc(-4*var(--w)) 0 #0f0,
      calc(-5*var(--w)) 0 #0f0,
      calc(-6*var(--w)) 0 #0f0,
      calc(-7*var(--w)) 0 #0f0,
      calc(-8*var(--w)) 0 #0f0,
      calc(-9*var(--w)) 0 #0f0
  }
  45.45% {
    text-shadow: 
      calc(0*var(--w)) 0 #0f0,
      calc(-1*var(--w)) 0 #0f0,
      calc(-2*var(--w)) 0 #0f0,
      calc(-3*var(--w)) 0 #0f0,
      calc(-4*var(--w)) -10px #0f0,
      calc(-5*var(--w)) 0 #0f0,
      calc(-6*var(--w)) 0 #0f0,
      calc(-7*var(--w)) 0 #0f0,
      calc(-8*var(--w)) 0 #0f0,
      calc(-9*var(--w)) 0 #0f0
  }
  54.54% {
    text-shadow: 
      calc(0*var(--w)) 0 #0f0,
      calc(-1*var(--w)) 0 #0f0,
      calc(-2*var(--w)) 0 #0f0,
      calc(-3*var(--w)) 0 #0f0,
      calc(-4*var(--w)) 0 #0f0,
      calc(-5*var(--w)) -10px #0f0,
      calc(-6*var(--w)) 0 #0f0,
      calc(-7*var(--w)) 0 #0f0,
      calc(-8*var(--w)) 0 #0f0,
      calc(-9*var(--w)) 0 #0f0
  }
  63.63% {
    text-shadow: 
      calc(0*var(--w)) 0 #0f0,
      calc(-1*var(--w)) 0 #0f0,
      calc(-2*var(--w)) 0 #0f0,
      calc(-3*var(--w)) 0 #0f0,
      calc(-4*var(--w)) 0 #0f0,
      calc(-5*var(--w)) 0 #0f0,
      calc(-6*var(--w)) -10px #0f0,
      calc(-7*var(--w)) 0 #0f0,
      calc(-8*var(--w)) 0 #0f0,
      calc(-9*var(--w)) 0 #0f0
  }
  72.72% {
    text-shadow: 
      calc(0*var(--w)) 0 #0f0,
      calc(-1*var(--w)) 0 #0f0,
      calc(-2*var(--w)) 0 #0f0,
      calc(-3*var(--w)) 0 #0f0,
      calc(-4*var(--w)) 0 #0f0,
      calc(-5*var(--w)) 0 #0f0,
      calc(-6*var(--w)) 0 #0f0,
      calc(-7*var(--w)) -10px #0f0,
      calc(-8*var(--w)) 0 #0f0,
      calc(-9*var(--w)) 0 #0f0
  }
  81.81% {
    text-shadow: 
      calc(0*var(--w)) 0 #0f0,
      calc(-1*var(--w)) 0 #0f0,
      calc(-2*var(--w)) 0 #0f0,
      calc(-3*var(--w)) 0 #0f0,
      calc(-4*var(--w)) 0 #0f0,
      calc(-5*var(--w)) 0 #0f0,
      calc(-6*var(--w)) 0 #0f0,
      calc(-7*var(--w)) 0 #0f0,
      calc(-8*var(--w)) -10px #0f0,
      calc(-9*var(--w)) 0 #0f0
  }
  90.90% {
    text-shadow: 
      calc(0*var(--w)) 0 #0f0,
      calc(-1*var(--w)) 0 #0f0,
      calc(-2*var(--w)) 0 #0f0,
      calc(-3*var(--w)) 0 #0f0,
      calc(-4*var(--w)) 0 #0f0,
      calc(-5*var(--w)) 0 #0f0,
      calc(-6*var(--w)) 0 #0f0,
      calc(-7*var(--w)) 0 #0f0,
      calc(-8*var(--w)) 0 #0f0,
      calc(-9*var(--w)) -10px #0f0
  }
}


/* Main page links */

.main-links {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-top: 20px;
}

.main-link {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 32px 36px;
  background: var(--panel);
  border: 1px solid #0a4000;
  border-radius: 12px;
  text-decoration: none;
  color: #eee;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  opacity: 0;
}

.typewriter-content.typing .main-link:nth-child(1) {
  animation: glitchIn 0.6s ease forwards;
  animation-delay: 7s;
}

.typewriter-content.typing .main-link:nth-child(2) {
  animation: glitchIn 0.6s ease forwards;
  animation-delay: 7.3s;
}

.typewriter-content.typing .main-link:nth-child(3) {
  animation: glitchIn 0.6s ease forwards;
  animation-delay: 7.6s;
}

.main-link:hover {
  background: #0d3500;
  border-color: var(--accent);
  transform: translateX(5px);
  box-shadow: 0 6px 20px var(--accent-glow), 0 0 30px var(--accent-glow);
}

.link-icon-img {
  width: 72px;
  height: 72px;
  filter: none;
}

.link-details {
  flex: 1;
}

.link-title {
  font-size: 1.6em;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 6px;
  text-shadow:
    -0.8px 0 0 rgba(255, 0, 0, 0.25),
    0.8px 0 0 rgba(0, 255, 255, 0.25),
    0 0 5px var(--accent-glow);
}

.link-desc {
  font-size: 1.15em;
  color: #0f0;
}

/* Baggy */

.sticky-sidebar {
  width: 450px;
  height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
  background: var(--bg);
  border-left: 1px solid #0a4000;
  box-shadow: -4px 0 12px rgba(0, 255, 65, 0.1);
  flex-shrink: 0;
  position: relative;
  z-index: auto;
}

.sidebar-content {
  padding: 0 18px 18px 18px;
}

/* Baggy content */

.fadein {
  animation: fadein 0.25s ease-out forwards;
  opacity: 0;
}

@keyframes fadein {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  background: linear-gradient(180deg, #0a2800, #072000);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid #0a4000;
}

#logo {
  width: 48px;
  height: 48px;
}

.title-group .title {
  font-weight: 600;
  font-size: 1.4em;
  color: var(--accent);
  text-shadow:
    -0.8px 0 0 rgba(255, 0, 0, 0.25),
    0.8px 0 0 rgba(0, 255, 255, 0.25),
    0 0 8px var(--accent-glow);
}

.title-group .subtitle {
  font-size: 1em;
  color: #0f0;
}

.search {
  width: 100%;
  padding: 12px 16px;
  margin: 14px 0 18px;
  border-radius: 6px;
  background: #031200;
  border: 1px solid #0a4000;
  color: var(--accent);
  transition: all 0.2s ease;
  font-family: 'Terminal', 'Courier New', monospace;
  font-size: 1.05em;
}

.search::placeholder {
  color: #0a5000;
}

.search:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
}

.card {
  background: var(--panel);
  padding: 16px;
  border-radius: 12px;
  margin-bottom: 18px;
  border: 1px solid #0a4000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  transition: all 0.25s ease;
  position: relative;
  overflow: visible;
}

.card-title {
  margin: 0 0 12px;
  font-weight: 600;
  font-size: 1.15em;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #0f0;
}

.glow {
  animation: pulse 3s infinite ease-in-out;
}

@keyframes pulse {
  50% {
    box-shadow: 0 0 15px var(--accent-glow), 0 0 25px var(--accent-glow);
    border-color: var(--accent);
  }
}

.icon-img {
  width: 20px;
  height: 20px;
  filter: none;
}

/* Baggy expandable panels */

.click-card .click-title {
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.click-card .click-title:hover {
  color: var(--accent);
  text-shadow:
    -0.8px 0 0 rgba(255, 0, 0, 0.25),
    0.8px 0 0 rgba(0, 255, 255, 0.25),
    0 0 8px var(--accent-glow);
  transform: translateX(2px);
}

.click-panel {
  display: none;
  margin-top: 12px;
  padding: 10px;
  background: #051800;
  border-radius: 6px;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: opacity 0.3s ease, max-height 0.3s ease;
  border: 1px solid #062000;
}

.click-card.open .click-panel {
  display: block;
  max-height: 400px;
  opacity: 1;
}

.sublink {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 4px;
  text-decoration: none;
  color: #0f0;
  transition: all 0.15s ease;
  font-size: 1.05em;
}

.sublink:hover {
  background: #0d3500;
  color: var(--accent);
  text-shadow:
    -0.8px 0 0 rgba(255, 0, 0, 0.25),
    0.8px 0 0 rgba(0, 255, 255, 0.25),
    0 0 5px var(--accent-glow);
  transform: translateX(3px);
}

/* Baggy info sections */

.info-card .info-title {
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.info-card .info-title:hover {
  color: var(--accent);
  text-shadow:
    -0.8px 0 0 rgba(255, 0, 0, 0.25),
    0.8px 0 0 rgba(0, 255, 255, 0.25),
    0 0 8px var(--accent-glow);
  transform: translateX(2px);
}

.info-panel {
  display: none;
  margin-top: 12px;
  padding: 10px;
  background: #051800;
  border-radius: 6px;
  max-height: 0;
  opacity: 0;
  overflow: visible;
  transition: opacity 0.3s ease, max-height 0.3s ease;
  border: 1px solid #062000;
}

.info-card.open .info-panel {
  display: block;
  max-height: none;
  opacity: 1;
}

.info-subtoggle {
  width: 100%;
  background: #0a2800;
  padding: 10px;
  border-radius: 4px;
  margin-top: 8px;
  text-align: left;
  color: #0f0;
  border: 1px solid #0a4000;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: 'Terminal', 'Courier New', monospace;
  font-size: 1.05em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.info-subtoggle:hover {
  background: #0d3500;
  border-color: var(--accent);
  box-shadow: 0 0 8px var(--accent-glow);
  transform: translateX(2px);
}

.dynamic-list {
  list-style: none;
  padding-left: 12px;
  margin: 6px 0 12px;
  display: none;
  position: relative;
  z-index: 1;
  overflow: visible;
}

.dynamic-list li {
  padding: 6px 8px;
  border-radius: 4px;
  cursor: pointer;
  position: relative;
  transition: all 0.15s ease;
  z-index: 1;
  overflow: visible;
  color: #0f0;
  font-family: 'Terminal', 'Courier New', monospace;
  font-size: 1.05em;
}

.dynamic-list li:hover {
  background: #0d3500;
  color: var(--accent);
  transform: translateX(2px);
  z-index: 999998;
}

/* Baggy tracking */

.track-header {
  position: relative;
  cursor: pointer;
  user-select: none;
  z-index: 1;
  overflow: visible;
}

.track-header:hover {
  z-index: 100;
}

.track-header::before {
  content: "▶";
  display: inline-block;
  margin-right: 5px;
  transition: transform 0.2s ease;
  color: var(--accent);
}

.dynamic-list li.expanded .track-header::before {
  transform: rotate(90deg);
}

.dynamic-list li.expanded .track-header {
  z-index: 1;
}

.variations-list {
  list-style: none;
  padding-left: 20px;
  margin: 6px 0 0 0;
  max-height: 0;
  overflow: visible;
  transition: max-height 0.3s ease;
  display: none;
  position: relative;
  z-index: 100;
}

.dynamic-list li.expanded .variations-list {
  max-height: none;
  margin-top: 6px;
  display: block;
}

.variation-item {
  padding: 4px 8px;
  font-size: 1em;
  color: #0f0;
  border-left: 2px solid #0a4000;
  margin: 2px 0;
  transition: all 0.15s ease;
  position: relative;
  z-index: 2;
  overflow: visible;
}

.variation-item:hover {
  background: #0d3500;
  border-left-color: var(--accent);
  color: var(--accent);
  text-shadow:
    -0.8px 0 0 rgba(255, 0, 0, 0.25),
    0.8px 0 0 rgba(0, 255, 255, 0.25),
    0 0 5px var(--accent-glow);
  transform: translateX(3px);
  z-index: 100;
}

/* Baggy Image Previews */

.preview-wrap {
  position: fixed;
  left: 65%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 220px;
  background: #072000;
  border: 3px solid var(--accent);
  border-radius: 8px;
  padding: 8px;
  z-index: 9999999;
  pointer-events: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.9), 0 0 30px var(--accent-glow);
  opacity: 0;
  transition: opacity 0.15s ease;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.preview-wrap .preview-img {
  position: static;
  width: 100%;
  height: auto;
  max-width: 100%;
  background: none;
  border: none;
  border-radius: 4px;
  padding: 0;
  z-index: auto;
  pointer-events: none;
  box-shadow: none;
  opacity: 1;
  transform: none;
}

.preview-caption {
  display: block;
  text-align: center;
  font-size: 0.75em;
  color: var(--accent);
  font-family: 'Terminal', 'Courier New', monospace;
  text-shadow: 0 0 6px var(--accent-glow);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dynamic-list li:hover > .preview-wrap {
  opacity: 1;
}

.track-header:hover > .preview-wrap {
  opacity: 1;
}

.variation-item:hover > .preview-wrap {
  opacity: 1;
}

.dynamic-list li.expanded > .track-header:hover > .preview-wrap {
  opacity: 0;
}

@media (max-width: 1024px) {
  .preview-wrap {
    left: 50%;
    top: 50%;
  }
}

/* Footer */

.footer {
  text-align: center;
  padding: 12px;
  color: #0f0;
  font-family: 'Terminal', 'Courier New', monospace;
  font-size: 1.1em;
}

/* BTOLEPU */

.crt-powerup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000;
  z-index: 999999999;
  pointer-events: none;
  animation: powerOn 0.8s cubic-bezier(0.74, 0.06, 0.4, 0.92) forwards;
}

@keyframes powerOn {
  0% {
    opacity: 1;
    transform: scaleY(0.001) scaleX(1);
    filter: brightness(5);
  }
  20% {
    transform: scaleY(0.8) scaleX(0.95);
    filter: brightness(3);
  }
  40% {
    transform: scaleY(1) scaleX(1.05);
    filter: brightness(2);
    opacity: 0.8;
  }
  60% {
    transform: scaleY(1) scaleX(1);
    filter: brightness(1.5);
    opacity: 0.6;
  }
  80% {
    filter: brightness(1.2);
    opacity: 0.4;
  }
  100% {
    transform: scaleY(1) scaleX(1);
    filter: brightness(1);
    opacity: 0;
  }
}

.crt-scanline-boot {
  position: fixed;
  top: 50%;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent);
  box-shadow: 0 0 20px var(--accent), 0 0 40px var(--accent);
  z-index: 999999998;
  pointer-events: none;
  animation: scanlineBoot 0.8s ease-out forwards;
}

@keyframes scanlineBoot {
  0% {
    top: 50%;
    opacity: 1;
  }
  50% {
    top: 0%;
    opacity: 0.8;
  }
  100% {
    top: -2px;
    opacity: 0;
  }
}

.typing-cursor {
  display: inline-block;
  width: 10px;
  height: 1em;
  background: var(--accent);
  margin-left: 2px;
  animation: blink-cursor 0.75s step-end infinite;
  vertical-align: text-bottom;
}

@keyframes blink-cursor {
  from, to {
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
}

/* Responsiveness */

@media (max-width: 1024px) {
  html {
    font-size: 16px;
  }

  .page-wrapper {
    flex-direction: column;
  }

  .main-content {
    max-width: 100%;
    padding: 40px 30px;
	padding-bottom: max(80px, env(safe-area-inset-bottom) + 20px);
  }

  .sticky-sidebar {
    width: 100%;
    height: auto;
    position: relative;
    border-left: none;
    border-top: 1px solid #0a4000;
  }

  .preview-img {
    left: 50%;
    top: 50%;
  }
}

/* Mobile/Narrow */
.mobile-baggy-btn {
  display: none;
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
  background: rgba(7, 40, 0, 0.75);
  border: 2px solid #00ff00;
  border-radius: 8px;
  padding: 10px;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  box-shadow: 0 0 20px rgba(0, 255, 0, 0.3);
  transition: all 0.3s ease;
}

.mobile-baggy-btn:hover {
  background: rgba(0, 52, 0, 1);
  box-shadow: 0 0 30px rgba(0, 255, 0, 0.5);
  transform: scale(1.05);
}

.mobile-baggy-btn img {
  display: block;
  image-rendering: pixelated;
}

.mobile-baggy-btn span {
  color: #00ff00;
  font-size: 11px;
  font-weight: bold;
  font-family: 'Terminal', monospace;
  text-shadow: 0 0 5px rgba(0, 255, 0, 0.5);
  white-space: nowrap;
}

/* Overlay for mobile Baggy */
.sidebar-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 1000;
  pointer-events: none;
}

.sidebar-overlay.active {
  display: block;
}


/* Mobile responsiveness */
@media (max-width: 768px) {
  .mobile-baggy-btn {
    display: flex;
	top: 13px;
    right: 15px;
    padding: 8px;
  }
  
  .page-wrapper {
    flex-direction: column;
  }
  
  .main-content {
    width: 100%;
    padding: 20px;
	padding-bottom: max(80px, env(safe-area-inset-bottom) + 20px);
  }
  
    /* Scale down ASCII art and adjust letter spacing */
  .ascii-art {
    font-size: 5px;
    line-height: 5px;
  }
  
  .sticky-sidebar {
    position: fixed;
    top: 0;
    right: -100%;
    width: 90%;
    max-width: 400px;
    height: 100vh;
    z-index: 1001;
    transition: right 0.3s ease;
    overflow-y: auto;
  }

  
  .sticky-sidebar.mobile-open {
    right: 0;
  }
  
  /* Hide Baggy button when Baggy is open */
  .mobile-baggy-btn.hidden {
    opacity: 0;
    pointer-events: none;
  }
  
  /* Close button on Baggy menu on mobile */
  .sticky-sidebar::before {
    content: '✕ Close';
    display: block;
    position: sticky;
    top: 0;
    background: #001400;
    color: #00ff00;
    text-align: center;
    padding: 15px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    border-bottom: 2px solid #00ff00;
    z-index: 10;
  }
  
  .embed-modal-content {
    margin: 3% auto;
    padding: 20px;
    max-height: 90vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
  }
  
  .embed-modal-content h2 {
    font-size: 1.4em;
    margin-bottom: 12px;
  }
  
  .embed-modal-content p {
    font-size: 0.95em;
    margin-bottom: 10px;
  }
  
  #embedCode {
    height: 100px;
    font-size: 0.75em;
    margin-bottom: 10px;
  }
  
  .copy-btn,
  .close-modal-btn {
    padding: 10px;
    font-size: 0.9em;
    margin-top: 8px;
  }
  
  .theme-selector {
    gap: 8px;
    margin-bottom: 12px;
  }
  
  .theme-btn {
    padding: 10px;
    font-size: 0.9em;
  }
  
  .header {
    padding: 12px;
    gap: 10px;
  }
  
  #logo {
    width: 32px;
    height: 32px;
  }
  
  .title-group .title {
    font-size: 1.1em;
  }
  
  .title-group .subtitle {
    font-size: 0.85em;
  }
  
  .sticky-sidebar::before {
    padding: 12px;
    font-size: 14px;
  }
  
  .footer {
    padding: 10px 8px;
    font-size: 0.9em;
    margin-bottom: 30px;
  }
  
  .embed-btn {
    font-size: 0.85em;
    padding: 6px 12px;
    margin-top: 8px;
    margin-bottom: 10px;
  }
  
  /* Dark green overlay behind Baggy on mobile */
  .sticky-sidebar::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(7, 32, 0, 0.75);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
  }
  
  .sticky-sidebar.mobile-open::after {
    opacity: 1;
  }
}

@media (max-width: 600px) {
  .ascii-art {
    font-size: 4px;
    line-height: 4px;
  }
}

@media (max-width: 1024px) {
  .mobile-baggy-btn {
    display: flex;
	top: 14px;
    right: 15px;
    padding: 8px;
  }
  
  .page-wrapper {
    flex-direction: column;
  }
  
  .main-content {
    width: 100%;
    padding: 20px;
	padding-bottom: max(80px, env(safe-area-inset-bottom) + 20px);
  }
  
  .ascii-art {
    font-size: 5px;
    line-height: 5px;
  }
  
  /* Scale down main content text */
  .typewriter-content p {
    font-size: 17px;
    line-height: 1.5;
  }
  
  /* Scale down hackerman gif */
  .inline-gif {
    width: 35%
    height: auto;
    max-width: 100px;
  }
  
  /* Scale down main link buttons */
  .main-link {
    padding: 12px;
    min-height: auto;
  }
  
  .link-icon-img {
    width: 32px;
    height: 32px;
  }
  
  .link-title {
    font-size: 16px;
  }
  
  .link-desc {
    font-size: 14px;
  }
  
  .sticky-sidebar {
    position: fixed;
    top: 0;
    right: -100%;
    width: 90%;
    max-width: 400px;
    height: 100vh;
    z-index: 1001;
    transition: right 0.3s ease;
    overflow-y: auto;
  }
  
  .sticky-sidebar.mobile-open {
    right: 0;
  }
  
  .mobile-baggy-btn.hidden {
    opacity: 0;
    pointer-events: none;
  }
  
  .sticky-sidebar::before {
    content: '✕ Close';
    display: block;
    position: sticky;
    top: 0;
    background: #001400;
    color: #00ff00;
    text-align: center;
    padding: 15px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    border-bottom: 2px solid #00ff00;
    z-index: 10;
  }
}

@media (max-width: 480px) {
  .main-content {
    padding: 15px;
	padding-bottom: max(80px, env(safe-area-inset-bottom) + 20px);
  }
  
  .ascii-art {
    font-size: 4px;
    line-height: 4px;
  }
  
  .typewriter-content p {
    font-size: 14px;
  }
  
  .inline-gif {
    max-width: 80px;
  }
  
  .sticky-sidebar {
    width: 95%;
  }
  
  .mobile-baggy-btn {
    top: 8px;
    right: 15px;
    padding: 8px;
  }
  
  .mobile-baggy-btn img {
    width: 35px;
    height: 35px;
  }
  
  .embed-modal-content {
    width: 95%;
    margin: 2% auto;
    padding: 15px;
  }
  
  .embed-modal-content h2 {
    font-size: 1.2em;
  }
  
  #embedCode {
    height: 80px;
  }
  
  .header {
    padding: 10px;
  }
  
  #logo {
    width: 28px;
    height: 28px;
  }
  
  .title-group .title {
    font-size: 1em;
  }
  
  .title-group .subtitle {
    font-size: 0.8em;
  }
  
  .footer {
    padding: 8px 6px;
    font-size: 0.85em;
    margin-bottom: 40px;
  }
  
  .embed-btn {
    font-size: 0.8em;
    padding: 5px 10px;
    margin-top: 6px;
    margin-bottom: 15px;
  }
}

.embed-btn {
  margin-top: 10px;
  background: #0a2800;
  color: #00ff41;
  border: 1px solid #0a4000;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  font-family: 'Terminal', monospace;
  font-size: 0.9em;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.embed-btn:hover {
  background: #0d3500;
  border-color: #00ff41;
  box-shadow: 0 0 10px rgba(0, 255, 65, 0.4);
}

.embed-btn-icon {
  width: 20px;
  height: 20px;
}

.embed-modal {
  display: none;
  position: fixed;
  z-index: 1002;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    ellipse at center,
    rgba(7, 32, 0, 1) 0%,
    rgba(7, 32, 0, 0.95) 30%,
    rgba(7, 32, 0, 0.7) 70%,
    rgba(7, 32, 0, 0.4) 100%
  );
}

.embed-modal-content {
  background: #0a2800;
  margin: 5% auto;
  padding: 30px;
  border: 2px solid #00ff41;
  border-radius: 12px;
  width: 90%;
  max-width: 600px;
  box-shadow: 0 0 40px rgba(0, 255, 65, 0.5);
  position: relative;
  z-index: 1003;
}

.embed-modal-content h2 {
  color: #00ff41;
  margin: 0 0 20px 0;
  font-size: 1.8em;
}

.embed-modal-content p {
  color: #0f0;
  font-size: 1.1em;
  margin-bottom: 15px;
}

.embed-close {
  color: #0f0;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.embed-close:hover {
  color: #00ff41;
  text-shadow: 0 0 10px rgba(0, 255, 65, 0.6);
}

.theme-selector {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.theme-btn {
  flex: 1;
  background: #051800;
  color: #0f0;
  border: 2px solid #0a4000;
  padding: 12px;
  border-radius: 8px;
  cursor: pointer;
  font-family: 'Terminal', monospace;
  font-size: 1em;
  transition: all 0.2s ease;
}

.theme-btn:hover {
  background: #0d3500;
  border-color: #00ff41;
}

.theme-btn.active {
  background: #0d3500;
  border-color: #00ff41;
  color: #00ff41;
  box-shadow: 0 0 15px rgba(0, 255, 65, 0.4);
}

#embedCode {
  width: 100%;
  height: 150px;
  background: #051800;
  color: #0f0;
  border: 1px solid #0a4000;
  border-radius: 4px;
  padding: 12px;
  font-family: 'Terminal', monospace;
  font-size: 0.85em;
  margin-bottom: 15px;
  resize: vertical;
}

/* Custom scrollbar for embed code */
#embedCode::-webkit-scrollbar {
  width: 12px;
}

#embedCode::-webkit-scrollbar-track {
  background: #051800;
  border-left: 1px solid #0a4000;
}

#embedCode::-webkit-scrollbar-thumb {
  background: #0a4000;
  border-radius: 4px;
  border: 2px solid #051800;
}

#embedCode::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent-glow);
}

/* FF scrollbar */
#embedCode {
  scrollbar-width: thin;
  scrollbar-color: #0a4000 #051800;
}


.copy-btn {
  width: 100%;
  background: #0a2800;
  color: #00ff41;
  border: 1px solid #0a4000;
  padding: 12px;
  border-radius: 4px;
  cursor: pointer;
  font-family: 'Terminal', monospace;
  font-size: 1em;
  transition: all 0.2s ease;
}

.copy-btn:hover {
  background: #0d3500;
  border-color: #00ff41;
  box-shadow: 0 0 10px rgba(0, 255, 65, 0.4);
}

.copy-feedback {
  text-align: center;
  color: #00ff41;
  margin-top: 10px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.copy-feedback.show {
  opacity: 1;
}

.ext-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
  padding: 6px 8px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 6px;
}

.ext-label {
  font-size: 0.82em;
  color: var(--text-muted);
}

.ext-buttons {
  display: flex;
  gap: 6px;
}

.ext-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 4px;
  transition: all 0.2s ease;
  opacity: 0.8;
}

.ext-btn:hover {
  opacity: 1;
  transform: translateY(-2px);
  filter: drop-shadow(0 0 6px var(--accent-glow));
}

.ext-btn img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.close-modal-btn {
  width: 100%;
  background: #051800;
  color: #00ff41;
  border: 1px solid #0a4000;
  padding: 12px;
  border-radius: 4px;
  cursor: pointer;
  font-family: 'Terminal', monospace;
  font-size: 1em;
  margin-top: 15px;
  transition: all 0.2s ease;
}

.close-modal-btn:hover {
  background: #0a2800;
  border-color: #00ff41;
  box-shadow: 0 0 10px rgba(0, 255, 65, 0.4);
}
