/* GeniusOrc portal visual match — Manrope + Russo One, #141414 / #2a3eef */
@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Russo+One&display=swap");

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: Manrope, "Segoe UI", Helvetica, sans-serif;
  background: #141414;
  color: #f8f8f8;
  scroll-padding-top: 72px;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ---- Header ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #000;
  border-bottom: 1px solid #1a1a1a;
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: none;
  background: url("/img/ref/menu.svg") center / 28px no-repeat;
  cursor: pointer;
  flex-shrink: 0;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0 auto;
  flex-shrink: 0;
}

.logo-title {
  font-family: "Russo One", sans-serif;
  font-size: 1.35rem;
  letter-spacing: 0.02em;
  color: #fff;
  white-space: nowrap;
}

.logo-num {
  font-family: "Russo One", sans-serif;
  font-size: 2rem;
  color: #f5a623;
  line-height: 1;
  position: relative;
}

.logo-badge {
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.45rem;
  font-weight: 800;
  background: #c41e3a;
  color: #fff;
  padding: 1px 4px;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

/* ---- Server status badge (left of logo) ---- */
.server-status {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  padding: 5px 12px;
  border: 1px solid rgba(46, 204, 64, 0.28);
  border-radius: 20px;
  background: rgba(46, 204, 64, 0.06);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: #b8c0c4;
  white-space: nowrap;
}

.server-status .status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #2ecc40;
  flex-shrink: 0;
  animation: status-blink 1.4s ease-in-out infinite;
}

@keyframes status-blink {
  0%, 100% {
    opacity: 1;
    box-shadow: 0 0 8px 2px rgba(46, 204, 64, 0.85);
  }
  50% {
    opacity: 0.3;
    box-shadow: 0 0 2px 0 rgba(46, 204, 64, 0.25);
  }
}

@media (prefers-reduced-motion: reduce) {
  .server-status .status-dot {
    animation: none;
    box-shadow: 0 0 8px 2px rgba(46, 204, 64, 0.6);
  }
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-desktop > a,
.nav-desktop > .nav-drop > .nav-drop-btn {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #ddd;
  padding: 10px 12px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
}

.nav-desktop > a:hover,
.nav-desktop > .nav-drop:hover > .nav-drop-btn,
.nav-desktop > a.active {
  color: #fff;
}

.nav-drop {
  position: relative;
}

.nav-drop-panel {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 200px;
  background: #333;
  padding: 12px 0;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
}

.nav-drop:hover .nav-drop-panel,
.nav-drop.open .nav-drop-panel {
  display: block;
}

.nav-drop-panel a {
  display: block;
  padding: 10px 20px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #eee;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.nav-drop-panel a:hover {
  background: #2a3eef;
  color: #fff;
}

.btn-gcoin {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #2a3eef !important;
  color: #fff !important;
  border-radius: 2px;
  padding: 10px 14px !important;
}

.btn-gcoin::before {
  content: "";
  width: 18px;
  height: 18px;
  background: url("/img/ref/coin.png") center / contain no-repeat;
}

.btn-gcoin.disabled {
  opacity: 0.45;
  pointer-events: none;
  background: #333 !important;
}

/* Red logout button (shown only when logged in) */
.btn-logout {
  background: #c41e3a !important;
  color: #fff !important;
  border-radius: 4px;
  padding: 8px 14px !important;
  font-weight: 700;
}
.btn-logout:hover {
  background: #e02845 !important;
}

/* Mobile nav drawer */
.nav-mobile {
  display: none;
  background: #1b1b1b;
  border-top: 1px solid #333;
  padding: 12px 20px 20px;
}

.nav-mobile.open {
  display: block;
}

.nav-mobile a {
  display: block;
  padding: 12px 0;
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #ddd;
  border-bottom: 1px solid #262626;
}

.nav-mobile a:hover {
  color: #2a3eef;
}

@media (max-width: 1024px) {
  .menu-toggle {
    display: block;
  }
  .nav-desktop {
    display: none;
  }
  .server-status {
    display: none;
  }
  .logo-link {
    margin: 0 auto;
  }
}

/* ---- Hero (home) ---- */
.hero-genius {
  position: relative;
  min-height: 520px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 20px 0;
  overflow: hidden;
}

.hero-genius::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("/img/ref/hero-bg.jpg") center top / cover no-repeat;
  opacity: 0.55;
}

.hero-genius::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, #141414 85%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 900px;
  width: 100%;
  text-align: center;
}

.hero-card-img {
  width: min(280px, 70vw);
  margin: 0 auto 24px;
  display: block;
  filter: drop-shadow(0 12px 40px rgba(0, 0, 0, 0.8));
}

.hero-inner h1 {
  font-family: "Russo One", sans-serif;
  font-size: clamp(1.8rem, 5vw, 2.4rem);
  margin: 0 0 16px;
  color: #fff;
}

.hero-inner .tagline {
  color: #e0e0e0;
  font-size: 1rem;
  line-height: 1.6;
  max-width: 560px;
  margin: 0 auto 28px;
}

.social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 32px;
}

.social-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #fff;
  background: rgba(0, 0, 0, 0.35);
  transition: background 0.2s, border-color 0.2s;
}

.social-pill:hover {
  background: rgba(42, 62, 239, 0.35);
  border-color: #2a3eef;
}

.social-pill.hidden {
  display: none;
}

/* Content tabs (announcement) */
.content-tabs {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  background: #141414;
}

.tab-bar {
  display: flex;
  gap: 0;
  border-bottom: 1px solid #333;
  overflow-x: auto;
}

.tab-bar button {
  flex: 1;
  min-width: 120px;
  padding: 16px 20px;
  border: none;
  background: transparent;
  color: #787878;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: capitalize;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}

.tab-bar button.active {
  color: #fff;
  border-bottom-color: #2a3eef;
}

.tab-panel {
  display: none;
  padding: 24px 20px 48px;
  max-width: 1100px;
  margin: 0 auto;
}

.tab-panel.active {
  display: block;
}

.ann-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.ann-filters button {
  padding: 8px 16px;
  border: 1px solid #333;
  background: #1b1b1b;
  color: #787878;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  cursor: pointer;
  font-family: inherit;
}

.ann-filters button.active {
  color: #fff;
  border-color: #2a3eef;
  background: #262626;
}

.ann-list article {
  padding: 18px 0;
  border-bottom: 1px solid #262626;
}

.ann-list h3 {
  margin: 0 0 6px;
  font-size: 1rem;
  color: #fff;
}

.ann-meta {
  font-size: 0.75rem;
  color: #2a3eef;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.ann-list p {
  margin: 0;
  color: #aaa;
  font-size: 0.9rem;
}

/* Sub pages */
.page-hero-sm {
  background: #000 url("/img/ref/hero-bg.jpg") center / cover no-repeat;
  padding: 48px 20px;
  text-align: center;
  position: relative;
}

.page-hero-sm::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
}

.page-hero-sm h1 {
  position: relative;
  z-index: 1;
  font-family: "Russo One", sans-serif;
  margin: 0;
  font-size: 2rem;
}

.page-body {
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 20px 64px;
}

.panel-go {
  background: #1b1b1b;
  border: 1px solid #333;
  padding: 28px;
}

.panel-go h2 {
  margin: 0 0 16px;
  font-size: 1.1rem;
  color: #fff;
  font-weight: 700;
}

/* Forms */
.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #787878;
}

.form-group input {
  width: 100%;
  padding: 12px 14px;
  background: #141414;
  border: 1px solid #333;
  color: #fff;
  font-size: 1rem;
  font-family: inherit;
}

.form-group input:focus {
  outline: none;
  border-color: #2a3eef;
}

.btn-primary {
  display: inline-block;
  padding: 12px 28px;
  background: #2a3eef;
  border: none;
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  font-family: inherit;
}

.btn-primary:hover {
  background: #293def;
}

.btn-outline {
  display: inline-block;
  padding: 12px 28px;
  background: transparent;
  border: 1px solid #ddd;
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  font-family: inherit;
}

.alert {
  padding: 12px 16px;
  margin-bottom: 16px;
  font-size: 0.9rem;
  border: 1px solid;
}

.alert-error {
  background: rgba(243, 0, 0, 0.08);
  border-color: #f30;
  color: #ff8a8a;
}

.alert-success {
  background: rgba(42, 62, 239, 0.12);
  border-color: #2a3eef;
  color: #a8b4ff;
}

.alert-info {
  border-color: #787878;
  color: #ddd;
}

/* Rankings */
.rank-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 24px;
  border-bottom: 1px solid #333;
}

.rank-tabs button {
  flex: 1;
  padding: 14px;
  border: none;
  background: #1b1b1b;
  color: #787878;
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  cursor: pointer;
  font-family: inherit;
  border-bottom: 2px solid transparent;
}

.rank-tabs button.active {
  color: #fff;
  background: #262626;
  border-bottom-color: #2a3eef;
}

table.lb-go {
  width: 100%;
  border-collapse: collapse;
  background: #1b1b1b;
}

table.lb-go th {
  background: #2a3eef;
  color: #fff;
  padding: 14px 16px;
  text-align: left;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

table.lb-go td {
  padding: 12px 16px;
  border-bottom: 1px solid #262626;
  color: #ddd;
}

table.lb-go tr:nth-child(1) td:first-child {
  color: #f5a623;
  font-weight: 800;
}

.lb-meta {
  color: #787878;
  font-size: 0.85rem;
  margin-bottom: 16px;
}

/* Download */
.download-list-go {
  list-style: none;
  padding: 0;
  margin: 0;
}

.download-list-go li {
  margin-bottom: 12px;
}

.download-list-go a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  background: #262626;
  border: 1px solid #333;
  font-weight: 700;
  color: #fff;
}

.download-list-go a:hover {
  border-color: #2a3eef;
  background: #333;
}

.stat-row {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid #333;
}

.stat-row strong {
  color: #fff;
}

.stat-row .switch {
  align-self: center;
}

/* Toggle switch (privacy etc.) */
.switch {
  position: relative;
  display: inline-block;
  width: 46px;
  height: 24px;
  flex-shrink: 0;
}
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.switch-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: #3a3a3a;
  border-radius: 24px;
  transition: background 0.2s;
}
.switch-slider::before {
  content: "";
  position: absolute;
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.2s;
}
.switch input:checked + .switch-slider {
  background: #2ecc40;
}
.switch input:checked + .switch-slider::before {
  transform: translateX(22px);
}
.switch input:disabled + .switch-slider {
  opacity: 0.5;
  cursor: default;
}
.switch input:focus-visible + .switch-slider {
  box-shadow: 0 0 0 2px rgba(46, 204, 64, 0.5);
}

/* Footer */
.site-footer {
  background: #000;
  border-top: 1px solid #1a1a1a;
  padding: 32px 20px;
  margin-top: auto;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-links a {
  font-size: 0.8rem;
  color: #787878;
  font-weight: 600;
}

.footer-links a:hover {
  color: #2a3eef;
}

.footer-copy {
  font-size: 0.8rem;
  color: #666;
  width: 100%;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #262626;
}

.hidden {
  display: none !important;
}

.modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-backdrop.open {
  display: flex;
}

.modal-go {
  background: #1b1b1b;
  border: 1px solid #333;
  max-width: 520px;
  width: 100%;
  max-height: 85vh;
  overflow: auto;
  padding: 24px;
}

.modal-go .terms-body {
  color: #aaa;
  font-size: 0.9rem;
  max-height: 40vh;
  overflow-y: auto;
  margin-bottom: 16px;
}

.modal-go .terms-body h2 {
  color: #fff;
  font-size: 1.1rem;
}

.g-recaptcha {
  margin: 12px 0;
}

.center-narrow {
  max-width: 440px;
  margin: 0 auto;
}
