:root {
  --paper: #fbf7ee;
  --grid: #ddd3c0;
  --ink: #1c1a2b;
  --ink-2: #5b576d;
  --ink-3: #a19cb2;
  --good: #12a594;
  --bad: #ef5f4e;
  --you: #f2a71b;
  --you-text: #c97e06;
  --sticky: #fff1a8;
  --tape: rgba(236, 222, 170, 0.78);
  --display: "Caveat", "Comic Sans MS", cursive;
  --sans: "Comic Neue", "Comic Sans MS", cursive;
  --shadow: 0 2px 3px rgba(28, 26, 43, 0.08), 0 14px 34px -14px rgba(28, 26, 43, 0.35);
  --wobbly: 255px 15px 225px 15px / 15px 225px 15px 255px;
  --wobbly-2: 15px 255px 15px 225px / 225px 15px 255px 15px;
  --c0: #12a594;
  --c1: #f2a71b;
  --c2: #ef5f4e;
  --c3: #1c1a2b;
  --c4: #5b4b8a;
  --c5: #c97e06;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  min-height: 100%;
  background-color: var(--paper);
  background-image: radial-gradient(var(--grid) 1.6px, transparent 1.7px);
  background-size: 28px 28px;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 18px;
}
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
img { max-width: 100%; }
.wrap {
  width: min(920px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0 88px;
}
.hero { text-align: left; }
.hero h1 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 72px;
  line-height: 0.9;
  margin: 0 0 8px;
  rotate: -1.5deg;
  transform-origin: left center;
}
.steps {
  list-style: none;
  margin: 22px 0 6px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
}
.steps li {
  font-family: var(--display);
  font-weight: 700;
  font-size: 30px;
  line-height: 1;
}
.steps li::before {
  content: counter(step);
  counter-increment: step;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--ink-3);
  margin-right: 8px;
}
.steps { counter-reset: step; }
details {
  border-bottom: 2px solid var(--grid);
  max-width: 640px;
}
details:first-of-type { border-top: 2px solid var(--grid); margin-top: 18px; }
summary {
  cursor: pointer;
  font-family: var(--display);
  font-weight: 700;
  font-size: 26px;
  padding: 8px 0 6px;
  list-style: none;
}
summary::-webkit-details-marker { display: none; }
summary::before {
  content: "+ ";
  color: var(--ink-3);
}
details[open] summary::before { content: "– "; }
details p {
  margin: 0 0 12px;
  color: var(--ink-2);
  font-size: 17px;
  line-height: 1.35;
  max-width: 58ch;
}
.caution {
  margin: 28px 0 0;
  color: var(--ink-2);
  font-style: italic;
  font-size: 16px;
}
.kicker {
  margin: 28px 0 10px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.bezel {
  background: #14131c;
  padding: 14px;
  box-shadow: var(--shadow);
  rotate: -0.7deg;
}
.bezel img {
  display: block;
  width: 100%;
  height: auto;
}
.hero-actions {
  display: flex;
  gap: 14px;
  margin: 26px 0 8px;
}
.btn {
  font-family: var(--display);
  font-weight: 700;
  font-size: 36px;
  line-height: 1;
  padding: 8px 22px 12px;
  border: 3.5px solid var(--ink);
  border-radius: var(--wobbly);
  background: #fff;
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
}
.btn:hover { background: var(--sticky); }
.btn.go { background: var(--sticky); }
.btn:disabled { opacity: 0.55; cursor: wait; }
.btn small, .fmt {
  font-family: var(--sans);
  font-style: italic;
  font-weight: 400;
  font-size: 16px;
  color: var(--ink-2);
}
.hero-status {
  min-height: 1.2em;
  margin: 8px 0 0;
  color: var(--bad);
  font-style: italic;
}
.sheet {
  position: relative;
  background: #fff;
  margin: 34px 0 0;
  padding: 26px 22px 18px;
  box-shadow: var(--shadow);
}
.sheet::before {
  content: "";
  position: absolute;
  top: -16px;
  left: 50%;
  width: 110px;
  height: 30px;
  translate: -50% 0;
  rotate: -6deg;
  background: var(--tape);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}
.title-field {
  width: 100%;
  border: 0;
  border-bottom: 2.5px solid var(--grid);
  background: transparent;
  font-family: var(--display);
  font-size: 54px;
  font-weight: 700;
  padding: 0 0 6px;
  border-radius: 0;
}
.title-field:focus { outline: none; border-bottom-color: var(--ink); }
.teams {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
  align-items: center;
}
.team-field {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--sticky);
  padding: 6px 8px 8px 10px;
  rotate: -1.5deg;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}
.team-field:nth-child(2) { rotate: 1.6deg; background: color-mix(in srgb, var(--you) 35%, #fff); }
.swatch {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid var(--ink);
  flex: none;
}
.team-field input {
  width: 132px;
  border: 0;
  background: transparent;
  font-family: var(--display);
  font-size: 28px;
  font-weight: 700;
  padding: 0;
}
.team-field input:focus { outline: none; }
.round { margin-top: 22px; }
.round-head, .q-line, .pic-line, .round-actions, .actions {
  display: flex;
  gap: 8px;
  align-items: center;
}
.round-head input, .q-line input, .q-line textarea, .pic-line input, .note {
  width: 100%;
  border: 0;
  border-bottom: 2px solid var(--grid);
  background: transparent;
  border-radius: 0;
  padding: 8px 2px;
}
.round-head input {
  font-family: var(--display);
  font-size: 36px;
  font-weight: 700;
}
textarea {
  resize: vertical;
  min-height: 46px;
  line-height: 1.25;
}
input:focus, textarea:focus { outline: none; border-bottom-color: var(--ink); }
.seg {
  display: flex;
  flex: none;
  border: 3px solid var(--ink);
  border-radius: 999px;
  overflow: hidden;
}
.seg button {
  background: #fff;
  border: 0;
  padding: 6px 12px 8px;
  font-family: var(--display);
  font-size: 22px;
  font-weight: 700;
}
.seg button.on { background: var(--ink); color: var(--paper); }
.icon, .texty {
  flex: none;
  border: 3px solid var(--ink);
  background: #fff;
}
.icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-family: var(--display);
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
}
.icon:disabled { opacity: 0.3; }
.texty {
  border-radius: var(--wobbly-2);
  padding: 4px 12px 6px;
  font-family: var(--display);
  font-size: 22px;
  font-weight: 700;
}
.texty:hover, .icon:hover { background: var(--sticky); }
.q {
  margin-top: 12px;
  padding-top: 4px;
}
.q-line textarea { flex: 1.4; }
.q-line input { flex: 0.8; }
.note { margin-top: 4px; font-style: italic; color: var(--ink-2); }
.pic-line { margin-top: 8px; }
.thumb {
  width: 54px;
  height: 54px;
  object-fit: cover;
  background: #efe8da;
  flex: none;
  box-shadow: var(--shadow);
}
.file {
  position: relative;
  overflow: hidden;
  flex: none;
}
.file input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  border: 0;
}
.grow { flex: 1; }
.err {
  color: var(--bad);
  font-style: italic;
  font-size: 14px;
  margin: 2px 0 0;
}
.bad { border-bottom-color: var(--bad) !important; }
.round-actions, .actions { margin-top: 14px; }
.actions { gap: 12px; }
@media (max-width: 720px) {
  .hero h1 { font-size: 58px; }
  .steps li { font-size: 26px; }
  .title-field { font-size: 40px; }
  .q-line, .pic-line, .round-head { flex-wrap: wrap; }
  .q-line textarea, .q-line input, .round-head input { flex: 1 1 100%; }
  .hero-actions, .actions { flex-wrap: wrap; }
  .team-field input { width: 108px; }
}
