/* The Minecraft Files — pre-unseal gate */

body.tmf-locked {
  overflow: hidden;
  height: 100vh;
}

body.tmf-locked .edition-ribbon,
body.tmf-locked .hero,
body.tmf-locked .realm-nav,
body.tmf-locked .wrapper,
body.tmf-locked footer,
body.tmf-locked .discovery-hud,
body.tmf-locked .cipher-rail,
body.tmf-locked .archive-wax,
body.tmf-locked .corner-rune,
body.tmf-locked .archive-frame,
body.tmf-locked .scroll-progress {
  visibility: hidden;
  pointer-events: none;
}

.tmf-seal {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  cursor: default;
  background: transparent;
}

.tmf-seal::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 60% at 50% 40%, rgba(201, 162, 39, 0.08), transparent 70%),
    linear-gradient(165deg, #0a0907 0%, #14110e 45%, #0e0c0a 100%);
}

/* Keep site atmosphere visible behind the seal */
body.tmf-locked #ambient-mesh,
body.tmf-locked .paper-grain,
body.tmf-locked .vignette {
  visibility: visible;
  pointer-events: none;
}

/* Film is reparented into #tmf-seal while locked (see countdown.js) */
.tmf-seal > .film-stock {
  position: fixed;
  inset: 0;
  z-index: 1;
  visibility: visible;
  pointer-events: none;
}

.tmf-seal-inner {
  position: relative;
  z-index: 2;
}

.tmf-seal-hidden,
#tmf-seal[hidden] {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
  opacity: 0 !important;
}

.tmf-seal-inner {
  text-align: center;
  max-width: 520px;
  padding: 40px 32px 36px;
  border: 1px solid rgba(201, 162, 39, 0.28);
  background: rgba(12, 10, 8, 0.92);
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.65),
    inset 0 0 0 1px rgba(201, 162, 39, 0.06);
}

.tmf-seal-kicker {
  font-family: 'Special Elite', monospace;
  font-size: 10px;
  letter-spacing: 0.35em;
  color: rgba(107, 40, 48, 0.85);
  margin-bottom: 14px;
}

/* Builder bypass target — must look inert (no pointer, no hover change) */
.tmf-kicker-plain,
.tmf-kicker-plain:hover,
.tmf-kicker-plain:focus,
.tmf-kicker-plain:active {
  cursor: default !important;
  color: inherit;
  outline: none;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.tmf-seal-title {
  font-family: 'Cinzel Decorative', serif;
  font-size: clamp(28px, 6vw, 42px);
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #c9a227;
  line-height: 1.15;
  margin-bottom: 10px;
}

.tmf-seal-date {
  font-family: 'Cinzel', serif;
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(201, 162, 39, 0.55);
  margin-bottom: 18px;
}

.tmf-seal-lead {
  font-family: 'IM Fell English', 'EB Garamond', serif;
  font-size: 16px;
  line-height: 1.6;
  color: #a89880;
  margin-bottom: 28px;
}

.tmf-countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.tmf-countdown-unit {
  padding: 14px 8px 10px;
  border: 1px solid rgba(201, 162, 39, 0.2);
  background: rgba(0, 0, 0, 0.35);
}

.tmf-countdown-unit span {
  display: block;
  font-family: 'Cinzel Decorative', serif;
  font-size: clamp(22px, 5vw, 32px);
  color: #e8dcc8;
  line-height: 1.1;
}

.tmf-countdown-unit small {
  display: block;
  margin-top: 6px;
  font-family: 'Cinzel', serif;
  font-size: 8px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #6a5a48;
}

.tmf-seal-credit {
  margin-top: 22px;
  margin-bottom: 0;
  font-family: 'Special Elite', monospace;
  font-size: 9px;
  letter-spacing: 0.18em;
  color: rgba(201, 162, 39, 0.62);
  text-transform: uppercase;
}

.tmf-credit-glitch {
  position: relative;
  text-align: center;
}
.tmf-credit-glitch-text {
  position: relative;
  display: inline-block;
  z-index: 1;
}
.tmf-credit-glitch.is-surge .tmf-credit-glitch-text {
  animation: tmfCreditSkew 0.14s steps(2, end) 2;
  text-shadow:
    2px 0 rgba(180, 48, 56, 0.75),
    -2px 0 rgba(74, 140, 160, 0.55);
}
.tmf-credit-glitch.is-surge::before,
.tmf-credit-glitch.is-surge::after {
  content: attr(data-glitch);
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  width: max-content;
  max-width: 100%;
  overflow: hidden;
  pointer-events: none;
  opacity: 0.65;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
}
.tmf-credit-glitch.is-surge::before {
  color: rgba(180, 48, 56, 0.9);
  clip-path: inset(0 0 55% 0);
  transform: translateX(calc(-50% - 3px));
}
.tmf-credit-glitch.is-surge::after {
  color: rgba(74, 140, 160, 0.85);
  clip-path: inset(45% 0 0 0);
  transform: translateX(calc(-50% + 3px));
}
@keyframes tmfCreditSkew {
  0% { transform: translate(0); }
  40% { transform: translate(-4px, 1px) skewX(-4deg); }
  70% { transform: translate(3px, -1px) skewX(3deg); }
  100% { transform: translate(0); }
}

.folio-credit-glitch {
  min-height: 1.4em;
}
.tmf-seal-note {
  margin-top: 10px;
  font-family: 'Special Elite', monospace;
  font-size: 9px;
  letter-spacing: 0.14em;
  color: rgba(201, 162, 39, 0.35);
  text-align: center;
}
.tmf-seal-note.tmf-credit-glitch .tmf-credit-glitch-text {
  color: rgba(201, 162, 39, 0.38);
}

@media (max-width: 420px) {
  .tmf-countdown {
    grid-template-columns: repeat(2, 1fr);
  }
}
