:root {
  font-family: Arial, Helvetica, sans-serif;
  color: #f5f6f0;
  background: #101d22;
  --lime: #d6f66c;
  --muted: #b4c4c7;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: radial-gradient(ellipse at 90% 20%, #203e40, transparent 60%);
  min-height: 100dvh;
}
button,
input {
  font: inherit;
}
button {
  border: 1px solid #5c7378;
  background: #253a40;
  color: #fff;
  border-radius: 12px;
  padding: 13px 19px;
  cursor: pointer;
  box-shadow: 0 3px 0 #091317;
  transition: transform 0.15s;
}
button:hover {
  background: #34515a;
}
button:active {
  transform: translateY(2px);
}
button:disabled {
  cursor: default;
  opacity: 0.65;
}
button:focus-visible,
input:focus-visible {
  outline: 3px solid var(--lime);
  outline-offset: 3px;
}
.primary {
  background: var(--lime);
  color: #17221b;
  font-weight: 800;
  border-color: var(--lime);
}
.primary:hover {
  background: #e5ffa5;
}
header {
  display: flex;
  align-items: center;
  gap: 22px;
  max-width: 1440px;
  margin: auto;
  padding: 20px 5vw;
}
header img {
  width: 106px;
  height: 65px;
  object-fit: contain;
  background: #fff;
  border-radius: 10px;
  padding: 5px;
}
header > span {
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--muted);
}
nav {
  margin-left: auto;
  display: flex;
  gap: 8px;
}
nav button {
  font-size: 12px;
  padding: 10px;
}
main {
  max-width: 1280px;
  margin: auto;
  padding: 20px 5vw 28px;
  min-height: calc(100dvh - 180px);
}
[hidden] {
  display: none !important;
}
.hero {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 7%;
  align-items: center;
}
.eyebrow {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--lime);
  margin: 0 0 18px;
}
h1 {
  font-size: clamp(40px, 5.6vw, 78px);
  line-height: 1.02;
  letter-spacing: -3px;
  margin: 0 0 25px;
}
em {
  color: var(--lime);
  font-style: normal;
}
p {
  line-height: 1.5;
  color: var(--muted);
}
.intro {
  font-size: 21px;
  color: #fff;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0;
}
.chips span {
  border: 1px solid #4e666c;
  border-radius: 24px;
  padding: 10px 14px;
  font-size: 13px;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}
.prize {
  margin-top: 26px;
  font-size: 15px;
}
.heroPhoto {
  position: relative;
  min-height: 410px;
  height: 55vh;
  max-height: 560px;
  border-radius: 22px;
  overflow: hidden;
}
.heroPhoto > img {
  height: 100%;
  width: 100%;
  object-fit: cover;
}
.heroPhoto:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 35%, #101d22ed);
}
.photoLabel {
  position: absolute;
  bottom: 25px;
  left: 25px;
  font-weight: 800;
  font-size: 32px;
  z-index: 1;
}
footer {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
  padding: 18px 5vw;
  border-top: 1px solid #364c52;
  font-size: 11px;
  color: var(--muted);
}
footer strong {
  color: var(--lime);
  letter-spacing: 2px;
}
#mode {
  border: 1px solid #5c7378;
  border-radius: 20px;
  padding: 6px 10px;
}
.stats {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 18px;
  margin-bottom: 14px;
}
#clock {
  font-size: 28px;
  color: var(--lime);
  font-variant-numeric: tabular-nums;
}
.bar {
  height: 8px;
  background: #34464d;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 26px;
}
#timebar {
  height: 100%;
  background: var(--lime);
  width: 100%;
}
.questionCard {
  background: #203339;
  border: 1px solid #42595d;
  border-radius: 20px;
  padding: clamp(18px, 3vw, 38px);
}
h2 {
  font-size: clamp(25px, 3.2vw, 43px);
  line-height: 1.15;
  margin: 10px 0 26px;
  letter-spacing: -0.7px;
}
.answers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.answers button {
  text-align: left;
  min-height: 78px;
  font-size: clamp(17px, 1.65vw, 23px);
  display: flex;
  align-items: center;
  gap: 16px;
}
.answers b {
  font-size: 13px;
  border: 1px solid #658086;
  border-radius: 8px;
  padding: 8px;
}
.answers .correct {
  background: #395e32;
  border-color: var(--lime);
  opacity: 1;
}
.answers .wrong {
  background: #743b42;
  border-color: #ff929f;
  opacity: 1;
}
#feedback {
  padding: 15px;
  line-height: 1.4;
  font-size: 18px;
  border-radius: 12px;
  margin-top: 12px;
}
#feedback.correct-message {
  background: #2d4d31;
  border: 1px solid #789b55;
}
#feedback.game-over-message {
  background: #60323a;
  border: 1px solid #ff929f;
}
.centered {
  max-width: 700px;
  margin: 35px auto;
  text-align: center;
}
.centered .actions {
  justify-content: center;
}
.bigScore {
  font-size: 65px;
  color: var(--lime);
  font-weight: 800;
  margin: 20px;
}
form {
  max-width: 470px;
  margin: 25px auto;
  display: grid;
  gap: 15px;
}
label {
  text-align: left;
}
input {
  padding: 16px;
  border-radius: 10px;
  border: 1px solid #607e84;
  background: #15272d;
  color: white;
  min-width: 0;
}
small {
  color: var(--muted);
  line-height: 1.5;
}
.rankHeading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
}
.rankHeading h2 {
  margin-bottom: 5px;
}
#leaders {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-auto-flow: column;
  grid-template-rows: repeat(5, auto);
  gap: 10px 20px;
}
#leaders li {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #20363b;
  border: 1px solid #42595d;
  border-radius: 12px;
  padding: 15px;
  min-width: 0;
}
#leaders b {
  font-size: 22px;
  color: var(--lime);
  width: 30px;
}
#leaders .name {
  flex: 1;
  overflow-wrap: anywhere;
}
#leaders .score {
  text-align: right;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
#leaders small {
  display: block;
  font-size: 11px;
}
#error {
  position: fixed;
  bottom: 8px;
  left: 5%;
  right: 5%;
  background: #672d35;
  color: white;
  padding: 16px;
  border-radius: 12px;
  z-index: 9;
}
dialog {
  border: 1px solid #64848a;
  border-radius: 18px;
  background: #203339;
  color: white;
  max-width: 90%;
  padding: 25px;
}
dialog::backdrop {
  background: #000a;
}
#rankStatus {
  color: var(--muted);
}
@media (max-width: 700px) {
  header {
    padding: 12px 4%;
    gap: 10px;
  }
  header img {
    width: 76px;
    height: 52px;
  }
  header > span {
    display: none;
  }
  nav button {
    font-size: 11px;
    padding: 10px 8px;
  }
  main {
    padding: 18px 4%;
  }
  .hero {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  h1 {
    letter-spacing: -2px;
  }
  .heroPhoto {
    height: 190px;
    min-height: 0;
  }
  .photoLabel {
    font-size: 25px;
  }
  .answers {
    grid-template-columns: 1fr;
    gap: 9px;
  }
  .answers button {
    min-height: 58px;
  }
  .questionCard {
    padding: 19px;
  }
  h2 {
    margin-bottom: 20px;
  }
  .rankHeading {
    align-items: start;
    flex-direction: column;
  }
  #leaders {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    grid-auto-flow: row;
  }
  .stats {
    font-size: 14px;
  }
  .centered {
    margin: 15px auto;
  }
  .bigScore {
    font-size: 48px;
  }
  .prize {
    margin-top: 18px;
  }
  footer {
    font-size: 10px;
  }
}
@media (max-height: 550px) and (min-width: 701px) {
  header {
    padding: 8px 4%;
  }
  header img {
    height: 42px;
  }
  main {
    padding-top: 8px;
  }
  .questionCard {
    padding: 16px;
  }
  h2 {
    font-size: 25px;
    margin: 8px 0 14px;
  }
  .answers button {
    min-height: 53px;
    font-size: 17px;
  }
  .bar {
    margin-bottom: 12px;
  }
  .heroPhoto {
    min-height: 260px;
  }
  h1 {
    font-size: 43px;
  }
  .chips {
    margin: 12px 0;
  }
  .intro {
    font-size: 17px;
  }
  footer {
    padding: 10px 4%;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
