* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

:root {
    --neon-green: #00ff41;
    --neon-red: #ff0040;
    --neon-blue: #00d4ff;
    --neon-purple: #bf00ff;
    --neon-yellow: #ffea00;
    --dark-bg: #0a0a0f;
    --darker-bg: #050508;
    --card-bg: #12121a;
    --text-dim: #666;
    --touch-min: 52px;
    --touch-gap: 6px;
    --bar-height: 28px;
    --font-base: clamp(14px, 3.5vw, 18px);
    --font-large: clamp(18px, 4.5vw, 24px);
    --font-xlarge: clamp(28px, 8vw, 48px);
    --font-huge: clamp(36px, 10vw, 64px);
    --safe-top: env(safe-area-inset-top, 0px);
    --safe-bottom: env(safe-area-inset-bottom, 0px);
}

html, body {
    height: 100%;
    overflow: hidden;
    overscroll-behavior: none;
}

body {
    font-family: 'Courier New', 'Monaco', monospace;
    background: var(--dark-bg);
    color: #fff;
    font-size: var(--font-base);
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(255,0,64,0.1) 0%, transparent 40%),
        radial-gradient(circle at 80% 20%, rgba(0,255,65,0.1) 0%, transparent 40%);
}

#app {
    width: 100%;
    max-width: 100vw;
    height: 100%;
    padding: var(--safe-top) 3vw var(--safe-bottom) 3vw;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}

.screen {
    display: none;
    animation: fadeIn 0.3s ease;
    min-height: 100%;
    padding-bottom: calc(var(--safe-bottom) + 20px);
}

.screen.active {
    display: flex;
    flex-direction: column;
}

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

#landscape-warning {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--dark-bg);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.landscape-content {
    text-align: center;
    padding: 40px;
}

.rotate-icon {
    font-size: 80px;
    animation: rotate-phone 2s ease-in-out infinite;
}

@keyframes rotate-phone {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(90deg); }
}

@media (orientation: landscape) and (max-height: 500px) {
    #landscape-warning {
        display: flex;
    }
    #app {
        display: none;
    }
}

.ascii-art {
    text-align: center;
    margin-bottom: 3vw;
}

.zombie-art {
    color: var(--neon-green);
    font-size: clamp(8px, 2vw, 12px);
    line-height: 1.2;
    text-shadow: 0 0 10px var(--neon-green);
    animation: flicker 3s infinite;
}

@keyframes flicker {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
    75% { opacity: 0.9; }
}

.title {
    font-size: var(--font-huge);
    text-align: center;
    color: var(--neon-red);
    text-shadow: 
        0 0 10px var(--neon-red),
        0 0 20px var(--neon-red),
        0 0 40px var(--neon-red);
    letter-spacing: 0.1em;
    margin-bottom: 1vw;
}

.subtitle {
    font-size: var(--font-large);
    text-align: center;
    letter-spacing: 0.15em;
    margin-bottom: 2vw;
}

.tagline {
    text-align: center;
    color: var(--text-dim);
    font-size: var(--font-base);
    margin-bottom: 5vw;
}

.neon-red { color: var(--neon-red); text-shadow: 0 0 10px var(--neon-red); }
.neon-green { color: var(--neon-green); text-shadow: 0 0 10px var(--neon-green); }
.neon-blue { color: var(--neon-blue); text-shadow: 0 0 10px var(--neon-blue); }
.neon-purple { color: var(--neon-purple); text-shadow: 0 0 10px var(--neon-purple); }

.btn {
    background: transparent;
    border: 2px solid var(--neon-green);
    color: var(--neon-green);
    padding: 4vw 6vw;
    font-family: inherit;
    font-size: var(--font-base);
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 2vw;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    position: relative;
    overflow: hidden;
}

.touch-btn {
    min-height: var(--touch-min);
    min-width: var(--touch-min);
}

.btn:active {
    transform: scale(0.95);
    background: var(--neon-green);
    color: var(--dark-bg);
}

.btn-icon {
    font-size: 1.4em;
}

.neon-glow {
    box-shadow: 0 0 10px var(--neon-green), inset 0 0 10px rgba(0,255,65,0.1);
}

.neon-glow:active {
    box-shadow: 0 0 30px var(--neon-green), inset 0 0 20px rgba(0,255,65,0.3);
}

.btn-play { border-color: var(--neon-green); color: var(--neon-green); }
.btn-leaderboard { border-color: var(--neon-yellow); color: var(--neon-yellow); }
.btn-admin { border-color: var(--text-dim); color: var(--text-dim); font-size: clamp(10px, 2.5vw, 14px); }

.btn-small {
    padding: 2vw 4vw;
    font-size: clamp(10px, 2.5vw, 14px);
    min-height: 56px;
    min-width: 56px;
}

.btn-small.touch-btn {
    min-height: 56px;
    min-width: 56px;
}

.login-box {
    background: var(--card-bg);
    border: 2px solid var(--neon-purple);
    padding: 6vw;
    margin: 5vw auto;
    max-width: 90%;
    text-align: center;
}

.login-prompt {
    color: var(--neon-purple);
    margin-bottom: 4vw;
    font-size: var(--font-base);
}

.btn-login {
    display: flex;
    width: 100%;
    padding: 5vw;
    font-size: var(--font-large);
    border-color: var(--neon-purple);
    color: var(--neon-purple);
    margin-bottom: 3vw;
    min-height: var(--touch-min);
}

.btn-login:active {
    background: var(--neon-purple);
    box-shadow: 0 0 30px var(--neon-purple);
}

.login-note {
    color: var(--text-dim);
    font-size: clamp(10px, 2.5vw, 13px);
}

.google-sign-in {
    background: linear-gradient(135deg, #4285F4 0%, #34A853 50%, #FBBC05 75%, #EA4335 100%);
    border: none;
    color: #fff;
    font-weight: bold;
    position: relative;
}

.google-sign-in::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    bottom: 2px;
    background: var(--dark-bg);
    border-radius: inherit;
    z-index: 0;
}

.google-sign-in span,
.google-sign-in .google-icon {
    position: relative;
    z-index: 1;
}

.google-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.google-sign-in:active {
    background: linear-gradient(135deg, #3367D6 0%, #2D9B5D 50%, #F9AB00 75%, #C5221F 100%);
    box-shadow: 0 0 30px rgba(66, 133, 244, 0.8);
    transform: scale(0.95);
}

.stats-preview {
    display: flex;
    justify-content: center;
    gap: 4vw;
    margin-top: 5vw;
    flex-wrap: wrap;
}

.stats-preview span {
    color: var(--text-dim);
    font-size: clamp(10px, 2.5vw, 13px);
}

.user-header {
    display: flex;
    align-items: center;
    gap: 3vw;
    padding: 3vw;
    background: var(--card-bg);
    border-bottom: 1px solid #333;
    margin: 0 -3vw 4vw -3vw;
}

.user-avatar {
    width: clamp(40px, 12vw, 60px);
    height: clamp(40px, 12vw, 60px);
    border-radius: 50%;
    border: 2px solid var(--neon-green);
    object-fit: cover;
}

.user-info {
    flex: 1;
}

.user-name {
    display: block;
    color: var(--neon-green);
    font-weight: bold;
    font-size: var(--font-base);
}

.user-stats {
    font-size: clamp(11px, 2.8vw, 14px);
    color: var(--text-dim);
}

.btn-logout {
    border-color: var(--text-dim);
    color: var(--text-dim);
}

.welcome-back {
    text-align: center;
    margin-bottom: 4vw;
    padding: 4vw;
    background: var(--card-bg);
    border-left: 3px solid var(--neon-green);
}

.welcome-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.mini-character {
    position: relative;
    width: 50px;
    height: 50px;
    flex-shrink: 0;
}

.mini-char-face {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--neon-green);
    object-fit: cover;
    position: absolute;
    top: 5px;
    left: 5px;
    z-index: 2;
}

.mini-char-emoji {
    position: absolute;
    top: -5px;
    right: -5px;
    font-size: 1.5rem;
    z-index: 3;
    filter: drop-shadow(0 0 5px rgba(0,255,65,0.5));
}

.welcome-text {
    text-align: left;
}

.welcome-text p {
    margin: 2px 0;
}

.menu-gameplay-preview {
    position: relative;
    width: 100%;
    max-width: 280px;
    height: 160px;
    margin: 10px auto;
    border: 2px solid var(--neon-purple);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(191,0,255,0.3);
}

#preview-canvas {
    width: 100%;
    height: 100%;
    background: #0a0a0f;
}

.preview-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent 40%, rgba(191,0,255,0.1) 100%);
    pointer-events: none;
}

.btn-police-flash {
    animation: policeFlash 3s infinite;
}

@keyframes policeFlash {
    0%, 100% { 
        background: linear-gradient(135deg, #ff0040, #cc0033);
        box-shadow: 0 0 20px rgba(255,0,64,0.6), inset 0 0 20px rgba(255,0,64,0.2);
    }
    16.67% { 
        background: linear-gradient(135deg, #ff0040, #cc0033);
        box-shadow: 0 0 30px rgba(255,0,64,0.8), inset 0 0 30px rgba(255,0,64,0.3);
    }
    33.33% { 
        background: linear-gradient(135deg, #00ff41, #00cc33);
        box-shadow: 0 0 20px rgba(0,255,65,0.6), inset 0 0 20px rgba(0,255,65,0.2);
    }
    50% { 
        background: linear-gradient(135deg, #00ff41, #00cc33);
        box-shadow: 0 0 30px rgba(0,255,65,0.8), inset 0 0 30px rgba(0,255,65,0.3);
    }
    66.67% { 
        background: linear-gradient(135deg, #ff0040, #cc0033);
        box-shadow: 0 0 20px rgba(255,0,64,0.6), inset 0 0 20px rgba(255,0,64,0.2);
    }
    83.33% { 
        background: linear-gradient(135deg, #00ff41, #00cc33);
        box-shadow: 0 0 20px rgba(0,255,65,0.6), inset 0 0 20px rgba(0,255,65,0.2);
    }
}

.btn-police-flash:hover {
    animation: policeFlash 1.5s infinite;
    transform: scale(1.02);
}

.live-stat {
    text-align: center;
    padding: 8px 15px;
    background: rgba(0,0,0,0.3);
    border: 1px solid var(--neon-purple);
    border-radius: 5px;
    font-size: clamp(11px, 2.5vw, 13px);
    color: var(--neon-purple);
    animation: liveStatPulse 2s infinite;
}

@keyframes liveStatPulse {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; }
}

#live-stat-text {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.challenge-timer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 10px 0;
    padding: 8px 15px;
    background: rgba(255,234,0,0.1);
    border: 1px dashed var(--neon-yellow);
    border-radius: 5px;
    font-size: clamp(14px, 3.5vw, 18px);
    color: var(--neon-yellow);
    font-weight: bold;
}

.timer-icon {
    font-size: 1.2em;
    animation: timerPulse 1s infinite;
}

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

#challenge-countdown {
    font-family: 'Courier New', monospace;
    letter-spacing: 1px;
}

.menu-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 20px 0;
    padding: 0 10px;
}

.menu-buttons .btn {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 16px 24px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.menu-buttons .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
}

.menu-buttons .btn:hover,
.menu-buttons .btn:active {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

.menu-buttons .btn-play {
    background: linear-gradient(135deg, rgba(0, 255, 65, 0.15) 0%, rgba(0, 200, 50, 0.1) 100%);
    border-color: rgba(0, 255, 65, 0.3);
    color: #00ff41;
    box-shadow: 0 4px 20px rgba(0, 255, 65, 0.15);
}

.menu-buttons .btn-play:hover,
.menu-buttons .btn-play:active {
    background: linear-gradient(135deg, rgba(0, 255, 65, 0.25) 0%, rgba(0, 200, 50, 0.2) 100%);
    border-color: rgba(0, 255, 65, 0.5);
    box-shadow: 0 6px 30px rgba(0, 255, 65, 0.25);
}

.menu-buttons .btn-leaderboard {
    background: linear-gradient(135deg, rgba(255, 204, 0, 0.1) 0%, rgba(200, 160, 0, 0.05) 100%);
    border-color: rgba(255, 204, 0, 0.2);
    color: #ffcc00;
}

.menu-buttons .btn-leaderboard:hover,
.menu-buttons .btn-leaderboard:active {
    background: linear-gradient(135deg, rgba(255, 204, 0, 0.2) 0%, rgba(200, 160, 0, 0.15) 100%);
    border-color: rgba(255, 204, 0, 0.4);
    box-shadow: 0 4px 20px rgba(255, 204, 0, 0.15);
}

.menu-buttons .btn-admin {
    background: rgba(255, 255, 255, 0.02);
    border-color: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
    padding: 12px 20px;
}

.menu-buttons .btn-admin:hover,
.menu-buttons .btn-admin:active {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.7);
}

.menu-buttons .btn-icon {
    font-size: 1.2em;
    opacity: 0.9;
}

.menu-buttons .neon-glow {
    box-shadow: 0 4px 20px rgba(0, 255, 65, 0.15);
}

.menu-buttons .btn-police-flash {
    animation: none;
}

.daily-challenge {
    background: var(--card-bg);
    border: 1px solid var(--neon-yellow);
    padding: 4vw;
    text-align: center;
    margin-top: auto;
}

.daily-challenge h3 {
    color: var(--neon-yellow);
    margin-bottom: 2vw;
    font-size: var(--font-base);
}

.game-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2vw;
    background: var(--card-bg);
    margin: 0 -3vw 3vw -3vw;
    gap: 2vw;
}

.player-badge {
    display: flex;
    align-items: center;
    gap: 2vw;
    font-size: clamp(11px, 2.8vw, 14px);
    color: var(--neon-yellow);
    flex: 1;
}

.player-avatar {
    width: clamp(28px, 8vw, 40px);
    height: clamp(28px, 8vw, 40px);
    border-radius: 50%;
    border: 2px solid var(--neon-yellow);
    object-fit: cover;
}

.turn-counter {
    color: var(--neon-blue);
    font-size: var(--font-base);
    font-weight: bold;
}

.btn-quit {
    border-color: var(--neon-red);
    color: var(--neon-red);
}

.stats-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3vw;
    margin-bottom: 4vw;
}

.stat-bar {
    display: flex;
    align-items: center;
    gap: 2vw;
}

.stat-bar label {
    font-size: clamp(10px, 2.5vw, 13px);
    color: var(--text-dim);
    width: clamp(35px, 10vw, 50px);
    text-align: right;
}

.bar-outer {
    flex: 1;
    height: var(--bar-height);
    background: #1a1a2a;
    border: 2px solid #333;
    border-radius: 4px;
    overflow: hidden;
}

.bar-inner {
    height: 100%;
    transition: width 0.3s ease;
    border-radius: 2px;
}

.health-bar {
    background: linear-gradient(90deg, #ff0040, #00ff41);
    box-shadow: 0 0 10px rgba(0,255,65,0.5);
}

.money-bar {
    background: linear-gradient(90deg, #333, var(--neon-yellow));
    box-shadow: 0 0 10px rgba(255,234,0,0.5);
}

.heat-bar {
    background: linear-gradient(90deg, var(--neon-yellow), var(--neon-red));
    box-shadow: 0 0 10px rgba(255,0,64,0.5);
}

.health-bar.critical {
    animation: health-pulse 0.5s ease-in-out infinite;
    background: linear-gradient(90deg, #ff0040, #ff0040) !important;
}

@keyframes health-pulse {
    0%, 100% { box-shadow: 0 0 10px rgba(255,0,64,0.5); }
    50% { box-shadow: 0 0 25px rgba(255,0,64,1), 0 0 40px rgba(255,0,64,0.8); }
}

.heat-bar.hot {
    animation: heat-pulse 0.8s ease-in-out infinite;
}

@keyframes heat-pulse {
    0%, 100% { box-shadow: 0 0 10px rgba(255,0,64,0.5); }
    50% { box-shadow: 0 0 20px rgba(255,0,64,1), 0 0 35px rgba(255,165,0,0.8); }
}

.heat-bar.busted {
    animation: busted-pulse 0.3s ease-in-out infinite;
    background: linear-gradient(90deg, var(--neon-red), #ff0000) !important;
}

@keyframes busted-pulse {
    0%, 100% { box-shadow: 0 0 15px rgba(255,0,64,0.8); }
    50% { box-shadow: 0 0 30px rgba(255,0,0,1), 0 0 50px rgba(255,0,0,0.9); }
}

.screen-danger {
    animation: screen-red-flash 1s ease-in-out infinite;
}

@keyframes screen-red-flash {
    0%, 100% { box-shadow: inset 0 0 50px rgba(255,0,0,0); }
    50% { box-shadow: inset 0 0 80px rgba(255,0,0,0.3); }
}

.screen-heat-warning {
    animation: screen-orange-flash 1.5s ease-in-out infinite;
}

@keyframes screen-orange-flash {
    0%, 100% { box-shadow: inset 0 0 30px rgba(255,100,0,0); }
    50% { box-shadow: inset 0 0 60px rgba(255,100,0,0.2); }
}

.danger-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 100;
}

.danger-overlay.health-critical {
    background: radial-gradient(ellipse at center, transparent 40%, rgba(255,0,0,0.15) 100%);
    animation: vignette-pulse 0.8s ease-in-out infinite;
}

.danger-overlay.cops-closing {
    background: linear-gradient(180deg, rgba(255,0,0,0.1) 0%, transparent 30%, transparent 70%, rgba(0,0,255,0.1) 100%);
    animation: cop-lights 0.5s ease-in-out infinite alternate;
}

@keyframes vignette-pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

@keyframes cop-lights {
    0% { background: linear-gradient(180deg, rgba(255,0,0,0.15) 0%, transparent 30%, transparent 70%, rgba(0,0,255,0.05) 100%); }
    100% { background: linear-gradient(180deg, rgba(0,0,255,0.15) 0%, transparent 30%, transparent 70%, rgba(255,0,0,0.05) 100%); }
}

.heat-bar.heat-pulsing {
    animation: heat-pulse-intense 0.4s ease-in-out infinite !important;
}

@keyframes heat-pulse-intense {
    0%, 100% { 
        box-shadow: 0 0 15px rgba(255,0,64,0.8);
        transform: scaleY(1);
    }
    50% { 
        box-shadow: 0 0 35px rgba(255,0,0,1), 0 0 60px rgba(255,165,0,0.9);
        transform: scaleY(1.3);
    }
}

.heat-bar.caca-man-chase {
    background: linear-gradient(90deg, #ff0000, #ff6600, #ff0000) !important;
    background-size: 200% 100%;
    animation: heat-pulse-intense 0.3s ease-in-out infinite, heat-shimmer 0.5s linear infinite !important;
}

@keyframes heat-shimmer {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

.heat-bar.bust-imminent {
    background: linear-gradient(90deg, #ff0000, #ffffff, #ff0000, #0000ff, #ff0000) !important;
    background-size: 400% 100%;
    animation: bust-alert 0.2s linear infinite !important;
}

@keyframes bust-alert {
    0% { background-position: 0% 50%; transform: scaleY(1); }
    25% { transform: scaleY(1.5); }
    50% { background-position: 100% 50%; transform: scaleY(1); }
    75% { transform: scaleY(1.5); }
    100% { background-position: 200% 50%; transform: scaleY(1); }
}

#caca-man-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#caca-man-overlay.active {
    opacity: 1;
}

.caca-man-container {
    position: absolute;
    bottom: 20%;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    animation: caca-man-chase-anim 1s ease-in-out infinite;
}

@keyframes caca-man-chase-anim {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    25% { transform: translateX(-45%) translateY(-10px); }
    50% { transform: translateX(-50%) translateY(0); }
    75% { transform: translateX(-55%) translateY(-10px); }
}

.caca-man-sprite {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #8B4513, #654321);
    border-radius: 50%;
    margin: 0 auto 10px;
    position: relative;
    animation: caca-wobble 0.3s ease-in-out infinite;
    box-shadow: 0 0 30px rgba(139, 69, 19, 0.8), 0 10px 20px rgba(0,0,0,0.5);
}

.caca-man-sprite::before {
    content: '💩';
    font-size: 50px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

@keyframes caca-wobble {
    0%, 100% { transform: rotate(-5deg); }
    50% { transform: rotate(5deg); }
}

.caca-man-text {
    color: #ff0000;
    font-size: 1.2rem;
    font-weight: bold;
    text-shadow: 0 0 10px #ff0000, 0 0 20px #ff6600;
    animation: text-flash 0.5s ease-in-out infinite;
    font-family: 'Permanent Marker', cursive;
}

@keyframes text-flash {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

#honeymoon-badge {
    position: fixed;
    top: 70px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #00ff41, #39ff14);
    color: #000;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.8rem;
    z-index: 200;
    box-shadow: 0 0 15px rgba(0, 255, 65, 0.6);
    animation: honeymoon-glow 1s ease-in-out infinite;
    display: none;
}

@keyframes honeymoon-glow {
    0%, 100% { box-shadow: 0 0 15px rgba(0, 255, 65, 0.6); }
    50% { box-shadow: 0 0 25px rgba(0, 255, 65, 1), 0 0 40px rgba(57, 255, 20, 0.8); }
}

.drugs-bar {
    background: linear-gradient(90deg, #333, var(--neon-purple));
    box-shadow: 0 0 10px rgba(191,0,255,0.5);
}

.morale-bg {
    background: linear-gradient(90deg, #1a1a2e, #2a1a3e);
}

.morale-bar {
    background: linear-gradient(90deg, #8b5cf6, #d946ef);
    box-shadow: 0 0 12px rgba(139,92,246,0.6);
}

.hearts-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 100;
    overflow: hidden;
}

.hearts-overlay .heart {
    position: absolute;
    font-size: 2rem;
    animation: floatHeart 3s ease-out forwards;
    opacity: 0;
}

@keyframes floatHeart {
    0% { transform: translateY(100vh) scale(0); opacity: 0; }
    10% { opacity: 1; }
    100% { transform: translateY(-20vh) scale(1.5); opacity: 0; }
}

.family-photo-overlay {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    background: linear-gradient(135deg, #2a1a3e, #1a1a2e);
    border: 4px solid #8b5cf6;
    border-radius: 20px;
    padding: 20px;
    z-index: 150;
    animation: familyPhotoIn 0.5s ease-out forwards;
    box-shadow: 0 0 40px rgba(139,92,246,0.5);
}

@keyframes familyPhotoIn {
    0% { transform: translate(-50%, -50%) scale(0) rotate(-10deg); opacity: 0; }
    50% { transform: translate(-50%, -50%) scale(1.1) rotate(5deg); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(1) rotate(0deg); opacity: 1; }
}

.family-photo-overlay .photo-frame {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    align-items: center;
}

.family-photo-overlay .family-member {
    font-size: 2.5rem;
    animation: familyBounce 0.5s ease-out;
}

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

.family-photo-overlay .caption {
    text-align: center;
    color: #d946ef;
    margin-top: 15px;
    font-family: 'Courier New', monospace;
    text-shadow: 0 0 10px rgba(217,70,239,0.5);
}

.character-blush {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 25% 60%, rgba(255,100,100,0.3) 0%, transparent 30%),
                radial-gradient(circle at 75% 60%, rgba(255,100,100,0.3) 0%, transparent 30%);
    pointer-events: none;
    z-index: 5;
    animation: blushPulse 2s ease-in-out infinite;
}

@keyframes blushPulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.character-clean {
    filter: brightness(1.1) saturate(1.2);
}

.character-tears {
    position: absolute;
    bottom: 20%;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.5rem;
    animation: tearDrop 1.5s ease-in infinite;
    z-index: 10;
}

@keyframes tearDrop {
    0% { transform: translateX(-50%) translateY(0); opacity: 1; }
    100% { transform: translateX(-50%) translateY(30px); opacity: 0; }
}

.character-glitch {
    animation: glitchFilter 0.3s infinite;
}

@keyframes glitchFilter {
    0% { filter: hue-rotate(0deg) saturate(0.5); }
    25% { filter: hue-rotate(90deg) saturate(0.3); transform: translate(-2px, 0); }
    50% { filter: hue-rotate(180deg) saturate(0.5); }
    75% { filter: hue-rotate(270deg) saturate(0.3); transform: translate(2px, 0); }
    100% { filter: hue-rotate(360deg) saturate(0.5); }
}

.stat-value {
    font-size: clamp(12px, 3vw, 16px);
    font-weight: bold;
    min-width: clamp(30px, 8vw, 45px);
    text-align: left;
}

.location-display {
    background: var(--card-bg);
    padding: 4vw;
    text-align: center;
    border-left: 3px solid var(--neon-purple);
    margin-bottom: 3vw;
}

.location-display h3 {
    color: var(--neon-purple);
    font-size: var(--font-large);
    margin-bottom: 2vw;
}

.location-display p {
    color: var(--text-dim);
    font-size: clamp(12px, 3vw, 15px);
    margin-bottom: 2vw;
}

.risk-badge {
    display: inline-block;
    padding: 1.5vw 3vw;
    background: var(--neon-red);
    color: #000;
    font-weight: bold;
    font-size: clamp(11px, 2.8vw, 14px);
    border-radius: 4px;
}

.messages-container {
    background: var(--darker-bg);
    border: 1px solid #333;
    border-radius: 6px;
    padding: 12px 14px;
    min-height: 120px;
    max-height: 200px;
    flex: 1;
    overflow-y: auto;
    margin-bottom: 8px;
    font-size: clamp(13px, 3.5vw, 16px);
    line-height: 1.5;
    scroll-behavior: smooth;
}

.message {
    padding: 8px 0;
    border-bottom: 1px solid #333;
    animation: messageAppear 0.6s ease;
    opacity: 0;
    animation-fill-mode: forwards;
}

@keyframes messageAppear {
    from { 
        opacity: 0; 
        transform: translateY(-8px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(-10px); }
    to { opacity: 1; transform: translateX(0); }
}

.message.event { color: var(--neon-yellow); }
.message.success { color: var(--neon-green); }
.message.danger { color: var(--neon-red); }

.actions-container {
    margin-top: auto;
    padding-bottom: 1vw;
}

.action-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--touch-gap);
    margin-bottom: 4px;
}

.btn-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5vw 1vw;
    min-height: var(--touch-min);
    border-color: var(--neon-blue);
    color: var(--neon-blue);
}

.btn-action:active {
    background: var(--neon-blue);
    color: var(--dark-bg);
}

.action-icon {
    font-size: clamp(18px, 5vw, 24px);
    margin-bottom: 0.5vw;
    line-height: 1;
}

.action-name {
    font-size: clamp(8px, 2vw, 11px);
    font-weight: bold;
    line-height: 1;
}

.btn-move {
    border-color: var(--neon-purple);
    color: var(--neon-purple);
}

.btn-move:active {
    background: var(--neon-purple);
}

.normie-section {
    margin-top: 4px;
    padding-top: 4px;
    border-top: 1px dashed #4a9eff40;
}

.normie-label {
    text-align: center;
    color: #4a9eff;
    font-size: clamp(7px, 1.8vw, 9px);
    letter-spacing: 1px;
    margin-bottom: 4px;
    text-shadow: 0 0 8px rgba(74,158,255,0.5);
}

.normie-row {
    grid-template-columns: repeat(4, 1fr);
}

.btn-normie {
    border-color: #4a9eff;
    color: #4a9eff;
    box-shadow: 0 0 8px rgba(74,158,255,0.3), inset 0 0 15px rgba(74,158,255,0.1);
}

.btn-normie:active {
    background: #4a9eff;
    color: var(--dark-bg);
}

.tiktok-vertical {
    background: linear-gradient(180deg, #0a0a0f 0%, #1a0a1f 50%, #0a0a0f 100%);
}

.gameover-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4vw;
    position: relative;
    overflow: hidden;
}

.gameover-bg-anim {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 50% 30%, rgba(255,0,64,0.2) 0%, transparent 50%),
        radial-gradient(circle at 20% 80%, rgba(191,0,255,0.15) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(0,255,65,0.1) 0%, transparent 40%);
    animation: pulse-bg 4s ease-in-out infinite;
    pointer-events: none;
}

@keyframes pulse-bg {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.death-ascii, .arrested-ascii {
    font-size: clamp(10px, 2.5vw, 14px);
    color: var(--neon-red);
    text-shadow: 0 0 20px var(--neon-red);
    animation: death-pulse 1s ease-in-out infinite;
    z-index: 1;
}

.escaped-ascii {
    font-size: clamp(10px, 2.5vw, 14px);
    color: #4a9eff;
    text-shadow: 0 0 20px #4a9eff;
    animation: escape-pulse 1s ease-in-out infinite;
    z-index: 1;
}

@keyframes escape-pulse {
    0%, 100% { opacity: 1; transform: scale(1); text-shadow: 0 0 20px #4a9eff; }
    50% { opacity: 0.9; transform: scale(1.05); text-shadow: 0 0 40px #4a9eff, 0 0 60px #4a9eff; }
}

.neon-blue {
    color: #4a9eff;
    text-shadow: 0 0 20px #4a9eff, 0 0 40px #4a9eff;
}

@keyframes death-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.05); }
}

.gameover-title {
    font-size: var(--font-huge);
    margin: 3vw 0;
    z-index: 1;
    animation: title-glow 2s ease-in-out infinite;
}

@keyframes title-glow {
    0%, 100% { text-shadow: 0 0 10px var(--neon-red), 0 0 20px var(--neon-red); }
    50% { text-shadow: 0 0 20px var(--neon-red), 0 0 40px var(--neon-red), 0 0 60px var(--neon-red); }
}

.ending-emoji {
    font-size: clamp(60px, 15vw, 100px);
    margin-bottom: 10px;
    filter: drop-shadow(0 0 20px currentColor);
    z-index: 2;
}

.ending-bounce {
    animation: ending-bounce 1s ease-in-out infinite;
}

@keyframes ending-bounce {
    0%, 100% { transform: scale(1) translateY(0); }
    50% { transform: scale(1.2) translateY(-10px); }
}

.ending-subtitle {
    font-size: clamp(16px, 4vw, 24px);
    font-weight: bold;
    margin: 5px 0 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
    z-index: 1;
}

.ending-description {
    font-size: clamp(12px, 3vw, 16px);
    color: var(--text-dim);
    max-width: 300px;
    margin: 0 auto 15px;
    line-height: 1.4;
    z-index: 1;
}

.ending-gif {
    width: 120px;
    height: 120px;
    margin: 10px auto;
    border-radius: 10px;
    z-index: 1;
}

.ending-kingpin {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 50%, #FFD700 100%);
    animation: kingpin-shine 2s ease-in-out infinite;
    box-shadow: 0 0 30px #FFD700, 0 0 60px #FFA500;
}

@keyframes kingpin-shine {
    0%, 100% { box-shadow: 0 0 30px #FFD700, 0 0 60px #FFA500; }
    50% { box-shadow: 0 0 50px #FFD700, 0 0 100px #FFA500, 0 0 150px #FFD700; }
}

.ending-normie {
    background: linear-gradient(135deg, #00FF88 0%, #00CC66 50%, #00FF88 100%);
    animation: normie-glow 2s ease-in-out infinite;
    box-shadow: 0 0 30px #00FF88;
}

@keyframes normie-glow {
    0%, 100% { box-shadow: 0 0 30px #00FF88; }
    50% { box-shadow: 0 0 50px #00FF88, 0 0 80px #00CC66; }
}

.ending-zombie {
    background: linear-gradient(135deg, #8B4513 0%, #556B2F 50%, #8B4513 100%);
    animation: zombie-pulse 1.5s ease-in-out infinite;
    box-shadow: 0 0 20px #8B4513;
}

@keyframes zombie-pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.8; }
}

.ending-escaped {
    background: linear-gradient(135deg, #00BFFF 0%, #1E90FF 50%, #00BFFF 100%);
    animation: escaped-glow 2s ease-in-out infinite;
    box-shadow: 0 0 30px #00BFFF;
}

@keyframes escaped-glow {
    0%, 100% { box-shadow: 0 0 30px #00BFFF; }
    50% { box-shadow: 0 0 50px #00BFFF, 0 0 80px #1E90FF; }
}

.ending-death {
    background: linear-gradient(135deg, #FF0000 0%, #8B0000 50%, #FF0000 100%);
    animation: death-flash 0.5s ease-in-out infinite;
    box-shadow: 0 0 30px #FF0000;
}

@keyframes death-flash {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.ending-arrested {
    background: linear-gradient(135deg, #FF4500 0%, #FF0000 25%, #0000FF 75%, #FF4500 100%);
    animation: police-lights 0.8s linear infinite;
    box-shadow: 0 0 30px #FF4500;
}

@keyframes police-lights {
    0%, 49% { background-position: 0% 50%; box-shadow: 0 0 40px #FF0000; }
    50%, 100% { background-position: 100% 50%; box-shadow: 0 0 40px #0000FF; }
}

.dramatic-ending {
    animation: dramatic-pulse 1.5s ease-in-out infinite;
}

@keyframes dramatic-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.death-card {
    background: rgba(18,18,26,0.9);
    border: 2px solid var(--neon-red);
    padding: 5vw;
    margin: 3vw 0;
    text-align: center;
    width: 90%;
    max-width: 350px;
    z-index: 1;
}

.death-avatar {
    width: clamp(80px, 20vw, 120px);
    height: clamp(80px, 20vw, 120px);
    border-radius: 50%;
    border: 4px solid var(--neon-red);
    object-fit: cover;
    margin-bottom: 3vw;
    box-shadow: 0 0 20px var(--neon-red);
}

.death-message {
    font-size: var(--font-base);
    line-height: 1.5;
}

.death-story-card {
    position: relative;
    overflow: hidden;
}

.death-story-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--neon-red), transparent);
    animation: blood-drip 2s ease-in-out infinite;
}

@keyframes blood-drip {
    0%, 100% { opacity: 0.5; transform: scaleX(0.8); }
    50% { opacity: 1; transform: scaleX(1); }
}

.death-story-container {
    margin-bottom: 15px;
}

.death-story {
    font-family: 'Courier New', monospace;
    font-size: clamp(14px, 3.5vw, 18px);
    line-height: 1.6;
    color: #fff;
    text-shadow: 0 0 10px var(--neon-red), 0 0 20px rgba(255,0,0,0.5);
    padding: 15px;
    background: linear-gradient(135deg, rgba(255,0,0,0.1) 0%, rgba(0,0,0,0.3) 100%);
    border-left: 3px solid var(--neon-red);
    margin: 0;
    animation: story-reveal 1s ease-out;
}

@keyframes story-reveal {
    0% { opacity: 0; transform: translateY(10px); }
    100% { opacity: 1; transform: translateY(0); }
}

.death-cause-badge {
    display: inline-block;
    padding: 5px 12px;
    margin-top: 10px;
    font-size: clamp(10px, 2.5vw, 12px);
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: 15px;
    animation: badge-pulse 2s ease-in-out infinite;
}

.death-cause-badge.cause-od {
    background: linear-gradient(135deg, #9b59b6, #8e44ad);
    color: #fff;
    box-shadow: 0 0 15px rgba(155, 89, 182, 0.6);
}

.death-cause-badge.cause-bust {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: #fff;
    box-shadow: 0 0 15px rgba(52, 152, 219, 0.6);
}

.death-cause-badge.cause-event_damage {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: #fff;
    box-shadow: 0 0 15px rgba(231, 76, 60, 0.6);
}

.death-cause-badge.cause-steal_fail {
    background: linear-gradient(135deg, #f39c12, #d68910);
    color: #fff;
    box-shadow: 0 0 15px rgba(243, 156, 18, 0.6);
}

.death-cause-badge.cause-scam_fail {
    background: linear-gradient(135deg, #e67e22, #d35400);
    color: #fff;
    box-shadow: 0 0 15px rgba(230, 126, 34, 0.6);
}

.death-cause-badge.cause-hustle_gone_wrong {
    background: linear-gradient(135deg, #1abc9c, #16a085);
    color: #fff;
    box-shadow: 0 0 15px rgba(26, 188, 156, 0.6);
}

.death-cause-badge.cause-low_morale {
    background: linear-gradient(135deg, #34495e, #2c3e50);
    color: #fff;
    box-shadow: 0 0 15px rgba(52, 73, 94, 0.6);
}

.death-cause-badge.cause-generic {
    background: linear-gradient(135deg, #7f8c8d, #95a5a6);
    color: #fff;
    box-shadow: 0 0 15px rgba(127, 140, 141, 0.6);
}

@keyframes badge-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.final-stats {
    display: flex;
    gap: 8vw;
    margin: 4vw 0;
    z-index: 1;
}

.final-stat {
    text-align: center;
}

.stat-label {
    display: block;
    font-size: clamp(10px, 2.5vw, 13px);
    color: var(--text-dim);
    margin: 1vw 0;
}

.stat-big {
    font-size: var(--font-xlarge);
    font-weight: bold;
}

.final-stat.highlight .stat-big {
    animation: score-glow 1.5s ease-in-out infinite;
}

@keyframes score-glow {
    0%, 100% { text-shadow: 0 0 10px var(--neon-green); }
    50% { text-shadow: 0 0 30px var(--neon-green), 0 0 50px var(--neon-green); }
}

.game-branding {
    text-align: center;
    margin: 3vw 0;
    z-index: 1;
}

.brand-text {
    display: block;
    font-size: clamp(12px, 3vw, 16px);
    color: var(--neon-purple);
    letter-spacing: 0.2em;
}

.brand-url {
    font-size: clamp(10px, 2.5vw, 13px);
    color: var(--text-dim);
}

.gameover-actions-stack {
    display: flex;
    flex-direction: column;
    gap: var(--touch-gap);
    padding: 4vw;
    width: 100%;
}

.share-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--touch-gap);
}

.btn-submit {
    border-color: var(--neon-yellow);
    color: var(--neon-yellow);
    box-shadow: 0 0 10px var(--neon-yellow);
}

.score-saved-indicator {
    text-align: center;
    padding: 12px 20px;
    color: var(--neon-yellow);
    font-size: clamp(14px, 3.5vw, 18px);
    font-weight: bold;
    letter-spacing: 1px;
    text-shadow: 0 0 10px var(--neon-yellow);
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; }
}

.btn-download {
    border-color: var(--neon-blue);
    color: var(--neon-blue);
}

.btn-twitter {
    border-color: #1da1f2;
    color: #1da1f2;
}

.btn-tiktok {
    border-color: #ff0050;
    color: #ff0050;
    background: linear-gradient(135deg, rgba(0,242,234,0.1) 0%, rgba(255,0,80,0.1) 100%);
    box-shadow: 0 0 15px rgba(255,0,80,0.3), 0 0 30px rgba(0,242,234,0.2);
    animation: tiktok-glow 2s ease-in-out infinite;
}

@keyframes tiktok-glow {
    0%, 100% { 
        box-shadow: 0 0 15px rgba(255,0,80,0.3), 0 0 30px rgba(0,242,234,0.2);
    }
    50% { 
        box-shadow: 0 0 25px rgba(255,0,80,0.5), 0 0 50px rgba(0,242,234,0.4);
    }
}

.btn-tiktok:active {
    background: linear-gradient(135deg, #00f2ea 0%, #ff0050 100%);
    color: #fff;
    transform: scale(0.95);
}

.btn-snapchat {
    border-color: #fffc00;
    color: #fffc00;
    background: rgba(255,252,0,0.05);
    box-shadow: 0 0 15px rgba(255,252,0,0.3);
    animation: snap-glow 2s ease-in-out infinite;
}

@keyframes snap-glow {
    0%, 100% { 
        box-shadow: 0 0 15px rgba(255,252,0,0.3);
    }
    50% { 
        box-shadow: 0 0 30px rgba(255,252,0,0.6);
    }
}

.btn-snapchat:active {
    background: #fffc00;
    color: #000;
    transform: scale(0.95);
}

.btn-copy {
    border-color: var(--neon-purple);
    color: var(--neon-purple);
}

.social-share-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--touch-gap);
    margin-bottom: var(--touch-gap);
}

.share-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: calc(var(--touch-gap) / 2);
}

.toast {
    position: fixed;
    bottom: calc(var(--safe-bottom) + 100px);
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--neon-green);
    color: var(--dark-bg);
    padding: 3vw 6vw;
    border-radius: 8px;
    font-weight: bold;
    font-size: var(--font-base);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 9999;
    box-shadow: 0 0 20px var(--neon-green);
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.leaderboard-title {
    font-size: var(--font-xlarge);
    text-align: center;
    margin-bottom: 4vw;
}

.leaderboard-list {
    flex: 1;
    overflow-y: auto;
    padding-bottom: 4vw;
}

.leaderboard-entry {
    display: flex;
    align-items: center;
    gap: 3vw;
    padding: 3vw;
    border-bottom: 1px solid #222;
}

.leaderboard-entry.top-3 {
    background: linear-gradient(90deg, rgba(255,234,0,0.1) 0%, transparent 100%);
}

.leaderboard-entry .rank {
    font-size: var(--font-large);
    font-weight: bold;
    color: var(--neon-yellow);
    min-width: clamp(35px, 10vw, 50px);
}

.lb-avatar {
    width: clamp(40px, 10vw, 50px);
    height: clamp(40px, 10vw, 50px);
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--neon-green);
}

.lb-avatar-placeholder {
    width: clamp(40px, 10vw, 50px);
    height: clamp(40px, 10vw, 50px);
    border-radius: 50%;
    background: var(--card-bg);
    border: 2px solid #333;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dim);
    font-size: var(--font-large);
}

.leaderboard-entry .name-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    overflow: hidden;
}

.leaderboard-entry .name {
    font-size: var(--font-base);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.leaderboard-entry .char-tag {
    font-size: clamp(9px, 2vw, 11px);
    color: var(--neon-purple);
    opacity: 0.8;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.leaderboard-entry .score {
    font-size: var(--font-base);
    font-weight: bold;
    color: var(--neon-green);
}

.leaderboard-entry .turns {
    font-size: clamp(10px, 2.5vw, 13px);
    color: var(--text-dim);
    min-width: clamp(30px, 8vw, 40px);
    text-align: right;
}

.btn-back {
    margin-top: auto;
}

.debug-overlay {
    position: fixed;
    top: 10px;
    right: 10px;
    left: 10px;
    bottom: 10px;
    background: rgba(10, 10, 20, 0.95);
    border: 2px solid #f59e0b;
    border-radius: 10px;
    z-index: 9999;
    font-family: monospace;
    font-size: 14px;
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.3);
    display: flex;
    flex-direction: column;
}

.debug-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #000;
    font-weight: bold;
    font-size: 12px;
}

.debug-close {
    background: none;
    border: none;
    color: #000;
    font-weight: bold;
    cursor: pointer;
    font-size: 14px;
    padding: 2px 6px;
}

.debug-content {
    padding: 15px;
    flex: 1;
    overflow-y: auto;
    color: #4ade80;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.debug-content pre {
    margin: 0;
    white-space: pre-wrap;
    word-break: break-all;
    font-size: 10px;
    line-height: 1.4;
}

.debug-section {
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    flex-shrink: 0;
}

.debug-section h4 {
    margin: 0 0 10px 0;
    color: #f59e0b;
    font-size: 14px;
    font-weight: bold;
}

.debug-section div {
    margin: 6px 0;
    font-size: 13px;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.9);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: 4vw;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--card-bg);
    border: 2px solid var(--neon-purple);
    padding: 6vw;
    width: 100%;
    max-width: 400px;
    max-height: 90vh;
    overflow-y: auto;
}

.fullscreen-modal {
    padding: 0;
}

.fullscreen-content {
    max-width: 100%;
    max-height: 100%;
    height: 100%;
    border: none;
    display: flex;
    flex-direction: column;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4vw;
    border-bottom: 1px solid #333;
    position: sticky;
    top: 0;
    background: var(--card-bg);
    z-index: 10;
}

.modal-header h3 {
    color: var(--neon-purple);
    font-size: var(--font-large);
}

.btn-close {
    width: 50px;
    height: 50px;
    min-height: 50px;
    min-width: 50px;
    padding: 0;
    font-size: 24px;
    border-color: var(--neon-red);
    color: var(--neon-red);
}

.location-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3vw;
    padding: 4vw;
    overflow-y: auto;
    flex: 1;
}

.location-option {
    background: var(--darker-bg);
    border: 2px solid #333;
    padding: 4vw;
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: var(--touch-min);
}

.location-option:active {
    transform: scale(0.98);
    border-color: var(--neon-purple);
    background: rgba(191,0,255,0.1);
}

.location-option.current {
    border-color: var(--neon-green);
    opacity: 0.5;
    pointer-events: none;
}

.location-option h4 {
    color: var(--neon-purple);
    font-size: var(--font-base);
    margin-bottom: 2vw;
}

.location-option p {
    color: #bbb;
    font-size: clamp(11px, 2.8vw, 14px);
    margin-bottom: 2vw;
}

.location-option .risk {
    display: inline-block;
    padding: 1vw 2vw;
    background: var(--neon-red);
    color: #000;
    font-size: clamp(10px, 2.5vw, 12px);
    font-weight: bold;
}

.location-option .risk-stars {
    font-size: clamp(12px, 3vw, 16px);
    letter-spacing: -1px;
    margin-bottom: 1vw;
    text-shadow: 0 0 5px currentColor;
}

.location-option .risk-label {
    display: inline-block;
    padding: 1vw 3vw;
    color: #000;
    font-size: clamp(10px, 2.5vw, 12px);
    font-weight: bold;
    border-radius: 4px;
    text-transform: uppercase;
}

.location-option .risk-label.safe {
    background: var(--neon-green) !important;
    box-shadow: 0 0 10px var(--neon-green);
}

.location-option .risk-label.risky {
    background: #ffcc00 !important;
    box-shadow: 0 0 10px #ffcc00;
}

.location-option .risk-label.danger {
    background: var(--neon-red) !important;
    box-shadow: 0 0 10px var(--neon-red);
    animation: dangerPulse 0.5s infinite alternate;
}

@keyframes dangerPulse {
    from { opacity: 0.8; }
    to { opacity: 1; }
}

.drug-input {
    margin: 5vw 0;
    text-align: center;
}

.drug-input label {
    display: block;
    margin-bottom: 3vw;
    font-size: var(--font-base);
}

.stepper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3vw;
}

.stepper-btn {
    width: var(--touch-min);
    height: var(--touch-min);
    font-size: 28px;
    padding: 0;
    border-color: var(--neon-blue);
    color: var(--neon-blue);
}

.stepper input {
    width: 80px;
    height: 60px;
    text-align: center;
    font-size: var(--font-large);
    font-family: inherit;
    background: var(--darker-bg);
    border: 2px solid #333;
    color: #fff;
}

.modal-buttons {
    display: flex;
    gap: var(--touch-gap);
    margin-top: 4vw;
}

.modal-buttons .btn {
    flex: 1;
}

.btn-confirm {
    border-color: var(--neon-green);
    color: var(--neon-green);
}

.btn-cancel {
    border-color: var(--text-dim);
    color: var(--text-dim);
}

.install-content {
    text-align: center;
}

.install-icon {
    font-size: 60px;
    margin-bottom: 4vw;
}

.install-content h3 {
    color: var(--neon-green);
    font-size: var(--font-large);
    margin-bottom: 3vw;
}

.install-content p {
    color: var(--text-dim);
    margin-bottom: 4vw;
    font-size: var(--font-base);
}

.challenge-indicator {
    text-align: center;
    padding: 10px 15px;
    background: linear-gradient(135deg, rgba(191, 0, 255, 0.2), rgba(0, 212, 255, 0.2));
    border: 2px solid var(--neon-purple);
    border-radius: 8px;
    margin: 10px 0;
    animation: challengePulse 2s ease-in-out infinite;
}

.challenge-indicator.completed {
    background: linear-gradient(135deg, rgba(0, 255, 65, 0.3), rgba(0, 212, 255, 0.2));
    border-color: var(--neon-green);
    animation: challengeComplete 0.5s ease-out;
}

.challenge-progress {
    color: var(--neon-purple);
    font-weight: bold;
    font-size: var(--font-base);
}

.challenge-complete {
    color: var(--neon-green);
    font-weight: bold;
    font-size: var(--font-large);
    text-shadow: 0 0 10px var(--neon-green);
}

@keyframes challengePulse {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; }
}

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

.btn-challenge {
    background: linear-gradient(135deg, var(--neon-purple), var(--neon-blue));
    border: 2px solid var(--neon-purple);
    color: #fff;
    margin-top: 15px;
    font-size: var(--font-base);
}

.btn-challenge:active {
    transform: scale(0.98);
    box-shadow: 0 0 20px var(--neon-purple);
}

.challenge-reward {
    color: var(--neon-yellow);
    font-size: 0.9em;
    margin-top: 8px;
    text-shadow: 0 0 5px var(--neon-yellow);
}

.zone-aura {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 0;
    transition: box-shadow 0.5s ease;
}

.zone-flavor {
    text-align: center;
    font-style: italic;
    color: var(--neon-purple);
    font-size: 0.85em;
    padding: 5px 10px;
    background: rgba(191, 0, 255, 0.1);
    border-radius: 5px;
    margin: 5px 0;
}

.location-badges {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 8px;
}

.zone-badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.75em;
    font-weight: bold;
    color: #000;
    text-transform: uppercase;
    white-space: nowrap;
}

.zone-tag {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 8px;
    font-size: 0.7em;
    font-weight: bold;
    color: #000;
    margin-bottom: 5px;
}

.hood-map-premium {
    background: linear-gradient(180deg, #0a0012 0%, #1a0025 50%, #0a0012 100%) !important;
    padding: 0 !important;
    max-height: 90vh;
    overflow: hidden;
}

.hood-map-header {
    padding: 15px 20px;
    border-bottom: 2px solid var(--neon-purple);
    background: linear-gradient(90deg, rgba(191,0,255,0.2) 0%, transparent 50%, rgba(0,255,65,0.2) 100%);
}

.hood-map-title {
    font-family: 'Permanent Marker', 'Impact', sans-serif;
    font-size: clamp(18px, 5vw, 28px);
    background: linear-gradient(90deg, #ff00ff, #00ff41, #ff00ff);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease-in-out infinite;
    text-shadow: none;
    letter-spacing: 2px;
}

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

.hood-map-container {
    position: relative;
    flex: 1;
    overflow: hidden;
    touch-action: pinch-zoom pan-x pan-y;
    background: 
        radial-gradient(ellipse at 30% 40%, rgba(0,100,255,0.1) 0%, transparent 50%),
        linear-gradient(180deg, #0a0012 0%, #050008 100%);
}

.fire-glow {
    animation: fireFlicker 0.5s ease-in-out infinite alternate;
}

@keyframes fireFlicker {
    0% { opacity: 0.1; r: 2; }
    50% { opacity: 0.2; r: 2.5; }
    100% { opacity: 0.15; r: 3; }
}

.flicker-shadow {
    animation: shadowFlicker 0.3s ease-in-out infinite;
}

@keyframes shadowFlicker {
    0%, 100% { opacity: 0.5; transform: translateX(0); }
    25% { opacity: 0.7; transform: translateX(1px); }
    50% { opacity: 0.4; transform: translateX(-1px); }
    75% { opacity: 0.6; transform: translateX(0.5px); }
}

.caca-silhouette {
    animation: cacaLurk 2s ease-in-out infinite;
    filter: drop-shadow(0 0 5px rgba(139,69,19,0.8));
}

@keyframes cacaLurk {
    0%, 100% { opacity: 0.6; transform: translateY(0); }
    50% { opacity: 0.9; transform: translateY(-2px); }
}

.hood-svg-map {
    transition: transform 0.1s ease-out;
    transform-origin: center center;
}

.hood-svg-wrapper {
    width: 100%;
    height: 100%;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.hood-svg-map {
    width: 100%;
    height: 100%;
    max-height: 55vh;
}

.river-path {
    fill: none;
    stroke: #0066ff;
    stroke-width: 3;
    stroke-linecap: round;
    opacity: 0.6;
    filter: drop-shadow(0 0 8px #0066ff);
    animation: riverFlow 4s linear infinite;
}

@keyframes riverFlow {
    0% { stroke-dashoffset: 0; }
    100% { stroke-dashoffset: -50; }
}

.location-pin {
    cursor: pointer;
    transition: all 0.2s ease;
    filter: drop-shadow(0 0 5px currentColor);
}

.location-pin:hover {
    transform: scale(1.3);
}

.location-pin.current-location {
    animation: currentPinPulse 1s ease-in-out infinite;
}

.location-pin.risk-low {
    fill: #00ff41;
    filter: drop-shadow(0 0 8px #00ff41);
}

.location-pin.risk-medium {
    fill: #ffcc00;
    filter: drop-shadow(0 0 8px #ffcc00);
}

.location-pin.risk-high {
    fill: #ff6600;
    filter: drop-shadow(0 0 8px #ff6600);
    animation: riskPulse 1.5s ease-in-out infinite;
}

.location-pin.risk-extreme {
    fill: #ff0040;
    filter: drop-shadow(0 0 12px #ff0040);
    animation: extremePulse 0.8s ease-in-out infinite;
}

.location-pin.risk-extreme.caca-zone {
    animation: cacaFlicker 0.3s ease-in-out infinite;
}

@keyframes currentPinPulse {
    0%, 100% { 
        r: 8;
        filter: drop-shadow(0 0 15px #fff) drop-shadow(0 0 30px #00ff41);
    }
    50% { 
        r: 12;
        filter: drop-shadow(0 0 25px #fff) drop-shadow(0 0 50px #00ff41);
    }
}

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

@keyframes extremePulse {
    0%, 100% { 
        opacity: 1;
        filter: drop-shadow(0 0 12px #ff0040);
    }
    50% { 
        opacity: 0.6;
        filter: drop-shadow(0 0 20px #ff0040) drop-shadow(0 0 30px #8b0000);
    }
}

@keyframes cacaFlicker {
    0%, 100% { 
        opacity: 1;
        filter: drop-shadow(0 0 15px #ff0040) drop-shadow(3px 3px 0 rgba(139,69,19,0.5));
    }
    25% { 
        opacity: 0.9;
        filter: drop-shadow(0 0 20px #ff0040) drop-shadow(-2px 2px 0 rgba(139,69,19,0.7));
    }
    75% { 
        opacity: 0.8;
        filter: drop-shadow(0 0 25px #ff0040) drop-shadow(2px -2px 0 rgba(139,69,19,0.6));
    }
}

.pin-label {
    font-family: 'Permanent Marker', 'Impact', sans-serif;
    font-size: 6px;
    fill: #fff;
    text-anchor: middle;
    pointer-events: none;
    text-shadow: 0 0 5px #000, 0 0 10px #000;
    opacity: 0;
    transition: opacity 0.2s;
}

.location-pin:hover + .pin-label,
.location-pin.current-location + .pin-label {
    opacity: 1;
}

.here-label {
    font-family: 'Permanent Marker', 'Impact', sans-serif;
    font-size: 5px;
    fill: #00ff41;
    text-anchor: middle;
    pointer-events: none;
    animation: hereBlink 1s ease-in-out infinite;
    filter: drop-shadow(0 0 5px #00ff41) drop-shadow(0 0 10px #00ff41);
    font-weight: bold;
    letter-spacing: 0.5px;
}

@keyframes hereBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.pin-icon {
    pointer-events: none;
    filter: drop-shadow(0 0 3px rgba(0,0,0,0.8));
    user-select: none;
}

.touch-target {
    cursor: pointer;
}

.pin-glow {
    pointer-events: none;
}

.travel-line {
    animation: travelDash 1s linear infinite;
    pointer-events: none;
}

@keyframes travelDash {
    0% { stroke-dashoffset: 0; }
    100% { stroke-dashoffset: -12; }
}

.pulse-ring {
    animation: pulseRing 2s ease-out infinite;
    pointer-events: none;
}

.pulse-ring-outer {
    animation: pulseRing 2s ease-out infinite 0.3s;
    pointer-events: none;
}

@keyframes pulseRing {
    0% { 
        opacity: 0.6;
        r: 8;
    }
    100% { 
        opacity: 0;
        r: 14;
    }
}

.location-group {
    cursor: pointer;
}

.location-group:hover .location-pin {
    transform-origin: center;
    transform: scale(1.2);
}

.location-group:hover .pin-glow {
    opacity: 0.6;
}

.location-tooltip {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(100%);
    background: linear-gradient(135deg, rgba(5,0,15,0.98) 0%, rgba(20,0,40,0.98) 100%);
    border: 2px solid var(--neon-purple);
    border-radius: 15px;
    padding: 18px 22px;
    min-width: 280px;
    max-width: 90vw;
    z-index: 100;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 0 40px rgba(191,0,255,0.4), 
        0 0 80px rgba(191,0,255,0.2),
        inset 0 0 30px rgba(191,0,255,0.15),
        0 5px 30px rgba(0,0,0,0.5);
    backdrop-filter: blur(10px);
}

.location-tooltip.active {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.tooltip-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.tooltip-name {
    font-family: 'Permanent Marker', 'Impact', sans-serif;
    font-size: clamp(16px, 4vw, 20px);
    color: #fff;
    text-shadow: 0 0 10px var(--neon-purple);
}

.tooltip-risk {
    font-size: 14px;
    letter-spacing: 2px;
}

.tooltip-risk.risk-low { color: #00ff41; }
.tooltip-risk.risk-medium { color: #ffcc00; }
.tooltip-risk.risk-high { color: #ff6600; }
.tooltip-risk.risk-extreme { color: #ff0040; }

.tooltip-desc {
    font-size: clamp(11px, 3vw, 13px);
    color: #aaa;
    margin-bottom: 10px;
    line-height: 1.4;
}

.tooltip-travel {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 12px;
    padding: 8px;
    background: rgba(0,0,0,0.5);
    border-radius: 8px;
}

.travel-cost {
    font-size: 12px;
    color: var(--neon-red);
    font-weight: bold;
}

.travel-cost.no-cost {
    color: var(--neon-green);
}

.btn-confirm-move {
    width: 100%;
    background: linear-gradient(135deg, var(--neon-purple) 0%, #ff00ff 100%);
    border: none;
    color: #fff;
    font-family: 'Permanent Marker', 'Impact', sans-serif;
    font-size: 16px;
    padding: 12px;
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 2px;
    box-shadow: 0 0 15px rgba(191,0,255,0.5);
    transition: all 0.2s;
}

.btn-confirm-move:active {
    transform: scale(0.95);
    box-shadow: 0 0 25px rgba(191,0,255,0.8);
}

.btn-confirm-move.at-location {
    background: #333;
    color: #666;
    box-shadow: none;
    pointer-events: none;
}

.quick-travel-bar {
    display: flex;
    gap: 8px;
    padding: 12px 15px;
    background: rgba(0,0,0,0.9);
    border-top: 2px solid var(--neon-purple);
}

.btn-quick-travel {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 10px 8px;
    background: rgba(30,0,50,0.8);
    border: 1px solid var(--neon-purple);
    border-radius: 10px;
    color: #fff;
    font-size: 10px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.2s;
}

.btn-quick-travel:active {
    transform: scale(0.95);
    background: var(--neon-purple);
}

.quick-icon {
    font-size: 18px;
}

.btn-safest {
    border-color: #00ff41;
    box-shadow: 0 0 10px rgba(0,255,65,0.3);
}

.btn-safest:active {
    background: #00ff41;
    color: #000;
}

.btn-richest {
    border-color: #ffcc00;
    box-shadow: 0 0 10px rgba(255,204,0,0.3);
}

.btn-richest:active {
    background: #ffcc00;
    color: #000;
}

.btn-current {
    border-color: #fff;
    box-shadow: 0 0 10px rgba(255,255,255,0.3);
}

.minimap-container {
    display: none;
}

.minimap-hint {
    display: none;
}

.salem-minimap {
    display: none;
}

.minimap-zone {
    display: none;
}

.minimap-zone:hover {
    display: none;
}

.minimap-zone.current-zone {
    display: none;
}

@keyframes zonePulse {
    0%, 100% { stroke-opacity: 1; }
    50% { stroke-opacity: 0.5; }
}

.player-marker {
    animation: markerBlink 1s ease-in-out infinite;
}

@keyframes markerBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.location-grid {
    display: none !important;
}

.zone-toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    background: rgba(0, 0, 0, 0.95);
    border: 3px solid var(--neon-purple);
    border-radius: 15px;
    padding: 20px 30px;
    text-align: center;
    z-index: 9999;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
    max-width: 90vw;
}

.zone-toast.show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.zone-enter {
    color: var(--neon-purple);
    font-size: 0.8em;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.zone-name {
    color: var(--neon-green);
    font-weight: bold;
    font-size: 1.2em;
    text-shadow: 0 0 10px var(--neon-green);
}

.zone-flavor {
    color: #aaa;
    font-style: italic;
    font-size: 0.9em;
    margin-top: 5px;
}

.death-zone {
    margin-top: 10px;
}

.zone-death-tag {
    display: inline-block;
    padding: 5px 15px;
    border-radius: 15px;
    font-size: 0.8em;
    font-weight: bold;
    color: #000;
    text-transform: uppercase;
}

.hood-stat {
    border-left: 2px solid var(--neon-red);
    padding-left: 15px;
}

#game-screen.theme-brutalist {
    background: linear-gradient(180deg, #1a1a2e 0%, #0a0a0f 100%);
}

#game-screen.theme-danger {
    background: linear-gradient(180deg, #2d0a0a 0%, #0a0a0f 100%);
}

#game-screen.theme-food {
    background: linear-gradient(180deg, #2d2d0a 0%, #0a0a0f 100%);
}

#game-screen.theme-nightmare {
    background: linear-gradient(180deg, #3d0a0a 0%, #0a0a0f 100%);
}

#game-screen.theme-cult {
    background: linear-gradient(180deg, #2d0a2d 0%, #0a0a0f 100%);
}

#game-screen.theme-park {
    background: linear-gradient(180deg, #0a2d0a 0%, #0a0a0f 100%);
}

#game-screen.theme-ghetto {
    background: linear-gradient(180deg, #2d1a0a 0%, #0a0a0f 100%);
}

#game-screen.theme-suburb {
    background: linear-gradient(180deg, #1a2d1a 0%, #0a0a0f 100%);
}

#game-screen.theme-carnival {
    background: linear-gradient(180deg, #2d1a0a 0%, #0a0a0f 100%);
}

#game-screen.theme-mall {
    background: linear-gradient(180deg, #1a1a2d 0%, #0a0a0f 100%);
}

.character-container {
    position: relative;
    width: clamp(100px, 25vw, 140px);
    height: clamp(140px, 35vw, 200px);
    margin: 2vw auto;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.character-container:active {
    transform: scale(0.95);
}

.character-effects {
    position: absolute;
    inset: -20px;
    pointer-events: none;
    z-index: 0;
}

.character-body {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 1;
    transition: all 0.5s ease;
}

.char-head {
    position: relative;
    width: 60%;
    aspect-ratio: 1;
    margin-bottom: -5%;
    z-index: 2;
}

.char-face {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--neon-purple);
    box-shadow: 0 0 15px rgba(191,0,255,0.5);
    transition: all 0.5s ease;
}

.char-eyes {
    position: absolute;
    top: 35%;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 20%;
    pointer-events: none;
    z-index: 3;
}

.char-sweat {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 4;
}

.char-extras {
    position: absolute;
    top: -20%;
    left: 50%;
    transform: translateX(-50%);
    width: 120%;
    height: 50%;
    pointer-events: none;
    z-index: 5;
}

.char-torso {
    width: 80%;
    height: 55%;
    background: linear-gradient(180deg, #333 0%, #1a1a1a 100%);
    border-radius: 20% 20% 30% 30%;
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    box-shadow: inset 0 10px 20px rgba(0,0,0,0.5);
    transition: all 0.5s ease;
}

.char-torso::before {
    content: '';
    position: absolute;
    top: 10%;
    width: 30%;
    height: 40%;
    background: #222;
    border-radius: 5px;
}

.char-bling {
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    text-align: center;
    font-size: clamp(16px, 4vw, 24px);
    z-index: 3;
    transition: all 0.5s ease;
}

.character-particles {
    position: absolute;
    inset: -30px;
    pointer-events: none;
    z-index: 10;
    overflow: visible;
}

.character-status {
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    font-size: clamp(10px, 2.5vw, 14px);
    font-weight: bold;
    text-transform: uppercase;
    white-space: nowrap;
    text-shadow: 0 0 10px currentColor;
    z-index: 10;
}

.char-tooltip {
    position: absolute;
    top: -60px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.9);
    border: 2px solid var(--neon-purple);
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 11px;
    white-space: nowrap;
    z-index: 20;
    animation: tooltip-pop 0.3s ease;
}

@keyframes tooltip-pop {
    from { opacity: 0; transform: translateX(-50%) translateY(10px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.char-healthy { border-color: var(--neon-green) !important; box-shadow: 0 0 20px rgba(0,255,65,0.6) !important; }
.char-hurt { border-color: #ff9900 !important; box-shadow: 0 0 15px rgba(255,153,0,0.5) !important; }
.char-critical { border-color: var(--neon-red) !important; box-shadow: 0 0 20px rgba(255,0,64,0.8) !important; animation: face-pulse 0.5s ease-in-out infinite !important; }
.char-dead { filter: grayscale(100%) brightness(0.5) !important; border-color: #666 !important; }

@keyframes face-pulse {
    0%, 100% { box-shadow: 0 0 20px rgba(255,0,64,0.8); }
    50% { box-shadow: 0 0 35px rgba(255,0,64,1); }
}

.char-twitch {
    animation: char-twitch 0.1s linear infinite;
}

@keyframes char-twitch {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-2px) rotate(-1deg); }
    75% { transform: translateX(2px) rotate(1deg); }
}

.char-shake {
    animation: char-shake 0.05s linear infinite;
}

@keyframes char-shake {
    0%, 100% { transform: translateX(0) rotate(0); }
    25% { transform: translateX(-3px) rotate(-2deg); }
    50% { transform: translateX(3px) rotate(2deg); }
    75% { transform: translateX(-2px) rotate(-1deg); }
}

.char-nod {
    animation: char-nod 2s ease-in-out infinite;
}

@keyframes char-nod {
    0%, 100% { transform: translateY(0) rotate(0); }
    50% { transform: translateY(5px) rotate(-5deg); }
}

.sweat-drop {
    position: absolute;
    width: 6px;
    height: 10px;
    background: linear-gradient(180deg, rgba(100,200,255,0.8), rgba(50,150,255,0.4));
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    animation: sweat-fall 1s ease-in infinite;
}

@keyframes sweat-fall {
    0% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(30px); }
}

.siren-flash {
    animation: siren-flash 0.3s linear infinite alternate;
}

@keyframes siren-flash {
    0% { background: radial-gradient(circle, rgba(255,0,0,0.3) 0%, transparent 70%); }
    100% { background: radial-gradient(circle, rgba(0,0,255,0.3) 0%, transparent 70%); }
}

.money-glow {
    box-shadow: 0 0 30px rgba(0,255,65,0.8), 0 0 60px rgba(255,234,0,0.4) !important;
}

.particle {
    position: absolute;
    pointer-events: none;
    animation: particle-float 1s ease-out forwards;
}

@keyframes particle-float {
    0% { opacity: 1; transform: translateY(0) scale(1); }
    100% { opacity: 0; transform: translateY(-40px) scale(0.5); }
}

.coin-particle {
    font-size: 16px;
}

.rainbow-trail {
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, 
        rgba(255,0,0,0.2), rgba(255,165,0,0.2), rgba(255,255,0,0.2),
        rgba(0,255,0,0.2), rgba(0,255,255,0.2), rgba(255,0,255,0.2));
    background-size: 400% 400%;
    animation: rainbow-shift 2s ease infinite;
    border-radius: 50%;
    filter: blur(10px);
}

@keyframes rainbow-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.wanted-overlay {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: #8b4513;
    padding: 5px 10px;
    font-size: 10px;
    font-weight: bold;
    color: #000;
    border: 2px solid #5a2d0a;
    font-family: 'Courier New', monospace;
}

.emote-bubble {
    position: absolute;
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 24px;
    animation: emote-pop 1s ease-out forwards;
    z-index: 30;
}

@keyframes emote-pop {
    0% { opacity: 0; transform: translateX(-50%) scale(0) translateY(20px); }
    20% { opacity: 1; transform: translateX(-50%) scale(1.2) translateY(0); }
    40% { transform: translateX(-50%) scale(1) translateY(-5px); }
    100% { opacity: 0; transform: translateX(-50%) scale(0.8) translateY(-30px); }
}

.bruise-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 40%, rgba(100,0,100,0.4) 0%, transparent 30%),
                radial-gradient(circle at 70% 60%, rgba(100,0,100,0.3) 0%, transparent 25%);
    border-radius: 50%;
    pointer-events: none;
}

.zombie-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 30%, rgba(0,100,0,0.4) 0%, transparent 30%),
                radial-gradient(circle at 80% 50%, rgba(0,100,0,0.3) 0%, transparent 25%),
                radial-gradient(circle at 50% 80%, rgba(100,50,0,0.3) 0%, transparent 20%);
    border-radius: 50%;
    pointer-events: none;
    animation: zombie-pulse 1s ease-in-out infinite;
}

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

.god-mode-crown {
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 20px;
    animation: crown-float 1s ease-in-out infinite;
}

@keyframes crown-float {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-5px); }
}

.god-mode-glow {
    box-shadow: 0 0 40px rgba(255,215,0,0.8), 0 0 80px rgba(255,215,0,0.4) !important;
}

.morale-glow {
    box-shadow: 0 0 30px rgba(74,158,255,0.7), 0 0 60px rgba(74,158,255,0.3) !important;
    animation: morale-pulse 1.5s ease-in-out infinite;
}

@keyframes morale-pulse {
    0%, 100% { box-shadow: 0 0 30px rgba(74,158,255,0.7), 0 0 60px rgba(74,158,255,0.3); }
    50% { box-shadow: 0 0 40px rgba(74,158,255,0.9), 0 0 80px rgba(74,158,255,0.5); }
}

.morale-sad {
    filter: grayscale(50%) brightness(0.7);
    box-shadow: 0 0 20px rgba(100,100,100,0.5);
}

.morale-effect {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 16px;
    animation: float-effect 2s ease-in-out infinite;
}

.redemption-effect {
    text-shadow: 0 0 10px rgba(74,158,255,0.8);
}

.hopeful-effect {
    animation: sparkle-effect 1s ease-in-out infinite;
}

@keyframes float-effect {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-8px); }
}

@keyframes sparkle-effect {
    0%, 100% { opacity: 0.7; transform: translateX(-50%) scale(1); }
    50% { opacity: 1; transform: translateX(-50%) scale(1.2); }
}

#character-select-screen {
    background: linear-gradient(180deg, #0a0a15 0%, #1a0a20 50%, #0a0a0f 100%);
    padding: 20px 10px;
    overflow-y: auto;
    min-height: 100vh;
}

.char-title {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
    margin-bottom: 0;
}

.char-subtitle {
    color: #888;
    margin: 10px 0 20px 0;
    font-size: clamp(0.8rem, 3vw, 1rem);
}

.character-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    max-width: 500px;
    margin: 0 auto 20px auto;
    padding: 0 10px;
}

@media (min-width: 600px) {
    .character-grid {
        grid-template-columns: repeat(4, 1fr);
        max-width: 800px;
    }
}

.char-card {
    background: linear-gradient(135deg, rgba(30,10,40,0.9) 0%, rgba(10,10,15,0.95) 100%);
    border: 2px solid rgba(191,0,255,0.3);
    border-radius: 12px;
    padding: 12px 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.char-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 0%, rgba(191,0,255,0.1) 0%, transparent 70%);
    pointer-events: none;
}

.char-card:hover, .char-card:active {
    border-color: var(--neon-purple);
    transform: scale(1.03);
    box-shadow: 0 0 25px rgba(191,0,255,0.4);
}

.char-card.selected {
    border-color: var(--neon-green);
    box-shadow: 0 0 30px rgba(0,255,65,0.5);
    animation: char-selected-pulse 1s ease-in-out infinite;
}

@keyframes char-selected-pulse {
    0%, 100% { box-shadow: 0 0 30px rgba(0,255,65,0.5); }
    50% { box-shadow: 0 0 50px rgba(0,255,65,0.8); }
}

.char-preview {
    position: relative;
    width: 70px;
    height: 70px;
    margin: 0 auto 8px auto;
}

.char-emoji {
    position: absolute;
    bottom: -5px;
    right: -5px;
    font-size: 24px;
    line-height: 1;
    text-align: center;
    filter: drop-shadow(0 0 8px rgba(191,0,255,0.8));
    z-index: 2;
    background: rgba(0,0,0,0.6);
    border-radius: 50%;
    padding: 4px;
}

.char-face-preview {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 55px;
    height: 55px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--neon-purple);
    box-shadow: 0 0 15px rgba(191,0,255,0.5);
    z-index: 1;
}

.char-name {
    font-size: clamp(0.7rem, 2.5vw, 0.9rem);
    margin: 0 0 4px 0;
    color: var(--neon-green);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.char-desc {
    font-size: clamp(0.55rem, 2vw, 0.7rem);
    color: #888;
    margin: 0 0 6px 0;
    line-height: 1.2;
}

.char-bonus {
    font-size: clamp(0.55rem, 2vw, 0.7rem);
    color: var(--neon-purple);
    font-weight: bold;
    background: rgba(191,0,255,0.15);
    padding: 4px 6px;
    border-radius: 4px;
    display: inline-block;
}

.btn-change-char {
    background: linear-gradient(135deg, rgba(100,50,150,0.3) 0%, rgba(50,20,80,0.5) 100%);
    border: 1px solid rgba(191,0,255,0.4);
    font-size: 0.8em;
    padding: 10px 20px;
    margin-top: 15px;
}

.btn-back {
    background: rgba(50,50,50,0.5);
    border: 1px solid #666;
    margin-top: 10px;
}

.char-select-particles {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 100;
    overflow: hidden;
}

.select-particle {
    position: absolute;
    font-size: 24px;
    animation: select-particle-fly 1s ease-out forwards;
    pointer-events: none;
}

@keyframes select-particle-fly {
    0% { opacity: 1; transform: scale(1); }
    100% { opacity: 0; transform: scale(0.5) translateY(-100px); }
}

.char-zoom-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 200;
    animation: zoom-in 0.3s ease-out;
}

@keyframes zoom-in {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}

.char-zoom-emoji {
    font-size: 120px;
    margin-bottom: 20px;
    animation: char-bounce 0.5s ease-out;
}

@keyframes char-bounce {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.char-zoom-name {
    font-size: 2rem;
    color: var(--neon-green);
    text-transform: uppercase;
    margin-bottom: 10px;
}

.char-zoom-bonus {
    font-size: 1.2rem;
    color: var(--neon-purple);
}

.char-card[data-char="lancaster_tweaker"] { border-top: 3px solid #ff4444; }
.char-card[data-char="cartel_princess"] { border-top: 3px solid #ff00ff; }
.char-card[data-char="soccer_mom"] { border-top: 3px solid #ff9999; }
.char-card[data-char="homeless_vet"] { border-top: 3px solid #4a7c4a; }
.char-card[data-char="tiktok_runaway"] { border-top: 3px solid #ff69b4; }
.char-card[data-char="corrupt_cop"] { border-top: 3px solid #4444ff; }
.char-card[data-char="fent_chemist"] { border-top: 3px solid #00ffff; }
.char-card[data-char="wallace_zombie"] { border-top: 3px solid #666666; }

.location-bg-blur {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, transparent 30%, rgba(0,0,0,0.8) 100%);
    pointer-events: none;
    z-index: 0;
}

.compact-hud {
    position: relative;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    background: linear-gradient(180deg, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.6) 100%);
    border-bottom: 1px solid rgba(191,0,255,0.3);
    margin: 0 -3vw 8px -3vw;
    width: calc(100% + 6vw);
    border-radius: 0 0 8px 8px;
}

.hud-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-hud-quit {
    width: 24px;
    height: 24px;
    background: rgba(255,0,64,0.3);
    border: 1px solid var(--neon-red);
    border-radius: 4px;
    color: var(--neon-red);
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    padding: 0;
}

.hud-turn {
    font-size: 11px;
    color: var(--neon-blue);
    font-weight: bold;
}

.hud-stats {
    display: flex;
    gap: 4px;
    flex-wrap: nowrap;
}

.hud-pill {
    display: flex;
    align-items: center;
    gap: 2px;
    background: rgba(0,0,0,0.6);
    border-radius: 12px;
    padding: 3px 6px;
    border: 1px solid rgba(255,255,255,0.1);
}

.hud-icon {
    font-size: 11px;
    line-height: 1;
}

.hud-val {
    font-size: 11px;
    font-weight: bold;
    line-height: 1;
    min-width: 20px;
    text-align: center;
    color: #fff;
}

#hud-health .hud-val { color: #ff4444; }
#hud-money .hud-val { color: #ffea00; }
#hud-heat .hud-val { color: #ff6600; }
#hud-drugs .hud-val { color: #00ff41; }
#hud-morale .hud-val { color: #ff69b4; }

.hud-bar {
    width: 100%;
    height: 3px;
    background: rgba(255,255,255,0.1);
    border-radius: 2px;
    overflow: hidden;
}

.hud-bar-fill {
    height: 100%;
    border-radius: 2px;
    transition: width 0.3s ease;
    box-shadow: 0 0 6px currentColor;
}

.hud-bar-fill.health-bar { background: linear-gradient(90deg, #ff0040, #00ff41); }
.hud-bar-fill.money-bar { background: var(--neon-yellow); }
.hud-bar-fill.heat-bar { background: linear-gradient(90deg, #ff6600, #ff0040); }
.hud-bar-fill.drugs-bar { background: var(--neon-green); }
.hud-bar-fill.morale-bar { background: linear-gradient(90deg, #666, #ff69b4); }

.mega-header {
    position: relative;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 10px;
    background: linear-gradient(180deg, rgba(0,0,0,0.95) 0%, rgba(20,0,40,0.9) 100%);
    border-bottom: 2px solid rgba(191,0,255,0.5);
    margin: 0 -3vw;
    width: calc(100% + 6vw);
    box-shadow: 0 4px 20px rgba(191,0,255,0.3);
}

.header-player {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
}

.header-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid var(--neon-purple);
    object-fit: cover;
    flex-shrink: 0;
}

.header-name {
    font-size: clamp(12px, 3.5vw, 16px);
    font-weight: bold;
    color: var(--neon-yellow);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 120px;
    text-shadow: 0 0 10px rgba(255,234,0,0.5);
}

.header-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.header-turn {
    font-size: 14px;
    font-weight: bold;
    color: var(--neon-blue);
    text-shadow: 0 0 8px rgba(0,234,255,0.5);
}

.header-score {
    font-size: 11px;
    color: var(--neon-green);
}

.gta-hud-container {
    position: relative;
    display: flex;
    flex-direction: row;
    width: 100%;
    height: 38vh;
    min-height: 200px;
    max-height: 320px;
    margin: 0 -3vw;
    width: calc(100% + 6vw);
    background: 
        radial-gradient(ellipse at 30% 60%, rgba(100,0,150,0.2) 0%, transparent 60%),
        linear-gradient(180deg, rgba(10,0,25,0.95) 0%, rgba(0,0,0,0.85) 100%);
    border-bottom: 2px solid rgba(191,0,255,0.4);
    box-shadow: 0 5px 30px rgba(0,0,0,0.8);
    overflow: hidden;
}

.gta-character-side {
    flex: 0 0 58%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 10px 0;
}

.gta-character-side .svg-character {
    width: 100%;
    max-width: 180px;
    height: auto;
    max-height: 100%;
    filter: drop-shadow(0 0 20px rgba(191,0,255,0.4));
}

.gta-character-side .character-glow {
    position: absolute;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(191,0,255,0.15) 0%, transparent 70%);
    pointer-events: none;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.gta-character-side .custom-character-img {
    max-width: 160px;
    max-height: 95%;
    object-fit: contain;
    filter: drop-shadow(0 0 15px rgba(191,0,255,0.5));
}

.gta-stats-panel {
    flex: 0 0 38%;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    justify-content: center;
    gap: 6px;
    padding: 15px 10px 40px 5px;
    background: linear-gradient(90deg, transparent 0%, rgba(0,0,0,0.5) 100%);
}

.gta-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    gap: 4px;
    transition: transform 0.2s ease;
    min-width: 0;
}

.gta-stat.stat-pulse {
    animation: gta-stat-pulse 0.5s ease-out;
}

@keyframes gta-stat-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); filter: brightness(1.5); }
    100% { transform: scale(1); }
}

.gta-stat.stat-shake {
    animation: gta-stat-shake 0.3s ease-in-out;
}

@keyframes gta-stat-shake {
    0%, 100% { transform: translateY(0); }
    25% { transform: translateY(-3px); }
    75% { transform: translateY(3px); }
}

.gta-stat-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.gta-stat-icon {
    font-size: clamp(14px, 4vw, 20px);
    line-height: 1;
    filter: drop-shadow(0 0 5px currentColor);
}

.gta-stat-name {
    font-size: clamp(7px, 2vw, 9px);
    font-weight: bold;
    color: rgba(255,255,255,0.6);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
    white-space: nowrap;
}

.gta-stat-bar-wrap {
    flex: 1;
    width: clamp(12px, 4vw, 20px);
    min-height: 60px;
    background: rgba(0,0,0,0.7);
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 10px;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 2px 8px rgba(0,0,0,0.7), 0 0 10px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column-reverse;
}

.gta-stat-bar {
    width: 100%;
    border-radius: 8px;
    transition: height 0.4s ease-out;
    position: relative;
    overflow: hidden;
}

.gta-stat-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(180deg, rgba(255,255,255,0.3) 0%, transparent 100%);
    pointer-events: none;
}

.gta-stat-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: rgba(255,255,255,0.2);
    pointer-events: none;
}

.gta-stat-bar.health-bar {
    background: linear-gradient(0deg, #ff2222 0%, #ff6666 50%, #44ff44 100%);
    box-shadow: 0 0 15px rgba(255,50,50,0.6);
}

.gta-stat-bar.money-bar {
    background: linear-gradient(0deg, #cc9900 0%, #ffea00 50%, #ffff66 100%);
    box-shadow: 0 0 15px rgba(255,234,0,0.6);
}

.gta-stat-bar.heat-bar {
    background: linear-gradient(0deg, #ff3300 0%, #ff6600 50%, #ffaa00 100%);
    box-shadow: 0 0 15px rgba(255,102,0,0.6);
}

.gta-stat-bar.drugs-bar {
    background: linear-gradient(0deg, #006622 0%, #00cc44 50%, #44ff88 100%);
    box-shadow: 0 0 15px rgba(0,255,65,0.6);
}

.gta-stat-bar.morale-bar {
    background: linear-gradient(0deg, #990066 0%, #cc0088 50%, #ff66cc 100%);
    box-shadow: 0 0 15px rgba(255,105,180,0.6);
}

.gta-stat-value {
    font-size: clamp(10px, 3vw, 14px);
    font-weight: bold;
    text-align: center;
    text-shadow: 0 0 8px currentColor;
    transition: all 0.3s ease;
    min-width: 30px;
}

#stat-health .gta-stat-value { color: #ff4444; }
#stat-money .gta-stat-value { color: #ffea00; }
#stat-heat .gta-stat-value { color: #ff6600; }
#stat-drugs .gta-stat-value { color: #00ff41; }
#stat-morale .gta-stat-value { color: #ff69b4; }

.gta-stat-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: visible;
}

.gta-location-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 6px 8px;
    background: linear-gradient(0deg, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.8) 60%, transparent 100%);
    z-index: 10;
    flex-wrap: nowrap;
    overflow: hidden;
}

.gta-location-bar .zone-badge-mini {
    font-size: clamp(7px, 1.8vw, 10px);
    padding: 2px 5px;
    border-radius: 5px;
    text-transform: uppercase;
    font-weight: bold;
    flex-shrink: 0;
    max-width: 28%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    border: 1px solid rgba(255,255,255,0.3);
}

.gta-location-bar .loc-name {
    font-family: 'Permanent Marker', 'Impact', sans-serif;
    font-size: clamp(11px, 3vw, 16px);
    color: #fff;
    text-shadow: 0 0 8px rgba(191,0,255,0.8), 0 2px 3px rgba(0,0,0,0.8);
    text-transform: uppercase;
    flex: 1;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.gta-location-bar .risk-badge-mini {
    font-size: clamp(11px, 3vw, 14px);
    padding: 4px 8px;
    border-radius: 6px;
    background: rgba(255,0,64,0.5);
    border: 2px solid rgba(255,0,64,0.9);
    color: #fff;
    font-weight: bold;
    flex-shrink: 0;
    white-space: nowrap;
    text-shadow: 0 1px 2px rgba(0,0,0,0.8);
    box-shadow: 0 0 8px rgba(255,0,64,0.5);
}

@media (max-width: 480px) {
    .gta-hud-container {
        height: 35vh;
        min-height: 180px;
    }
    
    .gta-character-side {
        flex: 0 0 55%;
    }
    
    .gta-stats-panel {
        flex: 0 0 42%;
        gap: 4px;
        padding: 10px 6px 10px 2px;
    }
    
    .gta-stat-bar-wrap {
        width: clamp(10px, 3.5vw, 16px);
    }
    
    .gta-character-side .svg-character {
        max-width: 140px;
    }
}

.mega-stats-panel {
    display: none !important;
    gap: 6px;
    padding: 10px 8px;
    margin: 0 -3vw;
    width: calc(100% + 6vw);
    background: linear-gradient(180deg, rgba(20,0,40,0.9) 0%, rgba(0,0,0,0.7) 100%);
    min-height: 18vh;
    max-height: 22vh;
}

.mega-stat {
    display: flex;
    flex-direction: column;
    gap: 3px;
    transition: transform 0.2s ease;
}

.mega-stat.stat-pulse {
    animation: stat-pulse-glow 0.5s ease-out;
}

@keyframes stat-pulse-glow {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

.mega-stat.stat-shake {
    animation: stat-shake 0.3s ease-in-out;
}

@keyframes stat-shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-4px); }
    75% { transform: translateX(4px); }
}

.stat-header {
    display: flex;
    align-items: center;
    gap: 6px;
}

.stat-emoji {
    font-size: clamp(14px, 4vw, 18px);
    line-height: 1;
    filter: drop-shadow(0 0 3px currentColor);
}

.stat-name {
    font-size: clamp(10px, 2.5vw, 12px);
    font-weight: bold;
    color: rgba(255,255,255,0.7);
    text-transform: uppercase;
    letter-spacing: 1px;
    flex: 1;
}

.stat-value {
    font-size: clamp(14px, 4vw, 18px);
    font-weight: bold;
    min-width: 50px;
    text-align: right;
    text-shadow: 0 0 10px currentColor;
    transition: all 0.3s ease;
}

#stat-health .stat-value { color: #ff4444; }
#stat-money .stat-value { color: #ffea00; }
#stat-heat .stat-value { color: #ff6600; }
#stat-drugs .stat-value { color: #00ff41; }
#stat-morale .stat-value { color: #ff69b4; }

.stat-bar-outer {
    height: clamp(12px, 3vh, 18px);
    background: rgba(0,0,0,0.6);
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 6px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.5);
}

.stat-bar-inner {
    height: 100%;
    border-radius: 4px;
    transition: width 0.4s ease-out;
    position: relative;
    overflow: hidden;
}

.stat-bar-inner::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(180deg, rgba(255,255,255,0.3) 0%, transparent 100%);
    border-radius: 4px 4px 0 0;
}

.stat-bar-inner.health-bar {
    background: linear-gradient(90deg, #ff0040 0%, #ff4444 30%, #ffaa00 60%, #00ff41 100%);
    box-shadow: 0 0 15px rgba(0,255,65,0.6), inset 0 0 10px rgba(255,255,255,0.2);
}

.stat-bar-inner.money-bar {
    background: linear-gradient(90deg, #8B7500 0%, #ffea00 50%, #fff700 100%);
    box-shadow: 0 0 15px rgba(255,234,0,0.6), inset 0 0 10px rgba(255,255,255,0.2);
}

.stat-bar-inner.heat-bar {
    background: linear-gradient(90deg, #ff6600 0%, #ff4400 50%, #ff0040 100%);
    box-shadow: 0 0 15px rgba(255,100,0,0.6), inset 0 0 10px rgba(255,255,255,0.2);
}

.stat-bar-inner.drugs-bar {
    background: linear-gradient(90deg, #006600 0%, #00ff41 50%, #00ffaa 100%);
    box-shadow: 0 0 15px rgba(0,255,65,0.6), inset 0 0 10px rgba(255,255,255,0.2);
}

.stat-bar-inner.morale-bar {
    background: linear-gradient(90deg, #660066 0%, #ff69b4 50%, #ff99cc 100%);
    box-shadow: 0 0 15px rgba(255,105,180,0.6), inset 0 0 10px rgba(255,255,255,0.2);
}

.stat-particles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    overflow: hidden;
}

.particle {
    position: absolute;
    font-size: 12px;
    animation: particle-rise 1s ease-out forwards;
    pointer-events: none;
}

@keyframes particle-rise {
    0% { opacity: 1; transform: translateY(0) scale(1); }
    100% { opacity: 0; transform: translateY(-30px) scale(0.5); }
}

.stat-bar-inner.critical {
    animation: bar-critical-pulse 0.5s ease-in-out infinite;
}

@keyframes bar-critical-pulse {
    0%, 100% { box-shadow: 0 0 15px rgba(255,0,64,0.6); }
    50% { box-shadow: 0 0 30px rgba(255,0,64,1), 0 0 50px rgba(255,0,0,0.8); }
}

.stat-bar-inner.heat-danger {
    animation: bar-heat-danger 0.3s ease-in-out infinite;
}

@keyframes bar-heat-danger {
    0%, 100% { 
        box-shadow: 0 0 20px rgba(255,0,0,0.8);
        background: linear-gradient(90deg, #ff0000 0%, #ff0040 100%);
    }
    50% { 
        box-shadow: 0 0 40px rgba(255,0,0,1), 0 0 60px rgba(0,0,255,0.5);
        background: linear-gradient(90deg, #0000ff 0%, #ff0000 100%);
    }
}

.mega-stat.money-explode .stat-particles::before,
.mega-stat.money-explode .stat-particles::after {
    content: '💰';
    position: absolute;
    animation: coin-explode 0.8s ease-out forwards;
}

.mega-stat.money-explode .stat-particles::before {
    left: 30%;
    animation-delay: 0s;
}

.mega-stat.money-explode .stat-particles::after {
    left: 60%;
    animation-delay: 0.1s;
}

@keyframes coin-explode {
    0% { opacity: 1; transform: translateY(0) scale(1) rotate(0deg); }
    100% { opacity: 0; transform: translateY(-50px) scale(1.5) rotate(180deg); }
}

.mega-character-container {
    display: none;
}

.svg-character-container {
    position: relative;
    width: 100%;
    height: clamp(120px, 18vh, 160px);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 4px 0;
    cursor: pointer;
    z-index: 10;
}

.svg-character-container:active {
    transform: scale(0.98);
}

.svg-character {
    width: auto;
    height: 100%;
    max-width: 65%;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.5));
    animation: char-idle 3s ease-in-out infinite;
}

@keyframes char-idle {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

.svg-character .char-body-svg {
    transition: all 0.3s ease;
}

.svg-character.char-shake {
    animation: char-shake 0.3s ease-in-out infinite;
}

.svg-character.char-twitch {
    animation: char-twitch 0.5s ease-in-out infinite;
}

@keyframes char-shake {
    0%, 100% { transform: translateX(0) translateY(0); }
    25% { transform: translateX(-3px) translateY(-1px); }
    50% { transform: translateX(3px) translateY(1px); }
    75% { transform: translateX(-2px) translateY(-1px); }
}

@keyframes char-twitch {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    20% { transform: translateY(-2px) rotate(1deg); }
    40% { transform: translateY(0) rotate(-1deg); }
    60% { transform: translateY(-1px) rotate(0.5deg); }
    80% { transform: translateY(1px) rotate(-0.5deg); }
}

.svg-character-container .character-glow {
    width: 100%;
    height: 100%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    filter: blur(30px);
}

.svg-character-container .char-status-label {
    top: -8px;
    font-size: 11px;
    padding: 3px 12px;
}

.custom-character-img {
    height: 100%;
    max-height: 100%;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.6));
    animation: char-idle 3s ease-in-out infinite;
}

.character-glow {
    position: absolute;
    width: 70%;
    height: 80%;
    background: radial-gradient(ellipse, rgba(191,0,255,0.15) 0%, transparent 70%);
    filter: blur(20px);
    z-index: 0;
    animation: glow-pulse 3s ease-in-out infinite;
}

@keyframes glow-pulse {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.05); }
}

.mega-character {
    position: relative;
    width: clamp(140px, 45vw, 220px);
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 1;
    transition: all 0.3s ease;
}

.char-status-label {
    position: absolute;
    top: -5px;
    left: 50%;
    transform: translateX(-50%);
    font-size: clamp(10px, 2.5vw, 14px);
    font-weight: bold;
    text-transform: uppercase;
    padding: 2px 10px;
    border-radius: 10px;
    background: rgba(0,0,0,0.8);
    border: 1px solid currentColor;
    text-shadow: 0 0 10px currentColor;
    white-space: nowrap;
    z-index: 100;
}

.char-extras-top {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 150%;
    text-align: center;
    font-size: clamp(20px, 6vw, 36px);
    z-index: 50;
    pointer-events: none;
}

.char-head-mega {
    position: relative;
    width: clamp(80px, 25vw, 120px);
    height: clamp(80px, 25vw, 120px);
    margin-top: 25px;
    z-index: 20;
}

.char-face-mega {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--neon-purple);
    box-shadow: 0 0 25px rgba(191,0,255,0.6), inset 0 0 20px rgba(0,0,0,0.3);
    transition: all 0.5s ease;
}

.char-head-mega.skull-fallback::before {
    content: '💀';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: clamp(50px, 18vw, 90px);
    z-index: 5;
    filter: drop-shadow(0 0 15px rgba(191,0,255,0.8));
}

.char-head-mega.skull-fallback {
    background: radial-gradient(circle, rgba(30,0,40,0.9) 0%, rgba(0,0,0,0.95) 70%);
    border-radius: 50%;
    border: 4px solid var(--neon-purple);
    box-shadow: 0 0 25px rgba(191,0,255,0.6);
}

.char-eyes-mega {
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translateX(-50%);
    font-size: clamp(14px, 4vw, 22px);
    pointer-events: none;
    z-index: 25;
}

.char-sweat-mega {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 26;
}

.char-face-overlay {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    pointer-events: none;
    z-index: 27;
    transition: all 0.3s ease;
}

.char-body-full {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    flex: 1;
    margin-top: -15px;
    z-index: 10;
}

.char-torso-mega {
    position: relative;
    width: 85%;
    height: 45%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    z-index: 11;
    background: linear-gradient(180deg, #333 0%, #1a1a1a 100%);
    border-radius: 30% 30% 20% 20%;
}

.char-outfit {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 10%;
    font-size: 50px;
    z-index: 12;
    border-radius: inherit;
}

.char-bling-mega {
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translateX(-50%);
    font-size: clamp(20px, 6vw, 40px);
    text-shadow: 0 0 15px rgba(255,234,0,0.8);
    z-index: 15;
}

.char-legs {
    width: 70%;
    height: 35%;
    display: flex;
    justify-content: center;
    gap: 8%;
    z-index: 9;
}

.char-legs .leg {
    width: 35%;
    height: 100%;
    background: linear-gradient(180deg, #333 0%, #1a1a1a 100%);
    border-radius: 10px 10px 5px 5px;
}

.char-feet {
    width: 80%;
    height: 15%;
    display: flex;
    justify-content: center;
    gap: 20%;
    font-size: 36px;
    z-index: 8;
}

.char-stat-effects {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 30;
    overflow: visible;
}

.char-shadow {
    position: absolute;
    bottom: 5%;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 8%;
    background: radial-gradient(ellipse, rgba(0,0,0,0.6) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
}

.location-display-compact {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 4px 10px;
    background: rgba(0,0,0,0.7);
    border-radius: 15px;
    margin: 0 auto 5px;
    width: fit-content;
    max-width: 90%;
}

.zone-badge-mini {
    font-size: 9px;
    padding: 2px 6px;
    border-radius: 8px;
    text-transform: uppercase;
    font-weight: bold;
}

.loc-name {
    font-size: clamp(11px, 3vw, 14px);
    color: var(--neon-purple);
    font-weight: bold;
    text-shadow: 0 0 10px rgba(191,0,255,0.5);
}

.risk-badge-mini {
    font-size: 9px;
    padding: 2px 6px;
    border-radius: 8px;
    font-weight: bold;
    background: #ff0040;
    color: #fff;
}

#character-body.archetype-tweaker .char-torso-mega { background: linear-gradient(180deg, #5a5a5a 0%, #3a3a3a 40%, #444 100%) !important; }
#character-body.archetype-tweaker .char-outfit::before { content: '🧥'; position: absolute; top: 8%; left: 50%; transform: translateX(-50%); font-size: 48px; }
#character-body.archetype-tweaker .char-outfit::after { content: '💉'; position: absolute; bottom: 25%; right: 10%; font-size: 32px; opacity: 0.8; }
#character-body.archetype-tweaker .char-legs .leg { background: linear-gradient(180deg, #4a4a4a 0%, #2a2a2a 100%) !important; }

#character-body.archetype-princess .char-torso-mega { background: linear-gradient(180deg, #ff1493 0%, #ff69b4 40%, #2a2a2a 40%, #1a1a1a 100%) !important; border-radius: 20% 20% 45% 45% !important; }
#character-body.archetype-princess .char-outfit::before { content: '👑'; position: absolute; top: -20%; left: 50%; transform: translateX(-50%); font-size: 48px; }
#character-body.archetype-princess .char-outfit::after { content: '💅'; position: absolute; top: 20%; right: 5%; font-size: 36px; }
#character-body.archetype-princess .char-legs .leg { background: repeating-linear-gradient(0deg, #2a2a2a 0px, #2a2a2a 6px, rgba(255,20,147,0.4) 6px, rgba(255,20,147,0.4) 12px) !important; }

#character-body.archetype-mom .char-torso-mega { background: linear-gradient(180deg, #8b6a9a 0%, #7a5a8a 40%, #3a3a4a 40%, #2a2a3a 100%) !important; }
#character-body.archetype-mom .char-outfit::before { content: '👚'; position: absolute; top: 8%; left: 50%; transform: translateX(-50%); font-size: 48px; }
#character-body.archetype-mom .char-outfit::after { content: '🍷'; position: absolute; top: 30%; right: 5%; font-size: 36px; }
#character-body.archetype-mom .char-legs .leg { background: linear-gradient(180deg, #2a2a5a 0%, #3a3a6a 100%) !important; }

#character-body.archetype-vet .char-torso-mega { background: linear-gradient(180deg, #5d7a5d 0%, #4d6a4d 45%, #6a6a5a 45%, #5a5a4a 100%) !important; }
#character-body.archetype-vet .char-outfit::before { content: '🎖️'; position: absolute; top: 8%; left: 25%; font-size: 40px; }
#character-body.archetype-vet .char-outfit::after { content: '📋'; position: absolute; bottom: 20%; left: 50%; transform: translateX(-50%); font-size: 36px; opacity: 0.9; }
#character-body.archetype-vet .char-legs .leg { background: linear-gradient(180deg, #5a5a4a 0%, #4a4a3a 100%) !important; }

#character-body.archetype-tiktoker .char-torso-mega { background: linear-gradient(180deg, #ff1493 0%, #00ffff 45%, #333 45%, #222 100%) !important; border-radius: 25% 25% 35% 35% !important; }
#character-body.archetype-tiktoker .char-outfit::before { content: '📱'; position: absolute; top: 10%; left: 50%; transform: translateX(-50%); font-size: 48px; }
#character-body.archetype-tiktoker .char-outfit::after { content: '💡'; position: absolute; top: -15%; right: 5%; font-size: 32px; filter: drop-shadow(0 0 8px #fff); }
#character-body.archetype-tiktoker .char-legs .leg { background: linear-gradient(180deg, #333 0%, #222 100%) !important; }

#character-body.archetype-cop .char-torso-mega { background: linear-gradient(180deg, #2a2a8a 0%, #3a3a9a 35%, #2a2a8a 35%, #1a1a6a 100%) !important; border-radius: 15% 15% 20% 20% !important; }
#character-body.archetype-cop .char-outfit::before { content: '👮'; position: absolute; top: 8%; left: 50%; transform: translateX(-50%); font-size: 48px; }
#character-body.archetype-cop .char-outfit::after { content: '🍩'; position: absolute; bottom: 20%; right: 10%; font-size: 32px; }
#character-body.archetype-cop .char-legs .leg { background: linear-gradient(180deg, #2a2a6a 0%, #1a1a4a 100%) !important; }

#character-body.archetype-chemist .char-torso-mega { background: linear-gradient(180deg, #ffff33 0%, #ffff00 30%, #ffffff 30%, #f0f0f0 100%) !important; border-radius: 15% 15% 25% 25% !important; }
#character-body.archetype-chemist .char-outfit::before { content: '🥼'; position: absolute; top: 8%; left: 50%; transform: translateX(-50%); font-size: 48px; }
#character-body.archetype-chemist .char-outfit::after { content: '🧪'; position: absolute; top: 40%; right: 10%; font-size: 36px; }
#character-body.archetype-chemist .char-legs .leg { background: linear-gradient(180deg, #f0f0f0 0%, #dddddd 100%) !important; }

#character-body.archetype-zombie .char-torso-mega { background: linear-gradient(180deg, #5a5a4a 0%, #4a4a3a 50%, #3a3a2a 100%) !important; }
#character-body.archetype-zombie .char-torso-mega::after { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(45deg, transparent 0px, transparent 8px, rgba(80,60,40,0.3) 8px, rgba(80,60,40,0.3) 16px); border-radius: inherit; pointer-events: none; }
#character-body.archetype-zombie .char-outfit::before { content: '🧟'; position: absolute; top: 8%; left: 50%; transform: translateX(-50%); font-size: 48px; }
#character-body.archetype-zombie .char-outfit::after { content: '⛺'; position: absolute; bottom: 15%; right: 5%; font-size: 32px; opacity: 0.8; }
#character-body.archetype-zombie .char-face-mega { filter: saturate(0.5) brightness(0.8); border-color: #666 !important; }
#character-body.archetype-zombie .char-legs .leg { background: linear-gradient(180deg, #4a4a3a 0%, #3a3a2a 100%) !important; }

.effect-bruise {
    position: absolute;
    width: 25%;
    height: 25%;
    background: radial-gradient(ellipse, rgba(100,0,100,0.6) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.effect-sweat-drop {
    position: absolute;
    width: 8px;
    height: 12px;
    background: linear-gradient(180deg, rgba(100,200,255,0.8) 0%, rgba(100,200,255,0.3) 100%);
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    animation: sweat-fall 1s ease-in infinite;
}

@keyframes sweat-fall {
    0% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(30px); }
}

.effect-money-chain {
    position: absolute;
    font-size: 28px;
    animation: chain-swing 2s ease-in-out infinite;
}

@keyframes chain-swing {
    0%, 100% { transform: rotate(-5deg); }
    50% { transform: rotate(5deg); }
}

.effect-drug-eyes {
    position: absolute;
    top: 35%;
    left: 50%;
    transform: translateX(-50%);
    font-size: 18px;
    animation: drug-eyes 0.5s ease-in-out infinite alternate;
}

@keyframes drug-eyes {
    0% { filter: hue-rotate(0deg); }
    100% { filter: hue-rotate(360deg); }
}

.effect-hearts {
    position: absolute;
    font-size: 16px;
    animation: heart-float 2s ease-in-out infinite;
}

@keyframes heart-float {
    0%, 100% { transform: translateY(0) scale(1); opacity: 0.8; }
    50% { transform: translateY(-10px) scale(1.1); opacity: 1; }
}

.effect-wanted-glow {
    position: absolute;
    inset: -10px;
    border: 3px solid rgba(255,0,0,0.5);
    border-radius: 50%;
    animation: wanted-pulse 0.5s ease-in-out infinite;
}

@keyframes wanted-pulse {
    0%, 100% { box-shadow: 0 0 20px rgba(255,0,0,0.3); }
    50% { box-shadow: 0 0 40px rgba(255,0,0,0.6), 0 0 60px rgba(255,100,0,0.3); }
}

.effect-rainbow-aura {
    position: absolute;
    inset: -15px;
    background: conic-gradient(from 0deg, #ff0000, #ff7f00, #ffff00, #00ff00, #0000ff, #8b00ff, #ff0000);
    border-radius: 50%;
    opacity: 0.3;
    animation: rainbow-spin 3s linear infinite;
    filter: blur(10px);
}

@keyframes rainbow-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.effect-cop-lights {
    position: absolute;
    inset: 0;
    animation: cop-flash 0.3s linear infinite;
    pointer-events: none;
}

@keyframes cop-flash {
    0%, 50% { box-shadow: inset 0 0 50px rgba(255,0,0,0.3); }
    50.1%, 100% { box-shadow: inset 0 0 50px rgba(0,0,255,0.3); }
}

.mega-character.char-twitch {
    animation: mega-twitch 0.1s linear infinite;
}

@keyframes mega-twitch {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-3px) rotate(-0.5deg); }
    75% { transform: translateX(3px) rotate(0.5deg); }
}

.mega-character.char-shake {
    animation: mega-shake 0.15s linear infinite;
}

@keyframes mega-shake {
    0%, 100% { transform: translateX(0) rotate(0); }
    25% { transform: translateX(-5px) rotate(-1deg); }
    75% { transform: translateX(5px) rotate(1deg); }
}

.mega-character.char-nod {
    animation: mega-nod 1s ease-in-out infinite;
}

@keyframes mega-nod {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.char-face-mega.char-healthy { border-color: var(--neon-green) !important; box-shadow: 0 0 30px rgba(0,255,65,0.6) !important; }
.char-face-mega.char-hurt { border-color: #ff9900 !important; box-shadow: 0 0 25px rgba(255,153,0,0.5) !important; }
.char-face-mega.char-critical { border-color: var(--neon-red) !important; box-shadow: 0 0 35px rgba(255,0,64,0.8) !important; animation: mega-face-pulse 0.5s ease-in-out infinite !important; }
.char-face-mega.char-dead { filter: grayscale(100%) brightness(0.5) !important; border-color: #666 !important; }

@keyframes mega-face-pulse {
    0%, 100% { box-shadow: 0 0 35px rgba(255,0,64,0.8); }
    50% { box-shadow: 0 0 50px rgba(255,0,64,1); }
}

.char-face-mega.money-glow {
    box-shadow: 0 0 40px rgba(255,234,0,0.8), 0 0 60px rgba(255,200,0,0.4) !important;
    animation: money-glow-pulse 1s ease-in-out infinite;
}

@keyframes money-glow-pulse {
    0%, 100% { box-shadow: 0 0 40px rgba(255,234,0,0.8); }
    50% { box-shadow: 0 0 60px rgba(255,234,0,1), 0 0 80px rgba(255,200,0,0.6); }
}

.char-face-mega.god-mode-glow {
    border-color: gold !important;
    box-shadow: 0 0 50px rgba(255,215,0,1), 0 0 80px rgba(255,215,0,0.6), 0 0 100px rgba(255,200,0,0.3) !important;
    animation: god-mode-pulse 1.5s ease-in-out infinite;
}

@keyframes god-mode-pulse {
    0%, 100% { filter: brightness(1) saturate(1); }
    50% { filter: brightness(1.3) saturate(1.2); }
}

.god-mode-crown {
    position: absolute;
    top: -35px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 40px;
    animation: crown-bob 2s ease-in-out infinite;
    filter: drop-shadow(0 0 15px gold);
}

@keyframes crown-bob {
    0%, 100% { transform: translateX(-50%) translateY(0) rotate(-3deg); }
    50% { transform: translateX(-50%) translateY(-8px) rotate(3deg); }
}

.wanted-overlay {
    position: absolute;
    top: -60px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(90deg, transparent, rgba(255,0,0,0.8), transparent);
    color: #fff;
    font-size: 14px;
    font-weight: bold;
    padding: 4px 20px;
    animation: wanted-flash 0.5s ease-in-out infinite;
}

@keyframes wanted-flash {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.siren-flash {
    animation: siren-mega 0.3s linear infinite !important;
}

@keyframes siren-mega {
    0%, 50% { background: rgba(255,0,0,0.1); }
    50.1%, 100% { background: rgba(0,0,255,0.1); }
}

.char-despair-glitch {
    animation: despair-glitch 0.3s linear infinite;
    filter: saturate(0.6) brightness(0.85);
}

@keyframes despair-glitch {
    0%, 100% { transform: translateX(0); filter: saturate(0.6) brightness(0.85); }
    10% { transform: translateX(-2px); filter: saturate(0.4) brightness(0.7) hue-rotate(10deg); }
    20% { transform: translateX(2px); filter: saturate(0.6) brightness(0.9); }
    30% { transform: translateX(-1px); filter: saturate(0.5) brightness(0.8) hue-rotate(-5deg); }
    50% { transform: translateX(0); filter: saturate(0.6) brightness(0.85); }
}

.char-empowered-glow {
    animation: empowered-glow 2s ease-in-out infinite;
    filter: brightness(1.1) saturate(1.1);
}

@keyframes empowered-glow {
    0%, 100% { filter: brightness(1.1) saturate(1.1) drop-shadow(0 0 10px rgba(0,255,65,0.5)); }
    50% { filter: brightness(1.2) saturate(1.2) drop-shadow(0 0 20px rgba(0,255,65,0.8)); }
}

.morale-glow-empowered {
    animation: morale-aura-pulse 1.5s ease-in-out infinite;
}

@keyframes morale-aura-pulse {
    0%, 100% { opacity: 0.8; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.05); }
}

.tear-effect {
    animation: tear-fall 1.5s ease-in-out infinite;
}

@keyframes tear-fall {
    0% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(20px); }
}

.despair-cloud {
    animation: despair-cloud-float 3s ease-in-out infinite;
    opacity: 0.6;
}

@keyframes despair-cloud-float {
    0%, 100% { transform: translateY(0) translateX(0); }
    50% { transform: translateY(-5px) translateX(3px); }
}

.crown-effect {
    animation: crown-sparkle 1s ease-in-out infinite;
}

@keyframes crown-sparkle {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.2); }
}

.ghetto-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.ghetto-modal.active {
    opacity: 1;
    visibility: visible;
}

.ghetto-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
}

.ghetto-modal-content {
    position: relative;
    background: linear-gradient(180deg, #1a0008 0%, #0a0000 50%, #1a0008 100%);
    border: 3px solid #ff0040;
    border-radius: 20px;
    padding: 30px 25px;
    max-width: 90vw;
    width: 340px;
    text-align: center;
    box-shadow: 
        0 0 30px rgba(255,0,64,0.5),
        0 0 60px rgba(255,0,64,0.3),
        inset 0 0 30px rgba(255,0,64,0.1);
    animation: ghettoPulse 2s ease-in-out infinite, ghettoSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
}

@keyframes ghettoPulse {
    0%, 100% { 
        border-color: #ff0040;
        box-shadow: 0 0 30px rgba(255,0,64,0.5), 0 0 60px rgba(255,0,64,0.3), inset 0 0 30px rgba(255,0,64,0.1);
    }
    50% { 
        border-color: #ff3366;
        box-shadow: 0 0 50px rgba(255,0,64,0.7), 0 0 80px rgba(255,0,64,0.4), inset 0 0 40px rgba(255,0,64,0.2);
    }
}

@keyframes ghettoSlideIn {
    0% { 
        transform: scale(0.5) translateY(50px);
        opacity: 0;
    }
    100% { 
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

.caca-bg-laugh {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 150px;
    opacity: 0.05;
    pointer-events: none;
    animation: cacaLaugh 0.8s ease-in-out infinite;
}

.caca-bg-laugh::before {
    content: '💩';
}

@keyframes cacaLaugh {
    0%, 100% { 
        transform: translate(-50%, -50%) scale(1) rotate(-5deg);
    }
    25% { 
        transform: translate(-50%, -50%) scale(1.1) rotate(3deg);
    }
    50% { 
        transform: translate(-50%, -50%) scale(1) rotate(-3deg);
    }
    75% { 
        transform: translate(-50%, -50%) scale(1.05) rotate(5deg);
    }
}

.ghetto-skull {
    font-size: 60px;
    margin-bottom: 15px;
    animation: skullBounce 1s ease-in-out infinite;
    filter: drop-shadow(0 0 20px #ff0040) drop-shadow(0 0 40px rgba(255,0,64,0.5));
}

@keyframes skullBounce {
    0%, 100% { transform: scale(1) rotate(0deg); }
    25% { transform: scale(1.1) rotate(-5deg); }
    50% { transform: scale(1) rotate(0deg); }
    75% { transform: scale(1.1) rotate(5deg); }
}

.ghetto-icon {
    font-size: 50px;
    margin-bottom: 15px;
    filter: drop-shadow(0 0 15px currentColor);
}

.ghetto-title {
    font-family: 'Permanent Marker', 'Impact', sans-serif;
    font-size: clamp(22px, 6vw, 30px);
    color: #ff0040;
    text-shadow: 0 0 10px #ff0040, 0 0 20px rgba(255,0,64,0.5);
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.ghetto-subtitle {
    font-size: clamp(13px, 3.5vw, 16px);
    color: #999;
    margin-bottom: 25px;
    font-style: italic;
}

.ghetto-modal-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.ghetto-modal-buttons.single {
    justify-content: center;
}

.ghetto-btn {
    flex: 1;
    padding: 14px 16px;
    font-family: 'Permanent Marker', 'Impact', sans-serif;
    font-size: clamp(12px, 3vw, 14px);
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.2s ease;
    min-height: 50px;
}

.ghetto-cancel {
    background: linear-gradient(135deg, #1a1a1a 0%, #333 100%);
    border: 2px solid #00ff41;
    color: #00ff41;
    box-shadow: 0 0 15px rgba(0,255,65,0.3);
}

.ghetto-cancel:active {
    transform: scale(0.95);
    box-shadow: 0 0 25px rgba(0,255,65,0.6);
    background: #00ff41;
    color: #000;
}

.ghetto-confirm {
    background: linear-gradient(135deg, #ff0040 0%, #cc0033 100%);
    border: 2px solid #ff0040;
    color: #fff;
    box-shadow: 0 0 20px rgba(255,0,64,0.5);
    animation: confirmGlow 1.5s ease-in-out infinite;
}

@keyframes confirmGlow {
    0%, 100% { box-shadow: 0 0 20px rgba(255,0,64,0.5); }
    50% { box-shadow: 0 0 35px rgba(255,0,64,0.8), 0 0 50px rgba(255,0,64,0.4); }
}

.ghetto-confirm:active {
    transform: scale(0.95);
    background: #ff3366;
}

.ghetto-ok {
    background: linear-gradient(135deg, var(--neon-purple) 0%, #aa00cc 100%);
    border: 2px solid var(--neon-purple);
    color: #fff;
    box-shadow: 0 0 15px rgba(191,0,255,0.5);
    min-width: 150px;
}

.ghetto-ok:active {
    transform: scale(0.95);
    box-shadow: 0 0 30px rgba(191,0,255,0.8);
}

.ghetto-alert .ghetto-modal-content {
    border-color: var(--neon-purple);
    box-shadow: 
        0 0 30px rgba(191,0,255,0.5),
        0 0 60px rgba(191,0,255,0.3),
        inset 0 0 30px rgba(191,0,255,0.1);
    animation: alertPulse 2s ease-in-out infinite, ghettoSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes alertPulse {
    0%, 100% { 
        border-color: var(--neon-purple);
        box-shadow: 0 0 30px rgba(191,0,255,0.5), 0 0 60px rgba(191,0,255,0.3), inset 0 0 30px rgba(191,0,255,0.1);
    }
    50% { 
        border-color: #cc66ff;
        box-shadow: 0 0 50px rgba(191,0,255,0.7), 0 0 80px rgba(191,0,255,0.4), inset 0 0 40px rgba(191,0,255,0.2);
    }
}

.ghetto-alert .ghetto-title {
    color: var(--neon-purple);
    text-shadow: 0 0 10px var(--neon-purple), 0 0 20px rgba(191,0,255,0.5);
}

.ghetto-alert .caca-bg-laugh {
    display: none;
}

.ghetto-success .ghetto-modal-content {
    border-color: #00ff41;
    box-shadow: 
        0 0 30px rgba(0,255,65,0.5),
        0 0 60px rgba(0,255,65,0.3),
        inset 0 0 30px rgba(0,255,65,0.1);
}

.ghetto-success .ghetto-title {
    color: #00ff41;
    text-shadow: 0 0 10px #00ff41, 0 0 20px rgba(0,255,65,0.5);
}

.ghetto-success .ghetto-icon {
    color: #00ff41;
}
