.screen--home { padding-top: 2px; }
.home {
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(320px, .97fr);
  align-items: center;
  gap: clamp(20px, 4vw, 52px);
  padding: clamp(8px, 2vw, 22px) 0 18px;
}
.home__copy { min-width: 0; }
.home__title {
  margin: 0 0 10px;
  color: var(--red-dark);
  font-size: clamp(38px, 6.2vw, 68px);
  line-height: 1.06;
  letter-spacing: .04em;
  text-shadow: 0 3px 0 #f3d9a4, 0 5px 14px rgba(124, 31, 44, .12);
}
.home__lede { max-width: 36em; color: var(--ink-soft); font-size: clamp(15px, 1.7vw, 17px); }
.home__lede strong { color: var(--red-dark); }
.home__cta { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 14px; }
.home__progress { min-height: 1.5em; color: var(--ink-soft); font-size: 13px; font-weight: 700; }
.home__chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; list-style: none; }
.home__chips li {
  padding: 4px 10px;
  border: 1px solid #d9bf8d;
  border-radius: 999px;
  background: #fff8e6;
  color: #79510b;
  font-size: 12px;
  font-weight: 700;
}
.home__art { min-width: 0; }
.hero-card {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 6px solid #fffaf0;
  border-radius: 26px;
  background: #f5e6c8;
  box-shadow: 0 18px 44px rgba(84, 46, 22, .2), 0 2px 0 #e2cda8;
  transform: rotate(-.8deg);
}
.hero-card::before {
  content: "";
  position: absolute;
  inset: 8px;
  z-index: 1;
  border: 1px dashed rgba(255, 250, 240, .62);
  border-radius: 18px;
  pointer-events: none;
}
.hero-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.hero-card figcaption {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  padding: 6px 10px;
  border-radius: 9px;
  background: rgba(45, 30, 20, .7);
  color: #fff8e8;
  font-size: 12px;
  text-align: center;
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}
.home__zones { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
.home-zone {
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-top: 5px solid var(--zone);
  border-radius: 14px;
  background: rgba(255, 250, 240, .86);
  box-shadow: var(--shadow-sm);
}
.home-zone > span { font-size: 22px; }
.home-zone h2 { margin: 3px 0 2px; font-size: 15px; }
.home-zone p { color: var(--ink-soft); font-size: 12px; line-height: 1.5; }
.home-zone--1 { border-top-color: #b17a17; }
.home-zone--2 { border-top-color: #2f7f78; }
.home-zone--3 { border-top-color: #6b4778; }
.home-zone--4 { border-top-color: #a52f3f; }

.topbar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  padding: 8px 0 12px;
  border-bottom: 1px dashed #d9c8a8;
}
.topbar__title { min-width: 0; text-align: center; }
.topbar__kicker { display: block; color: var(--zone-deep); font-size: 11px; font-weight: 800; letter-spacing: .08em; }
.topbar__title h1 { font-size: clamp(24px, 3vw, 34px); line-height: 1.2; color: var(--ink); }
.topbar__stats { display: flex; justify-content: flex-end; }

.map-zones { display: grid; gap: 18px; }
.map-zone {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 250, 240, .9);
  box-shadow: var(--shadow);
}
.map-zone__head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(100deg, var(--zc-soft, #fbecc4), #fffaf0 78%);
}
.map-zone__emblem {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 2px solid #fff;
  border-radius: 13px;
  background: var(--zc, #b17a17);
  font-size: 24px;
  box-shadow: var(--shadow-sm);
}
.map-zone__title { min-width: 0; }
.map-zone__title span { display: block; color: var(--zc-deep, #7d5308); font-size: 10.5px; font-weight: 800; letter-spacing: .08em; }
.map-zone__title h2 { margin: 0; font-size: 19px; line-height: 1.3; }
.map-zone__title p { color: var(--ink-soft); font-size: 12px; line-height: 1.45; }
.map-zone__count { justify-self: end; white-space: nowrap; font-size: 12px; color: var(--ink-soft); font-weight: 700; }
.level-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; padding: 12px; }
.level-node {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  min-height: 122px;
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fffdf7;
  color: var(--ink);
  text-align: left;
  box-shadow: 0 2px 0 #eadcc1;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.level-node:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(84, 46, 22, .13); background: #fff; }
.level-node:active { transform: translateY(1px); }
.level-node__top { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.level-node__num {
  display: inline-grid;
  place-items: center;
  min-width: 28px;
  height: 28px;
  padding: 0 5px;
  border-radius: 8px;
  background: var(--zc-soft, #fbecc4);
  color: var(--zc-deep, #7d5308);
  font-size: 13px;
  font-weight: 900;
}
.level-node__status { color: var(--ink-soft); font-size: 12px; font-weight: 800; }
.level-node__name { font-size: 14px; font-weight: 900; line-height: 1.35; }
.level-node__concept { color: var(--ink-soft); font-size: 11.5px; line-height: 1.4; }
.level-node__stars { margin-top: auto; color: #806a4e; font-size: 14px; letter-spacing: .06em; }
.level-node__stars .empty { color: #d9c8a8; }
.level-node.is-locked {
  background: #f2eadb;
  border-style: dashed;
  color: #6a6157;
  box-shadow: none;
}
.level-node.is-locked .level-node__num { background: #e6dcc9; color: #6a6157; }
.level-node.is-locked .level-node__stars { opacity: .55; }
.level-node.is-next { border-color: var(--zc); box-shadow: 0 0 0 2px var(--zc-soft), 0 2px 0 #eadcc1; }
.level-node.is-done .level-node__num { background: var(--zc); color: #fffaf0; }
.map-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.map-hint { color: var(--ink-soft); font-size: 12.5px; }

.intro { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(270px, .85fr); gap: 20px; align-items: start; }
.intro__card {
  padding: clamp(16px, 2.4vw, 26px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
}
.intro__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.stars-line { color: #806a4e; font-size: 18px; letter-spacing: .12em; }
.stars-line .empty { color: #d9c8a8; }
.intro__card h1 { margin: 8px 0 4px; font-size: clamp(27px, 4vw, 40px); line-height: 1.2; color: var(--zone-deep); }
.intro__concept { color: var(--ink-soft); font-size: 14px; }
.intro__story {
  position: relative;
  margin: 14px 0;
  padding: 13px 15px;
  border-left: 5px solid var(--zone);
  border-radius: 0 12px 12px 0;
  background: var(--zone-soft);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.7;
}
.intro__who { font-weight: 900; color: var(--zone-deep); }
.intro__goal { font-weight: 700; font-size: 14px; }
.intro__goal::before { content: "任務："; color: var(--zone-deep); font-weight: 900; }
.intro__tips { margin: 12px 0; padding-left: 1.35em; color: var(--ink-soft); font-size: 13.5px; }
.intro__tips li { margin: 4px 0; }
.intro__meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.intro__meta span { padding: 4px 9px; border: 1px solid var(--line); border-radius: 7px; background: #fffdf7; color: var(--ink-soft); font-size: 11.5px; font-weight: 700; }
.intro__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 18px; }
.intro__actions .btn--primary { margin-left: auto; }
.intro__aside {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fffdf7;
  box-shadow: var(--shadow-sm);
}
.intro__aside img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.intro__aside p { padding: 11px 14px; color: var(--ink-soft); font-size: 12.5px; line-height: 1.6; }

.result { display: grid; place-items: center; padding: 16px 0; }
.result__card {
  width: min(620px, 100%);
  padding: clamp(18px, 3vw, 30px);
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--paper);
  text-align: center;
  box-shadow: var(--shadow-lg);
}
.result__kicker { color: var(--zone-deep); font-size: 12px; font-weight: 900; letter-spacing: .1em; }
.result__stars { display: flex; justify-content: center; gap: 6px; margin: 8px 0; color: #806a4e; font-size: clamp(36px, 7vw, 52px); line-height: 1.2; }
.result__stars .empty { color: #dfd1b7; }
.result__card h1 { font-size: clamp(26px, 5vw, 38px); line-height: 1.22; }
.result__sub { margin: 4px 0 12px; color: var(--ink-soft); font-size: 14px; }
.result__stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin: 12px 0 16px;
  padding: 10px;
  border-radius: 12px;
  background: #f8efdd;
}
.result__stats div { min-width: 0; }
.result__stats dt { color: var(--ink-soft); font-size: 11px; }
.result__stats dd { font-size: 16px; font-weight: 900; }
.program-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px dashed #cdb389;
  border-radius: 12px;
  background: #fff8e6;
  text-align: left;
}
.program-card__icon { font-size: 28px; }
.program-card h3 { font-size: 14px; }
.program-card p { color: var(--ink-soft); font-size: 12px; line-height: 1.55; }
.result__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 18px; }

.collection-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.collection-card {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fffdf7;
  box-shadow: var(--shadow-sm);
}
.collection-card__top { display: flex; justify-content: space-between; gap: 6px; align-items: center; }
.collection-card__num { color: var(--ink-soft); font-size: 11px; font-weight: 800; }
.collection-card__icon { font-size: 24px; }
.collection-card h2 { font-size: 14px; line-height: 1.35; }
.collection-card p { color: var(--ink-soft); font-size: 12px; line-height: 1.55; }
.collection-card__stars { margin-top: auto; color: #806a4e; letter-spacing: .06em; }
.collection-card.is-locked { background: #f1e8d8; border-style: dashed; }
.collection-card.is-locked .collection-card__icon { filter: grayscale(1); opacity: .5; }
.collection-card.is-locked h2 { color: #6a6157; }
.collection-empty { grid-column: 1 / -1; padding: 26px; text-align: center; color: var(--ink-soft); }

@media (max-width: 900px) {
  .home { grid-template-columns: 1fr; gap: 18px; }
  .home__art { max-width: 680px; }
  .home__zones { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .intro { grid-template-columns: 1fr; }
  .intro__aside { display: grid; grid-template-columns: minmax(140px, .8fr) minmax(0, 1.2fr); align-items: center; }
  .intro__aside img { height: 100%; aspect-ratio: auto; }
  .collection-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .topbar { grid-template-columns: auto minmax(0, 1fr); gap: 8px; }
  .topbar__title { grid-column: 1 / -1; grid-row: 2; text-align: left; }
  .topbar__stats { grid-column: 2; grid-row: 1; }
  .level-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .map-zone__head { grid-template-columns: auto minmax(0, 1fr); }
  .map-zone__count { grid-column: 2; justify-self: start; }
}
@media (max-width: 560px) {
  .home__title { font-size: clamp(34px, 11vw, 48px); }
  .home__cta .btn { flex: 1 1 auto; }
  .home__zones { gap: 8px; }
  .home-zone { padding: 10px 11px; }
  .home-zone p { font-size: 11.5px; }
  .intro__actions { flex-direction: column; align-items: stretch; }
  .intro__actions .btn { width: 100%; }
  .intro__actions .btn--primary { order: -1; margin-left: 0; }
  .intro__aside { grid-template-columns: 1fr; }
  .intro__aside img { aspect-ratio: 3 / 2; }
  .result__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .result__actions { flex-direction: column; }
  .result__actions .btn { width: 100%; }
  .collection-grid { grid-template-columns: 1fr; }
  .map-zone__title p { font-size: 11.5px; }
  .level-node { min-height: 116px; padding: 9px; }
  .level-node__name { font-size: 13px; }
  .level-node__concept { font-size: 11px; }
  .map-foot { align-items: stretch; }
  .map-foot .btn { width: 100%; }
}
