/* /tryout, "The Tryout" (Wave 65, Nov 20). Hand-written; loaded only by tryout.html (made by build/tryout.py).
   Applicant No. 41's 1987 tryout sheet on a clipboard, drawn in CSS: the paper is a size container, so its type
   scales with the sheet (cqi) between readable floors and the canvas picture's own sizes. The typed fields are
   system Courier New, like a 1987 typewriter; everything else is the site's own fonts. The only motion is the
   office's stamp landing, and only when motion is welcome. */
.tryout{padding:40px 16px 84px;border-bottom:6px solid #000;background:repeating-linear-gradient(-45deg,var(--navy) 0 26px,var(--navy2) 26px 52px)}
.to-grid{max-width:1200px;margin:0 auto;display:grid;grid-template-columns:minmax(0,.82fr) minmax(0,1.18fr);gap:36px 56px;align-items:start}
@media (max-width:900px){.to-grid{grid-template-columns:minmax(0,1fr)}.to-left{max-width:640px;margin:0 auto;width:100%}}
.to-left .kicker{transform:rotate(-2deg)}
.to-h{margin:18px 0 0;font-family:'Luckiest Guy','Luckiest Guy fb',cursive;font-weight:400;font-size:clamp(56px,9vw,108px);line-height:.95;letter-spacing:1px;color:var(--yellow);-webkit-text-stroke:2px #000;text-shadow:6px 6px 0 #000,10px 10px 0 var(--pink);transform:rotate(-2deg);transform-origin:left}
.to-invite p{margin:18px 0 0;font-size:19px;line-height:1.5;font-weight:600;max-width:34em}
.to-invite p:last-child{color:var(--yellow)}
.to-ask{margin-top:28px;background:#fff;color:#000;border:5px solid #000;box-shadow:10px 10px 0 var(--pink);padding:20px 20px 22px}
.to-label{display:block;font-family:'Bungee','Bungee fb',sans-serif;font-size:14px;letter-spacing:1.5px}
.to-row{display:flex;flex-wrap:wrap;gap:14px;margin-top:10px}
.to-row input{flex:1 1 170px;min-width:0;font-family:'Archivo','Archivo fb',sans-serif;font-size:22px;font-weight:700;padding:11px 14px;border:4px solid #000;border-radius:0;background:#FFFDF2;color:#000}
.to-row input::placeholder{color:#8a8a8a;font-weight:600}
.to-row input[aria-invalid="true"]{border-color:var(--red)}
.to-row .btn{flex:0 0 auto}
.to-msg{margin:14px 0 0;padding:10px 12px;background:#FFF0F5;border-left:6px solid var(--red);font-weight:700;line-height:1.4}
.to-msg[hidden]{display:none}
.to-nojs{margin:26px 0 0;background:#000;border:3px solid var(--yellow);padding:14px 18px;font-weight:700;line-height:1.45}

/* the clipboard */
.to-board{position:relative;max-width:640px;margin:18px auto 0;padding:46px 22px 22px;border:5px solid #000;border-radius:22px;box-shadow:12px 12px 0 #000;
  background:repeating-linear-gradient(176deg,rgba(0,0,0,.08) 0 2px,transparent 2px 17px),linear-gradient(180deg,#8a5a32,#6b4426 55%,#7a4e2a)}
.to-clip{position:absolute;z-index:2;left:50%;top:-16px;width:36%;min-width:118px;height:58px;transform:translateX(-50%);border:4px solid #000;border-radius:16px;
  background:linear-gradient(180deg,#fff,#c9d0d7 35%,#7d8791 62%,#dfe4e8);box-shadow:4px 4px 0 rgba(0,0,0,.45)}
.to-clip::after{content:"";position:absolute;left:24%;right:24%;top:9px;height:15px;border:3px solid #000;border-radius:10px;background:#4a525b}
@media (max-width:480px){.to-board{padding:40px 10px 12px;border-radius:16px;box-shadow:7px 7px 0 #000}}

/* the paper */
.to-sheet{container-type:inline-size;position:relative;color:#111;box-shadow:4px 6px 0 rgba(0,0,0,.35);
  background:linear-gradient(90deg,transparent 4.6%,rgba(228,0,43,.4) 4.6% calc(4.6% + 2px),transparent calc(4.6% + 2px)),#FFFDF2}
.to-in{padding:22px 5.5% 0 9%}
.to-head{text-align:center;margin-left:-3.5%}
.to-head p{margin:0}
.to-logo{font-family:'Luckiest Guy','Luckiest Guy fb',cursive;font-size:clamp(42px,9.4cqi,84px);line-height:1.05;letter-spacing:.02em;color:var(--yellow);-webkit-text-stroke:2px #000;text-shadow:4px 4px 0 var(--pink)}
.to-league{margin-top:.35em!important;font-family:'Bungee','Bungee fb',sans-serif;font-size:clamp(8.5px,2.3cqi,21px);letter-spacing:.02em}
.to-form{margin:.55em -4% 0!important;padding:.28em .3em;background:#000;color:var(--yellow);font-family:'Bungee','Bungee fb',sans-serif;font-size:clamp(15px,3.7cqi,33px);letter-spacing:.02em}
.to-office{margin-top:.7em!important;font-family:'Bungee','Bungee fb',sans-serif;font-size:clamp(8.5px,1.8cqi,16px);line-height:1.5}
.to-top{display:grid;grid-template-columns:minmax(0,.88fr) minmax(0,1.3fr);gap:5cqi;align-items:start;margin-top:5cqi}
.to-pola{margin:0;padding:6% 6% 0;background:#fff;border:2px solid #000;box-shadow:4px 4px 0 rgba(0,0,0,.3);transform:rotate(-3deg)}
.to-sil{display:block;width:100%;height:auto;aspect-ratio:1;border:2px solid #000}
.to-sky{fill:var(--navy)}
.to-burst{fill:var(--yellow)}
[data-side="villain"] .to-burst{fill:var(--red)}
[data-side="fan"] .to-burst{fill:var(--cyan)}
.to-pola figcaption{min-height:1.5em;padding:.12em 0 .18em;font-family:'Permanent Marker','Permanent Marker fb',cursive;font-size:clamp(16px,3.8cqi,34px);line-height:1.35;color:#1B2A8C;text-align:center;overflow-wrap:anywhere}
.to-lbl,.to-fields dt{margin:0;font-family:'Bungee','Bungee fb',sans-serif;font-size:clamp(10px,1.9cqi,17px);letter-spacing:.04em;color:#B0005A}
.to-ring{text-transform:uppercase;margin:.12em 0 .5em;min-height:2.08em;font-family:'Luckiest Guy','Luckiest Guy fb',cursive;font-size:clamp(24px,6.4cqi,64px);line-height:1.04;color:var(--pink);-webkit-text-stroke:1.5px #000;overflow-wrap:anywhere}
.to-side{margin:.35em 0 0;display:flex;flex-wrap:wrap;gap:.35em 1em;font-family:'Courier New',Courier,monospace;font-weight:700;font-size:clamp(14px,2.6cqi,25px)}
.to-o{display:inline-flex;align-items:center;gap:.4em;white-space:nowrap}
.to-box{position:relative;flex:0 0 auto;width:1.05em;height:1.05em;border:2px solid #111}
[data-side="villain"] .to-box-v::after,[data-side="fan"] .to-box-f::after{content:"";position:absolute;inset:-28%;
  background:linear-gradient(45deg,transparent 44%,#C8102E 44% 57%,transparent 57%),linear-gradient(-45deg,transparent 44%,#C8102E 44% 57%,transparent 57%)}
.to-fields{margin:3cqi 0 0}
.to-fields dt{margin-top:3.2cqi}
.to-fields dd{margin:.15em 0 0;min-height:1.3em;padding-bottom:.12em;border-bottom:1.5px solid rgba(120,170,205,.65);font-family:'Courier New',Courier,monospace;font-weight:700;font-size:clamp(16px,3.2cqi,30px);line-height:1.3}
.to-fields dd:nth-of-type(2){font-style:italic}
.to-fields .to-note{font-weight:400;font-size:clamp(15px,2.65cqi,24px);min-height:2.6em}
.to-fields .to-says{border-bottom:0;font-weight:400;font-size:clamp(15px,2.55cqi,23px);min-height:4em}
.to-stamp{display:table;margin:.35em 0 .55em 6%;padding:.22em .55em;font-family:'Bungee','Bungee fb',sans-serif;font-weight:400;font-style:normal;font-size:clamp(19px,5.4cqi,48px);line-height:1.08;letter-spacing:.02em;text-align:center;
  color:#C8102E;border:.13em solid currentColor;box-shadow:inset 0 0 0 .1em #FFFDF2,inset 0 0 0 .16em #C8102E;transform:rotate(-5deg);mix-blend-mode:multiply;opacity:.9}
.to-stamp:empty{display:none}
.to-line{display:block}
.to-sign{list-style:none;margin:5cqi 0 0;padding:0;display:flex;flex-wrap:wrap;gap:.25em 1.4em;font-family:'Archivo','Archivo fb',sans-serif;font-weight:700;font-size:clamp(11px,1.85cqi,17px)}
.to-fine{margin:.7em 0 0;font-family:'Archivo','Archivo fb',sans-serif;font-size:clamp(10px,1.45cqi,13px);line-height:1.4;color:#444}
.to-foot{margin:4cqi 0 0;padding:.38em .3em;background:#000;color:var(--yellow);font-family:'Bungee','Bungee fb',sans-serif;font-size:clamp(14px,3.1cqi,28px);text-align:center;letter-spacing:.02em}
@media (prefers-reduced-motion:no-preference){
  .to-sheet.is-done .to-stamp{animation:to-thunk .45s cubic-bezier(.2,1.5,.45,1) .12s both}
}
@keyframes to-thunk{from{opacity:0;transform:rotate(-5deg) scale(2.3)}to{opacity:.9;transform:rotate(-5deg) scale(1)}}

/* the buttons under the clipboard */
.to-acts{display:flex;flex-wrap:wrap;justify-content:center;gap:16px 18px;max-width:640px;margin:30px auto 0}
.to-acts[hidden]{display:none}
@media (max-width:480px){.to-acts .btn{flex:1 1 100%;text-align:center}}

/* ---------- Wave 85: typing your name within five seconds ----------
   The name box sits right under the title (the invitation follows it), so a phone opens on it in the top half of the
   first screen. After TRY OUT the typed-up sheet scrolls into view whole under the sticky header (tryout.js; the
   clipboard zooms down a little where the screen is short), and the stamp lands inside the paper, never past the
   screen's edge. SHOW A FRIEND always answers: the share sheet, a word on the button, or the link in a box */
.to-sheet{overflow:hidden}
.to-left .to-ask{margin-top:30px}
.to-invite{margin-top:8px}
.to-acts .btn.is-done{background:var(--yellow);color:#000}
.to-link{flex:1 1 100%;min-width:0;max-width:100%;height:48px;margin:0;padding:0 12px;border:3px solid #000;border-radius:0;background:#FFFDF2;color:#000;
  font-family:'Courier New',Courier,monospace;font-weight:700;font-size:16px}
.to-link[hidden]{display:none}
@media (max-width:700px){
  .tryout{padding-top:16px}
  .to-left .kicker{font-size:12px;letter-spacing:2px;padding:6px 12px}
  .to-h{margin-top:12px;font-size:clamp(46px,14vw,60px);text-shadow:4px 4px 0 #000,7px 7px 0 var(--pink)}
  .to-left .to-ask{margin-top:18px;padding:12px 12px 14px;border-width:4px;box-shadow:7px 7px 0 var(--pink)}
  .to-label{font-size:12.5px;letter-spacing:1px}
  .to-row{flex-wrap:nowrap;gap:10px;margin-top:8px}
  .to-row input{flex:1 1 auto;width:0;min-width:0;height:50px;padding:0 10px;font-size:20px;border-width:3px}
  .to-row .btn{height:50px;padding:0 13px;font-size:15px;line-height:1;letter-spacing:1px;border-width:3px;box-shadow:4px 4px 0 #000;white-space:nowrap}
  .to-invite p{margin-top:14px;font-size:17px}
  /* the paper a touch tighter, so most sheets fit a phone's screen whole */
  .to-in{padding-top:16px}
  .to-top{margin-top:3.5cqi}
  .to-fields dt{margin-top:2.4cqi}
  .to-sign{margin-top:3.5cqi}
  .to-foot{margin-top:3cqi}
}

/* ---------- Wave 112 (Nov 22): what next ----------
   Once a sheet is made, three doors follow the buttons (build/tryout.py NEXT): the forty, the Hotline and the arcade.
   Each is a slip of the sheet's own paper under a torn-off line, in the site's door colors. Without JavaScript they
   follow the example sheet */
.to-next{display:flex;flex-wrap:wrap;justify-content:center;gap:16px 18px;max-width:640px;margin:30px auto 0;padding-top:26px;border-top:3px dashed rgba(255,255,255,.55)}
.to-next[hidden]{display:none}
.to-door{flex:1 1 170px;display:flex;align-items:center;justify-content:center;min-height:56px;padding:10px 14px;background:#FFFDF2;color:#000;border:3px solid #000;box-shadow:5px 5px 0 var(--c,#000);
  font-family:'Bungee','Bungee fb',sans-serif;font-size:15px;line-height:1.25;letter-spacing:1px;text-align:center;text-decoration:none;transition:transform .08s,box-shadow .08s}
.to-door:hover{color:#000;transform:translate(-2px,-2px);box-shadow:7px 7px 0 var(--c,#000)}
.to-n-40{--c:var(--yellow)}.to-n-hl{--c:var(--cyan)}
@media (max-width:480px){.to-next{gap:14px;padding-top:22px}.to-door{flex:1 1 100%;min-height:52px;font-size:14px}}
@media (prefers-reduced-motion:reduce){.to-door{transition:none}}

/* ---------- Wave 140 (Nov 23): NOW GET IN THE RING ----------
   The fifteenth cold review: "hand off at the moment of delight". Under the stamp, the last line of THE OFFICE SAYS, once
   the office has stamped a verdict (build/tryout.py RING, #toRing): the arcade, in a new tab, in the stamp's red on the
   paper, in the stamp's own face. It comes in just after the stamp lands. 49 px tall, so a phone's sheet (zoomed to .9 at the
   least) still gives it 44 px. */
.to-ring-go{display:table;margin:.55em 0 0 6%;padding:.45em .75em .4em;min-height:49px;box-sizing:border-box;background:#C8102E;color:#fff;border:2px solid #000;box-shadow:3px 3px 0 #000;
  font-family:'Bungee','Bungee fb',sans-serif;font-weight:400;font-style:normal;font-size:clamp(13px,2.4cqi,20px);line-height:1.35;letter-spacing:.03em;text-decoration:none;
  -webkit-tap-highlight-color:transparent;touch-action:manipulation}
.to-ring-go[hidden]{display:none}
.to-ring-go:hover{background:#E4002B;color:#fff}
.to-ring-go:active{transform:translate(2px,2px);box-shadow:1px 1px 0 #000}
.to-ring-go:focus-visible{outline:3px solid var(--yellow);outline-offset:3px}
@media (prefers-reduced-motion:no-preference){
  .to-sheet.is-done .to-ring-go{animation:to-ring-in .3s ease-out .6s both}
}
@keyframes to-ring-in{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
