/* Final Layout - Belts at Top, Workshop Below with Table Background */

/* Main game board container */
.game-board {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100vh;
    padding: 0;
    margin: 0;
    background: linear-gradient(135deg, #1a1a2e 0%, #0f0f1e 100%);
    overflow: hidden;
}

/* Elements container at the TOP - adjusted for compact header */
.elements-container {
    position: fixed;
    top: 50px; /* Just below compact header (50px from compact-header.css) */
    left: 0;
    right: 0;
    height: auto; /* Auto height to fit content */
    z-index: 50;
    background: linear-gradient(180deg, 
        rgba(15, 15, 25, 0.98) 0%, 
        rgba(20, 20, 35, 0.95) 100%);
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.8);
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    border-bottom: none !important; /* Removed brown line */
    backdrop-filter: blur(10px);
}

/* Compact element groups for top positioning */
.element-group {
    display: flex;
    align-items: center;
    height: 90px;
    min-height: 90px;
    max-height: 90px;
    background: linear-gradient(135deg, 
        rgba(25, 25, 35, 0.8) 0%, 
        rgba(20, 20, 30, 0.7) 100%);
    border-radius: 12px;
    padding: 8px 8px 8px 0;
    position: relative;
    overflow: visible;
    transition: all 0.3s ease;
    margin-bottom: 30px; /* Space for scroll track */
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05),
                0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Core elements - increased by 20% for better visibility */
.core-element-integrated {
    width: 84px;
    height: 84px;
    min-width: 84px;
    margin-left: 8px;
    margin-right: 12px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.20) 0%, rgba(255, 255, 255, 0.12) 50%, rgba(255, 255, 255, 0.06) 100%);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08), inset 0 1px 3px rgba(255, 255, 255, 0.1);
}

.core-element-integrated img {
    width: 79px; /* Increased by 10% more */
    height: 79px;
    filter: brightness(1.1) contrast(1.15);
}

.core-element-name {
    font-size: 9px;
}

/* Derived elements - increased by 20% for better visibility */
.derived-element {
    width: 78px;
    height: 78px;
    min-width: 78px;
    cursor: grab !important;
    user-select: none !important;
    -webkit-user-drag: element !important;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0.10) 50%, rgba(255, 255, 255, 0.04) 100%);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06), inset 0 1px 2px rgba(255, 255, 255, 0.08);
}

.derived-element:active {
    cursor: grabbing !important;
    transform: scale(0.95);
    opacity: 0.8;
}

.derived-element img {
    width: 72px; /* Increased by 10% more */
    height: 72px;
    filter: brightness(1.1) contrast(1.15);
    /* Allow dragging by not blocking pointer events */
    pointer-events: auto !important;
    -webkit-user-drag: auto !important;
    user-drag: auto !important;
}

/* Elemental spinners - positioned at bottom center of each zone column */
.drop-slot {
    width: 168px !important;
    height: 168px !important;
    min-width: 168px !important;
    min-height: 168px !important;
    max-width: 168px !important;
    max-height: 168px !important;
    background: transparent !important; /* Background moved to ::before for spinning */
    border: none !important; /* Remove brown border for clean look */
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3) !important; /* Subtle shadow only */
    position: absolute !important;
    bottom: 48px !important; /* 1/2 inch from bottom */
    left: 50% !important; /* Center horizontally in column */
    transform: translateX(-50%) !important; /* Center on the 50% point */
    transition: all 0.3s ease;
    pointer-events: auto !important; /* Spinners are clickable */
    cursor: pointer;
    z-index: 100 !important; /* Above column content */
}

/* Spinning background layer - rotates independently of content */
.drop-slot::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('../images/deactivated.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 50%;
    z-index: 1;
    pointer-events: none;
}

/* Activated state - changes background and spins fast */
.drop-slot.activated {
    box-shadow:
        inset 0 10px 20px rgba(0, 0, 0, 0.5),
        inset 0 -6px 12px rgba(0, 0, 0, 0.4),
        0 8px 16px rgba(255, 193, 7, 0.4),
        0 0 20px rgba(255, 193, 7, 0.3) !important;
}

/* Element-specific activated spinners - each base type has unique visual */
.drop-slot.activated.fire-base::before {
    background-image: url('../images/activated_fire.png');
    animation: spinFastCharge 0.2s linear infinite;
}

.drop-slot.activated.water-base::before {
    background-image: url('../images/activated_water.png');
    animation: spinFastCharge 0.2s linear infinite;
}

.drop-slot.activated.earth-base::before {
    background-image: url('../images/activated_earth.png');
    animation: spinFastCharge 0.2s linear infinite;
}

.drop-slot.activated.air-base::before {
    background-image: url('../images/activated_wind.png');
    animation: spinFastCharge 0.2s linear infinite;
}

/* Mixing state - both slots spin their backgrounds in opposite directions */
#slot-1.mixing::before {
    animation: spinClockwise 0.6s linear infinite !important;
}

#slot-2.mixing::before {
    animation: spinCounterClockwise 0.6s linear infinite !important;
}

@keyframes spinClockwise {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes spinCounterClockwise {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(-360deg); }
}

/* Merging animation - spinners fly to center then disappear */
.drop-slot.merging,
.elemental-spinner.merging {
    /* Keep visible during flight to center */
    position: fixed !important;
    top: var(--start-top) !important;
    left: var(--start-left) !important;
    width: 90px !important; /* Maintain size when position: fixed */
    height: 90px !important;
    display: flex !important; /* Ensure visible */
    visibility: visible !important;
    opacity: 1 !important; /* Start fully visible */
    z-index: 10000 !important;
    animation: flyToCenter 1.0s cubic-bezier(0.34, 1.56, 0.64, 1) forwards !important;
    pointer-events: none !important;
}

/* Fly to center animation - spinners stay visible until they reach center */
@keyframes flyToCenter {
    0% {
        top: var(--start-top);
        left: var(--start-left);
        transform: scale(1);
        opacity: 1;
    }
    85% {
        /* Spinners fly to center and grow slightly - STAY VISIBLE */
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) scale(1.3);
        opacity: 1;
    }
    100% {
        /* Only at the very end do they disappear at center */
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) scale(0.3);
        opacity: 0;
    }
}

@keyframes flyAndMerge {
    0% {
        /* Start at current position */
        top: var(--start-top);
        left: var(--start-left);
        transform: scale(1);
        opacity: 1;
    }
    60% {
        /* Fly to screen center, start growing */
        top: 50%;
        left: 50%;
        margin-top: -84px;
        margin-left: -84px;
        transform: scale(4);
        opacity: 1;
    }
    100% {
        /* Become massive golden wheel at center */
        top: 50%;
        left: 50%;
        margin-top: -84px;
        margin-left: -84px;
        transform: scale(6);
        opacity: 1;
    }
}

/* Ultra-fast continuous spinning for merge image - 4x faster, 3x bigger */
@keyframes spinUltraFastLarge {
    0% { transform: scale(3) rotate(0deg); }
    100% { transform: scale(3) rotate(360deg); }
}

/* Fast charging spin animation for activated spinners */
@keyframes spinFastCharge {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Inner ring for depth effect - above background, below content */
.drop-slot::after {
    content: '';
    position: absolute;
    inset: 12px;
    border: 3px solid rgba(50, 25, 12, 0.4);
    border-radius: 50%;
    pointer-events: none;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
    z-index: 1.5; /* Between spinning background (1) and content (2) */
}

/* Hover and interaction effects */
.drop-slot:hover {
    transform: scale(1.05);
    box-shadow: 
        inset 0 10px 20px rgba(0, 0, 0, 0.9),
        inset 0 -6px 12px rgba(0, 0, 0, 0.7),
        0 12px 24px rgba(0, 0, 0, 0.7),
        0 0 30px rgba(255, 193, 7, 0.2) !important;
}

/* Fix element sizing inside drop slots */
.slot-element {
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 5px !important;
    border-radius: 50% !important;
    overflow: hidden !important;
    position: relative !important;
    z-index: 2 !important; /* Above spinning background */
}

.slot-element img {
    width: 75px !important;  /* Reduced by 50% to fit better in spinner */
    height: 75px !important;
    object-fit: contain !important;
    filter: drop-shadow(0 8px 16px rgba(0,0,0,0.5)) brightness(1.1) contrast(1.2) !important;
    border-radius: 50% !important;
}

.slot-element .element-icon {
    font-size: 120px !important;  /* Small in center to show activation circle design */
}

.slot-element .element-name {
    font-size: 12px !important;
    color: rgba(255,255,255,0.9) !important;
    text-align: center !important;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8) !important;
    font-weight: 600 !important;
    max-width: 100px !important;
    word-wrap: break-word !important;
    line-height: 1.2 !important;
}

.drop-slot.has-element {
    background: 
        radial-gradient(ellipse at 40% 40%, 
            rgba(40, 25, 15, 0.98) 0%, 
            rgba(50, 30, 18, 0.95) 25%,
            rgba(70, 40, 22, 0.9) 50%,
            rgba(90, 50, 28, 0.85) 75%,
            rgba(110, 60, 32, 0.75) 100%) !important;
}

/* Element placement animation */
@keyframes elementPlace {
    0% {
        transform: scale(0) rotate(180deg);
        opacity: 0;
        border-radius: 50%;
    }
    50% {
        transform: scale(1.2) rotate(90deg);
        opacity: 0.8;
        border-radius: 50%;
    }
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
        border-radius: 50%;
    }
}

/* Dual Spinner Container - Holds two side-by-side spinners */
.dual-spinner-container {
    display: flex !important;
    flex-direction: row !important; /* Side-by-side layout */
    align-items: center !important;
    justify-content: center !important; /* Center spinner-1 when alone */
    gap: 20px !important; /* Space between spinners when both visible */
    width: 100% !important; /* Full width of column for perfect centering */
    height: 120px !important;
    position: absolute !important; /* Position at bottom of column */
    bottom: 15px !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 9999 !important; /* Above ALL column content including overlays */
    pointer-events: auto !important;
}

/* Individual spinners */
.dual-spinner-container .elemental-spinner {
    opacity: 0.6 !important; /* Visible but dimmed when empty */
    transform: scale(1) !important;
    transition: all 0.4s ease !important;
    position: relative !important; /* Ensure they participate in flex layout */
    flex-shrink: 0 !important; /* Prevent shrinking */
    margin: 0 !important; /* No margin collapse */
}

/* Hide spinner-2 by default - only show when second element placed */
.dual-spinner-container .elemental-spinner[data-slot="2"] {
    display: none !important;
}

/* Show spinner-2 when it has an element - with slide-in animation */
.dual-spinner-container .elemental-spinner[data-slot="2"].has-element {
    display: flex !important;
    opacity: 1 !important;
    animation: slideInFromRight 0.3s ease-out !important;
}

/* Slide in animation for spinner-2 */
@keyframes slideInFromRight {
    from {
        transform: translateX(30px) scale(0.8);
        opacity: 0;
    }
    to {
        transform: translateX(0) scale(1.1);
        opacity: 1;
    }
}

/* Show spinner fully when it has an element */
.dual-spinner-container .elemental-spinner.has-element {
    opacity: 1 !important;
    transform: scale(1.1) !important; /* Slightly larger when active */
}

/* When both spinners are active, position them side-by-side */
.dual-spinner-container.dual-active {
    /* Container is already flexbox, just needs both spinners visible */
}

/* Spinner positioning animations */
@keyframes slideInLeft {
    from {
        transform: translateX(50px) scale(0);
        opacity: 0;
    }
    to {
        transform: translateX(0) scale(1);
        opacity: 1;
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(-50px) scale(0);
        opacity: 0;
    }
    to {
        transform: translateX(0) scale(1);
        opacity: 1;
    }
}

/* Apply animations when both are active */
.dual-spinner-container.dual-active .elemental-spinner:first-child {
    animation: slideInLeft 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

.dual-spinner-container.dual-active .elemental-spinner:last-child {
    animation: slideInRight 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

/* Split animation */
@keyframes splitSpinner {
    0% {
        width: 168px;
        border-radius: 50%;
    }
    50% {
        width: 254px;
        border-radius: 67px;
    }
    100% {
        width: 340px;
        border-radius: 84px;
    }
}

/* Swirl container - CENTERED ON SCREEN with activated_merge spinner */
.swirl-container {
    width: 400px !important;
    height: 400px !important;
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 10000 !important; /* Above spinners */
    pointer-events: none !important; /* Don't block clicks when not animating */
    opacity: 0 !important; /* Hidden by default */
    transition: opacity 0.3s ease !important;
}

/* Show swirl container when active (has .ready class) */
.swirl-container.ready {
    opacity: 1 !important;
}

/* Big spinning activated_merge wheel in center */
.swirl-container::before {
    content: '' !important;
    position: absolute !important;
    width: 100% !important;
    height: 100% !important;
    background-image: url('../images/activated_merge.png') !important;
    background-size: contain !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    animation: spinEpicCenter 0.12s linear infinite !important;
    opacity: 0 !important;
    transition: opacity 0.2s ease !important;
    filter: brightness(1.5) drop-shadow(0 0 80px rgba(255, 215, 0, 1)) drop-shadow(0 0 120px rgba(255, 255, 255, 0.8)) !important;
    z-index: 1 !important;
}

/* Show spinner when swirl is ready */
.swirl-container.ready::before {
    opacity: 1 !important;
}

/* Epic center spin - massive and glowing */
@keyframes spinEpicCenter {
    0% {
        transform: rotate(0deg) scale(1);
    }
    100% {
        transform: rotate(360deg) scale(1);
    }
}

/* Swirl elements (element images) appear above the spinner */
.swirl-element {
    z-index: 10 !important;
    position: relative !important;
}

.swirl-result {
    z-index: 11 !important;
    position: relative !important;
}

/* Workshop title - properly centered below combination zone */
.workshop-title {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 215, 0, 0.95);
    font-size: 36px;
    font-weight: bold;
    text-shadow: 
        3px 3px 6px rgba(0, 0, 0, 0.9),
        0 0 30px rgba(255, 215, 0, 0.4),
        0 0 60px rgba(255, 193, 7, 0.2);
    letter-spacing: 8px;
    text-transform: uppercase;
    z-index: 2;
    text-align: center;
    pointer-events: none;
    font-family: 'Cinzel', serif;
    background: linear-gradient(135deg, 
        rgba(255, 235, 100, 1) 0%, 
        rgba(255, 215, 0, 0.9) 50%, 
        rgba(255, 193, 7, 0.8) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s ease-in-out infinite;
    white-space: nowrap;
}

@keyframes shimmer {
    0%, 100% { opacity: 0.9; }
    50% { opacity: 1; }
}

/* Calculate heights for mobile */
@media (max-width: 768px) {
    .game-header {
        height: 45px !important;
        min-height: 45px !important;
        padding: 6px 10px !important;
    }
    
    .game-title {
        font-size: 16px !important;
    }
    
    .elements-container {
        top: 47px; /* Below mobile compact header */
        padding: 6px;
        gap: 5px;
    }
    
    .element-group {
        height: 80px;
        min-height: 80px;
        max-height: 80px;
    }
    
    .core-element-integrated {
        width: 72px;
        height: 72px;
        min-width: 72px;
    }
    
    .core-element-integrated img {
        width: 53px;  /* Increased by 10% */
        height: 53px;
        filter: brightness(1.1) contrast(1.15);
    }
    
    .derived-element {
        width: 66px;
        height: 66px;
        min-width: 66px;
    }
    
    .derived-element img {
        width: 51px;  /* Increased by 10% */
        height: 51px;
        filter: brightness(1.1) contrast(1.15);
        /* Allow dragging on mobile too */
        pointer-events: auto !important;
        -webkit-user-drag: auto !important;
        user-drag: auto !important;
    }
    
    .elements-container {
        height: 335px; /* Adjusted for mobile */
    }
    
    .workshop-area {
        top: 420px; /* 47px mobile header + belts + scroll tracks */
        padding: 30px 15px 15px 15px;
        background: 
            radial-gradient(ellipse at center, 
                rgba(0, 0, 0, 0.25) 0%, 
                rgba(0, 0, 0, 0.5) 100%),
            url('../images/table.png') center center / cover no-repeat,
            linear-gradient(180deg, 
                rgba(92, 51, 23, 0.92) 0%, 
                rgba(63, 35, 16, 0.96) 50%,
                rgba(41, 23, 10, 1) 100%);
    }
    
    .combination-zone {
        gap: 30px;
        padding: 25px;
        background: radial-gradient(ellipse at center,
            rgba(255, 255, 255, 0.01) 0%,
            transparent 60%);
    }
    
    .drop-slot {
        width: 150px !important;
        height: 150px !important;
    }
    
    .swirl-container {
        width: 140px !important;
        height: 140px !important;
    }
    
    .workshop-title {
        font-size: 20px;
        letter-spacing: 3px;
        bottom: 20px;
    }
}

/* Compact header styling */
.game-header {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    height: 50px !important;
    min-height: 50px !important;
    padding: 8px 15px !important;
    z-index: 200;
    background: linear-gradient(180deg, 
        rgba(20, 20, 30, 0.98) 0%, 
        rgba(15, 15, 25, 0.95) 100%) !important;
    backdrop-filter: blur(15px);
    border-bottom: 2px solid rgba(139, 69, 19, 0.6);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

/* Compact header content */
.game-header .header-left,
.game-header .header-center,
.game-header .header-right {
    display: flex;
    align-items: center;
    height: 100%;
}

/* Compact game title */
.game-title {
    font-size: 18px !important;
    margin: 0 !important;
}

/* Compact stats */
.stat-item {
    font-size: 12px !important;
    padding: 4px 8px !important;
}

/* Compact buttons */
.header-controls button {
    height: 32px !important;
    padding: 6px 12px !important;
    font-size: 12px !important;
}

/* Hide any overflow from belts */
.kinetic-scroll-container {
    overflow-x: auto;
    overflow-y: hidden;
}

/* Adjust tier rings for smaller elements */
.derived-element[data-tier="2"]::before,
.derived-element[data-tier="3"]::before,
.derived-element[data-tier="4"]::before,
.derived-element[data-tier="5"]::before,
.derived-element[data-tier="6"]::before {
    inset: -3px;
}

.derived-element[data-tier="3"]::after,
.derived-element[data-tier="4"]::after,
.derived-element[data-tier="5"]::after,
.derived-element[data-tier="6"]::after {
    inset: -6px;
}

/* Global tooltip system - follows cursor - COMPACT */
.game-tooltip {
    position: fixed !important;
    z-index: 999999 !important;
    pointer-events: none !important;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-5px);
    transition: opacity 0.12s ease, visibility 0.12s ease, border-color 0.15s ease;
    background: linear-gradient(135deg, 
        rgba(10, 10, 15, 0.95) 0%, 
        rgba(20, 20, 30, 0.95) 100%) !important;
    border: 2px solid; /* Dynamic color set by JS */
    border-radius: 8px !important;
    padding: 8px 10px !important;
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.8),
        inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
    min-width: 140px !important;
    max-width: 220px !important;
    backdrop-filter: blur(10px) !important;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
    font-size: 11px !important;
    line-height: 1.2 !important;
}

.game-tooltip.visible {
    opacity: 1 !important;
    visibility: visible !important;
}

/* Hide old tooltip system */
.element-tooltip {
    display: none !important;
}

/* Tooltip content styling */
.game-tooltip .tooltip-name {
    color: rgba(255, 215, 0, 1) !important;
    font-weight: bold !important;
    font-size: 13px !important;
    margin: 0 !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6) !important;
}

.game-tooltip .tooltip-tier {
    /* Plain text styling - no badge */
    font-size: 10px !important;
    font-weight: normal !important;
    margin-left: auto !important;
    opacity: 0.6 !important;
    color: rgba(200, 200, 200, 0.8) !important;
    text-transform: none !important;
    padding: 0 !important;
    background: none !important;
    border: none !important;
    border-radius: 0 !important;
}

.game-tooltip .tooltip-potency {
    margin: 4px 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
}

.game-tooltip .tooltip-potency-label {
    color: rgba(200, 200, 200, 0.9) !important;
    font-size: 10px !important;
}

.game-tooltip .tooltip-stars {
    color: rgba(255, 215, 0, 1) !important;
    font-size: 12px !important;
    text-shadow: 0 1px 2px rgba(255, 215, 0, 0.3) !important;
}

.game-tooltip .tooltip-recipe {
    margin-top: 6px !important;
    padding-top: 6px !important;
    border-top: 1px solid rgba(255, 215, 0, 0.15) !important;
}

.game-tooltip .tooltip-recipe-label {
    color: rgba(255, 215, 0, 0.8) !important;
    font-weight: bold !important;
    text-transform: uppercase !important;
    letter-spacing: 0.3px !important;
    font-size: 8px !important;
    display: block !important;
    margin-bottom: 3px !important;
}

.game-tooltip .tooltip-recipe-content {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    padding: 4px 6px !important;
    background: rgba(0, 0, 0, 0.3) !important;
    border-radius: 4px !important;
    margin-top: 2px !important;
}

.game-tooltip .recipe-element {
    color: rgba(135, 206, 235, 0.95) !important;
    font-weight: 500 !important;
    padding: 1px 4px !important;
    background: rgba(255, 255, 255, 0.06) !important;
    border-radius: 3px !important;
    border: 1px solid rgba(135, 206, 235, 0.3) !important;
    font-size: 10px !important;
}

.game-tooltip .recipe-plus {
    color: rgba(255, 215, 0, 0.8) !important;
    font-weight: bold !important;
    font-size: 10px !important;
}

.game-tooltip .tooltip-recipe-icon {
    color: rgba(255, 193, 7, 0.8) !important;
    font-size: 10px !important;
    margin-right: 2px !important;
}

.game-tooltip .tooltip-recipe-text {
    color: rgba(200, 200, 200, 0.8) !important;
    font-style: italic !important;
    font-size: 10px !important;
}

/* Possible Matches Section */
.game-tooltip .tooltip-matches {
    margin-top: 6px !important;
    padding-top: 6px !important;
    border-top: 1px solid rgba(255, 215, 0, 0.15) !important;
}

.game-tooltip .tooltip-matches-label {
    color: rgba(255, 215, 0, 0.8) !important;
    font-weight: bold !important;
    text-transform: uppercase !important;
    letter-spacing: 0.3px !important;
    font-size: 8px !important;
    display: block !important;
    margin-bottom: 3px !important;
}

.game-tooltip .tooltip-match-row {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 3px !important;
    padding: 2px 4px !important;
    background: rgba(0, 0, 0, 0.2) !important;
    border-radius: 3px !important;
    margin: 2px 0 !important;
    font-size: 10px !important;
}

.game-tooltip .match-element {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500 !important;
}

.game-tooltip .match-element.unknown {
    color: rgba(150, 150, 150, 0.7) !important;
    font-style: italic !important;
}

.game-tooltip .match-plus,
.game-tooltip .match-equals {
    color: rgba(255, 215, 0, 0.6) !important;
    font-weight: bold !important;
    padding: 0 2px !important;
}

.game-tooltip .match-result {
    font-weight: 600 !important;
}

.game-tooltip .match-result.discovered {
    color: rgba(76, 217, 100, 0.9) !important;
}

.game-tooltip .match-result.undiscovered {
    color: rgba(255, 159, 64, 0.8) !important;
    font-style: italic !important;
}


.game-tooltip .tooltip-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    margin-bottom: 6px !important;
    padding-bottom: 4px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    position: relative !important;
}

.game-tooltip .tooltip-description {
    margin: 4px 0 !important;
    padding: 3px 6px !important;
    background: rgba(255, 215, 0, 0.08) !important;
    border-radius: 4px !important;
    border: 1px solid rgba(255, 215, 0, 0.2) !important;
    text-align: center !important;
}

.game-tooltip .tooltip-description-text {
    color: rgba(255, 215, 0, 0.85) !important;
    font-size: 9px !important;
    font-style: italic !important;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.4) !important;
}

/* Add tier ring decoration to tooltip header - COMPACT */
.game-tooltip .tooltip-header::before {
    content: '' !important;
    position: absolute !important;
    left: -4px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 4px !important;
    height: 4px !important;
    border-radius: 50% !important;
    border: 1px solid !important;
    opacity: 0.7 !important;
}

/* Tier-specific ring colors for tooltip decoration */
.game-tooltip.tier-0 .tooltip-header::before {
    border-color: #757575 !important;
    box-shadow: 0 0 4px rgba(117, 117, 117, 0.4) !important;
}

.game-tooltip.tier-1 .tooltip-header::before {
    border-color: #87ceeb !important;
    box-shadow: 0 0 4px rgba(135, 206, 235, 0.4) !important;
}

.game-tooltip.tier-2 .tooltip-header::before {
    border-color: #98d8c8 !important;
    box-shadow: 0 0 6px rgba(152, 216, 200, 0.4) !important;
    animation: gentle-pulse 4s ease-in-out infinite !important;
}

.game-tooltip.tier-3 .tooltip-header::before {
    border-color: #ffd700 !important;
    box-shadow: 0 0 8px rgba(255, 215, 0, 0.5) !important;
    animation: pulse-tier3 3.5s ease-in-out infinite !important;
}

.game-tooltip.tier-4 .tooltip-header::before {
    border-color: #ff9f40 !important;
    box-shadow: 0 0 10px rgba(255, 159, 64, 0.5) !important;
    animation: pulse-tier4 2.5s ease-in-out infinite !important;
}

.game-tooltip.tier-5 .tooltip-header::before {
    border-color: #e74c3c !important;
    box-shadow: 0 0 12px rgba(231, 76, 60, 0.6) !important;
    animation: pulse-tier5 2s ease-in-out infinite, shimmer 3s ease-in-out infinite !important;
}

.game-tooltip.tier-6 .tooltip-header::before {
    border-color: #9b59b6 !important;
    background: linear-gradient(90deg, 
        rgba(255, 0, 150, 0.3), rgba(150, 0, 255, 0.3), 
        rgba(0, 150, 255, 0.3), rgba(0, 255, 150, 0.3)) !important;
    box-shadow: 0 0 15px rgba(155, 89, 182, 0.6) !important;
    animation: rotate 2.5s linear infinite, pulse-tier6 1.5s ease-in-out infinite !important;
}

/* Animation keyframes for tooltip rings */
@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Remove any margin/padding that might hide content */
body {
    margin: 0;
    padding: 0;
    overflow: hidden;
}

#game-container {
    height: 100vh;
    overflow: hidden;
}