/* The pot -----------------------------------------------------------------
   Everything on this page is one idea: a vessel of light that is exactly as
   full as the month has made it. Nothing here invents a number -- the fill,
   the ring, the digits and the motes are all the same figure said four ways,
   so a glance is enough and a stare is rewarded. */

#motes{position:fixed;inset:0;width:100%;height:100%;z-index:0;pointer-events:none;opacity:.85}
.wrap{position:relative;z-index:1}

/* ---------- the vessel ------------------------------------------------- */
#vessel{display:grid;grid-template-columns:minmax(0,300px) minmax(0,1fr);
  gap:var(--s5);align-items:center;margin-top:var(--s4)}
@media (max-width:720px){#vessel{grid-template-columns:1fr;gap:var(--s4);justify-items:center;text-align:center}}

.vwrap{position:relative;width:100%;max-width:300px;aspect-ratio:1/1;display:grid;place-items:center}
.vmark{width:72%;height:auto;overflow:visible;filter:drop-shadow(0 0 40px color-mix(in srgb,var(--gold) 22%,transparent))}
.vedge{fill:none;stroke:var(--gold);stroke-width:2;opacity:.85;
  stroke-dasharray:640;stroke-dashoffset:640;animation:vdraw 2.1s ease-out .15s forwards}
@keyframes vdraw{to{stroke-dashoffset:0}}
.vstar{fill:var(--gold);opacity:.75;animation:vpulse 4.6s ease-in-out infinite}
@keyframes vpulse{0%,100%{opacity:.55;transform:scale(1)}50%{opacity:1;transform:scale(1.06)}}
.vstar{transform-origin:100px 127px}

/* the ring: how far through the month we are */
.vring{position:absolute;inset:0;display:grid;place-items:center;pointer-events:none}
.vring svg{width:100%;height:100%;transform:rotate(-90deg)}
.rbg{fill:none;stroke:var(--hair-soft);stroke-width:1.5}
.rfg{fill:none;stroke:var(--gold-dim);stroke-width:1.5;stroke-linecap:round;
  stroke-dasharray:703.7;stroke-dashoffset:703.7;transition:stroke-dashoffset 1.6s cubic-bezier(.22,.9,.3,1)}

/* a coin flying in when the pot grows */
#chips{position:absolute;inset:0;pointer-events:none;overflow:visible}
.chip{position:absolute;left:50%;bottom:6%;font:500 .78rem/1 var(--ui);letter-spacing:.08em;
  color:var(--gold);white-space:nowrap;text-shadow:var(--glow);
  animation:chipup 1.9s cubic-bezier(.2,.8,.3,1) forwards}
@keyframes chipup{
  0%{opacity:0;transform:translate(-50%,10px) scale(.8)}
  18%{opacity:1}
  100%{opacity:0;transform:translate(-50%,-150px) scale(1.05)}}

/* ---------- the number -------------------------------------------------- */
.vnum .lbl{font:500 var(--lbl)/1 var(--ui);letter-spacing:.26em;text-transform:uppercase;
  color:var(--faint);margin-bottom:var(--s2)}
.odo{display:flex;align-items:baseline;gap:.14em;font-family:var(--display);font-weight:300;
  font-size:clamp(3.2rem,12vw,6rem);line-height:1;color:var(--gold);
  text-shadow:var(--glowbig);letter-spacing:-.01em;
  font-variant-numeric:tabular-nums}
.odo .ccy{font-family:var(--ui);font-weight:500;font-size:.17em;letter-spacing:.3em;
  color:var(--faint);text-shadow:none;align-self:center;margin-left:.5em}
/* each digit is its own little reel */
/* the window is a touch taller than an em because this serif's figures
   overshoot the em box top and bottom; at 1em they print decapitated */
/* Cormorant's figures overhang their advance width, and the window has to
   clip vertically without shaving them left and right. So the reel gets an
   explicit width with the glyph centred in it -- which also keeps the row
   from jittering as a 1 becomes an 8. */
.rl{display:inline-block;width:.72em;height:1.28em;vertical-align:-.19em;
  text-align:center;
  /* Clipping with overflow would shave the glyph left and right, because
     this serif's figures are wider than the box they are given. A mask does
     the job the right way round: four times as wide as the reel, so nothing
     is cut horizontally, and exactly as tall, so the wheel above and below
     stays hidden. */
  -webkit-mask-image:linear-gradient(#000,#000);mask-image:linear-gradient(#000,#000);
  -webkit-mask-size:400% 100%;mask-size:400% 100%;
  -webkit-mask-position:center;mask-position:center;
  -webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}
.rl i{display:block;line-height:1.28;text-align:center;will-change:transform}
.sep{display:inline-block}

.floornote{margin-top:var(--s2);font-size:.82rem;color:var(--ochre)}
.bits{margin-top:var(--s3);display:flex;flex-wrap:wrap;gap:var(--s1) var(--s3);
  font-size:.86rem;color:var(--muted)}
.bits b{color:var(--fg);font-weight:500}
.clock{margin-top:var(--s2);font:500 .72rem/1.5 var(--ui);letter-spacing:.14em;
  text-transform:uppercase;color:var(--faint)}
.clock b{color:var(--gold);font-weight:500}

/* ---------- the rule ---------------------------------------------------- */
#rulecard{margin-top:var(--s5)}
.rulegrid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--s3);
  margin:var(--s2) 0 var(--s3)}
@media (max-width:560px){.rulegrid{grid-template-columns:1fr;gap:var(--s2)}}
.rr{border-top:1px solid var(--hair-soft);padding-top:var(--s2)}
.rr b{display:block;font-family:var(--display);font-weight:300;font-size:1.9rem;
  color:var(--gold);line-height:1.1}
.rr span{display:block;margin-top:4px;font-size:.78rem;color:var(--muted)}
.note{margin:0;font-size:.88rem;color:var(--muted);line-height:1.62}

.past{list-style:none;margin:var(--s2) 0 0;padding:0}
.past li{display:flex;justify-content:space-between;gap:var(--s2);align-items:baseline;
  padding:11px 0;border-bottom:1px solid var(--hair-soft);font-size:.9rem}
.past li:last-child{border-bottom:0}
.past .who{color:var(--fg)}
.past .amt{color:var(--gold);font-family:var(--display);font-size:1.15rem}
.past .mo{color:var(--faint);font-size:.74rem;letter-spacing:.14em;text-transform:uppercase}

/* a projector, a cheap laptop, or somebody who asked for less movement */
@media (prefers-reduced-motion:reduce){
  #motes{display:none}
  .vedge{animation:none;stroke-dashoffset:0}
  .vstar{animation:none;opacity:.9}
  .rfg{transition:none}
  .chip{animation:none;display:none}
}

/* the three shares -------------------------------------------------------
   Percentages rather than amounts, because the prize moves and a printed
   figure would be wrong the first time it is raised. */
.splitrow{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--s3);
  margin:var(--s3) 0 var(--s3)}
@media (max-width:560px){.splitrow{grid-template-columns:1fr;gap:var(--s1)}}
.splitrow div{display:flex;align-items:baseline;gap:10px;
  border-top:1px solid var(--hair-soft);padding-top:11px}
.splitrow b{font-family:var(--display);font-weight:500;font-size:1.05rem;
  letter-spacing:.14em;color:var(--gold)}
.splitrow span{flex:1;font-size:.78rem;color:var(--muted)}
.splitrow i{font-style:normal;font-family:var(--display);font-size:1.25rem;color:var(--fg)}
.splitrow em{font-style:normal;font-size:.78rem;color:var(--muted);
  font-variant-numeric:tabular-nums;margin-inline-start:8px;white-space:nowrap}
