@charset "UTF-8";

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

:root {
  --paper: #fbfaf7;
  --paper-soft: #f4effc;
  --white: #ffffff;
  --ink: #17121f;
  --ink-soft: #544c62;
  --violet: #6f36d5;
  --violet-dark: #47218f;
  --violet-light: #b98cff;
  --lavender: #e8dcfb;
  --line: #d9d2e4;
  --content: 1200px;
  --header-height: 76px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  min-width: 320px;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--paper);
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.7;
  -webkit-tap-highlight-color: transparent;
}

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

button,
summary {
  color: inherit;
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

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

ul {
  list-style: none;
}

.shell {
  width: min(var(--content), calc(100% - 40px));
  margin: 0 auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.topbar {
  position: relative;
  z-index: 100;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
}

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

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.brand img,
.footer-brand img {
  width: 48px;
  height: 48px;
  margin-right: 11px;
  object-fit: cover;
  border-radius: 4px;
}

.brand-text,
.footer-brand > span {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.25;
}

.brand-text strong,
.footer-brand strong {
  font-size: 18px;
  font-weight: 900;
}

.brand-text span,
.footer-brand small {
  margin-top: 4px;
  font-size: 12px;
  white-space: nowrap;
}

.main-nav,
.main-nav ul {
  height: 100%;
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 36px;
}

.main-nav li {
  height: 100%;
}

.main-nav a {
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
  font-size: 14px;
  font-weight: 800;
}

.main-nav a::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  background: var(--violet);
  content: "";
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 160ms ease;
}

.main-nav a:hover::after,
.main-nav a.is-active::after {
  transform: scaleX(1);
}

.mobile-actions {
  display: none;
  align-items: center;
  gap: 8px;
}

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

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

.icon-menu,
.icon-arrow,
.icon-orbit,
.icon-dialogue,
.icon-branch,
.icon-globe {
  display: inline-block;
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

.icon-menu {
  background-image: url("../icons/menu.svg");
}

.icon-arrow {
  background-image: url("../icons/arrow.svg");
}

.icon-orbit {
  background-image: url("../icons/orbit.svg");
}

.icon-dialogue {
  background-image: url("../icons/dialogue.svg");
}

.icon-branch {
  background-image: url("../icons/branch.svg");
}

.icon-globe {
  background-image: url("../icons/globe.svg");
}

.hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(rgba(111, 54, 213, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(111, 54, 213, 0.055) 1px, transparent 1px),
    var(--white);
  background-size: 44px 44px;
  border-bottom: 1px solid var(--line);
}

.hero::after {
  position: absolute;
  right: -160px;
  bottom: -220px;
  width: 560px;
  height: 560px;
  background: rgba(185, 140, 255, 0.16);
  border-radius: 50%;
  content: "";
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(500px, 1.08fr);
  gap: 52px;
  align-items: center;
  min-height: 690px;
  padding: 82px 0;
}

.overline,
.section-title > div > p,
.portal-copy > p,
.scene-settings header p {
  color: var(--violet);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.hero-copy h1 {
  margin-top: 16px;
  font-size: clamp(88px, 9vw, 126px);
  font-weight: 900;
  letter-spacing: -0.07em;
  line-height: 0.9;
  white-space: nowrap;
}

.hero-copy h2 {
  max-width: 520px;
  margin-top: 34px;
  font-size: clamp(31px, 3vw, 43px);
  font-weight: 900;
  line-height: 1.3;
}

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

.hero-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-top: 32px;
}

.primary-action {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: 216px;
  min-height: 58px;
  padding: 0 22px;
  color: var(--white);
  background: var(--violet);
  border: 1px solid var(--violet);
  font-size: 15px;
  font-weight: 900;
  white-space: nowrap;
  transition: background-color 160ms ease, color 160ms ease;
}

.primary-action:hover {
  color: var(--ink);
  background: var(--white);
}

.age-label {
  margin-top: 12px;
  color: var(--ink-soft);
  font-size: 12px;
}

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

.hero-tags li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 800;
}

.relationship-map {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 0.88;
  min-height: 520px;
}

.orbit,
.coordinate-ring,
.portal-ring {
  position: absolute;
  border: 1px solid rgba(111, 54, 213, 0.3);
  border-radius: 50%;
}

.orbit-one {
  inset: 16% 18%;
}

.orbit-two {
  inset: 5% 7%;
}

.orbit-three {
  inset: -4% -2%;
}

.map-axis {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 88%;
  height: 1px;
  background: rgba(111, 54, 213, 0.22);
  transform-origin: left center;
}

.axis-one {
  transform: rotate(18deg) translateX(-50%);
}

.axis-two {
  transform: rotate(132deg) translateX(-50%);
}

.map-center {
  position: absolute;
  top: 50%;
  left: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 174px;
  height: 174px;
  color: var(--white);
  background: var(--violet-dark);
  border: 12px solid var(--lavender);
  border-radius: 50%;
  box-shadow: 0 18px 40px rgba(71, 33, 143, 0.22);
  transform: translate(-50%, -50%);
}

.map-center span,
.map-center small {
  font-size: 12px;
}

.map-center strong {
  margin: 4px 0;
  font-size: 25px;
}

.character-node {
  position: absolute;
  display: grid;
  grid-template-columns: 50px auto;
  gap: 1px 10px;
  align-items: center;
  min-width: 132px;
  padding: 8px;
  text-align: left;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 40px;
}

.character-node > span {
  grid-row: 1 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  color: var(--white);
  background: linear-gradient(145deg, var(--violet), var(--violet-light));
  border-radius: 50%;
  font-size: 18px;
  font-weight: 900;
}

.character-node strong {
  align-self: end;
  font-size: 14px;
}

.character-node small {
  align-self: start;
  color: var(--ink-soft);
  font-size: 12px;
}

.character-node:hover,
.character-node.is-active {
  border-color: var(--violet);
}

.node-one {
  top: 3%;
  left: 20%;
}

.node-two {
  top: 16%;
  right: 1%;
}

.node-three {
  bottom: 4%;
  left: 8%;
}

.node-four {
  right: 4%;
  bottom: 11%;
}

.dialogue-note {
  position: absolute;
  max-width: 164px;
  padding: 11px 14px;
  color: var(--ink-soft);
  background: var(--white);
  border: 1px solid var(--line);
  font-size: 12px;
  line-height: 1.55;
}

.note-one {
  top: 29%;
  left: 0;
}

.note-two {
  right: 8%;
  bottom: 0;
}

.relation-section,
.story-section,
.interface-section,
.questions-section,
.notes-section {
  padding: 108px 0;
}

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

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

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

.questions-section {
  background: #f7f5fa;
}

.notes-section {
  background: #eee8f8;
}

.section-title {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.7fr);
  gap: 42px;
  align-items: end;
  margin-bottom: 48px;
}

.section-title h2 {
  margin-top: 8px;
  font-size: clamp(38px, 4vw, 58px);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.08;
}

.section-title > span {
  padding-bottom: 8px;
  color: var(--ink-soft);
  font-size: 14px;
}

.relation-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(380px, 0.9fr);
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.relation-list {
  border-right: 1px solid var(--line);
}

.relation-row {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 46px;
  gap: 18px;
  align-items: center;
  min-height: 124px;
  padding: 20px 26px;
  border-bottom: 1px solid var(--line);
}

.relation-row:last-child {
  border-bottom: 0;
}

.relation-row > span {
  color: var(--violet);
  font-size: 18px;
  font-weight: 900;
}

.relation-row h3 {
  font-size: 22px;
}

.relation-row p {
  margin-top: 4px;
  color: var(--ink-soft);
  font-size: 13px;
}

.relation-row button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: transparent;
  border: 1px solid var(--line);
}

.relation-row.is-current {
  background: var(--white);
}

.relation-row.is-current button {
  color: var(--white);
  background: var(--violet);
  border-color: var(--violet);
}

.coordinate-board {
  position: relative;
  min-height: 496px;
  overflow: hidden;
  background:
    radial-gradient(circle at center, rgba(111, 54, 213, 0.07), transparent 58%),
    var(--white);
}

.ring-a {
  inset: 34% 34%;
}

.ring-b {
  inset: 23% 23%;
}

.ring-c {
  inset: 11% 11%;
}

.coordinate-core {
  position: absolute;
  top: 50%;
  left: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 130px;
  height: 130px;
  color: var(--white);
  background: var(--violet);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.coordinate-core small {
  font-size: 12px;
}

.coordinate-core strong {
  margin-top: 4px;
  font-size: 18px;
}

.coordinate-dot {
  position: absolute;
  width: 12px;
  height: 12px;
  background: var(--violet);
  border: 3px solid var(--white);
  border-radius: 50%;
  box-shadow: 0 0 0 1px var(--violet);
}

.dot-a {
  top: 19%;
  left: 48%;
}

.dot-b {
  top: 43%;
  right: 13%;
}

.dot-c {
  bottom: 16%;
  left: 32%;
}

.dot-d {
  top: 38%;
  left: 17%;
}

.story-workbench {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.55fr);
  gap: 18px;
}

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

.beat-card {
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr) 72px;
  gap: 18px;
  align-items: start;
  min-height: 180px;
  padding: 30px;
  border-bottom: 1px solid var(--line);
}

.beat-card:last-child {
  border-bottom: 0;
}

.beat-card > span {
  color: var(--violet);
  font-size: 20px;
  font-weight: 900;
}

.beat-card div > p {
  color: var(--violet);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.beat-card h3 {
  margin-top: 4px;
  font-size: 24px;
}

.beat-card strong,
.beat-card small {
  display: block;
}

.beat-card strong {
  margin-top: 10px;
  font-size: 15px;
}

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

.beat-card > button {
  min-height: 36px;
  background: transparent;
  border: 1px solid var(--line);
  font-size: 12px;
  font-weight: 800;
}

.beat-card.is-selected {
  background: #f9f5ff;
}

.beat-card.is-selected > button {
  color: var(--white);
  background: var(--violet);
  border-color: var(--violet);
}

.scene-settings {
  padding: 32px;
  color: var(--white);
  background: var(--ink);
}

.scene-settings h3 {
  margin-top: 5px;
  font-size: 30px;
}

.settings-list {
  margin-top: 32px;
}

.settings-list > div {
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.settings-list dt {
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 900;
}

.settings-list dd {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.settings-list button {
  min-height: 36px;
  padding: 0 13px;
  color: var(--white);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.32);
  font-size: 12px;
}

.settings-list button.is-active {
  color: var(--ink);
  background: var(--violet-light);
  border-color: var(--violet-light);
}

.scene-summary {
  margin-top: 24px;
  color: #d9d0e7;
  font-size: 12px;
}

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

.screenshot-card {
  min-width: 0;
  background: var(--paper);
  border: 1px solid var(--line);
}

.screenshot-media {
  aspect-ratio: 9 / 16;
  background: #f8f3ff;
  border-bottom: 1px solid var(--line);
}

.screenshot-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.screenshot-card figcaption {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 2px 10px;
  min-height: 96px;
  padding: 18px;
}

.screenshot-card figcaption span {
  grid-row: 1 / 3;
  color: var(--violet);
  font-size: 15px;
  font-weight: 900;
}

.screenshot-card figcaption strong {
  font-size: 17px;
}

.screenshot-card figcaption small {
  color: var(--ink-soft);
  font-size: 12px;
}

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

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

.question-list summary,
.official-site summary {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) 28px;
  gap: 18px;
  align-items: center;
  min-height: 72px;
  padding: 0 24px;
  cursor: pointer;
  list-style: none;
}

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

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

.question-list summary strong,
.official-site summary strong {
  font-size: 15px;
}

.question-list summary i,
.official-state {
  position: relative;
  display: block;
  width: 22px;
  height: 22px;
}

.question-list summary i::before,
.question-list summary i::after,
.official-state::before,
.official-state::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 1px;
  background: var(--ink);
  content: "";
  transform: translate(-50%, -50%);
}

.question-list summary i::after,
.official-state::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.question-list details[open] summary i::after,
.official-site[open] .official-state::after {
  display: none;
}

.question-list details > div {
  padding: 0 78px 24px 96px;
  color: var(--ink-soft);
  font-size: 13px;
}

.official-site {
  width: 100%;
  margin-top: 24px;
  background: var(--white);
  border: 1px solid var(--violet);
}

.official-site summary {
  grid-template-columns: 28px minmax(0, 1fr) 28px;
}

.official-content {
  padding: 0 70px 24px;
}

.official-content a {
  color: var(--violet);
  font-size: 14px;
  font-weight: 800;
}

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

.review-card {
  min-height: 270px;
  padding: 26px;
  background: var(--white);
  border-top: 3px solid var(--violet);
}

.review-card:nth-child(2n) {
  border-top-color: var(--violet-light);
}

.review-card header {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.review-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  color: var(--white);
  background: var(--violet-dark);
  border-radius: 50%;
  font-size: 12px;
  font-weight: 900;
}

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

.review-card time {
  color: var(--ink-soft);
  font-size: 12px;
}

.review-card p {
  margin-top: 24px;
  font-size: 14px;
  line-height: 1.9;
}

.download-section {
  padding: 88px 0;
  background: var(--violet-dark);
}

.story-portal {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  min-height: 310px;
  overflow: hidden;
  background: linear-gradient(112deg, #f4ebff 0%, #eee1ff 66%, #dfc9ff 100%);
  border-radius: 42px 0 42px 0;
}

.story-portal::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 14px;
  height: 100%;
  background: var(--violet-light);
  content: "";
}

.portal-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 54px 46px 54px 64px;
}

.portal-copy h2 {
  max-width: 630px;
  margin-top: 8px;
  font-size: clamp(31px, 3.4vw, 48px);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.2;
  white-space: nowrap;
}

.portal-copy > span {
  max-width: 600px;
  margin-top: 18px;
  color: var(--ink-soft);
  font-size: 14px;
}

.portal-action {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 310px;
}

.portal-action .ring-one {
  inset: 20px;
}

.portal-action .ring-two {
  inset: 50px;
}

.portal-action .ring-three {
  inset: 80px;
}

.portal-action a {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 150px;
  height: 150px;
  color: var(--white);
  background: var(--violet);
  border: 8px solid rgba(255, 255, 255, 0.58);
  border-radius: 50%;
  font-size: 17px;
  font-weight: 900;
  white-space: nowrap;
}

.portal-action a .icon-arrow {
  margin-top: 8px;
}

.footer {
  padding: 48px 0 28px;
  color: var(--white);
  background: #241341;
}

.footer-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.footer-brand small {
  color: #d9cfea;
}

.footer-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
}

.footer-nav a {
  font-size: 13px;
  font-weight: 800;
}

.footer-divider {
  height: 1px;
  margin-top: 34px;
  background: rgba(255, 255, 255, 0.78);
}

.copyright {
  margin-top: 20px;
  color: #d9cfea;
  font-size: 12px;
  text-align: center;
}

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

.back-top.is-visible {
  display: flex;
}

.back-top i {
  width: 24px;
  height: 24px;
  background: url("../images/top.png") center / contain no-repeat;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--violet-light);
  outline-offset: 3px;
}

@media (max-width: 1080px) {
  .hero-grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(450px, 1.1fr);
    gap: 30px;
  }

  .hero-copy h1 {
    font-size: 78px;
  }

  .relation-layout {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

@media (max-width: 900px) {
  :root {
    --header-height: 68px;
  }

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

  .topbar {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    height: var(--header-height);
  }

  .brand img {
    width: 38px;
    height: 38px;
    margin-right: 8px;
  }

  .brand-text strong {
    font-size: 15px;
  }

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

  .mobile-actions {
    display: flex;
  }

  .main-nav {
    position: fixed;
    z-index: 99;
    top: var(--header-height);
    right: 0;
    left: 0;
    display: none;
    height: auto;
    max-height: calc(100vh - var(--header-height));
    overflow-y: auto;
    background: var(--white);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--ink);
  }

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

  .main-nav ul {
    display: block;
    width: min(var(--content), calc(100% - 40px));
    height: auto;
    margin: 0 auto;
  }

  .main-nav li {
    height: auto;
    border-bottom: 1px solid var(--line);
  }

  .main-nav li:last-child {
    border-bottom: 0;
  }

  .main-nav a {
    height: auto;
    padding: 14px 0;
  }

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

  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 56px;
    min-height: 0;
    padding: 76px 0 88px;
  }

  .hero-copy {
    width: 100%;
    min-width: 0;
    text-align: center;
  }

  .hero-copy h1 {
    font-size: clamp(72px, 16vw, 104px);
    white-space: normal;
  }

  .hero-copy h2,
  .hero-description {
    width: 100%;
    max-width: 100%;
    margin-right: auto;
    margin-left: auto;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

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

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

  .relationship-map {
    width: min(680px, 100%);
    min-width: 0;
    max-width: 100%;
    margin: 0 auto;
    justify-self: center;
  }

  .section-title {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .section-title > span {
    padding-bottom: 0;
  }

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

  .relation-list {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .coordinate-board {
    min-height: 420px;
  }

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

  .story-portal {
    grid-template-columns: 1fr 300px;
  }

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

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

  a,
  button,
  summary {
    transition: none !important;
    animation: none !important;
  }
}

@media (max-width: 680px) {
  .shell {
    width: calc(100% - 28px);
  }

  .relation-section,
  .story-section,
  .interface-section,
  .questions-section,
  .notes-section {
    padding: 76px 0;
  }

  .section-title {
    margin-bottom: 32px;
  }

  .section-title h2 {
    font-size: 38px;
  }

  .relationship-map {
    min-height: 440px;
  }

  .map-center {
    width: 142px;
    height: 142px;
  }

  .character-node {
    min-width: 112px;
    grid-template-columns: 40px auto;
    padding: 6px;
  }

  .character-node > span {
    width: 40px;
    height: 40px;
    font-size: 15px;
  }

  .node-one {
    left: 2%;
  }

  .node-two {
    right: 0;
  }

  .node-three {
    left: 0;
  }

  .node-four {
    right: 0;
  }

  .dialogue-note {
    display: none;
  }

  .relation-row {
    grid-template-columns: 38px minmax(0, 1fr) 42px;
    gap: 12px;
    min-height: 112px;
    padding: 18px 14px;
  }

  .relation-row h3 {
    font-size: 18px;
  }

  .coordinate-board {
    min-height: 360px;
  }

  .beat-card {
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 12px;
    padding: 24px 18px;
  }

  .beat-card > button {
    grid-column: 2;
    width: 90px;
  }

  .scene-settings {
    padding: 24px 20px;
  }

  .screenshot-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .screenshot-card figcaption {
    grid-template-columns: 28px minmax(0, 1fr);
    min-height: 92px;
    padding: 12px 10px;
  }

  .screenshot-card figcaption strong {
    font-size: 14px;
  }

  .question-list summary,
  .official-site summary {
    grid-template-columns: 34px minmax(0, 1fr) 24px;
    gap: 10px;
    min-height: 68px;
    padding: 0 14px;
  }

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

  .question-list details > div {
    padding: 0 48px 20px 58px;
  }

  .official-content {
    padding: 0 48px 20px 58px;
  }

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

  .review-card {
    min-height: 0;
  }

  .story-portal {
    grid-template-columns: 1fr;
    border-radius: 30px 0 30px 0;
  }

  .portal-copy {
    padding: 40px 28px 20px 36px;
    text-align: center;
  }

  .portal-copy h2 {
    font-size: 30px;
  }

  .portal-action {
    min-height: 250px;
  }

  .portal-action .ring-one {
    inset: 10px 48px;
  }

  .portal-action .ring-two {
    inset: 38px 76px;
  }

  .portal-action .ring-three {
    inset: 66px 104px;
  }

  .footer {
    text-align: center;
  }

  .footer-brand {
    justify-content: center;
  }

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

  .back-top {
    right: 14px;
    bottom: 14px;
    width: 46px;
    height: 46px;
  }
}

@media (max-width: 430px) {
  .topbar-inner {
    width: calc(100% - 20px);
  }

  .brand img {
    width: 34px;
    height: 34px;
    margin-right: 6px;
  }

  .brand-text strong {
    font-size: 14px;
  }

  .mobile-get {
    min-height: 36px;
    padding: 0 10px;
  }

  .menu-button {
    width: 38px;
    height: 38px;
  }

  .hero-copy h1 {
    font-size: 68px;
  }

  .hero-copy h2 {
    padding: 0 6px;
    font-size: 27px;
    line-height: 1.4;
  }

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

  .hero-tags {
    gap: 12px;
  }

  .relationship-map {
    min-height: 400px;
  }

  .map-center {
    width: 122px;
    height: 122px;
    border-width: 8px;
  }

  .map-center strong {
    font-size: 20px;
  }

  .character-node {
    width: 92px;
    min-width: 0;
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .character-node > span {
    width: 34px;
    height: 34px;
    font-size: 13px;
  }

  .character-node strong {
    overflow: hidden;
    font-size: 12px;
    text-overflow: clip;
    white-space: nowrap;
  }

  .character-node small {
    display: none;
  }

  .node-one,
  .node-three {
    left: 0;
  }

  .node-two,
  .node-four {
    right: 0;
  }

  .screenshot-card figcaption small {
    display: none;
  }

  .screenshot-card figcaption {
    min-height: 56px;
  }

  .review-card header {
    grid-template-columns: 36px minmax(0, 1fr);
  }

  .review-card time {
    grid-column: 2;
  }
}

@media (max-width: 359px) {
  .brand-text strong {
    font-size: 13px;
  }

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

  .mobile-get {
    padding: 0 8px;
  }

  .hero-copy h1 {
    font-size: 60px;
  }

  .relationship-map {
    min-height: 370px;
  }
}
