@font-face {
  font-family: Barlow;
  src: url("/fonts/body.ttf");
}
@font-face {
  font-family: Barlow;
  src: url("/fonts/bold.ttf");
  font-weight: 700;
}
@font-face {
  font-family: "Barlow Condensed";
  src: url("/fonts/display.ttf");
  font-weight: 600;
}
:root {
  color-scheme: dark;
  --paper: #08171d;
  --ink: #f5ebd0;
  --green: #e6f15c;
  --yellow: #e6f15c;
  --line: #355058;
  --muted: #b6c6c5;
  font-family: Barlow, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  line-height: 1.5;
}
::selection {
  background: var(--yellow);
  color: #08171d;
}
a {
  color: inherit;
  text-underline-offset: 5px;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
input,
textarea,
select {
  outline-offset: 5px;
}
:focus-visible {
  outline: 3px solid var(--green);
}
button,
.button {
  min-height: 48px;
  padding: 11px 21px;
  border: 1px solid var(--green);
  background: var(--green);
  color: #08171d;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
}
button:hover,
.button:hover {
  background: #f1fa86;
}
button.secondary {
  background: transparent;
  color: var(--ink);
}
button:disabled {
  opacity: 0.5;
  cursor: default;
}
input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--muted);
  background: #10252c;
  color: var(--ink);
  padding: 12px;
  min-height: 48px;
  border-radius: 0;
  caret-color: var(--green);
}
textarea {
  resize: vertical;
  min-height: 155px;
}
label {
  display: block;
  font-weight: 700;
  margin: 18px 0 6px;
}
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 23px 5vw;
  border-bottom: 1px solid var(--line);
  gap: 20px;
}
.brand {
  font-weight: 700;
  text-decoration: none;
  font-size: 24px;
  line-height: 1.1;
}
.brand span {
  display: block;
  font-size: 13px;
  font-weight: 400;
  margin-top: 6px;
}
nav {
  display: flex;
  align-items: center;
  gap: 25px;
}
nav button {
  font-weight: 400;
  background: none;
  color: var(--ink);
  border: 0;
  padding: 0;
}
nav button:hover {
  background: none;
  text-decoration: underline;
}
main {
  max-width: 1440px;
  margin: auto;
  padding: 50px 5vw 80px;
}
h1,
h2,
h3 {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 600;
  line-height: 1.03;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
h1 {
  font-size: clamp(54px, 7vw, 96px);
  margin: 0 0 25px;
  max-width: 12ch;
}
h2 {
  font-size: clamp(36px, 4vw, 58px);
  margin: 0 0 18px;
}
h3 {
  font-size: 29px;
  margin: 0 0 12px;
}
p {
  max-width: 68ch;
}
small,
.muted {
  color: var(--muted);
}
.hero {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 70px;
  align-items: start;
}
.intro {
  font-size: 23px;
  max-width: 40ch;
}
.ribbon {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 30px 0;
}
.ribbon span {
  border-top: 1px solid var(--ink);
  padding: 9px 16px 0 0;
}
.setup {
  padding: 32px;
  background: #19333b;
}
.setup h2 {
  font-size: 42px;
}
.stack {
  display: grid;
  gap: 12px;
}
.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 25px 0;
}
.agenda {
  margin-top: 65px;
  border-top: 1px solid var(--ink);
}
.agenda-row {
  display: grid;
  grid-template-columns: 60px 1fr 90px;
  gap: 15px;
  align-items: center;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
}
.agenda-row strong {
  font-size: 21px;
}
.agenda-row span:last-child {
  text-align: right;
}
.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(290px, 1fr);
  gap: 40px;
}
.board {
  background: #10252c;
  color: #f5ebd0;
  padding: clamp(25px, 4vw, 55px);
  min-height: 520px;
}
.board h1 {
  max-width: 17ch;
  font-size: clamp(48px, 5vw, 78px);
}
.board p {
  font-size: clamp(21px, 2vw, 27px);
  line-height: 1.4;
}
.board .deliverable {
  padding-top: 24px;
  border-top: 1px solid #355058;
  margin-top: 35px;
}
.board .theme {
  font-size: 17px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 30px;
}
.timer {
  font-family: "Barlow Condensed", sans-serif;
  font-variant-numeric: tabular-nums;
  font-size: 70px;
  line-height: 1;
  white-space: nowrap;
}
.timing {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 25px;
  padding-bottom: 25px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 24px;
}
.code {
  font-size: 40px;
  font-weight: 700;
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
}
.share {
  overflow-wrap: anywhere;
  font-size: 16px;
}
.help {
  font-size: 17px;
}
.steps {
  display: flex;
  gap: 5px;
  margin: 20px 0;
}
.steps span {
  flex: 1;
  height: 7px;
  background: #355058;
}
.steps .active {
  background: #e6f15c;
}
.steps .done {
  background: var(--green);
}
details {
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
}
summary {
  cursor: pointer;
  font-weight: 700;
  min-height: 35px;
}
.team-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 20px;
}
.team-grid label {
  margin: 0;
  font-size: 15px;
}
.team-grid select {
  margin-top: 5px;
}
.team-review {
  padding-bottom: 20px;
}
.answer {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.rubric {
  margin-top: 45px;
  padding-top: 25px;
  border-top: 1px solid var(--ink);
}
.rubric ol {
  padding-left: 24px;
}
.rubric li {
  padding-bottom: 10px;
}
.scoreboard {
  list-style: none;
  padding: 0;
}
.scoreboard li {
  display: flex;
  justify-content: space-between;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  font-size: 24px;
}
.narrow {
  max-width: 650px;
  margin: auto;
}
.narrow h1 {
  max-width: none;
}
.status {
  font-weight: 700;
}
.error {
  color: #8d211a;
}
#notice {
  position: fixed;
  bottom: 15px;
  left: 5vw;
  right: 5vw;
  width: fit-content;
  max-width: 90vw;
  background: var(--ink);
  color: #08171d;
  padding: 12px 20px;
  z-index: 3;
}
#notice:empty {
  display: none;
}
.skip {
  position: absolute;
  top: -100px;
  background: #fff;
  padding: 10px;
  z-index: 5;
}
.skip:focus {
  top: 10px;
}
#worksheet {
  display: none;
}
.display .workspace {
  grid-template-columns: 1fr;
}
.display header nav,
.display .host-tools {
  display: none;
}
.display .board {
  min-height: 60vh;
}
.display .board h1 {
  max-width: 22ch;
}
.display .board p {
  max-width: 75ch;
}
.display .timing {
  justify-content: space-between;
}
.display .timer {
  font-size: 90px;
}
.display .intro {
  max-width: none;
}
.saved {
  color: var(--green);
  font-weight: 700;
}
.round-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 25px 0;
}
.round-tabs button {
  font-size: 15px;
  padding: 8px 12px;
}
.join-heading {
  margin-top: 25px;
}
button[aria-current="true"] {
  background: var(--yellow);
  color: #08171d;
}
@media (max-width: 760px) {
  header {
    padding: 18px 5vw;
    align-items: start;
  }
  nav {
    gap: 12px;
    align-items: end;
    flex-direction: column;
    font-size: 14px;
  }
  nav button {
    min-height: 30px;
    font-size: 14px;
  }
  .hero,
  .workspace {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  main {
    padding-top: 30px;
  }
  .setup {
    padding: 24px;
  }
  .agenda {
    margin-top: 35px;
  }
  .agenda-row {
    grid-template-columns: 28px 1fr 55px;
  }
  .agenda-row strong {
    font-size: 18px;
  }
  .intro {
    font-size: 20px;
  }
  .board {
    min-height: auto;
  }
  .team-grid {
    grid-template-columns: 1fr;
  }
  .timer {
    font-size: 60px;
  }
  .display .timer {
    font-size: 70px;
  }
  .code {
    font-size: 32px;
  }
  .actions button,
  .actions .button {
    flex: 1;
  }
  h1 {
    font-size: 60px;
  }
  .board h1 {
    font-size: 48px;
  }
}
@media print {
  body > * {
    display: none !important;
  }
  body > #worksheet {
    display: block !important;
    color: #000;
    background: #fff;
    font-size: 11pt;
  }
  #worksheet h1 {
    font-size: 30pt;
    max-width: none;
  }
  #worksheet h2 {
    font-size: 16pt;
    margin-top: 15px;
  }
  #worksheet section {
    break-inside: avoid;
    border-bottom: 1px solid #aaa;
    min-height: 112px;
  }
  #worksheet p {
    margin: 5px 0;
  }
  #worksheet {
    padding: 10mm;
  }
  @page {
    size: A4;
    margin: 12mm;
  }
}
.timing > div:first-child {
  min-width: 0;
}
.timing h2,
.timing > div:first-child > span,
summary,
.scoreboard li > span {
  overflow-wrap: anywhere;
}
.scoreboard li {
  gap: 20px;
}
.scoreboard li > span {
  min-width: 0;
}
.scoreboard li > strong {
  flex-shrink: 0;
}

.school-scene {
  margin: 22px -15px 0;
  max-width: 100%;
}
.school-scene img {
  width: 100%;
  height: auto;
  display: block;
  image-rendering: pixelated;
}
.hero h1 {
  font-size: clamp(54px, 6vw, 84px);
  max-width: 16ch;
}
.hero .intro {
  font-size: 21px;
}
.setup {
  position: relative;
  border: 1px solid var(--line);
  padding-top: 45px;
}
.game-cast {
  position: relative;
  width: 90px;
  aspect-ratio: 3/4;
  overflow: hidden;
  flex-shrink: 0;
  image-rendering: pixelated;
}
.game-cast img {
  position: absolute;
  left: 0;
  top: 0;
  width: 400%;
  height: 100%;
  max-width: none;
}
.setup > .game-cast {
  float: right;
  margin: -55px -15px 5px 10px;
}
.board {
  position: relative;
  overflow: hidden;
}
.board > .game-cast {
  float: right;
  margin: -10px -15px 0 15px;
  opacity: 0.95;
}
.display .board > .game-cast {
  width: 125px;
}
.board .theme {
  position: relative;
}
.board .deliverable {
  clear: both;
}
.saved {
  color: #6cd6cf;
}
input::placeholder,
textarea::placeholder {
  color: #b6c6c5;
}
.error {
  color: #ffad9c;
}
.scoreboard li > strong {
  color: var(--yellow);
}
.skip {
  background: #10252c;
}
.agenda h2 {
  padding-top: 25px;
}
#notice {
  background: #e6f15c;
  color: #08171d;
}
.steps .done {
  background: #6cd6cf;
}
button.secondary:hover {
  background: #19333b;
}
.school-scene picture {
  display: block;
}
.brand {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 32px;
  font-weight: 600;
}
.brand span {
  font-family: Barlow, sans-serif;
  font-size: 13px;
}
@media (max-width: 760px) {
  .hero h1 {
    font-size: 58px;
  }
  .hero {
    gap: 25px;
  }
  .school-scene {
    margin: 20px 0 0;
    max-width: 100%;
  }
  .school-scene img {
    max-height: 420px;
    object-fit: contain;
  }
  .board > .game-cast {
    width: 65px;
  }
  .setup {
    margin-top: 10px;
  }
  .brand {
    font-size: 27px;
  }
}
.cast-1 img {
  left: -100%;
}
.cast-2 img {
  left: -200%;
}
.cast-3 img {
  left: -300%;
}
