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

@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800&display=swap');

body {
    font-family: 'Nunito', 'Montserrat', 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--background-primary);
    min-height: 100vh;
    overflow-x: hidden;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

:root {
    /* Logo-based color scheme */
    --primary-orange: #e67e22;
    --primary-orange-dark: #d35400;
    --primary-red: #c0392b;
    --primary-burgundy: #922b21;
    --gradient-primary: linear-gradient(135deg, var(--primary-orange) 0%, var(--primary-burgundy) 100%);
    --gradient-reverse: linear-gradient(135deg, var(--primary-burgundy) 0%, var(--primary-orange) 100%);
    
    /* Semantic colors */
    --background-primary: var(--gradient-primary);
    --accent-color: var(--primary-orange);
    --accent-hover: var(--primary-orange-dark);
    --danger-color: var(--primary-red);
    --text-light: #ffffff;
    --card-shadow: rgba(146, 43, 33, 0.3);
}

/* Page System */
.page {
    display: none !important;
    min-height: 100vh;
}

.page.active {
    display: block !important;
}

/* Ad Styling */
.ad-container {
    margin: 1rem 0;
    text-align: center;
    border-radius: 8px;
    overflow: hidden;
}

.ad-container.bottom-banner {
    margin-top: 2rem;
    max-height: 90px;
}

.ad-container.lobby-ad {
    margin: 1.5rem auto;
    max-width: 300px;
}

.ad-container.game-side-ad {
    position: fixed;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 160px;
    z-index: 100;
}

@media (max-width: 1200px) {
    .ad-container.game-side-ad {
        display: none;
    }
}

@media (max-width: 768px) {
    .ad-container.bottom-banner {
        margin-top: 1rem;
        max-height: 60px;
    }
    
    .ad-container.lobby-ad {
        max-width: 280px;
    }
}

/* Footer Links */
.footer-links {
    position: absolute;
    bottom: 20px;
    right: 20px;
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.9rem;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-links a:hover {
    opacity: 1;
    text-decoration: underline;
}

/* Rules and Contact Pages */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 1rem;
}

.page-header h1 {
    color: var(--text-light);
    font-size: 2rem;
    font-weight: 700;
}

.back-btn {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.back-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(-2px);
}

.rules-content {
    color: var(--text-light);
    line-height: 1.6;
}

.rules-content h2 {
    color: var(--accent-color);
    margin: 2rem 0 1rem 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.rules-content ul, .rules-content ol {
    margin: 1rem 0;
    padding-left: 2rem;
}

.rules-content li {
    margin: 0.5rem 0;
}

.rules-content strong {
    color: var(--accent-color);
}

/* Contact Form */
.contact-content {
    color: var(--text-light);
}

.contact-content p {
    margin-bottom: 2rem;
    font-size: 1.1rem;
    opacity: 0.9;
}

.contact-form {
    max-width: 600px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-light);
    font-weight: 600;
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    font-size: 1rem;
    font-family: inherit;
}

.form-group input::placeholder, .form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    background: rgba(255, 255, 255, 0.15);
}

.submit-btn {
    background: var(--accent-color);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .footer-links {
        position: static;
        justify-content: center;
        margin-top: 2rem;
        gap: 15px;
    }
    
    .page-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .page-header h1 {
        font-size: 1.5rem;
    }
}

/* Landing Page */
#landing-page.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Logo Styles */
.logo-container {
    text-align: center;
    margin-bottom: 1.5rem;
}

.main-logo {
    max-width: 300px;
    height: auto;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
    transition: transform 0.3s ease;
}

.main-logo:hover {
    transform: scale(1.05);
}

#landing-page h1 {
    color: #fff;
    font-size: 3rem;
    text-align: center;
    margin-bottom: 2rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.form-container {
    background: transparent;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
}

.form-container input {
    max-width: 300px;
    width: 100%;
    padding: 15px;
    margin: 10px 0;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-container input:focus {
    outline: none;
    border-color: var(--accent-color);
}

.form-container button {
    max-width: 300px;
    width: 100%;
    padding: 15px;
    margin: 10px 0;
    background: var(--accent-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}

.form-container button:hover {
    background: var(--accent-hover);
}

.form-container button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Join Room Container with embedded play button */
.join-room-container {
    position: relative;
    margin-top: 20px;
}

.join-room-container input {
    max-width: 300px;
    padding-right: 60px; /* Make room for the play button */
}

.join-room-container .play-button {
    position: absolute;
    right: calc(50% - 145px);
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 40px;
    background: var(--accent-color);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 18px;
    cursor: pointer;
    transition: background 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
}

.join-room-container .play-button:hover {
    background: var(--accent-hover);
}

/* Lobby Page */
#lobby-page .container {
    max-width: 600px;
    color: white;
}

#lobby-page h2 {
    text-align: center;
    margin-bottom: 1rem;
    font-size: 2rem;
}

.room-info {
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem;
    border-radius: 10px;
    text-align: center;
    margin-bottom: 2rem;
}

.room-info button {
    background: #fff;
    color: var(--accent-color);
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    margin-top: 10px;
    cursor: pointer;
    font-weight: bold;
}

.players-list {
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 2rem;
}

.players-list h3 {
    margin-bottom: 1rem;
    text-align: center;
}

.players-list ul {
    list-style: none;
}

.players-list li {
    background: rgba(255, 255, 255, 0.2);
    padding: 10px;
    margin: 5px 0;
    border-radius: 5px;
    text-align: center;
}

.lobby-actions {
    text-align: center;
}

.lobby-actions button {
    padding: 15px 30px;
    margin: 0 10px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}

#start-game-btn {
    background: #4CAF50;
    color: white;
}

#start-game-btn:hover:not(:disabled) {
    background: #45a049;
}

#start-game-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

#leave-room-btn {
    background: var(--danger-color);
    color: white;
}

#leave-room-btn:hover {
    background: var(--primary-burgundy);
}

/* Game Page */
.game-board {
    height: 100vh;
    position: relative;
    overflow: hidden;
    background: var(--gradient-reverse);
    transition: background 0.5s ease;
}

/* Knocked state - dramatic background change */
.game-board.knocked {
    background: linear-gradient(135deg, #8B0000 0%, #DC143C 50%, #B22222 100%);
}

/* Flashing animation for knock state */
@keyframes knockFlash {
    0%, 100% { 
        background: linear-gradient(135deg, #8B0000 0%, #DC143C 50%, #B22222 100%);
    }
    50% { 
        background: linear-gradient(135deg, #FF0000 0%, #FF6347 50%, #DC143C 100%);
    }
}

.game-board.knocked.flashing {
    animation: knockFlash 1s ease-in-out infinite;
}

/* Knock Banner */
.knock-banner {
    position: fixed;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(139, 0, 0, 0.95);
    border: 4px solid #FFD700;
    border-radius: 20px;
    padding: 1.5rem 3rem;
    z-index: 1000;
    text-align: center;
    color: #FFD700;
    font-size: 2.5rem;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    opacity: 0;
    transform: translateX(-50%) translateY(-50px);
    transition: all 0.5s ease;
    pointer-events: none;
}

.knock-banner.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.knock-banner.pulse {
    animation: knockBannerPulse 1.5s ease-in-out infinite;
}

@keyframes knockBannerPulse {
    0%, 100% {
        transform: translateX(-50%) scale(1);
        box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    }
    50% {
        transform: translateX(-50%) scale(1.05);
        box-shadow: 0 15px 40px rgba(255,215,0,0.3);
    }
}

/* Enhanced effects during knock state */
.game-board.knocked .round-display {
    color: #FFD700;
    font-size: 2rem;
    text-shadow: 0 0 10px #FFD700, 2px 2px 4px rgba(0,0,0,0.8);
    animation: knockGlow 2s ease-in-out infinite;
}

.game-board.knocked .center-turn-indicator {
    border: 2px solid #FFD700;
    background: rgba(139, 0, 0, 0.8);
    color: #FFD700;
    box-shadow: 0 0 15px rgba(255,215,0,0.5);
}

.game-board.knocked .deck-area .card-pile {
    border: 2px solid #FFD700;
    box-shadow: 0 0 15px rgba(255,215,0,0.3);
}

@keyframes knockGlow {
    0%, 100% {
        text-shadow: 0 0 10px #FFD700, 2px 2px 4px rgba(0,0,0,0.8);
    }
    50% {
        text-shadow: 0 0 20px #FFD700, 0 0 30px #FFD700, 2px 2px 4px rgba(0,0,0,0.8);
    }
}

.center-area {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.deck-area {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.card-pile {
    width: 80px;
    height: 120px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.card-pile:hover {
    transform: scale(1.05);
}

/* Center turn indicator */
.center-turn-indicator {
    color: white;
    font-size: 1.2rem;
    font-weight: bold;
    text-align: center;
    background: rgba(0, 0, 0, 0.7);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    min-width: 150px;
}

/* Card Styles */
.card {
    width: 70px;
    height: 100px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    user-select: none;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.3);
}

.card.back {
    background: #000;
    color: white;
    position: relative;
    overflow: hidden;
}

.card.back::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    opacity: 0.1;
    z-index: 1;
}

#draw-pile.card-pile {
    background: #000;
}

#draw-pile .card.back {
    background: #000 !important;
    width: 100%;
    height: 100%;
}

#draw-pile .card.back::before {
    display: none;
}

#draw-pile .card.back::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    height: 90%;
    background-image: url('/card_back_logo.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    z-index: 2;
}

.card.back::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    height: 90%;
    background-image: url('/card_back_logo.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    z-index: 2;
}

.card.empty {
    background: rgba(255, 255, 255, 0.1);
    border: 2px dashed rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
}

.card.playing-card {
    background: white;
    border: 1px solid #ccc;
    font-weight: bold;
    font-size: 14px;
}

.card.playing-card.red {
    color: #d32f2f;
}

.card.playing-card.black {
    color: #333;
}

.card.playing-card .rank {
    position: absolute;
    top: 5px;
    left: 5px;
    font-size: 12px;
    line-height: 1;
}

.card.playing-card .suit {
    font-size: 24px;
}

.card.playing-card .rank.bottom {
    bottom: 5px;
    right: 5px;
    top: auto;
    left: auto;
    transform: rotate(180deg);
}

/* Player Areas */
.players-area {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* Current Player (Bottom) */
#current-player {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(230, 126, 34, 0.2);
    border: 2px solid var(--accent-color);
    border-radius: 15px;
    padding: 1rem;
    min-width: 300px;
    pointer-events: all;
    z-index: 20;
}

#current-player .player-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    color: white;
}

#current-player .player-name {
    font-weight: bold;
    font-size: 1.1rem;
}

#current-player .player-cards {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 1rem;
}

#current-player .player-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.player-actions button {
    padding: 10px 15px;
    background: var(--accent-color);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s;
    pointer-events: all;
}

.player-actions button:hover:not(:disabled) {
    background: var(--accent-hover);
}

.player-actions button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

#knock-btn {
    background: var(--primary-red);
}

#knock-btn:hover:not(:disabled) {
    background: var(--primary-burgundy);
}

#knock-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Hide draw buttons since card piles are now clickable */
#draw-deck-btn,
#draw-discard-btn {
    display: none;
}

/* Other Players - positioned around edges */
.other-player {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 0.8rem;
    min-width: 140px;
    text-align: center;
    pointer-events: all;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.other-player.turn-highlight {
    background: rgba(230, 126, 34, 0.3);
    border: 2px solid var(--accent-color);
    box-shadow: 0 0 15px var(--card-shadow);
}

.other-player .player-name {
    font-weight: bold;
    color: white;
    margin-bottom: 0.8rem;
    font-size: 0.9rem;
}

.other-player .player-cards {
    display: flex;
    gap: 3px;
    justify-content: center;
    margin-bottom: 0.8rem;
}

.other-player .card {
    width: 35px;
    height: 50px;
    font-size: 10px;
}

.other-player .card.back::before {
    display: none;
}

.other-player .card.back::after {
    width: 85%;
    height: 85%;
}

/* Position other players around the table */
.other-player:nth-child(1) {
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
}

.other-player:nth-child(2) {
    top: 20px;
    right: 20px;
}

.other-player:nth-child(3) {
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
}

.other-player:nth-child(4) {
    top: 50%;
    left: 20px;
    transform: translateY(-50%);
}

.other-player:nth-child(5) {
    bottom: 50%;
    left: 20px;
    transform: translateY(50%);
}

.other-player:nth-child(6) {
    bottom: 20px;
    right: 20px;
}

/* Lives display */
.lives {
    display: flex;
    gap: 5px;
    justify-content: center;
}

.life {
    font-size: 20px;
    color: var(--accent-color);
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.life.lost {
    color: var(--primary-red);
}

.life.cloud {
    color: #fff;
    text-shadow: 0 0 10px #fff;
}

/* Game Status */
.game-status {
    display: none;
}

/* Round Display */
.round-display {
    position: absolute;
    top: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
    z-index: 20;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
    
    .main-logo {
        max-width: 250px;
    }
    
    #landing-page h1 {
        font-size: 2rem;
    }
    
    .game-board {
        padding: 0.5rem;
    }
    
    .deck-area {
        gap: 1rem;
    }
    
    .card {
        width: 60px;
        height: 85px;
    }
    
    .player-actions {
        gap: 5px;
    }
    
    .player-actions button {
        padding: 8px 12px;
        font-size: 12px;
    }
}

/* Animations */
@keyframes cardDeal {
    from {
        transform: translateY(-100px) rotate(180deg);
        opacity: 0;
    }
    to {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }
}

.card.dealing {
    animation: cardDeal 0.5s ease-out;
}

@keyframes turnHighlight {
    0%, 100% { box-shadow: 0 0 0 2px transparent; }
    50% { box-shadow: 0 0 0 2px var(--accent-color); }
}

.player-section.turn-highlight {
    animation: turnHighlight 1s ease-in-out infinite;
}

/* Turn highlight for current player */
#current-player.turn-highlight {
    background: rgba(230, 126, 34, 0.3);
    border-color: var(--accent-color);
    box-shadow: 0 0 15px var(--card-shadow);
}

/* Toast Messages */
.toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 1rem 2rem;
    border-radius: 10px;
    z-index: 1000;
    font-size: 1.2rem;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.toast.show {
    opacity: 1;
}

/* Name Prompt Modal */
.name-prompt-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.name-prompt-modal.show {
    opacity: 1;
}

.name-prompt-modal .modal-content {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.name-prompt-modal .modal-content h3 {
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.name-prompt-modal .modal-content input {
    width: 100%;
    padding: 15px;
    margin-bottom: 1.5rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.name-prompt-modal .modal-content input:focus {
    outline: none;
    border-color: var(--accent-color);
}

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

.modal-buttons button {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}

#name-confirm-btn {
    background: var(--accent-color);
    color: white;
}

#name-confirm-btn:hover {
    background: var(--accent-hover);
}

#name-cancel-btn {
    background: #ccc;
    color: #333;
}

#name-cancel-btn:hover {
    background: #bbb;
}

/* Game Modal */
.game-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.game-modal.show {
    opacity: 1;
}

.modal-content {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.modal-content h2 {
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.modal-content h3 {
    color: #333;
    margin-bottom: 1rem;
}

.scores {
    background: #f5f5f5;
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
    text-align: left;
}

.score-line {
    padding: 0.5rem 0;
    border-bottom: 1px solid #ddd;
    font-weight: bold;
}

.score-line:last-child {
    border-bottom: none;
}

.lives-remaining {
    background: #e8f5e8;
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
    font-weight: bold;
}

.restart-btn {
    background: #4CAF50;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 1rem;
    transition: background 0.3s;
}

.restart-btn:hover {
    background: #45a049;
}