/* منطقة الدخول (أعلى الصفحة العامة). تُحمَّل بعد كل ملفات الأنماط الأخرى.
   أدوار الألوان: بنفسجي Discord = الدخول فقط، أخضر نعناعي = كل ما يخص الأمان، الأزرق = الروابط. */
.gate {
  --g-enter: #5865f2; --g-enter-hover: #4752c4;
  --g-safe: #4fd8ac;
  --g-surface: var(--rf-surface, #0e1324);
  --g-hair: var(--rf-hair-2, rgba(150, 170, 230, .2));
  display: grid; grid-template-columns: minmax(0, 430px) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px); align-items: start;
  padding: clamp(36px, 6vw, 72px) 0 clamp(56px, 8vw, 96px);
}
html[data-theme="light"] .gate { --g-safe: #0f7a5a; }

.gate-main { min-width: 0; }
.gate h1 { margin: 0 0 14px; font-size: clamp(2rem, 3.6vw, 2.8rem); line-height: 1.3; font-weight: 700; text-wrap: balance; }
.gate-lead { margin: 0 0 28px; max-width: 40ch; color: var(--text-dim); font-size: 1.04rem; line-height: 1.95; }

.gate-card { display: grid; gap: 20px; padding: 20px; border: 1px solid var(--g-hair); border-radius: 14px; background: var(--g-surface);
  box-shadow: inset 0 2px 0 var(--edge), var(--rf-shadow, none); }

.gate .gate-login { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 56px; padding: 0 22px; border-radius: 10px;
  background: var(--g-enter); color: #fff; font-size: 1.06rem; font-weight: 700; text-decoration: none;
  transition: background .15s, transform .12s; }
.gate .gate-login:visited { color: #fff; }
.gate .gate-login:hover { background: var(--g-enter-hover); }
.gate .gate-login:active { transform: translateY(1px); }
.gate .gate-login:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }
.gate .gate-login img { display: block; flex: none; }

.gate-facts { list-style: none; margin: 0; padding: 18px 0 0; border-top: 1px solid var(--g-hair); display: grid; gap: 14px; }
.gate-facts li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 12px; align-items: start; color: var(--text-dim); font-size: .92rem; line-height: 1.75; }
.gate-facts .ico { width: 20px; height: 20px; margin-top: 3px; color: var(--g-safe); }
.gate-facts b { color: var(--text); font-weight: 600; }

.gate-invite { margin: 18px 4px 0; color: var(--text-dim); font-size: .92rem; }
.gate-invite a { color: var(--edge); text-underline-offset: 4px; }
.gate-invite a:hover { text-decoration: underline; }

.gate .lp-console { min-width: 0; z-index: auto; }

@media (max-width: 960px) {
  .gate { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .gate-lead { max-width: none; }
}
@media (prefers-reduced-motion: reduce) { .gate .gate-login { transition: none; } }

/* شريط التنقل العام: كان يتكدّس فوق الشعار على الجوال */
.pub-nav { display: flex; align-items: center; gap: 12px 24px; flex-wrap: wrap; }
.pub-nav .wordmark { display: inline-flex; align-items: center; gap: 12px; white-space: nowrap; }
.pub-links { flex: 1; display: flex; justify-content: center; gap: 4px; min-width: 0; }
.pub-links a { padding: 8px 14px; border-radius: 8px; color: var(--text-dim); font-size: .94rem; white-space: nowrap; text-decoration: none; transition: color .15s, background .15s; }
.pub-links a:hover { color: var(--text); background: var(--rf-hair, rgba(150, 170, 230, .11)); }
.pub-links a[aria-current="page"] { color: var(--text); font-weight: 600; }
@media (max-width: 720px) {
  .pub-nav .btn { margin-inline-start: auto; }
  .pub-links { order: 3; flex-basis: 100%; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; margin-inline: -8px; }
}
