/* ── PCCS0425 Gate + Watermark ── */

/* Lock body when gate is active */
html.pccs-locked,
html.pccs-locked body {
  overflow: hidden !important;
}
html.pccs-locked body > *:not(#pccs-gate):not(script) {
  visibility: hidden !important;
}

/* Fullscreen gate overlay */
#pccs-gate {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background:
    radial-gradient(ellipse at top, rgba(56, 189, 248, 0.08), transparent 60%),
    radial-gradient(ellipse at bottom, rgba(139, 92, 246, 0.06), transparent 60%),
    #0a0e17;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: #cdd6f4;
}

.pccs-gate-card {
  width: 100%;
  max-width: 520px;
  background: rgba(17, 22, 34, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: 14px;
  padding: 2.25rem 2rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}

.pccs-gate-badge {
  display: inline-block;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 4px;
  background: rgba(56, 189, 248, 0.08);
  margin-bottom: 1.25rem;
  text-transform: uppercase;
}

.pccs-gate-card h1 {
  font-size: 1.65rem;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 0.85rem;
  color: #f1f5f9;
}

.pccs-gate-card p {
  font-size: 0.95rem;
  line-height: 1.55;
  color: #a1a1aa;
  margin: 0 0 1rem;
}

.pccs-gate-card p strong {
  color: #e2e8f0;
  font-weight: 600;
}

.pccs-gate-sub {
  font-size: 0.82rem !important;
  color: #64748b !important;
  margin-top: 1.25rem !important;
  margin-bottom: 0 !important;
  padding-top: 1rem;
  border-top: 1px solid rgba(148, 163, 184, 0.1);
}

#pccs-name-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

#pccs-name-input {
  width: 100%;
  padding: 0.85rem 1rem;
  font-size: 1rem;
  font-family: inherit;
  color: #f1f5f9;
  background: rgba(10, 14, 23, 0.6);
  border: 1px solid rgba(99, 102, 241, 0.35);
  border-radius: 8px;
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease;
  box-sizing: border-box;
}

#pccs-name-input::placeholder { color: #475569; }
#pccs-name-input:focus {
  border-color: #38bdf8;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15);
}

#pccs-name-form button {
  padding: 0.85rem 1.25rem;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: inherit;
  color: #0a0e17;
  background: linear-gradient(135deg, #38bdf8, #818cf8);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

#pccs-name-form button:hover {
  filter: brightness(1.08);
  box-shadow: 0 8px 24px rgba(56, 189, 248, 0.25);
}

#pccs-name-form button:active {
  transform: translateY(1px);
}

.pccs-expired .pccs-gate-badge {
  color: #f87171;
  border-color: rgba(248, 113, 113, 0.4);
  background: rgba(248, 113, 113, 0.08);
}

/* ── Watermark overlay ── */
#pccs-watermark {
  position: fixed;
  inset: 0;
  z-index: 99998;
  pointer-events: none;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-auto-rows: minmax(140px, 1fr);
  padding: 40px 0;
  gap: 0;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
}

#pccs-watermark .pccs-wm-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.12);
  transform: rotate(-28deg);
  white-space: nowrap;
  text-shadow: 0 0 1px rgba(0, 0, 0, 0.35);
}

@media (max-width: 768px) {
  #pccs-watermark {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: minmax(120px, 1fr);
  }
  #pccs-watermark .pccs-wm-cell { font-size: 11px; }
  .pccs-gate-card { padding: 1.75rem 1.25rem; }
  .pccs-gate-card h1 { font-size: 1.35rem; }
}

@media print {
  #pccs-watermark { display: none; }
  #pccs-gate { display: none; }
}
