/* Galaxy Event Dialog Styles */
.galaxy-dialog-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.5s ease-out;
}

.galaxy-dialog-overlay.hidden {
    display: none;
}

.galaxy-dialog {
    background: linear-gradient(145deg, #ffffff, #f8f9ff);
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: slideUp 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.galaxy-dialog::-webkit-scrollbar {
    display: none;
}

.galaxy-dialog-header {
    background: linear-gradient(135deg, #c19a2e, #b8912a);
    color: white;
    padding: 30px;
    border-radius: 20px 20px 0 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.galaxy-dialog-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: rotate 10s linear infinite;
}

.galaxy-dialog-header h1 {
    font-size: 2.2em;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    position: relative;
    z-index: 1;
}

.galaxy-dialog-header .subtitle {
    font-size: 1.1em;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

.galaxy-dialog-content {
    padding: 30px;
}

.galaxy-event-info {
    background: linear-gradient(135deg, #2d3748, #1a202c);
    color: white;
    padding: 15px;
    border-radius: 15px;
    margin-bottom: 25px;
    text-align: center;
    box-shadow: 0 10px 20px rgba(45, 55, 72, 0.3);
}

.galaxy-countdown {
    font-size: 1.3em;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.galaxy-rules-section {
    margin-bottom: 25px;
}

.galaxy-rules-title {
    font-size: 1.3em;
    color: #2d3436;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.galaxy-rules-title::before {
    content: '📝';
    font-size: 1.2em;
}

.galaxy-rule-item {
    background: #f8f9ff;
    color: #000;
    border-left: 4px solid #c19a2e;
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 0 10px 10px 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.galaxy-rule-item:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(193, 154, 46, 0.2);
}
.galaxy-rule-item span{
    display: block;
    font-size: 0.8em;
    color: #636e72;
    margin-top: 5px;
}

a{
    color: #c19a2e;
    text-decoration: none;
    font-weight: bold;
}

.galaxy-prizes-section {
    background: linear-gradient(135deg, #fff8e1, #ffecb3);
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 25px;
}

.galaxy-prizes-title {
    font-size: 1.4em;
    color: #c19a2e;
    margin-bottom: 15px;
    text-align: center;
    font-weight: bold;
}

.galaxy-prize-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: white;
    margin-bottom: 8px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.galaxy-prize-item:hover {
    transform: scale(1.02);
}

.galaxy-prize-rank {
    font-weight: bold;
    color: #2d3436;
}

.galaxy-prize-amount {
    color: #c19a2e;
    font-weight: bold;
    font-size: 1.1em;
}

.galaxy-hashtags {
    background: #2d3748;
    color: white;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    margin-bottom: 20px;
    font-family: monospace;
    font-size: 1.1em;
    letter-spacing: 1px;
}

.galaxy-hashtags span {
    color: #c19a2e;
    margin: 0 5px;
}

.galaxy-special-bonus {
    background: linear-gradient(135deg, #c19a2e, #b8912a);
    color: white;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
    animation: pulse 2s infinite;
}

.galaxy-announcement-section {
    background: linear-gradient(135deg, #e6f0fa, #ffffff);
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 25px;
    text-align: center;
    box-shadow: 0 10px 20px rgba(45, 55, 72, 0.2);
}

.galaxy-announcement-title {
    font-size: 1.3em;
    color: #2d3436;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.galaxy-announcement-title::before {
    content: '📢';
    font-size: 1.2em;
}

.galaxy-announcement-text {
    font-size: 1em;
    color: #2d3436;
    line-height: 1.5;
}

.galaxy-dialog-footer {
    background: #f8f9ff;
    padding: 20px 30px;
    border-radius: 0 0 20px 20px;
    display: flex;
    gap: 15px;
    justify-content: center;
}

.galaxy-btn {
    padding: 12px 25px;
    border: none;
    border-radius: 25px;
    font-size: 1em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}



.galaxy-btn-secondary {
    background: #ddd;
    color: #636e72;
}

.galaxy-btn-secondary:hover {
    background: #bbb;
    transform: translateY(-2px);
}

.galaxy-close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    background: rgba(0, 0, 0, 0.7);
    border: none;
    color: rgb(252, 252, 252);
    font-size: 1.5em;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 2;
}

.galaxy-close-btn:hover {
    background: rgba(255,255,255,0.3);
    transform: rotate(90deg);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

@keyframes slideUp {
    from { 
        opacity: 0;
        transform: translateY(50px) scale(0.9);
    }
    to { 
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@media (max-width: 768px) {
    .galaxy-dialog {
        margin: 10px;
        max-width: calc(80% - 20px);
        max-height: 95vh;
    }
    
    .galaxy-dialog-header {
        padding: 20px 15px;
    }
    
    .galaxy-dialog-header h1 {
        font-size: 1.6em;
        margin-bottom: 8px;
    }
    
    .galaxy-dialog-header .subtitle {
        font-size: 0.95em;
    }
    
    .galaxy-dialog-content {
        padding: 15px;
    }
    
    .galaxy-countdown {
        font-size: 1.1em;
    }
    
    .galaxy-event-info {
        padding: 15px;
        margin-bottom: 20px;
    }
    
    .galaxy-prizes-section, .galaxy-rules-section, .galaxy-announcement-section {
        margin-bottom: 20px;
        padding: 15px;
    }
    
    .galaxy-prizes-title, .galaxy-rules-title, .galaxy-announcement-title {
        font-size: 1.2em;
        margin-bottom: 12px;
    }
    
    .galaxy-prize-item, .galaxy-rule-item, .galaxy-announcement-text {
        padding: 12px;
        margin-bottom: 8px;
        font-size: 0.9em;
    }
    
    .galaxy-hashtags {
        padding: 12px;
        font-size: 0.95em;
        margin-bottom: 15px;
    }
    
    .galaxy-special-bonus {
        padding: 12px;
        margin-bottom: 15px;
        font-size: 0.9em;
    }
    
    .galaxy-dialog-footer {
        padding: 15px;
        flex-direction: column;
        gap: 10px;
    }
    
    .galaxy-btn {
        padding: 12px 20px;
        font-size: 0.95em;
        width: 100%;
    }
    
    .galaxy-close-btn {
        top: 10px;
        right: 15px;
        width: 30px;
        height: 30px;
        font-size: 1.3em;
    }
}

@media (max-width: 480px) {
    .galaxy-dialog {
        margin: 5px;
        max-width: calc(80% - 10px);
        max-height: 90vh;
    }
    
    .galaxy-dialog-header {
        padding: 15px 10px;
    }
    
    .galaxy-dialog-header h1 {
        font-size: 1.4em;
        line-height: 1.2;
    }
    
    .galaxy-dialog-content {
        padding: 10px;
    }
    
    .galaxy-countdown {
        font-size: 1em;
        line-height: 1.3;
    }
    
    .galaxy-event-info, .galaxy-prizes-section, .galaxy-rules-section, .galaxy-announcement-section {
        padding: 12px;
        margin-bottom: 15px;
    }
    
    .galaxy-prizes-title, .galaxy-rules-title, .galaxy-announcement-title {
        font-size: 1.1em;
    }
    
    .galaxy-prize-item, .galaxy-rule-item, .galaxy-announcement-text {
        padding: 10px;
        font-size: 0.85em;
        line-height: 1.4;
    }
    
    .galaxy-prize-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .galaxy-hashtags {
        padding: 10px;
        font-size: 0.9em;
        line-height: 1.4;
    }
    
    .galaxy-special-bonus {
        padding: 10px;
        font-size: 0.85em;
        line-height: 1.4;
    }
    
    .galaxy-dialog-footer {
        padding: 12px;
    }
    
    .galaxy-btn {
        padding: 10px 15px;
        font-size: 0.9em;
    }
}
