﻿:root {
  --page-bg: #080b12;
  --panel: transparent;
  --panel-strong: rgba(255, 255, 255, 0.08);
  --panel-border: rgba(255, 255, 255, 0.16);
  --text-main: #f8fbff;
  --text-soft: rgba(232, 239, 255, 0.76);
  --text-muted: rgba(232, 239, 255, 0.58);
  --accent: #246bfe;
  --accent-strong: #174ed6;
  --accent-soft: rgba(36, 107, 254, 0.18);
  --success: #29b979;
  --shadow: none;
  --radius-xl: 24px;
  --radius-lg: 14px;
  --max-content: 820px;
  --page-padding: 20px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background:
    linear-gradient(90deg, rgba(6, 11, 20, 0.82), rgba(6, 11, 20, 0.5)),
    url("/assets/quiz-background.png") center center / cover no-repeat fixed;
  color: var(--text-main);
  overflow-x: hidden;
}

button,
input,
label {
  font: inherit;
}

button,
label {
  -webkit-tap-highlight-color: transparent;
}

[hidden] {
  display: none !important;
}

.page-shell {
  min-height: 100vh;
  position: relative;
}

.page-shell::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(0, 0, 0, 0.18));
}

.quiz-layout {
  display: grid;
  grid-template-columns: minmax(0, var(--max-content));
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 100vh;
  padding: var(--page-padding);
  position: relative;
  z-index: 1;
}

.brand-panel {
  color: #ffffff;
  width: min(100%, var(--max-content));
  justify-self: center;
  padding-top: 1vh;
  text-align: center;
}

.brand-wordmark {
  display: block;
  width: min(280px, 72vw);
  height: auto;
  margin: 0 auto;
}


.quiz-intro {
  width: min(100%, var(--max-content));
  justify-self: center;
  text-align: center;
}

.quiz-page-title {
  max-width: 760px;
  margin: 0 auto;
  color: #ffffff;
  font-size: clamp(1.22rem, 2.05vw, 1.72rem);
  line-height: 1.08;
  letter-spacing: 0;
  text-shadow: 0 16px 36px rgba(0, 0, 0, 0.45);
}
.quiz-card {
  width: min(100%, var(--max-content));
  position: relative;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: none;
}

.quiz-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 16px;
  padding: 0 4px;
}

.eyebrow {
  margin: 0;
  color: #9cc4ff;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  font-size: 0.72rem;
  font-weight: 900;
}

.progress-block {
  flex: 0 0 240px;
}

.progress-block span {
  display: block;
  margin-bottom: 10px;
  text-align: right;
  color: var(--text-soft);
  font-size: 0.92rem;
  font-weight: 700;
}

.progress-track {
  width: 100%;
  height: 9px;
  background: rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  overflow: hidden;
}

.progress-bar {
  width: 14.28%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--success));
  transition: width 220ms ease;
}

.question-block {
  margin-bottom: 16px;
  padding: 0 4px;
}

.question-block h1 {
  margin: 0;
  color: var(--text-main);
  font-size: clamp(1.42rem, 2.15vw, 1.82rem);
  line-height: 1.14;
  letter-spacing: 0;
  text-wrap: balance;
  text-shadow: 0 16px 36px rgba(0, 0, 0, 0.45);
}

.question-prompt {
  margin: 14px 0 0;
  color: var(--text-soft);
  font-size: 1.02rem;
  line-height: 1.6;
}

.answers-list {
  display: grid;
  gap: 8px;
}

.answer-option {
  position: relative;
}

.answer-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.answer-card {
  display: grid;
  grid-template-columns: 40px 1fr;
  align-items: center;
  gap: 15px;
  min-height: 54px;
  padding: 10px 14px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.18);
  background:
    linear-gradient(135deg, rgba(10, 18, 32, 0.7), rgba(10, 18, 32, 0.44)),
    rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(16px) saturate(1.12);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.16);
  cursor: pointer;
  transition:
    border-color 180ms ease,
    transform 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease;
}

.answer-card:hover {
  transform: translateY(-1px);
  border-color: rgba(127, 178, 255, 0.54);
  background:
    linear-gradient(135deg, rgba(18, 33, 58, 0.82), rgba(12, 26, 48, 0.56)),
    rgba(255, 255, 255, 0.07);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
}

.answer-option input:focus-visible + .answer-card {
  outline: 3px solid rgba(36, 107, 254, 0.26);
  outline-offset: 3px;
}

.answer-option input:checked + .answer-card {
  border-color: rgba(104, 215, 255, 0.78);
  background:
    linear-gradient(135deg, rgba(36, 107, 254, 0.48), rgba(41, 185, 121, 0.24)),
    rgba(12, 22, 40, 0.68);
  box-shadow:
    0 16px 34px rgba(36, 107, 254, 0.22),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.answer-marker {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.24);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  color: #d9e8ff;
  background: rgba(255, 255, 255, 0.08);
}

.answer-text {
  font-size: 1rem;
  line-height: 1.45;
  color: rgba(248, 251, 255, 0.92);
}

.quiz-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 16px;
  padding: 0 4px;
}

.button {
  min-width: 156px;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 12px;
  border: 1px solid transparent;
  cursor: pointer;
  font-weight: 900;
  transition:
    opacity 180ms ease,
    transform 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.button:hover:not(:disabled) {
  transform: translateY(-1px);
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.button-primary {
  background: linear-gradient(135deg, #2f79ff, #20b987);
  color: #ffffff;
  box-shadow: 0 16px 30px rgba(36, 107, 254, 0.28);
}

.button-primary:hover:not(:disabled) {
  background: linear-gradient(135deg, #1f66ee, #1aa578);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
  color: var(--text-main);
}

.email-card {
  max-width: 620px;
  padding: 0;
}

.email-form {
  display: grid;
  gap: 8px;
}

.email-form label {
  color: var(--text-main);
  font-weight: 900;
}

.email-form input {
  width: 100%;
  min-height: 56px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-main);
  padding: 0 16px;
  outline: none;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.email-form input:focus {
  border-color: rgba(104, 215, 255, 0.78);
  box-shadow: 0 0 0 4px rgba(36, 107, 254, 0.16);
}

.email-form input::placeholder {
  color: rgba(232, 239, 255, 0.48);
}

.email-form .button {
  width: fit-content;
  margin-top: 8px;
}

.form-error {
  min-height: 22px;
  margin: 0;
  color: #bd2f3a;
  font-size: 0.92rem;
  font-weight: 800;
}

.stats-layout {
  min-height: 100vh;
  padding: 32px;
  background:
    linear-gradient(90deg, rgba(6, 11, 20, 0.82), rgba(6, 11, 20, 0.5)),
    url("/assets/quiz-background.png") center center / cover no-repeat fixed;
  color: var(--text-main);
}

.stats-shell {
  width: min(100%, 1120px);
  margin: 0 auto;
}

.stats-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.stats-header h1 {
  margin: 0;
  font-size: 2rem;
}

.stats-header p {
  margin: 8px 0 0;
  color: var(--text-soft);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.stats-card {
  background:
    linear-gradient(135deg, rgba(10, 18, 32, 0.74), rgba(10, 18, 32, 0.48)),
    rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  padding: 18px;
  backdrop-filter: blur(16px) saturate(1.12);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.16);
}

.stats-card strong {
  display: block;
  font-size: 2rem;
  margin-top: 8px;
}

.stats-table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(10, 18, 32, 0.74), rgba(10, 18, 32, 0.48)),
    rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(16px) saturate(1.12);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.16);
}

.stats-table th,
.stats-table td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  text-align: left;
  vertical-align: top;
}

.stats-table th {
  color: var(--text-soft);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.stats-table tr:last-child td {
  border-bottom: 0;
}

@media (max-width: 1080px) {
  .quiz-layout {
    grid-template-columns: 1fr;
    align-items: center;
  }

  .brand-panel {
    max-width: var(--max-content);
    width: min(100%, var(--max-content));
    justify-self: center;
    align-self: auto;
    padding-top: 0;
  }

  .brand-wordmark {
    margin-bottom: 24px;
  }
}

@media (max-width: 760px) {
  :root {
    --page-padding: 16px;
  }

  body {
    background-attachment: scroll;
  }

  .quiz-layout {
    gap: 20px;
    min-height: auto;
  }

  .brand-wordmark {
    width: min(100%, 250px);
    margin-bottom: 18px;
  }

  
.quiz-card {
    padding: 0;
  }

  .quiz-card__top {
    flex-direction: column;
    margin-bottom: 24px;
  }

  .progress-block {
    width: 100%;
    flex-basis: auto;
  }

  .progress-block span {
    text-align: left;
  }

  .question-block h1 {
    font-size: 1.48rem;
  }

  .answer-card {
    grid-template-columns: 36px 1fr;
    min-height: 70px;
    padding: 15px;
  }

  .answer-marker {
    width: 36px;
    height: 36px;
  }

  .quiz-actions {
    flex-direction: column-reverse;
  }

  .button,
  .email-form .button {
    width: 100%;
  }

  .stats-layout {
    padding: 18px;
  }

  .stats-header {
    display: block;
  }

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

  .stats-table {
    display: block;
    overflow-x: auto;
  }
}






.home-return {
  position: fixed;
  left: 22px;
  bottom: 20px;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid rgba(36, 213, 221, 0.58);
  border-radius: 6px;
  background: rgba(7, 14, 24, 0.72);
  color: #c6fbff;
  font-size: 0.86rem;
  font-weight: 800;
  text-decoration: none;
  backdrop-filter: blur(12px);
}


@media (min-width: 761px) {
  html,
  body {
    overflow: hidden;
  }
}


