/* Countdown seal — cryptic sub-seal channel (classified dossier tone) */

/* ── Sub-seal annex (below countdown) ── */
.tmf-seal-command-deck {
  position: relative;
  width: min(100%, 500px);
  margin: 20px auto 0;
  padding: 22px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
  border-radius: var(--sg-radius, 6px);
  border: 1px solid rgba(200, 90, 98, 0.18);
  background:
    linear-gradient(180deg, rgba(158, 58, 66, 0.06) 0%, transparent 28%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.55) 0%, transparent 18%),
    rgba(6, 5, 4, 0.88);
  box-shadow:
    inset 0 0 0 1px rgba(212, 175, 55, 0.1),
    inset 0 0 40px rgba(0, 0, 0, 0.5),
    0 12px 32px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}

.tmf-seal-command-deck::before {
  content: '';
  position: absolute;
  inset: 8px;
  border: 1px dashed rgba(212, 175, 55, 0.12);
  border-radius: 4px;
  pointer-events: none;
}

.tmf-seal-command-deck::after {
  content: '⟨ SUB-SEAL CHANNEL · PARTIAL READ ⟩';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  padding: 5px 12px 7px;
  font-family: 'Special Elite', monospace;
  font-size: 6px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(200, 120, 110, 0.65);
  white-space: nowrap;
  background: rgba(0, 0, 0, 0.55);
  border-bottom: 1px solid rgba(158, 58, 66, 0.25);
}

/* ── Cipher breach meter ── */
.tmf-vault-progress {
  position: relative;
  margin: 8px 0 0;
  padding: 12px 12px 10px;
  border: 1px solid rgba(212, 175, 55, 0.14);
  border-left: 2px solid rgba(200, 90, 98, 0.45);
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.42);
}

.tmf-vault-progress-aura {
  display: none;
}

.tmf-vault-progress-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.tmf-vault-progress-label {
  font-family: 'Special Elite', monospace;
  font-size: 8px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: rgba(200, 90, 98, 0.88);
}

.tmf-vault-progress-pct {
  font-family: 'Special Elite', monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: rgba(212, 175, 55, 0.75);
  font-variant-numeric: tabular-nums;
}

.tmf-vault-progress-pct::before {
  content: 'Σ ';
  opacity: 0.55;
}

.tmf-vault-progress-track {
  height: 5px;
  border-radius: 2px;
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.05);
  overflow: hidden;
}

.tmf-vault-progress-fill {
  height: 100%;
  width: 0%;
  border-radius: 1px;
  background: linear-gradient(
    90deg,
    rgba(120, 30, 38, 0.9) 0%,
    rgba(158, 58, 66, 0.95) 25%,
    rgba(180, 140, 60, 0.95) 70%,
    rgba(212, 175, 55, 1) 100%
  );
  box-shadow: 0 0 8px rgba(158, 58, 66, 0.35);
  transition: width 0.7s ease;
}

.tmf-vault-progress-shine {
  display: none;
}

.tmf-vault-progress-note {
  margin: 9px 0 0;
  padding: 0;
  border: none;
  font-family: 'IM Fell English', 'EB Garamond', serif;
  font-size: 13px;
  line-height: 1.45;
  color: rgba(175, 155, 125, 0.82);
  font-style: italic;
}

.tmf-vault-progress-note::before {
  content: '▸ ';
  font-family: 'Special Elite', monospace;
  font-style: normal;
  color: rgba(200, 90, 98, 0.5);
  font-size: 8px;
}

/* ── External tap (Mojang wire) ── */
.tmf-seal-wire {
  display: block;
  padding: 10px 12px 10px 14px;
  border: 1px solid rgba(212, 175, 55, 0.14);
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.38);
  transition: opacity 0.25s ease;
}

.tmf-seal-wire[hidden] {
  display: none !important;
}

.tmf-seal-wire.is-switching {
  opacity: 0.45;
}

.tmf-seal-wire-beacon {
  display: none;
}

.tmf-seal-wire-main {
  min-width: 0;
}

.tmf-seal-wire-tag {
  display: block;
  margin-bottom: 6px;
  font-family: 'Special Elite', monospace;
  font-size: 7px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(212, 175, 55, 0.5);
}

.tmf-seal-wire-tag::before {
  content: '⌁ ';
  color: rgba(200, 90, 98, 0.65);
}

.tmf-seal-wire-body {
  margin: 0;
}

.tmf-seal-wire-link {
  display: block;
  font-family: 'EB Garamond', serif;
  font-size: 14px;
  line-height: 1.4;
  color: rgba(200, 185, 160, 0.92);
  text-decoration: none;
  border-bottom: 1px dotted rgba(212, 175, 55, 0.28);
}

.tmf-seal-wire-link:hover {
  color: rgba(240, 230, 210, 0.98);
  border-bottom-style: solid;
  border-color: rgba(200, 90, 98, 0.45);
}

.tmf-seal-wire-src {
  display: block;
  margin-top: 6px;
  font-family: 'Special Elite', monospace;
  font-size: 6px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(110, 95, 80, 0.75);
}

.tmf-seal-wire-src::before {
  content: 'SRC·';
  color: rgba(158, 58, 66, 0.55);
}

/* ── Redacted manifest lines ── */
.tmf-seal-teasers {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tmf-seal-teaser-card {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 8px 10px;
  border: 1px solid rgba(212, 175, 55, 0.1);
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.32);
}

.tmf-seal-teaser-card:hover {
  border-color: rgba(212, 175, 55, 0.22);
  background: rgba(0, 0, 0, 0.42);
}

.tmf-seal-teaser-glyph {
  font-family: 'Special Elite', monospace;
  font-size: 10px;
  letter-spacing: 0.08em;
  color: rgba(200, 90, 98, 0.7);
  opacity: 0.85;
}

.tmf-seal-teaser-text {
  font-family: 'Special Elite', monospace;
  font-size: 7px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(155, 135, 105, 0.9);
  line-height: 1.4;
}

.tmf-seal-teaser-card:nth-child(1) .tmf-seal-teaser-text::after {
  content: ' · LOCKED';
  color: rgba(110, 95, 80, 0.55);
}

.tmf-seal-teaser-card:nth-child(2) .tmf-seal-teaser-text::after {
  content: ' · SEALED';
  color: rgba(110, 95, 80, 0.55);
}

.tmf-seal-teaser-card:nth-child(3) .tmf-seal-teaser-text::after {
  content: ' · OPEN';
  color: rgba(94, 207, 154, 0.45);
}

/* ── Annex actions (stamp style) ── */
.tmf-seal-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 4px 0 0;
  padding-top: 8px;
  border-top: 1px solid rgba(212, 175, 55, 0.1);
}

.tmf-seal-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 34px;
  margin: 0;
  padding: 8px 14px;
  font-family: 'Special Elite', monospace;
  font-size: 7px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.tmf-seal-action-icon {
  display: none;
}

.tmf-seal-action--primary {
  color: rgba(255, 210, 200, 0.92);
  background: rgba(90, 20, 28, 0.55);
  border: 1px solid rgba(200, 90, 98, 0.4);
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.4);
}

.tmf-seal-action--primary:hover {
  background: rgba(120, 30, 38, 0.65);
  border-color: rgba(220, 120, 110, 0.55);
}

.tmf-seal-action--ghost {
  color: rgba(175, 155, 120, 0.88);
  background: transparent;
  border: 1px dashed rgba(212, 175, 55, 0.28);
}

.tmf-seal-action--ghost:hover {
  color: rgba(212, 175, 55, 0.9);
  border-style: solid;
  background: rgba(0, 0, 0, 0.35);
}

.tmf-seal-action.is-copied {
  color: rgba(160, 220, 180, 0.9);
  border-color: rgba(94, 207, 154, 0.35);
  border-style: solid;
}

@media (max-width: 520px) {
  .tmf-seal-command-deck::after {
    font-size: 5px;
    letter-spacing: 0.14em;
    max-width: 96%;
    white-space: normal;
    text-align: center;
    line-height: 1.35;
  }

  .tmf-seal-actions {
    flex-direction: column;
  }

  .tmf-seal-action {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tmf-vault-progress-fill,
  .tmf-seal-wire {
    transition: none;
  }
}
