@charset "UTF-8";
:root{
  --gold:#e9c46a; --gold-d:#b8892e; --gold-l:#fff1c1;
  --red:#b3121c; --red-d:#7a0b12; --deep:#1c0306; --wine:#3b0910;
  --parch:#f7e8c4; --parch-d:#e4c88a; --ink:#4a1a10; --green:#1f5a34;
}
*{box-sizing:border-box;margin:0;padding:0}
html,body{height:100%;overflow:hidden;background:var(--deep);color:var(--parch);
  font-family:'Cormorant Garamond',Georgia,serif;-webkit-tap-highlight-color:transparent}
body{
  background:
    radial-gradient(ellipse at 15% 10%,rgba(255,120,40,.22),transparent 45%),
    radial-gradient(ellipse at 90% 5%,rgba(60,90,200,.25),transparent 40%),
    radial-gradient(ellipse at 50% 120%,rgba(179,18,28,.45),transparent 55%),
    linear-gradient(180deg,#14040a,#2a0509 60%,#12030a);
}
#snow{position:fixed;inset:0;pointer-events:none;z-index:1}

/* frame */
#deck{position:fixed;inset:14px 14px 70px;z-index:2}
#deck::before{content:"";position:absolute;inset:0;border:2px solid var(--gold-d);border-radius:18px;
  box-shadow:inset 0 0 0 6px rgba(0,0,0,.25),inset 0 0 0 7px rgba(233,196,106,.5),0 0 40px rgba(0,0,0,.6);
  pointer-events:none;z-index:5}

.slide{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;
  justify-content:safe center;
  padding:clamp(24px,4vw,60px);text-align:center;overflow-y:auto;overflow-x:hidden;
  opacity:0;visibility:hidden;transform:translateX(50px) scale(.98);
  transition:opacity .55s ease,transform .55s ease,visibility 0s .55s}
.slide.active{opacity:1;visibility:visible;transform:none;transition:opacity .55s ease,transform .55s ease}
.slide.past{transform:translateX(-50px) scale(.98)}

/* typography */
.script{font-family:'Great Vibes',cursive;color:var(--gold);text-shadow:0 2px 14px rgba(255,160,40,.45)}
.cinzel{font-family:'Cinzel',serif}
.title-xl{font-family:'Great Vibes',cursive;font-size:clamp(3rem,9vw,7rem);line-height:1;
  background:linear-gradient(180deg,#fff3c4,#e9c46a 55%,#b8892e);-webkit-background-clip:text;background-clip:text;color:transparent;
  filter:drop-shadow(0 3px 10px rgba(255,140,30,.35))}
.title-red{font-family:'Great Vibes',cursive;font-size:clamp(3.2rem,10vw,8rem);line-height:.95;
  background:linear-gradient(180deg,#ff6a4d,#d3202a 55%,#8c0f17);-webkit-background-clip:text;background-clip:text;color:transparent;
  filter:drop-shadow(0 2px 8px rgba(0,0,0,.6))}
.kicker{font-family:'Cinzel',serif;letter-spacing:.35em;text-transform:uppercase;color:var(--gold);font-size:clamp(.8rem,1.6vw,1.2rem)}
.sub{font-family:'Playfair Display',serif;font-style:italic;font-size:clamp(1rem,2vw,1.5rem);color:var(--parch)}

/* ribbons / banners */
.ribbon{display:inline-block;position:relative;padding:.55em 2.2em;margin:.6em 0;
  font-family:'Playfair Display',serif;font-weight:700;font-style:italic;color:var(--red-d);
  font-size:clamp(1.05rem,2.3vw,1.7rem);
  background:linear-gradient(180deg,#fbeab7,#e8c677);border:2px solid var(--gold-d);
  clip-path:polygon(0 0,100% 0,96% 50%,100% 100%,0 100%,4% 50%);box-shadow:0 4px 14px rgba(0,0,0,.4)}
.pill{display:inline-flex;align-items:center;gap:.7em;padding:.5em 1.6em;margin:.8em 0;border-radius:40px;
  background:linear-gradient(180deg,#6d0b13,#3f060c);border:2px solid var(--gold);color:var(--gold-l);
  font-family:'Playfair Display',serif;font-style:italic;font-size:clamp(1.1rem,2.8vw,2rem);box-shadow:0 0 20px rgba(233,196,106,.25)}

/* parchment card */
.parch{position:relative;width:min(900px,100%);padding:clamp(22px,3.5vw,46px);color:var(--ink);
  background:radial-gradient(ellipse at 30% 20%,#fff4d2,var(--parch) 55%,var(--parch-d));
  border:3px solid var(--gold-d);border-radius:14px;box-shadow:0 12px 40px rgba(0,0,0,.6),inset 0 0 40px rgba(150,90,20,.35)}
.parch::before,.parch::after{content:"\2744";position:absolute;color:var(--gold-d);opacity:.55;font-size:1.3rem}
.parch::before{top:8px;left:12px}.parch::after{bottom:8px;right:12px}
.parch h2{font-family:'Playfair Display',serif;font-weight:700;color:#3a140c;line-height:1.25}
.parch h2.q{font-size:clamp(1.5rem,3.6vw,2.7rem)}
.parch p{font-family:'Playfair Display',serif;font-size:clamp(1.05rem,2.2vw,1.55rem);line-height:1.5}

.qbadge{position:absolute;top:clamp(14px,3vw,36px);left:clamp(14px,3vw,40px);z-index:3;
  min-width:78px;height:54px;padding:0 20px;display:grid;place-items:center;border-radius:30px;
  font-family:'Cinzel',serif;font-weight:900;font-size:1.7rem;color:var(--gold-l);
  background:linear-gradient(180deg,#8c0f17,#4e060b);border:3px solid var(--gold);box-shadow:0 4px 14px rgba(0,0,0,.6)}

/* reveal mechanics */
.stage{position:relative;margin-top:clamp(16px,3vw,32px);min-height:clamp(190px,32vh,300px);display:grid;place-items:center}
.rv{opacity:0;transform:scale(.6) rotate(-3deg);pointer-events:none;position:absolute;inset:0;
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  transition:opacity .6s ease,transform .7s cubic-bezier(.2,1.4,.4,1)}
.rv.on{opacity:1;transform:none;pointer-events:auto;position:relative;max-width:100%}
.mystery{cursor:pointer;display:flex;flex-direction:column;align-items:center;gap:10px;border:0;background:none;
  font-family:'Cinzel',serif;color:var(--red-d);font-weight:700;letter-spacing:.15em;text-transform:uppercase;
  transition:transform .3s,opacity .4s}
.mystery .box{font-size:clamp(4rem,10vw,6.5rem);animation:bob 2s ease-in-out infinite;filter:drop-shadow(0 8px 10px rgba(0,0,0,.4))}
.mystery .lbl{padding:.55em 1.4em;border-radius:30px;font-size:clamp(.8rem,1.6vw,1rem);color:var(--gold-l);
  background:linear-gradient(180deg,#b3121c,#6d0b13);border:2px solid var(--gold);box-shadow:0 4px 14px rgba(0,0,0,.4)}
.mystery:hover{transform:scale(1.07)}
.mystery.gone{opacity:0;pointer-events:none;position:absolute}
@keyframes bob{50%{transform:translateY(-10px) rotate(4deg)}}

.art{font-size:clamp(4.5rem,11vw,8rem);line-height:1;filter:drop-shadow(0 8px 12px rgba(0,0,0,.35));margin-bottom:6px}
.answer{display:inline-block;padding:.55em 2.2em;max-width:100%;border-radius:10px;
  font-family:'Playfair Display',serif;font-weight:700;font-style:italic;color:var(--gold-l);
  font-size:clamp(1.1rem,2.6vw,1.9rem);line-height:1.4;
  background:linear-gradient(180deg,#a8101a,#650a10);border:2px solid var(--gold);box-shadow:0 4px 16px rgba(0,0,0,.5)}
.answer.long{font-size:clamp(.95rem,2vw,1.35rem);max-width:760px}

/* riddles */
.riddle{font-family:'Playfair Display',serif;font-style:italic;font-size:clamp(1.15rem,2.7vw,2rem);line-height:1.6;color:#3a140c}
.riddle-q{margin-top:.7em;font-weight:700;font-style:normal;color:var(--red-d);font-size:clamp(1.2rem,2.8vw,2rem)}

/* parts */
.part-no{font-family:'Great Vibes',cursive;font-size:clamp(2rem,5vw,3.6rem);color:var(--gold)}
.holly{font-size:2.4rem;margin-top:14px}

/* overview */
.list{list-style:none;text-align:left;display:grid;gap:clamp(6px,1.1vh,12px);margin-top:8px}
.list li{display:flex;align-items:center;gap:14px;font-family:'Playfair Display',serif;font-weight:700;
  font-size:clamp(1rem,2.1vw,1.5rem);color:#3a140c;padding:clamp(6px,1vh,10px) 14px;border-radius:10px;background:rgba(255,255,255,.28);border:1px solid rgba(150,90,20,.35)}
.list .ic{font-size:1.55rem}

/* write boxes */
.writes{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-top:20px;width:100%}
.write{min-height:clamp(130px,26vh,230px);padding:14px;border-radius:10px;text-align:left;
  background:repeating-linear-gradient(transparent 0 31px,rgba(120,70,20,.35) 31px 32px),rgba(255,255,255,.35);border:2px solid var(--gold-d)}
.write b{font-family:'Cinzel',serif;color:var(--red-d);font-size:1.05rem;display:block}
.write small{font-family:'Playfair Display',serif;font-style:italic;color:#6a3a20}
@media(max-width:640px){.writes{grid-template-columns:1fr}}

/* teaser cover */
.cover-moon{position:absolute;top:6%;right:7%;width:clamp(90px,15vw,190px);aspect-ratio:1;border-radius:50%;
  background:radial-gradient(circle at 35% 35%,#fff,#dfe6ff 55%,#aab6e8);box-shadow:0 0 60px 20px rgba(170,190,255,.45);z-index:0}
.cover-moon span{position:absolute;inset:0;display:grid;place-items:center;font-size:clamp(1.4rem,3vw,2.6rem);filter:grayscale(1) brightness(.2)}
.duo{font-size:clamp(4rem,12vw,9rem);line-height:1;filter:drop-shadow(0 0 18px rgba(255,120,40,.5));position:relative;z-index:1}
.feats{display:flex;gap:clamp(10px,3vw,40px);flex-wrap:wrap;justify-content:center;margin-top:10px;position:relative;z-index:1}
.feat{display:flex;flex-direction:column;align-items:center;gap:6px;max-width:230px}
.feat .fi{font-size:clamp(2.4rem,5vw,3.6rem)}
.feat .ribbon{font-size:clamp(.85rem,1.7vw,1.2rem);padding:.45em 1.8em;margin:0;font-style:normal;font-family:'Cinzel',serif;text-transform:uppercase}
.feat .ribbon em{font-family:'Playfair Display',serif;font-size:1.25em;display:block;color:var(--red)}

/* naughty / nice cards */
.nn-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:clamp(10px,2vw,22px);width:min(960px,100%);margin-top:18px}
.nn{cursor:pointer;position:relative;padding:12px 8px 10px;border-radius:12px;
  background:radial-gradient(ellipse at 30% 20%,#fff4d2,var(--parch));border:3px solid var(--gold-d);color:var(--ink);
  box-shadow:0 8px 20px rgba(0,0,0,.5);transition:transform .25s}
.nn:hover{transform:translateY(-4px)}
.nn .sil{font-size:clamp(2.8rem,6vw,4.4rem);filter:brightness(0) opacity(.85)}
.nn .nm{font-family:'Cinzel',serif;font-weight:700;margin-top:4px;font-size:clamp(.85rem,1.6vw,1.1rem)}
.nn .nm small{display:block;font-family:'Playfair Display',serif;font-style:italic;font-weight:500;font-size:.8em}
.stamp{position:absolute;left:50%;bottom:10px;padding:.15em .7em;border:3px solid currentColor;border-radius:6px;
  font-family:'Cinzel',serif;font-weight:900;font-size:clamp(.85rem,1.8vw,1.25rem);letter-spacing:.08em;
  transform:translateX(-50%) scale(3) rotate(-12deg);opacity:0;transition:transform .35s cubic-bezier(.2,1.6,.4,1),opacity .2s;
  background:rgba(255,248,225,.92);text-shadow:none}
.stamp.naughty{color:#c3151f}.stamp.nice{color:#1f7a3f}
.nn.on .stamp{opacity:1;transform:translateX(-50%) scale(1) rotate(-8deg)}
.nn.on.naughty-c{box-shadow:0 0 24px rgba(220,30,40,.55),0 8px 20px rgba(0,0,0,.5)}
.nn.on.nice-c{box-shadow:0 0 24px rgba(40,200,100,.5),0 8px 20px rgba(0,0,0,.5)}
@media(max-width:640px){.nn-grid{grid-template-columns:repeat(2,1fr)}}
.hint{margin-top:16px;font-family:'Playfair Display',serif;font-style:italic;color:var(--gold);opacity:.9}

/* gifts */
.passes{display:grid;grid-template-columns:1.2fr 1fr;gap:20px;width:100%;text-align:left;align-items:stretch}
.ticket{padding:18px 20px;border-radius:12px;border:2px dashed var(--gold-d);background:rgba(255,255,255,.3);text-align:center}
.ticket h3{font-family:'Great Vibes',cursive;font-size:clamp(2rem,4.5vw,3.2rem);color:var(--red);font-weight:400;line-height:1.1}
.ticket p{font-size:clamp(.95rem,1.9vw,1.25rem)}
.ticket .fine{margin-top:10px;font-family:'Cinzel',serif;font-size:.78rem;letter-spacing:.12em;color:var(--red-d);font-weight:700}
.tcs{padding:16px 18px;border-radius:8px;background:#fff6dc;border:2px solid var(--gold-d);transform:rotate(1.5deg);box-shadow:0 4px 12px rgba(0,0,0,.3)}
.tcs h4{font-family:'Cinzel',serif;color:var(--red-d);text-align:center;font-size:.95rem;line-height:1.2;margin-bottom:8px}
.tcs ol{padding-left:1.2em;font-family:'Playfair Display',serif;font-size:clamp(.82rem,1.5vw,1rem);line-height:1.45}
.nosign{display:inline-flex;flex-direction:column;align-items:center;padding:12px 18px;border-radius:10px;background:#fff6dc;border:2px solid var(--gold-d);
  font-family:'Cinzel',serif;font-weight:900;color:var(--red);letter-spacing:.05em;transform:rotate(2deg);font-size:clamp(.8rem,1.5vw,1rem)}
.nosign .no{font-size:2.6rem;margin-top:4px}
@media(max-width:700px){.passes{grid-template-columns:1fr}}
.beach{display:flex;gap:20px;align-items:center;justify-content:center;flex-wrap:wrap;width:100%}
.beach-card{flex:1 1 280px;padding:16px;border-radius:12px;background:linear-gradient(180deg,#bfe9f5,#58b6d6 60%,#f0d9a0);border:2px solid var(--gold-d);color:#0b3a52}
.beach-card .art{margin:0}

/* controls */
#bar{position:fixed;left:0;right:0;bottom:0;height:56px;z-index:10;display:flex;align-items:center;justify-content:center;gap:14px;
  background:linear-gradient(0deg,rgba(0,0,0,.6),transparent)}
#bar button{cursor:pointer;font-family:'Cinzel',serif;font-weight:700;color:var(--gold-l);font-size:.95rem;
  padding:.5em 1.2em;border-radius:24px;border:2px solid var(--gold-d);background:linear-gradient(180deg,#8c0f17,#4e060b);transition:.2s}
#bar button:hover{transform:translateY(-2px);box-shadow:0 0 14px rgba(233,196,106,.5)}
#bar button:disabled{opacity:.35;cursor:default;transform:none;box-shadow:none}
#count{font-family:'Cinzel',serif;color:var(--gold);min-width:80px;text-align:center;font-size:.95rem}
#prog{position:fixed;top:0;left:0;height:4px;z-index:11;background:linear-gradient(90deg,var(--red),var(--gold));width:0;transition:width .4s}
#fs{position:fixed;right:18px;bottom:10px;z-index:12;cursor:pointer;
  font-family:'Cinzel',serif;font-weight:700;color:var(--gold-l);
  border-radius:24px;border:2px solid var(--gold-d);background:linear-gradient(180deg,#8c0f17,#4e060b);
  font-size:.85rem!important;padding:.4em .9em!important}

/* photos & video */
.media{margin:0 0 clamp(10px,2vw,18px);max-width:100%;display:flex;flex-direction:column;align-items:center;gap:8px}
.media img,.media video{display:block;max-width:100%;max-height:clamp(140px,32vh,280px);
  border-radius:12px;border:3px solid var(--gold-d);background:#000;
  box-shadow:0 10px 28px rgba(0,0,0,.55)}
.media.wide img,.media.wide video{max-height:clamp(180px,44vh,400px)}
.media figcaption{font-family:'Playfair Display',serif;font-style:italic;
  font-size:clamp(.8rem,1.5vw,1rem);color:var(--red-d);opacity:.9}
.parch .media img,.parch .media video{border-color:#8a6320;box-shadow:0 8px 22px rgba(80,40,0,.35)}
.media.is-missing{display:none}

/* small screens */
@media(max-width:640px){
  #deck{inset:14px 14px 108px}
  #fs{bottom:66px;right:12px}
  .slide{padding:16px}
  .nn-grid{gap:8px}
  .nn{padding:8px 6px 6px;overflow:hidden}
  .nn .sil{font-size:1.7rem}
  .nn .nm{font-size:.8rem}
  .nn .stamp{font-size:.8rem;bottom:6px}
  .hint{margin-top:5px;font-size:.85rem}
  .ribbon{padding:.4em 1.4em;margin:.35em 0;font-size:1rem}
  .stage{min-height:clamp(150px,26vh,240px)}
}

/* short screens (laptops / projectors) */
@media(max-height:960px){
  .duo{font-size:clamp(2.4rem,7vw,4.6rem)}
  .title-red{font-size:clamp(2.4rem,8vw,5.2rem)}
  .title-xl{font-size:clamp(2.4rem,7.5vw,5rem)}
  .cover-moon{width:clamp(70px,12vw,150px)}
  .ribbon{padding:.42em 1.9em;margin:.45em 0;font-size:clamp(.95rem,2vw,1.35rem)}
  .pill{padding:.4em 1.3em;margin:.55em 0;font-size:clamp(1rem,2.2vw,1.5rem)}
  .parch{padding:clamp(18px,2.4vw,34px)}
  .list li{padding:5px 12px;font-size:clamp(1rem,2vw,1.4rem)}
  .feats{margin-top:4px}
  .feat .fi{font-size:clamp(1.8rem,3.6vw,2.6rem)}
  .feat .ribbon{font-size:clamp(.72rem,1.4vw,.95rem)}
  .stage{min-height:clamp(120px,20vh,240px)}
  .riddle{font-size:clamp(1.05rem,2.2vw,1.7rem);line-height:1.45}
}

/* very short screens (720p projectors) */
@media(max-height:740px){
  .duo{font-size:clamp(2rem,5.5vw,3.4rem)}
  .title-red{font-size:clamp(2rem,6.5vw,3.8rem)}
  .feats{gap:8px}
  .feat .fi{font-size:1.6rem}
  .feat .ribbon{font-size:.7rem;padding:.35em 1.4em}
  .pill{padding:.35em 1.1em;margin:.4em 0}
  .nn{padding:8px 6px 6px}
  .nn .sil{font-size:2.2rem}
  .nn .nm{font-size:.8rem}
  .nn-grid{gap:8px}
  .riddle{font-size:1.05rem;line-height:1.4}
  .list{gap:5px;margin-top:6px}
  .list li{padding:4px 10px;font-size:clamp(.95rem,1.8vw,1.2rem)}
  .list .ic{font-size:1.2rem}
  .parch h2.q{font-size:clamp(1.15rem,2.8vw,1.9rem)}
  .movie-shot img{max-height:clamp(150px,32vh,300px)}
}

/* ============ bonus: lach & eleanor's philippines trip ============ */
.slide.trip{background:
  radial-gradient(ellipse at 12% 10%,rgba(255,199,110,.22),transparent 52%),
  radial-gradient(ellipse at 88% 16%,rgba(64,214,190,.26),transparent 48%),
  radial-gradient(ellipse at 50% 118%,rgba(0,86,116,.55),transparent 62%),
  linear-gradient(180deg,#04222b,#083a46 55%,#04222b)}
.trip-title{font-family:'Great Vibes',cursive;line-height:1.05;
  background:linear-gradient(180deg,#fff8e2,#7fe3d4 55%,#2fa9a0);
  -webkit-background-clip:text;background-clip:text;color:transparent;
  filter:drop-shadow(0 3px 12px rgba(0,0,0,.5))}
.trip-title.small{font-size:clamp(1.8rem,4vw,3rem)}
.trip-flag{font-size:clamp(2.6rem,7vw,5rem);line-height:1;margin:.1em 0 .25em;
  filter:drop-shadow(0 6px 14px rgba(0,0,0,.45))}
.trip-tag{font-family:'Cinzel',serif;letter-spacing:.24em;text-transform:uppercase;
  font-size:clamp(.62rem,1.2vw,.85rem);color:#9fe8dd;opacity:.8;margin-bottom:clamp(8px,1.6vh,18px)}
.trip-brief{width:min(760px,100%);padding:clamp(22px,3.4vw,44px);border-radius:16px;text-align:left;
  background:radial-gradient(ellipse at 30% 15%,#fffdf4,#efe9d6);
  border:3px solid #2fa9a0;box-shadow:0 16px 44px rgba(0,0,0,.55);color:#123a3a}
.trip-brief ul{list-style:none;display:grid;gap:.55em;margin-top:.8em}
.trip-brief li{font-family:'Playfair Display',serif;font-size:clamp(1rem,2vw,1.35rem);
  line-height:1.4;padding-left:1.5em;position:relative}
.trip-brief li::before{content:"\2022";position:absolute;left:.35em;color:#0d6f6a;font-size:1.4em;line-height:1}
.photo-frame{margin:0;padding:clamp(7px,1.1vw,13px) clamp(7px,1.1vw,13px) clamp(26px,3.6vh,44px);
  background:linear-gradient(180deg,#fffdf6,#eee8d8);border-radius:5px;max-width:100%;
  box-shadow:0 20px 44px rgba(0,0,0,.55);transition:transform .3s}
.photo-frame.tilt-l{transform:rotate(-1.2deg)}
.photo-frame.tilt-r{transform:rotate(1.2deg)}
.photo-frame img{display:block;margin:0 auto;border-radius:2px;
  max-width:100%;max-height:clamp(260px,62vh,720px);width:auto;height:auto}
.photo-frame:has(figcaption) img{max-height:clamp(260px,58vh,600px)}
.photo-frame figcaption{font-family:'Playfair Display',serif;font-style:italic;text-align:center;
  color:#5c4a38;font-size:clamp(.8rem,1.5vw,1.1rem);margin-top:clamp(8px,1.4vh,14px)}
.quip{position:relative;width:min(880px,100%);padding:clamp(24px,4vw,50px);
  border-radius:20px 20px 20px 6px;text-align:left;
  background:radial-gradient(ellipse at 28% 18%,#fffdf3,#f1ebd7);
  border:3px solid #2fa9a0;box-shadow:0 16px 44px rgba(0,0,0,.55),0 0 30px rgba(64,214,190,.25)}
.quip::after{content:"";position:absolute;left:34px;bottom:-28px;width:0;height:0;
  border:15px solid transparent;border-top-color:#2fa9a0;border-left-width:0;border-right-width:26px}
.quip-by{font-family:'Cinzel',serif;font-weight:900;letter-spacing:.16em;text-transform:uppercase;
  color:#0d6f6a;font-size:clamp(.72rem,1.4vw,.95rem)}
.quip-text{font-family:'Playfair Display',serif;font-style:italic;color:#143232;
  font-size:clamp(1.15rem,2.7vw,2rem);line-height:1.45;margin-top:.45em}

/* ============ santa's code words ============ */
.slide.code{padding:clamp(14px,2.2vw,36px);background:
  radial-gradient(ellipse at 50% -10%,rgba(233,196,106,.2),transparent 55%),
  radial-gradient(ellipse at 50% 120%,rgba(179,18,28,.35),transparent 60%),
  linear-gradient(180deg,#06231a,#0c3a28 55%,#051c15)}
.cn-head{font-family:'Cinzel',serif;letter-spacing:.3em;text-transform:uppercase;text-align:center;
  font-size:clamp(.62rem,1.2vw,.85rem);color:var(--gold);opacity:.85;margin-bottom:clamp(8px,1.6vh,16px)}
/* --ch is the card height; card width, corner radius and type all scale from it */
.cn-grid{--ch:clamp(44px,min(12.5vh,12vw),150px);display:grid;justify-content:center;max-width:100%;
  grid-template-columns:repeat(4,minmax(0,calc(var(--ch)*1.72)));gap:clamp(8px,1.4vh,14px) clamp(6px,1.1vh,12px)}
.cn-card{position:relative;height:var(--ch);min-width:0;padding:0;border:0;cursor:pointer;
  border-radius:calc(var(--ch)*.1);
  background:linear-gradient(#c99c66,#c99c66) 10% 35%/48% 2px no-repeat,linear-gradient(180deg,#f8dfb9,#edc894);
  box-shadow:0 4px 0 #b98e58,0 9px 16px rgba(0,0,0,.45);
  transition:transform .2s,opacity .3s,box-shadow .3s}
.cn-card::before{content:"";position:absolute;inset:calc(var(--ch)*.06);pointer-events:none;
  border:1.5px solid rgba(150,95,40,.4);border-radius:calc(var(--ch)*.06)}
.cn-card::after{content:"\2744\FE0E";position:absolute;top:13%;right:6.5%;height:30%;aspect-ratio:.84;
  display:grid;place-items:center;border-radius:3px;background:#e6bd8a;color:#c9975d;
  font-family:sans-serif;font-size:calc(var(--ch)*.2);line-height:1}
.cn-word{position:absolute;left:6.5%;right:6.5%;bottom:12%;height:40%;display:grid;place-items:center;
  border-radius:4px;background:#fffdf7;color:#1c1410;white-space:nowrap;
  font-family:'Oswald','Arial Narrow',sans-serif;font-weight:700;letter-spacing:.03em;text-transform:uppercase;
  font-size:calc(var(--ch)*.27);line-height:1;transition:background .3s,color .3s}
.cn-card:not(.on):hover{transform:translateY(-3px)}
.cn-card:focus-visible{outline:3px solid var(--gold-l);outline-offset:3px}
.cn-card.on{cursor:default}
.cn-card.hit.on{
  background:linear-gradient(#bfe7c4,#bfe7c4) 10% 35%/48% 2px no-repeat,linear-gradient(180deg,#35a55d,#17602f);
  box-shadow:0 4px 0 #0e4321,0 0 26px rgba(70,220,120,.55),0 9px 16px rgba(0,0,0,.45);
  animation:cn-pop .5s cubic-bezier(.2,1.6,.4,1)}
.cn-card.hit.on::before{border-color:rgba(255,241,193,.6)}
.cn-card.hit.on::after{content:"\2713";aspect-ratio:1;border-radius:50%;background:var(--gold-l);color:#145229;font-weight:900}
.cn-card.hit.on .cn-word{background:#f4ffe9;color:#0f4a25}
.cn-card.miss.on{opacity:.5;box-shadow:0 4px 0 #5f5950;
  background:linear-gradient(#8d867c,#8d867c) 10% 35%/48% 2px no-repeat,linear-gradient(180deg,#a59d92,#8a8277)}
.cn-card.miss.on::before{border-color:rgba(60,55,50,.35)}
.cn-card.miss.on::after{content:"\2715";background:#7d766c;color:#b9b2a7}
.cn-card.miss.on .cn-word{background:#cfc8bc;color:#6a635a}
@keyframes cn-pop{0%{transform:scale(.8)}60%{transform:scale(1.09)}100%{transform:none}}
.cn-clue{display:inline-flex;align-items:baseline;gap:.45em;margin-top:clamp(16px,2.8vh,30px);
  padding:.2em 1.3em .26em;border-radius:999px;
  background:linear-gradient(180deg,#fff,#eaf4ee);box-shadow:0 5px 0 #b4c6bb,0 10px 22px rgba(0,0,0,.45);
  font-family:'Oswald','Arial Narrow',sans-serif;font-weight:700;text-transform:uppercase;line-height:1.15;
  font-size:clamp(1.5rem,5.2vh,3.2rem)}
.cn-clue-word{color:#16110d;letter-spacing:.03em}
.cn-clue-n{color:var(--red)}
.cn-why{visibility:hidden;opacity:0;transform:translateY(6px);max-width:min(900px,100%);
  margin-top:clamp(12px,2vh,20px);font-family:'Playfair Display',serif;font-style:italic;
  font-size:clamp(.85rem,1.6vw,1.2rem);line-height:1.35;color:var(--gold-l);
  transition:opacity .5s ease,transform .5s ease,visibility 0s .5s}
.cn-why.on{visibility:visible;opacity:1;transform:none;transition:opacity .5s ease,transform .5s ease}
.cn-why b{font-style:normal;color:#8ff0ae;text-transform:uppercase;letter-spacing:.04em}
@media(max-height:740px){
  .cn-grid{--ch:clamp(44px,min(11.5vh,12vw),150px)}
}
@media(max-width:640px){
  .cn-grid{--ch:clamp(46px,7.4vh,64px);width:100%;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px 6px}
  .cn-card{box-shadow:0 3px 0 #b98e58,0 6px 10px rgba(0,0,0,.4)}
  .cn-card::after{font-size:.68rem}
  .cn-word{font-size:clamp(.58rem,3.05vw,.82rem);letter-spacing:.01em}
}
@media(prefers-reduced-motion:reduce){.cn-card.hit.on{animation:none}}

/* ============ section timeline ============ */
#deck{inset:14px 14px 94px}
/* the timeline takes 24px of height; give it back on short screens */
@media(max-height:740px){.slide{padding:clamp(16px,3vw,44px)}}
#timeline{position:fixed;left:14px;right:14px;bottom:56px;height:30px;z-index:10;display:flex;gap:4px}
.tl-seg{position:relative;flex:1 1 auto;min-width:0;display:flex;align-items:center;justify-content:center;gap:.45em;
  padding:0 6px;overflow:hidden;cursor:pointer;white-space:nowrap;
  border-radius:8px;border:1px solid rgba(184,137,46,.55);background:rgba(0,0,0,.4);color:var(--gold);
  font-family:'Cinzel',serif;font-weight:700;font-size:clamp(.58rem,.92vw,.8rem);letter-spacing:.03em;
  transition:background .3s,color .3s,box-shadow .3s,transform .2s}
.tl-ic{flex:none;font-size:1.15em;line-height:1}
.tl-lbl{min-width:0;overflow:hidden;text-overflow:ellipsis}
/* progress through the section: --p runs 0 to 1 */
.tl-seg::after{content:"";position:absolute;left:0;bottom:0;height:3px;width:calc(var(--p,0)*100%);
  background:linear-gradient(90deg,var(--red),var(--gold));transition:width .4s}
.tl-seg:hover{transform:translateY(-2px);box-shadow:0 0 12px rgba(233,196,106,.45)}
.tl-seg:focus-visible{outline:2px solid var(--gold-l);outline-offset:2px}
.tl-seg[data-state="done"]{color:var(--gold-l);background:linear-gradient(180deg,rgba(140,15,23,.7),rgba(78,6,11,.7))}
.tl-seg[data-state="now"]{color:var(--red-d);border-color:var(--gold-l);
  background:linear-gradient(180deg,#fbeab7,#e8c677);box-shadow:0 0 14px rgba(233,196,106,.5)}
@media(max-width:1000px){
  .tl-lbl{display:none}
  .tl-ic{font-size:1rem}
}
@media(max-width:640px){
  #deck{inset:14px 14px 106px}
  #timeline{left:12px;right:60px;bottom:62px;height:34px;gap:3px}
  .tl-seg{padding:0;border-radius:7px}
  #fs{bottom:62px;right:12px;width:40px;height:34px;padding:0!important}
  #fs .fs-lbl{display:none}
}

/* ============ scoreboard ============ */
#scores-btn{position:fixed;left:18px;bottom:10px;z-index:12;cursor:pointer;
  font-family:'Cinzel',serif;font-weight:700;font-size:.85rem;color:var(--gold-l);padding:.4em .9em;
  border-radius:24px;border:2px solid var(--gold-d);background:linear-gradient(180deg,#8c0f17,#4e060b)}
#scores-btn[aria-expanded="true"]{color:var(--red-d);border-color:var(--gold-l);background:linear-gradient(180deg,#fbeab7,#e8c677)}
#scores{position:fixed;left:50%;bottom:94px;transform:translateX(-50%);z-index:20;
  width:min(900px,calc(100% - 28px));padding:12px 16px 16px;border-radius:16px;border:2px solid var(--gold);
  background:linear-gradient(180deg,rgba(60,9,16,.97),rgba(28,3,6,.97));
  box-shadow:0 -6px 40px rgba(0,0,0,.7),0 0 30px rgba(233,196,106,.2)}
#scores[hidden]{display:none}
.sb-head{display:flex;align-items:center;gap:10px;margin-bottom:10px}
.sb-head h2{flex:1;text-align:left;font-family:'Great Vibes',cursive;font-weight:400;font-size:1.9rem;line-height:1;color:var(--gold)}
.sb-head button{cursor:pointer;font-family:'Cinzel',serif;font-weight:700;font-size:.78rem;color:var(--gold-l);
  min-width:2.4em;padding:.4em .9em;border-radius:20px;border:1px solid var(--gold-d);background:rgba(0,0,0,.35)}
.sb-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(118px,1fr));gap:10px}
.sb-player{padding:8px 8px 10px;border-radius:12px;text-align:center;color:var(--ink);border:2px solid var(--gold-d);
  background:radial-gradient(ellipse at 30% 20%,#fff4d2,var(--parch) 60%,var(--parch-d));transition:box-shadow .3s,border-color .3s}
.sb-player.lead{border-color:#2b9a52;box-shadow:0 0 18px rgba(70,220,120,.5)}
.sb-name{font-family:'Cinzel',serif;font-weight:700;font-size:1rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sb-player.lead .sb-name::before{content:"\1F451\00A0"}
.sb-row{display:flex;align-items:center;justify-content:center;gap:8px;margin-top:4px}
.sb-score{min-width:1.5em;font-family:'Cinzel',serif;font-weight:900;font-size:2rem;line-height:1;color:var(--red-d)}
.sb-row button{flex:none;width:36px;height:36px;padding:0;border-radius:50%;cursor:pointer;border:2px solid var(--gold-d);
  font-family:sans-serif;font-size:1.35rem;font-weight:700;line-height:1;color:var(--gold-l);
  background:linear-gradient(180deg,#8c0f17,#4e060b);transition:transform .15s}
.sb-row button[data-score="1"]{background:linear-gradient(180deg,#2b9a52,#145229)}
.sb-row button:hover{transform:scale(1.1)}
#scores button:focus-visible,#scores-btn:focus-visible{outline:2px solid var(--gold-l);outline-offset:2px}
/* the Final Scores slide */
.final-scores .fs-name{flex:1;text-align:left}
.final-scores b{font-family:'Cinzel',serif;font-weight:900;font-size:1.25em;color:var(--red-d)}
.final-scores li.lead{background:rgba(120,210,140,.35);border-color:#2b9a52}
@media(max-width:760px){
  #scores-btn .sb-lbl{display:none}
}
@media(max-width:640px){
  #scores-btn{left:auto;right:58px;bottom:62px;width:40px;height:34px;padding:0}
  #timeline{right:106px}
  #scores{bottom:106px;padding:10px 10px 12px}
  .sb-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
  .sb-row{gap:4px}
  .sb-row button{width:30px;height:30px;font-size:1.1rem}
  .sb-score{font-size:1.6rem;min-width:1.2em}
}

/* teams on the scoreboard */
.sb-hint{flex:1;text-align:left;font-family:'Playfair Display',serif;font-style:italic;font-size:.8rem;color:var(--gold);opacity:.8}
.sb-head h2{flex:none}
.sb-player{position:relative;cursor:grab;touch-action:none;user-select:none;-webkit-user-select:none}
.sb-player.team .sb-name{white-space:normal;font-size:.88rem;line-height:1.2}
.sb-player.dragging{z-index:5;cursor:grabbing;pointer-events:none;opacity:.94;transition:none;
  box-shadow:0 16px 32px rgba(0,0,0,.65)}
.sb-player.drop{border-color:var(--gold-l);box-shadow:0 0 0 3px var(--gold),0 0 24px rgba(233,196,106,.75)}
.sb-split{margin-top:6px;cursor:pointer;font-family:'Cinzel',serif;font-weight:700;font-size:.66rem;letter-spacing:.06em;
  color:var(--red-d);padding:.25em .9em;border-radius:20px;border:1px solid var(--gold-d);background:rgba(255,255,255,.45)}
@media(max-width:640px){
  .sb-head{flex-wrap:wrap;row-gap:4px}
  .sb-hint{order:3;flex-basis:100%;font-size:.72rem}
}

/* ============ multiple choice ============ */
.opts{list-style:none;display:grid;grid-template-columns:1fr 1fr;text-align:left;
  gap:clamp(6px,1.2vh,12px) clamp(8px,1.4vw,16px);margin-top:clamp(12px,2.2vh,22px)}
.opt{display:flex;align-items:center;gap:.6em;padding:.4em .7em;border-radius:10px;
  font-family:'Playfair Display',serif;font-weight:700;font-size:clamp(.92rem,1.9vw,1.35rem);line-height:1.2;color:#3a140c;
  background:rgba(255,255,255,.42);border:2px solid rgba(150,90,20,.45);
  transition:background .4s,color .4s,opacity .4s,border-color .4s,box-shadow .4s}
.opt b{flex:none;display:grid;place-items:center;width:1.75em;height:1.75em;border-radius:50%;
  font-family:'Cinzel',serif;font-size:.82em;color:var(--gold-l);background:linear-gradient(180deg,#8c0f17,#4e060b);
  transition:background .4s,color .4s}
/* `revealed` goes on the slide once its answer is showing */
.slide.revealed .opt{opacity:.45}
.slide.revealed .opt.correct{opacity:1;color:#f4ffe9;border-color:var(--gold-l);
  background:linear-gradient(180deg,#2b9a52,#145229);box-shadow:0 0 20px rgba(70,220,120,.5)}
.slide.revealed .opt.correct b{color:#145229;background:var(--gold-l)}
/* the options take room, so the reveal underneath is a little smaller */
.opts ~ .stage{min-height:clamp(110px,19vh,220px);margin-top:clamp(10px,1.8vh,22px)}
.opts ~ .stage .mystery .box{font-size:clamp(3rem,7vw,4.6rem)}
.opts ~ .stage .art{font-size:clamp(2.8rem,6.5vw,4.6rem)}
@media(max-width:640px){.opts{grid-template-columns:1fr}}

/* ============ who is santa? ============ */
.stage.slim{min-height:clamp(60px,9vh,90px);margin-top:clamp(10px,1.8vh,18px)}
.stage.slim .mystery .box{display:none}
.unmask{--uh:clamp(170px,38vh,400px);position:relative;height:var(--uh);aspect-ratio:4/3;max-width:100%;
  margin:clamp(12px,2.2vh,22px) auto 0;overflow:hidden;border-radius:12px;border:3px solid #8a6320;
  box-shadow:0 10px 28px rgba(60,30,0,.4);
  background:radial-gradient(ellipse at 50% 112%,#9c95bd,#3d385c 45%,#12101f 82%)}
.unmask img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;
  opacity:0;filter:blur(18px) brightness(.3);transform:scale(1.12);
  transition:opacity 1.2s ease,filter 1.7s ease,transform 1.7s ease}
.unmask-shadow{position:absolute;left:0;bottom:0;width:100%;height:92%;
  transform-origin:50% 100%;transition:opacity .9s ease,transform 1.3s ease}
.unmask-shadow .fig{fill:#07060d;filter:drop-shadow(0 0 5px rgba(190,180,235,.4))}
.unmask-shadow text{fill:rgba(210,200,245,.5);font:900 46px 'Cinzel',serif;text-anchor:middle}
.slide.revealed .unmask img{opacity:1;filter:none;transform:none}
.slide.revealed .unmask-shadow{opacity:0;transform:scale(1.2)}
@media(prefers-reduced-motion:reduce){.unmask img,.unmask-shadow{transition-duration:.01s}}

/* ============ script headings ============ */
/* Great Vibes swings well outside its line box, and a gradient clipped to the text only
   paints inside the element's box, so the swashes were being cut off. Pad the box out to
   cover them and pull the margins back in by the same amount so nothing moves. */
.title-xl,.title-red,.trip-title{padding:.32em .5em .42em;margin:-.32em -.5em -.42em}

/* ============ slideshow sign-off and pop quiz ============ */
.photo-frame:has(.outro) img{max-height:clamp(220px,46vh,540px)}
.photo-frame figcaption.outro{font-style:normal;font-family:'Cinzel',serif;font-weight:700;letter-spacing:.14em;
  text-transform:uppercase;font-size:clamp(.62rem,1.25vw,.9rem);color:#0d6f6a;line-height:1.3}
.outro-title{display:block;font-family:'Great Vibes',cursive;font-weight:400;letter-spacing:0;text-transform:none;
  font-size:clamp(2.2rem,6vw,4rem);line-height:1.05;color:var(--red);padding:.05em .3em .12em}
.q-kicker{display:inline-block;margin-top:clamp(30px,5vw,18px);padding:.3em 1.4em;border-radius:30px;
  font-family:'Cinzel',serif;font-weight:900;letter-spacing:.18em;text-transform:uppercase;
  font-size:clamp(.7rem,1.4vw,1rem);color:var(--gold-l);background:linear-gradient(180deg,#2b9a52,#145229);
  border:2px solid var(--gold);box-shadow:0 4px 14px rgba(0,0,0,.35)}
/* a kicker takes a line, so the photo shown with the answer is a touch smaller */
.q-kicker ~ .stage .media img{max-height:clamp(130px,26vh,260px)}
.art:empty{display:none}
.q-kicker::before,.q-kicker::after{content:"\2605";margin:0 .6em;color:var(--gold)}

/* ============ fx: photos that arrive with the answer ============ */
/* Set on a question with `fx` in content.js. Photos are circles unless the shape is
   "portrait". Each effect is a keyframe animation that starts when the answer is revealed;
   stars pop in after the photos have landed, and the caption fades up last. */
.fx{max-width:100%;margin-bottom:clamp(8px,1.6vh,16px)}
.fx-row{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:clamp(8px,1.6vw,20px)}
.fx-pic{flex:none;width:clamp(120px,26vh,240px);aspect-ratio:1;object-fit:cover;border-radius:50%;
  border:4px solid var(--gold-d);box-shadow:0 10px 26px rgba(60,30,0,.45)}
.fx-portrait .fx-pic{width:auto;height:clamp(150px,33vh,320px);aspect-ratio:3/4;border-radius:14px}
.fx-shroud{background:radial-gradient(ellipse at 50% 112%,#9c95bd,#3d385c 45%,#12101f 82%)}
.fx-shroud path{fill:#0b0912}
.fx-shroud ellipse{fill:#000}
.fx-shroud text{fill:rgba(210,200,245,.55);font:900 44px 'Cinzel',serif;text-anchor:middle}
.fx-stars{display:flex;gap:.04em;line-height:1;color:#b98a2f;
  font-family:"Segoe UI Symbol","Apple Symbols","Noto Sans Symbols 2",sans-serif;font-size:clamp(2.2rem,7.5vh,4.4rem)}
.fx-stars span{display:inline-block;opacity:0}
.fx-stars .gold{color:#f5b301;text-shadow:0 0 12px rgba(255,190,40,.75),0 3px 6px rgba(0,0,0,.35)}
.fx-caption{margin-top:.55em;opacity:0;font-family:'Playfair Display',serif;font-style:italic;
  font-size:clamp(.85rem,1.7vw,1.2rem);color:var(--red-d)}

/* spin: whirls in from off-screen. A second photo drops in from the top, a third from the right. */
.rv.on .fx-pic{animation:fx-spin 1.9s cubic-bezier(.35,.45,.4,1) both;animation-delay:calc(var(--i,0)*.14s)}
.fx-pic:nth-child(2){--dx:0vw;--dy:-95vh}
.fx-pic:nth-child(3){--dx:110vw;--dy:-30vh}
@keyframes fx-spin{
  0%{transform:translate(var(--dx,-110vw),var(--dy,-30vh)) rotate(-1260deg) scale(.08);opacity:0}
  12%{opacity:1}
  72%{transform:translate(0,0) rotate(24deg) scale(1.14)}
  86%{transform:rotate(-9deg) scale(.96)}
  100%{transform:none;opacity:1}}
/* bounce: drops from the top and bounces to rest */
.rv.on .fx-bounce .fx-pic{animation:fx-bounce 1.7s both}
@keyframes fx-bounce{
  0%{transform:translateY(-95vh);opacity:1;animation-timing-function:cubic-bezier(.5,0,1,.6)}
  36%{transform:translateY(0) scale(1.08,.86);animation-timing-function:cubic-bezier(0,.5,.5,1)}
  54%{transform:translateY(-30%);animation-timing-function:cubic-bezier(.5,0,1,.6)}
  70%{transform:translateY(0) scale(1.04,.93);animation-timing-function:cubic-bezier(0,.5,.5,1)}
  82%{transform:translateY(-10%);animation-timing-function:cubic-bezier(.5,0,1,.6)}
  92%{transform:translateY(0) scale(1.01,.98)}
  100%{transform:none;opacity:1}}
/* fly: shoots in from the side and overshoots. The first comes from the left, the next from the right. */
.rv.on .fx-fly .fx-pic{animation:fx-fly 1.1s cubic-bezier(.2,.8,.3,1) both;animation-delay:calc(var(--i,0)*.35s)}
.fx-fly .fx-pic:nth-child(2){--fx:110vw;--sk:14deg}
@keyframes fx-fly{
  0%{transform:translateX(var(--fx,-110vw)) skewX(var(--sk,-14deg));opacity:1}
  70%{transform:translateX(calc(var(--fx,-110vw)*-.03)) skewX(calc(var(--sk,-14deg)*-.4))}
  85%{transform:translateX(calc(var(--fx,-110vw)*.008)) skewX(0)}
  100%{transform:none;opacity:1}}
/* swivel: spins round its own middle like a coin while it grows */
.rv.on .fx-swivel .fx-pic{animation:fx-swivel 1.7s cubic-bezier(.2,.6,.3,1) both}
@keyframes fx-swivel{
  0%{transform:perspective(700px) rotateY(1080deg) scale(.12);opacity:0}
  18%{opacity:1}
  100%{transform:perspective(700px) rotateY(0) scale(1);opacity:1}}
/* creep: rises slowly out of the gloom */
.rv.on .fx-creep .fx-pic{animation:fx-creep 2.4s ease-out both}
@keyframes fx-creep{
  0%{transform:translateY(45%) scale(.8);opacity:0;filter:blur(8px)}
  100%{transform:none;opacity:1;filter:none}}

.rv.on .fx-stars span{animation:star-pop .7s cubic-bezier(.2,1.5,.4,1) both;
  animation-delay:calc(2.1s + var(--i,0)*.5s)}
@keyframes star-pop{
  0%{transform:scale(0) rotate(-200deg);opacity:0}
  60%{transform:scale(1.55) rotate(18deg);opacity:1}
  80%{transform:scale(.88) rotate(-8deg);opacity:1}
  100%{transform:none;opacity:1}}
.rv.on .fx-caption{animation:fx-fade .9s ease both;animation-delay:2.3s}
@keyframes fx-fade{0%{opacity:0;transform:translateY(6px)}100%{opacity:1;transform:none}}
@media(prefers-reduced-motion:reduce){
  .rv.on .fx-pic,.rv.on .fx-stars span,.rv.on .fx-caption{animation:none;opacity:1}
}

/* on a phone, three tall photos share one row instead of stacking */
@media(max-width:640px){
  .fx-portrait .fx-row{flex-wrap:nowrap;gap:8px}
  .fx-portrait .fx-pic{width:calc((100vw - 124px)/3);height:auto}
}
/* multiple-choice questions have less room, so their photos are a little smaller */
.opts ~ .stage .fx-pic{width:clamp(104px,21vh,200px)}

/* ambush: photo 1 pops in calm, the intruder springs out on it, then photo 2 takes over and shakes */
.fx-stack{position:relative;flex:none;margin-right:clamp(26px,7vh,64px)}
.fx-face{position:relative}
.fx-stack .fx-pic{display:block}
.fx-stack .fx-freak{position:absolute;inset:0;opacity:0}
.fx-intruder{position:absolute;right:-32%;bottom:-8%;width:60%;aspect-ratio:1;object-fit:cover;border-radius:50%;
  border:4px solid var(--gold-l);box-shadow:0 8px 20px rgba(0,0,0,.5);opacity:0}
.opts ~ .stage .fx-ambush .fx-pic{width:clamp(92px,17vh,170px)}
.rv.on .fx-ambush .fx-pic{animation:none}
.rv.on .fx-ambush .fx-stack{animation:fx-pop .6s cubic-bezier(.2,1.4,.4,1) both}
.rv.on .fx-ambush .fx-intruder{animation:fx-spring .7s cubic-bezier(.2,1.5,.4,1) 1.5s both}
.rv.on .fx-ambush .fx-freak{animation:fx-swap .12s linear 2.3s both}
.rv.on .fx-ambush .fx-face{animation:fx-wig .13s linear 2.3s 18}
@keyframes fx-pop{0%{transform:scale(.3);opacity:0}100%{transform:none;opacity:1}}
@keyframes fx-spring{
  0%{transform:translate(-60%,35%) scale(0) rotate(-40deg);opacity:0}
  60%{transform:translate(4%,-6%) scale(1.2) rotate(8deg);opacity:1}
  100%{transform:none;opacity:1}}
@keyframes fx-swap{to{opacity:1}}
@keyframes fx-wig{
  0%{transform:translate(0,0) rotate(0)}
  25%{transform:translate(-8px,3px) rotate(-6deg)}
  50%{transform:translate(7px,-4px) rotate(5deg)}
  75%{transform:translate(-5px,-3px) rotate(-3deg)}
  100%{transform:translate(0,0) rotate(0)}}
@media(prefers-reduced-motion:reduce){
  .rv.on .fx-ambush .fx-stack,.rv.on .fx-ambush .fx-face{animation:none}
  .rv.on .fx-ambush .fx-intruder,.rv.on .fx-ambush .fx-freak{animation:none;opacity:1}
}
/* a question photo shares the card with options, so it is a little shorter */
.q-photo.with-opts .media img{max-height:clamp(110px,23vh,210px)}

/* ============ youtube player dock ============ */
/* YouTube tracks play through YouTube's own player, which has to stay visible while it
   plays. It sits in a corner above the controls; the arrow button moves it to another. */
#yt-dock{position:fixed;z-index:9;width:240px;height:200px;padding:3px;border-radius:12px;
  background:#000;border:2px solid var(--gold-d);box-shadow:0 10px 30px rgba(0,0,0,.7)}
#yt-dock[hidden]{display:none}
#yt-dock[data-corner="br"]{right:22px;bottom:102px}
#yt-dock[data-corner="bl"]{left:22px;bottom:102px}
#yt-dock[data-corner="tl"]{left:22px;top:22px}
#yt-dock[data-corner="tr"]{right:22px;top:22px}
.yt-frame{display:none;width:100%;height:100%;border-radius:8px;overflow:hidden}
.yt-frame.live{display:block}
.yt-frame iframe{display:block;width:100%;height:100%;border:0}
#yt-move{position:absolute;top:-12px;left:-12px;z-index:1;width:28px;height:28px;padding:0;border-radius:50%;cursor:pointer;
  font-size:.95rem;line-height:1;color:var(--gold-l);border:2px solid var(--gold-d);
  background:linear-gradient(180deg,#8c0f17,#4e060b)}
#yt-move:focus-visible{outline:2px solid var(--gold-l);outline-offset:2px}
@media(max-width:640px){
  #yt-dock{width:200px}
  #yt-dock[data-corner="br"],#yt-dock[data-corner="bl"]{bottom:114px}
  #yt-dock[data-corner="br"],#yt-dock[data-corner="tr"]{right:18px}
  #yt-dock[data-corner="bl"],#yt-dock[data-corner="tl"]{left:18px}
}

/* ============ music menu ============ */
#music-menu{position:fixed;left:50%;bottom:94px;transform:translateX(-50%);z-index:21;
  width:min(380px,calc(100% - 28px));padding:12px 14px 14px;border-radius:16px;border:2px solid var(--gold);
  background:linear-gradient(180deg,rgba(60,9,16,.97),rgba(28,3,6,.97));
  box-shadow:0 -6px 40px rgba(0,0,0,.7),0 0 30px rgba(233,196,106,.2);text-align:left}
#music-menu[hidden]{display:none}
.mm-head{font-family:'Great Vibes',cursive;font-size:1.7rem;line-height:1;color:var(--gold)}
.mm-now{margin:.35em 0 .7em;font-family:'Playfair Display',serif;font-style:italic;font-size:.9rem;color:var(--parch)}
.mm-now b{font-style:normal;color:var(--gold-l)}
.mm-list{display:grid;gap:6px}
.mm-track,.mm-mute{cursor:pointer;width:100%;text-align:left;padding:.55em .9em;border-radius:10px;
  font-family:'Playfair Display',serif;font-weight:700;font-size:.92rem;color:var(--parch);
  border:1px solid rgba(184,137,46,.55);background:rgba(0,0,0,.35);transition:background .2s,color .2s}
.mm-track::before{content:"\266A";display:inline-block;width:1.4em;color:var(--gold)}
.mm-track.now{color:var(--red-d);border-color:var(--gold-l);background:linear-gradient(180deg,#fbeab7,#e8c677)}
.mm-track.now::before{content:"\25B6";color:var(--red-d)}
.mm-track:hover,.mm-mute:hover{box-shadow:0 0 12px rgba(233,196,106,.4)}
.mm-mute{margin-top:10px;text-align:center;font-family:'Cinzel',serif;font-size:.78rem;letter-spacing:.08em;
  color:var(--gold-l);background:linear-gradient(180deg,#8c0f17,#4e060b)}
#music-menu button:focus-visible{outline:2px solid var(--gold-l);outline-offset:2px}
@media(max-width:640px){#music-menu{bottom:106px}}

/* a question's own photo, on show before the answer */
.q-photo{margin-top:clamp(10px,2vh,18px)}
.q-photo .media{margin-bottom:0}
/* options with no right answer marked stay as they are on reveal */
.slide.revealed .opts.no-key .opt{opacity:1}

/* ============ vote slides ("who wore it best?") ============ */
.vote-row{display:flex;justify-content:center;gap:clamp(8px,2vw,26px);margin-top:clamp(12px,2.4vh,24px)}
.vote-card{position:relative;flex:0 1 auto;min-width:0;padding:0;cursor:pointer;border:0;background:none;
  display:flex;flex-direction:column;align-items:center;gap:8px;transition:transform .25s}
.vote-card img{display:block;height:clamp(150px,40vh,400px);max-width:100%;aspect-ratio:3/4;object-fit:cover;
  border-radius:14px;border:4px solid var(--gold-d);box-shadow:0 10px 26px rgba(60,30,0,.45);
  transition:border-color .3s,box-shadow .3s}
.vote-name{display:flex;align-items:center;gap:.5em;font-family:'Playfair Display',serif;font-weight:700;
  font-size:clamp(1rem,2.1vw,1.5rem);color:#3a140c}
.vote-name b{display:grid;place-items:center;width:1.75em;height:1.75em;border-radius:50%;
  font-family:'Cinzel',serif;font-size:.8em;color:var(--gold-l);background:linear-gradient(180deg,#8c0f17,#4e060b)}
.vote-card:not(.on):hover{transform:translateY(-4px)}
.vote-card:focus-visible{outline:3px solid var(--red);outline-offset:4px;border-radius:14px}
/* the crowned pick */
.vote-card.on{transform:scale(1.05)}
.vote-card.on img{border-color:#2b9a52;box-shadow:0 0 26px rgba(70,220,120,.65),0 10px 26px rgba(60,30,0,.45)}
.vote-card.on::after{content:"\1F451";position:absolute;top:-.62em;left:50%;transform:translateX(-50%) rotate(-8deg);
  font-size:clamp(2rem,6vh,3.4rem);line-height:1;filter:drop-shadow(0 4px 6px rgba(0,0,0,.4));
  animation:star-pop .6s cubic-bezier(.2,1.5,.4,1) both}
.vote-card.on .vote-name b{background:linear-gradient(180deg,#2b9a52,#145229)}
@media(max-width:640px){
  .vote-card img{height:auto;width:calc((100vw - 124px)/3)}
  .vote-name{font-size:.8rem;gap:.3em}
}

/* ============ the stop-sign slide before the pop quiz ============ */
/* The photo slams in from oversized, like a hand going up; the words follow. */
.stop-slide{overflow:hidden}  /* no scrollbar flash while it is oversized */
.stop-row{display:flex;align-items:center;justify-content:center;gap:clamp(18px,4.5vw,64px);max-width:100%}
.stop-shot{flex:none;margin:0;padding:clamp(6px,1vw,10px);border-radius:10px;max-width:100%;
  background:linear-gradient(180deg,#1d1a22,#0e0d12);border:3px solid var(--gold-d);
  box-shadow:0 18px 46px rgba(0,0,0,.7),0 0 40px rgba(211,32,42,.45)}
.stop-shot img{display:block;margin:0 auto;border-radius:4px;max-width:100%;
  max-height:clamp(240px,62vh,700px);width:auto;height:auto}
.stop-text{display:flex;flex-direction:column;align-items:flex-start;gap:clamp(10px,2vh,22px);
  text-align:left;max-width:min(560px,46vw)}
.stop-title{font-size:clamp(2.8rem,7.4vw,6rem)}
.stop-line{font-family:'Playfair Display',serif;font-style:italic;line-height:1.3;
  font-size:clamp(1.1rem,2.5vw,2rem);color:var(--parch)}
.stop-text .q-kicker{margin-top:0}
.slide.active .stop-shot{animation:stop-slam .55s cubic-bezier(.2,1.3,.4,1) both}
.slide.active .stop-text > *{animation:fx-fade .7s ease both;animation-delay:.55s}
.slide.active .stop-text > :nth-child(2){animation-delay:.95s}
.slide.active .stop-text > :nth-child(3){animation-delay:1.35s}
@keyframes stop-slam{0%{transform:scale(1.9);opacity:0}60%{transform:scale(.96);opacity:1}100%{transform:none;opacity:1}}
@media(max-width:640px){
  .stop-row{flex-direction:column}
  .stop-shot img{max-height:clamp(200px,40vh,420px)}
  .stop-text{align-items:center;text-align:center;max-width:100%}
}
@media(prefers-reduced-motion:reduce){.slide.active .stop-shot,.slide.active .stop-text > *{animation:none}}

/* ============ bird matching game ============ */
/* --tw is the width of one photo tile; tray tiles and name slots share it. */
.slide.match{padding:clamp(14px,2.2vw,36px);background:
  radial-gradient(ellipse at 50% -10%,rgba(160,220,255,.22),transparent 55%),
  linear-gradient(180deg,#0b2a3a,#11474a 55%,#0a2a22)}
.mt-tray,.mt-slots{--tw:clamp(84px,min(11.4vw,20vh),210px);display:flex;flex-wrap:wrap;justify-content:center;
  gap:clamp(6px,1vw,14px);width:100%}
.mt-tray{align-content:center;min-height:calc(var(--tw)*.75 + 22px);padding:8px;border-radius:14px;
  border:2px dashed rgba(233,196,106,.4);background:rgba(0,0,0,.22);transition:background .2s,border-color .2s}
.mt-slots{margin-top:clamp(12px,2.4vh,26px)}
.mt-tile{width:var(--tw);aspect-ratio:4/3;overflow:hidden;border-radius:10px;cursor:grab;
  touch-action:none;user-select:none;-webkit-user-select:none;
  border:3px solid var(--gold-d);background:#000;box-shadow:0 6px 16px rgba(0,0,0,.5);
  transition:transform .2s,box-shadow .2s,border-color .3s}
.mt-tile img{display:block;width:100%;height:100%;object-fit:cover;pointer-events:none}
/* the number players write down next to a letter */
.mt-tile{position:relative}
.mt-num{position:absolute;left:5px;top:5px;display:grid;place-items:center;min-width:1.7em;height:1.7em;padding:0 .3em;
  border-radius:50%;font-family:'Cinzel',serif;font-weight:900;font-size:clamp(.8rem,1.5vw,1.2rem);line-height:1;
  color:#16110d;background:var(--gold-l);border:2px solid #16110d;box-shadow:0 2px 6px rgba(0,0,0,.5);pointer-events:none}
.mt-tile.picked{outline:3px solid var(--gold-l);outline-offset:2px;transform:translateY(-4px)}
.mt-tile.dragging{position:relative;z-index:6;cursor:grabbing;pointer-events:none;transition:none;
  box-shadow:0 16px 30px rgba(0,0,0,.65)}
.mt-slot{width:var(--tw);display:flex;flex-direction:column;gap:6px}
.mt-drop{position:relative;display:grid;aspect-ratio:4/3;border-radius:12px;
  border:2px dashed rgba(247,232,196,.55);background:rgba(255,255,255,.07);transition:background .2s,border-color .2s}
.mt-drop .mt-tile{grid-area:1/1;width:100%;height:100%}
.mt-slot.drop .mt-drop,.mt-tray.drop{border-color:var(--gold-l);background:rgba(233,196,106,.22)}
.mt-name{display:flex;align-items:center;justify-content:center;gap:.45em;text-align:left;
  font-family:'Playfair Display',serif;font-weight:700;line-height:1.15;color:var(--parch);
  font-size:clamp(.66rem,1.15vw,.95rem)}
.mt-name b{flex:none;display:grid;place-items:center;width:1.8em;height:1.8em;border-radius:50%;
  font-family:'Cinzel',serif;font-size:.85em;color:var(--gold-l);
  background:linear-gradient(180deg,#8c0f17,#4e060b);border:1px solid var(--gold-d);transition:background .3s}
/* after the reveal: every photo is in its right place; the mark shows how the players went */
.match.graded .mt-tile{cursor:default}
.match.graded .mt-tray{visibility:hidden}
.mt-slot.right .mt-tile{border-color:#3fbf6c;box-shadow:0 0 18px rgba(70,220,120,.6)}
.mt-slot.wrong .mt-tile{border-color:#d3202a}
.mt-slot.right .mt-name b{background:linear-gradient(180deg,#2b9a52,#145229)}
.mt-slot.right .mt-drop::after,.mt-slot.wrong .mt-drop::after{position:absolute;top:-9px;right:-7px;z-index:2;
  display:grid;place-items:center;width:1.6em;height:1.6em;border-radius:50%;font-weight:900;
  font-size:clamp(.7rem,1.2vw,1rem);border:2px solid #fff}
.mt-slot.right .mt-drop::after{content:"\2713";color:#fff;background:#1f8a45}
.mt-slot.wrong .mt-drop::after{content:"\2715";color:#fff;background:#c3151f}
@media(max-width:640px){
  .mt-tray,.mt-slots{--tw:clamp(72px,28vw,120px);gap:6px}
  .mt-name{font-size:.62rem}
}

/* ============ faces shown with a question ============ */
.q-faces{display:flex;justify-content:center;gap:clamp(14px,3vw,36px);margin-top:clamp(10px,2vh,18px)}
.q-faces img{width:clamp(88px,19vh,170px);aspect-ratio:1;object-fit:cover;border-radius:50%;
  border:4px solid var(--gold-d);box-shadow:0 8px 20px rgba(60,30,0,.4)}
.q-faces img:nth-child(odd){transform:rotate(-3deg)}
.q-faces img:nth-child(even){transform:rotate(3deg)}

/* the line the parents cannot wriggle out of */
.must-write{margin-top:.5em;font-style:italic;font-weight:700;color:var(--red-d);font-size:clamp(.95rem,1.9vw,1.3rem)!important}

/* ============ slideshow: animated photos that play by themselves ============ */
/* Every photo slide stacks three polaroids in one grid cell: the new photo, the one before
   it (which starts in the middle and slides aside as the slide arrives) and the one before
   that (already resting at the other side). The new photo uses one of the in-* entrances. */
.slide.show{overflow:hidden;transform:none;transition:opacity .3s ease,visibility 0s .3s}
.slide.show.active{transition:opacity .3s ease}
.show-stage{display:grid;place-items:center;width:100%;min-width:0}
.show-stage > .photo-frame{grid-area:1/1;transform:rotate(var(--tilt,0deg))}
.tilt-l{--tilt:-1.2deg}
.tilt-r{--tilt:1.2deg}
.rest-l{--rx:-33vw;--ry:5vh;--rr:-9deg}
.rest-r{--rx:33vw;--ry:-7vh;--rr:8deg}
.show-stage > .show-old{z-index:1;filter:brightness(.82);
  transform:translate(var(--rx),var(--ry)) rotate(var(--rr)) scale(.5)}
.show-stage > .show-prev{z-index:2}
.show-stage > .show-new{z-index:3}
.slide.active .show-prev{animation:show-aside .95s cubic-bezier(.3,.7,.25,1) both}
@keyframes show-aside{0%{transform:rotate(var(--tilt,0deg));filter:none}}
.slide.active .show-older{animation:show-dim .95s ease both}
@keyframes show-dim{0%{filter:brightness(.82)}100%{filter:brightness(.62)}}

.slide.active .show-new{animation:1.25s .12s both}
.slide.active .in-spin{animation-name:show-spin;animation-duration:1.5s;animation-timing-function:cubic-bezier(.35,.45,.4,1)}
.slide.active .in-drop{animation-name:show-drop;animation-duration:1.4s}
.slide.active .in-fly-r{animation-name:show-fly;animation-duration:1.05s;animation-timing-function:cubic-bezier(.2,.8,.3,1)}
.slide.active .in-fly-l{--from:-115vw;--skew:-14deg;animation-name:show-fly;animation-duration:1.05s;animation-timing-function:cubic-bezier(.2,.8,.3,1)}
.slide.active .in-zoom{animation-name:show-zoom;animation-duration:.95s;animation-timing-function:cubic-bezier(.2,1.2,.4,1)}
.slide.active .in-swing{animation-name:show-swing;animation-duration:1.7s;transform-origin:50% 0}
.slide.active .in-flip{animation-name:show-flip;animation-duration:1.15s;animation-timing-function:cubic-bezier(.2,.7,.3,1)}
.slide.active .in-roll{animation-name:show-roll;animation-duration:1.4s;animation-timing-function:cubic-bezier(.3,.6,.3,1)}
@keyframes show-spin{
  0%{transform:translate(-110vw,-24vh) rotate(-900deg) scale(.1);opacity:0}
  12%{opacity:1}
  72%{transform:rotate(15deg) scale(1.08)}
  87%{transform:rotate(-6deg) scale(.97)}
  100%{transform:rotate(var(--tilt,0deg));opacity:1}}
@keyframes show-drop{
  0%{transform:translateY(-115vh) rotate(-10deg);animation-timing-function:cubic-bezier(.5,0,1,.6)}
  40%{transform:translateY(0) rotate(3deg) scale(1.05,.93);animation-timing-function:cubic-bezier(0,.5,.5,1)}
  58%{transform:translateY(-12%) rotate(-2deg);animation-timing-function:cubic-bezier(.5,0,1,.6)}
  76%{transform:translateY(0) rotate(1deg) scale(1.02,.97);animation-timing-function:cubic-bezier(0,.5,.5,1)}
  88%{transform:translateY(-3%)}
  100%{transform:rotate(var(--tilt,0deg))}}
@keyframes show-fly{
  0%{transform:translateX(var(--from,115vw)) skewX(var(--skew,14deg)) rotate(0deg)}
  68%{transform:translateX(calc(var(--from,115vw)*-.035)) skewX(calc(var(--skew,14deg)*-.45))}
  84%{transform:translateX(calc(var(--from,115vw)*.01)) skewX(0deg)}
  100%{transform:rotate(var(--tilt,0deg))}}
@keyframes show-zoom{
  0%{transform:scale(0) rotate(-40deg);opacity:0}
  25%{opacity:1}
  65%{transform:scale(1.14) rotate(7deg)}
  84%{transform:scale(.96) rotate(-3deg)}
  100%{transform:rotate(var(--tilt,0deg));opacity:1}}
@keyframes show-swing{
  0%{transform:translateY(-110vh) rotate(-28deg)}
  34%{transform:translateY(0) rotate(14deg)}
  52%{transform:rotate(-9deg)}
  68%{transform:rotate(6deg)}
  82%{transform:rotate(-3deg)}
  100%{transform:rotate(var(--tilt,0deg))}}
@keyframes show-flip{
  0%{transform:perspective(1400px) rotateY(-200deg) scale(.35);opacity:0}
  20%{opacity:1}
  78%{transform:perspective(1400px) rotateY(12deg) scale(1.04)}
  100%{transform:perspective(1400px) rotateY(0deg) rotate(var(--tilt,0deg));opacity:1}}
@keyframes show-roll{
  0%{transform:translate(-95vw,55vh) rotate(-540deg) scale(.5);opacity:0}
  12%{opacity:1}
  74%{transform:translate(2vw,-1vh) rotate(12deg) scale(1.05)}
  88%{transform:rotate(-5deg)}
  100%{transform:rotate(var(--tilt,0deg));opacity:1}}

/* the countdown to the next photo; "paused" shows instead while the host holds it */
.auto-bar{position:absolute;left:50%;bottom:clamp(8px,1.6vh,16px);transform:translateX(-50%);z-index:4;
  width:min(220px,40%);height:4px;border-radius:4px;background:rgba(159,232,221,.18)}
.auto-bar i{display:block;width:0;height:100%;border-radius:inherit;background:#9fe8dd}
.auto-run .auto-bar i{animation:auto-fill var(--auto,5s) linear both}
@keyframes auto-fill{to{width:100%}}
.auto-held .auto-bar{height:auto;width:auto;background:none}
.auto-held .auto-bar i{display:none}
.auto-held .auto-bar::after{content:"\23F8  Paused \00B7  P or Space to carry on";font-family:'Cinzel',serif;
  letter-spacing:.2em;text-transform:uppercase;white-space:nowrap;font-size:clamp(.56rem,1.1vw,.78rem);color:#9fe8dd}
@media(max-width:700px){.show-stage > .show-old{display:none}}
@media(prefers-reduced-motion:reduce){
  .slide.active .show-new,.slide.active .show-prev,.slide.active .show-older{animation:none}
}

/* ============ movie cover: a DVD case that spins in with the title ============ */
/* The case sits over the corner of the still, or beside it when the screen is wide enough.
   The poster covers the title underneath once it has loaded. */
.movie-stage{position:relative;max-width:100%}
.dvd{position:absolute;z-index:2;right:clamp(-30px,-2.2vw,-8px);bottom:clamp(-22px,-2.6vh,-8px);
  height:68%;aspect-ratio:2/3;opacity:0;pointer-events:none;transform:rotate(7deg);border-radius:4px 7px 7px 4px;
  background:linear-gradient(90deg,#08080b 0 6%,#34343c 6% 8%,#131317 8%);
  box-shadow:0 14px 30px rgba(0,0,0,.75),0 0 0 1px rgba(255,255,255,.14)}
.dvd-cover{position:absolute;inset:3% 3% 3% 11%;overflow:hidden;border-radius:2px;display:grid;place-items:center;
  background:linear-gradient(160deg,#8c0f17,#3a0508 58%,#14351f)}
.dvd-cover img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.dvd-cover span{padding:.4em;font-family:'Great Vibes',cursive;line-height:1.1;text-align:center;
  font-size:clamp(1rem,3.2vh,1.9rem);color:var(--gold-l)}
.dvd-cover span i{display:block;font-style:normal;font-size:1.3em;margin-bottom:.15em}
.dvd::after{content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;
  background:linear-gradient(115deg,rgba(255,255,255,.3),transparent 26%,transparent 72%,rgba(255,255,255,.12))}
.slide.movie.revealed .dvd{animation:dvd-spin 1.6s cubic-bezier(.35,.45,.4,1) both}
@keyframes dvd-spin{
  0%{transform:translate(70vw,-55vh) rotate(1260deg) scale(.1);opacity:0}
  12%{opacity:1}
  72%{transform:rotate(-13deg) scale(1.15);opacity:1}
  87%{transform:rotate(12deg) scale(.96)}
  100%{transform:rotate(7deg);opacity:1}}
@media(min-aspect-ratio:3/2) and (min-width:900px){
  .dvd{right:auto;bottom:auto;left:calc(100% + clamp(14px,2.2vw,36px));top:-4%;height:108%}
}
@media(prefers-reduced-motion:reduce){.slide.movie.revealed .dvd{animation:none;opacity:1}}

/* ============ a poster photo beside a round's title ============ */
.poster-row{display:flex;align-items:center;justify-content:center;gap:clamp(18px,4.5vw,64px);max-width:100%}
.poster-shot{flex:none;margin:0;padding:clamp(6px,.9vw,11px);border-radius:8px;transform:rotate(-3deg);
  background:linear-gradient(180deg,#fffdf6,#eee8d8);border:2px solid var(--gold-d);
  box-shadow:0 18px 44px rgba(0,0,0,.6),0 0 34px rgba(233,196,106,.18)}
.poster-shot img{display:block;border-radius:3px;height:clamp(220px,56vh,600px);width:auto;max-width:38vw;object-fit:cover}
.poster-text{display:flex;flex-direction:column;align-items:center;min-width:0}
.slide.active .poster-shot{animation:poster-in .8s cubic-bezier(.2,1.3,.4,1) both}
@keyframes poster-in{0%{transform:translateY(-70vh) rotate(-22deg);opacity:0}100%{transform:rotate(-3deg);opacity:1}}
@media(max-width:700px){
  .poster-row{flex-direction:column;gap:14px}
  .poster-shot img{height:clamp(160px,30vh,280px);max-width:70vw}
}
@media(prefers-reduced-motion:reduce){.slide.active .poster-shot{animation:none}}

/* ============ nice list gifts ============ */
.gift-row{display:flex;align-items:center;justify-content:center;gap:clamp(14px,2.6vw,30px);width:100%;text-align:center}
.gift-photo{flex:none;height:clamp(170px,40vh,400px);aspect-ratio:3/4;object-fit:cover;border-radius:12px;
  border:4px solid #fffdf6;box-shadow:0 10px 26px rgba(60,30,0,.45);transform:rotate(-3deg)}
.gift-row .ticket{flex:1 1 0;min-width:0}
.gift-icon{font-size:clamp(2.4rem,6vh,3.6rem);line-height:1}
.rv.on .gift-photo{animation:gift-in .8s cubic-bezier(.2,1.4,.4,1) both}
.rv.on .gift-icon{animation:gift-pop .7s cubic-bezier(.2,1.6,.4,1) .7s both}
@keyframes gift-in{0%{transform:translateX(-60vw) rotate(-40deg);opacity:0}100%{transform:rotate(-3deg);opacity:1}}
@keyframes gift-pop{0%{transform:translateY(40%) scale(.2) rotate(-50deg);opacity:0}60%{transform:translateY(-18%) scale(1.25) rotate(14deg);opacity:1}100%{transform:none;opacity:1}}
/* the dogs: one main photo with the others fanned out around it */
.pups{display:flex;align-items:center;justify-content:center;gap:clamp(6px,1.2vw,14px);margin-bottom:clamp(8px,1.6vh,16px)}
.pup{flex:0 1 auto;min-width:0;height:clamp(104px,23vh,230px);aspect-ratio:3/4;object-fit:cover;border-radius:10px;
  border:4px solid #fffdf6;box-shadow:0 8px 20px rgba(60,30,0,.45);transform:rotate(var(--r,0deg))}
.pup-main{height:clamp(140px,32vh,320px);z-index:1}
.rv.on .pup{animation:pup-pop .6s cubic-bezier(.2,1.5,.4,1) both;animation-delay:calc(var(--i,0)*.16s)}
@keyframes pup-pop{0%{transform:scale(0) rotate(-30deg);opacity:0}100%{transform:rotate(var(--r,0deg));opacity:1}}
@media(max-width:700px){
  .gift-row{flex-direction:column}
  .gift-photo{height:clamp(150px,30vh,260px)}
  .pups{flex-wrap:wrap}
  .pup{height:auto;width:calc((100vw - 148px)/4)}
  .pup-main{order:-1;width:60vw;margin:0 8vw}
}
@media(prefers-reduced-motion:reduce){.rv.on .gift-photo,.rv.on .gift-icon,.rv.on .pup{animation:none}}

/* ============ and the winner is... ============ */
.winner-stage{width:100%;min-height:clamp(150px,26vh,260px);margin-top:clamp(6px,1.4vh,16px)}
.winner{display:flex;flex-direction:column;align-items:center;gap:.1em}
.winner-crown{font-size:clamp(2.6rem,8vh,4.6rem);line-height:1;filter:drop-shadow(0 4px 10px rgba(0,0,0,.5))}
.winner-name{font-family:'Great Vibes',cursive;line-height:1.1;padding:.1em .4em .2em;
  font-size:clamp(2.8rem,9vw,6.4rem);color:var(--gold-l);text-shadow:0 0 26px rgba(255,190,60,.7),0 3px 10px rgba(0,0,0,.6)}
.winner-name i{font-family:'Playfair Display',serif;font-size:.36em;color:var(--parch);opacity:.85}
.winner-line{font-family:'Cinzel',serif;font-weight:700;letter-spacing:.24em;text-transform:uppercase;
  font-size:clamp(.8rem,1.8vw,1.25rem);color:var(--gold)}
.rv.on .winner-crown{animation:gift-pop .8s cubic-bezier(.2,1.6,.4,1) .35s both}
.rv.on .winner-name{animation:winner-in 1s cubic-bezier(.2,1.2,.4,1) both}
.rv.on .winner-line{animation:fx-fade .8s ease 1s both}
@keyframes winner-in{0%{transform:scale(.2) rotate(-8deg);opacity:0}70%{transform:scale(1.08) rotate(2deg);opacity:1}100%{transform:none;opacity:1}}
@media(prefers-reduced-motion:reduce){.rv.on .winner-crown,.rv.on .winner-name,.rv.on .winner-line{animation:none}}

/* ============ spotify in the player dock ============ */
/* Spotify's player is a slim bar rather than a video, so the dock shrinks to fit it. */
#yt-dock[data-kind="spotify"]{width:min(330px,calc(100vw - 44px));height:90px}
#yt-dock[data-kind="spotify"] .yt-frame{border-radius:12px}
/* the Spotify / YouTube switch in the music menu */
.mm-source{display:flex;align-items:center;gap:6px;margin-top:10px}
.mm-source span{flex:none;margin-right:4px;font-family:'Playfair Display',serif;font-style:italic;font-size:.85rem;color:var(--parch)}
.mm-src{flex:1 1 0;cursor:pointer;padding:.45em .6em;border-radius:10px;text-align:center;
  font-family:'Cinzel',serif;font-weight:700;font-size:.74rem;letter-spacing:.08em;color:var(--parch);
  border:1px solid rgba(184,137,46,.55);background:rgba(0,0,0,.35);transition:background .2s,color .2s}
.mm-src.now{color:var(--red-d);border-color:var(--gold-l);background:linear-gradient(180deg,#fbeab7,#e8c677)}
.mm-src:hover{box-shadow:0 0 12px rgba(233,196,106,.4)}
.mm-src:disabled{opacity:.4;cursor:default;box-shadow:none}
.mm-note{margin-top:8px;padding:.5em .7em;border-radius:8px;font-family:'Playfair Display',serif;font-size:.8rem;line-height:1.35;
  color:#fbeab7;background:rgba(140,15,23,.55);border:1px solid rgba(233,196,106,.45)}

/* ============ naughty or nice: the reason on each card ============ */
/* The stamp lands across the silhouette, and the reason fades in underneath the name. */
.nn .stamp{bottom:auto;top:clamp(16px,3.4vw,34px);background:rgba(255,248,225,.82)}
.nn .why{min-height:3.9em;margin-top:6px;padding:0 2px;font-family:'Playfair Display',serif;font-weight:700;line-height:1.25;
  font-size:clamp(.78rem,1.3vw,1rem);color:#3a140c;opacity:0;transform:translateY(6px);
  transition:opacity .4s .25s,transform .4s .25s}
.nn .why small{display:block;margin-top:2px;font-style:italic;font-weight:500;color:var(--red-d)}
.nn.nice-c .why small{color:#1f7a3f}
.nn.on .why{opacity:1;transform:none}
@media(max-height:740px){
  .nn .stamp{top:14px}
  .nn .why{font-size:.78rem;margin-top:2px;min-height:3.7em;line-height:1.2}
}
@media(max-width:640px){
  .nn .stamp{top:10px}
  .nn .why{font-size:.68rem}
}

/* ============ a quote above the stars ============ */
.fx-rating{display:flex;flex-direction:column;align-items:center;gap:.15em}
.fx-quote{opacity:0;font-family:'Playfair Display',serif;font-style:italic;font-weight:700;line-height:1.1;
  font-size:clamp(1.1rem,3.6vh,2.1rem);color:var(--red-d)}
.rv.on .fx-quote{animation:fx-wail 1.1s ease both;animation-delay:1.7s}
@keyframes fx-wail{
  0%{opacity:0;transform:scale(.4) rotate(-6deg)}
  55%{opacity:1;transform:scale(1.18) rotate(3deg)}
  75%{transform:scale(.97) rotate(-2deg)}
  100%{opacity:1;transform:none}}
@media(prefers-reduced-motion:reduce){
  .rv.on .fx-quote{animation:none;opacity:1}
}

/* ============ intermission: a clip that plays itself ============ */
.interval-clip{flex:none;margin:clamp(8px,1.6vh,16px) 0 0;height:min(60vh,calc((100vw - 56px)*16/9));aspect-ratio:9/16;
  border-radius:22px;overflow:hidden;background:#000;border:5px solid var(--gold-d);
  box-shadow:0 18px 50px rgba(0,0,0,.55);transform:rotate(-1.5deg)}
.interval-clip video{display:block;width:100%;height:100%;object-fit:cover}

/* ============ naughty or nice: the photo in the silhouette ============ */
/* The silhouette sits in a round frame. When the card is stamped the person's photo
   spins into it, and the stamp lands on the card's top corner, clear of the face. */
.nn{--face:clamp(64px,13vh,118px)}
.nn .sil{position:relative;display:grid;place-items:center;width:var(--face);height:var(--face);margin:0 auto;
  font-size:calc(var(--face)*.8);line-height:1;filter:none}
.nn .sil span{filter:brightness(0) opacity(.85);transition:opacity .3s .15s}
.nn .sil img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;border-radius:50%;
  border:3px solid var(--gold-d);box-shadow:0 5px 14px rgba(60,30,0,.45);opacity:0;transform:scale(.15) rotate(-220deg);
  transition:transform .7s cubic-bezier(.2,1.4,.4,1) .15s,opacity .25s .15s}
.nn.on .sil img{opacity:1;transform:none}
.nn.on .sil.has-photo span{opacity:0}
.nn .nm small{display:inline;margin-left:.35em}
.nn .stamp{left:auto;right:-12px;top:-10px;bottom:auto;font-size:clamp(.7rem,1.35vw,1rem);transform:scale(3) rotate(24deg)}
.nn.on .stamp{transform:scale(1) rotate(9deg)}
@media(max-height:740px){
  .nn{--face:68px}
  .nn-grid{margin-top:10px}
}
@media(max-width:640px){
  .nn{--face:58px}
  .nn .stamp{top:4px;right:3px;font-size:.62rem}
}
@media(prefers-reduced-motion:reduce){.nn .sil img{transition:opacity .2s;transform:none}}

/* ============ tucking the player dock away ============ */
/* The second round button on the dock shrinks it to a single button; the player is still
   there, one pixel big, so the music carries on. YouTube's player has to stay in view,
   so the button is not offered while a YouTube video is showing. */
#yt-min{position:absolute;top:-12px;left:20px;z-index:1;width:28px;height:28px;padding:0;border-radius:50%;cursor:pointer;
  font-size:.95rem;font-weight:700;line-height:1;color:var(--gold-l);border:2px solid var(--gold-d);
  background:linear-gradient(180deg,#8c0f17,#4e060b)}
#yt-min:focus-visible{outline:2px solid var(--gold-l);outline-offset:2px}
#yt-dock[data-kind="youtube"] #yt-min{display:none}
#yt-dock.min:not([data-kind="youtube"]){width:0;height:0;padding:0;border:0;background:none;box-shadow:none}
#yt-dock.min:not([data-kind="youtube"]) .yt-frame.live{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}
#yt-dock.min:not([data-kind="youtube"]) #yt-move{display:none}
#yt-dock.min:not([data-kind="youtube"]) #yt-min{top:-18px;left:-18px;width:36px;height:36px;font-size:1.15rem;
  box-shadow:0 6px 16px rgba(0,0,0,.6),0 0 14px rgba(233,196,106,.35)}

/* jingle toggle */
#bar #jingle,#bar #reset{min-width:2.9em;padding:.5em .65em;font-size:1rem}
/* five controls have to share a phone-width bar */
@media(max-width:640px){
  #bar{gap:6px}
  #bar button{padding:.5em .75em}
  #count{min-width:62px}
}
#bar #jingle[aria-pressed="false"]{opacity:.4}

/* ============ guess the movie scene ============ */
.slide.movie{background:
  radial-gradient(ellipse at 50% -15%,rgba(255,214,150,.18),transparent 55%),
  radial-gradient(ellipse at 50% 120%,rgba(120,18,28,.4),transparent 60%),
  linear-gradient(180deg,#0a0b0f,#15121a 60%,#08080b)}
.movie-head{font-family:'Cinzel',serif;letter-spacing:.24em;text-transform:uppercase;text-align:center;
  font-size:clamp(.66rem,1.35vw,.92rem);color:var(--gold);opacity:.92;margin-bottom:clamp(8px,1.6vh,16px)}
.movie-shot{margin:0;padding:clamp(6px,1vw,10px);border-radius:8px;max-width:100%;
  background:linear-gradient(180deg,#1d1a22,#0e0d12);border:2px solid var(--gold-d);
  box-shadow:0 18px 46px rgba(0,0,0,.7),0 0 34px rgba(233,196,106,.12)}
.movie-shot img{display:block;margin:0 auto;border-radius:3px;
  max-width:100%;max-height:clamp(170px,40vh,360px);width:auto;height:auto}
.movie .stage{min-height:clamp(84px,14vh,124px);margin-top:clamp(8px,1.8vh,18px)}