/* ==========================================
   DESIGN SYSTEM & CUSTOM VARIABLES
   ========================================== */
:root {
    /* Fonts */
    --font-display: 'Cormorant Garamond', 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

    /* Theme - Arwa Cream (Default Light) */
    --bg-color: #f8f5f0;
    --bg-canvas: radial-gradient(circle at center, #fcfaf7 0%, #f1ebe2 100%);
    --card-bg: rgba(255, 255, 255, 0.65);
    --card-bg-hover: rgba(255, 255, 255, 0.85);
    --card-border: rgba(186, 142, 59, 0.15);
    --card-border-hover: rgba(186, 142, 59, 0.3);
    --text-primary: #2e221d;
    --text-secondary: #6b5b52;
    --text-muted: #9c8c80;
    --accent-primary: #ba8e3b;
    --accent-glow: rgba(186, 142, 59, 0.2);
    
    /* Gaps & Radius */
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 8px;
    --shadow-premium: 0 8px 32px 0 rgba(186, 142, 59, 0.06);
    --border-glass: 1px solid var(--card-border);
    
    /* Dynamic Theme Gradients (Warm & Organic Coffee/Spice Palette) */
    --bio-gradient: linear-gradient(135deg, #c87a53, #a0522d);
    --interests-gradient: linear-gradient(135deg, #7d9c82, #556b2f);
    --chess-gradient: linear-gradient(135deg, #5c4033, #3d2b1f);
    --games-like-gradient: linear-gradient(135deg, #d29d70, #a07855);
    --games-created-gradient: linear-gradient(135deg, #ba8e3b, #8a6421);
    --creations-gradient: linear-gradient(135deg, #c58c43, #9e6b28);
    --printing-gradient: linear-gradient(135deg, #b85a38, #8b3a1e);
    --papers-gradient: linear-gradient(135deg, #91a897, #667c6c);
    --research-gradient: linear-gradient(135deg, #e5a93b, #b87c1e);

    /* Circular Layout config */
    --radius-orbit: 280px;
}

/* Arwa Cream Override (Light Theme) */
.light-theme {
    --bg-color: #f8f5f0;
    --bg-canvas: radial-gradient(circle at center, #fcfaf7 0%, #f1ebe2 100%);
    --card-bg: rgba(255, 255, 255, 0.65);
    --card-bg-hover: rgba(255, 255, 255, 0.85);
    --card-border: rgba(186, 142, 59, 0.15);
    --card-border-hover: rgba(186, 142, 59, 0.3);
    --text-primary: #2e221d;
    --text-secondary: #6b5b52;
    --text-muted: #9c8c80;
    --accent-primary: #ba8e3b;
    --accent-glow: rgba(186, 142, 59, 0.2);
}

/* Dark Roast (Dark Theme) */
.dark-theme {
    --bg-color: #130f0c;
    --bg-canvas: radial-gradient(circle at center, #1c1612 0%, #0a0806 100%);
    --card-bg: rgba(28, 22, 18, 0.65);
    --card-bg-hover: rgba(38, 30, 25, 0.85);
    --card-border: rgba(186, 142, 59, 0.15);
    --card-border-hover: rgba(186, 142, 59, 0.30);
    --text-primary: #faf6f0;
    --text-secondary: #d5c8bd;
    --text-muted: #8a7b70;
    --accent-primary: #e5b858;
    --accent-glow: rgba(229, 184, 88, 0.25);
}

/* Cardamom Sage (Cyber Theme) */
.cyber-theme {
    --bg-color: #080f0a;
    --bg-canvas: radial-gradient(circle at center, #0f1d14 0%, #040705 100%);
    --card-bg: rgba(12, 24, 18, 0.65);
    --card-bg-hover: rgba(20, 40, 30, 0.85);
    --card-border: rgba(16, 185, 129, 0.2);
    --card-border-hover: rgba(245, 158, 11, 0.4);
    --text-primary: #a7f3d0;
    --text-secondary: #34d399;
    --text-muted: #047857;
    --accent-primary: #f59e0b;
    --accent-glow: rgba(245, 158, 11, 0.3);
}

/* ==========================================
   RESET & CORE LAYOUT
   ========================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    user-select: none;
    -webkit-user-drag: none;
}

html, body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-sans);
    height: 100vh;
    height: 100dvh;
    width: 100%;
    max-width: 100vw;
    overflow: hidden;
    overflow-x: clip; /* Strict boundary clip to prevent mobile panning scroll shifting */
    position: relative;
    margin: 0;
    padding: 0;
    transition: background-color 0.8s ease, color 0.3s ease;
}

canvas#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background: var(--bg-canvas);
    transition: background 0.8s ease;
}



#viewport-lock {
    position: relative;
    width: 100%;
    max-width: 100vw;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
}

main#app-container {
    position: relative;
    height: 100vh;
    height: 100dvh;
    width: 100%;
    max-width: 100vw;
    overflow: hidden;
    z-index: 1;
    display: flex;
    flex-direction: column;
}

/* ==========================================
   CONTROLS BAR & NAVIGATION
   ========================================== */
.controls-bar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 24px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
}

@media (min-width: 1400px) {
    .controls-bar {
        left: 50%;
        transform: translateX(-50%);
        max-width: 1400px;
    }
}

.logo-text {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: -0.5px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
}

.logo-text .dot {
    color: var(--accent-primary);
    text-shadow: 0 0 10px var(--accent-glow);
}

.controls-right {
    display: flex;
    gap: 16px;
}

.control-btn {
    background: var(--card-bg);
    border: var(--border-glass);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    padding: 8px 16px;
    font-family: var(--font-sans);
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.control-btn:hover {
    color: var(--text-primary);
    border-color: var(--card-border-hover);
    background: var(--card-bg-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-premium);
}

/* Back Button */
.back-btn {
    position: fixed;
    top: 40px;
    left: 40px;
    z-index: 100;
    background: var(--card-bg);
    border: var(--border-glass);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    padding: 12px 24px;
    font-family: var(--font-display);
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    backdrop-filter: blur(16px);
    box-shadow: var(--shadow-premium);
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    transform: translateX(0);
}

.back-btn.hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateX(-50px) scale(0.9);
}

.back-btn:hover {
    border-color: var(--accent-primary);
    box-shadow: 0 0 15px var(--accent-glow);
    transform: translateY(-2px);
}

/* ==========================================
   CIRCULAR MAIN NAVIGATION
   ========================================== */
#menu-orbit-view {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 100%;
    max-width: 100vw;
    overflow: hidden;
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Shrink & hide when section is open */
.section-open #menu-orbit-view {
    opacity: 0;
    transform: scale(0.65);
    pointer-events: none;
}

.hover-helper {
    position: absolute;
    bottom: 20px;
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 300;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-muted);
    animation: pulseText 3s infinite ease-in-out;
}

.left-helper {
    left: 40px;
}

.right-helper {
    right: 40px;
}

.orbit-container {
    position: relative;
    width: 100%;
    max-width: 100vw;
    height: 100%;
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
    overflow: hidden;
}

/* Center Coffee Mug Styling */
.center-mug-wrapper {
    position: absolute;
    width: 120px;
    height: 120px;
    z-index: 5;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transform-origin: center;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.center-mug-wrapper:hover {
    transform: scale(1.1); /* Cozy hover expansion */
}

.mug-caption {
    position: absolute;
    bottom: -15px;
    font-family: var(--font-display);
    font-size: 0.65rem;
    font-weight: 300;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-muted);
    white-space: nowrap;
    transition: color 0.4s ease;
}

.center-mug-wrapper:hover .mug-caption {
    color: var(--accent-primary);
}

.coffee-mug-svg {
    width: 100%;
    height: 100%;
    overflow: visible; /* Allows steam animation to rise outside SVG box */
}

.mug-body, .mug-handle {
    fill: var(--card-bg);
    stroke: var(--accent-primary);
    stroke-width: 2.2;
    stroke-linejoin: round;
    transition: stroke 0.4s, fill 0.4s;
}

.mug-rim {
    fill: var(--card-bg-hover);
    stroke: var(--accent-primary);
    stroke-width: 1.8;
    transition: stroke 0.4s, fill 0.4s;
}

.coffee-liquid {
    fill: #2e221d; /* roasted coffee dark brown */
    transition: fill 0.4s;
}

.steam-line {
    fill: none;
    stroke: var(--text-muted);
    stroke-width: 1.8;
    stroke-linecap: round;
    opacity: 0.15;
    transform-origin: bottom center;
    transition: opacity 0.4s ease, stroke 0.4s ease;
}

.center-mug-wrapper:hover .steam-line {
    stroke: var(--accent-primary);
}

/* Steam rising animations */
@keyframes steamRiseLeft {
    0% {
        transform: translateY(4px) scale(0.9);
        opacity: 0;
    }
    20% {
        opacity: 0.65;
    }
    80% {
        opacity: 0.35;
    }
    100% {
        transform: translateY(-24px) scale(1.15);
        opacity: 0;
    }
}

@keyframes steamRiseCenter {
    0% {
        transform: translateY(4px) scale(0.9);
        opacity: 0;
    }
    20% {
        opacity: 0.75;
    }
    80% {
        opacity: 0.45;
    }
    100% {
        transform: translateY(-28px) scale(1.15);
        opacity: 0;
    }
}

@keyframes steamRiseRight {
    0% {
        transform: translateY(4px) scale(0.9);
        opacity: 0;
    }
    20% {
        opacity: 0.65;
    }
    80% {
        opacity: 0.35;
    }
    100% {
        transform: translateY(-24px) scale(1.15);
        opacity: 0;
    }
}

.center-mug-wrapper:hover .steam-1 {
    animation: steamRiseLeft 2.5s infinite linear;
}
.center-mug-wrapper:hover .steam-2 {
    animation: steamRiseCenter 2.5s infinite linear 0.8s;
}
.center-mug-wrapper:hover .steam-3 {
    animation: steamRiseRight 2.5s infinite linear 1.6s;
}

.ambient-graphic {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100px;
    height: 100px;
    z-index: 2; /* behind orbit-item (z-index 8-15) and central mug (z-index 5) */
    pointer-events: none;
    transform-origin: center;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
}

.rush-particle {
    width: 60px !important;
    height: 60px !important;
    z-index: 3 !important; /* slightly in front of normal ambient graphics but behind topic items */
}

@keyframes gearSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes gearSpinReverse {
    from { transform: rotate(360deg); }
    to { transform: rotate(0deg); }
}

.gear-wrapper {
    position: absolute;
    top: -10%;
    left: -10%;
    width: 120%;
    height: 120%;
    z-index: -1;
    pointer-events: none;
    transform-origin: center;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.orbit-item:hover .gear-wrapper {
    transform: scale(1.15); /* Scale up wrapper with the bubble on hover */
}

.gear-decor {
    width: 100%;
    height: 100%;
    display: block;
    color: var(--item-color);
    opacity: 0.35;
    transform-origin: center;
    animation: gearSpin 40s linear infinite;
    transition: opacity 0.4s ease, color 0.4s ease;
}

.orbit-item:nth-child(even) .gear-decor {
    animation-name: gearSpinReverse;
}

.orbit-item:hover .gear-decor {
    opacity: 0.8;
    animation-duration: 12s; /* Spin faster on hover */
}
.orbit-item {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120px;
    height: 120px;
    transform: translate(-50%, -50%);
    z-index: 4;
    transition: none; /* Disable transform transitions to eliminate drag/inertia latency */
}

.item-bubble {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--card-bg);
    border: var(--border-glass);
    box-shadow: var(--shadow-premium);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    backdrop-filter: blur(16px);
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    position: relative;
    padding: 10px;
    text-align: center;
}

.item-icon {
    width: 32px;
    height: 32px;
    color: var(--text-secondary);
    margin-bottom: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s;
}

.item-icon svg {
    width: 100%;
    height: 100%;
}

.item-name {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.1rem;
    line-height: 1.1;
    color: var(--text-primary);
    letter-spacing: -0.2px;
}

.orbit-item:hover {
    z-index: 20;
}

.orbit-item:hover .item-bubble {
    border-color: var(--item-color);
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.05), 0 0 15px var(--item-color);
    background: var(--card-bg-hover);
    transform: scale(1.15); /* Bubble scales up smoothly instead of moving container */
}

.orbit-item:hover .item-icon {
    color: var(--item-color);
    transform: scale(1.1);
}

/* ==========================================
   CONTENT PANEL LAYOUT
   ========================================== */
#content-panels-container {
    position: absolute;
    top: 120px;
    left: 0;
    width: 100%;
    height: calc(100vh - 120px);
    pointer-events: none;
    z-index: 20;
}

.content-panel {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, 60px);
    width: 90%;
    max-width: 1200px;
    height: calc(100% - 60px);
    opacity: 0;
    pointer-events: none;
    overflow-y: auto;
    padding-bottom: 60px;
    scrollbar-width: thin;
    scrollbar-color: var(--card-border-hover) transparent;
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.content-panel::-webkit-scrollbar {
    width: 6px;
}
.content-panel::-webkit-scrollbar-thumb {
    background-color: var(--card-border-hover);
    border-radius: var(--radius-sm);
}

/* Active State */
.content-panel.active {
    opacity: 1;
    transform: translate(-50%, 0);
    pointer-events: auto;
}

/* Panel Header styling */
.panel-header {
    margin-bottom: 32px;
}

.panel-header h1 {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.header-divider {
    height: 4px;
    width: 80px;
    border-radius: var(--radius-sm);
}

/* Grid layout for typical detail pages */
.grid-layout {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 32px;
}

/* Glassmorphic Card base */
.glass-card {
    background: var(--card-bg);
    border: var(--border-glass);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-premium);
    backdrop-filter: blur(16px);
    transition: border-color 0.3s, background-color 0.3s, transform 0.3s;
}

.glass-card:hover {
    border-color: var(--card-border-hover);
    background-color: var(--card-bg-hover);
}

.glass-card h2 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.glass-card h3 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.glass-card p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
}

.glass-card p:last-child {
    margin-bottom: 0;
}

.highlight-text {
    font-size: 1.15rem !important;
    font-weight: 500;
    color: var(--text-primary) !important;
}

/* Button stylings */
.action-btn {
    background: var(--accent-primary);
    border: none;
    border-radius: var(--radius-md);
    color: #0b0c15;
    padding: 12px 24px;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 4px 15px var(--accent-glow);
    transition: all 0.3s ease;
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--accent-glow);
    filter: brightness(1.1);
}

/* Nested simple card */
.glass-card-nested {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-top: 24px;
}

/* ==========================================
   WIDGETS: BIOGRAPHY TIMELINE
   ========================================== */
.bio-intro {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.avatar-container {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: #121426;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    margin-bottom: 24px;
    border: 2px solid var(--accent-primary);
}

.avatar-glow {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    box-shadow: 0 0 20px var(--accent-glow);
}

.avatar-text {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 300;
    color: var(--text-primary);
}

.interactive-timeline {
    position: relative;
    padding-left: 32px;
}

.timeline-line {
    position: absolute;
    left: 8px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: rgba(255, 255, 255, 0.1);
}

.timeline-event {
    position: relative;
    margin-bottom: 24px;
    cursor: pointer;
}

.timeline-event:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: -32px;
    top: 6px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #111428;
    border: 2px solid var(--text-muted);
    transition: all 0.3s;
}

.timeline-content {
    padding: 16px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid transparent;
    transition: all 0.3s;
}

.timeline-year {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    display: block;
    margin-bottom: 4px;
}

.timeline-event h4 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    margin-bottom: 6px;
}

/* Hover and Active states for Timeline */
.timeline-event:hover .timeline-dot,
.timeline-event.active .timeline-dot {
    border-color: var(--accent-primary);
    background: var(--accent-primary);
    box-shadow: 0 0 10px var(--accent-glow);
}

.timeline-event:hover .timeline-content,
.timeline-event.active .timeline-content {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.08);
}

.timeline-event.active .timeline-year {
    color: var(--accent-primary);
}

/* ==========================================
   WIDGETS: INTERESTS ORBIT
   ========================================== */
.tag-cloud-layout {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 32px;
    height: 550px;
}

.panel-left-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.interactive-guide {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-muted);
    margin-top: 24px;
    font-size: 0.9rem;
}

.interactive-guide svg {
    flex-shrink: 0;
}

.orbital-cloud-card {
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
}

.orbital-sphere-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.orbital-sphere {
    position: relative;
    width: 320px;
    height: 320px;
}

.cloud-tag {
    position: absolute;
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--text-primary);
    transform-origin: center center;
    white-space: nowrap;
    cursor: pointer;
    transition: text-shadow 0.3s, color 0.3s;
}

.cloud-tag:hover {
    color: var(--accent-primary) !important;
    text-shadow: 0 0 15px var(--accent-glow);
}

/* ==========================================
   WIDGETS: CHESS PUZZLE
   ========================================== */
.chess-stats {
    display: flex;
    gap: 16px;
    margin-top: 20px;
}

.stat-badge {
    flex-grow: 1;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-sm);
    padding: 12px;
    text-align: center;
}

.stat-badge .label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 4px;
}

.stat-badge .value {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.15rem;
    color: var(--text-primary);
}

.puzzle-status {
    margin: 12px 0;
    font-weight: 500;
    color: var(--accent-primary);
    font-size: 0.95rem;
}

.chessboard-card {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 24px;
}

.board-wrapper {
    width: 100%;
    max-width: 440px;
    aspect-ratio: 1;
    border: 4px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-premium);
}

.chess-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    grid-template-rows: repeat(8, 1fr);
    width: 100%;
    height: 100%;
}

.chess-square {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 100%;
    height: 100%;
}

/* Square Colors */
.chess-square.light {
    background-color: #e2e8f0;
}
.chess-square.dark {
    background-color: #475569;
}

/* Custom Chess styles for dark themes to match */
.dark-theme .chess-square.light {
    background-color: #2b304d;
}
.dark-theme .chess-square.dark {
    background-color: #161829;
}

.chess-piece {
    font-size: 2.5rem;
    cursor: grab;
    z-index: 2;
    transition: transform 0.1s;
    user-select: none;
    line-height: 1;
}

.chess-piece:active {
    cursor: grabbing;
    transform: scale(1.15);
    z-index: 10;
}

/* Piece highlights */
.chess-piece.white {
    color: #ffffff;
    filter: drop-shadow(0 0 4px rgba(0, 0, 0, 0.6)) drop-shadow(0 0 2px rgba(255, 255, 255, 0.5));
}
.chess-piece.black {
    color: #111827;
    filter: drop-shadow(0 0 3px rgba(255, 255, 255, 0.8));
}

.chess-square.highlight-target {
    box-shadow: inset 0 0 12px #3b82f6;
    cursor: pointer;
}

/* ==========================================
   WIDGETS: GAMES I LIKE TILT CARDS
   ========================================== */
.card-scroll-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.game-item-card {
    position: relative;
    transform-style: preserve-3d;
    transform: perspective(1000px);
}

.game-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 12px;
    margin-bottom: 16px;
    text-transform: uppercase;
}

.game-item-card h3 {
    margin-bottom: 4px;
    font-size: 1.6rem;
}

.game-item-card .genre {
    font-size: 0.85rem;
    color: var(--accent-primary);
    font-weight: 500;
    margin-bottom: 16px;
    text-transform: uppercase;
}

.game-item-card .description {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.card-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: var(--radius-lg);
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255, 255, 255, 0.08) 0%, transparent 50%);
    pointer-events: none;
    z-index: 1;
}

/* ==========================================
   WIDGETS: RETRO GAME ENGINE
   ========================================== */
.game-canvas-card {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 24px;
}

.canvas-wrapper {
    border: 4px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    overflow: hidden;
    background: #06070c;
    box-shadow: var(--shadow-premium);
    aspect-ratio: 1;
    width: 100%;
    max-width: 400px;
}

#game-canvas {
    display: block;
    width: 100%;
    height: 100%;
}

.score-display {
    display: flex;
    gap: 16px;
    margin: 20px 0;
}

.score-box {
    flex-grow: 1;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-sm);
    padding: 10px;
    text-align: center;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.1rem;
}

/* Mobile D-Pad controls */
.mobile-game-pad {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
}

.pad-row {
    display: flex;
    gap: 32px;
}

.pad-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--card-bg);
    border: var(--border-glass);
    color: var(--text-primary);
    font-size: 1.2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    backdrop-filter: blur(10px);
}

.pad-btn:active {
    background: var(--accent-primary);
    color: #0b0c15;
}

@media (max-width: 768px) {
    .mobile-game-pad {
        display: flex;
    }
}

/* ==========================================
   WIDGETS: AMBIENT SYNTH PAD & GALLERY
   ========================================== */
.synth-card {
    display: flex;
    flex-direction: column;
}

.synth-sequencer {
    display: grid;
    grid-template-rows: repeat(4, 1fr);
    grid-template-columns: repeat(8, 1fr);
    gap: 8px;
    margin-top: 24px;
}

.seq-node {
    aspect-ratio: 1;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    cursor: pointer;
    transition: all 0.2s ease;
}

/* Row-specific colors when active */
.seq-node.active[data-row="0"] { background: #f59e0b; box-shadow: 0 0 10px rgba(245, 158, 11, 0.5); border-color: #f59e0b; }
.seq-node.active[data-row="1"] { background: #d97706; box-shadow: 0 0 10px rgba(217, 119, 6, 0.5); border-color: #d97706; }
.seq-node.active[data-row="2"] { background: #b45309; box-shadow: 0 0 10px rgba(180, 83, 9, 0.5); border-color: #b45309; }
.seq-node.active[data-row="3"] { background: #78350f; box-shadow: 0 0 10px rgba(120, 53, 15, 0.5); border-color: #78350f; }

.seq-node:hover {
    background: rgba(255, 255, 255, 0.15);
}

.sequencer-controls {
    margin-top: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.bpm-text {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-family: var(--font-display);
    font-weight: 500;
}

.active-indicator-bar {
    width: 60%;
    height: 4px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 2px;
    position: relative;
}

.step-indicator {
    position: absolute;
    top: 0;
    left: 0;
    width: 12.5%;
    height: 100%;
    background: var(--accent-primary);
    border-radius: 2px;
    box-shadow: 0 0 8px var(--accent-glow);
    transition: left 0.15s linear;
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 20px;
}

.gallery-item {
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 1.5;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.03);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: var(--shadow-premium);
}

.art-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.1rem;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

/* Lightbox Modal */
.lightbox-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox-modal.show {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    background: #0f101d;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 32px;
    width: 90%;
    max-width: 600px;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}

.lightbox-content h3 {
    font-family: var(--font-display);
    margin-top: 16px;
    font-size: 1.4rem;
}

.lightbox-content p {
    color: var(--text-secondary);
    margin-top: 8px;
    line-height: 1.5;
}

.art-large-view {
    width: 100%;
    height: 250px;
    border-radius: var(--radius-md);
}

.close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
}

/* ==========================================
   WIDGETS: 3D PRINT PREVIEW WIREFRAME
   ========================================== */
.spec-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin: 20px 0;
}

.spec-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-sm);
    padding: 12px;
    text-align: center;
}

.spec-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 4px;
}

.spec-value {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.95rem;
}

.print-preview-card {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 24px;
}

.wireframe-container {
    width: 100%;
    height: 380px;
    border: 1px dashed rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-md);
    position: relative;
    cursor: grab;
    background: rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

.wireframe-container:active {
    cursor: grabbing;
}

#wireframe-canvas {
    width: 100%;
    height: 100%;
    display: block;
}

.wireframe-overlay-text {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-display);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    pointer-events: none;
}

/* ==========================================
   WIDGETS: PAPERS SEARCH & ACCORDION
   ========================================== */
.papers-layout {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.search-filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    padding: 20px 32px !important;
}

.search-filter-bar input {
    flex-grow: 1;
    background: rgba(0, 0, 0, 0.2);
    border: var(--border-glass);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    padding: 12px 20px;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.3s;
}

.search-filter-bar input:focus {
    border-color: var(--accent-primary);
}

.tag-filters {
    display: flex;
    gap: 12px;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.03);
    border: var(--border-glass);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    padding: 8px 16px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
}

.filter-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.08);
}

.filter-btn.active {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: #0b0c15;
    font-weight: 600;
}

.papers-list-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.paper-item {
    display: flex;
    flex-direction: column;
    transition: transform 0.3s;
}

.paper-item.hidden {
    display: none !important;
}

.paper-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.paper-type-tag {
    font-size: 0.75rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 4px 10px;
    border-radius: 12px;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.paper-date {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.paper-item h3 {
    font-size: 1.3rem;
    margin-bottom: 6px;
}

.paper-item .authors {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 16px;
}

/* Accordion */
.paper-accordion {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 12px;
}

.accordion-trigger {
    background: transparent;
    border: none;
    color: var(--accent-primary);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

.accordion-trigger::after {
    content: "▼";
    font-size: 0.65rem;
    transition: transform 0.3s;
}

.paper-accordion.open .accordion-trigger::after {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.accordion-content p {
    color: var(--text-secondary);
    padding-top: 12px;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* ==========================================
   WIDGETS: RESEARCH TOPICS MINDMAP
   ========================================== */
.research-layout {
    display: flex;
    flex-direction: column;
}

.research-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.research-grid-two-column {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 32px;
    align-items: start;
}

@media (max-width: 900px) {
    .research-grid-two-column {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

.research-topic-card {
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.research-main-card {
    height: 100%;
}

.research-stats {
    display: flex;
    gap: 12px;
    margin: 20px 0 24px 0;
    flex-wrap: wrap;
}

.narrative-explorer-card {
    padding: 24px;
}

.narrative-explorer-card h4 {
    font-size: 1.3rem;
    margin-bottom: 8px;
    font-family: var(--font-display);
}

.explorer-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.4;
}

.explorer-selectors {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 20px;
}

@media (max-width: 600px) {
    .explorer-selectors {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

.selector-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.selector-group label {
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.explorer-select {
    background: var(--card-bg);
    border: var(--border-glass);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    padding: 10px 12px;
    font-family: var(--font-main);
    font-size: 0.85rem;
    cursor: pointer;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
    width: 100%;
}

.explorer-select:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 10px var(--accent-glow);
}

.explorer-select option {
    background: var(--bg-color, #f8f5f0);
    color: var(--text-primary, #2e221d);
}

.explorer-controls {
    margin-bottom: 20px;
}

.explorer-result {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px !important;
    border-radius: var(--radius-sm) !important;
    border: 1px solid rgba(186, 142, 59, 0.1) !important;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.explorer-result.valid-state {
    border-color: rgba(46, 125, 50, 0.3) !important;
    box-shadow: 0 4px 20px rgba(46, 125, 50, 0.08);
}

.explorer-result.invalid-state {
    border-color: rgba(198, 40, 40, 0.3) !important;
    box-shadow: 0 4px 20px rgba(198, 40, 40, 0.08);
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(186, 142, 59, 0.1);
    padding-bottom: 10px;
    flex-wrap: wrap;
    gap: 8px;
}

.coordinate-label {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    color: var(--accent-primary);
}

.status-badge {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 8px;
    border-radius: 4px;
}

.status-badge.status-valid {
    background: rgba(46, 125, 50, 0.1);
    color: #2e7d32;
    border: 1px solid rgba(46, 125, 50, 0.2);
}

.status-badge.status-invalid {
    background: rgba(198, 40, 40, 0.1);
    color: #c62828;
    border: 1px solid rgba(198, 40, 40, 0.2);
}

.result-details {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.detail-row {
    font-size: 0.88rem;
    line-height: 1.4;
    color: var(--text-secondary);
}

.dim-label {
    font-weight: 600;
    color: var(--text-primary);
    margin-right: 4px;
}

.constraint-warning {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    background: rgba(198, 40, 40, 0.05);
    border-left: 3px solid #c62828;
    padding: 10px 12px;
    border-radius: 4px;
    margin-top: 4px;
    font-size: 0.85rem;
    color: #c62828;
    line-height: 1.4;
}

.warning-icon {
    flex-shrink: 0;
    margin-top: 2px;
}

.topic-meta {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 0.8rem;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    margin-bottom: 12px;
    text-transform: uppercase;
}

.research-topic-card h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
}

.research-topic-card p {
    flex-grow: 1;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 24px;
}

.project-status {
    align-self: flex-start;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.8rem;
    color: var(--accent-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-left: 2px solid var(--accent-primary);
    padding-left: 8px;
}

/* ==========================================
   KEYFRAME ANIMATIONS
   ========================================== */
@keyframes corePulse {
    0% {
        transform: scale(0.95);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.18);
        opacity: 0;
    }
    100% {
        transform: scale(0.95);
        opacity: 0;
    }
}

@keyframes pulseText {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.7; }
}

/* ==========================================
   RESPONSIVE LAYOUT
   ========================================== */
@media (max-width: 1024px) {
    :root {
        --radius-orbit: 220px;
    }
    .orbit-item {
        width: 100px;
        height: 100px;
    }
    .ambient-graphic {
        width: 80px;
        height: 80px;
    }
    .rush-particle {
        width: 50px !important;
        height: 50px !important;
    }
    .grid-layout {
        grid-template-columns: 1fr;
    }
    .tag-cloud-layout {
        grid-template-columns: 1fr;
        height: auto;
    }
    .left-helper {
        left: 24px;
    }
    .right-helper {
        right: 24px;
    }
}

@media (max-width: 640px) {
    :root {
        --radius-orbit: 140px;
    }
    .orbit-item {
        width: 76px;
        height: 76px;
    }
    .ambient-graphic {
        width: 60px;
        height: 60px;
    }
    .rush-particle {
        width: 40px !important;
        height: 40px !important;
    }
    .item-bubble {
        padding: 4px;
    }
    .left-helper {
        left: 16px;
    }
    .right-helper {
        right: 16px;
    }
    .hover-helper {
        font-size: 0.75rem;
    }
    .item-icon {
        width: 22px;
        height: 22px;
        margin-bottom: 2px;
    }
    .item-name {
        font-size: 0.8rem;
        line-height: 1.1;
    }
    .controls-bar {
        padding: 16px 20px;
    }
    .logo-text {
        font-size: 1.2rem;
    }
    .control-btn {
        padding: 8px !important; /* compact icon button to fit narrow mobile widths */
    }
    .control-btn span {
        display: none;
    }
    .back-btn {
        top: 20px;
        left: 20px;
        padding: 8px 16px;
    }
    .back-btn span {
        display: none;
    }
    .panel-header h1 {
        font-size: 2.2rem;
    }
}

/* ==========================================
   WIDGETS: GAMES CREATED TABS
   ========================================== */
.games-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.tab-btn {
    background: var(--card-bg);
    border: var(--border-glass);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    padding: 10px 20px;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.tab-btn:hover {
    color: var(--text-primary);
    border-color: var(--card-border-hover);
    background: var(--card-bg-hover);
}

.tab-btn.active {
    background: var(--games-created-gradient);
    border-color: transparent;
    color: #06070c;
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.3);
}

.game-wrapper {
    transition: opacity 0.5s ease;
}

.game-wrapper.hidden {
    display: none !important;
}

.game-wrapper.active {
    display: grid !important;
}

/* Premium Game Launcher Cards Styling */
.launcher-link {
    display: block;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.game-launcher {
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border: 4px solid rgba(255, 255, 255, 0.08) !important;
}

.game-launcher:hover {
    transform: translateY(-6px) scale(1.01);
}

.game-launcher .art-placeholder {
    transition: background-color 0.4s ease;
}

/* Custom launcher glows & backgrounds */
.untangler-launcher:hover {
    border-color: rgba(6, 182, 212, 0.4) !important;
    box-shadow: 0 12px 30px rgba(6, 182, 212, 0.25), var(--shadow-premium);
}
.untangler-launcher:hover .art-placeholder {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.25), rgba(6, 7, 12, 0.98)) !important;
}

.casino-launcher:hover {
    border-color: rgba(251, 191, 36, 0.4) !important;
    box-shadow: 0 12px 30px rgba(251, 191, 36, 0.25), var(--shadow-premium);
}
.casino-launcher:hover .art-placeholder {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.25), rgba(6, 7, 12, 0.98)) !important;
}

.tetris-launcher:hover {
    border-color: rgba(239, 68, 68, 0.4) !important;
    box-shadow: 0 12px 30px rgba(239, 68, 68, 0.25), var(--shadow-premium);
}
.tetris-launcher:hover .art-placeholder {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.25), rgba(6, 7, 12, 0.98)) !important;
}

.jigsaw-launcher:hover {
    border-color: rgba(167, 139, 250, 0.4) !important;
    box-shadow: 0 12px 30px rgba(167, 139, 250, 0.25), var(--shadow-premium);
}
.jigsaw-launcher:hover .art-placeholder {
    background: linear-gradient(135deg, rgba(167, 139, 250, 0.25), rgba(6, 7, 12, 0.98)) !important;
}

/* SVG and Icon Wrapper transitions */
.launcher-icon-wrap {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    justify-content: center;
    align-items: center;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.launcher-svg {
    transition: filter 0.4s ease, stroke 0.4s ease;
}

.game-launcher:hover .launcher-icon-wrap {
    transform: scale(1.15) translateY(-4px);
    background: rgba(255, 255, 255, 0.04);
}

.untangler-launcher:hover .launcher-svg {
    filter: drop-shadow(0 0 12px rgba(6, 182, 212, 0.8));
    stroke: #06b6d4;
}
.casino-launcher:hover .launcher-svg {
    filter: drop-shadow(0 0 12px rgba(251, 191, 36, 0.8));
    stroke: #fbbf24;
}
.tetris-launcher:hover .launcher-svg {
    filter: drop-shadow(0 0 12px rgba(239, 68, 68, 0.8));
    stroke: #ef4444;
}
.jigsaw-launcher:hover .launcher-svg {
    filter: drop-shadow(0 0 12px rgba(167, 139, 250, 0.8));
    stroke: #a78bfa;
}

/* Play Button Pill */
.play-btn-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    padding: 10px 22px;
    border-radius: 50px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 1.5px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(5px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.play-btn-pill svg {
    transition: transform 0.4s ease;
}

.game-launcher:hover .play-btn-pill svg {
    transform: scale(1.1) translateX(1px);
}

.untangler-launcher:hover .play-btn-pill {
    background: #06b6d4;
    border-color: #06b6d4;
    color: #0b0c15;
    box-shadow: 0 6px 20px rgba(6, 182, 212, 0.5);
}

.casino-launcher:hover .play-btn-pill {
    background: #fbbf24;
    border-color: #fbbf24;
    color: #0b0c15;
    box-shadow: 0 6px 20px rgba(251, 191, 36, 0.5);
}

.tetris-launcher:hover .play-btn-pill {
    background: #ef4444;
    border-color: #ef4444;
    color: #fff;
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.5);
}

.jigsaw-launcher:hover .play-btn-pill {
    background: #a78bfa;
    border-color: #a78bfa;
    color: #0b0c15;
    box-shadow: 0 6px 20px rgba(167, 139, 250, 0.5);
}


