@charset "UTF-8";

/* 作者：搭客佬
官网：https://www.qqyaiapp.cn/ */

:root {
  --ink: #171522;
  --ink-soft: #4f4b5c;
  --paper: #fbfaf6;
  --paper-deep: #f2eff6;
  --line: #dcd6e5;
  --violet: #6f42e8;
  --violet-dark: #4d2bb7;
  --lavender: #b891f2;
  --coral: #ec527d;
  --night: #0d1320;
  --white: #ffffff;
  --header-height: 76px;
  --shell: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: auto;
  scroll-padding-top: var(--header-height);
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

body.menu-open {
  overflow: hidden;
}

button,
input,
textarea,
select {
  color: inherit;
  font: inherit;
}

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

button {
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

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

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

p,
h1,
h2,
h3,
blockquote,
figure {
  margin: 0;
}

.site-shell {
  width: min(calc(100% - 48px), var(--shell));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  height: var(--header-height);
  border-bottom: 1px solid var(--line);
  background: rgba(251, 250, 246, 0.97);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand img {
  width: 48px;
  height: 48px;
  border: 1px solid rgba(111, 66, 232, 0.22);
  border-radius: 14px;
  object-fit: contain;
  background: var(--white);
}

.brand-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  line-height: 1.2;
}

.brand-copy strong {
  color: var(--ink);
  font-size: 20px;
  white-space: nowrap;
}

.brand-copy span {
  margin-top: 5px;
  color: #777183;
  font-size: 12px;
  white-space: nowrap;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 38px;
}

.site-nav a {
  position: relative;
  display: block;
  padding: 25px 0 22px;
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 3px;
  background: var(--violet);
  content: "";
  opacity: 0;
}

.site-nav a.is-active::after {
  opacity: 1;
}

.header-actions,
.mobile-download,
.menu-toggle {
  display: none;
}

.icon {
  display: inline-block;
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  vertical-align: middle;
}

.icon-menu { background-image: url("../icons/menu.svg"); }
.icon-compass { background-image: url("../icons/compass.svg"); }
.icon-heart { background-image: url("../icons/heart.svg"); }
.icon-chat { background-image: url("../icons/chat.svg"); }
.icon-leaf { background-image: url("../icons/leaf.svg"); }
.icon-moon { background-image: url("../icons/moon.svg"); }
.icon-star { background-image: url("../icons/star.svg"); }
.icon-book { background-image: url("../icons/book.svg"); }
.icon-branch { background-image: url("../icons/branch.svg"); }
.icon-memory { background-image: url("../icons/memory.svg"); }
.icon-tune { background-image: url("../icons/tune.svg"); }
.icon-globe { background-image: url("../icons/globe.svg"); }
.icon-arrow { background-image: url("../icons/arrow.svg"); }
.icon-up { background-image: url("../icons/up.svg"); }

.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, transparent 49.95%, rgba(111, 66, 232, 0.08) 50%, transparent 50.05%),
    linear-gradient(rgba(111, 66, 232, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(111, 66, 232, 0.035) 1px, transparent 1px),
    var(--paper);
  background-size: auto, 44px 44px, 44px 44px, auto;
}

.hero::before {
  position: absolute;
  top: -180px;
  right: -100px;
  width: 520px;
  height: 520px;
  border: 1px solid rgba(111, 66, 232, 0.18);
  border-radius: 50%;
  content: "";
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(590px, 1.12fr);
  align-items: center;
  gap: 58px;
  min-height: 700px;
  padding-block: 68px;
}

.hero-copy {
  position: relative;
  padding-left: 36px;
}

.hero-copy::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 3px;
  background: linear-gradient(var(--violet), var(--coral));
  content: "";
}

.eyebrow,
.section-index {
  color: var(--violet);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.hero h1 {
  margin-top: 18px;
  font-family: SimHei, "Microsoft YaHei", sans-serif;
  font-size: clamp(64px, 7vw, 104px);
  line-height: 0.96;
  letter-spacing: -0.07em;
}

.hero-slogan {
  margin-top: 28px;
  font-size: 30px;
  font-weight: 800;
  line-height: 1.3;
}

.hero-description {
  max-width: 520px;
  margin-top: 20px;
  color: var(--ink-soft);
  font-size: 16px;
}

.hero-action {
  display: inline-flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 10px;
  margin-top: 30px;
}

.primary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 180px;
  min-height: 52px;
  padding: 12px 26px;
  border: 1px solid var(--violet);
  color: var(--white);
  background: var(--violet);
  font-weight: 800;
  white-space: nowrap;
}

.age-label {
  color: #7a7385;
  font-size: 13px;
  white-space: nowrap;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 32px;
}

.hero-points span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
}

.hero-points .icon {
  width: 18px;
  height: 18px;
}

.narrative-board {
  position: relative;
  display: grid;
  grid-template-columns: 0.84fr 1.16fr;
  min-height: 480px;
  border: 1px solid rgba(23, 21, 34, 0.72);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 18px 18px 0 rgba(111, 66, 232, 0.1);
}

.narrative-board::before {
  position: absolute;
  top: -20px;
  right: -20px;
  width: 86px;
  height: 86px;
  border-top: 1px solid var(--coral);
  border-right: 1px solid var(--coral);
  content: "";
}

.board-portrait {
  overflow: hidden;
  min-height: 478px;
  background: #ded9e8;
}

.board-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 8%;
  filter: saturate(0.68) contrast(1.04);
}

.board-content {
  display: flex;
  flex-direction: column;
  padding: 36px 30px 28px;
}

.board-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.board-heading span {
  color: var(--violet);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.board-heading strong {
  font-size: 28px;
  line-height: 1;
}

.board-meta {
  margin-top: 16px;
  color: var(--ink-soft);
  font-size: 13px;
}

.relation-meter {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
}

.meter-label,
.meter-value {
  font-size: 12px;
  font-weight: 700;
}

.meter-value {
  color: var(--coral);
}

.meter-line {
  height: 4px;
  background: #e2dce9;
}

.meter-line i {
  display: block;
  width: 72%;
  height: 100%;
  background: linear-gradient(90deg, var(--lavender), var(--coral));
}

.story-track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 34px;
}

.story-track::before {
  position: absolute;
  top: 5px;
  right: 10%;
  left: 10%;
  height: 1px;
  background: #cfc8d8;
  content: "";
}

.story-track span {
  position: relative;
  padding-top: 20px;
  color: #7d7788;
  font-size: 12px;
  text-align: center;
}

.story-track span::before {
  position: absolute;
  z-index: 1;
  top: 0;
  left: calc(50% - 5px);
  width: 10px;
  height: 10px;
  border: 2px solid #cfc8d8;
  border-radius: 50%;
  background: var(--white);
  content: "";
}

.story-track .is-complete::before,
.story-track .is-current::before {
  border-color: var(--violet);
  background: var(--violet);
}

.story-track .is-current {
  color: var(--violet);
  font-weight: 800;
}

.board-content blockquote {
  margin-top: 30px;
  padding: 16px 18px;
  border-left: 3px solid var(--coral);
  color: var(--ink-soft);
  background: var(--paper-deep);
  font-size: 13px;
}

.prompt-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: auto;
  padding-top: 22px;
}

.prompt-actions button {
  min-height: 38px;
  border: 1px solid var(--violet);
  color: var(--violet-dark);
  background: var(--white);
  font-size: 12px;
  font-weight: 700;
}

.section-pad {
  padding-block: 92px;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 46px;
}

.section-heading h2 {
  margin-top: 8px;
  font-family: SimHei, "Microsoft YaHei", sans-serif;
  font-size: clamp(42px, 5vw, 64px);
  line-height: 1;
  letter-spacing: -0.05em;
}

.section-heading > p {
  max-width: 520px;
  padding-bottom: 5px;
  color: var(--ink-soft);
  font-size: 14px;
  text-align: right;
}

.match-section {
  background: var(--white);
}

.match-table {
  border: 1px solid var(--line);
  background: var(--white);
}

.match-table-head,
.match-row {
  display: grid;
  grid-template-columns: 1.08fr 1.18fr 2fr 1fr 0.85fr;
  align-items: center;
  column-gap: 24px;
}

.match-table-head {
  padding: 14px 22px;
  color: #d8d1e0;
  background: var(--ink);
  font-size: 12px;
  font-weight: 700;
}

.match-row {
  min-height: 136px;
  padding: 18px 22px;
  border-top: 1px solid var(--line);
}

.match-row:first-of-type {
  border-top: 0;
}

.match-row.is-selected {
  background: linear-gradient(90deg, rgba(111, 66, 232, 0.08), transparent 44%);
}

.mood-select {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 54px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  text-align: left;
}

.mood-select span {
  font-size: 18px;
  font-weight: 800;
}

.match-row.is-selected .mood-select {
  border-color: var(--violet);
  color: var(--white);
  background: var(--violet);
}

.match-row.is-selected .mood-select .icon {
  filter: brightness(0) invert(1);
}

.character-cell {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.character-cell img {
  width: 58px;
  height: 72px;
  border: 1px solid var(--line);
  object-fit: cover;
  object-position: top;
}

.character-cell span {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.character-cell strong {
  font-size: 16px;
}

.character-cell small {
  color: var(--ink-soft);
  font-size: 12px;
}

.match-row > p {
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.65;
}

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

.warmth strong {
  color: var(--coral);
  font-size: 14px;
}

.warmth span {
  display: flex;
  gap: 4px;
}

.warmth i {
  width: 8px;
  height: 8px;
  border: 1px solid var(--coral);
  border-radius: 50%;
}

.warmth i:nth-child(-n + 3) {
  background: var(--coral);
}

.row-action {
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid var(--violet);
  color: var(--violet-dark);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.match-row.is-selected .row-action {
  color: var(--white);
  background: var(--violet);
}

.story-section {
  border-block: 1px solid var(--line);
  background:
    radial-gradient(circle at 12px 12px, rgba(111, 66, 232, 0.12) 1px, transparent 1.5px),
    var(--paper-deep);
  background-size: 28px 28px;
}

.story-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
}

.story-map {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
  gap: 28px;
  min-height: 390px;
  padding: 58px 42px 124px;
}

.story-node {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 10px;
  width: 108px;
  height: 108px;
  margin-inline: auto;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 0 0 12px rgba(111, 66, 232, 0.04);
}

.story-node .icon {
  width: 30px;
  height: 30px;
}

.story-node span {
  font-size: 13px;
  font-weight: 800;
}

.story-node.is-complete {
  border-color: var(--violet);
}

.story-node.is-current {
  border-color: var(--coral);
  color: var(--white);
  background: var(--coral);
  box-shadow: 0 0 0 12px rgba(236, 82, 125, 0.12);
}

.story-node.is-current .icon {
  filter: brightness(0) invert(1);
}

.story-line {
  position: absolute;
  z-index: 1;
  top: 111px;
  width: calc(25% - 24px);
  border-top: 1px dashed var(--violet);
}

.line-one { left: calc(12.5% + 50px); }
.line-two { left: calc(37.5% + 50px); }
.line-three { left: calc(62.5% + 50px); }

.story-status {
  position: absolute;
  right: 42px;
  bottom: 34px;
  left: 42px;
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: center;
  gap: 14px;
  padding: 18px 22px;
  border-left: 3px solid var(--coral);
  background: var(--paper-deep);
}

.story-status span {
  color: var(--ink-soft);
  font-size: 12px;
}

.story-status strong {
  color: var(--coral);
}

.story-status p {
  color: var(--ink-soft);
  font-size: 13px;
  text-align: right;
}

.story-notes {
  display: grid;
  border-left: 1px solid var(--line);
}

.story-notes article {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px;
  border-bottom: 1px solid var(--line);
}

.story-notes article:last-child {
  border-bottom: 0;
}

.story-notes .icon {
  width: 32px;
  height: 32px;
}

.story-notes span {
  display: flex;
  flex-direction: column;
}

.story-notes strong {
  font-size: 15px;
}

.story-notes small {
  margin-top: 5px;
  color: var(--ink-soft);
  font-size: 12px;
}

.interface-section {
  background: var(--paper);
}

.screen-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.screen-grid figure {
  min-width: 0;
  border: 1px solid var(--line);
  background: var(--white);
}

.screen-view {
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: #f7f5fa;
}

.screen-view img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.screen-grid figcaption {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 72px;
  padding: 16px 18px;
}

.screen-grid figcaption span {
  color: var(--violet);
  font-size: 13px;
  font-weight: 900;
}

.screen-grid figcaption strong {
  font-size: 17px;
}

.faq-section {
  border-top: 1px solid var(--line);
  background: var(--white);
}

.faq-list {
  border-top: 1px solid var(--ink);
}

.faq-list details {
  border-bottom: 1px solid var(--line);
}

.faq-list summary,
.official-site summary {
  display: grid;
  grid-template-columns: 48px 1fr 24px;
  align-items: center;
  gap: 16px;
  min-height: 72px;
  padding: 16px 20px;
  cursor: pointer;
  list-style: none;
}

.faq-list summary::-webkit-details-marker,
.official-site summary::-webkit-details-marker {
  display: none;
}

.faq-list summary span {
  color: var(--violet);
  font-size: 12px;
  font-weight: 900;
}

.faq-list summary strong,
.official-site summary strong {
  font-size: 16px;
}

.faq-list summary i,
.official-site summary > span {
  position: relative;
  width: 18px;
  height: 18px;
  justify-self: end;
}

.faq-list summary i::before,
.faq-list summary i::after,
.official-site summary > span::before,
.official-site summary > span::after {
  position: absolute;
  top: 8px;
  right: 0;
  width: 18px;
  height: 1px;
  background: var(--ink);
  content: "";
}

.faq-list summary i::after,
.official-site summary > span::after {
  transform: rotate(90deg);
}

.faq-list details[open] summary i::after,
.official-site[open] summary > span::after {
  transform: rotate(0deg);
}

.faq-list details > p {
  padding: 4px 62px 26px 84px;
  color: var(--ink-soft);
  font-size: 14px;
}

.official-site {
  width: 100%;
  margin-top: 34px;
  border: 1px solid var(--ink);
  background: var(--paper);
}

.official-site summary {
  grid-template-columns: 24px 1fr 24px;
}

.official-site .icon {
  width: 19px;
  height: 19px;
}

.official-site > div {
  padding: 0 64px 26px;
}

.official-site > div a {
  color: var(--violet-dark);
  font-size: 14px;
  font-weight: 700;
  word-break: break-all;
}

.review-section {
  border-top: 1px solid var(--line);
  background: var(--paper-deep);
}

.review-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.review-grid article {
  min-height: 250px;
  padding: 26px;
  border-top: 4px solid var(--violet);
  background: var(--white);
}

.review-grid article:nth-child(3n + 2) {
  border-top-color: var(--coral);
}

.review-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: var(--white);
  background: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.review-meta > span:last-child {
  display: flex;
  flex-direction: column;
}

.review-meta strong {
  font-size: 14px;
}

.review-meta time {
  color: #7a7483;
  font-size: 12px;
}

.review-grid article > p {
  margin-top: 20px;
  font-size: 14px;
  line-height: 1.9;
}

.download-section {
  overflow: hidden;
  padding-block: 96px;
  color: var(--white);
  background: var(--night);
}

.download-console {
  position: relative;
  display: grid;
  grid-template-columns: 240px 1fr auto;
  align-items: center;
  gap: 42px;
  min-height: 320px;
  padding: 58px 56px 90px;
  border: 1px solid rgba(184, 145, 242, 0.5);
  background:
    linear-gradient(135deg, rgba(111, 66, 232, 0.22), transparent 45%),
    radial-gradient(circle at 80% 16%, rgba(236, 82, 125, 0.22), transparent 30%),
    #111725;
}

.download-word {
  position: absolute;
  top: 18px;
  right: 24px;
  color: transparent;
  font-family: Georgia, serif;
  font-size: clamp(74px, 11vw, 170px);
  line-height: 1;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.1);
  pointer-events: none;
}

.download-brand {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 16px;
}

.download-brand img {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  object-fit: contain;
  background: var(--white);
}

.download-brand span {
  display: flex;
  flex-direction: column;
}

.download-brand strong {
  font-size: 22px;
}

.download-brand small {
  margin-top: 4px;
  color: #b6afc0;
  font-size: 12px;
}

.download-copy {
  position: relative;
  z-index: 1;
  padding-left: 42px;
  border-left: 1px solid rgba(255, 255, 255, 0.22);
}

.download-copy > span {
  color: var(--lavender);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.download-copy h2 {
  margin-top: 10px;
  font-size: 28px;
  line-height: 1.35;
}

.download-copy p {
  max-width: 520px;
  margin-top: 10px;
  color: #bcb5c6;
  font-size: 13px;
}

.download-link {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-width: 162px;
  min-height: 56px;
  padding: 14px 24px;
  color: var(--white);
  background: var(--violet);
  font-weight: 800;
  white-space: nowrap;
}

.download-link .icon {
  filter: brightness(0) invert(1);
}

.download-baseline {
  position: absolute;
  right: 56px;
  bottom: 32px;
  left: 56px;
  display: flex;
  align-items: center;
  gap: 16px;
  color: #aca5b6;
  font-size: 12px;
}

.download-baseline i {
  width: 26px;
  height: 1px;
  background: rgba(255, 255, 255, 0.22);
}

.site-footer {
  color: var(--white);
  background: #090d15;
}

.footer-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding-block: 36px;
}

.footer-brand .brand-copy strong {
  color: var(--white);
}

.footer-brand .brand-copy span {
  color: #8f99aa;
}

.footer-nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 26px;
}

.footer-nav a {
  color: #c6cbd4;
  font-size: 13px;
}

.footer-bottom {
  padding-block: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.52);
  text-align: center;
}

.footer-bottom p {
  color: #8f99aa;
  font-size: 12px;
}

.back-top {
  position: fixed;
  z-index: 90;
  right: 24px;
  bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--white);
  background: var(--violet);
  opacity: 0;
  pointer-events: none;
}

.back-top.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.back-top .icon {
  filter: brightness(0) invert(1);
}

@media (hover: hover) and (pointer: fine) {
  .site-nav a,
  .primary-link,
  .prompt-actions button,
  .mood-select,
  .row-action,
  .story-node,
  .download-link,
  .footer-nav a,
  .back-top {
    transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
  }

  .site-nav a:hover,
  .footer-nav a:hover {
    color: var(--violet);
  }

  .primary-link:hover,
  .download-link:hover {
    background: var(--violet-dark);
  }

  .prompt-actions button:hover,
  .row-action:hover {
    color: var(--white);
    background: var(--violet);
  }

  .story-node:hover {
    transform: translateY(-4px);
  }

  .back-top:hover {
    background: var(--coral);
  }
}

@media (max-width: 1080px) {
  .hero-grid {
    grid-template-columns: minmax(0, 0.78fr) minmax(520px, 1.22fr);
    gap: 34px;
  }

  .site-nav ul {
    gap: 22px;
  }

  .match-table-head,
  .match-row {
    grid-template-columns: 1fr 1.2fr 1.6fr 0.8fr;
  }

  .match-table-head span:nth-child(3),
  .match-row > p {
    display: none;
  }

  .story-map {
    gap: 10px;
    padding-inline: 24px;
  }

  .download-console {
    grid-template-columns: 200px 1fr;
  }

  .download-link {
    grid-column: 2;
    justify-self: start;
  }
}

@media (max-width: 820px) {
  :root {
    --header-height: 66px;
  }

  body {
    padding-top: var(--header-height);
  }

  .site-shell {
    width: min(calc(100% - 32px), var(--shell));
  }

  .site-header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: var(--paper);
    backface-visibility: hidden;
    transform: translate3d(0, 0, 0);
  }

  .brand {
    gap: 8px;
  }

  .brand img {
    width: 40px;
    height: 40px;
    border-radius: 11px;
  }

  .brand-copy strong {
    font-size: 16px;
  }

  .brand-copy span {
    font-size: 12px;
  }

  .header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .mobile-download {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 8px 12px;
    color: var(--white);
    background: var(--violet);
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
  }

  .menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--ink);
    background: var(--paper);
  }

  .site-nav {
    position: absolute;
    z-index: 99;
    top: 100%;
    right: 0;
    left: 0;
    display: none;
    padding: 10px 16px 18px;
    border-bottom: 1px solid var(--line);
    background: var(--paper);
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav ul {
    display: block;
  }

  .site-nav li + li {
    border-top: 1px solid var(--line);
  }

  .site-nav a {
    padding: 13px 4px;
    font-size: 14px;
  }

  .site-nav a::after {
    display: none;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 50px;
    padding-block: 58px 64px;
  }

  .hero-copy {
    max-width: 640px;
    margin-inline: auto;
    padding-left: 0;
    text-align: center;
  }

  .hero-copy::before {
    top: auto;
    right: 20%;
    bottom: -18px;
    left: 20%;
    width: auto;
    height: 2px;
  }

  .hero h1 {
    font-size: clamp(58px, 16vw, 92px);
  }

  .hero-slogan {
    font-size: 26px;
  }

  .hero-description {
    margin-inline: auto;
  }

  .hero-action {
    align-items: center;
  }

  .hero-points {
    justify-content: center;
  }

  .narrative-board {
    width: min(100%, 680px);
    margin-inline: auto;
  }

  .section-pad {
    padding-block: 72px;
  }

  .section-heading {
    display: block;
    margin-bottom: 34px;
  }

  .section-heading h2 {
    font-size: clamp(38px, 9vw, 54px);
  }

  .section-heading > p {
    max-width: 620px;
    margin-top: 18px;
    text-align: left;
  }

  .story-layout {
    grid-template-columns: 1fr;
  }

  .story-notes {
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .story-notes article {
    border-right: 1px solid var(--line);
    border-bottom: 0;
  }

  .story-notes article:last-child {
    border-right: 0;
  }

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

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

  .download-console {
    grid-template-columns: 1fr;
    gap: 30px;
    padding-bottom: 104px;
  }

  .download-brand,
  .download-copy,
  .download-link {
    justify-self: start;
  }

  .download-copy {
    padding-left: 0;
    border-left: 0;
  }

  .download-link {
    grid-column: auto;
  }

  .footer-main {
    flex-direction: column;
  }

  .footer-nav ul {
    justify-content: center;
  }
}

@media (max-width: 600px) {
  .site-shell {
    width: min(calc(100% - 24px), var(--shell));
  }

  .hero-grid {
    padding-top: 44px;
  }

  .hero-slogan {
    font-size: 23px;
  }

  .hero-description {
    font-size: 14px;
  }

  .hero-points {
    gap: 16px;
  }

  .narrative-board {
    grid-template-columns: 1fr;
    box-shadow: 8px 8px 0 rgba(111, 66, 232, 0.1);
  }

  .board-portrait {
    min-height: 260px;
    max-height: 330px;
  }

  .board-content {
    min-height: 440px;
    padding: 24px 18px 20px;
  }

  .prompt-actions {
    gap: 6px;
  }

  .match-table-head {
    display: none;
  }

  .match-row {
    grid-template-columns: 1fr auto;
    gap: 16px;
    min-height: 0;
    padding: 18px;
  }

  .mood-select {
    grid-column: 1 / -1;
  }

  .character-cell {
    grid-column: 1;
  }

  .warmth {
    grid-column: 2;
    align-items: flex-end;
  }

  .row-action {
    grid-column: 1 / -1;
  }

  .story-map {
    grid-template-columns: repeat(2, 1fr);
    gap: 34px 12px;
    min-height: 520px;
    padding: 36px 14px 150px;
  }

  .story-node {
    width: 94px;
    height: 94px;
  }

  .story-line {
    display: none;
  }

  .story-status {
    right: 16px;
    bottom: 20px;
    left: 16px;
    grid-template-columns: auto 1fr;
  }

  .story-status p {
    grid-column: 1 / -1;
    text-align: left;
  }

  .story-notes {
    grid-template-columns: 1fr;
  }

  .story-notes article {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .story-notes article:last-child {
    border-bottom: 0;
  }

  .screen-grid {
    gap: 10px;
  }

  .screen-grid figcaption {
    min-height: 60px;
    gap: 8px;
    padding: 12px 10px;
  }

  .screen-grid figcaption strong {
    font-size: 13px;
  }

  .faq-list summary,
  .official-site summary {
    gap: 10px;
    min-height: 66px;
    padding: 14px 12px;
  }

  .faq-list summary {
    grid-template-columns: 34px 1fr 20px;
  }

  .faq-list summary strong,
  .official-site summary strong {
    font-size: 14px;
  }

  .faq-list details > p {
    padding: 2px 16px 22px 56px;
    font-size: 13px;
  }

  .official-site > div {
    padding: 0 46px 22px;
  }

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

  .review-grid article {
    min-height: auto;
  }

  .download-section {
    padding-block: 72px;
  }

  .download-console {
    padding: 34px 22px 128px;
  }

  .download-brand,
  .download-copy,
  .download-link {
    justify-self: center;
    text-align: center;
  }

  .download-copy h2 {
    font-size: 24px;
  }

  .download-baseline {
    right: 20px;
    bottom: 26px;
    left: 20px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .footer-main {
    text-align: center;
  }

  .footer-nav ul {
    gap: 16px;
  }

  .back-top {
    right: 12px;
    bottom: 12px;
    width: 44px;
    height: 44px;
  }
}

@media (max-width: 374px) {
  .mobile-download {
    padding-inline: 9px;
  }

  .header-actions {
    gap: 6px;
  }

  .hero-points {
    gap: 12px;
  }

  .hero-points span {
    font-size: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
  }
}
