/**
 * Heartbeat Games - Shared UI Components
 * Sistema de diseño gaming compartido entre todos los juegos/perfiles
 */

/* ========== CSS VARIABLES ========== */
:root {
    /* Game Colors */
    --game-green-light: #8bef47;
    --game-green: #5ec722;
    --game-green-dark: #3d9915;
    
    --game-gold-light: #ffd700;
    --game-gold: #ffaa00;
    --game-gold-dark: #cc8800;
    
    --game-red-light: #ff6b6b;
    --game-red: #ee4444;
    --game-red-dark: #cc2222;
    
    --game-blue-light: #6bb8ff;
    --game-blue: #4488ee;
    --game-blue-dark: #2266cc;
    
    --game-purple-light: #b388ff;
    --game-purple: #7c4dff;
    --game-purple-dark: #5e35b1;
    
    --game-orange-light: #ffab40;
    --game-orange: #ff6d00;
    --game-orange-dark: #e65100;
    
    /* Theme colors (overridable per game) */
    --theme-primary: var(--game-green);
    --theme-primary-light: var(--game-green-light);
    --theme-primary-dark: var(--game-green-dark);
    --theme-accent: var(--game-gold);
    
    /* UI Colors */
    --ui-bg-dark: rgba(25, 30, 40, 0.98);
    --ui-bg-medium: rgba(50, 60, 75, 0.95);
    --ui-bg-light: rgba(75, 85, 100, 0.9);
    --ui-border: rgba(130, 140, 160, 0.5);
    --ui-border-light: rgba(255, 255, 255, 0.15);
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 20px rgba(100, 200, 50, 0.4);
}

/* ========== BASE RESET ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body.game-body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #1a1a2e;
    min-height: 100vh;
    min-height: 100dvh;
    overflow: hidden;
    -webkit-font-smoothing: antialiased;
    /* Safe area support */
    padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}

/* ========== SCENE CONTAINER ========== */
.game-scene-container {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 420px;
    height: 100vh;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #1a1a2e;
}

/* ========== TOP HUD BAR ========== */
.game-top-hud {
    position: relative;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    background: linear-gradient(180deg, 
        rgba(62, 89, 50, 0.98) 0%, 
        rgba(45, 70, 35, 0.98) 50%,
        rgba(35, 55, 28, 0.95) 100%
    );
    border-bottom: 2px solid rgba(120, 180, 90, 0.4);
    box-shadow: var(--shadow-lg);
}

.hud-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.hud-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ========== AVATAR ========== */
.game-avatar {
    position: relative;
}

.game-avatar-frame {
    width: 44px;
    height: 44px;
    background: linear-gradient(145deg, 
        var(--theme-primary) 0%, 
        var(--theme-primary-dark) 100%
    );
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 3px solid var(--theme-accent);
    box-shadow: 
        var(--shadow-md),
        inset 0 2px 4px rgba(255, 255, 255, 0.3),
        inset 0 -2px 4px rgba(0, 0, 0, 0.3);
}

.game-avatar-emoji {
    font-size: 1.5rem;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.5));
}

.game-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.3));
}

.game-avatar-level {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 18px;
    height: 18px;
    background: linear-gradient(145deg, var(--game-gold-light), var(--game-gold-dark));
    border-radius: 50%;
    font-size: 0.55rem;
    font-weight: 900;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #1e970f;
    box-shadow: var(--shadow-sm);
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

/* ========== PROFILE INFO ========== */
.game-profile {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.game-profile-name {
    font-size: 0.75rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ========== ENERGY BAR ========== */
.game-energy {
    display: flex;
    align-items: center;
    gap: 6px;
}

.game-energy-bar {
    width: 100px;
    height: 14px;
    background: linear-gradient(180deg, #1a1a1a 0%, #333 50%, #222 100%);
    border-radius: 7px;
    padding: 2px;
    box-shadow: 
        inset 0 2px 4px rgba(0, 0, 0, 0.8),
        0 1px 0 rgba(255, 255, 255, 0.1);
}

.game-energy-fill {
    height: 100%;
    background: linear-gradient(180deg, 
        var(--theme-primary-light) 0%, 
        var(--theme-primary) 30%,
        var(--theme-primary) 50%,
        var(--theme-primary-dark) 70%,
        var(--theme-primary-dark) 100%
    );
    border-radius: 5px;
    position: relative;
    box-shadow: 
        inset 0 2px 4px rgba(255, 255, 255, 0.4),
        inset 0 -2px 4px rgba(0, 0, 0, 0.2),
        0 0 10px rgba(100, 200, 50, 0.5);
    transition: width 0.5s ease;
}

.game-energy-shine {
    position: absolute;
    top: 2px;
    left: 4px;
    right: 4px;
    height: 4px;
    background: linear-gradient(90deg, 
        transparent 0%,
        rgba(255, 255, 255, 0.6) 50%,
        transparent 100%
    );
    border-radius: 2px;
}

.game-energy-label {
    font-size: 0.5rem;
    font-weight: 700;
    color: var(--theme-primary-light);
    text-shadow: 0 0 4px rgba(100, 200, 50, 0.5);
    letter-spacing: 1px;
}

/* Hide energy label text on small screens */
@media (max-width: 380px) {
    .game-energy-label {
        display: none;
    }
}

/* Compact HUD for mobile phones */
@media (max-width: 480px) {
    .game-top-hud {
        padding: 6px 8px;
    }
    .hud-left {
        gap: 6px;
    }
    .hud-right {
        gap: 4px;
    }
    .game-avatar-frame {
        width: 36px;
        height: 36px;
        border-width: 2px;
    }
    .game-avatar-level {
        width: 15px;
        height: 15px;
        font-size: 0.45rem;
    }
    .game-profile-name {
        font-size: 0.65rem;
    }
    .game-energy-bar {
        width: 75px;
        height: 11px;
    }
    .game-energy-label {
        font-size: 0.42rem;
    }
    .hud-battery-label {
        display: none;
    }
    .hud-ai-battery {
        padding: 3px 5px;
        gap: 2px;
        border-radius: 6px;
    }
    .game-points-box {
        border-radius: 10px;
        padding: 4px 10px;
    }
    .game-points-icon {
        font-size: 0.85rem;
    }
    .game-points-number {
        font-size: 0.9rem;
    }
    .game-points-label {
        font-size: 0.4rem;
    }
}

/* ========== HUD AI BATTERY ========== */
.hud-ai-battery {
    display: flex;
    align-items: center;
    gap: 3px;
    background: rgba(0,0,0,0.25);
    border-radius: 8px;
    padding: 4px 8px;
    border: 1.5px solid rgba(255,255,255,0.12);
}
.hud-battery-body {
    width: 18px;
    height: 9px;
    border: 1.5px solid rgba(255,255,255,0.5);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}
.hud-battery-fill {
    height: 100%;
    background: #5ec722;
    border-radius: 1px;
    transition: width 0.5s ease;
}
.hud-battery-fill.low { background: #f5a623; }
.hud-battery-fill.critical {
    background: #e74c3c;
    animation: hud-bat-pulse 1.2s infinite;
}
@keyframes hud-bat-pulse {
    0%,100% { opacity:1; }
    50% { opacity:0.4; }
}
.hud-battery-tip {
    width: 2px;
    height: 4px;
    background: rgba(255,255,255,0.45);
    border-radius: 0 1px 1px 0;
}
.hud-battery-label {
    font-size: 0.55rem;
    font-weight: 700;
    color: rgba(255,255,255,0.7);
    min-width: 22px;
}

/* ========== POINTS BOX ========== */
.game-points-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    background: linear-gradient(180deg, 
        rgba(255, 180, 50, 0.95) 0%, 
        rgba(230, 140, 20, 0.98) 50%,
        rgba(200, 110, 10, 0.95) 100%
    );
    border-radius: 12px;
    padding: 5px 12px;
    border: 2px solid rgba(255, 220, 100, 0.6);
    box-shadow: 
        var(--shadow-md),
        inset 0 1px 0 rgba(255, 255, 255, 0.4),
        inset 0 -2px 4px rgba(0, 0, 0, 0.2);
}

.game-points-label {
    display: none;
}

.game-points-value {
    display: flex;
    align-items: center;
    gap: 4px;
}

.game-points-icon {
    font-size: 1rem;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.3));
}

.game-points-number {
    font-size: 1.1rem;
    font-weight: 800;
    color: #fff;
    text-shadow: 
        0 1px 0 #553300,
        0 2px 4px rgba(0, 0, 0, 0.4);
}

/* ========== MAIN SCENE AREA ========== */
.game-scene-main {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.game-scene-content {
    width: 100%;
    height: 100%;
    position: relative;
}

/* ========== BOTTOM SECTION ========== */
.game-bottom-section {
    position: relative;
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* ========== QUICK ACTION BUTTONS ========== */
.game-quick-actions {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 8px 12px 6px;
    background: linear-gradient(180deg, 
        transparent 0%,
        rgba(0, 0, 0, 0.3) 100%
    );
}

.game-action-btn {
    position: relative;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 10px;
    border: 1px solid var(--ui-border-light);
    box-shadow: 
        var(--shadow-md),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: all 0.25s ease;
    flex: 1;
}

.game-action-btn:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.game-action-btn:active {
    transform: translateY(0);
    background: rgba(255, 255, 255, 0.06);
}

.game-action-btn .action-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.game-action-btn .action-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1px;
}

.game-action-btn .action-label {
    font-size: 0.7rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.2;
}

.game-action-btn .action-sublabel {
    font-size: 0.6rem;
    color: rgba(255, 255, 255, 0.5);
}

/* ========== BADGE ========== */
.game-badge {
    position: absolute;
    top: -10px;
    right: -10px;
    min-width: 28px;
    height: 28px;
    background: linear-gradient(145deg, var(--game-red-light), var(--game-red-dark));
    border-radius: 14px;
    font-size: 0.9rem;
    font-weight: 800;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 7px;
    border: 2px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 2px 8px rgba(238, 68, 68, 0.5);
}

.game-badge.warning {
    background: linear-gradient(145deg, var(--game-gold-light), var(--game-gold-dark));
    box-shadow: 0 2px 8px rgba(255, 170, 0, 0.5);
    color: #553300;
}

.game-badge.info {
    background: linear-gradient(145deg, var(--game-blue-light), var(--game-blue-dark));
    box-shadow: 0 2px 8px rgba(68, 136, 238, 0.5);
}

.game-badge.success {
    background: linear-gradient(145deg, var(--game-green-light), var(--game-green-dark));
    box-shadow: 0 2px 8px rgba(94, 199, 34, 0.5);
}

/* ========== TAB BAR ========== */
.game-tab-bar {
    display: flex;
    align-items: stretch;
    justify-content: flex-start;
    gap: 6px;
    padding: 8px 10px;
    padding-bottom: calc(10px + env(safe-area-inset-bottom));
    background: linear-gradient(180deg, 
        rgba(12, 16, 24, 0.45) 0%,
        rgba(8, 12, 20, 0.7) 100%
    );
    backdrop-filter: blur(24px) saturate(1.4);
    -webkit-backdrop-filter: blur(24px) saturate(1.4);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.game-tab-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 8px 4px 6px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}

.game-tab-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    background: radial-gradient(ellipse at 50% 0%, rgba(255,255,255,0.08) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.game-tab-btn:hover {
    transform: translateY(-2px) scale(1.02);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.12);
}

.game-tab-btn:hover::before {
    opacity: 1;
}

.game-tab-btn:active {
    transform: translateY(0) scale(0.97);
    transition-duration: 0.1s;
}

.game-tab-btn.active {
    background: linear-gradient(180deg, 
        rgba(110, 200, 60, 0.95) 0%,
        rgba(70, 165, 30, 0.98) 50%,
        rgba(45, 135, 15, 0.95) 100%
    );
    border: 3px solid rgba(160, 235, 90, 0.7);
    box-shadow: 
        var(--shadow-md),
        inset 0 1px 0 rgba(255, 255, 255, 0.4),
        inset 0 -2px 4px rgba(0, 0, 0, 0.2);
}

.game-tab-btn.active::before {
    opacity: 1;
    background: radial-gradient(ellipse at 50% 0%, rgba(180, 255, 120, 0.15) 0%, transparent 60%);
}

.game-tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 20%;
    right: 20%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(160, 235, 90, 0.7), transparent);
    border-radius: 2px;
}

.game-tab-icon-wrapper {
    width: 36px;
    height: 36px;
    background: transparent;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    box-shadow: none;
    transition: all 0.3s ease;
}

.game-tab-btn.active .game-tab-icon-wrapper {
    background: transparent;
    border: none;
    box-shadow: none;
    transform: scale(1.05);
}

.game-tab-icon {
    font-size: 1.25rem;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.3));
    transition: all 0.3s ease;
}

/* Image-based tab icons */
.game-tab-img {
    width: 52px;
    height: 52px;
    object-fit: contain;
    transition: all 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.game-tab-btn:not(.active) .game-tab-img {
    opacity: 0.55;
    filter: grayscale(40%) drop-shadow(0 1px 2px rgba(0,0,0,0.3));
    transform: scale(0.85);
}

.game-tab-btn.active .game-tab-img {
    opacity: 1;
    filter: drop-shadow(0 3px 8px rgba(0,0,0,0.4));
    transform: scale(1);
}

.game-tab-btn:not(.active) .game-tab-icon {
    filter: grayscale(30%) drop-shadow(0 1px 2px rgba(0,0,0,0.3));
    opacity: 0.7;
}

.game-tab-btn.active .game-tab-icon {
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
    opacity: 1;
}

.game-tab-label {
    font-size: 0.6rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    transition: all 0.3s ease;
}

.game-tab-btn.active .game-tab-label {
    color: #fff;
    font-weight: 700;
    text-shadow: 
        0 1px 0 rgba(0, 80, 0, 0.5),
        0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Spacer for floating button integration */
.game-tab-spacer {
    flex: 0 0 60px;
    /* Fixed width to reserve space for NutriBot */
}

/* ========== FOOD ITEMS (NutriNen specific but reusable) ========== */
.game-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s ease;
    padding: 4px;
}

.game-item:hover {
    transform: scale(1.15);
}

.game-item-icon {
    font-size: 2rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.game-item-label {
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 2px 6px;
    background: linear-gradient(180deg, 
        rgba(0, 0, 0, 0.85) 0%, 
        rgba(30, 30, 40, 0.9) 100%
    );
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    margin-top: 2px;
    box-shadow: var(--shadow-sm);
}

.game-item-label-icon {
    font-size: 0.55rem;
}

.game-item-label-text {
    font-size: 0.5rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.5);
    white-space: nowrap;
}

/* Item status variants */
.game-item-label.fresh {
    border-color: var(--game-green);
    box-shadow: 0 0 6px rgba(100, 200, 50, 0.5);
}
.game-item-label.fresh .game-item-label-text { color: var(--game-green-light); }

.game-item-label.warning {
    border-color: var(--game-gold);
    box-shadow: 0 0 6px rgba(255, 180, 50, 0.5);
}
.game-item-label.warning .game-item-label-text { color: var(--game-gold-light); }

.game-item-label.danger {
    border-color: var(--game-red);
    box-shadow: 0 0 6px rgba(255, 100, 100, 0.5);
    animation: dangerPulse 1.5s ease-in-out infinite;
}
.game-item-label.danger .game-item-label-text { color: var(--game-red-light); }

@keyframes dangerPulse {
    0%, 100% { box-shadow: 0 0 6px rgba(255, 100, 100, 0.5); }
    50% { box-shadow: 0 0 14px rgba(255, 100, 100, 0.9); }
}

/* ========== CARDS ========== */
.game-card {
    background: linear-gradient(180deg, 
        var(--ui-bg-light) 0%, 
        var(--ui-bg-medium) 100%
    );
    border-radius: 16px;
    border: 2px solid var(--ui-border);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.game-card-header {
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid var(--ui-border);
}

.game-card-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #fff;
}

.game-card-body {
    padding: 16px;
}

/* ========== BUTTONS ========== */
.game-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    font-size: 0.85rem;
    font-weight: 700;
    border-radius: 12px;
    border: 2px solid;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.game-btn-primary {
    background: linear-gradient(180deg, 
        var(--theme-primary-light) 0%, 
        var(--theme-primary) 50%,
        var(--theme-primary-dark) 100%
    );
    border-color: rgba(180, 255, 150, 0.5);
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    box-shadow: 
        var(--shadow-md),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        inset 0 -2px 4px rgba(0, 0, 0, 0.2);
}

.game-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 
        var(--shadow-lg),
        var(--shadow-glow),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.game-btn-secondary {
    background: linear-gradient(180deg, 
        var(--ui-bg-light) 0%, 
        var(--ui-bg-medium) 100%
    );
    border-color: var(--ui-border);
    color: rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow-md);
}

.game-btn-secondary:hover {
    transform: translateY(-2px);
    border-color: rgba(150, 180, 220, 0.7);
}

/* ========== PROGRESS BARS ========== */
.game-progress {
    width: 100%;
    height: 20px;
    background: linear-gradient(180deg, #1a1a1a 0%, #333 50%, #222 100%);
    border-radius: 10px;
    padding: 3px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.8);
}

.game-progress-fill {
    height: 100%;
    border-radius: 7px;
    position: relative;
    transition: width 0.5s ease;
}

.game-progress-fill.green {
    background: linear-gradient(180deg, 
        var(--game-green-light) 0%, 
        var(--game-green) 50%,
        var(--game-green-dark) 100%
    );
    box-shadow: 0 0 10px rgba(100, 200, 50, 0.5);
}

.game-progress-fill.gold {
    background: linear-gradient(180deg, 
        var(--game-gold-light) 0%, 
        var(--game-gold) 50%,
        var(--game-gold-dark) 100%
    );
    box-shadow: 0 0 10px rgba(255, 170, 0, 0.5);
}

.game-progress-fill.blue {
    background: linear-gradient(180deg, 
        var(--game-blue-light) 0%, 
        var(--game-blue) 50%,
        var(--game-blue-dark) 100%
    );
    box-shadow: 0 0 10px rgba(68, 136, 238, 0.5);
}

/* ========== LISTS ========== */
.game-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.game-list-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid var(--ui-border-light);
    transition: all 0.2s ease;
}

.game-list-item:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.25);
}

.game-list-item-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.game-list-item-content {
    flex: 1;
}

.game-list-item-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: #fff;
}

.game-list-item-subtitle {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.6);
}

/* ========== UTILITY CLASSES ========== */
.text-green { color: var(--game-green-light); }
.text-gold { color: var(--game-gold-light); }
.text-red { color: var(--game-red-light); }
.text-blue { color: var(--game-blue-light); }

.bg-green { background-color: var(--game-green); }
.bg-gold { background-color: var(--game-gold); }
.bg-red { background-color: var(--game-red); }
.bg-blue { background-color: var(--game-blue); }

/* ========== RESPONSIVE - TABLETS ========== */
@media (min-width: 520px) {
    .game-scene-container {
        max-width: 480px;
        border-left: 1px solid rgba(255,255,255,0.06);
        border-right: 1px solid rgba(255,255,255,0.06);
        box-shadow: 0 0 60px rgba(0,0,0,0.4);
    }
    
    .game-top-hud {
        padding: 12px 16px;
    }
    
    .game-avatar-frame {
        width: 50px;
        height: 50px;
    }
    
    .game-avatar-emoji {
        font-size: 1.7rem;
    }
    
    .game-energy-bar {
        width: 120px;
    }
    
    .game-tab {
        padding: 12px 8px;
    }
    
    .game-tab-icon {
        font-size: 1.5rem;
    }
    
    .game-tab-label {
        font-size: 0.7rem;
    }
    
    .game-action-btn {
        padding: 12px 16px;
    }
}

/* ========== RESPONSIVE - LARGE TABLETS ========== */
@media (min-width: 700px) {
    .game-scene-container {
        max-width: 480px;
        border-radius: 20px 20px 0 0;
        margin-top: 12px;
        height: calc(100dvh - 12px);
    }
    
    .game-top-hud {
        padding: 14px 20px;
        border-radius: 20px 20px 0 0;
    }
    
    .game-avatar-frame {
        width: 54px;
        height: 54px;
    }
    
    .game-avatar-emoji {
        font-size: 1.8rem;
    }
    
    .game-energy-bar {
        width: 140px;
        height: 16px;
    }
    
    .game-profile-name {
        font-size: 0.85rem;
    }
    
    .game-points-label {
        font-size: 0.55rem;
    }
    
    .game-points-value {
        font-size: 1.3rem;
    }
    
    .game-tab-bar {
        padding: 10px 16px 14px;
        gap: 10px;
    }
    
    .game-tab {
        min-width: 80px;
        padding: 14px 12px;
        border-radius: 18px;
    }
    
    .game-tab-icon {
        font-size: 1.6rem;
    }
    
    .game-tab-label {
        font-size: 0.75rem;
    }
    
    .game-quick-actions {
        gap: 12px;
        padding: 12px 20px 10px;
    }
    
    .game-action-btn {
        padding: 14px 18px;
        border-radius: 16px;
    }
    
    .action-icon {
        font-size: 1.3rem;
    }
    
    .action-label {
        font-size: 0.8rem;
    }
}
