/* ============================================================
   STYLES.CSS — Retro Arcade Portfolio
   Themes: Dark (Retrowave Neon) / Light (Classic Retro)
   ============================================================ */

/* ────────── FONTS ────────── */
@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ────────── CSS CUSTOM PROPERTIES: DARK (default) ────────── */
:root,
[data-theme="dark"] {
  --bg: #0a0014;
  --bg-card: #140020;
  --bg-card-hover: #1f0035;
  --text: #e8e8f0;
  --text-dim: #8888a0;
  --neon-pink: #ff2d95;
  --neon-cyan: #00f0ff;
  --neon-purple: #b026ff;
  --neon-yellow: #ffd700;
  --border: #2a1040;
  --accent: #ff2d95;
  --accent-light: #ff6eb4;
  --screen-bg: #0d0d1a;
  --cabinet-body: #1a0a2e;
  --cabinet-accent: #2d1050;
  --cabinet-trim: #3a1568;
  --glow-pink: rgba(255, 45, 149, 0.4);
  --glow-cyan: rgba(0, 240, 255, 0.4);
  --glow-purple: rgba(176, 38, 255, 0.3);
  --shadow-color: rgba(0, 0, 0, 0.6);
  --grid-color: rgba(176, 38, 255, 0.07);
  --scanline-opacity: 0.08;
  --hero-glow: 0 0 20px var(--neon-pink), 0 0 40px var(--neon-pink), 0 0 80px rgba(255, 45, 149, 0.3);
  --font-heading: 'Press Start 2P', cursive;
  --font-body: 'Inter', -apple-system, sans-serif;
}

/* ────────── CSS CUSTOM PROPERTIES: LIGHT ────────── */
[data-theme="light"] {
  --bg: #f0e6d3;
  --bg-card: #fff8ee;
  --bg-card-hover: #ffeed0;
  --text: #2a1a0a;
  --text-dim: #3f3333;
  --neon-pink: #e07a00;
  --neon-cyan: #d4880a;
  --neon-purple: #c06000;
  --neon-yellow: #e6a800;
  --border: #d4c4a8;
  --accent: #e88a10;
  --accent-light: #ffaa30;
  --screen-bg: #0a1628;
  --cabinet-body: #0090ff;
  --cabinet-accent: #005faa;
  --cabinet-trim: #0074cc;
  --glow-pink: rgba(224, 122, 0, 0.15);
  --glow-cyan: rgba(212, 136, 10, 0.15);
  --glow-purple: rgba(192, 96, 0, 0.1);
  --shadow-color: rgba(42, 26, 10, 0.2);
  --grid-color: transparent;
  --scanline-opacity: 0;
  --hero-glow: none;
}

/* ────────── RESET & BASE ────────── */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 40px;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background 0.4s, color 0.4s;
}

/* Background grid for dark theme */
[data-theme="dark"] body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    linear-gradient(var(--grid-color) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

/* Subtle noise texture for light theme */
[data-theme="light"] body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0h20v20H0zM20 20h20v20H20z' fill='%23d4c4a8' fill-opacity='0.15'/%3E%3C/svg%3E");
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

/* ────────── SCANLINE OVERLAY ────────── */
.scanline-overlay {
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(0deg,
      rgba(0, 0, 0, var(--scanline-opacity)) 0px,
      rgba(0, 0, 0, var(--scanline-opacity)) 1px,
      transparent 1px,
      transparent 3px);
  pointer-events: none;
  z-index: 9998;
}

/* ────────── SECTION TITLE ────────── */
.section-title {
  font-family: var(--font-heading);
  font-size: clamp(16px, 3vw, 24px);
  color: var(--neon-pink);
  text-align: center;
  margin-bottom: 40px;
  letter-spacing: 2px;
}

[data-theme="dark"] .section-title {
  text-shadow: 0 0 10px var(--glow-pink), 0 0 30px var(--glow-pink);
}

.section-title .dim {
  color: var(--text-dim);
}

[data-theme="dark"] .section-title .dim {
  text-shadow: none;
}

/* ════════════════════════════════════════
   TOP BAR (toggles container)
   ════════════════════════════════════════ */
.theme-toggle {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: 30px;
  padding: 6px;
  cursor: pointer;
  transition: all 0.3s;
}

.theme-toggle:hover {
  border-color: var(--accent);
}

.theme-toggle__track {
  display: flex;
  align-items: center;
  width: 68px;
  height: 32px;
  position: relative;
}

.theme-toggle__icon {
  flex: 1;
  text-align: center;
  font-size: 16px;
  z-index: 1;
  transition: opacity 0.3s;
}

.theme-toggle__thumb {
  position: absolute;
  left: 3px;
  top: 3px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent);
  transition: transform 0.3s, background 0.3s;
  box-shadow: 0 0 10px var(--glow-pink);
}

[data-theme="light"] .theme-toggle__thumb {
  transform: translateX(36px);
  background: var(--neon-yellow);
  box-shadow: 0 0 8px rgba(212, 160, 23, 0.4);
}

/* ════════════════════════════════════════
   HERO
   ════════════════════════════════════════ */
.hero {
  padding: 100px 0 60px;
  text-align: center;
  min-height: 60vh;
  display: flex;
  align-items: center;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: 6px 18px;
  border-radius: 100px;
  font-family: var(--font-heading);
  font-size: 9px;
  letter-spacing: 2px;
  margin-bottom: 30px;
}

[data-theme="dark"] .hero__badge {
  box-shadow: 0 0 15px var(--glow-pink), inset 0 0 15px rgba(255, 45, 149, 0.05);
}

.hero__badge-dot {
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
    box-shadow: 0 0 6px #22c55e;
  }

  50% {
    opacity: 0.4;
    box-shadow: none;
  }
}

.hero__name {
  font-family: var(--font-heading);
  font-size: clamp(20px, 5vw, 40px);
  color: var(--text);
  line-height: 1.4;
  margin-bottom: 12px;
}

[data-theme="dark"] .hero__name {
  text-shadow: var(--hero-glow);
}

.hero__title {
  font-family: var(--font-heading);
  font-size: clamp(10px, 2.5vw, 16px);
  color: var(--neon-cyan);
  letter-spacing: 3px;
  margin-bottom: 20px;
}

[data-theme="dark"] .hero__title {
  text-shadow: 0 0 10px var(--glow-cyan), 0 0 30px var(--glow-cyan);
}

.hero__subtitle {
  font-size: 16px;
  color: var(--text-dim);
  max-width: 600px;
  margin: 0 auto 40px;
}

.hero__stats {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}

.hero__stat {
  text-align: center;
}

.hero__stat-value {
  font-family: var(--font-heading);
  font-size: clamp(18px, 3vw, 28px);
  color: var(--neon-cyan);
  display: block;
}

[data-theme="dark"] .hero__stat-value {
  text-shadow: 0 0 8px var(--glow-cyan);
}

.hero__stat-label {
  font-size: 11px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 4px;
  display: block;
}

/* ════════════════════════════════════════
   ARCADE CABINET
   ════════════════════════════════════════ */
.arcade-section {
  padding: 60px 0 80px;
}

.arcade-cabinet {
  max-width: 420px;
  margin: 0 auto;
  background: var(--cabinet-body);
  border: 3px solid var(--cabinet-accent);
  border-radius: 20px 20px 10px 10px;
  padding: 0;
  position: relative;
  overflow: hidden;
  box-shadow:
    0 0 30px var(--shadow-color),
    inset 0 0 40px rgba(0, 0, 0, 0.3);
  transition: background 0.4s, border-color 0.4s;
}

[data-theme="dark"] .arcade-cabinet {
  box-shadow:
    0 0 30px var(--shadow-color),
    0 0 60px var(--glow-purple),
    inset 0 0 40px rgba(0, 0, 0, 0.3);
}

/* ── Marquee ── */
.cabinet__marquee {
  background: linear-gradient(135deg, var(--neon-pink), var(--neon-purple));
  padding: 14px 20px;
  text-align: center;
  border-bottom: 3px solid var(--cabinet-accent);
}

[data-theme="light"] .cabinet__marquee {
  background: linear-gradient(135deg, #ffb347, #ff6b35);
  border-bottom-color: #005faa;
}

.cabinet__marquee-text {
  font-family: var(--font-heading);
  font-size: clamp(14px, 3vw, 22px);
  color: #fff;
  letter-spacing: 8px;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* ── Screen ── */
.cabinet__screen-bezel {
  margin: 16px;
  padding: 8px;
  background: #000;
  border-radius: 8px;
  border: 3px solid var(--cabinet-trim);
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.8);
}

.cabinet__screen {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 14;
  background: var(--screen-bg);
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cabinet__preview {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.4s;
}

.cabinet__screen-scanlines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(0deg,
      rgba(0, 0, 0, 0.15) 0px,
      rgba(0, 0, 0, 0.15) 1px,
      transparent 1px,
      transparent 3px);
  pointer-events: none;
}

.cabinet__screen-glow {
  position: absolute;
  inset: 0;
  border-radius: 4px;
  box-shadow: inset 0 0 30px rgba(0, 240, 255, 0.1);
  pointer-events: none;
}

[data-theme="light"] .cabinet__screen-glow {
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.2);
}

/* ── Cartridge Slot ── */
.cabinet__cartridge-area {
  padding: 0 16px 12px;
}

.cabinet__cartridge-slot {
  background: rgba(0, 0, 0, 0.3);
  border: 2px solid var(--cabinet-trim);
  border-radius: 6px;
  padding: 2px;
  margin-bottom: 8px;
  overflow: hidden;
}

.cabinet__cartridge {
  background: linear-gradient(180deg, #2a2a3a, #1a1a2a);
  border-radius: 4px;
  padding: 10px 14px;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s;
  position: relative;
}

[data-theme="light"] .cabinet__cartridge {
  background: linear-gradient(180deg, #1a3a5c, #0e2440);
}

[data-theme="light"] .cartridge__title {
  color: #40aaff;
}

[data-theme="light"] .cartridge__company {
  color: #ccc;
}

[data-theme="light"] .cabinet__game-desc {
  color: var(--text-dim);
}

[data-theme="light"] .cabinet__game-ratio {
  color: var(--neon-purple);
}

.cabinet__cartridge::before {
  content: '';
  position: absolute;
  top: 4px;
  left: 10px;
  right: 10px;
  height: 3px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
}

.cartridge__label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.cartridge__title {
  font-family: var(--font-heading);
  font-size: 9px;
  color: var(--neon-cyan);
  letter-spacing: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cartridge__company {
  font-size: 10px;
  color: var(--text-dim);
  white-space: nowrap;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.cabinet__game-desc {
  font-size: 12px;
  color: var(--text-dim);
  text-align: center;
  margin-top: 4px;
  min-height: 36px;
  transition: opacity 0.3s;
}

.cabinet__game-ratio {
  text-align: center;
  font-family: var(--font-heading);
  font-size: 8px;
  color: var(--neon-purple);
  letter-spacing: 2px;
  margin-top: 2px;
}

/* ── Cartridge animations ── */
.cabinet__cartridge.slide-out-left {
  transform: translateX(-120%);
  opacity: 0;
}

.cabinet__cartridge.slide-out-right {
  transform: translateX(120%);
  opacity: 0;
}

.cabinet__cartridge.slide-in-left {
  animation: slideInFromRight 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.cabinet__cartridge.slide-in-right {
  animation: slideInFromLeft 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes slideInFromRight {
  from {
    transform: translateX(120%);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideInFromLeft {
  from {
    transform: translateX(-120%);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* ── Controls (nav buttons + indicators) ── */
.cabinet__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 16px 20px 20px;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.2));
}

.cabinet__nav-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid var(--cabinet-trim);
  background: rgba(0, 0, 0, 0.3);
  color: var(--text);
  font-family: var(--font-heading);
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
}

.cabinet__nav-btn:hover {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
  transform: scale(1.1);
}

[data-theme="dark"] .cabinet__nav-btn:hover {
  box-shadow: 0 0 16px var(--glow-pink);
}

.cabinet__nav-btn:active {
  transform: scale(0.92);
}

/* Indicators (dots) */
.cabinet__indicators {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cabinet__indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--text-dim);
  background: transparent;
  cursor: pointer;
  transition: all 0.3s;
  padding: 0;
}

.cabinet__indicator:hover {
  border-color: var(--accent);
  background: var(--accent-light);
}

.cabinet__indicator.active {
  background: var(--accent);
  border-color: var(--accent);
  transform: scale(1.3);
}

[data-theme="dark"] .cabinet__indicator.active {
  box-shadow: 0 0 8px var(--glow-pink);
}


/* ════════════════════════════════════════
   EXPERIENCE SECTION
   ════════════════════════════════════════ */
.experience-section {
  padding: 80px 0;
}

.exp-carousel {
  overflow: hidden;
  margin-bottom: 20px;
}

.exp-carousel__track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Experience cartridge (wider, SNES style) */
.exp-cartridge {
  min-width: 100%;
  padding: 0 10px;
  box-sizing: border-box;
}

.exp-cartridge__body {
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.exp-cartridge__body:hover {
  border-color: var(--accent);
}

[data-theme="dark"] .exp-cartridge__body:hover {
  box-shadow: 0 0 20px var(--glow-pink);
}

.exp-cartridge__header {
  padding: 16px 20px;
  border-bottom: 2px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  position: relative;
}

.exp-cartridge__header::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
}

.exp-cartridge__company {
  font-family: var(--font-heading);
  font-size: clamp(10px, 2vw, 14px);
  color: var(--neon-cyan);
  letter-spacing: 1px;
}

[data-theme="dark"] .exp-cartridge__company {
  text-shadow: 0 0 8px var(--glow-cyan);
}

.exp-cartridge__role {
  font-size: 14px;
  color: var(--text);
  font-weight: 600;
}

.exp-cartridge__dates {
  font-size: 12px;
  color: var(--text-dim);
  font-family: var(--font-heading);
  font-size: 8px;
  letter-spacing: 1px;
}

.exp-cartridge__location {
  margin-top: 2px;
  font-size: 11px;
  color: var(--text-dim);
  line-height: 1.3;
}

.exp-cartridge__content {
  padding: 16px 20px;
}

.exp-cartridge__highlights {
  list-style: none;
  padding: 0;
  margin-bottom: 12px;
}

.exp-cartridge__highlights li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 8px;
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.5;
}

.exp-cartridge__highlights li::before {
  content: '>';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-family: var(--font-heading);
  font-size: 10px;
  font-weight: 700;
}

.exp-cartridge__tech {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.exp-cartridge__tech-tag {
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 600;
  color: var(--text-dim);
  letter-spacing: 0.5px;
}

/* Experience controls */
.exp-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.exp-controls__btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  font-family: var(--font-heading);
  font-size: 16px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.exp-controls__btn:hover {
  border-color: var(--accent);
  background: var(--bg-card-hover);
}

[data-theme="dark"] .exp-controls__btn:hover {
  box-shadow: 0 0 12px var(--glow-pink);
}

.exp-controls__btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.exp-controls__counter {
  font-family: var(--font-heading);
  font-size: 10px;
  color: var(--text-dim);
  letter-spacing: 2px;
}

/* ════════════════════════════════════════
   BOSS SECTION
   ════════════════════════════════════════ */
.boss-section {
  padding: 80px 0;
}

.boss-encounter {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  align-items: start;
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: 14px;
  padding: 28px;
  position: relative;
  overflow: hidden;
}

[data-theme="dark"] .boss-encounter {
  box-shadow: 0 0 40px var(--glow-purple);
}

.boss-encounter::before {
  content: '';
  position: absolute;
  inset: 0;
  border: 2px solid var(--neon-purple);
  border-radius: 12px;
  opacity: 0.3;
  pointer-events: none;
}

/* Boss sprite */
.boss__visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.boss__sprite {
  width: 240px;
  height: 240px;
  position: relative;
  image-rendering: pixelated;
  border: 3px solid var(--neon-pink, #ff2d95);
  border-radius: 4px;
  overflow: hidden;
  background: #cc0000;
}

[data-theme="dark"] .boss__sprite {
  box-shadow: 0 0 15px rgba(255, 45, 149, 0.4);
}

/* CSS pixel art boss (placeholder) */
.boss__sprite--default {
  background: var(--screen-bg);
  border: 2px solid var(--neon-purple);
  border-radius: 8px;
  display: grid;
  grid-template-columns: repeat(16, 1fr);
  grid-template-rows: repeat(16, 1fr);
  overflow: hidden;
  padding: 4px;
}

[data-theme="dark"] .boss__sprite--default {
  box-shadow: 0 0 20px var(--glow-purple);
}

.boss__sprite img,
.boss__face-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: pixelated;
  display: block;
}

/* Boss info */
.boss__nameplate {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 12px;
}

.boss__name {
  font-family: var(--font-heading);
  font-size: clamp(12px, 2.5vw, 18px);
  color: var(--neon-pink);
  letter-spacing: 2px;
}

[data-theme="dark"] .boss__name {
  text-shadow: 0 0 10px var(--glow-pink);
}

.boss__level {
  font-family: var(--font-heading);
  font-size: 10px;
  color: var(--neon-yellow);
  letter-spacing: 1px;
}

/* HP bar */
.boss__hp-bar {
  width: 100%;
  height: 24px;
  background: #1a0a0a;
  border: 2px solid #8b0000;
  border-radius: 4px;
  position: relative;
  margin-bottom: 20px;
  overflow: hidden;
}

.boss__hp-fill {
  height: 100%;
  background: linear-gradient(90deg, #cc0000, #ff3333, #cc0000);
  border-radius: 2px;
  width: 100%;
  transition: width 1.5s ease-out;
  position: relative;
}

.boss__hp-fill::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
      rgba(255, 255, 255, 0.3) 0%,
      transparent 50%,
      rgba(0, 0, 0, 0.2) 100%);
}

.boss__hp-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 8px;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
  letter-spacing: 2px;
}

/* Boss stats */
.boss__stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 8px;
  margin-bottom: 20px;
}

.boss__stat {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 8px;
  text-align: center;
}

.boss__stat-label {
  font-family: var(--font-heading);
  font-size: 8px;
  color: var(--neon-cyan);
  display: block;
  margin-bottom: 4px;
  letter-spacing: 2px;
}

.boss__stat-bar {
  height: 6px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 4px;
}

.boss__stat-bar-fill {
  height: 100%;
  background: var(--neon-cyan);
  border-radius: 3px;
  transition: width 1s ease-out;
}

[data-theme="dark"] .boss__stat-bar-fill {
  box-shadow: 0 0 6px var(--glow-cyan);
}

.boss__stat-desc {
  font-size: 9px;
  color: var(--text-dim);
}

/* Boss bio */
.boss__bio {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.7;
  margin-bottom: 20px;
  border-left: 3px solid var(--neon-purple);
  padding-left: 16px;
}

/* Boss skills */
.boss__skills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.boss__skill-tag {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border);
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 600;
  color: var(--text-dim);
  transition: all 0.2s;
}

.boss__skill-tag:hover {
  border-color: var(--neon-purple);
  color: var(--neon-purple);
}

[data-theme="dark"] .boss__skill-tag:hover {
  box-shadow: 0 0 8px var(--glow-purple);
}

/* ════════════════════════════════════════
   CONTACTS SECTION
   ════════════════════════════════════════ */
.contacts-section {
  padding: 80px 0;
}

.contacts__subtitle {
  text-align: center;
  font-size: 14px;
  color: var(--text-dim);
  margin-top: -28px;
  margin-bottom: 40px;
}

.contacts__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  max-width: 700px;
  margin: 0 auto;
}

.contact-coin {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: var(--text);
  padding: 24px 16px;
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: 12px;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.contact-coin:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}

[data-theme="dark"] .contact-coin:hover {
  box-shadow: 0 8px 30px var(--glow-pink);
}

.contact-coin__icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--neon-pink), var(--neon-purple));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 12px;
  transition: transform 0.3s;
  color: #fff;
  font-weight: 700;
}

.contact-coin:hover .contact-coin__icon {
  transform: scale(1.1) rotate(-5deg);
}

[data-theme="light"] .contact-coin__icon {
  background: linear-gradient(135deg, #ffaa30, #e07a00);
}

.contact-coin__label {
  font-family: var(--font-heading);
  font-size: 9px;
  color: var(--neon-cyan);
  letter-spacing: 2px;
  margin-bottom: 4px;
}

.contact-coin__value {
  font-size: 13px;
  color: var(--text-dim);
  font-weight: 500;
}

/* Coin insert animation */
.contact-coin:hover .contact-coin__icon {
  animation: coinDrop 0.4s ease-out;
}

@keyframes coinDrop {
  0% {
    transform: translateY(-10px) scale(1.1);
  }

  50% {
    transform: translateY(3px) scale(1.05);
  }

  100% {
    transform: translateY(0) scale(1.1) rotate(-5deg);
  }
}

/* ════════════════════════════════════════
   FOOTER
   ════════════════════════════════════════ */
.footer {
  padding: 40px 0;
  border-top: 2px solid var(--border);
  text-align: center;
}

.footer__credits {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}

.footer__text {
  font-family: var(--font-heading);
  font-size: 12px;
  color: var(--neon-purple);
  letter-spacing: 6px;
}

[data-theme="dark"] .footer__text {
  text-shadow: 0 0 10px var(--glow-purple);
}

.footer__copy {
  font-size: 13px;
  color: var(--text-dim);
}

.footer__sub {
  font-size: 11px;
  color: var(--text-dim);
  opacity: 0.6;
}

/* ════════════════════════════════════════
   NAV DOTS
   ════════════════════════════════════════ */
.nav-dots {
  position: fixed;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 9990;
}

.nav-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
  border: 1px solid var(--text-dim);
  transition: all 0.3s;
}

.nav-dot.active,
.nav-dot:hover {
  background: var(--accent);
  border-color: var(--accent);
  transform: scale(1.3);
}

[data-theme="dark"] .nav-dot.active {
  box-shadow: 0 0 8px var(--glow-pink);
}

/* ════════════════════════════════════════
   ANIMATIONS
   ════════════════════════════════════════ */

/* Neon flicker for dark theme */
@keyframes neonFlicker {

  0%,
  19%,
  21%,
  23%,
  25%,
  54%,
  56%,
  100% {
    opacity: 1;
  }

  20%,
  24%,
  55% {
    opacity: 0.6;
  }
}

[data-theme="dark"] .cabinet__marquee-text {
  animation: neonFlicker 4s infinite;
}

/* Fade-in on scroll */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s, transform 0.6s;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════ */

/* Tablet */
@media (max-width: 768px) {
  .boss-encounter {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .boss__visual {
    justify-content: center;
  }

  .boss__sprite {
    width: 180px;
    height: 180px;
  }

  .boss__bio {
    border-left: none;
    border-top: 3px solid var(--neon-purple);
    padding-left: 0;
    padding-top: 16px;
    text-align: left;
  }

  .boss__skills {
    justify-content: center;
  }

  .hero__stats {
    gap: 20px;
  }

  .nav-dots {
    display: none;
  }

  .arcade-cabinet {
    max-width: 360px;
  }

  .cabinet__controls {
    gap: 16px;
  }
}

/* Mobile */
@media (max-width: 480px) {
  .hero {
    padding: 80px 0 40px;
    min-height: auto;
  }

  .hero__name {
    font-size: clamp(16px, 7vw, 28px);
    word-break: break-word;
  }

  .hero__title {
    font-size: clamp(8px, 2.5vw, 12px);
  }

  .hero__subtitle {
    font-size: 14px;
    padding: 0 8px;
  }

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

  .hero__stat-label {
    font-size: 9px;
  }

  .arcade-cabinet {
    max-width: 100%;
    margin: 0 auto;
    border-radius: 14px 14px 8px 8px;
  }

  .cabinet__screen {
    aspect-ratio: 9 / 12;
  }

  .cabinet__controls {
    gap: 12px;
    padding: 14px 16px 18px;
  }

  .cabinet__nav-btn {
    width: 52px;
    height: 52px;
    font-size: 18px;
  }

  .cabinet__indicator {
    width: 14px;
    height: 14px;
  }

  .cabinet__indicators {
    gap: 12px;
  }

  .contacts__grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .contact-coin {
    padding: 20px 12px;
  }

  .contact-coin__icon {
    width: 52px;
    height: 52px;
    font-size: 20px;
  }

  .boss__stats {
    grid-template-columns: repeat(3, 1fr);
  }

  .boss__nameplate {
    justify-content: center;
  }

  .section-title {
    font-size: clamp(12px, 4vw, 18px);
    margin-bottom: 24px;
  }

  .theme-toggle {
    top: 12px;
    right: 12px;
  }

  .theme-toggle__track {
    width: 60px;
    height: 28px;
  }

  .theme-toggle__thumb {
    width: 22px;
    height: 22px;
  }

  [data-theme="light"] .theme-toggle__thumb {
    transform: translateX(32px);
  }

  .exp-controls__btn {
    width: 52px;
    height: 52px;
    font-size: 16px;
  }

  .exp-cartridge__header {
    flex-direction: column;
    gap: 4px;
  }

  .exp-cartridge__highlights li {
    font-size: 12px;
  }
}

/* ════════════════════════════════════════
   PIXEL ART BOSS PLACEHOLDER (CSS)
   ════════════════════════════════════════ */
.pixel-boss-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--screen-bg);
  border: 2px solid var(--neon-purple);
  border-radius: 8px;
  position: relative;
  overflow: hidden;
}

[data-theme="dark"] .pixel-boss-placeholder {
  box-shadow: 0 0 20px var(--glow-purple);
}

.pixel-boss-placeholder__art {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 2px;
  padding: 20px;
  width: 80%;
  aspect-ratio: 1;
}

.pixel-boss-placeholder__art span {
  aspect-ratio: 1;
  border-radius: 1px;
}

.px-p {
  background: var(--neon-pink);
}

.px-c {
  background: var(--neon-cyan);
}

.px-y {
  background: var(--neon-yellow);
}

.px-w {
  background: rgba(255, 255, 255, 0.8);
}

.px-d {
  background: rgba(255, 255, 255, 0.15);
}

.px-n {
  background: transparent;
}

.pixel-boss-placeholder__label {
  font-family: var(--font-heading);
  font-size: 8px;
  color: var(--neon-purple);
  letter-spacing: 2px;
  margin-top: 8px;
  opacity: 0.6;
}

/* ════════════════════════════════════════
   SWIPE HINT (mobile)
   ════════════════════════════════════════ */
@media (max-width: 768px) {
  .exp-carousel__track {
    cursor: grab;
  }

  .exp-carousel__track:active {
    cursor: grabbing;
  }
}