:root {
  --ink: #22253b;
  --muted: #51576a;
  --bg: #f8f8f2;
  --paper: #fffefa;
  --lime: #dcf77b;
  --line: #c9cbc4;
  --navy: #252640;
  --lav: #d4c7ff;
  --teal: #b9eadc;
  --peach: #fed4b9;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.5;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
a,
button,
input,
select,
textarea {
  font: inherit;
}
a {
  color: inherit;
}
a,
button,
label,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
a:hover,
button:hover {
  filter: brightness(0.96);
}
:focus-visible {
  outline: 3px solid #6451cf;
  outline-offset: 4px;
}
button:disabled {
  opacity: 0.55;
  cursor: default;
}
button {
  cursor: pointer;
}
.bar,
main,
footer {
  width: min(1120px, calc(100% - 48px));
  margin: auto;
}
header {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.bar {
  height: 76px;
  display: flex;
  align-items: center;
  gap: 42px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-size: 29px;
  font-weight: 900;
  letter-spacing: -1.9px;
}
.brand img {
  width: 40px;
  height: 40px;
  transform: rotate(-7deg);
}
.bang {
  color: #5c557d;
}
.bar nav {
  display: flex;
  gap: 22px;
}
.bar nav a {
  font-size: 0.92rem;
  font-weight: 650;
  text-decoration: none;
  color: var(--muted);
  padding: 7px 4px;
  border-bottom: 2px solid transparent;
}
.bar nav a[aria-current] {
  border-color: var(--ink);
  color: var(--ink);
}
.locale {
  margin-left: auto;
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 0.85rem;
  font-weight: 650;
}
.locale i {
  width: 19px;
  height: 12px;
  background: linear-gradient(#268557 0 33%, white 33% 66%, #cc4d4c 66%);
  border-radius: 2px;
  position: relative;
}
.locale i:before {
  content: "";
  position: absolute;
  inset: 0 55% 0 0;
  background: #252738;
  clip-path: polygon(0 0, 100% 30%, 100% 70%, 0 100%);
}
main {
  padding: 32px 0 38px;
  min-height: 76vh;
}
main:focus {
  outline: none;
}
.intro {
  margin-bottom: 23px;
}
.intro h1,
.mast h1 {
  margin: 6px 0 3px;
  font-size: clamp(2.2rem, 4.7vw, 3.55rem);
  letter-spacing: -0.061em;
  line-height: 1.08;
  font-weight: 820;
}
.intro p,
.mast p {
  margin: 7px 0;
  color: var(--muted);
}
.mast {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 24px;
}
.mast h1 {
  font-size: clamp(2.3rem, 4vw, 3.15rem);
}
.mast small,
.kicker,
.sectionTag {
  font-family: "Courier New", monospace;
  font-size: 0.81rem;
  font-weight: 750;
  letter-spacing: 0.085em;
  text-transform: uppercase;
}
.mast small {
  color: #455649;
}
.unit {
  padding: 6px 13px;
  border: 1px solid var(--line);
  border-radius: 30px;
  font-size: 0.86rem;
  font-weight: 650;
}
.hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  align-items: center;
  padding: 28px 42px;
  background-color: var(--navy);
  color: #fffdf6;
  border-radius: 17px;
  border: 1.5px solid var(--ink);
  isolation: isolate;
}
.hero:after {
  content: "";
  position: absolute;
  inset: 0 0 0 38%;
  background-image: radial-gradient(#777391 1px, transparent 1px);
  background-size: 9px 9px;
  opacity: 0.43;
  mask-image: linear-gradient(90deg, transparent, #000 42%);
  z-index: -1;
}
.hero h2 {
  font-size: clamp(2.3rem, 4.1vw, 3.45rem);
  letter-spacing: -0.061em;
  line-height: 1.02;
  margin: 12px 0;
}
.hero p {
  color: #e0deee;
  max-width: 420px;
  margin: 8px 0 18px;
}
.hero .kicker {
  color: #ddfa82;
}
.hero img {
  width: 100%;
  max-width: 346px;
  height: 236px;
  justify-self: center;
  object-fit: contain;
}
.primary,
.secondary,
.lime,
.plainLink {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  min-height: 43px;
  border-radius: 8px;
  padding: 9px 16px;
  border: 1.4px solid var(--ink);
  font-size: 0.92rem;
  font-weight: 700;
}
.primary {
  background: var(--ink);
  color: white;
}
.secondary {
  background: var(--paper);
  color: var(--ink);
}
.lime {
  background: var(--lime);
  color: var(--ink);
  box-shadow: 2px 3px 0 #111022;
}
.plainLink {
  background: transparent;
  border-color: transparent;
  text-decoration: underline;
}
.sectionHead {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 28px 0 13px;
}
.sectionHead h2,
.panel h2 {
  font-size: 1.55rem;
  letter-spacing: -0.045em;
  margin: 0;
}
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  border: 1.3px solid var(--ink);
  border-radius: 13px;
  padding: 16px 20px 14px;
  text-decoration: none;
  position: relative;
  box-shadow: 0 3px 0 #23233a;
  transition: transform 0.15s;
}
.card:hover {
  transform: translateY(-2px);
}
.card img {
  width: 85px;
  height: 66px;
  object-fit: contain;
  object-position: left;
}
.card h3 {
  font-size: 1.43rem;
  margin: 8px 0 0;
  letter-spacing: -0.045em;
}
.card p {
  margin: 4px 0 12px;
  font-size: 0.94rem;
}
.card strong {
  border-top: 1px solid #23233a45;
  width: 100%;
  padding-top: 9px;
  margin-top: auto;
  font-size: 0.88rem;
}
.teal {
  background: var(--teal);
}
.lav {
  background: var(--lav);
}
.peach {
  background: var(--peach);
}
.strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 17px 20px;
  border-radius: 12px;
  background: #efefe5;
  border: 1px solid var(--line);
  margin-top: 20px;
}
.strip p {
  margin: 0;
}
.crumb {
  color: #5f626a;
  font-size: 0.85rem;
}
.panel,
.question,
.item {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: clamp(16px, 3vw, 28px);
  border-radius: 13px;
}
.question {
  border-color: #91958c;
}
.panel + .panel,
.item + .item,
.panel + .question {
  margin-top: 14px;
}
.panel h3,
.question h2 {
  margin: 8px 0 12px;
  line-height: 1.3;
  letter-spacing: -0.025em;
}
.panel p:first-child {
  margin-top: 0;
}
.question h2 {
  font-size: clamp(1.3rem, 3vw, 1.75rem);
}
.rows {
  display: grid;
  gap: 12px;
}
.split {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(240px, 0.75fr);
  gap: 18px;
  align-items: start;
}
.actions,
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 14px;
}
.chips {
  margin: 10px 0;
}
.meta,
.chip {
  font-size: 0.81rem;
  color: #4b505a;
  font-weight: 650;
}
.chip {
  display: inline-block;
  border-radius: 5px;
  background: #efeee6;
  padding: 4px 8px;
}
.opt {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #b5b7b1;
  border-radius: 8px;
  margin: 8px 0;
  padding: 11px 14px;
  cursor: pointer;
  background: white;
}
.opt input {
  width: 16px;
  height: 16px;
  accent-color: #3d4e37;
}
.opt:has(:checked) {
  background: #e9f6c9;
  border-color: #435039;
}
.letter {
  font-weight: 800;
  color: #555b64;
}
.opt input:disabled {
  cursor: default;
}
fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}
.check {
  display: block;
  padding: 10px 0;
}
.check input {
  accent-color: #46405e;
}
.feedback,
.passage {
  padding: 14px 18px;
  border-radius: 8px;
  background: #f0f1e7;
  margin: 12px 0;
  line-height: 1.65;
}
.feedback {
  border-left: 4px solid #739450;
}
.passage {
  border-left: 4px solid #a597d7;
  background: #f2effa;
}
.passage p {
  margin: 6px 0;
}
.attempt {
  border-left: 3px solid #abb4a1;
  padding-left: 14px;
  margin: 14px 0;
}
.clock {
  font-variant-numeric: tabular-nums;
  font-size: 1.3rem;
  font-weight: 800;
}
.sr,
.skip:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
.skip:focus {
  position: absolute;
  z-index: 5;
  background: white;
}
.fields {
  display: grid;
  gap: 6px;
  margin: 12px 0;
}
input[type="text"],
textarea,
select,
input[type="number"] {
  border: 1px solid #92988c;
  border-radius: 7px;
  padding: 9px 12px;
  color: var(--ink);
  background: white;
  max-width: 100%;
}
textarea {
  width: 100%;
  min-height: 110px;
}
.fields label {
  font-weight: 700;
  font-size: 0.9rem;
}
.paperNav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.paperNav button {
  min-width: 40px;
  border: 1px solid var(--line);
  background: white;
  border-radius: 6px;
  padding: 7px;
}
.paperNav [aria-current] {
  background: var(--ink);
  color: white;
}
.resultnum {
  font-size: 2.4rem;
  font-weight: 850;
  letter-spacing: -0.065em;
}
.qr svg {
  width: 112px;
  height: 112px;
}
.roomcode {
  letter-spacing: 0.12em;
  font-family: monospace;
  font-size: 1.25rem;
}
footer {
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 0 24px;
  font-size: 0.84rem;
  color: var(--muted);
}
footer b {
  color: #94958c;
  margin: 0 5px;
}
#notice:not(:empty) {
  position: fixed;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 8px;
  background: #22243b;
  color: white;
  padding: 10px 18px;
  z-index: 4;
}
.notice {
  color: #76502d;
}
.muted {
  color: var(--muted);
}
.stack {
  display: grid;
  gap: 10px;
}
.wrap {
  overflow-wrap: anywhere;
}
.small {
  font-size: 0.88rem;
}
details {
  margin: 12px 0;
}
summary {
  cursor: pointer;
  font-weight: 650;
}
.examline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.rowlink {
  display: block;
  margin-top: 10px;
}
.panel ul {
  padding-left: 24px;
}
@media (max-width: 740px) {
  .bar,
  main,
  footer {
    width: min(100% - 28px, 620px);
  }
  .bar {
    height: 62px;
    gap: 16px;
  }
  .bar nav {
    gap: 6px;
    margin-left: auto;
  }
  .bar nav a {
    font-size: 0.8rem;
  }
  .locale {
    display: none;
  }
  .brand {
    font-size: 24px;
  }
  .brand img {
    width: 34px;
    height: 34px;
  }
  .split {
    grid-template-columns: 1fr;
  }
  .hero {
    padding: 22px;
    grid-template-columns: 1.4fr 1fr;
  }
  .hero img {
    height: auto;
    min-width: 0;
  }
  .hero p {
    font-size: 0.9rem;
  }
  .cards {
    gap: 10px;
  }
  .card {
    padding: 12px;
  }
  .card p {
    font-size: 0.85rem;
  }
  .card h3 {
    font-size: 1.15rem;
  }
  main {
    padding-top: 20px;
  }
  .strip {
    flex-wrap: wrap;
  }
}
@media (max-width: 510px) {
  .hero {
    padding: 21px 17px;
    grid-template-columns: 1.5fr 1fr;
  }
  .hero h2 {
    font-size: 2rem;
  }
  .hero img {
    width: 134%;
    max-width: 168px;
    justify-self: end;
  }
  .hero .kicker {
    font-size: 0.69rem;
  }
  .mast {
    margin-bottom: 16px;
  }
  .unit {
    font-size: 0.76rem;
  }
  .cards {
    grid-template-columns: 1fr;
  }
  .card {
    display: grid;
    grid-template-columns: 60px 1fr;
    column-gap: 13px;
    padding: 15px 16px;
  }
  .card img {
    width: 58px;
    height: 56px;
    grid-row: 1/4;
    align-self: center;
  }
  .card h3,
  .card p {
    margin: 0;
  }
  .card strong {
    grid-column: 2;
    border: 0;
    padding-top: 3px;
  }
  .sectionHead {
    margin-top: 22px;
  }
  .hero p {
    font-size: 0.86rem;
  }
  .actions > * {
    flex-grow: 0;
  }
  .strip .secondary {
    min-height: 38px;
  }
  .opt {
    padding: 10px;
  }
  .mast small {
    font-size: 0.73rem;
  }
  footer {
    font-size: 0.76rem;
  }
}
