/* Games-specific CSS */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Space+Grotesk:wght@300;400;500;600;700&family=JetBrains+Mono:wght@300;400;500;600;700&display=swap');

/* Game Body */
.game-body {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 50%, #3b82f6 100%);
    min-height: 100vh;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 400;
    line-height: 1.6;
}

/* Game Container */
.game-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Game Header */
.game-header {
    background: rgba(44, 62, 80, 0.95);
    border-radius: 8px;
    padding: 25px 35px;
    margin-bottom: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    border: 2px solid #3498db;
}

.game-title h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.5rem;
    color: #3498db;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.game-title p {
    font-size: 1.2rem;
    color: #bdc3c7;
    font-weight: 400;
    letter-spacing: 0.3px;
    font-family: 'Inter', sans-serif;
}

.game-controls {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* Game Main */
.game-main {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    flex: 1;
}

.game-board {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

/* Deal or No Deal Specific */
.boxes-container h3,
.cards-container h3 {
    font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 1.5rem;
    color: #1e40af;
    font-weight: 600;
    text-align: center;
    margin-bottom: 24px;
    letter-spacing: -0.025em;
}

.boxes-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.box {
    aspect-ratio: 1;
    background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid #1e40af;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.2);
}

.box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.box:hover::before {
    opacity: 1;
}

.box:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.3);
    border-color: #60a5fa;
}

.box.view-only {
    cursor: default;
}

.box.view-only:hover {
    transform: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border-color: transparent;
}

.box.disabled {
    opacity: 0.6;
    pointer-events: none;
    cursor: not-allowed;
    filter: grayscale(50%);
}

.box.disabled:hover {
    transform: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border-color: transparent;
}

.box.view-only:hover::before {
    opacity: 0;
}

.box > * {
    position: relative;
    z-index: 2;
}

.box.selected {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-color: #047857;
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.3);
}

.box.opened {
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    border-color: #9ca3af;
    cursor: default;
    animation: boxOpen 0.8s ease-in-out;
    color: #6b7280;
}

/* Box Animations */
@keyframes boxOpen {
    0% { 
        transform: scale(1) rotateY(0deg);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    }
    50% { 
        transform: scale(1.2) rotateY(180deg);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    }
    100% { 
        transform: scale(1) rotateY(360deg);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    }
}

@keyframes boxSelect {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1.1); }
}

@keyframes boxPulse {
    0% { transform: scale(1.1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1.1); }
}

/* Enhanced Box Opening Animation */
@keyframes boxOpening {
    0% { 
        transform: scale(1) rotateY(0deg);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    }
    25% { 
        transform: scale(1.2) rotateY(90deg);
        box-shadow: 0 15px 30px rgba(255, 107, 107, 0.4);
    }
    50% { 
        transform: scale(1.3) rotateY(180deg);
        box-shadow: 0 20px 40px rgba(255, 107, 107, 0.6);
    }
    75% { 
        transform: scale(1.2) rotateY(270deg);
        box-shadow: 0 15px 30px rgba(255, 107, 107, 0.4);
    }
    100% { 
        transform: scale(1) rotateY(360deg);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    }
}

/* Large Amount Display Animation */
@keyframes amountReveal {
    0% { 
        opacity: 0;
        transform: scale(0.5) translateY(50px);
    }
    50% { 
        opacity: 1;
        transform: scale(1.2) translateY(-10px);
    }
    100% { 
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes amountPulse {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 0 0 20px rgba(255, 107, 107, 0.5);
    }
    50% { 
        transform: scale(1.05);
        box-shadow: 0 0 30px rgba(255, 107, 107, 0.8);
    }
}

@keyframes amountSlideOut {
    0% { 
        opacity: 1;
        transform: translateX(0) scale(1);
    }
    100% { 
        opacity: 0;
        transform: translateX(-100%) scale(0.8);
    }
}

/* Large Amount Display Overlay */
.amount-display-overlay {
    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: 9999;
    animation: fadeIn 0.3s ease-in-out;
}

.amount-display-content {
    background: linear-gradient(135deg, #ff6b6b 0%, #ff8e8e 100%);
    border-radius: 20px;
    padding: 40px 60px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: amountReveal 1s ease-out;
    border: 4px solid #fff;
    position: relative;
    overflow: hidden;
}

.amount-display-content::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: shimmer 2s infinite;
}

.amount-display-title {
    font-family: 'Fredoka One', cursive;
    font-size: 2rem;
    color: #fff;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.amount-display-value {
    font-family: 'Fredoka One', cursive;
    font-size: 4rem;
    color: #fff;
    font-weight: bold;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.3);
    animation: amountPulse 2s infinite;
    margin-bottom: 20px;
}

.amount-display-subtitle {
    font-size: 1.2rem;
    color: #fff;
    font-weight: 600;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes shimmer {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scaleIn {
    from { 
        opacity: 0;
        transform: scale(0.5);
    }
    to { 
        opacity: 1;
        transform: scale(1);
    }
}

.box-number {
    font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 1.5rem;
    color: #ffffff;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.box-value {
    font-size: 0.9rem;
    color: #ffffff;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Play Your Cards Right Specific */
.cards-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.current-card-section,
.next-card-section {
    text-align: center;
}

.card-display {
    margin-bottom: 20px;
}

.card {
    width: 120px;
    height: 180px;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    margin: 0 auto;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    position: relative;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.card.spades,
.card.clubs {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: #333;
}

.card.hearts,
.card.diamonds {
    background: linear-gradient(135deg, #ff6b6b 0%, #ff8e8e 100%);
    color: white;
}

.card-value {
    font-family: 'Fredoka One', cursive;
    font-size: 2rem;
    font-weight: bold;
}

.card-suit {
    font-size: 3rem;
    line-height: 1;
}

.card-placeholder {
    width: 120px;
    height: 180px;
    border: 3px dashed #ccc;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.5);
}

.card-placeholder p {
    color: #666;
    font-weight: 600;
    text-align: center;
}

/* Game Info */
.game-info {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    border-radius: 20px;
    padding: 25px;
    text-align: center;
}

.game-info h3 {
    font-family: 'Fredoka One', cursive;
    font-size: 1.3rem;
    color: #333;
    margin-bottom: 15px;
}

.current-offer,
.score-display {
    margin-bottom: 25px;
}

.offer-amount,
.score-amount {
    font-family: 'Fredoka One', cursive;
    font-size: 2.5rem;
    color: #ff6b6b;
    text-shadow: 2px 2px 0px #ffd93d;
    margin: 10px 0;
}

.banker-phone {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 15px;
    padding: 20px;
    margin: 20px 0;
}

.phone-icon {
    font-size: 2rem;
    margin-bottom: 10px;
}

.banker-phone h3 {
    color: #333;
    margin-bottom: 10px;
}

.banker-phone p {
    color: #666;
    font-weight: 600;
}

.game-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 20px;
}

.btn-large {
    padding: 15px 30px;
    font-size: 1.2rem;
    font-weight: 700;
    min-width: 120px;
}


/* Amounts Board - Deal or No Deal Style */
.amounts-board {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    border-radius: 16px;
    padding: 28px;
    margin-top: 24px;
    border: 2px solid #1e40af;
    box-shadow: 0 8px 32px rgba(30, 64, 175, 0.2);
    position: relative;
}

.amounts-board::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 2px,
        rgba(255, 255, 255, 0.03) 2px,
        rgba(255, 255, 255, 0.03) 4px
    );
    border-radius: 16px;
    pointer-events: none;
}

.amounts-board h3 {
    font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 1.8rem;
    color: #ffffff;
    font-weight: 700;
    text-align: center;
    margin-bottom: 24px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 2;
    letter-spacing: -0.025em;
}

.amounts-board-container {
    display: flex;
    gap: 20px;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.amounts-column {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 200px;
}

.amount-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-radius: 8px;
    transition: all 0.5s ease;
    position: relative;
    overflow: hidden;
    min-height: 50px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.amount-panel.left-panel {
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
    border: 2px solid #1e40af;
}

.amount-panel.right-panel {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    border: 2px solid #b45309;
}

/* High-value amounts (100000+) should be red */
.amount-panel.right-panel[data-amount="100000"],
.amount-panel.right-panel[data-amount="200000"],
.amount-panel.right-panel[data-amount="300000"],
.amount-panel.right-panel[data-amount="400000"],
.amount-panel.right-panel[data-amount="500000"],
.amount-panel.right-panel[data-amount="750000"],
.amount-panel.right-panel[data-amount="1000000"] {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    border: 2px solid #b91c1c;
}

.amount-panel.removed {
    transform: translateX(-100%);
    opacity: 0;
    height: 0;
    padding: 0;
    margin: 0;
    border: none;
    overflow: hidden;
    transition: all 1.5s ease-in-out;
    animation: slideAway 1.5s ease-in-out forwards;
}

@keyframes slideAway {
    0% {
        transform: translateX(0);
        opacity: 1;
        height: auto;
        padding: 8px 12px;
        margin: 2px 0;
    }
    30% {
        transform: translateX(-20px);
        opacity: 0.8;
    }
    70% {
        transform: translateX(-60px);
        opacity: 0.3;
        height: auto;
    }
    100% {
        transform: translateX(-100%);
        opacity: 0;
        height: 0;
        padding: 0;
        margin: 0;
    }
}

.panel-rivets {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.rivet {
    width: 8px;
    height: 8px;
    background: radial-gradient(circle, #bdc3c7 0%, #7f8c8d 100%);
    border-radius: 50%;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.3);
}

.amount-text {
    font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    flex: 1;
    text-align: center;
    margin: 0 10px;
    letter-spacing: -0.025em;
}


/* Game History */
.game-history {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    padding: 20px;
    margin-top: 20px;
}

.game-history h3 {
    font-family: 'Fredoka One', cursive;
    font-size: 1.3rem;
    color: #ff6b6b;
    text-align: center;
    margin-bottom: 15px;
}

.history-list {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.history-item {
    display: flex;
    align-items: center;
}

.card.small {
    width: 40px;
    height: 60px;
    font-size: 0.8rem;
    padding: 5px;
}

.card.small .card-value {
    font-size: 1rem;
}

.card.small .card-suit {
    font-size: 1.2rem;
}

/* Game Footer */
.game-footer {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 12px;
    padding: 20px 28px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(226, 232, 240, 0.8);
}

.game-stats,
.round-info {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.game-stats span,
.round-info span {
    color: #64748b;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
}

.game-stats strong,
.round-info strong {
    color: #1e40af;
    font-weight: 700;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: white;
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.modal-content h2 {
    font-family: 'Fredoka One', cursive;
    font-size: 2rem;
    color: #ff6b6b;
    margin-bottom: 20px;
}

.result-message {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 20px;
}

.final-amount,
.final-score {
    font-family: 'Fredoka One', cursive;
    font-size: 2.5rem;
    color: #4ecdc4;
    text-shadow: 2px 2px 0px #45b7aa;
    margin: 20px 0;
}

.score-message {
    font-size: 1.1rem;
    color: #666;
    margin: 20px 0;
}

.modal-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 30px;
}

/* Animations */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes fadeInOut {
    0% { opacity: 0; transform: translateY(-10px); }
    50% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(-10px); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .game-container {
        padding: 10px;
    }
    
    .game-header {
        flex-direction: column;
        text-align: center;
    }
    
    .game-title h1 {
        font-size: 2rem;
    }
    
    .game-board {
        grid-template-columns: 1fr;
    }
    
    .boxes-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .cards-container {
        grid-template-columns: 1fr;
    }
    
    .game-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-large {
        width: 100%;
        max-width: 200px;
    }
    
    .values-grid {
        grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    }
    
    .game-stats,
    .round-info {
        flex-direction: column;
        gap: 10px;
    }
    
    .amounts-grid {
        grid-template-columns: 1fr;
        max-height: 300px;
    }
    
    .amounts-board-container {
        flex-direction: column;
        gap: 15px;
    }
    
    .amounts-column {
        min-width: auto;
    }
    
    .amount-panel {
        padding: 10px 12px;
        min-height: 45px;
    }
    
    .amount-text {
        font-size: 1rem;
    }
}

/* Outline Button */
.btn-outline {
    background: transparent;
    border: 2px solid #3b82f6;
    color: #3b82f6;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.025em;
}

.btn-outline:hover {
    background: #3b82f6;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* Banker Modal */
.banker-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: modalFadeIn 0.5s ease-out;
}

@keyframes modalFadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@keyframes modalFadeOut {
    0% {
        opacity: 1;
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: scale(0.8);
    }
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    border: 2px solid #1e40af;
    border-radius: 16px;
    padding: 40px;
    text-align: center;
    max-width: 600px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(30, 64, 175, 0.3);
    animation: modalSlideIn 0.6s ease-out;
}

@keyframes modalSlideIn {
    0% {
        transform: scale(0.5) translateY(-100px);
        opacity: 0;
    }
    100% {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

.banker-header {
    margin-bottom: 30px;
}

.banker-header .phone-icon {
    font-size: 4rem;
    margin-bottom: 15px;
    animation: phoneRing 2s infinite;
}

@keyframes phoneRing {
    0%, 50%, 100% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(-10deg);
    }
    75% {
        transform: rotate(10deg);
    }
}

.banker-header h2 {
    color: #ffffff;
    font-size: 2.5rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    margin: 0;
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: -0.025em;
}

@keyframes textGlow {
    0% {
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8), 0 0 10px #ffd700;
    }
    100% {
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8), 0 0 20px #ffd700, 0 0 30px #ffd700;
    }
}

.offer-display {
    margin-bottom: 40px;
}

.offer-display h3 {
    color: #fff;
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.offer-amount {
    font-size: 4rem;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: -0.025em;
}

@keyframes amountPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.decision-prompt {
    margin-bottom: 40px;
}

.decision-prompt h3 {
    color: #fff;
    font-size: 2rem;
    margin-bottom: 10px;
}

.decision-prompt p {
    color: #ccc;
    font-size: 1.2rem;
}

.decision-buttons {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

.decision-btn {
    position: relative;
    padding: 20px 40px;
    border: none;
    border-radius: 15px;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
    min-width: 200px;
    animation: buttonFloat 2s infinite ease-in-out;
}

.decision-btn:nth-child(1) {
    animation-delay: 0s;
}

.decision-btn:nth-child(2) {
    animation-delay: 1s;
}

@keyframes buttonFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.deal-btn {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.3);
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
}

.no-deal-btn {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    box-shadow: 0 8px 24px rgba(239, 68, 68, 0.3);
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
}

.decision-btn:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.btn-text {
    position: relative;
    z-index: 2;
    animation: textFlash 1s infinite;
}

@keyframes textFlash {
    0%, 50%, 100% {
        opacity: 1;
    }
    25%, 75% {
        opacity: 0.7;
    }
}

.btn-glow {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: glowSweep 2s infinite;
}

@keyframes glowSweep {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* Deal Accepted Celebration */
.deal-accepted {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.9);
    animation: celebrationFadeIn 0.5s ease-out;
}

@keyframes celebrationFadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

.celebration-content {
    text-align: center;
    color: #ffd700;
    animation: celebrationBounce 1s ease-out;
}

@keyframes celebrationBounce {
    0% {
        transform: scale(0.3);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.celebration-amount {
    font-size: 6rem;
    font-weight: bold;
    text-shadow: 4px 4px 8px rgba(0, 0, 0, 0.8);
    margin-bottom: 20px;
    animation: celebrationPulse 1s infinite;
}

@keyframes celebrationPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.celebration-text {
    font-size: 3rem;
    margin-bottom: 30px;
    animation: celebrationGlow 2s infinite alternate;
}

@keyframes celebrationGlow {
    0% {
        text-shadow: 0 0 10px #ffd700;
    }
    100% {
        text-shadow: 0 0 20px #ffd700, 0 0 30px #ffd700;
    }
}

.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    background: #ffd700;
    animation: confettiFall 3s linear infinite;
}

@keyframes confettiFall {
    0% {
        transform: translateY(-100vh) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

/* Game Status Section */
.game-status {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    border-radius: 20px;
    padding: 25px;
    text-align: center;
    margin: 20px 0;
}

.game-status h3 {
    font-family: 'Fredoka One', cursive;
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 15px;
    text-shadow: 2px 2px 0px #ffd93d;
}

.status-display {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 15px;
    padding: 20px;
    margin-top: 15px;
}

.status-display p {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 10px;
    font-weight: 600;
}

.status-display p:last-child {
    margin-bottom: 0;
}

/* Deal or No Cardio specific styles */
.game-title-section {
    text-align: center;
    margin-bottom: 2rem;
    padding: 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    color: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.main-title {
    font-size: 3rem;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    font-family: 'Fredoka One', cursive;
}

.player-name {
    font-size: 1.2rem;
    margin: 0.5rem 0 0 0;
    opacity: 0.9;
}

.cards-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin: 2rem 0;
    gap: 2rem;
}

.current-card-section,
.next-card-section {
    text-align: center;
    flex: 1;
}

.current-card-section h3,
.next-card-section h3 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 1.3rem;
    font-weight: 600;
}

.card-display.large {
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card.large {
    width: 120px;
    height: 180px;
    font-size: 2rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.card.large:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.card-placeholder {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    border-radius: 15px;
    padding: 2rem;
    color: white;
    text-align: center;
    min-height: 150px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.heartbeat-icon,
.question-mark {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: heartbeat 2s ease-in-out infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.prediction-section {
    text-align: center;
    margin: 2rem 0;
}

.prediction-section h3 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.prediction-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.fitness-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
    padding: 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.stat-value {
    font-size: 2rem;
    font-weight: bold;
    color: #333;
}

.workout-history {
    margin-top: 2rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.workout-history h3 {
    color: #333;
    margin-bottom: 1rem;
    text-align: center;
}

.no-history {
    text-align: center;
    color: #666;
    font-style: italic;
    padding: 2rem;
}

.fitness-summary {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 10px;
    margin: 1rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.fitness-summary span {
    font-size: 1.1rem;
    font-weight: 600;
}

.fitness-modal {
    text-align: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.fitness-result {
    margin: 2rem 0;
}

.result-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: celebration 1s ease-in-out infinite alternate;
}

@keyframes celebration {
    0% { transform: scale(1) rotate(-5deg); }
    100% { transform: scale(1.1) rotate(5deg); }
}

/* Card Shark Showdown - Two Player Styles */
.game-subtitle {
    font-size: 1.2rem;
    margin: 0.5rem 0 0 0;
    opacity: 0.9;
    font-weight: 600;
}

.current-turn {
    text-align: center;
    margin: 2rem 0;
    padding: 1rem;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    border-radius: 15px;
    color: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.current-turn h2 {
    margin: 0 0 0.5rem 0;
    font-size: 2rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.current-turn p {
    margin: 0;
    font-size: 1.1rem;
    opacity: 0.9;
}

.player-section {
    margin: 2rem 0;
    text-align: center;
}

.player-section h3 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: 600;
}

.cards-row {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin: 1rem 0;
}

.card-slot {
    position: relative;
    width: 80px;
    height: 120px;
    perspective: 1000px;
}

.card {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.6s;
    cursor: pointer;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.card.flipped {
    transform: rotateY(180deg);
}

.card .card-back,
.card .card-value,
.card .card-suit {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-weight: bold;
}

.card .card-back {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 2rem;
}

.card .card-value {
    font-size: 1.5rem;
    top: 10px;
    left: 10px;
    width: auto;
    height: auto;
}

.card .card-suit {
    font-size: 2rem;
    bottom: 10px;
    right: 10px;
    width: auto;
    height: auto;
}

/* Card suit colors */
.card.spades .card-suit,
.card.clubs .card-suit {
    color: #000;
}

.card.hearts .card-suit,
.card.diamonds .card-suit {
    color: #e74c3c;
}

/* Player highlighting */
.player-section.active {
    background: rgba(255, 107, 107, 0.1);
    border-radius: 15px;
    padding: 1rem;
    border: 3px solid #ff6b6b;
}

.player-section.winner {
    background: rgba(46, 204, 113, 0.1);
    border-radius: 15px;
    padding: 1rem;
    border: 3px solid #2ecc71;
    animation: winnerGlow 2s ease-in-out infinite alternate;
}

@keyframes winnerGlow {
    0% { box-shadow: 0 0 20px rgba(46, 204, 113, 0.3); }
    100% { box-shadow: 0 0 30px rgba(46, 204, 113, 0.6); }
}

/* Card flip animation */
@keyframes cardFlip {
    0% { transform: rotateY(0deg); }
    50% { transform: rotateY(90deg); }
    100% { transform: rotateY(180deg); }
}

.card.revealing {
    animation: cardFlip 0.6s ease-in-out;
}

/* Game stats for two players */
.game-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin: 2rem 0;
    padding: 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.game-summary {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 10px;
    margin: 1rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.game-summary span {
    font-size: 1.1rem;
    font-weight: 600;
}

