/* ---------- reset / base ---------- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #0a0a0a;
  --card: rgba(13, 13, 17, 0.6);
  --card-border: rgba(255, 255, 255, 0.06);
  --text: #e8e8e8;
  --muted: #8a8a8a;
  --accent: #7289da;
  --accent-hover: #8ea1e1;
  --green: #43b581;
  --yellow: #f1c40f;
  --red: #e84a4a;
  --idle: #faa61a;
  --offline: #747f8d;
}

html {
  scroll-behavior: smooth;
}

html {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  /* NO background here — body's solid bg would paint above negative z-index
     elements (per CSS painting order spec) and hide aurora/stars/blobs.
     Canvas background comes from html. */
  color: var(--text);
  font-family: 'JetBrains Mono', 'Fira Code', Consolas, ui-monospace, monospace;
  font-size: 14px;
  line-height: 1.55;
  overflow-x: hidden;
}

/* ---------- custom cursor (desktop only) ---------- */
@media (hover: hover) and (pointer: fine) {
  body, a, button, input, textarea, select,
  .pill, .project, .avatar, .music-btn, .gb-submit, .terminal-close,
  .arcade-play, .game-start, .link-btn {
    cursor: none;
  }

  .cursor-dot,
  .cursor-ring {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 10000;
    transform: translate3d(-50%, -50%, 0);
    will-change: transform, width, height, opacity;
    mix-blend-mode: difference;
  }

  .cursor-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #e8e8e8;
    transition: opacity 0.2s ease;
  }

  .cursor-ring {
    width: 30px;
    height: 30px;
    border: 1.5px solid rgba(232, 232, 232, 0.7);
    border-radius: 50%;
    transition: width 0.22s cubic-bezier(0.2, 0.7, 0.2, 1),
                height 0.22s cubic-bezier(0.2, 0.7, 0.2, 1),
                border-color 0.22s ease,
                background 0.22s ease,
                opacity 0.2s ease;
  }

  /* hover state — ring grows + softens */
  .cursor-ring.hover {
    width: 52px;
    height: 52px;
    border-color: rgba(232, 232, 232, 0.35);
    background: rgba(232, 232, 232, 0.06);
  }

  /* hide when leaving window */
  .cursor-dot.hidden,
  .cursor-ring.hidden {
    opacity: 0;
  }

  /* trail particles */
  .cursor-trail {
    position: fixed;
    top: 0;
    left: 0;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(232, 232, 232, 0.6);
    pointer-events: none;
    z-index: 9999;
    transform: translate3d(-50%, -50%, 0);
    mix-blend-mode: difference;
    animation: cursorTrailFade 480ms ease-out forwards;
  }

  @keyframes cursorTrailFade {
    0%   { opacity: 0.7; transform: translate3d(-50%, -50%, 0) scale(1); }
    100% { opacity: 0;   transform: translate3d(-50%, -50%, 0) scale(0.2); }
  }
}

/* ---------- background layer stack ----------
   -5  body::before (base gradient)
   -4  .blobs       (drifting glowing blobs)
   -3  .matrix-canvas (matrix rain, transparent fade so blobs show through)
   -2  .scan-sweep  (moving CRT scanline)
   -1  .bg-overlay  (final darken pass)
*/

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -5;
  background: linear-gradient(135deg, #06060a 0%, #08080d 50%, #050507 100%);
}

/* ---------- drifting gradient blobs ---------- */
.blobs {
  position: fixed;
  inset: 0;
  z-index: -4;
  pointer-events: none;
  overflow: hidden;
  filter: blur(80px) saturate(160%);
}

.blob {
  position: absolute;
  border-radius: 50%;
  opacity: 0.95;
  will-change: transform;
}

.blob-1 {
  width: 680px;
  height: 680px;
  background: radial-gradient(circle, rgba(114, 137, 218, 0.85) 0%, rgba(114, 137, 218, 0.3) 40%, transparent 70%);
  top: -12%;
  left: -10%;
  animation: blobDrift1 22s ease-in-out infinite;
}

.blob-2 {
  width: 620px;
  height: 620px;
  background: radial-gradient(circle, rgba(155, 89, 220, 0.75) 0%, rgba(155, 89, 220, 0.25) 40%, transparent 70%);
  top: 25%;
  right: -10%;
  animation: blobDrift2 28s ease-in-out infinite;
}

.blob-3 {
  width: 560px;
  height: 560px;
  background: radial-gradient(circle, rgba(58, 165, 179, 0.7) 0%, rgba(58, 165, 179, 0.22) 40%, transparent 70%);
  bottom: -12%;
  left: 22%;
  animation: blobDrift3 26s ease-in-out infinite;
}

.blob-4 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(220, 80, 130, 0.6) 0%, rgba(220, 80, 130, 0.18) 40%, transparent 70%);
  top: 55%;
  left: 0%;
  opacity: 0.7;
  animation: blobDrift4 32s ease-in-out infinite;
}

@keyframes blobDrift1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%      { transform: translate(180px, 90px) scale(1.1); }
  66%      { transform: translate(60px, 220px) scale(0.95); }
}
@keyframes blobDrift2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(-200px, 160px) scale(1.15); }
}
@keyframes blobDrift3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  40%      { transform: translate(140px, -120px) scale(1.05); }
  70%      { transform: translate(-80px, -60px) scale(1.1); }
}
@keyframes blobDrift4 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(220px, -180px) scale(0.9); }
}

/* ---------- aurora — flowing gradient bands ---------- */
.aurora {
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  overflow: hidden;
  mix-blend-mode: screen;
  opacity: 0.85;
}

.aurora::before,
.aurora::after {
  content: "";
  position: absolute;
  width: 180vmax;
  height: 180vmax;
  top: 50%;
  left: 50%;
  transform-origin: center;
  border-radius: 50%;
  filter: blur(80px) saturate(140%);
  will-change: transform;
}

.aurora::before {
  background: conic-gradient(from 0deg,
    rgba(114, 137, 218, 0.35) 0%,
    rgba(155, 89, 220, 0.30) 25%,
    rgba(58, 165, 179, 0.32) 50%,
    rgba(220, 80, 130, 0.28) 75%,
    rgba(114, 137, 218, 0.35) 100%);
  animation: auroraSpinA 42s linear infinite;
}

.aurora::after {
  background: conic-gradient(from 180deg,
    rgba(58, 165, 179, 0.28) 0%,
    rgba(114, 137, 218, 0.32) 33%,
    rgba(220, 80, 130, 0.22) 66%,
    rgba(58, 165, 179, 0.28) 100%);
  animation: auroraSpinB 64s linear infinite;
  opacity: 0.7;
}

@keyframes auroraSpinA {
  0%   { transform: translate(-50%, -50%) rotate(0deg) scale(1); }
  50%  { transform: translate(-50%, -50%) rotate(180deg) scale(1.1); }
  100% { transform: translate(-50%, -50%) rotate(360deg) scale(1); }
}

@keyframes auroraSpinB {
  0%   { transform: translate(-50%, -50%) rotate(360deg) scale(1.05); }
  100% { transform: translate(-50%, -50%) rotate(0deg) scale(1.05); }
}

/* ---------- final darken overlay (subtle, so blobs stay visible) ---------- */
.bg-overlay {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(1000px 700px at 50% 40%, transparent 0%, rgba(0,0,0,0.15) 90%),
    linear-gradient(180deg, rgba(0,0,0,0.05) 0%, transparent 50%, rgba(0,0,0,0.18) 100%);
  pointer-events: none;
}

/* ---------- film grain overlay (above content for cinematic feel) ---------- */
.grain {
  position: fixed;
  inset: 0;
  z-index: 998;
  pointer-events: none;
  opacity: 0.12;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='200' height='200' filter='url(%23n)'/></svg>");
  background-size: 200px 200px;
  animation: grainShift 0.8s steps(8) infinite;
}

@keyframes grainShift {
  0%   { transform: translate(0, 0); }
  10%  { transform: translate(-5%, -10%); }
  20%  { transform: translate(-15%, 5%); }
  30%  { transform: translate(7%, -25%); }
  40%  { transform: translate(-5%, 25%); }
  50%  { transform: translate(-15%, 10%); }
  60%  { transform: translate(15%, 0%); }
  70%  { transform: translate(0%, 15%); }
  80%  { transform: translate(3%, 35%); }
  90%  { transform: translate(-10%, 10%); }
  100% { transform: translate(0, 0); }
}

/* ---------- CRT scanlines ---------- */
.scanlines {
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.025) 0px,
    rgba(255, 255, 255, 0.025) 1px,
    transparent 1px,
    transparent 3px
  );
  mix-blend-mode: overlay;
}

.scanlines::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 0%, rgba(114, 137, 218, 0.04) 50%, transparent 100%);
  background-size: 100% 8px;
  animation: scanFlicker 7s linear infinite;
  pointer-events: none;
}

@keyframes scanFlicker {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 0.3; }
}

/* ---------- boot screen ---------- */
.boot {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: radial-gradient(ellipse at center, #0c0c14 0%, #050507 70%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  transition: opacity 0.5s ease;
  cursor: default;
}

.boot.fade {
  opacity: 0;
  pointer-events: none;
}

.boot.clickable {
  cursor: pointer;
}

.boot-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  opacity: 0;
  animation: bootFadeIn 0.7s ease 0.1s forwards;
}

@keyframes bootFadeIn {
  to { opacity: 1; }
}

.boot-name {
  font-family: 'Instrument Serif', serif;
  font-weight: 400;
  font-size: clamp(3.5rem, 9vw, 5.5rem);
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--text);
  text-shadow: 0 4px 40px rgba(114, 137, 218, 0.35);
  margin: 0;
}

.boot-status {
  font-family: 'JetBrains Mono', monospace;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin: 0;
  display: inline-flex;
  align-items: center;
}

.boot-dots::after {
  content: "";
  display: inline-block;
  width: 1.5em;
  text-align: left;
  animation: bootDots 1.4s steps(4) infinite;
}

@keyframes bootDots {
  0%   { content: ""; }
  25%  { content: "."; }
  50%  { content: ".."; }
  75%  { content: "..."; }
  100% { content: ""; }
}

.boot.clickable .boot-status {
  color: var(--text);
  animation: bootPulse 1.8s ease-in-out infinite;
}

@keyframes bootPulse {
  0%, 100% { opacity: 0.55; }
  50%      { opacity: 1; }
}

/* ---------- layout ---------- */
.container {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 32px 220px;
  display: flex;
  flex-direction: column;
  gap: 64px;
}

/* generic section row used everywhere below the hero */
.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  opacity: 0;
  transform: translateY(10px);
  animation: fadeUp 0.6s ease forwards;
}

.row-col-full {
  grid-column: 1 / -1;
}

/* section heading with the akryst-style dash prefix, BUT made our own:
   uppercase, letter-spaced, muted, prefixed by a longer accent line */
.sec-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2px;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 16px;
}

.sec-dash {
  display: inline-block;
  width: 28px;
  height: 1px;
  background: var(--accent);
  opacity: 0.7;
}

.card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 18px 20px;
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.03);
  opacity: 0;
  transform: translateY(8px);
  animation: fadeUp 0.5s ease forwards;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.card:hover {
  border-color: rgba(114, 137, 218, 0.35);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(114, 137, 218, 0.08);
}

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

/* ---------- hero (full viewport) ---------- */
.hero {
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  position: relative;
  padding: 80px 0 40px;
  opacity: 0;
  animation: fadeUp 0.9s ease forwards;
}

.hero-inner {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 28px;
  row-gap: 28px;
  align-items: center;
  max-width: 100%;
}

.hero .avatar {
  width: 110px;
  height: 110px;
  grid-row: 1;
  grid-column: 1;
}

.hero .avatar .status-dot {
  width: 22px;
  height: 22px;
  border-width: 4px;
}

.hero-text {
  grid-row: 1;
  grid-column: 2;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.hero-pre {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  color: var(--muted);
  font-size: 20px;
  letter-spacing: 0.2px;
  line-height: 1;
  margin: 0 0 4px;
  opacity: 0.85;
}

.hero-name {
  font-family: 'Instrument Serif', serif;
  font-weight: 400;
  font-size: clamp(3.5rem, 10vw, 7rem);
  letter-spacing: -0.02em;
  line-height: 0.92;
  color: var(--text);
  margin: 0 0 8px;
  text-shadow: 0 4px 40px rgba(0, 0, 0, 0.55);
}

.hero-name.glitch {
  position: relative;
}

.hero-skills {
  grid-row: 2;
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.scroll-cue {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  opacity: 0.6;
  animation: scrollPulse 2.4s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { transform: translate(-50%, 0); opacity: 0.55; }
  50%      { transform: translate(-50%, 6px); opacity: 1; }
}

/* ---------- numbered side nav (in hero) ---------- */
.hero-nav {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-family: 'JetBrains Mono', monospace;
}

.hero-nav a {
  display: inline-flex;
  align-items: baseline;
  gap: 14px;
  padding: 6px 0;
  text-decoration: none;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  position: relative;
  transition: color 0.18s ease, padding-left 0.22s ease;
  width: max-content;
}

.hero-nav a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 0;
  height: 1px;
  background: var(--accent);
  transform: translateY(-50%);
  transition: width 0.25s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.hero-nav a:hover {
  color: var(--text);
  padding-left: 36px;
}

.hero-nav a:hover::before {
  width: 26px;
}

.hero-nav .nav-num {
  color: rgba(255, 255, 255, 0.25);
  font-size: 11px;
  font-weight: 500;
  min-width: 18px;
  letter-spacing: 1px;
  transition: color 0.18s ease;
}

.hero-nav a:hover .nav-num {
  color: var(--accent);
}

.hero-nav .nav-label {
  letter-spacing: 2.5px;
}

.avatar {
  position: relative;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2a2d4a, #1a1c2e);
  background-image: url('assets/avatar.jpg'), linear-gradient(135deg, #2a2d4a, #1a1c2e);
  background-size: cover;
  background-position: 40% 30%;
  flex-shrink: 0;
  border: 2px solid #2a2a32;
  box-shadow: 0 0 0 0 rgba(220, 225, 240, 0.0);
  animation: avatarPulse 3.4s ease-in-out infinite;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  --ring-color: #43b581;
}

/* status-driven ring around the avatar */
.avatar::before {
  content: '';
  position: absolute;
  inset: -7px;
  border-radius: 50%;
  border: 2px solid var(--ring-color);
  opacity: 0.85;
  box-shadow: 0 0 18px var(--ring-color), inset 0 0 12px color-mix(in srgb, var(--ring-color) 35%, transparent);
  animation: ringPulse 2.6s ease-in-out infinite;
  pointer-events: none;
  z-index: 1;
}

.avatar[data-status="online"]  { --ring-color: #43b581; }
.avatar[data-status="idle"]    { --ring-color: #faa61a; }
.avatar[data-status="dnd"]     { --ring-color: #f04747; }
.avatar[data-status="offline"] { --ring-color: #747f8d; }

@keyframes ringPulse {
  0%, 100% { transform: scale(1);    opacity: 0.85; }
  50%      { transform: scale(1.06); opacity: 0.55; }
}

/* avatar decoration overlay (Nitro frame around pfp) */
.avatar-deco {
  position: absolute;
  inset: -14%;
  width: 128%;
  height: 128%;
  pointer-events: none;
  z-index: 2;
  display: none;
}
.avatar-deco.show { display: block; }

.avatar:hover {
  transform: scale(1.04);
  border-color: #4a4a55;
  box-shadow: 0 0 0 6px rgba(220, 225, 240, 0.08), 0 0 28px rgba(220, 225, 240, 0.32);
}

@keyframes avatarPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(220, 225, 240, 0.0); }
  50%      { box-shadow: 0 0 20px rgba(220, 225, 240, 0.18); }
}

.status-dot {
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 16px;
  height: 16px;
  background: var(--green);
  border-radius: 50%;
  border: 3px solid #0a0a0a;
  transition: background 0.2s ease;
}

.status-dot.idle { background: var(--idle); }
.status-dot.dnd { background: var(--red); }
.status-dot.offline { background: var(--offline); }

.avatar.offline .status-dot {
  background: var(--red);
}

.profile-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.username {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.3px;
}

.tagline {
  color: var(--muted);
  font-size: 13px;
}

.activity {
  color: var(--accent);
  font-size: 12px;
  margin-top: 2px;
  display: none;
}

.activity.show {
  display: block;
}

/* ---------- glitch effect on username ---------- */
.glitch {
  position: relative;
}

.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  pointer-events: none;
}

.glitch:hover::before {
  opacity: 0.8;
  color: var(--accent);
  animation: glitchA 0.4s steps(2) 1;
}

.glitch:hover::after {
  opacity: 0.8;
  color: var(--red);
  animation: glitchB 0.4s steps(2) 1;
}

@keyframes glitchA {
  0% { transform: translate(0, 0); }
  20% { transform: translate(-2px, 1px); }
  40% { transform: translate(1px, -1px); }
  60% { transform: translate(-1px, 2px); }
  80% { transform: translate(2px, -1px); }
  100% { transform: translate(0, 0); }
}

@keyframes glitchB {
  0% { transform: translate(0, 0); }
  20% { transform: translate(2px, -1px); }
  40% { transform: translate(-1px, 1px); }
  60% { transform: translate(1px, -2px); }
  80% { transform: translate(-2px, 1px); }
  100% { transform: translate(0, 0); }
}

/* ---------- section headings ---------- */
.section-heading {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.4px;
  margin-bottom: 10px;
  text-transform: lowercase;
}

.body-text {
  color: var(--text);
  font-size: 13.5px;
}

/* ---------- skills ---------- */
.skills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pill {
  background: #15151a;
  border: 1px solid #222;
  color: var(--text);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
}

.skill-icon {
  --c: var(--accent);
  --fg: #ffffff;
  width: 38px;
  height: 38px;
  background: color-mix(in srgb, var(--c) 16%, #0c0c10 84%);
  border: 1px solid color-mix(in srgb, var(--c) 30%, transparent);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c);
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
  position: relative;
}

/* hover label tooltip */
.skill-icon::after {
  content: attr(data-label);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: rgba(14, 14, 20, 0.92);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--text);
  font-size: 10px;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.5px;
  padding: 3px 7px;
  border-radius: 4px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease, transform 0.15s ease;
  backdrop-filter: blur(8px);
}

.skill-icon:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.skill-icon svg {
  width: 20px;
  height: 20px;
}

.skill-icon:hover {
  transform: translateY(-2px);
  background: color-mix(in srgb, var(--c) 28%, #0c0c10 72%);
  border-color: color-mix(in srgb, var(--c) 60%, transparent);
  box-shadow: 0 6px 18px color-mix(in srgb, var(--c) 30%, transparent);
}

/* ---------- projects ---------- */
.projects {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.project {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px;
  background: #101015;
  border: 1px solid #1c1c22;
  border-radius: 6px;
  text-decoration: none;
  color: var(--text);
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.project:hover {
  transform: translateY(-1px);
  border-color: var(--accent);
  background: #14141c;
}

.project-title {
  font-weight: 500;
  font-size: 13.5px;
}

.project-desc {
  color: var(--muted);
  font-size: 12px;
}

/* ---------- links ---------- */
.link-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  transition: transform 0.15s ease, background 0.15s ease;
}

.link-btn:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.link-icon {
  font-weight: 700;
}

.links-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tg-btn {
  background: #0088cc;
}

.tg-btn:hover {
  background: #2aa2db;
}

/* ---------- find me at — minimal list (akryst-inspired but distinctive) ---------- */
.links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.links-list li {
  border-bottom: 1px dashed rgba(255, 255, 255, 0.06);
}

.links-list li:last-child { border-bottom: none; }

.links-list a {
  --c: var(--accent);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 4px;
  text-decoration: none;
  color: var(--text);
  font-size: 13px;
  transition: padding 0.18s ease, color 0.18s ease;
}

.links-list a:hover {
  padding-left: 12px;
  color: var(--c);
}

.links-list .link-icon {
  color: var(--c);
  font-weight: 700;
  width: 18px;
  text-align: center;
}

.links-list .link-platform {
  color: var(--muted);
  text-transform: lowercase;
  letter-spacing: 0.4px;
}

.links-list .link-slash {
  color: rgba(255, 255, 255, 0.18);
  margin: 0 2px;
}

.links-list .link-handle {
  color: var(--text);
  font-weight: 500;
}

/* ---------- my work — github-style cards ---------- */
.work-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.work-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 16px;
  background: rgba(10, 10, 14, 0.45);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.18s ease, transform 0.18s ease, background 0.18s ease;
}

.work-card:hover {
  border-color: rgba(114, 137, 218, 0.4);
  transform: translateY(-2px);
  background: rgba(17, 17, 22, 0.65);
}

.work-card-head {
  font-size: 13px;
  display: flex;
  align-items: baseline;
  gap: 2px;
}

.work-author { color: var(--muted); font-weight: 400; }
.work-slash { color: rgba(255, 255, 255, 0.2); margin: 0 4px; }
.work-name { color: var(--text); font-weight: 600; }

.work-desc {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
  margin: 0;
}

.work-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}

.work-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c, var(--accent));
}

/* ---------- cool stuff — 88x31-ish web buttons ---------- */
.webbtns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(86px, 1fr));
  gap: 6px;
}

.webbtn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 31px;
  padding: 0 8px;
  background: linear-gradient(180deg, #1c1c22 0%, #14141a 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 3px;
  text-decoration: none;
  color: var(--text);
  font-size: 11px;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.2px;
  transition: transform 0.12s ease, border-color 0.12s ease, box-shadow 0.18s ease;
  position: relative;
  overflow: hidden;
}

.webbtn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.05) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 0.45s ease;
}

.webbtn:hover {
  transform: translateY(-1px);
  border-color: var(--accent);
  box-shadow: 0 4px 12px rgba(114, 137, 218, 0.25);
}

.webbtn:hover::before { transform: translateX(100%); }

.webbtn-title { color: var(--text); font-weight: 600; }
.webbtn-sub { color: var(--muted); }

.webbtn-vhs  { background: linear-gradient(180deg, #1a1428 0%, #0f0a18 100%); }
.webbtn-css  { background: linear-gradient(180deg, #0a1c2a 0%, #061018 100%); }
.webbtn-key  { background: linear-gradient(180deg, #0d2010 0%, #061008 100%); }
.webbtn-hand { background: linear-gradient(180deg, #0d2010 0%, #061008 100%); }
.webbtn-sleep{ background: linear-gradient(180deg, #2a1008 0%, #180a04 100%); }
.webbtn-snake { background: linear-gradient(180deg, #14182a 0%, #0a0e1c 100%); }
.webbtn-music { background: linear-gradient(180deg, #2a0e1c 0%, #18060f 100%); }
.webbtn-secret{ background: linear-gradient(180deg, #2a200a 0%, #181204 100%); }

/* ---------- site toast ---------- */
.site-toast {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: rgba(18, 18, 24, 0.92);
  border: 1px solid rgba(255,255,255,0.14);
  backdrop-filter: blur(12px);
  color: var(--text);
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  padding: 8px 18px;
  border-radius: 4px;
  z-index: 9999;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.site-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ---------- light-chaos flash ---------- */
body.light-chaos {
  background: #ffffff !important;
  filter: invert(1) hue-rotate(180deg);
  transition: none;
}

/* ---------- confetti particle ---------- */
.confetti-bit {
  position: fixed;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  pointer-events: none;
  z-index: 9998;
  animation: confettiFly 0.85s ease-out forwards;
}
@keyframes confettiFly {
  0%   { opacity: 1; transform: translate(0, 0) rotate(0deg) scale(1); }
  100% { opacity: 0; transform: var(--tx) rotate(var(--rot)) scale(0.4); }
}

/* ---------- arcade card ---------- */
.arcade {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  background: rgba(10, 10, 14, 0.45);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  margin-bottom: 12px;
  position: relative;
  overflow: hidden;
}

.arcade::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(400px 80px at 0% 50%, rgba(114, 137, 218, 0.18), transparent 70%);
  pointer-events: none;
}

.arcade-blurb { position: relative; z-index: 1; }

.arcade-title {
  font-weight: 700;
  font-size: 14px;
  color: var(--text);
  letter-spacing: 0.5px;
}

.arcade-desc {
  color: var(--muted);
  font-size: 12px;
  margin-top: 2px;
}

.arcade-play {
  position: relative;
  z-index: 1;
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 8px 14px;
  border-radius: 6px;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  letter-spacing: 0.5px;
  transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.arcade-play:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(114, 137, 218, 0.35);
}

.leaderboard {
  background: rgba(10, 10, 14, 0.45);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 12px 14px;
}

.lb-heading {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.lb-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 3px;
  counter-reset: lb;
  padding: 0;
}

.lb-list li {
  counter-increment: lb;
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 12.5px;
  color: var(--text);
  padding: 3px 4px;
  border-radius: 4px;
}

.lb-list li::before {
  content: counter(lb) ".";
  color: var(--accent);
  font-weight: 700;
  min-width: 18px;
}

.lb-list li.you {
  background: rgba(114, 137, 218, 0.12);
}

.lb-list .lb-name {
  color: var(--text);
  font-weight: 500;
  letter-spacing: 1px;
}

.lb-list .lb-score {
  margin-left: auto;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.lb-empty {
  color: var(--muted);
  font-style: italic;
  font-size: 12px;
}

/* ---------- snake game overlay ---------- */
.game[hidden] { display: none !important; }

.game {
  position: fixed;
  inset: 0;
  z-index: 600;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: termIn 0.18s ease;
}

.game-window {
  width: 100%;
  max-width: 460px;
  background: #07070a;
  border: 1px solid #2a2a32;
  border-radius: 8px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7), 0 0 80px rgba(114, 137, 218, 0.12);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.game-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
  background: #101015;
  border-bottom: 1px solid #1c1c22;
}

.game-title {
  margin-left: 8px;
  font-size: 11px;
  color: var(--muted);
}

.game-score {
  margin-left: auto;
  font-size: 11px;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  padding: 2px 8px;
  background: #1c1c22;
  border-radius: 4px;
}

.game-score span {
  color: var(--accent);
  font-weight: 700;
}

.game-hint {
  font-size: 10px;
  color: var(--muted);
  padding: 2px 6px;
  border: 1px solid #2a2a32;
  border-radius: 4px;
  letter-spacing: 0.3px;
}

.game-body {
  position: relative;
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(rgba(114, 137, 218, 0.025) 1px, transparent 1px) 0 0 / 20px 20px,
    linear-gradient(90deg, rgba(114, 137, 218, 0.025) 1px, transparent 1px) 0 0 / 20px 20px,
    #050507;
}

#snakeCanvas {
  display: block;
  background: #07070a;
  border: 1px solid #1c1c22;
  border-radius: 4px;
  image-rendering: pixelated;
  width: 400px;
  height: 400px;
  max-width: 100%;
  max-height: 60vh;
  aspect-ratio: 1 / 1;
}

.game-overlay {
  position: absolute;
  inset: 12px;
  background: rgba(7, 7, 10, 0.88);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.game-overlay[hidden] { display: none !important; }

.game-overlay-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 24px;
}

.game-overlay-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 1px;
  text-shadow: 0 0 20px rgba(114, 137, 218, 0.6);
}

.game-overlay-sub {
  color: var(--muted);
  font-size: 12.5px;
  max-width: 280px;
  line-height: 1.6;
}

#snakeInitials {
  background: #101015;
  border: 1px solid #2a2a32;
  color: var(--text);
  padding: 8px 12px;
  border-radius: 6px;
  font-family: inherit;
  font-size: 18px;
  letter-spacing: 6px;
  text-align: center;
  width: 100px;
  outline: none;
  text-transform: uppercase;
  transition: border-color 0.15s ease;
}

#snakeInitials:focus { border-color: var(--accent); }
#snakeInitials[hidden] { display: none !important; }

.game-start {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 9px 22px;
  border-radius: 6px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  letter-spacing: 1px;
  transition: background 0.15s ease, transform 0.15s ease;
}

.game-start:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

/* ---------- music equalizer bars ---------- */
.music-title-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.music-eq {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 12px;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.music-eq.playing { opacity: 1; }

.music-eq span {
  width: 2px;
  background: var(--accent);
  border-radius: 1px;
  height: 30%;
  animation: eqBar 0.9s ease-in-out infinite;
}

.music-eq span:nth-child(1) { animation-delay: 0.0s; }
.music-eq span:nth-child(2) { animation-delay: 0.2s; }
.music-eq span:nth-child(3) { animation-delay: 0.4s; }
.music-eq span:nth-child(4) { animation-delay: 0.6s; }

@keyframes eqBar {
  0%, 100% { height: 25%; }
  50% { height: 100%; }
}

/* ---------- guestbook ---------- */
.gb-form {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.gb-form input {
  background: rgba(10, 10, 14, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text);
  padding: 8px 10px;
  border-radius: 6px;
  font-family: inherit;
  font-size: 12.5px;
  outline: none;
  transition: border-color 0.15s ease;
}

.gb-form input:focus {
  border-color: var(--accent);
}

#gbName {
  width: 100px;
}

#gbMsg {
  flex: 1;
  min-width: 140px;
}

.gb-submit {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 8px 14px;
  border-radius: 6px;
  font-family: inherit;
  font-size: 12.5px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.gb-submit:hover {
  background: var(--accent-hover);
}

.gb-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 220px;
  overflow-y: auto;
}

.gb-entry {
  padding: 9px 12px;
  background: rgba(10, 10, 14, 0.45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  font-size: 12.5px;
  color: var(--text);
  word-break: break-word;
}

.gb-entry .gb-author {
  color: var(--accent);
  font-weight: 500;
  margin-right: 6px;
}

.gb-entry .gb-time {
  color: var(--muted);
  font-size: 11px;
  margin-left: 6px;
}

.gb-empty {
  color: var(--muted);
  font-size: 12px;
  font-style: italic;
}

/* ---------- webring footer ---------- */
.webring {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 24px 0 0;
  border-top: 1px dashed rgba(255, 255, 255, 0.06);
}

.webring-row {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  color: var(--text);
  letter-spacing: 1px;
}

.webring-arrow {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s ease, transform 0.15s ease;
}

.webring-arrow:hover { color: var(--accent); transform: scale(1.2); }

.webring-name {
  color: var(--muted);
  letter-spacing: 2px;
  text-transform: lowercase;
}

.webring-meta {
  color: rgba(255, 255, 255, 0.18);
  font-size: 10px;
  letter-spacing: 1.5px;
}

/* ---------- tip text ---------- */
.tip {
  color: var(--muted);
  font-size: 11px;
  text-align: center;
  letter-spacing: 0.3px;
  margin-top: 0;
  opacity: 0;
  animation: fadeUp 0.5s ease 0.7s forwards;
}

.tip kbd {
  background: #15151a;
  border: 1px solid #2a2a32;
  border-radius: 4px;
  padding: 1px 5px;
  font-family: inherit;
  font-size: 11px;
  color: var(--text);
}

/* ---------- clock widget (top-right) ---------- */
.clock {
  position: fixed;
  top: 16px;
  right: 20px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 1px;
  background: rgba(15, 15, 17, 0.72);
  border: 1px solid var(--card-border);
  padding: 6px 10px;
  border-radius: 6px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 10;
}

/* ---------- music widget (bottom-left) ---------- */
.music-widget {
  position: fixed;
  left: 16px;
  bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px 8px 8px;
  background: rgba(15, 15, 17, 0.78);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 10;
  min-width: 280px;
  max-width: 340px;
}

.music-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  transition: background 0.15s ease, transform 0.15s ease;
  flex-shrink: 0;
}

.music-btn.music-skip {
  width: 26px;
  height: 26px;
  background: #1c1c22;
  font-size: 9px;
}

.music-btn:hover {
  background: var(--accent-hover);
  transform: scale(1.05);
}

.music-btn.music-skip:hover {
  background: #2a2a32;
}

.music-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-width: 0;
}

.music-title {
  font-size: 12px;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.music-bar {
  height: 3px;
  background: #1c1c22;
  border-radius: 999px;
  overflow: hidden;
}

.music-bar-fill {
  height: 100%;
  width: 0%;
  background: var(--accent);
  transition: width 0.2s linear;
}

.music-volume {
  -webkit-appearance: none;
  appearance: none;
  width: 60px;
  height: 3px;
  background: #1c1c22;
  border-radius: 999px;
  outline: none;
}

.music-volume::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  border: none;
}

.music-volume::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  border: none;
}

/* ---------- visitor counter (bottom-right) ---------- */
.visitors {
  position: fixed;
  right: 16px;
  bottom: 16px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 1px;
  background: rgba(15, 15, 17, 0.78);
  border: 1px solid var(--card-border);
  padding: 8px 12px;
  border-radius: 8px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 10;
}

.visitors #visitorCount {
  color: var(--text);
}

/* ---------- typed bio cursor ---------- */
.typed::after {
  content: "█";
  display: inline-block;
  margin-left: 2px;
  color: var(--accent);
  animation: blink 1s steps(1) infinite;
}

.typed.done::after {
  display: none;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

/* ---------- konami confetti ---------- */
.confetti-piece {
  position: fixed;
  top: -20px;
  width: 10px;
  height: 10px;
  pointer-events: none;
  z-index: 1000;
  animation: confettiFall linear forwards;
}

@keyframes confettiFall {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translateY(110vh) rotate(720deg);
    opacity: 0;
  }
}

/* ---------- terminal overlay ---------- */
.terminal[hidden] { display: none !important; }

.terminal {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: termIn 0.18s ease;
}

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

.terminal-window {
  width: 100%;
  max-width: 640px;
  height: 420px;
  max-height: 70vh;
  background: #07070a;
  border: 1px solid #2a2a32;
  border-radius: 8px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.terminal-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
  background: #101015;
  border-bottom: 1px solid #1c1c22;
}

.terminal-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.terminal-dot.red { background: #ff5f56; }
.terminal-dot.yellow { background: #ffbd2e; }
.terminal-dot.green { background: #27c93f; }

.terminal-title {
  margin-left: 8px;
  font-size: 11px;
  color: var(--muted);
  flex: 1;
}

.terminal-hint {
  font-size: 10px;
  color: var(--muted);
  padding: 2px 6px;
  border: 1px solid #2a2a32;
  border-radius: 4px;
  letter-spacing: 0.4px;
  flex-shrink: 0;
}

.terminal-close {
  background: #1c1c22;
  border: 1px solid #2a2a32;
  color: var(--text);
  font-size: 18px;
  line-height: 1;
  width: 28px;
  height: 24px;
  min-width: 28px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin-left: 4px;
  flex-shrink: 0;
  transition: background 0.15s ease, color 0.15s ease;
}

.terminal-close:hover {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
}

.terminal-body {
  flex: 1;
  padding: 12px 14px;
  font-size: 13px;
  overflow-y: auto;
  color: var(--text);
}

.term-line {
  margin: 2px 0;
  white-space: pre-wrap;
  word-break: break-word;
}

.term-line.cmd-echo {
  color: var(--muted);
}

.term-line.error {
  color: var(--red);
}

.term-cmd {
  color: var(--accent);
}

.terminal-input-line {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-top: 1px solid #1c1c22;
}

.term-prompt {
  color: var(--accent);
}

#termInput {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  font-family: inherit;
  font-size: 13px;
  caret-color: var(--accent);
}

/* ---------- ambient floating particles ---------- */
.ambient-particle {
  position: fixed;
  bottom: -10px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  pointer-events: none;
  z-index: -1;
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.4);
  animation: ambientDrift linear infinite;
  will-change: transform, opacity;
}

@keyframes ambientDrift {
  0%   { transform: translate3d(0, 0, 0) scale(0.7); opacity: 0; }
  10%  { opacity: 0.9; }
  90%  { opacity: 0.9; }
  100% { transform: translate3d(var(--drift, 30px), -110vh, 0) scale(1); opacity: 0; }
}

/* ---------- mobile ---------- */
@media (max-width: 640px) {
  .music-widget {
    min-width: 0;
    max-width: none;
  }
  .music-volume {
    display: none;
  }
}

@media (max-width: 720px) {
  .row { grid-template-columns: 1fr; gap: 36px; }
  .work-grid { grid-template-columns: 1fr; }
  .container { gap: 48px; }
}

@media (max-width: 520px) {
  .container {
    padding: 0 18px 220px;
  }
  .hero { min-height: 88vh; padding: 60px 0 32px; }
  .hero-inner {
    grid-template-columns: 70px 1fr;
    column-gap: 18px;
    row-gap: 18px;
  }
  .hero .avatar { width: 70px; height: 70px; }
  .hero .avatar .status-dot { width: 16px; height: 16px; border-width: 3px; }
  .hero-pre { font-size: 16px; }
  .hero-name { font-size: 3.2rem; }
  .skill-icon { width: 34px; height: 34px; }
  .skill-icon svg { width: 18px; height: 18px; }
  .webbtns { grid-template-columns: repeat(auto-fit, minmax(78px, 1fr)); }
  .music-widget {
    left: 10px;
    right: 10px;
    bottom: 60px;
  }
  .visitors {
    left: 10px;
    right: 10px;
    bottom: 10px;
    text-align: center;
  }
  .clock {
    top: 10px;
    right: 10px;
  }
  .terminal {
    padding: 12px;
  }
  .terminal-window {
    height: 80vh;
    max-height: none;
  }
  .game {
    padding: 12px;
  }
  .game-window {
    max-width: 100%;
  }
  .game-hint {
    display: none;
  }
  #snakeCanvas {
    width: 100%;
    height: auto;
  }
  .arcade {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
  .arcade-play {
    width: 100%;
  }
  .gb-form input {
    width: 100%;
  }
  #gbName,
  #gbMsg {
    width: 100%;
    flex: 1 1 100%;
  }
}

/* =====================================================
   STARFIELD — twinkling dots layer (behind aurora)
   ===================================================== */
.stars {
  position: fixed;
  inset: 0;
  z-index: -4;
  pointer-events: none;
  overflow: hidden;
}
.star {
  position: absolute;
  background: #ffffff;
  border-radius: 50%;
  box-shadow: 0 0 4px rgba(255,255,255,0.6);
  animation: twinkle 4s ease-in-out infinite;
  will-change: opacity;
}
@keyframes twinkle {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.25; }
}

/* =====================================================
   DISCORD BADGES — row of small icons under name
   ===================================================== */
.discord-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin: 4px 0 6px;
  min-height: 22px;
}
.discord-badges img {
  width: 22px;
  height: 22px;
  border-radius: 4px;
  background: rgba(255,255,255,0.05);
  padding: 2px;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.4));
  transition: transform 0.18s ease;
}
.discord-badges img:hover {
  transform: translateY(-2px) scale(1.08);
}

/* =====================================================
   ACTIVITY ROW — album art + text
   ===================================================== */
.activity-row {
  display: none;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
}
.activity-row.show { display: flex; }

.activity-art {
  width: 36px;
  height: 36px;
  border-radius: 4px;
  object-fit: cover;
  flex-shrink: 0;
  display: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);
  border: 1px solid rgba(255,255,255,0.1);
}
.activity-art.show { display: block; }

.activity-row .activity {
  display: block;
  margin-top: 0;
}
