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

:root {
    --primary: #F59E0B;
    --background: #F8FAFC;
    --surface: #FFF;
    --text: #1E293B;
    --success: #10B981;
}

body {
    font-family: 'Segoe UI', system-ui, sans-serif;
    background: linear-gradient(135deg, #F59E0B 0%, #DC2626 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

#game-container {
    width: 100%;
    max-width: 500px;
    background: var(--surface);
    border-radius: 24px;
    overflow: hidden;
}

#game-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: var(--background);
}

.game-title {
    font-weight: 700;
    font-size: 18px;
}

.stats {
    display: flex;
    gap: 24px;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-label {
    font-size: 11px;
    color: #64748B;
    text-transform: uppercase;
}

.stat-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
}

.icon-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: var(--surface);
    border-radius: 12px;
    font-size: 18px;
    cursor: pointer;
}

#game-area {
    padding: 16px;
}

.scene {
    position: relative;
    width: 100%;
    aspect-ratio: 4/3;
    background: linear-gradient(180deg, #87CEEB 0%, #90EE90 70%);
    border-radius: 16px;
    overflow: hidden;
}

.scene-item {
    position: absolute;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.2s;
    user-select: none;
}

.scene-item:hover {
    transform: scale(1.2);
}

.scene-item.found {
    animation: foundPop 0.5s forwards;
}

@keyframes foundPop {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.5);
    }

    100% {
        transform: scale(0);
        opacity: 0;
    }
}

.targets {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    margin-top: 12px;
    background: #FEF3C7;
    border-radius: 12px;
    font-size: 16px;
}

#target-list {
    display: flex;
    gap: 8px;
    font-size: 24px;
}

#target-list .target {
    opacity: 1;
    transition: all 0.2s;
}

#target-list .target.found {
    opacity: 0.3;
    text-decoration: line-through;
}

.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
}

.modal.hidden {
    display: none;
}

.modal-content {
    background: var(--surface);
    padding: 40px;
    border-radius: 24px;
    text-align: center;
    max-width: 400px;
    width: 90%;
}

.stars {
    font-size: 48px;
    margin-bottom: 16px;
}

.result-stats {
    display: flex;
    justify-content: center;
    margin: 24px 0;
}

.result-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary);
}

.result-label {
    font-size: 14px;
    color: #64748B;
}

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

.btn-primary {
    padding: 14px 28px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    background: linear-gradient(135deg, var(--primary) 0%, #DC2626 100%);
    color: white;
}

.btn-secondary {
    padding: 14px 28px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    border: 2px solid #E5E7EB;
    background: var(--background);
    color: var(--text);
}