/* Floofgen Games – the 18+ question for the whole site (see age-gate.js).
   Own colour names (--ag-…), same colours as the rest of the site. */
:root {
  --ag-bg: #fbf7f2;
  --ag-surface: #ffffff;
  --ag-surface-2: #f3ece3;
  --ag-text: #2b2420;
  --ag-muted: #6f655d;
  --ag-border: #e4d9cc;
  --ag-accent: #c8642c;
  --ag-accent-text: #ffffff;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ag-bg: #1b1715;
    --ag-surface: #26201d;
    --ag-surface-2: #322a26;
    --ag-text: #f2ebe4;
    --ag-muted: #b3a79d;
    --ag-border: #41372f;
    --ag-accent: #e07a3f;
    --ag-accent-text: #1b1715;
  }
}

/* until the answer is "yes", only the question is visible */
html.age-locked body > :not(.age-gate) { display: none !important; }

.age-gate {
  position: fixed;
  inset: 0;
  z-index: 1000;
  overflow-y: auto;
  display: grid;
  place-items: center;
  padding: 24px 16px;
  background: var(--ag-bg);
  color: var(--ag-text);
  font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

.age-gate-inner {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.age-gate-inner.age-gate-right { flex-direction: row-reverse; }

/* mascot as tall as the question box */
.age-gate-mascot {
  display: block;
  flex-shrink: 0;
  height: 400px;
  width: auto;
}

.age-gate-card {
  box-sizing: border-box;
  width: min(420px, 100%);
  min-height: 400px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 32px 28px;
  text-align: center;
  background: var(--ag-surface);
  border: 2px solid var(--ag-border);
  border-radius: 16px;
}
.age-gate-kicker {
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ag-muted);
}
.age-gate-card h2 { margin: 0 0 12px; font-size: 28px; line-height: 1.2; }
.age-gate-text { margin: 0; color: var(--ag-muted); }

.age-gate-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 28px;
}
.age-gate-actions button {
  font: inherit;
  cursor: pointer;
  border-radius: 999px;
  border: 1px solid var(--ag-border);
  background: var(--ag-surface-2);
  color: var(--ag-text);
  padding: 10px 22px;
  transition: transform .15s ease, filter .15s ease;
}
.age-gate-actions .age-gate-yes {
  background: var(--ag-accent);
  border-color: var(--ag-accent);
  color: var(--ag-accent-text);
  font-weight: 700;
  font-size: 17px;
  padding: 10px 26px;
}
.age-gate-actions button:hover { transform: scale(1.04); filter: brightness(1.06); }
.age-gate-actions button:focus-visible { outline: 3px solid var(--ag-accent); outline-offset: 3px; }

/* phone: mascot above the box */
@media (max-width: 680px) {
  .age-gate-inner, .age-gate-inner.age-gate-right { flex-direction: column; gap: 0; }
  .age-gate-mascot { height: 240px; margin-bottom: -2px; }
  .age-gate-card { min-height: 0; padding: 24px 20px; }
  .age-gate-card h2 { font-size: 24px; }
}
