/* Ratical Labs entry gate: human check (slider puzzle + Turnstile) then 21+ confirmation */
html.gated, html.gated body { overflow: hidden; }
html.gated body > *:not(#rl-gate) { visibility: hidden; }

#rl-gate {
  position: fixed; inset: 0; z-index: 9999;
  display: grid; place-items: center; padding: 16px;
  background: #05080d;
  font: 16px/1.5 Inter, system-ui, -apple-system, Segoe UI, sans-serif;
  color: #e8eef4;
}
html:not(.gated) #rl-gate { display: none; }

.rl-card {
  width: min(420px, 100%);
  background: #0c131c; border: 1px solid #1b2a38; border-radius: 16px;
  padding: 24px 22px 20px; text-align: center;
  box-shadow: 0 0 40px rgba(108, 255, 58, .12);
}
.rl-card img.rl-logo { width: 150px; height: auto; margin: -4px auto 6px; display: block; }
.rl-card h2 { font: 700 19px/1.25 Orbitron, sans-serif; margin: 6px 0 6px; letter-spacing: .04em; }
.rl-card p { margin: 0 0 14px; color: #93a4b5; font-size: 14px; }
.rl-step-label { font: 600 11px/1 Orbitron, sans-serif; letter-spacing: .16em; color: #6cff3a; text-transform: uppercase; }

/* Slider puzzle */
.rl-puzzle { position: relative; width: 100%; aspect-ratio: 2 / 1; border-radius: 10px; overflow: hidden; background: #05080d; margin: 4px 0 12px; touch-action: none; }
.rl-puzzle canvas { position: absolute; left: 0; top: 0; width: 100%; height: 100%; }
.rl-track {
  position: relative; height: 44px; border-radius: 22px; background: #05080d;
  border: 1px solid #1b2a38; touch-action: none; user-select: none;
}
.rl-track .rl-fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 22px; background: rgba(47, 155, 255, .18); width: 0; }
.rl-track .rl-hint { position: absolute; inset: 0; display: grid; place-items: center; font-size: 13px; color: #93a4b5; pointer-events: none; }
.rl-knob {
  position: absolute; top: 2px; left: 2px; width: 40px; height: 38px; border-radius: 19px;
  background: #6cff3a; color: #051005; display: grid; place-items: center; cursor: grab;
  box-shadow: 0 0 14px rgba(108, 255, 58, .45); font-weight: 700;
}
.rl-knob:active { cursor: grabbing; }
.rl-msg { min-height: 20px; font-size: 13px; margin-top: 10px; }
.rl-msg.ok { color: #6cff3a; } .rl-msg.err { color: #ff6b6b; }
.rl-turnstile { display: flex; justify-content: center; margin-top: 8px; min-height: 0; }

/* Age step */
.rl-btns { display: grid; gap: 10px; margin-top: 6px; }
.rl-btn {
  display: block; width: 100%; padding: 13px 16px; border-radius: 10px; border: 0; cursor: pointer;
  font: 600 15px/1.2 Inter, system-ui, sans-serif;
}
.rl-btn.yes { background: #6cff3a; color: #051005; box-shadow: 0 0 20px rgba(108, 255, 58, .3); }
.rl-btn.no { background: transparent; color: #93a4b5; border: 1px solid #1b2a38; }
.rl-fine { font-size: 11.5px; color: #6f8090; margin-top: 14px; line-height: 1.45; }
[hidden] { display: none !important; }
