* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    user-select: none;
    -webkit-user-select: none;
}

body, html {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: #1a1a2e;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #ffffff;
}

.game-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    max-width: 480px;
    margin: 0 auto;
}

/* En-tête (Score, Visites globales au milieu & Timer) */
.game-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background-color: #16213e;
    font-size: 0.95rem;
    font-weight: bold;
    border-bottom: 2px solid #0f3460;
}

.score-box {
    color: #f39c12;
    flex: 1;
    text-align: left;
}

.visitors-box {
    color: #00adb5;
    flex: 1.2;
    text-align: center;
    font-size: 0.85rem;
    background: #0f3460;
    padding: 5px 10px;
    border-radius: 15px;
    white-space: nowrap;
}

.timer-box {
    color: #e94560;
    flex: 1;
    text-align: right;
}

/* Zone principale de jeu */
.play-area {
    position: relative;
    flex: 1;
    background: radial-gradient(circle, #1f4068 0%, #162447 100%);
    overflow: hidden;
    touch-action: manipulation;
}

.star {
    position: absolute;
    width: 50px;
    height: 50px;
    font-size: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    animation: popIn 0.2s ease-out forwards;
    filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.6));
}

@keyframes popIn {
    0% { transform: scale(0); }
    80% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.sparkle {
    position: absolute;
    font-weight: bold;
    color: #2ecc71;
    font-size: 1.1rem;
    pointer-events: none;
    animation: floatUp 0.6s ease-out forwards;
}

@keyframes floatUp {
    0% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(-30px); opacity: 0; }
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(26, 26, 46, 0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    z-index: 10;
}

.overlay h1 {
    font-size: 2rem;
    margin-bottom: 10px;
    color: #f39c12;
}

.overlay p {
    font-size: 1rem;
    margin-bottom: 30px;
    color: #b2bec3;
    max-width: 280px;
}

.btn {
    background-color: #e94560;
    color: white;
    border: none;
    padding: 12px 35px;
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 30px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(233, 69, 96, 0.4);
    transition: transform 0.1s ease, background-color 0.2s;
}

.btn:active {
    transform: scale(0.95);
    background-color: #d63851;
}
