
:root{--gold:#f1c15f;--red:#9b1e2e;--blue:#071b33;--cream:#f5e5bd}
*{box-sizing:border-box}
body{margin:0;font-family:Georgia,"Times New Roman",serif;color:var(--cream);min-height:100vh;background:radial-gradient(circle at center top,rgba(255,210,90,.18),transparent 28rem),linear-gradient(90deg,rgba(130,18,32,.9) 0 9%,transparent 9% 91%,rgba(130,18,32,.9) 91%),repeating-linear-gradient(90deg,#071b33 0 42px,#0b2342 42px 84px)}
.stage{width:min(920px,100%);margin:0 auto;padding:18px 16px 28px;text-align:center}
.marquee{border:4px solid var(--gold);border-radius:18px;background:#221321;box-shadow:0 0 25px rgba(255,190,70,.35);padding:12px 10px 8px;margin-bottom:14px}
h1{margin:0;font-size:clamp(2.35rem,11vw,5rem);line-height:.95;letter-spacing:.04em;color:#ffcf53;text-shadow:0 4px 0 #5b1115,0 0 14px rgba(255,180,60,.9)}
.tagline{margin:6px 0 0;font-size:clamp(1.35rem,5.5vw,2.5rem);font-weight:bold;color:#ffe8ac;letter-spacing:.08em}
.portrait{width:116px;height:116px;border:5px solid var(--gold);border-radius:50%;margin:8px auto 14px;background:#132b4e;overflow:hidden;box-shadow:0 0 0 5px #6a3b16,0 0 20px rgba(255,200,85,.5)}
.portrait img{width:100%;height:100%;object-fit:cover;object-position:center 38%}
.counter{font-size:1.35rem;font-weight:bold;color:#ffda7e;margin:14px 0}
.test-note{color:#d9c798;font-size:.95rem;margin-bottom:12px}
.category-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:14px auto;max-width:640px}
.category-btn{border:2px solid #d4a44f;border-radius:12px;padding:14px 8px;font:700 1.05rem Georgia,serif;color:#19130b;background:linear-gradient(#ffe08a,#c8792d);box-shadow:0 4px 0 #5c2b15,0 0 8px rgba(255,205,90,.5);cursor:pointer}
.category-btn.completed{background:linear-gradient(#9e9e9e,#595959);color:#f6e7b2;box-shadow:none;opacity:.75;cursor:not-allowed}
.category-btn.empty{background:linear-gradient(#5b5b5b,#333);color:#bbb;opacity:.55;cursor:not-allowed}
.category-btn:active:not(:disabled){transform:translateY(2px);box-shadow:0 2px 0 #5c2b15}
.dev-actions{display:flex;justify-content:center;gap:10px;flex-wrap:wrap;margin-top:18px}
.small-btn,.return-btn{display:inline-block;border:2px solid var(--gold);border-radius:12px;padding:10px 14px;color:#ffe6a3;background:#591922;text-decoration:none;font-weight:bold;cursor:pointer}
.exhibit-card{max-width:760px;margin:18px auto 0;background:rgba(4,12,25,.78);border:3px solid var(--gold);border-radius:18px;padding:20px;text-align:left;box-shadow:0 0 22px rgba(255,200,80,.25)}
.exhibit-card h2{text-align:center;margin:0 0 4px;font-size:2rem;color:#ffda7e}
.category-label{text-align:center;text-transform:uppercase;letter-spacing:.12em;color:#d9c798;font-weight:bold;margin-bottom:18px}
.story{white-space:pre-wrap;font-size:1.12rem;line-height:1.55}
.media img,.media video,.media audio{max-width:100%;display:block;margin:14px auto;border-radius:10px}
.hidden-message{text-align:center;font-size:1.8rem;color:#ffda7e;margin:70px auto 28px}
@media (min-width:700px){.category-grid{grid-template-columns:repeat(5,minmax(0,1fr))}}


/* Wheel mode */
.wheel-panel{margin:12px auto 18px;text-align:center}
.wheel-wrap{position:relative;width:min(86vw,520px);height:min(86vw,520px);margin:4px auto 14px}
#lifeWheel{width:100%;height:100%;display:block;border-radius:50%;filter:drop-shadow(0 0 18px rgba(255,205,90,.45))}
.wheel-pointer{position:absolute;left:50%;top:-3px;transform:translateX(-50%);width:0;height:0;border-left:20px solid transparent;border-right:20px solid transparent;border-top:42px solid #ffdb75;z-index:4;filter:drop-shadow(0 3px 2px rgba(0,0,0,.6))}
.wheel-hub{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:31%;height:31%;border-radius:50%;background:radial-gradient(circle,#ffe199 0,#d38a2e 64%,#6a2b14 100%);border:5px solid #ffe08a;display:flex;flex-direction:column;align-items:center;justify-content:center;color:#19130b;box-shadow:0 0 18px rgba(0,0,0,.65);pointer-events:none}
.hub-title{font-size:clamp(1.4rem,6vw,2.4rem);font-weight:900;line-height:.9}
.hub-subtitle{font-size:clamp(.65rem,2.8vw,1rem);font-weight:900;letter-spacing:.08em}
.spin-btn{border:3px solid var(--gold);border-radius:16px;padding:16px 26px;font:900 1.45rem Georgia,serif;color:#ffe6a3;background:#711a27;box-shadow:0 5px 0 #321015,0 0 16px rgba(255,200,80,.35);cursor:pointer}
.spin-btn:active:not(:disabled){transform:translateY(2px);box-shadow:0 3px 0 #321015}
.spin-btn:disabled{opacity:.55;cursor:not-allowed}
.spin-result{min-height:1.6em;margin:12px auto 4px;color:#ffda7e;font-weight:bold;font-size:1.05rem}
.test-panel{max-width:760px;margin:18px auto;text-align:center;color:#d9c798}
.test-panel summary{cursor:pointer;font-weight:bold;margin-bottom:12px}
@media (max-width:520px){
  .wheel-wrap{width:min(94vw,420px);height:min(94vw,420px)}
  .spin-btn{width:90%;max-width:320px}
}


/* Graphics + sound test upgrades */
.stage{padding-bottom:38px}
.wheel-panel{position:relative;margin:8px auto 18px;text-align:center}
.wheel-wrap{position:relative;width:min(91vw,600px);height:min(91vw,600px);margin:0 auto 14px;padding:16px;border-radius:50%;background:radial-gradient(circle,#231322 0 55%,#110b14 72%,rgba(255,210,90,.16) 100%);box-shadow:0 0 24px rgba(255,198,79,.35), inset 0 0 35px rgba(0,0,0,.55)}
#lifeWheel{width:100%;height:100%;display:block;border-radius:50%;filter:drop-shadow(0 0 18px rgba(255,205,90,.48))}
.wheel-pointer{position:absolute;left:50%;top:0;transform:translateX(-50%);width:0;height:0;border-left:24px solid transparent;border-right:24px solid transparent;border-top:54px solid #ffe28a;z-index:5;filter:drop-shadow(0 4px 3px rgba(0,0,0,.75))}
.wheel-pointer:after{content:"";position:absolute;left:-11px;top:-50px;width:22px;height:22px;border-radius:50%;background:#7a1826;border:3px solid #ffe28a}
.wheel-hub{width:29%;height:29%;background:radial-gradient(circle,#fff0b8 0,#e6a037 55%,#6f2518 100%);border:6px solid #ffe28a}
.hub-title{text-shadow:0 1px 0 rgba(255,255,255,.35)}
.spin-btn{margin-right:8px;text-transform:uppercase;letter-spacing:.04em;background:linear-gradient(#9e2134,#5c1520);transition:transform .08s ease, filter .15s ease}
.spin-btn.spinning{filter:brightness(1.2) drop-shadow(0 0 10px rgba(255,220,120,.55))}
.sound-btn{border:2px solid var(--gold);border-radius:14px;padding:12px 14px;font:800 .95rem Georgia,serif;color:#ffe6a3;background:#231321;box-shadow:0 3px 0 #321015;cursor:pointer;vertical-align:baseline}
.sound-btn[aria-pressed="false"]{opacity:.62}
.spin-result{background:rgba(4,12,25,.46);border:1px solid rgba(241,193,95,.45);border-radius:14px;padding:10px 12px;max-width:480px}
.test-panel{background:rgba(0,0,0,.16);border:1px solid rgba(241,193,95,.35);border-radius:12px;padding:8px 12px}
@media (max-width:520px){
  .wheel-wrap{width:min(96vw,430px);height:min(96vw,430px);padding:10px}
  .wheel-pointer{border-left-width:18px;border-right-width:18px;border-top-width:42px}
  .spin-btn{display:block;margin:8px auto;width:90%;max-width:330px}
  .sound-btn{display:block;margin:8px auto}
}


/* Compact overlay layout: counter left of wheel, Jerry head right of wheel */
html,body{min-height:100%;overflow-x:hidden}
body{min-height:100svh}
.stage{
  width:min(1120px,100%);
  min-height:100svh;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:flex-start;
  padding:8px 10px 14px;
}
.marquee{
  width:min(760px,94vw);
  padding:7px 10px 6px;
  margin-bottom:7px;
  border-width:3px;
  border-radius:14px;
}
h1{font-size:clamp(2.05rem,7.2vw,4rem);line-height:.86}
.tagline{font-size:clamp(1rem,3.2vw,1.85rem);margin-top:2px}
.wheel-panel{
  position:relative;
  display:flex;
  flex-direction:column;
  align-items:center;
  width:100%;
  margin:0 auto 4px;
}
.wheel-top-row{
  width:min(72vw,58svh,500px);
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin:0 auto -2px;
  z-index:6;
  pointer-events:none;
}
.wheel-counter{
  font-size:clamp(.86rem,1.6vw,1.05rem);
  line-height:1.15;
  margin:0;
  text-align:left;
  color:#ffda7e;
  background:rgba(4,12,25,.55);
  border:1px solid rgba(241,193,95,.42);
  border-radius:12px;
  padding:6px 9px;
  max-width:48%;
  box-shadow:0 0 12px rgba(0,0,0,.28);
}
.wheel-portrait{
  width:70px;
  height:70px;
  border-width:4px;
  margin:0;
  flex:0 0 auto;
  box-shadow:0 0 0 4px #6a3b16,0 0 16px rgba(255,200,85,.45);
}
.wheel-portrait img{
  object-position:center 32%;
  transform:scale(1.42);
}
.wheel-wrap{
  width:min(72vw,58svh,500px);
  height:min(72vw,58svh,500px);
  padding:10px;
  margin:0 auto 8px;
}
.spin-btn{
  padding:10px 22px;
  font-size:1.12rem;
  border-radius:13px;
}
.sound-btn{
  padding:8px 12px;
  font-size:.82rem;
  border-radius:12px;
}
.spin-result{
  margin:7px auto 2px;
  padding:6px 10px;
  font-size:.93rem;
}
.dev-actions{margin-top:6px}
.test-panel{margin:8px auto 0;padding:6px 10px}
.stage > div[style*="font-size:12px"]{
  margin-top:auto !important;
  font-size:10px !important;
}

/* Desktop with limited vertical space */
@media (min-width:700px) and (max-height:850px){
  .stage{padding-top:6px}
  .marquee{width:min(690px,88vw);padding:5px 8px;margin-bottom:5px}
  h1{font-size:clamp(2rem,5.4vw,3.3rem)}
  .tagline{font-size:clamp(.95rem,2.5vw,1.45rem)}
  .wheel-top-row{width:min(58vw,54svh,455px)}
  .wheel-wrap{width:min(58vw,54svh,455px);height:min(58vw,54svh,455px);padding:8px;margin-bottom:6px}
  .wheel-counter{font-size:.82rem;padding:5px 8px}
  .wheel-portrait{width:58px;height:58px;border-width:3px}
  .spin-btn{padding:9px 20px;font-size:1.04rem}
  .sound-btn{padding:7px 10px;font-size:.78rem}
  .spin-result{font-size:.88rem;padding:5px 9px;margin-top:5px}
}

/* Very short screens */
@media (max-height:720px){
  .marquee{width:min(620px,88vw);padding:4px 8px}
  h1{font-size:clamp(1.8rem,5vw,2.8rem)}
  .tagline{font-size:clamp(.85rem,2.2vw,1.25rem)}
  .wheel-top-row{width:min(54vw,50svh,395px)}
  .wheel-wrap{width:min(54vw,50svh,395px);height:min(54vw,50svh,395px);padding:7px}
  .wheel-counter{font-size:.76rem;padding:4px 7px}
  .wheel-portrait{width:48px;height:48px}
  .spin-btn{padding:8px 18px;font-size:.98rem}
  .sound-btn{padding:6px 9px;font-size:.75rem}
}

/* iPhone / narrow screens */
@media (max-width:520px){
  .stage{padding:7px 8px 12px;min-height:100svh}
  .marquee{width:96vw;padding:6px 8px;margin-bottom:6px}
  h1{font-size:clamp(2rem,12vw,3rem)}
  .tagline{font-size:clamp(.95rem,5vw,1.35rem)}
  .wheel-top-row{width:min(94vw,52svh,390px);margin-bottom:-1px}
  .wheel-wrap{width:min(94vw,52svh,390px);height:min(94vw,52svh,390px);padding:7px;margin-bottom:6px}
  .wheel-counter{font-size:.74rem;padding:4px 6px;max-width:52%}
  .wheel-portrait{width:48px;height:48px;border-width:3px;box-shadow:0 0 0 3px #6a3b16,0 0 12px rgba(255,200,85,.4)}
  .wheel-pointer{border-left-width:16px;border-right-width:16px;border-top-width:36px}
  .wheel-pointer:after{left:-9px;top:-34px;width:18px;height:18px;border-width:2px}
  .spin-btn{display:inline-block;width:auto;max-width:none;margin:4px 5px;padding:9px 16px;font-size:1rem}
  .sound-btn{display:inline-block;margin:4px 5px;padding:7px 9px}
  .spin-result{font-size:.86rem;margin-top:5px}
  .test-panel{font-size:.85rem}
}

/* Extra cramped iPhone */
@media (max-width:520px) and (max-height:760px){
  h1{font-size:clamp(1.7rem,10vw,2.55rem)}
  .tagline{font-size:.9rem}
  .wheel-top-row{width:min(90vw,48svh,340px)}
  .wheel-wrap{width:min(90vw,48svh,340px);height:min(90vw,48svh,340px)}
  .wheel-portrait{width:42px;height:42px}
  .wheel-counter{font-size:.68rem}
}


/* Center-head wheel hub build */
.wheel-top-row{
  justify-content:flex-start;
}
.wheel-counter{
  max-width:62%;
}
.wheel-portrait{
  display:none !important;
}
.wheel-hub.hub-photo{
  overflow:hidden;
  background:#211421;
  border:6px solid #ffe28a;
  box-shadow:0 0 0 5px #7a4018,0 0 22px rgba(255,210,90,.55), inset 0 0 18px rgba(0,0,0,.55);
}
.wheel-hub.hub-photo img{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center 28%;
  transform:scale(1.6);
  display:block;
}
.hub-title,.hub-subtitle{
  display:none;
}

/* Give the portrait hub a little more room without hiding category labels */
.wheel-hub{
  width:30%;
  height:30%;
}

@media (max-width:520px){
  .wheel-counter{max-width:70%}
  .wheel-hub{width:31%;height:31%}
}


/* Spiced carnival look + no testing buttons */
body{
  background:
    radial-gradient(circle at 50% 10%, rgba(255,215,120,.28), transparent 18rem),
    radial-gradient(circle at 50% 62%, rgba(255,40,75,.18), transparent 24rem),
    linear-gradient(90deg,rgba(118,10,26,.95) 0 8%,transparent 8% 92%,rgba(118,10,26,.95) 92%),
    repeating-linear-gradient(90deg,#06182d 0 40px,#0c2749 40px 80px);
}
.stage:before{
  content:"";
  position:fixed;
  inset:0;
  pointer-events:none;
  background:
    radial-gradient(circle at 20% 18%, rgba(255,220,100,.16), transparent 10rem),
    radial-gradient(circle at 78% 25%, rgba(255,220,100,.14), transparent 11rem),
    linear-gradient(180deg,rgba(0,0,0,.10),rgba(0,0,0,.35));
}
.marquee{
  position:relative;
  background:
    linear-gradient(180deg,rgba(255,210,92,.09),rgba(0,0,0,0) 30%),
    #21101e;
  border-color:#ffd66e;
  box-shadow:
    0 0 0 2px rgba(92,43,21,.75),
    0 0 24px rgba(255,200,80,.55),
    inset 0 0 22px rgba(255,210,92,.10);
}
.marquee:before,.marquee:after{
  content:"";
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  width:10px;
  height:10px;
  border-radius:50%;
  background:#ffe58f;
  box-shadow:0 0 9px #ffd86d, 0 0 20px rgba(255,220,90,.7);
}
.marquee:before{left:14px}
.marquee:after{right:14px}
h1{
  color:#ffdc72;
  text-shadow:
    0 2px 0 #fff1b8,
    0 5px 0 #7b2d15,
    0 0 18px rgba(255,195,58,.95);
}
.tagline{
  color:#fff0b7;
  text-shadow:0 2px 0 #5b1115,0 0 9px rgba(255,215,100,.85);
}
.wheel-panel{
  isolation:isolate;
}
.wheel-wrap{
  background:
    radial-gradient(circle,#2b1321 0 48%,#120915 70%,rgba(255,210,90,.22) 100%);
  box-shadow:
    0 0 0 2px rgba(255,215,120,.2),
    0 0 32px rgba(255,198,79,.5),
    0 14px 36px rgba(0,0,0,.45),
    inset 0 0 42px rgba(0,0,0,.62);
}
.wheel-wrap:before{
  content:"";
  position:absolute;
  inset:-8px;
  border-radius:50%;
  border:2px solid rgba(255,214,110,.34);
  box-shadow:0 0 20px rgba(255,214,110,.28);
  pointer-events:none;
}
.wheel-counter{
  color:#ffe493;
  background:linear-gradient(180deg,rgba(84,16,28,.75),rgba(12,22,40,.72));
  border-color:rgba(255,214,110,.7);
  box-shadow:0 0 16px rgba(255,214,110,.22);
}
.wheel-hub.hub-photo{
  width:33%;
  height:33%;
  background:#1b0f1b;
  border:7px solid #ffe28a;
  box-shadow:
    0 0 0 6px #7a4018,
    0 0 25px rgba(255,210,90,.72),
    inset 0 0 18px rgba(0,0,0,.55);
}
.wheel-hub.hub-photo img{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center center;
  transform:none;
  filter:contrast(1.07) saturate(1.08);
}
.spin-btn{
  background:linear-gradient(#b62038,#641421);
  border-color:#ffdd78;
  color:#fff0b7;
  box-shadow:0 5px 0 #311014,0 0 16px rgba(255,200,80,.42), inset 0 1px 0 rgba(255,255,255,.2);
}
.sound-btn{
  background:linear-gradient(#2c162a,#170b18);
  color:#ffe7a8;
}
.test-panel{display:none !important}
.category-grid{display:none !important}
.spin-result{
  color:#ffe493;
  border-color:rgba(255,214,110,.60);
  background:linear-gradient(180deg,rgba(84,16,28,.42),rgba(4,12,25,.54));
}
.dev-actions{
  opacity:.7;
}
.dev-actions .small-btn{
  font-size:.78rem;
  padding:7px 10px;
}

/* keep wheel fitting vertically */
.marquee{margin-bottom:5px}
.wheel-wrap{margin-bottom:7px}


/* New center face image */
.wheel-hub.hub-photo img{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center center;
  transform:none !important;
  filter:contrast(1.05) saturate(1.05);
}
.wheel-hub.hub-photo{
  background:#777;
}


/* Dizzy spinning head animation */
.wheel-hub.hub-photo{
  --hub-spin:0deg;
  transform:translate(-50%,-50%) rotate(var(--hub-spin));
  transition:transform .18s ease-out, filter .18s ease-out;
}
.wheel-hub.hub-photo.hub-spinning{
  transition:none;
}
.wheel-hub.hub-photo.hub-dizzy{
  animation:dizzy-wobble 1.55s ease-in-out both;
  filter:saturate(1.22) brightness(1.08);
}
.dizzy-eyes{
  position:absolute;
  inset:0;
  display:none;
  pointer-events:none;
}
.hub-dizzy .dizzy-eyes{
  display:block;
}
.dizzy-eye{
  position:absolute;
  width:18%;
  height:18%;
  border-radius:50%;
  background:#fff8d8;
  border:3px solid #331018;
  top:42%;
  box-shadow:0 0 8px rgba(255,255,255,.65);
  overflow:hidden;
}
.dizzy-eye.left{left:27%}
.dizzy-eye.right{right:27%}
.dizzy-eye:after{
  content:"";
  position:absolute;
  width:46%;
  height:46%;
  border-radius:50%;
  background:#111;
  left:27%;
  top:27%;
  animation:eye-roll .55s linear infinite;
}
@keyframes eye-roll{
  0%{transform:translate(0,-35%)}
  25%{transform:translate(35%,0)}
  50%{transform:translate(0,35%)}
  75%{transform:translate(-35%,0)}
  100%{transform:translate(0,-35%)}
}
@keyframes dizzy-wobble{
  0%{transform:translate(-50%,-50%) rotate(0deg) scale(1)}
  14%{transform:translate(-50%,-50%) rotate(-12deg) scale(1.04)}
  28%{transform:translate(-50%,-50%) rotate(10deg) scale(.99)}
  42%{transform:translate(-50%,-50%) rotate(-8deg) scale(1.03)}
  56%{transform:translate(-50%,-50%) rotate(7deg) scale(1)}
  70%{transform:translate(-50%,-50%) rotate(-4deg) scale(1.02)}
  85%{transform:translate(-50%,-50%) rotate(2deg) scale(1)}
  100%{transform:translate(-50%,-50%) rotate(0deg) scale(1)}
}


/* Vintage Circus Marquee build */
:root{
  --circus-red:#8f1023;
  --circus-deep-red:#4f0b15;
  --circus-gold:#f4c45e;
  --circus-cream:#fff0bd;
  --circus-blue:#071b33;
  --circus-ink:#1b0d16;
}
html,body{min-height:100%;overflow-x:hidden}
body{
  min-height:100svh;
  background:
    radial-gradient(circle at 50% 11%, rgba(255,221,120,.38), transparent 15rem),
    radial-gradient(circle at 50% 58%, rgba(225,28,56,.20), transparent 28rem),
    linear-gradient(90deg,rgba(80,8,17,.95) 0 7%,transparent 7% 93%,rgba(80,8,17,.95) 93%),
    repeating-linear-gradient(90deg,#051426 0 38px,#0a2446 38px 76px);
}
body:before{
  content:"";
  position:fixed;
  inset:0;
  pointer-events:none;
  background:
    repeating-linear-gradient(90deg,rgba(255,255,255,.045) 0 1px,transparent 1px 76px),
    linear-gradient(180deg,rgba(255,223,134,.08),transparent 22%,rgba(0,0,0,.46));
  mix-blend-mode:screen;
  opacity:.72;
}
.circus-curtain-left,.circus-curtain-right{
  position:fixed;
  top:0;
  bottom:0;
  width:clamp(44px,8vw,112px);
  z-index:0;
  pointer-events:none;
  background:
    radial-gradient(ellipse at center, rgba(255,213,115,.10), transparent 65%),
    repeating-linear-gradient(90deg,#5a0714 0 18px,#9d1428 18px 36px,#6a0b19 36px 54px);
  box-shadow:inset 0 0 28px rgba(0,0,0,.55);
}
.circus-curtain-left{left:0;border-right:3px solid rgba(244,196,94,.35)}
.circus-curtain-right{right:0;border-left:3px solid rgba(244,196,94,.35)}
.circus-lights-frame{
  position:fixed;
  inset:9px;
  z-index:20;
  pointer-events:none;
  border:3px solid rgba(244,196,94,.72);
  border-radius:18px;
  box-shadow:
    0 0 18px rgba(244,196,94,.35),
    inset 0 0 20px rgba(244,196,94,.15);
}
.circus-lights-frame:before{
  content:"";
  position:absolute;
  inset:-11px;
  border-radius:22px;
  background:
    radial-gradient(circle,#fff5ba 0 4px,#d89d36 4.6px 6px,transparent 6.5px) top left/46px 18px repeat-x,
    radial-gradient(circle,#fff5ba 0 4px,#d89d36 4.6px 6px,transparent 6.5px) bottom left/46px 18px repeat-x,
    radial-gradient(circle,#fff5ba 0 4px,#d89d36 4.6px 6px,transparent 6.5px) top left/18px 46px repeat-y,
    radial-gradient(circle,#fff5ba 0 4px,#d89d36 4.6px 6px,transparent 6.5px) top right/18px 46px repeat-y;
  filter:drop-shadow(0 0 8px rgba(255,223,135,.86));
  animation:frame-bulbs 1.2s steps(2,end) infinite;
}
@keyframes frame-bulbs{
  0%{opacity:.78;filter:drop-shadow(0 0 6px rgba(255,223,135,.65))}
  50%{opacity:1;filter:drop-shadow(0 0 13px rgba(255,223,135,1))}
  100%{opacity:.78;filter:drop-shadow(0 0 6px rgba(255,223,135,.65))}
}

.stage{
  position:relative;
  z-index:2;
  width:min(1120px,100%);
  min-height:100svh;
  display:flex;
  flex-direction:column;
  align-items:center;
  padding:14px 14px 16px;
}
.marquee{
  width:min(780px,90vw);
  padding:8px 16px 7px;
  margin:2px 0 8px;
  border:4px solid var(--circus-gold);
  border-radius:16px;
  background:
    linear-gradient(180deg,rgba(255,238,170,.15),rgba(255,238,170,0) 35%),
    radial-gradient(circle at center,rgba(255,205,84,.12),transparent 65%),
    #1f0d1a;
  box-shadow:
    0 0 0 4px #6f2a17,
    0 0 30px rgba(244,196,94,.65),
    inset 0 0 22px rgba(244,196,94,.16);
}
.marquee:before,.marquee:after{
  width:12px;height:12px;
  background:#fff0a5;
  box-shadow:
    0 0 10px #ffdf7a,
    0 0 22px rgba(255,222,120,.95),
    34px 0 0 #fff0a5,
    -34px 0 0 #fff0a5;
}
h1{
  color:#ffdd76;
  font-size:clamp(2.35rem,7.4vw,4.7rem);
  letter-spacing:.08em;
  text-shadow:
    0 2px 0 #fff2bd,
    0 6px 0 #6c2614,
    0 0 22px rgba(255,200,70,.98);
}
.tagline{
  color:#fff0b8;
  letter-spacing:.18em;
  text-shadow:0 2px 0 #5b1115,0 0 12px rgba(255,215,100,.95);
}

.wheel-panel{
  width:100%;
  margin:0 auto;
}
.wheel-top-row{
  width:min(70vw,55svh,505px);
  justify-content:flex-start;
  margin:0 auto -3px;
}
.wheel-counter{
  font-size:clamp(.78rem,1.55vw,1rem);
  color:#fff0b4;
  background:
    linear-gradient(180deg,rgba(110,14,30,.88),rgba(28,11,22,.84));
  border:2px solid rgba(244,196,94,.82);
  border-radius:14px;
  padding:6px 10px;
  box-shadow:
    0 0 14px rgba(244,196,94,.28),
    inset 0 0 10px rgba(255,230,150,.08);
}
.wheel-wrap{
  width:min(70vw,55svh,505px);
  height:min(70vw,55svh,505px);
  padding:12px;
  margin:0 auto 7px;
  background:
    radial-gradient(circle,#371421 0 49%,#130911 72%,rgba(255,218,111,.28) 100%);
  box-shadow:
    0 0 0 3px rgba(244,196,94,.34),
    0 0 38px rgba(255,200,72,.55),
    0 16px 44px rgba(0,0,0,.52),
    inset 0 0 44px rgba(0,0,0,.67);
}
.wheel-wrap:before{
  inset:-10px;
  border:3px double rgba(255,223,130,.55);
  box-shadow:0 0 26px rgba(255,214,110,.38);
}
.wheel-pointer{
  border-left-width:25px;
  border-right-width:25px;
  border-top-width:56px;
  border-top-color:#fff0a6;
  filter:drop-shadow(0 4px 3px rgba(0,0,0,.85)) drop-shadow(0 0 7px rgba(255,220,120,.7));
}
.wheel-pointer:after{
  background:#a7122c;
  border-color:#fff0a6;
}

.wheel-hub.hub-photo{
  width:33%;
  height:33%;
  border:7px solid #fff0a6;
  box-shadow:
    0 0 0 7px #7c3518,
    0 0 26px rgba(255,220,110,.78),
    inset 0 0 18px rgba(0,0,0,.5);
}
.spin-btn{
  margin-top:1px;
  padding:11px 24px;
  border:3px solid #ffdc73;
  border-radius:16px;
  color:#fff0b7;
  background:
    linear-gradient(180deg,#c2253d,#781624 70%,#4c1018);
  box-shadow:
    0 5px 0 #2d0d12,
    0 0 18px rgba(255,205,80,.45),
    inset 0 1px 0 rgba(255,255,255,.25);
  text-transform:uppercase;
  letter-spacing:.06em;
}
.spin-btn:hover:not(:disabled){
  filter:brightness(1.08);
}
.sound-btn{
  color:#ffe7aa;
  border-color:#d6aa52;
  background:linear-gradient(180deg,#2d1728,#160a14);
}
.spin-result{
  min-height:0;
  margin:5px auto 0;
  padding:0;
  border:0;
  background:transparent;
}
.spin-result:empty{
  display:none;
}
.test-panel,.category-grid{
  display:none !important;
}
.dev-actions{
  margin-top:5px;
  opacity:.65;
}
.dev-actions .small-btn{
  padding:6px 9px;
  font-size:.74rem;
  border-radius:10px;
}

@media (min-width:700px) and (max-height:850px){
  .stage{padding-top:10px}
  .marquee{width:min(710px,86vw);padding:6px 14px;margin-bottom:5px}
  h1{font-size:clamp(2.1rem,5.7vw,3.6rem)}
  .tagline{font-size:clamp(.9rem,2.3vw,1.35rem)}
  .wheel-top-row,.wheel-wrap{width:min(56vw,52svh,460px)}
  .wheel-wrap{height:min(56vw,52svh,460px);padding:9px}
  .wheel-counter{font-size:.78rem;padding:5px 8px}
  .spin-btn{font-size:1rem;padding:9px 19px}
  .sound-btn{font-size:.76rem;padding:7px 9px}
}
@media (max-width:520px){
  .circus-lights-frame{inset:5px;border-radius:12px}
  .circus-lights-frame:before{
    inset:-8px;
    background:
      radial-gradient(circle,#fff5ba 0 3px,#d89d36 3.6px 5px,transparent 5.5px) top left/34px 14px repeat-x,
      radial-gradient(circle,#fff5ba 0 3px,#d89d36 3.6px 5px,transparent 5.5px) bottom left/34px 14px repeat-x,
      radial-gradient(circle,#fff5ba 0 3px,#d89d36 3.6px 5px,transparent 5.5px) top left/14px 34px repeat-y,
      radial-gradient(circle,#fff5ba 0 3px,#d89d36 3.6px 5px,transparent 5.5px) top right/14px 34px repeat-y;
  }
  .stage{padding:10px 9px 12px}
  .marquee{width:92vw;padding:7px 10px;margin-bottom:7px}
  h1{font-size:clamp(2rem,11vw,3rem)}
  .tagline{font-size:clamp(.82rem,4.3vw,1.15rem)}
  .wheel-top-row,.wheel-wrap{width:min(91vw,50svh,390px)}
  .wheel-wrap{height:min(91vw,50svh,390px);padding:7px}
  .wheel-counter{font-size:.70rem;padding:4px 6px;max-width:70%}
  .spin-btn{font-size:.98rem;padding:9px 16px}
  .sound-btn{font-size:.74rem;padding:7px 9px}
}
@media (max-width:520px) and (max-height:760px){
  .marquee{padding:5px 8px}
  h1{font-size:clamp(1.65rem,9.5vw,2.45rem)}
  .tagline{font-size:.82rem}
  .wheel-top-row,.wheel-wrap{width:min(88vw,47svh,340px)}
  .wheel-wrap{height:min(88vw,47svh,340px)}
}


/* Red/white circus poster + antique bulbs + patina build */
@font-face{
  font-family:system-circus-fallback;
  src:local("Copperplate"), local("Bodoni 72 Smallcaps"), local("Georgia");
}
body{
  background:
    radial-gradient(circle at 50% 9%, rgba(255,226,145,.42), transparent 14rem),
    radial-gradient(circle at 50% 56%, rgba(138,12,26,.28), transparent 28rem),
    repeating-linear-gradient(90deg,
      #8f1023 0 44px,
      #8f1023 44px 56px,
      #f2e2bd 56px 100px,
      #f2e2bd 100px 112px);
}
body:before{
  background:
    linear-gradient(180deg,rgba(255,240,190,.22),transparent 24%,rgba(40,8,12,.36)),
    repeating-linear-gradient(0deg,rgba(83,45,25,.08) 0 2px,transparent 2px 7px);
  mix-blend-mode:multiply;
  opacity:.7;
}
.circus-curtain-left,.circus-curtain-right{
  width:clamp(30px,5vw,70px);
  background:
    repeating-linear-gradient(90deg,#6f0c18 0 15px,#b9152b 15px 30px,#7c0d1b 30px 45px);
}
.circus-lights-frame{
  inset:18px;
  border:4px solid rgba(111,43,22,.82);
  border-radius:14px;
  background:transparent;
  box-shadow:
    0 0 0 3px rgba(244,196,94,.52),
    inset 0 0 18px rgba(85,33,16,.22),
    0 0 18px rgba(255,210,130,.28);
}
.circus-lights-frame:before{
  inset:-13px;
  border-radius:18px;
  background:
    radial-gradient(circle at 50% 42%,#fff4c2 0 3.3px,#e0a64e 3.8px 5.4px,#7b3818 5.9px 6.8px,transparent 7.4px) top left/36px 18px repeat-x,
    radial-gradient(circle at 50% 58%,#fff4c2 0 3.3px,#e0a64e 3.8px 5.4px,#7b3818 5.9px 6.8px,transparent 7.4px) bottom left/36px 18px repeat-x,
    radial-gradient(circle at 42% 50%,#fff4c2 0 3.3px,#e0a64e 3.8px 5.4px,#7b3818 5.9px 6.8px,transparent 7.4px) top left/18px 36px repeat-y,
    radial-gradient(circle at 58% 50%,#fff4c2 0 3.3px,#e0a64e 3.8px 5.4px,#7b3818 5.9px 6.8px,transparent 7.4px) top right/18px 36px repeat-y;
  filter:
    sepia(.25)
    drop-shadow(0 0 4px rgba(255,184,92,.78))
    drop-shadow(0 0 10px rgba(255,132,45,.32));
  animation:antique-bulbs 1.7s ease-in-out infinite;
}
@keyframes antique-bulbs{
  0%,100%{opacity:.80;filter:sepia(.35) drop-shadow(0 0 3px rgba(255,176,90,.65)) drop-shadow(0 0 8px rgba(255,116,40,.22))}
  45%{opacity:1;filter:sepia(.18) drop-shadow(0 0 6px rgba(255,210,132,.95)) drop-shadow(0 0 14px rgba(255,130,45,.38))}
  62%{opacity:.9}
  72%{opacity:1}
}

.stage{
  padding:24px 24px 18px;
}
.marquee{
  width:min(700px,82vw);
  margin:0 0 8px;
  padding:8px 18px 9px;
  border:5px double #7a3519;
  border-radius:12px;
  background:
    linear-gradient(180deg,rgba(255,248,205,.55),rgba(255,248,205,.2)),
    radial-gradient(circle at 50% 44%,rgba(255,230,150,.28),transparent 70%),
    #f3dfb4;
  box-shadow:
    0 0 0 5px #b9142a,
    0 0 0 9px #f4c45e,
    0 0 24px rgba(255,205,90,.55),
    inset 0 0 22px rgba(100,42,18,.18);
}
.marquee:before,.marquee:after{
  background:#ffd987;
  box-shadow:
    0 0 6px #ffbc60,
    0 0 14px rgba(255,143,58,.6),
    28px 0 0 #ffd987,
    -28px 0 0 #ffd987;
}
h1{
  font-family: "Copperplate", "Bodoni 72 Smallcaps", "Georgia", serif;
  font-variant:small-caps;
  font-size:clamp(2.15rem,6.2vw,4.15rem);
  line-height:.86;
  letter-spacing:.045em;
  color:#891121;
  text-shadow:
    1px 1px 0 #fff7d0,
    2px 2px 0 #d9a64c,
    3px 4px 0 rgba(92,31,14,.72),
    0 0 10px rgba(255,245,185,.85);
}
h1:first-letter{
  font-size:1.18em;
}
.tagline{display:none !important}

.wheel-top-row,.wheel-wrap{
  width:min(68vw,54svh,500px);
}
.wheel-wrap{
  height:min(68vw,54svh,500px);
  padding:13px;
  background:
    radial-gradient(circle,#f2deb4 0 19%,#9b1529 20% 48%,#f4dfb5 49% 57%,#781222 58% 74%,rgba(255,218,111,.32) 100%);
  box-shadow:
    0 0 0 4px #6b2a15,
    0 0 0 9px rgba(244,196,94,.72),
    0 0 32px rgba(255,191,74,.52),
    0 16px 40px rgba(0,0,0,.52),
    inset 0 0 38px rgba(60,18,10,.42);
}
.wheel-wrap:before{
  inset:-9px;
  border:4px double rgba(110,45,19,.7);
  background:
    repeating-radial-gradient(circle,transparent 0 18px,rgba(92,45,20,.08) 18px 20px);
}
.wheel-counter{
  background:
    linear-gradient(180deg,#f6e6bd,#e3c37d);
  color:#7a1120;
  border:2px solid #7a3519;
  box-shadow:
    0 0 0 2px rgba(244,196,94,.75),
    0 0 10px rgba(85,33,16,.18);
  font-family:"Copperplate","Georgia",serif;
  font-weight:900;
}
.wheel-hub.hub-photo{
  border-color:#f6e6bd;
  box-shadow:
    0 0 0 7px #8e1326,
    0 0 0 11px #d9a64c,
    0 0 26px rgba(255,220,110,.78),
    inset 0 0 18px rgba(0,0,0,.38);
}
.spin-btn{
  font-family:"Copperplate","Georgia",serif;
  color:#fff3c8;
  background:
    linear-gradient(180deg,#b9152b,#7a1120 72%,#4b0b14);
  border-color:#f4c45e;
  box-shadow:
    0 5px 0 #4a1a0c,
    0 0 0 3px rgba(244,196,94,.35),
    0 0 18px rgba(255,205,80,.45),
    inset 0 1px 0 rgba(255,255,255,.25);
}
.sound-btn{
  background:linear-gradient(180deg,#f6e6bd,#d8b76b);
  color:#7a1120;
  border-color:#7a3519;
  font-family:"Copperplate","Georgia",serif;
}
.spin-result{
  font-family:"Georgia",serif;
}
.dev-actions .small-btn{
  background:#f2deb4;
  color:#7a1120;
  border-color:#7a3519;
}

/* tighter mobile poster */
@media (max-width:520px){
  .circus-lights-frame{inset:10px;border-radius:10px}
  .circus-lights-frame:before{
    inset:-10px;
    background:
      radial-gradient(circle,#fff0b5 0 2.8px,#d69b43 3.3px 4.6px,#7b3818 5px 5.8px,transparent 6.2px) top left/28px 14px repeat-x,
      radial-gradient(circle,#fff0b5 0 2.8px,#d69b43 3.3px 4.6px,#7b3818 5px 5.8px,transparent 6.2px) bottom left/28px 14px repeat-x,
      radial-gradient(circle,#fff0b5 0 2.8px,#d69b43 3.3px 4.6px,#7b3818 5px 5.8px,transparent 6.2px) top left/14px 28px repeat-y,
      radial-gradient(circle,#fff0b5 0 2.8px,#d69b43 3.3px 4.6px,#7b3818 5px 5.8px,transparent 6.2px) top right/14px 28px repeat-y;
  }
  .stage{padding:18px 18px 14px}
  .marquee{width:84vw;padding:7px 9px;margin-bottom:8px}
  h1{font-size:clamp(1.72rem,9.8vw,2.7rem);line-height:.88}
  .wheel-top-row,.wheel-wrap{width:min(84vw,49svh,370px)}
  .wheel-wrap{height:min(84vw,49svh,370px);padding:8px}
  .wheel-counter{font-size:.68rem}
}
@media (max-width:520px) and (max-height:760px){
  .marquee{padding:5px 8px}
  h1{font-size:clamp(1.45rem,8.7vw,2.25rem)}
  .wheel-top-row,.wheel-wrap{width:min(82vw,46svh,320px)}
  .wheel-wrap{height:min(82vw,46svh,320px)}
}


/* Reference-poster layout inspired by the supplied mockup */
body{
  background:
    radial-gradient(circle at 50% 16%, rgba(255,215,120,.30), transparent 18rem),
    radial-gradient(circle at 50% 58%, rgba(255,205,84,.10), transparent 26rem),
    linear-gradient(90deg,rgba(36,10,18,.92) 0 7%,transparent 7% 93%,rgba(36,10,18,.92) 93%),
    repeating-linear-gradient(90deg,#06192c 0 44px,#0b2746 44px 88px);
}
.circus-curtain-left,.circus-curtain-right{
  width:clamp(52px,9vw,132px);
  background:
    radial-gradient(ellipse at center,rgba(255,225,140,.10),transparent 65%),
    repeating-linear-gradient(110deg,#4a0710 0 18px,#8d1122 18px 42px,#3d070e 42px 58px);
  box-shadow:inset 0 0 34px rgba(0,0,0,.75);
}
.circus-lights-frame{
  inset:12px;
  border-radius:16px;
  border:3px solid rgba(123,60,27,.76);
}
.circus-lights-frame:before{
  inset:-12px;
  background:
    radial-gradient(circle,#fff1b5 0 4px,#df9f48 4.7px 6.3px,#5b2714 6.8px 7.8px,transparent 8.4px) top left/42px 18px repeat-x,
    radial-gradient(circle,#fff1b5 0 4px,#df9f48 4.7px 6.3px,#5b2714 6.8px 7.8px,transparent 8.4px) bottom left/42px 18px repeat-x,
    radial-gradient(circle,#fff1b5 0 4px,#df9f48 4.7px 6.3px,#5b2714 6.8px 7.8px,transparent 8.4px) top left/18px 42px repeat-y,
    radial-gradient(circle,#fff1b5 0 4px,#df9f48 4.7px 6.3px,#5b2714 6.8px 7.8px,transparent 8.4px) top right/18px 42px repeat-y;
}
.stage{padding-top:16px}
.marquee{
  position:relative;
  width:min(650px,82vw);
  margin:0 auto 0;
  padding:9px 14px 10px;
  border:5px solid #c5913c;
  border-radius:20px 20px 12px 12px;
  background:
    linear-gradient(180deg,rgba(255,223,125,.18),rgba(0,0,0,0) 34%),
    repeating-linear-gradient(0deg,rgba(255,255,255,.035) 0 1px,transparent 1px 6px),
    #14304a;
  box-shadow:
    0 0 0 4px #681421,
    0 0 0 9px #5a3015,
    0 0 28px rgba(255,194,85,.55),
    inset 0 0 34px rgba(0,0,0,.45);
}
.marquee:before{
  content:"★";
  left:50%;
  top:-29px;
  transform:translateX(-50%);
  width:auto;height:auto;
  color:#e6a63e;
  font-size:2.1rem;
  background:transparent;
  box-shadow:none;
  text-shadow:0 0 9px rgba(255,210,120,.9),0 2px 0 #5a3015;
}
.marquee:after{display:none}
h1{
  display:flex;
  flex-direction:column;
  margin:0;
  font-family:"Copperplate","Bodoni 72 Smallcaps","Georgia",serif;
  font-variant:small-caps;
  line-height:.86;
  letter-spacing:.065em;
  text-shadow:0 2px 0 #5a3015,0 4px 0 #1b0d16,0 0 11px rgba(255,211,122,.75);
}
h1 span:first-child{font-size:clamp(2.05rem,6.5vw,4rem);color:#f2b247}
h1 span:last-child{font-size:clamp(1.8rem,5.6vw,3.3rem);color:#efe0bd}
.poster-stack{margin-top:0}
.portrait-medallion{
  position:relative;
  z-index:7;
  width:clamp(92px,16svh,132px);
  height:clamp(92px,16svh,132px);
  margin:6px auto -8px;
  border-radius:50%;
  overflow:hidden;
  background:#1b2030;
  border:5px solid #f2c66b;
  box-shadow:0 0 0 5px #6a3117,0 0 0 9px #a56b2b,0 0 24px rgba(255,200,90,.65),inset 0 0 18px rgba(0,0,0,.45);
  transform:translateZ(0) rotate(var(--hub-spin,0deg));
}
.portrait-medallion:before{
  content:"";
  position:absolute;
  inset:5px;
  border-radius:50%;
  border:2px solid rgba(255,231,156,.7);
  box-shadow:inset 0 0 12px rgba(255,222,130,.25);
  pointer-events:none;
}
.portrait-medallion img{width:100%;height:100%;object-fit:cover;object-position:center center;transform:none}
.portrait-medallion.hub-spinning{transition:none}
.portrait-medallion.hub-dizzy{animation:dizzy-wobble 1.55s ease-in-out both}
.poster-wheel-wrap{
  width:min(76vw,57svh,555px);
  height:min(76vw,57svh,555px);
  padding:12px;
  margin:0 auto 0;
  border-radius:50%;
  background:radial-gradient(circle,#5f2615 0 9%,#b8732c 10% 12%,#1a1020 13% 100%);
  box-shadow:0 0 0 4px #2b140b,0 0 0 10px #b87532,0 0 0 14px #f2c66b,0 0 34px rgba(255,196,83,.58),0 18px 42px rgba(0,0,0,.58),inset 0 0 40px rgba(0,0,0,.48);
}
.poster-wheel-wrap:before{
  inset:-2px;
  border:0;
  box-shadow:inset 0 0 35px rgba(0,0,0,.55);
  background:radial-gradient(circle at 35% 25%,rgba(255,255,255,.14),transparent 22%),repeating-radial-gradient(circle,transparent 0 16px,rgba(57,28,15,.06) 17px 19px);
}
.wheel-pointer{top:3px;border-left-width:22px;border-right-width:22px;border-top-width:50px;z-index:8}
.star-hub{
  position:absolute;
  left:50%;
  top:50%;
  transform:translate(-50%,-50%);
  z-index:5;
  width:20%;
  height:20%;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  color:#c61d2e;
  font-size:clamp(2.2rem,7vw,4.2rem);
  text-shadow:0 2px 0 #f8d077,0 0 8px rgba(255,205,90,.7);
  background:radial-gradient(circle,#f6d16c 0 44%,#9e5422 45% 72%,#4d2111 100%);
  border:4px solid #e6bd62;
  box-shadow:0 0 0 4px #6b3018,0 0 16px rgba(255,210,100,.7),inset 0 0 12px rgba(0,0,0,.38);
}
.wheel-hub.hub-photo{display:none !important}
.bottom-plaque{
  position:relative;
  z-index:6;
  width:min(520px,72vw);
  margin:-2px auto 8px;
  padding:9px 16px;
  border-radius:10px;
  background:linear-gradient(180deg,rgba(255,223,138,.12),rgba(0,0,0,0) 38%),#14304a;
  border:4px solid #b87532;
  box-shadow:0 0 0 4px #5a3015,0 0 18px rgba(255,193,80,.5),inset 0 0 22px rgba(0,0,0,.45);
}
.bottom-plaque:before,.bottom-plaque:after{
  content:"★";
  color:#c61d2e;
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  text-shadow:0 0 6px rgba(255,205,90,.7);
}
.bottom-plaque:before{left:16px}
.bottom-plaque:after{right:16px}
.wheel-counter{max-width:none;padding:0;border:0;background:transparent;box-shadow:none;color:#efe0bd;text-align:center;font-family:"Copperplate","Georgia",serif}
.count-big{font-size:clamp(1.45rem,4vw,2.35rem);color:#f2b247}
.count-small{font-size:clamp(.9rem,2.3vw,1.35rem);margin:0 3px}
.controls-row{display:flex;gap:9px;justify-content:center;align-items:center;flex-wrap:wrap}
.spin-btn{margin:0}
.dev-actions{position:relative;z-index:8}

@media (max-width:520px){
  .stage{padding:18px 18px 12px}
  .marquee{width:80vw;padding:7px 10px}
  .portrait-medallion{width:76px;height:76px;margin:5px auto -6px;border-width:4px;box-shadow:0 0 0 4px #6a3117,0 0 0 7px #a56b2b,0 0 18px rgba(255,200,90,.58)}
  .poster-wheel-wrap{width:min(86vw,49svh,370px);height:min(86vw,49svh,370px);padding:8px}
  .bottom-plaque{width:min(78vw,360px);padding:7px 12px;margin-top:-1px}
  .bottom-plaque:before{left:9px}.bottom-plaque:after{right:9px}
  .star-hub{font-size:2rem}
}
@media (max-width:520px) and (max-height:760px){
  .marquee{padding:5px 8px}
  .portrait-medallion{width:64px;height:64px}
  .poster-wheel-wrap{width:min(82vw,45svh,320px);height:min(82vw,45svh,320px)}
}


/* Normal-to-crazy center face build */
.portrait-medallion,
.star-hub{
  display:none !important;
}
.center-face-stack{
  margin-top:8px;
}
.center-face-wheel{
  margin-top:4px;
}
.wheel-hub.hub-photo{
  display:flex !important;
  position:absolute;
  left:50%;
  top:50%;
  z-index:7;
  width:32%;
  height:32%;
  border-radius:50%;
  overflow:hidden;
  background:#777;
  border:7px solid #f6e6bd;
  box-shadow:
    0 0 0 7px #8e1326,
    0 0 0 11px #d9a64c,
    0 0 26px rgba(255,220,110,.78),
    inset 0 0 18px rgba(0,0,0,.38);
  transform:translate(-50%,-50%) rotate(var(--hub-spin,0deg));
}
.wheel-hub.hub-photo img{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center center;
  transform:none !important;
}
.wheel-hub.normal-face img{
  filter:contrast(1.05) saturate(1.05);
}
.wheel-hub.crazy-face img{
  filter:contrast(1.08) saturate(1.12) brightness(1.03);
}
.wheel-hub.hub-photo.hub-spinning{
  transition:none;
}
.wheel-hub.hub-photo.hub-dizzy{
  animation:dizzy-wobble 1.55s ease-in-out both;
  filter:saturate(1.25) brightness(1.08);
}
.poster-wheel-wrap.center-face-wheel{
  width:min(76vw,58svh,560px);
  height:min(76vw,58svh,560px);
}
.bottom-plaque{
  margin-top:8px;
}
.controls-row{
  margin-top:4px;
}

/* Larger rolling eyes over crazy face */
.dizzy-eye{
  width:19%;
  height:19%;
  top:39%;
  background:#fff7cf;
  border:3px solid #2b0b12;
}
.dizzy-eye.left{left:27%}
.dizzy-eye.right{right:27%}

@media (max-width:520px){
  .wheel-hub.hub-photo{
    width:33%;
    height:33%;
    border-width:5px;
    box-shadow:
      0 0 0 5px #8e1326,
      0 0 0 8px #d9a64c,
      0 0 18px rgba(255,220,110,.7),
      inset 0 0 12px rgba(0,0,0,.35);
  }
  .poster-wheel-wrap.center-face-wheel{
    width:min(86vw,50svh,380px);
    height:min(86vw,50svh,380px);
  }
}
@media (max-width:520px) and (max-height:760px){
  .poster-wheel-wrap.center-face-wheel{
    width:min(82vw,46svh,330px);
    height:min(82vw,46svh,330px);
  }
}


/* New no-neck normal face in center hub */
.wheel-hub.normal-face img{
  object-fit:cover;
  object-position:center center;
  transform:none !important;
  filter:contrast(1.05) saturate(1.04);
}


/* Match normal face background to crazy face gray */
.wheel-hub.normal-face{
  background:rgb(112,112,112);
}


/* CLEANED MOCKUP BACKGROUND + LIVE OVERLAY
   The painted wheel/plaque/buttons were removed from the background.
   Live wheel/counter/buttons are sized to fit the cleared stage area.
*/
html, body {
  min-height:100%;
  overflow:hidden !important;
  background:#09070a !important;
}

body:before,
body:after,
.circus-curtain-left,
.circus-curtain-right,
.circus-lights-frame,
.marquee,
.machine-sign,
.clean-sign,
.v3-marquee,
.asset-marquee,
.mockup-header,
.tagline,
.bunting,
.tent-cap {
  display:none !important;
}

.stage {
  position:relative !important;
  z-index:1 !important;
  width:min(100vw, calc(100svh * 1500 / 1049)) !important;
  height:min(100svh, calc(100vw * 1049 / 1500)) !important;
  min-height:0 !important;
  margin:0 auto !important;
  padding:0 !important;
  overflow:hidden !important;
  background:url("assets/approved-stage-bg-clean.jpg") center center / contain no-repeat !important;
  display:block !important;
}

/* Live wheel placement in the cleared stage area */
.wheel-panel {
  position:absolute !important;
  left:50% !important;
  top:55.6% !important;
  transform:translate(-50%, -50%) !important;
  width:44.8% !important;
  height:auto !important;
  margin:0 !important;
  display:block !important;
  z-index:5 !important;
}

.test-panel,
.category-grid,
.dev-actions,
.stage > div[style*="font-size"] {
  display:none !important;
}

.wheel-top-row {
  display:none !important;
}

.wheel-wrap,
.poster-wheel-wrap {
  width:100% !important;
  height:auto !important;
  aspect-ratio:1 / 1 !important;
  padding:0 !important;
  margin:0 auto !important;
  border-radius:50% !important;
  background:transparent !important;
  box-shadow:none !important;
  filter:drop-shadow(0 0 10px rgba(255,205,100,.42)) !important;
}

.wheel-wrap:before {
  display:none !important;
}

#lifeWheel {
  width:100% !important;
  height:100% !important;
  display:block !important;
  filter:none !important;
}

/* Pointer */
.wheel-pointer {
  top:-1.8% !important;
  border-left-width:3.3% !important;
  border-right-width:3.3% !important;
  border-top-width:7.5% !important;
  border-top-color:#f1dfb4 !important;
  z-index:20 !important;
  filter:drop-shadow(0 3px 3px rgba(0,0,0,.75)) drop-shadow(0 0 7px rgba(255,210,120,.7)) !important;
}
.wheel-pointer:after {
  background:#9b1326 !important;
  border-color:#f1dfb4 !important;
}

/* Center face */
.wheel-hub.hub-photo {
  display:flex !important;
  width:32% !important;
  height:32% !important;
  border-color:#f6e6bd !important;
  box-shadow:
    0 0 0 .42vw #9b1326,
    0 0 0 .66vw #d9a64c,
    0 0 14px rgba(255,220,110,.68),
    inset 0 0 12px rgba(0,0,0,.35) !important;
}

.star-hub,
.portrait-medallion {
  display:none !important;
}

/* Painted/live plaque */
.bottom-plaque {
  position:absolute !important;
  left:50% !important;
  top:104.6% !important;
  transform:translateX(-50%) !important;
  width:88% !important;
  margin:0 !important;
  padding:.72em 1.1em !important;
  border-radius:.45em !important;
  background:
    linear-gradient(180deg,rgba(255,223,138,.12),rgba(0,0,0,0) 38%),
    #102b45 !important;
  border:.22em solid #b87532 !important;
  box-shadow:
    0 0 0 .18em #5a3015,
    0 0 1em rgba(255,193,80,.5),
    inset 0 0 1em rgba(0,0,0,.45) !important;
  z-index:8 !important;
}
.bottom-plaque:before,
.bottom-plaque:after {
  content:"★";
  color:#c61d2e;
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  text-shadow:0 0 6px rgba(255,205,90,.7);
}
.bottom-plaque:before { left:1em; }
.bottom-plaque:after { right:1em; }

.wheel-counter {
  max-width:none !important;
  padding:0 !important;
  border:0 !important;
  background:transparent !important;
  box-shadow:none !important;
  color:#efe0bd !important;
  text-align:center !important;
  font-family:"Copperplate","Georgia",serif !important;
  font-weight:900 !important;
  text-transform:uppercase !important;
  text-shadow:0 2px 0 #301006,0 0 8px rgba(255,210,110,.4) !important;
}
.count-big {
  font-size:clamp(.95rem, 2.05vw, 1.75rem) !important;
  color:#f2b247 !important;
}
.count-small {
  font-size:clamp(.55rem, 1.05vw, .88rem) !important;
  margin:0 .18em !important;
}

/* Live buttons positioned in front of cleared stage */
.controls-row {
  position:absolute !important;
  left:50% !important;
  top:115.0% !important;
  transform:translateX(-50%) !important;
  display:flex !important;
  justify-content:center !important;
  align-items:center !important;
  gap:1.2vw !important;
  width:86% !important;
  z-index:9 !important;
  margin:0 !important;
}

.spin-btn {
  margin:0 !important;
  padding:.56em 1.65em !important;
  border-radius:999px !important;
  font-size:clamp(.70rem, 1.25vw, 1.05rem) !important;
  line-height:1 !important;
  font-family:"Copperplate","Georgia",serif !important;
  letter-spacing:.09em !important;
  color:#fff1c4 !important;
  background:linear-gradient(180deg,#b51f35,#821322 72%,#4b0b14) !important;
  border:.18em solid #f2bd58 !important;
  box-shadow:0 .25em 0 #3b0710,0 0 .85em rgba(255,205,90,.42),inset 0 1px 0 rgba(255,255,255,.22) !important;
}

.sound-btn {
  padding:.45em .85em !important;
  border-radius:999px !important;
  font-size:clamp(.50rem, .72vw, .70rem) !important;
  line-height:1 !important;
  background:linear-gradient(180deg,#f3dfb4,#d6a957) !important;
  color:#6a1020 !important;
  border:.16em solid #5a2a14 !important;
  box-shadow:0 .22em 0 #3b0710,0 0 .7em rgba(255,205,90,.25) !important;
}

.spin-result,
.spin-result:empty {
  display:none !important;
}

@media (max-width:520px) {
  .stage {
    width:100vw !important;
    height:calc(100vw * 1049 / 1500) !important;
    max-height:100svh !important;
  }
  .wheel-panel {
    width:45.8% !important;
    top:55.8% !important;
  }
  .bottom-plaque {
    top:104.8% !important;
    width:92% !important;
  }
  .controls-row {
    top:115.4% !important;
    width:90% !important;
  }
}

@media (max-width:520px) and (max-height:760px) {
  .stage {
    width:min(100vw, calc(100svh * 1500 / 1049)) !important;
    height:min(100svh, calc(100vw * 1049 / 1500)) !important;
  }
  .wheel-panel {
    width:44.8% !important;
    top:55.6% !important;
  }
}


/* Wheel 20% smaller adjustment — background/plaque/buttons unchanged */
.wheel-panel{
  width:35.84% !important; /* 44.8% × 0.8 */
}

/* Keep counter and buttons visually where they were by positioning relative to the smaller wheel */
.bottom-plaque{
  top:130.75% !important; /* equivalent visual position after 20% shrink */
}
.controls-row{
  top:143.75% !important; /* equivalent visual position after 20% shrink */
}

@media (max-width:520px){
  .wheel-panel{
    width:36.64% !important; /* 45.8% × 0.8 */
  }
  .bottom-plaque{
    top:131% !important;
  }
  .controls-row{
    top:144.25% !important;
  }
}

@media (max-width:520px) and (max-height:760px){
  .wheel-panel{
    width:35.84% !important; /* 44.8% × 0.8 */
  }
  .bottom-plaque{
    top:130.75% !important;
  }
  .controls-row{
    top:143.75% !important;
  }
}


/* Move plaque/buttons up; wheel remains 20% smaller */
.bottom-plaque{
  top:121.5% !important;
}

.controls-row{
  top:132.5% !important;
}

@media (max-width:520px){
  .bottom-plaque{
    top:121.8% !important;
  }
  .controls-row{
    top:133% !important;
  }
}

@media (max-width:520px) and (max-height:760px){
  .bottom-plaque{
    top:121.5% !important;
  }
  .controls-row{
    top:132.5% !important;
  }
}


/* Counter to side, buttons up */
.bottom-plaque{
  left:112% !important;
  top:54% !important;
  transform:translateY(-50%) !important;
  width:44% !important;
  padding:.58em .8em !important;
  border-radius:.45em !important;
}

.bottom-plaque:before,
.bottom-plaque:after{
  display:none !important;
}

.wheel-counter{
  line-height:1.05 !important;
  white-space:normal !important;
}

.count-big{
  display:block !important;
  font-size:clamp(1.1rem, 2.2vw, 1.8rem) !important;
  line-height:.95 !important;
}

.count-small{
  display:block !important;
  font-size:clamp(.55rem, .9vw, .75rem) !important;
  line-height:1.1 !important;
  margin:.08em 0 !important;
}

/* Buttons move under wheel, not down below page */
.controls-row{
  top:105.5% !important;
  width:86% !important;
  gap:.9vw !important;
}

.spin-btn{
  font-size:clamp(.70rem, 1.15vw, .98rem) !important;
  padding:.50em 1.35em !important;
}

.sound-btn{
  font-size:clamp(.48rem, .68vw, .66rem) !important;
  padding:.40em .72em !important;
}

/* On narrow screens, side counter becomes a small plaque above buttons */
@media (max-width:700px){
  .bottom-plaque{
    left:50% !important;
    top:107.5% !important;
    transform:translateX(-50%) !important;
    width:78% !important;
    padding:.48em .7em !important;
  }

  .count-big,
  .count-small{
    display:inline !important;
  }

  .count-big{
    font-size:clamp(.95rem, 4.5vw, 1.45rem) !important;
  }

  .count-small{
    font-size:clamp(.55rem, 2.5vw, .82rem) !important;
    margin:0 .15em !important;
  }

  .controls-row{
    top:117.5% !important;
    width:86% !important;
  }
}

@media (max-width:520px){
  .bottom-plaque{
    top:107.2% !important;
    width:82% !important;
  }
  .controls-row{
    top:117.8% !important;
  }
}

@media (max-width:520px) and (max-height:760px){
  .bottom-plaque{
    top:106.5% !important;
  }
  .controls-row{
    top:115.5% !important;
  }
}


/* Admin preview / exhibit page scrolling and media sizing */
html, body{
  overflow-y:auto !important;
  overflow-x:hidden !important;
  height:auto !important;
  min-height:100% !important;
}

body.preview-page,
body.exhibit-page{
  overflow-y:auto !important;
}

body.preview-page .stage,
body.exhibit-page .stage,
body:has(#exhibitRoot) .stage{
  min-height:100svh !important;
  height:auto !important;
  overflow:visible !important;
  display:block !important;
  padding-bottom:48px !important;
}

#exhibitRoot{
  max-width:1100px !important;
  width:calc(100% - 28px) !important;
  margin:18px auto 48px !important;
  overflow:visible !important;
}

#exhibitRoot img,
.media img,
.exhibit img,
.story img{
  max-width:min(100%, 1024px) !important;
  width:auto !important;
  height:auto !important;
  display:block !important;
  margin:16px auto !important;
  object-fit:contain !important;
}

#exhibitRoot video,
.media video,
.exhibit video,
.story video{
  max-width:min(100%, 1024px) !important;
  width:100% !important;
  height:auto !important;
  display:block !important;
  margin:16px auto !important;
}

#exhibitRoot audio,
.media audio{
  width:min(100%, 1024px) !important;
  display:block !important;
  margin:16px auto !important;
}

.media{
  max-width:1100px !important;
  margin-left:auto !important;
  margin-right:auto !important;
  overflow:visible !important;
}


/* Hidden flag reset target
   Invisible rectangle over top flag area. No visible reset button.
*/
.hidden-flag-reset{
  position:absolute !important;
  top:2.2% !important;
  right:5.5% !important;
  width:18% !important;
  height:10% !important;
  z-index:50 !important;
  opacity:0 !important;
  background:transparent !important;
  border:0 !important;
  padding:0 !important;
  margin:0 !important;
  cursor:pointer !important;
  appearance:none !important;
  -webkit-appearance:none !important;
}

.hidden-flag-reset:focus{
  outline:none !important;
}

.hidden-flag-reset.reset-flash{
  opacity:.18 !important;
  background:#f0bf63 !important;
  border-radius:8px !important;
}

@media(max-width:700px){
  .hidden-flag-reset{
    top:2% !important;
    right:4% !important;
    width:24% !important;
    height:11% !important;
  }
}


/* Hidden reset hard-fix: still invisible, brief flash only after confirmed reset */
.hidden-flag-reset{
  pointer-events:auto !important;
}
.hidden-flag-reset.reset-flash{
  opacity:.32 !important;
  background:#f0bf63 !important;
  box-shadow:0 0 20px rgba(240,191,99,.8) !important;
}


/* Direct hidden flag reset fix */
.hidden-flag-reset{
  position:absolute !important;
  top:0 !important;
  right:0 !important;
  width:28% !important;
  height:18% !important;
  z-index:99999 !important;
  opacity:0 !important;
  background:transparent !important;
  border:0 !important;
  padding:0 !important;
  margin:0 !important;
  cursor:pointer !important;
  pointer-events:auto !important;
  display:block !important;
}

.hidden-flag-reset.reset-flash{
  opacity:.55 !important;
  background:rgba(240,191,99,.9) !important;
  outline:3px solid rgba(255,255,255,.7) !important;
  box-shadow:0 0 22px rgba(240,191,99,.95) !important;
  border-radius:10px !important;
}


/* 2026-06-25b: hard override for cleaner wheel pointer and testable completion screen */
.wheel-pointer{
  display:block !important;
  position:absolute !important;
  left:50% !important;
  top:-6.4% !important;
  transform:translateX(-50%) !important;
  width:10.5% !important;
  height:14.5% !important;
  border:0 !important;
  background:
    linear-gradient(90deg, rgba(96,45,17,.95), rgba(255,238,166,.98) 35%, rgba(210,139,45,.98) 70%, rgba(87,38,15,.95)) !important;
  clip-path:polygon(50% 100%, 7% 13%, 31% 0, 50% 23%, 69% 0, 93% 13%) !important;
  border-radius:0 0 1.1em 1.1em !important;
  z-index:40 !important;
  filter:drop-shadow(0 .28em .2em rgba(0,0,0,.82)) drop-shadow(0 0 .55em rgba(255,218,116,.72)) !important;
}
.wheel-pointer:before{
  content:"" !important;
  position:absolute !important;
  inset:14% 35% 28% 35% !important;
  background:linear-gradient(#fff6cf,#b87532) !important;
  clip-path:polygon(50% 100%,0 0,100% 0) !important;
  opacity:.85 !important;
}
.wheel-pointer:after{
  content:none !important;
  display:none !important;
  background:transparent !important;
  border:0 !important;
}

.complete-mode .stage{
  overflow:hidden !important;
}
.complete-mode #wheelPanel,
.complete-mode .bottom-plaque,
.complete-mode .controls-row,
.complete-mode .spin-result{
  display:none !important;
}
.complete-screen{
  position:absolute !important;
  left:50% !important;
  top:56% !important;
  transform:translate(-50%,-50%) !important;
  width:min(82%, 620px) !important;
  z-index:80 !important;
  text-align:center !important;
}
.complete-card{
  background:linear-gradient(180deg,rgba(18,43,69,.96),rgba(8,16,31,.96)) !important;
  border:.28em solid #d6a957 !important;
  border-radius:1.2em !important;
  padding:1.4em 1.6em !important;
  color:#f7e7bd !important;
  box-shadow:0 0 0 .22em #6b3217,0 0 2em rgba(255,205,90,.45),0 1em 2em rgba(0,0,0,.45) !important;
}
.complete-card h2{
  margin:.1em 0 .35em !important;
  color:#f2b247 !important;
  font-family:"Copperplate","Georgia",serif !important;
  text-transform:uppercase !important;
  letter-spacing:.08em !important;
  font-size:clamp(1.2rem,3.1vw,2.2rem) !important;
  text-shadow:0 2px 0 #301006,0 0 8px rgba(255,210,110,.45) !important;
}
.complete-card p{
  margin:.45em auto !important;
  max-width:34em !important;
  font-size:clamp(.88rem,1.6vw,1.05rem) !important;
}
.complete-actions{
  display:flex !important;
  justify-content:center !important;
  flex-wrap:wrap !important;
  gap:.8em !important;
  margin-top:1.1em !important;
}
.complete-actions .return-btn{
  border-radius:999px !important;
  padding:.56em 1.2em !important;
}
@media (max-width:520px){
  .complete-screen{width:88% !important; top:56% !important;}
  .complete-card{padding:1em .85em !important;}
}


/* 2026-06-25c: vertical phone layout - use a separate composition, not the shrunken desktop poster */
@media (max-width:700px) and (orientation: portrait){
  html,
  body{
    width:100% !important;
    min-height:100svh !important;
    height:auto !important;
    overflow-x:hidden !important;
    overflow-y:auto !important;
    background:
      radial-gradient(circle at 50% 8%, rgba(255,214,113,.20), transparent 42svh),
      linear-gradient(180deg,#12080d 0,#07182c 48%,#09070a 100%) !important;
  }

  body:before,
  body:after,
  .circus-curtain-left,
  .circus-curtain-right,
  .circus-lights-frame{
    display:none !important;
  }

  .stage{
    width:100vw !important;
    height:auto !important;
    min-height:100svh !important;
    max-height:none !important;
    overflow:visible !important;
    margin:0 !important;
    padding:max(10px, env(safe-area-inset-top)) 10px calc(24px + env(safe-area-inset-bottom)) !important;
    background:
      linear-gradient(90deg, rgba(135,20,35,.88) 0 18px, transparent 18px calc(100% - 18px), rgba(135,20,35,.88) calc(100% - 18px)),
      radial-gradient(circle at center top,rgba(255,214,113,.20),transparent 34svh),
      repeating-linear-gradient(90deg,#071b33 0 30px,#0b2342 30px 60px) !important;
    display:flex !important;
    flex-direction:column !important;
    align-items:center !important;
    justify-content:flex-start !important;
  }

  .wheel-panel{
    position:static !important;
    transform:none !important;
    width:100% !important;
    max-width:none !important;
    height:auto !important;
    margin:0 auto !important;
    padding:0 !important;
    display:flex !important;
    flex-direction:column !important;
    align-items:center !important;
  }

  .wheel-wrap,
  .poster-wheel-wrap,
  .poster-wheel-wrap.center-face-wheel{
    position:relative !important;
    width:min(98vw, 78svh) !important;
    height:min(98vw, 78svh) !important;
    aspect-ratio:1 / 1 !important;
    padding:6px !important;
    margin:4px auto 0 !important;
    border-radius:50% !important;
    background:radial-gradient(circle,#241321 0 57%,#110b14 74%,rgba(255,210,90,.16) 100%) !important;
    box-shadow:0 0 18px rgba(255,198,79,.36), inset 0 0 28px rgba(0,0,0,.50) !important;
    filter:none !important;
  }

  .wheel-wrap:before,
  .poster-wheel-wrap:before{
    display:none !important;
  }

  #lifeWheel{
    width:100% !important;
    height:100% !important;
    display:block !important;
  }

  .wheel-pointer{
    top:-5.5% !important;
    width:10.5% !important;
    height:13.5% !important;
    z-index:40 !important;
  }

  .wheel-hub.hub-photo{
    width:31% !important;
    height:31% !important;
    border-width:5px !important;
    box-shadow:0 0 0 3px #9b1326,0 0 0 5px #d9a64c,0 0 14px rgba(255,220,110,.68),inset 0 0 12px rgba(0,0,0,.35) !important;
  }

  .bottom-plaque{
    position:static !important;
    left:auto !important;
    top:auto !important;
    transform:none !important;
    width:min(92vw, 440px) !important;
    margin:8px auto 8px !important;
    padding:.58em .72em !important;
    border-radius:14px !important;
    z-index:auto !important;
  }

  .wheel-counter{
    line-height:1.1 !important;
  }

  .count-big{
    display:inline !important;
    font-size:clamp(1.05rem, 5vw, 1.45rem) !important;
  }

  .count-small{
    display:inline !important;
    font-size:clamp(.66rem, 3vw, .88rem) !important;
  }

  .controls-row{
    position:static !important;
    left:auto !important;
    top:auto !important;
    transform:none !important;
    width:min(94vw, 440px) !important;
    margin:0 auto !important;
    display:grid !important;
    grid-template-columns:1fr auto !important;
    gap:8px !important;
    align-items:center !important;
    z-index:auto !important;
  }

  .spin-btn{
    width:100% !important;
    min-height:46px !important;
    padding:.78em .9em !important;
    font-size:clamp(1rem, 4.8vw, 1.25rem) !important;
    white-space:nowrap !important;
  }

  .sound-btn{
    min-height:42px !important;
    padding:.62em .72em !important;
    font-size:clamp(.72rem, 3.1vw, .86rem) !important;
    white-space:nowrap !important;
  }

  .spin-result{
    display:block !important;
    min-height:1.2em !important;
    margin:8px auto 0 !important;
    font-size:.92rem !important;
  }

  .hidden-flag-reset{
    top:0 !important;
    right:0 !important;
    width:30vw !important;
    height:16vw !important;
  }
}

@media (max-width:430px) and (orientation: portrait){
  .wheel-wrap,
  .poster-wheel-wrap,
  .poster-wheel-wrap.center-face-wheel{
    width:99vw !important;
    height:99vw !important;
    margin-top:2px !important;
  }
  .stage{
    padding-left:4px !important;
    padding-right:4px !important;
  }
}

@media (max-width:380px) and (orientation: portrait){
  .wheel-wrap,
  .poster-wheel-wrap,
  .poster-wheel-wrap.center-face-wheel{
    width:98vw !important;
    height:98vw !important;
  }
  .controls-row{
    grid-template-columns:1fr !important;
  }
  .sound-btn{
    width:100% !important;
  }
}


/* 2026-06-25d: restore the phone-only "Take a Spin in My Brain" graphic */
.phone-brain-sign{
  display:none;
}

@media (max-width:700px) and (orientation: portrait){
  .phone-brain-sign{
    display:block !important;
    width:min(92vw, 470px) !important;
    margin:4px auto 2px !important;
    padding:9px 14px 8px !important;
    border-radius:18px !important;
    text-align:center !important;
    position:relative !important;
    z-index:2 !important;
    background:
      linear-gradient(180deg, rgba(255,244,196,.22), rgba(255,244,196,0) 35%),
      linear-gradient(180deg,#7f1222 0%, #4b0b14 100%) !important;
    border:3px solid #f2bd58 !important;
    box-shadow:
      0 4px 0 #3b0710,
      0 0 0 2px rgba(95,42,16,.95),
      0 0 18px rgba(255,205,90,.42),
      inset 0 0 14px rgba(0,0,0,.30) !important;
    font-family:"Copperplate","Bodoni 72 Smallcaps","Georgia",serif !important;
    text-transform:uppercase !important;
    pointer-events:none !important;
  }
  .phone-brain-sign:before,
  .phone-brain-sign:after{
    content:"★";
    position:absolute;
    top:50%;
    transform:translateY(-50%);
    color:#f6d46e;
    font-size:clamp(.82rem, 3.3vw, 1.05rem);
    text-shadow:0 2px 0 #4b0b14, 0 0 8px rgba(255,225,120,.7);
  }
  .phone-brain-sign:before{left:12px}
  .phone-brain-sign:after{right:12px}
  .phone-sign-top,
  .phone-sign-bottom{
    display:block;
    color:#ffe9a9;
    text-shadow:
      0 2px 0 #351006,
      0 0 8px rgba(255,216,108,.55);
    letter-spacing:.08em;
    line-height:.95;
  }
  .phone-sign-top{
    font-size:clamp(1.05rem, 5.4vw, 1.62rem);
    font-weight:900;
  }
  .phone-sign-bottom{
    margin-top:1px;
    font-size:clamp(1.18rem, 6.4vw, 1.92rem);
    font-weight:900;
  }
  .wheel-wrap,
  .poster-wheel-wrap,
  .poster-wheel-wrap.center-face-wheel{
    width:min(97vw, 72svh) !important;
    height:min(97vw, 72svh) !important;
    margin-top:1px !important;
  }
}

@media (max-width:430px) and (orientation: portrait){
  .phone-brain-sign{
    width:94vw !important;
    margin-top:3px !important;
    padding:7px 12px 6px !important;
  }
  .wheel-wrap,
  .poster-wheel-wrap,
  .poster-wheel-wrap.center-face-wheel{
    width:96vw !important;
    height:96vw !important;
  }
}

@media (max-width:380px) and (orientation: portrait){
  .phone-brain-sign{
    padding-top:6px !important;
    padding-bottom:5px !important;
  }
  .phone-sign-top{font-size:clamp(.95rem, 5.1vw, 1.2rem) !important}
  .phone-sign-bottom{font-size:clamp(1.05rem, 6vw, 1.38rem) !important}
  .wheel-wrap,
  .poster-wheel-wrap,
  .poster-wheel-wrap.center-face-wheel{
    width:95vw !important;
    height:95vw !important;
  }
}


/* 2026-06-25e: guaranteed phone marquee above wheel.
   Uses a wheel-panel pseudo-element so it appears even if the separate sign div is missed/cached. */
@media (max-width:900px){
  .phone-brain-sign{display:none !important;}
  .wheel-panel::before{
    content:"TAKE A SPIN\A IN MY BRAIN" !important;
    white-space:pre-line !important;
    display:block !important;
    width:min(94vw, 500px) !important;
    box-sizing:border-box !important;
    margin:0 auto 8px !important;
    padding:8px 42px 7px !important;
    border-radius:18px !important;
    text-align:center !important;
    position:relative !important;
    z-index:80 !important;
    background:
      linear-gradient(180deg, rgba(255,244,196,.24), rgba(255,244,196,0) 36%),
      linear-gradient(180deg,#871323 0%, #560b17 100%) !important;
    border:3px solid #f3c261 !important;
    box-shadow:
      0 4px 0 #36070f,
      0 0 0 2px rgba(98,43,17,.96),
      0 0 20px rgba(255,205,90,.45),
      inset 0 0 14px rgba(0,0,0,.30) !important;
    color:#ffe9a9 !important;
    font-family:"Copperplate","Bodoni 72 Smallcaps","Georgia",serif !important;
    font-weight:900 !important;
    font-size:clamp(1.05rem, 5.9vw, 1.78rem) !important;
    line-height:.96 !important;
    letter-spacing:.085em !important;
    text-transform:uppercase !important;
    text-shadow:0 2px 0 #351006,0 0 8px rgba(255,216,108,.58) !important;
    pointer-events:none !important;
  }
}

@media (max-width:430px) and (orientation: portrait){
  .wheel-panel::before{
    width:94vw !important;
    margin-bottom:6px !important;
    padding:7px 32px 6px !important;
    font-size:clamp(1.0rem, 5.8vw, 1.42rem) !important;
  }
  .wheel-wrap,
  .poster-wheel-wrap,
  .poster-wheel-wrap.center-face-wheel{
    width:94vw !important;
    height:94vw !important;
  }
}

@media (max-width:380px) and (orientation: portrait){
  .wheel-panel::before{
    padding-top:6px !important;
    padding-bottom:5px !important;
    font-size:clamp(.92rem, 5.5vw, 1.18rem) !important;
  }
  .wheel-wrap,
  .poster-wheel-wrap,
  .poster-wheel-wrap.center-face-wheel{
    width:93vw !important;
    height:93vw !important;
  }
}


/* 2026-06-25f: phone marquee uses the richer desktop marquee treatment, not the plain red sign */
@media (max-width:900px) and (orientation: portrait){
  .wheel-panel::before{
    content:none !important;
    display:none !important;
  }
  .phone-brain-sign{
    display:block !important;
    position:relative !important;
    z-index:120 !important;
    box-sizing:border-box !important;
    width:min(92vw, 560px) !important;
    margin:6px auto 5px !important;
    padding:10px 18px 11px !important;
    border:5px solid #c5913c !important;
    border-radius:20px 20px 12px 12px !important;
    text-align:center !important;
    background:
      linear-gradient(180deg, rgba(255,223,125,.20), rgba(0,0,0,0) 34%),
      repeating-linear-gradient(0deg, rgba(255,255,255,.035) 0 1px, transparent 1px 6px),
      radial-gradient(circle at 50% 20%, rgba(74,115,146,.42), transparent 58%),
      #14304a !important;
    box-shadow:
      0 0 0 4px #681421,
      0 0 0 9px #5a3015,
      0 0 28px rgba(255,194,85,.58),
      inset 0 0 34px rgba(0,0,0,.45) !important;
    pointer-events:none !important;
    transform:translateZ(0) !important;
  }
  .phone-brain-sign:before{
    content:"★" !important;
    position:absolute !important;
    left:50% !important;
    top:-31px !important;
    transform:translateX(-50%) !important;
    width:auto !important;
    height:auto !important;
    background:transparent !important;
    box-shadow:none !important;
    color:#e6a63e !important;
    font-size:2.05rem !important;
    line-height:1 !important;
    text-shadow:0 0 9px rgba(255,210,120,.9), 0 2px 0 #5a3015 !important;
  }
  .phone-brain-sign:after{
    content:"" !important;
    position:absolute !important;
    inset:7px !important;
    border:1px solid rgba(255,224,139,.48) !important;
    border-radius:13px 13px 8px 8px !important;
    background:transparent !important;
    box-shadow:inset 0 0 12px rgba(255,215,105,.12) !important;
    pointer-events:none !important;
  }
  .phone-sign-top,
  .phone-sign-bottom{
    display:block !important;
    margin:0 !important;
    font-family:"Copperplate", "Bodoni 72 Smallcaps", "Georgia", serif !important;
    font-variant:small-caps !important;
    font-weight:900 !important;
    text-transform:uppercase !important;
    line-height:.86 !important;
    letter-spacing:.065em !important;
    text-shadow:0 2px 0 #5a3015, 0 4px 0 #1b0d16, 0 0 11px rgba(255,211,122,.75) !important;
  }
  .phone-sign-top{
    color:#f2b247 !important;
    font-size:clamp(2.05rem, 9.1vw, 3.35rem) !important;
  }
  .phone-sign-bottom{
    color:#efe0bd !important;
    font-size:clamp(1.72rem, 7.9vw, 2.85rem) !important;
  }
  .wheel-wrap,
  .poster-wheel-wrap,
  .poster-wheel-wrap.center-face-wheel{
    width:min(95vw, 68svh) !important;
    height:min(95vw, 68svh) !important;
    margin-top:0 !important;
  }
}

@media (max-width:430px) and (orientation: portrait){
  .phone-brain-sign{
    width:91vw !important;
    margin-top:10px !important;
    margin-bottom:3px !important;
    padding:8px 14px 9px !important;
    border-width:4px !important;
    box-shadow:
      0 0 0 3px #681421,
      0 0 0 7px #5a3015,
      0 0 22px rgba(255,194,85,.54),
      inset 0 0 28px rgba(0,0,0,.43) !important;
  }
  .phone-brain-sign:before{
    top:-27px !important;
    font-size:1.75rem !important;
  }
  .phone-sign-top{font-size:clamp(1.78rem, 8.6vw, 2.32rem) !important;}
  .phone-sign-bottom{font-size:clamp(1.48rem, 7.2vw, 2.02rem) !important;}
  .wheel-wrap,
  .poster-wheel-wrap,
  .poster-wheel-wrap.center-face-wheel{
    width:93vw !important;
    height:93vw !important;
  }
}

@media (max-width:380px) and (orientation: portrait){
  .phone-brain-sign{
    width:90vw !important;
    padding:7px 12px 8px !important;
  }
  .phone-sign-top{font-size:clamp(1.55rem, 8vw, 2rem) !important;}
  .phone-sign-bottom{font-size:clamp(1.32rem, 6.9vw, 1.72rem) !important;}
  .wheel-wrap,
  .poster-wheel-wrap,
  .poster-wheel-wrap.center-face-wheel{
    width:92vw !important;
    height:92vw !important;
  }
}


/* 2026-06-25g: Use the actual desktop marquee graphic on vertical phones.
   No CSS-drawn marquee; the artwork is cropped from approved-stage-bg-clean.jpg. */
.phone-marquee-asset{
  display:none;
}
@media (max-width:900px) and (orientation: portrait){
  .phone-brain-sign,
  .phone-sign-top,
  .phone-sign-bottom{display:none !important;}
  .wheel-panel::before{content:none !important; display:none !important;}
  .phone-marquee-asset{
    display:block !important;
    width:96vw !important;
    max-width:640px !important;
    height:auto !important;
    margin:0 auto 2px !important;
    padding:0 !important;
    border:0 !important;
    background:none !important;
    box-shadow:none !important;
    position:relative !important;
    z-index:160 !important;
    pointer-events:none !important;
  }
  .wheel-wrap,
  .poster-wheel-wrap,
  .poster-wheel-wrap.center-face-wheel{
    width:94vw !important;
    height:94vw !important;
    margin-top:-12px !important;
  }
}
@media (max-width:430px) and (orientation: portrait){
  .phone-marquee-asset{
    width:98vw !important;
    margin-top:0 !important;
    margin-bottom:0 !important;
  }
  .wheel-wrap,
  .poster-wheel-wrap,
  .poster-wheel-wrap.center-face-wheel{
    width:95vw !important;
    height:95vw !important;
    margin-top:-14px !important;
  }
}
@media (max-width:380px) and (orientation: portrait){
  .phone-marquee-asset{width:99vw !important;}
  .wheel-wrap,
  .poster-wheel-wrap,
  .poster-wheel-wrap.center-face-wheel{
    width:94vw !important;
    height:94vw !important;
    margin-top:-12px !important;
  }
}

/* Exhibit media reliability */
.video-help{
  color:#fff1c6;
  font-size:.95rem;
  line-height:1.35;
  text-align:center;
  margin:8px auto 14px;
  opacity:.9;
}
.video-help a{color:#ffda7e;font-weight:bold;}
.caption{color:#d9c798;text-align:center;font-size:.95rem;margin-top:6px;}
.exhibit-card{position:relative;z-index:2;}
.exhibit-card .story{margin:12px 0 18px;}

/* 2026-06-26: Exhibit/preview pages must not inherit the wheel layout. */
body.exhibit-page,
body.preview-page{
  background:#08070a !important;
  color:#fff1c6 !important;
  overflow-y:auto !important;
}
body.exhibit-page .stage,
body.preview-page .stage,
body:has(#exhibitRoot) .stage{
  width:min(1120px,100%) !important;
  height:auto !important;
  min-height:100vh !important;
  margin:0 auto !important;
  padding:18px 14px 48px !important;
  overflow:visible !important;
  background:none !important;
  display:block !important;
}
body.exhibit-page .marquee,
body.preview-page .marquee,
body:has(#exhibitRoot) .marquee{
  display:block !important;
  max-width:900px !important;
  margin:0 auto 16px !important;
  padding:12px 14px !important;
  border:4px solid #f7c85f !important;
  border-radius:18px !important;
  background:linear-gradient(#6c1517,#2b0a0d) !important;
  box-shadow:0 0 25px rgba(255,190,70,.35) !important;
  text-align:center !important;
}
body.exhibit-page .marquee h1,
body.preview-page .marquee h1,
body:has(#exhibitRoot) .marquee h1,
body.exhibit-page .tagline,
body.preview-page .tagline,
body:has(#exhibitRoot) .tagline{
  display:block !important;
}
#exhibitRoot{
  position:relative !important;
  z-index:10 !important;
  max-width:960px !important;
  width:calc(100% - 20px) !important;
  margin:0 auto 48px !important;
  overflow:visible !important;
}
#exhibitRoot .exhibit-card{
  display:block !important;
  max-width:900px !important;
  margin:0 auto !important;
  padding:22px !important;
  background:rgba(5,13,28,.94) !important;
  border:3px solid #f7c85f !important;
  border-radius:18px !important;
  color:#fff1c6 !important;
  text-align:left !important;
  box-shadow:0 0 22px rgba(255,200,80,.22) !important;
}
#exhibitRoot .exhibit-card h2{
  display:block !important;
  color:#ffda7e !important;
  text-align:center !important;
  font-size:2rem !important;
  margin:0 0 6px !important;
}
#exhibitRoot .category-label{
  display:block !important;
  color:#d9c798 !important;
  text-align:center !important;
  margin-bottom:16px !important;
}
#exhibitRoot .story,
#exhibitRoot .description{
  display:block !important;
  color:#fff1c6 !important;
  font-size:1.12rem !important;
  line-height:1.55 !important;
  white-space:pre-wrap !important;
  margin:12px 0 18px !important;
}
#exhibitRoot .media{
  display:block !important;
  margin-top:18px !important;
}
#exhibitRoot video,
#exhibitRoot img{
  max-width:100% !important;
  width:auto !important;
  max-height:75vh !important;
  object-fit:contain !important;
  display:block !important;
  margin:14px auto !important;
}
#exhibitRoot video{width:100% !important;background:#000 !important;}

/* Standalone exhibit/preview page.  Keeps preview completely separate from wheel/marquee layout. */
body.exhibit-only-page{
  margin:0;
  min-height:100svh;
  overflow:auto;
  background:#050914;
  color:#fff3c8;
  font-family: Georgia, 'Times New Roman', serif;
}
.exhibit-only-root{
  width:min(980px, calc(100% - 28px));
  margin:0 auto;
  padding:24px 0 38px;
}
.exhibit-only-card{
  display:block;
  max-width:920px;
  margin:0 auto;
  padding:26px 28px;
  background:rgba(7,18,35,.96);
  border:3px solid #f1c15f;
  border-radius:18px;
  box-shadow:0 0 22px rgba(255,200,80,.25);
  text-align:left;
}
.exhibit-only-card h1{
  margin:0 0 8px;
  color:#ffda7e;
  font-size:clamp(2rem, 5vw, 3.4rem);
  line-height:1.05;
  text-align:center;
}
.exhibit-only-card .category-label{
  margin:0 0 22px;
  color:#d9c798;
  text-align:center;
  text-transform:none;
  letter-spacing:.04em;
  font-weight:bold;
}
.exhibit-only-card .story{
  display:block;
  margin:0 0 22px;
  color:#fff3c8;
  font-size:clamp(1.15rem,2.2vw,1.45rem);
  line-height:1.55;
  white-space:pre-wrap;
}
.exhibit-media{
  display:block;
  margin-top:22px;
}
.exhibit-figure{
  margin:18px auto;
  text-align:center;
}
.exhibit-figure img,
.exhibit-figure video{
  display:block;
  max-width:100%;
  max-height:72vh;
  margin:0 auto;
  border-radius:12px;
  background:#000;
  border:1px solid rgba(241,193,95,.35);
}
.exhibit-figure audio{
  display:block;
  width:min(680px,100%);
  margin:0 auto;
}
.exhibit-figure figcaption{
  margin-top:8px;
  color:#e8d49c;
  font-size:1rem;
}
.video-help,.exhibit-no-media,.file-link,.preview-debug{
  color:#d7c99d;
  font-size:.95rem;
  text-align:center;
  margin-top:8px;
}
.preview-debug{
  margin-top:22px;
  opacity:.72;
  font-size:.82rem;
}
.video-error{color:#ffb1a8;font-weight:bold;}
.return-line{text-align:center;margin-top:26px;}
@media(max-width:620px){
  .exhibit-only-root{width:calc(100% - 14px);padding:10px 0 24px;}
  .exhibit-only-card{padding:18px 16px;border-radius:14px;}
}

.video-sound-toggle{
  display:inline-block;
  margin:10px auto 6px;
  padding:10px 14px;
  border:2px solid #ffd36e;
  border-radius:10px;
  background:#1d3d66;
  color:#fff4cf;
  font:bold 15px Arial,sans-serif;
  cursor:pointer;
}
.video-sound-toggle.sound-on{
  background:#2b5d32;
}
