:root {
  font-family: "PingFang TC", "Noto Sans TC", sans-serif;
  color: #233d39;
  background: #f7f5ed;
  font-size: 16px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  font: inherit;
  cursor: pointer;
  transition:
    transform 0.18s,
    background 0.18s;
}
button:hover {
  transform: translateY(-2px);
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #bf601e;
  outline-offset: 5px;
}
button:disabled {
  cursor: default;
  transform: none;
}
header {
  height: 100px;
  max-width: 1500px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5%;
  gap: 24px;
}
.brand {
  font-weight: 900;
  font-size: 26px;
  letter-spacing: 3px;
  color: #264d43;
  text-decoration: none;
}
.brand span {
  display: block;
  font-size: 11px;
  letter-spacing: 5px;
  font-weight: 500;
  margin-top: 4px;
}
.chapter {
  font-size: 13px;
  letter-spacing: 2px;
  color: #65756b;
}
header button,
.page-footer button {
  border: 0;
  background: none;
  color: #39564d;
  padding: 12px;
  text-decoration: underline;
  text-underline-offset: 5px;
}
main {
  max-width: 1440px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  min-height: 690px;
  padding: 0 28px;
}
.world {
  position: relative;
  min-height: 690px;
  border-radius: 24px 0 0 24px;
  overflow: hidden;
  background:
    linear-gradient(
      180deg,
      rgba(16, 47, 47, 0.15),
      transparent 45%,
      rgba(14, 47, 39, 0.65)
    ),
    url("../assets/board/river_panorama_touqian.jpg") center/cover;
}
.sky-caption {
  position: absolute;
  top: 45px;
  left: 36px;
  color: white;
  font-size: 11px;
  letter-spacing: 4px;
  text-shadow: 0 2px 9px #233d39;
}
.sky-caption span {
  display: block;
  font-family: serif;
  font-size: 35px;
  letter-spacing: 2px;
  margin-top: 14px;
  max-width: 340px;
  line-height: 1.6;
}
.chapter-label {
  position: absolute;
  left: 36px;
  top: 190px;
  font-size: 13px;
  background: #f7f5edee;
  padding: 12px 18px;
  border-radius: 4px;
}
.chapter-label span {
  display: block;
  font-size: 11px;
  margin-top: 4px;
  color: #546b60;
}
.route {
  position: absolute;
  inset: 290px 25px 70px;
}
.stop {
  position: absolute;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #f5f1de;
  border: 3px solid #fff;
  box-shadow: 0 5px 15px #173f3f66;
  color: #315b4c;
  font-weight: bold;
}
.stop small {
  position: absolute;
  top: 55px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  color: white;
  text-shadow: 0 1px 5px #18362e;
  font-size: 12px;
}
.stop.active {
  background: #efd28c;
  outline: 8px solid #fff4;
  animation: pulse 3s infinite;
}
.stop.done {
  background: #2b6a57;
  color: white;
}
.stop:disabled {
  opacity: 0.65;
}
.traveler {
  position: absolute;
  width: 130px;
  left: 40%;
  bottom: 90px;
  filter: drop-shadow(0 10px 7px #1235);
  animation: float 4s ease-in-out infinite;
  pointer-events: none;
}
.world-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px 26px;
  color: #fff;
  display: flex;
  justify-content: space-between;
  gap: 15px;
  font-size: 11px;
}
.play {
  background: #fffdf7;
  border: 1px solid #e7e8d9;
  border-left: 0;
  border-radius: 0 24px 24px 0;
  padding: 30px 36px;
  display: flex;
  flex-direction: column;
}
.progress {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #61756a;
  gap: 10px;
}
.meter {
  height: 4px;
  background: #e7ebdf;
  margin: 15px 0 30px;
  border-radius: 4px;
}
.meter i {
  display: block;
  height: 100%;
  width: 0;
  background: #56836a;
  transition: width 0.4s;
}
.eyebrow {
  font-size: 12px;
  letter-spacing: 2px;
  color: #a05e32;
  margin-bottom: 12px;
}
h1 {
  font-family: serif;
  font-weight: 700;
  font-size: 36px;
  line-height: 1.4;
  margin: 0 0 18px;
}
p {
  line-height: 1.8;
  color: #5d6e64;
  font-size: 15px;
  margin: 12px 0;
}
.speaker {
  display: flex;
  align-items: center;
  gap: 13px;
  margin: 20px 0;
  background: #f0f1e7;
  padding: 14px;
  border-radius: 13px;
}
.speaker img {
  width: 58px;
  height: 64px;
  object-fit: contain;
}
.speaker p {
  margin: 0;
  font-size: 14px;
}
.turn {
  font-size: 12px;
  color: #416752;
  margin: 20px 0 10px;
  font-weight: 700;
}
.choice {
  width: 100%;
  text-align: left;
  padding: 14px 17px;
  margin: 0 0 9px;
  border: 1px solid #d7dfd0;
  background: white;
  color: #2a4a3d;
  border-radius: 10px;
  min-height: 50px;
}
.choice:hover {
  background: #eff3e8;
  border-color: #7a947b;
}
.primary {
  background: #285e4b;
  color: white;
  border: 0;
  border-radius: 10px;
  padding: 16px 22px;
  min-height: 52px;
  font-weight: 700;
  width: 100%;
  margin-top: 15px;
}
.primary:hover {
  background: #1d4939;
}
.subtle {
  font-size: 12px;
  color: #778276;
  text-align: center;
}
#feedback:not(:empty) {
  background: #edf2e6;
  border-left: 3px solid #68875d;
  padding: 12px 16px;
  margin-top: 12px;
  line-height: 1.7;
  font-size: 14px;
}
#footer {
  margin-top: auto;
  padding-top: 15px;
}
.page-footer {
  max-width: 1384px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  padding: 12px 28px;
  gap: 20px;
  font-size: 12px;
  color: #68786a;
}
.page-footer > span {
  margin-right: auto;
}
.object-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.object {
  background: #f2f3e9;
  border: 1px solid #d8dfcc;
  border-radius: 12px;
  padding: 10px;
  color: #375445;
  min-height: 100px;
}
.object img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  display: block;
  margin: auto;
}
.object.selected {
  background: #d9e9d5;
  border-color: #416b49;
}
.readings {
  padding: 15px;
  background: #eef0e6;
  line-height: 1.9;
  border-radius: 8px;
  font-size: 14px;
}
.notes {
  border-bottom: 1px solid #e3e6da;
  padding: 12px 0;
}
.notes strong {
  color: #295d49;
}
dialog {
  border: 0;
  border-radius: 20px;
  padding: 35px;
  max-width: 500px;
  width: calc(100% - 36px);
  color: #234437;
  box-shadow: 0 20px 100px #17392c44;
}
dialog::backdrop {
  background: #13352e88;
  backdrop-filter: blur(4px);
}
dialog h2 {
  font-family: serif;
}
.close {
  float: right;
  border: 0;
  background: #edf0e5;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 24px;
}
.stage-row {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin: 20px 0;
}
.stage-row button {
  width: 70px;
  height: 70px;
  border: 1px solid #b7c6b3;
  background: #eaf0e3;
  border-radius: 15px;
  font-size: 24px;
}
.stage-row button.lit {
  background: #e7ba60;
  border-color: #9c692e;
}
.success {
  font-size: 64px;
  color: #40795a;
  font-family: serif;
}
.pledge {
  width: 100%;
  padding: 13px;
  font: inherit;
  border: 1px solid #b8c7b4;
  border-radius: 8px;
  background: white;
  color: #234437;
}
@keyframes float {
  50% {
    transform: translateY(-10px) rotate(3deg);
  }
}
@keyframes pulse {
  50% {
    outline-color: #fff1;
  }
}
@media (max-width: 850px) {
  main {
    grid-template-columns: 1fr;
    padding: 0 16px;
  }
  .world {
    min-height: 390px;
    border-radius: 20px 20px 0 0;
  }
  .play {
    border: 1px solid #e7e8d9;
    border-radius: 0 0 20px 20px;
    padding: 25px;
    min-height: 540px;
  }
  .sky-caption {
    top: 25px;
    left: 25px;
  }
  .sky-caption span {
    font-size: 29px;
  }
  .chapter-label {
    top: 150px;
    left: 25px;
  }
  .route {
    inset: 230px 25px 65px;
  }
  .traveler {
    width: 85px;
    bottom: 45px;
  }
  .stop {
    width: 42px;
    height: 42px;
  }
  .stop small {
    top: 44px;
    font-size: 10px;
  }
  .chapter {
    display: none;
  }
  header {
    height: 85px;
  }
  .brand {
    font-size: 22px;
  }
  .world-bottom {
    padding: 15px;
    font-size: 9px;
  }
  .page-footer {
    padding: 12px 18px;
    gap: 4px;
  }
  .page-footer > span {
    max-width: 130px;
  }
  h1 {
    font-size: 30px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
