/* ========================================
   PUFF DASH - GRADIENT/NEON GAME STYLES
   ======================================== */

/* Game Page Layout */
.game-page-wrapper {
    background: linear-gradient(135deg, #0f3460 0%, #16213e 50%, #1a1a2e 100%);
    padding: 80px 20px 20px;
}

.game-container {
    max-width: 600px;
    margin: 0 auto;
}

/* Game Header */
.game-header {
    text-align: center;
    margin-bottom: 15px;
}

.game-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: #ffffff;
    margin-bottom: 5px;
    text-shadow: 0 0 20px rgba(0, 255, 245, 0.6),
                 0 0 40px rgba(0, 255, 245, 0.3);
}

.game-subtitle {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Game Container */
#game-container-inner {
    position: relative;
    text-align: center;
}

/* Sound Toggle Button */
#sound-toggle {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
    padding: 8px 16px;
    background: rgba(44, 36, 22, 0.8);
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

#sound-toggle:hover {
    background: rgba(44, 36, 22, 0.95);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

/* Canvas Styling */
#gameCanvas {
    display: block;
    margin: 10px auto;
    border: 3px solid rgba(0, 255, 245, 0.4);
    border-radius: 8px;
    box-shadow: 0 0 30px rgba(0, 255, 245, 0.3),
                0 0 60px rgba(0, 255, 245, 0.1);
    background: #0f3460;
    max-width: 100%;
    height: auto;
}

/* Game Description */
#game-description {
    margin-top: 10px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.4;
}

/* Player Section */
.player-section {
    margin-top: 15px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

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

#greeting-text {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: #ffffff;
    text-shadow: 0 0 10px rgba(0, 255, 245, 0.4);
}

.name-editor {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.name-editor.hidden {
    display: none;
}

#player-name-input {
    padding: 10px 15px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-family: var(--font-body);
    font-size: 1rem;
    min-width: 200px;
}

#player-name-input:focus {
    outline: none;
    border-color: rgba(0, 255, 245, 0.6);
    box-shadow: 0 0 10px rgba(0, 255, 245, 0.3);
}

#player-name-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

/* Buttons */
.btn-primary,
.btn-secondary {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #D4A574 0%, #A67C52 100%);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(212, 165, 116, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 165, 116, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.5);
}

.btn-small {
    padding: 8px 16px;
    font-size: 0.9rem;
}

/* Footer on game pages */
.footer {
    background: rgba(0, 0, 0, 0.3);
    margin-top: 60px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .game-title {
        font-size: 2.2rem;
    }

    #gameCanvas {
        width: 100%;
        height: auto;
    }

    .player-greeting {
        flex-direction: column;
        gap: 10px;
    }

    #greeting-text {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .game-page-wrapper {
        padding: 80px 10px 20px;
    }

    .game-title {
        font-size: 1.8rem;
    }

    #sound-toggle {
        font-size: 0.8rem;
        padding: 6px 12px;
    }
}
