/* Proofmark Gate: the age panel. Colours and fonts come from --pgt-* custom
   properties a store can set (pgt_vars filter or its own stylesheet). */

.pgt { display: none; }

html.pgt-gated,
html.pgt-gated body { overflow: hidden; }

html.pgt-gated .pgt {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  overflow-y: auto;
  background: var(--pgt-backdrop, rgb(4 8 20 / 0.92));
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.pgt-panel {
  width: 100%;
  max-width: 620px;
  margin: auto;
  padding: 40px 40px 32px;
  border: 1px solid var(--pgt-line, rgb(255 255 255 / 0.12));
  border-radius: var(--pgt-radius, 14px);
  background: var(--pgt-panel, #0b1222);
  color: var(--pgt-ink, #ffffff);
  font-family: var(--pgt-font-body, system-ui, sans-serif);
  box-shadow: 0 30px 80px rgb(0 0 0 / 0.45);
}

.pgt-panel__eyebrow {
  display: block;
  margin: 0 0 12px;
  font-family: var(--pgt-font-head, inherit);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pgt-accent, #e0402a);
}

.pgt-panel__title {
  margin: 0 0 16px;
  font-family: var(--pgt-font-head, inherit);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  line-height: 1.08;
  color: var(--pgt-ink, #ffffff);
}

.pgt-panel__text {
  margin: 0 0 24px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--pgt-muted, rgb(255 255 255 / 0.74));
}

/* The statements are the control: body size, full contrast, each its own target. */
.pgt-panel__checks {
  padding-top: 22px;
  border-top: 1px solid var(--pgt-line, rgb(255 255 255 / 0.12));
}

.pgt-panel__check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-height: 44px;
  margin: 0 0 14px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--pgt-ink, #ffffff);
  cursor: pointer;
}

.pgt-panel__check input {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  accent-color: var(--pgt-accent, #e0402a);
}

.pgt-panel a { color: var(--pgt-link, var(--pgt-accent, #e0402a)); text-decoration: underline; }

.pgt-panel__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 200px;
  min-height: 48px;
  margin-top: 8px;
  padding: 0 28px;
  border: 0;
  border-radius: var(--pgt-button-radius, 999px);
  background: var(--pgt-accent, #e0402a);
  color: var(--pgt-on-accent, #ffffff);
  font: 700 15px/1 var(--pgt-font-body, system-ui, sans-serif);
  cursor: pointer;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.pgt-panel__button:disabled { opacity: 0.4; cursor: not-allowed; }
.pgt-panel__button:not(:disabled):hover { transform: translateY(-1px); }
.pgt-panel__button:focus-visible,
.pgt-panel__check input:focus-visible { outline: 2px solid var(--pgt-accent, #e0402a); outline-offset: 3px; }

.pgt-panel__decline {
  margin: 20px 0 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--pgt-muted, rgb(255 255 255 / 0.62));
}

@media (max-width: 600px) {
  html.pgt-gated .pgt { align-items: flex-start; padding: 16px; }
  .pgt-panel { padding: 28px 20px 24px; }
  .pgt-panel__check input { flex-basis: 22px; width: 22px; height: 22px; }
  .pgt-panel__button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .pgt-panel__button { transition: none; }
}
