:root {
    --bg-color: #0f0518;
    --bg-gradient: radial-gradient(circle at center, #2e1a47 0%, #1a0b2e 60%, #0f0518 100%);
    --text-color: #f0f0f0;
    --accent-gold: #c5a059;
    --accent-gold-light: #e6c888;
    --accent-gold-dark: #8a6e36;
    --overlay-dark: rgba(10, 5, 20, 0.6);
    --border-gold: 1px solid rgba(197, 160, 89, 0.4);
}

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

body {
    font-family: 'Shippori Mincho', 'Times New Roman', serif;
    background: var(--bg-color);
    background-image: var(--bg-gradient);
    color: var(--text-color);
    line-height: 1.8;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-x: hidden;
}

/* Background Canvas */
#bgCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.8;
}

.container {
    max-width: 900px;
    width: 100%;
    padding: 60px 20px;
    position: relative;
    z-index: 1;
    text-align: center;
}

/* Typography & Header */
header {
    margin-bottom: 50px;
    animation: fadeInDown 1.5s ease-out;
}

h1 {
    font-size: 2.2rem;
    font-weight: 500;
    color: var(--accent-gold-light);
    text-shadow: 0 0 15px rgba(197, 160, 89, 0.4);
    margin-bottom: 1.5rem;
    letter-spacing: 0.08em;
    line-height: 1.4;
}

.subtitle {
    display: block;
    font-size: 1.1rem;
    margin-top: 1rem;
    color: var(--text-color);
    opacity: 0.9;
    font-weight: 400;
}

.description {
    font-size: 1.05rem;
    color: #ccc;
    max-width: 600px;
    margin: 0 auto;
}

/* Video Section */
.video-section {
    margin-bottom: 60px;
    animation: fadeInUp 1.5s ease-out;
}

.video-frame {
    padding: 10px;
    border: 1px solid var(--accent-gold-dark);
    box-shadow: 0 0 30px rgba(197, 160, 89, 0.15), inset 0 0 20px rgba(0, 0, 0, 0.5);
    background: rgba(0, 0, 0, 0.3);
    margin-bottom: 20px;
    position: relative;
}

/* Decorate corners or borders if desired */
.video-frame::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    border: 1px solid transparent;
    z-index: -1;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 */
    height: 0;
    overflow: hidden;
    background: #000;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.instruction {
    font-size: 1.1rem;
    color: var(--accent-gold-light);
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.8);
}

/* Main Content Area */
.main-content {
    background: rgba(20, 10, 35, 0.6);
    border: 1px solid rgba(197, 160, 89, 0.3);
    padding: 50px 40px;
    border-radius: 4px;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    position: relative;
    animation: fadeIn 2s ease-out;
}

/* Decorative top/bottom lines for main content */
.main-content::before,
.main-content::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-gold-dark), transparent);
}

.main-content::before {
    top: 0;
}

.main-content::after {
    bottom: 0;
}


/* Schedule Info */
.schedule-info {
    margin-bottom: 50px;
}

.schedule-info h2 {
    font-size: 1.6rem;
    color: var(--accent-gold);
    margin-bottom: 1.5rem;
    font-weight: 500;
    letter-spacing: 0.1em;
}

.decoration {
    color: var(--accent-gold-dark);
    font-size: 0.8em;
    vertical-align: middle;
    margin: 0 10px;
}

.date {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.times {
    font-size: 1.8rem;
    font-family: 'Times New Roman', serif;
    /* Use serif numerals */
    font-weight: 500;
    margin: 20px 0;
    letter-spacing: 0.1em;
    color: var(--text-color);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.times span {
    display: inline-block;
    padding: 0 5px;
}

.highlight-box {
    border: 1px solid var(--accent-gold-dark);
    background: linear-gradient(to right, rgba(197, 160, 89, 0.05), rgba(197, 160, 89, 0.15), rgba(197, 160, 89, 0.05));
    padding: 15px;
    margin: 30px auto 0;
    max-width: 500px;
}

.highlight-box p {
    color: var(--accent-gold-light);
    font-weight: 500;
    font-size: 1.1rem;
}

/* Countdown */
.countdown-section h3 {
    font-size: 1.2rem;
    color: #aaa;
    margin-bottom: 15px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.countdown {
    font-size: 3.5rem;
    font-family: 'Times New Roman', serif;
    color: var(--accent-gold);
    text-shadow: 0 0 20px rgba(197, 160, 89, 0.5);
    margin-top: 10px;
    line-height: 1.2;
}

/* Messages */
.wait-message,
.finished-message {
    font-size: 1.4rem;
    color: var(--accent-gold-light);
    padding: 30px;
    border: 1px solid var(--accent-gold);
    background: rgba(0, 0, 0, 0.6);
    box-shadow: 0 0 30px rgba(197, 160, 89, 0.2);
}

/* Footer */
footer {
    margin-top: 60px;
    font-size: 0.8rem;
    color: #555;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 20px;
    width: 100%;
}

/* Animation Utilities */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* New Animations */
@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% center;
    }

    100% {
        background-position: 200% center;
    }
}

@keyframes glow {
    0% {
        text-shadow: 0 0 10px rgba(197, 160, 89, 0.4);
    }

    50% {
        text-shadow: 0 0 25px rgba(197, 160, 89, 0.9), 0 0 10px rgba(255, 255, 255, 0.5);
    }

    100% {
        text-shadow: 0 0 10px rgba(197, 160, 89, 0.4);
    }
}

@keyframes border-pulse {
    0% {
        border-color: rgba(197, 160, 89, 0.4);
        box-shadow: 0 0 30px rgba(197, 160, 89, 0.15);
    }

    50% {
        border-color: rgba(197, 160, 89, 0.8);
        box-shadow: 0 0 50px rgba(197, 160, 89, 0.3);
    }

    100% {
        border-color: rgba(197, 160, 89, 0.4);
        box-shadow: 0 0 30px rgba(197, 160, 89, 0.15);
    }
}

/* SP Adjustments */
@media (max-width: 600px) {
    .container {
        padding: 40px 15px;
    }

    h1 {
        font-size: 1.6rem;
    }

    .subtitle {
        font-size: 0.95rem;
    }

    .main-content {
        padding: 30px 15px;
    }

    .times {
        font-size: 1.4rem;
    }

    .countdown {
        font-size: 2.2rem;
    }

    .sp-only {
        display: block;
    }
}