/*
 * 网页版样式:照搬小程序 app.wxss 的设计变量与组件(rpx 折半成 px)。
 * 口径:奶油纸底 + 有色描边 + 硬阴影,无圆角无渐变。电脑上打开时收成一列手机宽度。
 */
:root {
  --px-bg: #f6efe3;
  --px-surface: #fcf7ec;
  --px-ink: #3b3226;
  --px-ink2: #8a7d66;
  --px-green: #4fa060;
  --px-green-dk: #3a7d4c;
  --px-orange: #e8823a;
  --px-orange-dk: #c2622a;
  --px-blue: #4e8fbf;
  --px-blue-dk: #3b6f95;
  --px-red: #c9503f;
  --px-red-dk: #a33f31;
  --px-yellow: #e9c46a;
  --px-yellow-dk: #c49a3c;
  --px-frame: #a89675;
  --px-shadow: rgba(59, 50, 38, 0.16);
  --px-line: #d9cdb4;
  --col: 520px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

[hidden] {
  display: none !important;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: #e4d8c2;
  color: var(--px-ink);
  font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Noto Sans CJK SC', sans-serif;
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

#app {
  position: relative;
  max-width: var(--col);
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  background: var(--px-bg);
  overflow-x: hidden;
}

button,
input,
textarea {
  font: inherit;
  color: inherit;
}

img {
  max-width: 100%;
}

canvas.px-avatar {
  display: block;
  image-rendering: pixelated;
  flex-shrink: 0;
}

.page {
  padding: 16px;
  padding-bottom: calc(var(--safe-b) + 24px);
}

.h1 {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 1px;
  margin-bottom: 4px;
  line-height: 1.4;
}

.h2 {
  font-size: 15px;
  font-weight: 800;
  margin: 14px 0 7px;
  color: var(--px-ink);
}

.muted {
  color: var(--px-ink2);
  font-size: 12px;
}

.link {
  color: var(--px-blue);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.link.muted {
  color: var(--px-ink2);
}

/* ============ 顶栏 ============ */

.topbar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  margin: calc(var(--safe-t) - 4px) 0 12px;
}

.topbar-back {
  position: absolute;
  left: 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--px-ink2);
  padding: 6px 8px 6px 0;
  cursor: pointer;
}

.topbar-t {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 1px;
}

/* ============ 卡片 / 盒 ============ */

.card {
  background: var(--px-surface);
  border: 3px solid var(--px-frame);
  box-shadow: 4px 4px 0 var(--px-shadow);
  padding: 12px;
  margin-bottom: 12px;
}

.f-box {
  border: 3px solid var(--px-frame);
  background: var(--px-surface);
  box-shadow: 3px 3px 0 var(--px-shadow);
  padding: 11px 12px;
  margin-bottom: 12px;
  white-space: pre-wrap;
  word-break: break-word;
}

.f-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--px-ink2);
}

/* ============ 按钮 ============ */

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid var(--px-frame);
  border-radius: 0;
  background: var(--px-surface);
  color: var(--px-ink);
  font-size: 14px;
  font-weight: 700;
  padding: 9px 14px;
  margin: 6px 0;
  box-shadow: 3px 3px 0 var(--px-shadow);
  cursor: pointer;
  line-height: 1.4;
  user-select: none;
  width: 100%;
}

.row > .btn {
  width: auto;
}

.btn:active {
  transform: translate(3px, 3px);
  box-shadow: 0 0 0 var(--px-shadow);
}

.btn-primary {
  background: var(--px-orange);
  border-color: var(--px-orange-dk);
  color: #fff7ea;
}

.btn-danger {
  color: var(--px-red);
  border-color: var(--px-red);
}

.btn-ghost {
  background: transparent;
  box-shadow: none;
  border-color: rgba(59, 50, 38, 0.35);
  color: var(--px-ink2);
}

.btn.sm {
  padding: 5px 10px;
  font-size: 12px;
  box-shadow: 2px 2px 0 var(--px-shadow);
  margin: 0;
  flex-shrink: 0;
  width: auto;
}

.btn:disabled {
  opacity: 0.4;
  cursor: default;
}

/* ============ 布局工具 ============ */

.row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.row-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.divider {
  height: 2px;
  background: rgba(59, 50, 38, 0.12);
  margin: 12px 0;
}

.empty {
  text-align: center;
  color: var(--px-ink2);
  padding: 40px 20px;
  font-size: 13px;
}

.empty .btn {
  margin: 16px auto 0;
  min-width: 180px;
}

.cell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 4px;
  border-bottom: 2px solid rgba(59, 50, 38, 0.12);
  cursor: pointer;
}

.cell:last-child {
  border-bottom: none;
}

.tick {
  color: var(--px-green);
  font-weight: 800;
}

/* ============ 标签 / 徽章 ============ */

.tag {
  display: inline-flex;
  align-items: center;
  border: 2px solid var(--px-frame);
  background: var(--px-bg);
  box-shadow: 2px 2px 0 var(--px-shadow);
  padding: 2px 8px;
  font-size: 12px;
  cursor: pointer;
  user-select: none;
}

.tag-active {
  background: var(--px-green);
  border-color: var(--px-green-dk);
  color: #fff7ea;
}

.tag.y {
  background: var(--px-yellow);
  border-color: var(--px-yellow-dk);
  cursor: default;
}

.badge {
  display: inline-block;
  font-size: 11px;
  padding: 1px 6px;
  border: 2px solid var(--px-frame);
  background: var(--px-surface);
  box-shadow: 2px 2px 0 var(--px-shadow);
  white-space: nowrap;
}

.badge-green {
  background: var(--px-green);
  color: #fff7ea;
  border-color: var(--px-green-dk);
}

.badge-amber {
  background: var(--px-yellow);
  border-color: var(--px-yellow-dk);
}

.badge-gray {
  background: transparent;
  color: var(--px-ink2);
  border-color: rgba(59, 50, 38, 0.3);
  box-shadow: none;
}

/* ============ 表单 ============ */

.field {
  margin-bottom: 14px;
}

.label {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: var(--px-ink2);
  margin-bottom: 6px;
  display: block;
}

.input,
.textarea {
  width: 100%;
  border: 3px solid var(--px-frame);
  border-radius: 0;
  background: var(--px-surface);
  padding: 8px 10px;
  font-size: 16px; /* 低于 16px iOS Safari 聚焦会自动放大页面 */
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.input:focus,
.textarea:focus {
  border-color: var(--px-green);
}

.textarea {
  resize: vertical;
  min-height: 72px;
  margin: 6px 0;
  line-height: 1.6;
}

.blink {
  animation: px-blink 1.1s steps(2) infinite;
}

@keyframes px-blink {
  50% {
    opacity: 0;
  }
}

/* ============ 弹层 ============ */

.sheet-mask {
  position: fixed;
  inset: 0;
  background: rgba(42, 36, 27, 0.52);
  z-index: 90;
}

.layer.light .sheet-mask {
  background: rgba(42, 36, 27, 0.16);
}

.sheet {
  position: fixed;
  left: 50%;
  bottom: 0;
  width: 100%;
  max-width: var(--col);
  transform: translateX(-50%);
  max-height: 80vh;
  overflow-y: auto;
  background: var(--px-surface);
  border-top: 3px solid var(--px-frame);
  padding: 12px 16px calc(var(--safe-b) + 14px);
  z-index: 91;
  animation: sheet-up 0.18s steps(3) both;
}

@keyframes sheet-up {
  from {
    transform: translate(-50%, 30%);
    opacity: 0;
  }
  to {
    transform: translate(-50%, 0);
    opacity: 1;
  }
}

.sheet .grab {
  width: 44px;
  height: 5px;
  background: rgba(59, 50, 38, 0.3);
  margin: 0 auto 12px;
}

.sheet-title {
  font-size: 16px;
  font-weight: 800;
  padding: 4px 0 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.center-card {
  position: fixed;
  left: 50%;
  top: 50%;
  width: calc(100% - 52px);
  max-width: calc(var(--col) - 52px);
  max-height: 86vh;
  overflow-y: auto;
  transform: translate(-50%, -54%);
  z-index: 92;
  background: var(--px-surface);
  border: 3px solid var(--px-frame);
  box-shadow: 6px 6px 0 var(--px-shadow);
  padding: 16px;
}

.cc-title {
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 6px;
}

.cc-text {
  color: var(--px-ink2);
  font-size: 13px;
  margin-bottom: 6px;
}

.cc-btns {
  margin-top: 12px;
}

.cc-btns .btn {
  flex: 1;
}

.center-card > div > .input {
  margin: 8px 0 4px;
}

#toast {
  position: fixed;
  left: 50%;
  top: 42%;
  transform: translate(-50%, -50%);
  max-width: min(80vw, 420px);
  background: rgba(42, 36, 27, 0.88);
  color: #fff7ea;
  font-size: 14px;
  padding: 10px 16px;
  z-index: 200;
  text-align: center;
  pointer-events: none;
  border: 2px solid rgba(255, 247, 234, 0.25);
}

#toast.show {
  animation: toast-in 0.16s steps(2) both;
}

@keyframes toast-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* ============ 像素对话框 ============ */

.dlg-wrap {
  position: relative;
  padding-top: 10px;
}

.dlg {
  position: relative;
  background: rgba(252, 247, 236, 0.97);
  border: 3px solid var(--px-frame);
  box-shadow: 4px 4px 0 var(--px-shadow);
  padding: 18px 14px 14px;
  cursor: pointer;
}

.dlg-name {
  position: absolute;
  top: 0;
  left: 13px;
  z-index: 1;
  background: var(--px-yellow);
  border: 2px solid var(--px-yellow-dk);
  box-shadow: 2px 2px 0 var(--px-shadow);
  padding: 2px 9px;
  font-size: 11px;
  font-weight: 800;
}

.dlg-star {
  color: #b8860b;
}

.dlg-text {
  font-size: 14px;
  line-height: 1.75;
  min-height: 46px;
  word-break: break-word;
}

.dlg-caret {
  animation: px-blink 0.9s steps(2) infinite;
}

.dlg-more {
  position: absolute;
  right: 12px;
  bottom: 6px;
  font-size: 12px;
  animation: px-blink 1s steps(2) infinite;
}

.dlg-opts {
  display: none;
  flex-direction: column;
  margin-top: 2px;
}

.dlg-opts.show {
  display: flex;
}

.dlg-opt {
  margin-top: 8px;
  border: 2px solid var(--px-frame);
  background: var(--px-surface);
  box-shadow: 2px 2px 0 var(--px-shadow);
  padding: 8px 10px;
  font-size: 13px;
  line-height: 1.5;
  cursor: pointer;
}

.dlg-opt:hover {
  border-color: var(--px-green);
}

.dlg-opt.sel {
  background: var(--px-green);
  color: #fff7ea;
  box-shadow: 2px 2px 0 var(--px-green-dk);
}

.dlg-opt.disabled {
  opacity: 0.42;
}

.dlg-extra:empty {
  display: none;
}

/* ============ 捏小人 ============ */

.lp-stage {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: #a5d57a;
  border: 2px solid var(--px-frame);
  box-shadow: inset 0 -6px 0 rgba(59, 50, 38, 0.08);
  padding: 6px 0;
}

.lp-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 7px 0 3px;
}

.lp-sum {
  font-size: 12px;
  font-weight: 700;
}

.lp-rand {
  font-size: 11px;
  font-weight: 700;
  color: var(--px-blue);
  border: 2px solid var(--px-blue);
  background: var(--px-surface);
  box-shadow: 2px 2px 0 var(--px-shadow);
  padding: 2px 7px;
  cursor: pointer;
}

.lp-row {
  display: flex;
  align-items: flex-start;
  margin-top: 6px;
}

.lp-lab {
  flex-shrink: 0;
  width: 34px;
  font-size: 11px;
  font-weight: 800;
  color: var(--px-ink2);
  line-height: 26px;
}

.lp-chips {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
}

.lp-chip {
  display: flex;
  align-items: center;
  border: 2px solid var(--px-frame);
  background: var(--px-surface);
  box-shadow: 2px 2px 0 var(--px-shadow);
  padding: 2px 7px;
  margin: 0 5px 5px 0;
  font-size: 11px;
  line-height: 18px;
  cursor: pointer;
  user-select: none;
}

.lp-chip.on {
  background: var(--px-green);
  border-color: var(--px-green-dk);
  color: #fff7ea;
}

.lp-chip > span {
  display: inline-flex;
  align-items: center;
}

.lp-sw {
  display: inline-block;
  width: 11px;
  height: 11px;
  border-top: 4px solid transparent;
  margin-right: 4px;
  box-shadow: 0 0 0 1px rgba(59, 50, 38, 0.35);
}

/* ============ 开场引导 ============ */

.ob-root {
  position: relative;
  height: 100vh;
  height: 100dvh;
  background: #f4ead8;
  overflow: hidden;
}

.ob-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
}

.ob-chip,
.ob-skip {
  position: absolute;
  left: 12px;
  z-index: 5;
  font-size: 11px;
  color: var(--px-ink2);
  letter-spacing: 1px;
}

.ob-chip {
  top: calc(var(--safe-t) + 12px);
  background: rgba(252, 247, 236, 0.94);
  border: 2px solid rgba(59, 50, 38, 0.85);
  box-shadow: 2px 2px 0 var(--px-shadow);
  padding: 4px 9px;
}

.ob-skip {
  top: calc(var(--safe-t) + 46px);
  background: rgba(252, 247, 236, 0.8);
  border: 2px solid rgba(59, 50, 38, 0.35);
  padding: 3px 8px;
  cursor: pointer;
}

.ob-dlg {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: calc(var(--safe-b) + 18px);
  z-index: 6;
}

.ob-look {
  background: rgba(252, 247, 236, 0.97);
  border: 3px solid var(--px-frame);
  box-shadow: 4px 4px 0 var(--px-shadow);
  padding: 10px 11px 5px;
  margin-bottom: 22px;
  max-height: 52vh;
  overflow-y: auto;
}

.ob-inrow {
  display: flex;
  gap: 7px;
  margin-top: 9px;
  align-items: center;
}

.ob-in {
  flex: 1;
  min-width: 0;
}

.ob-reveal {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px 170px;
  background: radial-gradient(circle at 50% 42%, rgba(233, 196, 106, 0.28), transparent 55%);
}

.ob-badge {
  background: var(--px-surface);
  border: 2px solid var(--px-frame);
  box-shadow: 4px 4px 0 var(--px-shadow);
  padding: 18px 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: ob-pop 0.3s steps(3) both;
}

.ob-badge-title {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 2px;
  text-align: center;
}

.ob-badge-isle {
  margin-top: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--px-ink2);
}

.ob-badge-tags {
  margin-top: 10px;
  justify-content: center;
}

.ob-go,
.ob-save {
  min-width: 160px;
}

.ob-go {
  margin-top: 14px;
}

.ob-share-img {
  display: block;
  width: 100%;
  border: 2px solid var(--px-frame);
  margin-bottom: 8px;
}

@keyframes ob-pop {
  from {
    transform: scale(0.6);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* ============ 岛 ============ */

.isl-root {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background: #6fb9c9;
}

.ic-root {
  position: absolute;
  inset: 0;
  overflow: hidden;
  touch-action: manipulation;
}

.ic-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
}

.ic-labels {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.ic-label {
  position: absolute;
  left: 0;
  top: 0;
  display: flex;
  align-items: center;
  font-size: 10px;
  line-height: 1;
  background: rgba(252, 247, 236, 0.95);
  border: 1px solid var(--px-ink);
  padding: 2px 4px;
  white-space: nowrap;
  will-change: transform;
}

.ic-label.ghost {
  border-style: dashed;
  border-color: rgba(59, 50, 38, 0.55);
  color: var(--px-ink2);
  background: rgba(252, 247, 236, 0.82);
}

.ic-star {
  color: #b8860b;
  font-weight: 800;
  margin-right: 2px;
}

.ic-mark {
  margin-left: 3px;
  background: var(--px-yellow);
  border: 1px solid var(--px-ink);
  padding: 0 3px;
  font-weight: 800;
  animation: px-blink 1.1s steps(2) infinite;
}

.ic-bubble {
  position: absolute;
  left: 0;
  top: 0;
  max-width: 170px;
  width: max-content;
  background: var(--px-surface);
  border: 2px solid var(--px-ink);
  box-shadow: 3px 3px 0 rgba(59, 50, 38, 0.28);
  font-size: 11px;
  padding: 5px 7px;
  line-height: 1.55;
  will-change: transform;
}

.isl-hud {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 10;
}

.isl-hud > * {
  pointer-events: auto;
}

.hud-plate {
  position: absolute;
  top: calc(var(--safe-t) + 12px);
  left: 12px;
  max-width: calc(100% - 130px);
  background: rgba(252, 247, 236, 0.94);
  border: 3px solid var(--px-frame);
  box-shadow: 3px 3px 0 var(--px-shadow);
  padding: 8px 10px;
  cursor: pointer;
}

.isl-plate-hd {
  display: flex;
  align-items: center;
}

.isl-plate-nm {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.5px;
  word-break: break-all;
}

.isl-plate-go {
  font-size: 10px;
  color: var(--px-ink2);
  margin-left: 5px;
  flex-shrink: 0;
}

.hud-plate .s {
  font-size: 10px;
  color: var(--px-ink2);
  margin-top: 3px;
  line-height: 1.5;
}

.isl-wish {
  font-style: italic;
  opacity: 0.9;
}

.isl-chips {
  position: absolute;
  top: calc(var(--safe-t) + 12px);
  right: 12px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  pointer-events: none;
}

.hud-chip {
  pointer-events: auto;
  background: rgba(252, 247, 236, 0.92);
  border: 2px solid var(--px-frame);
  box-shadow: 2px 2px 0 var(--px-shadow);
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  user-select: none;
}

.dock {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: calc(var(--safe-b) + 18px);
  display: flex;
  align-items: flex-end;
  pointer-events: none;
}

.dock > * {
  pointer-events: auto;
}

.dock-mini,
.dock-plus {
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  user-select: none;
}

.dock-mini {
  width: 52px;
  height: 52px;
  border: 3px solid var(--px-frame);
  background: rgba(252, 247, 236, 0.95);
  box-shadow: 3px 3px 0 var(--px-shadow);
  font-size: 12px;
  font-weight: 800;
}

.dock-plus {
  width: 66px;
  height: 66px;
  border: 3px solid var(--px-orange-dk);
  background: var(--px-orange);
  color: #fff7ea;
  box-shadow: 4px 4px 0 var(--px-shadow);
  flex-direction: column;
}

.dock-plus:active,
.dock-mini:active,
.hud-chip:active {
  transform: translate(3px, 3px);
  box-shadow: 0 0 0 var(--px-shadow);
}

.dock-plus .plus {
  font-size: 26px;
  font-weight: 800;
  line-height: 1;
}

.dock-plus .pl {
  font-size: 10px;
  margin-top: 2px;
  letter-spacing: 1px;
}

.isl-luna-dlg {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: calc(var(--safe-b) + 24px);
  z-index: 20;
}

.isl-isle-k {
  font-size: 11px;
  font-weight: 700;
  color: var(--px-ink2);
  letter-spacing: 1px;
}

.isl-isle-k2 {
  margin-top: 15px;
}

.isl-isle-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 5px;
}

.isl-isle-nm {
  flex: 1;
  min-width: 0;
  font-size: 18px;
  font-weight: 800;
  word-break: break-all;
}

.isl-isle-sub {
  margin-top: 4px;
  font-size: 11px;
  color: var(--px-ink2);
}

.isl-moods {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.isl-mood {
  width: 48.6%;
  margin-top: 8px;
  padding: 7px;
  border: 2px solid var(--px-line);
  background: var(--px-bg);
  display: flex;
  align-items: center;
  cursor: pointer;
}

.isl-mood.on,
.isl-path.on {
  border-color: var(--px-green);
  background: #eef6e2;
}

.isl-mood-sw {
  width: 32px;
  height: 24px;
  flex-shrink: 0;
  border: 2px solid var(--px-frame);
  display: flex;
  align-items: center;
  justify-content: center;
}

.isl-mood-land {
  width: 15px;
  height: 10px;
  border: 2px solid transparent;
}

.isl-mood-tx {
  flex: 1;
  min-width: 0;
  margin-left: 7px;
}

.isl-mood-nm {
  font-size: 13px;
  font-weight: 800;
}

.isl-mood-ds {
  margin-top: 2px;
  font-size: 10px;
  line-height: 1.45;
  color: var(--px-ink2);
}

.isl-paths {
  display: flex;
  justify-content: space-between;
}

.isl-path {
  width: 31.6%;
  margin-top: 8px;
  padding: 6px 5px;
  border: 2px solid var(--px-line);
  background: var(--px-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.isl-path-sw {
  width: 28px;
  height: 20px;
  flex-shrink: 0;
  border: 2px solid transparent;
  display: flex;
  align-items: center;
  justify-content: space-around;
}

.isl-path-dot {
  width: 5px;
  height: 4px;
}

.isl-path-sw.ps-stone .isl-path-dot {
  width: 10px;
  height: 13px;
}

.isl-path-sw.ps-leaf .isl-path-dot {
  width: 7px;
  height: 5px;
}

.isl-path-nm {
  margin-left: 6px;
  font-size: 13px;
  font-weight: 800;
}

.isl-task {
  font-size: 13px;
}

.isl-task-l {
  gap: 7px;
  min-width: 0;
}

.isl-task .box {
  color: var(--px-ink2);
  flex-shrink: 0;
}

.isl-task.done {
  cursor: default;
}

.isl-task.done .lbl {
  color: var(--px-ink2);
  text-decoration: line-through;
}

.isl-task.done .box {
  color: var(--px-green);
}

.isl-task-go {
  color: var(--px-blue);
  font-weight: 700;
  flex-shrink: 0;
}

.isl-drawer-hd {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 0 10px;
}

.isl-drawer-meta .nm {
  font-size: 16px;
  font-weight: 800;
}

.isl-drawer-meta .hk {
  font-size: 12px;
  color: var(--px-ink2);
  margin-top: 4px;
}

.isl-drawer-meta .isl-drawer-from {
  color: var(--px-blue);
}

.isl-drawer-photo {
  display: block;
  width: 100%;
  max-height: 260px;
  object-fit: cover;
  border: 2px solid var(--px-frame);
  margin-bottom: 10px;
}

.isl-story-t {
  font-size: 16px;
  font-weight: 800;
}

.isl-story-x {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.7;
  white-space: pre-wrap;
}

/* ============ 卡册 / 卡详情 / 编辑 ============ */

.cb-card {
  cursor: pointer;
}

.cb-card:active {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--px-shadow);
}

.cb-hook {
  font-size: 15px;
  font-weight: 700;
  margin-top: 8px;
}

.cb-ctx {
  font-size: 12px;
  color: var(--px-ink2);
  margin: 4px 0 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cd-ctx {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.75;
  white-space: pre-wrap;
  word-break: break-word;
}

.cd-photo {
  display: block;
  width: 100%;
  max-height: 320px;
  object-fit: cover;
  border: 2px solid var(--px-frame);
  margin: 10px 0 6px;
}

.cd-hook {
  font-size: 16px;
  font-weight: 700;
  margin-top: 4px;
}

.cd-invite {
  margin-top: 10px;
}

.cd-link {
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 12px;
  word-break: break-all;
  background: var(--px-bg);
  border: 2px dashed rgba(59, 50, 38, 0.35);
  padding: 8px;
  user-select: all;
}

.cd-qr {
  display: block;
  width: 220px;
  height: 220px;
  margin: 8px auto;
  image-rendering: pixelated;
  border: 3px solid var(--px-frame);
  background: #fff;
}

.ce-more-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-top: 2px solid rgba(59, 50, 38, 0.12);
  margin-bottom: 8px;
  cursor: pointer;
}

.ce-photo {
  align-items: flex-start;
}

.ce-photo-img {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border: 2px solid var(--px-frame);
  flex-shrink: 0;
}

.ce-photo-ops {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  font-size: 13px;
}

.ce-auth {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 8px 0 2px;
  font-size: 13px;
  cursor: pointer;
}

.ce-auth input {
  width: 16px;
  height: 16px;
  accent-color: var(--px-green);
}

.ce-ai-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.ce-ai-t {
  font-size: 15px;
  font-weight: 800;
}

.ce-ai-draft {
  width: 100%;
  margin: 6px 0 4px;
  font-size: 13px;
  line-height: 1.7;
}

.ce-ai-hook {
  margin-top: 6px;
  color: var(--px-blue);
}

/* ============ 认领 ============ */

.claim-hd {
  align-items: flex-end;
  gap: 12px;
  margin: calc(var(--safe-t) + 12px) 0 16px;
}

.claim-hook {
  font-size: 16px;
  font-weight: 700;
  margin-top: 4px;
}

.claim-luna {
  position: fixed;
  left: 50%;
  bottom: calc(var(--safe-b) + 24px);
  width: calc(100% - 20px);
  max-width: calc(var(--col) - 20px);
  transform: translateX(-50%);
  z-index: 20;
}

/* ============ 我们的小岛(小事) ============ */

.th-pair {
  display: flex;
  align-items: center;
  gap: 6px;
}

.th-who {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 64px;
  flex-shrink: 0;
}

.th-nm {
  font-size: 12px;
  font-weight: 700;
  margin-top: 4px;
  max-width: 64px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.th-bridge {
  flex: 1;
  text-align: center;
}

.th-day {
  font-size: 13px;
  font-weight: 800;
  color: var(--px-orange-dk);
  margin-bottom: 4px;
}

.th-plank {
  height: 8px;
  background: repeating-linear-gradient(90deg, #b88a55 0 10px, #9a6f40 10px 12px);
  border-top: 2px solid #7a5530;
  border-bottom: 2px solid #7a5530;
}

.th-isle-k {
  font-size: 12px;
  font-weight: 800;
  color: var(--px-ink2);
  margin: 12px 0 6px;
}

.th-item {
  background: #e7f2dd;
  border-color: var(--px-green-dk);
}

.th-quest .th-prompt {
  font-size: 15px;
  font-weight: 700;
  margin: 10px 0 8px;
  line-height: 1.5;
}

.th-left {
  margin-top: 10px;
  font-size: 12px;
}

.th-luna-k,
.th-rv-k {
  font-size: 12px;
  font-weight: 800;
  color: var(--px-orange-dk);
  margin-bottom: 6px;
}

.th-peer-done {
  background: #e7f2dd;
  border: 2px dashed var(--px-green-dk);
  padding: 6px 8px;
  font-size: 13px;
  margin-bottom: 10px;
}

.th-wait-tx {
  font-size: 13px;
  color: var(--px-ink2);
  margin: 6px 0;
}

.th-animals {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-bottom: 8px;
}

.th-animal {
  border: 2px solid var(--px-frame);
  background: var(--px-bg);
  box-shadow: 2px 2px 0 var(--px-shadow);
  text-align: center;
  padding: 6px 2px;
  cursor: pointer;
  user-select: none;
}

.th-animal.on {
  background: var(--px-yellow);
  border-color: var(--px-yellow-dk);
}

.th-animal-e {
  font-size: 24px;
  line-height: 1.2;
}

.th-animal-n {
  font-size: 11px;
}

.th-input {
  margin: 6px 0;
}

.th-chips {
  margin: 6px 0 4px;
}

.th-pick {
  margin: 6px 0;
}

.th-pick-has {
  display: flex;
  align-items: flex-end;
  gap: 10px;
}

.th-photo {
  display: block;
  width: 100%;
  max-height: 220px;
  object-fit: cover;
  border: 3px solid var(--px-frame);
}

.th-photo.ph {
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--px-ink2);
  font-size: 12px;
  background: var(--px-bg);
}

.th-pick-has .th-photo {
  width: 60%;
}

.th-starter {
  border-left: 4px solid var(--px-yellow-dk);
  padding: 4px 8px;
  margin-bottom: 6px;
  font-size: 13px;
}

.th-stele {
  background: #d9d4c7;
  border: 3px solid #8c8577;
  box-shadow: 3px 3px 0 var(--px-shadow);
  padding: 12px;
  text-align: center;
  margin: 6px 0;
}

.th-stele.half {
  text-align: left;
}

.th-stele-t {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.7;
  white-space: pre-wrap;
  word-break: break-word;
}

.th-songs {
  display: flex;
  gap: 8px;
  margin: 6px 0;
}

.th-song {
  flex: 1;
  border: 3px solid var(--px-frame);
  background: var(--px-bg);
  padding: 8px;
  min-width: 0;
}

.th-song.can {
  cursor: pointer;
  box-shadow: 3px 3px 0 var(--px-shadow);
}

.th-song.on {
  background: var(--px-yellow);
  border-color: var(--px-yellow-dk);
}

.th-song-t {
  font-weight: 700;
  font-size: 14px;
  word-break: break-word;
  margin-top: 2px;
}

.th-song-v {
  font-size: 11px;
  margin-top: 4px;
  color: var(--px-orange-dk);
  font-weight: 800;
}

.th-rv-card {
  max-height: 78vh;
  overflow-y: auto;
}

.th-rv-row {
  border-bottom: 2px solid rgba(59, 50, 38, 0.12);
  padding: 8px 0;
}

.th-rv-row:last-child {
  border-bottom: none;
}

.th-rv-big {
  font-size: 18px;
  font-weight: 800;
  margin: 2px 0;
}

.th-rv-why {
  font-size: 13px;
}

.th-rv-note,
.th-rv-grow {
  margin-top: 10px;
  font-size: 13px;
  font-weight: 700;
  color: var(--px-green-dk);
}

.th-skies {
  display: flex;
  gap: 8px;
}

.th-sky {
  flex: 1;
  min-width: 0;
}

.th-sky .th-photo {
  height: 140px;
}

.th-hist-k {
  margin-top: 4px;
}

.th-hist-t {
  font-weight: 700;
}

.th-walk {
  border-top: 2px solid rgba(59, 50, 38, 0.12);
  margin-top: 12px;
}

.th-step {
  display: flex;
  gap: 8px;
  font-size: 13px;
  color: var(--px-ink2);
  padding: 2px 0;
}

.th-step.done {
  color: var(--px-green-dk);
  font-weight: 700;
}

.th-letter {
  background: #fffaf0;
  border: 2px dashed var(--px-frame);
  padding: 10px 12px;
  margin: 6px 0 10px;
}

.th-letter-t {
  font-size: 15px;
  line-height: 1.7;
  margin-top: 4px;
  white-space: pre-wrap;
  word-break: break-word;
}

.th-luna-tip {
  font-size: 12px;
  line-height: 1.6;
  margin: 4px 0 8px;
}

.th-luna-draft {
  margin-bottom: 8px;
}

.th-memo-t {
  font-weight: 700;
  line-height: 1.5;
  margin: 6px 0 4px;
}

.th-memo .th-skies {
  margin: 10px 0 4px;
}

.th-memo-pick {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}

.th-memo-add {
  margin-top: 12px;
}

/* 下次见面:路牌两个方向各写一件 */
.th-sign {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin: 10px 0 30px;
}

.th-sign::before {
  content: '';
  position: absolute;
  left: 50%;
  top: -10px;
  bottom: -30px;
  width: 10px;
  transform: translateX(-50%);
  background: #8a5a2b;
}

.th-sign-arm {
  position: relative;
  z-index: 1;
  max-width: 86%;
  padding: 8px 14px;
  background: #c9955a;
  border: 3px solid #8a5a2b;
  color: #fffaf0;
  font-weight: 700;
  line-height: 1.4;
}

.th-sign-arm .muted {
  color: #f3e2c6;
  font-weight: 400;
}

.th-sign-arm.left,
.th-sign-arm.right {
  max-width: calc(50% + 4px);
}

.th-sign-arm.left {
  align-self: flex-end;
  margin-right: calc(50% - 4px);
  clip-path: polygon(14px 0, 100% 0, 100% 100%, 14px 100%, 0 50%);
  padding-left: 22px;
}

.th-sign-arm.right {
  align-self: flex-start;
  margin-left: calc(50% - 4px);
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 50%, calc(100% - 14px) 100%, 0 100%);
  padding-right: 22px;
}

.th-notify {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-start;
  font-size: 14px;
}

.th-notify .muted {
  font-size: 12px;
  line-height: 1.6;
}

.th-foot {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 18px 0 8px;
  font-size: 13px;
}

/* ---------- 带走我的岛 ---------- */

.isl-take {
  width: 100%;
  margin-top: 16px;
}

.ta .muted {
  line-height: 1.6;
}

.ta-warn {
  margin: 10px 0;
  padding: 8px 10px;
  border: 2px dashed var(--px-red);
  color: var(--px-red-dk);
  font-size: 13px;
  line-height: 1.6;
}

.ta-qr {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 180px;
}

.ta-qr img {
  width: 180px;
  height: 180px;
  image-rendering: pixelated;
  border: 3px solid var(--px-frame);
}

.ta-hint {
  text-align: center;
  font-size: 12px;
  margin: 4px 0 8px;
}

.ta-link {
  width: 100%;
  font-size: 12px;
}

.restore-card {
  max-width: 420px;
  margin: 40px auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/*
 * 1013 定稿新皮(构建时接在 styles.css 后面,同名规则以这里为准)。
 * 口径:淡淡温馨的粉紫底 + 糖果按钮 + LCD 小屏;字体 Fusion Pixel 12px,字号用 12 的倍数。
 * 皮肤:html[data-skin=dusk|night]。夜里皮只给首页 / 朋友 / 我和从它们打开的面板,其余页面一直是粉紫皮。
 */
@font-face {
  font-family: 'FusionPixel';
  src: url('/fonts/fusion-pixel-12px.woff2') format('woff2');
  font-display: swap;
}

:root {
  --px-bg: #f6f0ff;
  --px-surface: #ffffff;
  --px-ink: #5b4a73;
  --px-ink2: #8d7bc7;
  --px-green: #ff9cbc;
  --px-green-dk: #e27a9c;
  --px-orange: #ff9cbc;
  --px-orange-dk: #e27a9c;
  --px-blue: #7a67b4;
  --px-blue-dk: #5b4a73;
  --px-red: #e2607a;
  --px-red-dk: #b84a5f;
  --px-yellow: #ffe0a3;
  --px-yellow-dk: #e8b866;
  --px-frame: #c4b4ea;
  --px-shadow: rgba(122, 103, 180, 0.2);
  --px-line: #e4daf5;
  --pf: 'FusionPixel', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  --candy: linear-gradient(#ffc6d6, #ff9cbc);
}

html {
  -webkit-font-smoothing: none;
  background: #f4effa;
}
html[data-skin='night'] {
  background: #1d1548;
}

body {
  background: var(--hearts, none), linear-gradient(180deg, #fbf6ff 0%, #f8e4ef 62%, #fdeedf 100%) fixed;
  color: var(--px-ink);
  font-family: var(--pf);
  font-size: 12px;
  line-height: 18px;
}
html[data-skin='night'] body {
  background: var(--stars, none), linear-gradient(180deg, #2a2060 0%, #1d1548 60%, #170f3a 100%) fixed;
  color: #e6defa;
}

#app {
  background: transparent;
}

canvas.px2,
canvas.px-avatar,
canvas.iv-isl,
canvas.iv-ext,
canvas.wv-cv,
canvas.qr {
  display: block;
  image-rendering: pixelated;
  flex: none;
}

button,
input,
textarea {
  font-family: var(--pf);
}

.h1 {
  font-size: 24px;
  line-height: 30px;
  font-weight: normal;
  letter-spacing: 0;
}
.h2 {
  font-size: 12px;
  font-weight: normal;
  color: var(--px-ink2);
}
.muted {
  font-size: 12px;
}

/* ============ 旧组件换皮 ============ */

.topbar-t {
  font-size: 24px;
  line-height: 24px;
  font-weight: normal;
  letter-spacing: 0;
}
.topbar-back {
  font-size: 12px;
  font-weight: normal;
  color: #7a67b4;
  height: 28px;
  padding: 0 12px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: inset 0 0 0 2px #e4daf5;
}

.card,
.f-box {
  border: 0;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: inset 0 0 0 2px #e4daf5, 0 4px 0 rgba(122, 103, 180, 0.18);
}
.f-box {
  border-radius: 12px;
}
.f-label {
  font-weight: normal;
  letter-spacing: 0;
  color: #8d7bc7;
}

.btn {
  border: 0;
  border-radius: 22px;
  min-height: 44px;
  background: #fff;
  color: #7a67b4;
  font-size: 12px;
  font-weight: normal;
  box-shadow: inset 0 0 0 2px #e4daf5, 0 3px 0 rgba(122, 103, 180, 0.25);
}
.btn:active {
  transform: translateY(2px);
  box-shadow: inset 0 0 0 2px #e4daf5, 0 1px 0 rgba(122, 103, 180, 0.25);
}
.btn.btn-primary {
  min-height: 48px;
  border-radius: 24px;
  background: var(--candy);
  color: #fff;
  font-size: 24px;
  line-height: 24px;
  text-shadow: 0 2px 0 #e27a9c;
  box-shadow: inset 0 3px 0 rgba(255, 255, 255, 0.6), 0 3px 0 #e27a9c;
}
.btn.btn-primary.sm {
  min-height: 28px;
  border-radius: 14px;
  font-size: 12px;
  line-height: 18px;
  text-shadow: 0 1px 0 #e27a9c;
}
.btn-primary:active {
  box-shadow: inset 0 3px 0 rgba(255, 255, 255, 0.6), 0 1px 0 #e27a9c;
}
.btn-danger {
  color: #e2607a;
  box-shadow: inset 0 0 0 2px #f6c2cf, 0 3px 0 rgba(226, 96, 122, 0.25);
}
.btn-ghost {
  background: transparent;
  color: #8d7bc7;
  box-shadow: inset 0 0 0 2px #e4daf5;
}
.btn.sm {
  min-height: 28px;
  border-radius: 14px;
  padding: 0 12px;
  box-shadow: inset 0 0 0 2px #e4daf5, 0 2px 0 rgba(122, 103, 180, 0.2);
}

.tag,
.badge {
  border: 0;
  border-radius: 12px;
  background: #fff;
  box-shadow: inset 0 0 0 2px #e4daf5;
  padding: 2px 10px;
}
.tag-active,
.badge-green {
  background: #ff9cbc;
  color: #fff;
  box-shadow: none;
}
.badge-amber,
.tag.y {
  background: #ffe0c4;
  color: #b8683a;
  box-shadow: none;
}
.badge-gray {
  background: transparent;
  color: #8d7bc7;
  box-shadow: inset 0 0 0 2px #e4daf5;
}

.label {
  font-weight: normal;
  letter-spacing: 0;
  color: #8d7bc7;
}
.input,
.textarea {
  border: 2px solid #e4daf5;
  border-radius: 12px;
  background: #fff;
  font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', sans-serif;
  color: #5b4a73;
}
.input:focus,
.textarea:focus {
  border-color: #ff9cbc;
}
.input::placeholder,
.textarea::placeholder {
  color: #9a8bc2;
  opacity: 1;
}

.divider {
  background: #ece4fa;
}
.cell {
  border-bottom: 2px dashed #ece4fa;
}
.tick {
  color: #e2729a;
  font-weight: normal;
}
/* 单选行的勾:没选中也画一个空圈,看得出能点 */
.cell > .tick {
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  box-shadow: inset 0 0 0 2px #c4b4ea;
  color: #fff;
}
.cell > .tick:not(:empty) {
  background: #ff9cbc;
  box-shadow: 0 2px 0 #e27a9c;
}
.ce-auth {
  min-height: 36px;
}
.ce-auth input {
  flex: none;
  width: 24px;
  height: 24px;
  margin: 0;
}

/* 弹层 */
.sheet-mask {
  background: rgba(14, 9, 40, 0.42);
}
.layer.light .sheet-mask {
  background: rgba(14, 9, 40, 0.16);
}
.sheet {
  border-top: 0;
  border-radius: 28px 28px 0 0;
  background: var(--hearts, none), linear-gradient(180deg, #fbf6ff, #f8e4ef);
  box-shadow: 0 -4px 0 #c4b4ea;
  padding: 10px 16px calc(var(--safe-b) + 18px);
}
.sheet .grab {
  width: 40px;
  height: 5px;
  border-radius: 3px;
  background: #c4b4ea;
}
html[data-skin='night'] .sheet {
  background: var(--stars, none), linear-gradient(180deg, #2f2468, #1d1548);
  box-shadow: 0 -4px 0 #6a58a8;
  color: #e6defa;
}
html[data-skin='night'] .sheet .grab {
  background: #6a58a8;
}
html[data-skin='night'] .sheet .f-box,
html[data-skin='night'] .center-card .f-box {
  background: rgba(46, 37, 96, 0.88);
  box-shadow: inset 0 0 0 2px #3b2c6c;
  color: #e6defa;
}
html[data-skin='night'] .sheet .btn:not(.btn-primary),
html[data-skin='night'] .center-card .btn:not(.btn-primary) {
  background: rgba(46, 37, 96, 0.92);
  color: #d6ceff;
  box-shadow: inset 0 0 0 2px #6a58a8, 0 3px 0 #120c2c;
}
html[data-skin='night'] .sheet .muted,
html[data-skin='night'] .center-card .muted,
html[data-skin='night'] .sheet .f-label {
  color: #b8a8f0;
}
.sheet-title {
  font-size: 12px;
  font-weight: normal;
}
.center-card {
  border: 0;
  border-radius: 20px;
  background: var(--hearts, none), #fff;
  box-shadow: inset 0 0 0 2px #e4daf5, 0 6px 0 rgba(122, 103, 180, 0.25);
}
html[data-skin='night'] .center-card {
  background: var(--stars, none), #2a2060;
  box-shadow: inset 0 0 0 2px #6a58a8, 0 6px 0 #120c2c;
  color: #e6defa;
}
.cc-title {
  font-size: 24px;
  line-height: 30px;
  font-weight: normal;
}
.cc-text {
  font-size: 12px;
  color: #8d7bc7;
}
#toast {
  border: 0;
  border-radius: 16px;
  background: rgba(91, 74, 115, 0.92);
  color: #fff;
  font-size: 12px;
  line-height: 18px;
  padding: 10px 16px;
}

/* 露娜对话框 */
.dlg {
  border: 0;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: inset 0 0 0 2px #c4b4ea, 0 4px 0 rgba(122, 103, 180, 0.25);
}
.dlg-name {
  border: 0;
  border-radius: 10px;
  background: #ffe0a3;
  box-shadow: 0 2px 0 #e8b866;
  font-weight: normal;
  color: #8a5a2a;
}
.dlg-text {
  font-size: 12px;
  line-height: 20px;
}
.dlg-opt {
  border: 0;
  border-radius: 12px;
  background: #fff;
  box-shadow: inset 0 0 0 2px #e4daf5;
  font-size: 12px;
}
.dlg-opt:hover {
  box-shadow: inset 0 0 0 2px #ff9cbc;
}
.dlg-opt.sel {
  background: #ff9cbc;
  color: #fff;
  box-shadow: none;
}

/* 捏小人 */
.lp-stage {
  border: 0;
  border-radius: 16px;
  background: linear-gradient(180deg, #f6f0ff 0%, #f8e4ef 78%, #a6d47c 78%, #94c86c 100%);
  box-shadow: inset 0 0 0 2px #e4daf5;
  padding: 8px 0;
}
.lp-sum {
  font-weight: normal;
}
.lp-rand {
  border: 0;
  border-radius: 12px;
  color: #fff;
  background: var(--candy);
  box-shadow: 0 2px 0 #e27a9c;
  padding: 3px 10px;
  font-weight: normal;
}
.lp-lab {
  font-weight: normal;
  color: #8d7bc7;
  line-height: 28px;
}
.lp-chip {
  border: 0;
  border-radius: 14px;
  background: #fff;
  box-shadow: inset 0 0 0 2px #e4daf5;
  padding: 3px 10px;
  margin: 0 6px 6px 0;
  font-size: 12px;
}
.lp-chip.on {
  background: #fff;
  color: #e2729a;
  box-shadow: inset 0 0 0 2px #ff9cbc, 0 2px 0 #e98aab;
}
.lp-hairs .lp-chip {
  padding: 2px 10px 2px 4px;
}
.lp-face {
  display: inline-flex;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  overflow: hidden;
  background: #f3eaff;
  margin-right: 4px;
}
.lp-sw {
  border-radius: 3px;
  box-shadow: 0 0 0 1px rgba(91, 74, 115, 0.3);
}

/* ============ 新岛画面 ============ */

.iv {
  position: relative;
}
.iv-ext {
  width: 100%;
  height: auto;
  aspect-ratio: 360 / 56;
}
.iv-scn {
  position: relative;
  overflow: hidden;
}
.iv-isl {
  width: 100%;
  height: auto;
  aspect-ratio: 360 / 256;
  cursor: pointer;
}
.iv-over {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.iv-tag {
  position: absolute;
  transform: translate(-50%, -100%);
  pointer-events: auto;
  white-space: nowrap;
  padding: 0 8px;
  height: 20px;
  line-height: 20px;
  border-radius: 10px;
  background: var(--candy);
  color: #fff;
  text-shadow: 0 1px 0 #e27a9c;
  box-shadow: 0 2px 0 #e27a9c;
  animation: iv-bob 1.2s steps(2) infinite;
  cursor: pointer;
}
@keyframes iv-bob {
  50% {
    margin-top: -3px;
  }
}
.iv-spark {
  position: absolute;
  width: 0;
  height: 0;
}
.iv-spark i {
  position: absolute;
  left: -3px;
  top: -3px;
  width: 6px;
  height: 6px;
  background: #fff4b0;
  box-shadow: 0 0 0 2px #ff9cbc;
  animation: iv-burst 1.4s steps(7) forwards;
}
.iv-spark i:nth-child(1) {
  --dx: 0px;
  --dy: -34px;
}
.iv-spark i:nth-child(2) {
  --dx: 28px;
  --dy: -18px;
}
.iv-spark i:nth-child(3) {
  --dx: 26px;
  --dy: 14px;
}
.iv-spark i:nth-child(4) {
  --dx: -26px;
  --dy: 14px;
}
.iv-spark i:nth-child(5) {
  --dx: -28px;
  --dy: -18px;
}
.iv-spark i:nth-child(6) {
  --dx: 0px;
  --dy: 20px;
}
@keyframes iv-burst {
  0% {
    transform: translate(0, 0) scale(0.4);
    opacity: 1;
  }
  70% {
    opacity: 1;
  }
  100% {
    transform: translate(var(--dx), var(--dy)) scale(1);
    opacity: 0;
  }
}

/* 小事刚揭晓:卡片弹一下,顶上三簇星星(星星跑出卡片边,弹的时候先不裁) */
.center-card.rv-pop {
  overflow: visible;
  animation: rv-pop 0.42s cubic-bezier(0.2, 0.9, 0.3, 1.25) both;
}
@keyframes rv-pop {
  0% {
    transform: translate(-50%, -54%) scale(0.72);
    opacity: 0;
  }
  100% {
    transform: translate(-50%, -54%) scale(1);
    opacity: 1;
  }
}
.rv-sparks .iv-spark {
  top: -10px;
}
.rv-sparks .iv-spark i {
  background: #ffd65c;
}
.rv-sparks .iv-spark:nth-child(1) {
  left: 16%;
}
.rv-sparks .iv-spark:nth-child(2) {
  top: -16px;
  left: 50%;
}
.rv-sparks .iv-spark:nth-child(3) {
  left: 84%;
}

/* ============ 共用小件 ============ */

.lcd {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #d6ead0;
  color: #3c5a44;
  box-shadow: inset 0 3px 0 rgba(60, 90, 68, 0.16), 0 0 0 3px #fff, 0 0 0 6px #c4b4ea;
}
.night .lcd,
html[data-skin='night'] .sheet .lcd,
html[data-skin='night'] .stg .lcd {
  background: #16302b;
  color: #a8f0c8;
  text-shadow: 0 0 6px rgba(168, 240, 200, 0.7);
  box-shadow: inset 0 3px 0 rgba(0, 0, 0, 0.3), 0 0 0 3px #3b2c6c, 0 0 0 6px #8d7bc7, 0 0 18px rgba(168, 240, 200, 0.25);
}

.cta {
  display: block;
  width: 100%;
  height: 48px;
  border: 0;
  border-radius: 24px;
  background: var(--candy);
  color: #fff;
  font-size: 24px;
  line-height: 24px;
  padding: 0 16px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 2px 0 #e27a9c;
  box-shadow: inset 0 3px 0 rgba(255, 255, 255, 0.65), 0 4px 0 #e98aab;
  cursor: pointer;
}
.cta:active {
  transform: translateY(2px);
  box-shadow: inset 0 3px 0 rgba(255, 255, 255, 0.65), 0 2px 0 #e98aab;
}
.night .cta {
  box-shadow: inset 0 3px 0 rgba(255, 255, 255, 0.65), 0 4px 0 #c45a84, 0 0 22px rgba(255, 156, 188, 0.45);
}

/* 底部三键 */
.nv {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--col);
  display: flex;
  justify-content: center;
  gap: 52px;
  padding: 18px 0 calc(var(--safe-b) + 12px);
  z-index: 20;
  background: linear-gradient(180deg, rgba(253, 238, 223, 0) 0%, rgba(253, 238, 223, 0.94) 46%);
}
.night .nv,
html[data-skin='night'] .nv {
  background: linear-gradient(180deg, rgba(23, 15, 58, 0) 0%, rgba(23, 15, 58, 0.94) 46%);
}
.nv a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  cursor: pointer;
  color: #7a67b4;
}
.night .nv a {
  color: #efe9ff;
}
.nv .bt {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 34% 28%, #fff 0 10%, #f3eaff 11% 38%, #cbb9f2 100%);
  box-shadow: 0 3px 0 #a08ed8, inset 0 -2px 0 rgba(0, 0, 0, 0.06);
}
.night .nv .bt {
  background: radial-gradient(circle at 34% 28%, #fff 0 8%, #b8a8f0 9% 30%, #6a58a8 100%);
  box-shadow: 0 3px 0 #2e246c, inset 0 -2px 0 rgba(0, 0, 0, 0.12);
}
.nv .on .bt {
  background: radial-gradient(circle at 34% 28%, #fff 0 10%, #ffe2ea 11% 38%, #ff9cbc 100%);
  box-shadow: 0 3px 0 #e27a9c;
}
.night .nv .on .bt {
  box-shadow: 0 3px 0 #c45a84, 0 0 14px rgba(255, 156, 188, 0.55);
}

/* ============ 首页 ============ */

.hm {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
.hm.dusk {
  background: linear-gradient(180deg, #ece2fb 0%, #f8e4ef 56%, #fdeedf 100%);
  color: #5b4a73;
}
.hm.night {
  background: linear-gradient(180deg, #130e33 0%, #1d1548 52%, #2a1d5c 100%);
  color: #e6defa;
}
.hm-top {
  position: relative;
}
.hm-hud {
  position: absolute;
  left: 50%;
  top: calc(var(--safe-t) + 16px);
  width: 244px;
  margin-left: -122px;
  height: 32px;
  border-radius: 16px;
  padding: 0 14px;
  z-index: 2;
  cursor: pointer;
}
.hm-tchip,
.hm-mkp {
  position: absolute;
  bottom: 36px;
  height: 32px;
  border-radius: 16px;
  z-index: 2;
  display: flex;
  align-items: center;
  cursor: pointer;
}
.hm-tchip {
  left: 12px;
  padding: 0 14px 0 10px;
  gap: 8px;
}
.hm-mkp {
  right: 12px;
  padding: 0 14px;
  color: #fff;
  background: var(--candy);
  box-shadow: inset 0 3px 0 rgba(255, 255, 255, 0.6), 0 3px 0 #e27a9c;
  text-shadow: 0 1px 0 #e27a9c;
}
.hm-sheet {
  position: relative;
  flex: 1;
  margin-top: -20px;
  border-radius: 28px 28px 0 0;
  padding: 18px 12px calc(var(--safe-b) + 96px);
  z-index: 1;
}
.dusk .hm-sheet {
  background: var(--hearts, none), linear-gradient(180deg, #fbf6ff 0%, #f8e4ef 58%, #fdeedf 100%);
  box-shadow: 0 -4px 0 #c4b4ea, inset 0 3px 0 #fff, 0 -10px 24px rgba(91, 74, 115, 0.22);
}
.night .hm-sheet {
  background: var(--stars, none), linear-gradient(180deg, #2a2060 0%, #1d1548 60%, #170f3a 100%);
  box-shadow: 0 -4px 0 #6a58a8, inset 0 3px 0 rgba(255, 255, 255, 0.18), 0 -10px 30px rgba(10, 6, 30, 0.5);
}
.hm-sheet .hd {
  position: absolute;
  left: 50%;
  top: 8px;
  width: 40px;
  height: 5px;
  margin-left: -20px;
  border-radius: 3px;
  background: #c4b4ea;
}
.night .hm-sheet .hd {
  background: #6a58a8;
}

.ftabs {
  display: flex;
  gap: 8px;
  margin: 2px 4px 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.ftabs::-webkit-scrollbar {
  display: none;
}
.ftabs a {
  flex: 1 0 auto;
  min-width: calc((100% - 16px) / 3);
  height: 36px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 18px 0 4px;
  position: relative;
  cursor: pointer;
}
.ftabs .nm {
  max-width: 6em;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.ftabs .av {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  overflow: hidden;
  flex: none;
}
.dusk .ftabs a {
  background: rgba(255, 255, 255, 0.55);
  color: #8d7bc7;
  box-shadow: inset 0 0 0 2px rgba(196, 180, 234, 0.6);
}
.dusk .ftabs a.on {
  background: #fff;
  color: #5b4a73;
  box-shadow: inset 0 0 0 2px #c4b4ea, 0 3px 0 rgba(122, 103, 180, 0.25);
}
.dusk .ftabs .av {
  background: #f3eaff;
}
.night .ftabs a {
  background: rgba(46, 37, 96, 0.6);
  color: #a99ad8;
  box-shadow: inset 0 0 0 2px #3b2c6c;
}
.night .ftabs a.on {
  background: #3b2c6c;
  color: #efe9ff;
  box-shadow: inset 0 0 0 2px #8d7bc7, 0 3px 0 #120c2c;
}
.night .ftabs .av {
  background: #2a2060;
}
.ftabs .dot {
  position: absolute;
  right: 8px;
  top: 50%;
  margin-top: -4px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff6f9a;
  box-shadow: 0 0 0 2px #fff;
}
.night .ftabs .dot {
  box-shadow: 0 0 0 2px #2a2060, 0 0 8px rgba(255, 111, 154, 0.8);
}

.hm .tick {
  height: 40px;
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding-left: 10px;
  margin: 10px 4px 0;
  font-weight: normal;
  cursor: pointer;
}
.ftabs[hidden] + .tick {
  margin-top: 4px;
}
.hm .tick canvas {
  width: 40px !important;
  height: 34px !important;
  margin-right: 8px;
  object-fit: contain;
}
.hm .tick .mqw {
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
  margin-right: 14px;
}
.hm .tick .mq {
  display: inline-block;
}
.hm .tick.run .mq {
  animation: mq var(--mq-t, 8s) steps(48) 1.2s infinite alternate;
}
@keyframes mq {
  0%,
  14% {
    transform: translateX(0);
  }
  86%,
  100% {
    transform: translateX(var(--mq-x, 0));
  }
}

.hm .ih {
  display: flex;
  justify-content: space-between;
  margin: 12px 2px 0;
}
.shelf {
  height: 96px;
  position: relative;
}
.shelf .rope {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 30px;
}
.shelf .rope svg {
  display: block;
}
.charm {
  position: absolute;
  width: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  cursor: pointer;
}
.charm .ck {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.charm .ck::before {
  content: '';
  position: absolute;
  left: 19px;
  top: -10px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid #b29fe4;
}
.charm .ck canvas {
  max-width: 44px;
  max-height: 44px;
  object-fit: contain;
}
.dusk .charm .ck {
  background: rgba(255, 255, 255, 0.92);
  box-shadow: inset 0 0 0 3px var(--c), inset 0 6px 0 rgba(255, 255, 255, 0.9), 0 3px 0 rgba(122, 103, 180, 0.28);
}
.night .charm .ck {
  background: rgba(46, 37, 96, 0.92);
  box-shadow: inset 0 0 0 3px var(--c), 0 3px 0 #120c2c, 0 0 14px rgba(196, 180, 234, 0.3);
}
.charm.off .ck {
  background: transparent !important;
  box-shadow: none !important;
  border: 2px dashed #b29fe4;
}
.night .charm.off .ck {
  border-color: #6a58a8;
}
.charm .ck i.nd {
  position: absolute;
  right: -3px;
  top: -3px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ff6f9a;
  box-shadow: 0 0 0 2px #fff;
  z-index: 1;
}
.night .charm .ck i.nd {
  box-shadow: 0 0 0 2px #2a2060, 0 0 8px rgba(255, 111, 154, 0.8);
}

.tkt {
  margin: 6px 0 0;
  min-height: 58px;
  border-radius: 12px;
  border: 2px dashed #ff9cbc;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 16px 8px 20px;
  position: relative;
}
.tkt::before,
.tkt::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 16px;
  height: 16px;
  margin-top: -8px;
  border-radius: 50%;
  border: 2px dashed #ff9cbc;
}
.tkt::before {
  left: -9px;
  clip-path: inset(0 0 0 50%);
}
.tkt::after {
  right: -9px;
  clip-path: inset(0 50% 0 0);
}
.tkt .qi {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
}
.tkt .qi canvas {
  max-width: 44px;
  max-height: 40px;
  object-fit: contain;
}
.tkt b {
  font-weight: normal;
  display: block;
}
.tkt p {
  margin: 0;
  opacity: 0.75;
}
.dusk .tkt {
  background: rgba(255, 255, 255, 0.8);
}
.dusk .tkt::before,
.dusk .tkt::after {
  background: #f9e6ea;
}
.dusk .tkt b {
  color: #e2729a;
}
.night .tkt {
  background: rgba(46, 37, 96, 0.82);
}
.night .tkt::before,
.night .tkt::after {
  background: #1b1344;
}
.night .tkt b {
  color: #ff9cbc;
}
.hm .cta {
  margin-top: 12px;
}

.hm-luna {
  position: fixed;
  left: 50%;
  bottom: calc(var(--safe-b) + 96px);
  transform: translateX(-50%);
  width: calc(100% - 24px);
  max-width: calc(var(--col) - 24px);
  z-index: 30;
}

.hm-story {
  text-align: center;
}
.hm-story-ic {
  display: flex;
  justify-content: center;
  margin: 4px 0 8px;
}
.isl-story-t {
  font-size: 24px;
  line-height: 30px;
  font-weight: normal;
}
.isl-story-x {
  margin-top: 8px;
  font-size: 12px;
  line-height: 20px;
}
.isl-drawer-hd .avb {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  overflow: hidden;
  background: #f3eaff;
  flex: none;
}

/* ============ 朋友 / 我 ============ */

.pg {
  min-height: 100vh;
  min-height: 100dvh;
  padding: calc(var(--safe-t) + 4px) 16px calc(var(--safe-b) + 100px);
}
.pg.dusk {
  background: var(--hearts, none), linear-gradient(180deg, #fbf6ff 0%, #f8e4ef 62%, #fdeedf 100%);
  color: #5b4a73;
}
.pg.night {
  background: var(--stars, none), linear-gradient(180deg, #2a2060 0%, #1d1548 60%, #170f3a 100%);
  color: #e6defa;
}
.ph1 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
}
.ph1 h3 {
  margin: 0;
  font-size: 36px;
  line-height: 36px;
  font-weight: normal;
}
.ph1 p {
  margin: 6px 0 0;
  opacity: 0.7;
}
.pill {
  height: 36px;
  padding: 0 14px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  color: #fff;
  background: var(--candy);
  box-shadow: inset 0 3px 0 rgba(255, 255, 255, 0.6), 0 3px 0 #e27a9c;
  text-shadow: 0 1px 0 #e27a9c;
  flex: none;
  cursor: pointer;
}
.lab {
  display: flex;
  justify-content: space-between;
  margin: 16px 2px 8px;
}
.lab span:first-child {
  color: #8d7bc7;
}
.lab span:last-child {
  opacity: 0.6;
}
.night .lab span:first-child {
  color: #b8a8f0;
}
.crd {
  border-radius: 16px;
  position: relative;
}
.dusk .crd,
.sheet .crd {
  background: rgba(255, 255, 255, 0.92);
  box-shadow: inset 0 0 0 2px #e4daf5, 0 4px 0 rgba(122, 103, 180, 0.18);
}
.night .crd,
html[data-skin='night'] .sheet .crd {
  background: rgba(46, 37, 96, 0.88);
  box-shadow: inset 0 0 0 2px #3b2c6c, 0 4px 0 #120c2c;
}
.pend {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 2px dashed #ff9cbc;
  margin-bottom: 8px;
  cursor: pointer;
}
.dusk .pend {
  background: rgba(255, 255, 255, 0.8);
}
.night .pend {
  background: rgba(46, 37, 96, 0.82);
}
.pend > div {
  min-width: 0;
}
.pend b {
  font-weight: normal;
  color: #e2729a;
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.pend p {
  margin: 0;
  opacity: 0.7;
}
.ol {
  margin-left: auto;
  height: 28px;
  padding: 0 12px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  box-shadow: inset 0 0 0 2px #b29fe4;
  color: #7a67b4;
  flex: none;
  cursor: pointer;
}
.night .ol {
  color: #d6ceff;
  box-shadow: inset 0 0 0 2px #6a58a8;
}
.pg .crd .row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  cursor: pointer;
}
.pg .crd .row + .row,
.crd .row2 + .row2 {
  border-top: 2px dashed #ece4fa;
}
.night .crd .row + .row,
.night .crd .row2 + .row2,
html[data-skin='night'] .sheet .crd .row2 + .row2 {
  border-top-color: #3b2c6c;
}
.avb {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  overflow: hidden;
  flex: none;
  background: #f3eaff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.night .avb {
  background: #2a2060;
}
.avb canvas {
  width: 48px !important;
  height: 48px !important;
}
.pg .crd .row b {
  font-weight: normal;
  font-size: 24px;
  line-height: 24px;
  display: block;
}
.pg .crd .row p {
  margin: 4px 0 0;
  opacity: 0.7;
}
.bd {
  margin-left: auto;
  font-style: normal;
  padding: 0 10px;
  height: 24px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  flex: none;
}
.bd.pk {
  background: #ff9cbc;
  color: #fff;
  text-shadow: 0 1px 0 #e27a9c;
}
.bd.pc {
  background: #ffe0c4;
  color: #b8683a;
}
.bd.gr {
  background: #d6ead0;
  color: #3c5a44;
}
.pg .row i,
.row2 i {
  font-style: normal;
  opacity: 0.5;
}
.pg .row > i {
  margin-left: 4px;
}
.pg .row > div {
  min-width: 0;
}
.pg .row:not(:has(.bd)) > i {
  margin-left: auto;
}
.zoo2 {
  display: flex;
  flex-wrap: wrap;
  padding: 10px 6px 8px;
}
.zoo2 > div {
  flex: 1 0 33%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 4px 0;
  cursor: pointer;
}
.zoo2 > div + div {
  border-left: 2px dashed #ece4fa;
}
.night .zoo2 > div + div {
  border-left-color: #3b2c6c;
}
.zoo2 .pp {
  display: flex;
  gap: 2px;
}
.zoo2 span {
  opacity: 0.85;
}
.pg-empty {
  padding: 14px 16px;
}
.pg-empty b {
  font-weight: normal;
  font-size: 24px;
  line-height: 30px;
  display: block;
}
.pg-empty p {
  margin: 4px 0 0;
  opacity: 0.75;
}
.pg-more {
  display: block;
  text-align: center;
  margin-top: 18px;
  color: #8d7bc7;
  cursor: pointer;
}
.night .pg-more {
  color: #b8a8f0;
}

.mecard {
  display: flex;
  gap: 14px;
  padding: 12px;
  margin-top: 14px;
}
.mecard .avb {
  width: 88px;
  height: 100px;
}
.mecard .avb canvas {
  width: 48px !important;
  height: 80px !important;
}
.mecard .mi {
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: center;
  align-items: flex-start;
  min-width: 0;
}
.mecard .mi b {
  font-weight: normal;
  font-size: 36px;
  line-height: 36px;
}
.mecard .ol {
  margin-left: 0;
}
.lcdp {
  height: 26px;
  border-radius: 13px;
  padding: 0 12px;
  margin: 0 4px;
}
.myisl .thumb {
  height: 128px;
  border-radius: 16px 16px 0 0;
  overflow: hidden;
  position: relative;
}
.myisl .thumb .iv {
  position: absolute;
  left: -8%;
  top: -46%;
  width: 116%;
}
.myisl .thumb .lcd {
  position: absolute;
  left: 10px;
  bottom: 10px;
  height: 24px;
  border-radius: 12px;
  padding: 0 10px;
  gap: 10px;
}
.row2 {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 44px;
  padding: 0 14px;
  cursor: pointer;
}
.row2 b {
  margin-left: auto;
  font-weight: normal;
  opacity: 0.65;
}
.row2.hl b {
  opacity: 1;
  color: #e2729a;
}
.night .row2.hl b {
  color: #ff9cbc;
}
.row2.dim {
  opacity: 0.5;
  cursor: default;
}

/* ============ 岛上的时间 / 设置面板 ============ */

.tsheet h4 {
  margin: 0;
  font-size: 24px;
  line-height: 24px;
  font-weight: normal;
}
.tsheet .tsub {
  opacity: 0.7;
  margin: 6px 0 0;
}
.tsheet > .crd {
  margin-top: 14px;
}
.opt {
  display: flex;
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.92);
}
.opt::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 16px;
  pointer-events: none;
  box-shadow: inset 0 0 0 2px #e4daf5;
}
html[data-skin='night'] .opt {
  background: rgba(46, 37, 96, 0.92);
}
html[data-skin='night'] .opt::after {
  box-shadow: inset 0 0 0 2px #3b2c6c;
}
.opt.on::after,
html[data-skin='night'] .opt.on::after {
  box-shadow: inset 0 0 0 3px #ff9cbc, 0 0 16px rgba(255, 156, 188, 0.35);
}
.opt .win {
  overflow: hidden;
  position: relative;
  flex: none;
  background: #ddd2f6;
}
.opt .win canvas {
  position: absolute;
  width: 360px;
  height: 256px;
  max-width: none;
}
.opt.wide {
  margin-top: 14px;
  height: 76px;
  align-items: center;
  gap: 12px;
  padding-right: 14px;
}
.opt.wide .win {
  width: 128px;
  height: 76px;
}
.opt.wide .win canvas {
  left: -114px;
  top: -104px;
}
.opt.wide b {
  font-size: 24px;
  line-height: 24px;
  font-weight: normal;
  display: block;
}
.opt.wide p {
  margin: 4px 0 0;
  opacity: 0.7;
}
.opts4 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 10px;
}
.opts4 .opt {
  flex-direction: column;
}
.opts4 .win {
  width: 100%;
  height: 72px;
}
.opts4 .w-dawn canvas {
  left: -96px;
  top: -32px;
}
.opts4 .w-noon canvas {
  left: -150px;
  top: -8px;
}
.opts4 .w-dusk canvas {
  left: -180px;
  top: -10px;
}
.opts4 .w-night canvas {
  left: -170px;
  top: -16px;
}
.opts4 .opt > span:last-child {
  padding: 6px 12px 8px;
  display: flex;
  justify-content: space-between;
}
.opts4 .opt em {
  font-style: normal;
  opacity: 0.6;
}
.ck2 {
  margin-left: auto;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #ff9cbc;
  color: #fff;
  display: none;
  align-items: center;
  justify-content: center;
  flex: none;
}
.opt.on .ck2 {
  display: flex;
}
.tsheet .fine {
  margin: 14px 0 0;
  opacity: 0.6;
}

/* ============ 开场引导 ============ */

.ob-root .iv-scn {
  -webkit-mask-image: linear-gradient(180deg, #000 80%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 80%, transparent 100%);
}
.ob-chip,
.ob-skip {
  top: calc(var(--safe-t) + 12px);
  height: 28px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  border: 0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: inset 0 0 0 2px #e4daf5;
  color: #8d7bc7;
  letter-spacing: 0;
}
.ob-skip {
  left: auto;
  right: 12px;
}
.ob-beta {
  position: absolute;
  top: calc(var(--safe-t) + 48px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  max-width: calc(100% - 24px);
  padding: 4px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: inset 0 0 0 2px #f4c6d6;
  color: #c4708f;
  font-size: 11px;
  white-space: nowrap;
}
.ob-look {
  border: 0;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: inset 0 0 0 2px #e4daf5, 0 4px 0 rgba(122, 103, 180, 0.2);
  padding: 12px 12px 6px;
  margin-bottom: 18px;
  max-height: 46vh;
}
.ob-reveal {
  background: radial-gradient(circle at 50% 42%, rgba(255, 156, 188, 0.28), transparent 60%);
}
.ob-badge {
  border: 0;
  border-radius: 20px;
  background: var(--hearts, none), #fff;
  box-shadow: inset 0 0 0 2px #e4daf5, 0 6px 0 rgba(122, 103, 180, 0.25);
  padding: 20px 22px;
}
.ob-badge-title {
  font-weight: normal;
  letter-spacing: 0;
  color: #5b4a73;
}
.ob-badge-isle {
  font-weight: normal;
  color: #8d7bc7;
}
.ob-share-img {
  border: 0;
  border-radius: 12px;
}
/* 开场引导夜里会换 night 皮(正文变浅色),这几块一直是白底,字色得自己定 */
.dlg,
.ob-look,
.ob-badge {
  color: var(--px-ink);
}

/* ============ 小径页 ============ */

.th-isle {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 12px;
  box-shadow: 0 4px 0 rgba(122, 103, 180, 0.18);
}
.th-isle:empty {
  display: none;
}
.th-isle .lcd {
  position: absolute;
  left: 10px;
  top: 10px;
  height: 24px;
  border-radius: 12px;
  padding: 0 10px;
  gap: 10px;
}
.th-animal {
  border: 0;
  border-radius: 12px;
  background: #fff;
  box-shadow: inset 0 0 0 2px #e4daf5;
}
.th-animal.on {
  background: #fff;
  box-shadow: inset 0 0 0 3px #ff9cbc, 0 2px 0 #e98aab;
}
.th-animal-e {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  height: 44px;
}
.th-rv-big {
  display: flex;
  align-items: center;
  gap: 8px;
}
.th-photo,
.th-song,
.th-letter,
.th-sign-arm,
.th-stele,
.th-peer-done,
.cd-photo,
.cd-qr,
.cd-link,
.ce-photo-img,
.isl-drawer-photo,
.ta-warn,
.ta-qr img {
  border-radius: 12px;
}
.th-song.on {
  border-color: #ff9cbc;
}
.th-starter {
  border-radius: 0 12px 12px 0;
}

/* ============ 字号:像素字只在 12 的倍数上清楚 ============ */

body * {
  font-synthesis: none;
}
.badge,
.dlg-name,
.f-label,
.lp-chip,
.lp-lab,
.lp-rand,
.ob-chip,
.ob-skip,
.ob-beta,
.th-animal-n,
.th-song-v,
.cc-text,
.ce-ai-draft,
.ce-auth,
.ce-photo-ops,
.dlg-opt,
.empty,
.isl-story-x,
.ta-warn,
.th-day,
.th-foot,
.th-peer-done,
.th-rv-grow,
.th-rv-why,
.th-starter,
.th-step,
.th-wait-tx,
.topbar-back,
#toast,
.btn,
.cd-ctx,
.dlg-text,
.th-notify,
.th-song-t,
.cb-hook,
.ce-ai-t,
.h2,
.th-letter-t,
.th-quest,
.th-prompt,
.th-stele-t {
  font-size: 12px;
}
.cc-title,
.cd-hook,
.claim-hook,
.isl-drawer-meta .nm,
.isl-story-t,
.sheet-title,
.topbar-t,
.th-rv-big,
.h1,
.ob-badge-title {
  font-size: 24px;
  line-height: 30px;
}

/* 物件的纪念品:照片 / 吃的 / 岛歌 / 纪念牌合照 */
.ks {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin: 10px 0 2px;
}
.ks-row {
  display: flex;
  gap: 10px;
  width: 100%;
}
.ks-pol {
  flex: 1;
  min-width: 0;
  margin: 0;
  padding: 6px 6px 4px;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 0 0 2px #e4daf5, 0 3px 0 2px #c4b4ea;
}
.ks-pol img,
.ks-ph {
  display: block;
  width: 100%;
  height: 112px;
  object-fit: cover;
  border-radius: 2px;
  background: #f1ecfa;
}
.ks-ph {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8d7bc7;
}
.ks-pol figcaption {
  margin-top: 4px;
  color: #7a67b4;
}
.ks-gap {
  padding: 0 10px;
  height: 20px;
  line-height: 20px;
  border-radius: 10px;
  background: #fff4b0;
  color: #9a6a2c;
}
.ks-food {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 8px 10px;
  border-radius: 10px;
  background: #fffaf0;
  box-shadow: inset 0 0 0 2px #f5dcb4;
  text-align: left;
}
.ks-food .k {
  color: #b08a5a;
}
.ks-food b {
  font-size: 24px;
  line-height: 30px;
  font-weight: normal;
  color: #5b4a73;
  word-break: break-all;
}
.ks-tape {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 10px;
  border-radius: 10px;
  background: #2e2450;
  box-shadow: inset 0 0 0 2px #6a58a8;
  color: #e6defa;
  text-align: left;
}
.ks-reel {
  flex: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff2c4;
  box-shadow: inset 0 0 0 4px #8d7bc7;
}
.ks-song {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.ks-song b {
  font-weight: normal;
  color: #fff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ks-song span {
  color: #c4b4ea;
}
.ks-chip {
  flex: none;
  padding: 0 8px;
  height: 18px;
  line-height: 18px;
  border-radius: 9px;
  background: var(--candy);
  color: #fff;
  text-shadow: 0 1px 0 #e27a9c;
}

/* 记忆卡被认领:停一下再回岛 */
.cd-claimed {
  padding: 24px 16px;
  text-align: center;
}
.cd-claimed-ic {
  display: flex;
  justify-content: center;
  margin-bottom: 10px;
  animation: iv-bob 0.8s steps(2) infinite;
}

/* ============ 全屏看岛:广场 / 活动 / 双人 / 我的 ============ */

.hm-full {
  position: absolute;
  right: 12px;
  top: calc(var(--safe-t) + 16px);
  height: 32px;
  padding: 0 12px;
  border-radius: 16px;
  z-index: 2;
  cursor: pointer;
}
.hm-grab {
  position: absolute;
  left: 50%;
  top: -4px;
  width: 132px;
  height: 30px;
  margin-left: -66px;
  touch-action: none;
  cursor: grab;
  z-index: 2;
}
.hm-sheet {
  transition: transform 0.12s steps(2);
}

html.stg-on,
html.stg-on body {
  overflow: hidden;
  overscroll-behavior: none;
}
.stg {
  position: fixed;
  inset: 0;
  z-index: 60;
  overflow: hidden;
  background: #8ccfe6;
  user-select: none;
  -webkit-user-select: none;
}
.stg-view {
  position: absolute;
  inset: 0;
  overflow: hidden;
  touch-action: none;
  cursor: grab;
}
.stg-view:active {
  cursor: grabbing;
}
.stg-cam {
  position: absolute;
  left: 0;
  top: 0;
}
.stg-box > .iv,
.stg-box > .wv {
  width: 100%;
}
.stg-box .iv-isl {
  cursor: inherit;
}

.stg-top {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(var(--safe-t) + 14px);
  padding: 0 16px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  pointer-events: none;
}
.stg-top > * {
  pointer-events: auto;
}
.stg-tlc {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}
.stg-cap {
  flex-direction: column;
  align-items: flex-start;
  padding: 8px 12px;
  border-radius: 14px;
  max-width: min(calc(100vw - 104px), 460px);
}
@media (max-width: 760px) {
  .stg-top {
    padding: 0 12px;
  }
}
.stg-cap b {
  font-size: 24px;
  line-height: 30px;
  font-weight: normal;
}
.stg-plq {
  margin-left: 6px;
  padding: 0 10px;
  height: 20px;
  line-height: 20px;
  border-radius: 10px;
  background: #fff;
  color: #7a67b4;
  box-shadow: 0 2px 0 #c4b4ea;
}
.stg-plq.gate {
  background: #fff4f6;
  color: #b25c7c;
  box-shadow: 0 2px 0 #f39cb9;
}
.stg-plq.fut {
  background: #2e2450;
  color: #fff2c4;
  box-shadow: 0 2px 0 #120c2c;
}
.stg-x {
  height: 32px;
  padding: 0 14px;
  border: 0;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  color: #5b4a73;
  box-shadow: inset 0 3px 0 #fff, 0 3px 0 #c4b4ea;
  cursor: pointer;
}
html[data-skin='night'] .stg-x {
  background: rgba(46, 37, 96, 0.92);
  color: #d6ceff;
  box-shadow: inset 0 0 0 2px #6a58a8, 0 3px 0 #120c2c;
}

.stg-rail {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  padding: 10px 8px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 0 0 3px #fff, 0 0 0 6px #c4b4ea;
}
.stg-rh {
  text-align: center;
  color: #8d7bc7;
}
.stg-r {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 28px;
  padding: 0 12px 0 8px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: #7a67b4;
  cursor: pointer;
}
.stg-r i {
  width: 8px;
  height: 8px;
  background: #c4b4ea;
  box-shadow: 0 0 0 2px #fff;
}
.stg-r.on {
  background: var(--candy);
  color: #fff;
  text-shadow: 0 1px 0 #e27a9c;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.6), 0 2px 0 #e27a9c;
}
.stg-r.on i {
  background: #fff4b0;
  box-shadow: 0 0 0 2px #e27a9c;
}
html[data-skin='night'] .stg-rail {
  background: rgba(29, 21, 72, 0.86);
  box-shadow: 0 0 0 3px #3b2c6c, 0 0 0 6px #8d7bc7;
}
html[data-skin='night'] .stg-r {
  color: #c4b4ea;
}
@media (max-width: 760px) {
  .stg-rail {
    right: 10px;
    gap: 4px;
    padding: 6px 4px;
    border-radius: 14px;
  }
  .stg-rh {
    display: none;
  }
  .stg-r {
    height: 26px;
    gap: 6px;
    padding: 0 8px 0 6px;
    border-radius: 13px;
  }
}

.stg-extra {
  position: absolute;
  left: 16px;
  bottom: calc(var(--safe-b) + 78px);
  pointer-events: none;
}
.stg-extra > * {
  pointer-events: auto;
}

.stg-time {
  position: absolute;
  left: 50%;
  bottom: calc(var(--safe-b) + 18px);
  transform: translateX(-50%);
  width: min(520px, calc(100vw - 32px));
  height: 40px;
  padding: 0 8px 0 14px;
  border-radius: 20px;
  gap: 10px;
}
.stg-sun {
  flex: none;
  width: 10px;
  height: 10px;
  background: #ffd27c;
  box-shadow: 0 0 0 2px #fff;
}
.stg-rng {
  flex: 1;
  min-width: 60px;
  height: 8px;
  margin: 0;
  -webkit-appearance: none;
  appearance: none;
  border-radius: 4px;
  outline: none;
  background: linear-gradient(90deg, #2e2450 0%, #6c5ba0 20%, #f4d2cf 27%, #a6dcee 40%, #a6dcee 62%, #ffc79c 72%, #6c5ba0 80%, #2e2450 100%);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.8);
  cursor: pointer;
}
.stg-rng::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 20px;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 0 0 3px #ff9cbc, 0 3px 0 3px #e27a9c;
}
.stg-rng::-moz-range-thumb {
  width: 16px;
  height: 20px;
  border: 0;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 0 0 3px #ff9cbc;
}
.stg-tl {
  flex: none;
  min-width: 72px;
  text-align: right;
  white-space: nowrap;
}
.stg-now {
  flex: none;
  height: 26px;
  padding: 0 10px;
  border: 0;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.6);
  color: #7a67b4;
  opacity: 0.55;
  cursor: pointer;
}
.stg-now.on {
  background: var(--candy);
  color: #fff;
  text-shadow: 0 1px 0 #e27a9c;
  opacity: 1;
}

.stg-ttl {
  position: absolute;
  left: 50%;
  top: 42%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 26px 14px;
  border-radius: 22px;
  background: rgba(46, 36, 80, 0.58);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.35);
  color: #fff;
  text-shadow: 0 3px 0 rgba(46, 36, 80, 0.8);
  pointer-events: none;
  opacity: 0;
}
.stg-ttl b {
  font-size: 48px;
  line-height: 54px;
  font-weight: normal;
}
.stg-ttl span {
  color: #fff2c4;
  text-shadow: none;
}
.stg-ttl.on {
  animation: stg-ttl 1.5s steps(10) both;
}
.stg-ttl.say {
  top: 20%;
  width: max-content;
  max-width: calc(100vw - 32px);
  text-align: center;
}
.stg-ttl.say span {
  font-size: 20px;
  line-height: 26px;
}
.stg-ttl.say.on {
  animation-duration: 3.4s;
}
@media (max-width: 760px) {
  .stg-ttl.say {
    top: 30%;
  }
  .stg-ttl.say b {
    font-size: 32px;
    line-height: 38px;
  }
  .stg-ttl.say span {
    font-size: 15px;
    line-height: 20px;
  }
}
@keyframes stg-ttl {
  0% {
    opacity: 0;
    transform: translate(-50%, -40%);
  }
  15%,
  75% {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -58%);
  }
}
.stg-hint {
  position: absolute;
  left: 50%;
  bottom: calc(var(--safe-b) + 72px);
  transform: translateX(-50%);
  max-width: calc(100vw - 32px);
  padding: 0 12px;
  height: 24px;
  line-height: 24px;
  border-radius: 12px;
  background: rgba(46, 36, 80, 0.72);
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s steps(4);
}
.stg-hint.on {
  opacity: 1;
}

/* 岛上的名牌(我的岛 / 活动岛) */
.iv-tag.name {
  height: 18px;
  line-height: 18px;
  padding: 0 6px;
  background: rgba(255, 255, 255, 0.92);
  color: #5b4a73;
  text-shadow: none;
  box-shadow: 0 2px 0 #c4b4ea;
  animation: none;
}
.iv-tag.name.me {
  background: var(--candy);
  color: #fff;
  text-shadow: 0 1px 0 #e27a9c;
  box-shadow: 0 2px 0 #e27a9c;
}
.iv-tag.name.fr::before {
  content: '♥ ';
  color: #ff6f9a;
}
html[data-skin='night'] .iv-tag.name:not(.me) {
  background: rgba(46, 37, 96, 0.9);
  color: #e6defa;
  box-shadow: 0 2px 0 #120c2c;
}

/* 活动岛:上岛码 + 人数 + 报告 */
.ev-card {
  justify-content: flex-start;
  gap: 14px;
  padding: 12px;
  border-radius: 16px;
}
.ev-qr canvas {
  border-radius: 4px;
  box-shadow: 0 0 0 3px #fff;
}
.ev-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.ev-t {
  font-size: 24px;
  line-height: 30px;
}
.ev-u {
  opacity: 0.8;
}
.ev-n b {
  display: inline-block;
  margin: 0 2px;
  font-size: 24px;
  line-height: 30px;
  font-weight: normal;
}
.ev-n b.bump {
  animation: ev-bump 0.6s steps(4);
}
@keyframes ev-bump {
  0% {
    transform: scale(1.6);
    color: #ff6f9a;
  }
  100% {
    transform: scale(1);
  }
}
.ev-rep,
.ev-fold {
  height: 28px;
  padding: 0 12px;
  border: 0;
  border-radius: 14px;
  background: var(--candy);
  color: #fff;
  text-shadow: 0 1px 0 #e27a9c;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.6), 0 2px 0 #e27a9c;
  cursor: pointer;
}
.ev-rep {
  align-self: flex-start;
  margin-top: 4px;
}
.ev-demo {
  color: #b25c7c;
}
html[data-skin='night'] .ev-demo {
  color: #f6a6bf;
}
.ev-fold {
  display: none;
}
@media (max-width: 760px) {
  .stg .ev-card.lcd:not(.open) {
    padding: 0;
    background: none;
    box-shadow: none;
  }
  .ev-card:not(.open) .ev-qr,
  .ev-card:not(.open) .ev-meta {
    display: none;
  }
  .ev-card.open {
    flex-direction: column;
    align-items: flex-start;
  }
  .ev-fold {
    display: block;
    height: 32px;
    border-radius: 16px;
  }
}
.ev-rpt {
  text-align: center;
}
.ev-rpt-k {
  display: inline-block;
  padding: 0 10px;
  height: 20px;
  line-height: 20px;
  border-radius: 10px;
  background: #fff4f6;
  color: #b25c7c;
  box-shadow: 0 2px 0 #f39cb9;
}
.ev-rpt-t {
  margin: 10px 0 12px;
  font-size: 24px;
  line-height: 30px;
}
.ev-rpt-g {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}
.ev-st {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 4px;
  border-radius: 12px;
  background: #f6f0ff;
  box-shadow: inset 0 0 0 2px #e4daf5;
}
.ev-st b {
  font-size: 36px;
  line-height: 42px;
  font-weight: normal;
  color: #ff6f9a;
}
.ev-rpt-x {
  margin-top: 6px;
}
html[data-skin='night'] .ev-st {
  background: rgba(46, 37, 96, 0.88);
  box-shadow: inset 0 0 0 2px #3b2c6c;
}

/* 广场:群岛 / 星星 */
.wv {
  position: relative;
}
.wv-cv {
  width: 100%;
  height: auto;
  aspect-ratio: 480 / 320;
}
.wv-over {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.wv-tag {
  position: absolute;
  transform: translate(-50%, -100%);
  padding: 0 8px;
  height: 20px;
  line-height: 20px;
  border-radius: 10px;
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.92);
  color: #5b4a73;
  box-shadow: 0 2px 0 #c4b4ea;
  pointer-events: auto;
  cursor: pointer;
}
.wv-tag.me {
  background: var(--candy);
  color: #fff;
  text-shadow: 0 1px 0 #e27a9c;
  box-shadow: 0 2px 0 #e27a9c;
}
.wv-tag.event {
  background: #fff4f6;
  color: #b25c7c;
  box-shadow: 0 2px 0 #f39cb9;
}
.wv-tag.lit {
  padding: 0 4px;
  background: none;
  box-shadow: none;
  color: #fff2c4;
  text-shadow: 0 0 6px rgba(255, 242, 196, 0.9);
}
html[data-skin='night'] .wv-tag.friend,
html[data-skin='night'] .wv-tag.event {
  background: rgba(46, 37, 96, 0.88);
  color: #e6defa;
  box-shadow: 0 2px 0 #120c2c;
}
.pz-card {
  text-align: center;
}
.pz-star {
  font-size: 48px;
  line-height: 54px;
  color: #ffd27c;
  text-shadow: 0 0 12px rgba(255, 210, 124, 0.8);
}
.pz-why {
  display: inline-block;
  margin: 6px 0 4px;
  padding: 0 10px;
  height: 20px;
  line-height: 20px;
  border-radius: 10px;
  background: #2e2450;
  color: #fff2c4;
}
.pz-pre {
  margin-top: 8px;
  color: #8d7bc7;
}
.pz-leg {
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 10px 12px;
  border-radius: 14px;
}
.pz-leg div {
  display: flex;
  align-items: center;
  gap: 8px;
}
.pz-leg i {
  flex: none;
  display: inline-block;
  width: 16px;
  height: 4px;
}
.pz-leg i.cl {
  background: repeating-linear-gradient(90deg, #fff 0 3px, transparent 3px 6px);
  box-shadow: 0 0 0 1px rgba(60, 90, 68, 0.35);
}
.pz-leg i.ev {
  background: repeating-linear-gradient(90deg, #f39cb9 0 2px, transparent 2px 5px);
}
.pz-leg i.st {
  width: 8px;
  height: 8px;
  background: #fff2c4;
  box-shadow: 0 0 6px #fff2c4;
}
.pz-leg i.ln {
  height: 2px;
  background: #ddd3f7;
}
