/* Lobby Styles */
.lobby-section {
    text-align: center;
    padding: 3rem 0;
}

.lobby-container {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.lobby-container::before {
    content: '🍺';
    position: absolute;
    top: -20px;
    left: 20px;
    font-size: 3rem;
    opacity: 0.1;
    animation: bounce 2s infinite;
}

.lobby-container::after {
    content: '🎯';
    position: absolute;
    bottom: -20px;
    right: 20px;
    font-size: 3rem;
    opacity: 0.1;
    animation: bounce 2s infinite 1s;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

.join-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 3rem;
}

.create-room, .join-room {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2), 
                0 4px 10px rgba(0,0,0,0.1),
                inset 0 1px 0 rgba(255,255,255,0.3);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.create-room::before, .join-room::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.6s;
}

.create-room:hover::before, .join-room:hover::before {
    left: 100%;
}

.create-room:hover, .join-room:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(0,0,0,0.3), 
                0 8px 20px rgba(0,0,0,0.15);
}

.create-room h3, .join-room h3 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    background: linear-gradient(45deg, #f39c12, #e67e22);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.lobby-container input {
    width: 100%;
    padding: 1rem;
    margin: 0.8rem 0;
    border: 2px solid transparent;
    border-radius: 12px;
    font-size: 1.1rem;
    background: rgba(236, 240, 241, 0.8);
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}

.lobby-container input:focus {
    outline: none;
    border-color: #f39c12;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 0 0 3px rgba(243, 156, 18, 0.1),
                inset 0 2px 4px rgba(0,0,0,0.1);
    transform: scale(1.02);
}

.game-btn {
    width: 100%;
    padding: 1rem 2rem;
    background: linear-gradient(45deg, #f39c12 0%, #e67e22 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    margin-top: 1.5rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(243, 156, 18, 0.4);
}

.game-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.game-btn:hover::before {
    left: 100%;
}

.game-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(243, 156, 18, 0.6);
}

.game-btn:active {
    transform: translateY(-1px) scale(1.02);
}

.game-btn:disabled {
    background: linear-gradient(45deg, #95a5a6, #7f8c8d);
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 2px 8px rgba(149, 165, 166, 0.3);
}

/* Game Section Styles */
.game-section {
    padding: 3rem 0;
}

.players-list {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2), 
                0 4px 10px rgba(0,0,0,0.1),
                inset 0 1px 0 rgba(255,255,255,0.3);
    margin: 2rem 0;
    position: relative;
    overflow: hidden;
}

.players-list::before {
    content: '👥';
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 2.5rem;
    opacity: 0.1;
}

.players-list h3 {
    background: linear-gradient(45deg, #f39c12, #e67e22);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

#players-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.5rem;
}

.player-card {
    background: linear-gradient(135deg, #ecf0f1 0%, #bdc3c7 100%);
    padding: 1.5rem;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}

.player-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.player-card:hover::before {
    left: 100%;
}

.player-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.player-card.current-player {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    color: white;
    box-shadow: 0 8px 25px rgba(243, 156, 18, 0.4);
}

/* Playing Section Styles */
.playing-section {
    padding: 3rem 0;
}

.game-layout {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.main-game-area {
    flex: 1;
}

.players-sidebar {
    width: 250px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15), 
                0 3px 8px rgba(0,0,0,0.1),
                inset 0 1px 0 rgba(255,255,255,0.3);
    position: sticky;
    top: 2rem;
    max-height: 80vh;
    overflow-y: auto;
}

.players-sidebar h3 {
    background: linear-gradient(45deg, #f39c12, #e67e22);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    text-align: center;
}

.other-player-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 1rem;
    border-radius: 12px;
    margin-bottom: 1rem;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.other-player-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

.other-player-name {
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    text-align: center;
}

.player-cards-display {
    display: flex;
    justify-content: center;
    gap: 3px;
    flex-wrap: wrap;
}

.card-back {
    width: 20px;
    height: 28px;
    background: linear-gradient(145deg, #f39c12 0%, #e67e22 100%);
    border: 1px solid #444;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.6rem;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    position: relative;
}

.card-back::before {
    content: '🃏';
    font-size: 0.7rem;
}

.cards-count {
    text-align: center;
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: #666;
}

@media (max-width: 768px) {
    .game-layout {
        flex-direction: column;
    }
    
    .players-sidebar {
        width: 100%;
        position: static;
        max-height: none;
    }
    
    .other-player-card {
        display: flex;
        align-items: center;
        gap: 1rem;
    }
    
    .other-player-name {
        margin-bottom: 0;
        flex: 1;
        text-align: left;
    }
    
    .player-cards-display {
        flex: none;
    }
    
    .cards-count {
        margin-top: 0;
        margin-left: 0.5rem;
    }
}

.game-status-bar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2), 
                0 4px 10px rgba(0,0,0,0.1),
                inset 0 1px 0 rgba(255,255,255,0.3);
}

.status-item {
    text-align: center;
    padding: 1rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}

.status-item strong {
    background: linear-gradient(45deg, #f39c12, #e67e22);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
    margin-bottom: 0.5rem;
}

/* Player Hand Styles */
.player-hand-section {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2), 
                0 4px 10px rgba(0,0,0,0.1),
                inset 0 1px 0 rgba(255,255,255,0.3);
    margin: 2rem 0;
    position: relative;
    overflow: hidden;
}

.player-hand-section::before {
    content: '🃏';
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 3rem;
    opacity: 0.1;
    animation: rotate 5s linear infinite;
}

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

.player-hand-section h3 {
    background: linear-gradient(45deg, #f39c12, #e67e22);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.player-hand {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.hand-card {
    width: 70px;
    height: 95px;
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
    border: 3px solid #2c3e50;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-size: 0.85rem;
    font-weight: bold;
    color: #2c3e50;
    position: relative;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15), 
                0 3px 8px rgba(0,0,0,0.1),
                inset 0 1px 0 rgba(255,255,255,0.5);
    transform-style: preserve-3d;
}

.hand-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(145deg, transparent 0%, rgba(255,255,255,0.2) 50%, transparent 100%);
    border-radius: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.hand-card:hover::before {
    opacity: 1;
}

.hand-card:hover {
    transform: translateY(-8px) rotateX(10deg) scale(1.05);
    box-shadow: 0 12px 30px rgba(0,0,0,0.25),
                0 6px 15px rgba(0,0,0,0.15),
                inset 0 1px 0 rgba(255,255,255,0.7);
    border-color: #f39c12;
}

.hand-card.playable {
    border-color: #27ae60;
    background: linear-gradient(145deg, #d5f4e6 0%, #a8e6cf 100%);
    animation: playablePulse 2s infinite;
    box-shadow: 0 6px 20px rgba(39, 174, 96, 0.3),
                0 3px 8px rgba(39, 174, 96, 0.2),
                inset 0 1px 0 rgba(255,255,255,0.5);
}

@keyframes playablePulse {
    0%, 100% { 
        box-shadow: 0 6px 20px rgba(39, 174, 96, 0.3),
                    0 3px 8px rgba(39, 174, 96, 0.2),
                    inset 0 1px 0 rgba(255,255,255,0.5);
    }
    50% { 
        box-shadow: 0 8px 25px rgba(39, 174, 96, 0.5),
                    0 4px 12px rgba(39, 174, 96, 0.3),
                    inset 0 1px 0 rgba(255,255,255,0.7);
    }
}

.hand-card.playable:hover {
    transform: translateY(-12px) rotateX(15deg) scale(1.1);
    box-shadow: 0 15px 40px rgba(39, 174, 96, 0.6),
                0 8px 20px rgba(39, 174, 96, 0.4);
}

.hand-card.played {
    opacity: 0.3;
    transform: none;
    cursor: not-allowed;
    filter: grayscale(1);
}

/* Game Actions Styles */
.game-actions {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin: 1rem 0;
}

.drink-confirmation {
    text-align: center;
    padding: 1rem;
    background: #f39c12;
    border-radius: 8px;
    color: white;
}

.drink-btn {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 6px;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    margin-top: 1rem;
    animation: pulse 1s infinite;
}

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

.choose-drinker {
    text-align: center;
    padding: 1rem;
    background: #3498db;
    border-radius: 8px;
    color: white;
}

#drinker-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 1rem;
}

.drinker-btn {
    background: white;
    color: #3498db;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
}

.drinker-btn:hover {
    background: #ecf0f1;
}

#drink-progress {
    margin-top: 1rem;
    font-weight: bold;
}

/* Bus Route Styles */
.bus-route-interface {
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, #f39c12, #e67e22);
    border-radius: 12px;
    color: white;
}

.bus-route-interface h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.bus-route-interface p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

#bus-route-level {
    background: rgba(255,255,255,0.2);
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
}

#draw-card-btn {
    background: #e74c3c;
    font-size: 1.2rem;
    padding: 1rem 2rem;
    margin-top: 1rem;
}

#draw-card-btn:hover {
    background: #c0392b;
}

/* Responsive Design */
@media (max-width: 768px) {
    .join-options {
        grid-template-columns: 1fr;
    }
    
    .game-status-bar {
        grid-template-columns: 1fr;
    }
    
    .player-hand {
        gap: 0.25rem;
    }
    
    .hand-card {
        width: 50px;
        height: 70px;
        font-size: 0.6rem;
    }
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #2c3e50;
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 25%, #f1c40f 50%, #ff6b35 75%, #f39c12 100%);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    min-height: 100vh;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="150" cy="50" r="1.5" fill="rgba(255,255,255,0.1)"/><circle cx="100" cy="100" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="25" cy="150" r="1.8" fill="rgba(255,255,255,0.1)"/><circle cx="175" cy="150" r="1.2" fill="rgba(255,255,255,0.1)"/></svg>');
    pointer-events: none;
    z-index: -1;
    animation: floatStars 20s linear infinite;
}

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

@keyframes floatStars {
    0% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(-10px, -10px) rotate(90deg); }
    50% { transform: translate(10px, -20px) rotate(180deg); }
    75% { transform: translate(-5px, -10px) rotate(270deg); }
    100% { transform: translate(0, 0) rotate(360deg); }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

/* Header and Navigation */
header {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: white;
    padding: 1.5rem 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3), 0 1px 0 rgba(255,255,255,0.1);
    position: relative;
    overflow: hidden;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 60"><path d="M30 5L35 20H50L38 30L42 45L30 35L18 45L22 30L10 20H25L30 5Z" fill="rgba(255,255,255,0.05)"/></svg>') repeat;
    background-size: 60px 60px;
    animation: starField 30s linear infinite;
    pointer-events: none;
}

@keyframes starField {
    0% { transform: translateX(0); }
    100% { transform: translateX(-60px); }
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 2;
}

.nav-container h1 {
    font-size: 2.2rem;
    background: linear-gradient(45deg, #f39c12, #e67e22, #f1c40f);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease-in-out infinite;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.3));
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-menu a {
    color: #ecf0f1;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

.nav-menu a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.nav-menu a:hover::before {
    left: 100%;
}

.nav-menu a:hover {
    color: #f39c12;
    background: rgba(255,255,255,0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(243, 156, 18, 0.3);
}

/* Main Content */
main {
    padding: 3rem 0;
    min-height: calc(100vh - 250px);
    position: relative;
    z-index: 1;
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    padding: 1.5rem;
    border-radius: 15px;
    margin-bottom: 3rem;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1), 
                0 3px 8px rgba(0,0,0,0.05),
                inset 0 1px 0 rgba(255,255,255,0.3);
    position: relative;
    overflow: hidden;
}

.breadcrumb::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 0%, rgba(102, 126, 234, 0.05) 50%, transparent 100%);
    animation: shimmer 4s linear infinite;
}

.breadcrumb a {
    color: #f39c12;
    text-decoration: none;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.breadcrumb a:hover {
    background: rgba(243, 156, 18, 0.1);
    transform: translateY(-2px);
    text-shadow: 0 2px 4px rgba(243, 156, 18, 0.3);
}

.breadcrumb span {
    font-weight: bold;
    background: linear-gradient(45deg, #2c3e50, #34495e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 2;
}

/* Game Info Section */
.game-info-section {
    margin-bottom: 3rem;
}

.game-info-section .game-info {
    display: flex;
    justify-content: center;
    gap: 4rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2), 
                0 4px 10px rgba(0,0,0,0.1),
                inset 0 1px 0 rgba(255,255,255,0.3);
    position: relative;
    overflow: hidden;
}

.game-info-section .game-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 0%, rgba(102, 126, 234, 0.05) 50%, transparent 100%);
    animation: shimmer 3s linear infinite;
}

/* Game Header */
.game-header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.game-header::before {
    content: '🚌';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 4rem;
    opacity: 0.1;
    animation: float 3s ease-in-out infinite;
}

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

.game-header h1 {
    font-size: 4rem;
    background: linear-gradient(45deg, #f39c12, #e67e22, #f1c40f, #ff6b35);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 4s ease-in-out infinite;
    margin-bottom: 2rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.1));
    position: relative;
    z-index: 2;
    font-family: 'Comic Sans MS', cursive, sans-serif;
    font-weight: bold;
    letter-spacing: 3px;
    transform: perspective(500px) rotateX(15deg);
}

.game-header h1::before {
    content: '🚌';
    position: absolute;
    left: -70px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 3rem;
    animation: busHop 2s ease-in-out infinite;
}

.game-header h1::after {
    content: '🎉';
    position: absolute;
    right: -70px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 3rem;
    animation: sparkle 1.5s ease-in-out infinite alternate;
}

@keyframes busHop {
    0%, 100% { transform: translateY(-50%) translateX(0px); }
    50% { transform: translateY(-60%) translateX(10px); }
}

@keyframes sparkle {
    0% { transform: translateY(-50%) rotate(0deg) scale(1); }
    100% { transform: translateY(-50%) rotate(15deg) scale(1.2); }
}

.game-info {
    display: flex;
    justify-content: center;
    gap: 4rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2), 
                0 4px 10px rgba(0,0,0,0.1),
                inset 0 1px 0 rgba(255,255,255,0.3);
    position: relative;
    overflow: hidden;
}

.game-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 0%, rgba(102, 126, 234, 0.05) 50%, transparent 100%);
    animation: shimmer 3s linear infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.info-item {
    font-size: 1.2rem;
    position: relative;
    z-index: 2;
}

.info-item strong {
    background: linear-gradient(45deg, #f39c12, #e67e22);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.1em;
}

/* Game Description */
.game-description {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    padding: 3rem;
    border-radius: 20px;
    margin-bottom: 3rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2), 
                0 4px 10px rgba(0,0,0,0.1),
                inset 0 1px 0 rgba(255,255,255,0.3);
    position: relative;
    overflow: hidden;
}

.game-description::before {
    content: '🎮';
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 3rem;
    opacity: 0.1;
    animation: bounce 2s infinite;
}

.game-description p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    text-align: justify;
    line-height: 1.8;
    color: #2c3e50;
    position: relative;
    z-index: 2;
}

/* Pyramid Section */
.pyramid-section {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    padding: 3rem;
    border-radius: 20px;
    margin-bottom: 2rem;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.1);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.pyramid-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="25" r="1.5" fill="rgba(255,255,255,0.1)"/><circle cx="15" cy="75" r="0.8" fill="rgba(255,255,255,0.1)"/><circle cx="85" cy="75" r="1.2" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="50" r="0.5" fill="rgba(255,255,255,0.1)"/></svg>');
    pointer-events: none;
    animation: twinkle 4s infinite;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.8; }
}

.pyramid-section h2 {
    color: #f8f9fa;
    margin-bottom: 2rem;
    font-size: 2.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    background: linear-gradient(45deg, #f39c12, #e67e22, #f1c40f);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease-in-out infinite;
}

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

.pyramid-container {
    margin: 3rem 0;
    display: flex;
    justify-content: center;
    perspective: 1000px;
}

.pyramid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    transform-style: preserve-3d;
    position: relative;
}

.pyramid::before {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    height: 60px;
    background: radial-gradient(ellipse at center, rgba(255,255,255,0.1) 0%, transparent 70%);
    border-radius: 50%;
    z-index: -1;
}

.pyramid-row {
    display: flex;
    gap: 12px;
    margin-bottom: 8px;
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

.pyramid-row:nth-child(1) { animation-delay: 0.1s; }
.pyramid-row:nth-child(2) { animation-delay: 0.2s; }
.pyramid-row:nth-child(3) { animation-delay: 0.3s; }
.pyramid-row:nth-child(4) { animation-delay: 0.4s; }
.pyramid-row:nth-child(5) { animation-delay: 0.5s; }

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

.card {
    width: 70px;
    height: 95px;
    background: linear-gradient(145deg, #f39c12 0%, #e67e22 100%);
    border: 3px solid transparent;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3), 
                0 4px 10px rgba(0,0,0,0.2),
                inset 0 1px 0 rgba(255,255,255,0.2),
                inset 0 -1px 0 rgba(0,0,0,0.2);
    backdrop-filter: blur(10px);
    transform-style: preserve-3d;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(145deg, transparent 0%, rgba(255,255,255,0.1) 50%, transparent 100%);
    border-radius: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card:hover::before {
    opacity: 1;
}

.card:hover {
    transform: translateY(-8px) rotateX(10deg) rotateY(5deg) scale(1.05);
    box-shadow: 0 15px 40px rgba(0,0,0,0.4),
                0 8px 20px rgba(0,0,0,0.3),
                inset 0 1px 0 rgba(255,255,255,0.3);
    border-color: rgba(255,255,255,0.3);
}

.card.flipped {
    background: linear-gradient(145deg, #ff6b6b 0%, #ee5a24 100%);
    animation: cardFlip 0.6s ease-in-out;
}

@keyframes cardFlip {
    0% { transform: rotateY(0deg); }
    50% { transform: rotateY(90deg); }
    100% { transform: rotateY(0deg); }
}

.sip-indicator {
    position: absolute;
    top: -35px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(45deg, #f1c40f, #f39c12);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(241, 196, 15, 0.4);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    border: 2px solid rgba(255,255,255,0.2);
    backdrop-filter: blur(5px);
    animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
    0%, 100% { 
        box-shadow: 0 4px 15px rgba(241, 196, 15, 0.4);
        transform: translateX(-50%) scale(1);
    }
    50% { 
        box-shadow: 0 6px 25px rgba(241, 196, 15, 0.7);
        transform: translateX(-50%) scale(1.05);
    }
}

/* Game Rules */
.game-rules {
    background-color: white;
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.game-rules h2 {
    color: #e74c3c;
    margin: 1.5rem 0 1rem 0;
    font-size: 1.5rem;
}

.game-rules p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    text-align: justify;
}

/* Share Section */
.share-section {
    background-color: white;
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    text-align: center;
}

.share-section h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.share-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.share-btn {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    transition: transform 0.2s ease;
}

.share-btn:hover {
    transform: translateY(-1px);
}

.share-btn.facebook {
    background-color: #3b5998;
    color: white;
}

.share-btn.whatsapp {
    background-color: #25d366;
    color: white;
}

.share-btn.email {
    background-color: #34495e;
    color: white;
}

/* Footer */
footer {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: white;
    padding: 3rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.2);
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 60"><path d="M30 5L35 20H50L38 30L42 45L30 35L18 45L22 30L10 20H25L30 5Z" fill="rgba(255,255,255,0.03)"/></svg>') repeat;
    background-size: 60px 60px;
    animation: starField 40s linear infinite;
    pointer-events: none;
}

footer p {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}

.footer-rating {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    position: relative;
    z-index: 2;
}

.footer-rating span:first-child {
    font-size: 1.1rem;
    opacity: 0.9;
}

.rating {
    background: linear-gradient(45deg, #f39c12, #f1c40f);
    padding: 0.5rem 1.2rem;
    border-radius: 25px;
    font-weight: bold;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(243, 156, 18, 0.3);
    animation: ratingGlow 3s infinite;
}

@keyframes ratingGlow {
    0%, 100% { 
        box-shadow: 0 4px 15px rgba(243, 156, 18, 0.3);
        transform: scale(1);
    }
    50% { 
        box-shadow: 0 6px 25px rgba(243, 156, 18, 0.5);
        transform: scale(1.05);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-menu {
        gap: 1rem;
    }
    
    .game-header h1 {
        font-size: 2rem;
    }
    
    .game-info {
        flex-direction: column;
        gap: 1rem;
    }
    
    .breadcrumb {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .share-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .share-btn {
        width: 200px;
    }
    
    .card {
        width: 50px;
        height: 70px;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    .card {
        width: 40px;
        height: 60px;
        font-size: 0.7rem;
    }
    
    .pyramid-row {
        gap: 5px;
    }
}

/* Activity Log Styles */
.activity-log-section {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin: 1rem 0;
}

.activity-log-section h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.activity-log {
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid #ecf0f1;
    border-radius: 8px;
    padding: 1rem;
    background: #f8f9fa;
}

.activity-log-entry {
    padding: 0.5rem 0;
    border-bottom: 1px solid #ecf0f1;
    font-size: 0.9rem;
}

.activity-log-entry:last-child {
    border-bottom: none;
}

.activity-log-entry .timestamp {
    color: #7f8c8d;
    font-size: 0.8rem;
    float: right;
}

.activity-log-entry.game-event {
    color: #3498db;
}

.activity-log-entry.card-played {
    color: #27ae60;
}

.activity-log-entry.drink-assigned {
    color: #f39c12;
}

.activity-log-entry.bus-route {
    color: #e74c3c;
    font-weight: bold;
}

/* Celebration Modal Styles */
.celebration-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.celebration-content {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    padding: 3rem;
    border-radius: 20px;
    text-align: center;
    color: white;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    animation: celebrationBounce 0.6s ease;
}

.celebration-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.celebration-content p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

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

/* Card stacking indicators */
.pyramid-card {
    position: relative;
}

.pyramid-card.revealed {
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
    border-color: #f39c12;
    color: #2c3e50;
}

.pyramid-card.face-card {
    border-color: #e74c3c;
    background: linear-gradient(145deg, #ffeaa7 0%, #fdcb6e 100%);
    animation: faceCardPulse 1s ease-in-out;
}

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

.pyramid-card.has-played-card {
    border-color: #27ae60;
    background: linear-gradient(145deg, #d5f4e6 0%, #a8e6cf 100%);
}

.stacked-card {
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    animation: stackCard 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%) !important;
    border: 3px solid #27ae60 !important;
}

.pyramid-card.clickable-bus-route {
    cursor: pointer;
    border-color: #f39c12;
    box-shadow: 0 0 20px rgba(243, 156, 18, 0.6);
    animation: busRoutePulse 2s infinite;
}

@keyframes busRoutePulse {
    0%, 100% { 
        box-shadow: 0 0 20px rgba(243, 156, 18, 0.6);
        transform: scale(1);
    }
    50% { 
        box-shadow: 0 0 30px rgba(243, 156, 18, 0.9);
        transform: scale(1.05);
    }
}

.pyramid-card.clickable-bus-route:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 30px rgba(243, 156, 18, 0.8);
}

.card-stack-indicator {
    position: absolute;
    top: -30px;
    right: -5px;
    background: linear-gradient(45deg, #e74c3c, #c0392b);
    color: white;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
    z-index: 10;
    box-shadow: 0 3px 10px rgba(231, 76, 60, 0.4);
    animation: stackIndicatorPulse 2s infinite;
}

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

.card-stack-indicator.stack-2 {
    background: linear-gradient(45deg, #f39c12, #e67e22);
}

.card-stack-indicator.stack-3 {
    background: linear-gradient(45deg, #27ae60, #2ecc71);
}

.card-stack-indicator.stack-4 {
    background: linear-gradient(45deg, #9b59b6, #8e44ad);
}

.level-indicator {
    position: absolute;
    top: -35px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(45deg, #f39c12, #e67e22);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(243, 156, 18, 0.4);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    border: 2px solid rgba(255,255,255,0.2);
    backdrop-filter: blur(5px);
}

/* Card Selection Modal */
.card-selection-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.card-selection-content {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    text-align: center;
}

.card-selection-content h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.card-selection-content p {
    color: #555;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.selectable-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin: 1.5rem 0;
    padding: 1rem;
    background: rgba(52, 73, 94, 0.1);
    border-radius: 15px;
}

.selectable-card {
    width: 80px;
    height: 110px;
    background: white;
    border: 3px solid #ddd;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: bold;
    color: #2c3e50;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.selectable-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    border-color: #3498db;
}

.selectable-card.selected {
    border-color: #27ae60;
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    color: white;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 20px rgba(46, 204, 113, 0.4);
}

.selection-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1.5rem;
}

.selection-actions .game-btn {
    min-width: 150px;
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
}

.selection-actions .game-btn.secondary {
    background: #95a5a6;
    border-color: #7f8c8d;
}

.selection-actions .game-btn.secondary:hover {
    background: #7f8c8d;
}

.selection-actions .game-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

@media (max-width: 768px) {
    .card-selection-content {
        width: 95%;
        padding: 1.5rem;
    }
    
    .selectable-cards {
        gap: 0.8rem;
    }
    
    .selectable-card {
        width: 70px;
        height: 95px;
        font-size: 0.8rem;
    }
    
    .selection-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .selection-actions .game-btn {
        min-width: 200px;
    }
}
}