:root {
    color-scheme: dark;
    --bg: #0f111a;
    --panel: #1a1d2e;
    --panel-raised: #22263a;
    --accent: #7c3aed;
    --text: #fff;
    --muted: #a0aec0;
    --line: #2d3748;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: "Segoe UI", Tahoma, sans-serif;
    line-height: 1.6;
}

a { color: inherit; }

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 12px max(20px, calc((100% - 1200px) / 2));
    background: #0b0d14;
    border-bottom: 1px solid #161926;
}

.top-bar-left, .lang-group {
    display: flex;
    align-items: center;
    gap: 16px;
}

.top-bar-left { flex-wrap: wrap; }
.social-link { display: inline-flex; align-items: center; }
.social-link svg { display: block; }

.top-bar a {
    color: var(--muted);
    font-size: .9rem;
    font-weight: 700;
    text-decoration: none;
}

.top-bar a:hover, .top-bar a[aria-current="page"] { color: #c4b5fd; }
.contact-link { white-space: nowrap; }
.lang-group { flex-wrap: wrap; justify-content: flex-end; gap: 14px; }

.container { width: min(100% - 32px, 1000px); margin: 0 auto; }

.back-btn {
    display: inline-block;
    margin: 30px 0 0;
    color: var(--muted);
    font-weight: 700;
    text-decoration: none;
}

.back-btn:hover { color: #c4b5fd; }

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(200px, 320px);
    align-items: center;
    gap: 36px;
    padding: 58px 0 42px;
}

.eyebrow {
    color: #c4b5fd;
    font-size: .85rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

h1 { margin: 8px 0 16px; font-size: clamp(2.2rem, 6vw, 4rem); line-height: 1.08; }
.hero p { max-width: 650px; color: var(--muted); font-size: 1.12rem; }
.hero img { display: block; width: 100%; height: auto; }

.how-it-works {
    margin: 0 0 36px;
    padding: 22px 26px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-left: 4px solid var(--accent);
    border-radius: 12px;
}

.how-it-works h2 { margin: 0 0 8px; font-size: 1.25rem; }
.how-it-works p { margin: 0; color: var(--muted); }

.calendar-heading { margin: 0 0 18px; font-size: 1.8rem; }
.calendar { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; padding: 0; list-style: none; }

.day {
    position: relative;
    min-width: 0;
    min-height: 250px;
    perspective: 1000px;
}

.day__content {
    min-height: 250px;
    padding: 20px;
    background:
        radial-gradient(circle at 85% 12%, rgba(196, 181, 253, .13), transparent 30%),
        linear-gradient(145deg, #22263a, #191c2b);
    border: 1px solid #78633d;
    border-radius: 14px;
    box-shadow: inset 0 0 28px rgba(124, 58, 237, .12), 0 8px 18px rgba(0, 0, 0, .2);
}

.day__content[hidden] { display: none; }
.day__content time { color: #c4b5fd; font-size: .88rem; font-weight: 800; }
.day__content h3 { margin: 10px 0 8px; font-size: 1.15rem; }
.day__content p { margin: 0; color: var(--muted); }

.day__links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    margin-top: 16px;
}

.day__links a {
    color: #ddd6fe;
    font-size: .9rem;
    font-weight: 700;
    text-underline-offset: 3px;
}

.day__links a:hover { color: #fff; }

.day__door {
    position: absolute;
    z-index: 1;
    inset: 0;
    display: block;
    width: 100%;
    padding: 0;
    overflow: visible;
    color: #fff;
    text-align: center;
    background: transparent;
    border: 0;
    border-radius: 14px;
    cursor: pointer;
    perspective: 900px;
}

.day__door[hidden] { display: none; }

.day__shutter {
    position: absolute;
    inset-block: 0;
    width: 50%;
    overflow: hidden;
    background:
        repeating-linear-gradient(90deg, transparent 0 15px, rgba(221, 214, 254, .07) 15px 17px),
        linear-gradient(145deg, #513681, #30204f 68%, #1a1d2e);
    border: 2px solid #c9a75e;
    box-shadow: inset 0 0 0 4px rgba(15, 17, 26, .55), 0 8px 18px rgba(0, 0, 0, .3);
    transform-style: preserve-3d;
    transition: transform .8s cubic-bezier(.2, .75, .25, 1), box-shadow .3s ease;
    backface-visibility: hidden;
}

.day__shutter--left {
    left: 0;
    border-right-width: 1px;
    border-radius: 14px 0 0 14px;
    transform-origin: left center;
}

.day__shutter--right {
    right: 0;
    border-left-width: 1px;
    border-radius: 0 14px 14px 0;
    transform-origin: right center;
}

.day__shutter::before {
    position: absolute;
    inset: 24% 13% 14%;
    background:
        radial-gradient(circle at 18% 22%, rgba(255, 255, 255, .9) 0 1px, transparent 2px),
        radial-gradient(circle at 75% 38%, rgba(255, 255, 255, .8) 0 1px, transparent 2px),
        radial-gradient(circle at 44% 69%, rgba(255, 255, 255, .85) 0 1px, transparent 2px),
        radial-gradient(ellipse at 50% 88%, rgba(251, 191, 96, .6), transparent 56%),
        linear-gradient(180deg, #201a35, #3c2a61 68%, #62406f);
    border: 3px solid #d7b86f;
    box-shadow: inset 0 0 0 4px rgba(26, 19, 42, .72), 0 0 0 2px rgba(196, 181, 253, .18);
    content: "";
}

.day__shutter::after {
    position: absolute;
    top: 24%;
    right: 0;
    bottom: 14%;
    left: 0;
    background:
        linear-gradient(90deg, transparent calc(50% - 2px), rgba(215, 184, 111, .95) calc(50% - 2px) calc(50% + 2px), transparent calc(50% + 2px)),
        linear-gradient(180deg, transparent calc(50% - 2px), rgba(215, 184, 111, .95) calc(50% - 2px) calc(50% + 2px), transparent calc(50% + 2px));
    content: "";
    pointer-events: none;
}

.day__garland {
    position: absolute;
    z-index: 2;
    top: 7%;
    left: 12%;
    width: 76%;
    height: 18px;
    border-top: 2px solid #d4bd7b;
    border-radius: 50%;
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .4));
    pointer-events: none;
}

.day__garland::before {
    position: absolute;
    inset: -3px -2% auto;
    height: 12px;
    border-top: 2px solid #d4bd7b;
    border-radius: 50%;
    content: "";
}

.day__bulb {
    position: absolute;
    z-index: 1;
    width: 7px;
    height: 7px;
    background: var(--bulb-color);
    border: 1px solid rgba(255, 255, 255, .7);
    border-radius: 50%;
    box-shadow: 0 0 5px 2px color-mix(in srgb, var(--bulb-color), transparent 30%);
    animation: christmas-bulb-twinkle 1.8s ease-in-out var(--bulb-delay) infinite alternate;
}

.day__snow {
    position: absolute;
    z-index: 2;
    inset: 0;
    border-radius: inherit;
    background-image:
        radial-gradient(circle, rgba(255, 255, 255, .85) 0 1px, transparent 1.7px),
        radial-gradient(circle, rgba(221, 214, 254, .7) 0 1.4px, transparent 2px);
    background-position: 0 0, 18px 26px;
    background-size: 47px 63px, 79px 91px;
    animation: christmas-snowfall 7s linear infinite;
    pointer-events: none;
    transition: opacity .35s ease;
}

.day__filmstrip {
    position: absolute;
    z-index: 3;
    top: 17%;
    left: 29%;
    width: 42%;
    height: 13px;
    background-color: rgba(15, 17, 26, .9);
    background-image: radial-gradient(ellipse at 4px 50%, #ddd6fe 0 1.5px, transparent 2px);
    background-position: 0 center;
    background-size: 11px 9px;
    border: 1px solid rgba(196, 181, 253, .75);
    border-radius: 3px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, .35);
    pointer-events: none;
}

.day__door:hover:not(:disabled) {
    filter: brightness(1.12);
}

.day__door:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 4px;
}

.day__door:disabled {
    cursor: not-allowed;
    filter: saturate(.72) brightness(.82);
}

.day__number {
    position: absolute;
    z-index: 4;
    top: 50%;
    left: 50%;
    display: grid;
    width: clamp(62px, 8vw, 78px);
    min-width: 0;
    aspect-ratio: 1;
    place-items: center;
    color: #fff;
    font-size: clamp(1.75rem, 3.2vw, 2.4rem);
    font-weight: 900;
    line-height: 1;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
    text-shadow: 0 2px 10px rgba(0, 0, 0, .65);
    background: radial-gradient(circle at 35% 30%, #8b5cf6, #4c288b 72%);
    border: 3px solid #e6cb81;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, .4), inset 0 0 0 3px rgba(255, 240, 190, .18);
    transform: translate(-50%, -50%);
    transition: opacity .25s ease, transform .35s ease;
}

.day__door-label {
    position: absolute;
    z-index: 4;
    right: 7%;
    bottom: 5%;
    left: 7%;
    color: #f3e8ff;
    font-size: clamp(.68rem, 1.25vw, .82rem);
    font-weight: 700;
    line-height: 1.2;
    text-shadow: 0 2px 5px rgba(0, 0, 0, .75);
    transition: opacity .2s ease;
}

.day.is-open .day__shutter--left {
    box-shadow: inset 0 0 0 4px rgba(20, 33, 30, .45), -9px 5px 16px rgba(0, 0, 0, .32);
    transform: rotateY(-112deg);
}

.day.is-open .day__shutter--right {
    box-shadow: inset 0 0 0 4px rgba(20, 33, 30, .45), 9px 5px 16px rgba(0, 0, 0, .32);
    transform: rotateY(112deg);
}

.day.is-open .day__number {
    opacity: 0;
    transform: translate(-50%, -50%) scale(.8);
}

.day.is-open .day__door-label,
.day.is-open .day__garland,
.day.is-open .day__filmstrip {
    opacity: 0;
}

.day.is-open .day__snow { opacity: 0; }

@keyframes christmas-snowfall {
    to { background-position: 23px 189px, -16px 208px; }
}

@keyframes christmas-bulb-twinkle {
    from { opacity: .48; filter: brightness(.8); }
    to { opacity: 1; filter: brightness(1.7); }
}

@media (prefers-reduced-motion: reduce) {
    .day__shutter,
    .day__number,
    .day__door-label,
    .day__snow { transition: none; }
    .day__snow,
    .day__bulb { animation: none; }
}

.day time { color: #c4b5fd; font-size: .88rem; font-weight: 800; }
.day h3 { margin: 8px 0; font-size: 1.05rem; }
.day p { margin: 8px 0 0; color: var(--muted); }
.day .locked { display: flex; align-items: center; gap: 8px; }
.day .locked::before { content: "•"; color: #c4b5fd; font-size: 1.4rem; line-height: 1; }

footer {
    margin-top: 56px;
    padding: 28px 16px;
    border-top: 1px solid var(--panel);
    color: var(--muted);
    font-size: .9rem;
    text-align: center;
}

@media (max-width: 700px) {
    .top-bar { align-items: flex-start; }
    .top-bar-left, .lang-group { gap: 10px; }
    .hero { grid-template-columns: 1fr; gap: 12px; padding-top: 38px; }
    .hero img { width: min(65%, 250px); margin: 0 auto; grid-row: 1; }
    .calendar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 440px) {
    .top-bar { flex-direction: column; align-items: center; padding: 12px 16px; }
    .top-bar-left { justify-content: center; }
    .lang-group { justify-content: center; }
    .calendar { grid-template-columns: 1fr; }
    .day { min-height: 220px; }
    .day__content { min-height: 220px; }
}
