
/* RC100: original six-sided Codrops cube mechanism intact; no flat-card substitutes. */
:root { --noel-cube-size:clamp(72px,min(7.3vw,11.2vh),110px); --noel-gap:clamp(10px,1.3vw,19px) }
.js .calendar { padding:clamp(16px,3vh,35px) 24px 70px!important; }
.js .calendar .cubes {
 display:grid!important; width:max-content;max-width:100%;min-height:min-content;height:auto;
 grid-template-columns:repeat(6,var(--noel-cube-size))!important;
 grid-template-rows:repeat(5,var(--noel-cube-size))!important;
 gap:var(--noel-gap)!important;margin:auto;padding:clamp(10px,2vh,18px) 12px 45px!important;
 align-content:center;align-items:center;justify-content:center;justify-items:center;
 transform-style:preserve-3d!important;perspective:inherit;
}
.js .calendar .cube {
 position:relative!important;display:block!important;width:var(--noel-cube-size)!important;
 height:var(--noel-cube-size)!important;flex:none!important;margin:0!important;
 transform-style:preserve-3d!important; perspective:inherit!important;isolation:auto;
 box-shadow:none!important;
}
.js .calendar .cube .cube__side{
 position:absolute!important;inset:0!important;
 border:3px solid #fffaf6!important;outline:1px solid #fff9!important;
 backface-visibility:hidden!important;
 background:#f7f1e9 url('/assets/advent-codrops/img/c1.png') center / cover no-repeat!important;
 box-shadow:inset 0 0 2px #24020955!important;
 filter:none!important;
}
.js .calendar .cube:nth-child(5n+2) .cube__side{background-image:url('/assets/advent-codrops/img/c2.png')!important}
.js .calendar .cube:nth-child(5n+3) .cube__side{background-image:url('/assets/advent-codrops/img/c3.png')!important}
.js .calendar .cube:nth-child(5n+4) .cube__side{background-image:url('/assets/advent-codrops/img/c4.png')!important}
.js .calendar .cube:nth-child(5n+5) .cube__side{background-image:url('/assets/advent-codrops/img/c5.png')!important}
.js .calendar .cube .cube__side--front{transform:translateZ(calc(var(--noel-cube-size) / 2))!important}
.js .calendar .cube .cube__side--back{transform:rotateY(180deg) translateZ(calc(var(--noel-cube-size) / 2))!important}
.js .calendar .cube .cube__side--right{transform:rotateY(90deg) translateZ(calc(var(--noel-cube-size) / 2))!important}
.js .calendar .cube .cube__side--left{transform:rotateY(-90deg) translateZ(calc(var(--noel-cube-size) / 2))!important}
.js .calendar .cube .cube__side--top{transform:rotateX(90deg) translateZ(calc(var(--noel-cube-size) / 2))!important}
.js .calendar .cube .cube__side--bottom{transform:rotateX(-90deg) translateZ(calc(var(--noel-cube-size) / 2))!important}
.js .calendar .cube .cube__number {font:800 clamp(18px,2vw,27px)/1.5 'Sora',Arial,sans-serif!important;
 color:#ba1026!important;background:#fffaf4!important; height:1.5em!important;top:50%!important;bottom:auto!important;
 text-shadow:none!important;z-index:2;transform:translateY(-50%);margin:0!important}
.js .calendar .cube:nth-child(3n) .cube__number {color:#fff!important;background:#bd1029!important}
.js .calendar .cube:nth-child(25) .cube__side,.js .calendar .cube:nth-child(30) .cube__side{border-color:#ffb0b8!important}
.content__number{left:clamp(20px,5vw,80px)!important;right:auto!important;bottom:17vh!important;
 color:rgba(209,18,47,.52)!important;font-size:clamp(180px,27vw,425px)!important;
 letter-spacing:-.14em!important;text-indent:0!important;max-width:40vw;overflow:visible;}
.js .content__block {padding-left:clamp(220px,31vw,560px)!important;padding-right:clamp(30px,6vw,110px)!important;}
.content__title{font-size:clamp(38px,5.5vw,90px)!important;max-width:100%!important;line-height:1.06!important;overflow:visible!important}
.content__description,.content__meta {max-width:750px!important}
/* The two curtain textures align as a single unbroken gradient until user-activated split. */
.xmas-preloader__door{border:0!important;outline:0!important;box-shadow:none!important;
 width:50.01%!important;background:radial-gradient(ellipse at 50% 42%,#991027 0%,#4f0713 49%,#100306 100%)!important;
 background-size:200% 100%!important;background-repeat:no-repeat!important;}
.xmas-preloader__door--left{background-position:left center!important}
.xmas-preloader__door--right{background-position:right center!important}
.xmas-progress-text{display:none!important}
.xmas-preloader .xmas-peppermint {--percent:0%;font-size:clamp(23px,2.65vw,39px);width:10em;height:1.5em;margin:12px 0 24px;
 display:flex;align-items:center;overflow:visible;background:none!important;}
.xmas-preloader .pm__input-fill{background:none!important}
.xmas-preloader .pm__input-fill:before{transform:translateX(calc(-100% + var(--percent)))!important}
.xmas-preloader .pm__input-handle-bg,.xmas-preloader .pm__input-handle-shadow{left:var(--percent)!important}
/* Music is accessible from every opened door, while not trapping clicks on the gallery. */
.advent-sound {position:fixed;bottom:clamp(15px,3vw,28px);right:clamp(15px,3vw,30px);z-index:900;
 display:flex;flex-direction:column;align-items:flex-end;gap:6px;max-width:calc(100vw - 30px)}
.advent-sound__toggle {display:flex;align-items:center;gap:9px;padding:12px 17px;border:1px solid #ffffff69;
 border-radius:999px;background:#1b030adf;backdrop-filter:blur(12px);color:#fffaf4;font:700 11px 'Montserrat',sans-serif;
 letter-spacing:.08em;cursor:pointer;box-shadow:0 8px 24px #0009;transition:background .25s,transform .25s}
.advent-sound__toggle:hover{background:#b50925;transform:translateY(-2px)}
.advent-sound__toggle:focus-visible{outline:2px solid #fff;outline-offset:3px}
.advent-sound__toggle[aria-pressed="true"]{background:#9f0822}
.advent-sound__credit {color:#fff9;font:9px 'Montserrat',sans-serif;text-decoration:none;text-shadow:0 2px 7px #000}
.xmas-preloader:not(.is-opening)~.advent-sound {visibility:hidden}
@media(max-width:1000px){
 :root{--noel-cube-size:clamp(70px,min(11.5vw,11vh),95px);--noel-gap:clamp(9px,1.5vw,17px)}
 .js .calendar .cubes{grid-template-columns:repeat(5,var(--noel-cube-size))!important;grid-template-rows:repeat(6,var(--noel-cube-size))!important}
 .js .content__block{padding-left:22vw!important}
 .content__number{font-size:31vw!important}
}
@media(max-width:640px){
 :root{--noel-cube-size:clamp(70px,22vw,104px);--noel-gap:clamp(9px,2vw,15px)}
 .js .calendar {padding:20px 8px 50px!important;overflow:auto!important}
 .js .calendar .cubes{grid-template-columns:repeat(3,var(--noel-cube-size))!important;grid-template-rows:repeat(10,var(--noel-cube-size))!important;max-width:100%;padding-bottom:90px!important}
 .js .content__block{padding:clamp(100px,22svh,180px) 7vw 0!important}
 .content__number{top:13svh!important;bottom:auto!important;left:7vw!important;font-size:44vw!important;color:rgba(209,18,47,.36)!important}
 .content__title{font-size:clamp(30px,9vw,50px)!important}
 .advent-sound {bottom:16px;right:16px}
 .advent-sound__credit{display:none}
}
@media(max-width:360px){
 .js .calendar .cubes{grid-template-columns:repeat(2,var(--noel-cube-size))!important;grid-template-rows:repeat(15,var(--noel-cube-size))!important}
}
@media(prefers-reduced-motion:reduce){.advent-sound__toggle,.xmas-preloader .pm__input-fill:before{animation:none!important;transition:none!important}}

/* RC101: filter on a 3D parent FLATTENS its 6 faces. Keep real 3D; shadow on faces only. */
.js .calendar .cubes {filter:none!important;overflow:visible!important;transform-style:preserve-3d!important}
.js .calendar .cube {filter:none!important;backdrop-filter:none!important;overflow:visible!important;
  transform-style:preserve-3d!important;isolation:auto!important;contain:none!important}
.js .calendar .cube .cube__side {filter:none!important;backface-visibility:hidden!important;
  -webkit-backface-visibility:hidden!important}
.js .calendar .cube .cube__side--front {box-shadow:inset 0 0 2px #24020955,0 9px 24px #1a020733!important}
/* Audio control requested at bottom-left (desktop, tablet, mobile). */
.advent-sound {left:clamp(15px,3vw,30px)!important;right:auto!important;align-items:flex-start!important}
@media(max-width:640px){.advent-sound{left:16px!important;right:auto!important}}


/* RC102: music controls and track details in the upper-left corner. */
.advent-sound{top:clamp(14px,2.2vw,26px)!important;bottom:auto!important;
 left:clamp(15px,3vw,30px)!important;right:auto!important;align-items:flex-start!important}
@media(max-width:640px){.advent-sound{top:12px!important;left:12px!important;bottom:auto!important;right:auto!important}}


/* R13 — description contrast. All eleven Christmas leaks; no backgrounds added.
   High-specificity overrides intentionally win over inline legacy !important
   white body text. Preserve the premium transparent reveal. */
.js .content .content__block.neo-case-one .neo-case-one__copy p:not(.neo-case-one__signature),
.js .content .content__block.neo-case-one .neo-case-one__copy ul,
.js .content .content__block.neo-case-one .neo-case-one__copy li {
  color:#f6d49c!important;
  text-shadow:0 2px 3px #021019,0 0 10px rgba(0,0,0,.95),0 0 20px rgba(0,0,0,.65)!important;
  font-weight:550!important;
  line-height:1.78!important;
}
.js .content .content__block.neo-case-one .neo-case-one__copy p:not(.neo-case-one__signature){
  font-size:clamp(14px,1.08vw,15.5px)!important;
}
.js .content .content__block.neo-case-one .neo-case-one__copy li {
  font-size:clamp(13px,1vw,14.5px)!important;
  padding-left:3px!important;
}
.js .content .content__block.neo-case-one .neo-case-one__copy li::marker {
  color:#ffd98b!important;
}
.js .content .content__block.neo-case-one .neo-case-one__copy p strong,
.js .content .content__block.neo-case-one .neo-case-one__copy p b {
  color:#fff0c8!important;
  font-weight:750!important;
}
.js .content .content__block.neo-case-one .neo-case-one__header-copy .neo-case-one__hint,
.js .content .content__block.neo-case-one .neo-r5-gallery-hint,
.js .content .content__block.neo-case-one .neo-case-one__envelope-text span,
.js .content .content__block.neo-case-one .neo-case-one__player-note span {
  color:#edca8e!important;
  text-shadow:0 2px 3px #07121d,0 0 13px rgba(0,0,0,.85)!important;
  font-weight:650!important;
}
@media (max-width:650px) {
  .js .content .content__block.neo-case-one .neo-case-one__copy p:not(.neo-case-one__signature){
    font-size:13.5px!important;line-height:1.72!important;
  }
  .js .content .content__block.neo-case-one .neo-case-one__copy li{
    font-size:13px!important;line-height:1.72!important;
  }
}

/* Signature of each revealed story: more legible than the former pale white. */
.js .content .content__block.neo-case-one .neo-case-one__copy .neo-case-one__signature {
  color:#ffdf9e!important;
  text-shadow:0 2px 3px #06121f,0 0 12px #000c!important;
  font-weight:650!important;
}
