/* ============================================================
   NIMA — CYBER NEON THEME
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --cyan: #ffffff;
    --magenta: #9a9a9a;
    --lime: #cfcfcf;
    --bg: #000;
    --panel: rgba(0,0,0, .86);
    --line: rgba(255,255,255, .22);
    --ease: cubic-bezier(.22, 1, .36, 1);
    --font-title: 'Orbitron', 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --font-fa: 'Vazirmatn', 'Inter', sans-serif;
}

html, body {
    height: 100%;
    background: var(--bg);
    color: #ebebeb;
    font-family: 'Inter', sans-serif;
    overflow: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ============================
   بوت سینمایی
   ============================ */
.intro {
    position: fixed; inset: 0; z-index: 1000; background: #000;
    display: flex; align-items: center; justify-content: center;
    transition: opacity .9s ease, visibility .9s, filter .9s;
}
.intro::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: repeating-linear-gradient(to bottom, transparent 0 2px, rgba(255,255,255,.05) 2px 3px);
}
.boot {
    font-family: var(--font-mono); font-size: clamp(12px, 3.2vw, 15px);
    color: var(--cyan); line-height: 2; min-width: min(86vw, 380px);
    text-shadow: 0 0 10px rgba(255,255,255,.7);
}
.boot div { animation: bootline .25s steps(6) both; white-space: nowrap; }
.boot b { color: var(--lime); text-shadow: 0 0 10px rgba(255,255,255,.8); }
@keyframes bootline { from { opacity: 0; transform: translateX(-10px); } to { opacity: 1; transform: none; } }
.intro.out { opacity: 0; visibility: hidden; filter: blur(10px) brightness(2); }

/* ============================
   لایه‌ها
   ============================ */
#bgvid {
    position: fixed; inset: 0; z-index: 1; width: 100%; height: 100%;
    object-fit: cover;
    filter: brightness(.26) saturate(0) contrast(1.15);
    pointer-events: none; user-select: none; -webkit-user-drag: none;
    transition: filter .8s ease;
    animation: vidzoom 40s ease-in-out infinite alternate;
}
@keyframes vidzoom { from { transform: scale(1); } to { transform: scale(1.08); } }
body.sound-on #bgvid { filter: brightness(.4) saturate(0) contrast(1.1); }

/* شبکه‌ی نئونی */
.grid {
    position: fixed; inset: 0; z-index: 2; pointer-events: none; opacity: .5;
    background-image:
        linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px);
    background-size: 56px 56px;
    -webkit-mask-image: radial-gradient(ellipse at 50% 55%, #000 0%, transparent 70%);
            mask-image: radial-gradient(ellipse at 50% 55%, #000 0%, transparent 70%);
    animation: gridmove 12s linear infinite;
}
@keyframes gridmove { to { background-position: 0 56px, 56px 0; } }

#fx { position: fixed; inset: 0; z-index: 3; pointer-events: none; }

.vignette {
    position: fixed; inset: 0; z-index: 4; pointer-events: none;
    background:
        radial-gradient(ellipse at 50% 50%, transparent 18%, rgba(0,0,0,.85) 100%),
        linear-gradient(180deg, rgba(190,190,190,.05), transparent 30%, transparent 70%, rgba(255,255,255,.06));
}

.noise {
    position: fixed; inset: -50%; z-index: 5; pointer-events: none; opacity: .06;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
    animation: grain 1s steps(6) infinite;
}
@keyframes grain {
    0% { transform: translate(0,0); } 20% { transform: translate(-3%,2%); }
    40% { transform: translate(2%,-3%); } 60% { transform: translate(-2%,-1%); }
    80% { transform: translate(3%,3%); } 100% { transform: translate(0,0); }
}

.scanline {
    position: fixed; inset: 0; z-index: 5; pointer-events: none; opacity: .5;
    background: repeating-linear-gradient(to bottom, transparent 0 2px, rgba(0,0,0,.16) 2px 3px);
}
.scanline::after {
    content: ""; position: absolute; left: 0; right: 0; height: 140px;
    background: linear-gradient(to bottom, transparent, rgba(255,255,255,.05), transparent);
    animation: sweep 7s linear infinite;
}
@keyframes sweep { from { top: -140px; } to { top: 100%; } }

/* ============================
   صحنه
   ============================ */
.scene {
    position: relative; z-index: 10; width: 100vw; height: 100vh;
    display: flex; align-items: center; justify-content: center;
    padding: 16px; pointer-events: none;
}
.scene > * { pointer-events: auto; }

/* ============================
   نوار بالا
   ============================ */
.top-nav {
    position: fixed; top: 20px; right: 20px; z-index: 200; display: flex; gap: 8px;
    opacity: 0; animation: dropin .9s var(--ease) 3.6s forwards;
}
@keyframes dropin { from { opacity: 0; transform: translateY(-14px); } to { opacity: 1; transform: none; } }

.nav-tab {
    display: flex; align-items: center; gap: 7px;
    background: rgba(0,0,0,.75);
    border: 1px solid var(--line);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    color: rgba(235,235,235,.7);
    font-family: var(--font-title); font-size: 10.5px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase;
    padding: 10px 16px; cursor: pointer; position: relative; overflow: hidden;
    clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
    transition: background .25s, color .25s, transform .25s var(--ease), text-shadow .25s;
}
.nav-tab::before {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,.28), transparent);
    transform: translateX(-120%); transition: transform .6s ease; pointer-events: none;
}
.nav-tab:hover::before { transform: translateX(120%); }
.nav-tab:hover { color: var(--cyan); text-shadow: 0 0 10px var(--cyan); transform: translateY(-2px); }
.nav-tab:active { transform: scale(.94); }
.nav-tab.active { background: rgba(255,255,255,.14); color: var(--cyan); text-shadow: 0 0 10px var(--cyan); }
.nav-tab .dot {
    width: 6px; height: 6px; background: var(--lime); box-shadow: 0 0 8px var(--lime);
    animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse { 50% { opacity: .25; } }

/* ============================
   کارت
   ============================ */
.card-wrap { perspective: 900px; z-index: 5; }

.card {
    width: 340px; max-width: 88vw; position: relative; border-radius: 6px;
    will-change: transform; transform-style: preserve-3d; opacity: 0;
    animation: cardin 1.1s var(--ease) 2.8s forwards, float 7s ease-in-out 4s infinite;
    box-shadow: 0 0 0 1px rgba(255,255,255,.18), 0 0 40px rgba(255,255,255,.12), 0 40px 120px rgba(0,0,0,.95);
}
@keyframes cardin {
    0%   { opacity: 0; transform: scaleY(.02) scaleX(1.1); filter: brightness(3); }
    55%  { opacity: 1; transform: scaleY(.02) scaleX(1); }
    100% { opacity: 1; transform: none; filter: none; }
}
@keyframes float { 50% { margin-top: -8px; } }

/* نور چرخان دور کارت */
.card::before {
    content: ""; position: absolute; inset: -2px; border-radius: 8px; z-index: -1;
    background: conic-gradient(from var(--ang, 0deg),
        transparent 0%, var(--cyan) 10%, transparent 24%,
        transparent 50%, var(--magenta) 62%, transparent 76%);
    animation: spin 5s linear infinite;
    filter: blur(.6px);
}
.card::after {
    content: ""; position: absolute; inset: -34px; z-index: -2; border-radius: 40px;
    background: radial-gradient(circle, rgba(255,255,255,.18), rgba(190,190,190,.1) 45%, transparent 68%);
    filter: blur(26px); animation: glowpulse 4s ease-in-out infinite;
}
@property --ang { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
@keyframes spin { to { --ang: 360deg; } }
@keyframes glowpulse { 0%,100% { opacity: .4; transform: scale(.97); } 50% { opacity: 1; transform: scale(1.03); } }

/* براکت‌های گوشه */
.corner { position: absolute; width: 16px; height: 16px; z-index: 6; pointer-events: none; border: 0 solid var(--cyan);
    filter: drop-shadow(0 0 6px var(--cyan)); animation: cornerpulse 3s ease-in-out infinite; }
.corner.tl { top: -5px; left: -5px;  border-top-width: 2px; border-left-width: 2px; }
.corner.tr { top: -5px; right: -5px; border-top-width: 2px; border-right-width: 2px; border-color: var(--magenta); filter: drop-shadow(0 0 6px var(--magenta)); }
.corner.bl { bottom: -5px; left: -5px;  border-bottom-width: 2px; border-left-width: 2px; border-color: var(--magenta); filter: drop-shadow(0 0 6px var(--magenta)); }
.corner.br { bottom: -5px; right: -5px; border-bottom-width: 2px; border-right-width: 2px; }
@keyframes cornerpulse { 50% { transform: scale(1.35); opacity: .7; } }

.card-glare {
    position: absolute; inset: 0; border-radius: 6px; z-index: 3; pointer-events: none;
    background: radial-gradient(circle at var(--gx, 50%) var(--gy, 0%), rgba(255,255,255,.18), transparent 55%);
    mix-blend-mode: screen;
}

.card-inner {
    background: rgba(0,0,0,.88);
    backdrop-filter: blur(44px); -webkit-backdrop-filter: blur(44px);
    border-radius: 6px; overflow: hidden; position: relative; z-index: 1;
}
.card-body { padding: 0 22px 20px; margin-top: -26px; position: relative; }

/* ورود پله‌ای */
.card-body > * { opacity: 0; transform: translateY(14px); animation: rise .8s var(--ease) forwards; }
.card-body > :nth-child(1) { animation-delay: 3.5s; }
.card-body > :nth-child(2) { animation-delay: 3.65s; }
.card-body > :nth-child(3) { animation-delay: 3.8s; }
.card-body > :nth-child(4) { animation-delay: 3.95s; }
.card-body > :nth-child(5) { animation-delay: 4.1s; }
.card-body > :nth-child(6) { animation-delay: 4.25s; }
.card-body > :nth-child(7) { animation-delay: 4.4s; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ============================
   بنر
   ============================ */
.banner { width: 100%; height: 140px; overflow: hidden; position: relative; }
.banner img {
    width: 100%; height: 100%; object-fit: cover; display: block;
    filter: saturate(0) contrast(1.1) brightness(.85);
    animation: bannerzoom 14s ease-in-out infinite alternate;
}
@keyframes bannerzoom { from { transform: scale(1.02); } to { transform: scale(1.12); } }
.banner::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background:
        linear-gradient(to bottom, rgba(255,255,255,.12), transparent 35%, rgba(0,0,0,.98) 100%);
}
.live {
    position: absolute; top: 10px; left: 12px; z-index: 2;
    font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .15em; color: #ffffff;
    background: rgba(0,0,0,.55); padding: 3px 8px; border: 1px solid rgba(255,255,255,.4);
    animation: livepulse 1.4s steps(1) infinite;
}
@keyframes livepulse { 50% { opacity: .35; } }

/* ============================
   پروفایل
   ============================ */
.profile { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; position: relative; z-index: 2; }

.avatar-ring {
    position: relative; width: 64px; height: 64px; border-radius: 50%; flex-shrink: 0; padding: 2px;
    background: conic-gradient(from var(--ang, 0deg), var(--cyan), transparent, var(--magenta), transparent, var(--cyan));
    animation: spin 3s linear infinite;
    box-shadow: 0 0 24px rgba(255,255,255,.4), 0 0 40px rgba(190,190,190,.2);
}
.avatar { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; background: #050505; border: 3px solid #000; }
.status {
    position: absolute; bottom: 2px; right: 2px; width: 13px; height: 13px; border-radius: 50%;
    background: var(--lime); border: 3px solid #000; box-shadow: 0 0 10px var(--lime);
    animation: pulse 2s infinite;
}

.profile-info h1 {
    font-family: var(--font-title); font-size: 25px; font-weight: 900; letter-spacing: .1em; line-height: 1.15;
    color: #fff; text-shadow: 0 0 16px rgba(255,255,255,.6);
}
.handle { font-family: var(--font-mono); font-size: 11.5px; color: rgba(235,235,235,.45); display: block; }
.role { display: inline-block; margin-top: 4px; font-family: var(--font-mono); font-size: 10.5px; color: var(--lime); text-shadow: 0 0 8px rgba(255,255,255,.5); }

/* گلیچ RGB */
.glitch { position: relative; display: inline-block; }
.glitch::before, .glitch::after { content: attr(data-text); position: absolute; inset: 0; opacity: 0; }
.glitch::before { color: var(--cyan);    animation: glitch 4s infinite steps(1); }
.glitch::after  { color: var(--magenta); animation: glitch 4s infinite steps(1) reverse; }
.glitch:hover::before, .glitch:hover::after { animation-duration: .35s; opacity: .9; }
@keyframes glitch {
    0%, 90%, 100% { opacity: 0; transform: none; clip-path: inset(0); }
    91% { opacity: .9; transform: translate(-3px, 1px); clip-path: inset(0 0 60% 0); }
    94% { opacity: .9; transform: translate(3px, -1px); clip-path: inset(50% 0 10% 0); }
    97% { opacity: .9; transform: translate(-2px, 0);   clip-path: inset(75% 0 0 0); }
}

/* ============================
   بیو / چیپ‌ها
   ============================ */
.bio {
    font-family: var(--font-mono); font-size: 12px; color: rgba(235,235,235,.65);
    min-height: 1.4em; margin-bottom: 14px; padding-bottom: 12px;
    border-bottom: 1px dashed rgba(255,255,255,.18);
}
.bio::before { content: "$ "; color: var(--cyan); }
.bio.typing::after { content: "█"; margin-left: 2px; color: var(--cyan); animation: blink .7s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.socials { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.chip {
    font-family: var(--font-mono); font-size: 11px; font-weight: 500;
    color: rgba(235,235,235,.88); background: rgba(255,255,255,.05);
    border: 1px solid var(--line); padding: 7px 12px; cursor: pointer;
    display: inline-flex; align-items: center; gap: 7px; text-decoration: none;
    clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
    position: relative; overflow: hidden;
    transition: transform .25s var(--ease), background .25s, color .25s, text-shadow .25s;
}
.chip svg { opacity: .85; transition: color .25s; }
.chip::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(110deg, transparent 30%, rgba(190,190,190,.3), transparent 70%);
    transform: translateX(-130%); transition: transform .6s ease;
}
.chip:hover::after { transform: translateX(130%); }
.chip:hover { transform: translateY(-2px); background: rgba(255,255,255,.14); color: var(--cyan); text-shadow: 0 0 8px var(--cyan); }
.chip:hover svg { color: var(--magenta); }
.chip:active { transform: scale(.94); }

/* ============================
   Skills
   ============================ */
.skills { margin-bottom: 14px; display: flex; flex-direction: column; gap: 7px; }
.skill { display: grid; grid-template-columns: 74px 1fr 26px; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: 10.5px; }
.sk-name { color: rgba(235,235,235,.6); letter-spacing: .04em; }
.sk-val { color: var(--cyan); text-align: right; }
.sk-track { height: 5px; background: rgba(255,255,255,.06); position: relative; overflow: hidden;
    clip-path: polygon(0 0, 100% 0, calc(100% - 3px) 100%, 0 100%); }
.sk-track i {
    display: block; height: 100%;
    background: linear-gradient(90deg, var(--cyan), var(--magenta));
    box-shadow: 0 0 10px rgba(255,255,255,.8);
    transform-origin: left; transform: scaleX(0);
    animation: fill 1.4s var(--ease) 4.4s forwards;
}
.skill:nth-child(2) i { animation-delay: 4.55s; }
.skill:nth-child(3) i { animation-delay: 4.7s; }
.skill:nth-child(4) i { animation-delay: 4.85s; }
@keyframes fill { to { transform: scaleX(1); } }

/* ============================
   شعر
   ============================ */
.poem-box {
    position: relative; cursor: pointer; margin-bottom: 14px; padding: 12px 14px;
    background: linear-gradient(135deg, rgba(190,190,190,.07), rgba(255,255,255,.04));
    border: 1px solid rgba(255,255,255,.06); border-right: 2px solid var(--magenta);
    transition: border-color .3s, transform .3s var(--ease), box-shadow .3s;
}
.poem-box:hover { border-color: rgba(190,190,190,.5); transform: translateY(-2px); box-shadow: 0 8px 28px rgba(190,190,190,.15); }
.poem-tag { display: block; margin-bottom: 6px; font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .12em; color: var(--cyan); opacity: .55; }
.poem {
    font-family: var(--font-fa); font-size: 12.5px; font-weight: 300; line-height: 2; color: rgba(235,235,235,.82);
    white-space: pre-line; text-align: right; min-height: 4em;
    transition: opacity .45s ease, transform .45s ease, filter .45s ease;
}
.poem.fade { opacity: 0; transform: translateY(6px); filter: blur(4px); }

/* ============================
   Stats
   ============================ */
.stats {
    display: flex; justify-content: space-between; align-items: center;
    font-family: var(--font-mono); font-size: 10.5px; color: rgba(235,235,235,.38);
    padding-top: 14px; border-top: 1px dashed rgba(255,255,255,.18);
}
.like { cursor: pointer; transition: color .2s, transform .25s var(--ease); user-select: none; }
.like:hover { color: var(--magenta); text-shadow: 0 0 10px var(--magenta); }
.like.pop { transform: scale(1.5); color: var(--magenta); }

.heart-burst {
    position: fixed; z-index: 500; pointer-events: none; color: var(--magenta); font-size: 14px;
    text-shadow: 0 0 8px var(--magenta); transform: translate(-50%, -50%);
    animation: burst .9s cubic-bezier(.2,.8,.3,1) forwards;
}
@keyframes burst { to { transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(.4); opacity: 0; } }

/* ============================
   Toast
   ============================ */
.toast {
    position: fixed; bottom: 30px; left: 50%; z-index: 600; transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
    background: rgba(0,0,0,.9); border: 1px solid var(--cyan); color: var(--cyan);
    font-family: var(--font-mono); padding: 10px 18px; font-size: 12px; box-shadow: 0 0 24px rgba(255,255,255,.35);
    transition: opacity .3s, transform .4s var(--ease);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ============================
   پنل کناری
   ============================ */
.panel-backdrop {
    position: fixed; inset: 0; z-index: 140; background: rgba(0,0,0,.55); opacity: 0; pointer-events: none;
    transition: opacity .4s ease; backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px);
}
.panel-backdrop.show { opacity: 1; pointer-events: auto; }

.side-panel {
    position: fixed; top: 0; right: 0; bottom: 0; width: 340px; max-width: 88vw; z-index: 150;
    background: var(--panel); backdrop-filter: blur(40px); -webkit-backdrop-filter: blur(40px);
    border-left: 1px solid var(--cyan); box-shadow: -10px 0 60px rgba(255,255,255,.18), -30px 0 90px rgba(0,0,0,.7);
    padding: 70px 24px 24px; overflow-y: auto; transform: translateX(105%);
    transition: transform .6s var(--ease); display: flex; flex-direction: column; gap: 20px;
}
.side-panel.open { transform: translateX(0); }

.panel-close {
    position: absolute; top: 20px; right: 22px; width: 32px; height: 32px;
    background: rgba(255,255,255,.06); border: 1px solid var(--line); color: var(--cyan);
    display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 13px;
    transition: background .25s, transform .35s var(--ease);
}
.panel-close:hover { background: rgba(190,190,190,.25); transform: rotate(180deg); border-color: var(--magenta); color: #fff; }

.panel-title { font-family: var(--font-title); font-size: 1.05rem; font-weight: 700; letter-spacing: .14em; color: #fff; text-shadow: 0 0 12px rgba(255,255,255,.6); text-transform: uppercase; }
.panel-sub {
    font-family: var(--font-mono); font-size: .66rem; color: var(--lime); letter-spacing: .2em; text-transform: uppercase;
    position: relative; padding-bottom: 10px;
}
.panel-sub::before { content: "// "; }
.panel-sub::after {
    content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%;
    background: linear-gradient(to right, var(--cyan), transparent); transform-origin: left; animation: line 1s var(--ease) .2s both;
}
@keyframes line { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.about-list { display: flex; flex-direction: column; gap: 6px; }
.about-row {
    display: flex; justify-content: space-between; align-items: center; padding: 13px 14px;
    background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.12); border-left: 2px solid var(--cyan);
    transition: background .25s, border-color .25s, transform .25s var(--ease);
    animation: slidein .7s var(--ease) both;
}
@keyframes slidein { from { opacity: 0; transform: translateX(30px); filter: blur(4px); } to { opacity: 1; transform: none; filter: blur(0); } }
.about-row:hover { background: rgba(255,255,255,.1); border-left-color: var(--magenta); transform: translateX(-4px); }
.about-label { font-family: var(--font-mono); font-size: .7rem; color: rgba(235,235,235,.45); letter-spacing: .1em; text-transform: uppercase; }
.about-value { font-family: var(--font-mono); font-size: .82rem; color: var(--cyan); }

.games-list { display: flex; flex-wrap: wrap; gap: 8px; }
.game-tag {
    font-family: var(--font-mono); background: rgba(190,190,190,.06); border: 1px solid rgba(190,190,190,.3);
    color: rgba(235,235,235,.9); padding: 8px 14px; font-size: 12px;
    clip-path: polygon(7px 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%, 0 7px);
    transition: background .25s, transform .25s var(--ease), color .25s, text-shadow .25s;
    animation: slidein .7s var(--ease) both;
}
.game-tag:hover { background: rgba(190,190,190,.2); transform: translateY(-3px); color: #fff; text-shadow: 0 0 8px var(--magenta); }

/* ============================
   راهنمای صدا (مخفی)
   ============================ */
.sound-hint { position: fixed; bottom: 0; left: 50%; font-size: 0; padding: 0; pointer-events: none; opacity: 0; }

/* ============================
   افکت موس
   ============================ */
.cursor-glow {
    position: fixed; top: 0; left: 0; width: 520px; height: 520px; border-radius: 50%; pointer-events: none; z-index: 6;
    background: radial-gradient(circle at center, rgba(255,255,255,.14) 0%, rgba(190,190,190,.07) 38%, transparent 70%);
    filter: blur(24px); transform: translate(-50%, -50%); opacity: 0; transition: opacity .5s ease; will-change: left, top;
}
.cursor-glow.active { opacity: 1; }

.cursor-dot {
    position: fixed; top: 0; left: 0; width: 8px; height: 8px; border-radius: 50%; pointer-events: none; z-index: 1100;
    background: radial-gradient(circle, #fff 0%, var(--cyan) 55%, transparent 100%);
    box-shadow: 0 0 12px var(--cyan), 0 0 28px rgba(255,255,255,.6);
    transform: translate(-50%, -50%); opacity: 0; transition: opacity .3s ease, width .2s, height .2s; will-change: left, top;
}
.cursor-dot.active { opacity: 1; }
.cursor-dot.down { width: 18px; height: 18px; background: radial-gradient(circle, #fff 0%, var(--magenta) 55%, transparent 100%); box-shadow: 0 0 14px var(--magenta), 0 0 30px rgba(190,190,190,.6); }

.cursor-particle {
    position: fixed; width: 4px; height: 4px; pointer-events: none; z-index: 6;
    background: var(--cyan); box-shadow: 0 0 8px var(--cyan); transform: translate(-50%, -50%) rotate(45deg);
    animation: particleFade 1s ease-out forwards;
}
.cursor-particle:nth-of-type(odd) { background: var(--magenta); box-shadow: 0 0 8px var(--magenta); }
@keyframes particleFade {
    0%   { opacity: .95; transform: translate(-50%, -50%) rotate(45deg) scale(1); }
    100% { opacity: 0;   transform: translate(-50%, -150%) rotate(225deg) scale(.2); }
}

/* ============================
   Responsive
   ============================ */
@media (max-width: 900px) { .side-panel { width: 300px; } }

@media (max-width: 768px) {
    .cursor-glow, .cursor-dot, .cursor-particle { display: none !important; }
    .banner { height: 110px; }
}

@media (max-width: 600px) {
    .scene { padding: 80px 12px 40px; align-items: flex-start; }
    .top-nav { top: 14px; right: 50%; transform: translateX(50%); gap: 6px; animation-name: dropin-m; }
    .nav-tab { padding: 9px 13px; font-size: 10px; }
    .card { width: 100%; max-width: 92vw; }
    .card-body { padding: 0 18px 18px; }
    .profile-info h1 { font-size: 21px; }
    .side-panel { width: 88vw; max-width: 360px; padding: 60px 20px 20px; }
    .skill { grid-template-columns: 66px 1fr 24px; }
}
@keyframes dropin-m { from { opacity: 0; transform: translate(50%, -14px); } to { opacity: 1; transform: translate(50%, 0); } }

@media (max-width: 380px) {
    .nav-tab { padding: 8px 10px; font-size: 9px; }
    .avatar-ring { width: 54px; height: 54px; }
}

@media (max-height: 500px) and (orientation: landscape) {
    .scene { align-items: center; padding: 60px 12px 20px; }
}

@media (hover: none) {
    .nav-tab:hover, .about-row:hover, .game-tag:hover, .chip:hover { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; }
}
