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

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #8B0000 0%, #DC143C 50%, #8B0000 100%);
    min-height: 100vh;
    color: #fff;
    overflow-x: hidden;
    position: relative;
}

/* Video Background */
.video-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    opacity: 1;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(139, 0, 0, 0.2) 0%, rgba(220, 20, 60, 0.2) 50%, rgba(139, 0, 0, 0.2) 100%);
    z-index: -1;
}

/* Header */
.header {
    background: rgba(0, 0, 0, 0.3);
    padding: 15px 30px;
    backdrop-filter: blur(10px);
    border-bottom: 2px solid #FFD700;
    position: relative;
    z-index: 10;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-image {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.nav-menu {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
}

.nav-link {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
    padding: 5px 10px;
}

.nav-link:hover {
    color: #FFD700;
}

.login-btn {
    background: #FF6600;
    color: #fff;
    border: none;
    padding: 10px 25px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}

.login-btn:hover {
    background: #FF8800;
}

/* Main Container */
.main-container {
    display: flex;
    max-width: 1400px;
    margin: 20px auto;
    gap: 20px;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

/* Sidebar */
.sidebar {
    width: 280px;
    background: linear-gradient(180deg, #8B0000 0%, #A52A2A 100%);
    border: 3px solid #FFD700;
    border-radius: 15px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.sidebar-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sidebar-label {
    font-size: 14px;
    font-weight: bold;
    color: #FFD700;
}

.participant-count {
    background: #8B0000;
    border: 2px solid #FFD700;
    border-radius: 5px;
    padding: 15px;
    color: #FFD700;
    font-size: 24px;
    font-weight: bold;
    text-align: center;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-btn {
    background: #8B0000;
    border: 2px solid #FFD700;
    border-radius: 8px;
    padding: 15px;
    color: #fff;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s;
}

.sidebar-btn:hover {
    background: #A52A2A;
    transform: translateX(5px);
}

.arrow {
    font-size: 20px;
    color: #FFD700;
}

/* Main Content */
.main-content {
    flex: 1;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 20px;
    padding: 30px;
    position: relative;
    overflow: hidden;
}

.main-content::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

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

.event-banner {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
}

.event-logo {
    max-width: 300px;
    width: 100%;
    height: auto;
    margin: 0 auto 10px;
    display: block;
    filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.5));
}

.event-slogan {
    font-size: 24px;
    color: #FFD700;
    margin-bottom: 30px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.countdown-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 15px;
}

.countdown-item {
    position: relative;
    border-radius: 50%;
    width: 80px;
    height: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.6), inset 0 0 20px rgba(255, 215, 0, 0.2);
    overflow: hidden;
}

.countdown-svg-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.countdown-value {
    font-size: 24px;
    font-weight: bold;
    color: #FFD700;
    position: relative;
    z-index: 1;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8), 0 0 10px rgba(255, 215, 0, 0.5);
}

.countdown-label {
    font-size: 10px;
    color: #fff;
    margin-top: 3px;
    position: relative;
    z-index: 1;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
}

/* Input Form */
.input-form-container {
    max-width: 500px;
    margin: 20px auto;
    position: relative;
    z-index: 1;
}

.input-form {
    background: linear-gradient(180deg, rgba(139, 0, 0, 0.9) 0%, rgba(220, 20, 60, 0.9) 100%);
    border: 3px solid #FFD700;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 0 40px rgba(255, 215, 0, 0.6);
    backdrop-filter: blur(10px);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    color: #FFD700;
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.form-input {
    width: 100%;
    padding: 15px 20px;
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid #FFD700;
    border-radius: 10px;
    color: #fff;
    font-size: 16px;
    transition: all 0.3s;
    box-sizing: border-box;
}

.form-input:focus {
    outline: none;
    border-color: #FFA500;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
    background: rgba(0, 0, 0, 0.7);
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.cf-turnstile {
    display: flex;
    justify-content: center;
    margin: 10px 0;
}

.cf-turnstile iframe {
    border-radius: 8px;
}

.submit-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    border: 2px solid #FFD700;
    border-radius: 10px;
    color: #8B0000;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
}

.submit-btn:hover {
    background: linear-gradient(135deg, #FFA500 0%, #FFD700 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.6);
}

.submit-btn:active {
    transform: translateY(0);
}

/* Cultural Elements */
.cultural-elements {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    position: relative;
    z-index: 1;
}

.cultural-item {
    font-size: 40px;
    animation: float 3s ease-in-out infinite;
}

.cultural-item:nth-child(2) {
    animation-delay: 0.5s;
}

.cultural-item:nth-child(3) {
    animation-delay: 1s;
}

.cultural-item:nth-child(4) {
    animation-delay: 1.5s;
}

.cultural-item:nth-child(5) {
    animation-delay: 2s;
}

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

/* Horse Decoration */
.horse-decoration {
    position: fixed;
    bottom: 0;
    left: 0;
    z-index: 50;
    pointer-events: none;
}

.horse-image {
    width: 420px;
    height: auto;
    max-width: 42vw;
    filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.5));
    animation: horseFloat 3s ease-in-out infinite;
    object-fit: contain;
    transform: translateY(20px);
}

@keyframes horseFloat {
    0%, 100% { transform: translateY(20px) rotate(0deg); }
    50% { transform: translateY(10px) rotate(2deg); }
}

/* Bottom Navigation */
.bottom-nav {
    display: flex;
    justify-content: center;
    gap: 15px;
    padding: 20px;

    position: sticky;
    bottom: 0;
    z-index: 100;
}

.nav-diamond {
    background: url('img/nenchu.png') center/cover no-repeat;
    border: 2px solid #FFD700;
    color: #fff;
    padding: 0;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transform: rotate(-45deg);
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    position: relative;
    text-decoration: none;
    text-align: center;
}

.nav-diamond span {
    transform: rotate(45deg);
    display: block;
    text-align: center;
    width: 100%;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8), 0 0 10px rgba(0, 0, 0, 0.5);
}

.nav-diamond:hover {
    background: url('img/nenchu.png') center/cover no-repeat;
    transform: rotate(-45deg) scale(1.1);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.8);
    filter: brightness(1.2);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: linear-gradient(180deg, rgba(139, 0, 0, 0.95) 0%, rgba(220, 20, 60, 0.95) 100%);
    border: 3px solid #FFD700;
    border-radius: 20px;
    padding: 0;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 0 50px rgba(255, 215, 0, 0.8);
    animation: slideDown 0.3s;
    position: relative;
}

.modal-header {
    background: linear-gradient(90deg, #8B0000 0%, #DC143C 100%);
    border-bottom: 2px solid #FFD700;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 17px 17px 0 0;
}

.modal-header h2 {
    color: #FFD700;
    font-size: 24px;
    font-weight: bold;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.modal-close {
    color: #FFD700;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    transition: all 0.3s;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.3);
}

.modal-close:hover {
    background: rgba(255, 215, 0, 0.3);
    transform: rotate(90deg);
}

.modal-body {
    padding: 30px;
    color: #fff;
    line-height: 1.8;
}

.modal-body p {
    margin-bottom: 15px;
    font-size: 16px;
}

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

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Notification Popup */
.notification-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.3s;
}

.notification-popup.show {
    display: flex;
}

.notification-content {
    background: linear-gradient(180deg, rgba(139, 0, 0, 0.95) 0%, rgba(220, 20, 60, 0.95) 100%);
    border: 3px solid #FFD700;
    border-radius: 15px;
    padding: 25px;
    max-width: 90%;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 0 50px rgba(255, 215, 0, 0.8);
    animation: slideDown 0.3s;
    text-align: center;
}

.notification-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #8B0000;
    font-size: 36px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.6);
    transition: all 0.3s;
}

.notification-icon.success-icon {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: #fff;
    box-shadow: 0 0 20px rgba(40, 167, 69, 0.6);
}

.notification-icon.error-icon {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #8B0000;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.6);
}

.notification-message {
    color: #fff;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
}

.notification-btn {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    border: 2px solid #FFD700;
    border-radius: 10px;
    padding: 12px 30px;
    color: #8B0000;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
    width: 100%;
}

.notification-btn:hover {
    background: linear-gradient(135deg, #FFA500 0%, #FFD700 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.6);
}

.notification-btn:active {
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    .main-container {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
    }
    
    .input-form-container {
        max-width: 90%;
        margin: 30px auto;
    }
    
    .input-form {
        padding: 30px 20px;
    }
    
    .form-group label {
        font-size: 16px;
    }
    
    .form-input {
        padding: 12px 15px;
        font-size: 14px;
    }
    
    .submit-btn {
        padding: 12px;
        font-size: 16px;
    }
    
    .event-logo {
        max-width: 250px;
    }
    
    .countdown-container {
        gap: 10px;
    }
    
    .countdown-item {
        width: 60px;
        height: 60px;
    }
    
    .countdown-value {
        font-size: 18px;
    }
    
    .countdown-label {
        font-size: 8px;
    }
    
    .nav-menu {
        display: none;
    }
}

