:root {
  --bg: #101010;
  --panel: #1b1b1b;
  --ink: #f7f7f7;
  --muted: #c8c2b7;
  --line: #39342d;
  --gold: #f4c430;
  --red: #d64545;
  --green: #178a5b;
  --blue: #7bb8ff;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1rem, 4vw, 3rem);
  background: #171717;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 800;
  text-decoration: none;
}

.brand-mark {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.site-nav a {
  border-radius: 999px;
  padding: 0.45rem 0.75rem;
  color: var(--muted);
  font-size: 0.95rem;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a[aria-current="page"] {
  background: var(--gold);
  color: #171717;
}

main {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(240px, 0.8fr);
  gap: 2rem;
  align-items: center;
  padding: clamp(2rem, 6vw, 5rem) 0 2rem;
}

.eyebrow,
.category,
.status-label {
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 1rem;
  font-size: clamp(2.2rem, 7vw, 5.1rem);
  line-height: 0.95;
}

.hero-copy p:last-child {
  max-width: 620px;
  color: var(--muted);
  font-size: 1.1rem;
}

.speaker-art {
  min-height: 260px;
  border: 4px solid var(--ink);
  border-radius: 8px;
  background:
    radial-gradient(circle at center, #222 0 23%, transparent 24%),
    linear-gradient(135deg, #ffffff 0 35%, #f4c430 35% 65%, #2364aa 65% 100%);
  box-shadow: var(--shadow);
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}

.speaker-art span {
  position: absolute;
  border: 5px solid var(--ink);
  border-radius: 50%;
}

.speaker-art span:nth-child(1) {
  width: 190px;
  height: 190px;
  background: #ffffff;
}

.speaker-art span:nth-child(2) {
  width: 110px;
  height: 110px;
  background: #d64545;
}

.speaker-art span:nth-child(3) {
  width: 36px;
  height: 36px;
  background: var(--ink);
}

.game-shell {
  margin: 1rem 0 2rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.game-status {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
}

.game-status div {
  padding: 1rem;
  border-right: 1px solid var(--line);
}

.game-status div:last-child {
  border-right: 0;
}

.game-status strong {
  display: block;
  margin-top: 0.1rem;
  font-size: 1.7rem;
}

.question-panel {
  padding: clamp(1rem, 4vw, 2rem);
}

.question-panel h2 {
  min-height: 4.5rem;
  margin-bottom: 1.25rem;
  font-size: clamp(1.45rem, 3vw, 2.3rem);
  line-height: 1.15;
}

.answers {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

button {
  min-height: 48px;
  border: 2px solid var(--gold);
  border-radius: 8px;
  background: var(--gold);
  color: #171717;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  transition: transform 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

button:hover:not(:disabled),
button:focus-visible:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(23, 23, 23, 0.16);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.answer-button {
  min-height: 74px;
  padding: 0.85rem;
  background: #242424;
  color: var(--ink);
  border-color: var(--line);
  text-align: left;
}

.answer-button.correct {
  background: #daf3e7;
  border-color: var(--green);
}

.answer-button.incorrect {
  background: #f7dddd;
  border-color: var(--red);
}

.feedback {
  min-height: 1.8rem;
  margin: 1rem 0;
  font-weight: 800;
}

.feedback.correct {
  color: var(--green);
}

.feedback.incorrect {
  color: var(--red);
}

.actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.actions button {
  padding: 0.7rem 1rem;
}

.secondary {
  background: transparent;
  color: var(--ink);
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.info-grid article,
.rules {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1.25rem;
}

.info-grid p,
.rules li {
  color: var(--muted);
}

.rules {
  margin-bottom: 2rem;
}

.rules ul {
  margin-bottom: 0;
  padding-left: 1.2rem;
}

.site-footer {
  padding: 1.5rem;
  color: var(--muted);
  text-align: center;
}

.site-footer p {
  margin-bottom: 0;
}

.form-page {
  display: grid;
  gap: 1.5rem;
  padding: clamp(2rem, 6vw, 4rem) 0;
}

.form-intro {
  color: var(--muted);
  max-width: 650px;
}

.account-form {
  display: grid;
  gap: 0.55rem;
  max-width: 680px;
  padding: clamp(1rem, 4vw, 2rem);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.account-form label,
.account-form legend {
  font-weight: 800;
}

.account-form input[type="text"],
.account-form select,
.account-form textarea {
  width: 100%;
  min-height: 46px;
  padding: 0.75rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #101010;
  color: var(--ink);
  font: inherit;
}

.account-form textarea {
  resize: vertical;
}

.account-form fieldset {
  display: grid;
  gap: 0.4rem;
  margin: 0;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.checkbox-line {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.error-message {
  min-height: 1.25rem;
  color: #ff8f8f;
  font-weight: 800;
}

.form-message {
  min-height: 1.5rem;
  margin-bottom: 0.4rem;
  font-weight: 800;
}

.form-message.success {
  color: #61d394;
}

.form-message.error {
  color: #ff8f8f;
}

@media (max-width: 760px) {
  .site-header,
  .hero,
  .actions {
    align-items: stretch;
  }

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

  .site-header {
    display: grid;
  }

  .site-nav {
    justify-content: flex-start;
  }

  .speaker-art {
    min-height: 200px;
  }

  .answers,
  .info-grid,
  .game-status {
    grid-template-columns: 1fr;
  }

  .game-status div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .game-status div:last-child {
    border-bottom: 0;
  }
}
