/**
 * BEAT STREET: LEGACY - Game Styles
 * Main stylesheet for the game UI
 */

/* ============================================
   CSS VARIABLES
   ============================================ */
:root {
    --primary-color: #ff006e;
    --secondary-color: #8338ec;
    --accent-color: #3a86ff;
    --success-color: #06ffa5;
    --warning-color: #ffbe0b;
    --danger-color: #ff006e;
    
    --bg-dark: #0a0a0f;
    --bg-panel: rgba(10, 10, 15, 0.95);
    --bg-overlay: rgba(0, 0, 0, 0.85);
    
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --text-muted: #666666;
    
    --border-color: rgba(255, 255, 255, 0.1);
    --glow-primary: 0 0 20px rgba(255, 0, 110, 0.5);
    --glow-secondary: 0 0 20px rgba(131, 56, 236, 0.5);
    
    --font-display: 'Orbitron', sans-serif;
    --font-body: 'Rajdhani', sans-serif;
    
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-family: var(--font-body);
    font-size: 16px;
    background: var(--bg-dark);
    color: var(--text-primary);
    user-select: none;
}

#game-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hidden {
    display: none !important;
}

/* ============================================
   LOADING SCREEN
   ============================================ */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0a0a0f 0%, #1a1a2e 50%, #16213e 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

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

.logo-animation h1 {
    font-family: var(--font-display);
    font-size: 4rem;
    font-weight: 900;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: glow 2s ease-in-out infinite alternate;
}

.logo-animation .subtitle {
    display: block;
    font-family: var(--font-display);
    font-size: 1.5rem;
    letter-spacing: 1rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

@keyframes glow {
    from { filter: drop-shadow(0 0 10px rgba(255, 0, 110, 0.5)); }
    to { filter: drop-shadow(0 0 30px rgba(131, 56, 236, 0.8)); }
}

.loading-bar {
    width: 300px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    margin: 2rem auto;
    overflow: hidden;
}

.loading-progress {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
    animation: loading 3s ease-in-out forwards;
}

@keyframes loading {
    0% { width: 0%; }
    50% { width: 60%; }
    100% { width: 100%; }
}

.loading-text {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.loading-status {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

/* ============================================
   MAIN MENU
   ============================================ */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: center;
}

.menu-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.menu-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.menu-overlay-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(10, 10, 15, 0.95) 0%,
        rgba(10, 10, 15, 0.8) 50%,
        rgba(22, 33, 62, 0.9) 100%
    );
}

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

.logo-main h1 {
    font-family: var(--font-display);
    font-size: 5rem;
    font-weight: 900;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 60px rgba(255, 0, 110, 0.3);
}

.logo-main .tagline {
    display: block;
    font-family: var(--font-display);
    font-size: 1rem;
    letter-spacing: 0.5rem;
    color: var(--text-secondary);
    margin-top: 1rem;
}

.menu-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 3rem;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all var(--transition-normal);
    backdrop-filter: blur(10px);
}

.menu-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--secondary-color);
    transform: translateX(10px);
    box-shadow: var(--glow-secondary);
}

.menu-btn.primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
}

.menu-btn.primary:hover {
    transform: scale(1.05);
    box-shadow: var(--glow-primary);
}

.menu-btn.danger {
    background: rgba(255, 0, 110, 0.2);
    border-color: var(--danger-color);
}

.menu-btn.danger:hover {
    background: rgba(255, 0, 110, 0.3);
    box-shadow: 0 0 20px rgba(255, 0, 110, 0.5);
}

.btn-icon {
    font-size: 1.2rem;
}

.menu-footer {
    margin-top: 3rem;
    display: flex;
    justify-content: center;
    gap: 2rem;
    font-size: 0.85rem;
}

.menu-footer a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.menu-footer a:hover {
    color: var(--accent-color);
}

.menu-footer .version {
    color: var(--text-muted);
}

/* ============================================
   GAME HUD
   ============================================ */
#game-hud {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 50;
    pointer-events: none;
}

#game-hud > * {
    pointer-events: auto;
}

/* Top Bar */
.hud-top {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: linear-gradient(180deg, rgba(0,0,0,0.8) 0%, transparent 100%);
}

.hud-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.player-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.player-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--secondary-color);
    box-shadow: var(--glow-secondary);
}

.player-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.player-details {
    text-align: left;
}

.player-name {
    display: block;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1rem;
}

.player-level {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.25rem;
}

.level-badge {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 0.1rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
}

.xp-bar {
    width: 80px;
    height: 6px;
    background: rgba(255,255,255,0.2);
    border-radius: 3px;
    overflow: hidden;
}

.xp-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--success-color), #00d9ff);
    border-radius: 3px;
    transition: width var(--transition-normal);
}

/* Wanted Level */
.wanted-level {
    display: flex;
    gap: 0.25rem;
}

.wanted-level .star {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.2);
    transition: all var(--transition-fast);
}

.wanted-level .star.active {
    color: var(--warning-color);
    text-shadow: 0 0 10px var(--warning-color);
    animation: pulse-star 1s ease-in-out infinite;
}

@keyframes pulse-star {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.location-info {
    text-align: center;
    margin-top: 0.5rem;
}

.location-info span {
    display: block;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Currency Display */
.currency-display {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    align-items: flex-end;
}

.currency {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-family: var(--font-display);
    font-weight: 700;
}

.currency-icon {
    font-size: 0.9rem;
}

.currency.cash {
    color: var(--success-color);
}

.currency.premium {
    color: var(--accent-color);
}

.hud-btn {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.hud-btn:hover {
    background: rgba(255,255,255,0.2);
    border-color: var(--secondary-color);
}

/* Left Panel - Stats */
.hud-left {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
}

.stat-bars {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.stat-bar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stat-icon {
    font-size: 1rem;
    width: 20px;
    text-align: center;
}

.bar-container {
    width: 120px;
    height: 10px;
    background: rgba(0,0,0,0.5);
    border-radius: 5px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.1);
}

.bar-fill {
    height: 100%;
    border-radius: 4px;
    transition: width var(--transition-normal);
}

.bar-fill.health { background: linear-gradient(90deg, #ff4444, #ff6666); }
.bar-fill.energy { background: linear-gradient(90deg, #ffbe0b, #ffd700); }
.bar-fill.hunger { background: linear-gradient(90deg, #8b4513, #cd853f); }
.bar-fill.thirst { background: linear-gradient(90deg, #00bfff, #87ceeb); }
.bar-fill.stress { background: linear-gradient(90deg, #9400d3, #ba55d3); }

.stat-value {
    font-size: 0.75rem;
    color: var(--text-secondary);
    min-width: 25px;
}

/* Right Panel - Weapon */
.hud-right {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: flex-end;
}

.weapon-display {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(0,0,0,0.6);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.1);
}

.weapon-icon {
    font-size: 2rem;
}

.weapon-info {
    text-align: right;
}

.weapon-name {
    display: block;
    font-family: var(--font-display);
    font-size: 0.9rem;
}

.weapon-ammo {
    display: block;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.quick-items {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.quick-slot {
    width: 50px;
    height: 50px;
    background: rgba(0,0,0,0.6);
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.quick-slot:hover {
    border-color: var(--secondary-color);
    background: rgba(131, 56, 236, 0.2);
}

.quick-slot.active {
    border-color: var(--primary-color);
    background: rgba(255, 0, 110, 0.2);
    box-shadow: var(--glow-primary);
}

/* Bottom Panel - Hints */
.hud-bottom {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
}

.action-hints {
    display: flex;
    gap: 1.5rem;
    background: rgba(0,0,0,0.6);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    backdrop-filter: blur(10px);
}

.hint {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.hint kbd {
    background: rgba(255,255,255,0.1);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-family: var(--font-display);
    font-size: 0.75rem;
    border: 1px solid rgba(255,255,255,0.2);
}

/* Minimap */
.minimap-container {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    width: 200px;
    height: 200px;
    background: rgba(0,0,0,0.8);
    border-radius: 50%;
    border: 3px solid rgba(255,255,255,0.2);
    overflow: hidden;
}

#minimap {
    width: 100%;
    height: 100%;
}

.minimap-compass {
    position: absolute;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.8rem;
    color: var(--danger-color);
}

/* Notifications */
#notification-area {
    position: absolute;
    top: 100px;
    right: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-width: 350px;
}

.notification {
    background: rgba(0,0,0,0.9);
    border-left: 4px solid var(--accent-color);
    padding: 1rem;
    border-radius: 0 8px 8px 0;
    animation: slideIn 0.3s ease, fadeOut 0.5s ease 4.5s forwards;
}

.notification.success { border-left-color: var(--success-color); }
.notification.warning { border-left-color: var(--warning-color); }
.notification.error { border-left-color: var(--danger-color); }

.notification-title {
    font-family: var(--font-display);
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.notification-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes fadeOut {
    to { opacity: 0; transform: translateX(100%); }
}

/* Interaction Prompt */
#interaction-prompt {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(0,0,0,0.8);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    animation: pulse 1s ease-in-out infinite;
}

.prompt-key {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.2rem;
}

.prompt-text {
    font-size: 1rem;
    color: var(--text-secondary);
}

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

/* ============================================
   MODALS
   ============================================ */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 200;
    backdrop-filter: blur(5px);
}

.modal-content {
    background: var(--bg-panel);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.modal-large .modal-content {
    max-width: 900px;
}

.modal-full .modal-content {
    max-width: 95%;
    height: 90vh;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color var(--transition-fast);
}

.modal-close:hover {
    color: var(--text-primary);
}

.modal h2 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Forms */
.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"] {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: all var(--transition-fast);
}

.form-group input:focus {
    outline: none;
    border-color: var(--secondary-color);
    background: rgba(255,255,255,0.1);
}

.checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.checkbox input {
    width: 18px;
    height: 18px;
    accent-color: var(--secondary-color);
}

.btn-primary {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    border-radius: 8px;
    color: var(--text-primary);
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--glow-primary);
}

.form-links {
    display: flex;
    justify-content: space-between;
    margin-top: 1rem;
    font-size: 0.85rem;
}

.form-links a {
    color: var(--accent-color);
    text-decoration: none;
}

.form-links a:hover {
    text-decoration: underline;
}

/* Inventory */
.inventory-container {
    display: grid;
    grid-template-columns: 1fr 250px;
    gap: 1rem;
}

.inventory-categories {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.inv-cat {
    padding: 0.5rem 1rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px;
    color: var(--text-secondary);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.inv-cat:hover,
.inv-cat.active {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    color: var(--text-primary);
}

.inventory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 0.5rem;
    max-height: 400px;
    overflow-y: auto;
}

.inv-item {
    aspect-ratio: 1;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    position: relative;
}

.inv-item:hover {
    border-color: var(--secondary-color);
    background: rgba(131, 56, 236, 0.1);
}

.inv-item.selected {
    border-color: var(--primary-color);
    box-shadow: var(--glow-primary);
}

.inv-item-icon {
    font-size: 2rem;
}

.inv-item-quantity {
    position: absolute;
    bottom: 4px;
    right: 4px;
    background: var(--secondary-color);
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
}

.inventory-details {
    background: rgba(255,255,255,0.03);
    border-radius: 8px;
    padding: 1rem;
}

/* Chat */
#chat-container {
    position: absolute;
    bottom: 100px;
    left: 1rem;
    width: 400px;
    pointer-events: none;
}

.chat-messages {
    max-height: 200px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding-bottom: 0.5rem;
}

.chat-message {
    background: rgba(0,0,0,0.7);
    padding: 0.4rem 0.75rem;
    border-radius: 4px;
    font-size: 0.85rem;
}

.chat-message .sender {
    color: var(--accent-color);
    font-weight: 600;
}

.chat-input-container {
    display: flex;
    gap: 0.5rem;
    pointer-events: auto;
}

#chat-input {
    flex: 1;
    padding: 0.5rem 1rem;
    background: rgba(0,0,0,0.8);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 20px;
    color: var(--text-primary);
    font-size: 0.9rem;
}

#chat-input:focus {
    outline: none;
    border-color: var(--secondary-color);
}

#chat-send {
    width: 36px;
    height: 36px;
    background: var(--secondary-color);
    border: none;
    border-radius: 50%;
    color: var(--text-primary);
    cursor: pointer;
    transition: all var(--transition-fast);
}

#chat-send:hover {
    background: var(--primary-color);
}

/* Phone Interface */
#phone-interface {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 100;
}

.phone-frame {
    width: 280px;
    height: 560px;
    background: #1a1a1a;
    border-radius: 40px;
    padding: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #2a2a3a 0%, #1a1a2a 100%);
    border-radius: 32px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.phone-status {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    color: var(--text-primary);
}

.phone-apps {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    padding: 1rem;
    align-content: start;
}

.app {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    cursor: pointer;
    transition: transform var(--transition-fast);
}

.app:hover {
    transform: scale(1.1);
}

.app span:first-child {
    font-size: 2rem;
}

.app span:last-child {
    font-size: 0.65rem;
    color: var(--text-secondary);
}

.phone-home-bar {
    width: 120px;
    height: 5px;
    background: rgba(255,255,255,0.3);
    border-radius: 3px;
    margin: 1rem auto;
}

/* Minigame Container */
#minigame-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 300;
}

.minigame-frame {
    background: var(--bg-panel);
    border-radius: 16px;
    padding: 2rem;
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.minigame-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Voice Chat UI */
#voice-chat-ui {
    position: absolute;
    top: 100px;
    left: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.voice-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(0,0,0,0.6);
    padding: 0.5rem 1rem;
    border-radius: 20px;
}

.voice-waves {
    display: flex;
    gap: 2px;
    align-items: center;
    height: 20px;
}

.voice-waves span {
    width: 3px;
    background: var(--success-color);
    border-radius: 2px;
    animation: voice-wave 0.5s ease-in-out infinite alternate;
}

.voice-waves span:nth-child(2) { animation-delay: 0.1s; height: 60%; }
.voice-waves span:nth-child(3) { animation-delay: 0.2s; height: 80%; }
.voice-waves span:nth-child(4) { animation-delay: 0.3s; height: 40%; }

@keyframes voice-wave {
    from { height: 20%; }
    to { height: 100%; }
}

/* Pause Menu */
#pause-menu .menu-content {
    background: var(--bg-panel);
    padding: 3rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
}

#pause-menu h2 {
    font-family: var(--font-display);
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2rem;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Responsive */
@media (max-width: 1200px) {
    .hud-bottom {
        display: none;
    }
    
    .action-hints {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .hud-left,
    .hud-right {
        display: none;
    }
    
    .minimap-container {
        width: 150px;
        height: 150px;
    }
    
    .logo-main h1 {
        font-size: 3rem;
    }
    
    .menu-buttons {
        max-width: 300px;
    }
    
    #chat-container {
        width: calc(100% - 2rem);
    }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: var(--secondary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}
