@font-face {
    font-family: 'VikingBase';
    src: url('fonts/VikingBaseRegular.ttf') format('truetype');
}

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

body {
    font-family: 'VikingBase', Arial, sans-serif;
    overflow: hidden;
    height: 100vh;
    width: 100vw;
    background: #000;
}

.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
    z-index: -1;
}

.background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(139, 0, 0, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(178, 34, 34, 0.2) 0%, transparent 50%);
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 0.8; }
}

.container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    padding: 20px;
    color: #fff;
}

.header {
    margin-bottom: 40px;
    text-align: center;
}

.server-name {
    font-size: 72px;
    color: #ff4444;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.8);
    letter-spacing: 8px;
}

.icons-section {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 80px;
    margin-bottom: 60px;
}

.icon-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.icon {
    width: 120px;
    height: 120px;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
    transition: transform 0.3s ease;
}

.sword-icon {
    width: 180px;
    height: 180px;
    object-fit: contain;
    filter: drop-shadow(0 0 15px rgba(255, 68, 68, 0.5));
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
}

.icon-label {
    font-size: 24px;
    color: #ddd;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    letter-spacing: 2px;
}

.info-section {
    display: flex;
    gap: 60px;
    margin-bottom: 50px;
}

.info-box {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 68, 68, 0.5);
    padding: 15px 30px;
    border-radius: 10px;
    backdrop-filter: blur(10px);
    box-shadow: 0 0 20px rgba(255, 68, 68, 0.2);
}

.info-label {
    font-size: 20px;
    color: #ff4444;
    margin-right: 10px;
    text-shadow: 0 0 5px rgba(255, 68, 68, 0.5);
}

.info-value {
    font-size: 24px;
    color: #fff;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.loading-section {
    width: 80%;
    max-width: 800px;
    margin-bottom: 30px;
}

.loading-status {
    margin-bottom: 15px;
    text-align: center;
}

#loading-text {
    font-size: 22px;
    color: #ffd700;
    text-shadow: 
        0 0 5px rgba(255, 215, 0, 0.5),
        2px 2px 4px rgba(0, 0, 0, 0.8);
    letter-spacing: 1px;
}

.loading-bar-container {
    width: 100%;
    height: 40px;
    background: rgba(0, 0, 0, 0.5);
    border: 3px solid rgba(255, 68, 68, 0.6);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 
        0 0 20px rgba(255, 68, 68, 0.3),
        inset 0 2px 10px rgba(0, 0, 0, 0.8);
}

.loading-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, 
        #ff4444 0%, 
        #ff6666 50%, 
        #ff4444 100%);
    border-radius: 17px;
    transition: width 0.3s ease;
    box-shadow: 
        0 0 15px rgba(255, 68, 68, 0.8),
        inset 0 2px 5px rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.loading-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.3) 50%,
        transparent 100%);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.loading-percentage {
    margin-top: 10px;
    text-align: center;
}

#loading-percent {
    font-size: 28px;
    color: #fff;
    font-weight: bold;
    text-shadow: 
        0 0 5px rgba(255, 68, 68, 0.5),
        2px 2px 4px rgba(0, 0, 0, 0.8);
}

.footer {
    text-align: center;
    margin-top: 20px;
}

.footer p {
    font-size: 18px;
    color: #aaa;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    letter-spacing: 2px;
}

.anex-credit {
    position: fixed;
    bottom: 20px;
    left: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(0, 0, 0, 0.5);
    padding: 15px 20px;
    border-radius: 10px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
}

.anex-credit img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.3));
}

.anex-credit-text {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.anex-credit-text .thanks {
    font-size: 14px;
    color: #888;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.anex-credit-text .name {
    font-size: 18px;
    color: #fff;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.missing-map-help {
    position: fixed;
    top: 55%;
    left: 40px;
    transform: translateY(-50%);
    width: 450px;
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid rgba(255, 68, 68, 0.6);
    border-radius: 10px;
    padding: 15px;
    backdrop-filter: blur(10px);
    box-shadow: 0 0 20px rgba(255, 68, 68, 0.3);
}

.help-title {
    font-size: 24px;
    font-family: 'Times New Roman', Times, serif;
    color: #ff4444;
    text-align: center;
    margin-bottom: 12px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    letter-spacing: 2px;
    border-bottom: 2px solid rgba(255, 68, 68, 0.5);
    padding-bottom: 8px;
}

.help-suggestions {
    margin-bottom: 12px;
}

.suggestion {
    font-size: 14px;
    font-family: 'Times New Roman', Times, serif;
    color: #ffd700;
    line-height: 1.5;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    margin-bottom: 10px;
    padding: 8px 10px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 5px;
    border-left: 3px solid rgba(255, 68, 68, 0.5);
}

.suggestion strong {
    color: #ff4444;
    text-shadow: 0 0 5px rgba(255, 68, 68, 0.5);
}

.help-image {
    width: 100%;
    border-radius: 5px;
    border: 2px solid rgba(255, 68, 68, 0.3);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.server-rules {
    position: fixed;
    top: 55%;
    right: 40px;
    transform: translateY(-50%);
    width: 480px;
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid rgba(255, 68, 68, 0.6);
    border-radius: 10px;
    padding: 15px;
    backdrop-filter: blur(10px);
    box-shadow: 0 0 20px rgba(255, 68, 68, 0.3);
}

.rules-title {
    font-size: 24px;
    color: #ff4444;
    text-align: center;
    margin-bottom: 12px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    letter-spacing: 2px;
    border-bottom: 2px solid rgba(255, 68, 68, 0.5);
    padding-bottom: 8px;
}

.rules-list {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.rule-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 5px 10px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 5px;
    border-left: 3px solid rgba(255, 68, 68, 0.5);
}

.rule-number {
    color: #ff4444;
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 3px;
    text-shadow: 0 0 5px rgba(255, 68, 68, 0.5);
}

.rule-text {
    font-size: 14px;
    font-family: 'Times New Roman', Times, serif;
    color: #ffd700;
    line-height: 1.4;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

/* Responsive design */
@media (max-width: 1200px) {
    .server-name {
        font-size: 56px;
    }
    
    .icons-section {
        gap: 50px;
    }
    
    .icon {
        width: 100px;
        height: 100px;
    }
    
    .sword-icon {
        width: 150px;
        height: 150px;
    }
}

@media (max-width: 768px) {
    .server-name {
        font-size: 42px;
    }
    
    .icons-section {
        gap: 30px;
    }
    
    .icon {
        width: 80px;
        height: 80px;
    }
    
    .sword-icon {
        width: 120px;
        height: 120px;
    }
    
    .icon-label {
        font-size: 18px;
    }
    
    .info-section {
        flex-direction: column;
        gap: 20px;
    }
    
    .server-rules {
        position: static;
        width: 90%;
        max-height: none;
        margin: 20px auto;
    }
    
    .missing-map-help {
        position: static;
        width: 90%;
        margin: 20px auto;
    }
}
