:root {
    --ink-950: #16100b;
    --ink-900: #20150d;
    --ink-800: #2d1f14;
    --ink-700: #4a3220;
    --parchment-100: #f6ecd2;
    --parchment-200: #ecd9af;
    --parchment-300: #d7be8a;
    --gold-300: #e8ca87;
    --gold-400: #d7a85a;
    --gold-500: #bf8638;
    --shadow-strong: rgba(18, 10, 6, 0.45);
    --shadow-soft: rgba(37, 22, 12, 0.25);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Cormorant Garamond', serif;
    color: #2f2216;
    background-color: var(--ink-900);
    background-image:
        radial-gradient(circle at 15% 10%, rgba(232, 202, 135, 0.20), transparent 32%),
        radial-gradient(circle at 85% 85%, rgba(126, 74, 35, 0.22), transparent 36%),
        linear-gradient(140deg, #1a120b 0%, #24180f 48%, #322116 100%);
    background-attachment: fixed;
}

.font-anime {
    font-family: 'Cinzel Decorative', serif;
    letter-spacing: 0.04em;
}

.text-sakura {
    color: var(--gold-400);
}

.bg-navy {
    background: linear-gradient(135deg, #1b120b 0%, #3b2517 100%);
}

#sakura-canvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 7;
    pointer-events: none;
    mix-blend-mode: screen;
    opacity: 0.78;
}

header {
    border-bottom: 2px solid rgba(215, 168, 90, 0.45);
    box-shadow: 0 20px 40px var(--shadow-strong);
}

header video {
    filter: sepia(0.55) saturate(0.85) brightness(0.55) contrast(1.08);
}

header .absolute.inset-0.bg-black.bg-opacity-40 {
    background:
        linear-gradient(160deg, rgba(13, 8, 5, 0.72) 0%, rgba(31, 17, 10, 0.62) 50%, rgba(78, 40, 24, 0.52) 100%);
}

header .text-center {
    max-width: 62rem;
}

header h1 {
    color: #f7e7bc;
    text-shadow: 0 0 20px rgba(215, 168, 90, 0.55), 0 6px 20px rgba(0, 0, 0, 0.62);
    animation: torch-glow 4.8s ease-in-out infinite;
}

header p {
    color: #f2ddad;
    text-shadow: 0 4px 14px rgba(0, 0, 0, 0.55);
    font-weight: 600;
}

#countdown {
    display: inline-block;
    margin-top: 1.35rem;
    padding: 0.85rem 1.1rem;
    border-radius: 0.85rem;
    border: 1px solid rgba(232, 202, 135, 0.5);
    background: rgba(21, 14, 9, 0.58);
    color: #f8e8bf;
    font-family: 'Cinzel Decorative', serif;
    font-size: 1.05rem;
    text-shadow: 0 0 12px rgba(215, 168, 90, 0.45);
}

main {
    position: relative;
    z-index: 12;
}

main>section {
    position: relative;
    padding: clamp(1.3rem, 2.8vw, 2.4rem);
    border-radius: 1rem;
    background:
        linear-gradient(170deg, rgba(246, 236, 210, 0.96) 0%, rgba(233, 215, 174, 0.95) 100%);
    border: 1px solid rgba(84, 55, 31, 0.45);
    box-shadow: 0 10px 26px var(--shadow-soft);
    overflow: hidden;
}

main>section::after {
    content: '';
    position: absolute;
    inset: 0.55rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(145, 104, 64, 0.25);
    pointer-events: none;
}

main section h2 {
    color: #311f12;
    text-shadow: 0 2px 0 rgba(255, 245, 220, 0.8);
}

main section p {
    color: #3a2a1b;
}

main .bg-white {
    background: linear-gradient(180deg, #fdf6e3 0%, #f1e0bd 100%);
    border: 1px solid rgba(95, 63, 37, 0.28);
    box-shadow: inset 0 0 0 1px rgba(255, 245, 220, 0.6);
}

main img {
    border-color: rgba(93, 63, 37, 0.6) !important;
    box-shadow: 0 12px 20px rgba(34, 22, 13, 0.3);
    filter: sepia(0.18) saturate(0.92);
}

#hall-of-fame-scroller {
    scroll-padding-left: 1rem;
    scroll-padding-right: 1rem;
}

#scroll-left-btn,
#scroll-right-btn {
    border: 1px solid rgba(232, 202, 135, 0.75);
    background: rgba(35, 22, 14, 0.88) !important;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(2px);
}

#scroll-left-btn svg,
#scroll-right-btn svg {
    color: var(--gold-300) !important;
}

#lightgallery a img {
    transition: transform 0.35s ease, filter 0.35s ease;
}

#lightgallery a:hover img {
    filter: sepia(0.15) saturate(1.1) brightness(1.02);
}

footer {
    border-top: 2px solid rgba(215, 168, 90, 0.52);
    box-shadow: 0 -12px 24px rgba(0, 0, 0, 0.25);
}

footer p:first-child {
    font-family: 'Cinzel Decorative', serif;
    color: #f3dfb0;
    letter-spacing: 0.03em;
}

footer p:last-child {
    color: rgba(248, 232, 193, 0.8);
}

body.lock-active {
    overflow: hidden;
}

.chrono-lock-overlay {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    background:
        radial-gradient(circle at top, rgba(232, 202, 135, 0.13), transparent 36%),
        linear-gradient(165deg, rgba(19, 11, 7, 0.94), rgba(33, 19, 12, 0.96));
}

.chrono-lock-card {
    width: min(100%, 30rem);
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid rgba(231, 196, 125, 0.44);
    background: linear-gradient(165deg, rgba(39, 24, 16, 0.96), rgba(22, 13, 9, 0.95));
    box-shadow: 0 20px 35px rgba(0, 0, 0, 0.45);
    text-align: center;
    color: #f5e7c1;
    animation: seal-pulse 3.2s ease-in-out infinite;
}

.chrono-lock-title {
    margin: 0 0 0.7rem;
    font-family: 'Cinzel Decorative', serif;
    font-size: clamp(1.45rem, 4vw, 1.9rem);
    color: var(--gold-300);
    text-shadow: 0 0 14px rgba(215, 168, 90, 0.42);
}

.chrono-lock-text {
    margin: 0 0 1.1rem;
    line-height: 1.45;
    font-size: 1.15rem;
}

.chrono-lock-input {
    width: 100%;
    height: 3rem;
    margin-bottom: 0.8rem;
    border: 1px solid rgba(231, 196, 125, 0.55);
    border-radius: 0.75rem;
    background-color: rgba(9, 6, 4, 0.46);
    color: #fdf1d2;
    text-align: center;
    font-size: 1.25rem;
    letter-spacing: 0.25rem;
    font-weight: 700;
    font-family: 'Cinzel Decorative', serif;
}

.chrono-lock-input:focus {
    outline: 2px solid rgba(232, 202, 135, 0.82);
    outline-offset: 1px;
}

.chrono-lock-button {
    width: 100%;
    height: 3rem;
    border: 0;
    border-radius: 0.75rem;
    font-family: 'Cinzel Decorative', serif;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #2b1b10;
    background: linear-gradient(180deg, #f2d494 0%, #d8a454 100%);
    cursor: pointer;
    transition: transform 0.2s ease, filter 0.2s ease;
}

.chrono-lock-button:hover {
    filter: brightness(1.04);
    transform: translateY(-1px);
}

.chrono-lock-hint {
    margin: 1rem 0 0.35rem;
    color: rgba(248, 232, 193, 0.92);
    font-size: 1.02rem;
}

.chrono-lock-error {
    min-height: 1.4rem;
    margin: 0;
    color: #ffb9a8;
    font-weight: 700;
}

.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

@keyframes torch-glow {

    0%,
    100% {
        text-shadow: 0 0 18px rgba(215, 168, 90, 0.52), 0 6px 18px rgba(0, 0, 0, 0.58);
    }

    50% {
        text-shadow: 0 0 30px rgba(244, 200, 118, 0.8), 0 8px 22px rgba(0, 0, 0, 0.6);
    }
}

@keyframes seal-pulse {

    0%,
    100% {
        box-shadow: 0 20px 35px rgba(0, 0, 0, 0.45), 0 0 0 rgba(215, 168, 90, 0);
    }

    50% {
        box-shadow: 0 24px 40px rgba(0, 0, 0, 0.5), 0 0 18px rgba(215, 168, 90, 0.15);
    }
}

@media (max-width: 768px) {
    header h1 {
        font-size: clamp(2rem, 8vw, 3rem) !important;
    }

    header p {
        font-size: 1.15rem !important;
    }

    #countdown {
        font-size: 0.95rem;
        letter-spacing: 0.05em;
    }

    main>section {
        padding: 1.1rem;
    }

    .chrono-lock-card {
        padding: 1.4rem;
    }

    .chrono-lock-text {
        font-size: 1.02rem;
    }

    .text-red {
        color: red;
    }
}