/* ==============================================================
# Script: style.css
# Purpose: Master CSS stylesheet and design system for Tower of Hanoi.
#          Includes glassmorphism cards, glowing disk gradients,
#          3D peg rods, and responsive layout scaling.
# Author: Praful Kumar
# Created On: 21/12/2025
#
# Modification History:
# - 06/01/2026 : Added smooth animations for disk dragging and hint pulses.
#
# Notes:
# - Utilizes CSS Custom Properties (Tokens) for unified dark theme.
# ============================================================== */

:root {
    /* Color Palette - Vibrant UI Reference Glassmorphism */
    --bg-dark: #0d1127;
    --bg-card: linear-gradient(135deg, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0.08) 100%);
    --bg-card-hover: linear-gradient(135deg, rgba(255, 255, 255, 0.32) 0%, rgba(255, 255, 255, 0.14) 100%);
    --bg-card-border: rgba(255, 255, 255, 0.4);
    
    --primary: #6366f1;
    --primary-hover: #4f46e5;
    --primary-glow: rgba(99, 102, 241, 0.4);
    
    --accent: #f59e0b;
    --accent-hover: #d97706;
    --accent-glow: rgba(245, 158, 11, 0.35);
    
    --ai-purple: #a855f7;
    --ai-purple-hover: #9333ea;
    --ai-glow: rgba(168, 85, 247, 0.4);

    --text-main: #f3f4f6;
    --text-muted: #9ca3af;
    --text-dim: #6b7280;

    --success: #10b981;
    --danger: #ef4444;
    
    /* Peg & Wood Dimensions */
    --peg-color: #475569;
    --peg-glow: rgba(148, 163, 184, 0.3);
    --base-color: #1e293b;

    /* Typography */
    --font-heading: 'Outfit', -apple-system, sans-serif;
    --font-body: 'Inter', -apple-system, sans-serif;
    --font-code: 'Fira Code', monospace;

    /* Spacing & Transitions */
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-full: 9999px;

    --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

body {
    font-family: var(--font-body);
    background-color: #0d1127;
    background-image: 
        radial-gradient(circle at 10% 10%, rgba(0, 212, 255, 0.45) 0%, transparent 45%),
        radial-gradient(circle at 90% 10%, rgba(147, 51, 234, 0.45) 0%, transparent 45%),
        radial-gradient(circle at 85% 85%, rgba(236, 72, 153, 0.4) 0%, transparent 45%),
        radial-gradient(circle at 15% 85%, rgba(59, 130, 246, 0.45) 0%, transparent 45%),
        linear-gradient(135deg, #09132e 0%, #170d38 50%, #0a1f38 100%);
    background-attachment: fixed;
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    overflow-x: hidden;
    padding: 20px 16px;
}

.app-container {
    width: 90%;
    max-width: 1040px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* APP HEADER */
.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0.08) 100%);
    backdrop-filter: blur(25px) saturate(190%);
    -webkit-backdrop-filter: blur(25px) saturate(190%);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-top: 1px solid rgba(255, 255, 255, 0.75);
    border-left: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: var(--radius-lg);
    padding: 16px 24px;
    box-shadow: 0 16px 40px 0 rgba(0, 0, 0, 0.25), inset 0 1px 1px 0 rgba(255, 255, 255, 0.6), inset 0 -1px 1px 0 rgba(0, 0, 0, 0.15);
}

.logo {
    display: flex;
    align-items: center;
    gap: 14px;
}

.logo-icon {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    height: 28px;
}

.logo-icon .bar {
    width: 6px;
    border-radius: 3px;
    background: linear-gradient(to top, var(--primary), var(--ai-purple));
    box-shadow: 0 0 10px var(--primary-glow);
}

.bar-1 { height: 14px; }
.bar-2 { height: 22px; }
.bar-3 { height: 28px; }

.logo h1 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #ffffff 30%, #a5b4fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.header-actions {
    display: flex;
    gap: 10px;
}

/* BUTTON STYLES */
.btn-icon {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--bg-card-border);
    color: var(--text-main);
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.btn-icon:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.btn {
    font-family: var(--font-body);
    font-size: 0.92rem;
    font-weight: 600;
    padding: 10px 18px;
    border-radius: var(--radius-md);
    border: 1px solid transparent;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition-smooth);
    user-select: none;
}

.btn:hover:not(:disabled) {
    transform: translateY(-2px);
}

.btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-hover));
    color: #fff;
    box-shadow: 0 4px 16px var(--primary-glow);
}

.btn-primary:hover:not(:disabled) {
    box-shadow: 0 6px 20px var(--primary-glow);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--bg-card-border);
    color: var(--text-main);
}

.btn-secondary:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.12);
}

.btn-accent {
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    color: #fff;
    box-shadow: 0 4px 16px var(--accent-glow);
}

.btn-ai {
    background: linear-gradient(135deg, var(--ai-purple), var(--ai-purple-hover));
    color: #fff;
    box-shadow: 0 4px 16px var(--ai-glow);
}

/* DIFFICULTY BAR */
.difficulty-bar {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    border: 1px solid var(--bg-card-border);
    border-radius: var(--radius-lg);
    padding: 10px 18px;
    flex-wrap: wrap;
}

.difficulty-label {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.difficulty-options {
    display: flex;
    gap: 8px;
    flex: 1;
    flex-wrap: wrap;
}

.diff-btn {
    flex: 1;
    min-width: 100px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--bg-card-border);
    border-radius: var(--radius-md);
    padding: 8px 12px;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    transition: var(--transition-smooth);
}

.diff-btn:hover {
    background: rgba(255, 255, 255, 0.09);
    border-color: rgba(255, 255, 255, 0.15);
    color: var(--text-main);
}

.diff-btn.active {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.25), rgba(168, 85, 247, 0.25));
    border-color: var(--primary);
    color: #ffffff;
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.3);
}

.diff-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
}

.diff-sub {
    font-size: 0.72rem;
    opacity: 0.75;
}

/* CUSTOM DISK POPOVER */
.custom-disk-picker {
    position: relative;
}

.popover {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 220px;
    background: #161e2e;
    border: 1px solid var(--bg-card-border);
    border-radius: var(--radius-md);
    padding: 14px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.6);
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.popover label {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: flex;
    justify-content: space-between;
}

.popover input[type="range"] {
    width: 100%;
    accent-color: var(--primary);
    cursor: pointer;
}

/* DASHBOARD STATS */
.dashboard {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.stat-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    border: 1px solid var(--bg-card-border);
    border-radius: var(--radius-md);
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.stat-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: rgba(99, 102, 241, 0.12);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.stat-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.stat-title {
    font-size: 0.78rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.stat-value {
    font-family: var(--font-code);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-main);
}

.rating-stars {
    color: #4b5563;
    font-size: 0.95rem;
}

.rating-stars .fa-star.active {
    color: #fbbf24;
    text-shadow: 0 0 8px rgba(251, 191, 36, 0.5);
}

/* TOOLBAR */
.toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    border: 1px solid var(--bg-card-border);
    border-radius: var(--radius-md);
    padding: 12px 18px;
    gap: 12px;
    flex-wrap: wrap;
}

.tool-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.solver-controls {
    display: flex;
    align-items: center;
    gap: 6px;
}

#solve-speed {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--bg-card-border);
    border-radius: var(--radius-md);
    color: var(--text-main);
    padding: 10px 12px;
    font-size: 0.85rem;
    outline: none;
    cursor: pointer;
}

#solve-speed option {
    background: #111827;
    color: #fff;
}

/* GAME BOARD / STAGE */
.game-stage {
    position: relative;
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    border: 1px solid var(--bg-card-border);
    border-radius: var(--radius-lg);
    padding: 30px 20px 20px;
    min-height: 380px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    box-shadow: inset 0 2px 8px rgba(255, 255, 255, 0.03);
}

.toast {
    position: absolute;
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(239, 68, 68, 0.9);
    color: white;
    padding: 8px 18px;
    border-radius: var(--radius-full);
    font-size: 0.88rem;
    font-weight: 600;
    box-shadow: 0 8px 20px rgba(239, 68, 68, 0.4);
    z-index: 50;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition-smooth);
}

.pegs-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    align-items: flex-end;
    height: 320px;
}

.peg-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    position: relative;
    cursor: pointer;
    border-radius: var(--radius-md);
    padding: 8px 4px;
    transition: var(--transition-fast);
}

.peg-wrapper:hover {
    background: rgba(255, 255, 255, 0.03);
}

.peg-wrapper.selected {
    background: rgba(99, 102, 241, 0.12);
    box-shadow: 0 0 0 2px var(--primary);
}

.peg-wrapper.hint-source {
    animation: pulse-source 1.2s infinite ease-in-out;
}

.peg-wrapper.hint-target {
    animation: pulse-target 1.2s infinite ease-in-out;
}

@keyframes pulse-source {
    0%, 100% { box-shadow: 0 0 0 2px var(--accent); }
    50% { box-shadow: 0 0 20px 4px var(--accent-glow); }
}

@keyframes pulse-target {
    0%, 100% { box-shadow: 0 0 0 2px var(--success); }
    50% { box-shadow: 0 0 20px 4px rgba(16, 185, 129, 0.6); }
}

.peg-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    z-index: 2;
}

.peg-badge {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--bg-card-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8rem;
    color: var(--primary);
}

.peg-name {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-muted);
}

.peg-drop-zone {
    flex: 1;
    width: 100%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

/* ROD STYLING */
.peg-rod {
    position: absolute;
    bottom: 0;
    width: 14px;
    height: 220px;
    background: linear-gradient(90deg, #334155, #64748b 50%, #1e293b);
    border-radius: 7px 7px 0 0;
    box-shadow: 0 0 10px var(--peg-glow);
    z-index: 1;
}

.peg-base {
    width: 90%;
    height: 14px;
    background: linear-gradient(180deg, #475569, #1e293b);
    border-radius: 4px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    z-index: 2;
}

/* DISTINCT COLOR ACCENT FOR PEG C (TARGET) */
#peg-2 .peg-badge {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #ffffff;
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.6);
    border-color: rgba(52, 211, 153, 0.5);
}

#peg-2 .peg-name {
    color: #34d399;
    font-weight: 700;
    text-shadow: 0 0 8px rgba(52, 211, 153, 0.4);
}

#peg-2 .peg-rod {
    background: linear-gradient(90deg, #059669, #34d399 50%, #047857);
    box-shadow: 0 0 18px rgba(16, 185, 129, 0.7);
}

#peg-2 .peg-base {
    background: linear-gradient(180deg, #10b981, #047857);
    box-shadow: 0 0 14px rgba(16, 185, 129, 0.5);
}

/* DISK STACK & DISKS */
.disk-stack {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    z-index: 10;
}

.disk {
    height: 26px;
    border-radius: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-code);
    font-size: 0.75rem;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.4);
    cursor: grab;
    user-select: none;
    transition: transform var(--transition-smooth), opacity var(--transition-fast);
    margin-bottom: 2px;
}

.disk:active {
    cursor: grabbing;
}

.disk.top-disk {
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.25), inset 0 1px 2px rgba(255, 255, 255, 0.6);
}

.disk.top-disk:hover {
    transform: translateY(-3px) scale(1.02);
}

.disk.dragging {
    opacity: 0.85;
    transform: scale(1.06);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.6);
    z-index: 100;
}

/* DISK COLOR GRADIENTS */
.disk-1 { background: linear-gradient(135deg, #ec4899, #8b5cf6); }
.disk-2 { background: linear-gradient(135deg, #3b82f6, #06b6d4); }
.disk-3 { background: linear-gradient(135deg, #10b981, #059669); }
.disk-4 { background: linear-gradient(135deg, #f59e0b, #d97706); }
.disk-5 { background: linear-gradient(135deg, #ef4444, #dc2626); }
.disk-6 { background: linear-gradient(135deg, #06b6d4, #3b82f6); }
.disk-7 { background: linear-gradient(135deg, #a855f7, #ec4899); }
.disk-8 { background: linear-gradient(135deg, #84cc16, #15803d); }
.disk-9 { background: linear-gradient(135deg, #f97316, #c2410c); }

/* HISTORY DRAWER */
.history-drawer {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    border: 1px solid var(--bg-card-border);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.history-summary {
    padding: 12px 18px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
}

.history-summary:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.03);
}

.history-content {
    padding: 12px 18px;
    border-top: 1px solid var(--bg-card-border);
    max-height: 140px;
    overflow-y: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.history-empty {
    font-size: 0.85rem;
    color: var(--text-dim);
    font-style: italic;
}

.move-tag {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--bg-card-border);
    border-radius: var(--radius-sm);
    padding: 4px 10px;
    font-family: var(--font-code);
    font-size: 0.78rem;
    color: var(--text-main);
}

/* FOOTER */
.app-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    font-size: 0.86rem;
    color: var(--text-muted);
    padding: 12px 16px;
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    border: 1px solid var(--bg-card-border);
    border-radius: var(--radius-md);
    margin-top: 4px;
}

.footer-credit {
    font-weight: 500;
    color: var(--text-main);
}

.footer-link-highlight {
    font-family: var(--font-heading);
    font-weight: 700;
    color: #ffffff;
    text-decoration: none;
    background: linear-gradient(135deg, #a5b4fc, #c084fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: var(--transition-fast);
}

.footer-link-highlight:hover {
    opacity: 0.85;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    font-size: 0.82rem;
}

.footer-link {
    color: var(--text-muted);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: var(--transition-fast);
}

.footer-link:hover {
    color: var(--primary);
    transform: translateY(-1px);
}

.footer-sep {
    color: var(--text-dim);
}

/* MODALS */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(4, 7, 13, 0.8);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 1;
    transition: opacity var(--transition-smooth);
}

.modal-overlay.hidden {
    display: none;
    opacity: 0;
    pointer-events: none;
}

.modal-card {
    background: #111827;
    border: 1px solid var(--bg-card-border);
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 520px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
    overflow: hidden;
    animation: modal-pop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modal-pop {
    0% { transform: scale(0.9); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 24px;
    border-bottom: 1px solid var(--bg-card-border);
}

.modal-header h2 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-close {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
}

.btn-close:hover { color: #fff; }

.modal-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    font-size: 0.92rem;
    line-height: 1.6;
    color: #d1d5db;
}

.modal-body h3 {
    font-family: var(--font-heading);
    color: #fff;
    font-size: 1.05rem;
    margin-top: 4px;
}

.rules-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.rules-list li {
    display: flex;
    align-items: center;
    gap: 10px;
}

.rules-list i {
    color: var(--primary);
    font-size: 0.6rem;
}

.formula-box {
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: var(--radius-md);
    padding: 10px 14px;
    font-family: var(--font-code);
    text-align: center;
    color: #a5b4fc;
}

.modal-footer {
    padding: 16px 24px;
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid var(--bg-card-border);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* VICTORY MODAL SPECIFICS */
#confetti-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.victory-card {
    text-align: center;
    padding: 28px;
    background: linear-gradient(180deg, #181e33 0%, #0f172a 100%);
    border: 1px solid rgba(251, 191, 36, 0.3);
}

.trophy-icon {
    font-size: 3.5rem;
    margin-bottom: 8px;
    animation: trophy-bounce 1s infinite alternate cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes trophy-bounce {
    0% { transform: translateY(0); }
    100% { transform: translateY(-10px); }
}

.victory-banner h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    color: #ffffff;
}

.victory-banner p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.victory-stars {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 20px 0;
    font-size: 2rem;
    color: #4b5563;
}

.victory-stars .fa-star {
    color: #fbbf24;
    filter: drop-shadow(0 0 10px rgba(251, 191, 36, 0.6));
}

.victory-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.v-stat {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--bg-card-border);
    border-radius: var(--radius-md);
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.v-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.v-val {
    font-family: var(--font-code);
    font-weight: 700;
    font-size: 1.1rem;
    color: #fff;
}

.victory-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
}

/* SCORES TABLE */
.scores-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}

.scores-table th, .scores-table td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid var(--bg-card-border);
}

.scores-table th {
    font-family: var(--font-heading);
    color: var(--text-muted);
    font-size: 0.8rem;
    text-transform: uppercase;
}

.scores-table td {
    font-family: var(--font-code);
}

.hidden {
    display: none !important;
}

/* RESPONSIVE DESIGN */
@media (max-width: 768px) {
    .app-container {
        gap: 12px;
    }
    
    .dashboard {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .pegs-container {
        height: 280px;
        gap: 8px;
    }
    
    .toolbar {
        flex-direction: column;
        align-items: stretch;
    }
    
    .tool-group {
        justify-content: center;
    }

    .diff-btn {
        min-width: 70px;
        padding: 6px;
    }
}

/* AUTHOR FOOTER STYLING */
.app-footer {
    width: 100%;
    margin: 20px auto 10px;
    padding: 20px 24px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
    backdrop-filter: blur(24px) saturate(200%);
    -webkit-backdrop-filter: blur(24px) saturate(200%);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    border-left: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), inset 0 1px 2px rgba(255, 255, 255, 0.3);
    display: flex;
    flex-direction: column;
    gap: 16px;
    text-align: center;
}

.footer-credit {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-weight: 500;
}

.footer-link-highlight {
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-link-highlight:hover {
    color: var(--ai-purple);
    text-decoration: underline;
}

.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 0.84rem;
}

.footer-link {
    color: var(--text-muted);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: var(--primary);
}

.footer-sep {
    color: var(--text-dim);
    font-size: 0.75rem;
}

.tech-badges {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.badge {
    padding: 5px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.badge i {
    color: var(--primary);
}

.footer-bottom {
    font-size: 0.75rem;
    color: var(--text-dim);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 12px;
}

