/* File: /public/css/components/wheel-app-components.css */
/* Wryon's Wonderwheel - React Component Styles */
/* v1.0.0 - Extracted from wryon-app.js v13.12.1 */
/*
 * EXTRACTED COMPONENTS:
 * - Trivia Mode Controls
 * - Win Popup Modal
 * - Thought Bubble (Mobile Comments)
 * - Chat Overlay (Mobile)
 * - Mobile Floating Chat Button
 * - Mobile Wallet Prompt
 * - Spin Count Selector & Mobile Dropdown
 * - Animations (confetti, flash, pulse)
 *
 * LOAD ORDER:
 * Load after wheel.css and before theme CSS
 */

/* =================================================================
   TRIVIA MODE CONTROLS
   ================================================================= */
.trivia-controls {
    padding: 12px;
    background: rgba(0, 50, 0, 0.4);
    border-radius: 12px;
    margin: 8px 0;
    border: 1px solid rgba(57, 255, 20, 0.3);
}

.trivia-score {
    text-align: center;
    font-family: 'Cinzel', serif;
    color: #d4af37;
    font-size: 14px;
    margin-bottom: 10px;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

.trivia-choices {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
}

.trivia-choice {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: linear-gradient(135deg, rgba(0, 80, 0, 0.8), rgba(0, 40, 0, 0.9));
    border: 1px solid rgba(57, 255, 20, 0.4);
    border-radius: 8px;
    color: #e0e0e0;
    font-family: 'Cinzel', serif;
    font-size: 13px;
    cursor: pointer;
    text-align: left;
    -webkit-tap-highlight-color: transparent;
    outline: none;
}

.trivia-choice:active:not(:disabled) {
    background: linear-gradient(135deg, rgba(0, 100, 0, 0.95), rgba(0, 60, 0, 1));
    border-color: #39ff14;
    box-shadow: 0 0 12px rgba(57, 255, 20, 0.4);
}

.trivia-choice:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.choice-letter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #d4af37, #b8962e);
    color: #0a200a;
    border-radius: 50%;
    font-weight: bold;
    font-size: 12px;
    flex-shrink: 0;
}

.trivia-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.trivia-hint-btn {
    flex: 1;
    padding: 10px 16px;
    background: linear-gradient(135deg, rgba(100, 80, 0, 0.8), rgba(60, 50, 0, 0.9));
    border: 1px solid rgba(212, 175, 55, 0.5);
    border-radius: 8px;
    color: #d4af37;
    font-family: 'Cinzel', serif;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.trivia-hint-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, rgba(120, 100, 0, 0.9), rgba(80, 60, 0, 0.95));
    border-color: #d4af37;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
}

.trivia-hint-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.trivia-exit-btn {
    flex: 1;
    padding: 10px 16px;
    background: linear-gradient(135deg, rgba(100, 30, 30, 0.8), rgba(60, 20, 20, 0.9));
    border: 1px solid rgba(255, 100, 100, 0.5);
    border-radius: 8px;
    color: #ff6b6b;
    font-family: 'Cinzel', serif;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.trivia-exit-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, rgba(120, 40, 40, 0.9), rgba(80, 30, 30, 0.95));
    border-color: #ff6b6b;
    box-shadow: 0 0 15px rgba(255, 100, 100, 0.3);
}

.trivia-exit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* =================================================================
   TRIVIA HEADER BUTTON
   ================================================================= */
@keyframes triviaPulse {
    0%, 100% {
        box-shadow: 0 0 5px rgba(212, 175, 55, 0.4), 0 0 10px rgba(212, 175, 55, 0.2);
        border-color: rgba(212, 175, 55, 0.5);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 12px rgba(212, 175, 55, 0.7), 0 0 20px rgba(212, 175, 55, 0.4), 0 0 30px rgba(212, 175, 55, 0.2);
        border-color: #d4af37;
        transform: scale(1.05);
    }
}

.trivia-header-btn {
    padding: 4px 10px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.3), rgba(100, 80, 0, 0.4));
    border: 2px solid rgba(212, 175, 55, 0.5);
    border-radius: 6px;
    color: #d4af37;
    font-family: 'Cinzel', serif;
    font-size: 11px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-left: 8px;
    animation: triviaPulse 2s ease-in-out infinite;
}

.trivia-header-btn:hover {
    animation: none;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.6), rgba(100, 80, 0, 0.7));
    border-color: #d4af37;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.6);
    transform: scale(1.05);
}

.trivia-header-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    animation: none;
}

.new-chat-header-btn {
    padding: 4px 10px;
    background: rgba(100, 100, 100, 0.2);
    border: 1px solid rgba(150, 150, 150, 0.3);
    border-radius: 6px;
    color: #aaa;
    font-family: 'Cinzel', serif;
    font-size: 11px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
}

.new-chat-header-btn:hover {
    background: rgba(57, 255, 20, 0.15);
    border-color: rgba(57, 255, 20, 0.3);
    color: #39ff14;
}

/* =================================================================
   WIN FLASH EFFECTS
   ================================================================= */
.win-flash {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle, rgba(57, 255, 20, 0.3) 0%, transparent 70%);
    pointer-events: none;
    z-index: 1500;
    animation: flashPulse 0.5s ease-out forwards;
}

.jackpot-flash {
    background: radial-gradient(circle, rgba(212, 175, 55, 0.4) 0%, transparent 70%);
}

@keyframes flashPulse {
    0% { opacity: 0; }
    30% { opacity: 1; }
    100% { opacity: 0; }
}

/* =================================================================
   FREE SPIN BADGE
   ================================================================= */
.free-spin-badge {
    background: linear-gradient(135deg, #d4af37, #b8962e);
    color: #0a200a;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.65em;
    font-weight: bold;
    margin-left: 5px;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* =================================================================
   SPIN TYPE TOOLTIPS
   ================================================================= */
.spin-btn-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: #e0e0e0;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 11px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    z-index: 100;
    border: 1px solid rgba(57, 255, 20, 0.3);
}

.spin-btn:hover .spin-btn-tooltip {
    opacity: 1;
    visibility: visible;
    bottom: calc(100% + 5px);
}

/* =================================================================
   PULSING BUY SPINS BUTTON
   ================================================================= */
@keyframes buySpinsPulse {
    0%, 100% {
        box-shadow: 0 0 5px rgba(57, 255, 20, 0.5), 0 0 10px rgba(57, 255, 20, 0.3);
        border-color: rgba(57, 255, 20, 0.6);
    }
    50% {
        box-shadow: 0 0 15px rgba(57, 255, 20, 0.8), 0 0 25px rgba(57, 255, 20, 0.5), 0 0 35px rgba(57, 255, 20, 0.3);
        border-color: #39ff14;
    }
}

@keyframes buySpinsColorShift {
    0%, 100% {
        background: linear-gradient(135deg, rgba(57, 255, 20, 0.15), rgba(0, 100, 0, 0.3));
    }
    25% {
        background: linear-gradient(135deg, rgba(212, 175, 55, 0.15), rgba(100, 80, 0, 0.3));
    }
    50% {
        background: linear-gradient(135deg, rgba(57, 255, 20, 0.2), rgba(0, 150, 0, 0.35));
    }
    75% {
        background: linear-gradient(135deg, rgba(0, 200, 100, 0.15), rgba(0, 80, 50, 0.3));
    }
}

.buy-spins-btn-animated {
    animation: buySpinsPulse 2s ease-in-out infinite, buySpinsColorShift 4s ease-in-out infinite;
    border: 2px solid rgba(57, 255, 20, 0.6) !important;
    font-weight: bold !important;
}

.buy-spins-btn-animated:hover {
    animation: none;
    background: var(--wryon-green) !important;
    color: #000 !important;
    border-color: var(--wryon-green) !important;
    box-shadow: 0 0 25px rgba(57,255,20,0.7) !important;
}

/* =================================================================
   VALUE CHANGE ANIMATIONS
   ================================================================= */
@keyframes valueFlashGreen {
    0% { transform: scale(1); text-shadow: 0 0 15px var(--wryon-green); }
    25% { transform: scale(1.3); text-shadow: 0 0 30px var(--wryon-green), 0 0 50px var(--wryon-green); }
    50% { transform: scale(1.1); text-shadow: 0 0 40px var(--wryon-green); }
    100% { transform: scale(1); text-shadow: 0 0 15px var(--wryon-green); }
}

@keyframes valueFlashGold {
    0% { transform: scale(1); text-shadow: 0 0 15px #d4af37; }
    25% { transform: scale(1.3); text-shadow: 0 0 30px #d4af37, 0 0 50px #d4af37; }
    50% { transform: scale(1.1); text-shadow: 0 0 40px #d4af37; }
    100% { transform: scale(1); text-shadow: 0 0 15px #d4af37; }
}

@keyframes cardFlash {
    0% { box-shadow: 0 8px 32px rgba(0,0,0,0.5); }
    25% { box-shadow: 0 0 40px rgba(57, 255, 20, 0.8), 0 0 60px rgba(57, 255, 20, 0.5); }
    50% { box-shadow: 0 0 30px rgba(57, 255, 20, 0.6); }
    100% { box-shadow: 0 8px 32px rgba(0,0,0,0.5); }
}

.value-flash-green {
    animation: valueFlashGreen 0.6s ease-out;
}

.value-flash-gold {
    animation: valueFlashGold 0.6s ease-out;
}

.card-flash {
    animation: cardFlash 0.6s ease-out;
}

/* Continuous subtle pulse for values */
@keyframes valuePulseGreen {
    0%, 100% { text-shadow: 0 0 15px var(--wryon-green); }
    50% { text-shadow: 0 0 25px var(--wryon-green), 0 0 35px var(--wryon-green); }
}

/* =================================================================
   WIN POPUP MODAL
   ================================================================= */
.win-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    backdrop-filter: blur(8px);
}

.win-popup {
    background: linear-gradient(145deg, rgba(10, 40, 10, 0.98), rgba(5, 20, 5, 0.99));
    border: 3px solid #39ff14;
    border-radius: 20px;
    padding: 30px 40px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 0 60px rgba(57, 255, 20, 0.5), 0 0 100px rgba(57, 255, 20, 0.3);
    animation: popupAppear 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}

.win-popup.jackpot {
    border-color: #d4af37;
    box-shadow: 0 0 80px rgba(212, 175, 55, 0.6), 0 0 120px rgba(212, 175, 55, 0.4);
}

@keyframes popupAppear {
    0% { transform: scale(0.5); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.win-popup-icon {
    width: 200px;
    height: 200px;
    margin-bottom: 15px;
    animation: iconPop 0.5s ease-out 0.2s both;
    object-fit: contain;
}

@keyframes iconPop {
    0% { transform: scale(0) rotate(-30deg); }
    50% { transform: scale(1.3) rotate(10deg); }
    100% { transform: scale(1) rotate(0deg); }
}

.win-popup-title {
    font-family: 'Cinzel', serif;
    font-size: 28px;
    color: #39ff14;
    margin-bottom: 10px;
    text-shadow: 0 0 20px rgba(57, 255, 20, 0.6);
}

.win-popup.jackpot .win-popup-title {
    color: #d4af37;
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.6);
}

.win-popup-prize {
    font-family: 'Cinzel', serif;
    font-size: 36px;
    color: #fff;
    margin-bottom: 20px;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
}

.win-popup-message {
    color: #ccc;
    font-size: 14px;
    margin-bottom: 25px;
    line-height: 1.5;
}

.win-popup-close {
    padding: 12px 40px;
    background: linear-gradient(135deg, #39ff14, #00cc00);
    border: none;
    border-radius: 8px;
    color: #0a200a;
    font-family: 'Cinzel', serif;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
}

.win-popup-close:hover {
    transform: scale(1.05);
    box-shadow: 0 0 25px rgba(57, 255, 20, 0.6);
}

/* Fireworks particles */
.firework {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    animation: fireworkBurst 1s ease-out forwards;
}

@keyframes fireworkBurst {
    0% { transform: translate(0, 0) scale(1); opacity: 1; }
    100% { transform: translate(var(--tx), var(--ty)) scale(0); opacity: 0; }
}

/* =================================================================
   CONFETTI
   ================================================================= */
.confetti-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2001;
    overflow: hidden;
}

.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    animation: confettiFall 3s ease-out forwards;
}

@keyframes confettiFall {
    0% { 
        transform: translateY(-100px) rotate(0deg);
        opacity: 1;
    }
    100% { 
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

/* =================================================================
   SPIN COUNT SELECTOR - Multiplier Icon Styling
   ================================================================= */
.selector-option .option-icon {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 1px;
}

.selector-option .icon-number {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 700;
    color: #5fff3a;
    text-shadow: 
        0 0 2px #000,
        0 0 4px #000,
        0 0 8px rgba(57, 255, 20, 0.8),
        0 0 15px rgba(57, 255, 20, 0.5);
}

.selector-option .icon-mult {
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 700;
    color: #5fff3a;
    text-shadow: 
        0 0 2px #000,
        0 0 4px #000,
        0 0 8px rgba(57, 255, 20, 0.6);
    opacity: 0.9;
}

.selector-option.active .icon-number,
.selector-option.active .icon-mult {
    text-shadow: 
        0 0 2px #000,
        0 0 4px #000,
        0 0 12px rgba(57, 255, 20, 1),
        0 0 25px rgba(57, 255, 20, 0.7);
}

/* =================================================================
   MOBILE SPIN COUNT DROPDOWN
   ================================================================= */
.mobile-spin-dropdown {
    display: none;
}

@media (max-width: 768px) {
    /* Hide desktop selector on mobile */
    .spin-type-selector {
        display: none !important;
    }
    
    /* Make wheel-area the positioning context */
    .wheel-area {
        position: relative;
    }
    
    /* Show mobile dropdown - positioned to left of wheel */
    .mobile-spin-dropdown {
        display: flex;
        position: absolute;
        left: -5px;
        top: 50%;
        transform: translateY(-50%);
        z-index: 100;
    }
    
    .mobile-spin-dropdown select {
        appearance: none;
        -webkit-appearance: none;
        background: linear-gradient(135deg, rgba(10, 40, 10, 0.95), rgba(5, 25, 5, 0.98));
        border: 2px solid rgba(57, 255, 20, 0.5);
        border-radius: 10px;
        color: #5fff3a;
        font-family: 'Cinzel', serif;
        font-size: 0.7rem;
        font-weight: 700;
        padding: 8px 24px 8px 8px;
        cursor: pointer;
        text-shadow: 0 0 2px #000, 0 0 4px #000, 0 0 8px rgba(57, 255, 20, 0.6);
        box-shadow: 
            0 4px 15px rgba(0, 0, 0, 0.5),
            0 0 15px rgba(57, 255, 20, 0.2);
        min-width: 85px;
        writing-mode: horizontal-tb;
    }
    
    .mobile-spin-dropdown::after {
        content: '▼';
        position: absolute;
        right: 8px;
        top: 50%;
        transform: translateY(-50%);
        color: #5fff3a;
        font-size: 0.5rem;
        pointer-events: none;
        text-shadow: 0 0 4px rgba(57, 255, 20, 0.8);
    }
    
    .mobile-spin-dropdown select:focus {
        outline: none;
        border-color: #5fff3a;
        box-shadow: 
            0 4px 15px rgba(0, 0, 0, 0.5),
            0 0 25px rgba(57, 255, 20, 0.4);
    }
    
    .mobile-spin-dropdown select option {
        background: #0a200a;
        color: #5fff3a;
        padding: 10px;
    }
}

/* =================================================================
   THOUGHT BUBBLE - Mobile Comments
   ================================================================= */
.thought-bubble-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    pointer-events: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.5);
    animation: bubbleOverlayAppear 0.3s ease-out;
}

@keyframes bubbleOverlayAppear {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

.thought-bubble {
    background: linear-gradient(145deg, rgba(10, 40, 10, 0.98), rgba(5, 25, 5, 0.99));
    border: 2px solid #39ff14;
    border-radius: 20px;
    padding: 20px 24px;
    max-width: 320px;
    min-width: 200px;
    text-align: center;
    box-shadow: 0 0 30px rgba(57, 255, 20, 0.4), 0 8px 32px rgba(0,0,0,0.6);
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    animation: bubbleAppear 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Expanded state - larger, more readable */
.thought-bubble.expanded {
    max-width: 90vw;
    max-height: 70vh;
    overflow-y: auto;
    cursor: default;
    padding: 24px 28px;
}

.thought-bubble::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-top: 20px solid #39ff14;
}

.thought-bubble::before {
    content: '';
    position: absolute;
    bottom: -16px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-top: 16px solid rgba(10, 40, 10, 0.98);
    z-index: 1;
}

/* Hide tail when expanded */
.thought-bubble.expanded::after,
.thought-bubble.expanded::before {
    display: none;
}

.thought-bubble-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-bottom: 10px;
    border: 2px solid #39ff14;
    box-shadow: 0 0 15px rgba(57, 255, 20, 0.5);
}

.thought-bubble.expanded .thought-bubble-avatar {
    width: 60px;
    height: 60px;
}

.thought-bubble-text {
    color: #e0e0e0;
    font-family: 'Cinzel', serif;
    font-size: 14px;
    line-height: 1.5;
}

.thought-bubble.expanded .thought-bubble-text {
    font-size: 16px;
    line-height: 1.6;
    text-align: left;
}

.thought-bubble-text strong {
    color: #39ff14;
}

.thought-bubble-hint {
    font-size: 11px;
    color: #888;
    margin-top: 12px;
    font-style: italic;
}

.thought-bubble-actions {
    display: flex;
    gap: 12px;
    margin-top: 16px;
    justify-content: center;
}

.thought-bubble-chat-btn {
    background: linear-gradient(135deg, #39ff14, #00cc00);
    border: none;
    color: #0a200a;
    padding: 12px 20px;
    border-radius: 10px;
    font-family: 'Cinzel', serif;
    font-weight: bold;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.thought-bubble-chat-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(57, 255, 20, 0.5);
}

.thought-bubble-close-btn {
    background: rgba(100, 100, 100, 0.3);
    border: 1px solid #666;
    color: #aaa;
    padding: 12px 20px;
    border-radius: 10px;
    font-family: 'Cinzel', serif;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.thought-bubble-close-btn:hover {
    background: rgba(150, 150, 150, 0.3);
    border-color: #999;
    color: #ccc;
}

@keyframes bubbleAppear {
    0% { opacity: 0; transform: scale(0.8); }
    100% { opacity: 1; transform: scale(1); }
}

@keyframes bubbleFadeOut {
    0% { opacity: 1; }
    100% { opacity: 0; }
}

.thought-bubble-container.fading {
    animation: bubbleFadeOut 0.3s ease-out forwards;
}

/* =================================================================
   FULL-SCREEN CHAT OVERLAY (Mobile)
   ================================================================= */
.chat-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(5, 15, 5, 0.98);
    z-index: 10001;
    display: flex;
    flex-direction: column;
    animation: overlaySlideUp 0.3s ease-out;
}

@keyframes overlaySlideUp {
    0% { transform: translateY(100%); }
    100% { transform: translateY(0); }
}

.chat-overlay-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: rgba(10, 30, 10, 0.9);
    border-bottom: 1px solid rgba(57, 255, 20, 0.3);
}

.chat-overlay-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chat-overlay-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #39ff14;
}

.chat-overlay-name {
    font-family: 'Cinzel', serif;
    color: #39ff14;
    font-size: 18px;
}

.chat-overlay-close {
    background: rgba(196, 30, 58, 0.3);
    border: 1px solid #c41e3a;
    color: #ff6b6b;
    padding: 8px 16px;
    border-radius: 8px;
    font-family: 'Cinzel', serif;
    cursor: pointer;
    transition: all 0.2s;
}

.chat-overlay-close:hover {
    background: rgba(196, 30, 58, 0.5);
}

.chat-overlay-newchat {
    background: rgba(100, 100, 100, 0.3);
    border: 1px solid rgba(150, 150, 150, 0.4);
    color: #aaa;
    padding: 8px 14px;
    border-radius: 8px;
    font-family: 'Cinzel', serif;
    cursor: pointer;
    transition: all 0.2s;
}

.chat-overlay-newchat:hover {
    background: rgba(57, 255, 20, 0.15);
    border-color: rgba(57, 255, 20, 0.3);
    color: #39ff14;
}

.chat-overlay-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 16px;
    overflow: hidden;
}

.chat-overlay-messages {
    flex: 1;
    overflow-y: auto;
    margin-bottom: 12px;
    padding-right: 8px;
}

.chat-overlay-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
    padding: 8px 0;
}

.chat-overlay-suggestion {
    background: rgba(57, 255, 20, 0.1);
    border: 1px solid rgba(57, 255, 20, 0.3);
    color: #a0d0a0;
    padding: 8px 14px;
    border-radius: 16px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}

.chat-overlay-suggestion:hover {
    background: rgba(57, 255, 20, 0.2);
    border-color: #39ff14;
}

.chat-overlay-input-row {
    display: flex;
    gap: 10px;
}

.chat-overlay-input {
    flex: 1;
    background: rgba(10, 30, 10, 0.8);
    border: 1px solid rgba(57, 255, 20, 0.3);
    border-radius: 12px;
    padding: 14px 18px;
    color: #e0e0e0;
    font-size: 15px;
    outline: none;
}

.chat-overlay-input:focus {
    border-color: #39ff14;
    box-shadow: 0 0 10px rgba(57, 255, 20, 0.3);
}

.chat-overlay-send {
    background: linear-gradient(135deg, #39ff14, #00cc00);
    border: none;
    color: #0a200a;
    padding: 14px 24px;
    border-radius: 12px;
    font-family: 'Cinzel', serif;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
}

.chat-overlay-send:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(57, 255, 20, 0.5);
}

.chat-overlay-send:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* =================================================================
   MOBILE FLOATING CHAT BUTTON
   v13.11.0: Redesigned to match shared-chat.js style
   ================================================================= */
.wheel-mobile-chat-btn {
    display: none; /* Hidden on desktop */
}

@media (max-width: 768px) {
    .wheel-mobile-chat-btn {
        display: flex;
        position: fixed;
        bottom: calc(20px + env(safe-area-inset-bottom, 0px));
        right: 16px;
        z-index: 9000;
        flex-direction: column;
        align-items: center;
        gap: 4px;
        background: none;
        border: none;
        cursor: pointer;
        padding: 0;
    }
    
    .wheel-mobile-chat-btn .chat-btn-icon {
        width: 56px;
        height: 56px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        background: linear-gradient(135deg, rgba(57,255,20,0.2), rgba(10,30,10,0.95));
        border: 2px solid rgba(57,255,20,0.6);
        box-shadow: 
            0 4px 20px rgba(0,0,0,0.5),
            0 0 20px rgba(57,255,20,0.3);
        transition: all 0.3s ease;
        overflow: hidden;
        animation: wheelChatBtnPulse 3s ease-in-out infinite;
    }
    
    .wheel-mobile-chat-btn .chat-btn-icon img {
        width: 90%;
        height: 90%;
        border-radius: 50%;
        object-fit: cover;
    }
    
    .wheel-mobile-chat-btn .chat-btn-label {
        font-family: 'Cinzel', Georgia, serif;
        font-size: 0.65rem;
        color: #39ff14;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        text-shadow: 0 1px 3px rgba(0,0,0,0.8);
    }
    
    .wheel-mobile-chat-btn:active .chat-btn-icon {
        transform: scale(0.95);
        border-color: #39ff14;
        box-shadow: 
            0 2px 10px rgba(0,0,0,0.5),
            0 0 30px rgba(57,255,20,0.5);
    }
    
    /* Pulse animation for attention */
    @keyframes wheelChatBtnPulse {
        0%, 100% { box-shadow: 0 4px 20px rgba(0,0,0,0.5), 0 0 20px rgba(57,255,20,0.3); }
        50% { box-shadow: 0 4px 20px rgba(0,0,0,0.5), 0 0 30px rgba(57,255,20,0.5); }
    }
}

/* =================================================================
   MOBILE WALLET PROMPT
   ================================================================= */
.wallet-prompt-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.wallet-prompt {
    background: linear-gradient(145deg, rgba(10, 40, 10, 0.98), rgba(5, 25, 5, 0.99));
    border: 2px solid #39ff14;
    border-radius: 20px;
    padding: 30px;
    max-width: 350px;
    text-align: center;
    box-shadow: 0 0 50px rgba(57, 255, 20, 0.3);
}

.wallet-prompt h3 {
    color: #39ff14;
    font-family: 'Cinzel', serif;
    font-size: 22px;
    margin-bottom: 15px;
}

.wallet-prompt p {
    color: #a0a0a0;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 20px;
}

.wallet-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.wallet-option-btn {
    padding: 14px 20px;
    border-radius: 12px;
    font-family: 'Cinzel', serif;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid;
}

.wallet-option-btn.metamask {
    background: linear-gradient(135deg, rgba(245, 133, 66, 0.2), rgba(245, 133, 66, 0.1));
    border-color: #f58542;
    color: #f58542;
}

.wallet-option-btn.coinbase {
    background: linear-gradient(135deg, rgba(0, 82, 255, 0.2), rgba(0, 82, 255, 0.1));
    border-color: #0052ff;
    color: #4d8bff;
}

.wallet-option-btn.browser {
    background: linear-gradient(135deg, rgba(57, 255, 20, 0.2), rgba(57, 255, 20, 0.1));
    border-color: #39ff14;
    color: #39ff14;
}

.wallet-option-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.wallet-prompt-close {
    background: transparent;
    border: 1px solid #666;
    color: #888;
    padding: 10px 30px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.wallet-prompt-close:hover {
    border-color: #999;
    color: #bbb;
}