@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600&family=Space+Grotesk:wght@400;500;600;700&display=swap");

/* Age gate — design baseline for Blockeco entry experience */

body.age-locked {
  overflow: hidden !important;
  cursor: auto !important;
}
body.age-locked > :not(#becAgeGate) {
  visibility: hidden !important;
  pointer-events: none !important;
}
body.age-locked,
body.age-locked a,
body.age-locked button {
  cursor: auto !important;
}
body.age-locked .bec-age-choice,
body.age-locked .bec-age-retry,
body.age-locked .bec-age-leave,
body.age-locked a {
  cursor: pointer !important;
}

#becAgeGate {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: grid;
  place-items: center;
  padding: 24px;
  background: #03070f;
  color: #fff;
  font-family: var(--font-body, "DM Sans", sans-serif);
  isolation: isolate;
}

#becAgeGate[hidden] {
  display: none !important;
}

.bec-age-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.bec-age-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 212, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 212, 255, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 45%, #000 10%, transparent 72%);
  animation: becGridDrift 28s linear infinite;
}
.bec-age-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.55;
}
.bec-age-orb-a {
  width: min(55vw, 480px);
  height: min(55vw, 480px);
  background: radial-gradient(circle, rgba(0, 212, 255, 0.35), transparent 68%);
  top: -12%;
  left: -8%;
  animation: becOrbFloat 9s ease-in-out infinite;
}
.bec-age-orb-b {
  width: min(45vw, 380px);
  height: min(45vw, 380px);
  background: radial-gradient(circle, rgba(26, 111, 255, 0.4), transparent 70%);
  bottom: -10%;
  right: -6%;
  animation: becOrbFloat 11s ease-in-out infinite reverse;
}
@keyframes becGridDrift {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-56px, -56px, 0); }
}
@keyframes becOrbFloat {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(18px, -22px, 0) scale(1.06); }
}

.bec-age-shell {
  position: relative;
  z-index: 1;
  width: min(520px, 100%);
  transform-origin: center;
  animation: becGateIn 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes becGateIn {
  from { opacity: 0; transform: translateY(28px) scale(0.96); filter: blur(8px); }
  to { opacity: 1; transform: none; filter: none; }
}

.bec-age-card {
  position: relative;
  border-radius: 28px;
  padding: 36px 32px 28px;
  background:
    linear-gradient(165deg, rgba(14, 24, 40, 0.92) 0%, rgba(5, 10, 20, 0.96) 100%);
  border: 1px solid rgba(0, 212, 255, 0.18);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.03) inset,
    0 30px 80px rgba(0, 0, 0, 0.55),
    0 0 60px rgba(0, 212, 255, 0.08);
  overflow: hidden;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}
.bec-age-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.7), transparent);
}
.bec-age-scan {
  position: absolute;
  left: 8%;
  right: 8%;
  height: 120px;
  top: -40px;
  background: linear-gradient(180deg, transparent, rgba(0, 212, 255, 0.08), transparent);
  animation: becScan 3.6s ease-in-out infinite;
  pointer-events: none;
}
@keyframes becScan {
  0%, 100% { transform: translateY(0); opacity: 0.2; }
  50% { transform: translateY(220px); opacity: 0.55; }
}

.bec-age-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}
.bec-age-mark {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #00d4ff, #1a6fff);
  color: #050a14;
  box-shadow: 0 8px 24px rgba(0, 212, 255, 0.3);
}
.bec-age-brand-text {
  display: grid;
  gap: 2px;
}
.bec-age-brand-text strong {
  font-family: var(--font-display, "Space Grotesk", sans-serif);
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}
.bec-age-brand-text span {
  font-family: var(--font-mono, "JetBrains Mono", monospace);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #00d4ff;
}

.bec-age-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono, "JetBrains Mono", monospace);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #00d4ff;
  margin-bottom: 14px;
}
.bec-age-kicker i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #00e676;
  box-shadow: 0 0 0 0 rgba(0, 230, 118, 0.45);
  animation: becPulse 2s infinite;
}
@keyframes becPulse {
  0% { box-shadow: 0 0 0 0 rgba(0, 230, 118, 0.45); }
  70% { box-shadow: 0 0 0 10px rgba(0, 230, 118, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 230, 118, 0); }
}

.bec-age-card h2 {
  font-family: var(--font-display, "Space Grotesk", sans-serif);
  font-weight: 700;
  font-size: clamp(1.85rem, 4vw, 2.35rem);
  letter-spacing: -0.035em;
  line-height: 1.12;
  margin: 0 0 14px;
}
.bec-age-card h2 em {
  font-style: normal;
  background: linear-gradient(135deg, #fff 0%, #00d4ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.bec-age-copy {
  color: #94a3b8;
  font-size: 0.98rem;
  line-height: 1.65;
  margin: 0 0 28px;
}
.bec-age-copy a {
  color: #00d4ff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.bec-age-choices {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.bec-age-choice {
  appearance: none;
  border: 1px solid rgba(0, 212, 255, 0.18);
  background: rgba(255, 255, 255, 0.025);
  color: #fff;
  border-radius: 16px;
  padding: 16px 22px;
  width: min(100%, 360px);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  font: inherit;
}
.bec-age-choice:hover,
.bec-age-choice:focus-visible {
  outline: none;
  transform: translateY(-2px);
  border-color: rgba(0, 212, 255, 0.45);
  background: rgba(0, 212, 255, 0.06);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}
.bec-age-choice:active { transform: translateY(0) scale(0.99); }
.bec-age-choice-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  line-height: 0;
  background: rgba(0, 212, 255, 0.1);
  color: #00d4ff;
}
.bec-age-choice-icon svg {
  display: block;
  margin: 0;
}
.bec-age-choice.is-exit .bec-age-choice-icon {
  background: rgba(248, 113, 113, 0.12);
  color: #f87171;
}
.bec-age-choice strong {
  display: block;
  font-family: var(--font-display, "Space Grotesk", sans-serif);
  font-size: 1rem;
  margin-bottom: 2px;
}
.bec-age-choice > span:not(.bec-age-choice-icon) {
  display: grid;
  align-content: center;
}
.bec-age-choice > span:not(.bec-age-choice-icon) > span {
  display: block;
  font-size: 0.82rem;
  color: #64748b;
}
.bec-age-choice svg.chev {
  display: none;
}
.bec-age-choice.is-enter:hover {
  border-color: rgba(0, 212, 255, 0.55);
  box-shadow: 0 12px 36px rgba(0, 212, 255, 0.12);
}
.bec-age-choice.is-exit:hover {
  border-color: rgba(248, 113, 113, 0.45);
}

.bec-age-consent {
  font-size: 0.78rem;
  color: #64748b;
  line-height: 1.5;
  text-align: center;
}
.bec-age-consent a { color: #94a3b8; }

/* Unlock sequence */
.bec-age-shell.is-unlocking .bec-age-card {
  animation: becUnlock 0.85s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes becUnlock {
  0% { transform: scale(1); opacity: 1; filter: blur(0); }
  45% { transform: scale(1.03); filter: blur(0); box-shadow: 0 0 80px rgba(0, 212, 255, 0.35); }
  100% { transform: scale(1.08); opacity: 0; filter: blur(12px); }
}
#becAgeGate.is-exit .bec-age-shell {
  animation: becGateOut 0.45s ease forwards;
}
@keyframes becGateOut {
  to { opacity: 0; transform: translateY(16px) scale(0.98); }
}

/* Denied state */
.bec-age-denied {
  display: none;
  text-align: center;
  padding: 12px 4px 4px;
}
.bec-age-shell.is-denied .bec-age-main { display: none; }
.bec-age-shell.is-denied .bec-age-denied { display: block; animation: becGateIn 0.55s ease both; }
.bec-age-lock {
  width: 72px;
  height: 72px;
  margin: 8px auto 22px;
  border-radius: 22px;
  display: grid;
  place-items: center;
  background: rgba(248, 113, 113, 0.1);
  border: 1px solid rgba(248, 113, 113, 0.3);
  color: #f87171;
}
.bec-age-denied h3 {
  font-family: var(--font-display, "Space Grotesk", sans-serif);
  font-size: 1.6rem;
  letter-spacing: -0.03em;
  margin: 0 0 10px;
}
.bec-age-denied p {
  color: #94a3b8;
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0 0 22px;
}
.bec-age-denied-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.bec-age-denied .bec-age-retry,
.bec-age-denied .bec-age-leave {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 220px;
  padding: 14px 24px;
  border-radius: 12px;
  font-family: var(--font-display, "Space Grotesk", sans-serif);
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}
.bec-age-denied .bec-age-retry {
  border: 1px solid rgba(0, 212, 255, 0.4);
  background: rgba(0, 212, 255, 0.12);
  color: #e0f7ff;
}
.bec-age-denied .bec-age-retry:hover {
  background: rgba(0, 212, 255, 0.2);
  transform: translateY(-1px);
}
.bec-age-denied .bec-age-leave {
  border: 1px solid rgba(248, 113, 113, 0.35);
  background: rgba(248, 113, 113, 0.1);
  color: #fecaca;
}
.bec-age-denied .bec-age-leave:hover {
  background: rgba(248, 113, 113, 0.18);
  transform: translateY(-1px);
}

@media (max-width: 520px) {
  .bec-age-card { padding: 28px 20px 22px; border-radius: 22px; }
}
