/* ========================================
   Spellbound Shadows - Game Styles
   ======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    min-height: 100vh;
    overflow: hidden;
    color: #e8e8e8;
}

#game-container {
    width: 100vw;
    height: 100vh;
    position: relative;
}

/* ========================================
   Screens
   ======================================== */

.screen {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 0;
    left: 0;
    transition: opacity 0.3s ease;
}

.screen.hidden {
    display: none;
    opacity: 0;
}

/* Generic hidden class for any element */
.hidden {
    display: none !important;
}

/* ========================================
   Start Screen
   ======================================== */

.game-title {
    font-size: 4rem;
    color: #ffd700;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.5),
                 0 0 40px rgba(255, 215, 0, 0.3);
    margin-bottom: 10px;
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        text-shadow: 0 0 20px rgba(255, 215, 0, 0.5),
                     0 0 40px rgba(255, 215, 0, 0.3);
    }
    to {
        text-shadow: 0 0 30px rgba(255, 215, 0, 0.8),
                     0 0 60px rgba(255, 215, 0, 0.5);
    }
}

.subtitle {
    font-size: 1.5rem;
    color: #b8b8d1;
    margin-bottom: 40px;
}

.menu-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 40px;
}

.menu-btn {
    background: linear-gradient(145deg, #4a4e69, #22223b);
    border: 2px solid #9a8c98;
    color: #f2e9e4;
    padding: 15px 40px;
    font-size: 1.3rem;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 250px;
}

.menu-btn:hover {
    background: linear-gradient(145deg, #5c6078, #2a2a42);
    border-color: #ffd700;
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

.character-select {
    text-align: center;
}

.character-select h3 {
    margin-bottom: 15px;
    color: #c9ada7;
}

#color-options {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.color-option {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s ease;
    position: relative;
}

.color-option:hover,
.color-option.selected {
    border-color: #ffd700;
    transform: scale(1.2);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
}

.color-option::after {
    content: '🎩';
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.2rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.color-option:hover::after,
.color-option.selected::after {
    opacity: 1;
}

/* ========================================
   Map Options
   ======================================== */

.map-options {
    margin-top: 30px;
    text-align: center;
    background: rgba(0, 0, 0, 0.3);
    padding: 20px 30px;
    border-radius: 15px;
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.map-options h3 {
    margin-bottom: 15px;
    color: #c9ada7;
}

.map-option-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 10px 0;
}

.map-option-row label {
    color: #e8e8e8;
    font-size: 0.95rem;
    min-width: 80px;
    text-align: right;
}

.map-select {
    background: rgba(74, 78, 105, 0.8);
    border: 2px solid #9a8c98;
    color: #f2e9e4;
    padding: 8px 15px;
    font-size: 0.95rem;
    border-radius: 8px;
    cursor: pointer;
    min-width: 160px;
    transition: all 0.3s ease;
}

.map-select:hover,
.map-select:focus {
    border-color: #ffd700;
    outline: none;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.2);
}

.map-input {
    background: rgba(74, 78, 105, 0.8);
    border: 2px solid #9a8c98;
    color: #f2e9e4;
    padding: 8px 15px;
    font-size: 0.95rem;
    border-radius: 8px;
    width: 120px;
    transition: all 0.3s ease;
}

.map-input:hover,
.map-input:focus {
    border-color: #ffd700;
    outline: none;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.2);
}

.map-input::placeholder {
    color: rgba(242, 233, 228, 0.5);
}

.seed-btn {
    background: rgba(74, 78, 105, 0.8);
    border: 2px solid #9a8c98;
    color: #f2e9e4;
    padding: 6px 12px;
    font-size: 1.2rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.seed-btn:hover {
    border-color: #ffd700;
    background: rgba(255, 215, 0, 0.2);
    transform: scale(1.1);
}

/* ========================================
   Seed Display in HUD
   ======================================== */

#seed-display {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

#seed-display:hover {
    background: rgba(255, 215, 0, 0.2);
}

#seed-icon {
    font-size: 1rem;
}

#seed-text {
    font-size: 0.85rem;
    color: #b8b8d1;
}

/* ========================================
   How to Play Screen
   ======================================== */

#how-to-play-screen {
    padding: 40px;
}

#how-to-play-screen h2 {
    font-size: 2.5rem;
    color: #ffd700;
    margin-bottom: 30px;
}

.instructions {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    justify-content: center;
}

.instruction-section {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 15px;
    max-width: 300px;
}

.instruction-section h3 {
    color: #ffd700;
    margin-bottom: 10px;
}

.instruction-section ul {
    list-style: none;
    text-align: left;
}

.instruction-section li {
    margin: 8px 0;
}

/* ========================================
   Game Screen
   ======================================== */

#game-screen {
    justify-content: flex-start;
    align-items: stretch;
}

#game-canvas {
    width: 100%;
    height: 100%;
    display: block;
}

/* ========================================
   HUD
   ======================================== */

#hud {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 10px;
    backdrop-filter: blur(5px);
}

#role-display {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
}

#role-icon {
    font-size: 1.5rem;
}

#task-progress {
    display: flex;
    align-items: center;
    gap: 10px;
}

#task-bar {
    width: 200px;
    height: 20px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    overflow: hidden;
}

#task-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #4ade80, #22c55e);
    transition: width 0.5s ease;
}

#player-count {
    font-size: 1.1rem;
}

/* ========================================
   Action Buttons
   ======================================== */

#action-buttons {
    position: absolute;
    bottom: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
}

.action-btn {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid #ffd700;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.action-btn:hover:not(:disabled) {
    background: rgba(255, 215, 0, 0.3);
    transform: scale(1.1);
}

.action-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.action-btn.hidden {
    display: none;
}

.btn-icon {
    font-size: 1.8rem;
}

.btn-text {
    font-size: 0.7rem;
    margin-top: 2px;
}

#kill-btn {
    border-color: #ef4444;
}

#kill-btn:hover:not(:disabled) {
    background: rgba(239, 68, 68, 0.3);
}

#sabotage-btn {
    border-color: #8b5cf6;
}

#sabotage-btn:hover:not(:disabled) {
    background: rgba(139, 92, 246, 0.3);
}

/* ========================================
   Task Panel
   ======================================== */

#task-panel {
    position: absolute;
    top: 70px;
    left: 10px;
    width: 250px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 10px;
    padding: 15px;
    backdrop-filter: blur(5px);
}

#task-panel h3 {
    color: #ffd700;
    margin-bottom: 10px;
    border-bottom: 1px solid rgba(255, 215, 0, 0.3);
    padding-bottom: 8px;
}

#task-list {
    list-style: none;
    font-size: 0.9rem;
}

#task-list li {
    padding: 8px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

#task-list li.completed {
    color: #4ade80;
    text-decoration: line-through;
}

#task-list li::before {
    content: '○';
    color: #9ca3af;
}

#task-list li.completed::before {
    content: '✓';
    color: #4ade80;
}

/* ========================================
   Mini-game Overlay
   ======================================== */

.overlay {
    position: absolute;
    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: 100;
}

.overlay.hidden {
    display: none;
}

#minigame-container {
    background: linear-gradient(145deg, #2a2a42, #1a1a2e);
    border: 2px solid #ffd700;
    border-radius: 20px;
    padding: 30px;
    min-width: 400px;
    min-height: 300px;
    text-align: center;
}

#minigame-title {
    color: #ffd700;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

#minigame-content {
    margin-bottom: 20px;
}

/* ========================================
   Voting Screen
   ======================================== */

#voting-screen {
    background: linear-gradient(135deg, #1a1a2e 0%, #2d1b4e 100%);
    padding: 30px;
}

#voting-screen h2 {
    color: #ffd700;
    font-size: 2.5rem;
    margin-bottom: 10px;
}

#meeting-reason {
    color: #c9ada7;
    margin-bottom: 20px;
}

#discussion-timer {
    font-size: 1.5rem;
    color: #ef4444;
    margin-bottom: 20px;
}

#phase-label {
    color: #ffd700;
}

/* ========================================
   Chat Section
   ======================================== */

#chat-section {
    width: 100%;
    max-width: 600px;
    margin: 0 auto 20px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 15px;
    border: 2px solid rgba(255, 215, 0, 0.3);
    overflow: hidden;
}

#chat-messages {
    height: 200px;
    overflow-y: auto;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.chat-message {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    animation: fadeInChat 0.3s ease;
}

@keyframes fadeInChat {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.chat-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    flex-shrink: 0;
}

.chat-content {
    flex: 1;
}

.chat-name {
    font-weight: bold;
    font-size: 0.85rem;
    margin-bottom: 2px;
}

.chat-text {
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 12px;
    border-radius: 10px;
    font-size: 0.9rem;
    line-height: 1.4;
}

.chat-message.accusation .chat-text {
    background: rgba(239, 68, 68, 0.2);
    border-left: 3px solid #ef4444;
}

.chat-message.defense .chat-text {
    background: rgba(74, 222, 128, 0.2);
    border-left: 3px solid #4ade80;
}

.chat-message.system .chat-text {
    background: rgba(255, 215, 0, 0.2);
    border-left: 3px solid #ffd700;
    font-style: italic;
}

.chat-message.human .chat-name {
    color: #60a5fa;
}

#chat-input-container {
    display: flex;
    gap: 10px;
    padding: 10px 15px;
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(255, 215, 0, 0.2);
}

#chat-input {
    flex: 1;
    padding: 10px 15px;
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: 20px;
    background: rgba(0, 0, 0, 0.4);
    color: white;
    font-size: 0.95rem;
}

#chat-input:focus {
    outline: none;
    border-color: #ffd700;
}

#chat-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

#chat-send-btn {
    padding: 10px 20px;
    background: linear-gradient(135deg, #ffd700, #f59e0b);
    border: none;
    border-radius: 20px;
    color: #1a1a2e;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s;
}

#chat-send-btn:hover {
    transform: scale(1.05);
}

#voting-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

#player-votes {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    max-width: 800px;
}

.vote-card {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid transparent;
    border-radius: 15px;
    padding: 15px;
    width: 150px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.vote-card:hover:not(.dead):not(.selected) {
    border-color: #ffd700;
    background: rgba(255, 255, 255, 0.2);
}

.vote-card.selected {
    border-color: #4ade80;
    background: rgba(74, 222, 128, 0.2);
}

.vote-card.dead {
    opacity: 0.5;
    cursor: not-allowed;
}

.vote-card.dead::after {
    content: '💀';
    position: absolute;
    font-size: 2rem;
}

.vote-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin: 0 auto 10px;
}

.vote-name {
    font-size: 1rem;
}

.vote-count {
    margin-top: 5px;
    color: #ffd700;
}

#skip-vote-btn {
    padding: 10px 30px;
    font-size: 1rem;
}

.vote-btn {
    background: linear-gradient(145deg, #4a4e69, #22223b);
    border: 2px solid #9a8c98;
    color: #f2e9e4;
    padding: 10px 20px;
    font-size: 1rem;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.vote-btn:hover {
    border-color: #ffd700;
}

#vote-results {
    margin-top: 20px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
}

/* ========================================
   Game Over Screen
   ======================================== */

#game-over-screen {
    background: linear-gradient(135deg, #1a1a2e 0%, #0f3460 100%);
}

#victory-text {
    font-size: 3rem;
    margin-bottom: 10px;
}

#victory-text.guardians-win {
    color: #4ade80;
}

#victory-text.impostor-wins {
    color: #ef4444;
}

#victory-reason {
    color: #c9ada7;
    font-size: 1.2rem;
    margin-bottom: 30px;
}

#role-reveal {
    background: rgba(0, 0, 0, 0.5);
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 30px;
}

#role-reveal h3 {
    color: #ffd700;
    margin-bottom: 15px;
}

#roles-list {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.role-card {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.1);
    padding: 10px 15px;
    border-radius: 10px;
}

.role-card .player-color {
    width: 30px;
    height: 30px;
    border-radius: 50%;
}

.role-card .player-role {
    font-size: 0.9rem;
}

.role-card .player-role.impostor {
    color: #ef4444;
}

.role-card .player-role.guardian {
    color: #4ade80;
}

/* ========================================
   Notifications
   ======================================== */

#notification-container {
    position: absolute;
    top: 80px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 50;
}

.notification {
    background: rgba(0, 0, 0, 0.8);
    padding: 15px 25px;
    border-radius: 10px;
    border-left: 4px solid #ffd700;
    animation: slideIn 0.3s ease;
    max-width: 300px;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.notification.info {
    border-left-color: #3b82f6;
}

.notification.success {
    border-left-color: #4ade80;
}

.notification.warning {
    border-left-color: #f59e0b;
}

.notification.danger {
    border-left-color: #ef4444;
}

/* ========================================
   Task Mini-games
   ======================================== */

.minigame-runes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin: 20px auto;
    max-width: 300px;
}

.rune {
    width: 80px;
    height: 80px;
    background: rgba(139, 92, 246, 0.3);
    border: 2px solid #8b5cf6;
    border-radius: 10px;
    font-size: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rune:hover {
    background: rgba(139, 92, 246, 0.5);
}

.rune.active {
    background: #8b5cf6;
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.8);
}

.ingredient-container {
    display: flex;
    justify-content: space-around;
    margin: 20px 0;
}

.ingredient {
    width: 60px;
    height: 60px;
    background: rgba(74, 222, 128, 0.3);
    border: 2px solid #4ade80;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ingredient:hover {
    transform: scale(1.1);
}

.ingredient.collected {
    opacity: 0.3;
    cursor: not-allowed;
}

.cauldron {
    width: 100px;
    height: 80px;
    background: linear-gradient(180deg, #4a4e69, #22223b);
    border-radius: 0 0 50% 50%;
    margin: 20px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    position: relative;
}

.cauldron::before {
    content: '';
    position: absolute;
    top: -10px;
    width: 110px;
    height: 15px;
    background: #4a4e69;
    border-radius: 5px;
}

.progress-indicator {
    width: 100%;
    height: 20px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    overflow: hidden;
    margin-top: 15px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4ade80, #22c55e);
    transition: width 0.3s ease;
}

/* ========================================
   Sabotage Effects
   ======================================== */

.lights-out {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at var(--player-x, 50%) var(--player-y, 50%), 
                transparent 0%, 
                transparent 80px, 
                rgba(0, 0, 0, 0.95) 150px);
    pointer-events: none;
    z-index: 10;
}

/* ========================================
   Responsive Design
   ======================================== */

@media (max-width: 768px) {
    .game-title {
        font-size: 2.5rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .menu-btn {
        padding: 12px 25px;
        font-size: 1rem;
        min-width: 200px;
    }
    
    #hud {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    #task-bar {
        width: 120px;
    }
    
    #task-panel {
        width: 200px;
        font-size: 0.8rem;
    }
    
    .action-btn {
        width: 60px;
        height: 60px;
    }
    
    .btn-icon {
        font-size: 1.4rem;
    }
    
    .instructions {
        flex-direction: column;
    }
}

/* ========================================
   Shop System Styles
   ======================================== */

#shop-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.shop-container {
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 20px;
    border: 2px solid #ffd700;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.shop-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 25px;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(255, 215, 0, 0.3);
}

.shop-header h2 {
    color: #ffd700;
    font-size: 1.5rem;
}

.currency-display {
    display: flex;
    gap: 20px;
    font-size: 1.1rem;
}

.currency-display .coins {
    color: #ffd700;
}

.currency-display .gems {
    color: #38bdf8;
}

.close-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.2s;
}

.close-btn:hover {
    color: #ef4444;
}

.shop-tabs {
    display: flex;
    gap: 5px;
    padding: 10px 15px;
    background: rgba(0, 0, 0, 0.2);
}

.tab-btn {
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 8px;
    color: #ccc;
    cursor: pointer;
    transition: all 0.2s;
}

.tab-btn:hover {
    background: rgba(255, 215, 0, 0.2);
    color: #fff;
}

.tab-btn.active {
    background: linear-gradient(135deg, #ffd700, #f59e0b);
    color: #1a1a2e;
    font-weight: bold;
}

.shop-content {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

.shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 15px;
}

.shop-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    border: 2px solid transparent;
    transition: all 0.3s;
    position: relative;
}

.shop-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.2);
}

/* Rarity borders */
.shop-item.common { border-color: rgba(200, 200, 200, 0.3); }
.shop-item.rare { border-color: rgba(59, 130, 246, 0.5); }
.shop-item.epic { border-color: rgba(168, 85, 247, 0.5); }
.shop-item.legendary { border-color: rgba(255, 215, 0, 0.5); }
.shop-item.mythic { 
    border-color: #ff6b6b;
    animation: mythicGlow 2s ease-in-out infinite;
}

@keyframes mythicGlow {
    0%, 100% { box-shadow: 0 0 10px rgba(255, 107, 107, 0.3); }
    50% { box-shadow: 0 0 20px rgba(255, 107, 107, 0.6); }
}

.shop-item.owned {
    opacity: 0.7;
}

.shop-item.equipped {
    border-color: #22c55e;
    box-shadow: 0 0 15px rgba(34, 197, 94, 0.3);
}

.item-preview {
    width: 80px;
    height: 80px;
    margin: 0 auto 10px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    background: linear-gradient(135deg, #6366f1, #4338ca);
}

.shop-item h3 {
    color: #fff;
    font-size: 1rem;
    margin-bottom: 5px;
}

.shop-item .rarity {
    font-size: 0.7rem;
    font-weight: bold;
    margin-bottom: 5px;
}

.shop-item.common .rarity { color: #9ca3af; }
.shop-item.rare .rarity { color: #3b82f6; }
.shop-item.epic .rarity { color: #a855f7; }
.shop-item.legendary .rarity { color: #ffd700; }
.shop-item.mythic .rarity { color: #ff6b6b; }

.shop-item .description {
    font-size: 0.8rem;
    color: #9ca3af;
    margin-bottom: 10px;
}

.buy-btn, .equip-btn {
    width: 100%;
    padding: 8px 15px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.2s;
}

.buy-btn {
    background: linear-gradient(135deg, #ffd700, #f59e0b);
    color: #1a1a2e;
}

.buy-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
}

.equip-btn {
    background: linear-gradient(135deg, #22c55e, #15803d);
    color: white;
}

.equip-btn:hover {
    transform: scale(1.05);
}

/* Deal badges */
.deal-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ef4444;
    color: white;
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: bold;
}

.price-strike {
    text-decoration: line-through;
    color: #6b7280;
    font-size: 0.9rem;
}

/* Season Pass */
.season-pass {
    max-width: 800px;
    margin: 0 auto;
}

.pass-header {
    text-align: center;
    margin-bottom: 20px;
}

.pass-header h3 {
    color: #ffd700;
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.buy-pass-btn {
    padding: 12px 30px;
    background: linear-gradient(135deg, #ffd700, #f59e0b);
    border: none;
    border-radius: 10px;
    color: #1a1a2e;
    font-weight: bold;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s;
}

.buy-pass-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(255, 215, 0, 0.5);
}

.pass-active {
    display: inline-block;
    padding: 10px 25px;
    background: linear-gradient(135deg, #22c55e, #15803d);
    border-radius: 10px;
    color: white;
    font-weight: bold;
}

.pass-progress {
    margin: 20px 0;
}

.tier-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    color: #9ca3af;
}

.pass-progress .progress-bar {
    height: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.pass-progress .progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #ffd700, #f59e0b);
    border-radius: 10px;
    transition: width 0.3s;
}

.reward-track {
    margin: 20px 0;
}

.reward-track h4 {
    margin-bottom: 10px;
    color: #fff;
}

.reward-track.locked {
    opacity: 0.5;
}

.reward-items {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 10px 0;
}

.reward-item {
    min-width: 80px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    text-align: center;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.reward-item.unlocked {
    border-color: #22c55e;
    background: rgba(34, 197, 94, 0.1);
}

.reward-item .tier-num {
    display: block;
    font-size: 0.7rem;
    color: #9ca3af;
}

.reward-item .reward-icon {
    display: block;
    font-size: 1.5rem;
    margin: 5px 0;
}

.reward-item .reward-name {
    display: block;
    font-size: 0.7rem;
    color: #fff;
}

/* Bundles */
.bundle-card {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(245, 158, 11, 0.1));
    border: 2px solid #ffd700;
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    max-width: 400px;
    margin: 20px auto;
}

.bundle-card h4 {
    color: #ffd700;
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.bundle-items {
    color: #9ca3af;
    font-size: 0.9rem;
    margin: 10px 0;
}

.bundle-savings {
    color: #22c55e;
    font-weight: bold;
    margin-bottom: 15px;
}

.bundle-btn {
    padding: 12px 40px;
    font-size: 1.1rem;
}

/* Deals container */
.deals-container h3 {
    color: #ffd700;
    margin: 20px 0 15px;
}

.deals-container h3:first-child {
    margin-top: 0;
}

@media (max-width: 768px) {
    .shop-container {
        width: 95%;
        max-height: 95vh;
    }
    
    .shop-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 10px;
    }
    
    .shop-tabs {
        flex-wrap: wrap;
    }
    
    .tab-btn {
        padding: 8px 15px;
        font-size: 0.9rem;
    }
    
    .item-preview {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }
}

