/* Cuppa and Bikkie moments (delights.js). Decorative. */
.dl-char{display:block;height:auto;max-width:none;user-select:none}
[data-dl-tap]{cursor:pointer;-webkit-tap-highlight-color:transparent}
.dl-wob{animation:dw .6s 1}
.dl-flip{transform:scaleX(-1)}
@keyframes dw{25%{rotate:-9deg}55%{rotate:7deg}80%{rotate:-3deg}}
.dl-sky{position:absolute;inset:0;z-index:-1;overflow:hidden;pointer-events:none;transition:opacity .8s}.dl-off{opacity:0}
.dl-star{position:absolute;top:var(--y);left:-80px;width:70px;height:2px;background:linear-gradient(90deg,transparent,#FBF3DC);opacity:0;animation:ds 1.1s ease-in 1 forwards}
.dl-star::after{content:"";position:absolute;right:-1px;top:-1px;width:4px;height:4px;border-radius:50%;background:#FFF8E6;box-shadow:0 0 6px 2px rgba(255,236,180,.8)}
@keyframes ds{0%{opacity:0;transform:rotate(18deg)}12%{opacity:1}100%{opacity:0;transform:translate(var(--dx),calc(var(--dx)*.32)) rotate(18deg)}}
.dl-sleigh{position:absolute;top:var(--y);left:-40px;opacity:.55;animation:dz 16s linear 1 forwards}
@keyframes dz{to{transform:translate(var(--dx),-4px)}}
.dl-flake{position:absolute;top:-8px;left:var(--x);width:var(--s);height:var(--s);border-radius:50%;background:#F4EFE4;opacity:0;animation:df var(--d) linear var(--w) infinite}
@keyframes df{0%{opacity:0}10%{opacity:.8}90%{opacity:.7}100%{opacity:0;transform:translate(var(--sw),var(--h))}}
.dl-pop{position:absolute;z-index:3;width:auto;pointer-events:none;animation:dp .35s cubic-bezier(.3,1.6,.5,1) 1 both}
.dl-out{animation:dq .3s ease-in 1 forwards}
@keyframes dp{0%{transform:translateY(24px) scale(.6);opacity:0}}
@keyframes dq{to{transform:translateY(24px) scale(.6);opacity:0}}
.picker,.ec-bay-dial,.tip-top{position:relative}
.dl-pk-tick{position:absolute;top:16px;right:14px;height:76px;width:auto}
.dl-hide{visibility:hidden}
.picker .pk-h,.picker .pk-lede{padding-right:76px}
.dl-pop-pk{top:16px;right:10px;height:88px}.dl-pop-ec{top:-72px;right:104px;height:84px}
.dl-ec-tick{position:absolute;bottom:12px;left:10px;height:58px;width:auto;transform-origin:50% 100%}
.tip-tock{flex:none;height:116px;width:auto}
.dl-crumb{position:absolute;width:4px;height:4px;border-radius:50%;background:#B3743A;pointer-events:none;opacity:0;animation:dc .9s 1 both}
@keyframes dc{0%{opacity:1}to{opacity:0;transform:translate(var(--cx),64px)}}
.dl-fight{position:relative;height:150px;margin:24px 0 8px;max-width:520px}
.dl-fight .dl-char{position:absolute;bottom:0;height:108px;width:auto}
.dl-l{left:0}.dl-r{right:0}
.dl-ball{position:absolute;bottom:70px;width:15px;height:15px;border-radius:50%;background:#fff;box-shadow:0 0 0 1px #cfd9e6;pointer-events:none;z-index:2}
.stage{--pw:250px}.stage .ph{z-index:1}
.dl-hero-tock{position:absolute;z-index:0;bottom:0;left:calc(50% + var(--pw)/2 + 2px);width:min(calc((100vw - var(--pw))/2 - 4px),78px);height:auto}
.dl-onbtn{position:relative;display:grid}
.dl-hero-tick{position:absolute;z-index:1;right:4px;bottom:100%;margin-bottom:-2px;height:58px;width:auto}
@media (max-width:359px){.stage{--pw:220px}.dl-hero-tock{display:none}}
@media (min-width:900px){.stage{--pw:320px}.dl-hero-tock{width:96px}.dl-onbtn{width:fit-content}.dl-hero-tick{right:auto;left:100%;bottom:0;margin:0 0 0 14px}}
@media (prefers-reduced-motion:no-preference){

.dl-hero-tock{transform-origin:50% 100%;animation:dk 4s ease-in-out 3s 1 both}
.dl-hero-tick{transform-origin:50% 100%;animation:dt 2.6s ease-in-out 5s 1}}
@keyframes dk{0%{transform:translateX(-85%)}22%{transform:none}32%,56%{transform:rotate(-8deg)}44%,68%{transform:rotate(7deg)}80%,100%{transform:none}}
@keyframes dt{30%{transform:rotate(-6deg)}60%{transform:rotate(5deg)}}
.count .c-big{position:relative}
.count .c-big:has(.c-num)::after{content:"";position:absolute;right:0;bottom:8px;width:clamp(58px,10vw,92px);aspect-ratio:73/105;background:url(/img/chars/tick-check-watch.webp?v=f6cbae38) no-repeat right bottom/contain;pointer-events:none}
@media (prefers-reduced-motion:reduce){.dl-sky,.dl-run,.dl-pop{display:none}}
.dl-run{position:fixed;z-index:15;bottom:0;left:0;height:110px;pointer-events:none;animation:dx 3.5s ease-in-out 1 both}
.dl-tock{left:auto;right:0;animation-name:dy}
.dl-run img{height:100%;width:auto;pointer-events:auto;transform-origin:50% 100%;animation:dh 3.5s ease-in-out 1 both}
.dl-tock img{transform:scaleX(-1);animation-name:dhf}
.dl-tapped{animation:dz2 .5s ease-in 1 forwards}
@keyframes dx{0%{transform:translateX(-140%)}18%,78%{transform:translateX(14px)}100%{transform:translateX(-140%)}}
@keyframes dy{0%{transform:translateX(140%)}18%,78%{transform:translateX(-14px)}100%{transform:translateX(140%)}}
@keyframes dh{0%,20%{transform:none}27%{transform:translateY(-14px)}34%{transform:none}41%{transform:translateY(-10px)}48%{transform:none}55%{transform:rotate(-6deg)}63%{transform:rotate(6deg)}71%,100%{transform:none}}
@keyframes dhf{0%,20%{transform:scaleX(-1)}27%{transform:scaleX(-1) translateY(-14px)}34%{transform:scaleX(-1)}41%{transform:scaleX(-1) translateY(-10px)}48%{transform:scaleX(-1)}55%{transform:scaleX(-1) rotate(6deg)}63%{transform:scaleX(-1) rotate(-6deg)}71%,100%{transform:scaleX(-1)}}
@keyframes dz2{to{transform:translateX(-140%)}}
.dl-tock.dl-tapped{animation-name:dz3}
@keyframes dz3{to{transform:translateX(140%)}}

/* The biscuit nudge: Bikkie in the corner with a speech bubble (delights.js, nudge) */
.dl-nudge{position:fixed;z-index:20;right:12px;bottom:12px;display:flex;align-items:flex-end;gap:4px;max-width:min(340px,calc(100vw - 24px));font-size:15px;line-height:1.4;color:var(--ink,#1B2340)}
.dl-nudge-tock{flex:none;height:110px;width:auto;order:2;margin-left:-10px;cursor:pointer;transform-origin:50% 100%}
.dl-nudge-b{position:relative;background:#fff;border:2px solid #F2B35B;border-radius:16px 16px 4px 16px;padding:14px 14px 12px;box-shadow:0 10px 28px -10px rgba(27,35,64,.45)}
.dl-nudge-h{margin:0 22px 4px 0;font-family:var(--display,inherit);font-weight:800;font-size:16px;line-height:1.25}
.dl-nudge-p{margin:0 0 10px;color:var(--muted,#5A6178);font-size:14px}
.dl-nudge-row[hidden]{display:none}
.dl-nudge-row{display:flex;flex-wrap:wrap;align-items:center;gap:6px 12px}
.dl-nudge-go{padding:9px 14px;font-size:15px}
.dl-nudge-no{background:none;border:0;padding:8px 4px;font:inherit;font-size:14px;color:var(--muted,#5A6178);text-decoration:underline;cursor:pointer;min-height:44px}
.dl-nudge-x{position:absolute;top:2px;right:2px;width:40px;height:40px;border:0;background:none;font-size:22px;line-height:1;color:var(--muted,#5A6178);cursor:pointer}
@media (prefers-reduced-motion:no-preference){.dl-nudge{animation:dln-in .45s cubic-bezier(.2,1.4,.4,1) both}.dl-nudge-tock{animation:dln-hop .5s .3s ease-out both}.dl-nudge-out{animation:dln-out .35s ease-in both}}
@keyframes dln-in{from{transform:translateY(130%);opacity:0}to{transform:none;opacity:1}}
@keyframes dln-hop{0%{transform:translateY(20px)}60%{transform:translateY(-8px)}100%{transform:none}}
@keyframes dln-out{to{transform:translateY(130%);opacity:0}}
@media (max-width:380px){.dl-nudge-tock{height:88px}}
@media print{.dl-nudge{display:none}}

/* Cuppa and Bikkie's speech bubbles (site/tools/cast-lines.mjs; 13 Nov). The words are real text, read in order; the
   pictures beside them are decorative. On dark bands and on paper alike: white bubble, navy edge. */
.cb-bub{position:relative;margin:0 0 10px;padding:10px 14px 11px;max-width:34em;border:2px solid #1B2340;border-radius:18px;background:#FFFFFF;color:#2B2340;font-size:17px;line-height:1.4;text-align:left}
.cb-bub b{display:block;margin-bottom:1px;font-size:13px;line-height:1.2;letter-spacing:.05em;text-transform:uppercase}
.cb-bub.cb-cuppa b{color:#5A4CC0}
.cb-bub.cb-bikkie b{color:#8A5A00}
.cb-pair{display:grid;grid-template-columns:auto 1fr auto;align-items:end;gap:10px;max-width:760px}
.cb-talk{display:flex;flex-direction:column;min-width:0}
.cb-talk .cb-cuppa{align-self:flex-start;border-bottom-left-radius:6px}
.cb-talk .cb-bikkie{align-self:flex-end;border-bottom-right-radius:6px}
.cb-fig{flex:none;line-height:0}
.cb-fig .dl-char{height:auto;max-width:none}
.cb-host{display:flex;align-items:flex-end;gap:10px;max-width:640px}
.cb-host .cb-talk .cb-bub{align-self:flex-start;border-bottom-left-radius:6px}
@media (max-width:560px){
  .cb-pair{grid-template-columns:1fr 1fr;align-items:end}
  .cb-pair .cb-talk{grid-column:1/-1;grid-row:2}
  .cb-pair .cb-fig-l{justify-self:start}.cb-pair .cb-fig-r{justify-self:end}
  .cb-fig .dl-char{height:110px;width:auto}
  /* the pair bigger on a phone where there is room (Meet, their own page, the World Tour), so the mouths read */
  .cb-pair .cb-fig .dl-char{height:144px}
  .cb-pair.cb-guide .cb-fig .dl-char{height:110px}
  .cb-bub{font-size:16px}
}
.cb-meet .cb-pair{margin:22px 0 0}
/* A stage (briefs/site-mascots-series.md): the pair as one drawing on the series rig, the hero of its section. On a phone
   it runs edge to edge (the page's 20 px gutter taken back) with the one button directly under it, then the bubbles; on a
   wide screen the stage and its button sit beside the bubbles. The still wears the live drawing's navy edge. */
.cb-pair.cb-show{display:block;max-width:none}
.cb-show .cb-stagecol{display:flex;flex-direction:column;align-items:center;max-width:520px;margin:0 auto}
.cb-show .cb-fig{width:100%}
.cb-show .cb-fig .dl-char,.cb-hoststage .cb-fig .dl-char{display:block;width:100%;height:auto;max-width:100%}
.cbs-still{filter:drop-shadow(.6px .6px 0 #1B2340) drop-shadow(-.6px -.6px 0 #1B2340)}
.cb-show .cb-hear{margin:8px 0 14px}
.cb-show .cb-talk{max-width:520px;margin:0 auto}
@media (max-width:560px){
  .cb-show .cb-stagecol{max-width:none;margin:0 -20px}
  .cb-pair.cb-show .cb-fig .dl-char{height:auto}
}
/* while they speak the stage stays at the top of the screen and the bubbles pass under it, so the pair and the line being
   said are always on the screen together (wherever the bubbles are under the stage: every phone, and every page but home
   on a wide screen) */
.cb-show.cb-on .cb-stagecol{position:sticky;top:0;z-index:3;background:var(--paper,#F4EFE4)}
/* home's Meet section is wide enough for the bubbles to sit beside the stage */
@media (min-width:900px){
  .cb-meet .cb-pair.cb-show{display:grid;grid-template-columns:minmax(0,520px) minmax(0,1fr);gap:0 36px;align-items:center}
  .cb-meet .cb-show .cb-stagecol,.cb-meet .cb-show .cb-talk{margin:0}
  .cb-meet .cb-show.cb-on .cb-stagecol{position:static}
}

/* Make Your Elf: the guide's stage is low and wide and stays inside the builder's card (never edge to edge, never pinned:
   the builder below has its own pinned elf); from a tablet up the line sits beside it. Cuppa alone hosts on a small stage. */
.cb-show.cb-guide .cb-stagecol{max-width:420px;margin:0 auto}
.cb-show.cb-guide.cb-on .cb-stagecol{position:static;background:none}
.cb-show.cb-guide .cb-talk{max-width:420px}
.cb-show.cb-guide .cb-bub{margin-bottom:0}
@media (min-width:700px){
  .cb-pair.cb-show.cb-guide{display:grid;grid-template-columns:minmax(0,340px) minmax(0,1fr);gap:0 20px;align-items:center}
  .cb-show.cb-guide .cb-stagecol,.cb-show.cb-guide .cb-talk{margin:0}
}
/* the door to try: the pair on their stage under the door, in the door's own column (never pinned, never edge to edge) */
.cb-show[hidden]{display:none}
.cb-pair.cb-show.cb-door{display:block;width:100%;box-sizing:border-box;max-width:420px;margin:12px auto 4px}
.cb-pair.cb-show.cb-door[hidden]{display:none}
.cb-show.cb-door .cb-stagecol{max-width:420px;margin:0 auto}
.cb-show.cb-door.cb-on .cb-stagecol{position:static;background:none}
.cb-pair.cb-show.cb-door .cb-fig .dl-char{height:auto;width:100%}
.cb-hoststage{align-items:center}
.cb-hoststage .cb-fig{flex:none;width:150px}
.cb-pair.cb-show.cb-guide .cb-fig .dl-char,.cb-hoststage .cb-fig .dl-char{height:auto}
.cb-more{margin:14px 0 0}
.cb-day{margin-top:18px}
.cb-door .cb-bub{margin:0;font-size:16px}
.cb-door[hidden]{display:none}
.cb-guide{margin:6px 0 14px}
.cb-name,.cb-again{margin:8px 0 14px}
.cb-tour{margin:6px 0 18px}
.cb-more a{color:#2B2340;font-weight:700;text-decoration:underline;text-underline-offset:3px}
/* The live pair (briefs/site-mascots-live.md). A spot's one button plays its lines in order; a tap on either elf does the
   same. While it plays (.cb-on), the bubbles wait dimmed and each lights up as its line is spoken; with the sound off, or
   before any tap, every bubble is plain to read. The pictures are swapped for the rig's drawings in the same box. */
.cb-hear{display:inline-flex;align-items:center;gap:8px;align-self:center;min-height:44px;margin:0 0 10px;padding:8px 18px 8px 14px;border:2px solid #1B2340;border-radius:999px;background:#FFF6DC;color:#1B2340;font:700 15px/1.2 inherit;font-family:inherit;cursor:pointer}
.cb-hear:hover{background:#FFE9A8}
.cb-hear:focus-visible{outline:3px solid #1B2340;outline-offset:2px}
.cb-hear .cb-i-stop,.cb-hear[aria-pressed="true"] .cb-i-play{display:none}
.cb-hear[aria-pressed="true"]{background:#1B2340;color:#FFF6DC;border-color:#FFF6DC;box-shadow:0 0 0 2px #1B2340}
.cb-hear[aria-pressed="true"] .cb-i-stop{display:inline}
.cb-host .cb-hear{align-self:flex-start}
.cb-pair .cb-fig,.cb-host .cb-fig{cursor:pointer;-webkit-tap-highlight-color:transparent}
.cb-bub{transition:opacity .18s ease}
.cb-on .cb-bub[data-line]{opacity:.38}
.cb-on .cb-bub.cb-now,.cb-on .cb-bub.cb-said{opacity:1}
.cb-on .cb-bub.cb-now{box-shadow:0 0 0 3px #F2C14E}
@media (prefers-reduced-motion:reduce){.cb-bub{transition:none}}
/* beside the door to try: small, either side of the one bubble, on a phone too */
.cb-pair.cb-door{grid-template-columns:auto 1fr auto;gap:6px;max-width:420px;margin:12px auto 4px;text-align:left}
.cb-pair.cb-door .cb-talk{grid-column:auto;grid-row:auto}
.cb-pair.cb-door .cb-fig .dl-char{height:84px;width:auto}
.cb-pair.cb-door .cb-bub{margin:0}
.cb-pair.cb-door .cb-hear{font-size:14px;padding:6px 14px 6px 10px;margin:0 0 8px}
@media print{.cb-hear{display:none}}
