* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background: #000000;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.container {
    max-width: 400px;
    width: 100%;
}

header {
    text-align: center;
    margin-bottom: 30px;
    color: white;
}

header h1 {
    font-size: 32px;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.remaining-count {
    font-size: 18px;
    font-weight: bold;
    background: rgba(255,255,255,0.2);
    padding: 8px 16px;
    border-radius: 20px;
    display: inline-block;
}

.button-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 30px;
}

.dart-btn {
    aspect-ratio: 1;
    background: linear-gradient(145deg, #ffffff, #e6e6e6);
    border: none;
    border-radius: 12px;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.dart-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.dart-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.dart-btn.opened {
    background: linear-gradient(145deg, #a0a0a0, #808080);
    cursor: not-allowed;
    opacity: 0.5;
}

.dart-btn.opened:hover {
    transform: none;
}

/* 뽑은 아이템 리스트 */
.rewards-list {
    background: rgba(255,255,255,0.1);
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 12px;
    padding: 15px;
    margin-top: 20px;
    color: white;
}

.rewards-list h3 {
    font-size: 18px;
    margin-bottom: 10px;
    text-align: center;
}

.rewards-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.reward-item {
    background: rgba(255,255,255,0.05);
    padding: 10px;
    border-radius: 8px;
    font-size: 16px;
    text-align: center;
}



/* 모달 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    justify-content: center;
    align-items: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

.modal.active {
    display: flex;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-content {
    background: white;
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    position: relative;
    max-width: 90%;
    width: 350px;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.particle-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    border-radius: 20px;
}

.particle {
    position: absolute;
    width: 10px;
    height: 10px;
    background: #667eea;
    border-radius: 50%;
    animation: float 1.5s ease-out forwards;
}

@keyframes float {
    0% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
    100% {
        transform: translateY(-200px) scale(0);
        opacity: 0;
    }
}

.result-text {
    font-size: 28px;
    font-weight: bold;
    color: #667eea;
    margin-bottom: 30px;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-btn {
    padding: 12px 40px;
    background: #667eea;
    border: none;
    border-radius: 25px;
    color: white;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background: #5568d3;
    transform: scale(1.05);
}

/* 작은 화면 대응 */
@media (max-width: 360px) {
    .button-grid {
        gap: 8px;
    }
    
    header h1 {
        font-size: 28px;
    }
    
    .dart-btn {
        font-size: 20px;
    }
}
