/* THE WOODSHED'S SHOW (js/woodshed-show.js): every word Barlow Condensed in the ink outline, no box behind any of it. A state reads by lightness, size
   and shape, never by hue alone (the owner is colour-blind). */
:root{--show-ink:#11141c;--show-gold:#ffd800;--show-cream:#fff8dc}
.ws-show-word,.ws-streak b,.ws-streak small,.ws-gain,.ws-medal figcaption b,.ws-medal figcaption i,.ws-report__score,.ws-report__sub,.ws-report__xp,.ws-promo p{paint-order:stroke fill;font-family:var(--face);text-transform:uppercase}

/* WHILE YOU SING: over the roll, never in the way of a press */
.ws-live{position:absolute;inset:0;z-index:3;pointer-events:none;overflow:hidden}
.ws-live[hidden]{display:none}
#stage::after{content:'';position:absolute;inset:0;z-index:2;pointer-events:none;opacity:0;transition:opacity .25s;box-shadow:inset 0 0 0 2px #fff,inset 0 0 26px 2px #fff8dc99}
#stage[data-hot="1"]::after{opacity:1}
#stage[data-hot="2"]::after{opacity:1;box-shadow:inset 0 0 0 5px #fff,inset 0 0 60px 10px #fff3a8}

/* the streak: the top left of the roll, the number growing as it does */
.ws-streak{position:absolute;left:12px;top:42px;display:flex;align-items:baseline;gap:6px;transform-origin:0 70%;animation:ws-streak-kick .24s ease-out}
.ws-streak[hidden]{display:none}
.ws-streak b{font-style:italic;font-weight:900;font-size:44px;line-height:1;color:#fff;-webkit-text-stroke:7px var(--show-ink)}
.ws-streak small{font-weight:800;font-size:15px;line-height:1;letter-spacing:.06em;color:#fff;-webkit-text-stroke:4px var(--show-ink)}
.ws-streak[data-state=hot] b{font-size:58px;color:var(--show-gold)}
.ws-streak[data-state=fire] b{font-size:76px;color:var(--show-gold);-webkit-text-stroke:9px var(--show-ink)}
.ws-streak[data-state=broke]{animation:ws-streak-broke .7s ease-in forwards}
.ws-streak[data-state=broke] b{color:#6d7880}
.ws-streak[data-state=broke] small{display:none}
@keyframes ws-streak-kick{0%{transform:scale(1.5)}100%{transform:none}}
@keyframes ws-streak-broke{0%{transform:scale(1.25) rotate(-6deg)}20%{transform:translateX(-6px) rotate(4deg)}40%{transform:translateX(5px) rotate(-3deg)}100%{transform:translateY(36px) rotate(10deg);opacity:0}}

/* a note's +XP: rises out of the middle */
.ws-gains{position:absolute;left:50%;top:58%;width:0;height:0}
.ws-gain{position:absolute;left:0;top:0;transform:translateX(-50%);font-style:italic;font-weight:900;font-size:30px;line-height:1;color:var(--show-gold);-webkit-text-stroke:6px var(--show-ink);white-space:nowrap;animation:ws-gain .8s ease-out forwards}
@keyframes ws-gain{0%{opacity:0;transform:translate(-50%,0) scale(.5)}14%{opacity:1;transform:translate(-50%,-8px) scale(1.3)}34%{transform:translate(-50%,-14px) scale(1)}100%{opacity:0;transform:translate(-50%,-64px) scale(.95)}}

/* a medal's splash: high in the middle, where MW2 stands a challenge */
.ws-splash{position:absolute;left:0;right:0;top:6%;display:flex;justify-content:center}
.ws-medal{margin:0;display:flex;flex-direction:column;align-items:center;gap:2px;animation:ws-medal 1.75s ease-out forwards;filter:drop-shadow(2px 3px 0 #000)}
.ws-medal figcaption{display:flex;align-items:baseline;gap:9px;white-space:nowrap}
.ws-medal figcaption b{font-style:italic;font-weight:900;font-size:34px;line-height:1;color:#fff;-webkit-text-stroke:7px var(--show-ink)}
.ws-medal figcaption i{font-weight:900;font-size:28px;line-height:1;color:var(--show-gold);-webkit-text-stroke:6px var(--show-ink)}
@keyframes ws-medal{0%{opacity:0;transform:scale(2.2)}12%{opacity:1;transform:scale(.92)}20%{transform:scale(1)}82%{opacity:1;transform:none}100%{opacity:0;transform:translateY(-14px)}}

/* THE REPORT: over the whole screen until it has been seen */
.ws-report{position:fixed;inset:0;z-index:14;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:clamp(10px,3.4vh,34px);padding:16px;box-sizing:border-box;background:#071421f2;cursor:pointer;touch-action:manipulation;user-select:none;-webkit-user-select:none;animation:ws-report-in .18s ease-out}
.ws-report[hidden]{display:none}
@keyframes ws-report-in{0%{opacity:0}100%{opacity:1}}
.ws-report__head{display:flex;flex-direction:column;align-items:center;gap:2px}
.ws-report__score{font-style:italic;font-weight:900;font-size:clamp(84px,min(26vw,24vh),170px);line-height:.92;color:#fff;-webkit-text-stroke:clamp(8px,1.4vh,14px) var(--show-ink);animation:ws-slam .32s cubic-bezier(.2,1.4,.4,1)}
.ws-report__sub{margin:0;font-weight:800;font-size:clamp(17px,min(5vw,4vh),30px);line-height:1.1;letter-spacing:.05em;color:#fff;-webkit-text-stroke:5px var(--show-ink);animation:ws-rise .5s ease-out}
@keyframes ws-slam{0%{transform:scale(3.4);opacity:0}70%{transform:scale(.94);opacity:1}100%{transform:none}}
@keyframes ws-rise{0%{opacity:0;transform:translateY(12px)}100%{opacity:1;transform:none}}
.ws-report .reward-tally{min-height:clamp(120px,27vh,230px);align-content:start;width:100%;font-family:var(--face)}
.ws-report .reward-tally[hidden]{display:grid;visibility:hidden}
.ws-report .reward-tally .tally-string{flex-wrap:wrap;max-width:min(94vw,760px);min-height:58px}
.ws-report .reward-tally .tally-string svg{width:clamp(38px,min(10vw,8vh),54px);height:auto;display:block;filter:drop-shadow(1px 2px 0 #000)}
.ws-report .reward-tally .tally-line{font-size:clamp(26px,min(8vw,5.4vh),46px);font-family:var(--face);font-style:italic;-webkit-text-stroke:.2em var(--show-ink)}
.ws-report .reward-tally .tally-score{font-family:var(--face);font-style:italic;font-size:clamp(50px,min(15vw,12vh),104px);align-items:baseline;gap:.14em}
.ws-report__xp{font-size:.42em;font-style:italic;font-weight:900;color:#fff;-webkit-text-stroke:.16em var(--show-ink)}
.ws-report .reward-tally .tally-best{display:none}
.reward-sr{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.ws-report__sub b{margin-left:.5em;font-style:italic;font-weight:900;color:var(--show-gold)}
.ws-report__sub b[hidden]{display:none}
.ws-report .reward-tally .tally-coins{display:none}
.ws-report__bar{width:min(92vw,720px);min-height:64px}
.ws-report__bar .reward-xp{width:100%;margin:0;padding:0}
@media(max-height:500px){
  .ws-report{gap:4px;padding:6px 16px}
  .ws-report__head{flex-direction:row;align-items:baseline;gap:14px}
  .ws-report__score{font-size:64px;-webkit-text-stroke:7px var(--show-ink)}
  .ws-report .reward-tally{min-height:136px}
  .ws-report .reward-tally .tally-string{min-height:40px}
  .ws-report .reward-tally .tally-string svg{width:34px}
  .ws-report .reward-tally .tally-score{font-size:52px}
  .ws-splash{top:6%}
  .ws-medal svg{width:46px;height:46px}
  .ws-medal figcaption b{font-size:24px;-webkit-text-stroke:5px var(--show-ink)}
  .ws-medal figcaption i{font-size:21px;-webkit-text-stroke:5px var(--show-ink)}
  .ws-streak{top:30px}
  .ws-streak b{font-size:32px}.ws-streak[data-state=hot] b{font-size:40px}.ws-streak[data-state=fire] b{font-size:50px}
}

/* PROMOTED: the screen is its. The back (the dark, the rays, the ring) under the XP bar's confetti (z-index 16), the emblem and its words over it */
.ws-promo-back{position:fixed;inset:-14px;z-index:15;overflow:hidden;background:#04101a;pointer-events:none;animation:ws-shake .46s linear}
.ws-promo-back[hidden]{display:none}
.ws-promo{position:fixed;inset:0;z-index:17;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:clamp(2px,1vh,10px);overflow:hidden;cursor:pointer;touch-action:manipulation;user-select:none;-webkit-user-select:none;text-align:center;animation:ws-shake .46s linear}
.ws-promo[hidden]{display:none}
.ws-promo__rays{position:absolute;left:calc(var(--cx,50%) + 14px);top:calc(var(--cy,40%) + 14px);width:210vmax;height:210vmax;margin:-105vmax 0 0 -105vmax;background:repeating-conic-gradient(#ffd80000 0,#ffd80080 .35deg 8.65deg,#ffd80000 9deg 24deg);-webkit-mask-image:radial-gradient(closest-side,#000 8%,#0000 62%);mask-image:radial-gradient(closest-side,#000 8%,#0000 62%);animation:ws-rays 14s linear infinite}
.ws-promo__ring{position:absolute;left:calc(var(--cx,50%) + 14px);top:calc(var(--cy,40%) + 14px);width:60vmin;height:60vmin;margin:-30vmin 0 0 -30vmin;border-radius:50%;border:14px solid #fff;opacity:0;animation:ws-ring .7s ease-out .05s}
.ws-promo__emblem{position:relative;width:clamp(150px,min(52vw,40vh),340px);height:clamp(150px,min(52vw,40vh),340px);display:flex;align-items:center;justify-content:center;filter:drop-shadow(0 0 26px #ffd800) drop-shadow(3px 5px 0 #000);animation:ws-emblem .42s cubic-bezier(.2,1.5,.4,1)}
.ws-promo__emblem svg{width:100%;height:100%;display:block}
.ws-promo p{position:relative;margin:0;font-style:italic;font-weight:900;white-space:nowrap}
.ws-promo__word{font-size:clamp(50px,min(19vw,14vh),150px);line-height:.95;color:#fff;-webkit-text-stroke:clamp(8px,1.4vh,15px) var(--show-ink);animation:ws-word .34s cubic-bezier(.2,1.5,.4,1) .12s backwards}
.ws-promo__name{font-size:clamp(26px,min(9vw,7vh),74px);line-height:1;color:var(--show-gold);-webkit-text-stroke:clamp(5px,1vh,10px) var(--show-ink);animation:ws-rise .36s ease-out .3s backwards}
.ws-promo__sub{font-size:clamp(17px,min(5vw,4vh),32px);line-height:1.1;font-style:normal!important;font-weight:800!important;letter-spacing:.05em;color:#fff;-webkit-text-stroke:5px var(--show-ink);animation:ws-rise .36s ease-out .6s backwards}
.ws-promo-back[data-down="1"] .ws-promo__rays{display:none}
.ws-promo[data-down="1"] .ws-promo__emblem{filter:grayscale(1) drop-shadow(3px 5px 0 #000)}
.ws-promo[data-down="1"] .ws-promo__name{color:#fff}
.ws-promo[data-still="1"],.ws-promo[data-still="1"] *,.ws-promo-back[data-still="1"],.ws-promo-back[data-still="1"] *{animation:none!important}
.ws-promo-back[data-still="1"] .ws-promo__ring{display:none}
@keyframes ws-emblem{0%{transform:scale(4) rotate(-14deg);opacity:0}60%{transform:scale(.9) rotate(2deg);opacity:1}100%{transform:none}}
@keyframes ws-word{0%{transform:scale(2.6);opacity:0}70%{transform:scale(.95);opacity:1}100%{transform:none}}
@keyframes ws-ring{0%{transform:scale(.2);opacity:1}100%{transform:scale(2.6);opacity:0}}
@keyframes ws-rays{to{transform:rotate(360deg)}}
@keyframes ws-shake{0%,100%{transform:none}12%{transform:translate(-10px,7px)}26%{transform:translate(9px,-8px)}42%{transform:translate(-7px,-5px)}58%{transform:translate(6px,5px)}76%{transform:translate(-3px,2px)}}
@media(max-height:500px){
  .ws-promo{flex-direction:row;flex-wrap:wrap;align-content:center;column-gap:18px}
  .ws-promo__emblem{width:130px;height:130px}
  .ws-promo__word{font-size:68px}
  .ws-promo__name,.ws-promo__sub{flex-basis:100%}
  .ws-promo__name{font-size:34px}.ws-promo__sub{font-size:18px}
}

/* the medal case in the Barracks: the medals in a grid that fits, no boxes */
.ws-case{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(4px,1.4vh,14px) 6px;width:min(620px,100%);align-self:flex-start}
.ws-case__m{all:unset;display:flex;flex-direction:column;align-items:center;gap:1px;cursor:pointer;text-align:center;min-width:0}
.ws-case__m svg{width:clamp(44px,min(24vw,14vh),110px);height:auto;display:block;filter:drop-shadow(1px 2px 0 #000)}
.ws-case__m b,.ws-case__m i{-webkit-text-stroke:3px var(--show-ink);paint-order:stroke fill}
.ws-case__m b{font:italic 800 clamp(14px,min(4vw,3.2vh),25px)/1.05 var(--face);color:#fff}
.ws-case__m i{font:800 clamp(14px,min(4vw,3.2vh),25px)/1 var(--face);font-style:normal;color:var(--key);min-height:1em}
.ws-case__m.none svg{filter:brightness(0) drop-shadow(0 0 1px #ffffff80);opacity:.85}
.ws-case__m.none b{color:#ffffffc0}
.ws-case__m:focus-visible b,.ws-case__m:hover b{color:var(--key)}
/* the next rank, under the bar */
.ws-nextrank{margin:2px 0 0;font:700 clamp(14px,1.5vw,18px)/1.15 var(--face);letter-spacing:.05em;text-align:right;text-transform:uppercase;color:#fff;-webkit-text-stroke:3px var(--show-ink);paint-order:stroke fill}
.ws-nextrank b{font-weight:800;color:var(--key)}
@media(prefers-reduced-motion:reduce){.ws-report,.ws-report *,.ws-live *{animation:none!important}}
