/* Classified seal — fixed-size fragment preview (no layout shift) */

.tmf-seal-preview {
  margin: 0;
  width: 100%;
  max-width: none;
  min-height: 280px;
  flex: 1 1 auto;
  text-align: left;
}

body.tmf-locked .tmf-seal-grid .tmf-seal-preview {
  min-height: 260px;
}

body.tmf-locked .tmf-seal-preview-frame {
  min-height: 300px;
  height: auto;
  padding: 16px 16px 14px;
  border: 1px solid rgba(212, 175, 55, 0.28);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(212, 175, 55, 0.08), transparent 28%),
    linear-gradient(135deg, rgba(94, 207, 154, 0.04), transparent 50%),
    rgba(0, 0, 0, 0.5);
  filter: sepia(0.1) contrast(1.06);
  box-shadow:
    inset 0 0 50px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 12px 32px rgba(0, 0, 0, 0.45),
    0 0 40px rgba(212, 175, 55, 0.06);
  overflow: hidden;
}

body.tmf-locked .tmf-seal-preview-frame::before {
  top: 8px;
  left: 8px;
  width: 14px;
  height: 14px;
  border-color: rgba(212, 175, 55, 0.4);
}

body.tmf-locked .tmf-seal-preview-frame::after {
  bottom: 8px;
  right: 8px;
  width: 14px;
  height: 14px;
  border-color: rgba(212, 175, 55, 0.4);
}

.tmf-seal-preview-frame {
  position: relative;
  box-sizing: border-box;
  min-height: 292px;
  height: 292px;
  padding: 14px 14px 12px;
  border: 1px solid rgba(201, 162, 39, 0.14);
  background: rgba(0, 0, 0, 0.22);
  filter: sepia(0.18);
  overflow: hidden;
}

.tmf-seal-preview-frame::before,
.tmf-seal-preview-frame::after {
  content: '';
  position: absolute;
  width: 10px;
  height: 10px;
  border-color: rgba(201, 162, 39, 0.28);
  border-style: solid;
  pointer-events: none;
}

.tmf-seal-preview-frame::before {
  top: 6px;
  left: 6px;
  border-width: 1px 0 0 1px;
}

.tmf-seal-preview-frame::after {
  bottom: 6px;
  right: 6px;
  border-width: 0 1px 1px 0;
}

.tmf-seal-preview.is-switching .tmf-seal-preview-frame {
  opacity: 0.92;
}

.tmf-seal-preview-kicker {
  margin: 0 0 6px;
  min-height: 1.35em;
  font-family: 'Special Elite', monospace;
  font-size: 8px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: rgba(168, 140, 90, 0.5);
  text-align: center;
  overflow: hidden;
}

.tmf-seal-preview-sigil {
  margin: 0 0 12px;
  min-height: 1.2em;
  font-family: 'Cinzel', serif;
  font-size: 7px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(107, 40, 48, 0.55);
  text-align: center;
}

body.tmf-locked .tmf-seal-preview-card {
  border-radius: 4px;
  box-shadow:
    inset 0 0 60px rgba(0, 0, 0, 0.55),
    0 0 30px rgba(158, 58, 66, 0.08);
}

.tmf-seal-preview-card {
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
  height: 188px;
  min-height: 188px;
  max-height: 188px;
  padding: 18px 18px 14px;
  border: 1px solid rgba(120, 95, 55, 0.4);
  background:
    url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.1'/%3E%3C/svg%3E"),
    linear-gradient(168deg, rgba(48, 38, 26, 0.98) 0%, rgba(22, 17, 11, 0.99) 50%, rgba(32, 26, 16, 0.97) 100%);
  box-shadow:
    inset 0 0 50px rgba(0, 0, 0, 0.6),
    inset 0 0 0 1px rgba(201, 162, 39, 0.1),
    0 6px 22px rgba(0, 0, 0, 0.45);
  border-left: 4px solid rgba(90, 122, 106, 0.6);
  transform: rotate(-0.6deg);
  clip-path: polygon(0 2%, 98% 0, 100% 98%, 2% 100%);
  transition: opacity 0.32s ease;
}

.tmf-seal-preview-card.is-whisper {
  border-left-color: rgba(139, 48, 56, 0.85);
}

.tmf-seal-preview-card.is-feature {
  border-left-color: rgba(201, 162, 39, 0.65);
}

.tmf-seal-preview-card.is-fading {
  opacity: 0.2;
}

.tmf-seal-preview-card.is-surge {
  opacity: 0.88;
}

.tmf-seal-preview-card.is-static-burst::before {
  opacity: 0.45;
}

.tmf-seal-preview-card::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.14) 2px,
    rgba(0, 0, 0, 0.14) 3px
  );
  opacity: 0.25;
  mix-blend-mode: multiply;
}

.tmf-seal-preview-card::after {
  content: 'CORRUPTED';
  position: absolute;
  top: 12px;
  right: 10px;
  font-family: 'Special Elite', monospace;
  font-size: 7px;
  letter-spacing: 0.22em;
  color: rgba(107, 40, 48, 0.6);
  transform: rotate(-12deg);
  text-decoration: line-through;
  text-decoration-color: rgba(107, 40, 48, 0.9);
  pointer-events: none;
}

.tmf-seal-preview-tag {
  display: inline-block;
  margin-bottom: 8px;
  padding: 2px 6px;
  min-width: 4.5em;
  font-family: 'Special Elite', monospace;
  font-size: 7px;
  letter-spacing: 0.22em;
  color: rgba(140, 110, 70, 0.6);
  background: rgba(0, 0, 0, 0.35);
  text-shadow: 1px 0 rgba(139, 48, 56, 0.3);
}

.tmf-seal-preview-icon {
  display: block;
  font-size: 26px;
  line-height: 1;
  height: 28px;
  margin-bottom: 10px;
  filter: grayscale(0.9) sepia(0.7) contrast(1.2);
  opacity: 0.48;
}

.tmf-seal-preview-name {
  margin: 0 0 12px;
  min-height: 1.15em;
  font-family: 'Cinzel Decorative', serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(200, 180, 140, 0.8);
  text-shadow: 2px 0 rgba(139, 48, 56, 0.2), -1px 0 rgba(74, 140, 160, 0.15);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.tmf-seal-preview-tease {
  position: relative;
  margin: 0;
  padding: 10px 0 8px;
  height: 72px;
  min-height: 72px;
  max-height: 72px;
  overflow: hidden;
  border-top: 1px dashed rgba(201, 162, 39, 0.15);
}

.tmf-seal-preview-tease::after {
  content: '';
  position: absolute;
  inset: 10px 0 6px;
  pointer-events: none;
  background: repeating-linear-gradient(
    180deg,
    rgba(8, 6, 4, 0.92) 0px,
    rgba(8, 6, 4, 0.92) 5px,
    transparent 5px,
    transparent 9px
  );
  opacity: 0.55;
}

.tmf-seal-preview-tease-inner {
  display: block;
  position: relative;
  z-index: 1;
  height: 100%;
  overflow: hidden;
  font-family: 'Special Elite', 'Courier New', monospace;
  font-size: 13px;
  line-height: 1.7;
  letter-spacing: 0.03em;
  color: rgba(150, 130, 100, 0.78);
  text-shadow: 0 0 1px rgba(0, 0, 0, 0.9);
}

.tmf-seal-preview-lock {
  margin: 10px 0 0;
  min-height: 1.2em;
  font-family: 'Cinzel', serif;
  font-size: 7px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(201, 162, 39, 0.42);
  text-align: center;
}

.tmf-seal-preview-foot {
  margin: 14px 0 0;
  min-height: 2.6em;
  font-family: 'Special Elite', monospace;
  font-size: 7px;
  letter-spacing: 0.14em;
  line-height: 1.6;
  text-transform: uppercase;
  color: rgba(90, 75, 55, 0.72);
  text-align: center;
  overflow: hidden;
}

.tmf-seal-preview-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  height: 20px;
  margin-top: 12px;
  padding-top: 8px;
  border-top: 1px solid rgba(201, 162, 39, 0.08);
}

.tmf-seal-preview-dot {
  width: 16px;
  height: 3px;
  background: rgba(120, 95, 55, 0.3);
  transform: none;
  border-radius: 0;
  transition: background 0.25s ease, width 0.25s ease;
}

.tmf-seal-preview-dot.is-active {
  width: 22px;
  background: rgba(201, 162, 39, 0.55);
}

@media (max-width: 520px) {
  .tmf-seal-preview {
    min-height: 260px;
  }

  .tmf-seal-preview-frame {
    min-height: 276px;
    height: 276px;
    padding: 12px 10px 10px;
  }

  .tmf-seal-preview-card {
    height: 176px;
    min-height: 176px;
    max-height: 176px;
  }

  .tmf-seal-preview-tease-inner {
    font-size: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tmf-seal-preview-card,
  .tmf-seal-preview-frame {
    transition: none;
  }
}
