:root {
  --paper: #ffffff;
  --paper-soft: #f8fafd;
  --ink: #202124;
  --muted: #69707c;
  --faint: #eef1f6;
  --blue: #4285f4;
  --red: #ea4335;
  --yellow: #fbbc04;
  --green: #34a853;
  --hero-opacity: 1;
  --second-opacity: 0;
  --second-y: 44px;
  --hub-row-1: 0;
  --hub-row-2: 0;
  --hub-row-scale-1: 0.96;
  --hub-row-scale-2: 0.96;
  --viewport-height: 100vh;
}

@supports (height: 100lvh) {
  :root {
    --viewport-height: 100lvh;
  }
}

* {
  box-sizing: border-box;
}

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

html {
  background: var(--paper);
  scrollbar-width: none;
}

body {
  margin: 0;
  min-height: var(--viewport-height);
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  letter-spacing: 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

body.life-signs-open {
  overflow: hidden;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.scroll-scene {
  position: relative;
  min-height: calc(var(--viewport-height) * 2);
  background: var(--paper);
}

.home {
  position: sticky;
  top: 0;
  z-index: 1;
  isolation: isolate;
  display: grid;
  height: var(--viewport-height);
  place-items: center;
  overflow: hidden;
  padding: 120px 32px 104px;
  background:
    radial-gradient(circle at 50% 2%, rgba(66, 133, 244, 0.07), transparent 28%),
    linear-gradient(180deg, #ffffff 0%, #ffffff 64%, #fafbfe 100%),
    var(--paper);
}

.particle-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero-lockup {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 20px;
  width: min(900px, 100%);
  text-align: center;
  opacity: var(--hero-opacity);
  will-change: opacity;
}

.sentence {
  width: min(760px, 100%);
  margin: 0;
  color: var(--ink);
  font-size: 34px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-wrap: balance;
}

.home-description {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
  text-wrap: balance;
}

.scroll-hint {
  position: absolute;
  bottom: max(70px, calc(52px + env(safe-area-inset-bottom)));
  left: 50%;
  z-index: 2;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.4;
  opacity: var(--hero-opacity);
  transform: translateX(-50%);
  pointer-events: none;
  will-change: opacity;
}

.scroll-hint span {
  display: inline-block;
  animation: scroll-hint-breathe 2.4s ease-in-out infinite;
  will-change: opacity, transform;
}

@keyframes scroll-hint-breathe {
  0%,
  100% {
    opacity: 0.32;
    transform: scale(1);
  }

  50% {
    opacity: 0.64;
    transform: scale(1.01);
  }
}

.second-screen {
  position: relative;
  z-index: 2;
  display: grid;
  min-height: var(--viewport-height);
  place-items: center;
  overflow: hidden;
  padding: 116px 32px 128px;
  background: transparent;
}

.second-core {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 28px;
  justify-items: center;
  width: min(680px, 100%);
  opacity: var(--second-opacity);
  transform: translateY(var(--second-y));
  will-change: opacity, transform;
}

.second-kicker {
  margin: 0;
  color: #9aa0a6;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.4;
}

.second-title {
  width: min(660px, 100%);
  margin: 0;
  color: var(--ink);
  font-size: 30px;
  font-weight: 650;
  line-height: 1.25;
  text-align: center;
  text-wrap: balance;
}

.second-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: 14px;
  width: 100%;
}

@property --second-card-shine-angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

.second-card {
  --second-card-shine-angle: 0deg;
  --hub-card-hover-scale: 1;
  --hub-card-press-y: 0;

  position: relative;
  isolation: isolate;
  display: grid;
  align-content: start;
  min-height: 128px;
  margin: 0;
  padding: 18px;
  border-radius: 8px;
  border: 0;
  background: transparent;
  cursor: pointer;
  opacity: var(--hub-card-opacity, 0);
  overflow: visible;
  scale: var(--hub-card-hover-scale);
  touch-action: manipulation;
  translate: 0 var(--hub-card-press-y);
  transform: scale(var(--hub-card-scale, 0.96));
  transform-origin: center center;
  transition:
    scale 220ms ease,
    translate 120ms ease;
  -webkit-tap-highlight-color: transparent;
  will-change: opacity, transform, scale, translate;
}

.second-card-button {
  appearance: none;
  color: inherit;
  font: inherit;
  text-align: left;
}

.second-card::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  border: 1px solid rgba(60, 64, 67, 0.1);
  border-radius: inherit;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 18px 54px rgba(60, 64, 67, 0.06);
  content: "";
  pointer-events: none;
  transition:
    border-color 220ms ease,
    background-color 220ms ease,
    box-shadow 220ms ease;
}

.second-card::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  padding: 2px;
  border-radius: inherit;
  background:
    conic-gradient(
      from var(--second-card-shine-angle),
      rgba(255, 255, 255, 0) 0deg,
      rgba(255, 255, 255, 0) 202deg,
      rgba(206, 231, 255, 0.16) 220deg,
      rgba(185, 222, 255, 0.46) 244deg,
      rgba(232, 245, 255, 0.9) 272deg,
      rgba(185, 222, 255, 0.46) 300deg,
      rgba(206, 231, 255, 0.16) 330deg,
      rgba(255, 255, 255, 0) 352deg,
      rgba(255, 255, 255, 0) 360deg
    );
  content: "";
  filter:
    drop-shadow(0 0 5px rgba(185, 222, 255, 0.46))
    drop-shadow(0 0 13px rgba(185, 222, 255, 0.26));
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  mask-composite: exclude;
}

@keyframes second-card-border-shine {
  to {
    --second-card-shine-angle: 360deg;
  }
}

@media (hover: hover) and (pointer: fine) {
  .second-card:hover {
    --hub-card-hover-scale: 1.026;

    z-index: 2;
  }

  .second-card:hover::before {
    border-color: rgba(185, 222, 255, 0.3);
    background-color: rgba(255, 255, 255, 0.92);
    box-shadow:
      0 8px 28px rgba(60, 64, 67, 0.075),
      0 16px 44px rgba(185, 222, 255, 0.14),
      0 0 30px rgba(185, 222, 255, 0.1),
      0 0 0 1px rgba(255, 255, 255, 0.5);
  }

  .second-card:hover::after {
    animation: second-card-border-shine 2.4s linear infinite;
    opacity: 1;
  }

}

.second-card:active {
  --hub-card-hover-scale: 0.996;
  --hub-card-press-y: 2px;
}

.second-card:active::before {
  background-color: rgba(255, 255, 255, 0.96);
  box-shadow:
    0 6px 18px rgba(60, 64, 67, 0.12),
    0 0 0 1px rgba(255, 255, 255, 0.58);
}

.second-card:active::after {
  animation: second-card-border-shine 2.4s linear infinite;
  filter:
    drop-shadow(0 0 7px rgba(185, 222, 255, 0.54))
    drop-shadow(0 0 15px rgba(185, 222, 255, 0.32));
  opacity: 1;
}

.second-card:focus-visible {
  outline: 2px solid rgba(32, 33, 36, 0.82);
  outline-offset: 4px;
}

.second-card:nth-child(1) {
  --hub-card-opacity: var(--hub-row-1);
  --hub-card-scale: var(--hub-row-scale-1);
}

.second-card:nth-child(2) {
  --hub-card-opacity: var(--hub-row-1);
  --hub-card-scale: var(--hub-row-scale-1);
}

.second-card:nth-child(3) {
  --hub-card-opacity: var(--hub-row-1);
  --hub-card-scale: var(--hub-row-scale-1);
}

.second-card:nth-child(4) {
  --hub-card-opacity: var(--hub-row-2);
  --hub-card-scale: var(--hub-row-scale-2);
}

.second-card:nth-child(5) {
  --hub-card-opacity: var(--hub-row-2);
  --hub-card-scale: var(--hub-row-scale-2);
}

.second-card:nth-child(6) {
  --hub-card-opacity: var(--hub-row-2);
  --hub-card-scale: var(--hub-row-scale-2);
}

.second-card h3,
.second-card-title {
  display: block;
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 650;
  line-height: 1.3;
}

.second-card p,
.second-card-text {
  display: block;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.second-card-link {
  color: inherit;
  text-decoration: none;
}

.quiz-page {
  display: grid;
  min-height: var(--viewport-height);
  padding: 56px 32px 112px;
  background:
    radial-gradient(circle at 50% 0%, rgba(32, 33, 36, 0.035), transparent 32%),
    linear-gradient(180deg, #ffffff 0%, #ffffff 58%, #fafbfe 100%),
    var(--paper);
}

.quiz-layout {
  display: grid;
  grid-template-columns: minmax(288px, 398px) minmax(0, 1fr);
  gap: 34px;
  align-items: start;
  width: min(1320px, 100%);
  margin: 0 auto;
}

.quiz-panel,
.quiz-main-panel {
  border: 1px solid rgba(60, 64, 67, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow:
    0 22px 70px rgba(60, 64, 67, 0.07),
    0 1px 0 rgba(255, 255, 255, 0.84) inset;
}

.quiz-panel {
  display: grid;
  gap: 24px;
  padding: 26px 28px 28px;
}

.quiz-brand {
  display: grid;
  gap: 10px;
}

.quiz-brand h1,
.quiz-brand p,
.quiz-control-group h2,
.quiz-control-group p,
.quiz-session-stat p,
.quiz-session-stat strong,
.quiz-question-head p,
.quiz-empty-state p,
.quiz-question-title,
.quiz-result-title,
.quiz-result-subtitle,
.quiz-detail-question,
.quiz-detail-meta {
  margin: 0;
}

.quiz-brand h1 {
  color: var(--ink);
  font-size: 40px;
  font-weight: 650;
  line-height: 1.05;
}

.quiz-brand p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.quiz-control-group {
  display: grid;
  gap: 12px;
  padding-top: 2px;
}

.quiz-control-group + .quiz-control-group {
  padding-top: 22px;
  border-top: 1px solid rgba(32, 33, 36, 0.08);
}

.quiz-control-group h2 {
  color: var(--ink);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.4;
}

.quiz-chip-grid,
.quiz-count-grid {
  display: grid;
  gap: 10px;
}

.quiz-chip-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.quiz-count-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.quiz-chip {
  appearance: none;
  min-width: 0;
  min-height: 44px;
  padding: 9px 12px;
  border: 1px solid rgba(60, 64, 67, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.68);
  color: #3c4043;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.2;
  text-align: center;
  touch-action: manipulation;
  transition:
    border-color 160ms ease,
    background-color 160ms ease,
    box-shadow 160ms ease,
    color 160ms ease,
    transform 120ms ease;
  -webkit-tap-highlight-color: transparent;
}

.quiz-chip:hover,
.quiz-chip:focus-visible {
  border-color: rgba(32, 33, 36, 0.28);
  color: var(--ink);
}

.quiz-chip:focus-visible,
.quiz-primary-button:focus-visible,
.quiz-secondary-button:focus-visible,
.quiz-choice:focus-visible,
.quiz-plain-button:focus-visible,
.quiz-submit-button:focus-visible,
.quiz-detail-button:focus-visible {
  outline: 2px solid rgba(32, 33, 36, 0.74);
  outline-offset: 3px;
}

.quiz-chip:active,
.quiz-primary-button:active,
.quiz-secondary-button:active,
.quiz-choice:active,
.quiz-plain-button:active,
.quiz-submit-button:active,
.quiz-detail-button:active {
  transform: translateY(1px);
}

.quiz-chip.is-selected {
  border-color: rgba(32, 33, 36, 0.9);
  background: var(--ink);
  color: #ffffff;
  box-shadow:
    0 10px 24px rgba(32, 33, 36, 0.12),
    0 0 0 1px rgba(255, 255, 255, 0.7) inset;
}

.quiz-chip:disabled:not(.is-selected) {
  cursor: not-allowed;
  opacity: 0.48;
  transform: none;
}

.quiz-chip.is-selected:disabled {
  cursor: not-allowed;
  opacity: 1;
  transform: none;
}

.quiz-static-value {
  min-height: 44px;
  padding: 12px 14px;
  border: 1px solid rgba(60, 64, 67, 0.1);
  border-radius: 8px;
  color: #5f6368;
  font-size: 14px;
  line-height: 1.35;
  background: rgba(255, 255, 255, 0.62);
}

.quiz-session-stat {
  display: grid;
  gap: 8px;
  padding-top: 22px;
  border-top: 1px solid rgba(32, 33, 36, 0.08);
}

.quiz-session-stat p {
  color: #7d828a;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.4;
}

.quiz-session-stat strong {
  color: var(--ink);
  font-size: 32px;
  font-weight: 650;
  line-height: 1.1;
  letter-spacing: 0;
}

.quiz-actions {
  display: grid;
  gap: 12px;
}

.quiz-primary-button,
.quiz-secondary-button,
.quiz-plain-button,
.quiz-submit-button,
.quiz-detail-button {
  appearance: none;
  min-width: 0;
  min-height: 48px;
  border-radius: 8px;
  cursor: pointer;
  font: inherit;
  font-size: 15px;
  font-weight: 650;
  line-height: 1.2;
  touch-action: manipulation;
  transition:
    border-color 160ms ease,
    background-color 160ms ease,
    box-shadow 160ms ease,
    color 160ms ease,
    opacity 160ms ease,
    transform 120ms ease;
  -webkit-tap-highlight-color: transparent;
}

.quiz-primary-button,
.quiz-submit-button,
.quiz-detail-button {
  border: 1px solid rgba(32, 33, 36, 0.92);
  background: var(--ink);
  color: #ffffff;
  box-shadow: 0 16px 34px rgba(32, 33, 36, 0.16);
}

.quiz-secondary-button,
.quiz-plain-button {
  border: 1px solid rgba(60, 64, 67, 0.1);
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
}

.quiz-primary-button:hover,
.quiz-submit-button:hover,
.quiz-detail-button:hover {
  background: #111317;
  box-shadow: 0 18px 42px rgba(32, 33, 36, 0.2);
}

.quiz-secondary-button:hover,
.quiz-plain-button:hover {
  border-color: rgba(32, 33, 36, 0.18);
  background: rgba(255, 255, 255, 0.94);
}

.quiz-primary-button:disabled,
.quiz-secondary-button:disabled,
.quiz-plain-button:disabled,
.quiz-submit-button:disabled,
.quiz-detail-button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
  transform: none;
}

.quiz-main-panel {
  display: grid;
  gap: 28px;
  min-height: min(720px, calc(var(--viewport-height) - 144px));
  padding: 30px 34px;
}

.quiz-question-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.quiz-eyebrow {
  color: var(--ink);
  font-size: 18px;
  font-weight: 650;
  line-height: 1.4;
}

.quiz-main-time {
  flex: 0 0 auto;
  color: var(--ink);
  font-size: 18px;
  font-weight: 650;
  line-height: 1.3;
  white-space: nowrap;
}

.quiz-progress-track {
  width: 100%;
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(32, 33, 36, 0.08);
}

.quiz-progress-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--ink);
  transition: width 220ms ease;
}

.quiz-stage {
  display: grid;
  align-content: start;
  gap: 28px;
  min-height: 420px;
}

.quiz-empty-state {
  display: grid;
  gap: 8px;
  align-content: center;
  min-height: 340px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}

.quiz-question-title {
  color: var(--ink);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.75;
  text-wrap: balance;
}

.quiz-choice-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.quiz-choice {
  appearance: none;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  width: 100%;
  min-height: 68px;
  padding: 14px 18px;
  border: 1px solid rgba(60, 64, 67, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  text-align: left;
  touch-action: manipulation;
  transition:
    border-color 160ms ease,
    background-color 160ms ease,
    box-shadow 160ms ease,
    transform 120ms ease;
  -webkit-tap-highlight-color: transparent;
}

.quiz-choice:hover {
  border-color: rgba(32, 33, 36, 0.24);
  background: rgba(255, 255, 255, 0.94);
}

.quiz-choice.is-selected {
  border-color: rgba(32, 33, 36, 0.92);
  background: rgba(255, 255, 255, 0.98);
  box-shadow:
    0 12px 32px rgba(32, 33, 36, 0.08),
    0 0 0 1px rgba(32, 33, 36, 0.72) inset;
}

.quiz-choice-letter {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  background: rgba(32, 33, 36, 0.06);
  color: var(--ink);
  font-size: 16px;
  font-weight: 650;
  line-height: 1;
}

.quiz-choice.is-selected .quiz-choice-letter {
  background: var(--ink);
  color: #ffffff;
}

.quiz-choice-text {
  min-width: 0;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.55;
}

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

.quiz-plain-button {
  min-width: 150px;
  padding: 0 20px;
}

.quiz-submit-button,
.quiz-detail-button {
  min-width: 168px;
  padding: 0 24px;
}

.quiz-result {
  display: grid;
  gap: 22px;
  align-content: center;
  min-height: 420px;
}

.quiz-score {
  display: grid;
  gap: 8px;
}

.quiz-result-title {
  color: var(--ink);
  font-size: 42px;
  font-weight: 650;
  line-height: 1.1;
}

.quiz-result-subtitle {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
}

.quiz-result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.quiz-detail-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.quiz-detail-item {
  display: grid;
  gap: 12px;
  padding: 0 0 18px;
  border-bottom: 1px solid rgba(32, 33, 36, 0.08);
}

.quiz-detail-item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.quiz-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  color: #7d828a;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.5;
}

.quiz-detail-status {
  color: var(--ink);
}

.quiz-detail-status.is-correct {
  color: var(--green);
}

.quiz-detail-status.is-wrong {
  color: var(--red);
}

.quiz-detail-question {
  color: var(--ink);
  font-size: 16px;
  font-weight: 650;
  line-height: 1.65;
}

.quiz-detail-answers {
  display: grid;
  gap: 5px;
  color: #5f6368;
  font-size: 13px;
  line-height: 1.65;
}

.life-signs-shell {
  --life-origin-x: 50%;
  --life-origin-y: 50%;

  position: fixed;
  inset: 0;
  z-index: 20;
  pointer-events: none;
}

.life-signs-shell.is-open,
.life-signs-shell.is-closing {
  pointer-events: auto;
}

.life-signs-scrim {
  appearance: none;
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(255, 255, 255, 0.62);
  opacity: 0;
  backdrop-filter: blur(0);
  -webkit-backdrop-filter: blur(0);
  cursor: default;
  touch-action: manipulation;
  transition:
    opacity 180ms ease,
    backdrop-filter 220ms ease,
    -webkit-backdrop-filter 220ms ease;
  user-select: none;
  will-change: opacity, backdrop-filter;
  -webkit-tap-highlight-color: transparent;
}

.life-signs-scrim:focus {
  outline: none;
}

.life-signs-scrim:active {
  background: rgba(255, 255, 255, 0.62);
}

.life-signs-shell.is-open .life-signs-scrim {
  opacity: 1;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.life-signs-shell.is-closing .life-signs-scrim {
  opacity: 0;
  backdrop-filter: blur(0);
  -webkit-backdrop-filter: blur(0);
  transition-duration: 300ms, 360ms, 360ms;
  transition-timing-function: ease;
}

.life-signs-panel {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  gap: 22px;
  width: min(620px, calc(100vw - 48px));
  max-height: calc(var(--viewport-height) - 96px);
  padding: 22px;
  overflow: auto;
  scrollbar-width: none;
  border: 1px solid rgba(60, 64, 67, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow:
    0 28px 90px rgba(32, 33, 36, 0.12),
    0 1px 0 rgba(255, 255, 255, 0.84) inset;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.84);
  transform-origin: var(--life-origin-x) var(--life-origin-y);
  transition:
    opacity 220ms ease,
    transform 420ms cubic-bezier(0.16, 1, 0.3, 1);
  -ms-overflow-style: none;
}

.life-signs-panel::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.life-signs-shell.is-open .life-signs-panel {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.life-signs-panel:focus,
.life-signs-panel:focus-visible {
  outline: none;
}

.life-signs-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.life-signs-title,
.life-signs-subtitle,
.life-signs-section h3,
.life-signs-section p {
  margin: 0;
}

.life-signs-title {
  margin-top: 0;
  color: var(--ink);
  font-size: 26px;
  font-weight: 650;
  line-height: 1.2;
  text-wrap: balance;
}

.life-signs-subtitle {
  margin-top: 10px;
  color: #5f6368;
  font-size: 14px;
  line-height: 1.7;
}

.life-signs-close {
  display: grid;
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  place-items: start end;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: 22px;
  line-height: 1;
  touch-action: manipulation;
  transition: transform 180ms ease;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.life-signs-close-mark {
  position: relative;
  display: grid;
  width: 17px;
  height: 17px;
  place-items: center;
  line-height: 1;
  transform: rotate(0deg) scale(1);
  transform-origin: center;
  transition: transform 520ms cubic-bezier(0.19, 1, 0.22, 1);
  will-change: transform;
}

.life-signs-close-mark.is-active {
  transform: rotate(90deg) scale(0.96);
}

.life-signs-close-mark::before,
.life-signs-close-mark::after {
  position: absolute;
  width: 20px;
  height: 1.5px;
  border-radius: 999px;
  background: currentColor;
  content: "";
}

.life-signs-close-mark::before {
  transform: rotate(45deg);
}

.life-signs-close-mark::after {
  transform: rotate(-45deg);
}

.life-signs-close:focus {
  outline: none;
}

.life-signs-close:focus-visible {
  outline: 1px solid rgba(32, 33, 36, 0.28);
  outline-offset: 4px;
}

.life-signs-close:active {
  background: transparent;
  transform: scale(0.96);
}

.life-signs-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}

.life-signs-metrics div {
  min-width: 0;
  padding: 14px 0 0;
  border-top: 1px solid rgba(32, 33, 36, 0.12);
}

.life-signs-metrics dt {
  margin: 0 0 8px;
  color: #7d828a;
  font-size: 12px;
  line-height: 1.4;
}

.life-signs-metrics dd {
  margin: 0;
  color: var(--ink);
  font-size: 19px;
  font-weight: 650;
  line-height: 1.25;
  white-space: nowrap;
}

.life-signs-section {
  display: grid;
  gap: 12px;
  padding-top: 18px;
  border-top: 1px solid rgba(32, 33, 36, 0.1);
}

.life-signs-section h3 {
  color: var(--ink);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.4;
}

.life-signs-section p {
  color: #5f6368;
  font-size: 13px;
  line-height: 1.7;
}

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

.life-history-toggle {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  min-height: 32px;
  padding: 6px 2px 6px 12px;
  border: 0;
  background: transparent;
  color: #5f6368;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 650;
  line-height: 1;
  text-align: right;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.life-history-toggle::after {
  display: block;
  flex: 0 0 auto;
  width: 12px;
  height: 16px;
  margin-left: 0;
  color: #8b8f96;
  background: currentColor;
  content: "";
  line-height: 1;
  mask: url("data:image/svg+xml,%3Csvg width='12' height='16' viewBox='0 0 12 16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6 2.5v10M2.5 9.25 6 12.75l3.5-3.5' fill='none' stroke='black' stroke-width='1.25' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px 16px no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg width='12' height='16' viewBox='0 0 12 16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6 2.5v10M2.5 9.25 6 12.75l3.5-3.5' fill='none' stroke='black' stroke-width='1.25' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px 16px no-repeat;
  transform-origin: center;
  transition: transform 180ms ease;
}

.life-history-toggle[aria-expanded="true"]::after {
  transform: rotate(180deg);
}

.life-history-toggle:hover,
.life-history-toggle:focus-visible {
  color: var(--ink);
}

.life-history-toggle:focus {
  outline: none;
}

.life-history-toggle:active {
  background: transparent;
  color: #5f6368;
}

.life-history-toggle:focus-visible {
  outline: 1px solid rgba(32, 33, 36, 0.28);
  outline-offset: 3px;
}

.life-history-list {
  --history-dot-center: 5px;
  --history-dot-size: 5px;
  --history-dot-top: calc(var(--history-item-padding-top) + (var(--history-time-line-height) - var(--history-dot-size)) / 2);
  --history-item-padding-top: 8px;
  --history-line-width: 1px;
  --history-marker-width: 24px;
  --history-node-gap: 4px;
  --history-time-line-height: 18px;

  display: grid;
  gap: 0;
  padding: 0;
  margin: 0;
  list-style: none;
}

.life-history-list li {
  position: relative;
  display: grid;
  gap: 6px;
  padding: var(--history-item-padding-top) 0 14px var(--history-marker-width);
  color: var(--ink);
}

.life-history-list li[hidden] {
  display: none;
}

.life-history-list li::before {
  position: absolute;
  top: 0;
  left: var(--history-dot-center);
  width: var(--history-line-width);
  height: calc(var(--history-dot-top) - var(--history-node-gap));
  background: var(--ink);
  content: "";
  transform: translateX(-50%);
}

.life-history-list li::after {
  position: absolute;
  top: calc(var(--history-dot-top) + var(--history-dot-size) + var(--history-node-gap));
  bottom: 0;
  left: var(--history-dot-center);
  width: var(--history-line-width);
  background: var(--ink);
  content: "";
  transform: translateX(-50%);
}

.life-history-list li:first-child::before {
  display: none;
}

.life-history-list li:last-child::after {
  display: none;
}

.life-history-list:not(.is-expanded) li:nth-child(3) {
  padding-bottom: 0;
}

.life-history-list:not(.is-expanded) li:nth-child(3)::after {
  display: none;
}

.life-history-list time {
  position: relative;
  display: block;
  min-height: var(--history-time-line-height);
  color: #5f6368;
  font-size: 12px;
  font-weight: 650;
  line-height: var(--history-time-line-height);
}

.life-history-list time::before {
  position: absolute;
  top: 50%;
  left: calc(0px - var(--history-marker-width) + var(--history-dot-center) - var(--history-dot-size) / 2);
  width: var(--history-dot-size);
  height: var(--history-dot-size);
  border-radius: 50%;
  background: var(--ink);
  content: "";
  transform: translateY(-50%);
}

.life-history-list p {
  color: var(--ink);
  font-size: 13px;
  line-height: 1.65;
}

.not-found {
  display: grid;
  gap: 20px;
  justify-items: center;
  padding: 24px;
}

.not-found .sentence {
  font-size: 38px;
}

.home-link {
  position: relative;
  z-index: 2;
  min-height: 44px;
  padding: 12px 18px;
  border: 1px solid rgba(32, 33, 36, 0.1);
  border-radius: 8px;
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 14px 40px rgba(60, 64, 67, 0.1);
}

.site-footer {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 5;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 10px;
  padding: 12px 24px calc(12px + env(safe-area-inset-bottom));
  color: #9aa0a6;
  font-size: 12px;
  line-height: 1.4;
  text-align: center;
  background: transparent;
}

.record-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.record-item a {
  color: inherit;
  text-decoration: none;
}

.record-item a:hover,
.record-item a:focus-visible {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.record-icon {
  width: 16px;
  height: 18px;
  flex: 0 0 auto;
  object-fit: contain;
}

@media (max-width: 760px) {
  .home {
    padding: 72px 24px 96px;
  }

  .scroll-hint {
    bottom: max(104px, calc(78px + env(safe-area-inset-bottom)));
  }

  .sentence {
    font-size: 28px;
  }

  .home-description {
    font-size: 14px;
    line-height: 1.7;
  }

  .second-screen {
    padding: 92px 24px 136px;
  }

  .second-title {
    font-size: 25px;
  }

  .second-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .quiz-page {
    padding: 16px 18px 88px;
  }

  .quiz-layout {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .quiz-panel {
    gap: 18px;
    min-width: 0;
    padding: 24px 24px;
  }

  .quiz-brand h1 {
    font-size: 34px;
  }

  .quiz-brand p {
    font-size: 13px;
    font-weight: 500;
    line-height: 1.6;
  }

  .quiz-chip-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .quiz-chip {
    min-height: 42px;
    padding: 8px 10px;
    font-size: 13px;
  }

  .quiz-control-group {
    gap: 12px;
  }

  .quiz-control-group + .quiz-control-group {
    padding-top: 18px;
  }

  .quiz-control-group h2 {
    font-size: 13px;
  }

  .quiz-static-value {
    min-height: 42px;
    padding: 11px 12px;
    font-size: 13px;
  }

  .quiz-session-stat p {
    font-size: 12px;
  }

  .quiz-session-stat strong {
    font-size: 26px;
  }

  .quiz-primary-button,
  .quiz-secondary-button,
  .quiz-plain-button,
  .quiz-submit-button,
  .quiz-detail-button {
    min-height: 46px;
    font-size: 14px;
  }

  .quiz-main-panel {
    display: none;
    gap: 12px;
    min-height: auto;
    min-width: 0;
    padding: 24px 24px;
  }

  .quiz-page.is-quiz-active {
    padding-top: 12px;
    padding-bottom: 28px;
  }

  .quiz-page.is-quiz-active .quiz-panel {
    display: none;
  }

  .quiz-page.is-quiz-active .quiz-main-panel {
    display: grid;
    align-self: start;
    height: auto;
    padding-top: 20px;
    padding-bottom: 20px;
  }

  .quiz-question-head {
    gap: 12px;
  }

  .quiz-eyebrow,
  .quiz-main-time {
    font-size: 15px;
  }

  .quiz-progress-track {
    margin-top: 0;
  }

  .quiz-stage {
    gap: 12px;
    min-height: 0;
  }

  .quiz-empty-state {
    min-height: calc(var(--viewport-height) - 220px);
    font-size: 13px;
    line-height: 1.7;
  }

  .quiz-question-title {
    font-size: 17px;
    line-height: 1.58;
  }

  .quiz-choice {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 12px;
    min-height: 56px;
    padding: 10px 12px;
  }

  .quiz-choice-letter {
    width: 32px;
    height: 32px;
    font-size: 13px;
  }

  .quiz-choice-text {
    font-size: 13px;
  }

  .quiz-choice-list {
    gap: 8px;
  }

  .quiz-question-actions {
    gap: 8px;
    margin-top: 0;
  }

  .quiz-plain-button,
  .quiz-submit-button,
  .quiz-detail-button {
    min-height: 42px;
  }

  .quiz-result-title {
    font-size: 28px;
  }

  .quiz-result-subtitle {
    font-size: 13px;
  }

  .quiz-result {
    gap: 12px;
    align-content: start;
    min-height: 0;
    padding-top: 4px;
  }

  .quiz-score {
    gap: 4px;
  }

  .quiz-result-actions {
    gap: 8px;
  }

  .quiz-result-actions .quiz-secondary-button {
    width: 100%;
    min-height: 42px;
  }

  .quiz-detail-list {
    gap: 10px;
  }

  .quiz-detail-item {
    gap: 8px;
    padding-bottom: 14px;
  }

  .quiz-detail-meta {
    font-size: 11px;
  }

  .quiz-detail-question {
    font-size: 13px;
    line-height: 1.55;
  }

  .quiz-detail-answers {
    gap: 3px;
    font-size: 12px;
    line-height: 1.55;
  }

  .quiz-question-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .quiz-plain-button,
  .quiz-submit-button,
  .quiz-detail-button {
    width: 100%;
  }

  .life-signs-panel {
    top: auto;
    right: 0;
    bottom: 0;
    left: 0;
    gap: 20px;
    width: 100%;
    max-height: min(78vh, 680px);
    padding: 22px 22px calc(24px + env(safe-area-inset-bottom));
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 18px 18px 0 0;
    transform: translateY(28px);
    transform-origin: bottom center;
  }

  .life-signs-shell.is-open .life-signs-panel {
    transform: translateY(0);
  }

  .life-signs-title {
    font-size: 23px;
  }

  .life-signs-metrics dd {
    font-size: 16px;
  }

}

@media (max-width: 420px) {
  .sentence {
    font-size: 25px;
  }

  .not-found .sentence {
    font-size: 32px;
  }

  .site-footer {
    gap: 6px;
    padding-right: 16px;
    padding-left: 16px;
    font-size: 12px;
  }

  .record-separator {
    display: none;
  }

  .record-item {
    width: 100%;
    justify-content: center;
  }

  .second-screen {
    padding-right: 18px;
    padding-left: 18px;
  }

  .second-title {
    font-size: 22px;
  }

  .second-card {
    min-height: 106px;
  }

  .quiz-page {
    padding-right: 14px;
    padding-left: 14px;
  }

  .quiz-panel,
  .quiz-main-panel {
    padding-right: 18px;
    padding-left: 18px;
  }

  .quiz-brand h1 {
    font-size: 32px;
  }

  .quiz-brand p {
    font-size: 12px;
  }

  .quiz-chip {
    min-height: 40px;
    font-size: 12px;
  }

  .quiz-count-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .quiz-static-value {
    min-height: 40px;
    font-size: 12px;
  }

  .quiz-session-stat strong {
    font-size: 24px;
  }

  .quiz-primary-button,
  .quiz-secondary-button,
  .quiz-plain-button,
  .quiz-submit-button,
  .quiz-detail-button {
    min-height: 44px;
    font-size: 13px;
  }

  .quiz-result-title {
    font-size: 26px;
  }

  .life-signs-panel {
    padding-right: 18px;
    padding-left: 18px;
  }

  .life-signs-head {
    gap: 12px;
  }

  .life-signs-title {
    font-size: 21px;
  }

  .life-signs-subtitle {
    font-size: 13px;
  }

  .life-signs-metrics {
    gap: 8px;
  }

  .life-signs-metrics dd {
    font-size: 15px;
  }

}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  .home {
    position: relative;
  }

  .hero-lockup,
  .scroll-hint,
  .particle-canvas,
  .second-core,
  .second-card,
  .quiz-progress-track span {
    opacity: 1 !important;
    scale: none !important;
    transform: none !important;
  }

}
