* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #f1eee7;
  color: #171717;
  font-family: Arial, Helvetica, sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.header {
  min-height: 76px;
  padding: 18px 5vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  border-bottom: 3px solid #171717;
  background: #f1eee7;
  position: sticky;
  top: 0;
  z-index: 20;
}

.brand {
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: clamp(28px, 5vw, 54px);
  line-height: .85;
  letter-spacing: -2px;
}

.brand span {
  font-family: Arial, Helvetica, sans-serif;
  font-size: .45em;
  letter-spacing: -1px;
}

nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

nav a {
  border: 2px solid #171717;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 900;
  background: #fffdf8;
  box-shadow: 3px 3px 0 #171717;
}

nav a:hover {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 #171717;
}

.ticker {
  overflow: hidden;
  white-space: nowrap;
  border-bottom: 2px solid #171717;
  background: #ffdf00;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.ticker div {
  display: inline-block;
  padding: 8px 0;
  animation: ticker 24s linear infinite;
}

@keyframes ticker {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

#app {
  min-height: calc(100vh - 150px);
}

.page {
  width: min(1050px, 90%);
  margin: 0 auto;
  padding: 65px 0;
}

.hero {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 40px;
  align-items: center;
}

.kicker {
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 12px;
}

h1 {
  margin: 0;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: clamp(65px, 12vw, 150px);
  line-height: .78;
  letter-spacing: -5px;
}

h2 {
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: clamp(38px, 7vw, 80px);
  line-height: .9;
  margin: 0 0 25px;
}

h3 {
  margin-top: 0;
}

.sub {
  max-width: 650px;
  margin: 28px 0;
  font-size: 18px;
  line-height: 1.5;
}

.science {
  display: inline-block;
  background: #ffdf00;
  border: 2px solid #171717;
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 900;
  transform: rotate(-2deg);
}

.big-button {
  display: inline-block;
  border: 3px solid #171717;
  background: #ff4d32;
  color: #fff;
  padding: 16px 25px;
  font-size: 18px;
  font-weight: 900;
  box-shadow: 6px 6px 0 #171717;
  cursor: pointer;
}

.big-button:hover {
  transform: translate(3px, 3px);
  box-shadow: 3px 3px 0 #171717;
}

.big-button:active {
  transform: translate(6px, 6px);
  box-shadow: none;
}

.card {
  border: 3px solid #171717;
  background: #fffdf8;
  padding: 25px;
  box-shadow: 7px 7px 0 #171717;
}

.fake-screen {
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.fake-number {
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: 110px;
  line-height: .8;
}

.stat {
  border-top: 2px solid #171717;
  padding-top: 12px;
  margin-top: 20px;
}

.quiz {
  width: min(720px, 100%);
  margin: auto;
}

.progress {
  font-size: 12px;
  font-weight: 900;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.question {
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: clamp(35px, 6vw, 65px);
  line-height: .95;
  margin-bottom: 30px;
}

.answers {
  display: grid;
  gap: 10px;
}

.answer {
  width: 100%;
  text-align: left;
  padding: 16px;
  border: 2px solid #171717;
  background: #fffdf8;
  cursor: pointer;
  font-weight: 800;
  box-shadow: 4px 4px 0 #171717;
}

.answer:hover {
  background: #ffdf00;
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 #171717;
}

.answer.selected {
  background: #ff4d32;
  color: white;
}

.loading {
  text-align: center;
}

.loader-box {
  border: 3px solid #171717;
  background: #fffdf8;
  padding: 40px;
  box-shadow: 7px 7px 0 #171717;
}

.loader-bar {
  height: 25px;
  border: 2px solid #171717;
  margin-top: 25px;
  overflow: hidden;
}

.loader-fill {
  height: 100%;
  width: 0;
  background: #ff4d32;
  animation: loading 3s linear forwards;
}

@keyframes loading {
  to {
    width: 100%;
  }
}

.result {
  text-align: center;
}

.score {
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: clamp(120px, 25vw, 260px);
  line-height: .7;
  letter-spacing: -8px;
}

.rank {
  display: inline-block;
  margin: 30px 0;
  padding: 10px 16px;
  background: #ffdf00;
  border: 3px solid #171717;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: 30px;
  transform: rotate(-2deg);
}

.button-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.small-button {
  border: 2px solid #171717;
  background: #fffdf8;
  padding: 12px 17px;
  cursor: pointer;
  font-weight: 900;
  box-shadow: 4px 4px 0 #171717;
}

.small-button:hover {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 #171717;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.game {
  min-height: 210px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.game h3 {
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: 32px;
  margin-bottom: 8px;
}

.game p {
  line-height: 1.45;
}

.game-button {
  border: 2px solid #171717;
  background: #ffdf00;
  padding: 12px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 4px 4px 0 #171717;
}

.game-button:hover {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 #171717;
}

.score-list {
  border: 3px solid #171717;
  background: #fffdf8;
  box-shadow: 7px 7px 0 #171717;
}

.score-row {
  display: grid;
  grid-template-columns: 60px 1fr 100px;
  gap: 10px;
  padding: 15px;
  border-bottom: 2px solid #171717;
  font-weight: 900;
}

.score-row:last-child {
  border-bottom: 0;
}

.score-value {
  text-align: right;
}

.game-box {
  margin-top: 25px;
  min-height: 250px;
  border: 3px solid #171717;
  background: #fffdf8;
  padding: 25px;
  text-align: center;
  box-shadow: 7px 7px 0 #171717;
}

.game-score {
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: 70px;
}

.dodge-area {
  position: relative;
  height: 250px;
  margin-top: 20px;
  border: 2px solid #171717;
  overflow: hidden;
  background: #f1eee7;
}

.dodge-player,
.dodge-target {
  position: absolute;
  width: 35px;
  height: 35px;
  border: 2px solid #171717;
}

.dodge-player {
  background: #ff4d32;
}

.dodge-target {
  background: #ffdf00;
}

footer {
  border-top: 3px solid #171717;
  padding: 20px 5vw;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

#toast {
  position: fixed;
  left: 50%;
  bottom: 25px;
  transform: translate(-50%, 100px);
  padding: 13px 18px;
  background: #171717;
  color: white;
  border: 2px solid #fff;
  font-weight: 900;
  z-index: 100;
  transition: .2s;
}

#toast.show {
  transform: translate(-50%, 0);
}

.center {
  text-align: center;
}

.muted {
  opacity: .65;
}

.big-copy {
  font-size: 20px;
  line-height: 1.6;
}

@media (max-width: 800px) {
  .header {
    align-items: flex-start;
    flex-direction: column;
  }

  nav {
    justify-content: flex-start;
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .page {
    padding: 40px 0;
  }

  h1 {
    letter-spacing: -3px;
  }

  footer {
    flex-direction: column;
  }
}