/* ===== PREMIUM ENHANCEMENTS - Advanced UI/UX Improvements ===== */

/* ========================================
   1. WELCOME SCREEN ENHANCEMENTS
   ======================================== */

/* Animated Particles Background */
.welcome-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--vn-gold);
    border-radius: 50%;
    opacity: 0;
    animation: particleFloat 8s infinite;
}

@keyframes particleFloat {
    0% {
        opacity: 0;
        transform: translateY(100vh) scale(0);
    }
    10% {
        opacity: 0.8;
    }
    90% {
        opacity: 0.8;
    }
    100% {
        opacity: 0;
        transform: translateY(-100vh) scale(1);
    }
}

/* Stagger particle animations */
.particle:nth-child(1) { left: 10%; animation-delay: 0s; animation-duration: 10s; }
.particle:nth-child(2) { left: 20%; animation-delay: 1s; animation-duration: 8s; }
.particle:nth-child(3) { left: 30%; animation-delay: 2s; animation-duration: 12s; }
.particle:nth-child(4) { left: 40%; animation-delay: 0.5s; animation-duration: 9s; }
.particle:nth-child(5) { left: 50%; animation-delay: 1.5s; animation-duration: 11s; }
.particle:nth-child(6) { left: 60%; animation-delay: 2.5s; animation-duration: 7s; }
.particle:nth-child(7) { left: 70%; animation-delay: 0.8s; animation-duration: 13s; }
.particle:nth-child(8) { left: 80%; animation-delay: 1.8s; animation-duration: 10s; }
.particle:nth-child(9) { left: 90%; animation-delay: 3s; animation-duration: 8s; }
.particle:nth-child(10) { left: 5%; animation-delay: 2.2s; animation-duration: 14s; }
.particle:nth-child(11) { left: 15%; animation-delay: 0.3s; animation-duration: 9s; }
.particle:nth-child(12) { left: 25%; animation-delay: 1.3s; animation-duration: 11s; }
.particle:nth-child(13) { left: 35%; animation-delay: 2.8s; animation-duration: 7s; }
.particle:nth-child(14) { left: 45%; animation-delay: 0.7s; animation-duration: 12s; }
.particle:nth-child(15) { left: 55%; animation-delay: 1.7s; animation-duration: 10s; }
.particle:nth-child(16) { left: 65%; animation-delay: 2.3s; animation-duration: 8s; }
.particle:nth-child(17) { left: 75%; animation-delay: 0.2s; animation-duration: 13s; }
.particle:nth-child(18) { left: 85%; animation-delay: 1.2s; animation-duration: 9s; }
.particle:nth-child(19) { left: 95%; animation-delay: 2.7s; animation-duration: 11s; }
.particle:nth-child(20) { left: 50%; animation-delay: 3.5s; animation-duration: 15s; }

/* Enhanced Logo Animation */
.logo-icon {
    position: relative;
    animation: logoFloat 3s ease-in-out infinite, logoGlow 4s ease-in-out infinite;
}

@keyframes logoGlow {
    0%, 100% {
        filter: drop-shadow(0 0 20px rgba(212, 175, 55, 0.3));
    }
    50% {
        filter: drop-shadow(0 0 40px rgba(212, 175, 55, 0.6));
    }
}

/* Enhanced Button Hover Effects */
.menu-buttons .btn {
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.menu-buttons .btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.menu-buttons .btn:hover::after {
    width: 300px;
    height: 300px;
}

.menu-buttons .btn:hover {
    transform: translateY(-5px) scale(1.02);
    letter-spacing: 0.05em;
}

.menu-buttons .btn:active {
    transform: translateY(-2px) scale(0.98);
}

/* Button Icon Animation */
.menu-buttons .btn svg {
    transition: transform 0.3s ease;
}

.menu-buttons .btn:hover svg {
    transform: scale(1.2) rotate(5deg);
}

/* ========================================
   2. GAME BOARD ENHANCEMENTS
   ======================================== */

/* Enhanced Board Glow */
.game-board {
    position: relative;
}

.game-board::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: linear-gradient(45deg, 
        var(--vn-gold) 0%, 
        transparent 25%, 
        var(--vn-gold) 50%, 
        transparent 75%, 
        var(--vn-gold) 100%);
    background-size: 400% 400%;
    border-radius: calc(var(--border-radius-xl) + 5px);
    z-index: -1;
    animation: borderGlow 8s ease-in-out infinite;
    opacity: 0.3;
}

@keyframes borderGlow {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* Board Space Improvements */
.board-space {
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.board-space:hover {
    z-index: 100;
    transform: scale(1.25);
}

.board-space:hover .space-icon {
    animation: iconBounce 0.5s ease;
}

@keyframes iconBounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

/* Enhanced Player Token */
.player-token {
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.player-token::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border-radius: 50%;
    background: inherit;
    opacity: 0;
    z-index: -1;
    animation: tokenRipple 2s infinite;
}

.player-token.active::before {
    opacity: 0.3;
}

@keyframes tokenRipple {
    0% {
        transform: scale(1);
        opacity: 0.3;
    }
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

/* ========================================
   3. DICE ENHANCEMENTS
   ======================================== */

.dice {
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: pointer;
}

.dice:hover {
    transform: translateY(-5px) rotateZ(5deg);
    box-shadow:
        0 12px 0 #b0b0b0,
        0 20px 30px rgba(0, 0, 0, 0.5),
        inset 0 2px 0 rgba(255, 255, 255, 0.9);
}

/* Dice dot patterns for visual enhancement */
.dice::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    background: #333;
    border-radius: 50%;
    opacity: 0.15;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* ========================================
   4. CARD & MODAL ENHANCEMENTS
   ======================================== */

/* Card Flip Animation */
.modal-card .modal-content {
    animation: cardFlipIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform-style: preserve-3d;
}

@keyframes cardFlipIn {
    0% {
        opacity: 0;
        transform: perspective(1000px) rotateY(-90deg) scale(0.9);
    }
    100% {
        opacity: 1;
        transform: perspective(1000px) rotateY(0) scale(1);
    }
}

/* Enhanced Card Type Badges */
.card-type {
    position: relative;
    overflow: hidden;
}

.card-type::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.3) 50%,
        transparent 70%
    );
    animation: cardShine 3s infinite;
}

@keyframes cardShine {
    0% { transform: translateX(-100%) rotate(45deg); }
    100% { transform: translateX(100%) rotate(45deg); }
}

/* Investment Card Enhancements */
.investment-card {
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.investment-card:hover {
    transform: translateY(-8px);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.4),
        0 0 0 2px var(--vn-gold);
}

/* ========================================
   5. PLAYER PANEL ENHANCEMENTS
   ======================================== */

/* Enhanced Current Player Display */
.current-player-display {
    position: relative;
    overflow: hidden;
}

.current-player-display::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(212, 175, 55, 0.1),
        transparent
    );
    animation: panelShimmer 4s infinite;
}

@keyframes panelShimmer {
    0% { left: -100%; }
    100% { left: 200%; }
}

/* Player Mini Card Enhancements */
.player-mini-card {
    position: relative;
    overflow: hidden;
}

.player-mini-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--vn-gold), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.player-mini-card:hover::before,
.player-mini-card.current::before {
    opacity: 1;
}

/* Player Avatar Glow */
.player-avatar,
.player-mini-avatar {
    position: relative;
}

.player-avatar::after,
.player-mini-avatar::after {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border-radius: 50%;
    background: inherit;
    opacity: 0;
    z-index: -1;
    filter: blur(8px);
    transition: opacity 0.3s ease;
}

.current-player-display:hover .player-avatar::after,
.player-mini-card:hover .player-mini-avatar::after {
    opacity: 0.5;
}

/* ========================================
   6. BUTTON MICRO-INTERACTIONS
   ======================================== */

/* Roll Dice Button */
.btn-roll {
    position: relative;
    overflow: hidden;
}

.btn-roll::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transition: left 0.5s ease;
}

.btn-roll:hover:not(:disabled)::before {
    left: 100%;
}

.btn-roll:hover:not(:disabled) {
    animation: buttonPulse 1s infinite;
}

@keyframes buttonPulse {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(212, 175, 55, 0.4);
    }
    50% {
        box-shadow: 0 4px 30px rgba(212, 175, 55, 0.6), 0 0 60px rgba(212, 175, 55, 0.2);
    }
}

/* Action Buttons */
.btn-action {
    position: relative;
    overflow: hidden;
}

.btn-action::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.4s ease;
}

.btn-action:hover:not(:disabled)::after {
    transform: translateX(100%);
}

/* ========================================
   7. FINANCIAL STATEMENT ENHANCEMENTS
   ======================================== */

/* Animated Progress for Cashflow */
.fs-cashflow {
    position: relative;
    overflow: hidden;
}

.fs-cashflow::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.1) 50%,
        transparent 70%
    );
    animation: cashflowGlow 3s infinite;
}

@keyframes cashflowGlow {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Section Entry Animation */
.fs-section {
    animation: sectionFadeIn 0.5s ease-out forwards;
    opacity: 0;
}

.fs-section:nth-child(1) { animation-delay: 0.1s; }
.fs-section:nth-child(2) { animation-delay: 0.2s; }
.fs-section:nth-child(3) { animation-delay: 0.3s; }
.fs-section:nth-child(4) { animation-delay: 0.4s; }

@keyframes sectionFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   8. TOAST NOTIFICATION ENHANCEMENTS
   ======================================== */

.toast {
    position: relative;
    overflow: hidden;
}

.toast::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, currentColor, transparent);
    animation: toastProgress 3s linear forwards;
}

@keyframes toastProgress {
    from { transform: scaleX(1); }
    to { transform: scaleX(0); }
}

/* ========================================
   9. PROFESSION CARD ENHANCEMENTS
   ======================================== */

.profession-card {
    position: relative;
    overflow: hidden;
}

.profession-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(
        from 0deg,
        transparent 0deg,
        rgba(212, 175, 55, 0.1) 60deg,
        transparent 120deg
    );
    opacity: 0;
    transition: opacity 0.3s ease;
    animation: professionRotate 10s linear infinite paused;
}

.profession-card:hover::after {
    opacity: 1;
    animation-play-state: running;
}

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

/* Selected Profession Celebration */
.profession-card.selected {
    animation: selectedCelebrate 0.5s ease-out;
}

@keyframes selectedCelebrate {
    0% { transform: scale(1); }
    30% { transform: scale(1.05); }
    60% { transform: scale(0.98); }
    100% { transform: scale(1); }
}

/* ========================================
   10. VICTORY SCREEN ENHANCEMENTS
   ======================================== */

.modal-victory .victory-content {
    position: relative;
}

/* Confetti Effect */
.modal-victory::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 20%, var(--vn-gold) 2px, transparent 2px),
        radial-gradient(circle at 80% 40%, var(--success-color) 2px, transparent 2px),
        radial-gradient(circle at 40% 70%, var(--accent-purple) 2px, transparent 2px),
        radial-gradient(circle at 70% 90%, var(--vn-gold-light) 2px, transparent 2px);
    background-size: 100px 100px;
    animation: confettiFloat 3s linear infinite;
    opacity: 0.5;
    pointer-events: none;
}

@keyframes confettiFloat {
    from { transform: translateY(0); }
    to { transform: translateY(100px); }
}

/* Victory Icon Enhancement */
.victory-icon {
    animation: 
        victoryFloat 2s ease-in-out infinite,
        victoryGlow 1.5s ease-in-out infinite alternate;
}

@keyframes victoryGlow {
    from {
        filter: drop-shadow(0 0 20px rgba(212, 175, 55, 0.5));
    }
    to {
        filter: drop-shadow(0 0 50px rgba(212, 175, 55, 0.8));
    }
}

/* ========================================
   11. LOADING STATES
   ======================================== */

/* Skeleton Loading Enhancement */
.skeleton {
    position: relative;
    overflow: hidden;
}

.skeleton::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    animation: skeletonShimmer 1.5s infinite;
}

@keyframes skeletonShimmer {
    from { left: -100%; }
    to { left: 100%; }
}

/* ========================================
   12. SCROLLBAR ENHANCEMENTS
   ======================================== */

/* Custom Scrollbar with Glow on Hover */
::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--vn-gold), var(--vn-gold-dark));
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

/* ========================================
   13. FOCUS STATES FOR ACCESSIBILITY
   ======================================== */

.btn:focus-visible {
    outline: none;
    box-shadow: 
        0 0 0 3px rgba(212, 175, 55, 0.5),
        0 4px 15px rgba(212, 175, 55, 0.3);
}

input:focus-visible,
select:focus-visible {
    outline: none;
    border-color: var(--vn-gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
}

/* ========================================
   14. SMOOTH NUMBER ANIMATIONS
   ======================================== */

.money-value,
.quick-stat-value,
.fs-item-value {
    transition: all 0.3s ease-out;
}

.money-value.changing,
.quick-stat-value.changing {
    animation: numberPop 0.3s ease;
}

@keyframes numberPop {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

/* ========================================
   15. RESPONSIVE ENHANCEMENTS
   ======================================== */

@media (max-width: 768px) {
    /* Reduce animation complexity on mobile */
    .welcome-particles .particle {
        display: none;
    }
    
    .game-board::before {
        display: none;
    }
    
    /* Keep essential animations */
    .btn-roll:hover:not(:disabled) {
        animation: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    /* Respect user preferences */
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ========================================
   16. ENHANCED MODAL CARDS
   ======================================== */

/* Investment Card Premium Hover */
.investment-card {
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
}

.investment-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, 
        rgba(255,255,255,0.1) 0%, 
        transparent 50%,
        rgba(255,255,255,0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 1;
}

.investment-card:hover::before {
    opacity: 1;
}

/* Card Stats Animation */
.investment-stat {
    transition: all 0.3s ease;
}

.investment-stat:hover {
    background: rgba(212, 175, 55, 0.15);
    transform: scale(1.05);
}

.investment-stat-value {
    transition: all 0.3s ease;
}

.investment-card:hover .investment-stat-value.positive {
    text-shadow: 0 0 10px var(--success-color);
}

/* Card Icon Enhanced Animation */
.card-icon {
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-card:hover .card-icon {
    transform: scale(1.1) rotate(5deg);
}

/* ========================================
   17. ENHANCED DICE AREA
   ======================================== */

.dice-container {
    perspective: 1000px;
}

.dice {
    position: relative;
    transform-style: preserve-3d;
}

.dice::before {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 10px;
    background: radial-gradient(ellipse, rgba(0,0,0,0.3), transparent);
    border-radius: 50%;
    filter: blur(4px);
    transition: all 0.3s ease;
}

.dice:hover::before {
    width: 90%;
    bottom: -15px;
}

/* Dice Dots Pattern */
.dice[data-value="1"]::after { content: '⚀'; }
.dice[data-value="2"]::after { content: '⚁'; }
.dice[data-value="3"]::after { content: '⚂'; }
.dice[data-value="4"]::after { content: '⚃'; }
.dice[data-value="5"]::after { content: '⚄'; }
.dice[data-value="6"]::after { content: '⚅'; }

/* ========================================
   18. PROGRESS INDICATORS
   ======================================== */

/* Escape Progress Ring */
.escape-progress {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto;
}

.escape-progress svg {
    transform: rotate(-90deg);
}

.escape-progress-circle {
    fill: none;
    stroke: var(--bg-tertiary);
    stroke-width: 6;
}

.escape-progress-value {
    fill: none;
    stroke: var(--vn-gold);
    stroke-width: 6;
    stroke-linecap: round;
    stroke-dasharray: 220;
    stroke-dashoffset: 220;
    transition: stroke-dashoffset 1s ease-out;
}

.escape-progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1rem;
    font-weight: 700;
    color: var(--vn-gold);
}

/* ========================================
   19. PLAYER TURN INDICATOR
   ======================================== */

.current-turn-indicator {
    position: relative;
}

.current-turn-indicator::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, 
        transparent, 
        var(--vn-gold), 
        transparent);
    animation: turnIndicatorSlide 2s linear infinite;
}

@keyframes turnIndicatorSlide {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* ========================================
   20. MONEY COUNTER ANIMATION
   ======================================== */

.money-counter {
    display: inline-block;
    font-variant-numeric: tabular-nums;
}

.money-counter.updating {
    animation: moneyUpdate 0.5s ease;
}

@keyframes moneyUpdate {
    0% { transform: scale(1); color: inherit; }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); color: inherit; }
}

.money-counter.increase {
    animation: moneyIncrease 0.5s ease;
}

@keyframes moneyIncrease {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); color: var(--success-color); }
    100% { transform: scale(1); }
}

.money-counter.decrease {
    animation: moneyDecrease 0.5s ease;
}

@keyframes moneyDecrease {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); color: var(--danger-color); }
    100% { transform: scale(1); }
}

/* ========================================
   21. GAMIFICATION BADGES
   ======================================== */

.achievement-badge {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--bg-tertiary), var(--bg-secondary));
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
}

.achievement-badge.unlocked {
    border-color: var(--vn-gold);
    background: linear-gradient(135deg, 
        rgba(212, 175, 55, 0.2), 
        rgba(212, 175, 55, 0.1));
    animation: badgeUnlock 0.6s ease;
}

@keyframes badgeUnlock {
    0% { transform: scale(0) rotate(-180deg); }
    50% { transform: scale(1.2) rotate(10deg); }
    100% { transform: scale(1) rotate(0deg); }
}

.achievement-badge:hover {
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
}

.achievement-badge .badge-icon {
    font-size: 1.8rem;
}

.achievement-badge.locked {
    filter: grayscale(1);
    opacity: 0.5;
}

/* ========================================
   22. NOTIFICATION ENHANCEMENTS
   ======================================== */

.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--danger-color);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: notificationPulse 2s infinite;
}

@keyframes notificationPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* ========================================
   23. SETUP SCREEN ENHANCEMENTS
   ======================================== */

.count-btn {
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}

.count-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(212, 175, 55, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
}

.count-btn:hover::after {
    width: 150%;
    height: 150%;
}

.count-btn.active {
    animation: countSelect 0.4s ease;
}

@keyframes countSelect {
    0% { transform: scale(1); }
    50% { transform: scale(0.9); }
    100% { transform: scale(1); }
}

/* Player Name Input Enhancements */
.player-name-input input {
    transition: all 0.3s ease;
}

.player-name-input input:focus {
    transform: scale(1.02);
}

.player-name-input input:valid:not(:placeholder-shown) {
    border-color: var(--success-color);
}

/* ========================================
   24. GAME HEADER ENHANCEMENTS  
   ======================================== */

.game-title {
    position: relative;
}

.game-title::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent, 
        var(--vn-gold), 
        transparent);
    opacity: 0.5;
}

.header-buttons .btn-icon {
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.header-buttons .btn-icon:hover {
    transform: scale(1.2) rotate(10deg);
    color: var(--vn-gold);
}

/* ========================================
   25. LOADING STATES PREMIUM
   ======================================== */

.skeleton-text {
    height: 1em;
    background: linear-gradient(90deg, 
        var(--bg-tertiary) 25%, 
        var(--bg-secondary) 50%, 
        var(--bg-tertiary) 75%);
    background-size: 200% 100%;
    animation: skeletonShimmer 1.5s infinite;
    border-radius: 4px;
}

.skeleton-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(90deg, 
        var(--bg-tertiary) 25%, 
        var(--bg-secondary) 50%, 
        var(--bg-tertiary) 75%);
    background-size: 200% 100%;
    animation: skeletonShimmer 1.5s infinite;
}

.skeleton-card {
    height: 120px;
    background: linear-gradient(90deg, 
        var(--bg-tertiary) 25%, 
        var(--bg-secondary) 50%, 
        var(--bg-tertiary) 75%);
    background-size: 200% 100%;
    animation: skeletonShimmer 1.5s infinite;
    border-radius: var(--border-radius-lg);
}
