/* ========================================
   PRISMARA HOMEPAGE
   THE BEAST — DEDICATED STYLESHEET
   ======================================== */

/* HOMEPAGE THEATER BACKGROUND */

body {
    background-image: url("../images/logo/carousel-theatre-base.png");
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    background-attachment: fixed;
}

/* ========================================
   LOWER THEATER — REMOVE DUPLICATE ARTWORK
   ======================================== */

.prismara-theatre-lower {
    background-image: none !important;
    background-color: transparent !important;
}

/* ========================================
   LOWER THEATER — REMOVE GOLD HAIRLINES
   KEEP THE ORNATE THEATER ARTWORK
   ======================================== */

.prismara-theatre-lower::before,
.prismara-theatre-lower::after {
    content: none !important;
}

/* ========================================
   PRISMARA HOMEPAGE
   HIDE COPYRIGHT DECORATIVE DIVIDER
   ======================================== */

.prismara-theatre-lower .copyright-divider {
    display: none !important;
}

/* ========================================
   COPYRIGHT SQUIRREL — DESKTOP LANDING
   ======================================== */

@media screen and (min-width: 951px) {

    .prismara-theatre-lower .copyright-squirrel-wrap {
        bottom: -500px;
    }

}

/* ========================================
   COPYRIGHT TEXT — MOBILE PORTRAIT
   ======================================== */

@media screen and (orientation: portrait) and (max-device-width: 700px) {

    .prismara-theatre-lower .copyright-text {
        left: 50% !important;
        width: 90% !important;
        max-width: 90vw !important;
        box-sizing: border-box !important;

        transform: translateY(750px) translateX(-50%) !important;

        font-size: 40px !important;
        line-height: 1.1 !important;
        text-align: center !important;
        white-space: normal !important;
    }

}

/* ========================================
   CHRISTMAS — RIGHT THEATER WREATH
   APPROVED POSITION
   ======================================== */

.christmas-wreath-right {
    position: absolute;

    top: 0px;
    left: auto;
    right: 45px;

    width: 200px;
    height: auto;

    transform: none;

    z-index: 8;
    pointer-events: none;
}

/* ========================================
   CHRISTMAS — LEFT THEATER WREATH
   ======================================== */

.christmas-wreath-left {
    position: absolute;

    top: 0px;
    left: 45px;
    right: auto;

    width: 200px;
    height: auto;

    transform: none;

    z-index: 8;
    pointer-events: none;
}

/* ========================================
   CHRISTMAS — CAROUSEL CROWN TOP
   INITIAL POSITIONING WORKSHOP
   ======================================== */

.christmas-crown-top {
    position: absolute;

    top: 50%;
    left: 50%;

    width: 400px;
    height: auto;

    transform: translate(-50%, -50%);

    z-index: 8;
    pointer-events: none;
}

/* ========================================
   CHRISTMAS — CROWN TOP
   APPROVED AND LOCKED
   ======================================== */

.christmas-crown-top {
    position: absolute;
    top: -22px;
    left: 50%;

    width: 400px;
    height: auto;

    transform: translateX(-50%) scaleY(0.85);
    transform-origin: center bottom;

    z-index: 20;
    pointer-events: none;
}

/* ========================================
   CHRISTMAS — CROWN LEFT
   APPROVED AND LOCKED
   ======================================== */

.christmas-crown-left {
    position: absolute;
    top: 115px;
    left: calc(30% + 15px);

    width: 350px;
    height: auto;

    transform: translateX(-50%);

    z-index: 20;
    pointer-events: none;
}

/* ========================================
   CHRISTMAS — CROWN RIGHT
   MIRRORED FROM APPROVED LEFT
   ======================================== */

.christmas-crown-right {
    position: absolute;
    top: 115px;
    right: calc(30% + 15px);
    left: auto;

    width: 350px;
    height: auto;

    transform: translateX(50%) scaleX(-1);

    z-index: 20;
    pointer-events: none;
}

/* ========================================
   CHRISTMAS — CAROUSEL CROWN BOW
   APPROVED AND LOCKED
   ======================================== */

.christmas-crown-bow {
    position: absolute;

    top: 153px;
    left: 50%;

    width: 300px;
    height: auto;

    transform: translateX(-50%);

    z-index: 25;
    pointer-events: none;
}

/* ========================================
   CHRISTMAS — BASE BOW LEFT
   APPROVED AND LOCKED
   ======================================== */

.christmas-base-bow {
    position: absolute;

    top: 753px;
    left: 30%;

    width: 350px;
    height: auto;

    transform: translateX(-50%) rotateY(-18deg);
    transform-origin: center center;

    z-index: 100;
    pointer-events: none;
}

/* ========================================
   CHRISTMAS — BASE BOW RIGHT
   MIRRORED FROM APPROVED LEFT
   ======================================== */

.christmas-base-bow-right {
    position: absolute;

    top: 753px;
    right: 30%;
    left: auto;

    width: 350px;
    height: auto;

    transform: translateX(50%) scaleX(-1) rotateY(-18deg);
    transform-origin: center center;

    z-index: 100;
    pointer-events: none;
}

/* ========================================
   CHRISTMAS — WOODLAND ARRANGEMENT
   APPROVED AND LOCKED
   ======================================== */

.christmas-wood {
    position: absolute;

    left: -25px;
    bottom: 55px;

    width: 380px;
    height: auto;

    z-index: 20;
    pointer-events: none;
}

/* ========================================
   CHRISTMAS — CAROUSEL TREE
   DIRECTOR APPROVED
   ======================================== */

.christmas-carousel-tree {
    position: absolute;

    right: 0px;
    bottom: 75px;

    width: 330px;
    height: auto;

    z-index: 5;
    pointer-events: none;
}


/* ========================================
   CHRISTMAS — MAGICAL SNOWGLOBE BUBBLE
   ======================================== */

.christmas-snowglobe-wrap {
    position: absolute;

    right: 185px;
    bottom: 40px;

    width: 250px;
    height: auto;

    z-index: 6;
    pointer-events: auto;

    transform-origin: center bottom;
    transition: transform 0.55s ease;
}

/* Snowglobe glass and base */

.christmas-snowglobe {
    position: relative;
    display: block;

    width: 100%;
    height: auto;

    pointer-events: none;
}

/* Flicker inside the glass */

.christmas-flicker-scarf {
    position: absolute;

    right: 70px;
    bottom: 75px;

    width: 85px;
    height: auto;

    pointer-events: none;
}

/* Magical magnification */

.christmas-snowglobe-wrap:hover {
    transform: scale(1.35);
}


/* ========================================
   CHRISTMAS — SNOW INSIDE THE SNOWGLOBE
   ======================================== */

.christmas-globe-snow {
    position: absolute;

    left: 11%;
    top: 5%;

    width: 78%;
    height: 70%;

    border-radius: 50%;
    overflow: hidden;

    pointer-events: none;
    z-index: 3;
}

/* First snowfall layer */

.christmas-globe-snow::before,
.christmas-globe-snow::after {
    content: "";

    position: absolute;
    inset: -100% 0 0;

    background-image:
        radial-gradient(2px 2px at 15px 20px, white 95%, transparent),
        radial-gradient(2px 2px at 65px 70px, white 95%, transparent),
        radial-gradient(1px 1px at 110px 40px, white 95%, transparent),
        radial-gradient(2px 2px at 150px 100px, white 95%, transparent),
        radial-gradient(1px 1px at 190px 30px, white 95%, transparent),
        radial-gradient(2px 2px at 45px 130px, white 95%, transparent),
        radial-gradient(1px 1px at 125px 160px, white 95%, transparent);

    background-size: 210px 190px;
    background-repeat: repeat;

    animation: prismara-globe-snowfall 9s linear infinite;
}

/* Second snowfall layer — different speed */

.christmas-globe-snow::after {
    opacity: 0.55;
    animation-duration: 14s;
    animation-delay: -5s;
}

/* Snow drifts downward */

@keyframes prismara-globe-snowfall {
    from {
        transform: translateY(-45px);
    }

    to {
        transform: translateY(145px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .christmas-globe-snow::before,
    .christmas-globe-snow::after {
        animation: none;
    }
}

/* ========================================
   EMBERFEATHER — FINAL WREATH POSITION
   DIRECTOR APPROVED
   ======================================== */

.christmas-owl-wrap {
    position: absolute;

    top: 0;
    left: 45px;

    width: 200px;
    height: 200px;

    transform: translateY(-8px);

    z-index: 9;
    pointer-events: none;
}

/* Snowy branch */

.christmas-owl-branch {
    position: absolute;

    left: 23%;
    top: 52%;

    width: 64%;
    height: auto;

    z-index: 1;
}

/* ========================================
   EMBERFEATHER — SCARF-FREE BODY
   DIRECTOR APPROVED
   ======================================== */

.christmas-owl-body {
    position: absolute;

    left: 30%;
    top: 28%;

    width: 38%;
    height: auto;

    transform: translate(5px, 12px);

    z-index: 2;
}

/* Forward-facing head */

.christmas-owl-head {
    position: absolute;

    left: 36%;
    top: 26%;

    width: 37%;
    height: auto;

    z-index: 3;
}


/* ========================================
   CHRISTMAS — EMBERFEATHER
   COMPLETE OWL POSITIONING
   ======================================== */

.christmas-owl-animated {
    position: absolute;

    left: 30%;
    top: 24%;

    width: 42%;
    height: auto;

    z-index: 3;
    pointer-events: none;
}


/* ========================================
   CHRISTMAS — EMBERFEATHER BLINK
   ======================================== */

.christmas-owl-blink {
    position: absolute;
    left: 36%;
    top: 26%;
    width: 37%;
    height: auto;
    z-index: 4;
    pointer-events: none;

    opacity: 0;
    animation: emberfeather-blink 8s infinite;
    clip-path: inset(0 0 52% 0);
}

@keyframes emberfeather-blink {
    0%, 44%, 46%, 49%, 51%, 100% {
        opacity: 0;
    }

    45%, 50% {
        opacity: 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    .christmas-owl-blink {
        animation: none;
        opacity: 0;
    }
}


/* ========================================
   EMBERFEATHER — CHRISTMAS HEAD TURNS
   ======================================== */

.christmas-owl-wrap .ember-turn-layer {
    position: absolute;
    left: 36%;
    top: 26%;
    width: 37%;
    height: auto;
    z-index: 3;
    pointer-events: none;
    opacity: 0;
    clip-path: inset(0 0 52% 0);
}

.christmas-owl-wrap .ember-turn-left {
    animation: ember-look-left 20s infinite;
}

.christmas-owl-wrap .ember-turn-right {
    animation: ember-look-right 20s infinite;
}

@keyframes ember-look-left {
    0%, 19%, 31%, 100% { opacity: 0; }
    22%, 28% { opacity: 1; }
}

@keyframes ember-look-right {
    0%, 49%, 61%, 100% { opacity: 0; }
    52%, 58% { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
    .christmas-owl-wrap .ember-turn-layer {
        animation: none;
        opacity: 0;
    }
}


/* ========================================
   CHRISTMAS — GIRL ELF
   DIRECTOR APPROVED
   ======================================== */

.prismara-girl-elf {
    position: absolute;

    top: 50px;
    left: calc(50% - 330px);

    width: 150px;
    height: 200px;

    z-index: 45;
    pointer-events: none;
}

/* ========================================
   GIRL ELF — MAIN BODY
   ======================================== */

.prismara-girl-elf-body {
    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: auto;

    z-index: 1;
}

/* ========================================
   GIRL ELF — SWINGING LEG
   ======================================== */

.prismara-girl-elf-leg {
    position: absolute;

    top: 92px;
    left: 28px;

    width: 100px;
    height: auto;

    z-index: 10;

    transform-origin: 50% 8%;

    animation:
        elfGentleSwing 2.8s ease-in-out infinite alternate;
}

/* ========================================
   GIRL ELF — GENTLE LEG SWING
   ======================================== */

@keyframes elfGentleSwing {

    0%, 100% {
        transform: rotate(-5deg);
    }

    50% {
        transform: rotate(7deg);
    }

}

/* ========================================
   CHRISTMAS — BOY ELF
   MIRRORED CROWN POSITION
   ======================================== */

.prismara-boy-elf {
    position: absolute;

    top: 50px;
    left: calc(50% + 180px);

    width: 150px;
    height: 200px;

    transform: scaleX(-1);

    z-index: 45;
    pointer-events: none;
}

/* BOY ELF — MAIN ARTWORK */

.prismara-boy-elf-body {
    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: auto;

    z-index: 1;
}

/* BOY ELF — SWINGING LEG */

.prismara-boy-elf-leg {
    position: absolute;

    top: 92px;
    left: 28px;

    width: 100px;
    height: auto;

    z-index: 10;

    transform-origin: 50% 8%;

    animation:
        boyElfGentleSwing 2.8s ease-in-out infinite alternate;
}

/* BOY ELF — LEG ANIMATION */

@keyframes boyElfGentleSwing {

    0%, 100% {
        transform: rotate(-5deg);
    }

    50% {
        transform: rotate(7deg);
    }

}


/* ========================================
   PRISMARA CHRISTMAS — GENTLE SNOWFALL
   18 flakes left / 18 flakes right
   DIRECTOR APPROVED
   ======================================== */

#prismara-christmas-snow {
    position: fixed;
    inset: 0;
    z-index: 40;
    pointer-events: none;
    overflow: hidden;
}

.prismara-snow-zone {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 17%;
    overflow: hidden;
}

.prismara-snow-left {
    left: 3%;
}

.prismara-snow-right {
    right: 3%;
}

.prismara-snowflake {
    position: absolute;
    top: -15px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 4px rgba(220,240,255,.35);
    animation: prismaraSnowFall linear infinite;
}

@keyframes prismaraSnowFall {
    from {
        transform: translate3d(0,-15px,0);
    }

    to {
        transform: translate3d(15px,105vh,0);
    }
}


/* COPYRIGHT SQUIRREL — CHRISTMAS WARDROBE
   NOVEMBER 14 THROUGH JANUARY 6 */

/* Everyday squirrel is visible by default */

.copyright-squirrel-everyday {
    display: block;
}

/* Christmas squirrel is hidden by default */

.copyright-squirrel-christmas {
    display: none;
}

/* CHRISTMAS MODE — SWAP OUTFITS */

.prismara-season-christmas
.copyright-squirrel-everyday {
    display: none;
}

.prismara-season-christmas
.copyright-squirrel-christmas {
    display: block;
}


/* ========================================
   CHRISTMAS — CAROUSEL FLOOR SNOW
   DIRECTOR APPROVED
   ======================================== */

.christmas-floor-snow {
    position: absolute;

    left: 50%;
    bottom: 0;

    width: 100%;
    height: auto;

    transform: translateX(-50%);

    z-index: 4;
    pointer-events: none;
}

/* ========================================
   CHRISTMAS — LOWER THEATER SNOW
   DIRECTOR APPROVED
   ======================================== */

.prismara-theatre-lower {
    position: relative;
}

.christmas-copyright-snow {
    position: absolute;
    left: 50%;
    bottom: -150px;
    width: 100%;
    height: auto;
    transform: translateX(-50%);
    z-index: 2;
    pointer-events: none;
}


/* ========================================
   CHRISTMAS — CAROUSEL TREE TWINKLES
   DIRECTOR APPROVED — LOCKED
   ======================================== */

.christmas-tree-twinkles {
    position: absolute;

    right: 0;
    bottom: 75px;

    width: 330px;
    aspect-ratio: 1295 / 1214;

    z-index: 6;
    pointer-events: none;
}

/* Approved golden-white bulbs */

.christmas-tree-twinkles .twinkle {
    position: absolute;

    width: 7px;
    height: 7px;

    border-radius: 50%;
    background: #fff9db;

    box-shadow:
        0 0 8px 3px rgba(255,224,128,.95),
        0 0 16px 6px rgba(255,180,30,.65);

    opacity: .35;

    animation:
        ppsChristmasTwinkle 3.5s
        ease-in-out infinite;
}

/* Approved bright, visible twinkle */

@keyframes ppsChristmasTwinkle {
    0%, 100% {
        opacity: .35;
        filter: brightness(.8);
    }

    45% {
        opacity: 1;
        filter: brightness(1.35);
    }

    70% {
        opacity: .55;
        filter: brightness(1);
    }
}

/* Independent bulb timing — original F12 pattern */

.christmas-tree-twinkles .twinkle:nth-child(5n+1) {
    animation-duration: 2.8s;
}

.christmas-tree-twinkles .twinkle:nth-child(5n+2) {
    animation-duration: 3.35s;
}

.christmas-tree-twinkles .twinkle:nth-child(5n+3) {
    animation-duration: 3.9s;
}

.christmas-tree-twinkles .twinkle:nth-child(5n+4) {
    animation-duration: 4.45s;
}

.christmas-tree-twinkles .twinkle:nth-child(5n) {
    animation-duration: 5s;
}

/* Stagger all 13 bulbs */

.christmas-tree-twinkles .twinkle:nth-child(1)  { animation-delay: 0s; }
.christmas-tree-twinkles .twinkle:nth-child(2)  { animation-delay: -.71s; }
.christmas-tree-twinkles .twinkle:nth-child(3)  { animation-delay: -1.42s; }
.christmas-tree-twinkles .twinkle:nth-child(4)  { animation-delay: -2.13s; }
.christmas-tree-twinkles .twinkle:nth-child(5)  { animation-delay: -2.84s; }
.christmas-tree-twinkles .twinkle:nth-child(6)  { animation-delay: -3.55s; }
.christmas-tree-twinkles .twinkle:nth-child(7)  { animation-delay: -4.26s; }
.christmas-tree-twinkles .twinkle:nth-child(8)  { animation-delay: -4.97s; }
.christmas-tree-twinkles .twinkle:nth-child(9)  { animation-delay: -5.68s; }
.christmas-tree-twinkles .twinkle:nth-child(10) { animation-delay: -6.39s; }
.christmas-tree-twinkles .twinkle:nth-child(11) { animation-delay: -7.10s; }
.christmas-tree-twinkles .twinkle:nth-child(12) { animation-delay: -7.81s; }
.christmas-tree-twinkles .twinkle:nth-child(13) { animation-delay: -8.52s; }

@media (prefers-reduced-motion: reduce) {
    .christmas-tree-twinkles .twinkle {
        animation: none;
        opacity: .65;
    }
}


/* ========================================
   CHRISTMAS — MR. C
   EVERPASTURE CARDINAL
   APPROVED POSITION — LOCKED
   ======================================== */

.christmas-cardinal {
    position: absolute;

    top: 65px;
    right: 78px;

    width: 115px;
    height: auto;

    transform: none;

    z-index: 10;
    pointer-events: none;
}


/* ========================================
   CHRISTMAS — MR. C
   GENTLE BREATHING ANIMATION
   DIRECTOR APPROVED — LOCKED
   ======================================== */

@keyframes ppsCardinalBalance {

    0%, 20%, 40%, 65%, 85%, 100% {
        transform: translateY(0);
    }

    25% {
        transform: translateY(-1px);
    }

    30% {
        transform: translateY(0);
    }

    70% {
        transform: translateY(-1px);
    }

    75% {
        transform: translateY(0);
    }
}

/* Mr. C quietly breathes on his perch */

.christmas-cardinal {
    animation:
        ppsCardinalBalance 16s
        ease-in-out infinite;
}

/* Respect reduced-motion preferences */

@media (prefers-reduced-motion: reduce) {
    .christmas-cardinal {
        animation: none;
        transform: none;
    }
}


/* ========================================
   CHRISTMAS — WOODLAND TREE TWINKLES
   DIRECTOR APPROVED — LOCKED
   ======================================== */

.christmas-wood-twinkles {
    position: absolute;

    left: -25px;
    bottom: 55px;

    width: 380px;
    aspect-ratio: 1544 / 1030;

    z-index: 21;
    pointer-events: none;
}

/* Golden-white woodland bulbs */

.christmas-wood-twinkles .twinkle {
    position: absolute;

    width: 7px;
    height: 7px;

    border-radius: 50%;
    background: #fff9db;

    box-shadow:
        0 0 8px 3px rgba(255,224,128,.95),
        0 0 16px 6px rgba(255,180,30,.65);

    animation:
        ppsWoodlandTwinkle 3.5s
        ease-in-out infinite;
}

/* Approved bright twinkle */

@keyframes ppsWoodlandTwinkle {
    0%, 100% {
        opacity: .35;
        filter: brightness(.8);
    }

    45% {
        opacity: 1;
        filter: brightness(1.35);
    }

    70% {
        opacity: .55;
        filter: brightness(1);
    }
}

/* Independent timing — matches approved F12 test */

.christmas-wood-twinkles .twinkle:nth-child(5n+1) {
    animation-duration: 2.8s;
}

.christmas-wood-twinkles .twinkle:nth-child(5n+2) {
    animation-duration: 3.35s;
}

.christmas-wood-twinkles .twinkle:nth-child(5n+3) {
    animation-duration: 3.9s;
}

.christmas-wood-twinkles .twinkle:nth-child(5n+4) {
    animation-duration: 4.45s;
}

.christmas-wood-twinkles .twinkle:nth-child(5n) {
    animation-duration: 5s;
}

/* Stagger all eleven bulbs */

.christmas-wood-twinkles .twinkle:nth-child(1)  { animation-delay: 0s; }
.christmas-wood-twinkles .twinkle:nth-child(2)  { animation-delay: -.71s; }
.christmas-wood-twinkles .twinkle:nth-child(3)  { animation-delay: -1.42s; }
.christmas-wood-twinkles .twinkle:nth-child(4)  { animation-delay: -2.13s; }
.christmas-wood-twinkles .twinkle:nth-child(5)  { animation-delay: -2.84s; }
.christmas-wood-twinkles .twinkle:nth-child(6)  { animation-delay: -3.55s; }
.christmas-wood-twinkles .twinkle:nth-child(7)  { animation-delay: -4.26s; }
.christmas-wood-twinkles .twinkle:nth-child(8)  { animation-delay: -4.97s; }
.christmas-wood-twinkles .twinkle:nth-child(9)  { animation-delay: -5.68s; }
.christmas-wood-twinkles .twinkle:nth-child(10) { animation-delay: -6.39s; }
.christmas-wood-twinkles .twinkle:nth-child(11) { animation-delay: -7.10s; }

/* Reduced motion */

@media (prefers-reduced-motion: reduce) {
    .christmas-wood-twinkles .twinkle {
        animation: none;
        opacity: .65;
    }
}


/* ========================================
   CHRISTMAS — POLAR ACORN EXPRESS
   DIRECTOR APPROVED — LOCKED
   ======================================== */

.christmas-express {
    position: absolute;

    left: 0;
    bottom: 150px;

    width: 1050px;
    height: 125px;

    z-index: 3;
    pointer-events: none;

    animation:
        ppsChristmasTrainJourney 55s
        linear infinite;

    will-change: transform;
}

/* Train artwork */

.christmas-express img {
    position: absolute;
    height: auto;
    object-fit: contain;
    pointer-events: none;
}

/* Passenger carriages */

.christmas-train-carriage {
    width: 245px;
    bottom: 0;
}

.christmas-express .carriage-one {
    left: 0;
}

.christmas-express .carriage-two {
    left: 220px;
}

.christmas-express .carriage-three {
    left: 440px;
}

/* Locomotive — enlarged to compensate
   for transparent space in engine.png */

.christmas-train-engine {
    width: 430px;
    left: 485px;
    bottom: 0;
}

/* Continuous left-to-right journey */

@keyframes ppsChristmasTrainJourney {

    0% {
        transform: translateX(-150vw);
    }

    100% {
        transform: translateX(100vw);
    }
}

/* Reduced motion */

@media (prefers-reduced-motion: reduce) {

    .christmas-express {
        animation: none;
        left: 50%;
        transform: translateX(-50%);
        will-change: auto;
    }
}


/* ========================================
   CHRISTMAS COUNTDOWN — APPROVED POSITION
   ======================================== */

.christmas-countdown {
    position: absolute;
    left: calc(50% - 10px);
    bottom: 290px;
    width: 400px;
    transform: translateX(-50%);
    z-index: 5;
    pointer-events: none;
}

.christmas-countdown-art {
    display: block;
    width: 100%;
    height: auto;
}


/* ========================================
   CHRISTMAS COUNTDOWN — LIVE NUMBERS
   DIRECTOR APPROVED — LOCKED
   ======================================== */

.christmas-countdown-digits {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* Beautiful glowing gold numbers */

.christmas-countdown-number {
    position: absolute;

    top: 64%;

    transform: translate(-50%, -50%);

    color: #ffe6a0;

    font-family: Georgia, serif;
    font-size: 26px;
    font-weight: bold;
    line-height: 1;

    white-space: nowrap;

    text-shadow:
        0 0 4px #fff4cc,
        0 0 10px #ffb83d,
        0 0 18px #b95b00;
}

/* Director-approved window alignment */

.countdown-days {
    left: 18%;
}

.countdown-hours {
    left: 39%;
}

.countdown-minutes {
    left: 60%;
}

.countdown-seconds {
    left: 81%;
}


/* ========================================
   PRISMARA THEATRE — TRAIN STABILITY
   Prevent horizontal scrollbar jumping
   DIRECTOR APPROVED
   ======================================== */

html {
    overflow-x: clip !important;
    scrollbar-gutter: stable;
}

body {
    overflow-x: clip !important;
}


/* ========================================
   CHRISTMAS THEATRE GARLANDS
   DIRECTOR APPROVED — LOCKED
   ======================================== */

.christmas-theatre-garland {
    position: absolute;
    bottom: 50px;
    width: 420px;
    height: auto;
    z-index: 4;
    pointer-events: none;
}

.christmas-garland-left {
    left: 8%;
}

.christmas-garland-right {
    right: 8%;
}


/* ========================================
   VICTORIAN CHRISTMAS PRESENTS
   DIRECTOR APPROVED
   ======================================== */

.christmas-theatre-presents {
    position: absolute;
    bottom: 8px;
    width: 330px;
    height: auto;
    z-index: 5;
    pointer-events: none;
}

.christmas-presents-left {
    left: 3%;
}

.christmas-presents-right {
    right: 3%;
}


/* ========================================
   VICTORIAN CHRISTMAS WALL BOWS
   ======================================== */

.christmas-wall-bow {
    position: absolute;
    top: 335px;
    width: 145px;
    height: auto;
    transform: translateX(-50%);
    z-index: 5;
    pointer-events: none;
}

.christmas-wall-bow-left {
    left: 25%;
}

.christmas-wall-bow-right {
    left: 75%;
}


/* ========================================
   UPPER VICTORIAN CHRISTMAS GARLAND
   DIRECTOR APPROVED
   ======================================== */

.christmas-theatre-garland-upper {
    position: absolute;
    left: 50%;
    top: 175px;
    width: 800px;
    height: auto;
    transform: translateX(-50%);
    z-index: 5;
    pointer-events: none;
}


/* ========================================
   SMALL VICTORIAN WALL GARLANDS
   ======================================== */

.christmas-wall-garland {
    position: absolute;
    top: 175px;
    width: 340px;
    height: auto;
    z-index: 5;
    pointer-events: none;
}

.christmas-wall-garland-left {
    left: 12%;
    transform: translateX(-50%);
}

.christmas-wall-garland-right {
    right: 12%;
    transform: translateX(50%);
}


/* ========================================
   POLAR ACORN EXPRESS RAILWAY SHELF
   ======================================== */

.prismara-railway-shelf {
    position: absolute;
    left: calc(3% - 25px);
    right: calc(3% - 25px);
    bottom: 155px;

    height: 5px;

    background: linear-gradient(
        to bottom,
        #e2b35c,
        #754018 55%,
        #291208
    );

    border-top: 1px solid #f4cb78;
    border-bottom: 1px solid #42200b;

    box-shadow: 0 3px 5px rgba(0,0,0,0.65);

    z-index: 2;
    pointer-events: none;
}


/* ========================================
   CHRISTMAS COPYRIGHT SQUIRREL
   Approved theatre size: 300px
   ======================================== */

.prismara-theatre-lower
.copyright-squirrel-christmas {
    width: 300px !important;
    height: auto !important;
}


/* ========================================
   POLAR ACORN EXPRESS
   SNOWY RAILWAY FORESTS
   ======================================== */

.christmas-railway-trees {
    position: absolute;
    bottom: 143px;
    width: 360px;
    height: auto;

    transform: scaleY(1.2);
    transform-origin: bottom center;

    z-index: 1;
    pointer-events: none;
}

.christmas-railway-trees-left {
    left: 3%;
}

.christmas-railway-trees-right {
    right: 3%;
}


/* ========================================
   CHRISTMAS THEATRE FLOOR TREES
   APPROVED POSITIONS
   ======================================== */

.christmas-floor-trees {
    position: absolute;
    width: 160px;
    height: auto;
    z-index: 4;
    pointer-events: none;
}

/* Far left — approved */
.christmas-floor-far-left {
    left: calc(2% - 40px);
    bottom: -12px;
}

/* Beside Copyright Squirrel — left */
.christmas-floor-center-left {
    left: 28%;
    bottom: -55px;
}

/* Beside Copyright Squirrel — right */
.christmas-floor-center-right {
    left: 60%;
    bottom: -55px;
}

/* Far right — approved */
.christmas-floor-far-right {
    right: calc(2% - 40px);
    bottom: -12px;
}


/* ========================================
   CHRISTMAS CENTER-LEFT PRESENTS
   APPROVED POSITION
   ======================================== */

.christmas-center-gifts {
    position: absolute;
    width: 220px;
    height: auto;
    z-index: 5;
    pointer-events: none;
}

.christmas-center-gifts-left {
    left: calc(36% - 45px);
    bottom: -60px;
}

/* Keep Copyright Squirrel in front
   of the Christmas presents. */

.prismara-theatre-lower .copyright-squirrel-wrap {
    z-index: 6;
}


/* ========================================
   CHRISTMAS CENTER-RIGHT PRESENTS
   APPROVED POSITION
   ======================================== */

.christmas-center-gifts-right {
    right: calc(36% + 5px);
    bottom: -60px;
}


/* ========================================
   VICTORIAN CHRISTMAS FLOOR LANTERNS
   DIRECTOR APPROVED — LOCKED
   ======================================== */

.prismara-theatre-lower .christmas-floor-lantern {
    position: absolute;
    bottom: -55px;
    width: 150px;
    height: auto;
    transform: translateX(-50%);
    z-index: 7;
    pointer-events: none;

    filter: drop-shadow(
        0 0 12px rgba(255, 174, 55, 0.35)
    );
}

/* LEFT LANTERN */

.prismara-theatre-lower .christmas-lantern-left {
    left: 22%;
}

/* RIGHT LANTERN */

.prismara-theatre-lower .christmas-lantern-right {
    left: 73%;
}


/* ========================================
   POLAR ACORN EXPRESS — CHIMNEY STEAM
   DIRECTOR APPROVED — LOCKED
   ======================================== */

.christmas-train-smoke {
    position: absolute;
    left: 765px;
    top: -65px;
    width: 90px;
    height: 100px;
    z-index: 5;
    pointer-events: none;
}

.christmas-smoke-puff {
    position: absolute;
    bottom: 0;
    left: 35px;
    width: 20px;
    height: 20px;
    border-radius: 50%;

    background: radial-gradient(
        circle,
        rgba(255,255,255,.8) 0%,
        rgba(235,240,245,.45) 45%,
        rgba(255,255,255,0) 75%
    );

    filter: blur(4px);
    opacity: 0;

    animation: ppsSteamRise 3.6s ease-out infinite;
}

.christmas-smoke-puff:nth-child(2) {
    animation-delay: -1.2s;
}

.christmas-smoke-puff:nth-child(3) {
    animation-delay: -2.4s;
}

@keyframes ppsSteamRise {
    0% {
        transform: translate(0, 0) scale(.6);
        opacity: 0;
    }

    15% {
        opacity: .8;
    }

    65% {
        opacity: .45;
    }

    100% {
        transform: translate(25px, -90px) scale(3);
        opacity: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .christmas-smoke-puff {
        animation: none;
        opacity: 0;
    }
}


/* ========================================
   ACORN EXPRESS STATION SIGN
   DIRECTOR APPROVED — LOCKED
   ======================================== */

.christmas-acorn-express-sign {
    position: absolute;
    left: calc(7% - 50px);
    top: calc(43% - 5px);
    width: 260px;
    height: auto;
    z-index: 8;
    pointer-events: none;

    filter: drop-shadow(
        0 0 12px rgba(255,185,65,.28)
    );
}

/* ========================================
   CHRISTMAS THEATRE — RUBY ACTIVATOR
   DIRECTOR APPROVED POSITION
   ======================================== */

.christmas-ruby-anchor {
    position: absolute;
    left: 50%;
    top: 175px;
    width: 800px;
    height: auto;
    aspect-ratio: 3 / 1;
    transform: translateX(-50%);
    z-index: 50;
    pointer-events: none;
}

.christmas-theatre-ruby {
    position: absolute;
    left: 50%;
    top: 30%;
    transform: translate(-50%, -50%);

    width: 24px;
    height: 24px;
    padding: 0;

    border: 1px solid #ffb0a0;
    border-radius: 50%;
    background: rgba(255, 0, 35, 0.55);

    box-shadow:
        0 0 8px 3px rgba(255, 0, 45, 0.9);

    cursor: pointer;
    pointer-events: auto;
}

/* ========================================
   PRISMARA CHRISTMAS THEATRE
   RUBY AWAKENING SYSTEM
   ======================================== */

/* ----------------------------------------
   1. CHRISTMAS DECORATIONS — ASLEEP
   ---------------------------------------- */

.prismara-theatre-lower
:is(
    .christmas-theatre-garland-upper,
    .christmas-theatre-garland,
    .christmas-wall-garland,
    .christmas-wall-bow,
    .christmas-theatre-presents,
    .christmas-center-gifts,
    .christmas-railway-trees,
    .christmas-floor-trees,
    .christmas-copyright-snow,
    .copyright-squirrel-christmas
) {
    filter: brightness(0.58) saturate(0.75);
    transition: filter 3s ease;
}


/* ----------------------------------------
   2. CHRISTMAS DECORATIONS — AWAKE
   ---------------------------------------- */

.prismara-theatre-lower.christmas-theatre-awake
:is(
    .christmas-theatre-garland-upper,
    .christmas-theatre-garland,
    .christmas-wall-garland,
    .christmas-wall-bow,
    .christmas-theatre-presents,
    .christmas-center-gifts,
    .christmas-railway-trees,
    .christmas-floor-trees,
    .christmas-copyright-snow,
    .copyright-squirrel-christmas
) {
    filter: brightness(1) saturate(1);
}


/* ----------------------------------------
   3. VICTORIAN LANTERNS — ASLEEP
   Preserve approved golden drop-shadow
   ---------------------------------------- */

.prismara-theatre-lower
.christmas-floor-lantern {
    filter:
        brightness(0.58)
        saturate(0.75)
        drop-shadow(
            0 0 12px rgba(255, 174, 55, 0.35)
        );

    transition: filter 3s ease;
}


/* LANTERNS — AWAKE */

.prismara-theatre-lower.christmas-theatre-awake
.christmas-floor-lantern {
    filter:
        brightness(1)
        saturate(1)
        drop-shadow(
            0 0 12px rgba(255, 174, 55, 0.35)
        );
}


/* ----------------------------------------
   4. ACORN EXPRESS STATION SIGN
   Preserve approved golden glow
   ---------------------------------------- */

.prismara-theatre-lower
.christmas-acorn-express-sign {
    filter:
        brightness(0.58)
        saturate(0.75)
        drop-shadow(
            0 0 12px rgba(255, 185, 65, 0.28)
        );

    transition: filter 3s ease;
}

.prismara-theatre-lower.christmas-theatre-awake
.christmas-acorn-express-sign {
    filter:
        brightness(1)
        saturate(1)
        drop-shadow(
            0 0 12px rgba(255, 185, 65, 0.28)
        );
}


/* ----------------------------------------
   5. CHRISTMAS COUNTDOWN FRAME
   Keep live numbers bright and readable
   ---------------------------------------- */

.prismara-theatre-lower
.christmas-countdown-art {
    filter: brightness(0.58) saturate(0.75);
    transition: filter 3s ease;
}

.prismara-theatre-lower.christmas-theatre-awake
.christmas-countdown-art {
    filter: brightness(1) saturate(1);
}


/* ----------------------------------------
   6. POLAR ACORN EXPRESS — ASLEEP
   Preserve original 55-second animation
   ---------------------------------------- */

.prismara-theatre-lower
.christmas-express {
    visibility: hidden;
    animation-play-state: paused;
}


/* TRAIN — AWAKE */

.prismara-theatre-lower.christmas-theatre-awake
.christmas-express {
    visibility: visible;
    animation-play-state: running;
}


/* ----------------------------------------
   7. RUBY — GENTLE WAITING GLOW
   ---------------------------------------- */

.christmas-theatre-ruby {
    background: rgba(255, 0, 35, 0.20);

    border: 1px solid rgba(255, 176, 160, 0.45);

    box-shadow:
        0 0 7px 2px rgba(255, 0, 45, 0.55);

    transition:
        box-shadow 3s ease,
        background 3s ease;
}


/* RUBY AFTER ACTIVATION */

.prismara-theatre-lower.christmas-theatre-awake
.christmas-theatre-ruby {
    background: rgba(255, 0, 35, 0.08);

    box-shadow:
        0 0 4px 1px rgba(255, 0, 45, 0.25);
}


/* ========================================
   CHRISTMAS — UPPER CAROUSEL OPAL AWAKENING
   DIRECTOR APPROVED
   ======================================== */

/* Christmas decorations resting */

.carousel-stage :is(
    .christmas-floor-snow,
    .christmas-tree-twinkles,
    .christmas-cardinal,
    .christmas-wood-twinkles,
    .christmas-wreath-right,
    .christmas-wreath-left,
    .christmas-crown-top,
    .christmas-crown-left,
    .christmas-crown-right,
    .christmas-crown-bow,
    .christmas-base-bow,
    .christmas-base-bow-right,
    .christmas-wood,
    .christmas-carousel-tree,
    .christmas-snowglobe-wrap,
    .christmas-owl-wrap,
    .prismara-girl-elf,
    .prismara-boy-elf
) {
    filter: brightness(.58) saturate(.75);
    transition: filter 3s ease;
}

/* Christmas decorations awaken with the opal */

.carousel-stage.is-awake :is(
    .christmas-floor-snow,
    .christmas-tree-twinkles,
    .christmas-cardinal,
    .christmas-wood-twinkles,
    .christmas-wreath-right,
    .christmas-wreath-left,
    .christmas-crown-top,
    .christmas-crown-left,
    .christmas-crown-right,
    .christmas-crown-bow,
    .christmas-base-bow,
    .christmas-base-bow-right,
    .christmas-wood,
    .christmas-carousel-tree,
    .christmas-snowglobe-wrap,
    .christmas-owl-wrap,
    .prismara-girl-elf,
    .prismara-boy-elf
) {
    filter: brightness(1) saturate(1);
}

/* ========================================
   PRISMARA CHRISTMAS RUBY
   OCCASIONAL MAGICAL TWINKLE
   DIRECTOR'S SUNDAY EDITION
   ======================================== */

.christmas-theatre-ruby::after {
    content: "\2726";

    position: absolute;
    left: 50%;
    top: 50%;

    color: #fff6d8;
    font-size: 18px;
    line-height: 1;

    text-shadow:
        0 0 4px #ffffff,
        0 0 8px #ffd7a0,
        0 0 12px rgba(255, 35, 65, 0.8);

    pointer-events: none;
    opacity: 0;

    transform: translate(-50%, -50%) scale(0.3);

    animation: prismaraRubyTwinkle 7s ease-in-out infinite;
}

/* One delicate sparkle, then a long rest */

@keyframes prismaraRubyTwinkle {

    0%, 42%, 58%, 100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.3);
    }

    48% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }

    53% {
        opacity: 0.65;
        transform: translate(-50%, -50%) scale(0.7);
    }
}

/* Stop twinkling after ruby activation */

.prismara-theatre-lower.christmas-theatre-awake
.christmas-theatre-ruby::after {
    animation: none;
    opacity: 0;
}

/* Accessibility — reduced motion */

@media (prefers-reduced-motion: reduce) {
    .christmas-theatre-ruby::after {
        animation: none;
        opacity: 0;
    }
}


/* ==========================================
   PRISMARA CHRISTMAS THEATER
   MOBILE PORTRAIT — APPROVED FINALE
   ========================================== */

@media screen and (orientation: portrait)
       and (max-device-width: 700px) {

    /* Hide small wall decorations */

    .christmas-wall-garland,
    .christmas-wall-bow {
        display: none !important;
    }

    /* Main garland and ruby */

    .christmas-theatre-garland-upper,
    .christmas-ruby-anchor {
        top: 1250px !important;
        left: 50% !important;
        width: 700px !important;
        max-width: none !important;
        transform: translateX(-50%) !important;
    }

    /* Acorn Express station sign */

    .christmas-acorn-express-sign {
        width: 330px !important;
    }

    /* Christmas countdown */

    .christmas-countdown {
        width: 460px !important;
    }

    .christmas-countdown-number {
        font-size: 30px !important;
    }

    /* Hide center gifts, keep center trees */

    .christmas-center-gifts-left,
    .christmas-center-gifts-right {
        display: none !important;
    }

    .christmas-floor-center-left,
    .christmas-floor-center-right {
        z-index: 18 !important;
    }

    /* Snow resting on theater floor */

    .christmas-copyright-snow {
        bottom: -380px !important;
    }

    /* Lanterns on golden ledge */

    .prismara-theatre-lower
    .christmas-floor-lantern {
        bottom: -70px !important;
    }

    /* Copyright wording — approved position */

    .prismara-theatre-lower .copyright-text {
        left: 50% !important;
        width: 100% !important;
        max-width: none !important;
        font-size: 29px !important;
        line-height: 1.2 !important;
        white-space: nowrap !important;
        text-align: center !important;

        transform:
            translateY(750px)
            translateX(-50%) !important;
    }

}


/* ==========================================
   PRISMARA CHRISTMAS CAROUSEL
   MOBILE LANDSCAPE — APPROVED GARLANDS
   ========================================== */

@media screen and (orientation: landscape)
       and (max-device-width: 950px) {

    /* CROWN GARLANDS — APPROVED */

    .christmas-crown-left {
        width: 280px !important;
        left: calc(30% + 50px) !important;
    }

    .christmas-crown-right {
        width: 280px !important;
        right: calc(30% + 50px) !important;
    }

    /* BASE GARLANDS — APPROVED */

    .christmas-base-bow {
        width: 275px !important;
        left: calc(30% + 65px) !important;
    }

    .christmas-base-bow-right {
        width: 275px !important;
        right: calc(30% + 65px) !important;
    }

}


/* ============================================
   PRISMARA CHRISTMAS
   MOBILE LANDSCAPE — FINAL APPROVED DESIGN

   Three Christmas scenes:
   1. Carousel
   2. Christmas Countdown
   3. Acorn Express / Copyright Finale

   Preserves desktop and mobile portrait.
   ============================================ */

@media screen and (orientation: landscape)
       and (max-device-width: 950px) {

    /* ========================================
       HIDE UNNECESSARY DECORATIONS
       ======================================== */

    /* Small wall garlands and bows */

    .prismara-theatre-lower .christmas-wall-garland,
    .prismara-theatre-lower .christmas-wall-bow {
        display: none !important;
    }

    /* Extra lower-theater side garlands */

    .prismara-theatre-lower .christmas-theatre-garland {
        display: none !important;
    }

    /* Center present arrangements */

    .prismara-theatre-lower .christmas-center-gifts,
    .prismara-theatre-lower .christmas-center-gifts-left,
    .prismara-theatre-lower .christmas-center-gifts-right {
        display: none !important;
    }

    /* Far-left and far-right floor trees */

    .prismara-theatre-lower .christmas-floor-far-left,
    .prismara-theatre-lower .christmas-floor-far-right {
        display: none !important;
    }


    /* ========================================
   CHRISTMAS COUNTDOWN
   LANDSCAPE — DOWN 75PX TOTAL
   ======================================== */

.prismara-theatre-lower .christmas-countdown {
    bottom: 265px !important;
    translate: 0 75px !important;
}


    /* ========================================
       ACORN EXPRESS SIGN
       ======================================== */

    .prismara-theatre-lower
    .christmas-acorn-express-sign {
        translate: 0 -35px !important;
    }


    /* ========================================
       CHRISTMAS TRAIN AND RAILWAY
       ======================================== */

    .prismara-theatre-lower .christmas-express,
    .prismara-theatre-lower .prismara-railway-shelf {
        translate: 0 230px !important;
    }


    /* ========================================
       RUBY WALL GARLAND

       Smaller decoration above the train.
       Ruby anchor follows the garland.
       ======================================== */

    .prismara-theatre-lower
    .christmas-theatre-garland-upper,

    .prismara-theatre-lower
    .christmas-ruby-anchor {
        width: 480px !important;
        max-width: none !important;
        translate: 0 240px !important;
    }


    /* ========================================
       SNOWY RAILWAY FORESTS
       ======================================== */

    .prismara-theatre-lower
    .christmas-railway-trees-left,

    .prismara-theatre-lower
    .christmas-railway-trees-right {
        translate: 0 230px !important;
    }


    /* ========================================
       VICTORIAN PRESENT ARRANGEMENTS
       ======================================== */

    .prismara-theatre-lower
    .christmas-theatre-presents {
        translate: 0 250px !important;
    }

    /* Additional side gift decorations */

    .prismara-theatre-lower
    .christmas-side-gifts-left,

    .prismara-theatre-lower
    .christmas-side-gifts-right {
        translate: 0 200px !important;
    }


    /* ========================================
       CHRISTMAS FLOOR TREES

       Two trees beside Copyright Squirrel.
       ======================================== */

    .prismara-theatre-lower
    .christmas-floor-center-left,

    .prismara-theatre-lower
    .christmas-floor-center-right {
        translate: 0 210px !important;
    }


    /* ========================================
       VICTORIAN FLOOR LANTERNS
       ======================================== */

    .prismara-theatre-lower
    .christmas-floor-lantern {
        translate: 0 250px !important;
    }


    /* ========================================
       CHRISTMAS FLOOR SNOW
       ======================================== */

    .prismara-theatre-lower
    .christmas-copyright-snow {
        bottom: -350px !important;
    }
}

/* ============================================
   END PRISMARA CHRISTMAS
   MOBILE LANDSCAPE
   ============================================ */

/* ========================================
   PRISMARA CHRISTMAS — PORTRAIT ONLY
   THREE DECORATIONS DOWN 16 PIXELS
   ======================================== */

@media screen and (orientation: portrait)
       and (max-device-width: 700px) {

    /* Acorn Express station sign */
    .christmas-acorn-express-sign {
        translate: 0 16px !important;
    }

    /* Upper garland and its ruby */
    .christmas-theatre-garland-upper,
    .christmas-ruby-anchor {
        translate: 0 16px !important;
    }

    /* Countdown frame and HTML numbers */
.christmas-countdown {
    translate: 0 -184px !important;
}

/* ========================================
   MOBILE PORTRAIT — HIDE CENTER TREES
   ======================================== */

.christmas-floor-center-left,
.christmas-floor-center-right {
    display: none !important;
}

/* ========================================
   MOBILE PORTRAIT — THEATRE FLOOR
   TREES AND PRESENTS DOWN 25PX
   ======================================== */

/* Far-left and far-right theatre trees */
.christmas-floor-far-left,
.christmas-floor-far-right {
    translate: 0 25px !important;
}

/* Left and right Victorian theatre presents */
.christmas-presents-left,
.christmas-presents-right {
    translate: 0 25px !important;
}

}

/* ========================================
   PRISMARA ACORN DISCOVERY
   MOBILE LANDSCAPE ONLY
   ======================================== */

@media screen and (orientation: landscape)
       and (max-device-width: 950px) {

    .prismara-theatre-lower #acorn-discovery {
        left: 50% !important;
        right: auto !important;
        width: 280px !important;
        top: calc(42% + 160px) !important;
        text-align: center !important;
    }

}

/* ========================================
   THE BEAST — ANDROID BACKGROUND TEST
   ======================================== */

@media screen and (orientation: portrait) {

    body {
        background-size: auto 100svh;
        background-position: center top;
    }

}