body {
    margin: 0;
    padding: 0;
    background: linear-gradient(to bottom, #1a1a2e, #16213e);
    min-height: 100vh;
    font-family: 'Comic Sans MS', 'Chalkboard SE', sans-serif;
    overflow: hidden;
    touch-action: manipulation;
    user-select: none;
    -webkit-user-select: none;
}

header {
    text-align: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.back-btn {
    background: white;
    padding: 10px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: bold;
    color: #d97706;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    transition: transform 0.2s;
    flex-shrink: 0;
}

.back-btn:hover, .back-btn:active {
    transform: scale(1.05);
}

h1 {
    color: #ffd700;
    font-size: 2.5rem;
    margin: 0;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
    flex: 1;
    text-align: center;
}

.score {
    color: white;
    font-size: 1.8rem;
    background: rgba(255, 215, 0, 0.2);
    padding: 10px 30px;
    border-radius: 30px;
    display: inline-block;
}

#score {
    color: #ffd700;
    font-weight: bold;
}

#game-area {
    position: relative;
    width: 100%;
    height: calc(100vh - 180px);
    overflow: hidden;
}

.instruction {
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.5rem;
    margin-top: 50px;
}

.star {
    position: absolute;
    font-size: 3.5rem;
    cursor: pointer;
    transition: transform 0.1s;
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.8));
    touch-action: manipulation;
}

.star-trail {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 40px;
    background: linear-gradient(to top, rgba(255, 215, 0, 0.6), transparent);
    border-radius: 3px;
    pointer-events: none;
    animation: trailGlow 0.8s ease-in-out infinite alternate;
}

@keyframes trailGlow {
    0% { opacity: 0.4; height: 30px; }
    100% { opacity: 0.9; height: 50px; }
}

.star:active {
    transform: scale(1.2);
}

#reset-btn {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 15px 40px;
    font-size: 1.5rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    font-family: inherit;
}

#reset-btn:active {
    transform: translateX(-50%) scale(0.95);
}

.fullscreen-btn {
    font-size: 1.5rem;
    background: rgba(255,255,255,0.8);
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    transition: transform 0.2s;
    flex-shrink: 0;
    text-decoration: none;
    color: inherit;
}
.fullscreen-btn:active {
    transform: scale(0.9);
}