/* =========================================================
   NAUXYY // PORTFOLIO — cyber / gamer theme
   ========================================================= */
:root {
  --bg: #05010d;
  --bg2: #0b0420;
  --panel: rgba(18, 8, 40, .55);
  --line: rgba(122, 92, 255, .28);
  --cyan: #00f0ff;
  --pink: #ff2bd6;
  --violet: #7a5cff;
  --green: #39ff88;
  --gold: #ffb800;
  --red: #ff3b3b;
  --txt: #e8e6ff;
  --muted: #9d97c7;
  --f-display: 'Orbitron', sans-serif;
  --f-mono: 'JetBrains Mono', monospace;
  --f-body: 'Rajdhani', sans-serif;
  --ease: cubic-bezier(.2, .9, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  background: radial-gradient(1200px 800px at 80% -10%, #2a0b5c 0%, transparent 60%),
              radial-gradient(900px 700px at -10% 30%, #001f3d 0%, transparent 60%),
              var(--bg);
  color: var(--txt);
  font-family: var(--f-body);
  font-size: 18px;
  line-height: 1.6;
  overflow-x: hidden;
  cursor: none;
}
body.booting { overflow: hidden; }
a { color: inherit; text-decoration: none; cursor: none; }
button { cursor: none; font: inherit; }
::selection { background: var(--pink); color: #000; }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: linear-gradient(var(--cyan), var(--pink)); border-radius: 10px; }

/* ================= BOOT ================= */
#boot {
  position: fixed; inset: 0; z-index: 9999;
  background: #000;
  display: grid; place-items: center;
  font-family: var(--f-mono);
  color: var(--green);
  transition: opacity .6s ease, visibility .6s;
}
#boot.done { opacity: 0; visibility: hidden; }
#boot.done .boot-inner { transform: scale(1.4); filter: blur(10px); }
.boot-inner { width: min(720px, 92vw); transition: transform .6s var(--ease), filter .6s; }
#boot-log { font-size: 13px; line-height: 1.55; min-height: 280px; white-space: pre-wrap; text-shadow: 0 0 6px rgba(57,255,136,.6); }
#boot-log .ok { color: var(--cyan); }
#boot-log .warn { color: var(--gold); }
.boot-bar { height: 4px; background: #0a2a18; margin-top: 18px; overflow: hidden; }
#boot-fill { display: block; height: 100%; width: 0; background: var(--green); box-shadow: 0 0 12px var(--green); transition: width .15s linear; }
.boot-hint { margin-top: 12px; font-size: 11px; letter-spacing: .3em; opacity: .5; animation: blink 1.2s steps(2) infinite; }

/* ================= FX LAYERS ================= */
#bg { position: fixed; inset: 0; z-index: -3; width: 100%; height: 100%; }
.grid-floor {
  position: fixed; left: -50%; right: -50%; bottom: -10vh; height: 60vh; z-index: -2;
  background-image:
    linear-gradient(rgba(255,43,214,.35) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,240,255,.25) 1px, transparent 1px);
  background-size: 60px 60px;
  transform: perspective(400px) rotateX(70deg);
  transform-origin: bottom;
  mask-image: linear-gradient(to top, #000 0%, transparent 85%);
  -webkit-mask-image: linear-gradient(to top, #000 0%, transparent 85%);
  animation: gridmove 2.5s linear infinite;
  opacity: .55;
}
@keyframes gridmove { to { background-position: 0 60px, 0 0; } }
.scanlines {
  position: fixed; inset: 0; z-index: 9000; pointer-events: none;
  background: repeating-linear-gradient(to bottom, rgba(0,0,0,0) 0 2px, rgba(0,0,0,.18) 3px 3px);
  mix-blend-mode: multiply;
}
.scanlines::after {
  content: ""; position: absolute; left: 0; right: 0; height: 120px;
  background: linear-gradient(to bottom, transparent, rgba(0,240,255,.05), transparent);
  animation: scan 7s linear infinite;
}
@keyframes scan { from { top: -120px; } to { top: 100%; } }
.vignette { position: fixed; inset: 0; z-index: 8999; pointer-events: none; box-shadow: inset 0 0 220px rgba(0,0,0,.85); }
.noise {
  position: fixed; inset: -50%; z-index: 8998; pointer-events: none; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: noise .4s steps(4) infinite;
}
@keyframes noise {
  0% { transform: translate(0,0); } 25% { transform: translate(-5%,3%); }
  50% { transform: translate(4%,-4%); } 75% { transform: translate(-3%,-2%); } 100% { transform: translate(2%,5%); }
}

/* ================= CURSOR ================= */
#cursor, #cursor-dot { position: fixed; top: 0; left: 0; z-index: 10000; pointer-events: none; border-radius: 50%; }
#cursor {
  width: 38px; height: 38px; margin: -19px 0 0 -19px;
  border: 1.5px solid var(--cyan);
  box-shadow: 0 0 14px var(--cyan), inset 0 0 10px rgba(0,240,255,.4);
  transition: width .25s var(--ease), height .25s var(--ease), margin .25s var(--ease), border-color .25s, background .25s;
  mix-blend-mode: screen;
}
#cursor::before, #cursor::after {
  content: ""; position: absolute; background: var(--cyan); left: 50%; top: 50%;
}
#cursor::before { width: 1px; height: 8px; transform: translate(-50%, -26px); box-shadow: 0 44px 0 var(--cyan); }
#cursor::after { width: 8px; height: 1px; transform: translate(-26px, -50%); box-shadow: 44px 0 0 var(--cyan); }
#cursor.hover { width: 64px; height: 64px; margin: -32px 0 0 -32px; border-color: var(--pink); background: rgba(255,43,214,.08); box-shadow: 0 0 22px var(--pink); }
#cursor.click { transform: scale(.7); }
#cursor-dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: var(--pink); box-shadow: 0 0 10px var(--pink); }
.trail { position: fixed; z-index: 9999; pointer-events: none; width: 4px; height: 4px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 8px var(--cyan); animation: trail .6s forwards; }
@keyframes trail { to { transform: scale(0); opacity: 0; } }
.spark { position: fixed; z-index: 9999; pointer-events: none; width: 6px; height: 6px; border-radius: 2px; }

/* ================= HUD ================= */
.hud {
  position: fixed; top: 0; left: 0; right: 0; z-index: 500;
  display: flex; align-items: center; gap: 30px;
  padding: 14px 4vw;
  background: linear-gradient(to bottom, rgba(5,1,13,.9), rgba(5,1,13,.35));
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  transition: transform .4s var(--ease);
}
.hud.hide { transform: translateY(-100%); }
.logo { font-family: var(--f-display); font-weight: 900; font-size: 24px; letter-spacing: .1em; color: var(--cyan); text-shadow: 0 0 12px var(--cyan); }
.hud-nav { display: flex; gap: 26px; margin-left: auto; }
.hud-nav a {
  font-family: var(--f-mono); font-size: 13px; letter-spacing: .08em; color: var(--muted);
  position: relative; padding: 4px 0; transition: color .2s;
}
.hud-nav a::before { content: "["; opacity: 0; margin-right: 4px; color: var(--pink); transition: opacity .2s; }
.hud-nav a::after  { content: "]"; opacity: 0; margin-left: 4px; color: var(--pink); transition: opacity .2s; }
.hud-nav a:hover, .hud-nav a.active { color: var(--cyan); text-shadow: 0 0 8px var(--cyan); }
.hud-nav a:hover::before, .hud-nav a:hover::after, .hud-nav a.active::before, .hud-nav a.active::after { opacity: 1; }
.hud-xp { display: flex; align-items: center; gap: 10px; font-family: var(--f-mono); font-size: 12px; }
.lvl b { color: var(--gold); font-size: 15px; text-shadow: 0 0 8px var(--gold); }
.xpbar { width: 110px; height: 8px; border: 1px solid var(--line); background: rgba(255,255,255,.04); position: relative; overflow: hidden; clip-path: polygon(4px 0,100% 0,calc(100% - 4px) 100%,0 100%); }
#xpfill { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--violet), var(--cyan)); box-shadow: 0 0 10px var(--cyan); transition: width .4s var(--ease); }
.icon-btn { background: none; border: 1px solid var(--line); color: var(--txt); width: 32px; height: 32px; border-radius: 6px; transition: border-color .2s, box-shadow .2s; }
.icon-btn:hover { border-color: var(--cyan); box-shadow: 0 0 10px var(--cyan); }
.burger { display: none; background: none; border: 0; width: 34px; height: 26px; position: relative; }
.burger span { position: absolute; left: 0; right: 0; height: 2px; background: var(--cyan); box-shadow: 0 0 6px var(--cyan); transition: .3s var(--ease); }
.burger span:nth-child(1) { top: 2px; } .burger span:nth-child(2) { top: 12px; } .burger span:nth-child(3) { top: 22px; }
.burger.open span:nth-child(1) { top: 12px; transform: rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { top: 12px; transform: rotate(-45deg); }

/* ================= GLITCH ================= */
.glitch { position: relative; display: inline-block; }
.glitch::before, .glitch::after {
  content: attr(data-text); position: absolute; inset: 0; pointer-events: none;
}
.glitch::before { color: var(--pink); transform: translate(-2px, 0); clip-path: inset(0 0 60% 0); animation: glitch1 2.6s infinite steps(1); mix-blend-mode: screen; }
.glitch::after  { color: var(--cyan); transform: translate(2px, 0); clip-path: inset(55% 0 0 0); animation: glitch2 3.1s infinite steps(1); mix-blend-mode: screen; }
@keyframes glitch1 {
  0%, 88%, 100% { clip-path: inset(0 0 100% 0); transform: none; }
  89% { clip-path: inset(10% 0 60% 0); transform: translate(-6px, -2px); }
  91% { clip-path: inset(40% 0 30% 0); transform: translate(5px, 1px); }
  93% { clip-path: inset(70% 0 5% 0);  transform: translate(-3px, 2px); }
  95% { clip-path: inset(20% 0 55% 0); transform: translate(4px, -1px); }
}
@keyframes glitch2 {
  0%, 84%, 100% { clip-path: inset(100% 0 0 0); transform: none; }
  85% { clip-path: inset(60% 0 10% 0); transform: translate(6px, 2px); }
  87% { clip-path: inset(5% 0 75% 0);  transform: translate(-5px, -1px); }
  90% { clip-path: inset(35% 0 40% 0); transform: translate(3px, 1px); }
}
.glitch.burst::before, .glitch.burst::after { animation-duration: .3s; }

/* ================= HERO ================= */
.hero {
  min-height: 100vh; display: flex; flex-direction: column; justify-content: center;
  padding: 120px 6vw 80px; position: relative;
}
.hero-badge {
  align-self: flex-start; font-family: var(--f-mono); font-size: 13px; color: var(--green);
  border: 1px solid rgba(57,255,136,.35); background: rgba(57,255,136,.06);
  padding: 6px 14px; border-radius: 30px; display: flex; align-items: center; gap: 10px;
  animation: rise .8s var(--ease) both .2s;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); animation: pulse 1.4s infinite; }
@keyframes pulse { 0%,100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.6); opacity: .4; } }
.hero-title { margin: 18px 0 6px; line-height: .9; }
.glitch.big {
  font-family: var(--f-display); font-weight: 900;
  font-size: clamp(64px, 15vw, 220px); letter-spacing: .02em;
  background: linear-gradient(100deg, #fff 0%, var(--cyan) 30%, var(--violet) 55%, var(--pink) 80%, #fff 100%);
  background-size: 250% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shine 6s linear infinite, rise 1s var(--ease) both .35s;
  filter: drop-shadow(0 0 30px rgba(122,92,255,.55));
}
.glitch.big::before, .glitch.big::after { -webkit-text-fill-color: currentColor; }
@keyframes shine { to { background-position: -250% 0; } }
.hero-sub { font-family: var(--f-mono); font-size: clamp(16px, 2.2vw, 26px); color: var(--cyan); min-height: 1.6em; animation: rise .8s var(--ease) both .55s; }
.prompt { color: var(--pink); }
.caret { animation: blink 1s steps(2) infinite; color: var(--pink); }
@keyframes blink { 50% { opacity: 0; } }
.hero-desc { max-width: 680px; margin-top: 18px; color: var(--muted); font-size: 20px; animation: rise .8s var(--ease) both .7s; }
.hero-desc b { color: var(--txt); }
.hero-cta { display: flex; gap: 18px; margin-top: 34px; flex-wrap: wrap; animation: rise .8s var(--ease) both .85s; }
.hero-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 60px; max-width: 900px; animation: rise .8s var(--ease) both 1s; }
.stat { border-left: 2px solid var(--violet); padding: 4px 14px; }
.stat b { display: block; font-family: var(--f-display); font-size: 34px; color: #fff; text-shadow: 0 0 14px var(--violet); }
.stat span { font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em; color: var(--muted); }
@keyframes rise { from { opacity: 0; transform: translateY(30px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
.scroll-hint { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; font-family: var(--f-mono); font-size: 10px; letter-spacing: .4em; color: var(--muted); }
.scroll-hint i { width: 22px; height: 36px; border: 1.5px solid var(--muted); border-radius: 12px; position: relative; }
.scroll-hint i::after { content: ""; position: absolute; left: 50%; top: 6px; width: 3px; height: 7px; margin-left: -1.5px; background: var(--cyan); border-radius: 2px; animation: wheel 1.6s infinite; }
@keyframes wheel { to { transform: translateY(14px); opacity: 0; } }

/* ================= BUTTONS ================= */
.btn {
  --c: var(--cyan);
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  padding: 15px 34px; font-family: var(--f-display); font-weight: 700; font-size: 14px; letter-spacing: .15em;
  clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
  transition: transform .2s var(--ease), box-shadow .3s, color .3s;
  overflow: hidden; isolation: isolate;
}
.btn span { position: relative; z-index: 2; }
.btn-primary { background: linear-gradient(90deg, var(--cyan), var(--violet), var(--pink)); background-size: 200% 100%; color: #050010; animation: shine 4s linear infinite; }
.btn-primary::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.7) 50%, transparent 70%); transform: translateX(-120%); transition: transform .6s var(--ease); z-index: 1; }
.btn-primary:hover::after { transform: translateX(120%); }
.btn-primary:hover { box-shadow: 0 0 30px rgba(0,240,255,.6), 0 0 60px rgba(255,43,214,.4); }
.btn-ghost { color: var(--c); background: rgba(0,240,255,.05); box-shadow: inset 0 0 0 1.5px var(--c); }
.btn-ghost::before { content: ""; position: absolute; inset: 0; background: var(--c); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); z-index: 1; }
.btn-ghost:hover { color: #050010; }
.btn-ghost:hover::before { transform: scaleX(1); }

/* ================= MARQUEE ================= */
.marquee { overflow: hidden; border-block: 1px solid var(--line); background: rgba(122,92,255,.06); padding: 18px 0; transform: rotate(-2deg) scale(1.05); margin: 40px 0; }
.marquee-track { display: flex; gap: 34px; width: max-content; animation: marquee 30s linear infinite; font-family: var(--f-display); font-weight: 900; font-size: 30px; letter-spacing: .08em; }
.marquee-track span { color: transparent; -webkit-text-stroke: 1px var(--cyan); transition: color .2s; }
.marquee-track span:nth-of-type(3n) { -webkit-text-stroke-color: var(--pink); }
.marquee-track i { color: var(--pink); font-style: normal; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ================= SECTIONS ================= */
.section { padding: 110px 6vw; max-width: 1400px; margin: 0 auto; position: relative; }
.section-title { font-family: var(--f-display); font-weight: 900; font-size: clamp(30px, 5vw, 58px); letter-spacing: .04em; margin-bottom: 18px; display: flex; align-items: baseline; gap: 18px; }
.section-title .num { font-family: var(--f-mono); font-size: .38em; color: var(--pink); border: 1px solid var(--pink); padding: 2px 10px; text-shadow: 0 0 10px var(--pink); }
.section-title::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--line), transparent); align-self: center; }
.section-desc { color: var(--muted); margin-bottom: 40px; font-size: 20px; }
.section-desc code { font-family: var(--f-mono); color: var(--green); background: rgba(57,255,136,.08); padding: 1px 8px; border-radius: 4px; }
.sub-title { font-family: var(--f-mono); color: var(--cyan); font-size: 15px; letter-spacing: .1em; margin-bottom: 24px; }

.reveal { opacity: 0; }
.reveal.in { opacity: 1; animation: revealIn .9s var(--ease) var(--d, 0s) backwards; }
@keyframes revealIn { from { opacity: 0; transform: translateY(50px) scale(.97); filter: blur(8px); } }

/* ================= ABOUT ================= */
.about-grid { display: grid; grid-template-columns: 420px 1fr; gap: 60px; align-items: start; margin-top: 40px; }
.player-card {
  position: relative; padding: 28px; border-radius: 18px; overflow: hidden;
  background: linear-gradient(160deg, rgba(122,92,255,.22), rgba(5,1,13,.8) 60%);
  border: 1px solid var(--line);
  box-shadow: 0 30px 80px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.03) inset;
  transform-style: preserve-3d;
}
.player-card::before {
  content: ""; position: absolute; inset: -2px; border-radius: 20px; padding: 2px; z-index: -1;
  background: conic-gradient(from var(--a, 0deg), var(--cyan), var(--pink), var(--violet), var(--cyan));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  animation: spin 4s linear infinite;
}
@property --a { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
@keyframes spin { to { --a: 360deg; } }
.pc-holo { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,.18), transparent 45%), linear-gradient(115deg, transparent 20%, rgba(0,240,255,.12) 40%, rgba(255,43,214,.12) 60%, transparent 80%); mix-blend-mode: screen; }
.pc-head { display: flex; gap: 20px; align-items: center; transform: translateZ(40px); }
.avatar { width: 92px; height: 92px; position: relative; flex-shrink: 0; }
.avatar-ring { position: absolute; inset: 0; border-radius: 50%; border: 2px dashed var(--cyan); animation: rot 10s linear infinite; box-shadow: 0 0 20px rgba(0,240,255,.4); }
.avatar-core { position: absolute; inset: 10px; border-radius: 50%; display: grid; place-items: center; font-family: var(--f-display); font-weight: 900; font-size: 36px; background: radial-gradient(circle at 30% 30%, var(--pink), var(--violet) 60%, #12052e); box-shadow: 0 0 30px var(--pink); }
@keyframes rot { to { transform: rotate(360deg); } }
.pc-name { font-family: var(--f-display); font-weight: 900; font-size: 28px; letter-spacing: .06em; }
.pc-class, .pc-rank { font-family: var(--f-mono); font-size: 12px; color: var(--muted); }
.pc-class b { color: var(--cyan); }
.rank { color: var(--red); text-shadow: 0 0 8px var(--red); font-weight: 800; }
.pc-attrs { margin: 26px 0; display: grid; gap: 12px; transform: translateZ(25px); }
.attr { display: grid; grid-template-columns: 40px 1fr 40px; align-items: center; gap: 12px; font-family: var(--f-mono); font-size: 13px; }
.attr span { color: var(--muted); }
.attr b { text-align: right; color: var(--gold); }
.attr i { height: 8px; background: rgba(255,255,255,.06); position: relative; overflow: hidden; clip-path: polygon(3px 0,100% 0,calc(100% - 3px) 100%,0 100%); }
.attr i::after { content: ""; position: absolute; inset: 0; width: 0; background: linear-gradient(90deg, var(--violet), var(--cyan)); box-shadow: 0 0 10px var(--cyan); transition: width 1.6s var(--ease) .3s; }
.attr i.low::after { background: linear-gradient(90deg, var(--red), var(--gold)); }
.in .attr i::after { width: var(--v); }
.pc-foot { display: flex; justify-content: space-between; font-family: var(--f-mono); font-size: 10px; color: var(--muted); letter-spacing: .1em; border-top: 1px dashed var(--line); padding-top: 14px; }

.about-text p { color: var(--muted); margin-bottom: 18px; font-size: 19px; }
.about-text p b { color: var(--txt); }
.about-text em { color: var(--cyan); font-style: normal; }
.about-text .lead { font-size: 26px; color: var(--txt); line-height: 1.4; font-weight: 600; }
.lead b { color: var(--pink); text-shadow: 0 0 10px rgba(255,43,214,.6); font-family: var(--f-mono); }
.traits { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.chip { font-family: var(--f-mono); font-size: 13px; padding: 7px 14px; border: 1px solid var(--line); border-radius: 30px; background: rgba(122,92,255,.07); transition: transform .25s var(--ease), border-color .25s, box-shadow .25s, background .25s; }
.chip:hover { transform: translateY(-4px) rotate(-2deg); border-color: var(--pink); box-shadow: 0 8px 24px rgba(255,43,214,.3); background: rgba(255,43,214,.1); }

.routine { margin-top: 90px; }
.routine-track { display: grid; grid-template-columns: repeat(6, 1fr); position: relative; }
.routine-track::before { content: ""; position: absolute; left: 0; right: 0; top: 9px; height: 2px; background: linear-gradient(90deg, var(--violet), var(--cyan), var(--pink), var(--green), var(--gold), var(--red)); box-shadow: 0 0 10px rgba(0,240,255,.4); }
.rt-item { position: relative; padding-top: 34px; text-align: center; }
.rt-item::before { content: ""; position: absolute; top: 0; left: 50%; width: 20px; height: 20px; margin-left: -10px; border-radius: 50%; background: var(--bg); border: 3px solid var(--c); box-shadow: 0 0 14px var(--c); transition: transform .3s var(--ease); }
.rt-item:hover::before { transform: scale(1.5); background: var(--c); }
.rt-item b { display: block; font-family: var(--f-display); color: var(--c); font-size: 20px; text-shadow: 0 0 10px var(--c); }
.rt-item span { font-size: 15px; color: var(--muted); }

/* ================= SKILLS ================= */
.skills-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; }
.skill-tree {
  padding: 26px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line);
  backdrop-filter: blur(6px); position: relative; overflow: hidden; transform-style: preserve-3d;
  transition: border-color .3s, box-shadow .3s;
}
.skill-tree::before { content: ""; position: absolute; inset: 0; background: radial-gradient(400px circle at var(--mx, -100%) var(--my, -100%), rgba(0,240,255,.15), transparent 40%); pointer-events: none; }
.skill-tree:hover { border-color: var(--cyan); box-shadow: 0 0 40px rgba(0,240,255,.15); }
.st-head { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; transform: translateZ(30px); }
.st-icon { font-size: 26px; filter: drop-shadow(0 0 8px rgba(255,255,255,.4)); }
.st-head h3 { font-family: var(--f-display); font-size: 16px; letter-spacing: .1em; }
.st-lvl { margin-left: auto; font-family: var(--f-mono); font-size: 11px; color: var(--gold); border: 1px solid var(--gold); padding: 2px 8px; border-radius: 4px; text-shadow: 0 0 6px var(--gold); }
.bars { list-style: none; display: grid; gap: 14px; }
.bars li span { display: block; font-size: 15px; margin-bottom: 5px; }
.bars li i { display: block; height: 6px; background: rgba(255,255,255,.06); border-radius: 3px; overflow: hidden; position: relative; }
.bars li i::after { content: ""; position: absolute; inset: 0; width: 0; border-radius: 3px; background: linear-gradient(90deg, var(--violet), var(--cyan), var(--pink)); box-shadow: 0 0 12px var(--cyan); transition: width 1.4s var(--ease); }
.in .bars li i::after { width: var(--v); }
.in .bars li:nth-child(2) i::after { transition-delay: .1s; }
.in .bars li:nth-child(3) i::after { transition-delay: .2s; }
.in .bars li:nth-child(4) i::after { transition-delay: .3s; }
.in .bars li:nth-child(5) i::after { transition-delay: .4s; }

/* ================= LOADOUT ================= */
.loadout { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.slot {
  --r: var(--cyan);
  position: relative; padding: 24px 20px; text-align: center; border-radius: 10px;
  background: linear-gradient(to top, color-mix(in srgb, var(--r) 22%, transparent), rgba(10,4,26,.85) 70%);
  border: 1px solid color-mix(in srgb, var(--r) 45%, transparent);
  transition: transform .35s var(--ease), box-shadow .35s;
  overflow: hidden;
}
.slot[data-rarity="rare"] { --r: #3b8bff; }
.slot[data-rarity="epic"] { --r: #b44bff; }
.slot[data-rarity="legendary"] { --r: var(--gold); }
.slot[data-rarity="mythic"] { --r: var(--red); }
.slot::after { content: ""; position: absolute; left: -60%; top: 0; width: 40%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255,255,255,.25), transparent); transform: skewX(-20deg); transition: left .7s var(--ease); }
.slot:hover::after { left: 130%; }
.slot:hover { transform: translateY(-10px) scale(1.03); box-shadow: 0 20px 50px color-mix(in srgb, var(--r) 40%, transparent), 0 0 0 1px var(--r); }
.slot-rarity { font-family: var(--f-mono); font-size: 10px; letter-spacing: .25em; color: var(--r); text-shadow: 0 0 8px var(--r); }
.slot-icon { font-size: 52px; margin: 14px 0; filter: drop-shadow(0 0 14px var(--r)); transition: transform .4s var(--ease); }
.slot:hover .slot-icon { transform: scale(1.2) rotate(-8deg); }
.slot-name { font-family: var(--f-display); font-size: 14px; letter-spacing: .06em; margin-bottom: 8px; }
.slot-desc { font-size: 15px; color: var(--muted); line-height: 1.4; }
.slot[data-rarity="mythic"] { animation: mythic 2.5s ease-in-out infinite; }
@keyframes mythic { 50% { box-shadow: 0 0 30px rgba(255,59,59,.45); } }

/* ================= QUESTS ================= */
.quests { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }
.quest {
  padding: 26px; border-radius: 4px; position: relative; background: var(--panel);
  border: 1px solid var(--line); transform-style: preserve-3d;
  clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 22px 100%, 0 calc(100% - 22px));
  transition: background .3s;
}
.quest::before { content: ""; position: absolute; inset: 0; background: radial-gradient(500px circle at var(--mx, -100%) var(--my, -100%), rgba(255,43,214,.16), transparent 40%); pointer-events: none; }
.quest:hover { background: rgba(30,12,64,.7); }
.q-top { display: flex; justify-content: space-between; font-family: var(--f-mono); font-size: 11px; margin-bottom: 14px; }
.q-tag { color: var(--cyan); border: 1px solid var(--cyan); padding: 2px 8px; letter-spacing: .15em; }
.q-tag.rare { color: #b44bff; border-color: #b44bff; }
.q-tag.legendary { color: var(--gold); border-color: var(--gold); text-shadow: 0 0 8px var(--gold); }
.q-xp { color: var(--green); text-shadow: 0 0 8px var(--green); }
.quest h3 { font-family: var(--f-display); font-size: 19px; letter-spacing: .03em; margin-bottom: 10px; transform: translateZ(30px); }
.quest p { color: var(--muted); font-size: 16.5px; line-height: 1.5; }
.q-stack { display: flex; flex-wrap: wrap; gap: 6px; margin: 16px 0; }
.q-stack span { font-family: var(--f-mono); font-size: 11px; padding: 3px 9px; background: rgba(0,240,255,.08); color: var(--cyan); border-radius: 3px; }
.q-status { font-family: var(--f-mono); font-size: 12px; letter-spacing: .1em; color: var(--muted); }
.q-status.done { color: var(--green); }
.quest.locked { border-style: dashed; filter: grayscale(.8); }
.quest.locked h3, .quest.locked p { filter: blur(1.5px); transition: filter .3s; }
.quest.locked:hover h3, .quest.locked:hover p { filter: none; }

/* ================= ACHIEVEMENTS ================= */
.achievements { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 30px; }
.ach { display: flex; align-items: center; gap: 14px; padding: 16px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; transition: transform .3s var(--ease), border-color .3s; }
.ach:hover { transform: translateX(6px); border-color: var(--gold); }
.ach > span { font-size: 30px; width: 52px; height: 52px; display: grid; place-items: center; background: radial-gradient(circle, rgba(255,184,0,.25), transparent 70%); border-radius: 10px; border: 1px solid rgba(255,184,0,.4); }
.ach b { display: block; font-size: 16px; }
.ach small { color: var(--muted); font-size: 13px; }
.ach em { margin-left: auto; font-family: var(--f-mono); font-size: 11px; font-style: normal; color: var(--gold); }
.ach.secret { filter: grayscale(1) brightness(.6); }
.ach.secret.unlocked { filter: none; border-color: var(--pink); box-shadow: 0 0 30px rgba(255,43,214,.4); animation: shake .5s; }

/* ================= TERMINAL ================= */
.term { border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: rgba(3,0,10,.88); box-shadow: 0 30px 80px rgba(0,0,0,.6), 0 0 60px rgba(57,255,136,.08); max-width: 980px; }
.term-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; background: rgba(255,255,255,.04); border-bottom: 1px solid var(--line); }
.tb { width: 12px; height: 12px; border-radius: 50%; }
.tb.r { background: #ff5f57; } .tb.y { background: #febc2e; } .tb.g { background: #28c840; }
.term-title { margin-left: 12px; font-family: var(--f-mono); font-size: 12px; color: var(--muted); }
.term-body { padding: 18px; height: 420px; overflow-y: auto; font-family: var(--f-mono); font-size: 14px; color: var(--green); text-shadow: 0 0 4px rgba(57,255,136,.5); cursor: text; }
.term-out div { white-space: pre-wrap; word-break: break-word; }
.term-out .c { color: var(--cyan); } .term-out .p { color: var(--pink); } .term-out .y { color: var(--gold); } .term-out .m { color: var(--muted); } .term-out .r { color: var(--red); }
.term-line { display: flex; gap: 10px; }
.term-ps { color: var(--pink); white-space: nowrap; }
#term-in { flex: 1; background: transparent; border: 0; outline: 0; color: var(--txt); font: inherit; caret-color: var(--green); cursor: text; }

/* ================= CONTACT ================= */
.contact-box { text-align: center; padding: 70px 30px; border: 1px solid var(--line); border-radius: 20px; position: relative; overflow: hidden; background: radial-gradient(circle at 50% 120%, rgba(255,43,214,.25), transparent 60%), var(--panel); }
.contact-box::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(45deg, transparent 0 20px, rgba(122,92,255,.04) 20px 40px); animation: slide 3s linear infinite; }
@keyframes slide { to { background-position: 56px 0; } }
.contact-big { font-family: var(--f-display); font-weight: 900; font-size: clamp(28px, 6vw, 72px); color: #fff; text-shadow: 0 0 30px var(--pink); margin-bottom: 20px; }
.contact-box p { color: var(--muted); font-size: 20px; position: relative; }
.contact-links { display: flex; gap: 18px; justify-content: center; margin-top: 34px; flex-wrap: wrap; position: relative; }

.footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding: 30px 6vw; border-top: 1px solid var(--line); font-family: var(--f-mono); font-size: 12px; color: var(--muted); }
.footer b { color: var(--green); }

/* ================= TOASTS ================= */
#toasts { position: fixed; bottom: 24px; right: 24px; z-index: 9500; display: flex; flex-direction: column; gap: 12px; pointer-events: none; }
.toast {
  display: flex; align-items: center; gap: 14px; min-width: 300px; padding: 14px 18px;
  background: linear-gradient(90deg, rgba(20,8,44,.96), rgba(10,4,26,.96));
  border: 1px solid var(--gold); border-left: 4px solid var(--gold);
  box-shadow: 0 10px 40px rgba(0,0,0,.6), 0 0 30px rgba(255,184,0,.25);
  animation: toastIn .5s var(--ease) both;
}
.toast.out { animation: toastOut .4s var(--ease) forwards; }
.toast .ti { font-size: 28px; }
.toast small { display: block; font-family: var(--f-mono); font-size: 10px; letter-spacing: .2em; color: var(--gold); }
.toast b { font-size: 16px; }
@keyframes toastIn { from { transform: translateX(120%); opacity: 0; } }
@keyframes toastOut { to { transform: translateX(120%); opacity: 0; } }

/* ================= EASTER EGG ================= */
body.rave { animation: hue 2s linear infinite; }
@keyframes hue { to { filter: hue-rotate(360deg); } }
body.shake { animation: shake .5s; }
@keyframes shake { 10%,90% { transform: translate(-2px,1px); } 20%,80% { transform: translate(4px,-2px); } 30%,50%,70% { transform: translate(-6px,2px); } 40%,60% { transform: translate(6px,-1px); } }

/* ================= RESPONSIVE ================= */
@media (max-width: 1100px) {
  .skills-grid { grid-template-columns: repeat(2, 1fr); }
  .loadout, .achievements { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; }
  .player-card { max-width: 460px; }
}
@media (max-width: 860px) {
  body, a, button { cursor: auto; }
  #cursor, #cursor-dot { display: none; }
  .burger { display: block; margin-left: auto; }
  .hud-xp .xpbar { display: none; }
  .hud-nav { position: fixed; inset: 64px 0 auto 0; flex-direction: column; gap: 0; background: rgba(5,1,13,.97); border-bottom: 1px solid var(--line); transform: translateY(-120%); transition: transform .4s var(--ease); z-index: -1; }
  .hud-nav.open { transform: none; }
  .hud-nav a { padding: 16px 6vw; border-top: 1px solid var(--line); }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .routine-track { grid-template-columns: repeat(3, 1fr); row-gap: 30px; }
  .routine-track::before { display: none; }
  .section { padding: 80px 5vw; }
}
@media (max-width: 560px) {
  .skills-grid, .loadout, .achievements { grid-template-columns: 1fr; }
  .routine-track { grid-template-columns: repeat(2, 1fr); }
  .hud-xp .lvl { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; }
}
