﻿:root {
  color-scheme: light dark;
  --bg: #f5f6f8;
  --panel: #ffffffcc;
  --panel-dark: #101218dd;
  --text: #101828;
  --muted: #667085;
  --accent: #ff7d4a;
  --accent-strong: #db3a34;
  --border: #d0d5dd;
  --option-bg: #f8fafc;
  --option-border: #e4e7ec;
  --option-hover: #fff1e7;
  --card-shadow: 0 20px 55px rgba(15, 23, 42, 0.12);
  font-family: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
  font-synthesis: none;
  padding: 24px;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(255, 198, 124, 0.35), transparent 45%),
    radial-gradient(circle at 80% 0%, rgba(96, 165, 250, 0.35), transparent 40%);
  z-index: -1;
}

.hero {
  max-width: 960px;
  margin: 0 auto 32px;
  padding: 32px;
  background: var(--panel);
  border-radius: 28px;
  box-shadow: var(--card-shadow);
  backdrop-filter: blur(12px);
}

.hero h1 {
  font-family: 'Space Grotesk', 'Noto Sans SC', sans-serif;
  font-weight: 600;
  font-size: clamp(28px, 4vw, 44px);
  margin: 16px 0;
}

.hero__badge {
  display: inline-flex;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  background: rgba(16, 24, 40, 0.08);
  letter-spacing: 0.08em;
}

.hero__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 24px 0 12px;
}

button {
  font-family: inherit;
  font-size: 15px;
  border-radius: 14px;
  border: none;
  padding: 12px 20px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

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

button.ghost {
  background: transparent;
  border: 1px solid rgba(16, 24, 40, 0.18);
  color: var(--text);
}

button:not(.ghost) {
  background: linear-gradient(120deg, var(--accent), var(--accent-strong));
  color: #fff;
  box-shadow: 0 10px 30px rgba(255, 125, 74, 0.35);
}

main {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.panel {
  background: var(--panel);
  border-radius: 28px;
  padding: 32px;
  box-shadow: var(--card-shadow);
  backdrop-filter: blur(12px);
}

.panel--quiz {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.progress {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.progress__label {
  font-size: 14px;
  color: var(--muted);
}

.progress__bar {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: rgba(16, 24, 40, 0.08);
  overflow: hidden;
}

.progress__fill {
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(120deg, var(--accent), var(--accent-strong));
  transition: width 0.4s ease;
}

.question-stage {
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 24px;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.question-stage h2 {
  margin: 0;
  font-size: 20px;
}

.options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.option {
  position: relative;
}

.option input {
  position: absolute;
  opacity: 0;
}

.option label {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--option-border);
  background: var(--option-bg);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.option-letter {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: rgba(16, 24, 40, 0.08);
  display: grid;
  place-items: center;
  font-weight: 600;
}

.option input:checked + label {
  border-color: var(--accent);
  background: var(--option-hover);
  box-shadow: 0 5px 18px rgba(255, 125, 74, 0.25);
}

.option label:hover {
  border-color: var(--accent);
}

.nav-controls {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.results h3 {
  margin-top: 0;
}

.result-identity {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.result-kicker {
  font-size: 14px;
  letter-spacing: 0.2em;
  color: var(--muted);
  margin: 0;
}

.bird-name {
  font-size: clamp(32px, 6vw, 48px);
  margin: 0;
}

.bird-english {
  margin: 0;
  font-size: 18px;
  font-style: italic;
  color: var(--muted);
}

.bird-visual {
  width: 100%;
  min-height: 160px;
  border-radius: 24px;
  background: rgba(16, 24, 40, 0.06);
  display: grid;
  place-items: center;
  font-size: 14px;
  color: var(--muted);
  border: 1px dashed rgba(16, 24, 40, 0.2);
}

.bird-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  display: block;
}
.bird-tagline {
  font-size: 18px;
  margin: 0;
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 24px;
}

.dimension-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dimension-row {
  background: rgba(16, 24, 40, 0.04);
  border-radius: 12px;
  padding: 12px;
}

.dimension-head {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  margin-bottom: 6px;
}

.bar {
  height: 8px;
  border-radius: 999px;
  background: rgba(16, 24, 40, 0.15);
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(120deg, var(--accent), var(--accent-strong));
  transition: width 0.4s ease;
}

.coming-soon {
  font-size: 15px;
  color: var(--muted);
}

.bonus-note {
  margin-top: 20px;
  padding: 12px 16px;
  background: rgba(16, 24, 40, 0.05);
  border-radius: 12px;
  font-size: 14px;
}

.footer {
  text-align: center;
  margin-top: 24px;
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 640px) {
  body {
    padding: 16px;
  }
  .hero,
  .panel {
    padding: 20px;
  }
  button {
    width: 100%;
  }
  .nav-controls {
    flex-direction: column;
    align-items: stretch;
  }
}

.result-actions {
  margin-top: 24px;
  display: flex;
  justify-content: center;
}

.panel--quiz[hidden],
.results[hidden] {
  display: none;
}

.result-body {
  margin-top: 24px;
  font-size: 16px;
  line-height: 1.8;
  color: var(--text);
  white-space: pre-line;
}







