@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/5lwxU42g80sx.woff2") format("woff2");
}

:root {
  --bg: #000000;
  --card: #111827;
  --card-alt: #1f2937;
  --border: #1f2937;
  --border-soft: #374151;
  --text: #ffffff;
  --muted: #9ca3af;
  --muted-2: #d1d5db;
  --red: #dc2626;
  --red-strong: #ef4444;
  --green: #22c55e;
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

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

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

button,
input {
  font: inherit;
}

button {
  border: 0;
  background: transparent;
  color: inherit;
}

.app {
  min-height: 100vh;
}

.screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.container {
  width: 100%;
  max-width: 48rem;
  margin: 0 auto;
}

.container-narrow {
  width: 100%;
  max-width: 42rem;
  margin: 0 auto;
}

.container-wide {
  width: 100%;
  max-width: 56rem;
  margin: 0 auto;
}

.progress-wrap {
  width: 100%;
  margin-bottom: 32px;
}

.header-center {
  text-align: center;
  margin-bottom: 24px;
}

.title-main {
  margin: 0 0 8px;
  font-size: 2rem;
  line-height: 1.2;
  font-weight: 700;
}

.title-main span,
.title-accent,
.text-red {
  color: var(--red-strong);
}

.subtitle {
  margin: 0;
  color: var(--muted);
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: var(--card-alt);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 16px;
}

.progress-fill {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(to right, var(--red), var(--red-strong));
  transition: width 0.5s ease;
}

.progress-label {
  text-align: center;
  color: var(--muted);
  font-size: 0.875rem;
}

.card {
  width: 100%;
  max-width: 42rem;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow);
  animation: slideIn 0.35s ease;
}

.card-gradient {
  background: linear-gradient(to bottom, #111827, #000000);
}

.question-title {
  margin: 0 0 24px;
  text-align: center;
  font-size: 1.5rem;
  line-height: 1.35;
  font-weight: 700;
}

.options {
  display: grid;
  gap: 12px;
  margin-bottom: 24px;
}

.option {
  width: 100%;
  padding: 16px;
  border: 2px solid var(--border-soft);
  border-radius: var(--radius-md);
  background: var(--card-alt);
  color: var(--muted-2);
  text-align: left;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.option:hover {
  border-color: #4b5563;
  background: #374151;
}

.option.selected {
  border-color: var(--red-strong);
  background: rgba(239, 68, 68, 0.1);
  color: var(--text);
}

.option-content {
  display: flex;
  align-items: center;
}

.radio {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-right: 12px;
  border: 2px solid #6b7280;
  border-radius: 999px;
  position: relative;
}

.option.selected .radio {
  border-color: var(--red-strong);
  background: var(--red-strong);
}

.option.selected .radio::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 999px;
  background: #ffffff;
}

.option-label {
  font-size: 1rem;
}

.actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.ghost-btn {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  color: var(--muted);
  transition: color 0.2s ease;
}

.ghost-btn:hover {
  color: var(--text);
}

.primary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 8px;
  background: var(--red);
  color: var(--text);
  font-weight: 500;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.primary-btn:hover {
  background: #b91c1c;
}

.primary-btn:disabled {
  background: #374151;
  color: #9ca3af;
  cursor: not-allowed;
  transform: none;
}

.icon-arrow {
  width: 16px;
  height: 16px;
  margin-left: 8px;
  flex-shrink: 0;
}

.icon-arrow-left {
  width: 16px;
  height: 16px;
  margin-right: 8px;
  flex-shrink: 0;
}

.input-wrap {
  margin-bottom: 24px;
}

.input-relative {
  position: relative;
}

.height-input {
  width: 100%;
  padding: 16px;
  border: 2px solid var(--border-soft);
  border-radius: var(--radius-md);
  background: var(--card-alt);
  color: var(--text);
  text-align: center;
  font-size: 1.5rem;
  font-weight: 700;
  outline: none;
  transition: border-color 0.2s ease;
}

.height-input::placeholder {
  color: var(--muted);
}

.height-input:focus {
  border-color: var(--red-strong);
}

.cm-label {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 1.125rem;
}

.helper {
  margin: 12px 0 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.875rem;
}

.notice {
  margin-bottom: 24px;
  padding: 16px;
  background: var(--card-alt);
  border-radius: 8px;
}

.notice p {
  margin: 0;
  text-align: center;
  color: var(--muted-2);
  font-size: 0.875rem;
}

.notice strong {
  color: var(--red-strong);
}

.analysis-title {
  margin: 0 0 16px;
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
}

.analysis-subtitle {
  margin: 0;
  text-align: center;
  color: var(--muted-2);
  font-size: 1.125rem;
}

.analysis-head {
  margin-bottom: 32px;
}

.analysis-progress-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
  font-size: 0.875rem;
  font-weight: 500;
}

.analysis-progress-header span:first-child {
  color: var(--muted-2);
}

.analysis-progress-header span:last-child {
  color: var(--red-strong);
}

.analysis-bar {
  width: 100%;
  height: 12px;
  background: #374151;
  border-radius: 999px;
  overflow: hidden;
}

.analysis-fill {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(to right, var(--red), var(--red-strong));
  transition: width 0.1s linear;
}

.steps {
  display: grid;
  gap: 12px;
}

.step {
  display: flex;
  align-items: center;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #374151;
  background: var(--card-alt);
  color: var(--muted);
  transition: all 0.3s ease;
}

.step.active,
.step.done {
  color: var(--text);
  background: rgba(127, 29, 29, 0.3);
  border-color: rgba(239, 68, 68, 0.3);
}

.step-dot {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-right: 12px;
  border-radius: 999px;
  background: #4b5563;
}

.step.active .step-dot {
  background: var(--red-strong);
  animation: pulse 1.2s infinite;
}

.step.done .step-dot {
  background: var(--green);
}

.spinner-wrap {
  margin-top: 24px;
  text-align: center;
}

.spinner {
  width: 24px;
  height: 24px;
  display: inline-block;
  border: 2px solid var(--red-strong);
  border-top-color: transparent;
  border-radius: 999px;
  animation: spin 2s linear infinite;
}

.spinner-text {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.75rem;
}

.result-head {
  margin-bottom: 24px;
  text-align: center;
}

.result-subtitle {
  margin: 0;
  color: var(--muted-2);
  font-size: 1.125rem;
}

.result-card {
  margin-bottom: 24px;
}

.result-big {
  text-align: center;
  margin-bottom: 24px;
}

.result-big h2 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
}

.result-big .cm {
  color: var(--red-strong);
  font-size: 1.875rem;
}

.result-big p {
  margin: 8px 0 0;
  color: var(--muted);
}

.result-comparison {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.mini-stat {
  width: 100%;
  background: var(--card-alt);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
}

.mini-stat strong,
.mini-stat p {
  display: block;
}

.mini-stat p {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 0.875rem;
}

.mini-stat strong {
  font-size: 1.5rem;
}

.mini-stat.highlight {
  background: linear-gradient(to right, #7f1d1d, #b91c1c);
}

.mini-stat.highlight p {
  color: #e5e7eb;
}

.compare-arrow {
  width: 32px;
  height: 32px;
  color: var(--red-strong);
  flex-shrink: 0;
}

.height-bar {
  position: relative;
  height: 64px;
  margin-bottom: 24px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--card-alt);
}

.height-half {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
  font-weight: 700;
}

.height-half.left {
  left: 0;
  background: #374151;
  border-right: 2px dashed rgba(255, 255, 255, 0.2);
}

.height-half.right {
  right: 0;
  background: linear-gradient(to right, #991b1b, #dc2626);
}

.height-center {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #ffffff;
  color: var(--red);
}

.info-box {
  display: flex;
  align-items: flex-start;
  margin-bottom: 16px;
  padding: 12px;
  border-radius: 8px;
  background: var(--card-alt);
}

.info-box:last-of-type {
  margin-bottom: 0;
}

.check-wrap {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-right: 12px;
  margin-top: 2px;
  border-radius: 999px;
  background: var(--red);
  color: var(--text);
}

.info-box p {
  margin: 0;
  color: var(--muted-2);
  font-size: 0.875rem;
}

.info-box strong {
  color: var(--text);
}

.result-cta {
  text-align: center;
}

.cta-btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 8px;
  background: var(--red);
  color: var(--text);
  font-size: 1.125rem;
  font-weight: 700;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.cta-btn:hover {
  background: #b91c1c;
  transform: scale(1.05);
}

.result-cta p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.75rem;
}

.hidden-placeholder {
  width: 0;
  height: 0;
}

svg {
  display: block;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(50px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeUpSoft {`r`n  from {`r`n    opacity: 0;`r`n    transform: translateY(16px);`r`n  }`r`n`r`n  to {`r`n    opacity: 1;`r`n    transform: translateY(0);`r`n  }`r`n}`r`n`r`n@keyframes fadeStepIn {`r`n  from {`r`n    opacity: 0;`r`n    transform: translateY(12px);`r`n  }`r`n`r`n  to {`r`n    opacity: 1;`r`n    transform: translateY(0);`r`n  }`r`n}`r`n`r`n@keyframes pulse {
  50% {
    opacity: 0.5;
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 767px) {
  .title-main,
  .analysis-title {
    font-size: 1.5rem;
  }

  .question-title {
    font-size: 1.25rem;
  }

  .option-label {
    font-size: 0.875rem;
  }

  .result-comparison {
    flex-direction: column;
  }

  .compare-arrow {
    transform: rotate(90deg);
  }
}
