:root {
  --bg: #0d0c10;
  --panel: #16141c;
  --text: #f3efe6;
  --muted: #9a9388;
  --gold: #e8c36a;
  --line: #2a2620;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: radial-gradient(1200px 600px at 50% -10%, #241c18, var(--bg)); color: var(--text); font-family: "DM Sans", "Noto Serif SC", sans-serif; }
.top { display: flex; justify-content: space-between; align-items: flex-end; padding: 28px 32px 12px; }
.kicker { letter-spacing: 0.32em; font-size: 11px; color: var(--gold); margin: 0 0 6px; }
h1 { font-family: "Noto Serif SC", serif; font-size: 28px; margin: 0; }
.top-actions { display: flex; gap: 8px; flex-wrap: wrap; }
button, .btn {
  border: 1px solid #3a342c; background: #1c1914; color: var(--text);
  border-radius: 999px; padding: 8px 14px; cursor: pointer; font: inherit;
}
button.primary { background: var(--gold); color: #1a1408; border-color: var(--gold); font-weight: 700; }
.muted { color: var(--muted); }
.tiny { font-size: 12px; }
.status-bar { padding: 0 32px 18px; min-height: 28px; }
.gate { padding: 48px 32px; color: var(--muted); max-width: 520px; }
.gate.hidden, .cabinet.hidden { display: none; }
.cabinet {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: 22px;
  padding: 8px 32px 48px;
}
.slot {
  --fx: #d4af37;
  --fx2: #fff1b8;
  aspect-ratio: 3136 / 4032;
  border-radius: 16px;
  background: linear-gradient(180deg, #1a1814, #100e0c);
  border: 1px solid #2e2a24;
  position: relative;
  overflow: visible;
  cursor: pointer;
}
.slot.empty { cursor: default; overflow: hidden; }
.slot.has-live,
.slot:not(.empty) {
  background: transparent;
  border: none;
  box-shadow: none;
}
.slot .code { position: absolute; top: 10px; left: 10px; font-size: 11px; letter-spacing: 0.12em; color: #cbb58a; z-index: 4; }
.slot .empty-label { position: absolute; inset: 0; display: grid; place-items: center; color: #5c564c; font-size: 13px; }
.slot img { width: 100%; height: 100%; object-fit: cover; border-radius: 16px; }
.slot .count {
  position: absolute; right: 10px; bottom: 10px; z-index: 4;
  background: rgba(0,0,0,.55); border-radius: 999px; padding: 2px 8px; font-size: 11px;
}
.slot.iron { --fx: #8a8580; --fx2: #d4d0cc; }
.slot.silver { --fx: #c5cdd8; --fx2: #f4f7fb; }
.slot.gold { --fx: #d4af37; --fx2: #fff1b8; }
.slot.prism { --fx: #e8c36a; --fx2: #fff4dc; }
.slot-frame {
  position: absolute;
  inset: 0;
  border-radius: 16px;
  pointer-events: none;
  z-index: 3;
  box-shadow:
    inset 0 0 0 1.2px color-mix(in srgb, var(--fx2) 70%, transparent),
    inset 0 0 18px color-mix(in srgb, var(--fx) 45%, transparent);
}
.slot.prism .slot-frame {
  box-shadow:
    inset 0 0 0 1.2px color-mix(in srgb, var(--fx2) 80%, transparent),
    inset 0 0 16px rgba(196, 30, 58, 0.35),
    inset 0 0 28px rgba(46, 132, 110, 0.22);
}
.slot .holo-card-wrap.is-mini {
  filter:
    drop-shadow(0 0 4px var(--fx2))
    drop-shadow(0 0 14px color-mix(in srgb, var(--fx) 88%, transparent))
    drop-shadow(0 0 28px color-mix(in srgb, var(--fx) 55%, transparent));
}
.slot.prism .holo-card-wrap.is-mini {
  filter:
    drop-shadow(0 0 4px #fff4dc)
    drop-shadow(0 0 12px #e8c36a)
    drop-shadow(0 0 22px rgba(196, 30, 58, 0.7))
    drop-shadow(0 0 32px rgba(46, 132, 110, 0.45));
}

.overlay {
  position: fixed; inset: 0; z-index: 20;
  display: grid; place-items: center;
  background: rgba(8, 7, 6, .82);
  padding: 0;
}
.overlay.hidden { display: none; }
.overlay.viewer-simple .prop-sheet { transform: translateX(110%); pointer-events: none; opacity: 0; }
/* 清屏预览：全黑底，只留卡片（无任何控件） */
.overlay.viewer-clear {
  background: #000;
}
.overlay.viewer-clear .viewer-strip,
.overlay.viewer-clear .prop-sheet,
.overlay.viewer-clear .ov-tools,
.overlay.viewer-clear .ov-chip,
.overlay.viewer-clear .holo-face-toggle,
.overlay.viewer-clear .cover-fab {
  display: none !important;
}
.overlay.viewer-clear .float-card {
  filter: none;
}
.float-stage {
  position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  width: min(92vw, 720px); height: min(92dvh, 920px);
  background: transparent; border: none; box-shadow: none;
}
.float-card {
  flex: 1 1 auto;
  width: 100%;
  display: grid; place-items: center;
  perspective: 1200px;
  transform-origin: center center;
  filter: drop-shadow(0 32px 48px rgba(0,0,0,.5));
}
.float-card .holo-card-wrap { width: min(100%, 380px); position: relative; z-index: 5; }
.overlay .holo-face-toggle {
  position: relative;
  z-index: 6;
  margin-top: 10px;
}
body.hide-face-toggle .holo-face-toggle { display: none !important; }
body.hide-owned-badge .slot .count { display: none !important; }
.mod-off { display: none !important; }
.mem-title {
  font-family: "Noto Serif SC", serif;
  font-size: 20px;
  margin: 8px 32px 12px;
  letter-spacing: 0.12em;
}
.shelf-drop { position: relative; display: inline-block; }
.shelf-btn {
  font-family: "Noto Serif SC", serif;
  font-size: 28px;
  background: transparent;
  border: none;
  color: var(--text);
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}
.shelf-caret {
  width: 0; height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 7px solid var(--gold);
  opacity: 0.85;
}
.shelf-menu {
  position: absolute; left: 0; top: calc(100% + 8px); z-index: 30;
  min-width: 220px;
  background: rgba(18,16,14,.96);
  border: 1px solid rgba(232,195,106,.28);
  border-radius: 14px;
  padding: 6px;
  box-shadow: 0 18px 40px rgba(0,0,0,.45);
}
.shelf-menu button {
  display: block; width: 100%; text-align: left;
  background: transparent; border: none; color: var(--text);
  padding: 10px 14px; border-radius: 10px; font-size: 15px;
}
.shelf-menu button.on,
.shelf-menu button:hover { background: rgba(232,195,106,.12); color: var(--gold); }
.memorial-wrap { padding-bottom: 24px; }
.ed-mod-pop {
  position: fixed; bottom: 64px; left: 50%; transform: translateX(-50%);
  z-index: 48; width: min(320px, 92vw);
  background: #16141c; border: 1px solid #2e2a24; border-radius: 14px; padding: 14px;
}
.ed-mod-pop h4 { margin: 0 0 10px; font-family: "Noto Serif SC", serif; }
.ed-mod-pop { max-height: min(70vh, 560px); overflow: auto; }
.ed-mod-pop label { display: block; margin: 8px 0; font-size: 13px; color: var(--muted); }
.ed-mod-pop input[type="url"],
.ed-mod-pop input:not([type="checkbox"]) {
  width: 100%; margin-top: 4px; background: #100e0c; color: var(--text);
  border: 1px solid #3a342c; border-radius: 10px; padding: 8px 10px; font: inherit;
}
.prop-link {
  display: inline-flex; align-items: center; justify-content: center;
  margin: 10px 0 14px; padding: 8px 14px;
  border-radius: 999px; border: 1px solid rgba(232,195,106,.45);
  color: var(--gold); font-size: 13px; text-decoration: none;
}
.ov-tools {
  position: fixed; z-index: 22; top: 18px; left: 18px;
  display: flex; flex-direction: column; align-items: stretch; gap: 10px;
  max-width: min(160px, 42vw);
}
.ov-tools .ov-chip {
  position: static;
  width: 100%;
  text-align: center;
  white-space: nowrap;
}
.ov-chip {
  position: fixed; z-index: 22; top: 18px;
  background: rgba(22,20,18,.82); backdrop-filter: blur(12px);
  border: 1px solid rgba(232,195,106,.28);
  padding: 8px 14px;
}
.ov-close { right: 18px; left: auto; }
.prop-sheet {
  position: fixed; top: 64px; right: 18px; bottom: 24px; width: min(320px, 86vw);
  z-index: 21;
  background: rgba(18,16,14,.92);
  border: 1px solid rgba(46,42,36,.9);
  border-radius: 16px;
  padding: 18px 16px;
  overflow: auto;
  transition: transform .28s cubic-bezier(.16,1,.3,1), opacity .22s ease;
}
.prop-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.prop-head h2 { margin: 0; font-size: 20px; }
.prop-x { padding: 4px 10px; font-size: 12px; }
.prop-link {
  display: inline-block; margin: 10px 0 14px; color: var(--gold); font-size: 13px;
}
.prop-tools { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.viewer-strip { display: flex; gap: 8px; overflow-x: auto; padding: 8px 0 12px; max-width: 100%; }
.viewer-strip.hidden { display: none; }
.strip-card { padding: 4px; width: 72px; background: transparent; }
.strip-card img { width: 64px; height: 86px; object-fit: cover; border-radius: 8px; display: block; }
.strip-card span { display: block; font-size: 10px; margin-top: 4px; }
.strip-card.on { outline: 2px solid var(--gold); }
.cover-fab {
  /* legacy; cover control is now an ov-chip */
  display: none;
}
.slot-live,
.slot .holo-card-wrap.is-mini {
  position: absolute;
  z-index: 1;
  pointer-events: none;
}
.slot .holo-card-wrap.is-mini {
  left: 50%;
  top: 50%;
  width: 380px;
  aspect-ratio: 3136 / 4032;
  height: auto;
  gap: 0;
  display: block;
  overflow: hidden;
  border-radius: 16px;
  transform: translate(-50%, -50%) scale(var(--mini-s, 0.42));
  transform-origin: center center;
}
.slot .holo-card-wrap.is-mini .card-root.holo-card {
  width: 380px;
  max-width: none;
  height: 100%;
  border-radius: 16px;
}
.slot > img { position: relative; z-index: 0; }
.slot.has-live > img,
.slot.has-live > .code { opacity: 0; }
.lang-switch { display: inline-flex; gap: 2px; }
.lang-btn { padding: 6px 8px; font-size: 11px; letter-spacing: 0.06em; }
.lang-btn.active { background: var(--gold); color: #1a1408; border-color: var(--gold); }
.who-chip {
  display: inline-flex; align-items: center; gap: 8px;
  border-radius: 999px; padding: 4px 12px 4px 10px;
}
.who-chip.iron { box-shadow: inset 0 0 0 1px #6a6560; }
.who-chip.silver { box-shadow: inset 0 0 0 1px #c5cdd8; }
.who-chip.gold { box-shadow: inset 0 0 0 1px #e8c36a; }
.who-chip.prism { box-shadow: inset 0 0 0 1px #ffe9b8, 0 0 10px rgba(196,30,58,.25); }
.who-name { font-weight: 600; }
.who-tier { font-size: 11px; color: var(--gold); letter-spacing: 0.08em; }
.who-pop {
  position: fixed; z-index: 60; width: min(320px, calc(100vw - 24px));
  background: linear-gradient(165deg, #1c1822 0%, #14121a 100%);
  border: 1px solid #2e2a24; border-radius: 16px; padding: 16px 16px 14px;
  box-shadow: 0 18px 40px rgba(0,0,0,.45);
  display: flex; flex-direction: column; gap: 12px;
}
.who-pop-head { display: flex; flex-direction: column; gap: 4px; }
.who-pop-name {
  font-family: "Noto Serif SC", serif; margin: 0;
  font-size: 18px; letter-spacing: 0.04em; line-height: 1.25;
}
.who-pop-tier {
  margin: 0; font-size: 12px; letter-spacing: 0.1em; opacity: 0.85;
  color: var(--gold, #e8c36a);
}
.who-pop-tier.silver { color: #c5cdd8; }
.who-pop-tier.gold { color: #e8c36a; }
.who-pop-tier.prism { color: #ffe9b8; text-shadow: 0 0 8px rgba(196,30,58,.35); }
.who-pop-stats {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
}
.who-stat {
  display: flex; flex-direction: column; gap: 2px;
  padding: 10px 12px; border-radius: 12px;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08);
}
.who-stat-n { font-size: 20px; font-weight: 600; line-height: 1.1; }
.who-stat-l { font-size: 11px; opacity: 0.65; letter-spacing: 0.06em; }
.who-pop-since { margin: 0; }
.who-pop-actions { display: flex; flex-direction: column; gap: 8px; }
.who-pop-upgrade, .who-pop-rules-link {
  width: 100%; text-align: center; justify-content: center;
}
.who-pop-rules-link { text-decoration: none; }

/* Dedicated /rules page */
body.rules-page { min-height: 100vh; }
.rules-top { margin-bottom: 0; }
.rules-h1 {
  font-family: "Noto Serif SC", serif; margin: 4px 0 0;
  font-size: clamp(1.6rem, 3vw, 2rem); letter-spacing: 0.08em;
}
.rules-main {
  max-width: 720px; margin: 0 auto; padding: 28px 20px 64px;
  display: flex; flex-direction: column; gap: 16px;
}
.rules-lead { margin: 0 0 4px; line-height: 1.5; }
.rules-card {
  padding: 18px 20px; border-radius: 16px;
  background: rgba(255,255,255,.035); border: 1px solid rgba(255,255,255,.09);
}
.rules-card-muted { opacity: 0.85; }
.rules-card h2 {
  font-family: "Noto Serif SC", serif; margin: 0 0 12px;
  font-size: 1.05rem; letter-spacing: 0.06em;
}
.rules-card ul {
  margin: 0; padding: 0; list-style: none;
  display: flex; flex-direction: column; gap: 10px;
}
.rules-card li {
  position: relative; padding-left: 14px;
  font-size: 14px; line-height: 1.55; opacity: 0.92;
}
.rules-card li::before {
  content: ""; position: absolute; left: 0; top: 0.65em;
  width: 6px; height: 6px; border-radius: 50%;
  background: color-mix(in srgb, var(--fx, #d4af37) 75%, transparent);
}
.rules-footer { margin-top: 8px; }

.holo-type-serial-link {
  color: inherit; text-decoration: none; cursor: pointer;
}
.holo-back-sub { font-size: 11px; letter-spacing: 0.28em; opacity: 0.8; }
.viewer-side h2 { font-family: "Noto Serif SC", serif; margin: 8px 0 4px; }
.stack { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.stack button { padding: 6px 10px; }
.row { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }

.holo-card-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.card-root.holo-card {
  width: min(380px, 72vw);
  aspect-ratio: 3136 / 4032;
  position: relative;
  isolation: isolate;
  overflow: visible;
  border-radius: 16px;
  background: transparent;
  perspective: 1400px;
  transform-style: preserve-3d;
  --fx: #d4af37;
  --fx2: #fff1b8;
  --fx3: #8a5a12;
}
.card-root.holo-card.is-flipping {
  overflow: visible;
  z-index: 6;
}
.holo-flipper { position: absolute; inset: 0; z-index: 1; transform-style: preserve-3d; transform-origin: center center; will-change: transform; }
.holo-face {
  position: absolute; inset: 0; border-radius: 16px; overflow: hidden;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  transform-style: preserve-3d; background: #1a1410;
  box-shadow: 0 22px 50px rgba(0,0,0,.55);
}
.holo-back {
  transform: rotateY(180deg);
  background: #f4eee4;
  /* Flatten so foil/glare blend against the cream paper, not a 3D isolated group. */
  transform-style: flat;
  isolation: isolate;
}
.holo-stock {
  position: absolute; inset: 0; overflow: hidden; border-radius: inherit; z-index: 1;
}
.holo-contact-shadow {
  position: absolute; left: 18%; right: 18%; bottom: 10%; height: 18%; z-index: 4;
  pointer-events: none; background: radial-gradient(ellipse at center, rgba(0,0,0,.45), transparent 70%);
  filter: blur(10px);
}
.holo-card img, .holo-card .holo-layer-img, .holo-foil, .holo-glare, .holo-foil-bars, .holo-spark, .holo-card canvas {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: fill; pointer-events: none;
}
.holo-card.has-bleed .holo-layer-img,
.holo-card.has-bleed .holo-chest,
.holo-card.has-bleed .holo-eyes {
  inset: auto;
  width: calc(100% * (1 + 2 * var(--bleed, 0.28)));
  height: calc(100% * (1 + 2 * var(--bleed, 0.28)));
  left: calc(-100% * var(--bleed, 0.28));
  top: calc(-100% * var(--bleed, 0.28));
}
.holo-card [data-kind="background"] { z-index: 2; }
.holo-foil {
  pointer-events: none; mix-blend-mode: color-dodge; opacity: 0.55;
  background-repeat: no-repeat; background-size: 140% 140%;
}
.holo-foil-bg { z-index: 3; }
.holo-foil-bars {
  z-index: 3; mix-blend-mode: overlay; opacity: 0.35;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.22) 48%, transparent 66%);
  background-repeat: no-repeat; background-size: 140% 140%;
}
.holo-spark {
  z-index: 4; mix-blend-mode: screen; opacity: 0.35;
  background-image: var(--spark, none); background-repeat: no-repeat; background-size: 160% 160%;
}
.holo-glare { z-index: 4; mix-blend-mode: overlay; }
.holo-card .holo-subject { z-index: 5; transform-origin: 50% 40%; filter: drop-shadow(0 18px 16px rgba(0,0,0,.55)); }
.holo-foil-char {
  z-index: 6; mix-blend-mode: color-dodge; opacity: 0.42;
  -webkit-mask-size: 100% 100%; mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
}
.holo-extras { position: absolute; inset: 0; z-index: 7; pointer-events: none; }
.holo-extra { z-index: 7; }
.holo-chest { z-index: 6; opacity: 0; }
.holo-eyes { z-index: 8; }
.holo-frame { position: absolute; inset: 0; z-index: 12; pointer-events: none; border-radius: inherit; }
.holo-edge-glow {
  position: absolute; inset: 10px; border-radius: 12px; pointer-events: none;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--fx2) 28%, transparent), 0 0 16px color-mix(in srgb, var(--fx) 22%, transparent);
}
.holo-frame-shine {
  position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  mix-blend-mode: color-dodge; opacity: 0.45;
  background:
    radial-gradient(circle at var(--px, 50%) var(--py, 30%), rgba(255,255,255,.5), transparent 34%),
    linear-gradient(118deg, transparent 28%, rgba(255,230,170,.4) 46%, rgba(170,220,255,.35) 54%, transparent 72%);
  background-size: 100% 100%, 220% 220%;
  -webkit-mask:
    linear-gradient(#000,#000) 0 0 / 100% 18px no-repeat,
    linear-gradient(#000,#000) 0 100% / 100% 18px no-repeat,
    linear-gradient(#000,#000) 0 0 / 18px 100% no-repeat,
    linear-gradient(#000,#000) 100% 0 / 18px 100% no-repeat;
  mask:
    linear-gradient(#000,#000) 0 0 / 100% 18px no-repeat,
    linear-gradient(#000,#000) 0 100% / 100% 18px no-repeat,
    linear-gradient(#000,#000) 0 0 / 18px 100% no-repeat,
    linear-gradient(#000,#000) 100% 0 / 18px 100% no-repeat;
}
.holo-filigree {
  position: absolute; width: 86px; height: 86px; color: var(--fx2); opacity: 0.92; pointer-events: none;
  filter: drop-shadow(0 0 2px var(--fx)) drop-shadow(0 0 8px color-mix(in srgb, var(--fx) 55%, transparent));
}
.holo-filigree.tl { top: 4px; left: 4px; }
.holo-filigree.tr { top: 4px; right: 4px; transform: scaleX(-1); }
.holo-filigree.bl { bottom: 4px; left: 4px; transform: scaleY(-1); }
.holo-filigree.br { bottom: 4px; right: 4px; transform: scale(-1); }
.holo-filigree-mid {
  position: absolute; left: 50%; width: 78px; height: 22px; color: var(--fx2); opacity: 0.8; pointer-events: none;
  filter: drop-shadow(0 0 6px color-mix(in srgb, var(--fx) 50%, transparent));
}
.holo-filigree-mid.top { top: 6px; transform: translateX(-50%); }
.holo-filigree-mid.bot { bottom: 6px; transform: translateX(-50%) scaleY(-1); }
.holo-card[data-foil="rainbow"] .holo-foil {
  background-image:
    linear-gradient(
      118deg,
      transparent 16%,
      hsl(320 90% 62% / .32) 30%,
      hsl(48 95% 62% / .42) 42%,
      hsl(170 90% 55% / .38) 54%,
      hsl(210 95% 62% / .36) 66%,
      transparent 82%
    ),
    radial-gradient(circle at var(--px, 50%) var(--py, 50%), rgba(255,255,255,.42), transparent 44%);
  background-repeat: no-repeat;
}
.holo-card[data-foil="cosmos"] .holo-foil {
  background-image:
    radial-gradient(circle at 22% 18%, rgba(120, 80, 255, .55), transparent 42%),
    radial-gradient(circle at 78% 72%, rgba(255, 70, 180, .45), transparent 46%),
    radial-gradient(circle at 50% 50%, rgba(40, 20, 80, .2), transparent 70%),
    repeating-conic-gradient(from 20deg, rgba(255,255,255,.08) 0 8deg, transparent 8deg 18deg);
  mix-blend-mode: screen;
}
.holo-card[data-foil="glitter"] .holo-foil {
  background-image:
    var(--spark, none),
    linear-gradient(115deg, rgba(255,180,220,.2), rgba(180,220,255,.25) 50%, rgba(255,240,180,.2));
  background-size: 160% 160%, 140% 140%;
  background-repeat: no-repeat;
  mix-blend-mode: screen;
}
.holo-card[data-foil="aurora"] .holo-foil {
  background-image:
    linear-gradient(105deg, transparent 20%, rgba(80,255,200,.4) 38%, rgba(160,120,255,.45) 52%, rgba(255,120,200,.35) 66%, transparent 82%);
  mix-blend-mode: color-dodge;
  filter: blur(0.2px) saturate(1.2);
}
.holo-card[data-foil="gold"] .holo-foil {
  background-image:
    linear-gradient(118deg, transparent 30%, rgba(255, 214, 90, .15) 42%, rgba(255, 244, 180, .75) 50%, rgba(201, 140, 30, .35) 58%, transparent 72%);
  mix-blend-mode: plus-lighter;
}
.holo-card[data-foil="prism"] .holo-foil {
  background-image:
    conic-gradient(from 210deg at var(--px, 50%) var(--py, 50%),
      #ff5aa5, #ffd15a, #5dffb2, #5ac8ff, #b07aff, #ff5aa5);
  mix-blend-mode: overlay;
  opacity: 0.4;
}
.holo-card[data-foil="reverse"] .holo-foil-char { display: none !important; }
.holo-card[data-foil="reverse"] .holo-foil-bg {
  mix-blend-mode: color-dodge;
  opacity: 0.7;
}
.holo-card[data-foil-target="char"] .holo-foil-bg,
.holo-card[data-foil-target="char"] .holo-foil-bars,
.holo-card[data-foil-target="char"] .holo-spark { display: none; }
.holo-card[data-foil-target="bg"] .holo-foil-char { display: none; }
.holo-back-paper {
  position: absolute; inset: 0; z-index: 0; border-radius: inherit;
  background:
    radial-gradient(ellipse 72% 58% at var(--lx, 50%) var(--ly, 42%), rgba(255,255,255,.42), transparent 58%),
    linear-gradient(135deg, rgba(255,210,230,.28), rgba(200,230,255,.28) 42%, rgba(255,248,210,.22) 70%, rgba(255,255,255,.1)),
    repeating-linear-gradient(0deg, rgba(90,60,30,.035) 0 1px, transparent 1px 3px),
    #f3ece1;
}
.holo-back-frame {
  position: absolute; inset: 14px; z-index: 5; border: 1px solid rgba(90,70,40,.45);
  box-shadow: inset 0 0 0 4px rgba(90,70,40,.18); border-radius: 4px; pointer-events: none;
}
.holo-back .holo-foil,
.holo-back .holo-foil-bars,
.holo-back .holo-spark,
.holo-back .holo-glare {
  z-index: 3;
  border-radius: inherit;
}
.holo-back .holo-filigree { z-index: 6; }
.holo-back-inner {
  position: absolute; inset: 0; z-index: 8; color: #5a4630; text-align: center;
  font-family: "Noto Serif SC", serif; pointer-events: none;
}
.holo-back-inner .back-mod {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%) scale(var(--s, 1));
  transform-origin: center center; white-space: nowrap; max-width: 90%;
}
.holo-back-inner .back-mod[data-back="kicker"],
.holo-back-inner .back-mod[data-back="brand"],
.holo-back-inner .back-mod[data-back="sub"],
.holo-back-inner .back-mod[data-back="edition"],
.holo-back-inner .back-mod[data-back="serial"] {
  white-space: normal;
  width: 68%;
  max-width: 68%;
  line-height: 1.35;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.holo-back-kicker { font-size: 11px; letter-spacing: 0.28em; }
.holo-back-mono {
  font-family: "Noto Serif SC", "Times New Roman", serif; font-size: 64px; line-height: 0.9;
  font-weight: 500; letter-spacing: 0.06em;
  color: transparent;
  /* Default = gold; silver/prism override the fill below so S is not always warm-gold. */
  background-image: linear-gradient(
    118deg,
    #5a3a0c 0%,
    #8a5a12 18%,
    #d4af37 34%,
    #fff1b8 48%,
    #ffe08a 52%,
    #d4af37 68%,
    #8a5a12 88%,
    #5a3a0c 100%
  );
  background-size: 280% 280%;
  background-position: calc(var(--mono-px, 0.5) * 100%) calc(var(--mono-py, 0.5) * 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter:
    drop-shadow(0 1px 0 rgba(255, 244, 200, calc(0.45 * var(--mono-shine, 0.7))))
    drop-shadow(0 2px 5px rgba(80, 48, 8, 0.4))
    drop-shadow(0 0 16px rgba(212, 175, 55, 0.48));
}
.holo-back-brand { font-size: 12px; letter-spacing: 0.34em; }
.holo-back-rule { width: 42px; height: 1px; background: #8a6a3a; opacity: 0.5; margin: 4px 0; }
.holo-back-edition, .holo-back-serial {
  font-size: 10px; letter-spacing: 0.14em; opacity: 0.75;
  white-space: normal; max-width: 78%; line-height: 1.35;
}
.holo-type {
  position: absolute; inset: 0; z-index: 30; pointer-events: none;
  color: var(--fx2); font-family: "Noto Serif SC", serif;
  text-shadow: 0 1px 3px rgba(0,0,0,.9), 0 0 10px rgba(0,0,0,.55);
  transition: opacity .18s ease;
}
/* JS gates visibility by flip angle so text appears only near face-up */
.holo-card[data-flipped="1"] .holo-type { visibility: hidden; opacity: 0; }
.holo-type-serial { position: absolute; top: 18px; left: 22px; font-size: 11px; letter-spacing: 0.14em; }
.holo-type-brand { position: absolute; top: 18px; right: 22px; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; }
.holo-type-name { position: absolute; left: 24px; right: 24px; bottom: 28px; text-align: center; font-size: 18px; font-weight: 700; letter-spacing: 0.16em; }
.holo-type-edition { position: absolute; bottom: 48px; left: 22px; font-size: 12px; letter-spacing: 0.12em; }
.holo-type-date { position: absolute; bottom: 14px; right: 22px; font-size: 11px; letter-spacing: 0.14em; }
.holo-card[data-grade="silver"] { --fx: #c5cdd8; --fx2: #f4f7fb; --fx3: #5c6470; }
.holo-card[data-grade="gold"] { --fx: #d4af37; --fx2: #fff1b8; --fx3: #8a5a12; }
.holo-card[data-grade="prism"] { --fx: #e8c36a; --fx2: #fff4dc; --fx3: #9e2a2b; }
.holo-card[data-grade="silver"] .holo-back-mono {
  background-image: linear-gradient(
    118deg,
    #3a424c 0%,
    #5c6470 16%,
    #9aa6b4 32%,
    #e8eef5 46%,
    #ffffff 50%,
    #c5cdd8 62%,
    #7a8490 80%,
    #3a424c 100%
  );
  filter:
    drop-shadow(0 1px 0 rgba(255, 255, 255, calc(0.55 * var(--mono-shine, 0.7))))
    drop-shadow(0 2px 5px rgba(30, 36, 48, 0.4))
    drop-shadow(0 0 14px rgba(170, 190, 210, 0.55));
}
.holo-card[data-grade="gold"] .holo-back-mono {
  background-image: linear-gradient(
    118deg,
    #5a3a0c 0%,
    #8a5a12 18%,
    #d4af37 34%,
    #fff1b8 48%,
    #ffe08a 52%,
    #d4af37 68%,
    #8a5a12 88%,
    #5a3a0c 100%
  );
  filter:
    drop-shadow(0 1px 0 rgba(255, 244, 200, calc(0.5 * var(--mono-shine, 0.7))))
    drop-shadow(0 2px 5px rgba(80, 48, 8, 0.42))
    drop-shadow(0 0 16px rgba(212, 175, 55, 0.55));
}
.holo-card[data-grade="prism"] .holo-back-mono {
  /* Iridescent foil — cool rainbow, not warm gold. */
  background-image: linear-gradient(
    118deg,
    #6b1f3a 0%,
    #c41e3a 12%,
    #e8a84a 24%,
    #f4f0c8 34%,
    #7ec8c0 44%,
    #3d7a9e 52%,
    #7b5ea7 62%,
    #e8a0c8 72%,
    #c41e3a 84%,
    #2a1a28 100%
  );
  background-size: 340% 340%;
  filter:
    drop-shadow(0 1px 0 rgba(255, 255, 255, calc(0.5 * var(--mono-shine, 0.7))))
    drop-shadow(0 2px 6px rgba(40, 16, 40, 0.4))
    drop-shadow(0 0 10px rgba(126, 200, 192, 0.45))
    drop-shadow(0 0 16px rgba(196, 30, 58, 0.35))
    drop-shadow(0 0 22px rgba(61, 122, 158, 0.3));
}
.holo-card[data-grade="prism"] .holo-filigree,
.holo-card[data-grade="prism"] .holo-filigree-mid {
  color: #ffe9b8;
  filter: drop-shadow(0 0 2px rgba(255,236,180,1)) drop-shadow(0 0 6px rgba(196,30,58,.65)) drop-shadow(0 0 10px rgba(46,132,110,.55)) drop-shadow(0 0 16px rgba(43,87,151,.5));
}
.holo-card[data-grade="prism"] .holo-frame-shine {
  opacity: 0.88; mix-blend-mode: color-dodge;
  background:
    radial-gradient(circle at var(--px, 50%) var(--py, 28%), rgba(255,255,255,.8), transparent 32%),
    linear-gradient(118deg, rgba(158,42,43,0) 8%, rgba(196,30,58,.55) 22%, rgba(232,195,106,.7) 36%, rgba(46,132,110,.55) 50%, rgba(43,87,151,.58) 64%, rgba(106,57,132,.5) 76%, rgba(158,42,43,0) 90%);
}
.holo-face-toggle { display: flex; justify-content: center; gap: 8px; }
.holo-face-btn {
  border: 1px solid #3a342c; background: transparent; color: #9a9388;
  border-radius: 999px; padding: 5px 16px; font-size: 12px; cursor: pointer;
}
.holo-face-btn.active {
  background: #f3ece3; color: #1a1512; border-color: #f3ece3; font-weight: 700;
}

@media (max-width: 800px) {
  .viewer { grid-template-columns: 1fr; }
  .top { padding: 18px 16px; }
  .cabinet, .status-bar, .gate { padding-left: 16px; padding-right: 16px; }
}

.admin-body { padding-bottom: 96px; }
.admin-note { padding: 0 32px 8px; color: var(--muted); }
.admin-card {
  margin: 12px 32px;
  padding: 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
}
.admin-card h2 { font-family: "Noto Serif SC", serif; font-size: 18px; margin: 0 0 12px; }
.admin-card label { display: block; margin: 10px 0; color: var(--muted); font-size: 13px; }
.admin-card input, .admin-card textarea {
  display: block; width: 100%; margin-top: 6px;
  background: #100e0c; color: var(--text); border: 1px solid #3a342c;
  border-radius: 10px; padding: 8px 10px; font: inherit;
}
.admin-row { display: grid; grid-template-columns: 160px 1fr auto; gap: 8px; margin: 8px 0; }
.admin-save {
  position: sticky; bottom: 0;
  display: flex; gap: 12px; align-items: center;
  padding: 12px 32px 20px;
  background: linear-gradient(180deg, transparent, var(--bg) 30%);
}

.admin-body { padding-bottom: 96px; }
.admin-note { padding: 0 32px 8px; color: var(--muted); }
.admin-card {
  margin: 12px 32px;
  padding: 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
}
.admin-card h2 { font-family: "Noto Serif SC", serif; font-size: 18px; margin: 0 0 12px; }
.admin-card label { display: block; margin: 10px 0; color: var(--muted); font-size: 13px; }
.admin-card input, .admin-card textarea {
  display: block; width: 100%; margin-top: 6px;
  background: #100e0c; color: var(--text); border: 1px solid #3a342c;
  border-radius: 10px; padding: 8px 10px; font: inherit;
}
.admin-row { display: grid; grid-template-columns: 160px 1fr auto; gap: 8px; margin: 8px 0; }
.admin-save {
  position: sticky; bottom: 0;
  display: flex; gap: 12px; align-items: center;
  padding: 12px 32px 20px;
  background: linear-gradient(180deg, transparent, var(--bg) 30%);
}

.page-note { padding: 0 32px 18px; color: var(--muted); max-width: 720px; }
.ed-name-tag { display: none; }
body.editing .ed-name-tag {
  display: block; position: absolute; left: 8px; right: 8px; bottom: 28px;
  font-size: 12px; color: #f3efe6; text-align: center; pointer-events: none;
  text-shadow: 0 1px 4px #000;
}
.ed-enter {
  position: fixed; right: 18px; bottom: 18px; z-index: 40;
  background: var(--gold); color: #1a1408; border-color: var(--gold); font-weight: 700;
}
.ed-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  padding: 10px 16px 14px;
  background: rgba(16,14,12,.94);
  border-top: 1px solid #3a342c;
}
.ed-bar strong { font-family: "Noto Serif SC", serif; margin-right: 8px; }
.ed-dirty { color: var(--gold); font-size: 12px; }
body.editing { padding-bottom: 72px; }
body.editing [data-ed],
body.editing .kicker,
body.editing .top h1,
body.editing #gate p {
  outline: 1px dashed rgba(232,195,106,.45);
  outline-offset: 4px;
  cursor: text;
}
body.editing .slot { cursor: grab; }
body.editing .slot.ed-drop { outline: 2px solid var(--gold); }
body.editing .ed-hidden-slot { opacity: 0.38; }
.ed-block-off { display: none !important; }
body.editing .ed-block-off {
  display: block !important;
  opacity: 0.4;
  outline: 1px dashed rgba(232,195,106,.5);
}
.ed-drawer, .ed-lib {
  position: fixed; top: 0; bottom: 56px; width: min(340px, 92vw);
  background: #16141c; border: 1px solid #2e2a24; z-index: 46;
  padding: 16px; overflow: auto;
}
.ed-drawer { right: 0; border-right: none; }
.ed-lib { left: 0; border-left: none; }
.ed-drawer h3, .ed-lib h3, .ed-fix-card h3 { font-family: "Noto Serif SC", serif; margin: 0 0 10px; }
.ed-drawer label, .ed-fix-card label { display: block; margin: 10px 0; font-size: 13px; color: var(--muted); }
.ed-drawer input, .ed-lib input, .ed-fix-card input, .ed-fix-card select {
  width: 100%; margin-top: 4px; background: #100e0c; color: var(--text);
  border: 1px solid #3a342c; border-radius: 10px; padding: 8px 10px; font: inherit;
}
.ed-check { display: flex !important; align-items: center; gap: 8px; }
.ed-check input { width: auto !important; }
.ed-mini { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.ed-actions { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0; }
.ed-card {
  display: grid; grid-template-columns: 48px 1fr; grid-template-rows: auto auto;
  gap: 2px 10px; width: 100%; text-align: left; border-radius: 12px; margin: 8px 0; padding: 8px;
}
.ed-card img { width: 48px; height: 64px; object-fit: cover; border-radius: 6px; grid-row: 1 / span 2; }
.ed-card span { font-size: 12px; }
.ed-card em { font-size: 11px; color: var(--muted); font-style: normal; }
.ed-fix {
  position: fixed; inset: 0; z-index: 50; background: rgba(0,0,0,.72);
  display: grid; place-items: center; padding: 20px;
}
.ed-fix-card {
  width: min(480px, 100%); background: #16141c; border: 1px solid #2e2a24;
  border-radius: 16px; padding: 18px;
}
.hidden { display: none !important; }
.zone-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.zone-card {
  display: grid; grid-template-columns: 56px 1fr; gap: 10px;
  background: #100e0c; border: 1px solid #2e2a24; border-radius: 12px; padding: 8px;
}
.zone-card img { width: 56px; height: 74px; object-fit: cover; border-radius: 6px; }
.admin-sub { font-family: "Noto Serif SC", serif; font-size: 15px; margin: 16px 0 8px; }
.admin-card summary {
  font-family: "Noto Serif SC", serif; font-size: 18px; margin: 0 0 12px; cursor: pointer; list-style: none;
}
.admin-card summary::-webkit-details-marker { display: none; }

.prop-link.is-disabled {
  opacity: .45;
  pointer-events: none;
  cursor: default;
}


/* —— 自由排版 —— */
body.freeform-layout {
  position: relative;
  min-height: 100vh;
}
body.freeform-layout .top,
body.freeform-layout #status-bar,
body.freeform-layout #gate,
body.freeform-layout #page-note,
body.freeform-layout #cabinet,
body.freeform-layout #memorial-wrap {
  position: absolute;
  margin: 0;
  z-index: 2;
}
body.freeform-layout #cabinet,
body.freeform-layout #memorial .cabinet {
  overflow: auto;
}
.ed-free {
  outline: 1px dashed transparent;
}
body.editing.freeform-layout .ed-free {
  outline: 1px dashed rgba(232,195,106,.35);
}
.ed-free-handle {
  display: none;
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 28px;
  z-index: 8;
  cursor: grab;
  background: linear-gradient(180deg, rgba(232,195,106,.22), transparent);
  border-radius: 8px 8px 0 0;
  font-size: 11px;
  color: var(--gold);
  padding: 4px 10px;
  user-select: none;
  touch-action: none;
}
body.editing.freeform-layout .ed-free-handle { display: block; }
.ed-free-handle:active { cursor: grabbing; }
.ed-free-resize {
  display: none;
  position: absolute;
  right: 2px; bottom: 2px;
  width: 16px; height: 16px;
  z-index: 9;
  cursor: nwse-resize;
  border-radius: 4px;
  background: rgba(232,195,106,.85);
  touch-action: none;
}
body.editing.freeform-layout .ed-free-resize { display: block; }
.ed-free.dragging, .ed-free.resizing {
  outline-color: var(--gold) !important;
  z-index: 12 !important;
}
#ed-freeform.on {
  background: rgba(232,195,106,.18);
  border-color: var(--gold);
  color: var(--gold);
}
/* viewer chrome free move (always, light handle) */
#ov-tools.ed-viewer-free,
#viewer-side.ed-viewer-free,
#close-viewer.ed-viewer-free {
  touch-action: none;
}
.ov-tools.ed-viewer-free { cursor: grab; }
.ov-tools.ed-viewer-free:active { cursor: grabbing; }
#viewer-side.ed-viewer-free .prop-head { cursor: grab; }


/* Creator tier / fan-view preview strip */
.creator-preview {
  display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap;
  padding: 4px 8px; border-radius: 999px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
  margin-right: 4px;
}
.creator-preview.fan-on {
  background: rgba(126, 200, 192, .12);
  border-color: rgba(126, 200, 192, .35);
}
.creator-preview .preview-label {
  font-size: 11px; letter-spacing: 0.06em; opacity: 0.75; white-space: nowrap;
}
.preview-tiers { display: inline-flex; gap: 2px; flex-wrap: wrap; }
.preview-tier {
  appearance: none; border: 0; cursor: pointer;
  font: inherit; font-size: 11px; padding: 3px 7px; border-radius: 999px;
  background: transparent; color: inherit; opacity: 0.7;
}
.preview-tier:hover { opacity: 1; background: rgba(255,255,255,.08); }
.preview-tier.on {
  opacity: 1; background: color-mix(in srgb, var(--fx, #d4af37) 35%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--fx2, #fff1b8) 50%, transparent);
}



/* —— 后台作品集合链接表 —— */
.batch-url-toolbar {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 8px 0 12px;
}
.batch-url-table-wrap {
  max-height: 420px; overflow: auto; border: 1px solid #2e2a24; border-radius: 12px;
}
.batch-url-table {
  width: 100%; border-collapse: collapse; font-size: 13px;
}
.batch-url-table th,
.batch-url-table td {
  padding: 8px 10px; border-bottom: 1px solid #2e2a24; text-align: left; vertical-align: middle;
}
.batch-url-table th {
  position: sticky; top: 0; background: #16141c; color: var(--muted); font-weight: 600; z-index: 1;
}
.batch-url-table td:nth-child(1) { white-space: nowrap; font-weight: 600; color: #efe8dc; width: 7.5rem; }
.batch-url-table td:nth-child(2) { color: var(--muted); max-width: 9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.batch-url-table input.batch-url-input {
  width: 100%; margin: 0; box-sizing: border-box;
}
.batch-url-table tr.is-dirty td:nth-child(1)::after {
  content: " ·"; color: #e8c36a;
}


/* —— 私信创作者 —— */
.chat-fab {
  position: fixed; right: 18px; bottom: 18px; z-index: 80;
  width: 52px; height: 52px; border-radius: 999px;
  border: 1px solid #3a342c; background: #1a1714; color: #efe8dc;
  box-shadow: 0 8px 28px rgba(0,0,0,.45); cursor: pointer;
  display: grid; place-items: center; font-size: 22px;
}
.chat-fab:hover { border-color: #c9a46c; }
.chat-fab-badge {
  position: absolute; top: -2px; right: -2px; min-width: 18px; height: 18px;
  padding: 0 5px; border-radius: 999px; background: #e07a7a; color: #1a1010;
  font-size: 11px; font-weight: 700; line-height: 18px;
}
.chat-panel {
  position: fixed; right: 18px; bottom: 78px; z-index: 81;
  width: min(360px, calc(100vw - 24px)); height: min(480px, calc(100vh - 120px));
  display: flex; flex-direction: column;
  background: #14110e; border: 1px solid #2e2a24; border-radius: 16px;
  box-shadow: 0 16px 48px rgba(0,0,0,.5); overflow: hidden;
}
.chat-panel.hidden { display: none; }
.chat-head {
  display: grid; grid-template-columns: 28px 1fr 28px; align-items: center; gap: 4px;
  padding: 12px 10px; border-bottom: 1px solid #2e2a24; background: #1a1714;
}
.chat-head strong {
  font-family: "Noto Serif SC", serif; font-size: 15px; text-align: center;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.chat-back, .chat-x {
  border: 0; background: transparent; color: var(--muted); font-size: 20px; cursor: pointer; line-height: 1;
  width: 28px; height: 28px;
}
.chat-back.hidden { visibility: hidden; pointer-events: none; }
.chat-thread-list { display: flex; flex-direction: column; gap: 6px; }
.chat-thread-item {
  display: block; width: 100%; text-align: left; border: 1px solid #2e2a24;
  background: #1a1714; color: inherit; border-radius: 12px; padding: 10px 12px; cursor: pointer;
}
.chat-thread-item:hover { border-color: #c9a46c; }
.chat-thread-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.chat-thread-meta { display: block; margin-top: 4px; font-size: 12px; color: var(--muted); }
.chat-unread {
  background: #e07a7a; color: #1a1010; border-radius: 999px; padding: 0 6px; font-size: 11px; font-weight: 700;
}
.chat-body {
  flex: 1; overflow: auto; padding: 12px; display: flex; flex-direction: column; gap: 8px;
}
.chat-msg {
  max-width: 85%; padding: 8px 10px; border-radius: 12px; font-size: 13px; line-height: 1.45;
  white-space: pre-wrap; word-break: break-word;
}
.chat-msg.fan { align-self: flex-end; background: #2a241c; border: 1px solid #3a342c; }
.chat-msg.creator { align-self: flex-start; background: #1c2228; border: 1px solid #2e3a44; }
.chat-msg .chat-meta { display: block; font-size: 10px; color: var(--muted); margin-bottom: 4px; }
.chat-compose {
  display: grid; grid-template-columns: 1fr auto; gap: 8px; padding: 10px;
  border-top: 1px solid #2e2a24; background: #1a1714;
}
.chat-compose textarea {
  width: 100%; resize: none; border-radius: 10px; border: 1px solid #2e2a24;
  background: #100e0c; color: #efe8dc; padding: 8px 10px; font: inherit;
}
.chat-compose button { align-self: end; }
.chat-login-hint { color: var(--muted); font-size: 13px; padding: 8px; text-align: center; }

.admin-chat {
  display: grid; grid-template-columns: minmax(160px, 220px) 1fr; gap: 10px; min-height: 320px;
}
.admin-chat-list {
  border: 1px solid #2e2a24; border-radius: 12px; overflow: auto; max-height: 420px;
  background: #100e0c;
}
.admin-chat-item {
  display: block; width: 100%; text-align: left; border: 0; border-bottom: 1px solid #2e2a24;
  background: transparent; color: inherit; padding: 10px; cursor: pointer;
}
.admin-chat-item.on, .admin-chat-item:hover { background: #1a1714; }
.admin-chat-item strong { display: flex; justify-content: space-between; gap: 6px; }
.chat-unread {
  background: #e07a7a; color: #1a1010; border-radius: 999px; padding: 0 6px; font-size: 11px;
}
.admin-chat-main {
  border: 1px solid #2e2a24; border-radius: 12px; display: flex; flex-direction: column;
  min-height: 320px; background: #100e0c;
}
.admin-chat-body {
  flex: 1; overflow: auto; padding: 10px; display: flex; flex-direction: column; gap: 8px; max-height: 360px;
}
.admin-chat-compose {
  display: grid; gap: 8px; padding: 10px; border-top: 1px solid #2e2a24;
}
.admin-chat-compose textarea {
  width: 100%; box-sizing: border-box; border-radius: 10px; border: 1px solid #2e2a24;
  background: #14110e; color: #efe8dc; padding: 8px; font: inherit;
}
@media (max-width: 720px) {
  .admin-chat { grid-template-columns: 1fr; }
}


/* —— 指南：框示意 —— */
.rules-frame-note { margin: 12px 0 10px; }
.rules-frames {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 4px;
}
.rules-frame {
  margin: 0;
  text-align: center;
  background: #100e0c;
  border: 1px solid #2e2a24;
  border-radius: 14px;
  padding: 10px 8px 12px;
}
.rules-frame img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  background: #0a0908;
}
.rules-frame figcaption {
  margin-top: 8px;
  font-size: 13px;
  color: #efe8dc;
  font-family: "Noto Serif SC", serif;
}
@media (max-width: 720px) {
  .rules-frames { grid-template-columns: 1fr; max-width: 280px; margin-inline: auto; }
}
