/* Рождество Лучика · живопись + сенсоры + VFX */
.noel-native,
.noel-board.noel-native{
  --noel-ink:#3a2418;
  --noel-snow:#f4f7fb;
  --noel-gold:#e0b14a;
  --noel-crimson:#b83232;
  --noel-pine:#2d6b48;
  color:var(--noel-ink);
  display:flex;
  flex-direction:column;
  min-height:0;
  flex:1;
  gap:8px;
}
.noel-playfield{display:flex;flex-direction:column;gap:8px;min-height:0;flex:1}
.noel-scene{
  position:relative;
  flex:1;
  min-height:220px;
  border-radius:18px;
  overflow:hidden;
  background-color:#1a2a38;
  background-size:cover;
  background-position:center;
  border:1px solid #c9b48a;
  box-shadow:0 8px 28px #2a1a1233;
}
.noel-badge{
  position:absolute;z-index:4;left:10px;top:10px;
  padding:8px 12px;border-radius:12px;
  background:#2a1810e8;color:#fff4e0;font-weight:800;font-size:13px;
}
.noel-play{position:absolute;inset:0;z-index:2}
.noel-vfx{
  position:absolute;inset:0;z-index:3;width:100%;height:100%;
  pointer-events:none;
}
.noel-status{
  margin:0;padding:10px 12px;border-radius:12px;
  background:#fff8eee8;border:1px solid #e0c9a0;
  font-size:14px;line-height:1.4;min-height:44px;
}
.noel-start-wrap,.noel-toolbar{display:flex;justify-content:center;gap:8px;padding:4px 0 8px;flex-wrap:wrap}
.noel-toolbar[hidden]{display:none}
.noel-start-btn{
  min-height:48px;min-width:148px;padding:12px 22px;border:0;border-radius:16px;
  background:linear-gradient(180deg,#d45a4a,#9e2e28);color:#fff;font-weight:850;font-size:16px;
  box-shadow:0 4px 0 #5c1a16;touch-action:manipulation;
}

.noel-frost-glass,
.noel-star-canvas,
.noel-melt-canvas{
  position:absolute;inset:0;width:100%;height:100%;touch-action:none;
}

/* giftwrap · spin cube, pull ribbon along the facing groove */
.noel-scene-giftwrap{background-position:center 58%}
.noel-scene-giftwrap .noel-play{touch-action:none}
.noel-wrap-stage{position:absolute;inset:0;display:flex;flex-direction:column;touch-action:none}
.noel-wrap-world{
  position:relative;flex:1;min-height:0;
  perspective:720px;perspective-origin:50% 46%;
  display:flex;align-items:center;justify-content:center;
}
.noel-wrap-cube{
  --side:168px;
  width:var(--side);height:var(--side);
  position:relative;transform-style:preserve-3d;
  transform:rotateX(var(--rx,-18deg)) rotateY(var(--ry,-20deg));
  cursor:grab;
}
.noel-wrap-cube.is-spin{cursor:grabbing;transition:none}
.noel-wrap-cube.is-snap{transition:transform .38s cubic-bezier(.2,.8,.2,1)}
.noel-wrap-world.is-shake{animation:noel-wrap-shake .38s ease}
.noel-wrap-face{
  position:absolute;inset:0;width:100%;height:100%;
  background-color:#f3e4c4;background-size:cover;background-position:center;
  backface-visibility:hidden;
  box-shadow:inset 0 0 0 1px #2a181033;
  overflow:hidden;
}
.noel-wrap-face.is-F{transform:rotateY(0deg) translateZ(calc(var(--side)/2 + 0.4px))}
.noel-wrap-face.is-B{transform:rotateY(180deg) translateZ(calc(var(--side)/2 + 0.4px))}
.noel-wrap-face.is-R{transform:rotateY(90deg) translateZ(calc(var(--side)/2 + 0.4px))}
.noel-wrap-face.is-L{transform:rotateY(-90deg) translateZ(calc(var(--side)/2 + 0.4px))}
.noel-wrap-face.is-U{transform:rotateX(90deg) translateZ(calc(var(--side)/2 + 0.4px))}
.noel-wrap-face.is-D{transform:rotateX(-90deg) translateZ(calc(var(--side)/2 + 0.4px))}
.noel-wrap-face.is-front{box-shadow:inset 0 0 0 2px #ffe27acc,0 0 16px #ffe27a55;overflow:visible}
.noel-wrap-groove{
  position:absolute;pointer-events:none;border-radius:8px;
  box-shadow:inset 0 0 0 1.5px #ffe27a99;
  background:repeating-linear-gradient(90deg,#ffe27a55 0 6px,transparent 6px 11px);
  opacity:.55;
}
.noel-wrap-groove.is-h{left:4%;right:4%;top:38%;height:24%}
.noel-wrap-groove.is-v{top:4%;bottom:4%;left:38%;width:24%;background:repeating-linear-gradient(180deg,#ffe27a55 0 6px,transparent 6px 11px)}
.noel-wrap-groove.is-wrong{box-shadow:inset 0 0 0 1.5px #d45a4a99;opacity:.35}
.noel-wrap-band{
  position:absolute;background-size:cover;background-position:center;
  pointer-events:none;filter:drop-shadow(0 2px 3px #0005);
}
.noel-wrap-band.is-h{left:0;top:38%;height:24%;width:calc(var(--t,1)*100%);transform-origin:left center}
.noel-wrap-band.is-v{top:0;left:38%;width:24%;height:calc(var(--t,1)*100%);transform-origin:center top}
.noel-wrap-handle{
  position:absolute;z-index:3;width:36px;height:36px;border-radius:50%;
  border:2px solid #fff8e0;background:radial-gradient(circle at 40% 35%,#ffe27a,#c9a24a);
  box-shadow:0 0 0 3px #ffe27a66,0 4px 8px #0006;
  pointer-events:none;touch-action:none;
}
.noel-wrap-handle.is-h{top:50%;left:calc(var(--t,0)*100%);transform:translate(-50%,-50%)}
.noel-wrap-handle.is-v{left:50%;top:calc(var(--t,0)*100%);transform:translate(-50%,-50%)}
.noel-wrap-pull{
  position:absolute;z-index:8;width:52px;height:52px;margin:0;padding:0;
  border-radius:50%;border:3px solid #fff8e0;
  background:radial-gradient(circle at 35% 30%,#fff6c8,#f0c14a 46%,#c9891a);
  box-shadow:0 0 0 6px #ffe27a99,0 8px 16px #0008;
  transform:translate(-50%,-50%);
  touch-action:none;cursor:grab;pointer-events:auto;
  animation:noel-wrap-pull 1.15s ease-in-out infinite;
}
.noel-wrap-pull[hidden]{display:none}
@keyframes noel-wrap-pull{
  0%,100%{box-shadow:0 0 0 6px #ffe27a88,0 8px 16px #0008;transform:translate(-50%,-50%) scale(1)}
  50%{box-shadow:0 0 0 12px #ffe27acc,0 8px 16px #0008;transform:translate(-50%,-50%) scale(1.08)}
}
.noel-wrap-bow{
  position:absolute;left:50%;top:42%;width:54%;transform:translate(-50%,-50%) rotateX(8deg);
  z-index:4;pointer-events:none;filter:drop-shadow(0 8px 12px #0007);
  animation:noel-wrap-bow .55s cubic-bezier(.2,.9,.25,1.15) both;
}
.noel-wrap-bow>img{width:100%;display:block}
.noel-wrap-tray{
  z-index:5;flex:0 0 auto;display:flex;justify-content:center;gap:8px;
  padding:8px;background:linear-gradient(180deg,#1a141088,#2a1810cc);
}
.noel-wrap-spool{
  min-height:64px;min-width:96px;flex:1;max-width:160px;border:1px solid #d8c29a88;border-radius:16px;
  background:linear-gradient(180deg,#fffaf0f2,#ead9b8f0);color:#3a2418;font-weight:800;font-size:12px;
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;
  padding:6px;touch-action:manipulation;box-shadow:0 4px 0 #c9b48a55;
}
.noel-wrap-spool.is-on{box-shadow:0 0 0 2px #ffe27a,0 4px 0 #c9b48a55}
.noel-wrap-spool>img{width:72px;height:18px;object-fit:cover;border-radius:6px;display:block}
@keyframes noel-wrap-shake{
  0%,100%{transform:translateX(0)}
  25%{transform:translateX(-6px)}
  75%{transform:translateX(6px)}
}
@keyframes noel-wrap-bow{
  0%{opacity:0;transform:translate(-50%,-50%) scale(.4) rotate(-12deg)}
  100%{opacity:1;transform:translate(-50%,-50%) scale(1) rotate(0)}
}
@media (max-width:360px){
  .noel-wrap-cube{--side:148px}
  .noel-wrap-spool{min-height:56px;font-size:11px}
}

/* tree deck · realistic Three.js spruce + painted cutout ornaments */
.noel-scene-treedeck,.noel-scene-treedeck-live{background:
  radial-gradient(ellipse at 50% 20%,#fff6e8cc,transparent 55%),
  linear-gradient(180deg,#f7ecd8 0%,#ead7b6 55%,#d8c09a 100%)}
.noel-scene-treedeck-live .noel-tree-world{
  background:radial-gradient(ellipse at 50% 78%,#c9a87833,transparent 55%);
}
.noel-tree-stage{position:absolute;inset:0;display:flex;flex-direction:column;touch-action:none}
.noel-tree-world{position:relative;flex:1;min-height:0;overflow:hidden}
.noel-tree-level-notice:not([hidden]){position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);z-index:8;padding:12px 24px;border-radius:18px;background:#2a1810e8;color:#fff4e0;font-size:clamp(20px,6vw,30px);font-weight:800;white-space:nowrap;pointer-events:none}
.noel-tree-canvas{position:absolute;inset:0;width:100%;height:100%;display:block;touch-action:none}
.noel-tree-hint{
  position:absolute;left:10px;top:52px;z-index:4;
  padding:5px 12px;border-radius:999px;font-size:12px;font-weight:800;color:#fff4e0;
  background:#2a1810cc;border:1px solid #c9b48a66;pointer-events:none;white-space:nowrap;
}
.noel-tree-stage.is-play .noel-tree-hint{display:none}
.noel-tree-stage.is-star-drag .noel-tree-world::after{
  content:'Поставь звезду сюда';position:absolute;left:50%;top:7%;z-index:6;
  transform:translateX(-50%);padding:5px 10px;border:2px dashed #ffe27a;
  border-radius:999px;background:#2a1810dd;color:#fff4e0;font-size:12px;font-weight:800;
  pointer-events:none;box-shadow:0 0 0 6px #ffe27a33,0 0 18px #ffe27aaa;
}
.noel-tree-recipe{
  position:absolute;left:8px;right:8px;bottom:8px;z-index:4;
  display:flex;flex-wrap:wrap;gap:6px;justify-content:center;pointer-events:none;
}
.noel-tree-stage.is-play .noel-tree-recipe{display:none}
.noel-tree-chip{
  display:inline-flex;align-items:center;gap:6px;padding:4px 10px;border-radius:999px;
  background:#2a1810dd;color:#fff4e0;font-size:11px;font-weight:800;border:1px solid #c9b48a55;
}
.noel-tree-chip>i{width:10px;height:10px;border-radius:50%;box-shadow:0 0 0 1px #fff6}
.noel-tree-preview{position:absolute;inset:0;z-index:3;pointer-events:none;opacity:0;transition:opacity .25s ease}
.noel-tree-preview.is-on{opacity:1}
.noel-preview-tag{
  position:absolute;transform:translate(-50%,-120%);z-index:4;pointer-events:none;
  animation:noel-preview-pop .4s cubic-bezier(.2,.9,.25,1.15) both;
}
.noel-preview-tag>span{
  display:inline-block;padding:2px 8px;border-radius:999px;font-size:10px;font-weight:800;
  color:#fff4e0;background:#1a1410cc;border:1px solid #ffe27a88;white-space:nowrap;
}
.noel-tree-tray{
  z-index:5;flex:0 0 auto;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));
  gap:6px;padding:6px 8px 6px;
  background:linear-gradient(180deg,#1a141088,#2a1810cc);
}
.noel-tree-tray-wide{grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;padding:4px 6px 4px}
.noel-tree-stage.is-preview .noel-tree-tray{display:none}
.noel-tree-stage.is-preview .noel-tree-tray{display:grid;visibility:hidden}
.noel-tree-tools{min-height:48px;box-sizing:border-box}
.noel-tree-tools{
  z-index:5;flex:0 0 auto;display:flex;justify-content:center;gap:8px;padding:0 8px 8px;
  background:linear-gradient(180deg,#2a181000,#2a1810cc);
}
.noel-tree-peek{
  min-height:40px;padding:8px 16px;border-radius:999px;border:1px solid #d8c29a88;
  background:linear-gradient(180deg,#fff8e0,#ffe7a8);color:#3a2418;font-weight:800;font-size:13px;
  box-shadow:0 3px 0 #c9a24a55;
}
.noel-preview-bar{
  height:6px;width:min(70%,220px);border-radius:999px;background:#4a382855;overflow:hidden;align-self:center;
}
.noel-preview-bar::after{
  content:'';display:block;height:100%;width:0;background:linear-gradient(90deg,#c43a3a,#ffe27a);
  border-radius:inherit;
}
.noel-preview-bar.is-run::after{animation:noel-preview-fill 3.2s linear forwards}
.noel-tree-part{
  min-height:46px;border:1px solid #d8c29a88;border-radius:10px;
  background:linear-gradient(180deg,#fffaf0f2,#ead9b8f0);
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;
  font-size:11px;font-weight:800;color:#3a2418;padding:4px 2px 6px;position:relative;
  touch-action:none;cursor:grab;box-shadow:0 4px 0 #c9b48a55,0 8px 16px #0005;
}
.noel-tree-part.is-decoy{outline:1px dashed #8a7a66}
.noel-tree-part.is-done,.noel-tree-part:disabled{opacity:.4;cursor:default;filter:grayscale(.3)}
.noel-tree-part:not(:disabled):active{cursor:grabbing;transform:scale(.96)}
.noel-part-photo{
  width:36px;height:36px;object-fit:contain;display:block;
  filter:drop-shadow(0 3px 6px #0006);
  background:transparent;border-radius:0;
}
.noel-part-swatch{
  position:absolute;top:6px;right:6px;width:10px;height:10px;border-radius:50%;
  box-shadow:0 0 0 1px #fff8,0 1px 3px #0005;
}
.noel-drag-ghost{
  position:fixed;z-index:4000;width:88px;height:88px;transform:translate(-50%,-55%) rotate(-6deg) scale(1.05);
  pointer-events:none;filter:drop-shadow(0 14px 20px #000a) drop-shadow(0 0 12px #ffe27a66);
  transition:filter .12s ease;
}
.noel-drag-ghost.is-over{filter:drop-shadow(0 14px 20px #000a) drop-shadow(0 0 22px #ffe27acc);transform:translate(-50%,-55%) rotate(-2deg) scale(1.12)}
.noel-drag-ghost.is-bad{filter:drop-shadow(0 14px 20px #000a) drop-shadow(0 0 16px #c43a3a88)}
.noel-drag-ghost>img{width:100%;height:100%;object-fit:contain;display:block;background:transparent}
.noel-tree-stage.is-dragging .noel-tree-hint{background:#3a2818ee;border-color:#ffe27a88}
@keyframes noel-preview-pop{
  0%{opacity:0;transform:translate(-50%,-50%) scale(.4)}
  100%{opacity:1;transform:translate(-50%,-50%) scale(1)}
}
@keyframes noel-preview-fill{to{width:100%}}
@media (prefers-reduced-motion:reduce){
  .noel-preview-orn{animation:none}
  .noel-preview-bar.is-run::after{animation:none;width:100%}
}

/* camera */
.noel-cam-video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;background:#102018}
.noel-cam-aim{
  position:absolute;left:50%;top:42%;width:42%;aspect-ratio:1;transform:translate(-50%,-50%);
  border:3px solid #ffe27acc;border-radius:18px;box-shadow:0 0 0 999px #10201855;pointer-events:none;
}
.noel-cam-target{
  position:absolute;left:10px;right:10px;bottom:12px;z-index:5;
  display:flex;align-items:center;gap:10px;padding:10px 12px;border-radius:14px;
  background:#2a1810e8;color:#fff4e0;pointer-events:none;
}
.noel-cam-target>span{width:28px;height:28px;border-radius:50%;border:2px solid #fff8;flex:0 0 auto}
.noel-cam-target small{display:block;font-size:11px;opacity:.8}
.noel-cam-target strong{font-size:16px}
.noel-charge{height:10px;border-radius:999px;background:#e8dcc8;overflow:hidden;margin:0 2px}
.noel-charge>span{display:block;height:100%;width:0;background:linear-gradient(90deg,#c43a3a,#e0b14a);border-radius:inherit;transition:width .08s linear}
.noel-charge>span.is-noise{background:linear-gradient(90deg,#7a6a4a,#c43a3a)}
.noel-cam-sample{
  position:absolute;left:8px;right:8px;top:46px;z-index:6;display:none;gap:8px;justify-content:center;flex-wrap:wrap;
  padding:8px;border-radius:14px;background:#2a1810e8;
}
.noel-cam-sample.is-on{display:flex}
.noel-cam-chip{
  display:flex;flex-direction:column;align-items:center;gap:4px;opacity:.55;transform:scale(.92);transition:.2s ease;
  color:#fff4e0;font-size:11px;font-weight:800;
}
.noel-cam-chip>i{width:22px;height:22px;border-radius:50%;border:2px solid #fff6;display:block}
.noel-cam-chip.is-flash{opacity:1;transform:scale(1.08);filter:drop-shadow(0 0 8px #ffe27a)}

/* bells · painted hanging sprites */
.noel-bells{
  position:absolute;left:1.5%;right:1.5%;top:3%;bottom:2%;
  display:grid;grid-template-columns:repeat(4,minmax(0,1fr));
  grid-template-rows:minmax(0,1fr) minmax(78px,30%);
  gap:2px 4px;align-items:stretch;
}
.noel-bells-4 .noel-bell-silent{
  grid-column:2 / 4;width:min(46%,112px);justify-self:center;
}
.noel-bell{
  background:transparent;border:0;color:#fff4e0;
  display:flex;flex-direction:column;align-items:center;justify-content:flex-start;
  gap:4px;min-width:0;min-height:44px;height:100%;width:100%;padding:0;cursor:pointer;
  touch-action:manipulation;font-weight:800;font-size:11px;
}
.noel-bell:nth-child(1){padding-top:6%}
.noel-bell:nth-child(2){padding-top:0}
.noel-bell:nth-child(3){padding-top:8%}
.noel-bell:nth-child(4){padding-top:3%}
.noel-bell:disabled{opacity:1;cursor:default}
.noel-bell-art{
  position:relative;flex:1;min-height:0;width:100%;
  display:flex;align-items:flex-start;justify-content:center;
}
.noel-bell-sprite{
  display:block;max-width:100%;max-height:100%;width:auto;height:auto;
  object-fit:contain;object-position:top center;transform-origin:50% 6%;
  filter:drop-shadow(0 10px 12px #1a120888);
  pointer-events:none;user-select:none;
}
.noel-bell-wave{
  position:absolute;left:50%;top:68%;width:42%;aspect-ratio:1;
  border-radius:50%;border:2px solid transparent;pointer-events:none;
  transform:translate(-50%,-50%) scale(.35);opacity:0;
}
.noel-bell b{
  flex:none;max-width:100%;box-sizing:border-box;
  padding:2px 6px;border-radius:999px;
  background:#2a1810e0;color:#fff4e0;font-size:11px;line-height:1.15;
  text-align:center;white-space:nowrap;overflow:hidden;
  box-shadow:0 2px 0 #1a1008aa;
}
@media (max-width:360px){
  .noel-bells{grid-template-rows:minmax(0,1fr) minmax(64px,28%);gap:2px}
  .noel-bell b{font-size:9px;padding:2px 3px;letter-spacing:-.03em}
}
.noel-bell[data-bell="0"] b{color:#f0c090}
.noel-bell[data-bell="1"] b{color:#d4e0ea}
.noel-bell[data-bell="2"] b{color:#ffe27a}
.noel-bell[data-bell="3"] b{color:#c8eaf6}
.noel-bell-silent b{color:#f0c0b8}
.noel-bell.is-lit .noel-bell-sprite{
  filter:drop-shadow(0 0 16px #ffe27ad0) drop-shadow(0 8px 10px #1a120866);
}
.noel-bell[data-bell="0"].is-lit .noel-bell-sprite{filter:drop-shadow(0 0 16px #e08a4ad0) drop-shadow(0 8px 10px #1a120866)}
.noel-bell[data-bell="1"].is-lit .noel-bell-sprite{filter:drop-shadow(0 0 16px #c8d8ead0) drop-shadow(0 8px 10px #1a120866)}
.noel-bell[data-bell="2"].is-lit .noel-bell-sprite{filter:drop-shadow(0 0 18px #ffe27ad8) drop-shadow(0 8px 10px #1a120866)}
.noel-bell[data-bell="3"].is-lit .noel-bell-sprite{filter:drop-shadow(0 0 18px #9fe4f4d0) drop-shadow(0 8px 10px #1a120866)}
.noel-bell-silent.is-lit .noel-bell-sprite{filter:drop-shadow(0 0 14px #c9a090cc) drop-shadow(0 8px 10px #1a120866)}
.noel-bell.is-ringing .noel-bell-sprite{animation:noel-bell-swing .62s ease-out}
.noel-bell-silent.is-ringing .noel-bell-sprite{animation:noel-bell-nudge .42s ease-out}
.noel-bell.is-ringing .noel-bell-wave{animation:noel-bell-wave .55s ease-out}
.noel-bell[data-bell="0"] .noel-bell-wave{border-color:#e08a4a}
.noel-bell[data-bell="1"] .noel-bell-wave{border-color:#c8d8ea}
.noel-bell[data-bell="2"] .noel-bell-wave{border-color:#ffe27a}
.noel-bell[data-bell="3"] .noel-bell-wave{border-color:#9fe4f4}
.noel-bell-silent .noel-bell-wave{border-color:#c9a090}
@keyframes noel-bell-swing{
  0%{transform:rotate(0)}
  18%{transform:rotate(-13deg)}
  40%{transform:rotate(10deg)}
  62%{transform:rotate(-6deg)}
  82%{transform:rotate(3deg)}
  100%{transform:rotate(0)}
}
@keyframes noel-bell-nudge{
  0%{transform:rotate(0)}
  30%{transform:rotate(-5deg)}
  65%{transform:rotate(3deg)}
  100%{transform:rotate(0)}
}
@keyframes noel-bell-wave{
  0%{opacity:.9;transform:translate(-50%,-50%) scale(.4)}
  100%{opacity:0;transform:translate(-50%,-50%) scale(2.35)}
}

/* globe */
.noel-scene-jingleshake{container-type:inline-size;background-size:100% auto;background-position:center center;flex:0 0 auto;height:clamp(220px,37dvh,280px)}
.noel-scene-jingleshake .noel-play{z-index:4}
.noel-globe{
  position:absolute;left:50%;top:calc(50% + 2.2cqw);transform:translate(-50%,-50%);
  width:53cqw;aspect-ratio:1;border-radius:50%;
  background:radial-gradient(circle at 32% 22%,#ffffff2e,transparent 64%);
  border:0;overflow:hidden;box-shadow:inset 0 0 22px #fff3;
  touch-action:manipulation;z-index:4;
}
.noel-globe-flakes{position:absolute;inset:0;pointer-events:none;z-index:3}
.noel-flake{
  position:absolute;inset:0;pointer-events:none;
  animation:noel-snow-orbit 1.8s linear forwards;
}
.noel-flake::before{
  content:'';position:absolute;left:50%;top:50%;width:var(--flake-size);height:var(--flake-size);
  margin:calc(var(--flake-size) / -2);border-radius:50%;background:#fff;
  transform:rotate(var(--angle)) translateX(var(--radius));
  box-shadow:0 0 5px #fff,0 0 10px #d7f4ff;
}
@keyframes noel-snow-orbit{0%{transform:rotate(0deg) scale(.8);opacity:0}12%{opacity:.95}75%{opacity:.9}100%{transform:rotate(540deg) scale(1);opacity:0}}
@media (prefers-reduced-motion:reduce){.noel-flake{animation:none;opacity:.65}}
.noel-globe-figure{
  position:absolute;inset:16% 14% 20%;
  display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:4%;
  background:none;opacity:1;z-index:2;
}
.noel-globe-figure.is-empty{display:none}
.noel-globe-figure.is-sample .noel-jingle-fig,.noel-globe-figure.is-sample .noel-jingle-missing{width:44%;height:44%;object-fit:contain;filter:drop-shadow(0 3px 6px #0006)}
.noel-globe-figure.count-4 .noel-jingle-fig,.noel-globe-figure.count-4 .noel-jingle-missing,.noel-globe-figure.count-5 .noel-jingle-fig,.noel-globe-figure.count-5 .noel-jingle-missing{width:30%;height:42%}
.noel-jingle-missing{display:block;border-radius:50%;background:radial-gradient(ellipse,#fff9 0%,#fff3 40%,transparent 72%);animation:noel-missing-glow 1.8s ease-in-out infinite alternate}
@keyframes noel-missing-glow{from{opacity:.4}to{opacity:.85}}
@media (prefers-reduced-motion:reduce){.noel-jingle-missing{animation:none}}
.noel-globe-figure.is-solo{inset:18% 18% 22%;display:grid;place-items:center}
.noel-globe-figure.is-solo .noel-jingle-fig{width:86%;height:86%;object-fit:contain;filter:drop-shadow(0 4px 10px #0005)}
.noel-jingle-picks{
  position:relative;flex:none;
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;
}
.noel-jingle-picks:empty{display:none}
.noel-jingle-pick{
  min-height:52px;border-radius:14px;border:1px solid #d8c29a;background:linear-gradient(180deg,#fff8e8,#ead9b8);
  color:#3a2418;font-weight:800;font-size:13px;touch-action:manipulation;
  display:flex;align-items:center;gap:8px;padding:6px 10px;justify-content:flex-start;
}
.noel-jingle-pick .noel-jingle-fig{width:40px;height:40px;object-fit:contain;flex-shrink:0}
.noel-jingle-pick b{font-size:13px;line-height:1.15;text-align:left}

/* cipher panes */
.noel-cipher-grid{
  position:absolute;inset:12% 8% 16%;display:grid;grid-template-columns:1fr 1fr;grid-template-rows:1fr 1fr;gap:10px;
}
.noel-cipher-pane{
  position:relative;border-radius:14px;overflow:hidden;border:2px solid #c9b48a88;
  background:linear-gradient(160deg,#1a3048,#0e1c2c);display:grid;place-items:center;
  color:#fff4e0;font-weight:900;font-size:22px;transition:box-shadow .15s ease,border-color .15s ease;
}
.noel-cipher-frost{
  position:absolute;inset:0;background:
    linear-gradient(135deg,#dcebfada,#b4d2ebcc 50%,#96b9dce6);
  opacity:.92;pointer-events:none;transition:opacity .25s ease;
}
.noel-cipher-pane>b{position:relative;z-index:1;text-shadow:0 1px 4px #0008}
.noel-cipher-pane.is-true{border-color:#ffe27a;box-shadow:0 0 22px #ffe27a99}
.noel-cipher-pane.is-true .noel-cipher-frost{opacity:.15}
.noel-cipher-pane.is-fake{border-color:#9bb8cc;box-shadow:0 0 14px #9bb8cc66}
.noel-cipher-pane.is-done{border-color:#e0b14a}
.noel-cipher-pane.is-done .noel-cipher-frost{opacity:0}

/* star rule */
.noel-star-sky{
  position:absolute;inset:6px 2px 8px;
  touch-action:none;
}
.noel-star-sky.is-locked{pointer-events:none}
.noel-star-sky.is-shake{animation:noel-wrap-shake .4s ease}
.noel-star-lines{
  position:absolute;inset:0;width:100%;height:100%;
  pointer-events:none;overflow:visible;
  filter:drop-shadow(0 0 4px #ffe27acc);
}
.noel-star-nodes{position:absolute;inset:0}
.noel-star{
  position:absolute;z-index:2;width:var(--sz,56px);height:var(--sz,56px);
  transform:translate(-50%,-50%);
  border:0;padding:0;background:none;cursor:pointer;
  touch-action:manipulation;-webkit-tap-highlight-color:transparent;
}
.noel-star>img{width:100%;height:100%;display:block;object-fit:contain;pointer-events:none;filter:drop-shadow(0 4px 8px #0008)}
.noel-star>b{
  position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);
  font-size:calc(var(--sz,56px)*0.38);font-weight:900;line-height:1;
  pointer-events:none;text-shadow:0 1px 0 #0006,0 0 8px #0005;
}
.noel-star.is-on{filter:drop-shadow(0 0 10px #ffe27acc);transform:translate(-50%,-50%) scale(1.06)}
.noel-scene-starrule .noel-play{z-index:4}
.noel-rule-card{
  position:absolute;left:10px;right:10px;top:48px;z-index:6;display:none;
  padding:14px 16px;border-radius:16px;background:#2a1810f2;color:#fff4e0;
  border:1px solid #c9b48a;box-shadow:0 10px 28px #0006;text-align:center;
  transform:none;pointer-events:none;
}
.noel-rule-card.is-on{display:block;animation:noel-rule-in .35s ease both}
@keyframes noel-rule-in{
  0%{opacity:0;transform:translateY(-10px)}
  100%{opacity:1;transform:none}
}
.noel-rule-card small{display:block;font-size:11px;opacity:.75;margin-bottom:4px}
.noel-rule-card strong{font-size:15px;line-height:1.35}

/* hearth code */
.noel-hearth-board{
  position:absolute;left:12%;right:12%;top:18%;bottom:22%;
  display:grid;grid-template-columns:repeat(3,1fr);grid-template-rows:repeat(3,1fr);gap:8px;
}
.noel-hearth-cell{
  border:1px solid #fff9;border-radius:15px;padding:0;cursor:pointer;touch-action:manipulation;
  background:radial-gradient(ellipse at 22% 15%,#fffdf5dd,transparent 45%),radial-gradient(ellipse at 80% 85%,#b7d5e2b0,transparent 50%),linear-gradient(140deg,#edf8f5d9,#b6d1dadd 58%,#e9f4f1dd);
  box-shadow:inset 0 0 0 2px #fff9,inset 0 -7px 14px #6c9aa852,0 4px 10px #26170c66;
  position:relative;overflow:hidden;isolation:isolate;transition:box-shadow .45s ease,transform .2s ease;
}
.noel-hearth-cell:disabled{opacity:1}
.noel-hearth-cell::before{
  content:'';position:absolute;inset:0;pointer-events:none;
  background:repeating-linear-gradient(133deg,transparent 0 19px,#fff7 20px,transparent 22px 37px),radial-gradient(ellipse at 70% 20%,#fff9,transparent 55%);
  opacity:calc(.75 - var(--melt,0) * .75);transition:opacity .55s ease;
}
.noel-hearth-cell::after{
  content:'';position:absolute;inset:0;pointer-events:none;
  background:radial-gradient(ellipse at 50% 78%,#fff4ad 0%,#ffba52db 18%,#e35931bd 50%,#6e271a9c 100%);
  opacity:var(--melt,0);transform:scale(.65);transition:opacity .5s ease,transform .55s ease;
}
.noel-hearth-cell.is-warm{box-shadow:inset 0 0 0 2px #ffe9a8,0 0 17px #ffbd6f99}
.noel-hearth-cell.is-warm::after{transform:scale(1.2);animation:noel-hearth-glow 2.4s ease-in-out infinite alternate}
.noel-hearth-cell.is-wrong{box-shadow:inset 0 0 0 2px #c8edf9,0 0 12px #a4d9ed99}
.noel-hearth-cell.is-wrong::after{animation:none;filter:saturate(.55)}
@keyframes noel-hearth-glow{from{filter:brightness(.9)}to{filter:brightness(1.2)}}
@media (prefers-reduced-motion:reduce){.noel-hearth-cell,.noel-hearth-cell::before,.noel-hearth-cell::after{transition:none;animation:none!important}}
.noel-hearth-sample{
  position:absolute;left:50%;top:10%;transform:translateX(-50%);z-index:5;display:none;
  grid-template-columns:repeat(3,18px);grid-template-rows:repeat(3,18px);gap:4px;
  padding:8px;border-radius:12px;background:#2a1810e8;border:1px solid #c9b48a88;
}
.noel-hearth-sample.is-on{display:grid}
.noel-hearth-sample>span{border-radius:4px;background:#6a7a88}
.noel-hearth-sample>span.is-on{background:linear-gradient(180deg,#fff3b1,#f4a54b 55%,#b93f29);box-shadow:0 0 9px #ffc675aa;animation:noel-hearth-glow 1.5s ease-in-out infinite alternate}
@media (prefers-reduced-motion:reduce){.noel-hearth-sample>span.is-on{animation:none}}

@media (prefers-reduced-motion:reduce){
  .noel-flake{animation:none;opacity:.5}
  .noel-vfx{display:none}
  .noel-rule-card.is-on{animation:none}
  .noel-bell-sprite,.noel-bell-wave{animation:none !important}
  .noel-wrap-cube.is-snap,.noel-wrap-bow,.noel-wrap-world.is-shake,.noel-wrap-pull,.noel-star-sky.is-shake{animation:none;transition:none}
}

/* Snow globe feedback */
.noel-globe.is-shaking{animation:noel-globe-shake .55s ease-in-out}
.noel-globe.is-celebrating{box-shadow:inset 0 0 30px #fff9,0 0 22px #ffe6a6aa}
.noel-globe-figure.is-revealing{animation:noel-scene-reveal .55s ease-out}
.noel-jingle-fig.is-returning{animation:noel-figure-return .65s cubic-bezier(.2,.8,.2,1) both}
@keyframes noel-globe-shake{0%,100%{transform:translate(-50%,-50%) rotate(0)}25%{transform:translate(-50%,-50%) rotate(-5deg)}50%{transform:translate(-50%,-50%) rotate(5deg)}75%{transform:translate(-50%,-50%) rotate(-3deg)}}
@keyframes noel-scene-reveal{from{opacity:0;filter:blur(5px)}to{opacity:1;filter:blur(0)}}
@keyframes noel-figure-return{0%{opacity:0;transform:translateY(-20px) scale(.45);filter:brightness(2)}65%{opacity:1;transform:translateY(2px) scale(1.12)}100%{transform:none;filter:drop-shadow(0 3px 6px #0006)}}
@media (prefers-reduced-motion:reduce){.noel-globe.is-shaking,.noel-globe-figure.is-revealing,.noel-jingle-fig.is-returning{animation:none}}
