/* ══════════════════════════════════════════════════════════
 * 多玩法平台：玩法大厅 / 玩法介绍 / 通用玩法组件
 * 依赖 styles.css 里的基础 token（--font-kai / --radius-pill 等）
 * 玩法主题通过 :root 上的 --play-* 变量注入，见 plays/theme.ts
 * ══════════════════════════════════════════════════════════ */

:root {
  --play-bg: #0b1018;
  --play-surface: #131a26;
  --play-primary: #c5a36a;
  --play-secondary: #8c2f28;
  --play-accent: #e5d6b0;
  --play-text: #ede6d6;
  --play-muted: #9aa3b2;
  --play-border: rgba(197, 163, 106, 0.24);
  --play-result-bg: linear-gradient(180deg, #0b1018, #070a10);
}

/* ── 大厅 ─────────────────────────────────────────────── */
.lobby {
  padding: 8px 0 28px;
}

.lobby__head {
  text-align: center;
  padding: 26px 18px 8px;
}

.lobby__kicker {
  font-family: var(--font-kai);
  font-size: 10.5px;
  letter-spacing: 0.42em;
  color: rgba(197, 163, 106, 0.72);
  margin: 0 0 10px;
}

.lobby__title {
  font-family: var(--font-kai);
  font-size: 40px;
  line-height: 1.1;
  letter-spacing: 0.14em;
  margin: 0;
  color: #f0e7d4;
  text-shadow: 0 6px 26px rgba(197, 163, 106, 0.22);
}

.lobby__sub {
  margin: 10px 0 0;
  font-size: 13px;
  color: rgba(237, 230, 214, 0.78);
  letter-spacing: 0.06em;
}

.lobby__guide {
  margin: 6px 0 0;
  font-size: 11.5px;
  color: rgba(154, 163, 178, 0.9);
}

.lobby__section-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 18px 18px 10px;
  font-size: 11px;
  letter-spacing: 0.24em;
  color: rgba(197, 163, 106, 0.8);
}

.lobby__section-label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(197, 163, 106, 0.35), transparent);
}

.lobby__filters {
  display: flex;
  gap: 8px;
  padding: 0 18px;
  margin: 20px 0 14px;
  overflow-x: auto;
  scrollbar-width: none;
}
.lobby__filters::-webkit-scrollbar {
  display: none;
}

.lobby__filter {
  flex: 0 0 auto;
  appearance: none;
  border: 1px solid rgba(197, 163, 106, 0.22);
  background: rgba(255, 255, 255, 0.02);
  color: rgba(237, 230, 214, 0.68);
  font-size: 12px;
  padding: 7px 15px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.18s ease;
}
.lobby__filter[aria-selected="true"] {
  color: #0b1018;
  background: linear-gradient(135deg, #e5d6b0, #c5a36a);
  border-color: transparent;
  font-weight: 600;
}

.lobby__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 0 18px;
}

/* 首页只放两个玩法：都用大卡纵向排列，两张等宽等高，视觉对称 */
.lobby__heroes {
  display: grid;
  gap: 14px;
  padding: 0 18px;
  margin-top: 6px;
}
.lobby__heroes .play-card {
  margin: 0;
}

.lobby__empty {
  text-align: center;
  color: rgba(154, 163, 178, 0.8);
  font-size: 12px;
  padding: 24px 0;
}

/* ── 玩法卡片 ─────────────────────────────────────────── */
.play-card {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  padding: 0;
  border: 1px solid var(--card-border, rgba(197, 163, 106, 0.22));
  border-radius: 16px;
  overflow: hidden;
  background: #0d121a;
  color: inherit;
  text-align: left;
  cursor: pointer;
  isolation: isolate;
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.22s ease, border-color 0.22s ease;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.35);
}
.play-card:active {
  transform: scale(0.985);
}
.play-card:hover {
  transform: translateY(-2px);
  border-color: var(--card-primary, rgba(197, 163, 106, 0.5));
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
}

.play-card__art {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.play-card:hover .play-card__art {
  transform: scale(1.06);
}

.play-card__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 9, 14, 0.05) 0%, rgba(6, 9, 14, 0.5) 52%, rgba(6, 9, 14, 0.94) 100%);
}

.play-card__badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  font-size: 10px;
  letter-spacing: 0.12em;
  padding: 3px 9px;
  border-radius: 999px;
  color: #0b1018;
  background: linear-gradient(135deg, var(--card-accent, #e5d6b0), var(--card-primary, #c5a36a));
  font-weight: 700;
}

.play-card__state {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  font-size: 10px;
  padding: 3px 9px;
  border-radius: 999px;
  color: rgba(237, 230, 214, 0.9);
  background: rgba(8, 12, 18, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.play-card__body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 0 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.play-card__name {
  font-family: var(--font-kai);
  font-size: 15px;
  line-height: 1.3;
  letter-spacing: 0.02em;
  color: #f4ecdb;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
  word-break: keep-all;
}

.play-card__hook {
  font-style: normal;
  font-size: 10.5px;
  line-height: 1.4;
  color: rgba(237, 230, 214, 0.7);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.play-card__meta {
  font-size: 9.5px;
  color: rgba(197, 163, 106, 0.85);
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.play-card__arrow {
  position: absolute;
  right: 16px;
  bottom: 18px;
  z-index: 2;
  font-size: 18px;
  color: var(--card-accent, #e5d6b0);
  opacity: 0.9;
}

/* 未发布：降饱和 + 视觉上不可点击的样子，但仍然可以点开看预告 */
.play-card.is-coming_soon .play-card__art,
.play-card.is-maintenance .play-card__art {
  filter: saturate(0.72) brightness(0.9);
}
.play-card.is-coming_soon .play-card__arrow,
.play-card.is-maintenance .play-card__arrow {
  opacity: 0.35;
}

/* 主推大卡 */
.play-card--featured {
  aspect-ratio: 4 / 3;
  border-radius: 20px;
}
.play-card--featured .play-card__body {
  right: 60px;
  padding: 0 0 18px 18px;
}
.play-card--featured .play-card__name {
  font-size: 24px;
}
.play-card--featured .play-card__hook {
  font-size: 12.5px;
}
.play-card--featured .play-card__arrow {
  right: 20px;
  bottom: 20px;
  font-size: 18px;
}

.lobby__featured-wrap {
  margin-top: 4px;
}
.lobby__featured-wrap .play-card {
  margin: 0 18px;
  width: calc(100% - 36px);
}

/* 底部入口 */
.lobby__foot {
  display: flex;
  gap: 10px;
  padding: 26px 18px 0;
}

.lobby__foot-btn {
  flex: 1;
  appearance: none;
  border: 1px solid rgba(197, 163, 106, 0.28);
  background: rgba(197, 163, 106, 0.08);
  color: #e5d6b0;
  font-size: 12.5px;
  padding: 12px 10px;
  border-radius: 12px;
  cursor: pointer;
}
.lobby__foot-btn--ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.12);
  color: rgba(237, 230, 214, 0.7);
}

.lobby__compliance {
  margin: 22px 18px 0;
  font-size: 10.5px;
  line-height: 1.7;
  color: rgba(154, 163, 178, 0.72);
  text-align: center;
}

/* ── 玩法介绍页 ───────────────────────────────────────── */
.intro {
  padding: 10px 0 30px;
}

.intro__back {
  appearance: none;
  border: 0;
  background: transparent;
  color: rgba(237, 230, 214, 0.72);
  font-size: 12.5px;
  padding: 10px 18px;
  cursor: pointer;
}

.intro__hero {
  position: relative;
  margin: 4px 18px 0;
  height: 190px;
  border-radius: 18px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  border: 1px solid var(--play-border);
}

.intro__hero-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(4, 7, 11, 0.1), rgba(4, 7, 11, 0.82));
}

.intro__hero-text {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 14px;
}

.intro__badge {
  display: inline-block;
  font-size: 10px;
  letter-spacing: 0.14em;
  padding: 3px 10px;
  border-radius: 999px;
  color: #0a0f16;
  background: linear-gradient(135deg, var(--play-accent), var(--play-primary));
  font-weight: 700;
  margin-bottom: 8px;
}

.intro__title {
  margin: 0;
  font-family: var(--font-kai);
  font-size: 26px;
  letter-spacing: 0.08em;
  color: #f4ecdb;
  text-shadow: 0 3px 16px rgba(0, 0, 0, 0.6);
}

.intro__sub {
  margin: 6px 0 0;
  font-size: 12px;
  color: rgba(237, 230, 214, 0.78);
}

.intro__desc {
  margin: 16px 18px 0;
  font-size: 13px;
  line-height: 1.8;
  color: rgba(237, 230, 214, 0.82);
}

.intro__facts {
  list-style: none;
  margin: 16px 18px 0;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--play-border);
}
.intro__facts li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  padding: 6px 0;
}
.intro__facts li + li {
  border-top: 1px dashed rgba(255, 255, 255, 0.06);
}
.intro__facts span {
  color: rgba(154, 163, 178, 0.9);
  flex: 0 0 auto;
}
.intro__facts b {
  color: rgba(237, 230, 214, 0.92);
  font-weight: 500;
  text-align: right;
}

.intro__product {
  margin: 14px 18px 0;
  padding: 14px 16px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(197, 163, 106, 0.1), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--play-border);
}

.intro__price {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}
.intro__price span {
  font-size: 11.5px;
  color: rgba(154, 163, 178, 0.92);
}
.intro__price b {
  font-size: 15px;
  color: var(--play-accent);
  letter-spacing: 0.04em;
}

.intro__buy {
  display: block;
  margin-top: 10px;
  text-align: center;
  padding: 10px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--play-accent), var(--play-primary));
  color: #0a0f16;
  font-size: 12.5px;
  font-weight: 700;
  text-decoration: none;
}

.intro__buy-hint {
  margin: 8px 0 0;
  font-size: 11px;
  line-height: 1.6;
  color: rgba(154, 163, 178, 0.9);
}

.intro__notice {
  margin: 14px 18px 0;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 12px;
  line-height: 1.7;
  color: rgba(237, 230, 214, 0.8);
  background: rgba(140, 47, 40, 0.14);
  border: 1px solid rgba(140, 47, 40, 0.3);
}

.intro__steps {
  margin: 18px 18px 0;
}
.intro__steps h3 {
  font-size: 12px;
  letter-spacing: 0.18em;
  color: rgba(197, 163, 106, 0.85);
  margin: 0 0 8px;
  font-weight: 500;
}
.intro__steps ol {
  margin: 0;
  padding-left: 18px;
  color: rgba(237, 230, 214, 0.76);
  font-size: 12px;
  line-height: 1.9;
}

.intro__compliance {
  margin: 18px 18px 0;
  font-size: 10.5px;
  line-height: 1.7;
  color: rgba(154, 163, 178, 0.7);
}

/* ── 低端机降级 ───────────────────────────────────────── */
.perf-low .play-card__art {
  transition: none;
}
.perf-low .play-card:hover {
  transform: none;
}
.perf-low .play-card__state {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  background: rgba(8, 12, 18, 0.82);
}

@media (max-width: 340px) {
  .lobby__grid {
    grid-template-columns: 1fr;
  }
  .lobby__title {
    font-size: 34px;
  }
}

/* ── 大厅隐藏全局品牌头（大厅自带标题） ───────────────── */
.app.is-lobby .brand {
  display: none;
}
.app.is-lobby .mist {
  opacity: 0.7;
}

/* ── 古人测试页顶部的玩法条 ───────────────────────────── */
.play-strip {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 2px 18px 0;
}
.play-strip:empty {
  display: none;
}
.play-strip__name {
  font-family: var(--font-kai);
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--play-primary);
}
.play-strip__hint {
  font-size: 10.5px;
  color: rgba(154, 163, 178, 0.85);
}

/* 玩法介绍页隐藏全局品牌头（页面自带主视觉标题） */
.app.is-play .brand {
  display: none;
}

/* ══════════════════════════════════════════════════════════
 * 通用玩法测评流程（ptest）
 * ══════════════════════════════════════════════════════════ */
.ptest {
  padding: 10px 18px 30px;
}

.ptest__head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0 16px;
}

.ptest__back,
.ptest__home {
  appearance: none;
  border: 1px solid var(--play-border);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(237, 230, 214, 0.78);
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
}

.ptest__progress {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ptest__progress-text {
  font-size: 10.5px;
  color: rgba(154, 163, 178, 0.9);
  letter-spacing: 0.04em;
}

.ptest__bar {
  display: block;
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.ptest__bar i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--play-primary), var(--play-accent));
  transition: width 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

.ptest__q {
  font-family: var(--font-kai);
  font-size: 19px;
  line-height: 1.55;
  color: #f4ecdb;
  margin: 10px 0 8px;
  letter-spacing: 0.02em;
}

.ptest__qindex {
  font-size: 10.5px;
  letter-spacing: 0.24em;
  color: var(--play-primary);
  margin: 6px 0 0;
}

.ptest__hint {
  font-size: 11.5px;
  line-height: 1.7;
  color: rgba(154, 163, 178, 0.9);
  margin: 0 0 14px;
}

.ptest__drop {
  /* required：内部的透明 file input 用 inset:0 铺满这块区域 */
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 3 / 4;
  max-height: 52vh;
  border-radius: 16px;
  border: 1px dashed var(--play-border);
  background: rgba(255, 255, 255, 0.02);
  cursor: pointer;
  overflow: hidden;
  margin: 6px 0 10px;
}
.ptest__drop span {
  text-align: center;
  font-size: 13px;
  color: rgba(237, 230, 214, 0.72);
  display: grid;
  gap: 6px;
}
.ptest__drop small {
  font-size: 10.5px;
  color: rgba(154, 163, 178, 0.85);
}
/* 选完照片后的压缩过程：iPhone 原图要 2~3 秒，必须让用户看到在动 */
.ptest__drop span.is-busy {
  color: var(--play-accent);
  animation: dropPulse 1.4s ease-in-out infinite;
}
@keyframes dropPulse {
  50% {
    opacity: 0.55;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ptest__drop span.is-busy {
    animation: none;
  }
}
.ptest__drop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ptest__note {
  font-size: 10.5px;
  line-height: 1.7;
  color: rgba(154, 163, 178, 0.72);
  margin: 6px 0 0;
}

.ptest__options {
  display: grid;
  gap: 10px;
  margin: 12px 0 18px;
}

.ptest__opt {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  padding: 15px 16px;
  border-radius: 14px;
  border: 1px solid var(--play-border);
  background: rgba(255, 255, 255, 0.025);
  color: rgba(237, 230, 214, 0.88);
  font-size: 14px;
  line-height: 1.5;
  cursor: pointer;
  transition: all 0.18s ease;
}
.ptest__opt:active {
  transform: scale(0.99);
}
.ptest__opt.is-on {
  border-color: var(--play-primary);
  background: color-mix(in srgb, var(--play-primary) 16%, transparent);
  color: #fff;
  box-shadow: 0 0 0 1px var(--play-primary) inset;
}

.ptest__dot {
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.28);
}
.ptest__opt.is-on .ptest__dot {
  border-color: var(--play-accent);
  background: radial-gradient(circle, var(--play-accent) 0 45%, transparent 52%);
}

.ptest__answers {
  list-style: none;
  margin: 12px 0 16px;
  padding: 0;
}
.ptest__answers li {
  display: grid;
  gap: 4px;
  padding: 12px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
}
.ptest__answers li:last-child {
  border-bottom: 0;
}
.ptest__answers span {
  font-size: 11.5px;
  color: rgba(154, 163, 178, 0.9);
  line-height: 1.5;
}
.ptest__answers b {
  font-size: 14px;
  color: var(--play-accent);
  font-weight: 500;
}

.ptest__code {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--play-border);
  background: rgba(255, 255, 255, 0.02);
  margin: 6px 0 14px;
}
.ptest__code span {
  font-size: 11.5px;
  color: rgba(154, 163, 178, 0.9);
}
.ptest__code b {
  flex: 1;
  font-size: 14px;
  letter-spacing: 0.08em;
  color: #f4ecdb;
}
.ptest__codebtn {
  appearance: none;
  border: 1px solid var(--play-border);
  background: transparent;
  color: var(--play-primary);
  font-size: 11.5px;
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
}

/* ══════════════════════════════════════════════════════════
 * 新玩法结果页（pres）
 * ══════════════════════════════════════════════════════════ */
.pres {
  padding: 0 0 30px;
  background: var(--play-result-bg);
  border-radius: 18px;
  margin: 6px 0 0;
}

.pres__hero {
  position: relative;
  text-align: center;
  padding: 26px 18px 22px;
  overflow: hidden;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.pres__hero.is-on {
  opacity: 1;
  transform: none;
}

.pres__glow {
  position: absolute;
  inset: -30% -20% auto;
  height: 70%;
  background: radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--play-primary) 32%, transparent), transparent 65%);
  pointer-events: none;
}

.pres__emblem {
  position: relative;
  width: 152px;
  height: 152px;
  border-radius: 50%;
  filter: drop-shadow(0 10px 30px color-mix(in srgb, var(--play-primary) 40%, transparent));
  animation: presFloat 6s ease-in-out infinite;
}
@keyframes presFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
.perf-low .pres__emblem { animation: none; }

.pres__cat {
  margin: 12px 0 4px;
  font-size: 10.5px;
  letter-spacing: 0.28em;
  color: color-mix(in srgb, var(--play-accent) 85%, transparent);
}

.pres__name {
  margin: 0;
  font-family: var(--font-kai);
  font-size: 34px;
  letter-spacing: 0.1em;
  color: #f8f1e2;
  text-shadow: 0 6px 28px color-mix(in srgb, var(--play-primary) 35%, transparent);
}

.pres__one {
  margin: 8px 0 0;
  font-size: 12.5px;
  line-height: 1.7;
  color: rgba(237, 230, 214, 0.78);
  padding: 0 10px;
}

.pres__tags {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 14px 0 0;
}
.pres__tags i {
  font-style: normal;
  font-family: var(--font-kai);
  font-size: 12px;
  letter-spacing: 0.08em;
  padding: 4px 12px;
  border-radius: 999px;
  color: var(--play-accent);
  background: color-mix(in srgb, var(--play-primary) 14%, transparent);
  border: 1px solid var(--play-border);
}

/* 三条正向特质：金线小卡，不喧宾夺主 */
.pres__strengths {
  margin: 16px auto 0;
  max-width: 300px;
  padding: 12px 14px 10px;
  border-radius: 14px;
  border: 1px solid color-mix(in srgb, var(--play-primary) 26%, transparent);
  background: color-mix(in srgb, var(--play-primary) 8%, transparent);
}
.pres__strengths em {
  display: block;
  font-style: normal;
  font-size: 10.5px;
  letter-spacing: 0.22em;
  color: color-mix(in srgb, var(--play-accent) 78%, transparent);
  margin-bottom: 7px;
}
.pres__strengths ul {
  display: flex;
  gap: 6px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  list-style: none;
}
.pres__strengths li {
  font-family: var(--font-kai);
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--play-text);
  padding: 5px 11px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--play-surface) 72%, transparent);
  border: 1px solid color-mix(in srgb, var(--play-primary) 18%, transparent);
}

/* 一句赠言：居中、楷体、略亮，作为情绪的落点 */
.pres__blessing {
  margin: 16px auto 0;
  max-width: 290px;
  font-family: var(--font-kai);
  font-size: 13.5px;
  line-height: 1.85;
  letter-spacing: 0.04em;
  text-align: center;
  color: color-mix(in srgb, var(--play-accent) 88%, var(--play-text));
  position: relative;
  padding: 0 6px;
}
.pres__blessing::before,
.pres__blessing::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 1px;
  background: color-mix(in srgb, var(--play-primary) 55%, transparent);
}
.pres__blessing::before { top: -9px; }
.pres__blessing::after { bottom: -9px; }

.pres__score {
  margin: 18px 0 0;
  display: grid;
  gap: 2px;
}
.pres__score b {
  font-size: 46px;
  font-weight: 700;
  color: var(--play-accent);
  letter-spacing: 0.02em;
}
.pres__score b small {
  font-size: 18px;
  margin-left: 2px;
}
.pres__score span {
  font-size: 10.5px;
  letter-spacing: 0.2em;
  color: rgba(154, 163, 178, 0.9);
}

.pres__degraded {
  margin: 0 18px 6px;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 11px;
  line-height: 1.6;
  color: rgba(237, 230, 214, 0.8);
  background: rgba(140, 47, 40, 0.14);
  border: 1px solid rgba(140, 47, 40, 0.3);
}

.pres__block {
  margin: 14px 18px 0;
  padding: 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--play-border);
}
.pres__block h3 {
  margin: 0 0 10px;
  font-size: 11.5px;
  letter-spacing: 0.18em;
  font-weight: 500;
  color: color-mix(in srgb, var(--play-primary) 85%, transparent);
}
.pres__block p {
  margin: 0;
  font-size: 13px;
  line-height: 1.85;
  color: rgba(237, 230, 214, 0.84);
}

.pres__answers {
  list-style: none;
  margin: 0;
  padding: 0;
}
.pres__answers li {
  display: grid;
  gap: 4px;
  padding: 8px 0;
}
.pres__answers li + li {
  border-top: 1px dashed rgba(255, 255, 255, 0.07);
}
.pres__answers span {
  font-size: 11px;
  color: rgba(154, 163, 178, 0.85);
  line-height: 1.5;
}
.pres__answers b {
  font-size: 13px;
  color: var(--play-accent);
  font-weight: 500;
}

.pres__visual {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}
.pres__visual span {
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 999px;
  color: rgba(237, 230, 214, 0.85);
  background: rgba(255, 255, 255, 0.05);
}
.pres__commentary {
  font-size: 12.5px !important;
  line-height: 1.8 !important;
  color: rgba(237, 230, 214, 0.72) !important;
}
.pres__weights {
  margin-top: 8px !important;
  font-size: 10.5px !important;
  color: rgba(154, 163, 178, 0.8) !important;
}

.pres__top {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.pres__topitem {
  display: grid;
  grid-template-columns: 22px 44px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease;
}
.pres__topitem:hover,
.pres__topitem:focus-visible {
  border-color: var(--play-border);
  background: rgba(255, 255, 255, 0.04);
  outline: none;
}
.pres__topitem.is-first {
  border-color: color-mix(in srgb, var(--play-primary) 55%, transparent);
  background: color-mix(in srgb, var(--play-primary) 10%, transparent);
}
.pres__rank {
  font-size: 12px;
  color: var(--play-primary);
  text-align: center;
}
.pres__topitem img {
  width: 44px;
  height: 44px;
  border-radius: 10px;
}
.pres__topname {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.pres__topname b {
  font-size: 13.5px;
  color: #f4ecdb;
  font-weight: 500;
}
.pres__topname i {
  font-style: normal;
  font-size: 10px;
  color: rgba(154, 163, 178, 0.85);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pres__topitem em {
  font-style: normal;
  font-size: 15px;
  color: var(--play-accent);
}
.pres__topitem em small {
  font-size: 9px;
}

.pres__switchnote {
  margin: 8px 0 0 !important;
  font-size: 10px !important;
  color: rgba(154, 163, 178, 0.7) !important;
  text-align: right;
}

.pres__disclaimer,
.pres__ai {
  margin: 14px 18px 0;
  font-size: 10px;
  line-height: 1.75;
  color: rgba(154, 163, 178, 0.65);
  text-align: center;
}

/* 海报弹层 */
.poster-sheet {
  width: min(92vw, 420px);
  max-height: 88vh;
  overflow: auto;
  padding: 16px;
  border-radius: 18px;
  background: #0b1018;
  border: 1px solid rgba(197, 163, 106, 0.2);
}
.poster-sheet__tip {
  margin: 0 0 10px;
  font-size: 11px;
  color: rgba(154, 163, 178, 0.9);
  text-align: center;
}
.poster-sheet img {
  width: 100%;
  border-radius: 12px;
  display: block;
}

/* 玩法页整体底色跟随主题，让「不同玩法=不同世界」不只体现在卡片上 */
.app.is-play {
  background:
    radial-gradient(120% 60% at 50% 0%, color-mix(in srgb, var(--play-primary) 16%, transparent), transparent 62%),
    var(--play-bg);
  transition: background 0.45s ease;
}
.app.is-play .mist {
  opacity: 0.45;
}

/* ────────────────────────────────────────────────────────────
 * 神兽图鉴结果页（2026-11 改版）
 * 结构：大图首屏 → 三条线索 → 身份档案 → 属性图谱 → 传说卷宗
 *       → 选择回声 → 画面美学 → Top3 → 海报
 * 原则：字号先够读，再谈装饰；同一套卡片最多出现 3 次。
 * ──────────────────────────────────────────────────────────── */

/* A · 首屏大图：方图主体 + 同图模糊延展做场景，避免把神兽塞进小圆框 */
.pres__hero {
  padding: 0 0 20px;
}
.pres__stage {
  position: relative;
  width: 100%;
  /* 素材是 1:1 方图：容器也用 1:1，图才能完整铺满，不留两侧空洞 */
  aspect-ratio: 1 / 1;
  margin: 0 0 16px;
  border-radius: 18px;
  overflow: hidden;
  background: var(--play-bg);
  border: 1px solid color-mix(in srgb, var(--play-primary) 22%, transparent);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.5);
  isolation: isolate;
}
.pres__stage-img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 16px 38px rgba(0, 0, 0, 0.55));
}
.pres__stage-veil {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  /* 只压底部一点点，避免整张图发灰、也避免出现硬分界线 */
  background: linear-gradient(180deg, rgba(6, 22, 30, 0) 72%, rgba(6, 22, 30, 0.55) 100%);
}

/* 称号：金属铭牌 */
.pres__title {
  display: inline-block;
  margin: 10px auto 2px;
  padding: 5px 20px;
  font-family: var(--font-kai);
  font-size: 13px;
  letter-spacing: 0.3em;
  text-indent: 0.3em;
  /* 原来是实心金色块，和立绘自带的金色光环叠在一起太抢；改成描边题签，跟随主题色 */
  color: var(--play-accent, #e5d6b0);
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--play-border, rgba(197, 163, 106, 0.3));
  border-radius: 3px;
  box-shadow: none;
}

.pres__cat {
  font-size: 11.5px;
}
.pres__one {
  font-size: 14.5px;
  line-height: 1.8;
  color: color-mix(in srgb, var(--play-text) 86%, transparent);
}
.pres__tags i {
  font-size: 12.5px;
  padding: 5px 13px;
}

/* 五格契合度：不暴露 71/70/69 的虚假精度 */
.pres__band {
  display: grid;
  gap: 9px;
  justify-items: center;
  margin: 20px 0 0;
}
.pres__meter {
  display: flex;
  gap: 7px;
}
.pres__meter i {
  width: 28px;
  height: 6px;
  border-radius: 3px;
  background: color-mix(in srgb, var(--play-text) 12%, transparent);
  transition: background 0.4s ease, box-shadow 0.4s ease;
}
.pres__meter i.is-on {
  background: linear-gradient(90deg, var(--play-primary), var(--play-accent));
  box-shadow: 0 0 12px color-mix(in srgb, var(--play-primary) 55%, transparent);
}
.pres__band b {
  font-family: var(--font-kai);
  font-size: 20px;
  font-weight: 400;
  letter-spacing: 0.14em;
  color: var(--play-accent);
}
.pres__rank-no {
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--play-muted);
}

/* C · 三条匹配线索：可展开 */
/* .pres__block p 会把字号提到 15px，这里用更高优先级压回小字 */
.pres__block .pres__hint {
  margin: 6px 0 0;
  font-size: 11.5px;
  line-height: 1.7;
  letter-spacing: 0.06em;
  color: var(--play-muted);
}
.pres__clue {
  margin-top: 10px;
  border: 1px solid var(--play-border);
  border-radius: 12px;
  background: color-mix(in srgb, var(--play-surface) 62%, transparent);
  overflow: hidden;
}
.pres__clue summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 13px 15px;
  cursor: pointer;
  list-style: none;
  font-size: 14.5px;
  color: var(--play-text);
}
.pres__clue summary::-webkit-details-marker {
  display: none;
}
.pres__clue summary::before {
  content: "◈";
  margin-right: 9px;
  font-size: 11px;
  color: var(--play-primary);
}
.pres__clue summary em {
  font-style: normal;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--play-muted);
}
.pres__clue > p {
  margin: 0;
  padding: 0 15px 15px;
  font-size: 14px;
  line-height: 1.9;
  color: color-mix(in srgb, var(--play-text) 84%, transparent);
}

/* B · 身份档案 */
.pres__dossier dl {
  margin: 4px 0 0;
  display: grid;
  gap: 11px;
}
.pres__dossier dl > div {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 12px;
  align-items: baseline;
}
.pres__dossier dt {
  font-size: 11.5px;
  letter-spacing: 0.16em;
  color: var(--play-muted);
}
.pres__dossier dd {
  margin: 0;
  font-size: 15px;
  color: var(--play-text);
  letter-spacing: 0.04em;
}
.pres__verdict {
  margin: 16px 0 0;
  padding-top: 15px;
  border-top: 1px dashed var(--play-border);
  font-family: var(--font-kai);
  font-size: 15.5px;
  line-height: 1.95;
  color: var(--play-accent);
}

/* D · 属性图谱：能量条 + 短解释，不显示数字 */
.attr {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 8px 14px;
  align-items: center;
  margin-top: 16px;
}
.attr__name {
  font-family: var(--font-kai);
  font-size: 14.5px;
  letter-spacing: 0.12em;
  color: var(--play-accent);
}
.attr__bar {
  height: 6px;
  border-radius: 3px;
  background: color-mix(in srgb, var(--play-text) 10%, transparent);
  overflow: hidden;
}
.attr__bar i {
  display: block;
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--play-primary), var(--play-accent));
  box-shadow: 0 0 10px color-mix(in srgb, var(--play-primary) 40%, transparent);
}
.attr[data-level="main"] .attr__bar i { width: 92%; }
.attr[data-level="sub"] .attr__bar i { width: 70%; }
.attr[data-level="hidden"] .attr__bar i { width: 48%; opacity: 0.72; }
.attr__note {
  grid-column: 2;
  margin-top: -4px;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--play-muted);
}

/* E · 传说卷宗：典故与文学演绎分开，视觉上也要分开 */
.pres__legend article {
  margin-top: 16px;
  padding: 14px 15px;
  border-radius: 12px;
}
.pres__legend-fact {
  border: 1px solid color-mix(in srgb, var(--play-text) 12%, transparent);
  background: color-mix(in srgb, var(--play-surface) 55%, transparent);
}
.pres__legend-story {
  border: 1px solid color-mix(in srgb, var(--play-primary) 30%, transparent);
  background: color-mix(in srgb, var(--play-primary) 7%, transparent);
}
.pres__legend-tag {
  display: inline-block;
  padding: 3px 11px;
  border-radius: 999px;
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--play-muted);
  background: color-mix(in srgb, var(--play-text) 8%, transparent);
}
.pres__legend-tag.is-fiction {
  color: var(--play-accent);
  background: color-mix(in srgb, var(--play-primary) 16%, transparent);
}
.pres__legend article p {
  margin: 10px 0 0;
  font-size: 14.5px;
  line-height: 1.95;
  letter-spacing: 0.02em;
}
.pres__legend-story p {
  font-family: var(--font-kai);
  color: color-mix(in srgb, var(--play-text) 92%, transparent);
}

/* F · 选择回声：选项 → 属性 */
.pres__answers li em {
  display: block;
  margin-top: 5px;
  font-style: normal;
  font-size: 11.5px;
  letter-spacing: 0.1em;
  color: color-mix(in srgb, var(--play-accent) 82%, transparent);
}

/* G · Top3 图鉴 */
.pres__topdiff {
  display: block;
  margin-top: 4px;
  font-style: normal;
  font-size: 9.5px;
  letter-spacing: 0;
  line-height: 1.5;
  color: var(--play-muted);
  white-space: nowrap;
}
.pres__topband {
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--play-accent);
  white-space: nowrap;
}

/* 全局字号：13 → 15，手机上才读得下去 */
.pres__block h3 {
  font-size: 15.5px;
  letter-spacing: 0.16em;
  margin-bottom: 12px;
}
.pres__block p {
  font-size: 15px;
  line-height: 1.9;
}
.pres__commentary {
  font-size: 14.5px !important;
}
.pres__weights,
.pres__disclaimer {
  font-size: 11.5px !important;
}

/* ── 立绘特效层：背光呼吸 / 粒子 / 视差 / 低语 ── */
.pres__stage {
  /* 视差与粒子都发生在这个盒子里，overflow 已 hidden，不会溢出到文字区 */
  touch-action: manipulation;
}
.pres__stage-img {
  z-index: 2;
  transition: transform 0.55s cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: transform;
}
.pres__halo {
  position: absolute;
  inset: 6% 8% 12%;
  z-index: 3;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(
    circle at 50% 42%,
    color-mix(in srgb, var(--play-accent) 28%, transparent),
    transparent 64%
  );
  filter: blur(20px);
  animation: haloBreath 7.5s ease-in-out infinite;
}
@keyframes haloBreath {
  0%,
  100% {
    opacity: 0.45;
    transform: scale(0.94);
  }
  50% {
    opacity: 0.9;
    transform: scale(1.08);
  }
}
.pres__fx {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}
.pres__whisper {
  position: absolute;
  left: 50%;
  bottom: 17%;
  z-index: 4;
  transform: translateX(-50%) translateY(4px);
  margin: 0;
  padding: 8px 20px;
  max-width: 92%;
  font-family: var(--font-kai);
  font-size: 13.5px;
  line-height: 1.6;
  letter-spacing: 0.06em;
  white-space: nowrap;
  text-align: center;
  color: #f6efdd;
  background: rgba(6, 22, 30, 0.62);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid color-mix(in srgb, var(--play-primary) 42%, transparent);
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.42s ease, transform 0.42s ease;
}
.pres__whisper.is-on {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
/* 低性能 / 减少动态：只留静态大图 */
.perf-low .pres__halo {
  animation: none;
  opacity: 0.6;
}
.perf-low .pres__stage-img {
  transition: none;
}
@media (prefers-reduced-motion: reduce) {
  .pres__halo {
    animation: none;
  }
  .pres__stage-img {
    transition: none;
  }
}

/* ── 立绘底部羽化：消除原画底边的直线切割感 ── */
.pres__stage {
  -webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 72%, transparent 100%);
}

/* ── 契合脉络：四字古风维度，固定宽度左对齐 + 右侧分值 ── */
.fit__rows {
  display: grid;
}
.fit__row {
  display: grid;
  grid-template-columns: 72px 1fr 36px;
  grid-template-areas:
    "name bar val"
    ".   note note";
  gap: 6px 12px;
  align-items: center;
  margin-top: 18px;
}
.fit__row:first-child {
  margin-top: 4px;
}
.fit__name {
  grid-area: name;
  font-family: var(--font-kai);
  font-size: 14.5px;
  letter-spacing: 0.06em;
  color: var(--play-accent);
  white-space: nowrap;
}
.fit__bar {
  grid-area: bar;
  height: 6px;
  border-radius: 3px;
  background: color-mix(in srgb, var(--play-text) 10%, transparent);
  overflow: hidden;
}
.fit__bar i {
  display: block;
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--play-primary), var(--play-accent));
  box-shadow: 0 0 10px color-mix(in srgb, var(--play-primary) 38%, transparent);
}
.fit__val {
  grid-area: val;
  text-align: right;
  font-size: 13.5px;
  font-variant-numeric: tabular-nums;
  color: var(--play-text);
  opacity: 0.9;
}
.fit__note {
  grid-area: note;
  margin-top: -2px;
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: var(--play-muted);
}

/* ── 灵犀双面镜：向阳暖金 / 月下冷青，冷暖对拉 ── */
.mirror__side {
  position: relative;
  margin-top: 16px;
  padding: 15px 16px 15px 18px;
  border-radius: 12px;
  border-left: 2px solid;
  border-left-width: 3px;
}
.mirror__side.is-light {
  background: linear-gradient(90deg, rgba(229, 193, 123, 0.16), rgba(229, 193, 123, 0.03) 55%, transparent 78%);
  border-left-color: #e5c17b;
  box-shadow: inset 12px 0 22px -18px rgba(229, 193, 123, 0.85);
}
.mirror__side.is-shadow {
  background: linear-gradient(90deg, rgba(123, 168, 184, 0.16), rgba(123, 168, 184, 0.03) 55%, transparent 78%);
  border-left-color: #7ba8b8;
  box-shadow: inset 12px 0 22px -18px rgba(123, 168, 184, 0.85);
}
.mirror__side p {
  margin: 9px 0 0;
  font-size: 15px;
  line-height: 1.95;
  letter-spacing: 0.02em;
}
.mirror__side.is-light p {
  /* 暖调正文：底色往金里带一点点，但不影响可读性 */
  color: color-mix(in srgb, #e5c17b 14%, var(--play-text));
}
.mirror__side.is-shadow p {
  font-family: var(--font-kai);
  /* 冷调正文：月青只染一点点，主体仍保持可读的亮度 */
  color: color-mix(in srgb, #7ba8b8 11%, var(--play-text));
}
.mirror__tag {
  display: inline-block;
  font-size: 10.5px;
  letter-spacing: 0.24em;
  text-indent: 0.24em;
}
.mirror__side.is-light .mirror__tag {
  color: #e5c17b;
  text-shadow: 0 0 12px rgba(229, 193, 123, 0.35);
}
.mirror__side.is-shadow .mirror__tag {
  color: #7ba8b8;
  text-shadow: 0 0 12px rgba(123, 168, 184, 0.35);
}
.mirror__kin {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px dashed var(--play-border);
}
.mirror__tag.is-kin {
  color: color-mix(in srgb, var(--play-accent) 80%, transparent);
}
.mirror__kin ul {
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 9px;
}
.mirror__kin li {
  display: flex;
  gap: 12px;
  align-items: baseline;
}
.mirror__kin b {
  min-width: 52px;
  font-family: var(--font-kai);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--play-text);
}
.mirror__kin i {
  font-style: normal;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--play-muted);
}

/* ── 典籍附录：折叠 + 小字，把黄金位让给意象解读 ── */
.pres__canon {
  border: 1px solid color-mix(in srgb, var(--play-text) 12%, transparent);
  border-radius: 10px;
  background: color-mix(in srgb, var(--play-surface) 50%, transparent);
}
.pres__canon summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  cursor: pointer;
  list-style: none;
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: var(--play-muted);
}
.pres__canon summary::-webkit-details-marker {
  display: none;
}
.pres__canon summary em {
  font-style: normal;
  font-size: 11px;
  letter-spacing: 0.1em;
}
.pres__canon > p {
  margin: 0;
  padding: 0 14px 14px;
  font-size: 12.5px;
  line-height: 1.85;
  color: color-mix(in srgb, var(--play-muted) 92%, transparent);
}

/* ── Top3 右侧改为五格迷你条，避免与左侧称谓重复 ── */
.pres__topband {
  display: flex;
  gap: 3px;
  align-items: center;
}
.pres__topband i {
  width: 4px;
  height: 13px;
  border-radius: 1px;
  background: color-mix(in srgb, var(--play-text) 14%, transparent);
}
.pres__topband i.is-on {
  background: linear-gradient(180deg, var(--play-accent), var(--play-primary));
}

/* ── 结果页首屏的「照片 → 神兽」变身 ── */
.pres__reveal {
  position: absolute;
  inset: 0;
  z-index: 5;
  border-radius: inherit;
  pointer-events: none;
  transition: opacity 0.26s ease;
}
/* 从扫描层切过来时，整页轻微淡入，避免硬切 */
.pres.is-entering {
  animation: presEnter 0.52s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes presEnter {
  from {
    opacity: 0;
    transform: scale(1.012);
  }
}
.perf-low .pres__reveal {
  transition: none;
}
@media (prefers-reduced-motion: reduce) {
  .pres.is-entering {
    animation: none;
  }
  .pres__reveal {
    transition: none;
  }
}

/* 变身期间：首屏文字先让位，等神兽显形完成再逐一浮现（古人的做法） */
.pres__hero .pres__cat,
.pres__hero .pres__name,
.pres__hero .pres__title,
.pres__hero .pres__one,
.pres__hero .pres__tags,
.pres__hero .pres__band,
.pres__hero .pres__blessing {
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.pres__hero.is-revealing .pres__cat,
.pres__hero.is-revealing .pres__name,
.pres__hero.is-revealing .pres__title,
.pres__hero.is-revealing .pres__one,
.pres__hero.is-revealing .pres__tags,
.pres__hero.is-revealing .pres__band,
.pres__hero.is-revealing .pres__blessing {
  opacity: 0;
  transform: translateY(10px);
}

/* ── 法阵：神兽脚下的地面纹样（美术素材，screen 混合去黑底） ── */
.pres__sigil {
  position: absolute;
  left: 50%;
  top: 54%;
  width: 136%;
  aspect-ratio: 1 / 1;
  transform: translate(-50%, -50%);
  background: url("/src/assets/plays/guardian_beast/fx/sigil.webp") center / contain no-repeat;
  opacity: 0.5;
  pointer-events: none;
  z-index: 2;
  animation: sigilSpin 52s linear infinite;
}
@keyframes sigilSpin {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

/* 光晕换成美术辉光贴图：canvas 画的圆边缘是"数学的硬"，贴图才是自然衰减 */
.pres__halo {
  inset: 2% 4% 8%;
  background: url("/src/assets/plays/guardian_beast/fx/glow-warm.webp") center / contain no-repeat;
  filter: none;
  z-index: 1;
}

.pres__stage-img {
  z-index: 3;
}
.pres__fx {
  z-index: 4;
}
.pres__whisper {
  z-index: 5;
}
.perf-low .pres__sigil {
  animation: none;
  opacity: 0.3;
}
@media (prefers-reduced-motion: reduce) {
  .pres__sigil {
    animation: none;
  }
}

/* ── 雾层：给结果页一点空气与纵深 ── */
.pres::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: url("/src/assets/plays/guardian_beast/fx/fog-dense.webp") center / cover no-repeat;
  opacity: 0.42;
}
/* 内容压在雾之上 */
.pres > * {
  position: relative;
  z-index: 1;
}
.perf-low .pres::before {
  opacity: 0.3;
}

/* ── 四角角饰：从同一张单角素材旋转拼出 ── */
.pres__corner {
  position: absolute;
  width: 46px;
  height: 46px;
  background: url("/src/assets/plays/guardian_beast/fx/corner-ornament.webp") center / contain no-repeat;
  opacity: 0.7;
  pointer-events: none;
  z-index: 3;
}
.pres__corner[data-c="tl"] {
  top: -6px;
  left: -2px;
}
.pres__corner[data-c="tr"] {
  top: -6px;
  right: -2px;
  transform: rotate(90deg);
}
.pres__corner[data-c="br"] {
  bottom: -2px;
  right: -2px;
  transform: rotate(180deg);
}
.pres__corner[data-c="bl"] {
  bottom: -2px;
  left: -2px;
  transform: rotate(270deg);
}

/* ── 雾层：给结果页一点空气与纵深 ── */
.pres::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: url("/src/assets/plays/guardian_beast/fx/fog-dense.webp") center / cover no-repeat;
  opacity: 0.42;
}
/* 内容压在雾之上 */
.pres > * {
  position: relative;
  z-index: 1;
}
.perf-low .pres::before {
  opacity: 0.3;
}

/* ── 四角角饰：从同一张单角素材旋转拼出 ── */
.pres__corner {
  position: absolute;
  width: 46px;
  height: 46px;
  background: url("/src/assets/plays/guardian_beast/fx/corner-ornament.webp") center / contain no-repeat;
  opacity: 0.7;
  pointer-events: none;
  z-index: 3;
}
.pres__corner[data-c="tl"] {
  top: -6px;
  left: -2px;
}
.pres__corner[data-c="tr"] {
  top: -6px;
  right: -2px;
  transform: rotate(90deg);
}
.pres__corner[data-c="br"] {
  bottom: -2px;
  right: -2px;
  transform: rotate(180deg);
}
.pres__corner[data-c="bl"] {
  bottom: -2px;
  left: -2px;
  transform: rotate(270deg);
}

/* 角饰的定位上下文（首屏容器原本没有 position，导致角饰跑到页面外） */
.pres__hero {
  position: relative;
}
.pres__corner {
  width: 54px;
  height: 54px;
  opacity: 0.75;
}
.pres::before {
  opacity: 0.52;
}

/* 角饰的定位上下文（首屏容器原本没有 position，导致角饰跑到页面外） */
.pres__hero {
  position: relative;
}
.pres__corner {
  width: 54px;
  height: 54px;
  opacity: 0.75;
}
.pres::before {
  opacity: 0.52;
}

/* 角饰贴着大图的四角，而不是整块首屏 */
.pres__framed {
  position: relative;
}
.pres__framed .pres__corner[data-c="tl"] {
  top: -7px;
  left: -7px;
}
.pres__framed .pres__corner[data-c="tr"] {
  top: -7px;
  right: -7px;
}
.pres__framed .pres__corner[data-c="br"] {
  bottom: -7px;
  right: -7px;
}
.pres__framed .pres__corner[data-c="bl"] {
  bottom: -7px;
  left: -7px;
}

/* 角饰贴着大图的四角，而不是整块首屏 */
.pres__framed {
  position: relative;
}
.pres__framed .pres__corner[data-c="tl"] {
  top: -7px;
  left: -7px;
}
.pres__framed .pres__corner[data-c="tr"] {
  top: -7px;
  right: -7px;
}
.pres__framed .pres__corner[data-c="br"] {
  bottom: -7px;
  right: -7px;
}
.pres__framed .pres__corner[data-c="bl"] {
  bottom: -7px;
  left: -7px;
}

/* 素材里 L 形只占画布约 30%，用放大的 background-size 裁出角部，让纹样撑满 54px */
.pres__corner {
  background-image: url("/src/assets/plays/guardian_beast/fx/corner-ornament.webp");
  background-repeat: no-repeat;
  background-position: 0 0;
  background-size: 300% 300%;
}

/* 素材里 L 形只占画布约 30%，用放大的 background-size 裁出角部，让纹样撑满 54px */
.pres__corner {
  background-image: url("/src/assets/plays/guardian_beast/fx/corner-ornament.webp");
  background-repeat: no-repeat;
  background-position: 0 0;
  background-size: 300% 300%;
}

/* 220% 只取素材角部一小段，避免 L 的长边延伸成半截竖线 */
.pres__corner {
  background-size: 200% 200%;
  width: 48px;
  height: 48px;
}

/* 220% 只取素材角部一小段，避免 L 的长边延伸成半截竖线 */
.pres__corner {
  background-size: 200% 200%;
  width: 48px;
  height: 48px;
}

/* 角饰改为纯线条：素材的 L 形比例与显示尺寸不匹配，裁切后只剩半截横线。
   两条 1px 线 + 微圆角，四角旋转即对称，比贴图更干净。 */
.pres__corner {
  background: none;
  width: 50px;
  height: 50px;
  opacity: 1;
}
.pres__corner::before {
  content: "";
  position: absolute;
  inset: 0;
  border-top: 1px solid rgba(219, 186, 122, 0.55);
  border-left: 1px solid rgba(219, 186, 122, 0.55);
  border-top-left-radius: 3px;
}
.pres__corner[data-c="tr"]::before {
  border-top-left-radius: 0;
  border-top-right-radius: 3px;
}
.pres__corner[data-c="br"]::before {
  border-top-left-radius: 0;
  border-bottom-right-radius: 3px;
}
.pres__corner[data-c="bl"]::before {
  border-top-left-radius: 0;
  border-bottom-left-radius: 3px;
}

/* 角饰改为纯线条：素材的 L 形比例与显示尺寸不匹配，裁切后只剩半截横线。
   两条 1px 线 + 微圆角，四角旋转即对称，比贴图更干净。 */
.pres__corner {
  background: none;
  width: 50px;
  height: 50px;
  opacity: 1;
}
.pres__corner::before {
  content: "";
  position: absolute;
  inset: 0;
  border-top: 1px solid rgba(219, 186, 122, 0.55);
  border-left: 1px solid rgba(219, 186, 122, 0.55);
  border-top-left-radius: 3px;
}
.pres__corner[data-c="tr"]::before {
  border-top-left-radius: 0;
  border-top-right-radius: 3px;
}
.pres__corner[data-c="br"]::before {
  border-top-left-radius: 0;
  border-bottom-right-radius: 3px;
}
.pres__corner[data-c="bl"]::before {
  border-top-left-radius: 0;
  border-bottom-left-radius: 3px;
}

/*
 * 法阵的出现时机：
 * 变身期间 canvas 铺满大图区，法阵被压在下面；照片淡出时 canvas 变半透明，
 * 法阵会从底下透出来一点，等 canvas 移除再突然变清晰 —— 观感就是"闪了一下"。
 * 所以变身期间让它完全不可见，变身结束后再淡入。
 */
.pres__sigil {
  opacity: 0;
  transition: opacity 1.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.pres__hero.is-on:not(.is-revealing) .pres__sigil {
  opacity: 0.5;
}

/* 光晕同理：变身期间关掉，否则 canvas 移除瞬间会跟着一起"跳"出来 */
.pres__hero.is-revealing .pres__halo {
  opacity: 0;
  animation: none;
}

/* ══════════════════════════════════════════════════════════
 * 首页视觉升级：品牌条 → 封面（标语 + 主按钮）→ 玩法选择
 * 替换掉原来的「标题 + 两张功能卡」结构
 * ══════════════════════════════════════════════════════════ */
.lobby {
  padding: 0 0 30px;
}

.lobby__brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 18px 20px 12px;
}
.lobby__brand-seal {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 4px;
  border: 1px solid rgba(197, 163, 106, 0.46);
  background: rgba(197, 163, 106, 0.08);
  color: #d9c9a4;
  font-family: var(--font-kai);
  font-size: 15px;
  line-height: 1;
}
.lobby__brand-text {
  display: grid;
  gap: 2px;
  line-height: 1.2;
}
.lobby__brand-text b {
  font-family: var(--font-kai);
  font-size: 17px;
  font-weight: 400;
  letter-spacing: 0.2em;
  color: #f0e7d4;
}
.lobby__brand-text i {
  font-style: normal;
  font-size: 9.5px;
  letter-spacing: 0.22em;
  color: rgba(197, 163, 106, 0.62);
}

/* ── 封面 ── */
.lobby__cover {
  position: relative;
  margin: 8px 14px 0;
  height: 46vh;
  min-height: 320px;
  max-height: 450px;
  border-radius: 22px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  border: 1px solid rgba(197, 163, 106, 0.2);
  box-shadow: 0 26px 64px rgba(0, 0, 0, 0.58);
  isolation: isolate;
}
.lobby__cover-art {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 38%;
  transform: scale(1.03);
  transition: transform 8s ease-out;
}
.lobby__cover:hover .lobby__cover-art {
  transform: scale(1.07);
}
.lobby__cover-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(8, 12, 18, 0.32) 0%,
    rgba(8, 12, 18, 0.5) 40%,
    rgba(8, 12, 18, 0.93) 100%
  );
}
.lobby__cover-text {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 0 22px 22px;
}
.lobby__cover-kicker {
  margin: 0 0 10px;
  font-size: 10px;
  letter-spacing: 0.4em;
  text-indent: 0.4em;
  color: rgba(229, 214, 176, 0.82);
}
.lobby__cover-title {
  margin: 0 0 12px;
  font-family: var(--font-kai);
  font-size: 29px;
  font-weight: 400;
  line-height: 1.42;
  letter-spacing: 0.1em;
  color: #f4ecdb;
  text-shadow: 0 4px 22px rgba(0, 0, 0, 0.62);
}
.lobby__cover-sub {
  margin: 0 0 18px;
  font-size: 12.5px;
  line-height: 1.78;
  color: rgba(237, 230, 214, 0.74);
}
.lobby__cover-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 28px;
  border: 1px solid rgba(239, 224, 185, 0.55);
  border-radius: 999px;
  background: linear-gradient(135deg, #efe0b9 0%, #c9a86c 100%);
  color: #241a0d;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.5);
  transition: transform 0.16s ease, filter 0.16s ease;
}
.lobby__cover-cta:active {
  transform: scale(0.976);
  filter: brightness(0.96);
}

/* ── 玩法选择 ── */
.lobby__plays {
  margin-top: 28px;
}
.lobby__plays-label {
  margin: 0 0 12px;
  padding: 0 20px;
  font-size: 10.5px;
  letter-spacing: 0.3em;
  color: rgba(197, 163, 106, 0.68);
}

/* ── 玩法卡：整图 + 角落题签，两种主题各用一套色 ── */
.play-card--cover {
  aspect-ratio: 4 / 3;
  border-radius: 18px;
}
.play-card--cover .play-card__body {
  padding: 0 18px 16px;
}
.play-card--cover .play-card__name {
  font-size: 21px;
}
.play-card__seal {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 3;
  padding: 3px 10px;
  border-radius: 3px;
  font-size: 9.5px;
  letter-spacing: 0.14em;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.tone-jade .play-card__seal {
  color: #cdeee3;
  background: rgba(18, 56, 48, 0.52);
  border: 1px solid rgba(126, 181, 167, 0.46);
}
.tone-cinnabar .play-card__seal {
  color: #fbdcd2;
  background: rgba(66, 24, 18, 0.52);
  border: 1px solid rgba(182, 90, 74, 0.5);
}
.tone-jade {
  --card-accent: #7eb5a7;
  --card-border: rgba(126, 181, 167, 0.3);
}
.tone-cinnabar {
  --card-accent: #b65a4a;
  --card-border: rgba(182, 90, 74, 0.3);
}

/* 底部工具与合规短句降噪 */
.lobby .lobby__foot {
  margin-top: 22px;
  padding: 0 20px;
}
.lobby .lobby__compliance {
  margin: 16px 20px 0;
  font-size: 10.5px;
  line-height: 1.7;
  color: rgba(154, 163, 178, 0.7);
}

/* ── 底部工具：改成低调文字入口，避免两个按钮宽度不一、也避免和玩法卡抢焦点 ── */
.lobby__foot {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  padding: 26px 18px 0;
}
.lobby__foot-btn {
  flex: 0 0 auto;
  min-width: 0;
  appearance: none;
  border: 0;
  background: none;
  padding: 12px 12px; /* 保证 44px 触控高度 */
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: rgba(197, 163, 106, 0.72);
  border-radius: 8px;
  cursor: pointer;
  transition: color 0.18s ease, background 0.18s ease;
}
.lobby__foot-btn:active {
  background: rgba(197, 163, 106, 0.1);
}
.lobby__foot-btn--ghost {
  color: rgba(154, 163, 178, 0.66);
  border: 0;
  background: none;
}
/* 两个文字按钮之间的分隔点 */
/* 两个入口靠 gap 分隔，不加额外符号 */
