/* ========================================
   ID STEALER - AAA PHOTO REAL STYLES
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Roboto:wght@300;400;700&family=Playfair+Display:wght@700;900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --gold: #d4af37;
    --gold-light: #f4d03f;
    --gold-dark: #b8860b;
    --dark: #0a0a0a;
    --darker: #050505;
    --panel: rgba(10, 10, 10, 0.85);
    --panel-light: rgba(20, 20, 20, 0.75);
    --accent: #e74c3c;
    --accent2: #3498db;
    --green: #27ae60;
    --text: #f0e6d3;
    --text-dim: #8a8275;
    --border: rgba(212, 175, 55, 0.3);
    --glow: 0 0 20px rgba(212, 175, 55, 0.3);
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-family: 'Roboto', sans-serif;
    background: #000;
    color: var(--text);
}

/* ========== SCREENS ========== */
.screen {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    display: none;
    z-index: 1;
}
.screen.active {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.location-bg {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 0;
}
.location-bg::after {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(180deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.6) 100%);
    z-index: 1;
}
.bg-image {
    width: 100%; height: 100%;
    object-fit: cover;
}

.screen-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1200px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 20px;
    scrollbar-width: thin;
    scrollbar-color: var(--gold-dark) transparent;
}
.screen-content::-webkit-scrollbar { width: 6px; }
.screen-content::-webkit-scrollbar-track { background: transparent; }
.screen-content::-webkit-scrollbar-thumb { background: var(--gold-dark); border-radius: 3px; }

.screen-title {
    font-family: 'Orbitron', monospace;
    font-size: 2.2rem;
    font-weight: 900;
    text-align: center;
    color: var(--gold);
    text-shadow: 0 0 30px rgba(212,175,55,0.5), 0 2px 4px rgba(0,0,0,0.8);
    margin-bottom: 10px;
    letter-spacing: 3px;
}
.screen-desc {
    text-align: center;
    color: var(--text-dim);
    font-size: 1rem;
    margin-bottom: 20px;
}

/* ========== MAIN MENU ========== */
.menu-bg {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: radial-gradient(ellipse at center, #1a1a2e 0%, #0a0a0a 70%);
    z-index: 0;
}
.menu-bg::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(212,175,55,0.03) 2px,
        rgba(212,175,55,0.03) 4px
    );
    animation: scanlines 8s linear infinite;
}
@keyframes scanlines {
    0% { transform: translateY(0); }
    100% { transform: translateY(4px); }
}

.menu-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 30px;
}

.game-title {
    font-family: 'Orbitron', monospace;
    font-size: 5rem;
    font-weight: 900;
    color: var(--gold);
    text-shadow: 0 0 60px rgba(212,175,55,0.6), 0 0 120px rgba(212,175,55,0.3), 0 4px 8px rgba(0,0,0,0.9);
    letter-spacing: 12px;
    margin-bottom: 5px;
    animation: titlePulse 3s ease-in-out infinite;
}
@keyframes titlePulse {
    0%, 100% { text-shadow: 0 0 60px rgba(212,175,55,0.6), 0 0 120px rgba(212,175,55,0.3); }
    50% { text-shadow: 0 0 80px rgba(212,175,55,0.8), 0 0 160px rgba(212,175,55,0.5); }
}

.game-subtitle {
    font-family: 'Roboto', sans-serif;
    font-size: 1.2rem;
    color: var(--text-dim);
    letter-spacing: 8px;
    text-transform: uppercase;
    margin-bottom: 30px;
}

.menu-cards {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 20px;
}
.menu-card-display {
    width: 280px;
    height: 175px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5), 0 0 30px rgba(212,175,55,0.2);
    transform: perspective(600px) rotateY(-5deg);
    transition: transform 0.5s;
}
.menu-card-display:last-child {
    transform: perspective(600px) rotateY(5deg);
}
.menu-card-display:hover {
    transform: perspective(600px) rotateY(0deg) scale(1.05);
}

.menu-atm-img {
    margin: 15px auto;
    width: 200px;
    height: 130px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--glow);
}
.menu-atm-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.menu-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
}

/* ========== BUTTONS ========== */
.btn {
    font-family: 'Orbitron', monospace;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}
.btn::after {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: linear-gradient(45deg, transparent 40%, rgba(255,255,255,0.1) 50%, transparent 60%);
    transition: transform 0.5s;
    transform: translateX(-100%);
}
.btn:hover::after {
    transform: translateX(100%);
}

.btn-primary {
    background: linear-gradient(135deg, var(--gold-dark), var(--gold), var(--gold-dark));
    color: #000;
    box-shadow: 0 4px 15px rgba(212,175,55,0.4);
}
.btn-primary:hover {
    box-shadow: 0 6px 25px rgba(212,175,55,0.6);
    transform: translateY(-2px);
}
.btn-primary:disabled {
    background: #444;
    color: #888;
    box-shadow: none;
    cursor: not-allowed;
}

.btn-secondary {
    background: linear-gradient(135deg, #333, #555, #333);
    color: var(--text);
    border: 1px solid var(--border);
}
.btn-secondary:hover {
    background: linear-gradient(135deg, #444, #666, #444);
    border-color: var(--gold);
}

.btn-accent {
    background: linear-gradient(135deg, #c0392b, #e74c3c, #c0392b);
    color: #fff;
}

.btn-dialog {
    background: var(--panel);
    color: var(--text);
    border: 1px solid var(--border);
    text-align: left;
    font-family: 'Roboto', sans-serif;
    font-size: 0.95rem;
    font-weight: 400;
    letter-spacing: 0.5px;
    padding: 10px 20px;
    width: 100%;
    margin: 4px 0;
}
.btn-dialog:hover {
    background: rgba(212,175,55,0.15);
    border-color: var(--gold);
    color: var(--gold-light);
}

.btn-large {
    font-size: 1.1rem;
    padding: 16px 50px;
}
.btn-small {
    font-size: 0.7rem;
    padding: 6px 14px;
}
.btn-menu {
    background: rgba(231,76,60,0.8);
    color: #fff;
}

/* ========== HUD ========== */
.hud {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    height: 50px;
    background: linear-gradient(180deg, rgba(0,0,0,0.95), rgba(0,0,0,0.8));
    border-bottom: 2px solid var(--gold-dark);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 100;
    font-family: 'Orbitron', monospace;
    font-size: 0.8rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}
.hud.hidden { display: none; }

.hud-left, .hud-right {
    display: flex;
    align-items: center;
    gap: 20px;
}
.hud-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}
.hud-label {
    color: var(--text-dim);
    font-size: 0.65rem;
}
.hud-cash {
    color: var(--green);
    font-weight: 700;
}
.hud-location {
    color: var(--gold);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 3px;
}

#hud-drunk-bar {
    display: inline-block;
    width: 80px;
    height: 10px;
    background: #333;
    border-radius: 5px;
    overflow: hidden;
    vertical-align: middle;
}
#hud-drunk-fill {
    display: block;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--green), #f39c12, var(--accent));
    transition: width 0.5s;
    border-radius: 5px;
}

/* ========== LOCATION CONTENT ========== */
.location-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding-top: 60px;
}

.npc-panel {
    text-align: center;
}
.npc-image {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--gold);
    box-shadow: 0 0 30px rgba(212,175,55,0.3), 0 8px 20px rgba(0,0,0,0.5);
}
.npc-name {
    font-family: 'Orbitron', monospace;
    font-size: 1rem;
    color: var(--gold);
    margin-top: 8px;
    letter-spacing: 2px;
}

.dialog-panel {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 20px;
    max-width: 600px;
    width: 100%;
    backdrop-filter: blur(10px);
}
.dialog-text {
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--text);
    margin-bottom: 15px;
    font-style: italic;
    border-left: 3px solid var(--gold);
    padding-left: 15px;
}

/* ========== WORKSHOP ========== */
.workshop-bg {
    background: radial-gradient(ellipse at bottom, #1a1a0a, #0a0a05);
}

.workshop-panels {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}
.workshop-panel {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 15px;
}
.workshop-panel h3 {
    font-family: 'Orbitron', monospace;
    font-size: 0.9rem;
    color: var(--gold);
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.victim-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
    gap: 8px;
    max-height: 300px;
    overflow-y: auto;
}
.victim-thumb {
    width: 70px;
    height: 70px;
    border-radius: 6px;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid #333;
    transition: all 0.3s;
    filter: brightness(0.8);
}
.victim-thumb:hover {
    border-color: var(--gold);
    filter: brightness(1);
    transform: scale(1.1);
}
.victim-thumb.selected {
    border-color: var(--gold);
    box-shadow: 0 0 15px rgba(212,175,55,0.5);
    filter: brightness(1);
}
.victim-thumb.used {
    filter: grayscale(1) brightness(0.4);
    cursor: not-allowed;
    pointer-events: none;
}

.victim-info {
    background: rgba(0,0,0,0.4);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 10px;
    font-size: 0.9rem;
    min-height: 100px;
}
.victim-info p { margin: 4px 0; }
.victim-info .victim-name { color: var(--gold); font-weight: 700; font-size: 1.1rem; }
.victim-info .victim-detail { color: var(--text-dim); }

.workshop-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 10px;
}

.created-document {
    min-height: 50px;
}

.workshop-inventory {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 15px;
}
.workshop-inventory h3 {
    font-family: 'Orbitron', monospace;
    font-size: 0.9rem;
    color: var(--gold);
    margin-bottom: 10px;
}
.inventory-docs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    max-height: 200px;
    overflow-y: auto;
}
.doc-card {
    width: 220px;
    height: 140px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid #333;
    transition: all 0.3s;
    position: relative;
}
.doc-card:hover {
    border-color: var(--gold);
    transform: scale(1.05);
}
.doc-card.active-doc {
    border-color: var(--green);
    box-shadow: 0 0 15px rgba(39,174,96,0.5);
}
.doc-card-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.8);
    font-size: 0.7rem;
    padding: 3px 6px;
    color: var(--gold-light);
}

/* ========== MAP ========== */
.map-bg {
    background: radial-gradient(ellipse at center, #0a1628, #050a14);
}

.map-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 20px;
}
.map-location {
    background: var(--panel);
    border: 2px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s;
    text-align: center;
}
.map-location:hover {
    border-color: var(--gold);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(212,175,55,0.3);
}
.map-thumb {
    width: 100%;
    height: 150px;
    object-fit: cover;
    filter: brightness(0.7);
    transition: filter 0.4s;
}
.map-location:hover .map-thumb {
    filter: brightness(1);
}
.workshop-thumb {
    background: linear-gradient(135deg, #1a1a0a, #2a2a1a);
    display: flex;
    align-items: center;
    justify-content: center;
}
.map-location span {
    display: block;
    padding: 10px;
    font-family: 'Orbitron', monospace;
    font-size: 0.85rem;
    color: var(--gold);
    letter-spacing: 2px;
}

/* ========== CARD SELECT ========== */
.card-select {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 15px;
    max-width: 500px;
    width: 100%;
}
.card-select h3 {
    font-family: 'Orbitron', monospace;
    font-size: 0.9rem;
    color: var(--gold);
    margin-bottom: 10px;
}
.card-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.card-select-item {
    width: 200px;
    height: 126px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid #333;
    transition: all 0.3s;
}
.card-select-item:hover {
    border-color: var(--gold);
    transform: scale(1.05);
}

/* ========== ATM ========== */
.atm-panel {
    text-align: center;
    max-width: 500px;
    margin: 0 auto;
    padding-top: 70px;
}
.atm-title {
    font-family: 'Orbitron', monospace;
    font-size: 1.5rem;
    color: var(--gold);
    margin-bottom: 15px;
}
.atm-screen-display {
    background: linear-gradient(135deg, #001a00, #003300);
    border: 3px solid #444;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 15px;
    font-family: 'Courier New', monospace;
    color: #00ff00;
    text-shadow: 0 0 10px rgba(0,255,0,0.5);
    min-height: 180px;
}
.atm-input {
    background: #001a00;
    border: 1px solid #00ff00;
    color: #00ff00;
    font-family: 'Courier New', monospace;
    font-size: 1.2rem;
    padding: 8px;
    width: 120px;
    text-align: center;
    border-radius: 4px;
    margin: 10px;
}

/* ========== SLOT MACHINE ========== */
.slot-machine {
    background: linear-gradient(180deg, #8B0000, #4a0000, #2a0000);
    border: 4px solid var(--gold);
    border-radius: 20px;
    padding: 25px;
    max-width: 500px;
    margin: 0 auto 20px;
    box-shadow: 0 0 50px rgba(212,175,55,0.3), inset 0 0 30px rgba(0,0,0,0.5);
}
.slot-top {
    text-align: center;
    margin-bottom: 15px;
}
.slot-jackpot {
    font-family: 'Orbitron', monospace;
    font-size: 1.3rem;
    color: var(--gold-light);
    text-shadow: 0 0 20px rgba(244,208,63,0.8);
    animation: jackpotFlash 1.5s ease-in-out infinite;
}
@keyframes jackpotFlash {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.slot-reels {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}
.slot-reel {
    width: 100px;
    height: 120px;
    background: linear-gradient(180deg, #111, #222, #111);
    border: 3px solid var(--gold-dark);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.8);
}
.reel-symbol {
    font-size: 3.5rem;
    text-shadow: 0 0 15px currentColor;
    transition: transform 0.1s;
}

.slot-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}
.slot-bet {
    color: var(--gold);
    font-family: 'Orbitron', monospace;
    font-size: 0.9rem;
}
.slot-input {
    background: #111;
    border: 2px solid var(--gold-dark);
    color: var(--gold);
    font-family: 'Orbitron', monospace;
    font-size: 1rem;
    padding: 8px;
    width: 100px;
    text-align: center;
    border-radius: 6px;
}

.slot-spin {
    animation: spinGlow 2s ease-in-out infinite;
}
@keyframes spinGlow {
    0%, 100% { box-shadow: 0 4px 15px rgba(212,175,55,0.4); }
    50% { box-shadow: 0 4px 30px rgba(212,175,55,0.8); }
}

.slot-result, .bj-result {
    text-align: center;
    font-family: 'Orbitron', monospace;
    font-size: 1.2rem;
    margin-top: 15px;
    min-height: 30px;
    text-shadow: 0 0 10px currentColor;
}

.spinning .reel-symbol {
    animation: reelSpin 0.1s linear infinite;
}
@keyframes reelSpin {
    0% { transform: translateY(-100%); opacity: 0; }
    50% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(100%); opacity: 0; }
}

/* ========== BLACKJACK ========== */
.blackjack-table {
    background: linear-gradient(180deg, #0a3d0a, #1a5c1a, #0a3d0a);
    border: 4px solid var(--gold-dark);
    border-radius: 20px;
    padding: 25px;
    max-width: 700px;
    margin: 0 auto 20px;
    box-shadow: 0 0 40px rgba(0,0,0,0.5);
}
.bj-dealer-area, .bj-player-area {
    text-align: center;
    padding: 10px;
}
.bj-dealer-area h3, .bj-player-area h3 {
    font-family: 'Orbitron', monospace;
    font-size: 0.85rem;
    color: var(--gold);
    letter-spacing: 2px;
    margin-bottom: 8px;
}
.bj-cards {
    display: flex;
    justify-content: center;
    gap: 8px;
    min-height: 120px;
    flex-wrap: wrap;
}
.bj-card {
    width: 80px;
    height: 112px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
    transition: transform 0.3s;
}
.bj-card:hover { transform: translateY(-5px); }

.bj-score {
    font-family: 'Orbitron', monospace;
    font-size: 0.9rem;
    color: var(--gold-light);
    margin-top: 6px;
}
.bj-divider {
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold-dark), transparent);
    margin: 10px 0;
}
.bj-controls {
    text-align: center;
    margin-top: 15px;
    display: flex;
    gap: 10px;
    justify-content: center;
}
.bj-bet-area {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
    color: var(--gold);
    font-family: 'Orbitron', monospace;
}
.bj-action-area {
    display: flex;
    gap: 10px;
}

/* ========== BAR INVENTORY ========== */
.bar-inventory {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 10px;
    max-width: 600px;
    width: 100%;
    max-height: 100px;
    overflow-y: auto;
}

/* ========== TRAVEL ========== */
.travel-info {
    background: var(--panel);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    font-size: 1.1rem;
    max-width: 600px;
    backdrop-filter: blur(10px);
}

/* ========== HOTEL ROOM ========== */
.hotel-room-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 400px;
    margin: 0 auto;
}

/* ========== JAIL ========== */
.jail-title {
    color: var(--accent) !important;
    text-shadow: 0 0 30px rgba(231,76,60,0.5);
}
.jail-info {
    background: var(--panel);
    border: 1px solid rgba(231,76,60,0.3);
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    max-width: 500px;
    margin: 20px auto;
    font-size: 1.1rem;
}
.jail-info p { margin: 8px 0; }
#jail-count {
    font-family: 'Orbitron', monospace;
    color: var(--accent);
    font-size: 1.3rem;
}

/* ========== GAME OVER ========== */
.gameover-bg {
    background: radial-gradient(ellipse at center, #1a0000, #0a0000);
}
.gameover-title {
    font-size: 4rem !important;
    color: var(--accent) !important;
    animation: gameoverPulse 1s ease-in-out infinite;
}
@keyframes gameoverPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.02); }
}
.gameover-text {
    font-size: 1.3rem;
    color: var(--text-dim);
    text-align: center;
    margin: 20px 0;
}
.gameover-stats {
    background: var(--panel);
    border: 1px solid rgba(231,76,60,0.3);
    border-radius: 10px;
    padding: 20px;
    max-width: 400px;
    margin: 20px auto;
    font-size: 1rem;
}
.gameover-stats p { margin: 6px 0; }

/* ========== DRUNK OVERLAY ========== */
.drunk-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 90;
    pointer-events: none;
    transition: all 0.5s;
}
.drunk-overlay.hidden { display: none; }

.drunk-level-1 {
    background: radial-gradient(ellipse at center, transparent 50%, rgba(100,50,0,0.15) 100%);
    animation: drunkSway1 4s ease-in-out infinite;
}
.drunk-level-2 {
    background: radial-gradient(ellipse at center, transparent 30%, rgba(100,50,0,0.25) 100%);
    animation: drunkSway2 3s ease-in-out infinite;
    backdrop-filter: blur(1px);
}
.drunk-level-3 {
    background: radial-gradient(ellipse at center, transparent 20%, rgba(100,50,0,0.4) 100%);
    animation: drunkSway3 2s ease-in-out infinite;
    backdrop-filter: blur(3px);
}
.drunk-level-4 {
    background: radial-gradient(ellipse at center, transparent 10%, rgba(120,40,0,0.5) 100%);
    animation: drunkSway4 1.5s ease-in-out infinite;
    backdrop-filter: blur(5px);
}
.drunk-level-5 {
    background: radial-gradient(ellipse at center, rgba(0,0,0,0.3) 0%, rgba(120,40,0,0.6) 100%);
    animation: drunkSway5 1s ease-in-out infinite;
    backdrop-filter: blur(8px);
}

@keyframes drunkSway1 {
    0%, 100% { transform: rotate(0deg) scale(1); }
    25% { transform: rotate(0.3deg) scale(1.002); }
    75% { transform: rotate(-0.3deg) scale(0.998); }
}
@keyframes drunkSway2 {
    0%, 100% { transform: rotate(0deg) scale(1); }
    25% { transform: rotate(0.8deg) scale(1.005) translateX(2px); }
    75% { transform: rotate(-0.8deg) scale(0.995) translateX(-2px); }
}
@keyframes drunkSway3 {
    0%, 100% { transform: rotate(0deg) scale(1); }
    25% { transform: rotate(1.5deg) scale(1.01) translateX(5px); }
    50% { transform: rotate(0deg) scale(1.005) translateY(3px); }
    75% { transform: rotate(-1.5deg) scale(0.99) translateX(-5px); }
}
@keyframes drunkSway4 {
    0%, 100% { transform: rotate(0deg) scale(1); }
    20% { transform: rotate(2deg) scale(1.02) translate(8px, 3px); }
    40% { transform: rotate(-1deg) scale(0.98) translate(-5px, 5px); }
    60% { transform: rotate(1.5deg) scale(1.01) translate(6px, -3px); }
    80% { transform: rotate(-2deg) scale(0.99) translate(-8px, 2px); }
}
@keyframes drunkSway5 {
    0%, 100% { transform: rotate(0deg) scale(1); }
    15% { transform: rotate(3deg) scale(1.03) translate(12px, 5px); }
    30% { transform: rotate(-2deg) scale(0.97) translate(-10px, 8px); }
    45% { transform: rotate(2.5deg) scale(1.02) translate(8px, -6px); }
    60% { transform: rotate(-3deg) scale(0.98) translate(-12px, 4px); }
    75% { transform: rotate(1.5deg) scale(1.01) translate(6px, -3px); }
    90% { transform: rotate(-2deg) scale(0.99) translate(-8px, 6px); }
}

/* ========== NOTIFICATION ========== */
.notification {
    position: fixed;
    top: 60px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 200;
    transition: all 0.5s;
}
.notification.hidden {
    opacity: 0;
    transform: translateX(-50%) translateY(-20px);
    pointer-events: none;
}
.notification-content {
    background: var(--panel);
    border: 1px solid var(--gold-dark);
    border-radius: 8px;
    padding: 12px 25px;
    font-family: 'Orbitron', monospace;
    font-size: 0.85rem;
    color: var(--gold-light);
    box-shadow: 0 4px 20px rgba(0,0,0,0.5), 0 0 20px rgba(212,175,55,0.2);
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}
.notification.success .notification-content { border-color: var(--green); color: #2ecc71; }
.notification.error .notification-content { border-color: var(--accent); color: #e74c3c; }
.notification.warning .notification-content { border-color: #f39c12; color: #f39c12; }

/* ========== ITEM POPUP ========== */
.item-popup {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 300;
}
.item-popup.hidden { display: none; }
.item-popup-content {
    background: var(--panel);
    border: 2px solid var(--gold);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    max-width: 500px;
    box-shadow: 0 0 50px rgba(212,175,55,0.3);
}
.item-popup-content svg {
    max-width: 400px;
    max-height: 300px;
    margin-bottom: 15px;
}
#item-popup-text {
    font-size: 1rem;
    margin-bottom: 15px;
}

/* ========== UTILITIES ========== */
.hidden { display: none !important; }

.fade-in {
    animation: fadeIn 0.5s ease-in;
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.slide-in {
    animation: slideIn 0.4s ease-out;
}
@keyframes slideIn {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .game-title { font-size: 2.5rem; letter-spacing: 5px; }
    .menu-cards { flex-direction: column; align-items: center; }
    .workshop-panels { grid-template-columns: 1fr; }
    .map-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .npc-image { width: 120px; height: 120px; }
    .slot-machine { padding: 15px; }
    .slot-reel { width: 70px; height: 90px; }
    .reel-symbol { font-size: 2.5rem; }
}

/* Courtroom background */
.courtroom-bg {
    background: radial-gradient(ellipse at center, #1a1005, #0a0800);
}
