:root {
    --bg-base: #06080f;
    --bg-card: rgba(11, 15, 25, 0.72);
    --bg-card-sub: rgba(17, 24, 39, 0.6);
    --bg-overlay: rgba(6, 8, 15, 0.88);
    
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    --cyan: #00f2fe;
    --cyan-glow: rgba(0, 242, 254, 0.4);
    --blue: #3b82f6;
    --blue-dark: #1d4ed8;
    --green: #10b981;
    --green-glow: rgba(16, 185, 129, 0.4);
    --purple: #a855f7;
    --amber: #fbbf24;
    --red: #ef4444;

    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-cyan: rgba(0, 242, 254, 0.3);
    --border-active: rgba(0, 242, 254, 0.8);
    
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 22px;
    --radius-full: 9999px;

    --font-main: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-heading: 'Space Grotesk', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-base);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

/* --- Dynamic Background Canvas & Atmospheric Effects --- */
#networkSnake {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1;
    pointer-events: none;
}

.tech-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        radial-gradient(circle at center, rgba(0, 242, 254, 0.04) 1px, transparent 1px);
    background-size: 40px 40px, 40px 40px, 80px 80px;
    z-index: 0;
    pointer-events: none;
    animation: gridFloat 35s linear infinite;
}

@keyframes gridFloat {
    0% { background-position: 0 0, 0 0, 0 0; }
    100% { background-position: 40px 40px, 40px 40px, 80px 80px; }
}

.ambient-glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(100px);
    z-index: 0;
    pointer-events: none;
    opacity: 0.35;
    animation: pulseAmbient 12s ease-in-out infinite alternate;
}

.glow-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #00f2fe 0%, #3b82f6 60%, transparent 80%);
    top: -10%;
    right: -5%;
}

.glow-2 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, #7928ca 0%, #2563eb 50%, transparent 80%);
    bottom: -15%;
    left: -10%;
    animation-delay: -4s;
}

.glow-3 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, #10b981 0%, transparent 70%);
    top: 40%;
    left: 45%;
    opacity: 0.15;
    animation-delay: -8s;
}

@keyframes pulseAmbient {
    0% { transform: scale(0.9) translate(0, 0); opacity: 0.25; }
    50% { transform: scale(1.1) translate(20px, -20px); opacity: 0.4; }
    100% { transform: scale(1.0) translate(-15px, 15px); opacity: 0.3; }
}

.bg-shape {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('Assets/bg.png');
    background-size: cover;
    background-position: center;
    opacity: 0.25;
    mix-blend-mode: screen;
    filter: saturate(180%) hue-rotate(190deg);
    z-index: 0;
    pointer-events: none;
}

.scanline-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%);
    background-size: 100% 4px;
    z-index: 2;
    pointer-events: none;
    opacity: 0.4;
}

/* --- Top Navigation / Status Header --- */
.top-nav {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 1100px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 1.5rem 0.5rem;
    gap: 1rem;
}

.logo-wrapper {
    display: flex;
    align-items: center;
    position: relative;
}

.logo {
    max-width: 220px;
    height: auto;
    filter: drop-shadow(0 0 20px rgba(0, 242, 254, 0.25));
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.3s ease;
}

.logo:hover {
    transform: scale(1.04) translateY(-2px);
    filter: drop-shadow(0 0 25px rgba(0, 242, 254, 0.5));
}

.noc-status-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.3);
    padding: 0.4rem 0.9rem;
    border-radius: var(--radius-full);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    backdrop-filter: blur(8px);
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.15);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--green);
    box-shadow: 0 0 8px var(--green);
}

.status-dot.pulse {
    animation: statusPulse 2s infinite ease-in-out;
}

@keyframes statusPulse {
    0%, 100% { transform: scale(1); opacity: 1; box-shadow: 0 0 6px var(--green); }
    50% { transform: scale(1.3); opacity: 0.7; box-shadow: 0 0 14px var(--green); }
}

.status-label {
    color: var(--text-muted);
    font-weight: 500;
}

.status-value {
    color: #34d399;
    font-weight: 700;
}

.status-uptime {
    background: rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.68rem;
}

/* --- Main Layout Wrapper --- */
.content-wrapper {
    position: relative;
    z-index: 5;
    width: 100%;
    max-width: 860px;
    padding: 1rem 1.25rem 3rem;
    display: flex;
    justify-content: center;
}

.glass-card {
    position: relative;
    width: 100%;
    background: var(--bg-card);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 2.75rem 2.25rem;
    box-shadow: 
        0 25px 60px -15px rgba(0, 0, 0, 0.7),
        0 0 40px -10px rgba(0, 242, 254, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.75rem;
    overflow: hidden;
    animation: cardEntrance 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes cardEntrance {
    0% { opacity: 0; transform: translateY(24px) scale(0.98); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* Top Glow Edge on Card */
.card-glow-border {
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    height: 1.5px;
    background: linear-gradient(90deg, transparent, var(--cyan), #3b82f6, transparent);
    box-shadow: 0 0 12px var(--cyan);
}

/* --- Hero Section --- */
.hero-section {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.1rem;
    width: 100%;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(0, 242, 254, 0.08);
    border: 1px solid rgba(0, 242, 254, 0.25);
    color: var(--cyan);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    padding: 0.35rem 0.9rem;
    border-radius: var(--radius-full);
    box-shadow: 0 0 12px rgba(0, 242, 254, 0.15);
    text-transform: uppercase;
}

.badge-icon {
    font-size: 0.85rem;
}

.main-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.03em;
    color: #ffffff;
}

.gradient-text {
    background: linear-gradient(135deg, #ffffff 10%, #00f2fe 50%, #3b82f6 90%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 25px rgba(0, 242, 254, 0.3));
}

.subtitle {
    font-size: 1.05rem;
    font-weight: 300;
    line-height: 1.65;
    color: var(--text-secondary);
    max-width: 600px;
}

/* --- Capability Badges Grid --- */
.capabilities-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem;
    margin-top: 0.4rem;
    max-width: 680px;
}

.cap-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.09);
    padding: 0.35rem 0.8rem;
    border-radius: var(--radius-full);
    font-size: 0.82rem;
    font-weight: 500;
    color: #cbd5e1;
    transition: all 0.25s ease;
    cursor: default;
    backdrop-filter: blur(6px);
}

.cap-pill:hover {
    background: rgba(0, 242, 254, 0.1);
    border-color: rgba(0, 242, 254, 0.4);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 242, 254, 0.15);
}

.cap-icon {
    font-size: 0.95rem;
}

/* --- Tab Switcher --- */
.tab-switcher {
    display: flex;
    background: rgba(0, 0, 0, 0.4);
    padding: 4px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-subtle);
    gap: 4px;
    margin-top: 0.5rem;
}

.tab-btn {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-family: var(--font-main);
    font-size: 0.88rem;
    font-weight: 600;
    padding: 0.6rem 1.25rem;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all 0.25s ease;
}

.tab-btn:hover {
    color: var(--text-primary);
}

.tab-btn.active {
    background: linear-gradient(135deg, rgba(0, 242, 254, 0.2), rgba(59, 130, 246, 0.3));
    color: #ffffff;
    border: 1px solid rgba(0, 242, 254, 0.4);
    box-shadow: 0 0 16px rgba(0, 242, 254, 0.25);
}

.tab-content {
    width: 100%;
    animation: tabFadeIn 0.35s ease;
}

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

/* --- Cyber Snake Game Panel --- */
.cyber-game-panel {
    background: var(--bg-card-sub);
    border: 1px solid rgba(0, 242, 254, 0.2);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.9rem;
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
    box-shadow: 
        0 15px 35px rgba(0, 0, 0, 0.5),
        inset 0 0 30px rgba(0, 242, 254, 0.03);
    position: relative;
}

/* HUD Top Bar */
.game-hud {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0.35rem 0.5rem;
}

.hud-stat {
    display: flex;
    flex-direction: column;
    font-family: var(--font-mono);
}

.hud-label {
    font-size: 0.65rem;
    color: var(--text-muted);
    letter-spacing: 0.06em;
    font-weight: 600;
}

.hud-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
}

.score-box .hud-value {
    color: var(--cyan);
    text-shadow: 0 0 8px var(--cyan-glow);
}

.highscore-box .hud-value {
    color: var(--amber);
    text-shadow: 0 0 8px rgba(251, 191, 36, 0.4);
}

.combo-pill {
    background: linear-gradient(90deg, #ec4899, #8b5cf6);
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-full);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 700;
    color: #ffffff;
    box-shadow: 0 0 10px rgba(236, 72, 153, 0.5);
    animation: comboPulse 0.8s infinite alternate;
}

@keyframes comboPulse {
    from { transform: scale(0.95); }
    to { transform: scale(1.05); }
}

.game-actions {
    display: flex;
    gap: 0.4rem;
}

.hud-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-subtle);
    color: #ffffff;
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.hud-btn:hover {
    background: rgba(0, 242, 254, 0.15);
    border-color: var(--cyan);
    transform: scale(1.08);
}

/* Canvas Wrapper & Game Board */
.canvas-wrapper {
    position: relative;
    width: 100%;
    max-width: 400px;
    aspect-ratio: 1/1;
    border-radius: var(--radius-sm);
    overflow: hidden;
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.8);
}

#game-board {
    display: block;
    width: 100%;
    height: 100%;
    background-color: #05070c;
    border: 1.5px solid rgba(0, 242, 254, 0.35);
    border-radius: var(--radius-sm);
}

/* Cyber Overlays (Game Over & Pause) */
.cyber-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 8, 15, 0.92);
    backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    z-index: 10;
    animation: overlayFade 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes overlayFade {
    from { opacity: 0; transform: scale(0.96); }
    to { opacity: 1; transform: scale(1); }
}

.overlay-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
    width: 100%;
}

.glitch-title {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 800;
    color: #ef4444;
    letter-spacing: 0.08em;
    text-shadow: 0 0 12px rgba(239, 68, 68, 0.6);
}

.game-over-subtitle {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
}

.stat-breakdown {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0.5rem;
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 0.75rem 0.5rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
}

.stat-tag {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    color: var(--text-muted);
}

.stat-num {
    font-family: var(--font-mono);
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
}

.rank-badge {
    color: var(--cyan) !important;
    font-size: 0.75rem !important;
    white-space: nowrap;
}

.cyber-primary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #00f2fe 0%, #2563eb 100%);
    color: #ffffff;
    font-family: var(--font-main);
    font-size: 0.92rem;
    font-weight: 700;
    padding: 0.7rem 1.6rem;
    border-radius: var(--radius-full);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 242, 254, 0.35);
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.cyber-primary-btn:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 8px 25px rgba(0, 242, 254, 0.55);
}

.cyber-primary-btn:active {
    transform: translateY(1px) scale(0.98);
}

.cyber-secondary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 242, 254, 0.3);
    color: var(--cyan);
    font-family: var(--font-main);
    font-size: 0.88rem;
    font-weight: 600;
    padding: 0.65rem 1.25rem;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all 0.2s ease;
}

.cyber-secondary-btn:hover {
    background: rgba(0, 242, 254, 0.12);
    border-color: var(--cyan);
    transform: translateY(-1px);
}

/* Social Share Group */
.social-share-group {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
    justify-content: center;
}

.share-label {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
    width: 100%;
    margin-bottom: 2px;
}

.social-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-subtle);
    color: #e2e8f0;
    font-family: var(--font-main);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.social-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.x-btn:hover { background: #000000; border-color: #555; }
.in-btn:hover { background: #0a66c2; border-color: #0a66c2; }
.fb-btn:hover { background: #1877f2; border-color: #1877f2; }

/* Pause Modal */
.pause-title {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: var(--cyan);
}

.pause-hint {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Game Footer Controls */
.game-footer-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
}

.controls-hint {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--text-muted);
    text-align: center;
}

.key-cap {
    display: inline-block;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    padding: 1px 5px;
    color: #e2e8f0;
    font-size: 0.68rem;
    margin: 0 2px;
}

/* Mobile D-Pad (Visible on small screens / touch) */
.mobile-dpad {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    margin-top: 0.5rem;
}

.dpad-middle {
    display: flex;
    align-items: center;
    gap: 4px;
}

.dpad-center {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.65rem;
}

.dpad-btn {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(0, 242, 254, 0.3);
    border-radius: 8px;
    color: var(--cyan);
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    user-select: none;
    touch-action: manipulation;
    transition: all 0.15s ease;
}

.dpad-btn:active {
    background: rgba(0, 242, 254, 0.35);
    color: #ffffff;
    transform: scale(0.92);
}

/* --- Telemetry & Early Access Panel --- */
.telemetry-panel {
    background: var(--bg-card-sub);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    overflow: hidden;
    width: 100%;
}

.telemetry-header {
    background: rgba(0, 0, 0, 0.5);
    border-bottom: 1px solid var(--border-subtle);
    padding: 0.65rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.terminal-dots {
    display: flex;
    gap: 6px;
}

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

.dot.red { background-color: #ef4444; }
.dot.yellow { background-color: #eab308; }
.dot.green { background-color: #22c55e; }

.terminal-title {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
}

.telemetry-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.diag-metric-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.85rem;
}

@media (max-width: 860px) {
    .diag-metric-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 520px) {
    .diag-metric-grid {
        grid-template-columns: 1fr;
    }
}

.metric-card {
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    transition: all 0.25s ease;
}

.metric-card:hover {
    border-color: rgba(0, 242, 254, 0.4);
    background: rgba(0, 242, 254, 0.04);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 242, 254, 0.1);
}

.metric-name {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
}

.metric-value {
    font-family: var(--font-mono);
    font-size: 1.05rem;
    font-weight: 700;
}

.metric-value.accent, .metric-value.cyan { color: var(--cyan); }
.metric-value.green { color: #34d399; }
.metric-value.blue { color: #60a5fa; }
.metric-value.purple { color: #c084fc; }
.metric-value.amber { color: #fbbf24; }

.metric-sub {
    font-size: 0.68rem;
    color: var(--text-muted);
}

.ping-tool-box {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.ping-console {
    background: #04060a;
    border: 1px solid rgba(0, 242, 254, 0.15);
    border-radius: var(--radius-sm);
    padding: 0.85rem;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: #38bdf8;
    min-height: 70px;
    max-height: 120px;
    overflow-y: auto;
    line-height: 1.5;
}

/* Notification & Audit Box */
.notify-box {
    background: linear-gradient(135deg, rgba(0, 242, 254, 0.05), rgba(59, 130, 246, 0.08));
    border: 1px solid rgba(0, 242, 254, 0.2);
    border-radius: var(--radius-sm);
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.notify-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: #ffffff;
}

.notify-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.notify-form {
    margin-top: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.input-group {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.input-group input {
    flex: 1;
    min-width: 220px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-full);
    padding: 0.65rem 1.25rem;
    color: #ffffff;
    font-family: var(--font-main);
    font-size: 0.88rem;
    outline: none;
    transition: all 0.2s ease;
}

.input-group input:focus {
    border-color: var(--cyan);
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.3);
}

.form-feedback {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    min-height: 18px;
    transition: all 0.2s ease;
}

.form-feedback.success { color: #34d399; }
.form-feedback.error { color: #f87171; }

/* --- Card Footer & GT-Systems Link --- */
.card-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    margin-top: 0.5rem;
    width: 100%;
}

.gt-brand-pill {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle);
    padding: 0.35rem 0.9rem;
    border-radius: var(--radius-full);
    transition: all 0.25s ease;
}

.gt-brand-pill:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(0, 242, 254, 0.4);
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.15);
}

.gt-badge-text {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.gt-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: var(--cyan);
    transition: transform 0.2s ease;
}

.gt-link:hover {
    transform: scale(1.05);
}

.gt-logo-img {
    height: 18px;
    width: auto;
    object-fit: contain;
    filter: brightness(1.2);
}

.footer-meta {
    font-size: 0.72rem;
    color: var(--text-muted);
    text-align: center;
}

/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
    .top-nav {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding-top: 1rem;
    }

    .main-title {
        font-size: 1.85rem;
    }

    .glass-card {
        padding: 2rem 1.25rem;
    }

    .mobile-dpad {
        display: flex;
    }

    .controls-hint {
        display: none;
    }

    .stat-breakdown {
        grid-template-columns: 1fr;
        gap: 0.4rem;
    }

    .input-group {
        flex-direction: column;
    }

    .input-group input, .input-group button {
        width: 100%;
    }
}