/* ------------------------------ 体验页（/play） ------------------------------ */
.play-page {
  max-width: 1180px;
  margin: 0 auto;
  padding: 32px 20px 64px;
}

/* 体验区共享布局：左侧常驻竖向导航 + 主内容 */
.play-shell {
  width: min(1380px, 100%);
  margin: 0 auto;
  padding: 28px 24px 72px;
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  gap: 26px;
  align-items: start;
}
.play-shell .play-page,
.play-shell .ws-page {
  max-width: none;
  margin: 0;
  padding: 0;
}

.play-sidebar {
  min-width: 0;
  position: sticky;
  top: calc(var(--header-h, 68px) + 16px);
  align-self: start;
}
.play-sidebar-inner {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 16px;
  border-radius: 20px;
  border: 1px solid var(--border, rgba(124, 145, 214, 0.18));
  background:
    radial-gradient(240px 150px at 15% 0%, rgba(91, 124, 255, 0.16), transparent 70%),
    linear-gradient(165deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.015));
  box-shadow: var(--shadow-sm, 0 4px 16px rgba(2, 5, 14, 0.35));
  backdrop-filter: blur(10px);
}
.play-sidebar-label {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--dim, #7480ab);
}
.play-sidebar-games { display: grid; gap: 8px; }
.play-sidebar-game {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 11px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.035);
  color: var(--muted, #9aa6d4);
  text-decoration: none;
  transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}
.play-sidebar-game:hover {
  color: var(--text, #e9edff);
  border-color: var(--border-strong, rgba(124, 145, 214, 0.32));
  background: rgba(255, 255, 255, 0.06);
}
.play-sidebar-game.is-active {
  color: var(--text, #e9edff);
  border-color: rgba(91, 124, 255, 0.55);
  background: linear-gradient(135deg, rgba(91, 124, 255, 0.26), rgba(192, 132, 252, 0.16));
  box-shadow: 0 8px 22px rgba(91, 124, 255, 0.18);
}
.play-sidebar-game-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  flex: none;
  border-radius: 9px;
  background: rgba(91, 124, 255, 0.16);
  color: #b6c4ff;
}
.play-sidebar-game[data-play-game='world'] .play-sidebar-game-icon {
  background: rgba(176, 107, 255, 0.18);
  color: #d8b4fe;
}
.play-sidebar-game-icon .icon { width: 17px; height: 17px; }
.play-sidebar-game-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.play-sidebar-game-text strong { font-size: 13.5px; font-weight: 700; }
.play-sidebar-game-text small { margin-top: 2px; font-size: 10.5px; color: var(--dim, #7480ab); }
.play-sidebar-links {
  display: grid;
  gap: 4px;
  padding-top: 14px;
  border-top: 1px solid var(--border, rgba(124, 145, 214, 0.18));
}
.play-sidebar-link {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 10px;
  border-radius: 10px;
  color: var(--muted, #9aa6d4);
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.18s ease, background 0.18s ease;
}
.play-sidebar-link .icon { width: 16px; height: 16px; flex: none; }
.play-sidebar-link:hover { color: var(--text, #e9edff); background: rgba(255, 255, 255, 0.055); }
.play-sidebar-link.is-active {
  color: var(--text, #e9edff);
  background: rgba(91, 124, 255, 0.16);
}
.play-sidebar-foot {
  margin: 0;
  padding-top: 14px;
  border-top: 1px solid var(--border, rgba(124, 145, 214, 0.18));
  color: var(--dim, #7480ab);
  font-size: 11.5px;
  line-height: 1.65;
}

.play-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.play-kicker {
  color: var(--muted, #9aa6d4);
  font-size: 13px;
  letter-spacing: 0.08em;
  margin: 0 0 6px;
}
.play-title {
  font-size: clamp(26px, 3.6vw, 38px);
  letter-spacing: -0.01em;
  margin: 0 0 10px;
}
.play-sub {
  color: var(--muted, #9aa6d4);
  font-size: 14px;
  line-height: 1.7;
  margin: 0;
  max-width: 640px;
}

/* 世界切换已移入左侧导航（.play-sidebar-games） */

/* 世界横幅 */
.play-banner {
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 26px 28px;
  border-radius: 22px;
  border: 1px solid var(--border-strong, rgba(124, 145, 214, 0.32));
  background:
    radial-gradient(680px 280px at 12% 0%, rgba(79, 157, 255, 0.22), transparent 65%),
    radial-gradient(520px 260px at 88% 100%, rgba(192, 132, 252, 0.2), transparent 70%),
    var(--surface-solid, #0d1428);
  margin-bottom: 26px;
}
.play-banner--world {
  background:
    radial-gradient(680px 280px at 12% 0%, rgba(176, 107, 255, 0.24), transparent 65%),
    radial-gradient(520px 260px at 88% 100%, rgba(244, 114, 182, 0.18), transparent 70%),
    var(--surface-solid, #0d1428);
}
.play-banner-glow {
  position: absolute;
  inset: auto -80px -120px auto;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(91, 124, 255, 0.35), transparent 70%);
  pointer-events: none;
}
.play-banner--world .play-banner-glow { background: radial-gradient(circle, rgba(176, 107, 255, 0.35), transparent 70%); }
.play-banner-copy { position: relative; max-width: 640px; }
.play-banner-kicker { margin: 0 0 4px; font-size: 12px; letter-spacing: 0.1em; color: var(--muted, #9aa6d4); }
.play-banner-copy h2 { margin: 0 0 6px; font-size: 28px; letter-spacing: -0.01em; }
.play-banner-tagline { margin: 0 0 8px; font-size: 15px; color: var(--text-soft, #c3cbe9); }
.play-banner-desc { margin: 0 0 16px; font-size: 13.5px; line-height: 1.75; color: var(--muted, #9aa6d4); }
.play-banner-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.play-banner-hint {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 14px 0 0;
  font-size: 12.5px;
  color: var(--warn, #ffc46b);
}
.play-banner-hint .icon { width: 14px; height: 14px; }
.play-banner-art {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 160px;
}
.play-banner-glyph {
  font-size: 64px;
  font-weight: 800;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, #8ab4ff, #c084fc);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0.85;
}

/* 工具条 */
.play-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.play-section-title {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0;
  font-size: 19px;
}
.play-count { font-size: 12.5px; font-weight: 500; color: var(--muted, #9aa6d4); }
.play-filters { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.play-chip {
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--border, rgba(124, 145, 214, 0.18));
  background: var(--surface, rgba(17, 24, 48, 0.66));
  color: var(--muted, #9aa6d4);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}
.play-chip:hover { color: var(--text, #e9edff); border-color: var(--border-strong, rgba(124, 145, 214, 0.32)); }
.play-chip.is-active {
  color: var(--text, #e9edff);
  border-color: rgba(91, 124, 255, 0.6);
  background: rgba(91, 124, 255, 0.18);
}

/* 世界卡片网格 */
.play-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(268px, 1fr));
  gap: 18px;
}
.play-empty {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.play-footnote {
  margin: 22px 0 0;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--dim, #7480ab);
}

.world-card {
  position: relative;
  display: flex;
  flex-direction: column;
  text-align: left;
  padding: 0;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid var(--border, rgba(124, 145, 214, 0.18));
  background: var(--surface, rgba(17, 24, 48, 0.66));
  color: inherit;
  font: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.world-card:hover {
  transform: translateY(-3px);
  border-color: rgba(91, 124, 255, 0.55);
  box-shadow: 0 20px 44px rgba(3, 7, 20, 0.5);
}
.world-card:focus-visible { outline: 2px solid rgba(91, 124, 255, 0.7); outline-offset: 2px; }

.world-card-slot {
  position: relative;
  display: flex;
  min-width: 0;
  transition: transform 0.2s ease;
}
.world-card-slot > .world-card { flex: 1 1 auto; width: 100%; }
.world-card-slot:hover { transform: translateY(-3px); }
.world-card-slot > .world-card:hover { transform: none; }
.world-card-delete {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 107, 138, 0.45);
  background: rgba(7, 12, 26, 0.78);
  color: #ffb4c4;
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
  backdrop-filter: blur(6px);
}
.world-card-delete:hover { background: rgba(255, 107, 138, 0.28); color: #fff; }
.world-card-delete:focus-visible { outline: 2px solid rgba(255, 107, 138, 0.8); outline-offset: 2px; }

.world-card-media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: linear-gradient(135deg, #1b2a55, #2a1f4d);
}
.world-card-media--large { border-radius: 14px; margin-bottom: 14px; }
.world-card-img { width: 100%; height: 100%; object-fit: cover; display: block; transform: scale(1.01); transition: transform 0.4s ease; }
.world-card:hover .world-card-img { transform: scale(1.05); }
.world-card-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 8, 17, 0.05) 30%, rgba(5, 8, 17, 0.72) 100%);
}
.world-card-glyph {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 44px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.82);
  text-shadow: 0 6px 24px rgba(0, 0, 0, 0.45);
}
.world-card-media--indigo { background: linear-gradient(135deg, #23346b, #4a2f7a); }
.world-card-media--jade { background: linear-gradient(135deg, #10453a, #1f6b52); }
.world-card-media--violet { background: linear-gradient(135deg, #3b1f63, #6b2f8a); }
.world-card-media--cyan { background: linear-gradient(135deg, #0d3d55, #116b7a); }
.world-card-media--amber { background: linear-gradient(135deg, #4a3413, #7a5220); }
.world-card-media--slate { background: linear-gradient(135deg, #26304d, #3c4a70); }

.world-card-badges {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.world-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  line-height: 1.5;
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(7, 12, 26, 0.62);
  color: #dfe6ff;
  white-space: nowrap;
}
.world-badge--builtin { color: #9ec5ff; border-color: rgba(126, 170, 255, 0.45); }
.world-badge--mine { color: #d6b3ff; border-color: rgba(186, 138, 255, 0.45); }
.world-badge--genre { color: #ffd9a8; border-color: rgba(255, 200, 130, 0.4); }

.world-card-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 16px 10px;
}
.world-card-title { font-size: 17px; font-weight: 700; letter-spacing: -0.01em; }
.world-card-tagline {
  color: var(--muted, #9aa6d4);
  font-size: 13px;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.world-card-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.world-card-stat {
  font-size: 11.5px;
  color: var(--text-soft, #c3cbe9);
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--surface-3, rgba(255, 255, 255, 0.06));
}
.world-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 10px 16px 14px;
  margin-top: auto;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--accent, #7aa2ff);
  opacity: 0.85;
  transition: opacity 0.18s ease;
}
.world-card-cta .icon { width: 13px; height: 13px; }
.world-card:hover .world-card-cta { opacity: 1; }

.world-card--create {
  border-style: dashed;
  border-color: var(--border-strong, rgba(124, 145, 214, 0.32));
  background: rgba(12, 18, 36, 0.5);
  justify-content: center;
  align-items: flex-start;
  gap: 8px;
  padding: 22px 18px;
}
.world-card--create:hover { border-color: rgba(91, 124, 255, 0.6); }
.world-card-create-icon {
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(91, 124, 255, 0.16);
  color: #9ec5ff;
  margin-bottom: 4px;
}
.world-card--create .world-card-cta { padding: 4px 0 0; }

/* 世界详情弹窗 */
.world-detail-dialog .modal-card { max-width: 640px; }
.world-detail-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.world-detail-head h3 { margin: 0; font-size: 20px; }
.world-detail-kicker { margin: 0; font-size: 12px; color: var(--muted, #9aa6d4); }
.world-detail-desc { margin: 8px 0 14px; font-size: 14px; line-height: 1.8; color: var(--text-soft, #c3cbe9); }
.world-detail-stats { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.world-detail-stats span {
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--surface-3, rgba(255, 255, 255, 0.06));
  color: var(--text-soft, #c3cbe9);
}
.world-detail-block { margin: 0 0 12px; }
.world-detail-block h3 { margin: 0 0 8px; font-size: 14px; color: var(--muted, #9aa6d4); font-weight: 600; }
.world-detail-presets { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.world-detail-presets li {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border, rgba(124, 145, 214, 0.18));
  background: var(--surface-2, rgba(255, 255, 255, 0.035));
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.world-detail-presets strong { font-size: 13.5px; }
.world-detail-presets span { font-size: 12px; color: var(--muted, #9aa6d4); line-height: 1.6; }
.world-detail-hint { margin: 4px 0 0; font-size: 12.5px; color: var(--dim, #7480ab); line-height: 1.7; }

/* 编辑器/市集的返回链接 */
.ws-back { color: inherit; text-decoration: none; }
.ws-back:hover { color: var(--accent, #7aa2ff); }

/* ------------------------------ 我的收藏（复用工坊 .ws-card） ------------------------------ */
.ws-card-actions { flex-wrap: wrap; }
.ws-card-top h3 .ws-badge--off {
  margin-left: 6px;
  font-size: 10.5px;
  vertical-align: middle;
}
/* 收藏态按钮：暖金色描边，与普通 ghost 按钮区分 */
.ws-fav-on {
  color: #ffd9a8;
  border-color: rgba(255, 200, 130, 0.45);
}
/* 已下架徽标 */
.ws-badge--off {
  color: #ffb4b4;
  border-color: rgba(255, 107, 138, 0.45);
}

/* ------------------------------ 我的世界：自定义世界编辑器表单 ------------------------------ */
.ws-editor--form {
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
}
.ws-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.ws-form-section {
  padding: 20px 22px 22px;
  border-radius: 16px;
  border: 1px solid var(--border, rgba(124, 145, 214, 0.18));
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012)),
    var(--surface, rgba(17, 24, 48, 0.66));
}
.ws-form-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border, rgba(124, 145, 214, 0.18));
}
.ws-form-head h2 {
  margin: 0 0 4px;
  font-size: 16px;
  letter-spacing: 0.01em;
}
.ws-form-head p {
  margin: 0;
  color: var(--muted, #9aa6d4);
  font-size: 12.5px;
  line-height: 1.6;
}
.ws-form-step {
  flex: none;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid var(--border, rgba(124, 145, 214, 0.18));
  background: rgba(255, 255, 255, 0.03);
  color: var(--dim, #7480ab);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
}
.ws-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 18px;
  align-items: start;
}
.ws-field--full { grid-column: 1 / -1; }
.ws-form .ws-label {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  color: var(--text-soft, #c3cbe9);
  font-weight: 600;
  font-size: 13px;
  line-height: 1.4;
}
.ws-form .ws-label small {
  color: var(--dim, #7480ab);
  font-weight: 400;
  font-size: 11.5px;
}
.ws-required {
  font-style: normal;
  font-size: 10.5px;
  font-weight: 600;
  color: #ffb4b4;
  padding: 1px 6px;
  border-radius: 999px;
  border: 1px solid rgba(255, 107, 138, 0.35);
  background: rgba(255, 107, 138, 0.08);
}
.ws-form .ws-input {
  padding: 11px 13px;
  border-radius: 11px;
  background: rgba(5, 8, 17, 0.6);
  line-height: 1.6;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.ws-form .ws-input:focus {
  outline: none;
  border-color: rgba(91, 124, 255, 0.7);
  box-shadow: 0 0 0 3px rgba(91, 124, 255, 0.16);
}
.ws-form textarea.ws-input { min-height: 92px; }
.ws-form .ws-json {
  min-height: 150px;
  background: rgba(3, 6, 15, 0.68);
  font-size: 12.5px;
  line-height: 1.6;
}
.ws-form .ws-json::-webkit-scrollbar { width: 10px; height: 10px; }
.ws-form .ws-json::-webkit-scrollbar-thumb {
  background: rgba(124, 145, 214, 0.32);
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: padding-box;
}
.ws-form-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 2px 2px 0;
}
.ws-form-actions .ws-hint {
  margin: 0;
  max-width: 560px;
}
.ws-form-actions .btn { min-height: 44px; }

.ws-wizard {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}
.ws-steps {
  position: sticky;
  top: 84px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px;
  border-radius: 16px;
  border: 1px solid var(--border, rgba(124, 145, 214, 0.18));
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012)),
    var(--surface, rgba(17, 24, 48, 0.66));
}
.ws-step {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 44px;
  padding: 8px 10px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--text-soft, #c3cbe9);
  font: inherit;
  font-size: 14px;
  text-align: left;
  cursor: pointer;
}
.ws-step:hover { background: rgba(255, 255, 255, 0.04); }
.ws-step:focus-visible {
  outline: 2px solid rgba(91, 124, 255, 0.7);
  outline-offset: 2px;
}
.ws-step.is-current {
  background: rgba(91, 124, 255, 0.16);
  color: var(--text, #e9edff);
}
.ws-step-index {
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border, rgba(124, 145, 214, 0.28));
  color: var(--dim, #7480ab);
  font-size: 11px;
  font-weight: 700;
}
.ws-step.is-current .ws-step-index {
  border-color: rgba(91, 124, 255, 0.7);
  color: var(--text, #e9edff);
}
.ws-step-label { flex: 1; min-width: 0; }
.ws-step-mark { flex: none; margin-left: auto; }
.ws-step-mark--todo {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ffb4b4;
}
.ws-step-mark--count {
  min-width: 1.4em;
  color: var(--dim, #7480ab);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  text-align: right;
}
.ws-form-section[hidden] { display: none !important; }
details.ws-advanced {
  margin-top: 16px;
  border-top: 1px solid var(--border, rgba(124, 145, 214, 0.18));
  padding-top: 12px;
}
details.ws-advanced summary {
  min-height: 44px;
  display: flex;
  align-items: center;
  cursor: pointer;
  color: var(--text-soft, #c3cbe9);
  font-size: 13px;
  font-weight: 600;
}
details.ws-advanced summary:focus-visible {
  outline: 2px solid rgba(91, 124, 255, 0.7);
  outline-offset: 2px;
}
details.ws-advanced .ws-form-grid { margin-top: 12px; }

/* ------------------------------ 可视化集合编辑器（自定义世界：替代 JSON） ------------------------------ */
.ws-collection {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.ws-empty-collection {
  padding: 14px 16px;
  border: 1px dashed var(--border, rgba(124, 145, 214, 0.18));
  border-radius: 12px;
  color: var(--dim, #7480ab);
  font-size: 12.5px;
  line-height: 1.7;
}
.ws-item {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--border, rgba(124, 145, 214, 0.18));
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.025);
}
.ws-item-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.ws-item-title {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-soft, #c3cbe9);
}
.ws-item-sub {
  color: var(--dim, #7480ab);
  font-size: 11.5px;
}
.ws-item-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 16px;
  align-items: start;
}
.ws-item-grid .ws-field--full { grid-column: 1 / -1; }
.ws-item .ws-label { font-size: 12.5px; }
.ws-item .ws-input { padding: 9px 11px; font-size: 12.5px; }
.ws-check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--text-soft, #c3cbe9);
  font-size: 12.5px;
  line-height: 1.5;
}
.ws-check input {
  margin-top: 3px;
  accent-color: var(--accent, #7aa2ff);
}
.ws-check small {
  display: block;
  color: var(--dim, #7480ab);
  font-size: 11.5px;
  font-weight: 400;
}
.ws-add-btn {
  width: 100%;
  justify-content: center;
  border-style: dashed;
  color: var(--muted, #9aa6d4);
}
.ws-add-btn:hover {
  color: var(--text, #e9edff);
  border-color: rgba(91, 124, 255, 0.6);
}
.ws-remove-btn {
  color: #ffb4b4;
  border-color: rgba(255, 107, 138, 0.3);
}
.ws-remove-btn:hover { background: rgba(255, 107, 138, 0.08); }
.ws-panel-note {
  padding: 12px 14px;
  border: 1px dashed var(--border, rgba(124, 145, 214, 0.18));
  border-radius: 12px;
  color: var(--dim, #7480ab);
  font-size: 12.5px;
  line-height: 1.7;
  background: rgba(255, 255, 255, 0.02);
}
.ws-range-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.ws-range {
  flex: 1;
  accent-color: var(--accent, #7aa2ff);
}
.ws-range-value {
  flex: none;
  width: 54px;
  text-align: right;
  color: var(--dim, #7480ab);
  font-size: 12px;
}
.ws-mini-tag {
  flex: none;
  padding: 1px 8px;
  border: 1px solid var(--border, rgba(124, 145, 214, 0.18));
  border-radius: 999px;
  font-size: 11px;
  color: var(--dim, #7480ab);
}

/* ------------------------------ 世界结构与地图（可视化集成） ------------------------------ */
.ws-advanced { display: flex; flex-direction: column; gap: 14px; }

/* ------------------------------ 世界结构可视化编辑器 ------------------------------ */
.ws-struct { display: flex; flex-direction: column; gap: 12px; }
.ws-struct-modes { display: flex; flex-wrap: wrap; gap: 8px; }
.ws-struct-chip {
  padding: 6px 12px;
  border: 1px solid var(--border, rgba(124, 145, 214, 0.18));
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted, #9aa6d4);
  font-size: 12.5px;
  cursor: pointer;
}
.ws-struct-chip--on {
  border-color: rgba(91, 124, 255, 0.65);
  background: rgba(91, 124, 255, 0.16);
  color: var(--text, #e9edff);
}
.ws-struct-hint { margin: 0; color: var(--dim, #7480ab); font-size: 12px; line-height: 1.6; }
.ws-struct-warning {
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 180, 120, 0.3);
  background: rgba(255, 180, 120, 0.08);
  color: #ffd9a8;
  font-size: 12px;
  line-height: 1.6;
}
.ws-struct-group { border: 1px solid var(--border, rgba(124, 145, 214, 0.18)); border-radius: 12px; overflow: hidden; }
.ws-struct-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 12px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-soft, #c3cbe9);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
}
.ws-struct-group-body { display: flex; flex-direction: column; gap: 10px; padding: 10px 12px 12px; }
.ws-struct-dim { display: flex; flex-direction: column; gap: 6px; }
.ws-struct-dim-label { color: var(--muted, #9aa6d4); font-size: 12px; }
.ws-struct-options { display: flex; flex-wrap: wrap; gap: 6px; }
.ws-struct-option {
  padding: 4px 10px;
  border: 1px solid var(--border, rgba(124, 145, 214, 0.18));
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--muted, #9aa6d4);
  font-size: 11.5px;
  cursor: pointer;
}
.ws-struct-option--on { border-color: rgba(91, 124, 255, 0.65); background: rgba(91, 124, 255, 0.16); color: var(--text, #e9edff); }
.ws-struct-vocab { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 12px; }
.ws-struct-vocab-row { display: flex; align-items: center; gap: 8px; }
.ws-struct-vocab-row label { flex: none; width: 72px; color: var(--dim, #7480ab); font-size: 12px; }
.ws-struct-vocab-row input { flex: 1; min-width: 0; }
.ws-struct-taboo { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ws-struct-preview { color: var(--dim, #7480ab); font-size: 12px; line-height: 1.7; }
.ws-struct-preview strong { color: var(--text-soft, #c3cbe9); font-weight: 600; }

/* ------------------------------ 地图可视化编辑器 ------------------------------ */
.ws-map-editor { display: flex; flex-direction: column; gap: 12px; padding: 14px; border: 1px solid var(--border, rgba(124, 145, 214, 0.18)); border-radius: 14px; background: rgba(255, 255, 255, 0.02); }
.ws-map-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.ws-map-status { color: var(--muted, #9aa6d4); font-size: 12.5px; line-height: 1.6; }
.ws-map-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ws-map-tool {
  padding: 7px 12px;
  border: 1px solid var(--border, rgba(124, 145, 214, 0.18));
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted, #9aa6d4);
  font-size: 12.5px;
  cursor: pointer;
}
.ws-map-tool--on { border-color: rgba(91, 124, 255, 0.65); background: rgba(91, 124, 255, 0.16); color: var(--text, #e9edff); }
.ws-map-palette { display: flex; flex-wrap: wrap; gap: 6px; }
.ws-map-swatch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border: 1px solid var(--border, rgba(124, 145, 214, 0.18));
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--muted, #9aa6d4);
  font-size: 11.5px;
  cursor: pointer;
}
.ws-map-swatch i { width: 13px; height: 13px; border-radius: 4px; display: inline-block; }
.ws-map-swatch--on { border-color: rgba(91, 124, 255, 0.65); background: rgba(91, 124, 255, 0.16); color: var(--text, #e9edff); }
.ws-map-canvas-wrap { position: relative; width: 100%; max-width: 760px; margin: 0 auto; }
.ws-map-canvas { display: block; width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--border, rgba(124, 145, 214, 0.22)); background: #0b1020; cursor: crosshair; touch-action: none; }
.ws-map-grid2 { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 12px; align-items: start; }
.ws-map-side { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.ws-map-panel-title { margin: 0; color: var(--text-soft, #c3cbe9); font-size: 12.5px; font-weight: 600; }
.ws-map-list { display: flex; flex-direction: column; gap: 6px; max-height: 320px; overflow: auto; }
.ws-map-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px 10px;
  border: 1px solid var(--border, rgba(124, 145, 214, 0.18));
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.025);
  cursor: pointer;
}
.ws-map-item--on { border-color: rgba(91, 124, 255, 0.65); background: rgba(91, 124, 255, 0.1); }
.ws-map-item-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--text-soft, #c3cbe9); }
.ws-map-item-meta { color: var(--dim, #7480ab); font-size: 11px; }
.ws-map-legend { display: flex; flex-wrap: wrap; gap: 10px; color: var(--dim, #7480ab); font-size: 11.5px; }
.ws-map-legend span { display: inline-flex; align-items: center; gap: 5px; }
.ws-map-legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.ws-map-hint { margin: 0; color: var(--dim, #7480ab); font-size: 11.5px; line-height: 1.6; }
.ws-map-faction-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.ws-map-faction-chip { padding: 3px 9px; border-radius: 999px; border: 1px solid var(--border, rgba(124, 145, 214, 0.18)); color: var(--dim, #7480ab); font-size: 11px; }
.ws-map-faction-chip--on { border-color: rgba(91, 124, 255, 0.65); color: var(--text, #e9edff); }

@media (max-width: 860px) {
  .ws-struct-vocab { grid-template-columns: 1fr; }
  .ws-map-grid2 { grid-template-columns: 1fr; }
  .ws-map-list { max-height: 240px; }
}

@media (max-width: 860px) {
  .play-page { padding: 22px 14px 48px; }
  .play-head { align-items: flex-start; }
  .play-banner { padding: 20px; }
  .play-banner-art { display: none; }
  .play-banner-copy h2 { font-size: 24px; }
  .ws-form-section { padding: 16px; }
  .ws-form-grid { grid-template-columns: 1fr; }
  .ws-wizard { grid-template-columns: 1fr; }
  .ws-steps {
    position: static;
    flex-direction: row;
    overflow-x: auto;
    gap: 6px;
    padding: 6px;
  }
  .ws-step { flex: none; width: auto; }
  .ws-step-label { flex: none; }
  .ws-item-grid { grid-template-columns: 1fr; }
  .ws-item { padding: 12px; }
  .ws-form-actions { align-items: stretch; }
  .ws-form-actions .ws-actions { display: flex; gap: 10px; }
  .ws-form-actions .btn { flex: 1; }
}
@media (max-width: 560px) {
  .play-grid { grid-template-columns: 1fr; }
  .play-toolbar { align-items: flex-start; }
}

/* 窄屏：左侧竖向导航收为顶部横向导航，滚动时不再常驻 */
@media (max-width: 980px) {
  .play-shell { display: block; padding: 20px 16px 56px; }
  .play-sidebar { position: static; }
  .play-sidebar-inner {
    margin-bottom: 18px;
    padding: 12px;
    gap: 12px;
    border-radius: 16px;
  }
  .play-sidebar-games { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .play-sidebar-links {
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
    padding-top: 12px;
  }
  .play-sidebar-foot { display: none; }
  .play-sidebar-label { margin-bottom: 6px; }
}
@media (max-width: 560px) {
  .play-sidebar-game { padding: 8px; }
  .play-sidebar-game-text small { display: none; }
  .play-sidebar-link { justify-content: center; padding: 9px 4px; font-size: 12.5px; }
}
