* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #1a2980, #26d0ce);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.game-container {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    max-width: 450px;
    width: 100%;
}

.header {
    background: linear-gradient(to right, #4A00E0, #8E2DE2);
    color: white;
    padding: 15px 20px;
    text-align: center;
}

.header h1 {
    font-family: 'Press Start 2P', cursive;
    font-size: 24px;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.score-container {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.score-box {
    background: rgba(0, 0, 0, 0.3);
    padding: 10px 20px;
    border-radius: 10px;
    min-width: 120px;
}

.score-label {
    display: block;
    font-size: 12px;
    opacity: 0.8;
    margin-bottom: 5px;
}

.score-value {
    font-size: 28px;
    font-weight: 900;
    font-family: 'Press Start 2P', cursive;
    color: #FFD700;
}

.game-area {
    position: relative;
    height: 600px;
}

canvas {
    display: block;
    background: linear-gradient(to bottom, #87CEEB 0%, #E0F7FA 100%);
    width: 100%;
    height: 100%;
}

.screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.screen-content {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    max-width: 350px;
    width: 90%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    color: white;
}

.screen-content h2 {
    font-family: 'Press Start 2P', cursive;
    font-size: 24px;
    margin-bottom: 20px;
    color: #FFD700;
}

.bird-demo {
    margin: 20px auto;
    width: 80px;
    height: 60px;
    background: #FFD700;
    border-radius: 30px;
    position: relative;
    border: 4px solid #FF8C00;
}

.bird-demo::before {
    content: '';
    position: absolute;
    right: -10px;
    top: 20px;
    width: 30px;
    height: 20px;
    background: #FF8C00;
    border-radius: 5px;
}

.bird-demo::after {
    content: '';
    position: absolute;
    left: 50px;
    top: 15px;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    border: 2px solid black;
}

.features {
    background: rgba(0, 0, 0, 0.2);
    padding: 15px;
    border-radius: 10px;
    margin: 20px 0;
    text-align: left;
}

.features p {
    margin: 10px 0;
    font-size: 14px;
}

.features i {
    color: #FFD700;
    margin-right: 10px;
}

.controls-info {
    background: rgba(0, 0, 0, 0.2);
    padding: 15px;
    border-radius: 10px;
    margin: 20px 0;
}

.controls-info h3 {
    font-family: 'Press Start 2P', cursive;
    font-size: 14px;
    margin-bottom: 15px;
    color: #FFD700;
}

.controls-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.control-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

.key {
    font-family: 'Press Start 2P', cursive;
    font-size: 12px;
    color: #FFD700;
}

.action {
    font-size: 12px;
    opacity: 0.9;
}

.btn-start,
.btn-restart {
    background: linear-gradient(to right, #00b09b, #96c93d);
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    margin: 20px 0;
    transition: transform 0.3s, box-shadow 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-start:hover,
.btn-restart:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.btn-restart {
    background: linear-gradient(to right, #FF416C, #FF4B2B);
}

.hint {
    font-size: 14px;
    opacity: 0.8;
    margin-top: 10px;
}

.game-over-title {
    color: #FF416C !important;
}

.final-score,
.final-high-score {
    margin: 20px 0;
    padding: 15px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
}

.final-score p,
.final-high-score p {
    font-size: 14px;
    opacity: 0.8;
}

.final-score h3,
.final-high-score h3 {
    font-size: 36px;
    font-family: 'Press Start 2P', cursive;
    color: #FFD700;
}

.share-buttons {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.share-buttons p {
    margin-bottom: 15px;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: white;
    font-size: 20px;
    text-decoration: none;
    transition: transform 0.3s;
}

.social-icon:hover {
    transform: translateY(-3px);
}

.twitter {
    background: #1DA1F2;
}

.linkedin {
    background: #0077B5;
}

.github {
    background: #333;
}

.game-info {
    position: absolute;
    bottom: 20px;
    left: 0;
    width: 100%;
    text-align: center;
    color: white;
    font-size: 14px;
    background: rgba(0, 0, 0, 0.5);
    padding: 10px;
    display: none;
}

.footer {
    background: #333;
    color: white;
    padding: 15px;
    text-align: center;
    font-size: 14px;
}

.footer a {
    color: #4A00E0;
    text-decoration: none;
    margin-left: 10px;
}

.footer a:hover {
    text-decoration: underline;
}

.instructions {
    margin-top: 10px;
    font-size: 12px;
    opacity: 0.8;
}

@media (max-width: 480px) {
    .header h1 {
        font-size: 18px;
    }
    .score-box {
        min-width: 100px;
        padding: 8px 15px;
    }
    .score-value {
        font-size: 22px;
    }
    .screen-content h2 {
        font-size: 18px;
    }
}