:root {
  --bg: #edf5ed;
  --surface: #fffdf5;
  --surface-2: #f5f1df;
  --surface-3: #dceee7;
  --text: #304b43;
  --text-2: #66766f;
  --muted: #93a29b;
  --line: rgba(62, 91, 80, 0.15);
  --line-strong: rgba(62, 91, 80, 0.28);
  --primary: #2e8f87;
  --primary-deep: #226f69;
  --primary-soft: #d9f0ec;
  --sky: #9ccfdb;
  --sand: #f4e7c5;
  --coral: #e97d68;
  --leaf: #71a96b;
  --shadow: 0 12px 35px rgba(48, 75, 67, 0.11);
  --shadow-soft: 0 5px 18px rgba(48, 75, 67, 0.08);
  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 26px;
  --font: "Arial Rounded MT Bold", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}

html[data-theme="classic"] {
  --bg: #ece5d6;
  --surface: #f3ede0;
  --surface-2: #e3dbc9;
  --surface-3: #e8e1d1;
  --text: #1f1c17;
  --text-2: #55504a;
  --muted: #8c8577;
  --line: rgba(55, 48, 37, 0.16);
  --line-strong: rgba(55, 48, 37, 0.3);
  --primary: #353029;
  --primary-deep: #16130f;
  --primary-soft: #ddd4c0;
  --sky: #aca394;
  --sand: #e1d4b9;
  --coral: #8c3a2b;
  --leaf: #655f54;
  --shadow: 0 12px 35px rgba(31, 28, 23, 0.14);
  --font: "Noto Serif SC", "Songti SC", serif;
}

* { box-sizing: border-box; }
html, body { width: 100%; min-height: 100%; }
body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: var(--font);
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; }
button { color: inherit; }
button, select { cursor: pointer; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid rgba(233, 125, 104, 0.5);
  outline-offset: 2px;
}

.app-shell {
  height: 100dvh;
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr);
  overflow: hidden;
}

.side-rail {
  min-height: 0;
  padding: 22px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  background:
    radial-gradient(circle at 0 0, rgba(156, 207, 219, 0.35), transparent 30%),
    linear-gradient(180deg, var(--surface), var(--surface-2));
  border-right: 1px solid var(--line);
  position: relative;
  z-index: 5;
}
.side-rail::after {
  content: "";
  position: absolute;
  right: -7px;
  top: 0;
  bottom: 0;
  width: 12px;
  opacity: 0.28;
  background: radial-gradient(circle at 0 8px, var(--bg) 0 6px, transparent 6.5px) 0 0 / 12px 16px repeat-y;
  pointer-events: none;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 3px 4px;
  border: 0;
  background: transparent;
  text-align: left;
}
.brand > span:last-child { display: grid; gap: 2px; }
.brand strong { font-size: 17px; letter-spacing: 0.04em; }
.brand small, .profile-chip small, .theme-toggle small { color: var(--text-2); font-size: 10px; }
.brand-mark {
  width: 40px;
  height: 40px;
  display: block;
  position: relative;
  border-radius: 52% 48% 60% 40%;
  background: linear-gradient(145deg, var(--primary), var(--primary-deep));
  box-shadow: 0 4px 0 rgba(34, 111, 105, 0.22);
  transform: rotate(-4deg);
}
.brand-mark i { position: absolute; display: block; background: #fff9e9; border-radius: 50%; }
.brand-mark i:nth-child(1) { width: 7px; height: 7px; left: 10px; top: 16px; }
.brand-mark i:nth-child(2) { width: 7px; height: 7px; right: 9px; top: 13px; }
.brand-mark i:nth-child(3) { width: 16px; height: 6px; left: 12px; bottom: 8px; border-radius: 50% 50% 60% 40%; }

.primary-nav { display: grid; gap: 6px; }
.nav-item {
  min-height: 45px;
  border: 0;
  border-radius: 14px 18px 14px 18px;
  background: transparent;
  display: grid;
  grid-template-columns: 27px 1fr auto;
  align-items: center;
  gap: 7px;
  padding: 0 12px;
  text-align: left;
  font-weight: 700;
  color: var(--text-2);
  transition: 0.2s ease;
}
.nav-item:hover { color: var(--text); background: rgba(255,255,255,.46); transform: translateX(2px); }
.nav-item.active { color: var(--primary-deep); background: var(--primary-soft); box-shadow: inset 0 0 0 1px rgba(46,143,135,.08); }
.nav-item em { min-width: 22px; padding: 2px 6px; border-radius: 20px; background: rgba(255,255,255,.7); font-size: 10px; font-style: normal; text-align: center; }
.nav-icon { font-size: 19px; }

.journey-summary {
  margin-top: 4px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px 23px 17px 21px;
  background: rgba(255,255,255,.44);
}
.eyebrow { color: var(--primary); font-size: 10px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.journey-summary strong { display: block; margin-top: 5px; font-size: 13px; }
.journey-summary p { color: var(--text-2); font-size: 11px; line-height: 1.6; margin: 7px 0 12px; }
.mini-route { display: flex; align-items: center; }
.mini-route::before { content: ""; height: 2px; flex: 1; background: linear-gradient(90deg, var(--primary), var(--sand)); order: 2; }
.mini-route i { width: 8px; height: 8px; border: 2px solid var(--surface); border-radius: 50%; background: var(--primary); z-index: 1; }
.mini-route i:nth-child(1) { order: 1; }.mini-route i:nth-child(2) { order: 3; }.mini-route i:nth-child(3) { order: 4; }.mini-route i:nth-child(4) { order: 5; background: var(--sand); }

.rail-footer { margin-top: auto; display: grid; gap: 8px; }
.theme-toggle, .profile-chip {
  width: 100%; border: 0; background: transparent; border-radius: 14px; padding: 9px; display: flex; align-items: center; gap: 9px; text-align: left;
}
.theme-toggle:hover, .profile-chip:hover { background: rgba(255,255,255,.5); }
.theme-toggle > span:nth-child(2), .profile-chip > span:nth-child(2) { flex: 1; display: grid; }
.theme-swatch { width: 31px; height: 31px; border-radius: 45% 55% 50% 50%; background: linear-gradient(135deg, var(--sky) 50%, var(--sand) 50%); border: 2px solid var(--surface); box-shadow: 0 0 0 1px var(--line); }
.avatar { width: 36px; height: 36px; border: 2px solid rgba(255,255,255,.9); border-radius: 45% 55% 48% 52%; display: grid; place-items: center; background: var(--coral); color: white; font-weight: 900; box-shadow: 0 0 0 1px var(--line); }
.avatar--small { width: 33px; height: 33px; flex: 0 0 auto; }

.main-stage { min-width: 0; min-height: 0; display: flex; flex-direction: column; background: var(--bg); }
.topbar { height: 66px; flex: 0 0 66px; display: flex; align-items: center; justify-content: space-between; padding: 0 28px; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 88%, white); }
.crumbs { display: flex; align-items: center; gap: 10px; font-size: 12px; }
.crumbs span { color: var(--muted); }
.crumbs span::after { content: "/"; margin-left: 10px; color: var(--line-strong); }
.top-actions { display: flex; align-items: center; gap: 10px; }
.points-pill { height: 36px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); padding: 0 13px; display: flex; align-items: center; gap: 6px; box-shadow: var(--shadow-soft); }
.points-pill span { color: var(--coral); }.points-pill small { color: var(--muted); }
.icon-button { border: 1px solid var(--line); background: var(--surface); width: 36px; height: 36px; border-radius: 50%; }
.mobile-brand, .mobile-theme { display: none; }

.page-view { display: none; flex: 1; min-height: 0; overflow: hidden; padding: 22px 28px 20px; }
.page-view.active { display: flex; flex-direction: column; gap: 16px; animation: page-in .28s ease both; }
@keyframes page-in { from { opacity: 0; transform: translateY(5px); } }

.welcome-card {
  height: 134px; flex: 0 0 134px; border-radius: 24px 31px 22px 29px; overflow: hidden; position: relative;
  background: linear-gradient(90deg, rgba(33,94,86,.91) 0%, rgba(33,94,86,.7) 40%, rgba(33,94,86,.03) 74%), url("./assets/island-hero.png") center 56% / cover;
  box-shadow: var(--shadow);
}
html[data-theme="classic"] .welcome-card { filter: saturate(.15) sepia(.18); }
.welcome-card::after { content: ""; position: absolute; inset: auto 0 -1px 0; height: 12px; background: radial-gradient(12px 7px at 12px 0, transparent 11px, var(--bg) 11.5px) 0 0 / 24px 12px repeat-x; }
.welcome-copy { position: relative; z-index: 1; padding: 19px 27px; color: #fffdf5; }
.welcome-copy .eyebrow { color: #d8f2e9; }
.welcome-copy h1 { margin: 4px 0 2px; font-size: 25px; line-height: 1.15; }
.welcome-copy p { margin: 0; font-size: 12px; opacity: .87; }
.welcome-stats { display: flex; align-items: center; gap: 10px; margin-top: 12px; font-size: 10px; color: rgba(255,255,255,.82); }
.welcome-stats b { color: white; font-size: 13px; }.welcome-stats i { width: 3px; height: 3px; background: rgba(255,255,255,.55); border-radius: 50%; }
.weather-orb { position: absolute; z-index: 1; right: 25px; top: 19px; width: 80px; height: 80px; border: 1px solid rgba(255,255,255,.5); background: rgba(255,253,245,.78); backdrop-filter: blur(8px); border-radius: 50% 43% 52% 47%; display: grid; place-content: center; justify-items: center; color: var(--text); box-shadow: 0 8px 25px rgba(32,86,80,.15); }
.weather-orb span { font-size: 26px; color: #e7a54a; }.weather-orb small { font-size: 9px; margin-top: -2px; }

.library-panel { min-height: 0; flex: 1; display: flex; flex-direction: column; }
.library-head { flex: 0 0 51px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.segmented { display: flex; align-items: center; gap: 4px; padding: 4px; border-radius: 15px; background: color-mix(in srgb, var(--surface-2) 75%, transparent); }
.segmented button { height: 34px; border: 0; border-radius: 11px; background: transparent; padding: 0 14px; font-weight: 700; color: var(--text-2); white-space: nowrap; }
.segmented button.active { color: var(--primary-deep); background: var(--surface); box-shadow: var(--shadow-soft); }
.segmented button span { margin-left: 4px; font-size: 10px; color: var(--muted); }
.library-tools { display: flex; align-items: center; gap: 8px; }
.search-box { width: 160px; height: 38px; display: flex; align-items: center; gap: 7px; padding: 0 11px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); }
.search-box input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--text); font-size: 12px; }
.search-box input::placeholder { color: var(--muted); }
.library-tools select { height: 38px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); color: var(--text-2); padding: 0 26px 0 11px; font-size: 12px; }
.primary-button, .soft-button, .send-button { border: 0; border-radius: 13px; font-weight: 800; transition: .18s ease; }
.primary-button { height: 38px; padding: 0 15px; background: var(--primary); color: white; box-shadow: 0 3px 0 var(--primary-deep); }
.primary-button:hover, .send-button:hover { transform: translateY(-1px); }
.primary-button:active, .send-button:active { transform: translateY(2px); box-shadow: none; }

.world-grid { min-height: 0; flex: 1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 11px; padding: 4px 0; overflow: hidden; }
.world-card { min-width: 0; min-height: 0; display: grid; grid-template-columns: 104px minmax(0,1fr); border: 1px solid var(--line); border-radius: 17px 21px 18px 16px; background: var(--surface); overflow: hidden; box-shadow: var(--shadow-soft); transition: transform .2s ease, box-shadow .2s ease; }
.world-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.world-cover { position: relative; overflow: hidden; background: linear-gradient(155deg, var(--sky), var(--primary)); }
.world-cover::before, .world-cover::after { content: ""; position: absolute; border-radius: 50%; }
.world-cover::before { width: 110px; height: 72px; left: -30px; bottom: -20px; background: var(--sand); transform: rotate(-12deg); box-shadow: 55px -7px 0 -19px rgba(255,255,255,.8); }
.world-cover::after { width: 45px; height: 70px; right: -13px; bottom: -16px; background: color-mix(in srgb, var(--leaf) 82%, white); transform: rotate(25deg); }
.cover-night { background: linear-gradient(155deg, #58668c, #263f57); }.cover-night::before { background: #d6c6a5; }.cover-night::after { background: #80947a; }
.cover-coral { background: linear-gradient(155deg, #efb09b, #d76e67); }.cover-coral::before { background: #f7e3bc; }.cover-coral::after { background: #8eb993; }
.cover-mist { background: linear-gradient(155deg, #a9c9bd, #668f88); }.cover-mist::before { background: #e7dfc5; }.cover-mist::after { background: #527162; }
.cover-sky { background: linear-gradient(155deg, #a9d8e4, #638ea7); }.cover-sky::before { background: #f1e0b8; }.cover-sky::after { background: #789c69; }
.cover-gold { background: linear-gradient(155deg, #e7c36d, #c47c53); }.cover-gold::before { background: #f4e6bf; }.cover-gold::after { background: #7f986a; }
.cover-badge { position: absolute; z-index: 2; left: 8px; top: 8px; padding: 3px 7px; border-radius: 9px; background: rgba(255,255,255,.82); backdrop-filter: blur(5px); color: #38544b; font-size: 9px; font-weight: 900; }
.cover-symbol { position: absolute; z-index: 2; left: 50%; top: 50%; transform: translate(-50%,-45%); font-size: 28px; color: rgba(255,255,255,.88); text-shadow: 0 3px 10px rgba(30,70,63,.2); }
.world-card-body { min-width: 0; display: flex; flex-direction: column; padding: 11px 12px 9px; }
.world-card-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 6px; }
.world-card h3 { margin: 0; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.more-button { width: 23px; height: 23px; flex: 0 0 auto; border: 0; border-radius: 8px; background: transparent; color: var(--muted); }
.more-button:hover { background: var(--surface-2); color: var(--text); }
.world-card p { margin: 4px 0 7px; color: var(--text-2); font-size: 10px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-tags { display: flex; gap: 4px; flex-wrap: wrap; }
.card-tags span { padding: 2px 6px; border-radius: 7px; background: var(--surface-2); color: var(--text-2); font-size: 8px; }
.card-progress { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 6px; margin-top: 7px; }
.card-progress i { height: 5px; border-radius: 5px; background: var(--surface-2); overflow: hidden; }.card-progress b { display: block; height: 100%; background: linear-gradient(90deg, var(--primary), var(--sky)); border-radius: 5px; }.card-progress em { font-size: 8px; font-style: normal; color: var(--muted); }
.card-foot { margin-top: auto; padding-top: 7px; display: flex; align-items: center; justify-content: space-between; border-top: 1px dashed var(--line); }
.card-foot small { color: var(--muted); font-size: 8px; }
.card-open { border: 0; background: transparent; color: var(--primary); font-size: 10px; font-weight: 900; padding: 2px; }

.empty-state { grid-column: 1/-1; grid-row: 1/-1; display: grid; place-content: center; justify-items: center; color: var(--text-2); text-align: center; }
.empty-state span { width: 70px; height: 48px; border-radius: 50%; background: var(--primary-soft); display: grid; place-items: center; font-size: 23px; }.empty-state h3 { margin: 10px 0 3px; }.empty-state p { margin: 0; font-size: 11px; }
.pager-wrap { flex: 0 0 43px; display: flex; align-items: flex-end; justify-content: space-between; }
.pager-wrap p { margin: 0 0 5px; color: var(--muted); font-size: 10px; }
.pagination { display: flex; align-items: center; gap: 4px; }
.pagination button { min-width: 30px; height: 30px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); font-size: 11px; }
.pagination button:hover:not(:disabled), .pagination button.current { color: white; background: var(--primary); border-color: var(--primary); }
.pagination button:disabled { opacity: .38; cursor: not-allowed; }.pagination span { color: var(--muted); }

.page-title-row { flex: 0 0 auto; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.page-title-row h1 { margin: 3px 0 2px; font-size: 27px; }.page-title-row p { margin: 0; color: var(--text-2); font-size: 11px; }
.feature-strip { min-height: 93px; display: flex; align-items: center; gap: 16px; padding: 16px 20px; border-radius: 19px 24px; background: linear-gradient(110deg, var(--primary-soft), color-mix(in srgb, var(--sand) 62%, white)); border: 1px solid var(--line); }
.feature-badge { padding: 8px 12px; border-radius: 44% 56% 47% 53%; color: white; background: var(--coral); font-size: 10px; font-weight: 900; transform: rotate(-3deg); }
.feature-strip > div { flex: 1; }.feature-strip strong { font-size: 15px; }.feature-strip p { color: var(--text-2); margin: 4px 0 0; font-size: 11px; }
.soft-button { height: 37px; padding: 0 14px; color: var(--primary-deep); background: rgba(255,255,255,.66); border: 1px solid var(--line); }
.plaza-grid { min-height: 0; flex: 1; display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(2, minmax(0,1fr)); gap: 12px; }
.plaza-card { min-height: 0; display: grid; grid-template-columns: 42% 1fr; background: var(--surface); border: 1px solid var(--line); border-radius: 19px; overflow: hidden; box-shadow: var(--shadow-soft); }
.plaza-card .world-cover { min-height: 110px; }.plaza-card-body { padding: 13px; display: flex; flex-direction: column; min-width: 0; }
.plaza-card h3 { margin: 0; font-size: 14px; }.plaza-card p { margin: 5px 0; color: var(--text-2); font-size: 10px; line-height: 1.5; }
.plaza-meta { margin-top: auto; display: flex; justify-content: space-between; color: var(--muted); font-size: 9px; }
.plaza-pager { flex: 0 0 36px; }

.play-view { padding-bottom: 18px; }
.play-status { position: relative; z-index: 12; flex: 0 0 72px; display: grid; grid-template-columns: 1fr minmax(270px, 380px) 150px; align-items: center; gap: 22px; padding: 8px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px 22px; box-shadow: var(--shadow-soft); }
.play-status { grid-template-columns: minmax(180px,1fr) minmax(190px, 300px) minmax(132px, auto) 146px; gap: 12px; }
.player-summary { display: flex; align-items: center; gap: 11px; }.avatar--hero { width: 47px; height: 47px; background: var(--primary); }.player-summary h2 { margin: 2px 0 0; font-size: 17px; }.player-summary h2 small { font-size: 10px; color: var(--text-2); font-weight: 600; }
.status-bars { display: grid; gap: 6px; }.status-bars label { display: grid; grid-template-columns: 34px 1fr 56px; align-items: center; gap: 7px; font-size: 9px; color: var(--text-2); }.status-bars i { height: 7px; background: var(--surface-2); border-radius: 10px; overflow: hidden; }.status-bars b { display: block; height: 100%; border-radius: 10px; background: linear-gradient(90deg, var(--coral), #f2aa7e); }.status-bars i.blue b { background: linear-gradient(90deg, var(--primary), var(--sky)); }.status-bars em { font-style: normal; text-align: right; }
.character-resources { display:flex; justify-content:flex-end; gap:6px; min-width:0; }
.resource-chip { min-width:128px; height:48px; display:grid; grid-template-columns:30px minmax(0,1fr); align-items:center; gap:7px; padding:6px 9px; border:1px solid var(--line); border-radius:14px 18px 13px 16px; background:linear-gradient(135deg,color-mix(in srgb,var(--sand) 42%,var(--surface)),var(--surface)); box-shadow:0 3px 0 rgba(46,143,135,.09); }
.resource-chip[hidden] { display:none; }
.resource-icon { width:28px; height:28px; display:grid; place-items:center; border-radius:48% 52% 44% 56%; color:#fff; background:var(--primary); font-size:13px; font-weight:900; transform:rotate(-4deg); }
.currency-chip .resource-icon { color:#76582d; background:var(--sand); box-shadow:inset 0 0 0 1px rgba(118,88,45,.14); }
.resource-chip>div { min-width:0; display:grid; gap:2px; }.resource-chip small { overflow:hidden; color:var(--muted); font-size:7px; white-space:nowrap; text-overflow:ellipsis; }.resource-chip strong { color:var(--primary-deep); font-size:11px; white-space:nowrap; }.resource-chip strong em { color:var(--muted); font-size:7px; font-style:normal; font-weight:700; }
.character-resources.has-realm .resource-chip { min-width:112px; }
.realm-chip.has-progress { height:56px; }
.realm-progress { display:grid; grid-template-columns:minmax(42px,1fr) auto; align-items:center; gap:5px; }.realm-progress[hidden] { display:none; }.realm-progress>i { height:4px; overflow:hidden; border-radius:5px; background:var(--surface-2); }.realm-progress>i>b { display:block; width:64%; height:100%; border-radius:5px; background:linear-gradient(90deg,var(--primary),var(--sky)); }.realm-progress>em { color:var(--muted); font-size:6px; font-style:normal; white-space:nowrap; }
.world-clock { justify-self: end; display: flex; align-items: center; gap: 9px; padding: 5px 8px; border: 0; border-radius: 13px 17px 13px 16px; background: transparent; text-align: left; transition: .2s ease; }.world-clock:hover, .world-clock[aria-expanded="true"] { background: var(--primary-soft); transform: translateY(-1px); }.world-clock > span { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 48% 52% 43% 57%; font-size: 22px; color: var(--primary); background: color-mix(in srgb, var(--sky) 25%, white); }.world-clock div { display: grid; }.world-clock small { color: var(--text-2); font-size: 8px; }.world-clock strong { font-size: 18px; }
.world-calendar-trigger { justify-self: end; display:flex; align-items:center; gap:7px; padding:5px 8px; border:1px solid var(--line); border-radius:14px 18px 13px 17px; color:var(--primary-deep); background:linear-gradient(135deg, var(--sand), color-mix(in srgb, var(--primary-soft) 65%, white)); text-align:left; box-shadow:0 3px 0 rgba(46,143,135,.12); transition:.2s ease; }.world-calendar-trigger:hover { transform:translateY(-2px) rotate(-1deg); box-shadow:0 5px 0 rgba(46,143,135,.18); }.world-calendar-trigger > span { width:28px; height:28px; display:grid; place-items:center; border-radius:48% 52% 45% 55%; color:white; background:var(--primary); font-size:15px; }.world-calendar-trigger div { display:grid; }.world-calendar-trigger small { color:var(--text-2); font-size:8px; }.world-calendar-trigger strong { font-size:10px; }
.weather-menu { position: absolute; z-index: 35; width: 292px; right: 9px; top: calc(100% + 9px); padding: 13px; border: 1px solid rgba(255,255,255,.7); border-radius: 20px 24px 19px 22px; background: color-mix(in srgb, var(--surface) 95%, transparent); backdrop-filter: blur(14px); box-shadow: 0 18px 55px rgba(37,70,60,.22); opacity: 0; visibility: hidden; transform: translateY(-8px) scale(.97); transform-origin: top right; transition: .2s ease; }.weather-menu.open { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }.weather-menu::before { content: ""; position: absolute; right: 28px; top: -7px; width: 16px; height: 16px; background: var(--surface); transform: rotate(45deg); border-left: 1px solid var(--line); border-top: 1px solid var(--line); }.weather-menu header { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 9px; }.weather-menu header > div { display: grid; gap: 2px; }.weather-menu header b { font-size: 13px; }.weather-menu header small { color: var(--muted); font-size: 8px; }
.weather-options { display: grid; grid-template-columns: repeat(5,1fr); gap: 5px; padding: 5px; border-radius: 14px; background: var(--surface-2); }.weather-options button { border: 0; border-radius: 11px 13px 10px 12px; padding: 6px 2px; color: var(--text-2); background: transparent; }.weather-options button span { display: block; height: 21px; font-size: 17px; color: var(--primary); }.weather-options button b { font-size: 8px; }.weather-options button:hover { background: rgba(255,255,255,.58); transform: translateY(-1px); }.weather-options button.active { color: var(--primary-deep); background: var(--surface); box-shadow: 0 3px 0 color-mix(in srgb, var(--primary) 25%, var(--line)); }.weather-event-demo { width: 100%; height: 34px; margin-top: 9px; border: 1px solid var(--line); border-radius: 12px 15px 11px 14px; color: var(--primary-deep); background: var(--surface); font-size: 9px; font-weight: 800; box-shadow: 0 3px 0 var(--line-strong); }.weather-event-demo span { display: inline-grid; width: 18px; height: 18px; place-items: center; margin-right: 4px; border-radius: 50%; color: white; background: var(--coral); }.weather-event-demo:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--line-strong); }
.play-layout { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0,1fr) 336px; gap: 14px; }
.story-journal { min-height: 0; position: relative; isolation: isolate; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 23px 18px 25px 20px; overflow: hidden; box-shadow: var(--shadow-soft); }
.story-journal > .story-date, .story-journal > .story-scroll, .story-journal > .action-composer { position: relative; z-index: 2; }
.weather-canvas { position: absolute; z-index: 4; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: .78; transition: opacity .35s ease; }
.weather-ambient { position: absolute; z-index: 1; inset: 0; pointer-events: none; transition: background .5s ease, opacity .5s ease; }
.weather-ambient.weather-sun { opacity: .42; background: linear-gradient(118deg, rgba(255,223,151,.34), transparent 34%), radial-gradient(circle at 88% 4%, rgba(255,204,98,.25), transparent 24%); }
.weather-ambient.weather-rain { opacity: .56; background: linear-gradient(180deg, rgba(86,140,145,.18), transparent 46%), linear-gradient(115deg, transparent 60%, rgba(109,167,175,.12)); }
.weather-ambient.weather-snow { opacity: .58; background: linear-gradient(180deg, rgba(213,235,239,.34), rgba(255,255,255,.08)); }
.weather-ambient.weather-fog { opacity: .72; background: linear-gradient(90deg, rgba(218,232,224,.44), transparent 50%, rgba(225,235,229,.36)); }
.weather-ambient.weather-wind { opacity: .36; background: linear-gradient(135deg, rgba(156,207,219,.2), transparent 38%, rgba(113,169,107,.1)); }
.weather-caption { position: absolute; z-index: 5; left: 15px; top: 13px; max-width: 230px; padding: 5px 10px 5px 7px; border: 1px solid rgba(255,255,255,.7); border-radius: 12px 15px 12px 14px; color: var(--primary-deep); background: color-mix(in srgb, var(--surface) 82%, transparent); backdrop-filter: blur(8px); box-shadow: var(--shadow-soft); font-size: 8px; pointer-events: none; animation: weather-caption-in .45s ease both; }.weather-caption span { display: inline-grid; width: 18px; height: 18px; place-items: center; margin-right: 4px; border-radius: 48% 52%; color: white; background: var(--primary); }
@keyframes weather-caption-in { from { opacity: 0; transform: translateY(-5px); } }
.story-date { height: 41px; display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--muted); font-size: 10px; }.story-date span { width: 48px; border-top: 1px solid var(--line-strong); }
.story-scroll { flex: 1; overflow-y: auto; padding: 14px clamp(24px, 6vw, 72px) 24px; color: color-mix(in srgb, var(--text) 89%, black); font-family: "Noto Serif SC", "Songti SC", serif; font-size: var(--story-font-size, 14px); line-height: 1.9; }
.reader-font-control { position:absolute; z-index:6; top:12px; right:14px; }
.reader-font-trigger { min-width:42px; height:30px; display:flex; align-items:center; justify-content:center; padding:0 8px; border:1px solid rgba(255,255,255,.78); border-radius:11px 14px 11px 13px; color:var(--primary-deep); background:color-mix(in srgb,var(--surface) 86%,transparent); box-shadow:var(--shadow-soft); backdrop-filter:blur(8px); font-family:var(--font); font-size:10px; font-weight:900; letter-spacing:.08em; transition:.2s ease; }
.reader-font-trigger:hover,.reader-font-control.open .reader-font-trigger { color:white; border-color:var(--primary); background:var(--primary); transform:translateY(-1px); }
.reader-font-menu { position:absolute; top:calc(100% + 8px); right:0; width:174px; padding:11px; border:1px solid rgba(255,255,255,.8); border-radius:15px 19px 14px 17px; color:var(--text); background:color-mix(in srgb,var(--surface) 95%,transparent); box-shadow:0 14px 35px rgba(37,70,60,.19); backdrop-filter:blur(14px); opacity:0; visibility:hidden; transform:translateY(-6px) scale(.97); transform-origin:top right; transition:.18s ease; }
.reader-font-control.open .reader-font-menu { opacity:1; visibility:visible; transform:translateY(0) scale(1); }.reader-font-menu>div:first-child { display:flex; align-items:center; justify-content:space-between; font-size:10px; }.reader-font-menu>div:first-child b { color:var(--primary-deep); }.reader-font-menu>div:first-child span { color:var(--muted); font-size:9px; }
.reader-font-menu input { width:100%; margin:10px 0 5px; accent-color:var(--primary); }.reader-font-scale { display:flex; align-items:center; justify-content:space-between; color:var(--muted); }.reader-font-scale small { font-size:10px; }.reader-font-scale span { font-size:8px; }.reader-font-scale strong { font-size:15px; }
@media (max-width:720px) { .reader-font-control { top:9px; right:9px; }.reader-font-trigger { min-width:40px; height:28px; padding:0 7px; font-size:9px; }.reader-font-menu { width:166px; padding:10px; } }
.story-scroll p { margin: 0 0 12px; }.story-scroll blockquote { margin: 15px 0; padding: 9px 14px; border-left: 3px solid var(--sky); background: var(--primary-soft); color: var(--text-2); border-radius: 0 12px 12px 0; }
.story-choice { display: grid; gap: 7px; margin: 16px 0; }.story-choice button { border: 1px solid var(--line); background: color-mix(in srgb, var(--surface-2) 50%, white); padding: 9px 13px; border-radius: 12px; text-align: left; font-family: var(--font); font-size: 11px; }.story-choice button:hover { border-color: var(--primary); color: var(--primary-deep); transform: translateX(2px); }
.player-line { margin: 15px 0; text-align: right; }.player-line span { display: inline-block; margin-bottom: 3px; color: var(--coral); font-family: var(--font); font-size: 9px; font-weight: 900; }.player-line p { display: inline-block; max-width: 80%; margin: 0; padding: 8px 13px; background: var(--sand); border-radius: 14px 14px 4px 14px; }
.action-composer { flex: 0 0 auto; margin: 0 14px 13px; min-height: 52px; display: grid; grid-template-columns: 36px 1fr auto; align-items: center; gap: 8px; padding: 6px; border: 1px solid var(--line-strong); border-radius: 17px; background: var(--surface); box-shadow: 0 -8px 25px rgba(48,75,67,.04); }.action-composer textarea { border: 0; outline: 0; resize: none; background: transparent; color: var(--text); padding: 8px 2px; max-height: 85px; }.send-button { height: 38px; padding: 0 15px; color: white; background: var(--primary); box-shadow: 0 3px 0 var(--primary-deep); }
.composer-voice-toggle{width:34px;height:34px;display:grid;place-items:center;padding:0;border:1px solid var(--line-strong);border-radius:50%;color:var(--primary-deep);background:var(--surface);box-shadow:0 2px 0 rgba(48,75,67,.12);transition:.16s ease}.composer-voice-toggle:hover{border-color:var(--primary);background:var(--primary-soft)}.composer-voice-toggle:active{transform:translateY(2px);box-shadow:none}.voice-toggle-icon{position:relative;width:21px;height:21px;display:block;border:2px solid currentColor;border-radius:50%}.voice-toggle-icon i{position:absolute;top:50%;display:block;width:2px;border-radius:3px;background:currentColor;transform:translateY(-50%)}.voice-toggle-icon i:nth-child(1){left:5px;height:6px}.voice-toggle-icon i:nth-child(2){left:9px;height:11px}.voice-toggle-icon i:nth-child(3){left:13px;height:5px}.keyboard-toggle-icon{width:22px;height:22px;display:none;place-items:center}.keyboard-toggle-icon svg{width:21px;height:21px;overflow:visible}.keyboard-toggle-icon rect,.keyboard-toggle-icon path{fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.keyboard-toggle-icon path{stroke-width:2.25}.voice-hold-button{display:none;width:100%;height:38px;border:1px solid var(--line);border-radius:12px 15px 11px 14px;color:var(--primary-deep);background:linear-gradient(180deg,var(--surface),var(--surface-2));font-size:11px;font-weight:900;letter-spacing:.08em;box-shadow:0 2px 0 rgba(48,75,67,.12);touch-action:none;user-select:none;-webkit-user-select:none}.action-composer.voice-mode{grid-template-columns:36px minmax(0,1fr)}.action-composer.voice-mode textarea,.action-composer.voice-mode .send-button{display:none}.action-composer.voice-mode .voice-hold-button{display:block}.action-composer.voice-mode .voice-toggle-icon{display:none}.action-composer.voice-mode .keyboard-toggle-icon{display:grid}.action-composer.voice-mode .composer-voice-toggle{color:var(--primary-deep);border-color:var(--line-strong);background:var(--surface)}.voice-hold-button.recording{color:white;border-color:var(--coral);background:linear-gradient(145deg,#ed8a75,var(--coral));box-shadow:0 0 0 4px rgba(233,125,104,.14),0 3px 0 #b85f52;transform:scale(.992)}
.travel-panel { min-height: 0; display: flex; flex-direction: column; padding: 14px; background: linear-gradient(180deg, var(--surface), color-mix(in srgb, var(--surface-2) 48%, white)); border: 1px solid var(--line); border-radius: 19px 25px 20px 23px; box-shadow: var(--shadow-soft); }.travel-panel > header { display: flex; justify-content: space-between; align-items: flex-start; }.travel-panel h3 { margin: 2px 0 0; font-size: 17px; }.panel-close { display: none; border: 0; background: transparent; font-size: 22px; }.kit-tabs { display: grid; grid-template-columns: repeat(5,1fr); gap: 3px; margin: 10px 0; padding: 4px; background: var(--surface-2); border-radius: 13px; }.kit-tabs button { min-width: 0; border: 0; border-radius: 9px; background: transparent; padding: 5px 1px; color: var(--text-2); font-size: 8px; }.kit-tabs button span { display: block; font-size: 14px; line-height: 16px; }.kit-tabs button.active { color: var(--primary-deep); background: var(--surface); box-shadow: var(--shadow-soft); }
.panel-content { flex: 1; min-height: 0; overflow-y: auto; padding: 2px 2px 3px; scrollbar-width: thin; }
.kit-section-head { display: flex; justify-content: space-between; margin-bottom: 8px; font-size: 10px; }.kit-section-head span { color: var(--muted); }.inventory-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 7px; }.inventory-grid button { position: relative; aspect-ratio: 1; border: 1px solid var(--line); border-radius: 13px; background: rgba(255,255,255,.56); padding: 7px 3px 4px; display: grid; place-items: center; align-content: center; gap: 2px; }.inventory-grid button:hover { border-color: var(--primary); transform: translateY(-1px); }.inventory-grid b { font-size: 8px; }.inventory-grid small { position: absolute; right: 5px; top: 4px; color: var(--text-2); font-size: 7px; }.item-icon { width:33px; height:33px; position:relative; display:block; filter:drop-shadow(0 2px 1px rgba(44,79,66,.18)); }.item-crystal::before { content:""; position:absolute; left:8px; top:2px; width:17px; height:27px; border-radius:5px 5px 8px 8px; background:linear-gradient(135deg,#fff1d1 0 24%,#f28e80 25% 48%,#d45d67 49%); clip-path:polygon(50% 0,100% 34%,76% 100%,24% 100%,0 34%); }.item-crystal::after { content:""; position:absolute; left:13px; top:6px; width:5px; height:18px; border-radius:50%; background:rgba(255,255,255,.58); transform:rotate(24deg); }.item-leaf::before { content:""; position:absolute; left:6px; top:4px; width:23px; height:25px; border-radius:100% 0 100% 0; background:linear-gradient(135deg,#c7e29a,#5caa70); transform:rotate(-33deg); }.item-leaf::after { content:""; position:absolute; left:16px; top:8px; width:2px; height:20px; border-radius:2px; background:#e9f4c7; transform:rotate(45deg); }.item-shell::before { content:""; position:absolute; left:3px; top:8px; width:27px; height:21px; border-radius:50% 50% 45% 45%; background:repeating-radial-gradient(ellipse at 50% 100%,#f9e5ba 0 4px,#dbac78 5px 6px); }.item-shell::after { content:""; position:absolute; left:15px; top:10px; width:3px; height:18px; background:rgba(255,255,255,.72); border-radius:4px; }.item-map::before { content:""; position:absolute; inset:5px 3px; border-radius:3px; background:linear-gradient(75deg,#f6df9e 0 31%,#c58e62 32% 36%,#f6df9e 37% 64%,#c58e62 65% 69%,#f6df9e 70%); transform:rotate(-7deg); box-shadow:0 1px 0 #997056; }.item-map::after { content:""; position:absolute; left:15px; top:10px; width:7px; height:9px; border:2px solid #479b8a; border-radius:50% 50% 50% 0; transform:rotate(-45deg); }.item-bottle::before { content:""; position:absolute; left:9px; top:8px; width:16px; height:21px; border:2px solid #6eb9ca; border-radius:5px 5px 8px 8px; background:linear-gradient(180deg,rgba(255,255,255,.7),#8cd4df); }.item-bottle::after { content:""; position:absolute; left:13px; top:3px; width:8px; height:8px; border-radius:2px 2px 0 0; background:#4b9aaa; box-shadow:0 12px 0 -2px rgba(255,255,255,.7); }.inventory-grid .empty-slot { border-style: dashed; opacity: .5; }
.active-quest { margin-top: 14px; display: flex; gap: 9px; padding: 11px; border-radius: 14px; background: var(--primary-soft); }.quest-pin { flex: 0 0 25px; height: 25px; display: grid; place-items: center; border-radius: 50%; color: white; background: var(--coral); font-weight: 900; }.active-quest div { display: grid; gap: 2px; }.active-quest small { color: var(--primary); font-size: 8px; }.active-quest b { font-size: 10px; }.active-quest p { margin: 0; color: var(--text-2); font-size: 8px; line-height: 1.5; }.mobile-kit-button { display: none; }

.panel-banner { display: flex; align-items: center; gap: 10px; padding: 11px; margin-bottom: 9px; border-radius: 14px; background: var(--primary-soft); }
.panel-banner > span { width: 37px; height: 37px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 45% 55%; color: white; background: var(--primary); font-size: 18px; }
.panel-banner > div { min-width: 0; flex: 1; display: grid; gap: 2px; }.panel-banner b { font-size: 11px; }.panel-banner small { color: var(--text-2); font-size: 8px; }
.panel-banner em { padding: 3px 7px; border-radius: 8px; background: rgba(255,255,255,.66); color: var(--primary-deep); font-size: 8px; font-style: normal; }
.panel-list { display: grid; gap: 7px; }
.panel-row { display: grid; grid-template-columns: 35px 1fr auto; align-items: center; gap: 8px; min-height: 51px; padding: 7px 8px; border: 1px solid var(--line); border-radius: 13px; background: rgba(255,255,255,.48); }
.panel-row-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 45% 55%; color: white; background: var(--sky); font-size: 15px; }
.panel-row-icon.coral { background: var(--coral); }.panel-row-icon.leaf { background: var(--leaf); }.panel-row-icon.sand { color: var(--text); background: var(--sand); }.panel-row-icon.deep { background: var(--primary); }
.panel-row-main { min-width: 0; display: grid; gap: 2px; }.panel-row-main b { font-size: 10px; }.panel-row-main small { color: var(--text-2); font-size: 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-action { height: 27px; border: 1px solid var(--line); border-radius: 9px; padding: 0 8px; background: var(--surface); color: var(--primary-deep); font-size: 8px; font-weight: 800; }
.mini-action.primary { border-color: var(--primary); color: white; background: var(--primary); }.mini-action:disabled { opacity: .45; cursor: not-allowed; }
.relation-meter, .skill-meter { height: 5px; border-radius: 6px; background: var(--surface-2); overflow: hidden; }.relation-meter i, .skill-meter i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--sky), var(--primary)); }
.danger-meter i { background: linear-gradient(90deg, var(--sand), var(--coral)); }
.map-card { min-height: 180px; position: relative; overflow: hidden; border-radius: 16px; background: linear-gradient(145deg, var(--sky), var(--primary-soft)); border: 1px solid var(--line); }
.map-card { width:100%; padding:0; text-align:left; cursor:zoom-in; }.map-card > small { position:absolute; right:8px; bottom:7px; padding:3px 6px; border-radius:8px; color:var(--primary-deep); background:rgba(255,253,245,.78); font-size:8px; }.map-expand { border:0; padding:2px 5px; color:var(--primary-deep); background:var(--primary-soft); border-radius:8px; font-size:8px; cursor:pointer; }
.calendar-panel-open { width:100%; margin-top:9px; height:34px; border:1px dashed var(--line-strong); border-radius:12px 15px 11px 14px; color:var(--primary-deep); background:var(--surface-2); font-size:10px; font-weight:800; }
.kind-pick { display:grid; grid-template-columns:1fr 1fr; gap:6px; }.kind-option { min-height:58px; display:grid; gap:3px; padding:8px; border:1px solid var(--line); border-radius:12px 15px 11px 14px; color:var(--text-2); background:var(--surface-2); text-align:left; }.kind-option b { font-size:10px; }.kind-option small { font-size:8px; line-height:1.35; }.kind-option.active { color:var(--primary-deep); border-color:var(--primary); background:var(--primary-soft); box-shadow:0 3px 0 rgba(46,143,135,.13); }
.map-island { position: absolute; border-radius: 50%; background: var(--sand); box-shadow: inset -8px -7px 0 rgba(113,169,107,.45); }
.map-island.one { width: 100px; height: 66px; left: 18px; bottom: 20px; transform: rotate(-9deg); }.map-island.two { width: 83px; height: 55px; right: 22px; top: 25px; transform: rotate(12deg); }.map-island.three { width: 57px; height: 40px; left: 46%; top: 42%; }
.map-route { position: absolute; left: 73px; top: 93px; width: 146px; border-top: 2px dashed rgba(48,75,67,.45); transform: rotate(-18deg); }
.map-pin { position: absolute; z-index: 2; width: 24px; height: 24px; display: grid; place-items: center; border: 3px solid var(--surface); border-radius: 50% 50% 50% 10%; color: white; background: var(--coral); transform: rotate(-45deg); box-shadow: var(--shadow-soft); }.map-pin span { transform: rotate(45deg); font-size: 8px; }.map-pin.current { left: 63px; bottom: 46px; }.map-pin.target { right: 57px; top: 42px; background: var(--primary); }
.map-legend { display: flex; justify-content: space-between; gap: 7px; margin-top: 8px; }.map-legend button { flex: 1; border: 1px solid var(--line); border-radius: 10px; padding: 7px 4px; background: var(--surface); font-size: 8px; }
.task-card { padding: 10px; border: 1px solid var(--line); border-radius: 13px; background: rgba(255,255,255,.5); }.task-card + .task-card { margin-top: 7px; }.task-top { display: flex; justify-content: space-between; gap: 8px; }.task-top b { font-size: 10px; }.task-top span { padding: 2px 6px; border-radius: 7px; color: var(--primary-deep); background: var(--primary-soft); font-size: 7px; }.task-card p { margin: 5px 0 8px; color: var(--text-2); font-size: 8px; line-height: 1.5; }.task-progress { display: flex; align-items: center; gap: 7px; }.task-progress i { height: 5px; flex: 1; overflow: hidden; border-radius: 5px; background: var(--surface-2); }.task-progress b { display: block; height: 100%; background: var(--primary); }.task-progress small { color: var(--muted); font-size: 7px; }
.rank-head, .rank-row { display: grid; grid-template-columns: 28px 1fr 54px 45px; align-items: center; gap: 5px; }.rank-head { padding: 3px 8px 6px; color: var(--muted); font-size: 7px; }.rank-row { min-height: 38px; padding: 5px 8px; border-top: 1px solid var(--line); font-size: 9px; }.rank-row.me { margin-top: 3px; border: 0; border-radius: 10px; background: var(--primary-soft); color: var(--primary-deep); font-weight: 900; }.rank-no { font-weight: 900; color: var(--coral); }.rank-row em { font-style: normal; text-align: right; color: var(--text-2); }
.wallet-line { display: flex; align-items: center; justify-content: space-between; padding: 9px 10px; margin-bottom: 8px; border-radius: 12px; color: var(--text); background: var(--sand); }.wallet-line b { font-size: 11px; }.wallet-line span { color: #a56e35; font-size: 10px; font-weight: 900; }
.growth-card { display: grid; grid-template-columns: 40px 1fr; gap: 9px; padding: 10px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.5); }.growth-card + .growth-card { margin-top: 8px; }.growth-card > span { width: 39px; height: 39px; display: grid; place-items: center; border-radius: 45% 55%; color: white; background: var(--primary); font-size: 18px; }.growth-card div { display: grid; gap: 3px; }.growth-card b { font-size: 10px; }.growth-card p { margin: 0; color: var(--text-2); font-size: 8px; line-height: 1.45; }.requirement { display: flex; flex-wrap: wrap; gap: 3px; }.requirement i { padding: 2px 5px; border-radius: 6px; color: var(--leaf); background: color-mix(in srgb, var(--leaf) 13%, white); font-size: 7px; font-style: normal; }.requirement i.missing { color: var(--coral); background: color-mix(in srgb, var(--coral) 12%, white); }

.mobile-nav { display: none; }
.event-layer { position: fixed; inset: 0; z-index: 125; display: none; place-items: center; padding: 18px; }.event-layer.open { display: grid; }.event-backdrop { position: absolute; inset: 0; background: rgba(28,42,36,.48); backdrop-filter: blur(5px); animation: event-fade .22s ease both; }.event-blob-shell { position: relative; z-index: 1; width: min(510px, calc(100vw - 28px)); animation: event-pop .34s cubic-bezier(.2,.9,.25,1.2) both; }.event-blob { position: relative; min-height: 290px; padding: 44px 48px 38px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; color: var(--text); }.event-blob-bg { position: absolute; z-index: 0; inset: 0; width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 24px 28px rgba(30,49,42,.28)); }.event-blob-fill { fill: var(--surface); }.event-blob-stitch { fill: none; stroke: color-mix(in srgb, var(--primary) 28%, transparent); stroke-width: 2; stroke-dasharray: 7 6; vector-effect: non-scaling-stroke; }.event-blob > :not(.event-blob-bg) { position: relative; z-index: 1; }.event-glyph { width: 58px; height: 49px; position: relative; display: grid; place-items: center; margin-bottom: 7px; border-radius: 42% 58% 51% 49%; color: white; background: linear-gradient(145deg, var(--sky), var(--primary)); box-shadow: 0 5px 0 var(--primary-deep); transform: rotate(-3deg); }.event-glyph span { font-size: 25px; }.event-glyph i { position: absolute; width: 13px; height: 8px; border-radius: 50%; background: var(--sand); }.event-glyph i:nth-child(1) { left: -6px; top: 7px; }.event-glyph i:nth-child(2) { right: -7px; bottom: 9px; }.event-blob h2 { margin: 4px 0 6px; color: var(--primary-deep); font-size: 24px; letter-spacing: .03em; }.event-blob p { max-width: 350px; margin: 0; color: var(--text-2); font-size: 12px; line-height: 1.7; }.event-actions { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 22px; }.blob-button { min-width: 102px; height: 43px; position: relative; border: 1px solid color-mix(in srgb, var(--text) 13%, transparent); border-radius: 46% 54% 43% 57% / 56% 45% 55% 44%; color: var(--text-2); background: var(--surface); box-shadow: 0 6px 0 color-mix(in srgb, var(--text) 18%, var(--sand)); font-size: 11px; font-weight: 900; transition: transform .16s ease, box-shadow .16s ease, filter .16s ease; }.blob-button:nth-child(2) { border-radius: 56% 44% 54% 46% / 45% 56% 44% 55%; }.blob-button:hover { transform: translateY(-2px) rotate(-1deg); box-shadow: 0 8px 0 color-mix(in srgb, var(--text) 18%, var(--sand)); filter: brightness(1.02); }.blob-button:active { transform: translateY(4px); box-shadow: 0 2px 0 color-mix(in srgb, var(--text) 18%, var(--sand)); }.blob-button-primary { border-color: var(--primary); color: white; background: var(--primary); box-shadow: 0 6px 0 var(--primary-deep); }.blob-button-primary:hover { box-shadow: 0 8px 0 var(--primary-deep); }.blob-button-primary:active { box-shadow: 0 2px 0 var(--primary-deep); }
@keyframes event-fade { from { opacity: 0; } }
@keyframes event-pop { from { opacity: 0; transform: translateY(14px) scale(.88) rotate(1.5deg); } 65% { transform: translateY(-3px) scale(1.02) rotate(-.5deg); } }
.modal-layer { position: fixed; inset: 0; z-index: 100; display: none; place-items: center; padding: 18px; }.modal-layer.open { display: grid; }.modal-backdrop { position: absolute; inset: 0; background: rgba(30,52,45,.45); backdrop-filter: blur(5px); }.modal-card { width: min(460px,100%); position: relative; z-index: 1; padding: 29px; background: var(--surface); border: 1px solid rgba(255,255,255,.5); border-radius: 27px 22px 29px 24px; box-shadow: 0 25px 80px rgba(24,50,42,.28); animation: modal-in .24s ease both; }.modal-card::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 9px; background: radial-gradient(9px 5px at 9px 0, transparent 8px, var(--bg) 8.5px) 0 0 / 18px 9px repeat-x; opacity: .5; }.modal-close { position: absolute; right: 16px; top: 14px; width: 33px; height: 33px; border: 0; border-radius: 50%; background: var(--surface-2); font-size: 20px; }.modal-card h2 { margin: 5px 0; font-size: 23px; }.modal-card > p { margin: 0 0 18px; color: var(--text-2); font-size: 11px; line-height: 1.6; }.modal-illustration { float: right; width: 88px; height: 58px; margin: 9px 18px 0 12px; position: relative; border-radius: 50%; background: var(--primary-soft); overflow: hidden; }.modal-illustration i { position: absolute; border-radius: 50%; background: var(--leaf); }.modal-illustration i:nth-child(1) { width: 80px; height: 33px; left: -16px; bottom: -12px; }.modal-illustration i:nth-child(2) { width: 56px; height: 25px; right: -10px; bottom: -9px; background: var(--sand); }.modal-illustration i:nth-child(3) { width: 10px; height: 25px; left: 38px; bottom: 13px; border-radius: 7px 7px 2px 2px; background: var(--primary); }.create-options { display: grid; gap: 9px; clear: both; }.create-options button { width: 100%; display: grid; grid-template-columns: 42px 1fr auto; align-items: center; gap: 11px; padding: 12px; border: 1px solid var(--line); border-radius: 15px; background: color-mix(in srgb, var(--surface-2) 45%, white); text-align: left; }.create-options button:hover { border-color: var(--primary); transform: translateY(-1px); box-shadow: var(--shadow-soft); }.create-options div { display: grid; gap: 2px; }.create-options small { color: var(--text-2); font-size: 9px; }.create-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 45% 55%; background: var(--primary); color: white; font-size: 18px; }.create-icon.alt { background: var(--coral); }.create-options em { font-style: normal; color: var(--primary); font-size: 18px; }
@keyframes modal-in { from { opacity: 0; transform: translateY(10px) scale(.97); } }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 150; transform: translate(-50%,20px); opacity: 0; pointer-events: none; padding: 10px 15px; border-radius: 14px; color: white; background: var(--text); box-shadow: var(--shadow); transition: .25s ease; }.toast.show { opacity: 1; transform: translate(-50%,0); }

/* 世界广场回归实体卡片与顶部横幅，避免旅行卡片遮住背景或失去层次。 */
#view-plaza { background: transparent; }
#view-plaza .plaza-card { cursor: pointer; background: var(--surface); box-shadow: var(--shadow-soft); transition: transform .2s ease, box-shadow .2s ease; }
#view-plaza .plaza-card:hover { transform: translateY(-3px) rotate(-.15deg); box-shadow: var(--shadow); }
.plaza-banner { position: relative; overflow: hidden; min-height: 112px; padding-right: 142px; color: #fdfaf0; background: linear-gradient(105deg, rgba(31,84,76,.96), rgba(37,112,105,.88)), url("./assets/island-hero.png") center 52% / cover; border-color: rgba(255,255,255,.28); box-shadow: var(--shadow-soft); }
.plaza-banner::after { content: ""; position: absolute; right: -35px; bottom: -65px; width: 210px; height: 170px; border: 2px solid rgba(255,255,255,.25); border-radius: 52% 48% 45% 55%; transform: rotate(-12deg); }
.plaza-banner > div:not(.plaza-banner-mark) { position: relative; z-index: 1; }.plaza-banner strong { font-size: 17px; }.plaza-banner p { color: rgba(255,255,255,.8); }.plaza-banner small { display: block; margin-top: 7px; color: rgba(255,255,255,.62); font-size: 9px; }.plaza-banner .soft-button { position: relative; z-index: 1; color: var(--primary-deep); background: #fffaf0; border-color: rgba(255,255,255,.66); }.plaza-banner .feature-badge { position: relative; z-index: 1; background: var(--coral); }.plaza-banner-mark { position: absolute; right: 30px; bottom: 17px; z-index: 1; width: 74px; height: 64px; display: grid; place-items: center; border-radius: 52% 48% 43% 57%; color: white; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.35); font-size: 37px; transform: rotate(-7deg); }.plaza-banner-mark i { position: absolute; width: 17px; height: 17px; border-radius: 50%; background: #f3c476; }.plaza-banner-mark i:first-child { left: -6px; top: 8px; }.plaza-banner-mark i:nth-child(2) { right: -7px; bottom: 3px; width: 11px; height: 11px; }

/* 账户菜单 */
.account-zone { position: relative; }
.account-menu { position: absolute; z-index: 80; top: calc(100% + 10px); right: 0; width: 220px; padding: 10px; border: 1px solid rgba(255,255,255,.72); border-radius: 18px 21px 17px 20px; background: color-mix(in srgb, var(--surface) 92%, transparent); box-shadow: 0 18px 50px rgba(35,66,56,.2); backdrop-filter: blur(16px); opacity: 0; visibility: hidden; transform: translateY(-7px) scale(.97); transform-origin: top right; transition: .18s ease; }
.account-menu.open { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.account-menu-head { display: flex; align-items: center; gap: 9px; padding: 5px 5px 11px; margin-bottom: 5px; border-bottom: 1px dashed var(--line); }.account-menu-head div { display: grid; gap: 2px; }.account-menu-head b { font-size: 12px; }.account-menu-head small { color: var(--muted); font-size: 9px; }
.account-menu > button { width: 100%; display: flex; align-items: center; gap: 8px; height: 35px; border: 0; border-radius: 10px 13px 11px 12px; background: transparent; text-align: left; font-size: 11px; font-weight: 700; }.account-menu > button span { width: 21px; color: var(--primary); font-size: 15px; text-align: center; }.account-menu > button:hover { background: var(--primary-soft); color: var(--primary-deep); }
.account-menu > button#dailyCheckinTrigger { height: 46px; margin: 2px 0; color: var(--primary-deep); background: linear-gradient(100deg, color-mix(in srgb, var(--coral) 13%, var(--surface)), color-mix(in srgb, var(--sand) 55%, var(--surface))); }.account-menu > button#dailyCheckinTrigger > span:first-child { width: 21px; color: var(--coral); font-size: 18px; }.account-menu > button#dailyCheckinTrigger > span:nth-child(2) { width: auto; display: grid; gap: 1px; color: inherit; font-size: 11px; text-align: left; }.account-menu > button#dailyCheckinTrigger small { color: var(--muted); font-size: 8px; font-weight: 600; }.account-menu > button#dailyCheckinTrigger.checked { background: var(--primary-soft); }.account-menu > button#dailyCheckinTrigger.checked > span:first-child { color: var(--primary); }

/* 每日签到：独立签到簿，红色手帐印章会在打开时落到今天。 */
.checkin-layer { position:fixed; z-index:205; inset:0; display:none; place-items:center; padding:20px; }.checkin-layer.open { display:grid; }.checkin-backdrop { position:absolute; inset:0; background:rgba(22,65,58,.58); backdrop-filter:blur(8px); }.checkin-card { width:min(670px, calc(100vw - 34px)); max-height:calc(100dvh - 40px); position:relative; z-index:1; overflow:auto; padding:26px 30px 22px; border:1px solid rgba(255,255,255,.85); border-radius:30px 25px 34px 27px; background:linear-gradient(145deg,rgba(255,252,239,.98),rgba(243,231,202,.91)); box-shadow:0 28px 88px rgba(12,54,49,.42); animation:notice-in .3s cubic-bezier(.2,.9,.25,1.12) both; }.checkin-card::before { content:""; position:absolute; inset:13px; pointer-events:none; border:1px dashed rgba(195,119,97,.32); border-radius:23px 18px 27px 20px; }.checkin-card > * { position:relative; z-index:1; }.checkin-close { position:absolute; z-index:2; top:14px; right:15px; width:32px; height:32px; border:1px solid var(--line); border-radius:50%; color:var(--text-2); background:rgba(255,253,245,.88); font-size:20px; }.checkin-sun { position:absolute; z-index:0; right:54px; top:14px; color:#efb05d; opacity:.24; font-size:67px; transform:rotate(12deg); }.checkin-head { padding:0 40px; text-align:center; }.checkin-head h2 { margin:4px 0; color:var(--primary-deep); font-size:27px; letter-spacing:.08em; }.checkin-head p { margin:0; color:var(--text-2); font-size:10px; }.checkin-summary { display:flex; align-items:center; justify-content:space-between; margin:17px 0 11px; padding:9px 12px; border:1px solid rgba(233,125,104,.22); border-radius:13px 17px 12px 15px; color:var(--text-2); background:rgba(255,253,245,.68); font-size:10px; }.checkin-summary b { color:var(--coral); font-size:16px; }.checkin-summary em { color:var(--primary-deep); font-size:9px; font-style:normal; font-weight:800; }.checkin-week, .checkin-grid { display:grid; grid-template-columns:repeat(7,1fr); gap:0; }.checkin-week { border:1px solid rgba(48,75,67,.4); border-bottom:0; }.checkin-week span { min-height:32px; display:grid; place-items:center; border-right:1px solid rgba(48,75,67,.36); color:var(--text); background:rgba(248,226,177,.72); font-size:11px; font-weight:900; }.checkin-week span:last-child { border-right:0; }.checkin-grid { border-left:1px solid rgba(48,75,67,.4); }.checkin-day, .checkin-blank { min-height:68px; position:relative; border-right:1px solid rgba(48,75,67,.36); border-bottom:1px solid rgba(48,75,67,.36); background:rgba(255,253,245,.58); }.checkin-day b { position:absolute; left:9px; top:8px; color:var(--text-2); font-size:13px; }.checkin-day.today { background:rgba(249,231,187,.5); }.checkin-day.today::after { content:"今天"; position:absolute; right:7px; top:7px; color:var(--coral); font-size:7px; font-weight:900; }.checkin-day-stamp { position:absolute; left:50%; top:50%; display:grid; place-items:center; width:47px; height:47px; border:3px solid rgba(192,62,50,.88); border-radius:50%; color:rgba(185,53,44,.94); font-size:9px; font-weight:900; letter-spacing:.06em; transform:translate(-50%,-42%) rotate(-13deg); }.checkin-day-stamp::after { content:"✦"; position:absolute; inset:4px; display:grid; place-items:end center; border-top:1px solid rgba(192,62,50,.72); font-size:8px; }.checkin-day-stamp.is-stamping { animation:checkin-stamp .7s cubic-bezier(.17,.89,.32,1.27) both; }.checkin-foot { display:flex; align-items:center; gap:8px; margin-top:13px; padding:0 2px; }.checkin-foot > span { width:26px; height:26px; display:grid; place-items:center; border-radius:50%; color:white; background:var(--coral); font-size:12px; }.checkin-foot p { flex:1; margin:0; color:var(--text-2); font-size:9px; }.checkin-done { height:31px; border:0; border-radius:11px 14px 10px 13px; padding:0 10px; color:white; background:var(--primary); font-size:9px; font-weight:900; }@keyframes checkin-stamp { 0% { opacity:0; transform:translate(-38%,-185%) scale(2.6) rotate(9deg); } 58% { opacity:1; transform:translate(-51%,-36%) scale(.94) rotate(-16deg); } 78% { transform:translate(-49%,-46%) scale(1.08) rotate(-11deg); } 100% { transform:translate(-50%,-42%) scale(1) rotate(-13deg); } }
@media (max-width:720px) { .checkin-layer { align-items:center; padding:16px; }.checkin-card { width:100%; max-height:calc(100dvh - 32px); padding:20px 12px calc(17px + env(safe-area-inset-bottom)); border-radius:25px; }.checkin-head { padding:0 30px; }.checkin-head h2 { font-size:22px; }.checkin-week span { min-height:29px; font-size:10px; }.checkin-day, .checkin-blank { min-height:50px; }.checkin-day b { left:6px; top:6px; font-size:11px; }.checkin-day-stamp { width:37px; height:37px; border-width:2px; font-size:7px; }.checkin-day-stamp::after { inset:3px; font-size:6px; }.checkin-foot p { font-size:8px; } }

/* 签到按钮单独触发印章，完成后保留状态但不关闭签到簿。 */
.checkin-done { min-width:58px; color:white; background:var(--coral); box-shadow:0 3px 0 rgba(167,69,55,.25); transition:.18s ease; }.checkin-done:hover:not(:disabled) { transform:translateY(-1px) rotate(-1deg); }.checkin-done:active:not(:disabled) { transform:translateY(2px); box-shadow:0 1px 0 rgba(167,69,55,.25); }.checkin-done:disabled { color:var(--primary-deep); background:var(--primary-soft); box-shadow:none; cursor:default; }

/* 盖章动画完成后展示的签到奖励反馈。 */
.checkin-success-layer { position:fixed; z-index:210; inset:0; display:none; place-items:center; padding:20px; }.checkin-success-layer.open { display:grid; }.checkin-success-backdrop { position:absolute; inset:0; background:rgba(22,65,58,.58); backdrop-filter:blur(8px); animation:event-fade .2s ease both; }.checkin-success-card { width:min(360px, calc(100vw - 34px)); position:relative; z-index:1; overflow:hidden; padding:29px 28px 25px; border:1px solid rgba(255,255,255,.9); border-radius:29px 24px 32px 26px; color:var(--text); background:linear-gradient(145deg,rgba(255,253,244,.99),rgba(238,247,232,.96)); box-shadow:0 28px 88px rgba(12,54,49,.42); text-align:center; animation:notice-in .3s cubic-bezier(.2,.9,.25,1.12) both; }.checkin-success-card::before { content:""; position:absolute; inset:11px; border:1px dashed rgba(46,143,135,.29); border-radius:21px 17px 24px 19px; pointer-events:none; }.checkin-success-card > * { position:relative; z-index:1; }.checkin-success-seal { width:58px; height:58px; display:grid; place-items:center; margin:0 auto 12px; border:3px solid var(--coral); border-radius:50%; color:var(--coral); box-shadow:inset 0 0 0 4px rgba(233,125,104,.13); font-size:27px; font-weight:900; transform:rotate(-11deg); animation:checkin-reward-seal .55s .12s cubic-bezier(.17,.89,.32,1.27) both; }.checkin-success-card h2 { margin:4px 0 5px; color:var(--primary-deep); font-size:25px; }.checkin-success-card p { margin:0; color:var(--text-2); font-size:11px; }.checkin-success-reward { display:grid; grid-template-columns:auto auto auto; justify-content:center; align-items:baseline; gap:6px; margin:20px 0 10px; padding:13px 15px; border:1px solid rgba(233,125,104,.24); border-radius:16px 20px 15px 19px; background:linear-gradient(105deg,rgba(255,239,211,.9),rgba(255,249,236,.83)); }.checkin-success-reward span, .checkin-success-reward small { color:var(--text-2); font-size:10px; font-weight:800; }.checkin-success-reward b { color:var(--coral); font-size:29px; line-height:1; letter-spacing:-.04em; }.checkin-success-note { margin:0 auto 17px; color:var(--primary-deep); font-size:9px; font-weight:800; line-height:1.5; }.checkin-success-done { width:100%; min-height:38px; }.checkin-success-spark { position:absolute; z-index:1; color:var(--sand); font-size:22px; animation:checkin-spark 1.3s ease-in-out infinite; }.checkin-success-spark.spark-left { left:30px; top:55px; }.checkin-success-spark.spark-right { right:33px; top:81px; color:var(--coral); animation-delay:.2s; }@keyframes checkin-reward-seal { from { opacity:0; transform:translateY(-18px) scale(1.5) rotate(5deg); } }@keyframes checkin-spark { 50% { transform:translateY(-4px) scale(.8) rotate(14deg); opacity:.62; } }
@media (max-width:720px) { .checkin-success-layer { padding:16px; }.checkin-success-card { width:min(360px, 100%); padding:26px 22px 21px; } }

/* 登录、模型、世界详情/转生、高级配置 */
.auth-view.active { display: grid; grid-template-columns: minmax(0,1.16fr) minmax(330px,.84fr); align-items: stretch; gap: 0; max-width: 1120px; width: 100%; margin: auto; padding: 0; border-radius: 28px 23px 26px 31px; overflow: hidden; background: var(--surface); box-shadow: var(--shadow); }
.auth-summer-art { position: relative; min-height: 510px; padding: 47px; display: flex; align-items: end; background: linear-gradient(180deg, rgba(29,103,116,.05), rgba(29,88,78,.78)), url("./assets/plaza-summer-beach.png") center / cover; color: #fffdf5; }.auth-summer-art::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 76% 21%, rgba(255,247,207,.58) 0 3%, transparent 3.5%), radial-gradient(circle at 62% 28%, rgba(255,255,255,.7) 0 2%, transparent 2.5%); pointer-events: none; }.auth-summer-art > div { position: relative; z-index: 1; max-width: 330px; }.auth-summer-art .eyebrow { color: #d7f1e8; }.auth-summer-art h1 { margin: 7px 0; font-size: clamp(30px,3.6vw,46px); line-height: 1.1; }.auth-summer-art p { margin: 0; font-size: 12px; line-height: 1.7; opacity: .9; }
.auth-card { padding: 43px 40px; display: flex; flex-direction: column; justify-content: center; }.auth-tabs { align-self: flex-start; }.auth-copy { margin: 29px 0 20px; }.auth-copy h2 { margin: 5px 0 6px; font-size: 25px; }.auth-copy p { margin: 0; color: var(--text-2); font-size: 11px; line-height: 1.65; }.form-field { display: grid; gap: 6px; color: var(--text-2); font-size: 10px; font-weight: 800; }.form-field + .form-field { margin-top: 13px; }.form-field input, .form-field select, .form-field textarea { width: 100%; border: 1px solid var(--line); border-radius: 12px 15px 12px 14px; padding: 0 12px; background: color-mix(in srgb, var(--surface-2) 54%, white); color: var(--text); outline: 0; font-size: 12px; font-weight: 600; }.form-field input, .form-field select { height: 41px; }.form-field textarea { min-height: 74px; padding: 10px 12px; resize: vertical; line-height: 1.55; }.form-field input:focus, .form-field select:focus, .form-field textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(46,143,135,.12); }.auth-submit { width: 100%; margin-top: 21px; }.guest-button { width: 100%; height: 39px; margin-top: 11px; border: 1px dashed var(--line-strong); border-radius: 13px 16px 12px 15px; color: var(--primary-deep); background: transparent; font-size: 11px; font-weight: 800; }.guest-button:hover { background: var(--primary-soft); }.auth-footnote { margin: 16px 0 0; color: var(--muted); font-size: 9px; line-height: 1.5; text-align: center; }

.settings-view, .detail-view, .config-view { overflow-y: auto; }.settings-layout { flex: 1; min-height: 390px; display: grid; grid-template-columns: 205px minmax(0,1fr); gap: 14px; }.settings-aside, .settings-board, .world-notes, .reincarn-panel, .config-editor, .config-preview { border: 1px solid var(--line); border-radius: 20px 24px 18px 22px; background: color-mix(in srgb, var(--surface) 88%, transparent); box-shadow: var(--shadow-soft); }.settings-aside { padding: 11px; align-self: stretch; }.settings-aside button { width: 100%; min-height: 47px; display: grid; grid-template-columns: 26px 1fr auto; align-items: center; gap: 4px; border: 0; border-radius: 12px 15px 13px 14px; background: transparent; color: var(--text-2); text-align: left; font-size: 11px; font-weight: 800; }.settings-aside button span { color: var(--primary); font-size: 18px; text-align: center; }.settings-aside button small { color: var(--muted); font-size: 8px; }.settings-aside button.active { color: var(--primary-deep); background: var(--primary-soft); }.settings-board { padding: 28px; }.settings-intro { display: flex; align-items: center; gap: 15px; }.model-stamp { width: 58px; height: 53px; display: grid; place-items: center; border-radius: 47% 53% 55% 45%; color: white; background: linear-gradient(145deg, var(--sky), var(--primary)); box-shadow: 0 5px 0 var(--primary-deep); font-weight: 900; font-size: 18px; transform: rotate(-4deg); }.settings-intro h2 { margin: 3px 0; font-size: 21px; }.settings-intro p { margin: 0; color: var(--text-2); font-size: 11px; }.model-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 25px 0 14px; }.model-choice button { min-height: 77px; display: grid; grid-template-columns: 35px 1fr auto; align-items: center; gap: 8px; padding: 11px; border: 1px solid var(--line); border-radius: 16px 20px 15px 18px; background: var(--surface); text-align: left; }.model-choice button > span { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 45% 55%; color: white; background: var(--primary); }.model-choice button:nth-child(2) > span { background: var(--sky); }.model-choice button div { display: grid; gap: 3px; }.model-choice button b { font-size: 12px; }.model-choice button small { color: var(--text-2); font-size: 9px; line-height: 1.35; }.model-choice button em { align-self: start; padding: 2px 6px; border-radius: 8px; color: var(--primary-deep); background: var(--primary-soft); font-size: 8px; font-style: normal; }.model-choice button.active { border-color: var(--primary); box-shadow: 0 4px 0 rgba(46,143,135,.2); }.model-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; min-height: 76px; padding: 14px; border-radius: 15px; background: var(--surface-2); }.model-fields .full { grid-column: 1/-1; }.model-fields .form-field + .form-field { margin-top: 0; }.usage-note { display: grid; align-content: center; gap: 3px; padding-left: 13px; border-left: 1px dashed var(--line-strong); }.usage-note b { font-size: 11px; }.usage-note span { color: var(--primary-deep); font-size: 13px; font-weight: 900; }.usage-note small { color: var(--muted); font-size: 9px; }.settings-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 19px; }.settings-actions .soft-button { border: 1px solid var(--line); }

.detail-hero { min-height: 195px; position: relative; flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; gap:20px; padding: 27px 32px; border-radius: 27px 33px 23px 29px; overflow: hidden; color: #fffdf5; background: linear-gradient(92deg, rgba(28,94,91,.94), rgba(28,94,91,.45) 52%, rgba(28,94,91,.08)), url("./assets/island-hero.png") center / cover; box-shadow: var(--shadow); }.detail-hero::after { content: ""; position: absolute; right: 17%; bottom: -34px; width: 200px; height: 67px; border-radius: 50%; border: 2px solid rgba(255,255,255,.5); transform: rotate(-10deg); }.detail-hero-copy { position: relative; z-index: 1; max-width: 570px; }.detail-hero .eyebrow { color: #d4f0e8; }.detail-hero h1 { margin: 4px 0; font-size: 30px; }.detail-hero p { margin: 0; font-size: 11px; line-height: 1.65; opacity: .9; }.detail-tags { display: flex; gap: 6px; margin-top: 11px; }.detail-tags span { padding: 3px 8px; border: 1px solid rgba(255,255,255,.35); border-radius: 8px; background: rgba(255,255,255,.15); font-size: 9px; }.detail-hero-actions { position:relative; z-index:2; display:grid; gap:6px; margin-left:auto; }.owner-tag { justify-self:end; color:#d9f3e8; font-size:8px; }.hero-config-button { min-width:154px; display:grid; grid-template-columns:28px 1fr; align-items:center; gap:4px 7px; padding:9px 11px; border:1px solid rgba(255,255,255,.62); border-radius:16px 20px 14px 18px; color:var(--primary-deep); background:#fff9eb; box-shadow:0 5px 0 rgba(16,73,66,.25); text-align:left; font-size:11px; font-weight:900; }.hero-config-button:hover { transform:translateY(-2px) rotate(-.5deg); }.hero-config-button > span { grid-row:1/3; width:27px; height:27px; display:grid; place-items:center; border-radius:48% 52% 45% 55%; color:white; background:var(--primary); font-size:15px; }.hero-config-button small { color:var(--text-2); font-size:7px; }.detail-hero-mark { position: relative; z-index: 1; width: 104px; height: 104px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.46); border-radius: 47% 53% 43% 57%; background: rgba(255,253,245,.12); font-size: 55px; line-height: .65; transform: rotate(-8deg); }.detail-hero-mark small { position: absolute; bottom: 20px; font-size: 7px; letter-spacing: .12em; transform: rotate(8deg); }.detail-layout { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0,.83fr) minmax(380px,1.17fr); gap: 14px; }.world-notes { padding: 24px; display: flex; flex-direction: column; }.world-notes h2, .reincarn-panel h2 { margin: 4px 0 5px; font-size: 19px; }.world-notes p { margin: 13px 0; color: var(--text-2); font-size: 12px; line-height: 1.7; }.detail-stat-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 5px; margin-top: auto; }.detail-stat-row span { display: grid; gap: 3px; padding: 10px 7px; border-radius: 12px; background: var(--surface-2); color: var(--text-2); font-size: 8px; text-align: center; }.detail-stat-row b { color: var(--primary-deep); font-size: 16px; }.owner-config-link { width:100%; display:grid; grid-template-columns:30px 1fr auto; align-items:center; gap:8px; margin-top:13px; padding:10px; border:1px solid var(--primary); border-radius:14px 18px 13px 17px; color:var(--primary-deep); background:var(--primary-soft); text-align:left; }.owner-config-link > span { width:28px; height:28px; display:grid; place-items:center; border-radius:50%; color:white; background:var(--primary); }.owner-config-link div { display:grid; gap:2px; }.owner-config-link b { font-size:10px; }.owner-config-link small { color:var(--text-2); font-size:8px; }.owner-config-link em { font-style:normal; font-size:16px; }.reincarn-panel { padding:22px; }.reincarn-panel header p { margin:0; color:var(--text-2); font-size:10px; }.role-tabs { display:flex; gap:5px; margin:13px 0 9px; padding:4px; border-radius:14px; background:var(--surface-2); }.role-tabs button { flex:1; height:31px; border:0; border-radius:10px 13px 9px 12px; color:var(--text-2); background:transparent; font-size:9px; font-weight:800; }.role-tabs button.active { color:var(--primary-deep); background:var(--surface); box-shadow:var(--shadow-soft); }.role-tab-panel[hidden] { display:none; }.role-toolbar { display:flex; justify-content:space-between; align-items:center; gap:7px; margin-bottom:8px; color:var(--muted); font-size:8px; }.role-toolbar div { display:flex; gap:4px; }.role-toolbar button { height:26px; border:1px solid var(--line); border-radius:9px 11px 8px 10px; padding:0 7px; color:var(--primary-deep); background:var(--surface-2); font-size:8px; font-weight:800; }.role-toolbar button:first-child { color:white; background:var(--primary); border-color:var(--primary); }.role-options { display:grid; grid-template-columns:repeat(2,1fr); gap:8px; margin:0 0 14px; }.role-card { min-height:91px; position:relative; display:grid; align-content:start; gap:6px; padding:11px; border:1px solid var(--line); border-radius:15px 18px 14px 17px; background:var(--surface); text-align:left; }.role-card.active { border-color:var(--primary); background:color-mix(in srgb, var(--primary-soft) 55%, var(--surface)); box-shadow:0 3px 0 rgba(46,143,135,.2); }.role-card b { font-size:11px; }.role-card small { color:var(--text-2); font-size:8px; line-height:1.4; }.role-card em { position:absolute; right:8px; top:8px; color:var(--primary-deep); font-size:8px; font-style:normal; }.role-portrait { width:33px; height:33px; display:grid; place-items:center; border-radius:46% 54% 50% 50%; color:white; font-weight:900; }.role-portrait.teal { background:var(--primary); }.role-portrait.coral { background:var(--coral); }.role-portrait.sand { color:var(--primary-deep); background:var(--sand); }.custom-role-grid { display:grid; grid-template-columns:1fr 1fr; gap:9px; padding:10px; border:1px dashed var(--line-strong); border-radius:15px 18px 14px 17px; background:var(--surface-2); }.custom-role-grid .full { grid-column:1/-1; }.custom-role-note { margin:8px 2px 13px; color:var(--muted); font-size:8px; line-height:1.5; }.reincarn-submit { float:right; }

.config-workspace { flex: 1; min-height: 360px; display: grid; grid-template-columns: 115px minmax(0,1fr) 185px; gap: 12px; }.config-tabs { padding: 8px; border: 1px solid var(--line); border-radius: 16px 20px 17px 18px; background: color-mix(in srgb, var(--surface) 82%, transparent); }.config-tabs button { width: 100%; height: 35px; border: 0; border-radius: 10px; background: transparent; color: var(--text-2); text-align: left; padding-left: 10px; font-size: 10px; font-weight: 800; }.config-tabs button.active { color: var(--primary-deep); background: var(--primary-soft); }.config-editor { padding: 20px; }.editor-head { display: flex; justify-content: space-between; align-items: start; padding-bottom: 13px; margin-bottom: 15px; border-bottom: 1px dashed var(--line); }.editor-head div { display: grid; gap: 3px; }.editor-head b { font-size: 14px; }.editor-head small, .editor-head > span { color: var(--muted); font-size: 9px; }.editor-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }.editor-grid .full { grid-column: 1/-1; }.editor-grid .form-field + .form-field { margin-top: 0; }.config-preview { padding: 18px; }.config-preview h3 { margin: 5px 0 13px; font-size: 14px; }.config-ring { width: 84px; height: 84px; display: grid; place-items: center; margin: 3px auto 17px; border-radius: 50%; background: radial-gradient(closest-side, var(--surface) 77%, transparent 78% 100%), conic-gradient(var(--primary) 82%, var(--surface-2) 0); }.config-ring b { color: var(--primary-deep); font-size: 17px; }.config-preview ul { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; color: var(--text-2); font-size: 9px; }.config-preview li { padding-bottom: 7px; border-bottom: 1px dashed var(--line); }.config-header-actions { display: flex; gap: 8px; }.config-header-actions .soft-button { border: 1px solid var(--line); }

@media (max-width: 1180px) and (min-width: 721px) {
  .app-shell { grid-template-columns: 206px minmax(0,1fr); }
  .world-grid, .plaza-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .play-layout { grid-template-columns: minmax(0,1fr) 288px; }
  .play-status { flex-basis:auto; min-height:116px; grid-template-columns:minmax(170px,1fr) minmax(190px,260px) minmax(120px,auto); }
  .character-resources { grid-column:1/3; grid-row:2; justify-content:flex-start; }.world-clock { grid-column:3; grid-row:1/3; }
  .welcome-card { height: 126px; flex-basis: 126px; }
  .search-box { width: 120px; }
  .world-card { grid-template-columns: 92px 1fr; }
}

@media (max-height: 720px) and (min-width: 721px) {
  .welcome-card { height: 108px; flex-basis: 108px; }.welcome-copy { padding-top: 13px; }.weather-orb { width: 67px; height: 67px; top: 14px; }.welcome-stats { margin-top: 7px; }
  .page-view { padding-top: 14px; }.world-card p { -webkit-line-clamp: 1; }.library-head { flex-basis: 45px; }.pager-wrap { flex-basis: 36px; }
}

@media (max-width: 720px) {
  body { overflow: hidden; }
  .app-shell { display: block; height: 100dvh; }
  .side-rail { display: none; }
  .main-stage { height: 100dvh; padding-bottom: calc(66px + env(safe-area-inset-bottom)); }
  .topbar { height: 58px; flex-basis: 58px; padding: 0 15px; background: color-mix(in srgb, var(--bg) 92%, white); }
  .crumbs, .points-pill, .top-actions > .avatar { display: none; }
  .mobile-brand { display: flex; align-items: center; gap: 8px; }.mobile-brand .brand-mark { width: 31px; height: 31px; }.mobile-brand .brand-mark i:nth-child(1), .mobile-brand .brand-mark i:nth-child(2) { width: 5px; height: 5px; }.mobile-brand .brand-mark i:nth-child(3) { width: 12px; height: 4px; left: 10px; bottom: 6px; }.mobile-brand strong { font-size: 15px; }
  .mobile-theme { display: grid; place-items: center; }
  .page-view { overflow-y: auto; padding: 13px 13px 18px; gap: 12px; }
  .welcome-card { height: 170px; flex-basis: 170px; border-radius: 19px 24px 18px 23px; background: linear-gradient(0deg, rgba(31,84,76,.87), rgba(31,84,76,.05) 80%), url("./assets/island-hero.png") 66% center / cover; }
  .welcome-copy { padding: 73px 17px 14px; }.welcome-copy h1 { font-size: 22px; }.welcome-copy p { max-width: 85%; font-size: 10px; }.welcome-stats { gap: 7px; margin-top: 10px; }.welcome-stats span:last-child, .welcome-stats i:last-of-type { display: none; }.weather-orb { width: 61px; height: 61px; right: 13px; top: 11px; }.weather-orb span { font-size: 20px; }
  .library-panel { flex: none; min-height: 0; }
  .library-head { flex: none; display: grid; height: auto; gap: 9px; }
  .segmented { width: 100%; }.segmented button { flex: 1; padding: 0 8px; }
  .library-tools { display: grid; grid-template-columns: 1fr auto; }.search-box { width: auto; }.library-tools select { max-width: 115px; }.library-tools .primary-button { grid-column: 1/-1; }
  .world-grid { flex: none; display: grid; grid-template-columns: 1fr; grid-template-rows: none; gap: 10px; padding-top: 10px; overflow: visible; }
  .world-card { min-height: 152px; grid-template-columns: 105px 1fr; }.world-card p { -webkit-line-clamp: 2; }
  .pager-wrap { flex: none; min-height: 48px; align-items: center; }.pagination button { min-width: 32px; }.pagination button.page-number:not(.current) { display: none; }
  .page-title-row { display: block; }.page-title-row h1 { font-size: 24px; }.page-title-row p { line-height: 1.55; }.plaza-sort { margin-top: 12px; }
  .feature-strip { align-items: flex-start; padding: 14px; }.feature-strip .feature-badge { display: none; }.feature-strip .soft-button { flex: 0 0 auto; font-size: 0; width: 36px; padding: 0; }.feature-strip .soft-button::after { content: "→"; font-size: 15px; }
  .plaza-grid { flex: none; display: grid; grid-template-columns: 1fr; grid-template-rows: none; }.plaza-card { min-height: 150px; }.plaza-card:nth-child(n+4) { display: none; }
  .play-view { overflow: hidden; }
  .play-status { flex: 0 0 auto; grid-template-columns: 1fr auto; padding: 9px 11px; gap: 8px; }.status-bars { grid-column: 1; grid-row: 2; }.character-resources { grid-column:1/-1; grid-row:3; justify-content:stretch; align-items:stretch; }.resource-chip { min-width:0; flex:1; height:42px; }.realm-chip.has-progress { height:52px; }.world-clock { grid-column: 2; grid-row: 1; }.player-summary h2 small { display: block; margin-top: 1px; }.avatar--hero { width: 40px; height: 40px; }
  .world-clock { padding: 3px; }.world-clock > span { width: 27px; height: 27px; font-size: 18px; }.world-clock small { max-width: 68px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.weather-menu { position: fixed; width: calc(100vw - 24px); right: 12px; top: 62px; }.weather-menu::before { right: 23px; }.weather-caption { top: 9px; left: 9px; max-width: 205px; }
  .play-layout { display: block; flex: 1; min-height: 0; }.story-journal { height: 100%; }.story-scroll { padding: 11px 17px 18px; font-size: 13px; }.action-composer { margin: 0 8px 8px; grid-template-columns: 34px 1fr auto; }.action-composer.voice-mode{grid-template-columns:34px minmax(0,1fr)}.send-button { padding: 0 11px; }.composer-voice-toggle { width: 32px; height: 32px; }.voice-hold-button{height:40px;font-size:12px}
  .travel-panel { position: fixed; z-index: 40; left: 0; right: 0; bottom: calc(64px + env(safe-area-inset-bottom)); max-height: 78dvh; border-radius: 25px 25px 0 0; transform: translateY(110%); transition: transform .28s ease; box-shadow: 0 -18px 55px rgba(35,68,58,.25); }.travel-panel.open { transform: translateY(0); }.panel-close { display: block; }.mobile-kit-button { display: block; position: absolute; right: 19px; bottom: calc(76px + env(safe-area-inset-bottom)); z-index: 20; height: 36px; border: 0; border-radius: 18px; padding: 0 13px; color: white; background: var(--primary); box-shadow: var(--shadow); font-size: 10px; font-weight: 800; }
  .mobile-nav { position: fixed; z-index: 50; left: 0; right: 0; bottom: 0; height: calc(64px + env(safe-area-inset-bottom)); padding: 7px 9px env(safe-area-inset-bottom); display: grid; grid-template-columns: repeat(4,1fr); gap: 3px; background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: blur(15px); border-top: 1px solid var(--line); }.mobile-nav button { border: 0; border-radius: 12px; background: transparent; color: var(--muted); display: grid; place-items: center; align-content: center; gap: 2px; font-size: 9px; }.mobile-nav button span { font-size: 18px; }.mobile-nav button.active { color: var(--primary-deep); background: var(--primary-soft); }
  .modal-card { padding: 24px 18px; }.modal-illustration { width: 68px; margin-right: 23px; }
  .event-blob-shell { width: min(430px, calc(100vw - 18px)); }.event-blob { min-height: 300px; padding: 38px 30px 30px; }.event-blob h2 { font-size: 22px; }.event-blob p { font-size: 11px; }.event-actions { gap: 9px; }.blob-button { min-width: 96px; height: 41px; }
  .toast { bottom: calc(76px + env(safe-area-inset-bottom)); white-space: nowrap; }
}

@media (max-width: 720px) {
  #view-plaza { margin: 0; padding: 13px 13px calc(88px + env(safe-area-inset-bottom)); }
  #view-plaza .page-title-row { padding-top: 5px; }.plaza-banner { min-height:116px; padding-right:90px; }.plaza-banner-mark { right:11px; bottom:19px; transform:scale(.78) rotate(-7deg); }
  .auth-view.active { display: flex; width: auto; min-height: 100%; margin: -13px -13px -18px; padding: 0 0 calc(70px + env(safe-area-inset-bottom)); border-radius: 0; overflow-y: auto; background: var(--surface); }.auth-summer-art { min-height: 225px; padding: 27px 23px; align-items: end; background-position: 64% center; }.auth-summer-art h1 { font-size: 29px; }.auth-card { padding: 26px 20px; }.auth-copy { margin: 22px 0 18px; }.auth-copy h2 { font-size: 22px; }
  .settings-view, .detail-view, .config-view { padding-bottom: calc(82px + env(safe-area-inset-bottom)); }.settings-layout, .detail-layout, .config-workspace { display: flex; flex-direction: column; min-height: auto; }.settings-aside { display: flex; gap: 5px; overflow-x: auto; padding: 6px; }.settings-aside button { min-width: 128px; grid-template-columns: 22px 1fr; }.settings-aside button small { display: none; }.settings-board { padding: 19px 15px; }.settings-intro h2 { font-size: 19px; }.model-choice { grid-template-columns: 1fr; margin: 18px 0 12px; }.model-fields { grid-template-columns: 1fr; }.model-fields .full { grid-column: auto; }.usage-note { padding-left: 0; padding-top: 10px; border-left: 0; border-top: 1px dashed var(--line-strong); }.settings-actions { margin-top: 14px; }
  .detail-hero { min-height: 236px; padding: 23px 19px; align-items: end; background-position: 60% center; }.detail-hero h1 { font-size: 24px; }.detail-hero-mark { position: absolute; right: 18px; top: 18px; width: 73px; height: 73px; font-size: 40px; }.detail-hero-mark small { bottom: 12px; font-size: 5px; }.detail-layout { gap: 11px; }.world-notes, .reincarn-panel { padding: 17px; }.detail-stat-row { margin-top: 7px; }.role-options { grid-template-columns: 1fr; }.role-card { min-height: 68px; grid-template-columns: 35px 1fr; align-content: center; column-gap: 8px; }.role-card .role-portrait { grid-row: 1 / 3; }.reincarn-submit { width: 100%; float: none; }
  .config-workspace { gap: 9px; }.config-tabs { display: flex; overflow-x: auto; gap: 4px; }.config-tabs button { flex: 0 0 auto; width: auto; padding: 0 11px; }.config-editor { padding: 16px; }.editor-head { gap: 9px; }.editor-grid { grid-template-columns: 1fr; }.editor-grid .full { grid-column: auto; }.config-preview { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 6px 16px; }.config-preview h3 { margin: 2px 0; }.config-ring { grid-row: 1 / span 2; grid-column: 2; margin: 0; }.config-preview ul { grid-column: 1/-1; grid-template-columns: 1fr 1fr; }.config-header-actions { margin-top: 12px; justify-content: space-between; }.config-header-actions .primary-button { min-width: 100px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* 岛屿日历与全屏地图：原创手帐装饰，日历可在两类世界共用。 */
.calendar-layer, .map-layer { position:fixed; z-index:180; inset:0; display:none; place-items:center; padding:20px; }.calendar-layer.open, .map-layer.open { display:grid; }.calendar-backdrop, .map-backdrop { position:absolute; inset:0; background:rgba(22,65,58,.52); backdrop-filter:blur(8px); }.calendar-card { width:min(670px, calc(100vw - 34px)); max-height:calc(100dvh - 40px); position:relative; z-index:1; overflow:auto; padding:25px 30px 24px; border:1px solid rgba(255,255,255,.8); border-radius:32px 26px 35px 29px; background:linear-gradient(150deg, rgba(255,252,241,.94), rgba(232,245,237,.92)), url("./assets/plaza-summer-beach.png") center 80% / cover; box-shadow:0 28px 88px rgba(12,54,49,.4); animation:notice-in .3s cubic-bezier(.2,.9,.25,1.12) both; }.calendar-card::before { content:""; position:absolute; inset:0; pointer-events:none; background:linear-gradient(180deg,rgba(255,253,245,.7),rgba(255,253,245,.32)); }.calendar-card > * { position:relative; z-index:1; }.calendar-close, .map-close { width:32px; height:32px; border:1px solid var(--line); border-radius:50%; color:var(--text-2); background:rgba(255,253,245,.82); font-size:20px; }.calendar-close { position:absolute; right:16px; top:14px; }.calendar-head { text-align:center; }.calendar-head h2 { margin:4px 0 4px; color:var(--primary-deep); font-size:24px; }.calendar-head p { margin:0; color:var(--text-2); font-size:10px; }.calendar-nav { display:flex; align-items:center; justify-content:space-between; margin:17px 0 11px; padding:0 3px; }.calendar-nav button { height:29px; border:1px solid var(--line); border-radius:11px 13px 10px 12px; padding:0 9px; color:var(--primary-deep); background:rgba(255,253,245,.76); font-size:9px; }.calendar-nav b { color:var(--text-2); font-size:11px; }.calendar-week, .calendar-grid { display:grid; grid-template-columns:repeat(7,1fr); gap:5px; }.calendar-week { margin-bottom:5px; }.calendar-week span { color:var(--muted); text-align:center; font-size:9px; }.calendar-grid button, .calendar-blank { min-height:57px; position:relative; display:grid; place-items:center; align-content:center; gap:3px; border:1px solid rgba(112,159,140,.25); border-radius:14px 11px 15px 12px; color:var(--text-2); background:rgba(255,253,245,.68); }.calendar-grid button { cursor:pointer; transition:.18s ease; }.calendar-grid button b { font-size:12px; }.calendar-grid button i { font-style:normal; font-size:11px; }.calendar-grid button:hover, .calendar-grid button.active { transform:translateY(-2px) rotate(-.5deg); color:var(--primary-deep); border-color:var(--primary); background:var(--primary-soft); box-shadow:0 4px 0 rgba(46,143,135,.14); }.calendar-grid button.today::after { content:"今天"; position:absolute; top:3px; right:4px; color:var(--coral); font-size:6px; font-weight:900; }.calendar-grid button.has-note { border-style:dashed; }.calendar-day-card { min-height:75px; display:grid; grid-template-columns:42px 1fr; align-items:center; gap:10px; margin-top:14px; padding:12px 14px; border:1px solid rgba(255,255,255,.75); border-radius:18px 23px 17px 21px; background:rgba(255,253,245,.78); box-shadow:0 7px 18px rgba(35,91,80,.11); }.calendar-day-card > span { width:38px; height:38px; display:grid; place-items:center; border-radius:48% 52% 43% 57%; color:white; background:var(--coral); font-size:19px; transform:rotate(-6deg); }.calendar-day-card div { display:grid; gap:2px; }.calendar-day-card small { color:var(--muted); font-size:8px; }.calendar-day-card b { font-size:12px; }.calendar-day-card p { margin:0; color:var(--text-2); font-size:9px; line-height:1.5; }.calendar-coconut { position:absolute; z-index:2; width:38px; height:38px; border-radius:50%; background:#8d6045; transform:rotate(-24deg); }.calendar-coconut::before { content:""; position:absolute; left:13px; top:10px; width:12px; height:12px; border-radius:50%; background:#d9a077; }.calendar-coconut i { position:absolute; width:31px; height:9px; border-radius:100% 0 100% 0; background:var(--leaf); transform-origin:right center; }.calendar-coconut i:nth-child(1) { left:-22px; top:-6px; transform:rotate(-40deg); }.calendar-coconut i:nth-child(2) { left:-27px; top:9px; transform:rotate(-3deg); }.calendar-coconut i:nth-child(3) { left:-17px; top:25px; transform:rotate(35deg); }.coconut-left { left:20px; top:29px; }.calendar-shell { position:absolute; z-index:2; color:#f0b377; font-size:50px; text-shadow:0 3px 0 rgba(173,95,66,.22); }.shell-right { right:22px; bottom:20px; transform:rotate(-22deg); }
.map-fullscreen { width:min(1100px, calc(100vw - 32px)); height:min(720px, calc(100dvh - 32px)); position:relative; z-index:1; display:flex; flex-direction:column; padding:18px; border:1px solid rgba(255,255,255,.76); border-radius:27px 23px 30px 25px; overflow:hidden; background:var(--surface); box-shadow:0 28px 88px rgba(12,54,49,.42); animation:notice-in .3s cubic-bezier(.2,.9,.25,1.12) both; }.map-fullscreen > header { display:flex; align-items:center; justify-content:space-between; gap:14px; padding:0 4px 13px; }.map-fullscreen h2 { margin:3px 0 0; font-size:22px; }.map-fullscreen > header > div:last-child { display:flex; align-items:center; gap:10px; }.map-progress { padding:5px 8px; border-radius:10px; color:var(--primary-deep); background:var(--primary-soft); font-size:9px; font-weight:800; }.map-full-canvas { flex:1; min-height:0; position:relative; overflow:hidden; border:1px solid var(--line); border-radius:20px 25px 19px 23px; background:radial-gradient(circle at 24% 18%, rgba(255,255,255,.5) 0 2px, transparent 2.5px), linear-gradient(140deg, #8cced1, #c9e7db 50%, #7fc1c4); }.map-full-canvas::before { content:""; position:absolute; inset:12px; border:1px dashed rgba(255,253,245,.65); border-radius:17px 21px 15px 19px; }.map-land { position:absolute; z-index:2; width:132px; height:92px; display:grid; place-items:center; align-content:center; gap:3px; border-radius:50% 45% 54% 43%; color:var(--primary-deep); background:radial-gradient(ellipse at 40% 33%, #f8e4a7 0 42%, #86b871 43% 70%, #4e9465 71%); box-shadow:inset -13px -11px 0 rgba(36,111,82,.22), 0 6px 0 rgba(36,111,82,.13); transform:rotate(-8deg); }.map-land b { position:relative; z-index:1; font-size:13px; }.map-land small { position:relative; z-index:1; font-size:8px; }.map-land i { position:absolute; right:13px; bottom:11px; width:22px; height:22px; display:grid; place-items:center; border-radius:50%; color:white; background:var(--coral); font-style:normal; font-size:11px; }.land-harbor { left:19%; bottom:20%; }.land-bell { right:16%; top:17%; width:145px; height:103px; transform:rotate(13deg); }.land-whale { left:43%; top:42%; width:108px; height:75px; }.land-mist { right:29%; bottom:13%; width:94px; height:65px; filter:saturate(.46); }.map-dash { position:absolute; z-index:1; height:2px; border-top:3px dashed rgba(255,253,245,.85); transform-origin:left center; }.route-a { width:35%; left:30%; top:49%; transform:rotate(-29deg); }.route-b { width:28%; left:47%; top:56%; transform:rotate(31deg); }.route-c { width:22%; left:29%; top:67%; transform:rotate(9deg); }.map-compass { position:absolute; z-index:3; left:27px; top:24px; display:grid; place-items:center; width:43px; height:43px; border:2px solid rgba(255,253,245,.75); border-radius:50%; color:#fffaf0; font-size:10px; font-weight:900; }.map-compass i { position:absolute; bottom:4px; color:#fffaf0; font-size:13px; font-style:normal; }.map-wave { position:absolute; color:rgba(255,253,245,.62); font-size:34px; letter-spacing:-6px; }.wave-one { right:9%; bottom:9%; transform:rotate(17deg); }.wave-two { left:8%; top:17%; transform:rotate(-18deg); }.map-fullscreen > footer { display:flex; flex-wrap:wrap; gap:7px; padding:13px 4px 0; }.map-fullscreen > footer button { height:32px; padding:0 10px; border:1px solid var(--line); border-radius:11px 14px 10px 13px; color:var(--primary-deep); background:var(--surface-2); font-size:9px; font-weight:800; }.map-fullscreen > footer button:first-child { color:white; background:var(--primary); }

@media (max-width:720px) { .play-status { grid-template-columns:minmax(0,1fr) auto; gap:7px; }.world-calendar-trigger { grid-column:1; grid-row:2; justify-self:start; }.status-bars { grid-column:1/-1; grid-row:3; }.world-clock { grid-column:2; grid-row:1; }.calendar-layer, .map-layer { align-items:end; padding:0; }.calendar-card { width:100%; max-height:90dvh; padding:23px 16px calc(18px + env(safe-area-inset-bottom)); border-radius:25px 25px 0 0; border-bottom:0; }.calendar-head h2 { font-size:20px; }.calendar-grid { gap:3px; }.calendar-grid button, .calendar-blank { min-height:43px; border-radius:10px 8px 11px 9px; }.calendar-coconut { display:none; }.shell-right { right:9px; bottom:8px; font-size:35px; }.map-fullscreen { width:100%; height:100dvh; padding:14px; border:0; border-radius:0; }.map-fullscreen h2 { font-size:19px; }.map-full-canvas { min-height:380px; }.map-land { transform:scale(.75) rotate(-8deg); }.land-bell { transform:scale(.75) rotate(13deg); }.land-harbor { left:7%; bottom:24%; }.land-bell { right:2%; top:16%; }.land-whale { left:35%; top:45%; }.land-mist { right:14%; bottom:14%; }.map-fullscreen > footer { display:grid; grid-template-columns:1fr 1fr; }.map-fullscreen > footer button:last-child { grid-column:1/-1; } }

/* 全局公告栏：独立于当前页面，可在世界、广场和旅程中随时打开 */
.notice-fab { height: 36px; position: relative; display: flex; align-items: center; gap: 5px; padding: 0 10px 0 5px; border: 1px solid var(--line); border-radius: 17px 15px 18px 14px; color: var(--primary-deep); background: var(--surface); box-shadow: var(--shadow-soft); font-size: 10px; font-weight: 900; transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }.notice-fab:hover { transform: translateY(-1px) rotate(-1deg); background: var(--primary-soft); box-shadow: 0 5px 0 rgba(46,143,135,.18); }.notice-fab:active { transform: translateY(2px); box-shadow: none; }.notice-fab-icon { width: 25px; height: 25px; display: grid; place-items: center; border-radius: 48% 52% 45% 55%; color: white; background: var(--primary); font-size: 13px; }.notice-fab b { min-width: 16px; height: 16px; position: absolute; right: -5px; top: -6px; display: grid; place-items: center; border: 2px solid var(--surface); border-radius: 50%; color: white; background: var(--coral); font-size: 8px; animation: notice-pulse 1.7s ease-in-out infinite; }.notice-fab.no-unread b { display: none; } @keyframes notice-pulse { 50% { transform: scale(.82); opacity: .62; } }
.notice-layer { position: fixed; z-index: 170; inset: 0; display: none; place-items: center; padding: 20px; }.notice-layer.open { display: grid; }.notice-backdrop { position: absolute; inset: 0; background: rgba(26,54,47,.44); backdrop-filter: blur(6px); animation: event-fade .2s ease both; }.notice-card { width: min(790px, calc(100vw - 34px)); max-height: min(630px, calc(100dvh - 42px)); position: relative; z-index: 1; display: flex; flex-direction: column; overflow: hidden; border: 1px solid rgba(255,255,255,.78); border-radius: 28px 23px 31px 25px; background: var(--surface); box-shadow: 0 26px 85px rgba(20,55,47,.35); animation: notice-in .28s cubic-bezier(.2,.9,.25,1.12) both; }.notice-head { flex: 0 0 auto; display: flex; align-items: start; justify-content: space-between; padding: 20px 24px 13px; background: linear-gradient(112deg, var(--primary-soft), color-mix(in srgb, var(--sand) 60%, white)); }.notice-head h2 { margin: 3px 0 0; font-size: 22px; }.notice-close { width: 33px; height: 33px; border: 1px solid var(--line); border-radius: 48% 52% 45% 55%; color: var(--text-2); background: rgba(255,253,245,.76); font-size: 20px; }.notice-close:hover { color: var(--primary-deep); transform: rotate(7deg); }.notice-tabs { flex: 0 0 auto; display: flex; gap: 5px; padding: 9px 18px; border-bottom: 1px dashed var(--line); background: var(--surface); }.notice-tabs button { height: 31px; border: 0; border-radius: 11px 14px 10px 13px; padding: 0 11px; color: var(--text-2); background: transparent; font-size: 10px; font-weight: 800; }.notice-tabs button b { margin-left: 4px; color: var(--muted); font-size: 8px; }.notice-tabs button.active { color: var(--primary-deep); background: var(--primary-soft); }.notice-main { flex: 1; min-height: 0; display: grid; grid-template-columns: 245px minmax(0,1fr); }.notice-list { min-height: 0; padding: 11px; overflow-y: auto; border-right: 1px dashed var(--line); background: color-mix(in srgb, var(--surface-2) 58%, white); }.notice-item { width: 100%; min-height: 67px; position: relative; display: grid; grid-template-columns: 10px minmax(0,1fr); align-content: center; gap: 7px; padding: 10px; margin-bottom: 7px; border: 1px solid transparent; border-radius: 13px 16px 12px 15px; color: var(--text); background: transparent; text-align: left; }.notice-item:hover { background: rgba(255,255,255,.72); border-color: var(--line); }.notice-item.active { border-color: rgba(46,143,135,.42); background: var(--surface); box-shadow: 0 3px 0 rgba(46,143,135,.13); }.notice-dot { width: 7px; height: 7px; margin-top: 4px; border-radius: 50%; background: var(--coral); }.notice-item.read .notice-dot { background: var(--line-strong); }.notice-item div { min-width: 0; display: grid; gap: 4px; }.notice-item b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }.notice-item small { color: var(--muted); font-size: 8px; }.notice-detail { min-height: 0; overflow-y: auto; padding: 24px 27px; background: var(--surface); }.notice-detail .notice-type { display: inline-flex; padding: 3px 8px; border-radius: 9px; color: var(--primary-deep); background: var(--primary-soft); font-size: 8px; font-weight: 900; }.notice-detail h3 { margin: 8px 0 4px; font-size: 22px; }.notice-detail time { color: var(--muted); font-size: 9px; }.notice-banner { height: 98px; display: flex; align-items: end; padding: 15px; margin: 17px 0 15px; border-radius: 17px 22px 16px 20px; overflow: hidden; color: white; background: linear-gradient(115deg, rgba(28,104,98,.84), rgba(44,152,143,.35)), url("./assets/plaza-summer-beach.png") center 62% / cover; font-size: 27px; }.notice-banner.activity { background: linear-gradient(115deg, rgba(213,112,89,.83), rgba(248,191,132,.25)), url("./assets/island-hero.png") center / cover; }.notice-content { color: var(--text-2); font-size: 12px; line-height: 1.8; }.notice-content p { margin: 0 0 11px; }.notice-content strong { color: var(--text); }.notice-cta { display: inline-flex; align-items: center; height: 38px; border: 0; padding: 0 16px; border-radius: 13px 16px 12px 15px; color: white; background: var(--coral); box-shadow: 0 4px 0 rgba(190,90,70,.4); font-size: 11px; font-family: inherit; font-weight: 900; text-decoration: none; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease; }.notice-cta:hover { transform: translateY(-1px) rotate(-.5deg); }.notice-cta:active { transform: translateY(3px); box-shadow: none; }.notice-item.pinned { border-color: rgba(233,125,104,.4); background: rgba(255,244,234,.55); }.notice-item.pinned .notice-dot { background: var(--coral); }.survey-layer { position: fixed; z-index: 210; inset: 0; display: none; place-items: center; padding: 18px; }.survey-layer.open { display: grid; }.survey-backdrop { position: absolute; inset: 0; background: rgba(22,65,58,.56); backdrop-filter: blur(8px); animation: event-fade .2s ease both; }.survey-sheet { width: min(680px, calc(100vw - 32px)); height: min(720px, calc(100dvh - 32px)); position: relative; z-index: 1; display: flex; flex-direction: column; overflow: hidden; border: 1px solid rgba(255,255,255,.8); border-radius: 28px 23px 31px 25px; background: var(--surface); box-shadow: 0 28px 88px rgba(12,54,49,.42); animation: notice-in .28s cubic-bezier(.2,.9,.25,1.12) both; }.survey-head { flex: 0 0 auto; display: grid; gap: 13px; padding: 20px 26px 15px; background: linear-gradient(112deg, var(--primary-soft), color-mix(in srgb, var(--sand) 60%, white)); }.survey-head-row { display: flex; align-items: start; justify-content: space-between; gap: 14px; }.survey-progress { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 11px; }.survey-progress-bar { height: 5px; border-radius: 3px; overflow: hidden; background: rgba(255,255,255,.62); }.survey-progress-bar i { display: block; height: 100%; border-radius: 3px; background: var(--primary); transition: width .3s cubic-bezier(.3,.9,.4,1); }.survey-progress span { font-family: inherit; font-size: 9px; font-weight: 900; color: var(--primary-deep); white-space: nowrap; }.survey-page-lead { margin: 0 0 18px; padding-bottom: 13px; border-bottom: 1px dashed var(--line); color: var(--text-2); font-size: 11px; line-height: 1.6; }.survey-head h2 { margin: 3px 0 4px; font-size: 21px; }.survey-head p { margin: 0; max-width: 46ch; color: var(--text-2); font-size: 10px; line-height: 1.6; }.survey-close { flex: 0 0 auto; width: 33px; height: 33px; border: 1px solid var(--line); border-radius: 48% 52% 45% 55%; color: var(--text-2); background: rgba(255,253,245,.76); font-size: 20px; }.survey-close:hover { color: var(--primary-deep); transform: rotate(7deg); }.survey-body { flex: 1; min-height: 0; overflow-y: auto; padding: 22px 26px; }.survey-question { margin-bottom: 22px; }.survey-question:last-child { margin-bottom: 0; }.survey-question > b { display: block; margin-bottom: 11px; color: var(--text); font-size: 12px; font-weight: 900; }.survey-question > b small { margin-left: 6px; color: var(--muted); font-size: 9px; font-weight: 700; }.survey-question.is-missing { margin: 0 -11px 22px; padding: 11px; border-radius: 13px 16px 12px 15px; background: rgba(233,125,104,.07); box-shadow: inset 0 0 0 1px rgba(233,125,104,.38); }.survey-question.is-missing > b::after { content: "必答"; margin-left: 7px; padding: 2px 6px; border-radius: 7px; color: white; background: var(--coral); font-size: 8px; font-weight: 900; vertical-align: 1px; }.survey-options { display: grid; gap: 6px; max-width: 76%; }.survey-options label { display: flex; align-items: center; gap: 9px; min-height: 38px; padding: 8px 13px; border: 1px solid var(--line); border-radius: 12px 15px 11px 14px; color: var(--text-2); background: var(--surface-2); font-size: 10.5px; font-weight: 800; line-height: 1.5; text-align: left; cursor: pointer; transition: .15s ease; }.survey-options label > span { flex: 1; min-width: 0; }.survey-options label:has(input:checked) { color: white; background: var(--primary); border-color: var(--primary); box-shadow: 0 3px 0 var(--primary-deep); }.survey-options input { width: 14px; height: 14px; accent-color: var(--primary); }.survey-options label.is-locked { opacity: .38; cursor: not-allowed; }.survey-options--dense { gap: 5px; }.survey-options--dense label { min-height: 33px; padding: 6px 12px; }.rate-grid { display: grid; gap: 5px; }.rate-legend { display: grid; grid-template-columns: minmax(0,1fr) repeat(5, 36px) 54px; gap: 4px; align-items: center; padding-bottom: 3px; }.rate-legend i { color: var(--muted); font-size: 8px; font-style: normal; font-weight: 900; text-align: center; }.rate-legend i.na { font-size: 7px; }.rate-row { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 9px; padding: 5px 9px; border: 1px solid var(--line); border-radius: 11px 14px 10px 13px; background: var(--surface-2); }.rate-row > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); font-size: 10px; font-weight: 800; }.rate-btns { display: grid; grid-template-columns: repeat(5, 36px) 54px; gap: 4px; }.rate-btns button { height: 30px; border: 1px solid var(--line); border-radius: 8px 10px 7px 9px; color: var(--text-2); background: var(--surface); font-size: 11px; font-weight: 900; transition: .14s ease; }.rate-btns button:hover { border-color: var(--primary); color: var(--primary-deep); }.rate-btns button.active { color: white; background: var(--primary); border-color: var(--primary); box-shadow: 0 2px 0 var(--primary-deep); }.rate-btns button.rate-na { border-style: dashed; color: var(--muted); font-size: 8px; }.rate-btns button.rate-na.active { color: white; background: var(--muted); border-color: var(--muted); box-shadow: 0 2px 0 color-mix(in srgb, var(--muted) 70%, black); }.nps-scale { display: grid; grid-template-columns: repeat(11, minmax(0,1fr)); gap: 4px; }.nps-scale button { height: 36px; border: 1px solid var(--line); border-radius: 9px 11px 8px 10px; color: var(--text-2); background: var(--surface-2); font-size: 11px; font-weight: 900; transition: .14s ease; }.nps-scale button:hover { border-color: var(--coral); color: var(--coral); }.nps-scale button.active { color: white; background: var(--coral); border-color: var(--coral); box-shadow: 0 2px 0 rgba(190,90,70,.45); }.nps-ends { display: flex; justify-content: space-between; margin-top: 6px; color: var(--muted); font-size: 8px; font-weight: 800; }.survey-scale { display: flex; gap: 8px; }.survey-scale button { flex: 1; display: grid; place-items: center; gap: 2px; height: 54px; border: 1px solid var(--line); border-radius: 14px 17px 13px 16px; color: var(--text-2); background: var(--surface-2); font-size: 15px; font-weight: 900; transition: .15s ease; }.survey-scale button small { color: var(--muted); font-size: 6px; font-weight: 700; }.survey-scale button.active { color: white; background: var(--coral); border-color: var(--coral); box-shadow: 0 3px 0 rgba(190,90,70,.4); transform: translateY(-1px); }.survey-scale button.active small { color: rgba(255,255,255,.85); }.survey-scale button.survey-scale-skip { border-style: dashed; color: var(--muted); }.survey-scale button.survey-scale-skip.active { color: white; background: var(--muted); border-color: var(--muted); box-shadow: 0 3px 0 color-mix(in srgb, var(--muted) 70%, black); }.survey-body textarea { width: 100%; min-height: 96px; border: 1px solid var(--line); border-radius: 15px 19px 14px 18px; padding: 12px 13px; outline: 0; color: var(--text); background: rgba(255,255,255,.72); font: inherit; font-size: 11px; line-height: 1.6; resize: vertical; }.survey-sheet [hidden] { display: none !important; }.survey-success { display: grid; justify-items: center; padding: 40px 20px; text-align: center; }.survey-success-seal { width: 58px; height: 58px; display: grid; place-items: center; margin-bottom: 14px; border: 3px solid var(--primary); border-radius: 50%; color: var(--primary); box-shadow: inset 0 0 0 4px var(--primary-soft); font-size: 27px; font-weight: 900; transform: rotate(-8deg); }.survey-success h3 { margin: 0 0 6px; color: var(--primary-deep); font-size: 18px; }.survey-success p { margin: 0; max-width: 40ch; color: var(--text-2); font-size: 11px; line-height: 1.7; }.survey-foot { flex: 0 0 auto; display: flex; justify-content: flex-end; gap: 8px; padding: 14px 26px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: rgba(255,253,245,.95); backdrop-filter: blur(12px); }.notice-empty { display: grid; min-height: 100%; place-items: center; color: var(--muted); font-size: 11px; text-align: center; } @keyframes notice-in { from { opacity: 0; transform: translateY(15px) scale(.94) rotate(.4deg); } }

@media (max-width: 720px) {
  .notice-fab { width: 36px; padding: 0; justify-content: center; }.notice-fab-label { display: none; }.notice-fab-icon { width: 25px; height: 25px; }.notice-layer { align-items: end; padding: 0; }.notice-card { width: 100vw; max-height: 86dvh; height: 86dvh; border-radius: 25px 25px 0 0; border-bottom: 0; }.notice-head { padding: 16px 17px 11px; }.notice-head h2 { font-size: 20px; }.notice-tabs { padding: 7px 12px; }.notice-main { grid-template-columns: 1fr; grid-template-rows: 81px minmax(0,1fr); }.notice-list { display: flex; gap: 7px; padding: 9px 12px; overflow-x: auto; overflow-y: hidden; border-right: 0; border-bottom: 1px dashed var(--line); }.notice-item { flex: 0 0 184px; min-height: 59px; margin-bottom: 0; }.notice-detail { padding: 17px 18px 24px; }.notice-detail h3 { font-size: 20px; }.notice-banner { height: 84px; margin: 13px 0; font-size: 23px; }
}

/* 邀请链接：账户菜单入口 + 注册页自动带入邀请码 */
.invite-layer { position: fixed; z-index: 175; inset: 0; display: none; place-items: center; padding: 18px; }.invite-layer.open { display: grid; }.invite-backdrop { position: absolute; inset: 0; background: rgba(26,54,47,.44); backdrop-filter: blur(6px); animation: event-fade .2s ease both; }.invite-card { width: min(410px, calc(100vw - 34px)); position: relative; z-index: 1; padding: 31px 29px 24px; border: 1px solid rgba(255,255,255,.8); border-radius: 30px 24px 27px 32px; background: var(--surface); box-shadow: 0 26px 80px rgba(20,55,47,.32); animation: invite-in .3s cubic-bezier(.2,.9,.25,1.12) both; text-align: center; }.invite-close { position: absolute; right: 15px; top: 13px; width: 31px; height: 31px; border: 1px solid var(--line); border-radius: 50%; color: var(--text-2); background: var(--surface-2); font-size: 19px; }.invite-stamp { width: 54px; height: 48px; display: grid; place-items: center; margin: 0 auto 9px; border-radius: 46% 54% 52% 48%; color: white; background: linear-gradient(145deg, var(--coral), #eeaa78); box-shadow: 0 5px 0 #c76059; font-size: 27px; transform: rotate(-4deg); }.invite-card h2 { margin: 4px 0 5px; font-size: 23px; }.invite-card > p { margin: 0; color: var(--text-2); font-size: 11px; line-height: 1.65; }.invite-card > p b { color: var(--coral); }.invite-reward { display: grid; grid-template-columns: auto auto 1fr; align-items: center; gap: 7px; margin: 18px 0 15px; padding: 10px 12px; border-radius: 14px 17px 13px 16px; color: var(--text-2); background: var(--surface-2); text-align: left; font-size: 10px; }.invite-reward b { color: var(--primary-deep); font-size: 21px; line-height: 1; }.invite-reward small { color: var(--muted); font-size: 8px; text-align: right; }.invite-label { display: block; margin: 11px 0 6px; color: var(--text-2); font-size: 9px; font-weight: 900; text-align: left; }.invite-code { padding: 10px; border: 1px dashed rgba(46,143,135,.5); border-radius: 13px 16px 12px 15px; color: var(--primary-deep); background: color-mix(in srgb, var(--primary-soft) 58%, white); font-size: 20px; font-weight: 900; letter-spacing: .13em; }.invite-link { width: 100%; height: 38px; border: 1px solid var(--line); border-radius: 12px 14px 11px 13px; padding: 0 10px; color: var(--text-2); background: var(--surface-2); font-size: 9px; outline: 0; }.invite-copy { width: 100%; margin-top: 13px; }.invite-footnote { display: block; margin-top: 11px; color: var(--muted); font-size: 8px; }.invite-field small { color: var(--primary-deep); font-weight: 600; }.invite-field[hidden] { display: none; } @keyframes invite-in { from { opacity: 0; transform: translateY(12px) scale(.93) rotate(.8deg); } }

@media (max-width: 720px) { .invite-layer { align-items: end; padding: 0; }.invite-card { width: 100%; padding: 26px 20px calc(20px + env(safe-area-inset-bottom)); border-radius: 25px 25px 0 0; border-bottom: 0; } }
@media (max-width: 720px) { .survey-layer { padding: 0; }.survey-sheet { width: 100vw; height: 100dvh; border: 0; border-radius: 0; }.survey-head { padding: 16px 18px 13px; }.survey-head h2 { font-size: 19px; }.survey-head p { max-width: none; }.survey-body { padding: 18px; }.survey-options { max-width: none; }.survey-scale { flex-wrap: wrap; }.survey-scale button { flex: 1 1 calc(33.33% - 6px); height: 46px; font-size: 13px; }.survey-scale button small { display: none; }.rate-legend { display: none; }.rate-row { grid-template-columns: 1fr; gap: 7px; padding: 9px 11px; }.rate-btns { grid-template-columns: repeat(6, minmax(0,1fr)); }.rate-btns button { height: 34px; }.rate-btns button.rate-na { font-size: 7px; }.nps-scale { grid-template-columns: repeat(6, minmax(0,1fr)); }.survey-foot { padding: 12px 18px calc(12px + env(safe-area-inset-bottom)); }.survey-foot button { flex: 1; }.survey-foot button[data-close-survey] { flex: 0 0 auto; padding: 0 12px; } }

/* 积分与充值：延续正式前端的“商铺卡密 → 站内兑换”流程 */
.top-recharge { height: 36px; display: flex; align-items: center; gap: 5px; padding: 0 11px; border: 1px solid color-mix(in srgb, var(--coral) 34%, var(--line)); border-radius: 17px 15px 18px 14px; color: #b7594d; background: color-mix(in srgb, var(--sand) 46%, var(--surface)); font-size: 10px; font-weight: 900; box-shadow: var(--shadow-soft); }.top-recharge span { font-size: 15px; }.top-recharge:hover { transform: translateY(-1px) rotate(.5deg); background: color-mix(in srgb, var(--sand) 72%, var(--surface)); }
.points-layer, .recharge-layer { position: fixed; z-index: 176; inset: 0; display: none; place-items: center; padding: 18px; }.points-layer.open, .recharge-layer.open { display: grid; }.points-backdrop, .recharge-backdrop { position: absolute; inset: 0; background: rgba(26,54,47,.44); backdrop-filter: blur(6px); animation: event-fade .2s ease both; }.points-card, .recharge-card { width: min(420px, calc(100vw - 34px)); position: relative; z-index: 1; padding: 28px; border: 1px solid rgba(255,255,255,.8); border-radius: 29px 23px 30px 25px; background: var(--surface); box-shadow: 0 26px 80px rgba(20,55,47,.32); animation: invite-in .3s cubic-bezier(.2,.9,.25,1.12) both; }.points-close, .recharge-close { position: absolute; right: 15px; top: 13px; width: 31px; height: 31px; border: 1px solid var(--line); border-radius: 50%; color: var(--text-2); background: var(--surface-2); font-size: 19px; }.points-card h2, .recharge-card h2 { margin: 4px 0 7px; font-size: 23px; }.points-balance-box { display: grid; justify-items: center; gap: 4px; padding: 18px; margin: 17px 0 11px; border: 1px solid rgba(46,143,135,.18); border-radius: 18px 22px 17px 20px; background: linear-gradient(125deg, var(--primary-soft), color-mix(in srgb, var(--sand) 60%, white)); }.points-balance-box b { color: var(--primary-deep); font-size: 34px; line-height: 1; }.points-balance-box span { color: var(--text-2); font-size: 10px; }.points-card > p, .recharge-card > p { margin: 0; color: var(--text-2); font-size: 11px; line-height: 1.65; }.points-ledger-title { display: flex; justify-content: space-between; margin: 16px 0 7px; color: var(--text-2); font-size: 10px; font-weight: 900; }.points-ledger-title small { color: var(--muted); font-size: 8px; }.points-ledger { overflow: hidden; border: 1px solid var(--line); border-radius: 13px 16px 12px 15px; }.points-ledger > div { display: grid; grid-template-columns: 72px 1fr auto; align-items: center; gap: 6px; padding: 10px; border-bottom: 1px dashed var(--line); font-size: 9px; }.points-ledger > div:last-child { border-bottom: 0; }.points-ledger span { color: var(--muted); font-size: 8px; }.points-ledger b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 9px; }.points-ledger em { color: var(--primary-deep); font-size: 10px; font-style: normal; font-weight: 900; }.points-ledger em.minus { color: var(--coral); }.points-recharge { width: 100%; margin-top: 14px; }
.recharge-card { width: min(455px, calc(100vw - 34px)); }.recharge-steps { display: grid; grid-template-columns: 23px 1fr; gap: 3px 8px; align-items: center; margin: 16px 0 12px; padding: 12px; border-radius: 15px; background: var(--surface-2); }.recharge-steps span { grid-row: span 2; width: 23px; height: 23px; display: grid; place-items: center; border-radius: 50%; color: white; background: var(--primary); font-size: 10px; font-weight: 900; }.recharge-steps span:nth-of-type(2) { background: var(--coral); }.recharge-steps b { font-size: 10px; }.recharge-steps small { color: var(--muted); font-size: 8px; }.shop-row { display: flex; align-items: center; gap: 13px; padding: 11px; border: 1px solid var(--line); border-radius: 15px 18px 14px 17px; }.recharge-qr-link { display: block; width: 74px; flex: 0 0 74px; padding: 4px; border-radius: 9px; background: white; border: 1px solid var(--line); }.recharge-qr-link img { display: block; width: 100%; height: auto; }.shop-row > div { min-width: 0; display: grid; gap: 7px; }.shop-link { color: var(--primary-deep); font-size: 10px; font-weight: 900; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.copy-shop { justify-self: start; height: 26px; border: 1px solid var(--line); border-radius: 9px 11px 8px 10px; color: var(--text-2); background: var(--surface-2); font-size: 8px; font-weight: 800; }.recharge-code-field { margin-top: 14px; }.recharge-submit { width: 100%; margin-top: 14px; }
@media (max-width: 720px) { .top-recharge { width: 36px; justify-content: center; padding: 0; }.top-recharge b { display: none; }.points-layer, .recharge-layer { align-items: end; padding: 0; }.points-card, .recharge-card { width: 100%; padding: 25px 20px calc(20px + env(safe-area-inset-bottom)); border-radius: 25px 25px 0 0; border-bottom: 0; }.points-ledger > div { grid-template-columns: 68px 1fr auto; }.recharge-card { max-height: 86dvh; overflow-y: auto; } }

.recharge-success-layer { position: fixed; z-index: 178; inset: 0; display: none; place-items: center; padding: 18px; }.recharge-success-layer.open { display: grid; }.recharge-success-backdrop { position: absolute; inset: 0; background: rgba(26,54,47,.48); backdrop-filter: blur(7px); animation: event-fade .2s ease both; }.recharge-success-card { width: min(360px, calc(100vw - 42px)); position: relative; z-index: 1; padding: 34px 27px 25px; overflow: hidden; border: 1px solid rgba(255,255,255,.86); border-radius: 34px 27px 36px 29px; color: var(--text); background: linear-gradient(160deg, var(--surface), color-mix(in srgb, var(--sand) 42%, var(--surface))); box-shadow: 0 28px 85px rgba(20,55,47,.35); text-align: center; animation: recharge-success-in .42s cubic-bezier(.18,1.2,.3,1) both; }.recharge-success-card::before { content: ""; position: absolute; left: -36px; right: -36px; bottom: -52px; height: 128px; border-radius: 50%; background: rgba(46,143,135,.11); }.success-seal { width: 66px; height: 60px; position: relative; z-index: 1; display: grid; place-items: center; margin: 0 auto 11px; border-radius: 47% 53% 43% 57%; color: white; background: linear-gradient(145deg, var(--primary), #47ada4); box-shadow: 0 7px 0 var(--primary-deep); font-size: 30px; font-weight: 900; transform: rotate(-5deg); }.recharge-success-card .eyebrow { position: relative; z-index: 1; }.recharge-success-card h2 { position: relative; z-index: 1; margin: 4px 0 5px; color: var(--primary-deep); font-size: 25px; }.recharge-success-card > p { position: relative; z-index: 1; margin: 0; color: var(--text-2); font-size: 11px; line-height: 1.65; }.success-amount { position: relative; z-index: 1; display: grid; grid-template-columns: auto auto auto; justify-content: center; align-items: end; gap: 5px; margin: 18px 0 6px; }.success-amount span { grid-column: 1/-1; color: var(--muted); font-size: 9px; }.success-amount b { color: var(--coral); font-size: 31px; line-height: 1; }.success-amount small { color: var(--text-2); font-size: 11px; margin-bottom: 3px; }.success-balance { position: relative; z-index: 1; display: inline-block; padding: 5px 10px; border-radius: 11px; color: var(--text-2); background: rgba(255,255,255,.54); font-size: 9px; }.success-balance b { color: var(--primary-deep); }.success-done { position: relative; z-index: 1; width: 100%; margin-top: 20px; }.success-spark { position: absolute; z-index: 1; color: var(--coral); font-size: 21px; animation: success-spark 1.9s ease-in-out infinite; }.spark-one { left: 40px; top: 40px; }.spark-two { right: 43px; top: 76px; color: var(--primary); animation-delay: -.7s; } @keyframes recharge-success-in { from { opacity: 0; transform: translateY(18px) scale(.82) rotate(2deg); } 62% { transform: translateY(-4px) scale(1.03) rotate(-.7deg); } } @keyframes success-spark { 50% { transform: translateY(-6px) rotate(15deg) scale(1.14); } }
@media (max-width: 720px) { .recharge-success-card { width: min(360px, calc(100vw - 32px)); padding-top: 31px; } }

/* 转生页新增角色：与正式 Vue 的人物管理入口保持一致。 */
.character-layer { position:fixed; z-index:185; inset:0; display:none; place-items:center; padding:18px; }.character-layer.open { display:grid; }.character-backdrop { position:absolute; inset:0; background:rgba(22,65,58,.5); backdrop-filter:blur(7px); }.character-card { width:min(500px, calc(100vw - 34px)); position:relative; z-index:1; padding:27px 29px 24px; border:1px solid rgba(255,255,255,.8); border-radius:29px 24px 32px 26px; color:var(--text); background:linear-gradient(150deg,var(--surface),color-mix(in srgb,var(--sand) 35%,var(--surface))); box-shadow:0 26px 82px rgba(15,55,49,.36); animation:notice-in .28s cubic-bezier(.2,.9,.25,1.12) both; }.character-close { position:absolute; right:14px; top:13px; width:32px; height:32px; border:1px solid var(--line); border-radius:50%; color:var(--text-2); background:var(--surface-2); font-size:19px; }.character-stamp { width:48px; height:45px; display:grid; place-items:center; margin-bottom:8px; border-radius:47% 53% 43% 57%; color:white; background:var(--coral); box-shadow:0 4px 0 #c86056; font-size:22px; transform:rotate(-6deg); }.character-card h2 { margin:4px 0 4px; color:var(--primary-deep); font-size:23px; }.character-card > p { margin:0; color:var(--text-2); font-size:10px; line-height:1.55; }.character-import { display:grid; grid-template-columns:28px 1fr auto; align-items:center; gap:8px; padding:9px; margin:15px 0 12px; border:1px dashed var(--line-strong); border-radius:13px 16px 12px 15px; background:rgba(255,253,245,.6); }.character-import > span { color:var(--primary); font-size:19px; text-align:center; }.character-import div { display:grid; gap:2px; }.character-import b { font-size:10px; }.character-import small { color:var(--muted); font-size:7px; }.character-import button { height:27px; border:1px solid var(--line); border-radius:9px 11px 8px 10px; color:var(--primary-deep); background:var(--primary-soft); font-size:8px; font-weight:800; }.character-form { display:grid; grid-template-columns:1fr 1fr; gap:9px; }.character-form .full { grid-column:1/-1; }.character-actions { display:flex; justify-content:flex-end; gap:7px; margin-top:15px; }.character-actions .soft-button { border:1px solid var(--line); }
@media (max-width:720px) { .detail-hero { align-items:end; }.detail-hero-actions { position:absolute; z-index:3; right:18px; bottom:18px; }.detail-hero-mark { opacity:.3; }.hero-config-button { min-width:145px; }.owner-config-link { margin-top:11px; }.role-toolbar { align-items:flex-start; }.role-toolbar > span { max-width:86px; line-height:1.4; }.role-toolbar button { padding:0 5px; }.custom-role-grid { grid-template-columns:1fr; }.custom-role-grid .full { grid-column:auto; }.character-layer { align-items:end; padding:0; }.character-card { width:100%; max-height:90dvh; overflow:auto; padding:23px 18px calc(20px + env(safe-area-inset-bottom)); border-radius:25px 25px 0 0; border-bottom:0; }.character-form { grid-template-columns:1fr; }.character-form .full { grid-column:auto; } }

/* 背包回到原先的符号图标版本。 */
.inventory-grid .item-icon { width:31px; height:31px; display:grid; place-items:center; border-radius:45% 55%; color:white; background:var(--coral); font-size:16px; position:static; filter:none; }.inventory-grid .item-icon::before, .inventory-grid .item-icon::after { content:none; }.inventory-grid .item-leaf { background:var(--leaf); }.inventory-grid .item-shell { color:var(--text); background:var(--sand); }.inventory-grid .item-map { background:#b18562; }.inventory-grid .item-blue { background:var(--sky); }

/* 侧栏收缩：保留图标与常用入口，桌面端可随时展开。 */
.rail-collapse-toggle { position:absolute; z-index:8; right:-15px; top:21px; width:29px; height:29px; border:1px solid var(--line); border-radius:50%; color:var(--primary-deep); background:var(--surface); box-shadow:var(--shadow-soft); font-size:21px; line-height:1; }.rail-collapse-toggle:hover { background:var(--primary-soft); transform:scale(1.06); }.app-shell.rail-collapsed { grid-template-columns:72px minmax(0,1fr); }.rail-collapsed .side-rail { padding:22px 10px 16px; gap:20px; }.rail-collapsed .brand { justify-content:center; padding:3px 0; }.rail-collapsed .brand > span:last-child, .rail-collapsed .nav-item > span:nth-child(2), .rail-collapsed .nav-item em, .rail-collapsed .journey-summary, .rail-collapsed .theme-toggle > span:nth-child(2), .rail-collapsed .profile-chip > span:nth-child(2), .rail-collapsed .profile-chip > span:last-child { display:none; }.rail-collapsed .primary-nav { gap:8px; }.rail-collapsed .nav-item { display:grid; grid-template-columns:1fr; justify-items:center; min-height:46px; padding:0; }.rail-collapsed .nav-item:hover { transform:translateX(0) scale(1.04); }.rail-collapsed .rail-footer { justify-items:center; }.rail-collapsed .theme-toggle, .rail-collapsed .profile-chip { width:43px; justify-content:center; padding:6px; }.rail-collapsed .rail-collapse-toggle { right:-15px; }

/* 日历参考月视图的清晰方格，保留夏日岛屿背景与原创贝壳/椰子装饰。 */
.calendar-card { width:min(720px, calc(100vw - 34px)); padding:23px 30px 24px; background:linear-gradient(155deg,rgba(255,248,220,.95),rgba(233,246,235,.89)),url("./assets/plaza-summer-beach.png") center 82% / cover; }.calendar-head { padding:0 42px; }.calendar-head h2 { font-size:28px; letter-spacing:.08em; }.calendar-nav { margin:13px 0 8px; }.calendar-week, .calendar-grid { gap:0; }.calendar-week { border:1px solid rgba(48,75,67,.45); border-bottom:0; }.calendar-week span { min-height:34px; display:grid; place-items:center; color:var(--text); border-right:1px solid rgba(48,75,67,.42); background:rgba(248,226,177,.72); font-size:12px; font-weight:900; }.calendar-week span:last-child { border-right:0; }.calendar-grid { border-left:1px solid rgba(48,75,67,.45); }.calendar-grid button, .calendar-blank { min-height:70px; border:0; border-right:1px solid rgba(48,75,67,.42); border-bottom:1px solid rgba(48,75,67,.42); border-radius:0; background:rgba(255,252,236,.6); }.calendar-blank { background:rgba(255,252,236,.38); }.calendar-grid button b { align-self:start; justify-self:start; margin:8px 0 0 9px; font-size:15px; }.calendar-grid button i { position:absolute; right:9px; bottom:8px; font-size:16px; }.calendar-grid button:hover, .calendar-grid button.active { transform:none; border:0; border-right:1px solid rgba(48,75,67,.42); border-bottom:1px solid rgba(48,75,67,.42); color:var(--primary-deep); background:rgba(191,230,220,.8); box-shadow:inset 0 0 0 2px var(--primary); }.calendar-grid button.today::after { top:7px; right:7px; font-size:7px; }.calendar-grid button.has-note { border-style:solid; }.calendar-day-card { margin-top:14px; border-radius:13px 19px 14px 17px; background:rgba(255,253,245,.84); }

/* 手机端底部导航可收起，保留一个固定按钮用来立即唤回。 */
.mobile-nav-toggle { display:none; }
@media (max-width:720px) { .rail-collapse-toggle { display:none; }.world-calendar-trigger { display:none; }.play-status { grid-template-columns:minmax(0,1fr) auto; }.status-bars { grid-column:1/-1; grid-row:2; }.world-clock { grid-column:2; grid-row:1; }.world-clock strong { font-size:11px; }.world-clock small { max-width:116px; }.mobile-nav-toggle { position:fixed; z-index:55; left:12px; bottom:calc(73px + env(safe-area-inset-bottom)); display:block; height:29px; border:1px solid var(--line); border-radius:15px; padding:0 10px; color:var(--primary-deep); background:var(--surface); box-shadow:var(--shadow-soft); font-size:8px; font-weight:900; }.mobile-nav-hidden .mobile-nav { transform:translateY(calc(100% + 8px)); pointer-events:none; }.mobile-nav { transition:transform .25s ease; }.mobile-nav-hidden .mobile-nav-toggle { bottom:calc(12px + env(safe-area-inset-bottom)); }.mobile-nav-hidden .mobile-kit-button { bottom:calc(18px + env(safe-area-inset-bottom)); }.calendar-card { padding:19px 12px calc(18px + env(safe-area-inset-bottom)); }.calendar-head { padding:0 31px; }.calendar-head h2 { font-size:22px; }.calendar-week span { min-height:29px; font-size:10px; }.calendar-grid button, .calendar-blank { min-height:50px; }.calendar-grid button b { margin:6px 0 0 6px; font-size:12px; }.calendar-grid button i { right:6px; bottom:5px; font-size:12px; }.calendar-day-card { margin-top:10px; }.calendar-layer { align-items:end; padding:0; } }

/* 海雾降低白色覆盖，避免与纸张底图叠加后正文发灰。 */
.weather-options { grid-template-columns:repeat(4,1fr); }.weather-ambient.weather-fog { opacity:.34; background:linear-gradient(90deg,rgba(139,182,174,.2),transparent 48%,rgba(151,191,181,.16)); }.story-journal[data-weather="fog"] .weather-canvas { opacity:.26; }.story-journal[data-weather="fog"] .story-scroll { color:color-mix(in srgb,var(--text) 92%, black); }.story-journal[data-weather="fog"] .weather-caption { background:color-mix(in srgb,var(--surface) 94%,transparent); }

@media (max-width:720px) { .play-status .mobile-kit-button { position:static; z-index:auto; display:block; grid-column:2; grid-row:2; align-self:center; justify-self:end; height:32px; border:0; border-radius:16px; padding:0 10px; color:white; background:var(--primary); box-shadow:var(--shadow-soft); font-size:8px; font-weight:900; }.play-status .status-bars { grid-column:1; grid-row:2; min-width:0; }.play-status .character-resources { grid-column:1/-1; grid-row:3; }.mobile-nav-hidden .main-stage { padding-bottom:0; }.mobile-nav-hidden .play-view { padding-bottom:8px; }.mobile-nav-hidden .mobile-nav-toggle { bottom:calc(70px + env(safe-area-inset-bottom)); }.mobile-nav-hidden .play-status .mobile-kit-button { bottom:auto; }.mobile-nav-hidden .story-journal { height:100%; } }

.calendar-close { z-index:10 !important; pointer-events:auto; touch-action:manipulation; }

.plaza-tools { display:flex; align-items:center; justify-content:flex-end; flex-wrap:wrap; gap:7px; }.plaza-tools .segmented { width:auto; }.plaza-search { width:156px; }.plaza-tools select { height:36px; max-width:108px; border:1px solid var(--line); border-radius:12px 15px 11px 14px; padding:0 8px; color:var(--text-2); background:var(--surface); font-size:10px; font-weight:700; }.plaza-empty { grid-column:1/-1; display:grid; min-height:170px; place-items:center; border:1px dashed var(--line-strong); border-radius:18px; color:var(--muted); background:var(--surface); font-size:11px; }
@media (max-width:720px) { .plaza-tools { justify-content:stretch; margin-top:12px; }.plaza-tools .segmented { width:100%; }.plaza-search { flex:1; min-width:0; }.plaza-tools select { flex:0 0 110px; } }

/* 短信：日常世界中由关系页进入的轻量会话，不复用外部组件或视觉资产。 */
.kit-tabs button { position:relative; }.kit-tab-icon { position:relative; }.kit-unread { position:absolute; top:-6px; right:-10px; min-width:13px; height:13px; display:grid; place-items:center; border:2px solid var(--surface-2); border-radius:50%; color:white; background:var(--coral); font-size:7px; font-style:normal; font-weight:900; line-height:1; }.relation-tab-unread { top:-4px; right:-7px; min-width:8px; width:8px; height:8px; border-width:1px; }.relation-message { position:relative; }.relation-message i { position:absolute; top:-3px; right:-3px; width:7px; height:7px; border:1px solid white; border-radius:50%; background:var(--coral); }
.message-list-head { display:flex; justify-content:space-between; align-items:flex-start; gap:8px; margin:2px 2px 9px; }.message-list-head div { display:grid; gap:3px; }.message-list-head b { font-size:12px; }.message-list-head small { color:var(--muted); font-size:8px; line-height:1.4; }.message-list-head em { flex:0 0 auto; padding:4px 7px; border-radius:10px 12px 9px 11px; color:#b7594d; background:color-mix(in srgb,var(--coral) 14%,var(--surface)); font-size:8px; font-style:normal; font-weight:900; }.message-thread-list { display:grid; gap:6px; }.message-thread { width:100%; display:grid; grid-template-columns:35px minmax(0,1fr) auto; align-items:center; gap:8px; padding:8px; border:1px solid var(--line); border-radius:15px 18px 13px 17px; color:var(--text); background:rgba(255,255,255,.48); text-align:left; }.message-thread:hover { border-color:var(--primary); background:var(--primary-soft); transform:translateY(-1px); }.message-thread-copy { min-width:0; display:grid; gap:3px; }.message-thread-copy b { font-size:10px; }.message-thread-copy small { overflow:hidden; color:var(--text-2); font-size:8px; text-overflow:ellipsis; white-space:nowrap; }.message-thread > em { color:var(--primary); font-size:21px; font-style:normal; }.message-thread-unread { width:17px; height:17px; display:grid; place-items:center; border-radius:50%; color:white; background:var(--coral); font-size:8px; font-style:normal; font-weight:900; }.message-tip { display:grid; grid-template-columns:29px 1fr; gap:8px; align-items:start; margin-top:10px; padding:10px; border:1px dashed var(--line-strong); border-radius:14px 17px 13px 16px; background:color-mix(in srgb,var(--sand) 28%,var(--surface)); }.message-tip > span { width:27px; height:27px; display:grid; place-items:center; border-radius:45% 55%; color:white; background:var(--primary); }.message-tip div { display:grid; gap:2px; }.message-tip b { color:var(--text-2); font-size:9px; }.message-tip p { margin:0; color:var(--muted); font-size:8px; line-height:1.55; }
.message-thread-head { display:grid; grid-template-columns:auto minmax(0,1fr) auto; align-items:center; gap:7px; padding:0 1px 8px; border-bottom:1px dashed var(--line-strong); }.message-thread-head > button { border:0; padding:4px 0; color:var(--primary-deep); background:transparent; font-size:9px; font-weight:900; }.message-thread-head > div { min-width:0; display:flex; align-items:center; gap:6px; }.message-thread-head .panel-row-icon { width:28px; height:28px; font-size:12px; }.message-thread-head span > span { display:grid; gap:1px; }.message-thread-head b { font-size:10px; }.message-thread-head small { display:block; color:var(--muted); font-size:7px; }.message-thread-head > em { padding:4px 5px; border-radius:8px; color:var(--text-2); background:var(--surface-2); font-size:7px; font-style:normal; white-space:nowrap; }.message-scroll { display:flex; flex-direction:column; gap:8px; padding:10px 3px; }.message-bubble { max-width:88%; display:grid; justify-items:start; gap:3px; padding:8px 10px; border-radius:16px 16px 16px 5px; color:var(--text); background:var(--surface-2); box-shadow:0 3px 9px rgba(35,91,80,.06); }.message-bubble.player { align-self:end; justify-items:end; border-radius:16px 16px 5px 16px; color:#31594f; background:#f8e8bd; }.message-bubble small { color:var(--muted); font-size:7px; }.message-bubble p { margin:0; font-size:9px; line-height:1.55; }.message-offer { width:100%; display:grid; gap:4px; margin-top:4px; padding:8px; border:1px dashed rgba(46,143,135,.35); border-radius:11px 14px 10px 13px; background:rgba(255,253,245,.76); }.message-offer.gift { border-color:rgba(235,127,111,.35); }.message-offer small { color:var(--primary-deep); font-size:7px; }.message-offer b { font-size:9px; }.message-offer > div { display:flex; gap:5px; }.message-offer .mini-action { height:24px; padding:0 8px; font-size:8px; }.message-compose { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:end; gap:6px; padding:8px 2px 1px; border-top:1px dashed var(--line-strong); }.message-compose textarea { min-height:34px; max-height:70px; resize:none; border:1px solid var(--line); border-radius:13px 16px 12px 15px; padding:9px; color:var(--text); background:var(--surface-2); font:inherit; font-size:9px; outline:0; }.message-compose textarea:focus { border-color:var(--primary); }.message-compose button { height:34px; border:0; border-radius:13px 15px 12px 14px; padding:0 10px; color:white; background:var(--primary); font-size:9px; font-weight:900; }
@media (max-width:720px) { .kit-unread { right:-8px; }.message-thread-head { grid-template-columns:auto minmax(0,1fr); }.message-thread-head > em { grid-column:2; justify-self:start; }.message-scroll { max-height:44dvh; overflow:auto; }.message-bubble { max-width:92%; }.message-compose { position:sticky; bottom:0; background:var(--surface); } }

/* 岛屿短信改为角色关系触发的“手机”浮层，避免占用旅行功能栏。 */
.relation-avatar { position:relative; overflow:visible; }.relation-unread { position:absolute; top:-6px; right:-7px; width:16px; height:16px; display:grid; place-items:center; border:2px solid var(--surface); border-radius:50%; color:white; background:var(--coral); box-shadow:0 2px 4px rgba(133,69,58,.22); font-size:7px; font-style:normal; font-weight:900; }.message-layer { position:fixed; z-index:195; inset:0; display:none; place-items:center; padding:20px; }.message-layer.open { display:grid; }.message-backdrop { position:absolute; inset:0; background:rgba(19,52,47,.58); backdrop-filter:blur(9px); animation:event-fade .2s ease both; }.message-phone { width:min(470px, calc(100vw - 32px)); height:min(700px, calc(100dvh - 42px)); position:relative; z-index:1; display:flex; flex-direction:column; overflow:hidden; border:8px solid #214b47; border-radius:42px; color:var(--text); background:#f8f2df; box-shadow:0 30px 90px rgba(11,41,37,.52), inset 0 0 0 2px rgba(255,255,255,.25); animation:phone-arrive .36s cubic-bezier(.2,1.1,.3,1) both; }.message-phone::before { content:""; position:absolute; z-index:1; left:0; right:0; top:0; height:82px; pointer-events:none; background:linear-gradient(145deg,rgba(255,255,255,.26),transparent 62%); }.phone-speaker { width:82px; height:19px; position:absolute; z-index:3; left:50%; top:8px; border-radius:0 0 14px 14px; background:#214b47; transform:translateX(-50%); }.phone-statusbar { position:relative; z-index:2; display:flex; justify-content:space-between; padding:10px 18px 7px; color:#53756c; font-size:8px; font-weight:900; letter-spacing:.03em; }.phone-appbar { position:relative; z-index:2; display:flex; justify-content:space-between; align-items:center; padding:8px 15px 10px; border-bottom:1px solid rgba(61,122,107,.14); background:linear-gradient(115deg,#d8eee6,#f8f0d9); }.phone-appbar div { display:flex; align-items:center; gap:7px; color:var(--primary-deep); }.phone-appbar span { width:25px; height:25px; display:grid; place-items:center; border-radius:45% 55% 48% 52%; color:white; background:var(--primary); font-size:12px; transform:rotate(-4deg); }.phone-appbar b { font-size:12px; }.phone-appbar button { width:27px; height:27px; border:1px solid rgba(61,122,107,.2); border-radius:50%; color:var(--primary-deep); background:rgba(255,255,255,.55); font-size:18px; line-height:1; }.phone-screen { flex:1; min-height:0; overflow:auto; padding:14px 12px 13px; background:radial-gradient(circle at 95% 5%,rgba(235,181,112,.19) 0 13px,transparent 14px), radial-gradient(circle at 3% 98%,rgba(72,166,155,.14) 0 18px,transparent 19px), linear-gradient(160deg,#fffdf4,#edf7ef); scrollbar-width:thin; }.phone-screen .message-scroll { min-height:0; }.phone-screen .message-compose { position:sticky; bottom:-13px; margin:0 -12px -13px; padding:9px 12px 12px; background:rgba(255,253,244,.94); backdrop-filter:blur(8px); }.phone-screen .message-list-head { margin-top:1px; }.phone-screen .message-tip { margin-bottom:5px; }.phone-home { width:105px; height:4px; flex:0 0 auto; align-self:center; margin:8px 0 10px; border-radius:5px; background:#214b47; opacity:.65; }@keyframes phone-arrive { from { opacity:0; transform:translateY(28px) scale(.82) rotate(2deg); } 62% { transform:translateY(-5px) scale(1.025) rotate(-.6deg); } }
@media (max-width:720px) { .message-layer { align-items:center; padding:14px 12px; }.message-phone { width:min(390px, calc(100vw - 24px)); height:min(680px, calc(100dvh - 28px)); border-width:7px; border-radius:34px; }.phone-screen .message-scroll { max-height:none; overflow:visible; }.phone-screen .message-compose { bottom:0; }.phone-home { margin-bottom:8px; } }

/* 手机短信：对话区占满可用高度，输入框始终贴齐屏幕底部。 */
.phone-screen { display:flex; flex-direction:column; overflow:hidden; padding-bottom:0; }.phone-screen .message-thread-head { flex:0 0 auto; }.phone-screen .message-scroll { flex:1 1 auto; min-height:0; overflow-y:auto; padding-bottom:12px; }.phone-screen .message-compose { flex:0 0 auto; position:static; bottom:auto; margin:0 -12px; padding:9px 12px 12px; }
@media (max-width:720px) { .phone-screen .message-scroll { overflow-y:auto; } .phone-screen .message-compose { bottom:auto; } }

/* NPC 富媒体短信：图片附件与语音由后端消息类型驱动，原型用示例内容展示落地样式。 */
.message-bubble.media { width:min(88%, 260px); }.message-audio { width:100%; display:grid; grid-template-columns:26px minmax(0,1fr) auto; align-items:center; gap:7px; margin-top:2px; border:1px solid rgba(46,143,135,.2); border-radius:12px 15px 13px 11px; padding:6px 8px 6px 6px; color:var(--primary-deep); background:linear-gradient(115deg,rgba(216,238,230,.95),rgba(255,253,244,.86)); text-align:left; }.message-audio:hover { border-color:var(--primary); transform:translateY(-1px); }.message-audio-control { width:26px; height:26px; display:grid; place-items:center; border-radius:50%; color:white; background:var(--primary); font-size:9px; font-weight:900; }.message-audio-wave { height:18px; display:flex; align-items:center; justify-content:center; gap:2px; }.message-audio-wave i { width:2px; height:5px; border-radius:4px; background:var(--primary); opacity:.45; }.message-audio-wave i:nth-child(2), .message-audio-wave i:nth-child(4) { height:12px; }.message-audio-wave i:nth-child(3) { height:17px; }.message-audio-duration { color:var(--text-2); font-size:8px; font-variant-numeric:tabular-nums; white-space:nowrap; }.message-audio.is-playing { border-color:rgba(46,143,135,.55); box-shadow:0 3px 10px rgba(35,91,80,.09); }.message-audio.is-playing .message-audio-wave i { opacity:1; animation:message-wave .72s ease-in-out infinite alternate; }.message-audio.is-playing .message-audio-wave i:nth-child(2) { animation-delay:.12s; }.message-audio.is-playing .message-audio-wave i:nth-child(3) { animation-delay:.24s; }.message-audio.is-playing .message-audio-wave i:nth-child(4) { animation-delay:.36s; }.message-audio.is-playing .message-audio-wave i:nth-child(5) { animation-delay:.48s; }@keyframes message-wave { from { transform:scaleY(.42); } to { transform:scaleY(1); } }
.message-image { width:100%; position:relative; margin:4px 0 0; overflow:hidden; border:1px solid rgba(61,122,107,.18); border-radius:11px 15px 12px 14px; padding:0; color:var(--text-2); background:#e6f0e9; text-align:left; }.message-image:hover { border-color:var(--primary); transform:translateY(-1px); }.message-image img { display:block; width:100%; height:112px; object-fit:cover; }.message-image-zoom { position:absolute; right:6px; top:6px; padding:4px 6px; border-radius:8px; color:white; background:rgba(20,67,61,.72); font-size:7px; font-weight:900; opacity:0; transform:translateY(-3px); transition:.18s ease; }.message-image:hover .message-image-zoom, .message-image:focus-visible .message-image-zoom { opacity:1; transform:none; }.message-image-caption { display:flex; align-items:center; justify-content:space-between; gap:6px; padding:5px 7px; background:rgba(255,253,244,.88); font-size:7px; }.message-image-caption b { flex:0 0 auto; color:var(--primary-deep); }.message-image + .message-audio { margin-top:6px; }
.message-image-preview { position:absolute; z-index:5; inset:0; display:none; place-items:center; padding:26px 14px 18px; background:rgba(15,54,49,.9); backdrop-filter:blur(7px); }.message-image-preview.open { display:grid; }.message-image-preview img { width:100%; max-height:calc(100% - 42px); object-fit:contain; border:1px solid rgba(255,255,255,.34); border-radius:16px 21px 15px 19px; box-shadow:0 16px 38px rgba(0,0,0,.34); }.message-image-preview p { position:absolute; left:22px; right:22px; bottom:17px; margin:0; overflow:hidden; color:white; font-size:9px; text-align:center; text-overflow:ellipsis; white-space:nowrap; }.message-image-preview-close { position:absolute; z-index:1; right:13px; top:13px; width:30px; height:30px; border:1px solid rgba(255,255,255,.52); border-radius:50%; color:white; background:rgba(22,74,67,.8); font-size:20px; line-height:1; }

@media (min-width:721px) { .message-phone { width:min(400px, calc(100vw - 32px)); } }

/* 当前场景的日常人物操作：与正式前端的物品、赠礼、邀约、交换联系方式保持一致。 */
.scene-npc-list { display:grid; gap:7px; }.scene-npc-card { padding:8px; border:1px solid var(--line); border-radius:15px 19px 14px 17px; background:rgba(255,255,255,.5); }.scene-npc-card.quiet { opacity:.7; }.scene-npc-top { display:grid; grid-template-columns:35px minmax(0,1fr) auto; align-items:center; gap:8px; }.scene-npc-top > div { min-width:0; display:grid; gap:2px; }.scene-npc-top b { font-size:10px; }.scene-npc-top b em { margin-left:3px; padding:2px 4px; border-radius:6px 8px 6px 7px; color:#b7594d; background:color-mix(in srgb,var(--coral) 14%,var(--surface)); font-size:7px; font-style:normal; }.scene-npc-top b em.neutral { color:var(--primary-deep); background:var(--primary-soft); }.scene-npc-top small { overflow:hidden; color:var(--text-2); font-size:8px; text-overflow:ellipsis; white-space:nowrap; }.scene-npc-actions { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:4px; margin-top:8px; }.scene-npc-actions button { min-width:0; height:27px; overflow:hidden; border:1px solid var(--line); border-radius:9px 11px 8px 10px; padding:0 6px; color:var(--text-2); background:var(--surface-2); font-size:8px; font-weight:800; text-overflow:ellipsis; white-space:nowrap; }.scene-npc-actions button:hover:not(:disabled) { color:var(--primary-deep); border-color:var(--primary); background:var(--primary-soft); transform:translateY(-1px); }.scene-npc-actions .contact-action { color:var(--primary-deep); border-color:rgba(46,143,135,.35); background:color-mix(in srgb,var(--primary-soft) 72%,var(--surface)); }.scene-npc-actions .is-done { color:var(--muted); background:rgba(244,240,224,.62); } .scene-npc-actions button:disabled { cursor:default; opacity:.55; }

/* 高级配置 v2：岛屿手册式高密度工作台。 */
.config-view.active{gap:0;margin:-18px -22px;overflow:hidden;background:linear-gradient(135deg,#eef6ef,#edf4ed 55%,#f5f0df)}
.config-topbar{min-height:78px;flex:0 0 auto;display:grid;grid-template-columns:38px minmax(0,1fr) auto;align-items:center;gap:13px;padding:11px 20px;border-bottom:1px solid var(--line);background:rgba(246,250,242,.82);backdrop-filter:blur(14px)}
.config-back{width:34px;height:34px;border:1px solid var(--line);border-radius:50%;color:var(--primary-deep);background:var(--surface);box-shadow:0 3px 0 rgba(32,83,74,.09);font-size:25px;line-height:1}.config-back:hover{transform:translateX(-2px);background:var(--primary-soft)}
.config-heading{min-width:0}.config-heading h1{overflow:hidden;margin:1px 0 0;color:var(--primary-deep);font-size:18px;text-overflow:ellipsis;white-space:nowrap}.config-heading p{margin:1px 0 0;color:var(--muted);font-size:8px}
.config-save-state{display:flex;align-items:center;gap:8px;padding:8px 11px;border:1px solid var(--line);border-radius:13px 17px 12px 15px;background:rgba(255,253,245,.82)}.config-save-state>i{width:9px;height:9px;border:2px solid white;border-radius:50%;background:var(--primary);box-shadow:0 0 0 1px var(--primary)}.config-save-state>div{display:grid;gap:2px}.config-save-state b{color:var(--primary-deep);font-size:9px}.config-save-state small{color:var(--muted);font-size:7px}.config-save-state.saving>i{background:var(--coral);animation:config-saving .75s linear infinite}@keyframes config-saving{50%{transform:scale(.6);opacity:.55}}
.config-workspace-v2{min-height:0;grid-template-columns:178px minmax(480px,1fr) 232px;gap:11px;padding:12px;overflow:hidden}.config-tabs-v2,.config-editor-v2,.config-preview-v2{min-height:0;border-color:rgba(48,75,67,.14);background:rgba(255,253,245,.88);box-shadow:0 12px 34px rgba(31,74,65,.08)}
.config-tabs-v2{display:flex;flex-direction:column;gap:12px;padding:11px;overflow-y:auto;border-radius:18px 22px 17px 20px}.config-nav-brand{display:flex;align-items:center;gap:9px;padding:5px 5px 12px;border-bottom:1px dashed var(--line)}.config-nav-brand>span{width:36px;height:34px;display:grid;place-items:center;border-radius:46% 54% 43% 57%;color:white;background:var(--primary);box-shadow:0 4px 0 var(--primary-deep);font-size:22px;transform:rotate(-4deg)}.config-nav-brand>div{display:grid;gap:1px}.config-nav-brand b{color:var(--primary-deep);font-size:11px}.config-nav-brand small{color:var(--muted);font-size:7px}
.config-nav-group{display:grid;gap:3px}.config-nav-group>small{padding:0 7px 3px;color:#819188;font-size:7px;font-weight:900;letter-spacing:.14em}.config-tabs-v2 .config-nav-group button{height:37px;display:grid;grid-template-columns:24px 1fr auto;align-items:center;gap:3px;padding:0 8px;border-radius:10px 14px 9px 12px}.config-tabs-v2 .config-nav-group button>span{color:var(--primary);font-size:15px;text-align:center}.config-tabs-v2 .config-nav-group button>b{font-size:9px}.config-tabs-v2 .config-nav-group button>em{color:#95a099;font-size:7px;font-style:normal}.config-tabs-v2 .config-nav-group button.active{color:var(--primary-deep);background:linear-gradient(100deg,#d7efeb,#e4f2e8);box-shadow:inset 3px 0 0 var(--primary)}
.config-editor-v2{padding:0;overflow:hidden auto;border-radius:20px 25px 19px 23px;scrollbar-width:thin;scrollbar-color:#a9b6ad transparent}.config-editor-head{position:sticky;z-index:4;top:0;display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:82px;padding:17px 20px 14px;border-bottom:1px solid var(--line);background:rgba(255,253,245,.94);backdrop-filter:blur(12px)}.config-editor-head h2{margin:2px 0;color:var(--primary-deep);font-size:20px}.config-editor-head p{margin:0;color:var(--muted);font-size:8px}.config-section-badge{padding:5px 9px;border-radius:9px 12px 8px 11px;color:var(--primary-deep);background:var(--primary-soft);font-size:8px;font-weight:900}.config-section-badge.muted{color:#8d6a43;background:#f3e6c2}.config-add-button{height:34px;padding:0 12px;border:0;border-radius:11px 15px 10px 13px;color:white;background:var(--primary);box-shadow:0 3px 0 var(--primary-deep);font-size:9px;font-weight:900}.config-add-button:active{transform:translateY(2px);box-shadow:0 1px 0 var(--primary-deep)}
.config-form-card{margin:12px 15px;padding:15px;border:1px solid var(--line);border-radius:16px 21px 15px 19px;background:rgba(255,255,255,.48)}.config-card-title{display:flex;align-items:center;gap:9px;margin-bottom:14px}.config-card-title>span{width:29px;height:29px;display:grid;place-items:center;border-radius:45% 55% 48% 52%;color:white;background:var(--primary);font-size:8px;font-weight:900}.config-card-title>div{display:grid;gap:2px}.config-card-title b{font-size:11px}.config-card-title small{color:var(--muted);font-size:7px}.field-count{justify-self:end;margin-top:-2px;color:var(--muted);font-size:7px}.kind-pick-large{gap:9px}.kind-pick-large .kind-option{position:relative;min-height:74px;grid-template-columns:38px minmax(0,1fr);align-items:center;gap:9px;padding:11px}.kind-pick-large .kind-option>span{width:36px;height:36px;display:grid;place-items:center;border-radius:47% 53%;color:white;background:#6a8892;font-size:18px}.kind-pick-large .kind-option:nth-child(2)>span{background:var(--coral)}.kind-pick-large .kind-option>div{display:grid;gap:3px}.kind-pick-large .kind-option b{font-size:11px}.kind-pick-large .kind-option em{position:absolute;right:8px;top:8px;padding:2px 5px;border-radius:7px;color:var(--primary-deep);background:var(--surface);font-size:7px;font-style:normal}.config-kind-note{margin:10px 2px 0;color:var(--muted);font-size:8px;line-height:1.55}
.config-split{min-height:calc(100% - 82px);display:grid;grid-template-columns:205px minmax(0,1fr)}.entity-list{min-width:0;padding:11px;border-right:1px solid var(--line);background:rgba(238,245,235,.6)}.entity-list>label{height:34px;display:grid;grid-template-columns:20px 1fr auto;align-items:center;padding:0 8px;border:1px solid var(--line);border-radius:10px 13px 9px 12px;background:var(--surface)}.entity-list>label span{color:var(--primary)}.entity-list>label input{min-width:0;border:0;outline:0;background:transparent;font-size:8px}.entity-list>label em{color:var(--muted);font-size:7px;font-style:normal}.entity-list>div{display:grid;gap:5px;margin-top:10px}.entity-list>div>button{width:100%;min-height:55px;display:grid;grid-template-columns:31px minmax(0,1fr) auto;align-items:center;gap:7px;padding:7px;border:1px solid transparent;border-radius:11px 15px 10px 13px;color:var(--text-2);background:transparent;text-align:left}.entity-list>div>button>span{width:29px;height:29px;display:grid;place-items:center;border-radius:48% 52%;color:white;background:#72aaa2;font-size:11px;font-weight:900}.entity-list>div>button:nth-child(even)>span{background:#dc806d}.entity-list>div>button>div{min-width:0;display:grid;gap:3px}.entity-list>div>button b,.entity-list>div>button small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.entity-list>div>button b{font-size:9px}.entity-list>div>button small{color:var(--muted);font-size:7px}.entity-list>div>button>em{color:var(--primary);font-size:7px;font-style:normal;font-weight:900}.entity-list>div>button.active{border-color:rgba(46,143,135,.28);color:var(--primary-deep);background:var(--primary-soft)}
.entity-form{min-width:0;padding:16px}.entity-form>header{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px;padding-bottom:11px;border-bottom:1px dashed var(--line)}.entity-form>header>div{display:grid;gap:2px}.entity-form>header b{font-size:13px}.entity-form>header small{color:var(--muted);font-size:7px}.entity-more{width:31px;height:29px;border:1px solid var(--line);border-radius:10px 13px 9px 12px;color:var(--primary-deep);background:var(--surface-2)}.config-inline-note{margin-top:13px;padding:10px 12px;border:1px dashed #b7c9bd;border-radius:11px 15px 10px 13px;color:#60786e;background:#edf5e9;font-size:8px;line-height:1.5}
.mini-map-editor{min-height:112px;position:relative;overflow:hidden;margin-top:13px;border-radius:14px 18px 13px 17px;background:linear-gradient(145deg,#a7d9df,#d9eee3)}.mini-map-editor i{position:absolute;width:45px;height:32px;border-radius:50%;background:#efdeb0;box-shadow:inset -8px -5px #84b27b}.mini-map-editor i:nth-child(1){left:20px;bottom:18px}.mini-map-editor i:nth-child(2){right:34px;top:17px}.mini-map-editor i:nth-child(3){left:48%;top:48%}.mini-map-editor span{position:absolute;left:25px;bottom:26px;color:var(--primary-deep);font-size:8px;font-weight:900}.mini-map-editor small{position:absolute;right:9px;bottom:8px;color:var(--text-2);font-size:7px}
.config-condition-builder{display:grid;gap:6px;margin-top:13px;padding:11px;border:1px solid var(--line);border-radius:13px 17px 12px 15px;background:var(--surface-2)}.config-condition-builder header{display:flex;justify-content:space-between;align-items:center}.config-condition-builder header b{font-size:9px}.config-condition-builder header button{height:25px;border:1px solid var(--line);border-radius:8px;color:var(--primary-deep);background:var(--surface);font-size:7px}.config-condition-builder>span{padding:8px;border-radius:9px;background:var(--surface);color:var(--text-2);font-size:8px}.config-condition-builder em{color:var(--primary-deep);font-style:normal;font-weight:900}
.employer-card{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:15px;padding:11px;border:1px solid var(--line);border-radius:13px 17px 12px 15px;background:linear-gradient(100deg,var(--primary-soft),var(--surface-2))}.employer-card>div{display:flex;align-items:center;gap:8px}.employer-card>div:first-child>span{width:32px;height:32px;display:grid;place-items:center;border-radius:50%;color:white;background:var(--coral);font-size:11px;font-weight:900}.employer-card>div:first-child>div{display:grid;gap:2px}.employer-card b{font-size:10px}.employer-card small{color:var(--muted);font-size:7px}.employer-card button{height:27px;padding:0 8px;font-size:7px}.danger-text{border:1px solid #e3b5aa;border-radius:9px;color:#aa574a;background:#fff4eb}
.config-empty-feature{min-height:350px;display:grid;place-items:center;align-content:center;padding:35px;text-align:center}.config-empty-feature>span{width:70px;height:65px;display:grid;place-items:center;border-radius:45% 55% 49% 51%;color:white;background:linear-gradient(145deg,var(--coral),#efb06e);box-shadow:0 6px 0 #bc6757;font-size:29px;transform:rotate(-4deg)}.config-empty-feature h3{margin:20px 0 6px;color:var(--primary-deep);font-size:18px}.config-empty-feature>p{max-width:450px;margin:0;color:var(--text-2);font-size:10px;line-height:1.65}.config-empty-feature>div{display:flex;flex-wrap:wrap;justify-content:center;gap:6px;margin:18px 0}.config-empty-feature>div b{flex-basis:100%;font-size:9px}.config-empty-feature>div span{padding:5px 8px;border-radius:9px;color:var(--primary-deep);background:var(--primary-soft);font-size:8px}.config-empty-feature>button{height:34px;border:1px solid var(--primary);border-radius:11px 15px 10px 13px;padding:0 12px;color:var(--primary-deep);background:var(--surface);font-size:8px;font-weight:900}
.config-preview-v2{display:flex;flex-direction:column;gap:10px;padding:10px;overflow-y:auto;border-radius:18px 23px 17px 21px}.config-preview-cover{min-height:112px;position:relative;display:flex;flex-direction:column;justify-content:end;overflow:hidden;padding:13px;border-radius:14px 19px 13px 17px;color:white;background:linear-gradient(180deg,rgba(25,93,84,.05),rgba(25,83,74,.83)),url('./assets/island-hero.png') center/cover}.config-preview-cover>span{position:absolute;right:10px;top:9px;width:31px;height:31px;display:grid;place-items:center;border-radius:50%;color:#704f32;background:#ffeab5;font-size:16px}.config-preview-cover small{color:#d6eee6;font-size:6px;letter-spacing:.14em}.config-preview-cover b{margin-top:2px;font-size:15px}.config-preview-cover em{margin-top:2px;font-size:7px;font-style:normal;opacity:.88}.config-preview-v2>section{padding:11px;border:1px solid var(--line);border-radius:13px 17px 12px 15px;background:rgba(255,255,255,.45)}.config-preview-v2 section>header{display:flex;align-items:end;justify-content:space-between}.config-preview-v2 section>header h3{margin:2px 0 0;font-size:11px}.config-preview-v2 section>header>b{color:var(--primary);font-size:19px}.config-progress{height:6px;overflow:hidden;margin:9px 0 11px;border-radius:5px;background:#e5e4d3}.config-progress i{display:block;width:86%;height:100%;background:linear-gradient(90deg,var(--primary),#86c5b8)}.config-preview-v2 ul{gap:0}.config-preview-v2 li{display:grid;grid-template-columns:23px 1fr;align-items:center;gap:6px;padding:8px 0}.config-preview-v2 li>span{width:21px;height:21px;display:grid;place-items:center;border-radius:50%;color:white;background:var(--primary);font-size:8px;font-weight:900}.config-preview-v2 li.warn>span{background:var(--coral)}.config-preview-v2 li>div{display:grid;gap:2px}.config-preview-v2 li b{font-size:8px}.config-preview-v2 li small{color:var(--muted);font-size:6px}.config-guide{display:grid;grid-template-columns:25px 1fr;gap:7px;color:var(--text-2);background:#f4ecd2!important}.config-guide>span{color:var(--coral);font-size:18px}.config-guide b{font-size:8px}.config-guide p{margin:3px 0 0;font-size:7px;line-height:1.55}.config-preview-button{min-height:36px;margin-top:auto;border:0;border-radius:11px 15px 10px 13px;color:white;background:var(--primary);box-shadow:0 3px 0 var(--primary-deep);font-size:8px;font-weight:900}
@media(max-width:1180px) and (min-width:721px){.config-workspace-v2{grid-template-columns:156px minmax(430px,1fr)}.config-preview-v2{display:none}.config-tabs-v2{display:flex}}
@media(max-width:720px){.config-view.active{margin:-13px -13px calc(-18px - env(safe-area-inset-bottom));padding:0 0 calc(67px + env(safe-area-inset-bottom));overflow-y:auto}.config-topbar{position:sticky;z-index:15;top:0;min-height:63px;grid-template-columns:32px minmax(0,1fr) auto;gap:8px;padding:8px 11px}.config-back{width:30px;height:30px}.config-heading .eyebrow,.config-heading p,.config-save-state small{display:none}.config-heading h1{font-size:15px}.config-save-state{padding:7px 8px}.config-save-state b{max-width:62px;font-size:7px;line-height:1.25}.config-workspace-v2{display:flex;flex-direction:column;gap:8px;min-height:auto;padding:8px;overflow:visible}.config-tabs-v2{position:sticky;z-index:12;top:63px;display:flex;flex-direction:row;gap:4px;padding:6px;overflow-x:auto;border-radius:13px 15px 12px 14px;scrollbar-width:none}.config-tabs-v2::-webkit-scrollbar{display:none}.config-nav-brand,.config-nav-group>small{display:none}.config-nav-group{display:contents}.config-tabs-v2 .config-nav-group button{flex:0 0 auto;width:auto;min-width:70px;height:35px;grid-template-columns:17px auto;gap:3px;padding:0 9px}.config-tabs-v2 .config-nav-group button>span{font-size:12px}.config-tabs-v2 .config-nav-group button>b{font-size:8px}.config-tabs-v2 .config-nav-group button>em{display:none}.config-editor-v2{min-height:570px;overflow:visible}.config-editor-head{position:static;min-height:68px;padding:13px 14px}.config-editor-head h2{font-size:18px}.config-form-card{margin:8px;padding:13px}.config-form-card .editor-grid,.entity-form .editor-grid{grid-template-columns:1fr}.config-form-card .editor-grid .full,.entity-form .editor-grid .full{grid-column:auto}.kind-pick-large{grid-template-columns:1fr}.config-split{display:flex;flex-direction:column;min-height:auto}.entity-list{padding:8px;overflow:hidden;border-right:0;border-bottom:1px solid var(--line)}.entity-list>div{display:flex;overflow-x:auto;padding-bottom:3px;scrollbar-width:none}.entity-list>div::-webkit-scrollbar{display:none}.entity-list>div>button{flex:0 0 154px}.entity-form{padding:13px}.employer-card{align-items:flex-start}.employer-card>div:last-child{display:grid}.config-empty-feature{min-height:430px;padding:25px 18px}.config-preview-v2{display:flex;overflow:visible}.config-preview-cover{min-height:94px}.config-preview-v2>section:first-of-type{display:none}.config-guide{display:grid!important}.config-preview-button{min-height:39px;margin-top:0}}

/* 高级配置完整功能原型 */
.config-editor-v2 button,.config-modal-layer button{font-family:inherit;cursor:pointer}.config-editor-v2 input,.config-editor-v2 select,.config-editor-v2 textarea,.config-modal-layer input,.config-modal-layer select,.config-modal-layer textarea{font-family:inherit}.config-editor-v2 [hidden],.config-tabs-v2 [hidden],.config-modal-layer [hidden]{display:none!important}
.config-explicit-head-save{height:34px;padding:0 12px;border:0;border-radius:11px 15px 10px 13px;color:white;background:var(--primary);box-shadow:0 3px 0 var(--primary-deep);font-size:9px;font-weight:900}.config-explicit-save{width:100%;height:38px;margin-top:14px;border:0;border-radius:12px 16px 11px 14px;color:white;background:var(--primary);box-shadow:0 3px 0 var(--primary-deep);font-size:9px;font-weight:900}.config-inline-add{min-height:31px;margin-top:8px;padding:0 10px;border:1px dashed var(--line-strong);border-radius:10px 13px 9px 12px;color:var(--primary-deep);background:var(--surface-2);font-size:8px;font-weight:900}.config-repeat-list{display:grid;gap:6px}.config-repeat-list>div{display:grid;grid-template-columns:1fr 110px 28px;gap:6px}.config-repeat-list input,.festival-table input,.festival-table select,.shop-goods input,.shop-goods select{min-width:0;height:34px;border:1px solid var(--line);border-radius:9px 11px 8px 10px;padding:0 9px;color:var(--text);background:var(--surface);font-size:8px}.config-repeat-list button,.festival-table button,.shop-goods button{border:1px solid var(--line);border-radius:8px;color:#a1574a;background:#fff7ee}
.entity-head-actions{display:flex;gap:5px}.entity-delete{height:29px;border:1px solid #e6c2b7;border-radius:9px 11px 8px 10px;padding:0 8px;color:#a1574a;background:#fff7ee;font-size:7px}.entity-form-footer{position:sticky;bottom:-16px;display:flex;align-items:center;justify-content:space-between;gap:9px;margin:18px -16px -16px;padding:10px 16px;border-top:1px solid var(--line);background:rgba(255,253,245,.96);backdrop-filter:blur(12px)}.entity-form-footer span{color:var(--muted);font-size:7px}.entity-form-footer button{height:34px;border:0;border-radius:11px 14px 10px 13px;padding:0 15px;color:white;background:var(--primary);box-shadow:0 3px 0 var(--primary-deep);font-size:8px;font-weight:900}
.config-toggle-box{display:flex;align-items:flex-start;gap:9px;min-height:48px;padding:10px;border:1px solid var(--line);border-radius:12px 16px 11px 14px;background:var(--surface-2)}.config-toggle-box>input{width:17px;height:17px;accent-color:var(--primary)}.config-toggle-box>div{display:grid;gap:2px}.config-toggle-box b{font-size:9px}.config-toggle-box small{color:var(--muted);font-size:7px;line-height:1.4}.config-upload-row{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:13px}.config-upload-row label{position:relative;display:grid;gap:2px;padding:10px 11px;border:1px dashed var(--line-strong);border-radius:11px 15px 10px 13px;color:var(--primary-deep);background:var(--surface-2);cursor:pointer}.config-upload-row b{font-size:9px}.config-upload-row small{color:var(--muted);font-size:7px}.config-upload-row input{position:absolute;inset:0;opacity:0;cursor:pointer}
.world-cover-upload{display:grid;grid-template-columns:104px minmax(0,1fr);gap:12px;align-items:center;padding:10px;border:1px solid var(--line);border-radius:14px 18px 13px 16px;background:linear-gradient(125deg,rgba(216,238,230,.55),rgba(255,250,236,.72))}.world-cover-upload-preview{aspect-ratio:7 / 8;display:flex;flex-direction:column;justify-content:end;overflow:hidden;padding:9px;border-radius:11px 15px 10px 13px;color:white;background:linear-gradient(160deg,rgba(102,168,188,.9),rgba(36,104,114,.92)),url('./assets/island-hero.png') center / cover;box-shadow:inset 0 0 0 1px rgba(255,255,255,.3)}.world-cover-upload-preview.has-custom-cover{background-position:center;background-size:cover}.world-cover-upload-preview span{align-self:start;padding:3px 5px;border-radius:6px;background:rgba(255,255,255,.78);color:var(--primary-deep);font-size:6px;font-weight:900}.world-cover-upload-preview b{margin-top:auto;font-size:10px;text-shadow:0 1px 4px rgba(12,60,56,.6)}.world-cover-upload-preview.is-dragging,.world-cover-upload-drop.is-dragging{outline:2px solid var(--primary);outline-offset:2px;background:var(--primary-soft)}.world-cover-upload-actions{display:flex;flex-wrap:wrap;align-items:center;gap:7px}.world-cover-upload-actions>div{min-width:130px;flex:1;display:grid;gap:3px}.world-cover-upload-actions b{font-size:10px}.world-cover-upload-actions small{color:var(--muted);font-size:7px;line-height:1.5}.world-cover-upload-trigger,.world-cover-remove{height:31px;display:grid;place-items:center;padding:0 9px;border-radius:9px 12px 8px 11px;font-size:8px;font-weight:900;cursor:pointer}.world-cover-upload-trigger{position:relative;overflow:hidden;color:white;background:var(--primary);box-shadow:0 2px 0 var(--primary-deep)}.world-cover-upload-trigger input{position:absolute;inset:0;opacity:0;cursor:pointer}.world-cover-remove{border:1px solid var(--line);color:var(--text-2);background:var(--surface)}.world-cover-upload-drop{margin:9px 1px 0;padding:7px;border:1px dashed var(--line-strong);border-radius:9px 12px 8px 11px;color:var(--muted);font-size:7px;text-align:center;transition:.18s}.world-cover-upload-drop.is-dragging{color:var(--primary-deep)}.world-cover.has-custom-cover{background-position:center;background-size:cover}.world-cover.has-custom-cover::before,.world-cover.has-custom-cover::after{display:none}.world-cover.has-custom-cover .cover-symbol{display:none}.world-cover.has-custom-cover .cover-badge{background:rgba(255,255,255,.88)}
.level-system-body{padding-bottom:15px}.level-auto-state{display:flex;justify-content:flex-end;align-items:center;gap:5px;margin:10px 16px 0;color:var(--muted);font-size:7px}.level-auto-state i{width:7px;height:7px;border-radius:50%;background:var(--primary)}.level-family-row{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:10px 15px}.level-family-row>button{min-height:67px;display:grid;gap:4px;padding:11px;border:1px solid var(--line);border-radius:13px 18px 12px 16px;color:var(--text-2);background:rgba(255,255,255,.55);text-align:left}.level-family-row b{font-size:10px}.level-family-row small{font-size:7px;line-height:1.4}.level-family-row>button.active{color:var(--primary-deep);border-color:var(--primary);background:var(--primary-soft);box-shadow:0 3px 0 rgba(46,143,135,.18)}.level-simple{max-width:620px}.realm-list{display:grid;gap:6px}.realm-list>div{display:grid;grid-template-columns:25px 1fr repeat(3,28px);gap:5px;align-items:center}.realm-list em{font-size:8px;font-style:normal;text-align:center}.realm-list input{height:34px;border:1px solid var(--line);border-radius:9px;padding:0 9px;background:var(--surface)}.realm-list button{border:1px solid var(--line);border-radius:8px;background:var(--surface-2)}
.evolution-card{padding:0;overflow:hidden}.evolution-head{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:13px 14px;border-bottom:1px dashed var(--line)}.evolution-head>div:first-child{display:grid;gap:2px}.evolution-head b{font-size:11px}.evolution-head small{color:var(--muted);font-size:7px}.level-view-switch{display:flex;gap:3px;padding:3px;border-radius:10px;background:var(--surface-2)}.level-view-switch button{height:27px;border:0;border-radius:8px;padding:0 8px;color:var(--muted);background:transparent;font-size:7px;font-weight:900}.level-view-switch button.active{color:var(--primary-deep);background:var(--surface);box-shadow:0 2px 7px rgba(38,80,71,.1)}.evolution-summary{display:flex;flex-wrap:wrap;gap:5px;padding:10px 14px 2px}.evolution-summary span{padding:4px 7px;border-radius:8px;color:var(--text-2);background:var(--surface-2);font-size:7px}.evolution-summary .fork{color:#a0633e;background:#faead4}.evolution-summary .merge{color:#366e67;background:#daefea}.evolution-legend{display:flex;flex-wrap:wrap;gap:11px;padding:7px 14px;color:var(--muted);font-size:7px}.evolution-legend span{display:flex;align-items:center;gap:5px}.evolution-legend i{width:20px;border-top:2px solid var(--primary)}.evolution-legend i.dash{border-top-style:dashed}.evolution-legend i.dot{width:8px;height:8px;border:0;border-radius:50%;background:var(--primary)}
.evolution-scroll{overflow-x:auto;overflow-y:hidden;padding:4px 10px 10px;scrollbar-color:#b1c0b6 transparent;scrollbar-width:thin}.evolution-canvas{width:940px;height:430px;position:relative;overflow:hidden;border:1px solid rgba(73,107,95,.16);border-radius:14px 18px 13px 17px;background:radial-gradient(circle at 72% 12%,rgba(238,193,110,.16),transparent 22%),linear-gradient(145deg,rgba(230,244,238,.78),rgba(255,249,231,.75))}.evolution-canvas svg{position:absolute;z-index:2;inset:0;width:940px;height:430px;overflow:visible}.evolution-canvas svg>path{fill:none;stroke:var(--primary);stroke-width:2;opacity:.72}.evolution-canvas svg>path.cross{stroke:#d48569;stroke-dasharray:7 5}.evolution-canvas svg>path.merge{stroke-width:3}.evolution-canvas marker path{fill:var(--primary);stroke:none}.evolution-canvas .evo-lane{position:absolute;z-index:1;left:150px;right:150px;height:145px;border:1px dashed rgba(46,143,135,.2);border-radius:18px;background:rgba(255,255,255,.22)}.evo-lane.lane-one{top:25px}.evo-lane.lane-two{bottom:24px}.evo-lane>b{position:absolute;left:12px;top:8px;color:var(--primary-deep);font-size:8px}.evo-lane>button{position:absolute;right:9px;top:6px;height:23px;border:1px solid var(--line);border-radius:8px;color:var(--primary-deep);background:rgba(255,253,245,.82);font-size:6px}.topology-labels{position:absolute;z-index:1;inset:0;display:grid;grid-template-columns:repeat(5,1fr);pointer-events:none}.topology-labels span{padding-top:10px;border-right:1px dashed rgba(46,143,135,.15);color:#91a198;font-size:7px;text-align:center}.topology-labels span:last-child{border:0}
.evo-node{position:absolute;z-index:3;left:var(--x);top:var(--y);width:132px;min-height:70px;display:grid;grid-template-columns:32px 1fr;align-items:center;gap:7px;padding:8px;border:1px solid #b8d4c8;border-radius:12px 17px 11px 15px;color:var(--text);background:rgba(255,253,245,.96);box-shadow:0 5px 14px rgba(38,82,72,.12);text-align:left;transition:.18s}.evo-node:hover{z-index:5;transform:translateY(-2px);border-color:var(--primary);box-shadow:0 9px 20px rgba(38,82,72,.18)}.evo-node>span{width:31px;height:31px;display:grid;place-items:center;border-radius:47% 53%;color:white;background:var(--primary);font-size:11px;font-weight:900}.evo-node>div{min-width:0;display:grid;gap:2px}.evo-node b,.evo-node small,.evo-node em{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.evo-node b{font-size:8px}.evo-node small{color:var(--muted);font-size:6px}.evo-node em{color:var(--primary);font-size:6px;font-style:normal}.evo-node>aside{position:absolute;right:5px;top:-8px;display:flex;gap:2px}.evo-node>aside i{padding:2px 4px;border-radius:6px;color:white;background:#788d84;font-size:5px;font-style:normal}.evo-node>aside i.start{background:var(--coral)}.evo-node>aside i.fork{background:#c78c4d}.evo-node>aside i.merge{background:var(--primary)}.evo-node>aside i.end{background:#416b83}.evolution-card>footer{display:flex;justify-content:flex-end;gap:6px;padding:10px 14px;border-top:1px dashed var(--line)}.evolution-card>footer button{height:30px;border:1px solid var(--line);border-radius:9px 12px 8px 11px;padding:0 9px;color:var(--primary-deep);background:var(--surface-2);font-size:7px;font-weight:900}.level-index-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:0 15px}.level-index-grid .config-form-card{margin:0}.level-index-list{display:grid;gap:5px}.level-index-list>button{display:flex;justify-content:space-between;align-items:center;gap:7px;min-height:46px;padding:7px 8px;border:1px solid var(--line);border-radius:10px 13px 9px 12px;color:var(--text);background:var(--surface);text-align:left}.level-index-list>button>div{display:grid;gap:2px}.level-index-list b{font-size:8px}.level-index-list small{color:var(--muted);font-size:6px}.level-index-list>button>span{color:var(--primary);font-size:7px;font-weight:900}
.calendar-config-body,.job-config-body{padding-bottom:14px}.config-month-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:6px}.config-month-grid span{display:grid;gap:3px;padding:9px 6px;border:1px solid var(--line);border-radius:9px 12px 8px 11px;background:var(--surface-2);text-align:center}.config-month-grid b{font-size:8px}.config-month-grid small{color:var(--muted);font-size:6px}.festival-table{display:grid;gap:5px;overflow-x:auto}.festival-table>header,.festival-table>div{min-width:590px;display:grid;grid-template-columns:1fr 115px 65px 1.4fr 28px;gap:5px;align-items:center}.festival-table>header{padding:0 5px;color:var(--muted);font-size:7px}.festival-table>div button{height:34px}
.employer-group{margin:12px 15px;padding:13px;border:1px solid var(--line);border-radius:16px 20px 15px 18px;background:rgba(255,255,255,.5)}.employer-group>header{display:flex;justify-content:space-between;align-items:center;gap:10px;padding-bottom:11px;border-bottom:1px dashed var(--line)}.employer-group>header>div{display:flex;align-items:center;gap:8px}.employer-group>header>div:first-child>span{width:33px;height:33px;display:grid;place-items:center;border-radius:50%;color:white;background:var(--coral);font-size:10px;font-weight:900}.employer-group>header>div:first-child>div{display:grid;gap:2px}.employer-group>header b{font-size:10px}.employer-group>header small{color:var(--muted);font-size:7px}.employer-group>header button{height:27px;border:1px solid var(--line);border-radius:9px;padding:0 8px;color:var(--primary-deep);background:var(--surface-2);font-size:7px}.job-detail-card{margin-top:10px;padding:12px;border:1px solid var(--line);border-radius:13px 17px 12px 15px;background:var(--surface)}.job-title-row{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:11px}.job-title-row>b{font-size:11px}.job-title-row>div{display:grid;gap:2px}.job-title-row small{color:var(--muted);font-size:7px}.job-title-row button{height:26px;border:1px solid var(--line);border-radius:8px;color:#a1574a;background:#fff7ee;font-size:7px}.job-detail-card.collapsed{padding:9px 11px}.job-detail-card.collapsed .job-title-row{margin:0}.employer-group.compact>header{border:0;padding:0}
.map-config-split{min-height:calc(100% - 82px);display:grid;grid-template-columns:215px minmax(0,1fr)}.map-tree{padding:11px;border-right:1px solid var(--line);background:rgba(238,245,235,.6)}.map-tree>label{height:34px;display:flex;align-items:center;gap:5px;padding:0 9px;border:1px solid var(--line);border-radius:10px 13px 9px 12px;background:var(--surface)}.map-tree>label input{min-width:0;border:0;outline:0;background:transparent;font-size:8px}.tree-root{display:grid;gap:3px;margin-top:10px}.tree-root button{height:36px;display:grid;grid-template-columns:17px 1fr auto;align-items:center;gap:4px;border:0;border-radius:9px;padding:0 7px;color:var(--text-2);background:transparent;text-align:left}.tree-root button b{font-size:8px}.tree-root button em{color:var(--muted);font-size:6px;font-style:normal}.tree-root button.active{color:var(--primary-deep);background:var(--primary-soft)}.tree-root>div{display:grid;gap:3px;padding-left:11px;border-left:1px dashed var(--line-strong)}.tree-root>div>div{display:grid;gap:3px;padding-left:11px;border-left:1px dashed var(--line-strong)}.map-editor-form{padding:16px}.map-editor-form>header{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:15px;padding-bottom:11px;border-bottom:1px dashed var(--line)}.map-editor-form>header>div{display:grid;gap:2px}.map-editor-form>header>div:last-child{display:flex;flex-direction:row}.map-editor-form>header b{font-size:12px}.map-editor-form>header small{color:var(--muted);font-size:7px}.map-editor-form>header button{height:28px;border:1px solid var(--line);border-radius:9px;padding:0 8px;color:var(--primary-deep);background:var(--surface-2);font-size:7px}.config-condition-builder span{display:grid;grid-template-columns:1fr auto;align-items:center}.config-condition-builder span button{border:0;color:#a1574a;background:transparent}
.shop-goods,.reward-editor,.event-effects{margin-top:15px;padding:11px;border:1px solid var(--line);border-radius:13px 17px 12px 15px;background:var(--surface-2)}.shop-goods>header,.reward-editor>header{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:9px}.shop-goods>header>div,.reward-editor>header{display:flex}.shop-goods>header>div{display:grid;gap:2px}.shop-goods b,.reward-editor b{font-size:9px}.shop-goods small,.reward-editor small{color:var(--muted);font-size:7px}.shop-goods>header button{height:27px;border:1px solid var(--line);border-radius:8px;color:var(--primary-deep);background:var(--surface);font-size:7px}.shop-goods>div{display:grid;grid-template-columns:1.4fr 90px 110px 28px;gap:5px;align-items:center;margin-top:5px}.shop-goods-head{color:var(--muted);font-size:7px}.shop-goods>div button{height:34px}.condition-panels{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:13px}.condition-panels>section{display:grid;gap:6px;padding:10px;border:1px solid var(--line);border-radius:12px 16px 11px 14px;background:var(--surface-2)}.condition-panels header{display:flex;justify-content:space-between;align-items:center}.condition-panels header b{font-size:9px}.condition-panels header button{height:25px;border:1px solid var(--line);border-radius:8px;color:var(--primary-deep);background:var(--surface);font-size:7px}.condition-panels p{margin:0;color:var(--muted);font-size:7px;line-height:1.4}.condition-panels>section>span{display:flex;justify-content:space-between;padding:8px;border-radius:8px;background:var(--surface);font-size:7px}.condition-panels>section>span button{border:0;color:#a1574a;background:transparent}.reward-editor>header{justify-content:flex-start}.reward-editor .editor-grid{margin-top:9px}

/* 进化路径与配置项编辑弹窗 */
.config-modal-layer{position:fixed;z-index:240;inset:0;display:none;place-items:center;padding:18px}.config-modal-layer.open{display:grid}.config-modal-backdrop{position:absolute;inset:0;border:0;background:rgba(20,61,55,.58);backdrop-filter:blur(8px)}.config-modal-sheet{width:min(760px,calc(100vw - 34px));max-height:calc(100dvh - 36px);position:relative;z-index:1;overflow:auto;padding:26px 28px 22px;border:1px solid rgba(255,255,255,.82);border-radius:28px 35px 26px 31px;color:var(--text);background:linear-gradient(145deg,#fffdf4,#f1f3df);box-shadow:0 30px 90px rgba(18,57,51,.42);animation:notice-in .25s cubic-bezier(.2,.9,.25,1.12)}.config-modal-sheet::before{content:"";position:absolute;right:-25px;top:-28px;width:130px;height:85px;border-radius:50%;background:rgba(147,199,190,.22);transform:rotate(-15deg)}.config-modal-sheet>*{position:relative;z-index:1}.config-modal-close{position:absolute;z-index:3;right:14px;top:13px;width:34px;height:34px;border:1px solid var(--line);border-radius:50%;color:var(--text-2);background:var(--surface);font-size:20px}.config-modal-stamp{width:48px;height:45px;display:grid;place-items:center;margin-bottom:9px;border-radius:45% 55% 48% 52%;color:white;background:var(--coral);box-shadow:0 4px 0 #bd6557;font-size:18px;font-weight:900;transform:rotate(-5deg)}.config-modal-sheet h2{margin:4px 0;color:var(--primary-deep);font-size:22px}.config-modal-lead{margin:0 0 15px;color:var(--text-2);font-size:9px;line-height:1.55}.modal-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px}.modal-grid.one{grid-template-columns:1fr}.modal-grid label,.modal-risk-box label{display:grid;gap:5px;color:var(--text-2);font-size:8px;font-weight:800}.modal-grid input,.modal-grid select,.modal-grid textarea,.modal-condition-row input,.modal-condition-row select,.risk-fields input{width:100%;min-width:0;height:37px;border:1px solid var(--line);border-radius:10px 13px 9px 12px;padding:0 10px;outline:0;color:var(--text);background:rgba(255,255,255,.72);font-size:9px}.modal-grid textarea{height:auto;padding:9px;resize:vertical}.modal-condition-box,.modal-transitions{margin-top:14px;padding:11px;border:1px solid var(--line);border-radius:13px 17px 12px 15px;background:rgba(255,255,255,.43)}.modal-condition-box>header,.modal-transitions>header,.modal-transition>header{display:flex;justify-content:space-between;align-items:center;gap:8px}.modal-condition-box header b,.modal-transitions header b,.modal-transition header b{font-size:9px}.modal-condition-box header button,.modal-transitions header button,.modal-transition header button{height:27px;border:1px solid var(--line);border-radius:8px;padding:0 8px;color:var(--primary-deep);background:var(--surface-2);font-size:7px}.modal-condition-list{display:grid;gap:6px;margin-top:9px}.modal-condition-row{display:grid;grid-template-columns:1.15fr 1fr 70px 1fr 28px;gap:5px}.modal-condition-row button{border:1px solid var(--line);border-radius:8px;color:#a1574a;background:#fff7ee}.modal-risk-box{margin-top:11px;padding:9px;border:1px dashed var(--line-strong);border-radius:11px 14px 10px 13px;background:var(--surface-2)}.modal-risk-box>label{display:flex;align-items:center}.modal-risk-box>label input{width:16px;height:16px;accent-color:var(--coral)}.risk-fields{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:8px}.modal-transition-list{display:grid;gap:9px;margin-top:10px}.modal-transition{padding:10px;border:1px solid var(--line);border-radius:12px 16px 11px 14px;background:var(--surface)}.modal-transition>.modal-grid{margin-top:9px}.modal-empty{padding:22px;color:var(--muted);font-size:8px;text-align:center}.config-impact-list{display:grid;gap:7px;margin:15px 0}.config-impact-list>span{display:grid;grid-template-columns:27px 1fr;align-items:center;gap:8px;padding:9px;border:1px solid var(--line);border-radius:11px 15px 10px 13px;background:rgba(255,255,255,.5)}.config-impact-list i{width:25px;height:25px;display:grid;place-items:center;border-radius:50%;color:white;background:var(--primary);font-size:9px;font-style:normal}.config-impact-list>span:last-child i{background:var(--coral)}.config-impact-list div{display:grid;gap:2px}.config-impact-list b{font-size:9px}.config-impact-list small{color:var(--muted);font-size:7px}.config-modal-actions{position:sticky;bottom:-22px;display:flex;justify-content:flex-end;gap:7px;margin:17px -28px -22px;padding:11px 28px calc(11px + env(safe-area-inset-bottom));border-top:1px solid var(--line);background:rgba(255,253,245,.95);backdrop-filter:blur(12px)}.config-modal-actions button{min-height:34px;border:1px solid var(--line);border-radius:10px 14px 9px 12px;padding:0 13px;color:var(--text-2);background:var(--surface);font-size:8px;font-weight:900}.config-modal-actions button.primary{border-color:var(--primary);color:white;background:var(--primary);box-shadow:0 3px 0 var(--primary-deep)}.config-modal-actions button.danger{margin-right:auto;color:#a1574a;border-color:#e4b8ad;background:#fff4ec}
@media(max-width:720px){.level-family-row{grid-template-columns:1fr;margin:8px}.level-family-row>button{min-height:56px}.level-auto-state{margin-right:10px}.evolution-card{margin:8px}.evolution-head{align-items:flex-start;flex-direction:column}.level-view-switch{width:100%}.level-view-switch button{flex:1;min-height:34px}.evolution-scroll{padding-left:7px}.evolution-canvas{width:880px}.evolution-canvas svg{width:940px}.level-index-grid{grid-template-columns:1fr;margin:0 8px}.config-month-grid{grid-template-columns:repeat(3,1fr)}.config-upload-row{grid-template-columns:1fr}.condition-panels{grid-template-columns:1fr}.map-config-split{display:flex;flex-direction:column}.map-tree{border-right:0;border-bottom:1px solid var(--line)}.tree-root{max-height:215px;overflow:auto}.map-editor-form{padding:13px}.shop-goods{overflow-x:auto}.shop-goods>div{min-width:540px}.employer-group{margin:8px}.employer-group>header{align-items:flex-start}.employer-group>header>div:last-child{display:grid}.festival-table>header,.festival-table>div{min-width:560px}.config-modal-layer{align-items:end;padding:0}.config-modal-sheet{width:100%;max-height:92dvh;padding:23px 15px 0;border-radius:24px 29px 0 0;border-bottom:0}.config-modal-sheet h2{font-size:19px}.modal-grid{grid-template-columns:1fr}.modal-condition-row{grid-template-columns:1fr 1fr}.modal-condition-row select:first-child,.modal-condition-row input:nth-of-type(3){grid-column:1/-1}.modal-condition-row button{min-height:36px}.risk-fields{grid-template-columns:1fr 1fr}.modal-transition>.modal-grid{grid-template-columns:1fr}.config-modal-actions{bottom:0;margin:17px -15px 0;padding:10px 15px calc(12px + env(safe-area-inset-bottom))}.config-modal-actions button{min-height:42px}.entity-form-footer{bottom:0}.config-topbar+.config-workspace-v2{padding-top:8px}}

.config-save-state.unsaved>i{background:#e59a58;box-shadow:0 0 0 1px #d88944}.config-save-state.unsaved b{color:#9b6338}.entity-pager{display:flex;align-items:center;justify-content:center;gap:6px;margin-top:10px;padding-top:8px;border-top:1px dashed var(--line)}.entity-pager button{width:28px;height:27px;border:1px solid var(--line);border-radius:8px;color:var(--primary-deep);background:var(--surface)}.entity-pager b{color:var(--muted);font-size:7px}
@media(max-width:720px){.evolution-canvas,.evolution-canvas svg{width:940px}}
@media(max-width:720px){body:has(.config-view.active) .mobile-nav-toggle{display:none}}

/* 游玩输入栏：语音 / 键盘双态。放在文件末尾避免原型旧规则覆盖。 */
.action-composer > .composer-voice-toggle {
  width: 34px;
  min-width: 34px;
  height: 34px;
  min-height: 34px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--primary-deep);
  background: var(--surface);
  box-shadow: 0 2px 0 rgba(48,75,67,.12);
}
.action-composer > .voice-hold-button { display: none; }
.action-composer:not(.voice-mode) > textarea { display: block; }
.action-composer:not(.voice-mode) > .send-button { display: block; }
.action-composer.voice-mode {
  grid-template-columns: 36px minmax(0,1fr);
}
.action-composer.voice-mode > textarea,
.action-composer.voice-mode > .send-button,
.action-composer.voice-mode .voice-toggle-icon { display: none; }
.action-composer.voice-mode > .voice-hold-button {
  display: block;
  width: 100%;
}
.action-composer.voice-mode .keyboard-toggle-icon { display: grid; }
@media (max-width:720px) {
  .action-composer > .composer-voice-toggle {
    width: 32px;
    min-width: 32px;
    height: 32px;
    min-height: 32px;
  }
  .action-composer.voice-mode { grid-template-columns: 34px minmax(0,1fr); }
}

/* 长按录音反馈层 */
.voice-recording-layer {
  position: fixed;
  z-index: 520;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
  visibility: hidden;
  opacity: 0;
  transition: opacity .16s ease, visibility .16s ease;
}
.voice-recording-layer.open { visibility: visible; opacity: 1; }
.voice-recording-shade {
  position: absolute;
  inset: 0;
  background: rgba(18,28,25,.68);
  backdrop-filter: blur(2px);
}
.voice-recording-card {
  position: relative;
  z-index: 1;
  width: min(250px, calc(100vw - 72px));
  min-height: 120px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 11px;
  padding: 19px 24px 17px;
  border: 1px solid rgba(255,255,255,.4);
  border-radius: 22px 25px 20px 24px;
  color: #173d35;
  background: linear-gradient(145deg,#a8f47c,#83df67);
  box-shadow: 0 18px 45px rgba(7,20,16,.35), 0 4px 0 rgba(52,132,78,.78);
  animation: voice-card-in .18s cubic-bezier(.2,.9,.3,1.15) both;
}
.voice-recording-card::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -10px;
  width: 21px;
  height: 21px;
  border-radius: 2px 3px 5px 3px;
  background: #83df67;
  transform: translateX(-50%) rotate(45deg);
  box-shadow: 4px 4px 0 rgba(52,132,78,.45);
}
.voice-recording-card small {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .16em;
}
.voice-recording-card b {
  font-size: 10px;
  letter-spacing: .12em;
  opacity: .7;
}
.voice-recording-wave {
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
}
.voice-recording-wave i {
  width: 3px;
  height: 8px;
  border-radius: 3px;
  background: #225e43;
  transform-origin: center;
  animation: voice-wave .72s ease-in-out infinite alternate;
}
.voice-recording-wave i:nth-child(3n+1) { animation-delay: -.58s; }
.voice-recording-wave i:nth-child(3n+2) { animation-delay: -.31s; }
.voice-recording-wave i:nth-child(4n) { animation-delay: -.12s; }
.voice-recording-wave i:nth-child(5n) { animation-duration: .52s; }
.voice-recording-hint {
  position: fixed;
  z-index: 1;
  left: 50%;
  bottom: max(34px, calc(env(safe-area-inset-bottom) + 22px));
  margin: 0;
  padding: 10px 18px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 999px;
  color: white;
  background: rgba(255,255,255,.12);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  transform: translateX(-50%);
}
@keyframes voice-wave {
  0% { height: 6px; opacity: .55; }
  45% { height: 27px; opacity: 1; }
  100% { height: 12px; opacity: .78; }
}
@keyframes voice-card-in {
  from { opacity: 0; transform: translateY(8px) scale(.94); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .voice-recording-wave i { animation-duration: 1.4s; }
}

/* ── 邀请进度 · 无限畅聊卡（72 小时 gpt-5.6-luna 文本不限量） ────────────── */
.account-menu > button[data-action="open-invitation"] { height: 44px; }.account-menu > button[data-action="open-invitation"] > span:nth-child(2) { width: auto; display: grid; gap: 1px; color: inherit; font-size: 11px; text-align: left; }.account-menu > button[data-action="open-invitation"] small { color: var(--muted); font-size: 8px; font-weight: 600; }

.invite-progress { margin: 17px 0 12px; padding: 13px 14px 12px; border: 1px solid rgba(46,143,135,.2); border-radius: 17px 20px 16px 19px; background: linear-gradient(135deg, color-mix(in srgb, var(--primary-soft) 72%, white), color-mix(in srgb, var(--sand) 34%, white)); text-align: left; }
.invite-progress-head { display: flex; align-items: baseline; gap: 4px; color: var(--text-2); font-size: 10px; }.invite-progress-head b { color: var(--primary-deep); font-size: 22px; line-height: 1; }.invite-progress-head small { color: var(--text-2); font-size: 9px; }.invite-progress-head em { margin-left: auto; padding: 3px 8px; border-radius: 9px; color: var(--muted); background: rgba(255,255,255,.66); font-size: 8px; font-style: normal; font-weight: 800; }.invite-progress-head em.owned { color: #b7594d; background: color-mix(in srgb, var(--sand) 70%, white); }
.invite-track { position: relative; height: 8px; margin: 24px 0 30px; border-radius: 99px; background: rgba(255,255,255,.75); box-shadow: inset 0 1px 2px rgba(48,75,67,.1); }
.invite-track-fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 99px; background: linear-gradient(90deg, var(--primary), #63c0b4); transition: width .45s cubic-bezier(.2,.9,.25,1.05); }
.invite-nodes i { position: absolute; top: 50%; transform: translate(-50%, -50%); }
.invite-nodes i em { display: grid; place-items: center; width: 19px; height: 19px; border: 2px solid rgba(255,255,255,.9); border-radius: 50%; color: var(--muted); background: var(--surface-2); box-shadow: 0 2px 5px rgba(48,75,67,.16); font-size: 9px; font-style: normal; font-weight: 900; transition: .3s ease; }
.invite-nodes i small { position: absolute; left: 50%; top: 23px; transform: translateX(-50%); color: var(--muted); white-space: nowrap; font-size: 8px; font-weight: 800; }
.invite-nodes i.reached em { color: white; background: var(--primary); border-color: white; }
.invite-nodes i.reached small { color: var(--primary-deep); }
.invite-nodes i.pass em { width: 24px; height: 24px; color: white; background: linear-gradient(145deg, var(--coral), #eeaa78); font-size: 13px; }
.invite-nodes i.pass small { color: #b7594d; }
.invite-nodes i.pass.reached em { background: linear-gradient(145deg, var(--primary), #47ada4); }
.invite-progress-note { margin: 0 0 10px; color: var(--text-2); font-size: 10px; }.invite-progress-note b { color: var(--coral); font-size: 13px; }
.invite-next-reward { display: flex; align-items: center; gap: 9px; padding: 9px 10px; border: 1px dashed rgba(233,125,104,.5); border-radius: 13px 16px 12px 15px; background: rgba(255,255,255,.6); }
.invite-next-reward > span { display: grid; place-items: center; width: 27px; height: 27px; flex: 0 0 27px; border-radius: 47% 53% 44% 56%; color: white; background: linear-gradient(145deg, var(--coral), #eeaa78); font-size: 15px; font-weight: 900; }
.invite-next-reward div { min-width: 0; display: grid; gap: 2px; }.invite-next-reward b { font-size: 10px; }.invite-next-reward small { color: var(--muted); font-size: 8px; line-height: 1.4; }
.invite-next-reward em { flex: 0 0 auto; padding: 3px 7px; border-radius: 8px; color: #b7594d; background: color-mix(in srgb, var(--sand) 62%, white); font-size: 8px; font-style: normal; font-weight: 900; }
.invite-simulate { width: 100%; height: 30px; margin-bottom: 4px; border: 1px dashed var(--line-strong); border-radius: 11px 13px 10px 12px; color: var(--muted); background: transparent; font-size: 9px; font-weight: 800; }.invite-simulate:hover { color: var(--primary-deep); border-color: var(--primary); background: var(--primary-soft); }

.pass-pill { height: 36px; display: flex; align-items: center; gap: 6px; padding: 0 12px; border: 1px solid color-mix(in srgb, var(--primary) 38%, var(--line)); border-radius: 18px 15px 19px 16px; color: var(--primary-deep); background: linear-gradient(120deg, var(--primary-soft), color-mix(in srgb, var(--sand) 34%, var(--surface))); box-shadow: var(--shadow-soft); font-size: 10px; font-weight: 900; }
.pass-pill[hidden] { display: none; }
.pass-pill > span { color: var(--coral); font-size: 16px; font-weight: 900; }
.pass-pill b { font-variant-numeric: tabular-nums; letter-spacing: .02em; font-size: 11px; }
.pass-pill small { color: var(--text-2); font-size: 8px; }
.pass-pill:hover { transform: translateY(-1px) rotate(-.5deg); }

.pass-banner { margin: 15px 0 4px; padding: 12px 13px 11px; border: 1px solid rgba(46,143,135,.24); border-radius: 16px 19px 15px 18px; background: linear-gradient(130deg, color-mix(in srgb, var(--primary-soft) 78%, white), color-mix(in srgb, var(--sand) 30%, white)); }
.pass-banner[hidden], .pass-empty[hidden] { display: none; }
.pass-banner-head { display: flex; align-items: center; gap: 9px; }
.pass-banner-mark { display: grid; place-items: center; width: 30px; height: 27px; flex: 0 0 30px; border-radius: 47% 53% 43% 57%; color: white; background: linear-gradient(145deg, var(--primary), #47ada4); box-shadow: 0 4px 0 var(--primary-deep); font-size: 17px; font-weight: 900; transform: rotate(-4deg); }
.pass-banner-head div { min-width: 0; display: grid; gap: 2px; }.pass-banner-head b { color: var(--primary-deep); font-size: 11px; }.pass-banner-head small { color: var(--muted); font-size: 8px; }
.pass-banner-head em { margin-left: auto; color: var(--coral); font-size: 15px; font-style: normal; font-weight: 900; font-variant-numeric: tabular-nums; }
.pass-bar { height: 6px; margin: 10px 0 9px; border-radius: 99px; background: rgba(255,255,255,.72); overflow: hidden; }
.pass-bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--primary), #63c0b4); transition: width 1s linear; }
.pass-scope { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.pass-scope li { position: relative; padding-left: 15px; color: var(--text-2); font-size: 9px; line-height: 1.5; }
.pass-scope li::before { position: absolute; left: 0; top: 0; font-weight: 900; }
.pass-scope li.yes::before { content: "✓"; color: var(--primary); }
.pass-scope li.no { color: var(--muted); }
.pass-scope li.no::before { content: "×"; color: var(--coral); }
.pass-expire { display: block; margin-top: 9px; color: var(--muted); font-size: 8px; }

.pass-empty { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin: 15px 0 4px; padding: 11px 12px; border: 1px dashed var(--line-strong); border-radius: 16px 19px 15px 18px; }
.pass-empty > span { display: grid; place-items: center; width: 28px; height: 28px; flex: 0 0 28px; border-radius: 50%; color: var(--muted); background: var(--surface-2); font-size: 16px; font-weight: 900; }
.pass-empty > div:not(.pass-empty-actions) { flex: 1 1 150px; min-width: 0; display: grid; gap: 2px; }.pass-empty b { font-size: 10px; }.pass-empty small { color: var(--muted); font-size: 8px; line-height: 1.5; }
.pass-empty-actions { display: flex; gap: 6px; flex: 0 0 auto; }
.pass-empty-actions button { height: 27px; padding: 0 11px; border: 1px solid var(--line); border-radius: 9px 11px 8px 10px; color: var(--text-2); background: var(--surface-2); font-size: 9px; font-weight: 800; }
.pass-empty-actions button:first-child { color: white; border-color: transparent; background: var(--primary); }

.usage-note.is-pass { border-color: rgba(46,143,135,.32); background: linear-gradient(125deg, var(--primary-soft), color-mix(in srgb, var(--sand) 32%, white)); }
.usage-note.is-pass b { color: var(--primary-deep); }
.usage-note.is-pass span { color: var(--coral); }

.recharge-success-card.is-pass .success-seal { background: linear-gradient(145deg, var(--coral), #eeaa78); box-shadow: 0 7px 0 #c76059; }
.recharge-success-card.is-pass .success-amount b { color: var(--primary-deep); }
.success-scope { position: relative; z-index: 1; margin-top: 11px; color: var(--muted); font-size: 9px; line-height: 1.55; }
.success-scope[hidden] { display: none; }
.success-scope b { color: var(--text-2); }

@media (max-width: 720px) {
  .pass-pill { height: 32px; padding: 0 9px; gap: 4px; }
  .pass-pill small { display: none; }
  .invite-progress { padding: 12px 11px; }
  .invite-track { margin: 22px 0 28px; }
  .pass-empty-actions { flex: 1 1 100%; }
  .pass-empty-actions button { flex: 1; }
}

/* ===== 战斗世界：HP / MP（顶栏 + 场景人物卡 + 名帖浮卡），2026-11-16 ===== */
.status-bars.is-combat label > span { font-weight: 900; letter-spacing: .08em; }
.status-bars.is-combat label:first-child > span { color: #c4584a; }
.status-bars.is-combat label:last-child > span { color: #3f87a8; }
.status-bars.is-combat i.blue b { background: linear-gradient(90deg, #3f87a8, #8fd0e6); }
html[data-theme="classic"] .status-bars.is-combat i.blue b { background: linear-gradient(90deg, #3e5f73, #8aa4b2); }

.npc-vitals { display: grid; gap: 4px; margin-top: 8px; padding: 6px 8px; border-radius: 10px 12px 9px 11px; background: color-mix(in srgb, var(--surface-2) 70%, transparent); }
.npc-vital { display: grid; grid-template-columns: 18px minmax(0,1fr) auto; align-items: center; gap: 6px; }
.npc-vital > span { font-size: 7px; font-weight: 900; letter-spacing: .06em; }
.npc-vital.hp > span { color: #c4584a; }
.npc-vital.mp > span { color: #3f87a8; }
.npc-vital i { position: relative; height: 6px; overflow: hidden; border-radius: 6px; background: rgba(62,91,80,.1); box-shadow: inset 0 1px 1px rgba(48,75,67,.08); }
.npc-vital i b { display: block; height: 100%; border-radius: 6px; transition: width .35s ease; }
.npc-vital.hp i b { background: linear-gradient(90deg, #e2614f, #f2a07c); }
.npc-vital.mp i b { background: linear-gradient(90deg, #3f87a8, #8fd0e6); }
.npc-vital i::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, transparent 0 calc(25% - 1px), rgba(255,253,245,.75) calc(25% - 1px) 25%); pointer-events: none; }
.npc-vital em { min-width: 50px; color: var(--text); font-size: 8px; font-style: normal; font-weight: 800; font-variant-numeric: tabular-nums; text-align: right; }
.npc-vital em small { color: var(--muted); font-size: 7px; font-weight: 600; }
.npc-vital.hp.is-low i b { background: linear-gradient(90deg, #c63b2f, #e9705a); animation: npc-hp-low 1.4s ease-in-out infinite; }
.npc-vital.hp.is-low em { color: #c4584a; }
.npc-vital.is-empty em { color: var(--muted); }
@keyframes npc-hp-low { 50% { opacity: .55; } }
@media (prefers-reduced-motion: reduce) { .npc-vital.hp.is-low i b { animation: none; } }
html[data-theme="classic"] .npc-vital.hp i b { background: linear-gradient(90deg, #8c3a2b, #b9705e); }
html[data-theme="classic"] .npc-vital.mp i b { background: linear-gradient(90deg, #3e5f73, #8aa4b2); }
html[data-theme="classic"] .npc-vital.hp > span { color: #8c3a2b; }
html[data-theme="classic"] .npc-vital.mp > span { color: #3e5f73; }

.combat-npc-card { cursor: pointer; transition: border-color .15s ease, box-shadow .15s ease; }
.combat-npc-card:hover, .combat-npc-card.is-open { border-color: color-mix(in srgb, var(--primary) 45%, var(--line)); box-shadow: var(--shadow-soft); }
.combat-npc-card:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.combat-npc-card .scene-npc-top { grid-template-columns: 35px minmax(0,1fr); }
.combat-npc-card .scene-npc-actions button:last-child:nth-child(odd) { grid-column: 1 / -1; }
.combat-npc-card.is-dead { opacity: .6; filter: grayscale(1); }
.scene-npc-dead { grid-column: 1 / -1; padding: 5px 0; color: var(--coral); font-size: 8px; font-weight: 900; text-align: center; }

.npc-detail-pop { position: fixed; z-index: 70; max-height: calc(100dvh - 24px); overflow-y: auto; padding: 14px 15px 12px; border: 1px solid var(--line); border-radius: 17px 21px 16px 19px; color: var(--text); background: var(--surface); box-shadow: 0 18px 48px rgba(35,68,58,.2); scrollbar-width: thin; animation: npc-pop-in .16s ease; }
@keyframes npc-pop-in { from { opacity: 0; transform: translateX(6px); } }
.npc-detail-pop header { display: grid; grid-template-columns: 30px minmax(0,1fr) auto; align-items: center; gap: 8px; margin-bottom: 9px; }
.npc-detail-pop header .panel-row-icon { width: 30px; height: 30px; font-size: 12px; }
.npc-detail-pop h4 { margin: 0; font-size: 13px; }
.npc-pop-close { width: 26px; height: 26px; border: 0; border-radius: 50%; color: var(--text-2); background: transparent; font-size: 17px; cursor: pointer; }
.npc-pop-close:hover { background: var(--surface-2); }
.npc-pop-brief p { margin: 0; color: var(--text-2); font-size: 9px; line-height: 1.75; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.npc-detail-pop.brief-expanded .npc-pop-brief p { display: block; -webkit-line-clamp: unset; }
.npc-pop-more { display: inline-flex; align-items: center; gap: 3px; margin-top: 4px; border: 0; padding: 3px 0; color: var(--primary-deep); background: transparent; font: inherit; font-size: 8px; font-weight: 900; cursor: pointer; }
.npc-pop-more[hidden] { display: none; }
.npc-pop-more i { font-style: normal; transition: transform .15s ease; }
.npc-detail-pop.brief-expanded .npc-pop-more i { transform: rotate(180deg); }
.npc-detail-pop .npc-vitals { margin-top: 10px; }
.npc-detail-pop dl { margin: 8px 0 0; }
.npc-detail-pop dl > div { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px dashed var(--line-strong); font-size: 9px; }
.npc-detail-pop dl > div:last-child { border-bottom: 0; }
.npc-detail-pop dt { color: var(--muted); }
.npc-detail-pop dd { margin: 0; font-weight: 700; text-align: right; }
@media (max-width: 720px) {
  .npc-detail-pop { left: 0; right: 0; bottom: 0; top: auto; width: auto; max-height: 72dvh; padding: 16px 16px calc(16px + env(safe-area-inset-bottom)); border-radius: 22px 22px 0 0; animation-name: npc-sheet-in; }
  @keyframes npc-sheet-in { from { transform: translateY(24px); opacity: 0; } }
}
