.festival-dock {
  position: absolute;
  bottom: 85px;
  left: 35px;
  right: 420px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 9px;
  z-index: 5;
}
.festival-dock button {
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  border: 1px solid #ffffffe0;
  background: #fffdf2ec;
  backdrop-filter: blur(16px);
  padding: 14px 10px;
  border-radius: 16px;
  color: #315d50;
  box-shadow: 0 8px 30px #315d5010;
  min-height: 78px;
}
.festival-dock b {
  font-family: serif;
  font-size: 25px;
  color: #bb8c4d;
}
.festival-dock span {
  font-size: 12px;
  font-weight: 700;
}
.festival-dock small {
  display: block;
  font-weight: 400;
  font-size: 9px;
  margin-top: 6px;
  color: #6b796b;
}
.festival-status {
  position: absolute;
  top: 96px;
  right: 35px;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 4;
  font-size: 10px;
  color: #476b59;
  background: #fff8;
  padding: 9px 14px;
  border-radius: 25px;
  backdrop-filter: blur(12px);
}
.festival-status button {
  border: 0;
  border-left: 1px solid #b9c8b5;
  background: transparent;
  color: #476b59;
  font-size: 10px;
  padding-left: 10px;
  min-height: 28px;
}
.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #7ca36b;
  box-shadow: 0 0 0 4px #7ca36b22;
}
.scene-tools {
  bottom: 190px;
}
.scene-hint {
  bottom: 255px;
  font-size: 10px;
}
.world-bottom {
  bottom: 55px;
}
.sky-caption span {
  font-size: 31px;
  max-width: 250px;
}
.chapter-label {
  top: 265px;
}
.play {
  top: 145px;
  bottom: 85px;
}
.hide-mission .play,
.watching-show .play {
  display: none;
}
.hide-mission .festival-dock,
.watching-show .festival-dock {
  right: 35px;
  max-width: 750px;
}
.watching-show .festival-dock {
  display: none;
}
.watching-show .sky-caption,
.watching-show .chapter-label,
.watching-show .route,
.watching-show #npc-labels {
  display: none;
}
.festival-dialog {
  max-width: 920px;
  width: calc(100% - 40px);
  max-height: 88dvh;
  background: #fffaf0;
  padding: 35px 40px;
  overflow-y: auto;
  overflow-x: hidden;
  border: 1px solid #fff;
  box-shadow: 0 30px 130px #1d493966;
}
.festival-dialog h2 {
  font-size: 32px;
  line-height: 1.35;
  margin: 13px 0;
  font-family: serif;
}
.festival-dialog > div > p {
  max-width: 650px;
}
.festival-kicker {
  font-size: 10px;
  letter-spacing: 3px;
  color: #a17840;
  margin-top: 6px;
}
.festival-close {
  position: sticky;
  top: 0;
  z-index: 2;
}
.culture-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 17px;
  margin: 25px 0;
}
.culture-card {
  padding: 0 0 20px;
  background: #fff;
  border: 1px solid #e7e1cd;
  border-radius: 18px;
  overflow: hidden;
  text-align: left;
  color: #315d50;
}
.culture-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  margin-bottom: 16px;
}
.culture-card span,
.culture-card h3,
.culture-card small {
  display: block;
  margin: 8px 15px;
}
.culture-card span {
  font-size: 10px;
  color: #8d7b5d;
}
.culture-card h3 {
  font-size: 16px;
}
.culture-card small {
  font-size: 11px;
  color: #77856c;
}
.festival-note {
  font-size: 11px !important;
}
.culture-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
  clear: both;
}
.culture-cover {
  width: 100%;
  height: 330px;
  object-fit: cover;
  border-radius: 16px;
}
.festival-buttons {
  display: grid;
  gap: 8px;
}
.festival-buttons .primary {
  margin-top: 0;
}
.festival-dialog a {
  font-size: 11px;
  color: #56745c;
  line-height: 2.5;
}
.video-section {
  margin: 25px 0;
}
.video-placeholder {
  background: #243e36;
  color: #eee7cf;
  min-height: 240px;
  border-radius: 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 25px;
  text-align: center;
}
.video-placeholder p {
  color: #fff;
}
.video-placeholder .primary {
  width: auto;
  background: #d7b676;
  color: #283f34;
}
.video-placeholder small {
  font-size: 11px;
  margin-top: 15px;
}
.video-placeholder:has(iframe) {
  padding: 0;
  aspect-ratio: 16/9;
}
.video-placeholder iframe {
  width: 100%;
  height: 100%;
  aspect-ratio: 16/9;
  border: 0;
  border-radius: 15px;
}
.friends-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  margin-top: 25px;
}
.friend-card {
  display: flex;
  align-items: center;
  flex-direction: column;
  padding: 20px 8px;
  border-radius: 17px;
  border: 1px solid #e5e0cc;
  background: #fffdf5;
  color: #355e4d;
}
.friend-card strong {
  margin: 14px 0 7px;
}
.friend-card small {
  font-size: 11px;
  color: #82785c;
}
.portrait {
  display: block;
  position: relative;
  width: 80px;
  height: 80px;
  overflow: hidden;
  border-radius: 50%;
  background: #d6e5cd;
}
.portrait .face {
  position: absolute;
  width: 34px;
  height: 38px;
  background: #e4b18b;
  border-radius: 40%;
  top: 21px;
  left: 23px;
  z-index: 1;
}
.portrait .hair {
  position: absolute;
  width: 40px;
  height: 33px;
  background: #594c3e;
  border-radius: 50% 50% 20% 20%;
  left: 20px;
  top: 15px;
  z-index: 2;
}
.portrait .face:after {
  content: "•  •";
  font-size: 13px;
  letter-spacing: 2px;
  position: absolute;
  top: 10px;
  left: 5px;
  color: #493e30;
  z-index: 3;
}
.portrait .body {
  position: absolute;
  width: 54px;
  height: 40px;
  background: #bd7054;
  border-radius: 50% 50% 0 0;
  top: 57px;
  left: 13px;
}
.portrait-1 {
  background: #efdeb1;
}
.portrait-1 .body {
  background: #679a86;
}
.portrait-2 {
  background: #d9dff0;
}
.portrait-2 .body {
  background: #e3bb5b;
}
.portrait-3 {
  background: #efccc1;
}
.portrait-3 .body {
  background: #638aad;
}
.friend-chat img {
  width: 100%;
  max-height: 280px;
  object-fit: cover;
  border-radius: 14px;
}
.show-list {
  display: grid;
  gap: 12px;
  margin-top: 25px;
}
.show-card {
  padding: 10px;
  display: flex;
  align-items: center;
  gap: 20px;
  text-align: left;
  background: #fff;
  border: 1px solid #e5dfcb;
  border-radius: 16px;
  color: #345d4e;
}
.show-card img {
  width: 120px;
  height: 95px;
  object-fit: cover;
  border-radius: 10px;
}
.show-card span {
  flex: 1;
}
.show-card strong {
  display: block;
  font-size: 18px;
  margin: 9px 0;
}
.show-card small {
  font-size: 10px;
  color: #937c59;
}
.show-card em {
  font-style: normal;
  font-size: 11px;
  color: #7c8879;
}
.show-card b {
  padding: 15px;
  color: #b38c50;
}
.quiz-art {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 15px;
  margin: 12px 0 22px;
}
.quiz-options {
  display: grid;
  gap: 10px;
}
.quiz-options button {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 14px;
  text-align: left;
  border: 1px solid #dddac8;
  background: white;
  color: #345948;
  border-radius: 12px;
  min-height: 55px;
}
.quiz-options button > span {
  background: #eeeddf;
  border-radius: 8px;
  padding: 7px 10px;
  font-weight: 700;
  font-size: 12px;
}
.quiz-options .answer-right {
  background: #dcebd5;
  border-color: #62895b;
}
.quiz-options .answer-wrong {
  background: #f4dfd5;
  border-color: #bd8b71;
}
#quiz-feedback:not(:empty) {
  padding: 18px 0 0;
  color: #3d684a;
}
#quiz-feedback p {
  font-size: 13px;
}
.quiz-result {
  text-align: center;
  max-width: 620px;
  margin: auto;
}
.reward-orb {
  font-size: 75px;
  color: #d4a858;
  text-shadow: 0 0 35px #eac86c66;
}
.passport-stamps {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin: 25px 0;
}
.passport-stamps > span {
  width: 110px;
  height: 110px;
  border: 2px dashed #c6c9b9;
  border-radius: 50%;
  display: grid;
  place-content: center;
  gap: 10px;
  color: #9d9c8c;
  font-size: 12px;
  transform: rotate(-8deg);
}
.passport-stamps b {
  font-size: 20px;
}
.passport-stamps .stamped {
  border-color: #6c8d65;
  color: #426d46;
  background: #e7eedc;
}
.star-confetti {
  position: fixed;
  top: 30%;
  font-style: normal;
  pointer-events: none;
  z-index: 20;
  animation: confetti 1.5s forwards;
  font-size: 22px;
}
@keyframes confetti {
  to {
    transform: translate(var(--x), 450px) rotate(var(--r));
    opacity: 0;
  }
}
.show-controller {
  position: absolute;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  width: 360px;
  max-width: 90%;
  background: #fff9edee;
  backdrop-filter: blur(15px);
  border: 1px solid white;
  box-shadow: 0 15px 50px #2343;
  padding: 20px 25px;
  text-align: center;
  border-radius: 20px;
  z-index: 7;
}
.show-controller small {
  display: block;
  font-size: 10px;
  color: #967a4e;
  letter-spacing: 2px;
}
.show-controller strong {
  display: block;
  font-family: serif;
  font-size: 24px;
  margin: 10px 0;
}
.show-controller button {
  padding: 11px 15px;
  margin: 4px;
  border-radius: 20px;
  border: 0;
  background: #2f624d;
  color: white;
  font-size: 12px;
  min-height: 44px;
}
.show-controller button + button {
  background: #e8e8d7;
  color: #45604a;
}
.show-controller > span {
  display: block;
  font-size: 11px;
  margin-top: 12px;
  color: #7b816c;
}
.npc-pin {
  position: absolute;
  z-index: 3;
  background: #fff9eddd;
  border: 1px solid white;
  border-radius: 16px;
  padding: 6px 10px;
  font-size: 10px;
  color: #557259;
  box-shadow: 0 4px 12px #2542;
  pointer-events: auto;
  min-height: 32px;
  white-space: nowrap;
}
.npc-pin:before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #e0b66c;
  margin-right: 5px;
}
#npc-labels {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.route .stop {
  opacity: 0.6;
}
.watching-show .scene-tools {
  bottom: 35px;
}
.watching-show .world-bottom,
.watching-show .scene-hint {
  display: none;
}
@media (max-width: 850px) {
  main {
    padding-top: 540px;
  }
  .world {
    height: 540px;
  }
  .festival-dock {
    top: 440px;
    bottom: auto;
    left: 15px;
    right: 15px;
    gap: 6px;
  }
  .festival-dock button {
    padding: 12px 6px;
    min-height: 77px;
    display: block;
    text-align: center;
    border-radius: 12px;
  }
  .festival-dock b {
    font-size: 15px;
    display: block;
    margin-bottom: 6px;
  }
  .festival-dock span {
    font-size: 10px;
  }
  .festival-dock small {
    font-size: 8px;
    display: none;
  }
  .festival-status {
    top: 85px;
    right: 20px;
    left: 20px;
    justify-content: center;
    font-size: 9px;
  }
  .sky-caption {
    top: 140px;
  }
  .sky-caption span {
    font-size: 23px;
    max-width: 175px;
  }
  .scene-tools {
    bottom: 115px;
    left: 20px;
  }
  .play {
    top: auto;
    bottom: auto;
  }
  .festival-dialog {
    padding: 25px 20px;
    width: calc(100% - 20px);
    max-height: 92dvh;
  }
  .festival-dialog h2 {
    font-size: 25px;
  }
  .culture-grid {
    grid-template-columns: 1fr;
  }
  .culture-card {
    display: grid;
    grid-template-columns: 110px 1fr;
    padding: 0 0 8px;
  }
  .culture-card img {
    grid-row: 1/4;
    width: 110px;
    height: 140px;
    margin: 0;
  }
  .culture-card span {
    margin-top: 15px;
  }
  .culture-detail {
    grid-template-columns: 1fr;
  }
  .culture-cover {
    height: 180px;
  }
  .friends-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .show-card img {
    width: 85px;
    height: 85px;
  }
  .show-card {
    gap: 12px;
  }
  .show-card strong {
    font-size: 15px;
  }
  .show-card b {
    display: none;
  }
  .show-card em {
    font-size: 10px;
  }
  .quiz-art {
    height: 160px;
  }
  .passport-stamps {
    gap: 8px;
  }
  .passport-stamps > span {
    width: 85px;
    height: 85px;
    font-size: 10px;
  }
  .watching-show main,
  .hide-mission main {
    height: 100dvh;
    min-height: 700px;
    padding-top: 0;
  }
  .watching-show .world,
  .hide-mission .world {
    height: 100%;
  }
  .watching-show .show-controller {
    bottom: 100px;
  }
  .hide-mission .festival-dock {
    top: auto;
    bottom: 85px;
    right: 15px;
  }
  .watching-show .scene-tools {
    bottom: 35px;
  }
  .npc-pin {
    font-size: 8px;
    padding: 4px 7px;
    min-height: 26px;
  }
  .page-footer {
    margin-top: 0;
  }
  .hide-mission .page-footer,
  .watching-show .page-footer {
    position: absolute;
    bottom: 0;
  }
}
.river-switcher {
  position: absolute;
  left: 35px;
  top: 335px;
  display: flex;
  z-index: 5;
  align-items: stretch;
  background: #fffdf1e8;
  backdrop-filter: blur(15px);
  border: 1px solid white;
  border-radius: 16px;
  box-shadow: 0 5px 25px #28452d15;
  overflow: hidden;
  max-width: 310px;
}
.river-switcher button {
  border: 0;
  background: transparent;
  color: #365e4d;
  min-width: 44px;
  min-height: 55px;
  padding: 10px;
  font-size: 25px;
}
.river-switcher #river-select {
  font-size: 12px;
  text-align: left;
  padding: 10px 12px;
  min-width: 180px;
}
.river-switcher small {
  font-size: 9px;
  display: block;
  color: #7e876b;
  margin-bottom: 5px;
}
.river-switcher strong {
  font-size: 12px;
}
.river-map-dialog {
  max-width: 900px;
  width: calc(100% - 30px);
  max-height: 90dvh;
  overflow: auto;
  padding: 30px;
  background: #fffaf0;
  border-radius: 24px;
}
.river-map-dialog h2 {
  font-size: 30px;
  font-family: serif;
}
.river-map-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin: 25px 0;
}
.river-map-card {
  padding: 0 0 18px;
  border: 2px solid #e9e5d5;
  border-radius: 18px;
  overflow: hidden;
  background: #fffdf7;
  text-align: left;
  color: #365d4a;
}
.river-map-card.selected {
  border-color: #4b7d5b;
  box-shadow: 0 0 0 3px #62875220;
}
.map-art {
  display: block;
  height: 100px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(var(--map-sky) 45%, var(--map-grass) 45%);
}
.map-art i {
  display: block;
  position: absolute;
  width: 80%;
  height: 200px;
  left: 0;
  top: 20px;
  border: 22px solid var(--map-water);
  border-radius: 50%;
  transform: rotate(-45deg);
}
.map-art b {
  position: absolute;
  right: 15px;
  top: 12px;
  font-size: 26px;
  color: #fff;
}
.river-map-card > span:not(.map-art),
.river-map-card > strong,
.river-map-card > em {
  display: block;
  margin: 10px 15px 0;
}
.map-region {
  font-size: 10px;
  color: #8d876e;
}
.river-map-card > strong {
  font-size: 24px;
  font-family: serif;
}
.river-map-card > em {
  font-size: 11px;
  font-style: normal;
  color: #8a7754;
}
.map-description {
  font-size: 11px;
  line-height: 1.6;
  color: #788171;
  min-height: 36px;
}
.map-enter {
  font-size: 11px;
  color: #416f50;
}
.watching-show .river-switcher {
  top: 150px;
}
.map-transition {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 6;
  animation: map-reveal 0.65s both;
  background: #e2e9d9;
}
@keyframes map-reveal {
  from {
    opacity: 0.8;
  }
  to {
    opacity: 0;
  }
}
@media (max-width: 850px) {
  .river-switcher {
    top: 355px;
    left: auto;
    right: 20px;
    max-width: 250px;
  }
  .river-switcher #river-select {
    min-width: 160px;
    padding: 8px;
  }
  .river-switcher strong {
    font-size: 10px;
  }
  .river-switcher button {
    min-width: 35px;
    min-height: 50px;
  }
  .river-switcher small {
    font-size: 8px;
  }
  .river-map-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .river-map-dialog {
    padding: 24px 18px;
  }
  .map-description {
    font-size: 10px;
    min-height: 50px;
  }
  .river-map-card > strong {
    font-size: 23px;
  }
  .watching-show .river-switcher {
    top: 140px;
    right: 20px;
  }
  .hide-mission .river-switcher {
    top: 355px;
  }
}
