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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #E85A4F;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.container {
    background: #FFF5E6;
    border-radius: 25px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    width: 100%;
    max-width: 500px;
    padding: 30px;
    text-align: center;
    border: 4px solid #D73027;
}

.game-phase {
    display: none;
}

.game-phase.active {
    display: block;
}

.logo-container {
    margin-bottom: 25px;
}

.logo-container img {
    width: 120px;
    height: 120px;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(232, 90, 79, 0.4);
    margin-bottom: 15px;
}

.player-list {
    text-align: left;
    margin: 20px 0;
}

.player-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    margin: 8px 0;
    background: white;
    border-radius: 15px;
    border: 2px solid #E85A4F;
    box-shadow: 0 3px 10px rgba(232, 90, 79, 0.2);
}

.player-name {
    font-weight: bold;
    color: #D73027;
}

.player-score {
    background: #E85A4F;
    color: #FFF5E6;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.player-status {
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: bold;
}

.player-status.waiting {
    background: #FFA500;
    color: white;
}

.player-status.ready {
    background: #2E8B57;
    color: white;
}

input[type="text"] {
    width: 100%;
    padding: 15px;
    border: 3px solid #E85A4F;
    border-radius: 15px;
    font-size: 1rem;
    margin: 10px 0;
    background: white;
    color: #D73027;
    font-weight: 600;
}

input[type="text"]:focus {
    outline: none;
    border-color: #D73027;
    box-shadow: 0 0 0 3px rgba(232, 90, 79, 0.3);
}

button {
    background: linear-gradient(135deg, #E85A4F 0%, #D73027 100%);
    color: #FFF5E6;
    border: none;
    padding: 15px 25px;
    border-radius: 15px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    margin: 10px 5px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(232, 90, 79, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(232, 90, 79, 0.6);
}

button:disabled {
    background: #CCC;
    color: #888;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.question {
    font-size: 1.6rem;
    color: #D73027;
    margin: 25px 0;
    font-weight: 800;
    text-shadow: 1px 1px 0px rgba(215, 48, 39, 0.1);
    line-height: 1.2;
}

.answer-options {
    display: grid;
    gap: 15px;
    margin: 20px 0;
}

.answer-btn {
    padding: 20px;
    background: white;
    border: 3px solid #E85A4F;
    border-radius: 18px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #D73027;
    box-shadow: 0 3px 10px rgba(232, 90, 79, 0.2);
}

.answer-btn:hover {
    background: #FFF5E6;
    border-color: #D73027;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(232, 90, 79, 0.3);
}

.answer-btn.selected {
    background: linear-gradient(135deg, #E85A4F 0%, #D73027 100%);
    color: #FFF5E6;
    border-color: #D73027;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(232, 90, 79, 0.5);
}

.guessing-phase {
    text-align: left;
}

.guess-item {
    background: white;
    padding: 20px;
    border-radius: 18px;
    margin: 15px 0;
    border: 2px solid #E85A4F;
    box-shadow: 0 3px 10px rgba(232, 90, 79, 0.2);
}

.guess-player {
    font-weight: bold;
    margin-bottom: 12px;
    color: #D73027;
    font-size: 1.1rem;
}

.guess-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.guess-btn {
    padding: 12px;
    background: #FFF5E6;
    border: 2px solid #E85A4F;
    border-radius: 12px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    color: #D73027;
    transition: all 0.2s ease;
}

.guess-btn:hover {
    border-color: #D73027;
    background: white;
    transform: translateY(-1px);
}

.guess-btn.selected {
    background: linear-gradient(135deg, #E85A4F 0%, #D73027 100%);
    color: #FFF5E6;
    border-color: #D73027;
    transform: translateY(-1px);
}

.results {
    background: white;
    padding: 25px;
    border-radius: 18px;
    margin: 20px 0;
    border: 2px solid #E85A4F;
    box-shadow: 0 3px 15px rgba(232, 90, 79, 0.2);
}

.correct-guess {
    color: #2E8B57;
    font-weight: bold;
    text-shadow: 1px 1px 0px rgba(46, 139, 87, 0.2);
}

.wrong-guess {
    color: #D73027;
    font-weight: bold;
}

.round-info {
    background: linear-gradient(135deg, #E85A4F 0%, #D73027 100%);
    color: #FFF5E6;
    padding: 15px 25px;
    border-radius: 15px;
    margin: 20px 0;
    font-weight: bold;
    font-size: 1.1rem;
    box-shadow: 0 3px 10px rgba(232, 90, 79, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.final-winner {
    font-size: 1.8rem;
    color: #D73027;
    font-weight: 900;
    margin: 25px 0;
    text-shadow: 2px 2px 0px rgba(215, 48, 39, 0.2);
}

/* Question Pack Selector Styles */
.pack-option {
    background: white;
    border: 2px solid #E85A4F;
    border-radius: 15px;
    padding: 15px;
    margin: 10px 0;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(232, 90, 79, 0.2);
    text-align: left;
    position: relative; /* Ensure proper stacking within scroll container */
}

.pack-option:hover {
    border-color: #D73027;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(232, 90, 79, 0.3);
}

.pack-option.selected {
    background: linear-gradient(135deg, #E85A4F 0%, #D73027 100%);
    color: #FFF5E6;
    border-color: #D73027;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(232, 90, 79, 0.5);
}

.pack-title {
    font-weight: bold;
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: #D73027;
}

.pack-option.selected .pack-title {
    color: #FFF5E6;
}

.pack-description {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.3;
}

.pack-option.selected .pack-description {
    color: #FFF5E6;
}

.pack-meta {
    font-size: 0.8rem;
    color: #888;
    margin-top: 8px;
    font-style: italic;
}

.pack-option.selected .pack-meta {
    color: #FFF5E6;
}

/* Burger Menu Styles */
.burger-menu {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.burger-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #E85A4F 0%, #D73027 100%);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(232, 90, 79, 0.4);
    transition: all 0.3s ease;
}

.burger-icon:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(232, 90, 79, 0.6);
}

.burger-line {
    width: 25px;
    height: 3px;
    background: #FFF5E6;
    margin: 2px 0;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.burger-icon.open .burger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.burger-icon.open .burger-line:nth-child(2) {
    opacity: 0;
}

.burger-icon.open .burger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.menu-overlay.open {
    opacity: 1;
    visibility: visible;
}

.menu-panel {
    position: fixed;
    top: 0;
    right: -400px;
    width: 350px;
    height: 100vh;
    background: #FFF5E6;
    border-left: 4px solid #D73027;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.2);
    z-index: 1001;
    transition: right 0.3s ease;
    overflow-y: auto;
    padding: 80px 30px 30px;
}

.menu-panel.open {
    right: 0;
}

.menu-item {
    padding: 20px 0;
    border-bottom: 2px solid #E85A4F;
    cursor: pointer;
    transition: all 0.2s ease;
}

.menu-item:hover {
    background: rgba(232, 90, 79, 0.1);
    margin: 0 -15px;
    padding-left: 15px;
    padding-right: 15px;
    border-radius: 10px;
}

.menu-item:last-child {
    border-bottom: none;
}

.menu-item h3 {
    color: #D73027;
    margin-bottom: 5px;
    font-size: 1.2rem;
    font-weight: bold;
}

.menu-item p {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.4;
}

.content-panel {
    display: none;
    padding: 20px 0;
}

.content-panel.active {
    display: block;
}

.content-panel h2 {
    color: #D73027;
    margin-bottom: 20px;
    font-size: 1.5rem;
    border-bottom: 2px solid #E85A4F;
    padding-bottom: 10px;
}

.content-panel h3 {
    color: #D73027;
    margin: 20px 0 10px;
    font-size: 1.2rem;
}

.content-panel p, .content-panel li {
    color: #333;
    line-height: 1.6;
    margin-bottom: 10px;
}

.content-panel ul {
    padding-left: 20px;
    margin-bottom: 15px;
}

.back-btn {
    background: #888;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    margin-bottom: 20px;
    font-weight: bold;
}

.back-btn:hover {
    background: #666;
    transform: none;
    box-shadow: none;
}

@media (max-width: 600px) {
    .menu-panel {
        width: 100vw;
        right: -100vw;
        padding: 80px 20px 30px;
    }

    .burger-menu {
        top: 15px;
        right: 15px;
    }
}

.game-code {
    font-size: 2rem;
    font-weight: 900;
    color: #D73027;
    background: white;
    padding: 15px 25px;
    border-radius: 15px;
    border: 3px solid #E85A4F;
    margin: 20px 0;
    letter-spacing: 3px;
}

.share-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 20px 0;
}

.share-url {
    background: white;
    padding: 15px;
    border-radius: 10px;
    border: 2px solid #E85A4F;
    font-size: 0.9rem;
    word-break: break-all;
    color: #D73027;
}

.qr-code-container {
    background: white;
    padding: 20px;
    border-radius: 15px;
    border: 2px solid #E85A4F;
    margin: 15px 0;
}

.waiting-message {
    background: #FFA500;
    color: white;
    padding: 15px;
    border-radius: 15px;
    margin: 20px 0;
    font-weight: bold;
}

.loading {
    display: inline-block;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.error-message {
    background: #DC3545;
    color: white;
    padding: 15px;
    border-radius: 15px;
    margin: 20px 0;
    font-weight: bold;
}

@media (max-width: 600px) {
    .container {
        padding: 20px;
    }
    
    .question {
        font-size: 1.2rem;
    }
    
    .guess-options {
        grid-template-columns: 1fr;
    }
}

/* Add these styles to your existing CSS */

/* Toast Notifications */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-left: 4px solid #E85A4F;
    z-index: 10000;
    transform: translateX(400px);
    transition: transform 0.3s ease;
    max-width: 350px;
}

.toast.show {
    transform: translateX(0);
}

.toast-success {
    border-left-color: #2E8B57;
}

.toast-error {
    border-left-color: #DC3545;
}

.toast-content {
    display: flex;
    align-items: center;
    padding: 16px;
}

.toast-icon {
    margin-right: 12px;
    font-weight: bold;
    font-size: 1.2rem;
}

.toast-success .toast-icon {
    color: #2E8B57;
}

.toast-error .toast-icon {
    color: #DC3545;
}

.toast-message {
    color: #333;
    font-weight: 500;
}

/* Modal Dialogs */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10001;
}

.modal-content {
    background: #FFF5E6;
    border-radius: 15px;
    padding: 30px;
    max-width: 400px;
    width: 90%;
    border: 3px solid #D73027;
    text-align: center;
}

.modal-content h3 {
    color: #D73027;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.modal-content p {
    color: #333;
    margin-bottom: 25px;
    line-height: 1.4;
}

.modal-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.btn-cancel, .btn-confirm {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 100px;
}

.btn-cancel {
    background: #888;
    color: white;
}

.btn-cancel:hover {
    background: #666;
}

.btn-confirm {
    background: linear-gradient(135deg, #E85A4F 0%, #D73027 100%);
    color: #FFF5E6;
}

.btn-confirm:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(232, 90, 79, 0.4);
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10002;
}

.loading-content {
    background: #FFF5E6;
    border-radius: 15px;
    padding: 40px;
    text-align: center;
    border: 3px solid #D73027;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #E85A4F;
    border-left: 4px solid #D73027;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-content p {
    color: #D73027;
    font-weight: bold;
    margin: 0;
}

/* Connection Status */
.connection-status {
    position: fixed;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
    z-index: 9999;
    transition: all 0.3s ease;
}

.connection-status.online {
    background: #2E8B57;
    color: white;
}

.connection-status.offline {
    background: #DC3545;
    color: white;
}

.connection-status.reconnecting {
    background: #FFA500;
    color: white;
}

/* Copy Modal */
.copy-modal .modal-content {
    text-align: left;
}

.copy-text {
    background: #f5f5f5;
    padding: 15px;
    border-radius: 8px;
    border: 2px solid #E85A4F;
    font-family: monospace;
    word-break: break-all;
    margin: 15px 0;
    user-select: all;
}

/* Mobile Responsiveness */
@media (max-width: 600px) {
    .toast {
        right: 10px;
        left: 10px;
        max-width: none;
        transform: translateY(-100px);
    }
    
    .toast.show {
        transform: translateY(0);
    }
    
    .modal-content {
        width: 95%;
        padding: 20px;
    }
    
    .modal-buttons {
        flex-direction: column;
    }
    
    .loading-content {
        width: 90%;
        padding: 30px 20px;
    }
}

/* ===== ENHANCED PACK SELECTION STYLES ===== */

.pack-filters {
    background: white;
    padding: 20px;
    border-radius: 15px;
    border: 2px solid #E85A4F;
    margin: 20px 0;
    box-shadow: 0 3px 10px rgba(232, 90, 79, 0.2);
}

.filter-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.filter-row:last-child {
    margin-bottom: 0;
}

.search-input {
    flex: 1;
    min-width: 200px;
    padding: 12px 15px;
    border: 2px solid #E85A4F;
    border-radius: 10px;
    font-size: 1rem;
    background: #FFF5E6;
    color: #D73027;
}

.search-input:focus {
    outline: none;
    border-color: #D73027;
    box-shadow: 0 0 0 3px rgba(232, 90, 79, 0.3);
}

.filter-select {
    padding: 12px 15px;
    border: 2px solid #E85A4F;
    border-radius: 10px;
    background: white;
    color: #D73027;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    min-width: 150px;
}

.filter-select:focus {
    outline: none;
    border-color: #D73027;
}

.secret-key-input {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid #E85A4F;
    border-radius: 10px;
    background: #FFF8DC;
    color: #D73027;
    font-style: italic;
}

.secret-key-input:focus {
    outline: none;
    border-color: #D73027;
    background: white;
    font-style: normal;
}

.clear-btn {
    padding: 12px 20px;
    background: #888;
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.2s ease;
}

.clear-btn:hover {
    background: #666;
    transform: translateY(-1px);
}

.filter-summary {
    background: #FFF5E6;
    padding: 10px 15px;
    border-radius: 8px;
    border: 1px solid #E85A4F;
    color: #D73027;
    font-size: 0.9rem;
    text-align: center;
}

.clear-filters-inline {
    background: none;
    border: none;
    color: #D73027;
    text-decoration: underline;
    cursor: pointer;
    font-size: 0.9rem;
    margin-left: 10px;
}
/*
.pack-container {
    margin: 20px 0;
}

.pack-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px 0;
}

.pack-card {
    background: white;
    border: 2px solid #E85A4F;
    border-radius: 15px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(232, 90, 79, 0.1);
    position: relative;
    overflow: hidden;
}

.pack-card:hover {
    border-color: #D73027;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(232, 90, 79, 0.3);
}

.pack-card.selected {
    border-color: #D73027;
    background: linear-gradient(135deg, #FFF5E6 0%, #FFEFEF 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(232, 90, 79, 0.4);
}

.pack-card.selected::before {
    content: '✓';
    position: absolute;
    top: 15px;
    right: 15px;
    background: #D73027;
    color: white;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
}

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

.pack-title {
    color: white;
    font-size: 1.3rem;
    font-weight: 800;
    margin: 0;
    flex: 1;
    margin-right: 10px;
}

.pack-badges {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.difficulty-badge {
    padding: 4px 8px;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.difficulty-badge.easy { background: #90EE90; color: #2E7D32; }
.difficulty-badge.medium { background: #FFD700; color: #F57F17; }
.difficulty-badge.hard { background: #FFA500; color: #E65100; }
.difficulty-badge.expert { background: #FF6B6B; color: #C62828; }

.popularity-badge {
    padding: 4px 8px;
    border-radius: 15px;
    font-size: 0.7rem;
    font-weight: bold;
}

.popularity-badge.popular { background: #E8F5E8; color: #2E7D32; }
.popularity-badge.trending { background: #FFF8E1; color: #F57F17; }
.popularity-badge.new { background: #E3F2FD; color: #1976D2; }

.pack-description {
    color: #666;
    line-height: 1.5;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.pack-meta {
    border-top: 1px solid #F0F0F0;
    padding-top: 15px;
}

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

.question-count {
    background: #E85A4F;
    color: white;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: bold;
}

.category {
    color: #888;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pack-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.tag {
    background: #F0F0F0;
    color: #666;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 500;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #888;
}

.empty-state h3 {
    color: #D73027;
    margin-bottom: 10px;
}

.pack-actions {
    background: white;
    padding: 20px;
    border-radius: 15px;
    border: 2px solid #E85A4F;
    margin: 20px 0;
    box-shadow: 0 3px 10px rgba(232, 90, 79, 0.2);
}

.host-name-input {
    width: 100%;
    padding: 15px;
    border: 2px solid #E85A4F;
    border-radius: 10px;
    font-size: 1rem;
    margin-bottom: 15px;
    background: #FFF5E6;
    color: #D73027;
    font-weight: 600;
}

.host-name-input:focus {
    outline: none;
    border-color: #D73027;
    box-shadow: 0 0 0 3px rgba(232, 90, 79, 0.3);
}

.action-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.primary-btn {
    background: linear-gradient(135deg, #E85A4F 0%, #D73027 100%);
    color: #FFF5E6;
    border: none;
    padding: 15px 30px;
    border-radius: 15px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(232, 90, 79, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.primary-btn:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(232, 90, 79, 0.6);
}

.primary-btn:disabled {
    background: #CCC;
    color: #888;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.secondary-btn {
    background: #888;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 15px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.secondary-btn:hover {
    background: #666;
    transform: translateY(-2px);
}
*/

/* ===== QUESTION PACK SELECTION STYLES ===== */

/* Pack Selection Phase Container */
#pack-selection-phase {
    max-width: 900px;
    margin: 0 auto;
}

/* Pack Filters */
.pack-filters {
    background: white;
    border: 3px solid #E85A4F;
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 5px 20px rgba(232, 90, 79, 0.2);
}

.filter-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.filter-row:last-child {
    margin-bottom: 0;
}

.search-input {
    flex: 1;
    min-width: 200px;
    padding: 12px 15px;
    border: 2px solid #E85A4F;
    border-radius: 10px;
    font-size: 0.95rem;
    background: #FFF5E6;
    color: #D73027;
    font-weight: 600;
}

.search-input:focus {
    outline: none;
    border-color: #D73027;
    box-shadow: 0 0 0 3px rgba(232, 90, 79, 0.2);
}

.filter-select {
    padding: 12px 15px;
    border: 2px solid #E85A4F;
    border-radius: 10px;
    background: white;
    color: #D73027;
    font-weight: 600;
    font-size: 0.9rem;
    min-width: 150px;
    cursor: pointer;
}

.filter-select:focus {
    outline: none;
    border-color: #D73027;
    box-shadow: 0 0 0 3px rgba(232, 90, 79, 0.2);
}

.secret-key-input {
    flex: 1;
    min-width: 250px;
    padding: 12px 15px;
    border: 2px solid #E85A4F;
    border-radius: 10px;
    font-size: 0.9rem;
    background: #f8f9fa;
    color: #666;
    font-weight: 500;
}

.secret-key-input:focus {
    outline: none;
    border-color: #D73027;
    background: white;
    color: #D73027;
}

.clear-btn {
    background: #888 !important;
    color: white !important;
    padding: 12px 20px !important;
    font-size: 0.9rem !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    margin: 0 !important;
}

.clear-btn:hover {
    background: #666 !important;
    transform: translateY(-1px) !important;
}

/* Filter Summary */
.filter-summary {
    background: #FFF5E6;
    border: 1px solid #E85A4F;
    border-radius: 8px;
    padding: 10px 15px;
    font-size: 0.9rem;
    color: #666;
    margin-top: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.clear-filters-inline {
    background: none !important;
    color: #D73027 !important;
    border: 1px solid #D73027 !important;
    padding: 4px 12px !important;
    font-size: 0.8rem !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    margin: 0 !important;
    box-shadow: none !important;
}

.clear-filters-inline:hover {
    background: #D73027 !important;
    color: white !important;
    transform: none !important;
}

/* Pack Container and Grid */
.pack-container {
    margin-bottom: 30px;
}

/* Scrollable Wrapper for Question Packs */
.pack-scrollable-wrapper {
    max-height: 400px;
    overflow-y: auto;
    overflow-x: hidden;
    border: 2px solid #E85A4F;
    border-left: 4px solid #E85A4F;
    border-radius: 15px;
    background: #f9f9f9;
    margin: 20px 0;
    padding: 15px;
    box-shadow: 0 3px 10px rgba(232, 90, 79, 0.1);
    
    /* Smooth scrolling for mobile */
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
}

/* Custom scrollbar styling */
.pack-scrollable-wrapper::-webkit-scrollbar {
    width: 8px;
}

.pack-scrollable-wrapper::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.pack-scrollable-wrapper::-webkit-scrollbar-thumb {
    background: #E85A4F;
    border-radius: 10px;
    transition: background 0.3s ease;
}

.pack-scrollable-wrapper::-webkit-scrollbar-thumb:hover {
    background: #D73027;
}


/*
.pack-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}*/

/* Pack Cards */
/*
.pack-card {
    background: white;
    border: 3px solid #E85A4F;
    border-radius: 20px;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(232, 90, 79, 0.2);
    overflow: hidden;
}

.pack-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(232, 90, 79, 0.3);
    border-color: #D73027;
}

.pack-card.selected {
    border-color: #2E8B57;
    background: #f0f8f0;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(46, 139, 87, 0.3);
}
*/

/* Pack Card Header */
/*
.pack-header {
    background: linear-gradient(135deg, #E85A4F 0%, #D73027 100%);
    color: #FFF5E6;
    padding: 20px;
    position: relative;
}

.pack-card.selected .pack-header {
    background: linear-gradient(135deg, #2E8B57 0%, #228B22 100%);
}

.pack-title {
    font-size: 1.3rem;
    font-weight: 900;
    margin-bottom: 8px;
    text-shadow: 1px 1px 0px rgba(0, 0, 0, 0.2);
}

.pack-badges {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 10px;
}

.difficulty-badge {
    background: rgba(255, 255, 255, 0.2);
    color: #FFF5E6;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
}

.difficulty-badge.easy {
    background: rgba(46, 139, 87, 0.8);
}

.difficulty-badge.medium {
    background: rgba(255, 165, 0, 0.8);
}

.difficulty-badge.hard {
    background: rgba(220, 20, 60, 0.8);
}

.difficulty-badge.expert {
    background: rgba(75, 0, 130, 0.8);
}

.popularity-badge {
    background: rgba(255, 255, 255, 0.2);
    color: #FFF5E6;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: bold;
}

.popularity-badge.popular {
    background: rgba(255, 215, 0, 0.8);
    color: #333;
}

.popularity-badge.trending {
    background: rgba(255, 69, 0, 0.8);
}

.popularity-badge.new {
    background: rgba(50, 205, 50, 0.8);
}
*/

/* Pack Card Content */
/*
.pack-description {
    padding: 20px;
    color: #333;
    font-size: 0.95rem;
    line-height: 1.5;
    border-bottom: 1px solid #f0f0f0;
}

.pack-meta {
    padding: 15px 20px;
}

.pack-stats {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 0.9rem;
    color: #666;
    font-weight: 600;
}

.question-count {
    color: #D73027;
}

.category {
    color: #666;
    text-transform: capitalize;
}

.pack-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tag {
    background: #FFF5E6;
    color: #D73027;
    border: 1px solid #E85A4F;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}
*/
/* Pack Actions */
/*
.pack-actions {
    background: white;
    border: 3px solid #E85A4F;
    border-radius: 20px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(232, 90, 79, 0.2);
}

.host-name-input {
    width: 100%;
    max-width: 300px;
    margin-bottom: 20px;
}

.action-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.primary-btn {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%) !important;
    color: white !important;
    border: none !important;
    padding: 14px 32px !important;
    border-radius: 8px !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4) !important;
    margin: 0 !important;
}

.primary-btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.6) !important;
}

.primary-btn:disabled {
    background: #d1d5db !important;
    color: #9ca3af !important;
    cursor: not-allowed !important;
    transform: none !important;
    box-shadow: none !important;
}

.secondary-btn {
    background: #6b7280 !important;
    color: white !important;
    border: none !important;
    padding: 14px 32px !important;
    border-radius: 8px !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    margin: 0 !important;
}

.secondary-btn:hover {
    background: #4b5563 !important;
    transform: translateY(-2px) !important;
}
*/

/* Empty State */
.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 20px;
    color: #6b7280;
}

.empty-state h3 {
    color: #374151;
    margin-bottom: 12px;
    font-size: 1.25rem;
    font-weight: 600;
}

.empty-state p {
    font-size: 1rem;
    line-height: 1.5;
}

/* Loading States */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(232, 90, 79, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    color: #FFF5E6;
    font-size: 1.2rem;
    font-weight: bold;
}

.reconnecting-message {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #FFA500;
    color: white;
    padding: 15px 20px;
    border-radius: 10px;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(255, 165, 0, 0.4);
    z-index: 9999;
}

.error-message {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #D73027;
    color: #FFF5E6;
    padding: 15px 20px;
    border-radius: 10px;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(215, 48, 39, 0.4);
    z-index: 9999;
}

/* Mobile Responsive for Pack Selection */
@media (max-width: 768px) {
    .container {
        max-width: 100%;
        padding: 20px;
    }
    
    .pack-grid {
        grid-template-columns: 1fr;
    }
    
    .filter-row {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-select {
        min-width: auto;
        width: 100%;
    }
    
    .search-input,
    .secret-key-input {
        min-width: auto;
        width: 100%;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .pack-card {
        margin: 0;
    }
    
    .pack-badges {
        flex-direction: column;
        gap: 5px;
    }
    
    .pack-stats {
        flex-direction: column;
        gap: 5px;
        text-align: center;
    }
    
    .filter-summary {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    /* Mobile scrollable wrapper adjustments */
    .pack-scrollable-wrapper {
        max-height: 350px; /* Shorter on mobile to leave room for action buttons */
        padding: 10px;
        margin: 15px 0;
    }
    
    /* Make action buttons sticky on mobile */
    .pack-actions {
        position: sticky;
        bottom: 0;
        background: white;
        padding: 15px 0;
        border-top: 2px solid #E85A4F;
        margin-top: 20px;
        box-shadow: 0 -3px 10px rgba(232, 90, 79, 0.1);
    }
}

/* ===== SIMPLIFIED PACK SELECTION STYLES ===== */

/* Pack Card Content - Simplified Layout */
.pack-content {
    padding: 24px;
}

.pack-description {
    color: #4b5563;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.choose-pack-btn {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    text-transform: none;
    letter-spacing: normal;
    margin: 0;
}

.choose-pack-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.pack-card.selected .choose-pack-btn {
    background: linear-gradient(135deg, #10b981 0%, #047857 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.pack-card.selected .choose-pack-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.5);
}

.pack-card.selected .choose-pack-btn::after {
    content: ' ✓';
    margin-left: 8px;
}

/* ===== BURGER MENU STYLES ===== */

/* Burger Menu Button */
.burger-menu {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.burger-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #E85A4F 0%, #D73027 100%);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(232, 90, 79, 0.4);
    transition: all 0.3s ease;
}

.burger-icon:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(232, 90, 79, 0.6);
}

.burger-line {
    width: 25px;
    height: 3px;
    background: #FFF5E6;
    margin: 2px 0;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.burger-icon.open .burger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.burger-icon.open .burger-line:nth-child(2) {
    opacity: 0;
}

.burger-icon.open .burger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Menu Overlay */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.menu-overlay.open {
    opacity: 1;
    visibility: visible;
}

.menu-overlay.open::after {
    content: "Tap anywhere to close";
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0.8;
    animation: fadeInOut 3s ease-in-out;
}

@keyframes fadeInOut {
    0%, 100% { opacity: 0; }
    10%, 90% { opacity: 0.8; }
}

/* Menu Panel */
.menu-panel {
    position: fixed;
    top: 0;
    right: -400px;
    width: 350px;
    height: 100vh;
    background: #FFF5E6;
    border-left: 4px solid #D73027;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.2);
    z-index: 1001;
    transition: right 0.3s ease;
    overflow-y: auto;
    padding: 80px 30px 30px;
}

.menu-panel.open {
    right: 0;
}

/* Close Button in Menu */
.menu-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: #D73027;
    border: none;
    border-radius: 8px;
    color: #FFF5E6;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.menu-close-btn:hover {
    background: #B91C1C;
    transform: scale(1.05);
}

/* Menu Items */
.menu-item {
    padding: 20px 0;
    border-bottom: 2px solid #E85A4F;
    cursor: pointer;
    transition: all 0.2s ease;
}

.menu-item:hover {
    background: rgba(232, 90, 79, 0.1);
    margin: 0 -15px;
    padding-left: 15px;
    padding-right: 15px;
    border-radius: 10px;
}

.menu-item:last-child {
    border-bottom: none;
}

.menu-item h3 {
    color: #D73027;
    margin-bottom: 5px;
    font-size: 1.2rem;
    font-weight: bold;
}

.menu-item p {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Content Panels */
.content-panel {
    display: none;
    padding: 20px 0;
}

.content-panel.active {
    display: block;
}

.content-panel h2 {
    color: #D73027;
    margin-bottom: 20px;
    font-size: 1.5rem;
    border-bottom: 2px solid #E85A4F;
    padding-bottom: 10px;
}

.content-panel h3 {
    color: #D73027;
    margin: 20px 0 10px;
    font-size: 1.2rem;
}

.content-panel p, .content-panel li {
    color: #333;
    line-height: 1.6;
    margin-bottom: 10px;
}

.content-panel ul {
    padding-left: 20px;
    margin-bottom: 15px;
}

/* Back Button */
.back-btn {
    background: #888;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    margin-bottom: 20px;
    font-weight: bold;
    transition: all 0.2s ease;
}

.back-btn:hover {
    background: #666;
    transform: none;
    box-shadow: none;
}

/* QR Code Styles */
.qr-code-container {
    background: white;
    padding: 20px;
    border-radius: 15px;
    border: 2px solid #E85A4F;
    margin: 15px 0;
    box-shadow: 0 3px 10px rgba(232, 90, 79, 0.2);
    text-align: center;
}

.qr-code-container canvas,
.qr-code-container img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Mobile responsive adjustments for QR */
@media (max-width: 600px) {
    .qr-code-container {
        padding: 15px;
        margin: 10px 0;
    }
}

/* Results Sharing Styles */
.results-share-container {
    margin: 20px 0;
}

/* Collapsible Card Styles */
.result-card {
    background: white;
    border-radius: 18px;
    border: 2px solid #E85A4F;
    margin: 15px 0;
    box-shadow: 0 3px 15px rgba(232, 90, 79, 0.2);
    overflow: hidden;
    transition: all 0.3s ease;
}

.result-card.expanded {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(232, 90, 79, 0.3);
}

.card-header {
    padding: 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #FFF5E6 0%, #FFEFD5 100%);
    border-bottom: 1px solid #E85A4F;
    transition: all 0.2s ease;
}

.card-header:hover {
    background: linear-gradient(135deg, #FFEFD5 0%, #FFE4B5 100%);
}

.card-title {
    color: #D73027;
    font-weight: bold;
    font-size: 1.1rem;
}

.card-icon {
    font-size: 1.2rem;
    color: #E85A4F;
    transition: transform 0.3s ease;
}

.card-icon.rotated {
    transform: rotate(180deg);
}

.card-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.card-content.expanded {
    max-height: 600px;
}

.card-inner {
    padding: 25px;
}

/* Special Card Styles */
.special-card .card-header {
    background: linear-gradient(135deg, #FFE4B5 0%, #FFDAB9 100%);
}

.insight-card .card-header {
    background: linear-gradient(135deg, #E6E6FA 0%, #DDA0DD 100%);
}

.special-card .card-title,
.insight-card .card-title {
    color: #8B0000;
    font-weight: bold;
}

/* Shareable Card Styles */
.shareable-card {
    background: linear-gradient(135deg, #E85A4F 0%, #D73027 100%);
    color: #FFF5E6;
    border-radius: 20px;
    padding: 25px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.shareable-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { opacity: 0; }
    50% { opacity: 1; }
}

.card-emoji {
    font-size: 3rem;
    margin-bottom: 15px;
    display: block;
}

.card-quote {
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 20px;
    line-height: 1.3;
    position: relative;
    z-index: 1;
}

.card-detail {
    background: rgba(255, 245, 230, 0.2);
    padding: 15px;
    border-radius: 15px;
    margin: 15px 0;
    position: relative;
    z-index: 1;
    text-align: left;
}

.card-branding {
    margin-top: 20px;
    font-size: 0.9rem;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

/* Share Buttons */
.share-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 20px;
}

.share-btn {
    background: #2E8B57;
    color: white;
    border: none;
    padding: 12px 15px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.share-btn:hover {
    background: #228B22;
    transform: translateY(-2px);
}

.share-btn.primary {
    background: linear-gradient(135deg, #E85A4F 0%, #D73027 100%);
}

.share-btn.primary:hover {
    background: linear-gradient(135deg, #D73027 0%, #C41E3A 100%);
}

/* Summary Card */
.summary-card {
    background: linear-gradient(135deg, #2E8B57 0%, #228B22 100%);
    color: white;
    border-radius: 20px;
    padding: 25px;
    margin: 20px 0;
    text-align: center;
}

.summary-header {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 20px;
}

.summary-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin: 15px 0;
}

.stat-item {
    background: rgba(255, 255, 255, 0.2);
    padding: 15px;
    border-radius: 12px;
    text-align: center;
}

.stat-number {
    font-size: 1.8rem;
    font-weight: bold;
    display: block;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-top: 5px;
}

/* Toggle Buttons */
.toggle-all {
    text-align: center;
    margin: 20px 0;
}

.toggle-btn {
    background: #888;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 10px;
    cursor: pointer;
    margin: 0 5px;
    transition: all 0.2s ease;
    font-weight: bold;
}

.toggle-btn:hover {
    background: #666;
    transform: translateY(-1px);
}

.copy-success {
    background: #2E8B57 !important;
    transform: scale(0.95);
}

/* Mobile responsive for results */
@media (max-width: 600px) {
    .share-buttons {
        grid-template-columns: 1fr;
    }
    
    .summary-stats {
        grid-template-columns: 1fr;
    }
    
    .card-quote {
        font-size: 1.1rem;
    }
    
    .card-inner {
        padding: 20px;
    }
    
    .result-card {
        margin: 10px 0;
    }
}

/* Mobile Responsive Menu */
@media (max-width: 600px) {
    .menu-panel {
        width: 100vw;
        right: -100vw;
        padding: 80px 20px 30px;
    }

    .burger-menu {
        top: 15px;
        right: 15px;
    }
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(0);
        opacity: 1;
    }
    to {
        transform: translateY(-100%);
        opacity: 0;
    }
}

.team-link {
    color: #667eea;
    font-weight: bold;
    text-decoration: none;
}

.team-link:hover {
    text-decoration: underline;
}

.team-suggestion-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 25px;
    border-radius: 20px;
    margin: 20px 0;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.team-suggestion-card h3 {
    color: white;
    margin-bottom: 15px;
}

.team-suggestion-card ul {
    margin: 15px 0;
    padding-left: 20px;
}

.team-suggestion-card .explore-btn {
    background: white;
    color: #667eea;
    padding: 12px 25px;
    border: none;
    border-radius: 10px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s;
}

.team-suggestion-card .explore-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.team-upgrade-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}
.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
}
.modal-content {
    position: relative;
    background: white;
    border-radius: 20px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    animation: modalSlideIn 0.3s ease;
}
.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 2rem;
    color: #999;
    cursor: pointer;
}
.modal-content h2 {
    color: #667eea;
    margin-bottom: 20px;
}
.modal-content ul {
    margin: 20px 0;
    padding-left: 20px;
}
.modal-content li {
    margin: 10px 0;
    color: #666;
}
.modal-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}
.modal-actions button {
    flex: 1;
    padding: 15px;
    border-radius: 10px;
    font-weight: bold;
}
@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Game Footer */
.game-footer {
  margin-top: 50px;
  padding: 20px;
  text-align: center;
  font-size: 0.9rem;
  color: #999;
  border-top: 1px solid rgba(232, 90, 79, 0.2);
}

.game-footer a {
  color: #999;
  text-decoration: none;
  padding: 0 10px;
  transition: color 0.3s ease;
}

.game-footer a:hover {
  color: #E85A4F;
}

.game-footer a.team-link {
  color: #667eea;
  font-weight: 600;
}

.game-footer a.team-link:hover {
  color: #764ba2;
  text-decoration: underline;
}
.toast.toast-warning.show {
    animation: none; /* Don't fade out warning toasts */
}

.reconnect-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-left: 10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.toast.toast-warning {
    background: linear-gradient(135deg, #FFA500 0%, #FF8C00 100%);
}

@media (max-width: 600px) {
    .card-content.expanded {
        max-height: none !important; /* Remove the 600px limit */
        overflow: visible !important;
    }
    
    /* Reduce padding to give more room */
    .card-inner {
        padding: 15px;
    }
    
    /* Make share buttons more compact */
    .share-buttons {
        gap: 8px;
        margin-top: 15px;
    }
    
    .share-btn {
        padding: 10px 8px;
        font-size: 0.8rem;
    }
}