/* Shared visual juice, v2 — MediaBot art + ART-DIRECTION timings.
   Compositor-only motion. Glow is opacity, never blur. Shake skipped under reduced motion. */
:root{
  --paper:#F3E6D0;--paper2:#E4CBA6;--ink:#2A2118;--soft:#5C4A38;
  --card:#FFF8EE;--accent:#3D2A4A;--hero:#FFF3D6;
  --glow:#FFE08A;
  --juice-hot:#C9A24A;
}
body[data-juice="bow-down"]{
  --accent:#3D2A4A;--hero:#FFF3D6;--stage:#1E1B33;--warm:#C9A24A;
  --glow:#FFE08A;--juice-hot:#C9A24A;
}
body[data-juice="after-you"]{
  --accent:#1A3A3E;--hero:#FFF2CF;--stage:#1F3238;--warm:#E8A33C;
  --glow:#FFE08A;--juice-hot:#E8A33C;
}
body[data-juice="achoo-guard"]{
  --accent:#2A3158;--hero:#FFF2CF;--stage:#232A44;--warm:#E8A33C;
  --glow:#FFE08A;--juice-hot:#E8A33C;
}
body[data-juice="shush"]{
  --accent:#3A2A4A;--hero:#FFF4DC;--stage:#2B2238;--warm:#F2B134;
  --glow:#FFE08A;--juice-hot:#F2B134;
}
body[data-juice="pop-toast"]{
  --accent:#2A3540;--hero:#FFF4DC;--stage:#EDE0C8;--warm:#F2B134;
  --glow:#FFE08A;--glow-hot:#FFB347;--juice-hot:#F2B134;
}
body[data-juice="fry-guard"]{
  --accent:#2A4A5A;--hero:#FFF8EE;--stage:#7FC4D8;--warm:#FFB000;
  --glow:#FFE08A;--juice-hot:#FFB000;
}
body[data-juice="thrift-grab"]{
  --accent:#4A2A22;--hero:#F8E6C8;--stage:#D8E6DC;--warm:#FFB000;
  --glow:#FFE08A;--juice-hot:#FFB000;
}

body[data-juice]{
  background:
    radial-gradient(900px 560px at 50% -12%, var(--hero), var(--paper) 46%, var(--paper2));
}
.wrap{position:relative;z-index:1;}
.stage{
  position:relative;
  background-color:var(--stage,#1E1B33);
  background-repeat:no-repeat;
  background-size:100% 100%;
  background-position:center;
}
body[data-juice="bow-down"] .stage{
  background-image:image-set(url("/art/bow-down/backdrop.webp") 1x,url("/art/bow-down/backdrop@2x.webp") 2x);
}
body[data-juice="after-you"] .stage{
  background-image:image-set(url("/art/after-you/backdrop.webp") 1x,url("/art/after-you/backdrop@2x.webp") 2x);
}
body[data-juice="achoo-guard"] .stage{
  background-image:image-set(url("/art/achoo-guard/backdrop.webp") 1x,url("/art/achoo-guard/backdrop@2x.webp") 2x);
}
body[data-juice="shush"] .stage{
  background-image:image-set(url("/art/shush/backdrop.webp") 1x,url("/art/shush/backdrop@2x.webp") 2x);
}
body[data-juice="fry-guard"] .stage{
  background-image:image-set(url("/art/fry-guard/backdrop.webp") 1x,url("/art/fry-guard/backdrop@2x.webp") 2x);
}
body[data-juice="thrift-grab"] .stage{
  background-image:image-set(url("/art/thrift-grab/backdrop.webp") 1x,url("/art/thrift-grab/backdrop@2x.webp") 2x);
}
/* Pop Toast keeps its existing kitchen pack on the canvas; no second kitchen. */
body[data-juice="pop-toast"] .stage{background-color:var(--stage,#EDE0C8);}

.stage canvas{position:relative;z-index:1;background:transparent;display:block;width:100%;height:100%;}

.juice-ambient,
.juice-ambient-still{
  position:absolute;inset:0;width:100%;height:100%;
  object-fit:fill;border:0;pointer-events:none;z-index:0;
}
.juice-ambient-still[hidden],
.juice-ambient[hidden]{display:none;}

.juice-glow{
  position:absolute;inset:0;pointer-events:none;z-index:2;
  background:var(--glow,#FFE08A);
  opacity:0;
  mix-blend-mode:screen;
  /* hard-edged highlight layer, no blur, no soft box-shadow */
  -webkit-mask:linear-gradient(#000,#000);
  mask:linear-gradient(#000,#000);
}
.juice-glow.is-amb{opacity:.15;}
.juice-glow.is-lit{opacity:.7;}

.juice-burst{
  position:absolute;inset:0;pointer-events:none;z-index:3;overflow:hidden;
}
.juice-dot{
  position:absolute;width:16px;height:16px;margin:0;padding:0;border:0;
  pointer-events:none;will-change:transform,opacity;
  object-fit:contain;
}
.juice-pop{
  position:absolute;z-index:4;margin:0;pointer-events:none;
  font:700 22px/1 Georgia,"Palatino Linotype",Palatino,"Times New Roman",serif;
  color:var(--hero,#FFF3D6);
  -webkit-text-stroke:3px var(--accent,#3D2A4A);
  paint-order:stroke fill;
  will-change:transform,opacity;
  white-space:nowrap;
}

/* 328×140 card at logical (16, 110) on the 360 stage */
.juice-card{
  position:absolute;
  left:calc(16 / 360 * 100%);
  top:calc(110 / 360 * 100%);
  width:calc(328 / 360 * 100%);
  height:calc(140 / 360 * 100%);
  z-index:5;
  opacity:0;pointer-events:none;
  will-change:transform,opacity;
}
.juice-card.is-on{opacity:1;pointer-events:auto;}
.juice-card-skin{
  position:absolute;inset:0;width:100%;height:100%;
  object-fit:fill;pointer-events:none;border:0;display:block;
}
.juice-badge{
  position:absolute;
  left:calc(16 / 328 * 100%);
  top:calc(22 / 140 * 100%);
  width:calc(96 / 328 * 100%);
  height:calc(72 / 140 * 100%);
  object-fit:cover;border-radius:12px;border:0;display:block;
  background:var(--paper,#F3E6D0);
}
.juice-card h2{
  position:absolute;
  left:calc(128 / 328 * 100%);
  top:calc(22 / 140 * 100%);
  width:calc(184 / 328 * 100%);
  height:calc(28 / 140 * 100%);
  margin:0;padding:0;
  display:flex;align-items:center;
  font:700 17px/1.1 Georgia,"Palatino Linotype",Palatino,"Times New Roman",serif;
  letter-spacing:-.02em;color:var(--ink,#2A2118);
  overflow:hidden;white-space:nowrap;text-overflow:ellipsis;
}
.juice-card h2:after{content:none;}
.juice-card .juice-tag,
.juice-card .juice-line,
.juice-card .juice-score{
  position:absolute;
  left:calc(128 / 328 * 100%);
  width:calc(184 / 328 * 100%);
  margin:0;padding:0;
  color:var(--ink,#2A2118);
  font:11px/1.25 ui-monospace,SFMono-Regular,Menlo,monospace;
  overflow:hidden;
}
.juice-card .juice-tag{
  top:calc(58 / 140 * 100%);
  height:calc(20 / 140 * 100%);
  color:var(--soft,#5C4A38);
}
.juice-card .juice-line{
  top:calc(58 / 140 * 100%);
  height:calc(36 / 140 * 100%);
}
.juice-card .juice-score{
  top:calc(90 / 140 * 100%);
  height:calc(14 / 140 * 100%);
  color:var(--soft,#5C4A38);
}
.juice-card .juice-actions{
  position:absolute;
  right:calc(12 / 328 * 100%);
  bottom:calc(8 / 140 * 100%);
  margin:0;display:flex;justify-content:flex-end;
}
.juice-card button{
  min-width:44px;min-height:44px;padding:8px 14px;border:0;border-radius:12px;
  background:var(--accent,#3D2A4A);color:var(--hero,#FFF3D6);
  font:700 15px/1 "Segoe UI",system-ui,sans-serif;
  cursor:pointer;box-shadow:0 2px 0 rgba(42,33,24,.28);
}
.juice-card button:focus-visible{outline:3px solid var(--ink,#2A2118);outline-offset:2px;}
.juice-card button:hover{filter:brightness(1.08);}

@media (prefers-reduced-motion:reduce){
  .juice-card,
  .juice-glow,
  .juice-pop,
  .juice-dot,
  .juice-ambient{
    transition:none !important;
    animation:none !important;
  }
  .juice-glow.is-lit{opacity:.15;} /* static, no pulse */
}
