@font-face {
  font-family: Nunito;
  src: url("assets/nunito-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 1000;
  font-display: swap;
}
@font-face {
  font-family: Caveat;
  src: url("assets/caveat-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}
:root {
  color-scheme: light;
  --stage: #ededed;
  --ink: #141412;
  --focus: #2355a8;
  --display: Nunito, ui-rounded, "Arial Rounded MT Bold", system-ui, sans-serif;
  font-family: var(--display);
  color: var(--ink);
  background: var(--stage);
}
* { box-sizing: border-box; }
body { margin: 0; }
button { color: inherit; font: inherit; cursor: pointer; }
button, .choice { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button:focus-visible, .choice input:focus-visible + .choice-face {
  outline: 3px solid var(--focus);
  outline-offset: 5px;
}
.workshop {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100vh;
  min-height: 100svh;
}
.dials { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: clamp(16px, 3.5vh, 34px) clamp(19px, 5.2vw, 84px) 0;
}
.wordmark { font-size: clamp(22px, 2.2vw, 34px); font-weight: 900; letter-spacing: -.065em; line-height: 1.1; }
.pill {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: .55em;
  min-height: 46px;
  border-radius: 999px;
  font-weight: 850;
  line-height: 1.15;
  transition: background .15s, transform .15s, box-shadow .15s;
}
.help-button { padding: 0 18px 0 14px; font-size: 15px; border: 1px solid #e2e1df; background: #fff; }
.question { display: grid; place-items: center; width: 20px; height: 20px; border: 1.8px solid; border-radius: 50%; font-weight: 950; font-size: 14px; }
.playroom { align-self: center; width: min(100%, 680px); margin: 0 auto; padding: 16px 14px 18px; text-align: center; }
.stage {
  --toy: clamp(170px, 27svh, 256px);
  position: relative;
  height: calc(var(--toy) + 24px);
  width: min(100%, 540px);
  margin: 0 auto clamp(13px, 2.3svh, 24px);
}
.puppet {
  position: absolute;
  bottom: 4px;
  left: 50%;
  width: var(--toy);
  height: var(--toy);
  margin-left: calc(var(--toy) / -2);
  border: 0;
  padding: 0;
  border-radius: 35%;
  background: transparent;
  overflow: visible;
}
.flight { display: block; width: 100%; height: 100%; transform-origin: 50% 95%; }
.chick { display: block; width: 100%; height: 100%; object-fit: contain; pointer-events: none; user-select: none; transform-origin: 50% 95%; }
.ground {
  position: absolute;
  width: calc(var(--toy) * .65);
  height: calc(var(--toy) * .07);
  left: 50%;
  bottom: 0;
  margin-left: calc(var(--toy) * -.325);
  border-radius: 50%;
  background: radial-gradient(ellipse, #5e52464d 0%, #655b5025 45%, #776a5f00 72%);
}
.pencil-note, .response { position: absolute; pointer-events: none; font: 600 clamp(21px, 2.35vw, 32px)/1 Caveat, cursive; }
.pencil-note { left: calc(50% + var(--toy) * .45); bottom: 25%; white-space: nowrap; color: #55544e; transform: rotate(-9deg); }
.pencil-note svg { position: absolute; width: 51px; height: 32px; left: -24px; top: 95%; stroke: currentColor; stroke-linecap: round; stroke-width: 2.6; transform: rotate(5deg); }
.response { display: none; left: 50%; top: 2%; transform: translateX(-50%); padding: 3px 12px 5px; white-space: nowrap; border: 2px solid var(--ink); border-radius: 13px; background: #fff4ae; }
.response.show { display: block; }
h1, h2 { font-family: var(--display); font-weight: 950; }
h1 { font-size: clamp(48px, min(6.2vw, 9.2svh), 86px); line-height: .96; letter-spacing: -.055em; margin: 0; }
.name { position: relative; white-space: nowrap; }
.name svg { position: absolute; width: 101%; height: .13em; left: 0; bottom: .015em; z-index: -1; overflow: visible; }
.name path { fill: none; stroke: #ed8e26; stroke-width: 4.5; stroke-linecap: round; }
.launch { min-height: 54px; padding: 12px 26px; border: 2px solid var(--ink); background: var(--ink); color: #fff; box-shadow: 0 3px 0 #050504; font-size: 18px; margin-top: clamp(20px, 3svh, 30px); letter-spacing: -.025em; }
.spring { width: 24px; height: 24px; color: #ffd35a; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2.1; }
.selector {
  display: grid;
  width: fit-content;
  max-width: calc(100% - 24px);
  min-inline-size: 0;
  margin: 0 auto clamp(20px, 4.7svh, 54px);
  padding: 0;
  border: 0;
}
.selector legend { margin: 0 auto 7px; text-align: center; padding: 0; font: 600 23px/1.1 Caveat, cursive; color: #484740; }
.choices { display: flex; align-items: stretch; padding: 4px; background: #dededb; border: 1px solid #d2d2ce; border-radius: 22px; }
.choice { position: relative; flex: 1 0 auto; cursor: pointer; }
.choice input, .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.choice-face { display: flex; gap: 6px; align-items: center; justify-content: center; padding: 5px 14px; min-height: 44px; border: 1px solid transparent; border-radius: 17px; font-size: 14px; font-weight: 850; }
.choice-face svg { height: 22px; width: 31px; flex: none; overflow: visible; }
.choice-face path { stroke: currentColor; stroke-width: 2.3; stroke-linecap: round; }
.choice-face circle { fill: currentColor; }
.choice input:checked + .choice-face { background: var(--ink); color: white; }
.choice input:checked + .choice-face circle { fill: #ffd35a; }
dialog { padding: 0; width: min(calc(100% - 36px), 370px); max-height: calc(100svh - 32px); border: 0; border-radius: 28px; color: var(--ink); background: #fff; box-shadow: 0 16px 65px #14141230; }
dialog::backdrop { background: #23232360; }
.help-sheet { padding: 30px; }
.help-sheet h2 { font-size: 34px; letter-spacing: -.055em; line-height: 1; margin: 0 0 16px; }
.help-sheet p { font-size: 18px; line-height: 1.45; margin: 0; }
.help-sheet .launch { font-size: 16px; min-height: 46px; }
@media (hover: hover) {
  .help-button:hover, .choice input:not(:checked) + .choice-face:hover { background: #fafafa; }
  .launch:hover { background: #292925; transform: translateY(-1px); }
  .puppet:hover .chick { rotate: -2deg; }
  .chick { transition: rotate .2s ease-out; }
}
.pill:active { transform: translateY(2px) scale(.98); box-shadow: none; }
@media (max-width: 680px) {
  .workshop { grid-template-rows: minmax(68px, 1fr) auto minmax(106px, 1fr); }
  .topbar { align-self: start; padding-top: 16px; }
  .help-button { font-size: 13px; gap: 6px; padding: 0 12px; }
  .playroom { padding: 10px 8px 12px; }
  .stage { --toy: clamp(145px, min(44vw, 25svh), 220px); height: calc(var(--toy) + 50px); margin-bottom: 14px; }
  .puppet { bottom: 31px; }
  .ground { bottom: 27px; }
  .pencil-note { bottom: 1px; left: 50%; font-size: 22px; transform: translateX(-50%) rotate(-4deg); }
  .pencil-note svg { display: none; }
  h1 { font-size: clamp(47px, 10.7vw, 68px); }
  .choice-face { display: grid; justify-items: center; align-content: center; gap: 1px; min-height: 58px; padding: 4px 9px; font-size: 12px; }
  .choices { border-radius: 20px; }
  .choice { flex: 1 1 0; }
  .selector { align-self: start; width: min(344px, calc(100% - 26px)); margin-top: clamp(6px, 2svh, 18px); margin-bottom: max(14px, env(safe-area-inset-bottom)); }
}
@media (max-height: 660px) and (min-width: 681px) {
  .stage { --toy: 160px; height: 178px; }
  .playroom { padding-top: 27px; }
}
@media (max-width: 680px) and (max-height: 705px) {
  .workshop { grid-template-rows: auto 1fr auto; }
  .playroom { padding-block: 4px 10px; }
  .selector { margin-top: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
  .puppet:hover .chick { rotate: none; }
  .pill:active, .launch:hover { transform: none; }
}
