body {
    font-family: 'Inter', sans-serif;
    background-color: #FDFCF7;
    margin: 0;
    padding: 20px;
    display: flex;
    justify-content: center;
    min-height: 100vh;
    box-sizing: border-box;
}

.container {
    width: 100%;
    max-width: 380px;   /* FIXED */
    text-align: center;
    margin: auto;
}


header {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 10;
}

.mascot {
    width: 90px;
    transition: transform 0.3s ease;
}

.header-mascot-link:hover .mascot {
    transform: scale(1.15) rotate(-10deg);
}

.top-right-controls {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10;
}

.reload-btn {
    background: none;
    border: none;
    cursor: pointer;
}

.reload-btn img {
    width: 24px;
    height: 24px;
}

h1 {
    font-size: 48px;
    margin: 0;
    font-weight: 700;
    color: #000;
}

p {
    color: #888;
    margin-bottom: 20px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 20px;
    font-size: 16px;
}

.image-container {
    margin-bottom: 20px;
}

#game-image {
    width: 100%;
    border-radius: 10px;
    border: 1px solid #ddd;
    padding: 4px;
    background-color: #fff;
}

.game-controls {
    background-color: #f0f0f0;
    border-radius: 15px;
    padding: 10px;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

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

.btn {
    padding: 15px 0;
    width: 120px;
    border-radius: 12px;
    border: 2px solid #000;
    font-size: 24px;
    cursor: pointer;
    font-weight: bold;
    box-shadow: 0 3px 0px rgba(0, 0, 0, 1);
    transition: all 0.1s ease-in-out;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 0px rgba(0, 0, 0, 1);
}

.btn:active {
    transform: translateY(2px);
    box-shadow: 0 1px 0px rgba(0, 0, 0, 1);
}

.real-btn {
    background-color: #fff;
    color: #000;
}

.ai-btn {
    background-color: #FDD835;
    color: #000;
}

.progress-container {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}

.progress {
    background-color: #F9A825;
    color: #000;
    border-radius: 20px;
    padding: 8px 20px;
    display: inline-block;
    border: 2px solid #000;
    font-weight: bold;
}

.feedback-container {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.feedback-message {
    padding: 15px 20px;
    border-radius: 12px;
    border: 2px solid #000;
    font-size: 24px;
    font-weight: bold;
    box-shadow: 0 3px 0px rgba(0, 0, 0, 1);
    width: 260px; /* Match button width */
    box-sizing: border-box;
}

.feedback-message.correct {
    background-color: #FDD835; /* Yellow theme */
    color: #000;
}

.feedback-message.incorrect {
    background-color: #EF5350; /* Red theme */
    color: #fff;
}

.next-btn {
    background-color: #F9A825; /* Yellow theme for next button */
    color: #000;
    padding: 12px 25px;
    width: auto;
    font-size: 20px;
    border-radius: 10px;
    border: 2px solid #000;
    font-weight: bold;
    box-shadow: 0 3px 0px rgba(0, 0, 0, 1);
    transition: all 0.1s ease-in-out;
}

.next-btn:active {
    transform: translateY(2px);
    box-shadow: 0 1px 0px rgba(0, 0, 0, 1);
}

.hidden {
    display: none !important;
}

.info-icon-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

#info-icon {
    width: 50px;
    height: 50px;
    cursor: pointer;
    transition: transform 0.2s;
    object-fit: cover;
}

#info-icon:hover {
    transform: scale(1.1);
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }

    .container {
        max-width: 100%;
    }

    h1 {
        font-size: 36px;
    }

    p {
        font-size: 14px;
    }

    .btn {
        width: 100px;
        font-size: 18px;
        padding: 12px 0;
    }

    .mascot {
        width: 60px;
    }

    .top-right-controls {
        top: 10px;
        right: 10px;
    }

    .info-icon-container {
        bottom: 10px;
        right: 10px;
    }

    #info-icon {
        width: 40px;
        height: 40px;
    }

    .score-screen h2 {
        font-size: 32px;
    }

    .score-screen p {
        font-size: 16px;
    }

    .play-again-btn {
    background-color: #FDD835;
    color: #000;
    padding: 15px 40px;
    font-size: 1.6rem;
    border-radius: 16px;
    border: 3px solid #000;
    font-weight: 900;
    box-shadow: 0 8px 0px rgba(0, 0, 0, 1);
    transition: all 0.1s ease-in-out;
    cursor: pointer;

    display: inline-flex;       /* <— FIX 1 */
    align-items: center;        /* <— vertically centers text */
    justify-content: center;    /* <— centers text horizontally */
    width: auto;                /* <— FIX 2: button expands */
    white-space: nowrap;        /* prevent wrapping */
}
}

.score-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;

    width: 100%;          /* keep this */
    max-width: none !important;  /* FIXED */

    margin: auto;
    padding: 40px 20px;
    background: transparent;
    text-align: center;
    white-space: nowrap;
}

.score-screen h1 {
    white-space: nowrap;  /* NEW */
    font-size: 4.2rem !important;
    font-weight: 900 !important;
    margin: 0;
    letter-spacing: 1px;
    color: #000;
}

.final-score-text {
    font-size: 20px;
    color: #000;
    font-weight: 700;
    margin: 0;
    white-space: nowrap;  /* already good */
    display: inline-block; /* NEW — FIXES WRAP */
}

.score-highlight {
    font-size: 22px;
}

.score-highlight.high-score {
    color: #4CAF50; /* Green for scores > 7 */
}

.score-highlight.medium-score {
    color: #FF9800; /* Orange for scores 3-7 */
}

.score-highlight.low-score {
    color: #F44336; /* Red for scores < 3 */
}

.play-again-btn {
    background-color: #FDD835;
    color: #000;
    padding: 15px 40px;
    font-size: 1.6rem;
    border-radius: 16px;
    border: 3px solid #000;
    font-weight: 900;
    box-shadow: 0 6px 0px rgba(0, 0, 0, 1);
    transition: all 0.1s ease-in-out;
    cursor: pointer;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
}

#tweet-score-btn {
    background: #ffffff;
    color: #000000;
    border: 2px solid #000000;
    border-radius: 10px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 3px 3px 0px #000000;
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
    display: inline-block;
    font-size: 1.2rem;
}

#tweet-score-btn:hover {
    transform: translateY(-3px);
    box-shadow: 6px 6px 0px #000000;
}

#tweet-score-btn .icon {
    margin-right: 0.5rem;
    width: 20px;
    height: 20px;
    vertical-align: middle;
    display: inline-block;
    border: none;
    background-color: transparent;
}

.play-again-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 0px rgba(0, 0, 0, 1);
}

.play-again-btn:active {
    transform: translateY(2px);
    box-shadow: 0 4px 0px rgba(0, 0, 0, 1);
}
