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

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

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

#game-container {
    width: 100%;
    max-width: 450px;
    background: var(--surface);
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    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: 24px;
}

.target {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 24px;
    padding: 16px;
    background: #ECFEFF;
    border-radius: 16px;
}

.target span {
    font-size: 18px;
    color: var(--text);
}

.shape-name {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary);
}

.shapes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.shape {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface);
    border: 4px solid #E5E7EB;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.2s;
}

.shape:hover {
    border-color: var(--primary);
    transform: scale(1.05);
}

.shape.correct {
    border-color: var(--success);
    background: #D1FAE5;
}

.shape.wrong {
    border-color: #EF4444;
    background: #FEE2E2;
}

.shape svg {
    width: 60px;
    height: 60px;
}

.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%, #8B5CF6 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);
}