@font-face {
  font-family: "Fredoka";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/fredoka-600.woff2") format("woff2");
}

@font-face {
  font-family: "Fredoka";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/fredoka-700.woff2") format("woff2");
}

@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/open-sans-400.woff2") format("woff2");
}

@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/open-sans-600.woff2") format("woff2");
}

@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/open-sans-700.woff2") format("woff2");
}

:root {
  --page: #20242F;
  --card: #2C3140;
  --ink: #F4F1E8;
  --muted: #C8C4BA;
  --line: #000000;
  --cream: #E7E3DA;
  --red: #E10600;
  --blue: #1B4FE0;
  --green: #3FBF1F;
  --yellow: #F5E642;
  --pink: #EC54B0;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: "Open Sans", Roboto, "Segoe UI", sans-serif;
  font-size: 18px;
  line-height: 1.45;
}

body.scene-practice {
  background: #2C2438 url("backgrounds/bg-practice.svg") center / 100% 100% no-repeat fixed;
}

h1, h2, h3, .roster-name, summary, button, .btn {
  font-family: Fredoka, "Arial Black", sans-serif;
}

.top, .foot, main {
  max-width: 980px;
  margin: 0 auto;
  padding: 20px 16px;
}

.top, .foot {
  background: var(--card);
  border: 4px solid var(--line);
  border-radius: 22px;
  box-shadow: 8px 8px 0 var(--line);
  margin-top: 16px;
}

.top { padding-bottom: 16px; }

h1, h2, h3 { line-height: 1.2; margin: 0 0 8px; color: var(--ink); }

h1 { font-size: 32px; font-weight: 700; }

h2 { font-size: 24px; font-weight: 700; }

h3 { font-size: 18px; font-weight: 700; }

.with-icon {
  display: flex;
  align-items: center;
  gap: 8px;
}

.with-icon img, .next-btn img, .btn-primary img {
  width: 24px;
  height: 24px;
  flex: none;
}

.eyebrow {
  margin: 0;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 13px;
  color: var(--yellow);
  font-weight: 700;
  font-family: Fredoka, "Arial Black", sans-serif;
}

.org { margin: 8px 0 12px; }

.who-line {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.who-line p { margin: 0; }

button, .btn {
  font: inherit;
  font-family: Fredoka, "Arial Black", sans-serif;
  font-weight: 700;
  border: 4px solid var(--line);
  background: #ffffff;
  color: #111111;
  border-radius: 16px;
  padding: 10px 16px;
  min-height: 48px;
  box-shadow: 4px 4px 0 var(--line);
  cursor: pointer;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #ffffff;
  border-color: var(--line);
  color: #111111;
  font-weight: 700;
  min-height: 56px;
  border-radius: 18px;
}

button.linkish {
  background: none;
  border: none;
  border-radius: 0;
  box-shadow: none;
  min-height: 0;
  padding: 0;
  color: var(--ink);
  font-family: "Open Sans", Roboto, sans-serif;
  font-size: 15px;
  font-weight: 600;
  text-decoration: underline;
}

button:focus, a:focus, select:focus, input:focus {
  outline: 3px solid var(--yellow);
  outline-offset: 2px;
}

button:disabled {
  opacity: 0.45;
  cursor: default;
}

a {
  color: var(--yellow);
  font-weight: 600;
}

a.btn {
  color: #111111;
  text-decoration: none;
}

.card, details.card {
  background: var(--card);
  color: var(--ink);
  border: 4px solid var(--line);
  border-radius: 22px;
  box-shadow: 8px 8px 0 var(--line);
  padding: 20px;
  margin: 16px 0;
}

.quiet { color: var(--muted); font-size: 16px; }

label { display: block; font-weight: 700; margin: 10px 0 6px; }

input[type="text"], input[type="email"], select {
  font: inherit;
  width: 100%;
  max-width: 520px;
  padding: 12px 14px;
  min-height: 48px;
  border: 3px solid var(--line);
  border-radius: 12px;
  background: #171A22;
  color: var(--ink);
}

.row, .quiet-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 12px;
}

.gauge-wrap { text-align: center; }

.gauge-wrap svg { width: min(360px, 100%); height: auto; }

.gauge-wrap.small svg { width: 180px; }

.band {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 22px;
  font-weight: 700;
  margin: 4px 0;
  color: var(--ink);
  font-family: Fredoka, "Arial Black", sans-serif;
}

.band.ready { color: var(--green); }

.band-face { height: 32px; width: auto; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
}

.standard-groups {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.standard-head {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.standard-head .gauge-wrap.small {
  flex: none;
}

.standard-body {
  flex: 1;
  min-width: 0;
}

.standard-body h3 {
  font-size: 20px;
}

.indicator-list {
  margin: 12px 0 0;
  padding-left: 1.25em;
}

.indicator-list li {
  margin: 8px 0;
}

@media (max-width: 640px) {
  .standard-head {
    flex-direction: column;
    align-items: stretch;
  }

  .standard-head .gauge-wrap.small {
    align-self: center;
  }
}

.lengths {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 12px;
}

.length-btn {
  width: 100%;
  min-height: 64px;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.length-note {
  display: block;
  font-family: "Open Sans", Roboto, sans-serif;
  font-size: 15px;
  font-weight: 600;
}

.choices {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 12px;
}

.choices .choice {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 64px;
  margin: 0;
  padding: 16px 18px;
  border: 4px solid var(--line);
  border-radius: 18px;
  box-shadow: 4px 4px 0 var(--line);
  text-align: left;
  white-space: normal;
  line-height: 1.3;
  font-family: "Open Sans", Roboto, "Segoe UI", sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #111111;
}

.choices .choice.red { background: var(--red); color: #ffffff; }
.choices .choice.blue { background: var(--blue); color: #ffffff; }
.choices .choice.green { background: var(--green); color: #111111; }
.choices .choice.yellow { background: var(--yellow); color: #111111; }

.choices .choice.selected {
  outline: 4px solid #ffffff;
  outline-offset: 3px;
}

.letter { font-weight: 700; min-width: 1.4em; font-family: Fredoka, "Arial Black", sans-serif; }

.progress { font-weight: 700; }

.progress-track {
  height: 18px;
  background: #161616;
  border: 3px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  margin: 8px 0 16px;
}

.progress-fill {
  height: 100%;
  background: var(--green);
}

.note {
  background: #171A22;
  border: 3px solid var(--yellow);
  border-radius: 16px;
  padding: 10px 12px;
  color: var(--ink);
}

.foot { color: var(--muted); font-size: 15px; }

.foot p { margin: 4px 0; }

.foot a { font-size: 15px; }

details { margin: 16px 0; }

summary { cursor: pointer; font-weight: 700; color: var(--ink); }

.skill { margin: 16px 0 8px; }

.can-do {
  margin-top: 8px;
  padding-top: 16px;
  border-top: 3px solid rgba(244, 241, 232, 0.2);
}

.can-do h3 { margin-top: 4px; }

.self {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 8px 0 16px;
}

.self button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 48px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 4px solid var(--line);
  box-shadow: none;
  background: transparent;
  color: var(--ink);
}

.self button[aria-pressed="true"] {
  background: var(--ink);
  border-color: var(--line);
  color: #111111;
}

.pill-face { height: 40px; width: auto; }

.next-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.wording { font-size: 16px; }

.under { margin: 4px 0; }

.gate {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px 16px 40px;
  background: #2A2E3A url("backgrounds/bg-lobby.svg") center / 100% 100% no-repeat;
}

.crew {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 6px;
  margin-bottom: 18px;
}

.crew img { height: 68px; width: auto; }

.crew img.glance { margin-left: 8px; }

.gate-card {
  width: min(420px, 100%);
  background: var(--card);
  color: var(--ink);
  border: 4px solid var(--line);
  border-radius: 22px;
  box-shadow: 8px 8px 0 var(--line);
  padding: 32px 28px 28px;
  text-align: center;
}

.gate-card h1 { font-size: 28px; }

.gate-sub { margin: 0 0 24px; font-size: 16px; }

.gate-card .btn-primary { width: 100%; }

#google-button {
  display: flex;
  justify-content: center;
}

.gate-signin-note {
  margin: 0;
  font-size: 16px;
}

.gate-demo a {
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  text-decoration: underline;
  background: none;
}

.gate-demo { margin: 22px 0 0; }

.scene-roster {
  background: #2A2E3A url("backgrounds/bg-roster.svg") center / 100% 100% no-repeat;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: 36px 16px 80px;
}

.scene-roster .card {
  max-width: 948px;
  margin: 0 auto;
}

.class-block {
  background: #171A22;
  border: 3px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  margin: 12px 0;
}

label.check {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 18px;
}

.inline-fields {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.inline-fields label { flex: 1 1 160px; }

.roster {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
}

.roster li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 0;
  border-bottom: 1px solid rgba(244, 241, 232, 0.16);
}

.roster-face { width: 56px; height: 70px; flex: none; object-fit: contain; }

.roster-name {
  font-size: 20px;
  font-weight: 700;
  margin: 0;
}

.period-field { max-width: 180px; }

@media (min-width: 480px) {
  .crew img { height: 84px; }
}

@media (min-width: 720px) {
  .lengths { grid-template-columns: 1fr 1fr; }
  .choices { grid-template-columns: 1fr 1fr; }
  .self { flex-direction: row; }
  .self button { flex: 1; width: auto; }
}
