/* =========================================================
   MKM Lodge — Task 26.3 Ceremonial Seal (Variant A)
   Task 26.4 — final refinement (contrast / chrome only)
   Scoped to Convocation + Meeting Location modals only.
   Eye: production mysteryPulse + additive ring spin (unchanged motion).
   ========================================================= */

/* —— Eye: +~15–20% gold contrast, no neon —— */
#location-modal .mystery-icon {
  width: 100%;
  height: 100%;
  animation: mysteryPulse 3s ease-in-out infinite;
  transform-origin: 50% 50%;
  filter:
    drop-shadow(0 0 8px rgba(184, 154, 89, 0.22))
    contrast(1.14)
    saturate(1.06);
}

@keyframes mysteryPulse {
  0%, 100% { opacity: 0.68; transform: scale(1); }
  50% { opacity: 0.96; transform: scale(1.05); }
}

#location-modal .mystery-ring-spin {
  transform-origin: 50px 50px;
  animation: mysteryRingSpin 28s linear infinite;
  opacity: 0.42; /* was inline ~0.32 — ~+30% presence without neon */
}
#location-modal .mystery-ring-spin-rev {
  transform-origin: 50px 50px;
  animation: mysteryRingSpinRev 40s linear infinite;
  opacity: 0.28; /* was inline ~0.22 */
}
@keyframes mysteryRingSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes mysteryRingSpinRev {
  from { transform: rotate(360deg); }
  to { transform: rotate(0deg); }
}

@media (prefers-reduced-motion: reduce) {
  #location-modal .mystery-icon,
  #location-modal .mystery-ring-spin,
  #location-modal .mystery-ring-spin-rev {
    animation: none !important;
  }
  #location-modal .mystery-icon {
    opacity: 0.85;
    transform: none;
  }
}

/* —— Modal chrome (A) —— */
#convocation-modal .modal-container,
#location-modal .modal-container.location-modal-container {
  max-width: 560px;
  border-radius: 18px;
  border: 1px solid rgba(212, 175, 85, 0.28);
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(212, 175, 85, 0.08), transparent 55%),
    linear-gradient(168deg, #16181e 0%, #101218 50%, #0c0d11 100%);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.55);
}

#convocation-modal .modal-header,
#location-modal.tcs-seal-open .modal-header {
  border-bottom: 1px solid rgba(212, 175, 85, 0.2);
  background: transparent;
}

#convocation-modal .modal-title,
#location-modal.tcs-seal-open .modal-title {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 400;
  letter-spacing: 0.08em;
  font-size: 18px;
}

#convocation-modal .modal-content,
#location-modal.tcs-seal-open .modal-content {
  padding: 28px 32px 32px;
}

@media (max-width: 520px) {
  #convocation-modal .modal-content,
  #location-modal.tcs-seal-open .modal-content {
    padding: 22px 18px 24px;
  }
}

/* —— Sealed Location (A) —— */
.tcs-seal {
  text-align: center;
}

.tcs-seal-kicker {
  margin: 0 0 10px;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(212, 175, 85, 0.78);
  font-weight: 500;
}

.tcs-seal-title {
  margin: 0 0 28px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(28px, 5vw, 38px);
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1.15;
  color: #f3eee0;
}

.tcs-seal-eye {
  width: 132px;
  height: 132px;
  margin: 0 auto 22px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tcs-seal-eye::before {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 1px solid rgba(184, 154, 89, 0.28);
  pointer-events: none;
}

.tcs-seal-status {
  margin: 0 0 12px;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #d4af37;
  font-weight: 600;
}

.tcs-seal-copy {
  margin: 0 auto 28px;
  max-width: 38ch;
  font-size: 14px;
  line-height: 1.65;
  color: rgba(210, 204, 188, 0.68);
}

.tcs-seal-timer {
  margin: 0 auto 22px;
}

/* Soften legacy .location-unavailable-time chrome from desktop-new */
#location-modal .tcs-seal-timer.location-unavailable-time {
  background: transparent;
  border: 1px solid rgba(184, 154, 89, 0.18);
  border-radius: 12px;
  box-shadow: none;
  padding: 14px 16px 12px;
  display: block;
  overflow: visible;
}
#location-modal .tcs-seal-timer.location-unavailable-time::before {
  content: none;
  display: none;
  animation: none;
}

.tcs-seal-timer-label {
  margin: 0 0 14px;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(210, 204, 188, 0.48);
}

.tcs-seal-countdown {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 8px;
}

.tcs-seal-unit {
  min-width: 72px;
}

/* Lighten unit “cards” from .time-unit */
#location-modal .tcs-seal-unit.time-unit {
  background: transparent;
  border: none;
  box-shadow: none;
  border-radius: 0;
  padding: 4px 6px 2px;
  min-width: 64px;
}

.tcs-seal-value {
  font-family: "SF Mono", ui-monospace, Menlo, Consolas, monospace;
  font-variant-numeric: tabular-nums;
  font-size: clamp(28px, 6vw, 36px);
  font-weight: 600;
  color: #c9a84c; /* antique gold, not neon yellow */
  line-height: 1;
  letter-spacing: 0.02em;
  text-shadow: none;
}

.tcs-seal-unit-label {
  margin-top: 8px;
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(210, 204, 188, 0.48);
}

.tcs-seal-sep {
  font-family: "SF Mono", ui-monospace, monospace;
  font-size: 22px;
  color: rgba(212, 175, 55, 0.4);
  padding-top: 4px;
}

.tcs-seal-reveal {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(210, 204, 188, 0.68);
  padding-top: 18px;
  border-top: 1px solid rgba(212, 175, 85, 0.2);
}

/* —— Convocation invitation (A) —— */
.tcs-invite-kicker {
  margin: 0 0 8px;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(212, 175, 85, 0.75);
}

.tcs-invite-top {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(212, 175, 85, 0.22);
}

.tcs-invite-badge {
  display: inline-block;
  padding: 6px 12px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  color: #e8dfc8;
  background: rgba(212, 175, 85, 0.1);
  border: 1px solid rgba(184, 154, 89, 0.55);
  border-radius: 6px;
  box-shadow: none;
}

.tcs-invite-badge.is-inactive {
  background: transparent;
  color: rgba(210, 204, 188, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.tcs-invite-attended {
  font-size: 13px;
  color: rgba(210, 204, 188, 0.68);
}
.tcs-invite-attended strong {
  color: #f3eee0;
  font-weight: 600;
}

.tcs-invite-meeting + .tcs-invite-meeting {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid rgba(212, 175, 85, 0.16);
}

.tcs-invite-type {
  margin: 0 0 6px;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #d4af37;
  font-weight: 600;
}

.tcs-invite-when {
  margin: 0 0 4px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 22px;
  color: #f3eee0;
  line-height: 1.25;
}

.tcs-invite-place {
  margin: 0 0 16px;
  font-size: 14px;
  color: rgba(210, 204, 188, 0.68);
}

.tcs-invite-note {
  margin: 0 0 18px;
  padding: 14px 16px;
  font-size: 13px;
  line-height: 1.55;
  color: rgba(210, 204, 188, 0.78);
  border-left: 1px solid rgba(212, 175, 85, 0.28);
  background: rgba(212, 175, 85, 0.04);
}

.tcs-invite-note-main {
  display: block;
  color: rgba(243, 238, 224, 0.88);
}

.tcs-invite-note-para {
  display: block;
  color: rgba(243, 238, 224, 0.88);
  margin: 0 0 10px;
}
.tcs-invite-note-para:last-of-type {
  margin-bottom: 0;
}

.tcs-invite-note-ref {
  display: block;
  margin-top: 8px;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: rgba(210, 204, 188, 0.48);
  font-family: "SF Mono", ui-monospace, Menlo, Consolas, monospace;
}

.tcs-invite-loc-sealed {
  margin: 0;
  padding: 14px 16px;
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(210, 204, 188, 0.55);
  border: 1px solid rgba(184, 154, 89, 0.28);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.22);
}

.tcs-invite-id {
  margin: 0 0 18px;
  font-family: "SF Mono", ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: rgba(210, 204, 188, 0.48);
}

.tcs-invite-revision {
  margin: 0 0 10px;
  font-size: 12px;
  color: rgba(210, 204, 188, 0.55);
  font-style: italic;
}

#convocation-modal .tcs-invite-loc.convocation-location-btn {
  appearance: none;
  width: 100%;
  margin: 0;
  border: 1px solid rgba(184, 154, 89, 0.55);
  background: rgba(212, 175, 85, 0.04);
  color: #f3eee0;
  padding: 14px 16px;
  border-radius: 10px;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  display: block;
  transition: border-color 180ms ease, background 180ms ease, color 180ms ease;
}

#convocation-modal .tcs-invite-loc.convocation-location-btn:hover,
#convocation-modal .tcs-invite-loc.convocation-location-btn:focus-visible {
  border-color: rgba(201, 168, 76, 0.85);
  background: rgba(212, 175, 85, 0.09);
  color: #f8f1e2;
  outline: none;
  box-shadow: 0 0 0 1px rgba(184, 154, 89, 0.2);
}

/* Hide legacy compass icon button chrome inside ceremonial CTA */
#convocation-modal .tcs-invite-loc.convocation-location-btn svg {
  display: none;
}

body.tcs-modal-lock {
  overflow: hidden;
}
