.app.is-immersive { height: var(--app-h); }
.app.is-immersive .tabbar { display: none; }
.app.is-immersive .view {
  padding-bottom: 0;
  height: 100%;
  overflow: hidden;
}
.page.imm-page {
  padding: 0;
  height: 100%;
  animation: none;
}
.river-lantern-page,
.ref-wall-page,
.ref-sky-page,
.ref-light-page {
  height: 100%;
}

.scene-background {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.river-scene {
  position: relative;
  height: 100%;
  overflow: hidden;
  background: #071429;
}
.page-actions button,
.history-trigger,
.release-trigger,
.nav-button {
  cursor: pointer;
}
.release-trigger {
  white-space: nowrap;
}
.release-trigger img.trigger-icon {
  width: 0.54rem;
  height: 0.38rem;
  object-fit: contain;
}
.river-lantern-page .sky-glow,
.river-lantern-page .sky-haze,
.river-lantern-page .moon,
.river-lantern-page .moon-reflection,
.river-lantern-page .distant-shore {
  display: none !important;
}
#lanternPool {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
}
#lanternPool .floating-lantern {
  pointer-events: auto;
  -webkit-animation-name: none !important;
  animation-name: none !important;
  will-change: transform, opacity;
}
.product-icon,
.history-light,
.detail-light {
  overflow: hidden;
}
.product-icon img,
.history-light img,
.detail-light img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.river-lantern-page .scene-title {
  font-size: 0.32rem;
  font-weight: 500;
}
.river-lantern-page .scene-subtitle {
  font-size: 0.2rem;
  opacity: 0.86;
}
.content-input {
  border: 0;
  background: transparent;
  resize: none;
  outline: none;
  font: inherit;
  font-size: 16px;
  color: #332e27;
}
.anonymous-switch {
  appearance: none;
  flex: none;
  width: 0.86rem;
  height: 0.5rem;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0.25rem;
  background: #d8cdb9;
  position: relative;
}
.anonymous-switch::after {
  content: "";
  position: absolute;
  top: 0.04rem;
  left: 0.04rem;
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.2s ease;
}
.anonymous-switch.is-on {
  background: #a86b25;
}
.anonymous-switch.is-on::after {
  transform: translateX(0.36rem);
}
.share-tip {
  margin: 1.2rem 0.48rem 0;
  color: #f5e7c3;
  font-size: 0.28rem;
  text-align: right;
}

.ref-wall-page {
  --u: 0.536px;
  position: relative;
  overflow: hidden;
  background: #70060a;
  color: #fff;
}
.ref-wall-page .wall-theme {
  position: absolute;
  left: 0;
  top: 0;
  width: calc(var(--u) * 750);
  height: calc(var(--u) * 1220);
  object-fit: fill;
  z-index: 0;
}
.ref-wall-page .bgxiabufen {
  position: absolute;
  left: 0;
  bottom: 0;
  width: calc(var(--u) * 750);
  background: #70060a;
  z-index: 0;
}
.wall-plaque {
  position: absolute;
  left: 50%;
  top: calc(var(--u) * -2);
  z-index: 3;
  width: calc(var(--u) * 420);
  transform: translateX(-50%);
  pointer-events: none;
}
.wall-plaque-art {
  display: block;
  width: 100%;
  height: auto;
}
.wall-plaque-name {
  position: absolute;
  left: 21%;
  right: 21%;
  top: 44%;
  height: 38%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4a2e14;
  font-family: "Noto Serif SC", "Times New Roman", serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.12em;
  line-height: 1;
  white-space: nowrap;
}
html[lang="en"] .wall-plaque-name {
  font-size: 11px;
  letter-spacing: 0.03em;
}
.ref-wall-page .jishi-head {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 8;
  height: calc(var(--sat) + var(--u) * 96);
  display: flex;
  align-items: flex-end;
  padding: var(--sat) 0 calc(var(--u) * 6) calc(var(--u) * 14);
  box-sizing: border-box;
}
.ref-wall-page .wall-back {
  position: relative;
  display: flex;
  width: calc(var(--u) * 62);
  height: calc(var(--u) * 54);
  margin: 0;
  padding: 0;
  border: calc(var(--u) * 2) solid #e2c36a;
  border-radius: 32% / 36%;
  background:
    linear-gradient(165deg, rgba(255, 226, 168, 0.28), transparent 46%),
    linear-gradient(180deg, #a56d3e 0%, #7c4c2a 52%, #5a341c 100%);
  box-shadow:
    0 calc(var(--u) * 2) calc(var(--u) * 5) rgba(70, 28, 10, 0.3),
    inset 0 1px 0 rgba(255, 228, 176, 0.4),
    inset 0 0 0 calc(var(--u) * 3) rgba(62, 34, 16, 0.18);
  color: #f6e6bc;
  appearance: none;
  -webkit-appearance: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.ref-wall-page .wall-back::before {
  content: "";
  position: absolute;
  inset: calc(var(--u) * 5);
  border-radius: 28% / 32%;
  box-shadow: inset 0 0 0 calc(var(--u) * 1.3) rgba(226, 195, 106, 0.55);
  pointer-events: none;
}
.ref-wall-page .wall-back svg {
  position: relative;
  z-index: 1;
  display: block;
  width: 46%;
  height: 46%;
  margin-right: 8%;
  filter: drop-shadow(0 1px 0 rgba(70, 36, 12, 0.35));
}
.ref-wall-page .wall-back:active {
  transform: translateY(1px);
  filter: brightness(0.96);
}
.wishindex {
  position: absolute;
  left: 0;
  width: 100%;
  z-index: 2;
}
.wishindex.is-r1 { top: calc(var(--u) * 150); }
.wishindex.is-r2 { top: calc(var(--u) * 450); }
.wishindex.is-r3 { top: calc(var(--u) * 739); }
.wishindex .rows {
  display: flex;
  flex-wrap: nowrap;
  width: calc(var(--u) * 620);
  margin: auto;
  justify-content: space-around;
}
.wishindex .kd-tag {
  position: relative;
  display: block;
  width: calc(var(--u) * 80);
  height: calc(var(--u) * 250);
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  transform-origin: top center;
}
.wishindex .kd-tag img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}
.wishindex .kd-name {
  position: absolute;
  left: 18%;
  right: 18%;
  top: 38%;
  height: 26%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff6e6;
  font-family: "Noto Serif SC", "Times New Roman", serif;
  font-size: calc(var(--u) * 22);
  font-weight: 600;
  letter-spacing: 0.18em;
  line-height: 1.15;
  writing-mode: vertical-rl;
  pointer-events: none;
}
.wishindex .kd-name.is-en,
html[lang="en"] .wishindex .kd-name {
  writing-mode: horizontal-tb;
  text-orientation: mixed;
  top: 42%;
  height: 20%;
  font-size: calc(var(--u) * 11);
  letter-spacing: 0;
  text-align: center;
}
.wishindex .kd-tag.ksanim {
  animation: routate0 2.1s ease-in-out infinite;
}
@keyframes routate0 {
  0%, 100% { transform: rotate(3deg); }
  40% { transform: rotate(-3deg); }
}
.wall-dock {
  position: absolute;
  left: 0;
  width: calc(var(--u) * 750);
  bottom: 10px;
  z-index: 5;
  text-align: center;
}
.wall-refresh {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin: 0 0 10px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 15px;
  line-height: 23px;
  cursor: pointer;
}
.wall-refresh span {
  font-size: 16px;
}
.wall-dock .btns {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 38px;
}
.wall-dock .custom-style,
.wall-dock .custom-style2 {
  width: 129px;
  height: 38px;
  margin: 0 8px;
  padding: 0;
  border: 2px solid #fff;
  border-radius: 999px;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  line-height: 34px;
  cursor: pointer;
}
.wall-dock .custom-style { background: #c4a56a; }
.wall-dock .custom-style2 { background: #e17d52; }

.scene-overlay:has(.catall) {
  perspective: 800px;
}
.catall {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.wall-flip-stage {
  position: absolute;
  left: 50%;
  top: 50%;
  width: auto;
  height: min(calc(var(--u) * 886), calc(100% - 72px));
  aspect-ratio: 293 / 698;
  transform: translate(-50%, -50%);
  transform-origin: center center;
  transform-style: preserve-3d;
}
.wall-flip-stage.mymove1 {
  -webkit-animation: mymove1 5s ease-in-out forwards;
  animation: mymove1 5s ease-in-out forwards;
}
.wall-flip-stage.is-flipped {
  -webkit-animation: none;
  animation: none;
  transform: translate(-50%, -50%);
}
.wall-flip-stage.is-flipped .cabgzhiqian {
  visibility: hidden;
}
.wall-flip-stage.is-flipped .cabg {
  transform: none;
}
.cabgzhiqian,
.cabg {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  background-size: 100% 100%;
  background-position: center top;
  background-repeat: no-repeat;
  backface-visibility: hidden;
}
.cabgzhiqian {
  z-index: 2;
}
.wall-flip-catname {
  position: absolute;
  left: 18%;
  right: 18%;
  top: 36%;
  height: 28%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff6e6;
  font-family: "Noto Serif SC", "Times New Roman", serif;
  font-size: calc(var(--u) * 42);
  font-weight: 600;
  letter-spacing: 0.18em;
  line-height: 1.15;
  writing-mode: vertical-rl;
  pointer-events: none;
}
.wall-flip-catname.is-en,
html[lang="en"] .wall-flip-catname {
  writing-mode: horizontal-tb;
  text-orientation: mixed;
  font-size: calc(var(--u) * 26);
  letter-spacing: 0.03em;
  text-align: center;
}
.cabg {
  z-index: 1;
  transform: rotateY(-180deg);
}
@keyframes mymove1 {
  0% { transform: translate(-50%, -160%) rotateY(0deg); }
  13% { transform: translate(-50%, -50%) rotateY(0deg); }
  21% { transform: translate(-50%, -50%) rotateY(0deg); }
  35% { transform: translate(-50%, -50%) rotateY(-210deg); }
  40% { transform: translate(-50%, -50%) rotateY(-170deg); }
  45% { transform: translate(-50%, -50%) rotateY(-190deg); }
  60% { transform: translate(-50%, -50%) rotateY(-170deg); }
  65% { transform: translate(-50%, -50%) rotateY(-185deg); }
  100% { transform: translate(-50%, -50%) rotateY(-180deg); }
}
@-webkit-keyframes mymove1 {
  0% { -webkit-transform: translate(-50%, -160%) rotateY(0deg); }
  13% { -webkit-transform: translate(-50%, -50%) rotateY(0deg); }
  21% { -webkit-transform: translate(-50%, -50%) rotateY(0deg); }
  35% { -webkit-transform: translate(-50%, -50%) rotateY(-210deg); }
  40% { -webkit-transform: translate(-50%, -50%) rotateY(-170deg); }
  45% { -webkit-transform: translate(-50%, -50%) rotateY(-190deg); }
  60% { -webkit-transform: translate(-50%, -50%) rotateY(-170deg); }
  65% { -webkit-transform: translate(-50%, -50%) rotateY(-185deg); }
  100% { -webkit-transform: translate(-50%, -50%) rotateY(-180deg); }
}
.wall-flip-paper {
  position: absolute;
  left: 18%;
  right: 18%;
  top: 23%;
  height: 32%;
  overflow: hidden;
}
.wall-flip-text {
  height: 100%;
  overflow: auto;
  color: #4a2e14;
  font-size: 13px;
  line-height: 1.55;
  text-align: left;
  white-space: pre-wrap;
  word-break: normal;
  overflow-wrap: break-word;
}
.wall-flip-meta {
  position: absolute;
  left: 16%;
  right: 16%;
  top: 59%;
  height: 20%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.wall-flip-who {
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 100%;
}
.wall-flip-avatar {
  display: flex;
  flex: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #c0a166;
  color: #fff;
  font-size: 11px;
  align-items: center;
  justify-content: center;
}
.wall-flip-name {
  max-width: 140px;
  margin-left: 5px;
  overflow: hidden;
  color: #fff;
  font-size: 14px;
  line-height: 1.2;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.wall-flip-bless {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  max-width: 100%;
  margin-top: 4px;
  padding: 1px 8px;
  border: 0;
  border-radius: 10px;
  background: #c0a166;
  color: #fff;
  font-size: 12px;
  line-height: 1.2;
  white-space: nowrap;
  pointer-events: auto;
  cursor: pointer;
}
.wall-flip-bless.is-on { opacity: 0.72; }
.wall-flip-time {
  margin-top: 3px;
  color: #fff;
  font-size: 10px;
  line-height: 1.2;
  text-align: center;
}

.wall-write {
  position: absolute;
  left: 50%;
  top: 40px;
  width: calc(var(--u) * 600);
  margin-left: calc(var(--u) * -300);
  z-index: 32;
}
.wall-write-card {
  width: 100%;
  padding: 0 0 16px;
  overflow: auto;
  border-radius: 10px;
  background: #c0a166;
  text-align: center;
  box-sizing: border-box;
}
.wall-write-logo {
  display: block;
  width: 46px;
  height: 46px;
  margin: 10px auto 0;
  object-fit: contain;
}
.wall-write-intro {
  margin: 0 12px;
  color: #fff;
  font-size: 15px;
  line-height: 1.6;
}
.wall-write-intro div { margin-top: 5px; }
.wall-write-cats {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  margin: 16px 8px 0;
  color: #fff;
}
.wall-write-cats button {
  flex: 0 0 auto;
  height: 22px;
  margin: 0;
  padding: 0 6px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #fff;
  font-size: 15px;
  letter-spacing: 1px;
  line-height: 22px;
  white-space: nowrap;
  text-align: center;
  cursor: pointer;
}
.wall-write-cats button.wishsel {
  background: rgba(152, 118, 74, 0.5);
}
.wall-write-area {
  display: block;
  width: min(calc(var(--u) * 520), calc(100% - 24px));
  height: 180px;
  margin: 8px auto 0;
  padding: 8px;
  border: 0;
  border-radius: 6px;
  background: rgba(255, 248, 230, 0.88);
  color: #332e27;
  font: inherit;
  font-size: 16px;
  line-height: 1.5;
  text-align: left;
  resize: none;
  outline: none;
  box-sizing: border-box;
}
.wall-write-anon {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}
.wall-write-anon button {
  margin: 0 10px;
  padding: 2px 12px;
  border: 1px solid #fff;
  border-radius: 999px;
  background: transparent;
  color: #fff;
  font-size: 14px;
  cursor: pointer;
}
.wall-write-anon button.is-on {
  background: #e17d52;
}
.wall-write-btn {
  display: block;
  width: 200px;
  height: 36px;
  margin: 20px auto 0;
  border: 2px solid #fff;
  border-radius: 999px;
  background: #e17d52;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}

.ref-sky-page {
  --u: 0.536px;
  position: relative;
  overflow: hidden;
  background: #3d445c;
  color: #f6ead4;
}
.ref-sky-page .sky-theme {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
  z-index: 0;
  pointer-events: none;
}
.ref-sky-page .jishi-head {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 8;
  height: calc(var(--sat) + var(--u) * 96);
  display: flex;
  align-items: flex-end;
  padding: var(--sat) 0 calc(var(--u) * 8) calc(var(--u) * 16);
  box-sizing: border-box;
}
.ref-sky-page .sky-back {
  position: relative;
  display: flex;
  width: calc(var(--u) * 58);
  height: calc(var(--u) * 58);
  margin: 0;
  padding: 0;
  border: calc(var(--u) * 1.8) solid #e2c36a;
  border-radius: 50%;
  background:
    linear-gradient(165deg, rgba(255, 226, 168, 0.22), transparent 46%),
    linear-gradient(180deg, #6a5340 0%, #4a382c 100%);
  box-shadow:
    0 calc(var(--u) * 2) calc(var(--u) * 5) rgba(20, 16, 28, 0.28),
    inset 0 1px 0 rgba(255, 228, 176, 0.35);
  color: #f6e6bc;
  appearance: none;
  -webkit-appearance: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.ref-sky-page .sky-back svg {
  display: block;
  width: 46%;
  height: 46%;
  margin-right: 8%;
}
.ref-sky-page .sky-back:active {
  transform: translateY(1px);
  filter: brightness(0.96);
}
.sky-flock {
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow: hidden;
  pointer-events: none;
}
.sky-occlude {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
  z-index: 3;
  pointer-events: none;
}
.sky-kong {
  position: absolute;
  left: 0;
  bottom: 2%;
  width: calc(var(--u) * 148 * var(--kong-size, 1));
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  pointer-events: auto;
  cursor: pointer;
  -webkit-animation-name: none !important;
  animation-name: none !important;
  transform-origin: center bottom;
  will-change: transform, opacity;
  filter: drop-shadow(0 0 10px rgba(255, 196, 110, 0.45));
}
.sky-kong img {
  display: block;
  width: 100%;
  height: auto;
  animation: skyBreath 2.8s ease-in-out infinite;
}
.sky-kong.is-mine {
  filter: drop-shadow(0 0 16px rgba(255, 214, 140, 0.75));
}
.sky-kong.is-entering {
  z-index: 3;
}
@keyframes skyRise {
  0% { transform: translate(-50%, 28%) translateX(0); opacity: 1; }
  52% { transform: translate(-50%, calc(var(--u) * -560)) translateX(10px); opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translate(-50%, calc(var(--u) * -980)) translateX(-8px); opacity: 0; }
}
@keyframes skyEnter {
  0% { transform: translate(-50%, 22%) scale(1.12); opacity: 1; }
  100% { transform: translate(-50%, calc(var(--u) * -360)) scale(1); opacity: 1; }
}
@keyframes skyBreath {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.12); }
}
.ref-sky-page:has(.scene-overlay.has-ui) .sky-dock {
  visibility: hidden;
}
.sky-dock {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(12px + env(safe-area-inset-bottom));
  z-index: 5;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
}
.sky-dock .sky-cta,
.sky-dock .sky-mine-btn {
  min-width: 120px;
  height: 38px;
  padding: 0 18px;
  border: 2px solid #fff6e4;
  border-radius: 999px;
  color: #fffaf0;
  font-size: 16px;
  font-weight: 600;
  line-height: 34px;
  cursor: pointer;
}
.sky-dock .sky-cta { background: #c4a56a; }
.sky-dock .sky-mine-btn { background: #8a5a3a; }
.sky-write {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 32;
}
.sky-write-card {
  padding: 18px 22px calc(20px + env(safe-area-inset-bottom));
  border-radius: 16px 16px 0 0;
  background: linear-gradient(180deg, #d4b57a 0%, #c4a56a 100%);
  text-align: center;
  box-shadow: 0 -8px 28px rgba(40, 24, 16, 0.28);
}
.sky-write-card h2 {
  margin: 0 0 6px;
  color: #fffaf0;
  font-size: 17px;
  font-weight: 600;
}
.sky-write-card p {
  margin: 0 0 10px;
  color: rgba(255, 248, 230, 0.86);
  font-size: 13px;
}
.sky-write-area {
  display: block;
  width: 100%;
  height: 110px;
  margin: 0;
  padding: 10px;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 248, 230, 0.92);
  color: #3a2a18;
  font: inherit;
  font-size: 16px;
  line-height: 1.5;
  resize: none;
  outline: none;
  box-sizing: border-box;
}
.sky-write-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
  color: rgba(255, 248, 230, 0.8);
  font-size: 12px;
}
.sky-write-anon {
  display: flex;
  justify-content: center;
  margin-top: 14px;
  gap: 12px;
}
.sky-write-anon button {
  padding: 3px 14px;
  border: 1px solid #fff6e4;
  border-radius: 999px;
  background: transparent;
  color: #fffaf0;
  font-size: 14px;
  cursor: pointer;
}
.sky-write-anon button.is-on {
  background: #e17d52;
}
.sky-write-btn {
  display: block;
  width: 180px;
  height: 38px;
  margin: 16px auto 0;
  border: 2px solid #fff6e4;
  border-radius: 999px;
  background: #e17d52;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}
.sky-detail {
  position: absolute;
  left: 50%;
  top: 50%;
  width: calc(var(--u) * 520);
  margin-left: calc(var(--u) * -260);
  transform: translateY(-50%);
  z-index: 32;
  padding: 22px 20px 18px;
  border-radius: 16px;
  background: rgba(255, 244, 220, 0.94);
  color: #3a2a18;
  text-align: center;
  box-shadow: 0 12px 32px rgba(30, 20, 16, 0.28);
}
.sky-detail .kicker {
  margin: 0 0 8px;
  color: #8a6230;
  font-size: 12px;
  letter-spacing: 0.12em;
}
.sky-detail h3 {
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 600;
}
.sky-detail p {
  margin: 0 0 16px;
  font-size: 16px;
  line-height: 1.65;
}
.sky-detail .acts .cta {
  min-width: 120px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: #c4a56a;
  color: #fffaf0;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.sky-mine-panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 32;
  max-height: 72%;
  padding: 14px 16px calc(18px + env(safe-area-inset-bottom));
  border-radius: 16px 16px 0 0;
  background: #4a382c;
  color: #f6ead4;
}
.sky-mine-panel .history-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.sky-mine-panel .history-title {
  font-size: 16px;
  font-weight: 600;
}
.sky-mine-panel .history-close {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #f6ead4;
  font-size: 22px;
  cursor: pointer;
}
.sky-mine-scroll {
  overflow: auto;
  max-height: 52vh;
}
.sky-mine-item {
  display: block;
  width: 100%;
  margin: 0 0 8px;
  padding: 12px 14px;
  border: 0;
  border-radius: 10px;
  background: rgba(255, 244, 220, 0.1);
  color: #f6ead4;
  text-align: left;
  cursor: pointer;
}
.sky-mine-item .kicker {
  margin-bottom: 4px;
  color: #e2c36a;
  font-size: 12px;
}
.sky-mine-item p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
}
.ref-sky-page .panel-mask {
  background: rgba(28, 24, 36, 0.42);
}

.ref-light-page {
  --u: 0.536px;
  position: relative;
  overflow: hidden;
  background: #4a3d38;
  color: #f6ead4;
}
.ref-light-page::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 36% at 50% 58%, rgba(255, 176, 72, 0.16), transparent 70%),
    linear-gradient(180deg, rgba(44, 52, 78, 0.08) 0 28%, transparent 48%);
}
.ref-light-page .light-theme {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
  z-index: 0;
  pointer-events: none;
}
.team-light-bar {
  position: absolute;
  left: 50%;
  top: calc(var(--sat) + var(--u) * 100);
  z-index: 8;
  transform: translateX(-50%);
  max-width: 78%;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(58, 42, 34, 0.62);
  border: 1px solid rgba(226, 195, 106, 0.32);
  color: #fff6e4;
  font-size: 12px;
  letter-spacing: 0.06em;
  pointer-events: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ref-light-page .jishi-head {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 8;
  height: calc(var(--sat) + var(--u) * 96);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: var(--sat) calc(var(--u) * 16) calc(var(--u) * 8);
  box-sizing: border-box;
}
.ref-light-page .light-back {
  position: relative;
  display: flex;
  width: calc(var(--u) * 58);
  height: calc(var(--u) * 58);
  margin: 0;
  padding: 0;
  border: calc(var(--u) * 1.8) solid #e2c36a;
  border-radius: 50%;
  background:
    linear-gradient(165deg, rgba(255, 226, 168, 0.22), transparent 46%),
    linear-gradient(180deg, #6a5340 0%, #4a382c 100%);
  color: #f6e6bc;
  appearance: none;
  -webkit-appearance: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.ref-light-page .light-back svg {
  display: block;
  width: 46%;
  height: 46%;
  margin-right: 8%;
}
.light-flickers {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}
.light-terrace {
  position: absolute;
  inset: 0;
  z-index: 3;
}
.ref-light-page.is-kindling-scene .light-dock,
.ref-light-page.is-kindling-scene .jishi-head {
  visibility: hidden;
}
.ref-light-page.is-kindling-scene .terrace-lamp {
  pointer-events: none;
}
.light-wand {
  --wand-rot: 24deg;
  position: absolute;
  left: 0;
  top: 0;
  z-index: 7;
  width: 0;
  height: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease;
}
.light-wand.is-on { opacity: 1; }
.light-wand .wand-arm {
  position: absolute;
  left: 0;
  top: 0;
  width: calc(var(--u) * 52);
  transform: rotate(var(--wand-rot));
  transform-origin: 50% 0;
}
.light-wand .wand-sway {
  position: relative;
  width: 100%;
  height: 100%;
  transform-origin: 50% 0;
  -webkit-animation: wandSway 3.4s ease-in-out infinite;
  animation: wandSway 3.4s ease-in-out infinite;
}
.light-wand .wand-shaft {
  display: block;
  width: 100%;
  height: calc(var(--u) * 620);
  object-fit: contain;
  object-position: top center;
  filter: drop-shadow(2px 10px 10px rgba(40, 18, 8, 0.32));
}
.light-wand .wand-halo,
.light-wand .wand-flame {
  position: absolute;
  left: 50%;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.6s ease;
}
.light-wand .wand-halo {
  top: calc(var(--u) * -28);
  width: calc(var(--u) * 90);
  height: calc(var(--u) * 90);
  margin-left: calc(var(--u) * -45);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 176, 72, 0.55) 0 24%, rgba(232, 140, 48, 0.12) 50%, transparent 72%);
}
.light-wand .wand-flame {
  top: calc(var(--u) * -10);
  width: calc(var(--u) * 16);
  height: calc(var(--u) * 26);
  margin-left: calc(var(--u) * -8);
  border-radius: 50% 50% 40% 40%;
  background: radial-gradient(circle at 50% 78%, #fff3b0 0 16%, #ff9a2e 46%, #d45610 72%, transparent 82%);
  filter: drop-shadow(0 0 8px rgba(255, 150, 40, 0.8));
}
.light-wand.is-lit .wand-halo {
  opacity: 1;
  animation: wandHalo 2.4s ease-in-out infinite;
}
.light-wand.is-lit .wand-flame {
  opacity: 1;
  animation: wandFlame 1.5s ease-in-out infinite;
}
.light-wand.is-touching .wand-halo {
  opacity: 1;
  transform: scale(1.22);
  transition: transform 0.18s ease;
}
@keyframes wandSway {
  0%, 100% { transform: rotate(0deg); }
  40% { transform: rotate(1.6deg); }
  72% { transform: rotate(-1.1deg); }
}
@keyframes wandHalo {
  0%, 100% { opacity: 0.68; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.1); }
}
@keyframes wandFlame {
  0%, 100% { transform: scaleY(1) rotate(-5deg); }
  50% { transform: scaleY(1.18) rotate(5deg); }
}
.terrace-lamp {
  position: absolute;
  left: 0;
  bottom: 0;
  width: calc(var(--u) * 94 * var(--s, 1));
  height: calc(var(--u) * 126 * var(--s, 1));
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  transform: translateX(-50%);
  cursor: pointer;
}
.terrace-lamp .tl-halo,
.terrace-lamp .tl-flame,
.terrace-lamp .tl-art {
  position: absolute;
  pointer-events: none;
}
.terrace-lamp .tl-art {
  left: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: bottom center;
}
.terrace-lamp .tl-on,
.terrace-lamp .tl-off {
  transition: opacity 0.55s ease;
}
.terrace-lamp .tl-on,
.terrace-lamp .tl-flame,
.terrace-lamp .tl-halo { opacity: 0; }
.terrace-lamp .tl-off { opacity: 1; }
.terrace-lamp.is-lit .tl-on,
.terrace-lamp.is-lit .tl-off { opacity: 0; }
.terrace-lamp.is-mine.is-lit .tl-off,
.terrace-lamp.is-kindling.is-lit .tl-off {
  opacity: 1;
  filter: brightness(1.08) saturate(1.06);
}
.terrace-lamp .tl-halo {
  left: 50%;
  bottom: 48%;
  width: 88%;
  height: 42%;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 176, 72, 0.16) 0 18%, rgba(232, 140, 48, 0.05) 46%, transparent 72%);
}
.terrace-lamp.is-lit .tl-halo {
  opacity: 1;
  animation: lampHalo 3.2s ease-in-out infinite;
}
.terrace-lamp .tl-flame,
.bg-flame {
  z-index: 3;
  pointer-events: none;
}
.terrace-lamp .tl-flame {
  left: 50%;
  bottom: 56%;
  width: 9%;
  height: 26%;
  transform: translate(-50%, 0);
}
.terrace-lamp.is-near .tl-flame {
  width: 10%;
  height: 28%;
  bottom: 55%;
}
.terrace-lamp.is-lit .tl-flame { opacity: 0; }
.terrace-lamp.is-mine.is-lit .tl-flame,
.terrace-lamp.is-kindling.is-lit .tl-flame { opacity: 1; }
.bg-flame {
  position: absolute;
  width: calc(var(--u) * 10 * var(--s, 1));
  height: calc(var(--u) * 20 * var(--s, 1));
  transform: translate(-50%, -100%);
}
.tl-flame-move,
.tl-flame-glow,
.tl-flame-mid,
.tl-flame-core {
  position: absolute;
  pointer-events: none;
}
.tl-flame-move {
  inset: 0;
  transform-origin: 50% 100%;
  will-change: transform;
}
.tl-flame-glow,
.tl-flame-mid,
.tl-flame-core { left: 50%; }
.tl-flame-glow {
  bottom: 4%;
  width: 140%;
  height: 58%;
  margin-left: -70%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 196, 90, 0.34) 0 22%, rgba(255, 150, 50, 0.08) 46%, transparent 70%);
  filter: blur(2.5px);
}
.tl-flame-mid {
  bottom: 0;
  width: 36%;
  height: 100%;
  margin-left: -18%;
  border-radius: 50% 50% 42% 42% / 64% 64% 36% 36%;
  background:
    radial-gradient(circle at 50% 88%, rgba(80, 130, 210, 0.18) 0 7%, transparent 16%),
    radial-gradient(circle at 50% 70%, #fff6c8 0 16%, #ffc35a 38%, #ff8a28 64%, #d24a12 84%, transparent 92%);
}
.tl-flame-core {
  bottom: 7%;
  width: 14%;
  height: 44%;
  margin-left: -7%;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 66%, #fffef8 0 46%, #ffe7a2 74%, transparent 86%);
}
.terrace-lamp.is-off .tl-off {
  filter: brightness(0.78) saturate(0.72);
}
.terrace-lamp.is-mine.is-lit .tl-halo {
  background: radial-gradient(circle, rgba(255, 196, 90, 0.28) 0 20%, rgba(232, 150, 50, 0.08) 50%, transparent 72%);
}
.terrace-lamp.is-kindling .tl-halo {
  animation: lampKindle 1.15s ease-out forwards;
}
.terrace-lamp.is-kindling .tl-flame {
  animation: lampFlameIn 0.7s ease-out both;
}
.terrace-lamp.is-kindling .tl-on {
  opacity: 0;
  animation: none;
}
.terrace-lamp.glow-lotus.is-lit .tl-halo {
  background: radial-gradient(circle, rgba(255, 170, 130, 0.2) 0 22%, transparent 70%);
}
.terrace-lamp.glow-peace.is-lit .tl-halo {
  background: radial-gradient(circle, rgba(255, 206, 96, 0.22) 0 22%, transparent 70%);
}
@keyframes lampHalo {
  0%, 100% { opacity: 0.68; transform: translateX(-50%) scale(1); }
  50% { opacity: 1; transform: translateX(-50%) scale(1.08); }
}
@keyframes lampFlame {
  0%, 100% { transform: translateX(-50%) scaleY(1) rotate(-4deg); }
  50% { transform: translateX(-50%) scaleY(1.16) rotate(4deg); }
}
@keyframes lampKindle {
  0% { opacity: 0; transform: translateX(-50%) scaleX(0.45) scaleY(0.15); }
  55% { opacity: 1; transform: translateX(-50%) scaleX(1.05) scaleY(1.08); }
  100% { opacity: 1; transform: translateX(-50%) scale(1); }
}
@keyframes lampKindleArt {
  0% { opacity: 0.4; filter: brightness(0.82) saturate(0.75); }
  100% { opacity: 1; filter: brightness(1) saturate(1); }
}
@keyframes lampFlameIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}
.ref-light-page:has(.scene-overlay.has-ui) .light-dock,
.ref-light-page:has(.scene-overlay.has-ui) .light-mine-btn {
  visibility: hidden;
}
.ref-light-page .light-mine-btn {
  min-width: calc(var(--u) * 112);
  height: calc(var(--u) * 58);
  padding: 0 16px;
  border: calc(var(--u) * 1.8) solid #e2c36a;
  border-radius: 999px;
  background:
    linear-gradient(165deg, rgba(255, 226, 168, 0.22), transparent 46%),
    linear-gradient(180deg, #6a5340 0%, #4a382c 100%);
  color: #f6e6bc;
  font-size: 15px;
  font-weight: 600;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}
.light-dock {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 12%;
  z-index: 5;
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: none;
}
.light-dock .light-cta {
  pointer-events: auto;
  min-width: 148px;
  height: 42px;
  padding: 0 22px;
  border: 1.5px solid rgba(255, 246, 228, 0.88);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 226, 168, 0.2), transparent 48%),
    #c4a56a;
  color: #fffaf0;
  font-size: 16px;
  font-weight: 600;
  line-height: 39px;
  box-shadow: 0 8px 20px rgba(40, 22, 10, 0.22);
  cursor: pointer;
}
.light-pick {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 32;
  max-height: 78%;
  padding: 16px 16px calc(18px + env(safe-area-inset-bottom));
  border-radius: 16px 16px 0 0;
  background: #4a382c;
  color: #f6ead4;
  overflow: auto;
}
.light-pick h2 {
  margin: 0 0 12px;
  font-size: 18px;
}
.light-product {
  display: flex;
  align-items: center;
  width: 100%;
  margin: 0 0 8px;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: rgba(255, 244, 220, 0.08);
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.light-product.is-on {
  border-color: #e2c36a;
  background: rgba(226, 195, 106, 0.16);
}
.light-product strong { display: block; font-size: 15px; }
.light-product .prose { margin: 2px 0 0; font-size: 12px; color: rgba(246, 234, 212, 0.76); }
.light-product .price { margin-left: auto; padding-left: 10px; color: #e2c36a; font-size: 14px; }
.light-qty {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 14px 0;
}
.light-qty button {
  width: 36px;
  height: 36px;
  border: 1px solid #e2c36a;
  border-radius: 50%;
  background: transparent;
  color: #f6ead4;
  font-size: 20px;
  cursor: pointer;
}
.light-pick-next,
.light-write-btn {
  display: block;
  width: 180px;
  height: 38px;
  margin: 8px auto 0;
  border: 2px solid #fff6e4;
  border-radius: 999px;
  background: #e17d52;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}
.light-write {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 32;
}
.light-write-card {
  padding: 18px 22px calc(20px + env(safe-area-inset-bottom));
  border-radius: 16px 16px 0 0;
  background: linear-gradient(180deg, #d4b57a 0%, #c4a56a 100%);
  text-align: center;
}
.light-write-card h2 {
  margin: 0 0 6px;
  color: #fffaf0;
  font-size: 17px;
}
.light-write-card .hint {
  margin: 0 0 10px;
  color: rgba(255, 248, 230, 0.86);
  font-size: 13px;
}
.light-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 0 0 12px;
}
.light-chips button {
  padding: 4px 12px;
  border: 1px solid #fff6e4;
  border-radius: 999px;
  background: transparent;
  color: #fffaf0;
  font-size: 13px;
  cursor: pointer;
}
.light-chips button.is-on { background: #e17d52; }
.light-write-card .field,
.light-write-area {
  display: block;
  width: 100%;
  margin: 0 0 10px;
  padding: 10px;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 248, 230, 0.92);
  color: #3a2a18;
  font: inherit;
  font-size: 16px;
  box-sizing: border-box;
}
.light-write-area {
  height: 88px;
  resize: none;
}
.light-write-bar {
  color: rgba(255, 248, 230, 0.8);
  font-size: 12px;
  text-align: right;
}
.light-detail {
  position: absolute;
  left: 50%;
  top: 50%;
  width: calc(var(--u) * 520);
  margin-left: calc(var(--u) * -260);
  transform: translateY(-50%);
  z-index: 32;
  padding: 22px 20px 18px;
  border-radius: 16px;
  background: linear-gradient(180deg, #f6e6c4 0%, #ead4a4 100%);
  color: #3a2a18;
  text-align: center;
  box-shadow: 0 16px 40px rgba(40, 24, 12, 0.28);
}
.light-detail .kicker {
  margin: 0 0 8px;
  color: #8a6230;
  font-size: 12px;
  letter-spacing: 0.12em;
}
.light-detail h3 { margin: 0 0 8px; font-size: 15px; }
.light-detail p { margin: 0 0 16px; font-size: 16px; line-height: 1.65; }
.light-detail .acts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
.light-detail .acts .cta,
.light-mine-panel .history-close {
  min-width: 120px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: #c4a56a;
  color: #fffaf0;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.light-detail .acts .cta.ghost {
  background: transparent;
  color: #8a6230;
  border: 1px solid rgba(138, 98, 48, 0.35);
}
.light-mine-panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 32;
  max-height: 72%;
  padding: 14px 16px calc(18px + env(safe-area-inset-bottom));
  border-radius: 16px 16px 0 0;
  background: #4a382c;
  color: #f6ead4;
}
.light-mine-panel .history-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.light-mine-panel .history-title { font-size: 16px; font-weight: 600; }
.light-mine-panel .history-close {
  width: 32px;
  min-width: 32px;
  height: 32px;
  background: transparent;
  color: #f6ead4;
  font-size: 22px;
}
.light-mine-scroll { overflow: auto; max-height: 52vh; }
.light-mine-item {
  display: block;
  width: 100%;
  margin: 0 0 8px;
  padding: 12px 14px;
  border: 0;
  border-radius: 10px;
  background: rgba(255, 244, 220, 0.1);
  color: #f6ead4;
  text-align: left;
  cursor: pointer;
}
.light-mine-item .kicker { margin-bottom: 4px; color: #e2c36a; font-size: 12px; }
.light-mine-item p { margin: 0; font-size: 14px; line-height: 1.5; }
.light-mine-item .go-fulfill {
  display: inline-block;
  margin-top: 8px;
  color: #e2c36a;
  font-size: 12px;
}
.ref-light-page .panel-mask { background: rgba(28, 24, 36, 0.42); }

.scene-overlay { position: absolute; inset: 0; z-index: 30; pointer-events: none; }
.scene-overlay.has-ui { pointer-events: auto; }
.panel-mask { position: absolute; inset: 0; background: rgba(0, 10, 18, 0.68); }
.order-panel,
.history-panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 31;
  max-height: 80%;
  overflow: auto;
}
.imm textarea, .imm input, .order-panel, .history-panel, .lantern-detail, .sky-write-card, .light-write-card { user-select: text; }

@media (max-height: 700px) {
  .wall-write-area { height: 132px; }
  .sky-write-area { height: 88px; }
  .light-write-area { height: 72px; }
  .light-dock { bottom: max(10%, calc(12px + var(--sab))); }
}

@media (max-width: 360px) {
  .sky-dock { gap: 8px; padding: 0 12px; }
  .sky-dock .sky-cta,
  .sky-dock .sky-mine-btn,
  .light-dock .light-cta {
    min-width: 0;
    flex: 1 1 auto;
    padding: 0 12px;
    font-size: 15px;
  }
}
