:root {
  --bg: #f4f1ea;
  --paper: #fbfaf6;
  --ink: #233038;
  --muted: #708087;
  --line: rgba(35, 48, 56, .12);
  --sea: #7fa7ab;
  --sea-deep: #51777d;
  --sand: #c9b58e;
  --rose: #a9807d;
  --green: #758f7b;
  --shadow: 0 20px 60px rgba(50, 64, 68, .10);
}

* { box-sizing: border-box; }

/* 滚动条：细、同色系、贴背景 */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(127, 167, 171, .22) transparent;
}

*::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}

*::-webkit-scrollbar-track {
  background: transparent;
}

*::-webkit-scrollbar-thumb {
  background: rgba(127, 167, 171, .16);
  border-radius: 999px;
  border: 1px solid transparent;
  background-clip: padding-box;
}

*::-webkit-scrollbar-thumb:hover {
  background: rgba(81, 119, 125, .28);
  background-clip: padding-box;
}

*::-webkit-scrollbar-corner {
  background: transparent;
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 0%, rgba(151, 184, 187, .18), transparent 30%),
    radial-gradient(circle at 90% 12%, rgba(201, 181, 142, .15), transparent 28%),
    var(--bg);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .32;
  background-image:
    linear-gradient(rgba(35, 48, 56, .022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(35, 48, 56, .018) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(to bottom, #000, transparent 78%);
}

a { color: inherit; }

.shell,
main {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
}

.home-page .shell {
  width: min(1180px, calc(100% - 36px));
}

nav,
.site-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
  background: rgba(244, 241, 234, .80);
  padding-top: env(safe-area-inset-top, 0);
}

.nav-inner {
  min-height: 70px;
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-right: 0;
  text-decoration: none;
  font-weight: 700;
  flex-shrink: 0;
}

.brand-text {
  white-space: nowrap;
}

.mark {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border: 1px solid rgba(81, 119, 125, .24);
  border-radius: 50%;
  background: rgba(255, 255, 255, .46);
  color: var(--sea-deep);
  font-size: 15px;
}

.nav-tabs {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  justify-content: flex-end;
  gap: 4px;
  flex: 1;
  min-width: 0;
}

.nav-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
  flex-shrink: 0;
  transition: color .2s ease, background .2s ease, box-shadow .2s ease;
}

.nav-tab:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, .38);
}

.nav-tab.is-active {
  color: var(--sea-deep);
  background: rgba(255, 255, 255, .68);
  box-shadow: inset 0 0 0 1px rgba(81, 119, 125, .2);
}

.nav-tab-label {
  display: none;
}

.nav-tab-short {
  display: inline;
}

@media (min-width: 1320px) {
  .shell.nav-inner {
    width: min(1400px, calc(100% - 48px));
  }

  .nav-tab {
    padding: 7px 11px;
  }

  .nav-tab-label {
    display: inline;
  }

  .nav-tab-short {
    display: none;
  }
}

.nav-hamburger,
.nav-sidebar-backdrop,
.nav-sidebar {
  display: none !important;
}

.nav-spacer { flex: 1; }

.nav-link {
  flex-shrink: 0;
  text-decoration: none;
  font-size: 13px;
  color: var(--muted);
  padding: 9px 11px;
  border-radius: 999px;
  transition: color .2s ease, background .2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--ink);
  background: rgba(255, 255, 255, .42);
}

.nav-island,
.nav-pill {
  flex-shrink: 0;
  border: 1px solid rgba(81, 119, 125, .22);
  background: rgba(255, 255, 255, .55);
  border-radius: 999px;
  padding: 10px 15px;
  font-size: 13px;
  cursor: pointer;
  text-decoration: none;
  color: var(--ink);
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}

.nav-island {
  background: #1f2f34;
  color: #f7f3e8;
  border-color: #1f2f34;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.nav-island span { opacity: .7; font-size: 10px; }

.nav-island:hover {
  background: #2a3d43;
  color: #f7f3e8;
}

.nav-pill {
  color: var(--sea-deep);
}

.nav-pill:hover {
  background: rgba(255, 255, 255, .78);
  border-color: rgba(81, 119, 125, .4);
}

.nav-cta {
  flex-shrink: 0;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 10px 15px;
  border: 1px solid rgba(81, 119, 125, .28);
  border-radius: 999px;
  color: var(--sea-deep);
  background: rgba(255, 255, 255, .5);
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}

.nav-cta:hover {
  background: rgba(255, 255, 255, .78);
  border-color: rgba(81, 119, 125, .4);
}

.mobile-island {
  display: none;
}

.island-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(31, 47, 52, .12);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}

.island-backdrop:not([hidden]) {
  display: block;
  opacity: 1;
  pointer-events: auto;
}

.island-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 100;
  width: min(430px, 92vw);
  height: 100%;
  max-height: 100dvh;
  padding: 0;
  padding-right: env(safe-area-inset-right, 0px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #f4f1e8;
  box-shadow: -20px 0 60px rgba(31, 47, 52, .18);
  transform: translateX(105%);
  transition: transform .28s ease;
}

.island-drawer.is-open {
  transform: translateX(0);
}

.island-drawer-head {
  height: 92px;
  flex: 0 0 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px 0 34px;
  border-bottom: 1px solid var(--line);
}

.island-drawer-head strong {
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: 25px;
  font-weight: 500;
  letter-spacing: .01em;
}

.island-drawer-close {
  border: 0;
  background: transparent;
  color: #74858a;
  cursor: pointer;
  font-size: 14px;
  padding: 8px 0 8px 12px;
}

.island-drawer-body {
  flex: 1 1 auto;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 12px 34px 24px;
  scrollbar-width: thin;
  scrollbar-color: rgba(127, 167, 171, .28) transparent;
}

.island-drawer-body::-webkit-scrollbar {
  width: 5px;
}

.island-drawer-body::-webkit-scrollbar-track {
  background: transparent;
}

.island-drawer-body::-webkit-scrollbar-thumb {
  background: rgba(127, 167, 171, .28);
  border-radius: 999px;
}

.island-drawer-group {
  padding: 12px 0 0;
}

.island-drawer-group + .island-drawer-group {
  padding-top: 18px;
}

.island-drawer-group h4 {
  margin: 0 0 4px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
  letter-spacing: .12em;
  color: #76979b;
  font-weight: 500;
  text-transform: none;
}

.island-drawer-link {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  min-height: 72px;
  padding: 10px 0 9px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
}

.island-drawer-link strong {
  display: block;
  font-size: 16px;
  line-height: 1.25;
  font-weight: 700;
}

.island-drawer-link small {
  display: block;
  margin-top: 3px;
  color: #8e9a9c;
  font-size: 12px;
  line-height: 1.3;
}

.island-drawer-link span {
  color: #6d8e93;
  font-size: 18px;
  padding-left: 8px;
}

.island-drawer-link:hover strong {
  color: #4f777d;
}

.island-drawer-link.is-active strong {
  color: var(--sea-deep);
}

body.island-drawer-open {
  overflow: hidden;
}

/* ── 岛上地点：紧凑分类侧栏 ── */
.island-drawer--compact {
  background: #f5f1e8;
}

.island-drawer--compact .island-drawer-head {
  height: auto;
  flex: 0 0 auto;
  padding: 24px 22px 16px;
}

.island-drawer--compact .island-drawer-head strong {
  font-size: 29px;
}

.island-drawer-quick {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0 22px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.island-drawer-quick a {
  min-width: 0;
  padding: 11px 4px 10px;
  border-right: 1px solid var(--line);
  text-align: center;
  text-decoration: none;
  color: var(--ink);
}

.island-drawer-quick a:last-child {
  border-right: 0;
}

.island-drawer-quick strong,
.island-drawer-quick small {
  display: block;
}

.island-drawer-quick strong {
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.island-drawer-quick small {
  margin-top: 3px;
  color: #99a19f;
  font-size: 8px;
}

.island-drawer-compact-body {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  overflow: hidden;
}

.island-drawer-rail {
  min-height: 0;
  padding: 18px 0 16px;
  border-right: 1px solid var(--line);
  background: rgba(255, 255, 255, .14);
}

.island-drawer-tab {
  position: relative;
  width: 100%;
  padding: 15px 10px 15px 16px;
  border: 0;
  background: transparent;
  color: #889492;
  font: inherit;
  font-size: 11px;
  line-height: 1.35;
  text-align: left;
  cursor: pointer;
}

.island-drawer-tab span {
  display: block;
  margin-bottom: 4px;
  color: #a2aaa8;
  font-size: 8px;
  letter-spacing: .12em;
}

.island-drawer-tab.is-active {
  color: var(--ink);
}

.island-drawer-tab.is-active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  bottom: 12px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--sea);
}

.island-drawer-panels {
  min-width: 0;
  min-height: 0;
  overflow-y: auto;
  padding: 24px 20px 26px;
  scrollbar-width: none;
}

.island-drawer-panels::-webkit-scrollbar {
  display: none;
}

.island-drawer-panel {
  display: none;
}

.island-drawer-panel.is-active {
  display: block;
}

.island-drawer-kicker {
  color: #839e9f;
  font-size: 9px;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.island-drawer-panel h3 {
  margin: 6px 0 20px;
  font-family: "Noto Serif SC", Georgia, serif;
  font-size: 27px;
  font-weight: 500;
}

.island-drawer-places {
  border-top: 1px solid var(--line);
}

.island-drawer-place {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  min-height: 78px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
}

.island-drawer-place-no {
  align-self: start;
  padding-top: 3px;
  color: #a0aaa8;
  font-size: 10px;
}

.island-drawer-place-copy {
  min-width: 0;
}

.island-drawer-place-copy strong,
.island-drawer-place-copy small {
  display: block;
}

.island-drawer-place-copy strong {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
}

.island-drawer-place-copy small {
  margin-top: 5px;
  overflow: hidden;
  color: #909a98;
  font-size: 10px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.island-drawer-place > span:last-child {
  color: #719496;
  font-size: 18px;
}

.island-drawer-place:hover .island-drawer-place-copy strong,
.island-drawer-place.is-active .island-drawer-place-copy strong {
  color: var(--sea-deep);
}

.island-drawer-bottom {
  flex: 0 0 auto;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--line);
  background: rgba(245, 241, 232, .94);
}

.island-drawer-undertide {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  border-radius: 15px;
  background: #dedbd2;
  color: #515b5b;
  text-decoration: none;
}

.island-drawer-undertide strong {
  font-size: 12px;
}

.island-drawer-undertide small {
  margin-left: 8px;
  color: #8b918f;
  font-size: 8px;
}

main {
  padding: 58px 0 88px;
}

.page-head {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  align-items: flex-end;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.eyebrow {
  color: var(--sea-deep);
  font-size: 12px;
  letter-spacing: .15em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

h1, h2, h3 {
  font-family: "Noto Serif SC", Georgia, "Songti SC", "STSong", serif;
  font-weight: 500;
}

h1 {
  font-size: clamp(38px, 5vw, 58px);
  margin: 0;
  letter-spacing: -.025em;
}

h2 { font-size: 25px; margin: 0; }
h3 { font-size: 19px; }

.tagline,
.muted {
  color: var(--muted);
}

.tagline {
  margin: 12px 0 0;
  line-height: 1.8;
  max-width: 650px;
}

.tagline a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.panel,
.card {
  border: 1px solid var(--line);
  background: rgba(251, 250, 246, .72);
  box-shadow: 0 12px 36px rgba(50, 64, 68, .06);
  backdrop-filter: blur(10px);
}

.panel {
  border-radius: 22px;
  padding: 24px;
}

.card {
  border-radius: 18px;
  padding: 20px;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--sand);
  opacity: .9;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.tag {
  font-size: 10px;
  letter-spacing: .12em;
  padding: 5px 8px;
  border-radius: 999px;
  border: 1px solid rgba(81, 119, 125, .22);
  color: var(--sea-deep);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
  gap: 8px;
  margin: 18px 0;
}

.world-band {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: 14px;
  align-items: stretch;
  margin: 18px 0;
}

.world-side {
  display: contents;
}

.world-band > .panel,
.world-side > .panel {
  min-width: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.world-band .feed {
  margin-top: 0;
}

.world-band .panel-head {
  margin-bottom: 12px;
}

.world-band .panel.mini h3 {
  font-size: 19px;
}

.world-band .beacon-stack,
.world-band #contracts {
  flex: 1;
}

.panel.mini {
  padding: 18px;
}

.panel.mini h3 {
  margin: 0 0 8px;
}

.statbar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  max-width: 560px;
  justify-content: flex-end;
  align-items: center;
}

.statbar--board {
  gap: 6px;
}

.stat-chip-label,
.stat-chip-value {
  display: block;
  line-height: 1.2;
}

.stat-chip-label {
  font-size: 10px;
  letter-spacing: .04em;
  opacity: .82;
}

.stat-chip-value {
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.stat-chip.stat-chip--static,
.statbar .stat-chip {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  min-height: 44px;
  padding: 6px 12px;
  text-align: center;
}

.stats-shell {
  margin: 0 0 18px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(251, 250, 246, .66);
  box-shadow: 0 6px 20px rgba(50, 64, 68, .04);
  backdrop-filter: blur(10px);
}

.stats-primary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.stat-main {
  min-width: 0;
  padding: 12px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .48);
  border: 1px solid rgba(35, 48, 56, .08);
  text-align: center;
}

.stat-main small {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 11px;
  text-align: center;
}

.stat-main strong {
  display: block;
  font-family: "Noto Serif SC", Georgia, "Songti SC", serif;
  font-size: 18px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
}

.stat-main.live strong,
.stat-main.stat-chip.live strong {
  color: var(--sea-deep);
}

button.stat-main.stat-chip {
  font: inherit;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease;
}

button.stat-main.stat-chip:hover,
button.stat-main.stat-chip.is-on {
  background: rgba(255, 255, 255, .82);
  border-color: rgba(81, 119, 125, .28);
}

.more-state {
  margin-top: 10px;
  border-top: 1px solid var(--line);
}

.more-state summary {
  list-style: none;
  cursor: pointer;
  padding: 11px 2px 1px;
  color: var(--sea-deep);
  font-size: 12px;
}

.more-state summary::-webkit-details-marker {
  display: none;
}

.more-state-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding-top: 10px;
}

.state-pill {
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .42);
  color: var(--muted);
  font-size: 12px;
}

button.state-pill.stat-chip {
  font: inherit;
  cursor: pointer;
}

button.state-pill.stat-chip:hover,
button.state-pill.stat-chip.is-on {
  color: var(--ink);
  background: rgba(255, 255, 255, .78);
  border-color: rgba(81, 119, 125, .35);
}

.soft-note {
  margin: 0 0 22px;
  padding: 15px 17px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, .34);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.75;
}

.board-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}

.statbar > span.stat-chip,
button.stat-chip {
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .42);
  font-size: 12px;
  color: var(--muted);
}

.stat-chip {
  font: inherit;
  cursor: pointer;
  line-height: 1.3;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}

.stat-chip--static {
  cursor: default;
}

.stat-chip:hover,
.stat-chip.is-on {
  color: var(--ink);
  background: rgba(255, 255, 255, .78);
  border-color: rgba(81, 119, 125, .35);
}

.stat-chip.has-live {
  color: var(--sea-deep);
}

.stat-drawer {
  margin: 0 0 18px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(251, 250, 246, .86);
}

.stat-drawer[hidden] { display: none; }

.stat-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.stat-drawer-close {
  font: inherit;
  font-size: 12px;
  color: var(--muted);
  border: 0;
  background: none;
  cursor: pointer;
}

.stat-drawer-body p { margin: 0 0 8px; }

.who-hit {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  margin: 0;
  padding: 10px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: none;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.who-hit:last-child { border-bottom: 0; }

.who-hit:hover b { color: var(--sea-deep); }

.who-hit small,
.who-meta {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 2px;
}

.who-meta { text-align: right; white-space: nowrap; }

.live-pill {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(116, 155, 129, .16);
  color: var(--green);
  font-size: 11px;
  font-style: normal;
}

.allot-card { cursor: pointer; }

.allot-card .live-pill {
  position: absolute;
  top: 12px;
  right: 12px;
}

.allot-card.is-online::before { background: var(--green); }

.allot-card.is-focus {
  box-shadow: 0 0 0 2px rgba(81, 119, 125, .35), 0 12px 36px rgba(50, 64, 68, .08);
}

.board-grid-mini { margin-top: 4px; }

.board-list { list-style: none; margin: 0; padding: 0; }

button.board-row,
a.board-row {
  display: grid;
  width: 100%;
  appearance: none;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 11px 0;
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: inherit;
  text-decoration: none;
}

button.board-row:hover,
a.board-row:hover {
  background: rgba(255, 255, 255, .35);
}

.panel-head a.tag {
  text-decoration: none;
}

.pulse-good { color: var(--green) !important; }
.pulse-bad { color: var(--rose) !important; }

.feed { margin-top: 14px; }

.feed .item {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  line-height: 1.7;
}

.feed .item:last-child {
  border-bottom: 0;
}

.reward { color: #9a7f4f; }

.narrow {
  max-width: 620px !important;
}

.vow-page { padding-bottom: 64px; }
.vow-page h1 { font-family: "Noto Serif SC", Georgia, serif; font-weight: 500; line-height: 1.25; }
.vow-card { margin-top: 22px; }
.vow-kicker { font-size: 11px; letter-spacing: .14em; color: var(--muted); text-transform: uppercase; margin: 18px 0 8px; }
.vow-text { margin: 0 0 18px; padding: 12px 0; font-family: "Noto Serif SC", Georgia, serif; font-size: 17px; line-height: 1.7; border-bottom: 1px dashed var(--line); }
.vow-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 18px; margin: 0 0 18px; }
.vow-meta dt { font-size: 11px; color: var(--muted); }
.vow-meta dd { margin: 4px 0 0; }
.vow-actions { margin: 10px 0 0; }
.vow-foot { margin-top: 18px; font-size: 13px; line-height: 1.6; }
.vow-list { margin: 0 0 12px; padding-left: 18px; color: #4d6264; line-height: 1.7; }
.vow-confirm-ask { font-size: 14px; line-height: 1.7; }
@media (max-width: 560px) {
  .vow-meta { grid-template-columns: 1fr; }
}

.form-card {
  padding: 30px;
}

label {
  display: block;
  margin: 0 0 18px;
  font-size: 13px;
  color: var(--muted);
}

input,
select {
  width: 100%;
  margin-top: 8px;
  padding: 13px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .58);
  color: var(--ink);
  outline: none;
  font: inherit;
}

input:focus,
select:focus {
  border-color: rgba(81, 119, 125, .55);
  box-shadow: 0 0 0 4px rgba(127, 167, 171, .10);
}

.btn {
  min-height: 45px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  text-decoration: none;
  background: rgba(255, 255, 255, .48);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
}

.btn.primary {
  background: var(--ink);
  color: #f8f6ef;
  border-color: transparent;
}

.btn.full,
.bar-btn {
  width: 100%;
}

.result {
  margin-top: 18px;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(127, 167, 171, .09);
  word-break: break-word;
}

.result pre,
.secret-value {
  margin: 8px 0 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .5);
  font-size: 13px;
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-all;
  overflow-x: visible;
  user-select: all;
  max-width: 100%;
}

.secret-block {
  margin: 16px 0 0;
}

.secret-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.secret-head span {
  flex: 1;
  min-width: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}

.secret-copy {
  flex-shrink: 0;
  min-height: 34px;
  padding: 0 12px;
  font-size: 13px;
}

.secret-copy:disabled {
  opacity: .85;
}

.secret-note {
  margin-top: 14px;
  font-size: 13px;
}

.secret-inline {
  display: inline;
  overflow-wrap: anywhere;
  word-break: break-all;
}

.hidden { display: none; }

.helper-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  font-size: 13px;
  color: var(--muted);
}

.helper-row a {
  color: var(--sea-deep);
}

.bar-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.steward-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 14px;
}

.steward-grid .feed {
  grid-column: 1 / -1;
}

/* ── 管家面板（/steward）── */
.steward-page {
  background:
    radial-gradient(ellipse 80% 50% at 15% -10%, rgba(127, 167, 171, .22), transparent 55%),
    radial-gradient(ellipse 60% 40% at 95% 5%, rgba(201, 181, 142, .18), transparent 50%),
    var(--bg);
}

.steward-main {
  padding-bottom: 56px;
}

.steward-head {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 20px;
  align-items: end;
  margin: 28px 0 22px;
}

.steward-head h1 {
  font-size: clamp(34px, 4.5vw, 52px);
  margin: 0;
}

.steward-key-card {
  padding: 20px 22px;
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(255,255,255,.82), rgba(251,250,246,.55));
}

.steward-key-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.steward-key-label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
}

.steward-key-label input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(81, 119, 125, .2);
  background: rgba(255,255,255,.7);
  font: inherit;
  color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
}

.steward-key-label input:focus {
  outline: none;
  border-color: rgba(81, 119, 125, .45);
  box-shadow: 0 0 0 3px rgba(127, 167, 171, .18);
}

.steward-submit {
  width: 100%;
  padding: 12px 16px;
  border-radius: 12px;
}

.steward-key-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.steward-refresh,
.steward-forget {
  flex: 1;
  min-width: 120px;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 13px;
  background: rgba(255,255,255,.55);
}

.steward-forget {
  color: var(--rose);
  border-color: rgba(169, 128, 125, .25);
}

.steward-saved-hint {
  margin: 12px 0 0;
  font-size: 12px;
  color: var(--sea-deep);
  line-height: 1.5;
}

.steward-alert {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 13px;
  color: var(--rose);
  background: rgba(169, 128, 125, .1);
  border: 1px solid rgba(169, 128, 125, .22);
}

.steward-dashboard {
  animation: steward-in .45s ease;
}

.steward-panel-memories {
  margin-bottom: 16px;
  padding: 24px 26px;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(81, 119, 125, .06), rgba(201, 181, 142, .08)),
    rgba(251, 250, 246, .76);
}

.memory-panel-head {
  align-items: flex-start;
}

.memory-panel-head h2 {
  margin-bottom: 5px;
}

.memory-panel-head p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.memory-filters {
  display: flex;
  gap: 7px;
  margin: 18px 0 16px;
  overflow-x: auto;
}

.memory-filter {
  flex: none;
  padding: 7px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.5);
  color: var(--muted);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}

.memory-filter:hover,
.memory-filter.is-active {
  color: var(--sea-deep);
  border-color: rgba(81, 119, 125, .32);
  background: rgba(127, 167, 171, .13);
}

.memory-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.memory-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 290px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,.58);
  box-shadow: 0 10px 28px rgba(50, 64, 68, .045);
  overflow: hidden;
}

.memory-card::before {
  content: "";
  position: absolute;
  width: 120px;
  height: 120px;
  right: -45px;
  top: -55px;
  border-radius: 50%;
  background: rgba(127, 167, 171, .12);
}

.memory-card.kind-story::before { background: rgba(201, 181, 142, .16); }
.memory-card.kind-npc::before { background: rgba(117, 143, 123, .14); }

.memory-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  position: relative;
}

.memory-kind {
  display: inline-flex;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(81, 119, 125, .09);
  color: var(--sea-deep);
  font-size: 10px;
  letter-spacing: .1em;
}

.memory-card.kind-story .memory-kind {
  color: #8a7047;
  background: rgba(201, 181, 142, .16);
}

.memory-card.kind-npc .memory-kind {
  color: var(--green);
  background: rgba(117, 143, 123, .13);
}

.memory-card time {
  font-size: 10px;
  color: var(--muted);
}

.memory-card h3 {
  margin: 17px 0 9px;
  font-family: "Noto Serif SC", Georgia, serif;
  font-size: 21px;
  font-weight: 500;
  line-height: 1.35;
}

.memory-blurb {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.memory-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
}

.memory-card-meta span {
  padding: 4px 8px;
  border-radius: 8px;
  background: rgba(35, 48, 56, .045);
  color: var(--muted);
  font-size: 10px;
}

.memory-keepsakes {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 10px;
}

.memory-keepsake {
  max-width: 100%;
  padding: 4px 7px;
  border: 1px solid rgba(201, 181, 142, .25);
  border-radius: 999px;
  background: rgba(201, 181, 142, .08);
  color: #76654a;
  font-size: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.memory-card-action {
  display: flex;
  align-items: end;
  gap: 8px;
  margin-top: 14px;
}

.memory-card-action .memory-watch {
  flex: none;
  margin-left: auto;
  padding: 9px 13px;
  border-radius: 10px;
  font-size: 12px;
}

.memory-variant-label {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 4px;
  color: var(--muted);
  font-size: 10px;
}

.memory-variant-label select {
  max-width: 170px;
  padding: 8px 28px 8px 9px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(255,255,255,.72);
  color: var(--ink);
  font: inherit;
  font-size: 11px;
}

.memory-empty {
  grid-column: 1 / -1;
  padding: 34px 18px;
  text-align: center;
  color: var(--muted);
}

.memory-empty > span {
  display: block;
  margin-bottom: 8px;
  color: var(--sea);
  font-size: 30px;
}

.memory-empty strong {
  display: block;
  margin-bottom: 7px;
  color: var(--ink);
  font-family: "Noto Serif SC", Georgia, serif;
  font-weight: 500;
}

.memory-empty p {
  max-width: 520px;
  margin: 0 auto;
  font-size: 12px;
  line-height: 1.7;
}

body.memory-open {
  overflow: hidden;
}

.memory-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 24px;
}

.memory-modal.hidden {
  display: none;
}

.memory-modal-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: rgba(25, 35, 39, .58);
  backdrop-filter: blur(8px);
  cursor: default;
}

.memory-reader {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(1040px, 100%);
  height: min(820px, calc(100vh - 48px));
  border: 1px solid rgba(255,255,255,.5);
  border-radius: 24px;
  background:
    radial-gradient(circle at 90% 0%, rgba(127, 167, 171, .13), transparent 30%),
    #f9f7f1;
  box-shadow: 0 32px 90px rgba(20, 30, 34, .32);
  overflow: hidden;
}

.memory-reader-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 28px 18px;
  border-bottom: 1px solid var(--line);
}

.memory-reader-kicker {
  color: var(--sea-deep);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.memory-reader-head h2 {
  margin: 5px 0 4px;
  font-family: "Noto Serif SC", Georgia, serif;
  font-size: 28px;
  font-weight: 500;
}

.memory-reader-head p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

.memory-reader-close {
  flex: none;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255,255,255,.6);
  color: var(--muted);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.memory-reader-notice {
  padding: 9px 28px;
  border-bottom: 1px solid rgba(81, 119, 125, .12);
  background: rgba(127, 167, 171, .08);
  color: var(--sea-deep);
  font-size: 11px;
  line-height: 1.5;
}

.memory-reader-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  min-height: 0;
  flex: 1;
}

.memory-reader-toc {
  padding: 16px 12px;
  border-right: 1px solid var(--line);
  overflow-y: auto;
}

.memory-toc-item {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 7px;
  width: 100%;
  padding: 9px 10px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 11px;
  line-height: 1.45;
  text-align: left;
  cursor: pointer;
}

.memory-toc-item span {
  color: rgba(81, 119, 125, .55);
  font-size: 9px;
  letter-spacing: .08em;
}

.memory-toc-item:hover,
.memory-toc-item.is-active {
  background: rgba(127, 167, 171, .12);
  color: var(--ink);
}

.memory-reader-page {
  padding: clamp(24px, 4vw, 46px) clamp(24px, 6vw, 70px);
  overflow-y: auto;
  scroll-behavior: smooth;
}

.memory-chapter + .memory-chapter {
  margin-top: 54px;
  padding-top: 44px;
  border-top: 1px solid var(--line);
}

.memory-chapter-count {
  color: var(--sea-deep);
  font-size: 10px;
  letter-spacing: .12em;
}

.memory-chapter h3 {
  margin: 8px 0 24px;
  font-family: "Noto Serif SC", Georgia, serif;
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 500;
  line-height: 1.35;
}

.memory-prose {
  font-family: "Noto Serif SC", Georgia, serif;
  color: #2e393d;
  font-size: 16px;
  line-height: 2;
}

.memory-reader-souvenirs {
  margin-top: 44px;
  padding: 18px;
  border: 1px solid rgba(201, 181, 142, .28);
  border-radius: 14px;
  background: rgba(201, 181, 142, .08);
}

.memory-reader-souvenirs h4 {
  margin: 0 0 10px;
  color: #76654a;
  font-family: "Noto Serif SC", Georgia, serif;
  font-weight: 500;
}

.memory-reader-souvenirs div {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.memory-reader-souvenirs span {
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(255,255,255,.58);
  color: #76654a;
  font-size: 11px;
}

.memory-reader-foot {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
  padding: 13px 20px;
  border-top: 1px solid var(--line);
  background: rgba(249, 247, 241, .92);
}

.memory-reader-foot .btn {
  padding: 8px 12px;
  border-radius: 9px;
  font-size: 11px;
}

#memory-reader-progress {
  margin-right: auto;
  color: var(--muted);
  font-size: 11px;
}

@keyframes steward-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

.steward-hero {
  padding: 28px 30px;
  margin-bottom: 16px;
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(81, 119, 125, .09), rgba(201, 181, 142, .07)),
    rgba(251, 250, 246, .78);
  overflow: hidden;
  position: relative;
}

.steward-hero::after {
  content: "";
  position: absolute;
  right: -40px;
  top: -40px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(127, 167, 171, .14), transparent 70%);
  pointer-events: none;
}

.steward-hero-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 24px;
  align-items: stretch;
  position: relative;
  z-index: 1;
}

.steward-hero-badge {
  display: inline-block;
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--sea-deep);
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(81, 119, 125, .22);
  background: rgba(255,255,255,.45);
  margin-bottom: 12px;
}

.steward-hero-name {
  font-family: "Noto Serif SC", Georgia, serif;
  font-size: clamp(32px, 4vw, 44px);
  margin: 0 0 6px;
  letter-spacing: -.02em;
}

.steward-hero-role {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 15px;
}

.steward-hero-motto {
  margin: 0 0 16px;
  padding: 0;
  border: none;
  font-family: "Noto Serif SC", Georgia, serif;
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  opacity: .92;
}

.steward-hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.steward-chip {
  font-size: 12px;
  padding: 6px 11px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.5);
  color: var(--muted);
}

.steward-chip.soft {
  background: rgba(117, 143, 123, .1);
  border-color: rgba(117, 143, 123, .22);
  color: var(--green);
}

.steward-chip.is-online {
  color: var(--green);
  border-color: rgba(117, 143, 123, .35);
  background: rgba(117, 143, 123, .12);
}

.steward-chip.is-offline {
  color: var(--muted);
  border-color: rgba(35, 48, 56, .12);
  background: rgba(35, 48, 56, .04);
}

.steward-chip.shadow-chip {
  color: var(--sea-deep);
  border-color: rgba(81, 119, 125, .28);
  background: rgba(81, 119, 125, .08);
}

.steward-chip.warn {
  color: var(--rose);
  border-color: rgba(169, 128, 125, .3);
  background: rgba(169, 128, 125, .1);
}

.steward-chip-sub {
  display: inline;
  margin-left: 6px;
  font-style: normal;
  opacity: .72;
  font-size: 11px;
}

.steward-chip.pulse-good {
  color: var(--green);
  border-color: rgba(117, 143, 123, .3);
  background: rgba(117, 143, 123, .12);
}

.steward-chip.pulse-bad {
  color: var(--rose);
  border-color: rgba(169, 128, 125, .3);
  background: rgba(169, 128, 125, .1);
}

.steward-hero-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.steward-stat-tile {
  padding: 16px 14px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.55);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.steward-stat-tile.highlight {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, rgba(81, 119, 125, .12), rgba(127, 167, 171, .08));
  border-color: rgba(81, 119, 125, .25);
}

.steward-stat-label {
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
}

.steward-stat-value {
  font-family: "Noto Serif SC", Georgia, serif;
  font-size: 28px;
  font-weight: 500;
  line-height: 1;
}

.steward-stat-sub {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

.steward-stat-status {
  font-size: 22px;
}

.steward-stat-status.is-online {
  color: var(--green);
}

.steward-stat-status.is-offline {
  color: var(--muted);
}

.steward-stat-tile.highlight .steward-stat-value {
  font-size: 36px;
  color: var(--sea-deep);
}

.steward-bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px;
}

.steward-panel-meters { grid-column: span 5; }
.steward-panel-ops { grid-column: span 7; }
.steward-panel-plots { grid-column: span 7; }
.steward-panel-tote { grid-column: span 5; }
.steward-panel-gifts { grid-column: span 12; }

.steward-meters {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.steward-meter-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 6px;
}

.steward-meter-top strong {
  color: var(--ink);
  font-size: 14px;
}

.steward-meter-track {
  height: 8px;
  border-radius: 999px;
  background: rgba(35, 48, 56, .08);
  overflow: hidden;
}

.steward-meter-track.compact {
  height: 6px;
  margin-top: 8px;
}

.steward-meter-fill {
  height: 100%;
  border-radius: inherit;
  transition: width .5s ease;
}

.steward-meter-fill.tone-sea { background: linear-gradient(90deg, #6a969b, #7fa7ab); }
.steward-meter-fill.tone-sand { background: linear-gradient(90deg, #b39a72, #c9b58e); }
.steward-meter-fill.tone-green { background: linear-gradient(90deg, #627a68, #758f7b); }
.steward-meter-fill.tone-rose { background: linear-gradient(90deg, #946f6c, #a9807d); }
.steward-meter-fill.tone-ink { background: linear-gradient(90deg, #3a4d55, #51777d); }

.steward-meter-fill.is-mid { filter: saturate(1.1); }
.steward-meter-fill.is-low { background: linear-gradient(90deg, #a9807d, #c49a97) !important; }

.steward-meter-notes {
  margin-top: 6px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
}

.steward-meter-notes p {
  margin: 0 0 8px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}

.steward-note-voyage {
  color: var(--sea-deep) !important;
}

.steward-ops-block + .steward-ops-block {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px dashed var(--line);
}

.steward-ops-head {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: var(--muted);
}

.steward-ops-head strong {
  color: var(--ink);
  font-size: 18px;
}

.steward-ops-block h3 {
  margin: 0 0 12px;
  font-size: 13px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}

.steward-incident {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(169, 128, 125, .08);
  border: 1px solid rgba(169, 128, 125, .16);
  margin-bottom: 8px;
  font-size: 14px;
}

.steward-incident-id {
  font-size: 12px;
  color: var(--rose);
  font-weight: 600;
}

.steward-incident-cost {
  font-size: 12px;
  color: var(--muted);
}

.steward-plots {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 10px;
}

.plot-card {
  padding: 14px 12px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.55);
  transition: transform .15s ease, box-shadow .15s ease;
}

.plot-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(50, 64, 68, .08);
}

.plot-card.state-ready {
  border-color: rgba(117, 143, 123, .35);
  background: linear-gradient(160deg, rgba(117, 143, 123, .12), rgba(255,255,255,.6));
}

.plot-card.state-overripe {
  border-color: rgba(169, 128, 125, .35);
  background: linear-gradient(160deg, rgba(169, 128, 125, .1), rgba(255,255,255,.6));
}

.plot-card.state-growing,
.plot-card.state-tending {
  border-color: rgba(127, 167, 171, .3);
}

.plot-card-top {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}

.plot-slot {
  font-size: 11px;
  color: var(--muted);
  font-weight: 600;
}

.plot-emoji {
  margin-left: auto;
  font-size: 22px;
  line-height: 1;
}

.plot-name {
  display: block;
  font-size: 15px;
  margin-bottom: 4px;
}

.plot-detail {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
}

.steward-stock-meta {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 12px;
}

.steward-stock-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-height: 280px;
  overflow: auto;
  padding-right: 4px;
}

.stock-chip {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.65);
  font-size: 13px;
}

.stock-chip strong { font-weight: 500; }
.stock-chip em {
  font-style: normal;
  font-size: 12px;
  color: var(--sea-deep);
}

.steward-gifts {
  display: grid;
  gap: 10px;
}

.steward-gift {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 16px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.45);
}

.steward-gift-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.steward-gift-meta time {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.4;
}

.steward-gift-kind {
  display: inline-block;
  width: fit-content;
  font-size: 10px;
  letter-spacing: .08em;
  padding: 4px 8px;
  border-radius: 999px;
  text-transform: uppercase;
}

.steward-gift-kind.kind-gift {
  color: var(--green);
  background: rgba(117, 143, 123, .12);
  border: 1px solid rgba(117, 143, 123, .22);
}

.steward-gift-kind.kind-tip {
  color: var(--sea-deep);
  background: rgba(127, 167, 171, .12);
  border: 1px solid rgba(127, 167, 171, .22);
}

.steward-gift-body strong {
  display: block;
  margin-bottom: 4px;
  font-size: 15px;
}

.steward-gift-body p {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}

.steward-empty {
  margin: 0;
  padding: 20px 8px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

/* ── 全服聊天室（/lounge）── */
.lounge-page {
  background:
    radial-gradient(circle at 10% 0%, rgba(151, 184, 187, .18), transparent 30%),
    radial-gradient(circle at 90% 12%, rgba(201, 181, 142, .15), transparent 28%),
    var(--bg);
  min-height: 100vh;
}

.lounge-page-main {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 28px 0 56px;
}

.lounge-head {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-end;
  margin-bottom: 22px;
}

.lounge-eyebrow {
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--sea-deep);
  margin-bottom: 10px;
}

.lounge-head h1 {
  font-family: "Noto Serif SC", Georgia, serif;
  font-weight: 500;
  font-size: 42px;
  margin: 0;
}

.lounge-head > div > p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.lounge-status-badge {
  font-size: 12px;
  color: var(--green);
  padding: 7px 10px;
  border: 1px solid rgba(117, 143, 123, .24);
  border-radius: 999px;
  background: rgba(255, 255, 255, .45);
  white-space: nowrap;
}

.lounge-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 16px;
  align-items: stretch;
  height: min(680px, calc(100dvh - 220px));
  min-height: 560px;
}

.lounge-side,
.lounge-chat {
  border: 1px solid var(--line);
  background: rgba(251, 250, 246, .78);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
  min-height: 0;
}

.lounge-side {
  border-radius: 24px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  height: 100%;
  overflow-y: auto;
}

.lounge-side h2,
.lounge-chat-head h2 {
  font-family: "Noto Serif SC", Georgia, serif;
  font-weight: 500;
  margin: 0;
  font-size: 18px;
}

.lounge-intro {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.8;
  margin: 8px 0 0;
}

.lounge-booth-side {
  display: grid;
  gap: 8px;
  flex-shrink: 0;
}

.lounge-booth-now {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

.lounge-booth-bar {
  flex-shrink: 0;
  display: grid;
  gap: 8px;
  padding: 10px 18px 12px;
  border-bottom: 1px solid rgba(127, 167, 171, .18);
  background: rgba(255, 255, 255, .42);
}

.lounge-booth-bar-top {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: baseline;
}

.lounge-booth-bar .lounge-tiny {
  margin: 0;
}

.lounge-booth-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: flex-end;
}

.lounge-booth-code {
  display: grid;
  gap: 4px;
  flex: 1;
  min-width: 140px;
  font-size: 12px;
  color: var(--muted);
}

.lounge-booth-code input {
  width: 100%;
  box-sizing: border-box;
  padding: 8px 10px;
  border: 1px solid rgba(127, 167, 171, .28);
  border-radius: 10px;
  background: #fff;
  font: inherit;
  font-size: 14px;
}

.lounge-booth-row .lounge-mod-btn {
  flex-shrink: 0;
}

.lounge-packet-card {
  min-width: 176px;
  margin-top: 6px;
  padding: 12px 14px 14px;
  border-radius: 14px;
  background: linear-gradient(180deg, #9a3330 0%, #6e1f1c 100%);
  color: #f7e4c4;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12);
}

.lounge-packet-kicker {
  font-size: 10px;
  letter-spacing: .12em;
  opacity: .78;
  text-transform: uppercase;
}

.lounge-packet-blessing {
  margin-top: 6px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
}

.lounge-packet-meta {
  margin-top: 6px;
  font-size: 12px;
  opacity: .82;
}

.lounge-packet-result {
  margin-top: 10px;
  font-size: 13px;
  color: #fff4dc;
}

.lounge-packet-grab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 10px;
  min-width: 64px;
  min-height: 36px;
  padding: 6px 16px;
  border: 0;
  border-radius: 999px;
  background: #f7e4c4;
  color: #6e1f1c;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.lounge-packet-grab:hover:not(:disabled) {
  filter: brightness(1.05);
}

.lounge-packet-grab:disabled {
  opacity: .6;
  cursor: wait;
}

.lounge-row.mine .lounge-packet-card {
  background: linear-gradient(180deg, #b2453c 0%, #7a2420 100%);
}

.lounge-fold {
  margin: 0;
  border-radius: 10px;
  border: 1px solid rgba(127, 167, 171, .18);
  background: rgba(255, 255, 255, .35);
  overflow: hidden;
  flex-shrink: 0;
}

.lounge-fold-summary {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  max-height: 50px;
  padding: 10px 12px;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.lounge-fold-summary::-webkit-details-marker {
  display: none;
}

.lounge-fold-summary::before {
  content: "";
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid rgba(90, 110, 118, .55);
  flex-shrink: 0;
  transform: rotate(-90deg);
  transition: transform .15s ease;
}

.lounge-fold[open] > .lounge-fold-summary::before {
  transform: rotate(0deg);
}

.lounge-fold-summary:hover {
  background: rgba(255, 255, 255, .45);
}

.lounge-fold-label {
  flex-shrink: 0;
  font-size: 13px;
  color: var(--ink);
}

.lounge-fold-value,
.lounge-fold-meta {
  margin-left: auto;
  min-width: 0;
  max-width: 58%;
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: right;
}

.lounge-fold-body {
  padding: 0 12px 12px;
  border-top: 1px solid rgba(127, 167, 171, .12);
}

.lounge-identity-hint {
  margin: 10px 0 12px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
}

.lounge-identity-btn {
  width: 100%;
  padding: 10px 14px;
  border: 0;
  border-radius: 12px;
  background: var(--ink);
  color: #fff;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}

.lounge-identity-btn:hover {
  background: #2a3840;
}

.lounge-identity-link {
  display: inline-block;
  margin-top: 10px;
  font-size: 12px;
  color: var(--sea-deep);
}

.lounge-mod-side {
  border-color: rgba(120, 72, 72, .16);
  background: rgba(255, 248, 246, .55);
}

.lounge-mod-side .lounge-fold-meta {
  font-size: 12px;
}

.lounge-mod-note {
  margin: 10px 0 12px;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.7;
}

.lounge-mod-field {
  display: block;
  margin-bottom: 10px;
  font-size: 12px;
}

.lounge-mod-field span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
}

.lounge-mod-field input {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
}

.lounge-mod-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.lounge-mod-btn {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .7);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}

.lounge-mod-btn.warn {
  color: #8a3b32;
  border-color: rgba(138, 59, 50, .25);
}

.lounge-mod-btn:hover {
  background: #fff;
}

.lounge-pin-side {
  padding: 12px 14px;
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(255, 251, 235, .92), rgba(251, 248, 240, .82));
  border: 1px solid rgba(201, 181, 142, .34);
}

.lounge-pin-side b {
  display: block;
  color: #8a7348;
  font-size: 12px;
  margin-bottom: 6px;
}

.lounge-pin-body {
  font-size: 12px;
  line-height: 1.7;
  color: var(--ink);
}

.lounge-tiny {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.7;
  margin-top: auto;
}

.lounge-tiny code {
  font-size: 10px;
}

.lounge-chat {
  border-radius: 24px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  max-height: none;
}

.lounge-chat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .55);
  gap: 12px;
}

.lounge-chat-title {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.lounge-chat-head small {
  display: block;
  color: var(--muted);
  margin-top: 3px;
  font-size: 12px;
}

.lounge-live-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #c5d0d2;
  flex-shrink: 0;
  box-shadow: 0 0 0 4px rgba(197, 208, 210, .2);
}

.lounge-live-dot.is-live {
  background: #5cb87a;
  box-shadow: 0 0 0 4px rgba(92, 184, 122, .14);
}

.lounge-live-dot.is-error {
  background: #d4847f;
  box-shadow: 0 0 0 4px rgba(212, 132, 127, .2);
}

.lounge-mobile-name-btn {
  display: none;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(127, 167, 171, .35);
  background: #fff;
  color: var(--sea-deep);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  flex-shrink: 0;
}

.lounge-pin-mobile {
  display: none;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 251, 235, .95), rgba(251, 248, 240, .85));
}

.lounge-pin-mobile summary {
  padding: 10px 16px;
  font-size: 12px;
  font-weight: 600;
  color: #8a7348;
  cursor: pointer;
  list-style: none;
}

.lounge-pin-mobile summary::-webkit-details-marker {
  display: none;
}

.lounge-pin-mobile .lounge-pin-body {
  padding: 0 16px 12px;
}

.lounge-board-entry {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
}

.lounge-board-entry-head {
  display: none;
}

.lounge-board-entry-mobile {
  display: none;
  padding: 0 0 8px;
}

.lounge-board-entry-play {
  display: grid;
  gap: 8px;
}

.lounge-board-entry-hint {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}

.lounge-board-entry-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.lounge-board-panel {
  flex-shrink: 0;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(127, 167, 171, .16);
  background: rgba(255, 252, 245, .72);
}

.lounge-board-entry-btn {
  border: 1px solid rgba(127, 167, 171, .22);
  border-radius: 999px;
  padding: 5px 12px;
  background: rgba(255, 255, 255, .78);
  color: #496762;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
}

.lounge-board-entry-btn:hover {
  background: rgba(255, 255, 255, .95);
}

.lounge-board-entry-btn.accent {
  background: rgba(143, 118, 74, .1);
  border-color: rgba(143, 118, 74, .26);
  color: #6f5730;
}

.lounge-board-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.lounge-board-head h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: #6f5730;
}

.lounge-board-note {
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--muted);
}

.lounge-board-tabs {
  display: inline-flex;
  gap: 6px;
  flex-wrap: wrap;
}

.lounge-board-tab {
  border: 1px solid rgba(143, 118, 74, .28);
  background: rgba(255, 255, 255, .72);
  color: #7a6340;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  cursor: pointer;
}

.lounge-board-tab.is-active {
  background: #8f764a;
  border-color: #8f764a;
  color: #fff;
}

.lounge-board-feed {
  max-height: 220px;
  overflow-y: auto;
  margin: 10px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  -webkit-overflow-scrolling: touch;
}

.lounge-board-section {
  margin: 10px 0 2px;
  padding: 6px 2px 2px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  color: #8f764a;
  border-top: 1px solid rgba(143, 118, 74, .14);
}

.lounge-board-section:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.lounge-board-section + .lounge-board-item {
  margin-top: 0;
}

.lounge-board-empty {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  padding: 10px 4px;
}

.lounge-board-item {
  border-radius: 12px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, .82);
  border: 1px solid rgba(143, 118, 74, .16);
}

.lounge-board-item.wish {
  border-left: 3px solid #c9a35b;
}

.lounge-board-item.feedback {
  border-left: 3px solid #d17b63;
}

.lounge-board-item.mine {
  background: rgba(255, 252, 240, .95);
}

.lounge-board-item-head {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 6px;
  font-size: 12px;
}

.lounge-board-tag {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 1px 8px;
  font-size: 11px;
  font-weight: 600;
  background: rgba(143, 118, 74, .12);
  color: #7a6340;
}

.lounge-board-item.feedback .lounge-board-tag {
  background: rgba(209, 123, 99, .14);
  color: #a3533f;
}

.lounge-board-who {
  color: #5f4d31;
  font-weight: 500;
}

.lounge-board-time {
  margin-left: auto;
  color: var(--muted);
}

.lounge-board-text {
  font-size: 13px;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
}

.lounge-board-replies {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.lounge-board-reply {
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .55);
  border: 1px solid rgba(143, 118, 74, .14);
}

.lounge-board-reply.is-mod {
  border-color: rgba(109, 143, 148, .35);
  background: rgba(109, 143, 148, .08);
}

.lounge-board-reply-head {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 4px;
  font-size: 11px;
  color: #718084;
}

.lounge-board-mod {
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(109, 143, 148, .18);
  color: #3f5f63;
}

.lounge-board-reply-text {
  font-size: 13px;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
}

.lounge-board-reply-actions {
  margin-top: 8px;
}

.lounge-board-reply-btn {
  border: 1px solid rgba(143, 118, 74, .28);
  border-radius: 999px;
  padding: 4px 12px;
  background: transparent;
  color: #5c4a2e;
  font-size: 12px;
  cursor: pointer;
}

.lounge-board-reply-btn:hover {
  background: rgba(143, 118, 74, .08);
}

.lounge-board-reply-form {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

.lounge-board-reply-form.hidden {
  display: none !important;
}

.lounge-board-reply-form textarea {
  width: 100%;
  min-height: 56px;
  resize: vertical;
  border: 1px solid rgba(143, 118, 74, .24);
  border-radius: 12px;
  padding: 8px 10px;
  font: inherit;
  font-size: 13px;
  background: rgba(255, 255, 255, .92);
}

.lounge-board-reply-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.lounge-board-reply-cancel {
  border: none;
  background: transparent;
  color: #718084;
  font-size: 12px;
  cursor: pointer;
  padding: 8px 10px;
}

.lounge-board-composer {
  display: grid;
  grid-template-columns: minmax(0, auto) 1fr;
  grid-template-areas:
    "kind send"
    "body body";
  gap: 8px;
  align-items: center;
}

.lounge-board-kind {
  grid-area: kind;
}

.lounge-board-kind select {
  min-width: 92px;
  border: 1px solid rgba(143, 118, 74, .24);
  border-radius: 10px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, .9);
  font-size: 12px;
}

.lounge-board-composer textarea {
  grid-area: body;
  width: 100%;
  min-height: 72px;
  max-height: 140px;
  resize: vertical;
  border: 1px solid rgba(143, 118, 74, .24);
  border-radius: 12px;
  padding: 10px 12px;
  font: inherit;
  font-size: 13px;
  background: rgba(255, 255, 255, .92);
  box-sizing: border-box;
}

.lounge-board-send {
  grid-area: send;
  justify-self: end;
  border: none;
  border-radius: 12px;
  padding: 10px 16px;
  background: #8f764a;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.lounge-board-send:disabled {
  opacity: .6;
  cursor: not-allowed;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.lounge-board-mobile-entry {
  display: none;
}

.lounge-board-mobile-btn {
  display: none;
}

/* 许愿墙尺寸/结构写在 .lounge-sheet 之后，见下方 .lounge-sheet.lounge-board-sheet */

.lounge-board-sheet-compose {
  margin-top: 10px;
  flex-shrink: 0;
}

@media (min-width: 861px) {
  .lounge-board-entry-head {
    display: flex;
  }

  .lounge-board-entry-mobile {
    display: none;
  }

  .lounge-chat-head {
    gap: 12px;
  }
}

@media (max-width: 860px) {
  .lounge-board-entry-head {
    display: none;
  }

  /* 手机只留左下角「＋」里的许愿/反馈/墙/改昵称，去掉重复入口 */
  .lounge-board-entry-mobile {
    display: none !important;
  }

  .lounge-composer-name-link,
  #lounge-mobile-name-btn {
    display: none !important;
  }

  .lounge-composer-identity {
    padding-right: 4px;
  }
}

@media (max-width: 720px) {
}

.lounge-feed {
  flex: 1;
  min-height: 0;
  padding: 20px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .24), rgba(255, 255, 255, .06));
}

.lounge-row {
  display: flex;
  gap: 9px;
  align-items: flex-end;
  animation: lounge-in .28s ease;
}

.lounge-row.mine {
  justify-content: flex-end;
}

@keyframes lounge-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

.lounge-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #eef5f6, #dfecee);
  border: 1px solid rgba(127, 167, 171, .25);
  font-size: 13px;
  color: var(--sea-deep);
  font-weight: 600;
  flex-shrink: 0;
}

.lounge-bubble {
  max-width: min(72%, 560px);
  padding: 11px 13px;
  border-radius: 17px;
  border: 1px solid rgba(127, 167, 171, .18);
  background: #fff;
  box-shadow: 0 2px 8px rgba(45, 74, 78, .04);
}

.lounge-bubble.other {
  border-bottom-left-radius: 6px;
}

.lounge-bubble.mine {
  background: linear-gradient(145deg, #7fa7ab, #6a9599);
  color: #fff;
  border: none;
  border-bottom-right-radius: 6px;
}

.lounge-row.notice {
  justify-content: flex-start;
}

.lounge-avatar.notice {
  background: linear-gradient(145deg, #f4efe4, #e6dcc8);
  border-color: rgba(156, 132, 90, .35);
  color: #6b5a38;
}

.lounge-bubble.notice {
  background: #f7f1e6;
  border-color: rgba(156, 132, 90, .28);
  border-bottom-left-radius: 6px;
  color: #4a3f2c;
}

.lounge-meta {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 4px;
}

.lounge-bubble.mine .lounge-meta {
  color: rgba(255, 255, 255, .72);
  text-align: right;
}

.lounge-text {
  font-size: 15px;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
}

.lounge-time {
  font-size: 10px;
  opacity: .55;
  margin-top: 5px;
  text-align: right;
}

.lounge-empty {
  margin: 8px 0 0;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}

.lounge-composer-wrap {
  padding: 12px 14px calc(14px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, .72);
}

.lounge-composer-identity {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
  font-size: 12px;
  color: var(--muted);
}

.lounge-composer-name-link {
  border: 0;
  background: transparent;
  color: var(--sea-deep);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.lounge-composer {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 7px 8px 7px 14px;
  border: 1px solid rgba(127, 167, 171, .22);
  border-radius: 18px;
  background: #fff;
}

.lounge-composer textarea {
  flex: 1;
  border: 0;
  resize: none;
  outline: none;
  font: inherit;
  line-height: 1.5;
  padding: 7px 0;
  background: transparent;
  min-height: 40px;
  max-height: 120px;
  color: var(--ink);
}

.lounge-send {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: var(--ink);
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  flex-shrink: 0;
}

.lounge-send:hover:not(:disabled) {
  background: #2a3840;
}

.lounge-send:disabled {
  opacity: .55;
  cursor: wait;
}

.lounge-tool-plus {
  display: none;
}

.lounge-tool-backdrop,
.lounge-tool-sheet {
  display: none;
}

.lounge-hint {
  font-size: 11px;
  color: var(--muted);
  margin: 8px 3px 0;
}

.lounge-sheet {
  border: none;
  padding: 0;
  max-width: min(92vw, 420px);
  width: 100%;
  border-radius: 18px;
  background: transparent;
}

.lounge-sheet::backdrop {
  background: rgba(30, 45, 48, .35);
  backdrop-filter: blur(3px);
}

.lounge-sheet-inner {
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(127, 167, 171, .2);
  box-shadow: 0 20px 50px rgba(45, 74, 78, .18);
}

.lounge-sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(127, 167, 171, .12);
  flex-shrink: 0;
}

.lounge-sheet-head h2 {
  margin: 0;
  font-size: 16px;
}

.lounge-sheet-close {
  border: none;
  background: transparent;
  font: inherit;
  font-size: 13px;
  color: var(--sea-deep);
  cursor: pointer;
}

.lounge-sheet-body {
  padding: 14px 16px 18px;
  font-size: 14px;
  line-height: 1.7;
  max-height: 60vh;
  overflow-y: auto;
}

/* 许愿墙：头 / 列表 / 贴墙区三截；贴墙是 inner 底脚，不进 body，不被 60vh 裁、不漏圆角 */
.lounge-sheet.lounge-board-sheet {
  overflow: hidden;
  border-radius: 18px;
  background: transparent;
}

.lounge-sheet.lounge-board-sheet .lounge-sheet-inner {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 18px;
  min-height: 0;
}

.lounge-sheet.lounge-board-sheet .lounge-sheet-body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  max-height: none !important;
  overflow: hidden;
  padding-bottom: 8px;
}

.lounge-sheet.lounge-board-sheet .lounge-sheet-note,
.lounge-sheet.lounge-board-sheet .lounge-board-tabs {
  flex-shrink: 0;
}

.lounge-sheet.lounge-board-sheet .lounge-board-sheet-feed {
  overflow-anchor: none;
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;
  margin-bottom: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.lounge-sheet.lounge-board-sheet .lounge-board-sheet-compose {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas:
    "kind send"
    "body body";
  gap: 8px;
  align-items: center;
  margin: 0;
  padding: 12px 16px 16px;
  border-top: 1px solid rgba(143, 118, 74, .14);
  background: #fff;
  border-radius: 0 0 18px 18px;
  position: static;
  box-sizing: border-box;
  width: 100%;
}

.lounge-sheet.lounge-board-sheet .lounge-board-kind {
  grid-area: kind;
}

.lounge-sheet.lounge-board-sheet .lounge-board-sheet-compose textarea {
  grid-area: body;
  width: 100%;
  min-height: 72px;
  max-height: 140px;
  resize: vertical;
  box-sizing: border-box;
}

.lounge-sheet.lounge-board-sheet .lounge-board-send {
  grid-area: send;
  justify-self: end;
}

@media (min-width: 861px) {
  .lounge-sheet.lounge-board-sheet {
    max-width: min(96vw, 960px);
    width: min(96vw, 960px);
  }

  .lounge-sheet.lounge-board-sheet .lounge-sheet-inner {
    height: min(88vh, 820px);
    max-height: min(88vh, 820px);
  }

  .lounge-sheet.lounge-board-sheet .lounge-sheet-head h2 {
    font-size: 20px;
  }

  .lounge-sheet.lounge-board-sheet .lounge-sheet-body {
    padding: 18px 22px 8px;
  }

  .lounge-sheet.lounge-board-sheet .lounge-board-sheet-compose {
    padding: 14px 22px 20px;
  }
}

@media (max-width: 860px) {
  .lounge-sheet.lounge-board-sheet {
    position: fixed;
    inset: 0;
    max-width: none !important;
    width: 100% !important;
    height: 100% !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    border-radius: 0 !important;
    background: #f7f5ef;
  }

  .lounge-sheet.lounge-board-sheet::backdrop {
    background: #f7f5ef;
  }

  .lounge-sheet.lounge-board-sheet .lounge-sheet-inner {
    width: 100%;
    height: 100%;
    min-height: 100dvh;
    max-height: none;
    border-radius: 0 !important;
    border: none !important;
    box-shadow: none !important;
    background: #f7f5ef;
  }

  .lounge-sheet.lounge-board-sheet .lounge-sheet-head {
    padding: 12px 14px;
    padding-top: calc(12px + env(safe-area-inset-top, 0px));
    background: rgba(247, 245, 239, .96);
  }

  .lounge-sheet.lounge-board-sheet .lounge-sheet-head h2 {
    font-size: 17px;
  }

  .lounge-sheet.lounge-board-sheet .lounge-sheet-close {
    font-size: 14px;
    color: #496762;
    font-weight: 600;
  }

  .lounge-sheet.lounge-board-sheet .lounge-sheet-body {
    padding: 12px 14px 8px;
  }

  .lounge-sheet.lounge-board-sheet .lounge-board-sheet-compose {
    padding: 12px 14px calc(14px + env(safe-area-inset-bottom, 0px));
    border-radius: 0;
    background: #f7f5ef;
  }
}

.lounge-sheet-note {
  margin: 0 0 12px;
  font-size: 13px;
  color: var(--muted);
}

.lounge-sheet-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
}

.lounge-sheet-field input {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(81, 119, 125, .22);
  font: inherit;
}

.lounge-sheet-actions {
  display: flex;
  gap: 8px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.lounge-key-status {
  margin: 12px 0 0;
  font-size: 12px;
  color: #3d7a55;
}

.lounge-toast {
  position: fixed;
  left: 50%;
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  max-width: min(90vw, 360px);
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 13px;
  color: #fff;
  background: rgba(45, 74, 78, .92);
  box-shadow: 0 8px 24px rgba(0,0,0,.18);
  z-index: 100;
  text-align: center;
}

@media (max-width: 860px) {
  .lounge-page {
    min-height: 100dvh;
    height: 100dvh;
    max-height: 100dvh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }

  .lounge-page-main {
    width: 100%;
    padding: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
  }

  .lounge-head {
    display: none;
  }

  .lounge-status-badge {
    display: none;
  }

  .lounge-layout {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 1fr);
    flex: 1;
    height: auto;
    min-height: 0;
    max-height: none;
    overflow: hidden;
  }

  .lounge-side {
    display: none;
  }

  .lounge-chat-head {
    padding: 10px 14px 9px;
    background: rgba(251, 250, 246, .86);
  }

  .lounge-chat-kicker {
    display: block;
    margin-bottom: 2px;
    color: var(--sea-deep);
    font-size: 9px;
    letter-spacing: .14em;
  }

  .lounge-chat-head h2 {
    font-size: 17px;
    line-height: 1.2;
  }

  .lounge-chat-head small {
    margin-top: 2px;
    font-size: 10px;
  }

  .lounge-chat {
    min-height: 0;
    height: 100%;
    max-height: none;
    overflow: hidden;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: rgba(251, 250, 246, .78);
    display: flex;
    flex-direction: column;
  }

  .lounge-feed {
    flex: 1;
    min-height: 0;
    padding: 14px 16px;
  }

  .lounge-bubble {
    max-width: 82%;
  }

  .lounge-mobile-name-btn {
    display: none;
  }

  .lounge-pin-mobile {
    display: block;
    flex-shrink: 0;
  }

  .lounge-booth-bar {
    display: none;
  }

  .lounge-composer-identity {
    display: flex;
  }

  .lounge-composer-wrap {
    flex-shrink: 0;
    padding: 9px 12px calc(10px + env(safe-area-inset-bottom, 0px));
    background: linear-gradient(180deg, rgba(255,255,255,.4), rgba(255,255,255,.82));
  }

  .lounge-page .mobile-island {
    display: none !important;
  }

  .lounge-composer {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    align-items: end;
    gap: 8px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
  }

  .lounge-composer textarea {
    min-width: 0;
    min-height: 44px;
    padding: 10px 13px;
    border: 1px solid rgba(127, 167, 171, .22);
    border-radius: 17px;
    background: rgba(255, 255, 255, .78);
  }

  .lounge-tool-plus,
  .lounge-send {
    width: 44px;
    height: 44px;
    border-radius: 15px;
  }

  .lounge-tool-plus {
    display: grid;
    place-items: center;
    border: 1px solid rgba(127, 167, 171, .22);
    background: rgba(255, 255, 255, .78);
    color: #496762;
    font: 300 25px/1 Arial, sans-serif;
    cursor: pointer;
  }

  .lounge-hint {
    display: none;
  }

  .lounge-tool-backdrop {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: block;
    background: rgba(30, 45, 48, .24);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
  }

  .lounge-tool-backdrop[hidden] {
    display: none;
  }

  .lounge-tool-sheet {
    position: fixed;
    left: 50%;
    top: 50%;
    right: auto;
    bottom: auto;
    width: min(420px, calc(100% - 32px));
    z-index: 90;
    display: block;
    padding: 14px 12px 16px;
    border: 1px solid rgba(35, 48, 56, .1);
    border-radius: 26px;
    background: #f8f6ef;
    box-shadow: 0 28px 80px rgba(24, 38, 40, .24);
    transform: translate(-50%, -46%) scale(.96);
    opacity: 0;
    pointer-events: none;
    transition: transform .2s ease, opacity .2s ease;
  }

  .lounge-tool-sheet.is-open {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    pointer-events: auto;
  }

  .lounge-tool-handle {
    width: 34px;
    height: 4px;
    margin: 2px auto 12px;
    border-radius: 999px;
    background: #d4d2cb;
  }

  .lounge-tool-sheet-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 7px 10px;
  }

  .lounge-tool-sheet-head strong {
    font-family: "Noto Serif SC", Georgia, serif;
    font-size: 15px;
    font-weight: 600;
  }

  .lounge-tool-sheet-head button {
    border: 0;
    background: transparent;
    color: #8d9693;
    font: inherit;
    font-size: 12px;
  }

  .lounge-tool-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 9px;
  }

  .lounge-tool-item {
    min-height: 58px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 8px 6px;
    border: 1px solid rgba(36, 51, 54, .09);
    border-radius: 18px;
    background: rgba(255, 255, 255, .72);
    color: #435754;
    text-align: left;
    font: inherit;
    cursor: pointer;
    box-sizing: border-box;
  }

  .lounge-tool-item > span,
  .lounge-admin-entry > span:first-child {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 11px;
    background: #edf1ed;
    font-size: 14px;
  }

  .lounge-tool-item b {
    font-size: 12px;
    font-weight: 500;
  }

  .lounge-admin-entry {
    width: 100%;
    min-height: 58px;
    margin-top: 9px;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(36, 51, 54, .09);
    border-radius: 18px;
    background: rgba(232, 238, 234, .72);
    color: #435754;
    text-align: left;
  }

  .lounge-admin-entry.hidden {
    display: none;
  }

  .lounge-admin-copy {
    min-width: 0;
    flex: 1;
  }

  .lounge-admin-copy b,
  .lounge-admin-copy small {
    display: block;
  }

  .lounge-admin-copy b {
    font-size: 12px;
    font-weight: 500;
  }

  .lounge-admin-copy small {
    margin-top: 2px;
    color: #8b9591;
    font-size: 9px;
  }

  .lounge-admin-entry i {
    color: #78908b;
    font-size: 15px;
    font-style: normal;
  }

  .lounge-tool-subpanel {
    margin-top: 9px;
    padding: 12px;
    border: 1px solid rgba(36, 51, 54, .08);
    border-radius: 18px;
    background: #f2f0e9;
  }

  .lounge-tool-subpanel.hidden {
    display: none;
  }

  .lounge-tool-subpanel label {
    margin: 0 0 7px;
    font-size: 10px;
    color: #7f8986;
  }

  .lounge-tool-booth-row,
  .lounge-tool-admin-fields {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
  }

  .lounge-tool-subpanel input {
    min-width: 0;
    width: 100%;
    margin: 0;
    padding: 10px 11px;
    border: 1px solid rgba(36, 51, 54, .1);
    border-radius: 14px;
    background: #fff;
  }

  #lounge-tool-mod-minutes {
    width: 92px;
  }

  .lounge-tool-booth-row button {
    border: 0;
    border-radius: 14px;
    background: var(--ink);
    color: #fff;
    padding: 0 14px;
    font: inherit;
    font-size: 12px;
  }

  .lounge-tool-subpanel > small {
    display: block;
    margin-top: 8px;
    color: #9aa19f;
    font-size: 10px;
  }

  .lounge-tool-admin-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
    margin-top: 8px;
  }

  .lounge-tool-admin-actions button {
    min-height: 44px;
    border: 1px solid rgba(36, 51, 54, .09);
    border-radius: 14px;
    background: rgba(255, 255, 255, .8);
    color: var(--ink);
    font: inherit;
    font-size: 12px;
  }
}

@media (max-width: 900px) {
  .steward-hero-grid,
  .steward-bento {
    grid-template-columns: 1fr;
  }
  .steward-panel-meters,
  .steward-panel-ops,
  .steward-panel-plots,
  .steward-panel-tote,
  .steward-panel-gifts {
    grid-column: span 1;
  }
  .steward-hero-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .steward-gift {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .memory-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .memory-reader-layout {
    grid-template-columns: 190px minmax(0, 1fr);
  }
}

.board-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 8px;
  row-gap: 14px;
  margin: 8px 0 24px;
}

.board-hint {
  margin: 0 0 14px;
  font-size: 13px;
  line-height: 1.6;
}

.board-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.board-row {
  display: grid;
  grid-template-columns: 2.2em 1fr auto;
  grid-template-areas:
    "rank who score"
    "rank sub score";
  column-gap: 10px;
  align-items: baseline;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}

.board-row:last-child { border-bottom: 0; }

.board-rank {
  grid-area: rank;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.board-who { grid-area: who; min-width: 0; }

.board-who b {
  font-family: "Noto Serif SC", Georgia, serif;
  font-weight: 500;
}

.board-who small {
  display: inline-block;
  margin-left: 8px;
  color: var(--muted);
  font-size: 12px;
}

.board-score {
  grid-area: score;
  text-align: right;
  color: var(--sea-deep);
  white-space: nowrap;
}

.board-sub {
  grid-area: sub;
  color: var(--muted);
  font-size: 12px;
}

.board-row.is-top .board-rank,
.board-row.is-top .board-score {
  color: #9a7f4f;
}

.board-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 8px;
  row-gap: 14px;
  align-items: stretch;
  margin: 8px 0 24px;
}

.board-primary,
.board-secondary {
  display: flex;
  min-width: 0;
  min-height: 0;
}

.board-primary .panel,
.board-secondary .panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 24px;
}

.board-primary .panel-head,
.board-secondary .panel-head {
  align-items: flex-start;
}

.board-primary .panel-head h2,
.board-secondary .panel-head h2 {
  margin: 0;
}

.board-primary .board-hint,
.board-secondary .board-hint {
  margin: 6px 0 0;
}

.board-primary .board-list,
.board-secondary .board-list {
  flex: 1;
}

.board-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

.board-summary .panel,
.board-summary .board-jump {
  padding: 16px 18px;
}

.board-summary strong {
  display: block;
  font-family: "Noto Serif SC", Georgia, serif;
  font-size: 24px;
  font-weight: 500;
  margin-bottom: 4px;
  color: var(--sea-deep);
}

.board-summary span {
  color: var(--muted);
  font-size: 12px;
}

.board-jump {
  appearance: none;
  width: 100%;
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: pointer;
}

.board-jump:hover {
  background: rgba(255, 255, 255, .55);
}

.board-note {
  grid-column: 1 / -1;
  margin-top: 0;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, .34);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.bar-duo-panel {
  grid-column: 1 / -1;
}

.bar-duo-lead {
  margin: 0 0 14px;
  font-size: 13px;
  line-height: 1.7;
}

.duo-status {
  margin-bottom: 14px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(127, 167, 171, .08);
  font-size: 13px;
  line-height: 1.7;
}

.duo-status.active {
  background: rgba(117, 143, 123, .12);
  border-color: rgba(117, 143, 123, .28);
}

#duo-form label {
  margin-bottom: 14px;
}

.bar-menu {
  grid-column: 1 / -1;
}

.host-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
}

.host-card {
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(255, 255, 255, .35);
}

.host-card h3 {
  margin: 0 0 6px;
  color: var(--sea-deep);
}

.menu-row {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.menu-row:last-child {
  border-bottom: 0;
}

.menu-row .price {
  float: right;
  color: #9a7f4f;
}

.bar-note {
  font-size: 12px;
  line-height: 1.7;
}

.patron-bind {
  margin: 0 0 12px;
}
.patron-who {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink);
}
.patron-bind.is-unbound .patron-who {
  color: var(--muted);
}
.patron-who a {
  color: var(--sea-deep);
}

.error { color: #9e6666; }

.soft-hero {
  margin-bottom: 28px;
  padding: 24px 0 8px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: end;
}

.soft-hero .note {
  max-width: 360px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, .38);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

code {
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: .92em;
}

/* ── Home page ── */

.home-page main {
  padding: 76px 0 90px;
}

.home-page .nav-inner {
  min-height: 72px;
  gap: 16px;
}

.home-page .brand {
  letter-spacing: .02em;
}

.home-page .mark {
  box-shadow: inset 0 0 0 4px rgba(127, 167, 171, .08);
}

.home-page .nav-tab {
  transition: .2s ease;
}

.home-page .hero {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 58px;
  align-items: center;
  min-height: 560px;
}

.home-page .hero .eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  font-size: 13px;
  letter-spacing: .16em;
}

.home-page .hero .eyebrow::before {
  content: "";
  width: 38px;
  height: 1px;
  background: var(--sea);
}

.home-page h1 {
  max-width: 720px;
  font-size: clamp(48px, 7vw, 82px);
  line-height: 1.06;
  letter-spacing: -.035em;
}

.home-page h1 span {
  display: block;
  color: var(--sea-deep);
  font-style: italic;
  font-weight: 400;
}

.home-page .tagline {
  max-width: 640px;
  margin: 28px 0 0;
  font-size: 17px;
  line-height: 1.9;
}

.home-page .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.home-page .btn {
  gap: 8px;
  font-size: 14px;
  transition: .2s ease;
}

.home-page .btn:hover {
  transform: translateY(-1px);
  border-color: rgba(81, 119, 125, .34);
}

.home-page .btn.primary {
  box-shadow: 0 10px 26px rgba(35, 48, 56, .14);
}

.scene {
  position: relative;
  aspect-ratio: 4 / 5;
  min-height: 500px;
}

.poster {
  position: absolute;
  inset: 16px 0 0 28px;
  overflow: hidden;
  border-radius: 34px 34px 110px 34px;
  border: 1px solid rgba(35, 48, 56, .10);
  background:
    linear-gradient(to bottom, rgba(244, 241, 234, .15), transparent 38%),
    linear-gradient(165deg, #a9c0bf 0%, #729197 42%, #596f74 100%);
  box-shadow: var(--shadow);
}

.poster::before {
  content: "";
  position: absolute;
  inset: auto -12% -12% -18%;
  height: 49%;
  border-radius: 50% 50% 0 0;
  background:
    radial-gradient(circle at 68% 30%, rgba(251, 250, 246, .86) 0 4%, transparent 5%),
    linear-gradient(170deg, rgba(236, 235, 221, .96), rgba(196, 185, 150, .96));
  transform: rotate(-5deg);
}

.poster::after {
  content: "";
  position: absolute;
  left: -10%;
  right: -8%;
  bottom: 31%;
  height: 13%;
  border-top: 1px solid rgba(251, 250, 246, .5);
  border-radius: 50%;
  box-shadow:
    0 -12px 0 -11px rgba(251, 250, 246, .55),
    0 -23px 0 -22px rgba(251, 250, 246, .38);
  transform: rotate(3deg);
}

.moon {
  position: absolute;
  top: 11%;
  right: 12%;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: #ebe6d8;
  box-shadow: 0 0 0 16px rgba(235, 230, 216, .08);
}

.sun-dot {
  position: absolute;
  right: 26%;
  bottom: 22%;
  width: 31px;
  height: 31px;
  border-radius: 50%;
  background: #f9f7ee;
  box-shadow: 0 0 12px rgba(255, 255, 255, .55);
}

.poster-label {
  position: absolute;
  left: 28px;
  top: 28px;
  color: rgba(251, 250, 246, .9);
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.float-card {
  position: absolute;
  left: 0;
  bottom: 42px;
  width: min(360px, 88%);
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: 22px;
  background: rgba(251, 250, 246, .82);
  backdrop-filter: blur(16px);
  box-shadow: 0 18px 45px rgba(35, 48, 56, .12);
}

.float-card small {
  display: block;
  color: var(--muted);
  margin-bottom: 7px;
}

.float-card strong {
  font-family: "Noto Serif SC", Georgia, "Songti SC", serif;
  font-size: 21px;
  font-weight: 500;
}

.live-names {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.live-name {
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .5);
  text-decoration: none;
  font-size: 12px;
  color: var(--sea-deep);
}

.live-name:hover { background: rgba(255, 255, 255, .85); }

.home-board {
  margin-top: 14px;
}

.home-board-kicker {
  margin: 0 0 6px;
  font-size: 11px;
  letter-spacing: .12em;
  color: var(--muted);
}

.home-board-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 0;
  text-decoration: none;
  font-size: 13px;
  border-bottom: 1px solid var(--line);
}

.home-board-row:hover { color: var(--sea-deep); }

.home-board-more {
  display: inline-block;
  margin-top: 8px;
  font-size: 12px;
  color: var(--sea-deep);
}

.status {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  color: var(--sea-deep);
  font-size: 13px;
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #749b81;
  box-shadow: 0 0 0 5px rgba(116, 155, 129, .11);
}

.connect {
  margin-top: 84px;
  padding-top: 34px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: .7fr 1.3fr;
  gap: 50px;
}

.section-kicker {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.connect h2 {
  margin: 10px 0 0;
  font-size: 34px;
}

.connect-copy {
  color: var(--muted);
  line-height: 1.8;
  font-size: 14px;
  margin-top: 16px;
}

.terminal {
  position: relative;
  padding: 24px 26px 22px;
  border: 1px solid rgba(35, 48, 56, .12);
  border-radius: 20px;
  background: #202b30;
  color: #dbe6e4;
  box-shadow: 0 20px 55px rgba(35, 48, 56, .13);
  overflow: auto;
}

.terminal::before {
  content: "MCP";
  position: absolute;
  right: 20px;
  top: 16px;
  color: #81979b;
  font-size: 10px;
  letter-spacing: .18em;
}

.terminal code {
  display: block;
  white-space: pre-wrap;
  word-break: break-word;
  font: 13px/1.9 "SFMono-Regular", Consolas, monospace;
}

.terminal .dim { color: #8fa4a7; }
.terminal .accent { color: #d8c79e; }

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 14px;
}

.step {
  padding: 15px 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .32);
}

.step b {
  display: block;
  margin-bottom: 5px;
  font-size: 13px;
}

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

.site-footer {
  padding: 24px 0 38px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

@media (max-width: 860px) {
  .board-layout { grid-template-columns: 1fr; }

  .home-page .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    gap: 38px;
  }

  .scene {
    min-height: 420px;
    max-width: 540px;
  }

  .connect {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .board-summary { grid-template-columns: 1fr; }
}

@media (max-width: 980px) {
  .nav-inner--top {
    min-height: auto;
    padding: 11px 0;
    gap: 10px;
  }

  .nav-inner--top .brand {
    margin-right: 0;
    font-size: 14px;
  }

  .nav-inner--top .mark {
    width: 32px;
    height: 32px;
  }

  .nav-link,
  .nav-pill {
    display: none;
  }

  .nav-island {
    margin-left: auto;
    padding: 9px 13px;
    font-size: 12px;
  }

  .mobile-island {
    position: fixed;
    right: 18px;
    bottom: calc(18px + env(safe-area-inset-bottom, 0px));
    z-index: 35;
    width: 58px;
    height: 58px;
    border: 0;
    border-radius: 50%;
    background: #1f2f34;
    color: #f7f3e8;
    display: grid;
    place-items: center;
    box-shadow: 0 10px 28px rgba(31, 47, 52, .25);
    cursor: pointer;
    font-size: 13px;
  }

  body.ut-page .island-drawer {
    background: linear-gradient(180deg, #0c0d0e 0%, #08090a 100%);
    color: #ded8cc;
    box-shadow: -20px 0 60px rgba(0, 0, 0, .5);
  }

  body.ut-page .island-drawer-head {
    border-bottom-color: #2a2824;
  }

  body.ut-page .island-drawer-head strong { color: #ded8cc; }
  body.ut-page .island-drawer-close { color: #817b72; }
  body.ut-page .island-drawer-group h4 { color: #9b8f80; border-bottom-color: #2a2824; }
  body.ut-page .island-drawer-link { border-bottom-color: #2a2824; color: #ded8cc; }
  body.ut-page .island-drawer-link small { color: #817b72; }
  body.ut-page .island-drawer-link span { color: #c4a469; }
  body.ut-page .island-drawer-link:hover strong { color: #c4a469; }
  body.ut-page .island-backdrop:not([hidden]) { background: rgba(0, 0, 0, .62); }
  body.ut-page .mobile-island,
  body.ut-page .nav-island {
    background: #111214;
    color: #c4a469;
    border-color: #3a3329;
  }
}
@media (max-width: 760px) {
  main { padding-top: 32px; padding-bottom: 48px; }

  .lounge-page main,
  .lounge-page-main {
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }

  .bar-grid { grid-template-columns: 1fr; }
  .steward-head { grid-template-columns: 1fr; }
  .steward-panel-memories { padding: 20px 16px; }
  .memory-grid { grid-template-columns: 1fr; }
  .memory-card { min-height: 250px; }
  .memory-modal { padding: 0; }
  .memory-reader {
    width: 100%;
    height: 100vh;
    border: 0;
    border-radius: 0;
  }
  .memory-reader-head { padding: 18px 18px 13px; }
  .memory-reader-head h2 { font-size: 23px; }
  .memory-reader-notice { padding: 8px 18px; }
  .memory-reader-layout {
    display: flex;
    flex-direction: column;
  }
  .memory-reader-toc {
    display: flex;
    flex: none;
    gap: 5px;
    padding: 9px 12px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    overflow-x: auto;
    overflow-y: hidden;
  }
  .memory-toc-item {
    display: block;
    width: auto;
    max-width: 170px;
    flex: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .memory-toc-item span { margin-right: 6px; }
  .memory-reader-page { padding: 28px 22px 42px; }
  .memory-prose { font-size: 15px; line-height: 1.9; }
  .memory-reader-foot {
    display: grid;
    grid-template-columns: 1fr auto auto;
    padding: 10px 12px max(10px, env(safe-area-inset-bottom));
  }
  #memory-reader-progress {
    grid-column: 1 / -1;
    grid-row: 1;
    width: auto;
  }
  #memory-reader-prev {
    grid-column: 1;
    grid-row: 2;
    justify-self: start;
  }
  #memory-reader-mode { grid-column: 2; grid-row: 2; }
  #memory-reader-next { grid-column: 3; grid-row: 2; }

  .board-grid { grid-template-columns: 1fr; }
  .board-strip { grid-template-columns: 1fr; gap: 8px; }

  .bar-menu { grid-column: auto; }

  .soft-hero { grid-template-columns: 1fr; }

  .page-head {
    display: block;
    margin-bottom: 18px;
  }

  .statbar {
    max-width: none;
    justify-content: flex-start;
    margin-top: 14px;
  }

  .stat-chip.stat-chip--static,
  .statbar .stat-chip {
    min-width: 48px;
    min-height: 40px;
    padding: 5px 10px;
  }

  .stat-chip-value {
    font-size: 12px;
  }

  h1 { font-size: 44px; }

  .tagline {
    font-size: 14px;
    line-height: 1.8;
  }

  .stats-shell {
    padding: 12px;
    border-radius: 10px;
  }

  .stats-primary {
    grid-template-columns: repeat(2, 1fr);
    gap: 7px;
  }

  .stat-main {
    padding: 11px 12px;
  }

  .stat-main strong {
    font-size: 17px;
  }

  .soft-note {
    margin-bottom: 16px;
    padding: 13px 14px;
  }

  .grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

}

.promo-poster p { line-height: 1.8; max-width: 42em; }
.promo-cta-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.goto {
  padding: 24px 0 32px;
  border-top: 1px solid rgba(38, 52, 58, .08);
  margin-top: 12px;
}
.goto-head {
  display: flex;
  align-items: end;
  gap: 18px;
  margin-bottom: 22px;
}
.goto-head h2 {
  font-family: "Noto Serif SC", serif;
  font-size: 34px;
  font-weight: 500;
  margin: 2px 0 0;
}
.goto-sub {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 13px;
  max-width: 220px;
}
.goto-grow { flex: 1; }
.all-btn {
  background: transparent;
  border: 0;
  color: #64858c;
  font-size: 13px;
  cursor: pointer;
  padding: 8px 0;
}
.routes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.route {
  min-height: 245px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(249, 247, 240, .76);
  padding: 22px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(38, 52, 58, .04);
}
.route::before {
  content: "";
  position: absolute;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  right: -68px;
  top: -78px;
  background: rgba(123, 161, 166, .08);
}
.route-kicker {
  font-size: 10px;
  letter-spacing: .18em;
  color: #7a989d;
  text-transform: uppercase;
}
.route h3 {
  font-family: "Noto Serif SC", serif;
  font-weight: 500;
  font-size: 24px;
  margin: 8px 0 16px;
}
.place-link {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 13px 0;
  border-top: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  position: relative;
  z-index: 1;
}
.place-link:first-of-type { border-top: 0; }
.place-link strong { display: block; font-size: 14px; margin-bottom: 4px; }
.place-link small { display: block; color: #899596; font-size: 11px; }
.arrow {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  font-size: 14px;
  color: #67858a;
  transition: .2s ease;
}
.place-link:hover .arrow {
  transform: translateX(3px);
  background: #1f2f34;
  color: #fff;
  border-color: #1f2f34;
}
.quick {
  margin-top: 16px;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 14px;
}
.quick-main {
  border-radius: 24px;
  background: #1f2f34;
  color: #f4f0e5;
  padding: 24px 26px;
  display: grid;
  grid-template-columns: 1.4fr .6fr;
  align-items: center;
  min-height: 138px;
  text-decoration: none;
}
.quick-main .eyebrow {
  color: #abc1c3;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.quick-main .eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: #71949a;
}
.quick-main h3 {
  font-family: "Noto Serif SC", serif;
  font-size: 25px;
  font-weight: 500;
  margin: 0 0 8px;
}
.quick-main p {
  margin: 0;
  color: #9fb0b1;
  font-size: 12px;
  line-height: 1.7;
}
.quick-main .go {
  justify-self: end;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #f0ead7;
  color: #26343a;
  display: grid;
  place-items: center;
  font-size: 20px;
}
.secret {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #ebe8dd;
  padding: 24px 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-decoration: none;
  color: inherit;
  min-height: 138px;
}
.secret small { color: #8d9591; font-size: 11px; }
.secret strong {
  font-family: "Noto Serif SC", serif;
  font-size: 20px;
  font-weight: 500;
  margin: 10px 0;
}

@media (max-width: 860px) {
  .routes { grid-template-columns: 1fr; }
  .quick { grid-template-columns: 1fr; }
  .quick-main { grid-template-columns: 1fr auto; }
  .goto-head { align-items: flex-start; flex-wrap: wrap; }
}

@media (max-width: 620px) {
  .all-btn { display: none; }
}

@media (max-width: 560px) {
  .shell,
  main,
  .home-page .shell {
    width: min(100% - 24px, 1180px);
  }

  .home-page main { padding-top: 48px; }

  .home-page h1 { font-size: 46px; }

  .home-page .tagline { font-size: 15px; }

  .scene { min-height: 370px; }

  .poster { inset: 8px 0 0 10px; }

  .connect { margin-top: 58px; }

  .steps { grid-template-columns: 1fr; }
}

/* 婚期当天：全站换成婚礼页 */
body:has(.wedding-ribbon) {
  --bg: #f7efe6;
  --paper: #fbf6ef;
  --sea: #c4a07a;
  --sea-deep: #8f6748;
  --sand: #e0c49a;
  --rose: #b57a6f;
  --line: rgba(143, 103, 72, .16);
  background:
    radial-gradient(circle at 12% 0%, rgba(224, 176, 132, .28), transparent 32%),
    radial-gradient(circle at 88% 8%, rgba(181, 122, 111, .16), transparent 30%),
    var(--bg);
}

.site-nav.is-wedding-day {
  background: rgba(247, 236, 223, .90);
  border-bottom-color: rgba(176, 122, 90, .18);
}

.site-nav.is-wedding-day .mark {
  color: #b57a6f;
}

.wedding-ribbon {
  border-top: 1px solid rgba(176, 122, 90, .14);
  background:
    linear-gradient(90deg, rgba(224, 176, 132, .22), rgba(247, 236, 223, .55) 40%, rgba(181, 122, 111, .16));
}

.wedding-fold-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin: 0;
  padding: 10px 18px;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.wedding-fold-tri {
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 8px solid rgba(143, 103, 72, .78);
  flex-shrink: 0;
  transform: rotate(-90deg);
  transition: transform .15s ease;
}

[data-wedding-fold].is-open > .wedding-fold-toggle .wedding-fold-tri,
[data-wedding-fold].is-open > .wedding-live-toggle .wedding-fold-tri {
  transform: rotate(0deg);
}

.wedding-fold-toggle b {
  font-family: "Noto Serif SC", serif;
  font-size: 14px;
  font-weight: 500;
  color: #8f6748;
  letter-spacing: .04em;
}

.wedding-fold-peek {
  margin-left: auto;
  font-style: normal;
  font-size: 11px;
  color: #b57a6f;
  letter-spacing: .04em;
}

.wedding-fold-label {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.wedding-fold-label b {
  font-family: "Noto Serif SC", serif;
  font-size: 14px;
  font-weight: 500;
  color: #8f6748;
}

.wedding-fold-label small {
  font-size: 11px;
  color: #6d5343;
}

.wedding-ribbon-link {
  display: flex;
  align-items: baseline;
  gap: 12px 18px;
  flex-wrap: wrap;
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
  padding: 10px 0 12px;
  text-decoration: none;
}

.wedding-ribbon-link b {
  font-family: "Noto Serif SC", serif;
  font-size: 15px;
  font-weight: 500;
  color: #8f6748;
  letter-spacing: .04em;
}

.wedding-ribbon-link span {
  flex: 1 1 220px;
  color: #6d5343;
  font-size: 13px;
  line-height: 1.5;
}

.wedding-ribbon-link em {
  font-style: normal;
  font-size: 12px;
  color: #b57a6f;
  letter-spacing: .06em;
}

.wedding-live {
  border-radius: 22px;
  padding: 20px 24px 18px;
  margin: 16px 0 20px;
  background: linear-gradient(135deg, #f7efe6, #f3e2d2);
  border: 1px solid rgba(176, 122, 90, .18);
  box-shadow: 0 12px 36px rgba(143, 103, 72, .08);
}

.wedding-live h2 {
  font-family: "Noto Serif SC", serif;
  font-weight: 500;
  margin: 6px 0 8px;
  color: #8f6748;
}

.wedding-live p {
  color: #6d5343;
}

.lounge-page-main > .wedding-live {
  margin: 0 0 18px;
}

.island-drawer-wedding {
  display: block;
  margin: 0 22px 14px;
  padding: 12px 14px;
  border-radius: 16px;
  text-decoration: none;
  color: inherit;
  background: linear-gradient(135deg, #f7efe6, #f3e2d2);
  border: 1px solid rgba(176, 122, 90, .18);
}

.island-drawer-wedding strong {
  display: block;
  font-family: "Noto Serif SC", serif;
  font-size: 16px;
  font-weight: 500;
  color: #8f6748;
}

.island-drawer-wedding small {
  display: block;
  margin-top: 4px;
  color: #6d5343;
  font-size: 12px;
  line-height: 1.45;
}

@media (max-width: 560px) {
  .wedding-ribbon-link {
    width: min(100% - 24px, 1120px);
    padding: 9px 0 11px;
  }
}

/* 手机：婚礼提示默认收成小三角，点开再看全文 */
@media (max-width: 860px) {
  .wedding-fold-toggle {
    display: flex;
    min-height: 40px;
    padding: 8px 14px;
  }

  .wedding-ribbon .wedding-ribbon-body[hidden],
  .wedding-live .wedding-live-body[hidden] {
    display: none !important;
  }

  .wedding-ribbon:not(.is-open) .wedding-ribbon-body,
  .wedding-live:not(.is-open) .wedding-live-body {
    display: none !important;
  }

  .wedding-ribbon.is-open .wedding-ribbon-body,
  .wedding-live.is-open .wedding-live-body {
    display: block;
  }

  .wedding-ribbon .wedding-fold-peek {
    display: inline;
  }

  .wedding-ribbon.is-open .wedding-fold-peek {
    opacity: .55;
  }

  .wedding-ribbon.is-open .wedding-ribbon-link {
    width: min(100% - 24px, 1120px);
    padding: 0 0 12px;
  }

  .wedding-ribbon.is-open .wedding-ribbon-link b {
    display: none;
  }

  .wedding-live {
    padding: 0;
    margin: 10px 0 12px;
    overflow: hidden;
  }

  .wedding-live-toggle {
    padding: 10px 14px;
  }

  .wedding-live-body {
    padding: 0 16px 14px;
  }

  .wedding-live-body .eyebrow {
    margin-top: 2px;
  }

  /* 聊天室手机端高度紧，顶栏小三角够用，不再叠一张婚礼卡 */
  .lounge-page-main > .wedding-live {
    display: none !important;
  }
}

@media (min-width: 861px) {
  .wedding-fold-toggle {
    display: none !important;
  }

  .wedding-ribbon-body,
  .wedding-live-body {
    display: block !important;
  }

  .wedding-ribbon-body[hidden],
  .wedding-live-body[hidden] {
    display: block !important;
  }
}


/* 表情包 */
.lounge-sticker-btn {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: rgba(73, 103, 98, .1);
  color: #3d5c56;
  font-size: 20px;
  cursor: pointer;
  flex-shrink: 0;
}
.lounge-sticker-btn:hover,
.lounge-sticker-btn[aria-expanded="true"] {
  background: rgba(73, 103, 98, .22);
}
.lounge-sticker-file-hit {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  opacity: 0.01;
  font-size: 80px;
  cursor: pointer;
  z-index: 3;
}
label.lounge-sticker-add,
label.lounge-sticker-cell.is-add,
label.lounge-sticker-pick,
label.lounge-tool-item.lounge-sticker-pick,
label.js-lounge-sticker-add {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  box-sizing: border-box;
}
label.lounge-sticker-add {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
label.lounge-sticker-add > *:not(.lounge-sticker-file-hit),
label.lounge-sticker-cell.is-add > *:not(.lounge-sticker-file-hit),
label.lounge-sticker-pick > *:not(.lounge-sticker-file-hit),
label.lounge-tool-item.lounge-sticker-pick > *:not(.lounge-sticker-file-hit) {
  pointer-events: none;
  position: relative;
  z-index: 1;
}
.lounge-sticker-msg {
  position: relative;
}
.lounge-sticker-msg img {
  display: block;
  max-width: min(196px, 62vw);
  max-height: 196px;
  border-radius: 14px;
  object-fit: contain;
  background:
    linear-gradient(45deg, #efeae0 25%, transparent 25%, transparent 75%, #efeae0 75%),
    linear-gradient(45deg, #efeae0 25%, transparent 25%, transparent 75%, #efeae0 75%),
    #fbf8ef;
  background-size: 12px 12px;
  background-position: 0 0, 6px 6px;
}
.lounge-sticker-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: min(72%, 560px);
}
.lounge-sticker-row.mine .lounge-sticker-wrap {
  align-items: flex-end;
}
.lounge-sticker-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(20, 30, 32, .34);
  backdrop-filter: blur(2px);
  z-index: 70;
}
.lounge-sticker-sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 71;
  display: flex;
  flex-direction: column;
  max-height: min(78vh, 620px);
  padding: 8px 16px 16px;
  padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  border-radius: 22px 22px 0 0;
  background:
    radial-gradient(circle at 12% 0, rgba(216, 201, 170, .4), transparent 42%),
    linear-gradient(180deg, #fbf8ef 0%, #f3efe5 100%);
  border: 1px solid rgba(157, 176, 174, .38);
  box-shadow: 0 -16px 48px rgba(38, 56, 59, .16);
  transform: translateY(110%);
  transition: transform .22s ease;
}
.lounge-sticker-sheet.is-open {
  transform: translateY(0);
}
.lounge-sticker-handle {
  width: 42px;
  height: 4px;
  margin: 2px auto 10px;
  border-radius: 999px;
  background: rgba(80, 90, 88, .25);
  flex-shrink: 0;
}
.lounge-sticker-sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
  flex-shrink: 0;
}
.lounge-sticker-sheet-head strong {
  font-family: Georgia, "Noto Serif SC", serif;
  font-weight: 500;
  font-size: 18px;
  letter-spacing: .04em;
  color: #26383b;
}
.lounge-sticker-count {
  margin-left: 8px;
  font-size: 12px;
  color: #7a8682;
  font-weight: 400;
}
.lounge-sticker-sheet-head button,
.lounge-sticker-close {
  border: 1px solid rgba(127, 167, 171, .32);
  background: rgba(255, 255, 255, .72);
  color: #3d5c56;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  border-radius: 999px;
  padding: 5px 12px;
}
.lounge-sticker-note {
  margin: 0 0 12px;
  font-size: 12px;
  line-height: 1.55;
  color: #7a8682;
  flex-shrink: 0;
}
.lounge-sticker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
  gap: 10px;
  overflow: auto;
  flex: 1;
  min-height: 140px;
  max-height: 46vh;
  padding: 2px 2px 10px;
}
.lounge-sticker-cell {
  position: relative;
  aspect-ratio: 1;
  border: 1px solid rgba(157, 176, 174, .3);
  border-radius: 16px;
  background:
    linear-gradient(45deg, #efeae0 25%, transparent 25%, transparent 75%, #efeae0 75%),
    linear-gradient(45deg, #efeae0 25%, transparent 25%, transparent 75%, #efeae0 75%),
    #fbf8ef;
  background-size: 12px 12px;
  background-position: 0 0, 6px 6px;
  box-shadow: 0 1px 0 rgba(255,255,255,.85) inset, 0 8px 18px rgba(45, 74, 78, .07);
  overflow: hidden;
  padding: 0;
}
.lounge-sticker-thumb {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: transparent;
  padding: 8px;
  cursor: pointer;
}
.lounge-sticker-cell img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  pointer-events: none;
}
.lounge-sticker-del {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 50%;
  background: rgba(38, 56, 59, .78);
  color: #fbf8ef;
  font-size: 15px;
  line-height: 22px;
  padding: 0;
  cursor: pointer;
}
.lounge-sticker-del:hover {
  background: #8f6b61;
}
.lounge-sticker-gif {
  position: absolute;
  left: 6px;
  bottom: 6px;
  font-size: 9px;
  letter-spacing: .08em;
  background: rgba(38, 56, 59, .78);
  color: #f7f3ec;
  border-radius: 999px;
  padding: 2px 6px;
  pointer-events: none;
}
.lounge-sticker-cell.is-add {
  border: 1.5px dashed rgba(109, 143, 148, .5);
  background: rgba(255,255,255,.55);
  box-shadow: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: #3d5c56;
  cursor: pointer;
  font: inherit;
}
.lounge-sticker-cell.is-add:hover,
.lounge-sticker-cell.is-add:focus-visible {
  border-color: rgba(61, 92, 86, .55);
  background: rgba(255, 255, 255, .82);
}
.lounge-sticker-cell.is-add span {
  display: block;
  font-size: 28px;
  line-height: 1;
  color: #6d8f94;
}
.lounge-sticker-cell.is-add b {
  display: none;
  font-size: 14px;
  font-weight: 600;
}
.lounge-sticker-cell.is-add small {
  display: block;
  font-size: 11px;
  color: #7a8682;
}
.lounge-sticker-empty {
  grid-column: 1 / -1;
  margin: 10px 0 4px;
  text-align: center;
  color: #7a8682;
  font-size: 13px;
  line-height: 1.6;
}
.lounge-sticker-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 8px;
  flex-shrink: 0;
}
.lounge-sticker-hint {
  margin: 0;
  font-size: 11px;
  color: #8a9692;
  line-height: 1.45;
}
.lounge-sticker-add,
.lounge-sticker-actions .btn {
  border: 1px solid rgba(109, 143, 148, .4);
  background: #3d5c56;
  color: #f7f3ec;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  border-radius: 999px;
  padding: 7px 14px;
  white-space: nowrap;
}
.lounge-sticker-busy {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(251, 248, 239, .78);
  color: #3d5c56;
  font-size: 14px;
  border-radius: inherit;
  z-index: 2;
}
.lounge-sticker-busy[hidden] {
  display: none;
}
.lounge-sticker-alert {
  max-width: min(92vw, 380px);
}
.lounge-sticker-alert .lounge-sheet-body p {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: #3d5c56;
  white-space: pre-wrap;
}
.play-lounge-compose-row {
  display: flex;
  gap: 8px;
  align-items: flex-end;
}
.play-lounge-compose-row textarea {
  flex: 1;
}
@media (max-width: 860px) {
  .lounge-composer {
    grid-template-columns: 44px minmax(0, 1fr) 44px 44px;
  }
  .lounge-sticker-btn {
    width: 44px;
    height: 44px;
    border-radius: 15px;
    border: 1px solid rgba(127, 167, 171, .22);
    background: rgba(255, 255, 255, .78);
  }
  .lounge-sticker-msg img {
    max-width: min(108px, 36vw);
    max-height: 108px;
    border-radius: 10px;
  }
  .lounge-sticker-grid {
    grid-template-columns: repeat(auto-fill, minmax(64px, 1fr));
    gap: 8px;
    min-height: 96px;
    max-height: 38vh;
  }
  .lounge-sticker-cell.is-add span {
    font-size: 22px;
  }
  .lounge-tool-item {
    font: inherit;
    cursor: pointer;
    box-sizing: border-box;
  }
}
@media (min-width: 861px) {
  .lounge-sticker-backdrop {
    display: none !important;
  }
  .lounge-sticker-sheet {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    z-index: 2;
    display: none;
    width: auto;
    max-height: none;
    transform: none;
    transition: none;
    flex-shrink: 0;
    padding: 10px 16px 12px;
    border: 0;
    border-top: 1px solid rgba(157, 176, 174, .32);
    border-radius: 0;
    box-shadow: none;
    background: rgba(247, 243, 236, .94);
  }
  .lounge-sticker-sheet.is-open {
    display: flex;
    transform: none;
  }
  .lounge-sticker-handle,
  .lounge-sticker-note,
  .lounge-sticker-add {
    display: none;
  }
  .lounge-sticker-sheet:has(.is-hero) .lounge-sticker-actions {
    display: none;
  }
  .lounge-sticker-sheet-head {
    margin-bottom: 8px;
  }
  .lounge-sticker-sheet-head strong {
    font-size: 15px;
    letter-spacing: .02em;
  }
  .lounge-sticker-sheet-head .lounge-sticker-close {
    font-size: 0;
    line-height: 0;
    width: 32px;
    min-width: 32px;
    height: 32px;
    padding: 0;
    overflow: hidden;
    white-space: nowrap;
    border-radius: 10px;
  }
  .lounge-sticker-sheet-head .lounge-sticker-close::before {
    content: "×";
    font-size: 22px;
    line-height: 1;
    color: #3d5c56;
  }
  .lounge-sticker-grid {
    min-height: 0;
    max-height: 220px;
    grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
    gap: 8px;
    padding: 0 0 4px;
  }
  .lounge-sticker-empty {
    display: none;
  }
  .lounge-sticker-cell.is-add.is-hero {
    grid-column: 1 / -1;
    aspect-ratio: auto;
    min-height: 108px;
    padding: 18px 12px;
    border-radius: 14px;
    gap: 6px;
  }
  .lounge-sticker-cell.is-add.is-hero span {
    font-size: 22px;
  }
  .lounge-sticker-cell.is-add.is-hero b {
    display: block;
    font-size: 15px;
    color: #3d5c56;
  }
  .lounge-sticker-cell.is-add.is-hero small {
    font-size: 12px;
  }
  .lounge-sticker-actions {
    padding-top: 4px;
  }
  .play-page .lounge-sticker-sheet {
    margin: 0;
    padding: 12px 14px 10px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(255, 255, 255, .72);
    box-shadow: 0 8px 20px rgba(45, 74, 78, .06);
  }
  .play-page .play-lounge-actions > .js-lounge-sticker-add {
    display: none;
  }
}
