:root {
  color-scheme: light;
  --accent: #f05d5e;
  --accent-dark: #c8424b;
  --bg: #f8f4f2;
  --ink: #171923;
  --muted: #667085;
  --line: rgba(23, 25, 35, 0.12);
  --surface: rgba(255, 255, 255, 0.94);
  --shadow: 0 18px 46px rgba(23, 25, 35, 0.13);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    "Microsoft YaHei",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.26) 48%, transparent),
    linear-gradient(135deg, color-mix(in srgb, var(--accent), #ffffff 74%), #eef6f4);
  color: var(--ink);
  letter-spacing: 0;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

img {
  display: block;
  max-width: 100%;
}

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

.mobile-shell {
  position: relative;
  width: min(100%, 430px);
  min-height: 100vh;
  margin: 0 auto;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.32);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px 10px;
  background: rgba(255, 255, 255, 0.74);
  backdrop-filter: blur(16px);
}

.brand {
  display: grid;
  gap: 2px;
}

.brand span {
  color: var(--accent);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.brand strong {
  font-size: 17px;
  line-height: 1.2;
}

.icon-button {
  display: inline-grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 8px 20px rgba(23, 25, 35, 0.08);
}

.screen {
  padding: 12px 16px 24px;
}

.hero-cover {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.hero-cover img {
  width: 100%;
  aspect-ratio: 5 / 3;
  object-fit: cover;
}

.ticket {
  position: absolute;
  right: 12px;
  bottom: 12px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 8px;
  padding: 9px 11px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 10px 28px rgba(23, 25, 35, 0.12);
  backdrop-filter: blur(12px);
}

.ticket span {
  display: block;
  color: var(--accent);
  font-size: 11px;
  font-weight: 900;
}

.ticket strong {
  font-size: 16px;
}

.content-stack {
  display: grid;
  gap: 14px;
  margin-top: 14px;
}

.panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.eyebrow {
  margin-bottom: 7px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.title {
  margin-bottom: 10px;
  font-size: 30px;
  line-height: 1.08;
}

.lead {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.72;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  border: 1px solid rgba(23, 25, 35, 0.08);
  border-radius: 8px;
  padding: 5px 10px;
  background: #fff;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.gate-form {
  display: grid;
  gap: 10px;
}

.gate-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.gate-form input {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 13px;
  background: #fff;
  color: var(--ink);
  text-transform: uppercase;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 8px;
  padding: 12px 15px;
  font-weight: 900;
}

.primary-button {
  border: 1px solid transparent;
  background: var(--ink);
  color: #fff;
  box-shadow: 0 14px 26px rgba(23, 25, 35, 0.16);
}

.secondary-button {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.88);
  color: var(--ink);
}

.button-grid {
  display: grid;
  gap: 9px;
}

.mini-note {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.progress-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
}

.progress-head strong {
  font-size: 14px;
}

.progress-head span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.progress-track {
  overflow: hidden;
  height: 8px;
  border-radius: 8px;
  background: rgba(23, 25, 35, 0.09);
}

.progress-bar {
  height: 100%;
  border-radius: 8px;
  background: var(--accent);
  transition: width 180ms ease;
}

.question {
  margin: 18px 0 16px;
  font-size: 25px;
  line-height: 1.34;
}

.answer-list {
  display: grid;
  gap: 10px;
}

.answer-button {
  width: 100%;
  min-height: 62px;
  border: 1px solid rgba(23, 25, 35, 0.1);
  border-radius: 8px;
  padding: 14px;
  background: #fff;
  color: var(--ink);
  text-align: left;
  line-height: 1.52;
  box-shadow: 0 8px 22px rgba(23, 25, 35, 0.06);
}

.answer-button:active,
.primary-button:active,
.secondary-button:active,
.icon-button:active {
  transform: translateY(1px);
}

.result-hero {
  overflow: hidden;
  border-radius: 8px;
  padding: 22px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.22), transparent 42%),
    linear-gradient(135deg, var(--accent), #202936);
  color: #fff;
  box-shadow: var(--shadow);
}

.result-hero .eyebrow {
  color: rgba(255, 255, 255, 0.84);
}

.result-name {
  margin-bottom: 10px;
  font-size: 36px;
  line-height: 1.08;
}

.result-hero p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.84);
  line-height: 1.68;
}

.section-title {
  margin-bottom: 10px;
  font-size: 18px;
}

.list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.62;
}

.report-section {
  display: grid;
  gap: 10px;
  border-top: 1px solid rgba(23, 25, 35, 0.08);
  padding-top: 14px;
}

.report-section:first-child {
  border-top: 0;
  padding-top: 0;
}

.locked {
  border: 1px dashed color-mix(in srgb, var(--accent), #ffffff 35%);
  background: color-mix(in srgb, var(--accent), #ffffff 92%);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 18px;
  z-index: 20;
  width: min(92vw, 380px);
  transform: translate(-50%, 80px);
  border-radius: 8px;
  padding: 12px 14px;
  background: #171923;
  color: #fff;
  opacity: 0;
  box-shadow: var(--shadow);
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.is-visible {
  transform: translate(-50%, 0);
  opacity: 1;
}

@media (min-width: 560px) {
  body {
    padding: 18px 0;
  }

  .mobile-shell {
    min-height: calc(100vh - 36px);
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    box-shadow: 0 24px 80px rgba(23, 25, 35, 0.16);
  }
}
