:root { --gold: #d7b56d; --ink: #f4f7fb; }
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: #041020; color: var(--ink); font-family: Inter, "Segoe UI", sans-serif; overflow: hidden; }

#void { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 1; display: block; pointer-events: none; }

.layer.bg {
  position: fixed; inset: 0; z-index: 0;
  background-size: cover; background-position: center;
  filter: brightness(.5) saturate(1.1);
  opacity: 0.5;
}

.eye-wrap {
  position: fixed; z-index: 3; left: 50%; top: 42%;
  width: min(28vw, 180px); aspect-ratio: 1;
  transform: translate(-50%, -50%) scale(0.6);
  opacity: 0;
  pointer-events: none;
  will-change: transform, opacity;
}
.eye-wrap img { width: 100%; height: 100%; object-fit: contain; }

.birth {
  position: fixed; z-index: 4; left: 50%; top: 42%;
  transform: translate(-50%, -50%) scale(0.2);
  opacity: 0;
  pointer-events: none;
  text-align: center;
  will-change: transform, opacity;
}
 .logo-img { width: min(72vw, 420px); filter: drop-shadow(0 0 40px rgba(80,200,255,.35)); }
.logo-mark {
  letter-spacing: .52em;
  font-size: clamp(36px, 8vw, 72px);
  font-weight: 500;
  color: #e8d5a3;
  text-shadow: 0 0 40px rgba(215,181,109,.7), 0 0 80px rgba(215,181,109,.35);
}

.hud, .hud-bottom { position: fixed; z-index: 6; }
.hud { top: 22px; left: 22px; }
.word { letter-spacing: .38em; font-size: 12px; color: var(--gold); }
.hud-bottom { left: 18px; right: 18px; bottom: 22px; display: grid; gap: 12px; justify-items: start; }
.slogan { margin: 0; max-width: 440px; color: rgba(244,247,251,.9); font-size: 14px; line-height: 1.45; text-shadow: 0 2px 12px rgba(0,0,0,.6); }
.actions { display: flex; gap: 10px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 18px;
  text-decoration: none; color: var(--ink); border-radius: 12px;
  border: 1px solid rgba(215,181,109,.45);
  background: rgba(6,16,36,.55);
  backdrop-filter: blur(6px);
  font-size: 14px;
}
.btn.gold { background: linear-gradient(180deg, #e6c98a, #a8873d); color: #1a1408; border-color: transparent; font-weight: 600; }
.gate-link {
  background: none; border: 0; color: var(--gold); letter-spacing: .14em;
  font-size: 12px; cursor: pointer; padding: 4px 0;
}
.gate {
  position: fixed; inset: 0; z-index: 7;
  display: none; place-items: center; align-content: center; gap: 22px;
  background: rgba(4,12,28,.78); backdrop-filter: blur(8px);
}
.gate.open { display: grid; }
.doors { display: grid; grid-template-columns: 1fr; gap: 14px; width: min(420px, 88vw); }
.door {
  display: grid; gap: 6px; place-items: center;
  min-height: 110px; text-decoration: none; color: var(--ink);
  border-radius: 16px; border: 1px solid rgba(215,181,109,.4);
  background: rgba(12,28,60,.65);
}
.door span { font-size: 20px; letter-spacing: .2em; }
.door small { color: rgba(244,247,251,.75); letter-spacing: .06em; font-size: 13px; }
.door.money { background: linear-gradient(160deg, rgba(23,57,129,.6), rgba(215,181,109,.25)); }
.door.crypto { background: linear-gradient(160deg, rgba(16,40,80,.55), rgba(126,231,255,.18)); border-color: rgba(126,231,255,.45); }
.close-gate {
  background: none; border: 0; color: var(--gold); font-size: 13px; letter-spacing: .12em; cursor: pointer;
}

@media (min-width: 800px) {
  .doors { grid-template-columns: 1fr 1fr; width: min(680px, 80vw); }
}

.symbol {
  position: fixed; z-index: 2;
  width: min(14vw, 90px);
  pointer-events: none;
  opacity: 0;
  will-change: transform, opacity;
}
.symbol.ai { width: min(11vw, 72px); }

.ray {
  position: absolute;
  inset: -10%;
  border-radius: 50%;
  border: 6px solid transparent;
  border-top-color: rgba(140, 210, 255, 0.55);
  border-right-color: rgba(140, 210, 255, 0.18);
  filter: blur(2.5px) drop-shadow(0 0 18px rgba(120, 200, 255, 0.45));
  animation: spinRay 8s linear infinite;
  pointer-events: none;
  opacity: 0.85;
}
@keyframes spinRay {
  to { transform: rotate(360deg); }
}
.birth { position: fixed; }


.login {
  position: fixed; inset: 0; z-index: 8;
  display: grid; place-items: center;
  background: transparent;
  opacity: 0; pointer-events: none;
  transition: opacity .6s ease;
}
.login.open { opacity: 1; pointer-events: auto; }
.login .card {
  width: min(420px, 92vw);
  max-height: min(92dvh, 720px);
  overflow-y: auto;
  display: grid; gap: 12px;
  padding: 22px 18px 18px;
  border-radius: 18px;
  background: rgba(8, 18, 40, 0.78);
  border: 1px solid rgba(215, 181, 109, 0.35);
  backdrop-filter: blur(8px);
  transform: translateY(8px);
  transition: transform .5s ease;
  -webkit-overflow-scrolling: touch;
}
.login .card.register-mode {
  width: min(440px, 94vw);
}
.auth-mode {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 4px;
}
.auth-mode-btn {
  min-height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(215, 181, 109, 0.35);
  background: rgba(6, 16, 36, 0.45);
  color: #c9d6ea;
  letter-spacing: .08em;
  font-size: 12px;
  cursor: pointer;
}
.auth-mode-btn.active {
  background: linear-gradient(180deg, #e8c878 0%, #c9a24e 100%);
  color: #0a1428;
  border-color: #e8c878;
  font-weight: 600;
}
.registration-host label {
  display: grid;
  gap: 6px;
  font-size: 11px;
  letter-spacing: .06em;
  color: #c9d6ea;
  text-transform: capitalize;
}
.registration-host .hint {
  font-size: 11px;
  line-height: 1.45;
  color: rgba(201, 214, 234, 0.85);
  margin: 0;
}
.registration-host a { color: #e8d5a3; }
.registration-host .consent-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 11px;
  color: #c9d6ea;
  line-height: 1.4;
}
.registration-host .consent-row input { min-height: auto; margin-top: 4px; width: auto; flex-shrink: 0; }
.registration-host .reg-label { font-size: 11px; letter-spacing: .06em; color: #c9d6ea; }
.confirm-password-wrap {
  display: grid;
  gap: 6px;
}
.login .card:not(.register-mode) .confirm-password-wrap { display: none !important; }
.login .card.register-mode .confirm-password-wrap { display: grid !important; }
.login .card.register-mode .confirm-password-wrap input { min-height: 48px; }
.login.open .card { transform: translateY(0); }
.login h2 {
  margin: 0 0 4px; text-align: center;
  font-weight: 500; letter-spacing: .12em;
  color: #e8d5a3; font-size: 16px;
}
.login input {
  min-height: 48px; border-radius: 12px;
  border: 1px solid rgba(215,181,109,.3);
  background: rgba(6,16,36,.55); color: #f4f7fb;
  padding: 0 14px; font-size: 16px;
}
.login .pw-wrap { position: relative; display: flex; align-items: center; }
.login .pw-wrap input { width: 100%; padding-right: 44px; }
.login .pw-eye {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  background: none; border: 0; color: #d7b56d; cursor: pointer;
  font-size: 18px; line-height: 1; padding: 6px; min-width: 32px;
}
.login .pw-eye:focus-visible { outline: 2px solid #d7b56d; outline-offset: 1px; }
.login .btn { width: 100%; }
.login .back {
  background: none; border: 0; color: #d7b56d;
  letter-spacing: .1em; font-size: 13px; cursor: pointer;
  padding: 6px;
}
body.login-on .eye-wrap,
body.login-on .birth,
body.login-on .symbol,
body.login-on .hud-bottom { opacity: 0; transition: opacity .6s ease; pointer-events: none; }
body.login-on .hud { opacity: .6; }
