#walkthroughHint.side-layout { flex-direction: row !important; align-items: center; }
#fixedActionsArea.pos-corner #walkthroughHint.visible { opacity: 1 !important; pointer-events: auto; }

/* Text Content Styling */
#walkthroughHint p { color: #ffffff; font-size: 0.75rem; letter-spacing: 1px; text-transform: uppercase; font-weight: 800; text-shadow: 0 1px 3px rgba(0,0,0,0.9); background: rgba(0,0,0,0.8); padding: 8px 16px; border-radius: 20px; border: 1px solid var(--accent-primary); white-space: pre-line; line-height: 1.3; margin: 0; box-shadow: 0 4px 12px rgba(0,0,0,0.3); pointer-events: auto; }
#walkthroughText span { font-size: 0.65rem; display: inline-block; margin-left: 2px; }

/* SVG / Arrow Styling & Ordering */
#walkthroughHint svg { 
    width: 20px; 
    height: 20px; 
    
    /* FIX: Prevent arrow from squishing when text is long */
    min-width: 20px;
    min-height: 20px;
    flex-shrink: 0;

    stroke: var(--accent-primary); 
    stroke-width: 3; 
    filter: drop-shadow(0 2px 4px rgba(0,0,0,1)); 
    transform: rotate(var(--r, 0deg)); 
    animation: hintFloat 2s ease-in-out infinite; 
    order: 2; 
}

#walkthroughHint.no-arrow svg { display: none !important; }
#walkthroughHint.arrow-top svg, #walkthroughHint.arrow-left svg { order: -1 !important; }

/* Animations & Overrides */
@keyframes hintFloat { 0%, 100% { transform: translateY(0) rotate(var(--r, 0deg)); } 50% { transform: translateY(4px) rotate(var(--r, 0deg)); } }
#achievementModal .static-icon { fill: #f59e0b !important; }
#skipDemoBtn { pointer-events: auto !important; cursor: pointer; z-index: 100003; }

.start-prompt {
    position: absolute;
    right: 120%; /* Position to the left of the card */
    top: 50%;
    transform: translateY(-50%) translateX(10px); /* Start slightly inward */
    
    background: var(--accent-primary);
    color: var(--bg-primary);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    white-space: nowrap;
    
    opacity: 0; 
    visibility: hidden; /* CRITICAL: Removes it from click path */
    transition: opacity 0.5s ease, transform 0.5s ease, visibility 0.5s;
    
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
    z-index: 2000;
    pointer-events: none; /* Never capture clicks itself */
}

.iso-card .start-prompt {
    opacity: 1;
    animation: pulseHorizontal 1.5s infinite;
}

.start-prompt::after {
    content: "";
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-left: 6px solid var(--accent-primary);
}

/* Active State: Only show when the parent menu has the specific class */
.iso-menu-container.show-start-hint .iso-card#intro-new-deck-btn .start-prompt {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(0);
    animation: pulseHorizontal 1.5s infinite;
}

/* Ensure the CARD itself is clickable and above the prompt */
#intro-new-deck-btn {
    z-index: 100 !important; /* Higher than other cards */
    pointer-events: auto !important;
}

.start-prompt {
    /* ... existing styles ... */
    z-index: 100000 !important;
    /* This is the magic line for 3D menus */
    transform: translateY(-50%) translateX(0) translateZ(100px) !important;
    pointer-events: none;
}

/* Ensure the container doesn't clip the prompt */
.iso-menu-container {
    perspective: 1000px;
    transform-style: preserve-3d;
    overflow: visible !important; 
}

/* Use !important or more specific selectors to ensure overrides */
#walkthroughHint.pos-top {
    bottom: auto !important;
    top: 50px !important; /* Fixed distance from top */
}

#walkthroughHint.pos-top-left {
    bottom: auto !important;
    top: 80px !important;
    left: 20px !important;
    transform: none !important; /* Remove the translateX(-50%) */
    align-items: flex-start !important;
    text-align: left;
}

#walkthroughHint.pos-bottom-force {
    top: auto !important;
    bottom: 300px  !important;
}

#walkthroughHint.arrow-right, 
#walkthroughHint.arrow-left {
    flex-direction: row !important;
    align-items: center !important;
    padding: 6px 6px;
}

@keyframes rotateDemoSparkle {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* 2. BUTTON CONTAINER */
button.demo-answer-highlight, 
.mcq-option-btn.demo-answer-highlight {
    position: relative !important;
    isolation: isolate;
    
    /* Reset defaults */
    background: transparent !important; 
    border: none !important;
    box-shadow: none !important;
    
    overflow: hidden !important; 
    border-radius: 8px !important;
    z-index: 500 !important;
    
    /* Smooth transition for text brightness */
    transition: filter 0.2s ease, transform 0.2s ease;
}

/* 3. HOVER STATE: BRIGHTEN EVERYTHING */
button.demo-answer-highlight:hover, 
.mcq-option-btn.demo-answer-highlight:hover {
    cursor: pointer;
    /* Brightens the text and icons */
    filter: brightness(1.3);
    /* Optional: Subtle scale up */
    transform: scale(1.02);
}

/* 4. THE GIANT SPINNER (::before) */
button.demo-answer-highlight::before, 
.mcq-option-btn.demo-answer-highlight::before {
    content: "";
    position: absolute;
    top: 50%; left: 50%;
    
    /* Oversized to cover corners during rotation */
    width: 200%; height: 200%; 
    
    background: conic-gradient(
        from 0deg, 
        transparent 0deg, 
        transparent 200deg, 
        #d97706 280deg, 
        #fbbf24 320deg, 
        #ffffff 360deg
    );
    
    animation: rotateDemoSparkle 2s linear infinite;
    z-index: -2; 
}

/* 5. THE MASK (::after) - THINNER & LIGHTER ON HOVER */
button.demo-answer-highlight::after, 
.mcq-option-btn.demo-answer-highlight::after {
    content: "";
    position: absolute;
    inset: 2px; 
    border-radius: 6px; 
    
    /* ✅ CHANGE 1: Use your image's background color */
    background: #4E342E !important; 
    
    z-index: -1; 
    transition: background 0.2s ease;
}

/* 6. HOVER STATE: LIGHTER BACKGROUND MASK */
button.demo-answer-highlight:hover::after, 
.mcq-option-btn.demo-answer-highlight:hover::after {
    /* Lighter Gray on Hover */
    background: #6D4C41 !important; 
}

/* 7. TEXT LAYER */
button.demo-answer-highlight > *,
.mcq-option-btn.demo-answer-highlight > * {
    position: relative;
    z-index: 10;
}

/* Ensure the injected demo card looks like a real card */
.course-card-item.demo-highlight {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: 8px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: transform 0.2s;
    /* Force it to be visible if the grid was hidden */
    opacity: 1; 
    transform: translateY(0);
}
/* --- WALKTHROUGH HINT SYSTEM (Black & Yellow / No Arrows) --- */
#walkthroughHint { 
    position: fixed; 
    z-index: 200000;
    max-width: 280px;
    width: max-content;
    pointer-events: none; 
    
    /* Ensure exact positioning from JS takes effect without offset */
    transform: none !important; 
    
    /* Smooth movement */
    transition: opacity 0.3s ease, top 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), left 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    
    /* THEME: Black Background, Yellow Border */
    background: #111827 !important; /* Tailwind Gray-900 */
    border: 1px solid var(--accent-primary, #f59e0b) !important;
    color: white !important;
    
    /* Layout & Type */
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
    
    opacity: 0;
}

#walkthroughHint.visible { opacity: 1; }

#walkthroughHint { 
    position: fixed; 
    z-index: 200000;
    max-width: 280px;
    width: max-content;
    pointer-events: none; 
    
    /* 1. FORCE RESET POSITIONS */
    transform: none !important; 
    
    /* 2. FORCE THEME (Black Background, Yellow Border) */
    background: #111827 !important; /* Tailwind Gray-900 */
    border: 1px solid #f59e0b !important; /* Amber-500 */
    color: white !important;
    
    /* 3. LAYOUT */
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
    
    transition: opacity 0.3s ease, top 0.3s ease, left 0.3s ease;
    opacity: 0;
}

#walkthroughHint.visible { opacity: 1; }

/* 4. KILL ALL ARROWS & PSEUDO-ELEMENTS */
#walkthroughHint::after,
#walkthroughHint::before {
    display: none !important;
    content: none !important;
    border: none !important;
    background: transparent !important;
}

/* 5. HIDE ANY INTERNAL ICONS/SVGS */
#walkthroughHint svg {
    display: none !important;
}

/* 6. RESET TEXT CONTAINER STYLES */
/* Prevents double-boxing if the text is wrapped in a <p> tag */
#walkthroughHint p, 
#walkthroughHint div {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    margin: 0 !important;
    padding: 0 !important;
    color: white !important;
}