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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
    color: #333;
}

.game-container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

/* HUD */
.hud {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    padding: 15px 20px;
    color: white;
}

.currency-display {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.currency-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 14px;
}

.currency-icon {
    font-size: 20px;
}

.currency-name {
    font-weight: 500;
}

.currency-value {
    font-weight: bold;
    color: #f39c12;
}

/* Main Game */
.main-game {
    padding: 30px;
}

/* Mine Section */
.mine-section {
    text-align: center;
    margin-bottom: 30px;
}

.mine-section h2 {
    margin-bottom: 20px;
    color: #2c3e50;
}

.mine-scene {
    position: relative;
    width: 100%;
    max-width: 500px;
    height: 300px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mine-visual {
    position: relative;
    width: 220px;
    height: 220px;
    background: linear-gradient(135deg, #8b7355 0%, #6b5738 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.1s;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4), inset 0 -20px 30px rgba(0, 0, 0, 0.3);
    border: 8px solid #5a4a3a;
    z-index: 10;
}

.mine-visual::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 40px;
    background: #4a3928;
    border-radius: 50% 50% 0 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.mine-visual:active {
    transform: scale(0.95);
}

.mine-entrance {
    font-size: 100px;
    filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.3));
    z-index: 2;
}

.mine-shine {
    position: absolute;
    top: 20%;
    left: 30%;
    width: 40%;
    height: 30%;
    background: radial-gradient(ellipse, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.1);
    }
}

.tap-feedback {
    position: absolute;
    pointer-events: none;
    font-size: 28px;
    font-weight: bold;
    color: #f39c12;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    z-index: 100;
    animation: floatUp 1s ease-out forwards;
}

@keyframes floatUp {
    0% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateY(-60px) scale(1.2);
    }
}

/* Miners Working Animation */
.miners-working {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.miner-sprite {
    position: absolute;
    font-size: 50px;
    z-index: 5;
    animation: minerWork 1.2s ease-in-out infinite;
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.4));
    cursor: default;
    display: block;
    width: 60px;
    height: 60px;
    text-align: center;
    line-height: 60px;
    will-change: transform;
}

.miner-sprite::before {
    content: '⛏️';
    position: absolute;
    left: 50%;
    top: -20px;
    transform: translateX(-50%);
    transform-origin: center bottom;
    animation: swingPickaxe 1.2s ease-in-out infinite;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
    font-size: 32px;
    z-index: 6;
    display: block;
}

.miner-sprite.basic-bob {
    bottom: 10%;
    left: 15%;
    animation-delay: 0s;
    transform: translate(0, 0);
}

.miner-sprite.basic-bob::before {
    animation-delay: 0s;
}

.miner-sprite.ticket-tina {
    bottom: 5%;
    right: 20%;
    animation-delay: 0.3s;
    transform: translate(0, 0);
}

.miner-sprite.ticket-tina::before {
    animation-delay: 0.3s;
}

.miner-sprite.gemmy-joe {
    top: 10%;
    left: 10%;
    animation-delay: 0.6s;
    transform: translate(0, 0);
}

.miner-sprite.gemmy-joe::before {
    animation-delay: 0.6s;
}

.miner-sprite.credit-clara {
    top: 15%;
    right: 15%;
    animation-delay: 0.9s;
    transform: translate(0, 0);
}

.miner-sprite.credit-clara::before {
    animation-delay: 0.9s;
}

@keyframes minerWork {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-10px) rotate(-5deg);
    }
    50% {
        transform: translateY(-5px) rotate(0deg);
    }
    75% {
        transform: translateY(-10px) rotate(5deg);
    }
}

@keyframes swingPickaxe {
    0% {
        transform: translateX(-50%) translateY(0) rotate(-35deg);
    }
    50% {
        transform: translateX(-50%) translateY(-5px) rotate(35deg);
    }
    100% {
        transform: translateX(-50%) translateY(0) rotate(-35deg);
    }
}

.tap-stats {
    display: flex;
    gap: 30px;
    justify-content: center;
    font-size: 16px;
    color: #555;
}

/* Vault Section */
.vault-section {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
}

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

.vault-header h3 {
    color: #2c3e50;
}

.vault-actions {
    display: flex;
    gap: 10px;
}

.collect-btn,
.upgrade-vault-btn {
    background: #27ae60;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s;
}

.collect-btn:hover,
.upgrade-vault-btn:hover {
    background: #229954;
}

.collect-btn:disabled,
.upgrade-vault-btn:disabled {
    background: #95a5a6;
    cursor: not-allowed;
}

.upgrade-vault-btn {
    background: #f39c12;
}

.upgrade-vault-btn:hover:not(:disabled) {
    background: #e67e22;
}

.vault-progress {
    margin-top: 10px;
}

.vault-bar-container {
    width: 100%;
    height: 30px;
    background: #ecf0f1;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 10px;
}

.vault-bar {
    height: 100%;
    background: linear-gradient(90deg, #3498db 0%, #2980b9 100%);
    width: 0%;
    transition: width 0.3s;
}

.vault-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.vault-full-alert {
    color: #e74c3c;
    font-weight: bold;
    display: none;
}

.vault-full-alert.show {
    display: inline;
}

.vault-time {
    font-size: 14px;
    color: #7f8c8d;
    margin-bottom: 10px;
}

.vault-upgrade-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background: rgba(243, 156, 18, 0.1);
    border-radius: 8px;
    margin-top: 10px;
    font-size: 14px;
}

.vault-upgrade-info > div {
    color: #2c3e50;
}

.vault-upgrade-cost {
    font-weight: bold;
    color: #f39c12;
}

/* Miners Section */
.miners-section {
    margin-bottom: 30px;
}

.miners-section h3 {
    margin-bottom: 15px;
    color: #2c3e50;
}

.miners-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}

.miner-card {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
    border: 2px solid #e0e0e0;
}

.miner-card.active {
    border-color: #27ae60;
    background: #e8f8f5;
}

.miner-card.inactive {
    opacity: 0.6;
}

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

.miner-name {
    font-weight: bold;
    color: #2c3e50;
}

.miner-status {
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 4px;
    background: #27ae60;
    color: white;
}

.miner-status.inactive {
    background: #95a5a6;
}

.miner-stats {
    font-size: 14px;
    color: #555;
    margin-bottom: 10px;
}

.miner-actions {
    display: flex;
    gap: 10px;
}

.miner-btn {
    flex: 1;
    padding: 8px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s;
}

.miner-btn.unlock {
    background: #3498db;
    color: white;
}

.miner-btn.unlock:hover {
    background: #2980b9;
}

.miner-btn.upgrade {
    background: #f39c12;
    color: white;
}

.miner-btn.upgrade:hover {
    background: #e67e22;
}

.miner-btn:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
}

/* Shop Section */
.shop-section {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
}

.shop-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.shop-tab {
    flex: 1;
    padding: 12px;
    border: none;
    background: #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s;
}

.shop-tab.active {
    background: #3498db;
    color: white;
}

.shop-content {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
}

.shop-item {
    background: white;
    padding: 20px;
    border-radius: 10px;
    border: 2px solid #e0e0e0;
    transition: all 0.3s;
}

.shop-item:hover {
    border-color: #3498db;
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.2);
}

.shop-item.owned {
    border-color: #27ae60;
    background: #e8f8f5;
}

.shop-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.shop-item-name {
    font-weight: bold;
    font-size: 18px;
    color: #2c3e50;
}

.shop-item-icon {
    font-size: 32px;
}

.shop-item-stats {
    font-size: 14px;
    color: #555;
    margin-bottom: 15px;
}

.shop-item-cost {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.cost-badge {
    padding: 5px 10px;
    background: #ecf0f1;
    border-radius: 5px;
    font-size: 12px;
}

.cost-badge.insufficient {
    background: #fadbd8;
    color: #c0392b;
}

.shop-item-btn {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 8px;
    background: #3498db;
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}

.shop-item-btn:hover {
    background: #2980b9;
}

.shop-item-btn:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
}

.shop-item-btn.owned {
    background: #27ae60;
}

/* Notifications */
.notifications {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.notification {
    background: white;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease-out;
    min-width: 250px;
}

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

.notification.crit {
    border-left: 4px solid #e74c3c;
}

.notification.rare {
    border-left: 4px solid #9b59b6;
}

.notification.success {
    border-left: 4px solid #27ae60;
}

/* Responsive */
@media (max-width: 768px) {
    .currency-display {
        flex-direction: column;
        gap: 10px;
    }
    
    .miners-list,
    .shop-content {
        grid-template-columns: 1fr;
    }
}

