/* ---------- 右上角：档案入口 + 成就提示 ---------- */
.meta-cluster {
  position: absolute;
  top: 1.6cqh;
  right: 1.6cqw;
  z-index: 250;             /* 高于模态层，锁箱 / 炼金 / 星盘里解锁也看得见 */
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1cqh;
  pointer-events: none;
}

/* 档案不是设置，从 ☰ 菜单里搬到右上角 */
.meta-archive {
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: .5cqh 1.1cqw;
  font-family: var(--font-serif);
  font-size: max(.82cqw, 12px);
  letter-spacing: .18em;
  color: var(--paper-2);
  background: linear-gradient(180deg, rgba(42, 32, 20, .92), rgba(14, 10, 7, .96));
  border: 1px solid rgba(200, 163, 90, .32);
  box-shadow: 0 1cqh 2.4cqh rgba(0, 0, 0, .45);
  transition: color var(--dur-fast), border-color var(--dur-fast), transform var(--dur-fast);
  cursor: pointer;
}
.meta-archive::before {
  content: "▤";
  margin-right: .45em;
  font-size: .9em;
  color: rgba(200, 163, 90, .75);
}
.meta-archive:hover {
  color: var(--amber);
  border-color: var(--gold);
  transform: translateY(-1px);
}
.meta-archive[hidden] { display: none; }

.trophy-wrap {
  width: min(30cqw, 320px);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: .7cqh;
}

.trophy {
  width: 100%;
  display: flex;
  align-items: center;
  gap: .7em;
  padding: .8cqh 1cqw;
  color: var(--paper);
  background: linear-gradient(180deg, rgba(40, 30, 18, .97), rgba(10, 8, 6, .98));
  border: 1px solid rgba(200, 163, 90, .58);
  box-shadow: 0 1.4cqh 3.4cqh rgba(0, 0, 0, .6), 0 0 2cqw rgba(200, 163, 90, .1);
  opacity: 0;
  transform: translateX(14px);
  transition: opacity .28s var(--ease-out), transform .28s var(--ease-out);
  pointer-events: none;
}
.trophy.is-on {
  opacity: 1;
  transform: none;
}
.trophy__mark {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 2.2em;
  height: 2.2em;
  color: var(--gold);
  border: 1px solid rgba(200, 163, 90, .55);
  border-radius: 50%;
  font-size: 1.05em;
  box-shadow: inset 0 0 1em rgba(200, 163, 90, .12);
}
.trophy__body { min-width: 0; }
.trophy__body small {
  display: block;
  margin-bottom: .18em;
  font-size: max(.62cqw, 10px);
  letter-spacing: .2em;
  color: rgba(200, 163, 90, .68);
}
.trophy__body b {
  display: block;
  overflow: hidden;
  font-weight: 400;
  font-size: max(.92cqw, 13px);
  line-height: 1.45;
  letter-spacing: .06em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 过场里只收起档案入口；成就提示仍然要能看见（例如杰特考校） */
body.is-cutscene .meta-archive { display: none; }

@media (max-width: 900px) {
  .meta-cluster { top: max(1.2cqh, 8px); right: 1.6cqw; }
  .meta-archive { min-height: 40px; font-size: max(.9cqw, 12px); }
  .trophy-wrap { width: min(44cqw, 330px); }
}

@media (prefers-reduced-motion: reduce) {
  .trophy { transition: opacity .2s linear; transform: none; }
}
