* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #000000;
    color: #E7E7E7;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
}

.background-pattern {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('back.svg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.1;
    z-index: -1;
}

.container {
    width: 100%;
    max-width: 600px;
    padding: 20px;
    position: relative;
}

.screen {
    display: none;
    animation: fadeIn 0.4s ease-in-out;
}

.screen.active {
    display: flex;
    flex-direction: column;
    align-items: center;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Landing Screen */
.logo {
    width: 120px;
    height: 120px;
    margin-bottom: 32px;
    filter: drop-shadow(0 0 20px rgba(64, 255, 175, 0.3));
}

.logo-small {
    width: 80px;
    height: 80px;
    margin-bottom: 24px;
    filter: drop-shadow(0 0 15px rgba(64, 255, 175, 0.3));
}

.title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 24px;
    text-align: center;
    background: linear-gradient(135deg, #E7E7E7 0%, #40FFAF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.description {
    font-size: 16px;
    line-height: 1.6;
    text-align: center;
    margin-bottom: 40px;
    max-width: 400px;
    color: #B0B0B0;
}

/* Buttons */
.btn-primary,
.btn-secondary {
    padding: 16px 48px;
    font-size: 18px;
    font-weight: 600;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
}

.btn-primary {
    background: #40FFAF;
    color: #000000;
    box-shadow: 0 0 20px rgba(64, 255, 175, 0.4);
}

.btn-primary:hover {
    background: #33E69A;
    box-shadow: 0 0 30px rgba(64, 255, 175, 0.6);
    transform: translateY(-2px);
}

.btn-primary:focus {
    outline: 2px solid #40FFAF;
    outline-offset: 4px;
}

.btn-secondary {
    background: transparent;
    color: #E7E7E7;
    border: 2px solid #40FFAF;
}

.btn-secondary:hover {
    background: rgba(64, 255, 175, 0.1);
    transform: translateY(-2px);
}

.btn-secondary:focus {
    outline: 2px solid #40FFAF;
    outline-offset: 4px;
}

/* Game Screen */
.progress-bar {
    width: 100%;
    display: flex;
    justify-content: space-between;
    margin-bottom: 32px;
    padding: 16px 24px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

#progress-text,
#score-text {
    font-size: 16px;
    font-weight: 600;
    color: #40FFAF;
}

.question-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.pfp-container {
    position: relative;
    width: 200px;
    height: 200px;
    margin-bottom: 32px;
}

.pfp {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #40FFAF;
    box-shadow: 0 0 30px rgba(64, 255, 175, 0.4);
    display: block;
}

.pfp-placeholder {
    display: none;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 4px solid #40FFAF;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 14px;
    color: #B0B0B0;
    padding: 20px;
}

.pfp-placeholder.active {
    display: flex;
}

.question-title {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 32px;
    text-align: center;
}

.answers-grid {
    width: 100%;
    display: grid;
    gap: 12px;
}

.answer-btn {
    padding: 16px 20px;
    font-size: 15px;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.05);
    color: #E7E7E7;
    border: 2px solid rgba(64, 255, 175, 0.3);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    outline: none;
    word-wrap: break-word;
}

.answer-btn:hover:not(.correct):not(.incorrect):not(:disabled) {
    background: rgba(64, 255, 175, 0.1);
    border-color: #40FFAF;
    transform: translateX(4px);
}

.answer-btn:focus {
    outline: 2px solid #40FFAF;
    outline-offset: 4px;
}

.answer-btn.correct {
    background: rgba(64, 255, 175, 0.2);
    border-color: #40FFAF;
    color: #40FFAF;
    animation: pulse 0.5s ease;
}

.answer-btn.incorrect {
    background: rgba(255, 80, 80, 0.2);
    border-color: #FF5050;
    color: #FF5050;
}

.answer-btn:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.02);
    }
}

/* Results Screen */
.results-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 24px;
    text-align: center;
}

.cat-image {
    width: 300px;
    height: 300px;
    object-fit: contain;
    margin-bottom: 24px;
    border-radius: 16px;
}

.score-display {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 24px;
}

.score-number {
    font-size: 72px;
    font-weight: 700;
    color: #40FFAF;
    text-shadow: 0 0 30px rgba(64, 255, 175, 0.5);
}

.score-total {
    font-size: 36px;
    font-weight: 600;
    color: #B0B0B0;
}

.results-message {
    font-size: 18px;
    text-align: center;
    margin-bottom: 40px;
    color: #B0B0B0;
    max-width: 400px;
}

.results-buttons {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    max-width: 300px;
}

/* Footer Credit */
.footer-credit {
    position: fixed;
    bottom: 16px;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 12px;
    color: #E7E7E7;
    opacity: 0.5;
    z-index: 1000;
    transition: opacity 0.3s ease;
}

.footer-credit:hover {
    opacity: 0.8;
}

.footer-credit a {
    color: #40FFAF;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-credit a:hover {
    color: #33E69A;
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 600px) {
    .title {
        font-size: 36px;
    }

    .pfp-container {
        width: 160px;
        height: 160px;
    }

    .question-title {
        font-size: 24px;
    }

    .answer-btn {
        font-size: 14px;
        padding: 14px 16px;
    }

    .score-number {
        font-size: 56px;
    }

    .score-total {
        font-size: 28px;
    }

    .progress-bar {
        padding: 12px 16px;
    }

    #progress-text,
    #score-text {
        font-size: 14px;
    }
}

@media (max-width: 400px) {
    .container {
        padding: 16px;
    }

    .title {
        font-size: 28px;
    }

    .pfp-container {
        width: 140px;
        height: 140px;
    }

    .btn-primary,
    .btn-secondary {
        padding: 14px 32px;
        font-size: 16px;
    }
}