:root {
    --anim-speed: 0.3s;
    --radius: 8px;
    --bg: #121212;
    --bg-panel: #1e1e1e;
    --text: #ffffff;
    --text-muted: #a0a0a0;
    --border: #333;
    
    /* Accents */
    --accent-toxic: #39ff14;
    --accent-synthwave: #ff00ff;
    --accent-ocean: #00ffff;
    --accent-crimson: #ff003c;
    
    --accent: var(--accent-toxic);
}

/* Themes */
[data-theme="light"] {
    --bg: #f0f0f0;
    --bg-panel: #ffffff;
    --text: #121212;
    --text-muted: #555;
    --border: #ccc;
}

[data-theme="oled"] {
    --bg: #000000;
    --bg-panel: #050505;
    --text: #ffffff;
    --text-muted: #666666;
    --border: #222222;
}

[data-theme="sepia"] {
    --bg: #f4ecd8;
    --bg-panel: #e8dcc4;
    --text: #433422;
    --text-muted: #7a6855;
    --border: #cbbfa9;
}

[data-theme="dracula"] {
    --bg: #282a36;
    --bg-panel: #44475a;
    --text: #f8f8f2;
    --text-muted: #6272a4;
    --border: #6272a4;
}

[data-theme="nord"] {
    --bg: #2e3440;
    --bg-panel: #3b4252;
    --text: #eceff4;
    --text-muted: #d8dee9;
    --border: #4c566a;
}

[data-theme="matrix"] {
    --bg: #000000;
    --bg-panel: #0a0a0a;
    --text: #00ff00;
    --text-muted: #008800;
    --border: #00ff00;
}

[data-theme="synthwave"] {
    --bg: #2b213a;
    --bg-panel: #1a1525;
    --text: #f9f8fa;
    --text-muted: #b9a8d4;
    --border: #4e3a6b;
}

[data-theme="ocean"] {
    --bg: #0f172a;
    --bg-panel: #1e293b;
    --text: #f8fafc;
    --text-muted: #94a3b8;
    --border: #334155;
}

[data-theme="forest"] {
    --bg: #141f14;
    --bg-panel: #1c2b1c;
    --text: #e2f0e2;
    --text-muted: #8ab88a;
    --border: #2d4a2d;
}

[data-theme="sunset"] {
    --bg: #2d1b2e;
    --bg-panel: #1f1220;
    --text: #fce8e6;
    --text-muted: #d49a94;
    --border: #5c3546;
}

[data-theme="monochrome"] {
    --bg: #000000;
    --bg-panel: #111111;
    --text: #ffffff;
    --text-muted: #888888;
    --border: #333333;
}

[data-theme="tokyo-night"] {
    --bg: #1a1b26;
    --bg-panel: #24283b;
    --text: #c0caf5;
    --text-muted: #565f89;
    --border: #414868;
}

[data-theme="solarized"] {
    --bg: #002b36;
    --bg-panel: #073642;
    --text: #839496;
    --text-muted: #586e75;
    --border: #586e75;
}

[data-theme="vampire"] {
    --bg: #1a0a0a;
    --bg-panel: #2a1111;
    --text: #f2e6e6;
    --text-muted: #b37777;
    --border: #4d1a1a;
}

[data-theme="gold"] {
    --bg: #1a1814;
    --bg-panel: #26231d;
    --text: #f2e8d5;
    --text-muted: #b39f77;
    --border: #4d4226;
}

[data-theme="terminal-amber"] {
    --bg: #110c00;
    --bg-panel: #1a1300;
    --text: #ffb000;
    --text-muted: #996a00;
    --border: #ffb000;
}

/* Accents */
[data-accent="toxic"] { --accent: var(--accent-toxic); }
[data-accent="synthwave"] { --accent: var(--accent-synthwave); }
[data-accent="ocean"] { --accent: var(--accent-ocean); }
[data-accent="crimson"] { --accent: var(--accent-crimson); }

/* Skins */
[data-skin="cyberpunk"] {
    --radius: 0px;
    --font: 'Courier New', monospace;
    --border-style: solid;
    --border-width: 2px;
    --shadow: 0 0 10px var(--accent), inset 0 0 10px var(--accent);
}

[data-skin="glass"] {
    --radius: 16px;
    --font: 'Inter', sans-serif;
    --border-style: solid;
    --border-width: 1px;
    --border: rgba(255, 255, 255, 0.1);
    --bg-panel: rgba(255, 255, 255, 0.05);
    --shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    backdrop-filter: blur(10px);
}
[data-theme="light"][data-skin="glass"] {
    --border: rgba(0, 0, 0, 0.1);
    --bg-panel: rgba(255, 255, 255, 0.4);
}

[data-skin="terminal"] {
    --radius: 0px;
    --font: 'Consolas', monospace;
    --border-style: dashed;
    --border-width: 2px;
    --shadow: none;
    --bg: #000;
    --bg-panel: #000;
    --text: var(--accent);
    --border: var(--accent);
}

[data-skin="hacker"] {
    --radius: 0px;
    --font: 'Courier New', Courier, monospace;
    --border-style: solid;
    --border-width: 1px;
    --bg: #0a0a0a;
    --bg-panel: #111;
    --text: #0f0;
    --border: #0f0;
    --shadow: none;
    --accent: #0f0 !important;
}

[data-skin="minimal"] {
    --radius: 4px;
    --font: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --border-style: solid;
    --border-width: 1px;
    --shadow: 0 2px 5px rgba(0,0,0,0.05);
}

[data-skin="retro"] {
    --radius: 12px;
    --font: 'Impact', fantasy;
    --border-style: double;
    --border-width: 4px;
    --shadow: 4px 4px 0px var(--accent);
    background: linear-gradient(135deg, #2b1055, #7597de);
}

[data-skin="brutalist"] {
    --radius: 0px;
    --font: 'Courier New', monospace;
    --border-style: solid;
    --border-width: 3px;
    --shadow: 8px 8px 0px var(--accent);
    --border: #000;
}
[data-theme="dark"][data-skin="brutalist"] {
    --border: #fff;
}

[data-skin="neumorphism"] {
    --radius: 20px;
    --font: 'Inter', sans-serif;
    --border-style: none;
    --border-width: 0px;
    --shadow: 8px 8px 16px rgba(0,0,0,0.4), -8px -8px 16px rgba(255,255,255,0.05);
}
[data-theme="light"][data-skin="neumorphism"] {
    --shadow: 8px 8px 16px rgba(0,0,0,0.1), -8px -8px 16px rgba(255,255,255,0.8);
}

[data-skin="skeuomorphic"] {
    --radius: 8px;
    --font: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --border-style: solid;
    --border-width: 1px;
    --border: rgba(0,0,0,0.5);
    --shadow: inset 0 1px 0 rgba(255,255,255,0.2), 0 2px 4px rgba(0,0,0,0.5);
    background-image: linear-gradient(to bottom, rgba(255,255,255,0.1), rgba(0,0,0,0.1));
}

[data-skin="flat"] {
    --radius: 0px;
    --font: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --border-style: none;
    --border-width: 0px;
    --shadow: none;
}

[data-skin="material"] {
    --radius: 4px;
    --font: 'Roboto', sans-serif;
    --border-style: none;
    --border-width: 0px;
    --shadow: 0 3px 6px rgba(0,0,0,0.16), 0 3px 6px rgba(0,0,0,0.23);
}

[data-skin="ios"] {
    --radius: 14px;
    --font: '-apple-system', BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --border-style: solid;
    --border-width: 1px;
    --border: rgba(0,0,0,0.1);
    --shadow: 0 4px 12px rgba(0,0,0,0.1);
}

[data-skin="windows95"] {
    --radius: 0px;
    --font: 'MS Sans Serif', 'Tahoma', sans-serif;
    --border-style: solid;
    --border-width: 2px;
    --border: #dfdfdf;
    --shadow: inset -1px -1px #0a0a0a, inset 1px 1px #fff, inset -2px -2px #808080, inset 2px 2px #dfdfdf;
    --bg-panel: #c0c0c0;
    --text: #000;
}

[data-skin="claymorphism"] {
    --radius: 24px;
    --font: 'Nunito', sans-serif;
    --border-style: none;
    --border-width: 0px;
    --shadow: 8px 8px 16px rgba(0,0,0,0.2), inset -4px -4px 8px rgba(0,0,0,0.2), inset 4px 4px 8px rgba(255,255,255,0.2);
}

[data-skin="aurora"] {
    --radius: 16px;
    --font: 'Inter', sans-serif;
    --border-style: solid;
    --border-width: 1px;
    --border: rgba(255,255,255,0.2);
    --shadow: 0 8px 32px rgba(0,0,0,0.2);
    background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 20%, transparent), color-mix(in srgb, var(--bg) 80%, transparent));
    backdrop-filter: blur(20px);
}

[data-skin="pixel"] {
    --radius: 0px;
    --font: 'Press Start 2P', monospace;
    --border-style: solid;
    --border-width: 4px;
    --border: var(--accent);
    --shadow: 4px 4px 0px #000;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    transition: background-color var(--anim-speed), color var(--anim-speed), border-color var(--anim-speed), box-shadow var(--anim-speed);
}

body {
    font-family: var(--font);
    background-color: var(--bg);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.hidden { display: none !important; }

/* Nav */
.top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background-color: var(--bg-panel);
    border-bottom: var(--border-width) var(--border-style) var(--border);
    box-shadow: var(--shadow);
}

.nav-brand {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--accent);
    text-shadow: 0 0 5px var(--accent);
}

.nav-tabs {
    display: flex;
    gap: 1rem;
}

.tab-btn, button {
    background: transparent;
    color: var(--text);
    border: var(--border-width) var(--border-style) var(--border);
    padding: 0.5rem 1rem;
    cursor: pointer;
    border-radius: var(--radius);
    font-family: inherit;
    position: relative;
    overflow: hidden;
}

.tab-btn.active, button:hover {
    border-color: var(--accent);
    color: var(--accent);
    box-shadow: 0 0 10px var(--accent);
}

/* Settings */
#settings-panel {
    position: absolute;
    top: 4rem;
    right: 2rem;
    background: var(--bg-panel);
    padding: 1rem;
    border: var(--border-width) var(--border-style) var(--accent);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

#settings-panel label {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

select, input {
    background: var(--bg);
    color: var(--text);
    border: var(--border-width) var(--border-style) var(--border);
    padding: 0.3rem;
    border-radius: var(--radius);
    font-family: inherit;
}
input:focus, select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 5px var(--accent);
}

/* Content */
.content {
    flex: 1;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.tab-content {
    animation: fadeIn var(--anim-speed) ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Anim Grid */
.anim-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.anim-card, .tool-card {
    background: var(--bg-panel);
    border: var(--border-width) var(--border-style) var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    box-shadow: var(--shadow);
}

.anim-card:hover, .tool-card:hover {
    border-color: var(--accent);
}

/* Spinner */
.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Radar */
.radar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--accent) 20%, transparent);
    border: 2px solid var(--accent);
    position: relative;
    overflow: hidden;
}
.radar::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 50%;
    height: 2px;
    background: var(--accent);
    transform-origin: 0 50%;
    animation: scan 2s linear infinite;
}
@keyframes scan { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

canvas {
    border: var(--border-width) var(--border-style) var(--border);
    border-radius: var(--radius);
    background: #000;
}

/* DNA */
.dna-loader {
    display: flex;
    gap: 5px;
}
.dna-loader .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent);
    animation: dna 1.5s ease-in-out infinite alternate;
}
.dna-loader .dot:nth-child(2) { animation-delay: 0.2s; }
.dna-loader .dot:nth-child(3) { animation-delay: 0.4s; }
.dna-loader .dot:nth-child(4) { animation-delay: 0.6s; }
.dna-loader .dot:nth-child(5) { animation-delay: 0.8s; }

@keyframes dna {
    0% { transform: translateY(-15px) scale(0.8); opacity: 0.5; }
    100% { transform: translateY(15px) scale(1.2); opacity: 1; }
}

/* Audio Bars */
.audio-bars {
    display: flex;
    gap: 4px;
    align-items: flex-end;
    height: 40px;
}
.audio-bars .bar {
    width: 8px;
    background: var(--accent);
    animation: bounce 1s infinite ease-in-out;
}
.audio-bars .bar:nth-child(1) { height: 10px; animation-delay: 0.1s; }
.audio-bars .bar:nth-child(2) { height: 30px; animation-delay: 0.2s; }
.audio-bars .bar:nth-child(3) { height: 20px; animation-delay: 0.3s; }
.audio-bars .bar:nth-child(4) { height: 40px; animation-delay: 0.4s; }
.audio-bars .bar:nth-child(5) { height: 15px; animation-delay: 0.5s; }

@keyframes bounce {
    0%, 100% { transform: scaleY(0.5); }
    50% { transform: scaleY(1); }
}

/* Cube */
.cube-container {
    perspective: 400px;
    width: 50px;
    height: 50px;
}
.cube {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    animation: rotateCube 4s infinite linear;
}
.cube .face {
    position: absolute;
    width: 50px;
    height: 50px;
    box-shadow: inset 0 0 15px var(--accent);
    border: 2px solid var(--accent);
    background: transparent;
}
.cube .front  { transform: translateZ(25px); }
.cube .back   { transform: rotateY(180deg) translateZ(25px); }
.cube .right  { transform: rotateY(90deg) translateZ(25px); }
.cube .left   { transform: rotateY(-90deg) translateZ(25px); }
.cube .top    { transform: rotateX(90deg) translateZ(25px); }
.cube .bottom { transform: rotateX(-90deg) translateZ(25px); }

@keyframes rotateCube {
    0% { transform: rotateX(0deg) rotateY(0deg); }
    100% { transform: rotateX(360deg) rotateY(360deg); }
}

/* Neon Pulse */
.neon-pulse {
    width: 60px; height: 60px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 10px var(--accent), 0 0 20px var(--accent), 0 0 40px var(--accent);
    animation: pulse 1.5s infinite alternate;
}
@keyframes pulse {
    0% { transform: scale(0.8); opacity: 0.8; }
    100% { transform: scale(1.2); opacity: 1; box-shadow: 0 0 20px var(--accent), 0 0 40px var(--accent), 0 0 80px var(--accent); }
}

/* Quantum Loader */
.quantum-loader {
    position: relative; width: 60px; height: 60px;
}
.quantum-loader .ring {
    position: absolute; border: 2px solid transparent; border-radius: 50%;
}
.quantum-loader .ring1 { width: 60px; height: 60px; top: 0; left: 0; border-top-color: var(--accent); animation: spinQ1 1.2s linear infinite; }
.quantum-loader .ring2 { width: 48px; height: 48px; top: 6px; left: 6px; border-right-color: var(--accent); animation: spinQ2 1.5s linear infinite; }
.quantum-loader .ring3 { width: 36px; height: 36px; top: 12px; left: 12px; border-bottom-color: var(--accent); animation: spinQ3 1.8s linear infinite; }
@keyframes spinQ1 { 100% { transform: rotate(360deg); } }
@keyframes spinQ2 { 100% { transform: rotate(-360deg); } }
@keyframes spinQ3 { 100% { transform: rotate(360deg); } }

/* Glitch Text */
.glitch-text {
    font-size: 2rem; font-weight: bold; position: relative; color: var(--text);
}
.glitch-text::before, .glitch-text::after {
    content: attr(data-text); position: absolute; top: 0; left: 0; width: 100%; height: 100%;
}
.glitch-text::before {
    left: 2px; text-shadow: -1px 0 red; background: var(--bg-panel); overflow: hidden; animation: glitch-anim-1 2s infinite linear alternate-reverse;
}
.glitch-text::after {
    left: -2px; text-shadow: -1px 0 blue; background: var(--bg-panel); overflow: hidden; animation: glitch-anim-2 3s infinite linear alternate-reverse;
}
@keyframes glitch-anim-1 {
    0% { clip-path: inset(20% 0 80% 0); }
    20% { clip-path: inset(60% 0 10% 0); }
    40% { clip-path: inset(40% 0 50% 0); }
    60% { clip-path: inset(80% 0 5% 0); }
    80% { clip-path: inset(10% 0 70% 0); }
    100% { clip-path: inset(30% 0 20% 0); }
}
@keyframes glitch-anim-2 {
    0% { clip-path: inset(10% 0 60% 0); }
    20% { clip-path: inset(30% 0 20% 0); }
    40% { clip-path: inset(70% 0 10% 0); }
    60% { clip-path: inset(20% 0 50% 0); }
    80% { clip-path: inset(50% 0 30% 0); }
    100% { clip-path: inset(5% 0 80% 0); }
}

/* 6 New Animations */
/* Solar System */
.solar-system {
    position: relative; width: 80px; height: 80px; display: flex; align-items: center; justify-content: center;
}
.solar-system .sun {
    width: 20px; height: 20px; background: #ffcc00; border-radius: 50%; box-shadow: 0 0 15px #ffcc00;
}
.solar-system .orbit {
    position: absolute; width: 100%; height: 100%; border: 1px dashed var(--border); border-radius: 50%;
    animation: spinOrbit 3s linear infinite;
}
.solar-system .planet {
    width: 12px; height: 12px; background: var(--accent); border-radius: 50%; position: absolute; top: -6px; left: 50%; transform: translateX(-50%); box-shadow: 0 0 10px var(--accent);
}
@keyframes spinOrbit { 100% { transform: rotate(360deg); } }

/* Pendulum */
.pendulum {
    display: flex; gap: 5px; border-top: 2px solid var(--border); padding-top: 30px; position: relative;
}
.pendulum-dot {
    width: 15px; height: 15px; background: var(--accent); border-radius: 50%; position: relative;
}
.pendulum-dot::before {
    content: ''; position: absolute; width: 2px; height: 30px; background: var(--border); top: -30px; left: 6px;
}
.pendulum-dot.left { transform-origin: top center; animation: swingLeft 1s infinite ease-in-out alternate; }
.pendulum-dot.right { transform-origin: top center; animation: swingRight 1s infinite ease-in-out alternate; animation-delay: 1s; }
@keyframes swingLeft { 0% { transform: rotate(45deg); } 50%, 100% { transform: rotate(0deg); } }
@keyframes swingRight { 0%, 50% { transform: rotate(0deg); } 100% { transform: rotate(-45deg); } }

/* Heartbeat */
.heartbeat {
    width: 40px; height: 40px; background: var(--accent); transform: rotate(45deg); position: relative;
    animation: heartbeatAnim 1.2s infinite;
}
.heartbeat::before, .heartbeat::after {
    content: ''; width: 40px; height: 40px; background: var(--accent); border-radius: 50%; position: absolute;
}
.heartbeat::before { top: -20px; left: 0; }
.heartbeat::after { top: 0; left: -20px; }
@keyframes heartbeatAnim {
    0% { transform: rotate(45deg) scale(0.8); }
    15% { transform: rotate(45deg) scale(1.1); }
    30% { transform: rotate(45deg) scale(0.8); }
    45% { transform: rotate(45deg) scale(1.2); }
    60%, 100% { transform: rotate(45deg) scale(0.8); }
}

/* Infinity Loop */
.infinity {
    display: flex; width: 60px; height: 30px; position: relative;
}
.inf-circle {
    width: 30px; height: 30px; border: 4px solid var(--accent); border-radius: 50%; position: absolute;
}
.inf-circle.left { left: 0; border-right-color: transparent; transform: rotate(-45deg); animation: infSpinL 2s infinite linear; }
.inf-circle.right { right: 0; border-left-color: transparent; transform: rotate(45deg); animation: infSpinR 2s infinite linear; }
@keyframes infSpinL { 100% { transform: rotate(315deg); } }
@keyframes infSpinR { 100% { transform: rotate(405deg); } }

/* Ripple */
.ripple-loader {
    position: relative; width: 64px; height: 64px;
}
.ripple-loader div {
    position: absolute; border: 4px solid var(--accent); opacity: 1; border-radius: 50%;
    animation: rippleAnim 1.5s cubic-bezier(0, 0.2, 0.8, 1) infinite;
}
.ripple-loader div:nth-child(2) { animation-delay: -0.5s; }
@keyframes rippleAnim {
    0% { top: 32px; left: 32px; width: 0; height: 0; opacity: 0; }
    5% { opacity: 1; }
    100% { top: 0px; left: 0px; width: 64px; height: 64px; opacity: 0; }
}

/* Bouncing Balls */
.bouncing-balls {
    display: flex; gap: 8px;
}
.bouncing-balls div {
    width: 16px; height: 16px; background: var(--accent); border-radius: 50%;
    animation: bounceBall 0.6s infinite alternate;
}
.bouncing-balls div:nth-child(2) { animation-delay: 0.2s; }
.bouncing-balls div:nth-child(3) { animation-delay: 0.4s; }
@keyframes bounceBall {
    to { transform: translateY(-20px); }
}

/* 6 MORE Animations */
/* Cyber Hexagons */
.hex-grid {
    display: flex; gap: 5px; flex-wrap: wrap; width: 80px; justify-content: center;
}
.hex {
    width: 20px; height: 20px; background: var(--accent); clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    animation: hexPulse 1.5s infinite alternate;
}
.hex:nth-child(even) { animation-delay: 0.5s; }
@keyframes hexPulse { 0% { opacity: 0.2; transform: scale(0.8); } 100% { opacity: 1; transform: scale(1.1); } }

/* Plasma Wave */
.plasma-wave {
    display: flex; gap: 3px; align-items: center; height: 40px;
}
.plasma-wave div {
    width: 6px; height: 10px; background: var(--accent); border-radius: 3px;
    animation: plasma 1s infinite ease-in-out;
}
.plasma-wave div:nth-child(1) { animation-delay: 0.0s; }
.plasma-wave div:nth-child(2) { animation-delay: 0.1s; }
.plasma-wave div:nth-child(3) { animation-delay: 0.2s; }
.plasma-wave div:nth-child(4) { animation-delay: 0.3s; }
.plasma-wave div:nth-child(5) { animation-delay: 0.4s; }
@keyframes plasma { 0%, 100% { height: 10px; } 50% { height: 40px; background: #fff; } }

/* Laser Grid */
.laser-grid {
    width: 80px; height: 80px; perspective: 100px; overflow: hidden; position: relative;
}
.laser-grid-inner {
    width: 200%; height: 200%; position: absolute; bottom: -50%; left: -50%;
    background-image: linear-gradient(var(--accent) 1px, transparent 1px), linear-gradient(90deg, var(--accent) 1px, transparent 1px);
    background-size: 20px 20px;
    transform: rotateX(60deg);
    animation: gridMove 2s infinite linear;
}
@keyframes gridMove { 0% { transform: rotateX(60deg) translateY(0); } 100% { transform: rotateX(60deg) translateY(20px); } }

/* Particle Swarm */
.particle-swarm {
    width: 80px; height: 80px; position: relative;
}
.particle-swarm div {
    position: absolute; width: 6px; height: 6px; background: var(--accent); border-radius: 50%;
    animation: swarm 3s infinite ease-in-out alternate;
}
.particle-swarm div:nth-child(1) { top: 10%; left: 10%; animation-delay: 0s; }
.particle-swarm div:nth-child(2) { top: 80%; left: 20%; animation-delay: -1s; }
.particle-swarm div:nth-child(3) { top: 40%; left: 80%; animation-delay: -2s; }
@keyframes swarm { 0% { transform: translate(0, 0); } 100% { transform: translate(40px, 40px); } }

/* Neon Spinner */
.neon-spinner {
    width: 60px; height: 60px; position: relative;
}
.neon-spinner::before, .neon-spinner::after {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    border-radius: 50%; border: 3px solid transparent;
}
.neon-spinner::before {
    border-top-color: var(--accent); border-bottom-color: var(--accent);
    animation: spinNeon 1.5s infinite linear;
}
.neon-spinner::after {
    border-left-color: var(--accent); border-right-color: var(--accent);
    animation: spinNeonRev 1s infinite linear;
}
@keyframes spinNeon { 100% { transform: rotate(360deg) scale(1.2); } }
@keyframes spinNeonRev { 100% { transform: rotate(-360deg) scale(0.8); } }

/* Holo Globe */
.holo-globe {
    width: 60px; height: 60px; border-radius: 50%; border: 2px solid var(--accent);
    position: relative; overflow: hidden;
}
.holo-globe::before {
    content: ''; position: absolute; top: 0; left: 15px; width: 30px; height: 100%;
    border: 2px solid var(--accent); border-radius: 50%;
    animation: globeSpin 2s infinite linear;
}
.holo-globe::after {
    content: ''; position: absolute; top: 30px; left: 0; width: 100%; height: 2px;
    background: var(--accent);
}
@keyframes globeSpin { 0% { transform: scaleX(1); } 50% { transform: scaleX(0); } 100% { transform: scaleX(1); } }

/* 6 MORE Animations (Batch 3) */
/* Cube Wave */
.cube-wave {
    display: flex; gap: 4px; align-items: center; height: 40px;
}
.cube-wave div {
    width: 12px; height: 12px; background: var(--accent);
    animation: cubeWaveAnim 1.5s infinite ease-in-out;
}
.cube-wave div:nth-child(1) { animation-delay: 0s; }
.cube-wave div:nth-child(2) { animation-delay: 0.1s; }
.cube-wave div:nth-child(3) { animation-delay: 0.2s; }
.cube-wave div:nth-child(4) { animation-delay: 0.3s; }
.cube-wave div:nth-child(5) { animation-delay: 0.4s; }
@keyframes cubeWaveAnim {
    0%, 100% { transform: translateY(0) rotate(0deg); border-radius: 0; }
    50% { transform: translateY(-20px) rotate(90deg); border-radius: 50%; }
}

/* Neon Hexagon */
.neon-hexagon {
    width: 60px; height: 60px; position: relative;
    background: transparent;
    border: 2px solid var(--accent);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    animation: hexSpin 3s infinite linear;
    box-shadow: 0 0 15px var(--accent) inset, 0 0 15px var(--accent);
}
.neon-hexagon::before {
    content: ''; position: absolute; top: 10px; left: 10px; right: 10px; bottom: 10px;
    background: var(--accent); opacity: 0.5;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    animation: hexPulseInner 1s infinite alternate;
}
@keyframes hexSpin { 100% { transform: rotate(360deg); } }
@keyframes hexPulseInner { 0% { transform: scale(0.8); opacity: 0.2; } 100% { transform: scale(1.1); opacity: 0.8; } }

/* Starfield */
.starfield {
    width: 80px; height: 80px; background: #000; border-radius: 50%; position: relative; overflow: hidden;
    box-shadow: 0 0 10px var(--accent);
}
.starfield::before {
    content: ''; position: absolute; width: 200%; height: 200%; top: -50%; left: -50%;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, #fff, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 40px 70px, #fff, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 50px 160px, #fff, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 90px 40px, #fff, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 130px 80px, #fff, rgba(0,0,0,0));
    background-repeat: repeat;
    background-size: 100px 100px;
    animation: starMove 4s infinite linear;
}
@keyframes starMove { 0% { transform: translateY(0); } 100% { transform: translateY(100px); } }

/* Radar Sweep */
.radar-sweep {
    width: 60px; height: 60px; border-radius: 50%; border: 2px solid var(--accent);
    position: relative; background: radial-gradient(circle, color-mix(in srgb, var(--accent) 10%, transparent) 0%, transparent 70%);
}
.radar-sweep::before {
    content: ''; position: absolute; top: 50%; left: 50%; width: 50%; height: 50%;
    background: conic-gradient(from 0deg, transparent 70%, var(--accent) 100%);
    transform-origin: 0 0;
    animation: sweep 2s infinite linear;
}
@keyframes sweep { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* Liquid Blob */
.liquid-blob {
    width: 60px; height: 60px; background: var(--accent);
    animation: blobMorph 3s infinite ease-in-out alternate;
    box-shadow: 0 0 20px var(--accent);
}
@keyframes blobMorph {
    0% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
    50% { border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%; }
    100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
}

/* Cyber Circuit */
.cyber-circuit {
    width: 60px; height: 60px; position: relative;
}
.cyber-circuit::before, .cyber-circuit::after {
    content: ''; position: absolute; background: var(--accent);
}
.cyber-circuit::before {
    width: 2px; height: 0; top: 10px; left: 20px;
    animation: drawLine 2s infinite alternate;
}
.cyber-circuit::after {
    width: 0; height: 2px; top: 30px; left: 20px;
    animation: drawLineH 2s infinite alternate; animation-delay: 1s;
}
@keyframes drawLine { 0% { height: 0; } 100% { height: 40px; } }
@keyframes drawLineH { 0% { width: 0; } 100% { width: 30px; } }

/* Games */
.fs-btn {
    background: transparent; border: none; color: var(--text-muted); font-size: 1.2rem; cursor: pointer; padding: 0 5px; box-shadow: none;
}
.fs-btn:hover { color: var(--accent); box-shadow: none; transform: scale(1.2); }

/* Fullscreen overrides */
:fullscreen { background: var(--bg); padding: 2rem; display: flex; flex-direction: column; align-items: center; justify-content: center; }
:-webkit-full-screen { background: var(--bg); padding: 2rem; display: flex; flex-direction: column; align-items: center; justify-content: center; }

.ttt-board {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin: 0 auto;
    width: 100%;
    max-width: 300px;
    aspect-ratio: 1 / 1;
}
:fullscreen .ttt-board, :-webkit-full-screen .ttt-board {
    max-width: 80vmin;
    gap: 2vmin;
}
.ttt-cell {
    background: var(--bg-panel);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    display: flex; align-items: center; justify-content: center;
    font-size: 3rem; font-weight: bold; color: var(--text);
    cursor: pointer;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.5);
    transition: all 0.2s ease;
}
:fullscreen .ttt-cell, :-webkit-full-screen .ttt-cell {
    font-size: 15vmin;
    border-width: 4px;
}
.ttt-cell:hover {
    border-color: var(--accent);
    box-shadow: inset 0 0 20px color-mix(in srgb, var(--accent) 20%, transparent);
}
.ttt-cell.x-mark { color: var(--accent); text-shadow: 0 0 10px var(--accent); }
.ttt-cell.o-mark { color: #ff003c; text-shadow: 0 0 10px #ff003c; }
.ttt-board.disabled { pointer-events: none; opacity: 0.7; filter: grayscale(50%); }

.bs-container {
    display: flex; gap: 15px; justify-content: center;
}
.bs-board {
    display: grid;
    grid-template-columns: repeat(10, 15px);
    gap: 1px;
    background: var(--border);
    border: 2px solid var(--accent);
}
.bs-cell {
    width: 15px; height: 15px;
    background: var(--bg);
    cursor: pointer;
}
.bs-cell:hover { background: rgba(255,255,255,0.2); }
.bs-cell.ship { background: var(--accent); }
.bs-cell.hit { background: #ff003c; }
.bs-cell.miss { background: #555; }
.bs-board.disabled { pointer-events: none; opacity: 0.5; }

/* Network */
.net-tools {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 2rem;
}

#site-frame {
    width: 100%;
    height: 400px;
    border: var(--border-width) var(--border-style) var(--border);
    border-radius: var(--radius);
    margin-top: 1rem;
}

.terminal-output {
    width: 100%;
    min-height: 100px;
    background: #000;
    color: var(--accent);
    font-family: 'Consolas', monospace;
    padding: 1rem;
    border: var(--border-width) var(--border-style) var(--border);
    border-radius: var(--radius);
    white-space: pre-wrap;
    overflow-y: auto;
}

/* Chat */
.chat-setup, .chat-interface {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
    background: var(--bg-panel);
    padding: 2rem;
    border: var(--border-width) var(--border-style) var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.chat-messages {
    height: 300px;
    overflow-y: auto;
    border: var(--border-width) var(--border-style) var(--border);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.chat-msg {
    padding: 0.8rem 1rem;
    border-radius: 16px;
    background: var(--bg);
    word-break: break-word;
    max-width: 80%;
    position: relative;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}
.chat-msg.my-msg {
    align-self: flex-end;
    background: var(--accent);
    color: #000;
    border-bottom-right-radius: 4px;
}
.chat-msg.other-msg {
    align-self: flex-start;
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-bottom-left-radius: 4px;
}
.chat-msg .nick {
    font-size: 0.75rem;
    font-weight: bold;
    margin-bottom: 4px;
    display: block;
    opacity: 0.8;
}
.chat-msg.my-msg .nick { color: rgba(0,0,0,0.7); }
.chat-msg.other-msg .nick { color: var(--accent); }

.chat-msg.error {
    align-self: center;
    background: transparent;
    border: 1px solid var(--accent-crimson);
    color: var(--accent-crimson);
    font-size: 0.85rem;
    text-align: center;
}

.chat-input-area {
    display: flex;
    gap: 1rem;
}
.chat-input-area input {
    flex: 1;
}

.chat-actions {
    display: flex;
    gap: 1rem;
}

/* --- 15 MORE ANIMATIONS --- */

/* 1. Quantum Field */
.quantum-field {
    width: 80px; height: 80px;
    background: radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--accent) 20%, transparent) 0%, transparent 60%);
    position: relative;
    overflow: hidden;
}
.quantum-field::before, .quantum-field::after {
    content: ''; position: absolute;
    width: 200%; height: 200%;
    top: -50%; left: -50%;
    background-image: radial-gradient(circle, var(--accent) 1px, transparent 1px);
    background-size: 20px 20px;
    animation: quantum-spin 20s linear infinite;
    opacity: 0.3;
}
.quantum-field::after {
    background-size: 30px 30px;
    animation: quantum-spin 30s linear infinite reverse;
    opacity: 0.15;
}
@keyframes quantum-spin { 100% { transform: rotate(360deg); } }

/* 2. Data Stream */
.data-stream {
    width: 80px; height: 80px;
    background: linear-gradient(to bottom, transparent 50%, color-mix(in srgb, var(--accent) 10%, transparent) 100%);
    background-size: 100% 4px;
    animation: data-flow 1s linear infinite;
    position: relative;
    overflow: hidden;
}
.data-stream::before {
    content: ''; position: absolute;
    top: 0; left: 20%; width: 2px; height: 100%;
    background: var(--accent);
    box-shadow: 0 0 10px var(--accent);
    animation: data-drop 2s ease-in-infinite;
}
.data-stream::after {
    content: ''; position: absolute;
    top: 0; left: 70%; width: 1px; height: 100%;
    background: var(--accent);
    animation: data-drop 1.5s ease-in-infinite 0.5s;
}
@keyframes data-flow { 100% { background-position: 0 4px; } }
@keyframes data-drop { 0% { transform: translateY(-100%); opacity: 1; } 100% { transform: translateY(100%); opacity: 0; } }

/* 3. Glitch Storm */
.glitch-storm {
    width: 80px; height: 80px;
    background: var(--bg-panel);
    position: relative;
    overflow: hidden;
}
.glitch-storm::before {
    content: ''; position: absolute;
    width: 100%; height: 10px;
    background: var(--accent);
    opacity: 0.5;
    animation: glitch-bar 0.3s steps(5) infinite;
}
@keyframes glitch-bar {
    0% { top: 10%; left: -10%; width: 120%; }
    20% { top: 40%; left: 10%; width: 80%; }
    40% { top: 80%; left: -5%; width: 110%; }
    60% { top: 20%; left: 5%; width: 90%; }
    80% { top: 60%; left: -20%; width: 140%; }
    100% { top: 90%; left: 0%; width: 100%; }
}

/* 4. Neon Ripple */
.neon-ripple {
    width: 80px; height: 80px;
    display: flex; align-items: center; justify-content: center;
    position: relative;
    overflow: hidden;
}
.neon-ripple::before {
    content: '';
    width: 20px; height: 20px;
    border: 2px solid var(--accent);
    border-radius: 50%;
    animation: ripple-expand 2s cubic-bezier(0.1, 0.8, 0.3, 1) infinite;
}
@keyframes ripple-expand {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(10); opacity: 0; }
}

/* 5. Cyber Grid */
.cyber-grid {
    width: 80px; height: 80px;
    background-image: 
        linear-gradient(var(--accent) 1px, transparent 1px),
        linear-gradient(90deg, var(--accent) 1px, transparent 1px);
    background-size: 20px 20px;
    transform: perspective(200px) rotateX(60deg);
    transform-origin: bottom;
    animation: grid-move 2s linear infinite;
    opacity: 0.3;
}
@keyframes grid-move { 100% { background-position: 0 20px; } }

/* 6. Fractal Zoom */
.fractal-zoom {
    width: 80px; height: 80px;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
}
.fractal-zoom::before {
    content: '';
    width: 50px; height: 50px;
    border: 2px solid var(--accent);
    animation: fractal-scale 3s infinite;
}
@keyframes fractal-scale {
    0% { transform: scale(0.1) rotate(0deg); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: scale(10) rotate(90deg); opacity: 0; }
}

/* 7. Digital Snow */
.digital-snow {
    width: 80px; height: 80px;
    background-image: radial-gradient(circle at center, var(--accent) 2px, transparent 2.5px);
    background-size: 15px 15px;
    animation: snow-fall 5s linear infinite;
    opacity: 0.8;
}
@keyframes snow-fall { 
    0% { background-position: 0px 0px; }
    100% { background-position: 15px 100px; } 
}

/* 8. Plasma Orb */
.plasma-orb {
    width: 80px; height: 80px;
    display: flex; align-items: center; justify-content: center;
}
.plasma-orb::before {
    content: '';
    width: 60px; height: 60px;
    background: radial-gradient(circle, var(--accent) 20%, transparent 70%);
    border-radius: 50%;
    animation: orb-pulse 2s ease-in-out infinite alternate;
    box-shadow: 0 0 20px var(--accent);
}
@keyframes orb-pulse {
    0% { transform: scale(0.8); filter: hue-rotate(0deg); }
    100% { transform: scale(1.2); filter: hue-rotate(45deg); }
}

/* 9. Hyperspace */
.hyperspace {
    width: 80px; height: 80px;
    background: radial-gradient(circle at center, transparent 20%, var(--bg-panel) 80%);
    position: relative;
    overflow: hidden;
}
.hyperspace::before {
    content: ''; position: absolute;
    top: 50%; left: 50%; width: 200%; height: 2px;
    background: var(--accent);
    transform-origin: left;
    animation: hyper-spin 1s linear infinite;
}
@keyframes hyper-spin { 100% { transform: rotate(360deg); } }

/* 10. Pulse Ring */
.pulse-ring {
    width: 80px; height: 80px;
    display: flex; align-items: center; justify-content: center;
    position: relative;
}
.pulse-ring::before, .pulse-ring::after {
    content: ''; position: absolute;
    width: 40px; height: 40px;
    border: 2px solid var(--accent);
    border-radius: 50%;
    animation: ring-pulse 2s infinite;
}
.pulse-ring::after { animation-delay: 1s; }
@keyframes ring-pulse {
    0% { transform: scale(0.5); opacity: 1; }
    100% { transform: scale(3); opacity: 0; }
}

/* 11. Wireframe Tunnel */
.wireframe-tunnel {
    width: 80px; height: 80px;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
}
.wireframe-tunnel::before {
    content: '';
    width: 20px; height: 20px;
    border: 1px solid var(--accent);
    animation: tunnel-zoom 2s linear infinite;
}
@keyframes tunnel-zoom {
    0% { transform: scale(1); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: scale(15); opacity: 0; }
}

/* 12. Energy Beam */
.energy-beam {
    width: 80px; height: 80px;
    display: flex; align-items: center; justify-content: center;
}
.energy-beam::before {
    content: '';
    width: 100%; height: 10px;
    background: var(--accent);
    box-shadow: 0 0 15px var(--accent);
    animation: beam-flicker 0.1s infinite alternate;
}
@keyframes beam-flicker {
    0% { opacity: 0.8; height: 8px; }
    100% { opacity: 1; height: 12px; }
}

/* 13. Magnetic Field */
.magnetic-field {
    width: 80px; height: 80px;
    background: repeating-radial-gradient(circle at center, transparent 0, transparent 10px, color-mix(in srgb, var(--accent) 50%, transparent) 11px, color-mix(in srgb, var(--accent) 50%, transparent) 12px);
    background-size: 200% 200%;
    background-position: center;
    animation: magnet-pulse 4s infinite linear;
}
@keyframes magnet-pulse { 
    0% { background-size: 100% 100%; } 
    50% { background-size: 200% 200%; } 
    100% { background-size: 100% 100%; } 
}

/* 14. Sonar Ping */
.sonar-ping {
    width: 80px; height: 80px;
    display: flex; align-items: center; justify-content: center;
    background: radial-gradient(circle, color-mix(in srgb, var(--accent) 10%, transparent) 0%, transparent 70%);
    border-radius: 50%;
}
.sonar-ping::before {
    content: '';
    width: 10px; height: 10px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 70%, transparent);
    animation: sonar-wave 2s infinite;
}
@keyframes sonar-wave {
    70% { box-shadow: 0 0 0 50px transparent; }
    100% { box-shadow: 0 0 0 0 transparent; }
}

/* 15. Matrix Cube */
.matrix-cube {
    width: 80px; height: 80px;
    display: flex; align-items: center; justify-content: center;
    perspective: 400px;
}
.matrix-cube::before {
    content: '';
    width: 50px; height: 50px;
    border: 2px solid var(--accent);
    background: color-mix(in srgb, var(--accent) 10%, transparent);
    animation: cube-spin 4s infinite linear;
    transform-style: preserve-3d;
}
@keyframes cube-spin {
    0% { transform: rotateX(0) rotateY(0); }
    100% { transform: rotateX(360deg) rotateY(360deg); }
}
