/* ===== The 4:20 Plate — popup baked into the globe site ===== */

.plate-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
  font-weight: 700;
  color: #04140c;
  background: var(--accent);
  border-radius: var(--radius-full);
  box-shadow: var(--glow);
  white-space: nowrap;
}
.plate-cta:hover { filter: brightness(1.07); transform: translateY(-1px); }
.plate-cta .hb { font-size: 1rem; line-height: 1; }

/* ===== Modal ===== */
.plate-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
  background: rgba(3, 8, 6, 0.66);
  backdrop-filter: blur(6px);
}
.plate-modal.show { display: flex; }

.plate-dialog {
  position: relative;
  width: min(440px, 100%);
  max-height: 92dvh;
  overflow-y: auto;
  text-align: center;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-8) var(--space-6) var(--space-6);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}
.plate-close {
  position: absolute;
  top: 12px; right: 12px;
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  font-size: 1rem;
}
.plate-close:hover { color: var(--accent); border-color: var(--accent); }

.plate-tag {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--color-text-muted);
}
.plate-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-xl);
  margin-top: var(--space-1);
}

.plate-art {
  width: min(260px, 72%);
  margin: var(--space-5) auto var(--space-4);
  filter: drop-shadow(0 16px 32px rgba(0, 0, 0, 0.5));
}
.plate-art.locked {
  filter: drop-shadow(0 16px 32px rgba(0, 0, 0, 0.5)) grayscale(0.3) opacity(0.9);
}
.plate-art.pop { animation: platePop 0.7s cubic-bezier(0.2, 1.3, 0.4, 1); }
@keyframes platePop {
  0%   { transform: scale(0.7) rotate(-8deg); opacity: 0; }
  60%  { transform: scale(1.05) rotate(2deg); }
  100% { transform: scale(1) rotate(0); opacity: 1; }
}

.plate-status {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: 700;
  font-size: var(--text-sm);
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
}
.plate-status .pdot { width: 9px; height: 9px; border-radius: 50%; background: var(--color-text-faint); }
.plate-status.open { color: #04140c; background: var(--gold); border-color: var(--gold); }
.plate-status.open .pdot { background: #04140c; animation: pulse 1s infinite; }

.plate-clabel {
  margin-top: var(--space-5);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--color-text-muted);
}
.plate-count {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-2xl);
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  line-height: 1.05;
}
.plate-count.open { color: var(--gold); }
.plate-note { font-size: var(--text-xs); color: var(--color-text-faint); margin-top: var(--space-2); }

.plate-buy {
  width: 100%;
  margin-top: var(--space-5);
  padding: var(--space-4);
  font-weight: 700;
  font-size: var(--text-base);
  border-radius: var(--radius-full);
}
.plate-buy.locked {
  background: var(--color-surface-2);
  color: var(--color-text-faint);
  border: 1px solid var(--color-border);
  cursor: not-allowed;
}
.plate-buy.open { background: var(--accent); color: #04140c; box-shadow: var(--glow); }
.plate-buy.open:hover { filter: brightness(1.07); }

.plate-peek {
  display: block;
  margin: var(--space-4) auto 0;
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  text-decoration: underline;
}
.plate-peek:hover { color: var(--accent); }

@media (max-width: 520px) {
  .plate-cta span.lbl { display: none; }
}
