/* ============================================
   KARMABADGE.COM - Astro-Terminal Design System
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
    --deep-void: #0a0a0f;
    --phosphor-dark: #0f1a12;
    --neon-magenta: #ff2ecc;
    --acid-lime: #39ff14;
    --electric-cyan: #00f0ff;
    --solar-gold: #ffd700;
    --ultraviolet: #7b2dff;
    --dim-phosphor: #1a3a20;
    --ghost-white: #e8e8f0;
    --scanline-dark: #0f0f18;

    --glow-magenta: 0 0 8px rgba(255, 46, 204, 0.6), 0 0 20px rgba(255, 46, 204, 0.3), 0 0 40px rgba(255, 46, 204, 0.15);
    --glow-lime: 0 0 8px rgba(57, 255, 20, 0.6), 0 0 20px rgba(57, 255, 20, 0.3), 0 0 40px rgba(57, 255, 20, 0.15);
    --glow-cyan: 0 0 8px rgba(0, 240, 255, 0.6), 0 0 20px rgba(0, 240, 255, 0.3), 0 0 40px rgba(0, 240, 255, 0.15);
    --glow-gold: 0 0 8px rgba(255, 215, 0, 0.6), 0 0 20px rgba(255, 215, 0, 0.3), 0 0 40px rgba(255, 215, 0, 0.15);
    --glow-ultraviolet: 0 0 8px rgba(123, 45, 255, 0.6), 0 0 20px rgba(123, 45, 255, 0.3), 0 0 40px rgba(123, 45, 255, 0.15);

    --text-glow-magenta: 0 0 8px rgba(255, 46, 204, 0.6), 0 0 20px rgba(255, 46, 204, 0.3), 0 0 40px rgba(255, 46, 204, 0.15);
    --text-glow-lime: 0 0 8px rgba(57, 255, 20, 0.6), 0 0 20px rgba(57, 255, 20, 0.3), 0 0 40px rgba(57, 255, 20, 0.15);
    --text-glow-cyan: 0 0 8px rgba(0, 240, 255, 0.6), 0 0 20px rgba(0, 240, 255, 0.3), 0 0 40px rgba(0, 240, 255, 0.15);
    --text-glow-gold: 0 0 8px rgba(255, 215, 0, 0.6), 0 0 20px rgba(255, 215, 0, 0.3), 0 0 40px rgba(255, 215, 0, 0.15);
    --text-glow-ultraviolet: 0 0 8px rgba(123, 45, 255, 0.6), 0 0 20px rgba(123, 45, 255, 0.3), 0 0 40px rgba(123, 45, 255, 0.15);
}

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    background: var(--deep-void);
    color: var(--ghost-white);
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 400;
    font-size: clamp(0.85rem, 1.3vw, 1.05rem);
    line-height: 1.7;
    letter-spacing: 0.02em;
    overflow-x: hidden;
    position: relative;
}

/* Diagonal Scanline Overlay */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        135deg,
        rgba(0, 240, 255, 0.015) 0px,
        transparent 1px,
        transparent 3px
    );
    pointer-events: none;
    z-index: 9999;
}

/* CRT Scanline Effect */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        to bottom,
        rgba(15, 15, 24, 0.3) 0px,
        transparent 1px,
        transparent 3px
    );
    pointer-events: none;
    z-index: 9998;
}

/* ============================================
   TERMINAL HEADER - BOOT SEQUENCE
   ============================================ */

#terminal-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--deep-void);
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

#matrix-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 300;
    font-size: clamp(0.55rem, 0.9vw, 0.75rem);
    color: var(--dim-phosphor);
    line-height: 1.4;
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.3s ease;
    white-space: pre-wrap;
    word-break: break-all;
    padding: 1rem;
}

#matrix-bg.visible {
    opacity: 1;
}

#hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 2rem;
}

#domain-title {
    font-family: 'Bungee Shade', cursive;
    font-weight: 400;
    font-size: clamp(2.8rem, 8vw, 7rem);
    color: var(--neon-magenta);
    text-shadow: var(--text-glow-magenta);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    line-height: 1.2;
    margin-bottom: 2rem;
}

#domain-title .char {
    display: inline-block;
    opacity: 0;
    transform: translateY(-60px) scale(0.8);
}

#domain-title .char.animate {
    animation: bounceIn 500ms cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    animation-delay: calc(var(--char-index) * 60ms);
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: translateY(-60px) scale(0.8);
    }
    60% {
        opacity: 1;
        transform: translateY(8px) scale(1.02);
    }
    80% {
        transform: translateY(-3px) scale(0.99);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes charFlash {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 46, 204, 0.6);
    }
    100% {
        box-shadow: 0 0 40px 20px rgba(255, 46, 204, 0);
    }
}

#domain-title .char.animate {
    animation: bounceIn 500ms cubic-bezier(0.34, 1.56, 0.64, 1) forwards,
               charFlash 400ms ease-out forwards;
    animation-delay: calc(var(--char-index) * 60ms + 1500ms);
}

#subtitle-lines {
    margin-top: 1.5rem;
}

.typewriter-line {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 400;
    font-size: clamp(0.7rem, 1.2vw, 0.95rem);
    color: var(--acid-lime);
    text-shadow: var(--text-glow-lime);
    letter-spacing: 0.02em;
    overflow: hidden;
    white-space: nowrap;
    width: 0;
    margin: 0.3rem auto;
    display: block;
}

.typewriter-line.typing {
    animation: typewriter 1.5s steps(50, end) forwards;
}

#subtitle-2.typing {
    animation-delay: 1.5s;
}

@keyframes typewriter {
    from { width: 0; }
    to { width: 100%; }
}

/* Blinking Cursor */
.blink-cursor {
    animation: blink 1s step-end infinite;
    color: var(--acid-lime);
}

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

/* ============================================
   DIAGONAL SECTIONS
   ============================================ */

.diagonal-section {
    position: relative;
    z-index: 5;
    min-height: 100vh;
    padding: 10vw 5vw 10vw 5vw;
    overflow: hidden;
}

.diagonal-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/* Section 1 - Magenta accent */
.section-magenta {
    background: var(--deep-void);
    clip-path: polygon(0 8vw, 100% 0, 100% calc(100% - 8vw), 0 100%);
    margin-top: 100vh;
}

.section-magenta::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--neon-magenta), transparent);
    transform: rotate(-4.5deg);
    transform-origin: top left;
    box-shadow: var(--glow-magenta);
}

/* Section 2 - Cyan accent */
.section-cyan {
    background: var(--phosphor-dark);
    clip-path: polygon(0 0, 100% 8vw, 100% 100%, 0 calc(100% - 8vw));
    margin-top: -8vw;
}

.section-cyan::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--electric-cyan), transparent);
    transform: rotate(4.5deg);
    transform-origin: top left;
    box-shadow: var(--glow-cyan);
}

/* Section 3 - Ultraviolet accent */
.section-ultraviolet {
    background: var(--deep-void);
    clip-path: polygon(0 8vw, 100% 0, 100% calc(100% - 8vw), 0 100%);
    margin-top: -8vw;
}

.section-ultraviolet::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--ultraviolet), transparent);
    transform: rotate(-4.5deg);
    transform-origin: top left;
    box-shadow: var(--glow-ultraviolet);
}

/* Section 4 - Gold accent */
.section-gold {
    background: var(--phosphor-dark);
    clip-path: polygon(0 0, 100% 8vw, 100% 100%, 0 calc(100% - 8vw));
    margin-top: -8vw;
}

.section-gold::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--solar-gold), transparent);
    transform: rotate(4.5deg);
    transform-origin: top left;
    box-shadow: var(--glow-gold);
}

/* Section scanline backgrounds */
.diagonal-section {
    background-image: repeating-linear-gradient(
        to bottom,
        transparent 0px,
        transparent 2px,
        rgba(15, 15, 24, 0.15) 2px,
        rgba(15, 15, 24, 0.15) 3px
    );
    background-size: 100% 3px;
}

.section-magenta,
.section-ultraviolet {
    background-color: var(--deep-void);
}

.section-cyan,
.section-gold {
    background-color: var(--phosphor-dark);
}

/* Section Content Layout */
.section-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    align-items: center;
    position: relative;
}

/* ============================================
   TERMINAL WINDOWS
   ============================================ */

.terminal-window {
    border: 1px solid var(--dim-phosphor);
    background: rgba(10, 10, 15, 0.9);
    overflow: hidden;
    position: relative;
}

.terminal-window::after {
    content: '';
    position: absolute;
    inset: 2px;
    border: 2px solid var(--dim-phosphor);
    pointer-events: none;
}

.terminal-titlebar {
    height: 24px;
    background: rgba(26, 58, 32, 0.3);
    display: flex;
    align-items: center;
    padding: 0 8px;
    gap: 6px;
    border-bottom: 1px solid var(--dim-phosphor);
}

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

.dot-magenta { background: var(--neon-magenta); box-shadow: 0 0 4px var(--neon-magenta); }
.dot-gold { background: var(--solar-gold); box-shadow: 0 0 4px var(--solar-gold); }
.dot-lime { background: var(--acid-lime); box-shadow: 0 0 4px var(--acid-lime); }

.terminal-title {
    font-family: 'Press Start 2P', cursive;
    font-size: 0.5rem;
    color: var(--ghost-white);
    margin-left: 8px;
    opacity: 0.7;
}

.terminal-body {
    padding: 1.5rem;
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 400;
    font-size: clamp(0.7rem, 1vw, 0.85rem);
    line-height: 1.8;
    color: var(--ghost-white);
    background: repeating-linear-gradient(
        to bottom,
        transparent 0px,
        transparent 2px,
        rgba(15, 15, 24, 0.1) 2px,
        rgba(15, 15, 24, 0.1) 3px
    );
}

.terminal-body .highlight-cyan {
    color: var(--electric-cyan);
    text-shadow: var(--text-glow-cyan);
}

.terminal-body .highlight-lime {
    color: var(--acid-lime);
    text-shadow: var(--text-glow-lime);
}

.terminal-body .highlight-ultraviolet {
    color: var(--ultraviolet);
    text-shadow: var(--text-glow-ultraviolet);
}

.terminal-body .highlight-gold {
    color: var(--solar-gold);
    text-shadow: var(--text-glow-gold);
}

/* ============================================
   BADGE GLYPHS
   ============================================ */

.badge-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    position: relative;
}

.badge-glyph {
    width: 150px;
    height: 150px;
    position: relative;
    animation: celestial-spin 60s linear infinite;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow 0.3s ease;
}

.badge-glyph:hover {
    transform: scale(1.15);
}

.badge-inner {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.05) 0%, var(--deep-void) 70%);
}

/* 8-pointed star */
.star-8 {
    clip-path: polygon(50% 0%, 61% 35%, 100% 38%, 68% 59%, 79% 95%, 50% 72%, 21% 95%, 32% 59%, 0% 38%, 39% 35%);
}

/* 6-pointed star (hexagram) */
.star-6 {
    clip-path: polygon(50% 0%, 63% 25%, 100% 25%, 75% 50%, 100% 75%, 63% 75%, 50% 100%, 37% 75%, 0% 75%, 25% 50%, 0% 25%, 37% 25%);
}

/* 4-pointed star (compass rose) */
.star-4 {
    clip-path: polygon(50% 0%, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0% 50%, 40% 40%);
}

/* 12-pointed star (zodiac) */
.star-12 {
    clip-path: polygon(50% 0%, 57% 29%, 75% 7%, 67% 33%, 100% 25%, 71% 43%, 100% 50%, 71% 57%, 100% 75%, 67% 67%, 75% 93%, 57% 71%, 50% 100%, 43% 71%, 25% 93%, 33% 67%, 0% 75%, 29% 57%, 0% 50%, 29% 43%, 0% 25%, 33% 33%, 25% 7%, 43% 29%);
}

/* Badge tier colors */
.badge-glyph[data-tier="magenta"] {
    background: var(--deep-void);
    border: 2px solid var(--neon-magenta);
    box-shadow: var(--glow-magenta);
}

.badge-glyph[data-tier="magenta"] .badge-inner {
    background: radial-gradient(circle at center, rgba(255, 46, 204, 0.1) 0%, var(--deep-void) 70%);
}

.badge-glyph[data-tier="cyan"] {
    background: var(--deep-void);
    border: 2px solid var(--electric-cyan);
    box-shadow: var(--glow-cyan);
}

.badge-glyph[data-tier="cyan"] .badge-inner {
    background: radial-gradient(circle at center, rgba(0, 240, 255, 0.1) 0%, var(--deep-void) 70%);
}

.badge-glyph[data-tier="ultraviolet"] {
    background: var(--deep-void);
    border: 2px solid var(--ultraviolet);
    box-shadow: var(--glow-ultraviolet);
}

.badge-glyph[data-tier="ultraviolet"] .badge-inner {
    background: radial-gradient(circle at center, rgba(123, 45, 255, 0.1) 0%, var(--deep-void) 70%);
}

.badge-glyph[data-tier="gold"] {
    background: var(--deep-void);
    border: 2px solid var(--solar-gold);
    box-shadow: var(--glow-gold);
}

.badge-glyph[data-tier="gold"] .badge-inner {
    background: radial-gradient(circle at center, rgba(255, 215, 0, 0.1) 0%, var(--deep-void) 70%);
}

.badge-glyph[data-tier="lime"] {
    background: var(--deep-void);
    border: 2px solid var(--acid-lime);
    box-shadow: var(--glow-lime);
}

.badge-glyph[data-tier="lime"] .badge-inner {
    background: radial-gradient(circle at center, rgba(57, 255, 20, 0.1) 0%, var(--deep-void) 70%);
}

/* Hover glow intensification */
.badge-glyph[data-tier="magenta"]:hover {
    box-shadow: 0 0 16px rgba(255, 46, 204, 0.8), 0 0 40px rgba(255, 46, 204, 0.5), 0 0 80px rgba(255, 46, 204, 0.25);
}
.badge-glyph[data-tier="cyan"]:hover {
    box-shadow: 0 0 16px rgba(0, 240, 255, 0.8), 0 0 40px rgba(0, 240, 255, 0.5), 0 0 80px rgba(0, 240, 255, 0.25);
}
.badge-glyph[data-tier="ultraviolet"]:hover {
    box-shadow: 0 0 16px rgba(123, 45, 255, 0.8), 0 0 40px rgba(123, 45, 255, 0.5), 0 0 80px rgba(123, 45, 255, 0.25);
}
.badge-glyph[data-tier="gold"]:hover {
    box-shadow: 0 0 16px rgba(255, 215, 0, 0.8), 0 0 40px rgba(255, 215, 0, 0.5), 0 0 80px rgba(255, 215, 0, 0.25);
}
.badge-glyph[data-tier="lime"]:hover {
    box-shadow: 0 0 16px rgba(57, 255, 20, 0.8), 0 0 40px rgba(57, 255, 20, 0.5), 0 0 80px rgba(57, 255, 20, 0.25);
}

@keyframes celestial-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.badge-label {
    font-family: 'Press Start 2P', cursive;
    font-size: clamp(0.5rem, 0.8vw, 0.65rem);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.badge-column:hover .badge-label {
    opacity: 1;
}

.section-magenta .badge-label { color: var(--neon-magenta); text-shadow: var(--text-glow-magenta); }
.section-cyan .badge-label { color: var(--electric-cyan); text-shadow: var(--text-glow-cyan); }
.section-ultraviolet .badge-label { color: var(--ultraviolet); text-shadow: var(--text-glow-ultraviolet); }
.section-gold .badge-label { color: var(--solar-gold); text-shadow: var(--text-glow-gold); }

/* Constellation Lines */
.constellation-line {
    position: absolute;
    width: 200px;
    height: 300px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: -1;
}

.constellation-stroke {
    stroke: var(--electric-cyan);
    stroke-opacity: 0.3;
    stroke-width: 1;
    stroke-dasharray: 4 8;
    fill: none;
    animation: dashFlow 5s linear infinite;
}

@keyframes dashFlow {
    from { stroke-dashoffset: 0; }
    to { stroke-dashoffset: -24; }
}

.badge-column:hover .constellation-stroke {
    stroke-opacity: 0.8;
    transition: stroke-opacity 0.3s ease;
}

/* ============================================
   BOUNCE ENTER ANIMATIONS
   ============================================ */

.bounce-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.6s cubic-bezier(0.34, 1.56, 0.64, 1),
                transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.bounce-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.6s cubic-bezier(0.34, 1.56, 0.64, 1),
                transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.bounce-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.bounce-right.visible {
    opacity: 1;
    transform: translateX(0);
    transition-delay: 100ms;
}

/* ============================================
   BADGE TICKER STRIP
   ============================================ */

#badge-ticker {
    position: relative;
    z-index: 10;
    width: 120%;
    left: -10%;
    margin-top: -8vw;
    margin-bottom: -8vw;
    padding: 12px 0;
    background: rgba(10, 10, 15, 0.6);
    border-top: 1px solid var(--neon-magenta);
    border-bottom: 1px solid var(--neon-magenta);
    transform: rotate(-12deg);
    overflow: hidden;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.ticker-track {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    width: max-content;
    animation: ticker 30s linear infinite;
}

@keyframes ticker {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.ticker-text {
    font-family: 'Press Start 2P', cursive;
    font-size: clamp(0.5rem, 0.8vw, 0.65rem);
    color: var(--electric-cyan);
    text-shadow: var(--text-glow-cyan);
    letter-spacing: 0.08em;
    white-space: nowrap;
}

.star-mini {
    width: 24px;
    height: 24px;
    display: inline-block;
    clip-path: polygon(50% 0%, 61% 35%, 100% 38%, 68% 59%, 79% 95%, 50% 72%, 21% 95%, 32% 59%, 0% 38%, 39% 35%);
    flex-shrink: 0;
}

.star-mini[data-tier="magenta"] { background: var(--neon-magenta); box-shadow: var(--glow-magenta); }
.star-mini[data-tier="cyan"] { background: var(--electric-cyan); box-shadow: var(--glow-cyan); }
.star-mini[data-tier="gold"] { background: var(--solar-gold); box-shadow: var(--glow-gold); }
.star-mini[data-tier="ultraviolet"] { background: var(--ultraviolet); box-shadow: var(--glow-ultraviolet); }
.star-mini[data-tier="lime"] { background: var(--acid-lime); box-shadow: var(--glow-lime); }

/* ============================================
   CELESTIAL FOOTER
   ============================================ */

#celestial-footer {
    position: relative;
    z-index: 5;
    min-height: 100vh;
    background: var(--deep-void);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 6rem 2rem;
    overflow: hidden;
}

#footer-grid {
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(
            12deg,
            rgba(26, 58, 32, 0.15) 0px,
            transparent 1px,
            transparent 40px
        ),
        repeating-linear-gradient(
            -12deg,
            rgba(26, 58, 32, 0.15) 0px,
            transparent 1px,
            transparent 40px
        );
    pointer-events: none;
}

#footer-star-container {
    position: relative;
    width: 340px;
    height: 340px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 3rem;
}

#footer-star-container .footer-star {
    width: 120px;
    height: 120px;
    z-index: 2;
}

#circular-labels {
    position: absolute;
    inset: 0;
}

.circular-label {
    position: absolute;
    top: 50%;
    left: 50%;
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 300;
    font-size: 0.55rem;
    color: var(--ghost-white);
    opacity: 0.5;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    white-space: nowrap;
    transform-origin: 0 0;
    transform: rotate(var(--angle)) translateX(140px) translateY(-50%);
}

#footer-terminal {
    text-align: center;
    margin-bottom: 2rem;
}

#footer-terminal p {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 300;
    font-size: clamp(0.65rem, 1vw, 0.8rem);
    color: var(--dim-phosphor);
    margin: 0.3rem 0;
}

#footer-terminal p:first-child {
    color: var(--acid-lime);
    text-shadow: var(--text-glow-lime);
    font-weight: 400;
}

#footer-nav {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.terminal-link {
    font-family: 'Press Start 2P', cursive;
    font-size: clamp(0.5rem, 0.8vw, 0.65rem);
    color: var(--electric-cyan);
    text-shadow: var(--text-glow-cyan);
    text-decoration: none;
    letter-spacing: 0.08em;
    padding: 0.5rem 1rem;
    border: 1px solid var(--dim-phosphor);
    transition: all 0.3s ease;
}

.terminal-link:hover {
    color: var(--neon-magenta);
    text-shadow: var(--text-glow-magenta);
    border-color: var(--neon-magenta);
    box-shadow: var(--glow-magenta);
}

/* ============================================
   BADGE TOOLTIP
   ============================================ */

.badge-tooltip {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Press Start 2P', cursive;
    font-size: 0.5rem;
    white-space: nowrap;
    padding: 4px 8px;
    background: rgba(10, 10, 15, 0.9);
    border: 1px solid var(--dim-phosphor);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 20;
}

.badge-glyph:hover .badge-tooltip {
    opacity: 1;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .section-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .badge-column {
        order: -1;
    }

    .badge-glyph {
        width: 100px;
        height: 100px;
    }

    #footer-star-container {
        width: 260px;
        height: 260px;
    }

    .circular-label {
        transform: rotate(var(--angle)) translateX(100px) translateY(-50%);
        font-size: 0.45rem;
    }

    #footer-nav {
        flex-direction: column;
        align-items: center;
    }

    #badge-ticker {
        width: 140%;
        left: -20%;
    }

    #domain-title {
        font-size: clamp(1.8rem, 6vw, 4rem);
    }
}

@media (max-width: 480px) {
    #domain-title {
        font-size: clamp(1.4rem, 5vw, 2.8rem);
    }

    .terminal-body {
        font-size: 0.65rem;
        padding: 1rem;
    }

    .badge-glyph {
        width: 80px;
        height: 80px;
    }
}
