/* 首页只编排精选内容；栏目、详情和工具保持各自的阅读与操作方式。 */
body[data-page='home'] {
  --home-section-surface: #f7f7f5;
  background: var(--paper);
}
body[data-page='home'] main {
  padding-block: 0;
}
body[data-page='home'] footer {
  --section-surface: var(--home-section-surface);
  position: relative;
  isolation: isolate;
  margin-top: 0;
  border-top: 0;
}
body[data-page='home'] .footer-brand img {
  display: block;
  width: 170px;
  max-width: 100%;
  height: auto;
}
.home-editorial {
  font-size: 14px;
  line-height: 1.75;
  overflow-wrap: anywhere;
}
.home-editorial a {
  text-decoration: none;
}
.home-editorial h2,
.home-editorial h3 {
  color: var(--ink);
}
.home-editorial img {
  max-width: 100%;
}
.home-editorial .ui-icon {
  flex: none;
  width: 22px;
  height: 22px;
}
.home-editorial a:hover {
  color: var(--accent);
}
.home-editorial a:focus-visible,
.home-editorial button:focus-visible,
.home-editorial summary:focus-visible {
  outline: 3px solid var(--brand-focus);
  outline-offset: 4px;
}
.home-eyebrow {
  display: block;
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
}
.home-hero {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  align-items: center;
  gap: 24px;
  min-height: 408px;
  padding: 32px 0 36px;
}
.home-hero h1 {
  font-size: clamp(40px, 4.1vw, 58px);
  line-height: 1.24;
  font-weight: 750;
  letter-spacing: -0.055em;
  margin: 18px 0;
}
.home-hero h1 span {
  color: var(--brand-red);
}
.home-hero-lead {
  max-width: 460px;
  font-size: 16px;
  line-height: 1.85;
  color: #555b63;
  margin-bottom: 22px;
}
.home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.home-editorial .button {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  justify-content: center;
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 5px;
  padding: 11px 19px;
  color: var(--brand-on-action);
  font-size: 14px;
  font-weight: 600;
}
.home-editorial .button:hover {
  color: var(--brand-on-action);
  background: var(--accent-hover);
}
.home-editorial .secondary-button {
  background: #fff;
  color: var(--accent);
  border-color: var(--brand-border);
}
.home-editorial .secondary-button:hover {
  background: var(--brand-tint);
  color: var(--accent);
}
.home-quick-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 19px;
  font-size: 14px;
}
.home-quick-tools a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--white);
  color: var(--ink);
  line-height: 1.5;
}
.home-hero-art {
  position: relative;
  display: block;
  height: 340px;
  isolation: isolate;
}
.home-hero-art::before {
  content: '';
  position: absolute;
  inset: 20px -15px -6px;
  z-index: -1;
  background: #f5f1e9;
  border-radius: 50% 35% 35% 45%;
}
.home-hero-main {
  position: absolute;
  width: 88%;
  left: 0;
  top: 2%;
  transform: rotate(-3deg);
  box-shadow: 0 14px 24px #182d3220;
  border: 5px solid #fff;
  border-radius: 6px;
  overflow: hidden;
}
.home-hero-art img {
  display: block;
  width: 100%;
  height: auto;
}
.home-hero-companion {
  position: absolute;
  border: 5px solid #fff;
  box-shadow: 0 10px 24px #182d3225;
  border-radius: 5px;
  overflow: hidden;
}
.home-hero-companion--0 {
  width: 25%;
  right: 0;
  bottom: 10%;
  transform: rotate(6deg);
}
.home-hero-companion--1 {
  width: 45%;
  right: 25%;
  bottom: 6%;
  transform: rotate(2deg);
}
.home-art-label {
  position: absolute;
  bottom: -8px;
  left: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-size: 12px;
}
.home-art-label > span {
  color: var(--muted);
}
.home-art-label .ui-icon {
  width: 16px;
}
.home-hero-fallback {
  padding: 45px;
  background: #f8f3eb;
  display: grid;
  gap: 18px;
  color: var(--ink);
}
.home-hero-fallback strong {
  font-size: 28px;
}
.home-task-grid {
  --task-edge: 20px;
  --task-row-gap: 11px;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 5px 22px #38260f05;
  overflow: hidden;
  margin: 8px 0 0;
}
.home-task-grid a {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
  padding: var(--task-top, var(--task-edge)) 19px var(--task-bottom, var(--task-edge));
  color: var(--ink);
}
/* 留白属于完整点击区域；分隔线独立绘制，避免高亮被容器内边距截断。 */
.home-task-grid a::after {
  content: '';
  position: absolute;
  right: 0;
  top: var(--task-top, var(--task-edge));
  bottom: var(--task-bottom, var(--task-edge));
  width: 1px;
  background: var(--line);
  pointer-events: none;
}
.home-task-grid a:last-child::after {
  display: none;
}
.home-editorial .home-task-grid a {
  transition:
    color 160ms ease,
    background-color 160ms ease;
}
.home-editorial .home-task-grid a:focus-visible {
  outline-offset: -3px;
  color: var(--accent);
  background: var(--brand-tint);
}
.home-task-grid .ui-icon {
  width: 27px;
  height: 27px;
  color: var(--accent);
  margin-bottom: 4px;
}
.home-task-grid strong {
  font-size: 16px;
  font-weight: 650;
}
.home-task-grid a > span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}
/* 并列内容共用白底，由作品、稿件与工具各自的构图建立节奏。 */
.home-opening {
  padding-bottom: 56px;
}
.home-section {
  position: relative;
  isolation: isolate;
  padding: 60px 0;
  scroll-margin-top: 80px;
}
/* 通栏底色仅用于页脚，辅助说明的浅底色保留在内容范围内。 */
body[data-page='home'] footer::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0;
  background: var(--section-surface);
  box-shadow: 0 0 0 100vmax var(--section-surface);
  clip-path: inset(0 -100vmax);
  pointer-events: none;
}
.home-section.home-start {
  border-top: 1px solid var(--line);
  padding-block: 40px;
}
.home-performance,
.home-writing,
.home-tools {
  border-top: 1px solid var(--line);
}
.home-section-label {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}
.home-section-label::before {
  content: '';
  width: 18px;
  height: 2px;
  background: currentColor;
}
.home-tools .home-section-label {
  color: #626d7a;
}
.home-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 18px;
  margin-bottom: 28px;
}
.home-heading h2 {
  font-size: clamp(26px, 2.5vw, 34px);
  line-height: 1.4;
  letter-spacing: -0.035em;
  margin: 0 0 6px;
  font-weight: 700;
}
.home-heading p {
  color: var(--muted);
  margin: 0;
}
.home-more {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  flex: none;
}
.home-more .ui-icon {
  width: 18px;
  height: 18px;
}
/* 首页用于选款；完整物料矩阵继续由设计详情页展示。 */
.home-design-selection {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.home-design-card {
  min-width: 0;
  background: var(--white);
}
.home-design-preview {
  display: block;
  position: relative;
  height: 260px;
  overflow: hidden;
  border-radius: 9px;
  background: #eae9e2;
}
.home-design-cover {
  position: absolute;
  inset: 18px 18px 52px;
}
.home-design-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 7px 10px #162b3420);
}
.home-design-companions {
  position: absolute;
  right: 20px;
  bottom: 14px;
  height: 91px;
  display: flex;
  align-items: flex-end;
  gap: 9px;
}
.home-design-companions > div {
  height: 100%;
  max-width: 65%;
  border: 3px solid #fffaf0;
  box-shadow: 0 5px 14px #1e27272b;
}
.home-design-companions img {
  display: block;
  width: auto;
  height: 100%;
  object-fit: contain;
}
.home-design-kind {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 3px 8px;
  border-radius: 4px;
  background: #fffffff0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.6;
}
.home-design-caption {
  padding: 18px 0 12px;
}
.home-design-caption h3 {
  margin: 0 0 4px;
  font-size: 22px;
  line-height: 1.4;
}
.home-design-caption h3 a {
  color: inherit;
}
.home-design-caption p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}
.home-design-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 17px;
  font-size: 12px;
}
.home-design-caption > small {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 10px;
}
.home-design-palette {
  display: flex;
  gap: 5px;
}
.home-design-palette i {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 1px solid #0000000d;
}
.home-design-direction .theme-sample {
  min-height: 0;
  height: 100%;
  padding: 18px;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.home-design-direction .theme-sample::before,
.home-design-direction .theme-sample::after,
.home-design-direction .theme-kicker,
.home-design-direction .theme-foot {
  display: none;
}
.home-design-direction .theme-sample > img {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.home-design-direction .theme-sample strong {
  font-size: 33px;
}
.home-design-direction .theme-subtitle {
  font-size: 12px;
  margin-top: 9px;
}
.home-designs .theme-warm {
  color: #8c251b;
}
.home-designs .theme-steady {
  color: #ffe3a4;
}
.home-designs .theme-bright {
  color: #284e36;
}
.home-design-personalization {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  align-items: center;
  gap: 24px;
  margin-top: 22px;
  padding: 20px 24px;
  border: 0;
  border-radius: 9px;
  background: var(--home-section-surface);
}
.home-design-personalization > #inspiration {
  position: absolute;
  top: 0;
}
.home-personalization-status {
  display: block;
  margin-bottom: 7px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 600;
}
.home-personalization-copy h3 {
  margin: 0 0 9px;
  font-size: 18px;
  line-height: 1.45;
}
.home-personalization-copy p {
  margin: 0;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.85;
}
.home-personalization-copy small {
  display: block;
  margin-top: 11px;
  color: var(--muted);
  font-size: 11px;
}
.home-personalization-flow {
  display: grid;
  gap: 15px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.home-personalization-flow li {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 12px;
}
.home-personalization-flow li > span {
  display: grid;
  place-items: center;
  flex: 0 0 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--white);
  color: var(--accent);
  font-size: 11px;
}
@media (max-width: 800px) {
  .home-design-personalization {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 22px;
  }
}
.home-card-type {
  color: var(--accent);
  font-size: 11px;
  font-weight: 600;
}
@media (max-width: 1000px) {
  .home-design-selection {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 600px) {
  .home-design-selection {
    grid-template-columns: 1fr;
  }
}
.home-empty {
  color: var(--muted);
  background: #f8f5ef;
  padding: 36px;
}
.home-performance-rows {
  display: grid;
  gap: 36px;
}
.home-performance-group {
  min-width: 0;
  scroll-margin-top: 80px;
}
.home-performance-group + .home-performance-group {
  border-top: 1px solid var(--line);
  padding-top: 30px;
}
.home-subheading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.home-subheading h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  margin-bottom: 4px;
}
.home-subheading h3 .ui-icon {
  width: 20px;
  height: 20px;
  color: var(--accent);
}
.home-performance-intro {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  margin: 8px 0 18px;
}
.home-performance-intro p {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}
.home-browse-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.home-browse-links a {
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 12px;
}
.home-browse-links a:hover,
.home-browse-links a:focus-visible {
  color: var(--accent);
  background: var(--brand-tint);
  border-color: var(--brand-border);
}
.home-card-action {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  font-size: 13px;
  font-weight: 600;
}
.home-card-action .ui-icon {
  width: 15px;
  height: 15px;
}
.home-performance .home-card-type {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}
.home-content-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}
.home-content-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}
.home-card-cover {
  position: relative;
  display: block;
  aspect-ratio: 16/9;
  flex: 0 0 auto;
  overflow: hidden;
  background: var(--soft);
}
.home-card-cover > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.home-card-info {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 16px;
}
.home-card-info h4 {
  font-size: 18px;
  margin: 5px 0 6px;
  line-height: 1.55;
}
.home-card-info h4 a {
  color: var(--ink);
}
.home-card-info p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 10px;
}
.home-card-condition {
  display: block;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
  line-height: 1.65;
}
.home-script-cover {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 18px;
  text-align: center;
  height: 100%;
  color: #76432f;
  background: #f4e5cb;
  gap: 10px;
  border: 9px solid #f9f0df;
}
.home-script-cover strong {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  font-family: 'Songti SC', serif;
  font-size: 18px;
  line-height: 1.4;
}
.home-script-cover > span {
  font-size: 10px;
  letter-spacing: 0.1em;
}
.home-game-scene {
  position: absolute;
  inset: 0;
  background: url('/games/game-scenes-v1.jpg');
  background-size: 300% 200%;
}
.home-cover-credit {
  position: absolute;
  bottom: 7px;
  right: 7px;
  background: #fff9;
  color: #554434;
  border-radius: 3px;
  padding: 1px 5px;
  font-size: 10px;
}
.home-section-footnote {
  margin: 17px 0 0;
  color: var(--muted);
  font-size: 12px;
}
.home-section-footnote a {
  margin-left: 8px;
}
.home-writing-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: start;
}
.home-writing-intro {
  min-width: 0;
}
.home-writing-group-title {
  font-size: 19px;
  line-height: 1.5;
  margin: 0 0 18px;
}
.home-quote-panel {
  padding: 32px;
  border-radius: 3px;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--ink);
  box-shadow: 0 12px 32px #24283208;
}
.home-quote-panel > small {
  color: #8a7770;
  font-size: 11px;
  display: block;
  margin-top: 18px;
}
.home-quote .copy-box {
  background: none;
  border: 0;
  padding: 0;
  margin: 10px 0;
}
.home-quote .copy-heading {
  align-items: center;
  gap: 12px;
  margin-bottom: 13px;
}
.home-quote .copy-heading h3 {
  font-size: 15px;
  font-weight: 600;
}
.home-quote .copy-heading button {
  border-color: var(--brand-border);
  background: #fff;
  color: var(--accent);
  font-size: 11px;
  padding: 5px 8px;
  border-radius: 4px;
  white-space: nowrap;
}
.home-quote pre {
  font: inherit;
  font-family: 'Songti SC', 'Noto Serif SC', serif;
  font-size: 20px;
  line-height: 1.95;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin: 0 0 16px;
  color: #63463e;
}
.home-writing-links {
  display: grid;
  gap: 0;
}
.home-writing-links > a {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}
.home-writing-links > a:first-child {
  padding-top: 0;
}
.home-writing-links > a > span {
  flex: 1;
  min-width: 0;
}
.home-writing-links strong {
  display: block;
  font-size: 17px;
  margin-bottom: 4px;
}
.home-writing-links > a > span > span {
  display: block;
  font-size: 12px;
  color: var(--muted);
}
.home-writing-links .ui-icon {
  color: var(--accent);
}
.home-readings {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.home-readings .home-writing-group-title {
  margin-bottom: 4px;
}
.home-readings p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}
.home-reading-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
}
.home-reading-links > a {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: space-between;
  color: var(--accent);
  font-size: 14px;
  min-height: 44px;
}
.home-readings .ui-icon {
  width: 16px;
  height: 16px;
}
.home-tool-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.home-tool {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  column-gap: 16px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #e3e6e9;
  border-radius: 7px;
  padding: 20px;
}
.home-tool-top {
  grid-column: 1;
  grid-row: 1 / span 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  color: #b5aaa0;
  font-size: 12px;
}
.home-tool-top .ui-icon {
  width: 28px;
  height: 28px;
  color: var(--accent);
}
.home-tool h3 {
  grid-column: 2;
  font-size: 17px;
  margin-bottom: 6px;
}
.home-tool p {
  grid-column: 2;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 10px;
}
.home-tool > .home-more {
  grid-column: 2;
}
.home-downloads {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 24px;
  padding: 25px 0;
  align-items: center;
  position: relative;
}
.home-downloads > span {
  position: absolute;
  top: 0;
}
.home-downloads h3 {
  font-size: 16px;
  margin-bottom: 3px;
}
.home-downloads p {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}
.home-download-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.home-download-links > div > a {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--ink);
}
.home-download-links .ui-icon {
  width: 16px;
  height: 16px;
}
.home-download-links > div > .home-file {
  color: var(--accent);
  font-size: 11px;
  margin-top: 6px;
}
.home-guide-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.home-guide-grid > a {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 10px 0;
  color: var(--ink);
}
.home-guide-number {
  color: #cdbab0;
  font-family: Georgia, serif;
  font-size: 24px;
  line-height: 1.4;
}
.home-guide-grid h3 {
  margin-bottom: 6px;
  font-size: 16px;
}
.home-guide-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}
.home-guide-grid .ui-icon {
  width: 17px;
  height: 17px;
  margin-left: auto;
  color: var(--accent);
}
.home-scenarios {
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  padding: 16px 0;
  margin: 22px 0 0;
  background: none;
}
.home-scenarios summary {
  color: #686361;
  font-size: 13px;
}
.home-scenarios > div {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  padding-top: 22px;
}
.home-scenarios h3 {
  font-size: 15px;
  margin-bottom: 6px;
}
.home-scenarios p {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 8px;
}
.home-scenarios a {
  display: block;
  font-size: 12px;
  margin-top: 6px;
}
.home-final-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 25px;
  padding: 16px 0;
  font-size: 12px;
}
.home-final-links > span {
  color: var(--muted);
}
/* 反馈只应用到可操作的内容，保留正文与整套展台的稳定位置。 */
.home-editorial a,
.home-editorial button {
  transition:
    color 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease;
}
.home-content-card,
.home-editorial .home-tool {
  transition:
    transform 200ms ease,
    box-shadow 200ms ease,
    border-color 200ms ease;
}
.home-more .ui-icon,
.home-actions .ui-icon,
.home-writing-links > a > .ui-icon:last-child,
.home-guide-grid > a > .ui-icon {
  transition: transform 200ms ease;
}
.home-card-cover > img,
.home-card-cover .media-poster > img,
.home-game-scene {
  transition: transform 280ms ease;
}
.home-content-card:focus-within,
.home-tool:focus-visible {
  border-color: var(--brand-border);
  box-shadow: 0 6px 18px #5335260c;
}
.home-writing-links > a,
.home-guide-grid > a {
  border-radius: 5px;
}
.home-quote button:active {
  background: var(--brand-tint-strong);
}
@media (hover: hover) and (pointer: fine) {
  .home-content-card:hover,
  .home-tool:hover {
    border-color: var(--brand-border);
    box-shadow: 0 9px 24px #53352610;
  }
  .home-task-grid a:hover,
  .home-writing-links > a:hover,
  .home-guide-grid > a:hover {
    background: var(--brand-tint);
  }
  .home-quick-tools a:hover {
    background: color-mix(in srgb, var(--ink) 4%, var(--white));
    color: var(--ink);
  }
}
@media (prefers-reduced-motion: no-preference) {
  .home-enter {
    animation: home-arrive 420ms cubic-bezier(0.2, 0.65, 0.3, 1) backwards;
  }
  .home-enter:not(.home-heading) {
    animation-delay: 60ms;
  }
  .home-scenarios[open] > div {
    animation: home-expand 180ms ease-out;
  }
  @media (hover: hover) and (pointer: fine) {
    .home-content-card:hover,
    .home-tool:hover {
      transform: translateY(-3px);
    }
    .home-content-card:hover .home-card-cover > img,
    .home-content-card:hover .media-poster > img,
    .home-content-card:hover .home-game-scene {
      transform: scale(1.025);
    }
    a:hover > .home-more .ui-icon,
    a.home-more:hover .ui-icon,
    .home-actions a:hover .ui-icon,
    .home-writing-links > a:hover > .ui-icon:last-child,
    .home-guide-grid > a:hover > .ui-icon {
      transform: translateX(3px);
    }
  }
}
@keyframes home-arrive {
  from {
    opacity: 0.35;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes home-expand {
  from {
    opacity: 0.55;
  }
  to {
    opacity: 1;
  }
}
@media (max-width: 1050px) {
  .home-hero {
    gap: 20px;
    min-height: 380px;
  }
  .home-hero-art {
    height: 290px;
  }
  .home-hero h1 {
    font-size: 44px;
  }
  .home-hero-lead {
    font-size: 14px;
  }
  .home-task-grid a {
    padding-inline: 12px;
  }
  .home-task-grid strong {
    font-size: 14px;
  }
  .home-task-grid a > span {
    font-size: 11px;
  }
  .home-performance-rows {
    gap: 24px;
  }
  .home-content-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }
  .home-card-info {
    padding: 10px;
  }
  .home-script-cover {
    padding: 10px;
    gap: 5px;
  }
  .home-script-cover strong {
    font-size: 18px;
  }
}
@media (max-width: 800px) {
  .home-hero h1 {
    font-size: 38px;
  }
  .home-hero-art {
    height: 245px;
  }
  .home-actions {
    gap: 8px;
  }
  .home-editorial .button {
    padding: 10px 13px;
    font-size: 12px;
    gap: 8px;
  }
  .home-task-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    row-gap: 0;
  }
  .home-task-grid a {
    padding-inline: 20px;
  }
  .home-task-grid a:nth-child(-n + 3) {
    --task-bottom: var(--task-row-gap);
  }
  .home-task-grid a:nth-child(n + 4) {
    --task-top: var(--task-row-gap);
  }
  .home-task-grid a:nth-child(3n)::after {
    display: none;
  }
  .home-performance-rows {
    grid-template-columns: 1fr;
    gap: 26px;
  }
  .home-performance-group + .home-performance-group {
    padding-top: 26px;
  }
  .home-card-info {
    padding: 14px 16px;
  }
  .home-script-cover strong {
    font-size: 26px;
  }
  .home-writing-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .home-quote pre {
    font-size: 16px;
  }
  .home-tool {
    padding: 18px;
  }
  .home-tool h3 {
    font-size: 17px;
  }
  .home-downloads {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .home-guide-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .home-scenarios > div {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 600px) {
  .home-enter {
    animation-name: home-expand;
    animation-duration: 280ms;
    animation-delay: 0ms;
  }
  .home-hero {
    display: block;
    min-height: 0;
    padding: 27px 0 22px;
  }
  .home-hero-art,
  .home-hero-fallback {
    display: none;
  }
  .home-hero h1 {
    font-size: 39px;
    margin: 12px 0 14px;
  }
  .home-hero-lead {
    font-size: 14px;
    margin-bottom: 18px;
  }
  .home-quick-tools {
    margin-top: 15px;
  }
  .home-task-grid {
    --task-edge: 17px;
    --task-row-gap: 10px;
    margin-top: 0;
    gap: 0;
  }
  .home-task-grid a {
    padding-inline: 12px;
    gap: 4px;
  }
  .home-task-grid .ui-icon {
    width: 24px;
    height: 24px;
    margin-bottom: 5px;
  }
  .home-task-grid strong {
    font-size: 13px;
  }
  .home-task-grid a > span {
    font-size: 10px;
  }
  .home-section {
    padding: 40px 0;
  }
  .home-opening {
    padding-bottom: 36px;
  }
  .home-section-label {
    margin-bottom: 10px;
    font-size: 11px;
  }
  .home-performance-rows {
    gap: 32px;
  }
  .home-performance-group + .home-performance-group {
    border-top: 1px solid var(--line);
    padding-top: 26px;
  }
  .home-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 18px;
  }
  .home-heading h2 {
    font-size: 27px;
  }
  .home-heading p {
    font-size: 13px;
  }
  .home-content-grid {
    grid-template-columns: 1fr;
  }
  .home-card-info {
    padding: 16px;
  }
  .home-card-info h4 {
    font-size: 18px;
  }
  .home-card-info p {
    font-size: 13px;
  }
  .home-card-condition {
    font-size: 12px;
  }
  .home-script-cover {
    border-width: 6px;
    padding: 8px;
  }
  .home-script-cover strong {
    font-size: 18px;
  }
  .home-script-cover > span {
    font-size: 9px;
  }
  .home-section-footnote a {
    display: block;
    margin: 6px 0 0;
  }
  .home-quote-panel {
    padding: 20px;
  }
  .home-quote pre {
    font-size: 15px;
  }
  .home-writing-links strong {
    font-size: 16px;
  }
  .home-tool-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .home-tool {
    padding: 18px 20px;
  }
  .home-tool-top {
    margin-bottom: 9px;
  }
  .home-tool p {
    margin-bottom: 10px;
  }
  .home-download-links {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .home-download-links > div {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px 15px;
  }
  .home-download-links > div > .home-file {
    margin: 0;
  }
  .home-final-links {
    gap: 7px 18px;
  }
  .home-final-links > span {
    width: 100%;
  }
}
@media (max-width: 360px) {
  .home-hero h1 {
    font-size: 35px;
  }
  .home-task-grid a {
    padding-inline: 9px;
  }
  .home-script-cover strong {
    font-size: 16px;
  }
  .home-script-cover > span:last-child {
    display: none;
  }
  .home-scenarios > div {
    grid-template-columns: 1fr;
  }
}
@media (prefers-reduced-motion: reduce) {
  .home-editorial *,
  .home-editorial *::before,
  .home-editorial *::after {
    animation: none !important;
    transition: none !important;
  }
  html {
    scroll-behavior: auto;
  }
}
@media print {
  .home-editorial * {
    animation: none !important;
    transition: none !important;
  }
  body[data-page='home'] footer::before {
    display: none;
  }
  .home-tools {
    margin: 0;
    padding-inline: 0;
    background: none;
    border: 0;
  }
  .home-hero-art,
  .home-task-grid,
  .home-actions,
  .home-quick-tools,
  .home-more,
  .home-quote button {
    display: none;
  }
  .home-section {
    break-inside: avoid;
    padding-top: 20px;
  }
  .home-hero {
    display: block;
    min-height: 0;
  }
}
