/* WoW 3.3.5a realm portal — main styles */
:root {
  --bg-deep: #07090d;
  --bg-panel: rgba(12, 16, 24, 0.82);
  --bg-panel-solid: #0c1018;
  --border-gold: rgba(201, 162, 39, 0.45);
  --gold: #e8c547;
  --gold-dim: #9a7b2a;
  --ice: #7eb8ff;
  --fel: #5cff9a;
  --text: #e8ecf4;
  --text-muted: #9aa3b5;
  --danger: #ff6b6b;
  --radius: 14px;
  --font-display: "Cinzel", "Palatino Linotype", serif;
  --font-body: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --shadow-glow: 0 0 40px rgba(232, 197, 71, 0.12);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg-deep);
  line-height: 1.6;
}

.site-bg-video {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -3;
  opacity: 0.5;
  pointer-events: none;
}

/* Atmospheric background */
.bg-aurora {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(5, 8, 14, 0.78) 0%, rgba(6, 10, 17, 0.84) 45%, rgba(5, 8, 14, 0.9) 100%),
    radial-gradient(ellipse 80% 55% at 18% -10%, rgba(126, 184, 255, 0.14), transparent 58%),
    radial-gradient(ellipse 60% 45% at 90% 14%, rgba(92, 255, 154, 0.09), transparent 54%),
    url("../images/site-bg.png");
  background-size: cover, auto, auto, cover;
  background-position: center top, center, center, center center;
  background-attachment: fixed;
}

html.has-video-bg .bg-aurora {
  background:
    linear-gradient(180deg, rgba(5, 8, 14, 0.76) 0%, rgba(6, 10, 17, 0.82) 45%, rgba(5, 8, 14, 0.9) 100%),
    radial-gradient(ellipse 80% 55% at 18% -10%, rgba(126, 184, 255, 0.14), transparent 58%),
    radial-gradient(ellipse 60% 45% at 90% 14%, rgba(92, 255, 154, 0.09), transparent 54%);
}

.bg-noise {
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.04;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

a {
  color: var(--ice);
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
  color: var(--gold);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--gold);
  color: #000;
  padding: 0.5rem 1rem;
  z-index: 1000;
}

.skip-link:focus {
  left: 0;
}

.container {
  width: min(1120px, 92vw);
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  background: linear-gradient(180deg, rgba(7, 9, 13, 0.92), rgba(7, 9, 13, 0.75));
  border-bottom: 1px solid var(--border-gold);
 box-shadow: var(--shadow-glow);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.85rem 0;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text);
  text-transform: uppercase;
  font-size: 0.95rem;
}

.brand img {
  width: 42px;
  height: 42px;
  filter: drop-shadow(0 0 8px rgba(232, 197, 71, 0.35));
}

.brand small {
  display: block;
  font-family: var(--font-body);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  color: var(--gold-dim);
  font-weight: 600;
}

.nav-main {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-main a {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.88rem;
  padding: 0.5rem 0.85rem;
  border-radius: 8px;
}

.nav-main a:hover,
.nav-main a[aria-current="page"] {
  color: var(--gold);
  background: rgba(232, 197, 71, 0.08);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border-gold);
  color: var(--gold);
  padding: 0.45rem 0.65rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
}

/* Hero */
.hero {
  padding: 4rem 0 3.5rem;
  text-align: center;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  margin: 0 0 0.75rem;
  background: linear-gradient(135deg, #fff8e0 0%, var(--gold) 45%, #8b6914 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 60px rgba(232, 197, 71, 0.25);
}

.hero .tagline {
  max-width: 36rem;
  margin: 0 auto 2rem;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.35rem;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.btn-primary {
  background: linear-gradient(135deg, #f0d060, #b8922a);
  color: #1a1204;
  box-shadow: 0 4px 24px rgba(232, 197, 71, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(232, 197, 71, 0.45);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border: 1px solid var(--border-gold);
}

.btn-ghost:hover {
  background: rgba(232, 197, 71, 0.1);
  border-color: var(--gold);
}

/* Cards & panels */
.panel {
  background: var(--bg-panel);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius);
  padding: 1.5rem;
  backdrop-filter: blur(8px);
}

.section-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.06em;
  margin: 0 0 1.25rem;
  color: var(--gold);
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.realm-card {
  position: relative;
  overflow: hidden;
}

.realm-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(126, 184, 255, 0.12), transparent 50%);
  pointer-events: none;
}

.realm-card h3 {
  font-family: var(--font-display);
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
}

.realm-badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.realm-badge.x3 {
  background: rgba(126, 184, 255, 0.2);
  color: var(--ice);
  border: 1px solid rgba(126, 184, 255, 0.4);
}

.realm-badge.x15 {
  background: rgba(92, 255, 154, 0.15);
  color: var(--fel);
  border: 1px solid rgba(92, 255, 154, 0.35);
}

section.page-section {
  padding: 2.5rem 0;
}

section.page-section.alt {
  background: linear-gradient(180deg, transparent, rgba(12, 16, 24, 0.5), transparent);
}

/* Leaderboard tabs */
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.tab-btn {
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  border: 1px solid var(--border-gold);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.tab-btn:hover {
  color: var(--text);
  border-color: var(--gold-dim);
}

.tab-btn[aria-selected="true"] {
  background: linear-gradient(135deg, rgba(232, 197, 71, 0.25), rgba(232, 197, 71, 0.08));
  color: var(--gold);
  border-color: var(--gold);
}

.tab-panel[hidden] {
  display: none !important;
}

.subtabs {
  display: flex;
  gap: 0.35rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.subtab-btn {
  padding: 0.4rem 0.85rem;
  font-size: 0.8rem;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
}

.subtab-btn[aria-selected="true"] {
  background: rgba(255, 255, 255, 0.06);
  color: var(--ice);
  border-color: rgba(126, 184, 255, 0.35);
}

.table-wrap {
  overflow-x: auto;
  border-radius: 10px;
  border: 1px solid rgba(201, 162, 39, 0.25);
}

table.leaderboard {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

table.leaderboard th,
table.leaderboard td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

table.leaderboard th {
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-dim);
  background: rgba(0, 0, 0, 0.25);
}

table.leaderboard tbody tr:hover {
  background: rgba(232, 197, 71, 0.04);
}

.rank-cell {
  font-weight: 800;
  color: var(--gold);
  width: 3rem;
}

/* Code / realmlist */
.code-block {
  font-family: ui-monospace, "Cascadia Code", monospace;
  font-size: 0.85rem;
  background: #05070a;
  border: 1px solid var(--border-gold);
  border-radius: 10px;
  padding: 1rem 1.1rem;
  overflow-x: auto;
  color: var(--fel);
  margin: 0.75rem 0;
}

.code-block code {
  font-family: inherit;
  color: inherit;
  background: none;
  padding: 0;
}

.note {
  font-size: 0.88rem;
  color: var(--text-muted);
  border-left: 3px solid var(--gold-dim);
  padding-left: 1rem;
  margin: 1rem 0;
}

/* Footer */
.site-footer {
  margin-top: 3rem;
  padding: 2rem 0;
  border-top: 1px solid var(--border-gold);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.site-footer .disclaimer {
  max-width: 560px;
  margin: 0.75rem auto 0;
  font-size: 0.78rem;
  opacity: 0.85;
}

/* Sparkle decoration */
.sparkles {
  display: inline-block;
  animation: pulse-glow 3s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%,
  100% {
    filter: drop-shadow(0 0 6px rgba(232, 197, 71, 0.4));
  }
  50% {
    filter: drop-shadow(0 0 14px rgba(232, 197, 71, 0.7));
  }
}

.feat-title {
  margin-top: 0;
  font-family: var(--font-display);
}

.feat-title--ice {
  color: var(--ice);
}

.feat-title--fel {
  color: var(--fel);
}

.page-title {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.feat-title--gold {
  color: var(--gold);
}

.panel--gap {
  margin-top: 1.25rem;
}

.tops-lead {
  margin-top: 0;
}

/* Sakura canvas */
.sakura-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

/* Prefs toolbar */
.prefs-bar {
  position: sticky;
  top: 0;
  z-index: 99;
  background: rgba(7, 9, 13, 0.88);
  border-bottom: 1px solid rgba(201, 162, 39, 0.22);
  font-size: 0.78rem;
}

.prefs-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  padding: 0.35rem 0;
  justify-content: flex-end;
}

.pref-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-muted);
  cursor: pointer;
  user-select: none;
}

.pref-toggle input {
  accent-color: var(--gold);
}

/* Hero with optional background art */
.hero--backdrop {
  position: relative;
  padding: 4.5rem 0 4rem;
  overflow: hidden;
}

.hero--backdrop::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(
      180deg,
      rgba(6, 10, 17, 0.26) 0%,
      rgba(6, 10, 17, 0.56) 52%,
      rgba(6, 10, 17, 0.74) 100%
    );
  z-index: 0;
}

.hero--backdrop .sparkles,
.hero--backdrop h1,
.hero--backdrop .tagline,
.hero--backdrop .hero-actions {
  position: relative;
  z-index: 1;
}

.realm-card--featured {
  border-color: rgba(92, 255, 154, 0.55);
  box-shadow: 0 0 0 1px rgba(92, 255, 154, 0.12), 0 12px 40px rgba(0, 0, 0, 0.35);
}

.realm-card {
  box-shadow: 0 0 0 1px rgba(201, 162, 39, 0.08), 0 16px 36px rgba(0, 0, 0, 0.35);
}

.realm-pill {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  margin-bottom: 0.5rem;
  background: rgba(232, 197, 71, 0.15);
  color: var(--gold);
  border: 1px solid rgba(232, 197, 71, 0.35);
}

.realm-list {
  margin: 0.35rem 0 0;
  padding-left: 1.1rem;
  color: var(--text-muted);
  font-size: 0.92rem;
}

/* =====================================================
   REGISTER PAGE — form styles
   ===================================================== */

/* Центрирующая обёртка страницы */
.register-page-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2.5rem 0 4rem;
}

.register-page-wrap .sparkles {
  display: block;
  text-align: center;
  margin-bottom: 0.5rem;
}

/* Карточка формы */
.register-card {
  width: 100%;
  max-width: 500px;
  background: var(--bg-panel);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius);
  padding: 2.25rem 2rem;
  backdrop-filter: blur(10px);
  box-shadow: 0 0 0 1px rgba(232, 197, 71, 0.06), 0 24px 64px rgba(0, 0, 0, 0.55);
  position: relative;
  overflow: hidden;
}

/* Верхняя золотая черта-сияние */
.register-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 55%;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
}

/* Угловые декоры */
.rc-corner {
  position: absolute;
  width: 18px;
  height: 18px;
  border-color: var(--gold-dim);
  border-style: solid;
  opacity: 0.55;
  pointer-events: none;
}
.rc-corner--tl { top: 8px; left: 8px;  border-width: 1px 0 0 1px; }
.rc-corner--tr { top: 8px; right: 8px; border-width: 1px 1px 0 0; }
.rc-corner--bl { bottom: 8px; left: 8px;  border-width: 0 0 1px 1px; }
.rc-corner--br { bottom: 8px; right: 8px; border-width: 0 1px 1px 0; }

/* Поля ввода */
.reg-group {
  margin-bottom: 1.15rem;
}

.reg-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.reg-label .req {
  color: var(--gold);
  margin-left: 0.15rem;
}

.reg-input-wrap {
  position: relative;
}

.reg-input-icon {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gold-dim);
  font-size: 0.95rem;
  pointer-events: none;
  transition: color 0.2s ease;
  line-height: 1;
}

.reg-input {
  width: 100%;
  background: rgba(5, 7, 10, 0.75);
  border: 1px solid rgba(201, 162, 39, 0.3);
  border-radius: 10px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.97rem;
  padding: 0.72rem 0.9rem 0.72rem 2.4rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  appearance: none;
}

.reg-input::placeholder {
  color: var(--text-muted);
  opacity: 0.5;
}

.reg-input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(232, 197, 71, 0.12);
}

.reg-input-wrap:focus-within .reg-input-icon {
  color: var(--gold);
}

.reg-input.is-err {
  border-color: var(--danger);
}

/* Подсказка / ошибка под полем */
.reg-hint {
  font-size: 0.77rem;
  color: var(--text-muted);
  margin-top: 0.3rem;
}

.reg-field-err {
  font-size: 0.77rem;
  color: var(--danger);
  margin-top: 0.3rem;
  display: none;
}

.reg-field-err.on {
  display: block;
}

/* Индикатор силы пароля */
.pw-bars {
  display: flex;
  gap: 4px;
  margin-top: 0.45rem;
}

.pw-bar {
  flex: 1;
  height: 3px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.09);
  transition: background 0.25s ease;
}

.pw-bar.weak   { background: var(--danger); }
.pw-bar.medium { background: #d4943a; }
.pw-bar.strong { background: var(--fel); }

.pw-bar-label {
  font-size: 0.73rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

/* Разделитель */
.reg-sep {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-muted);
  font-size: 0.78rem;
  margin-bottom: 1.15rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.reg-sep::before,
.reg-sep::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(201, 162, 39, 0.2);
}

/* reCAPTCHA обёртка */
.reg-captcha {
  display: flex;
  justify-content: center;
  margin-bottom: 1.15rem;
}

/* Кнопка отправки */
.btn-reg-submit {
  width: 100%;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #1a1204;
  background: linear-gradient(135deg, #f0d060, #c89a28);
  border: none;
  border-radius: 10px;
  padding: 0.88rem 1.5rem;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 22px rgba(232, 197, 71, 0.32);
}

.btn-reg-submit:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(232, 197, 71, 0.45);
}

.btn-reg-submit:active:not(:disabled) {
  transform: translateY(0);
}

.btn-reg-submit:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.btn-reg-submit .btn-spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(26, 18, 4, 0.3);
  border-top-color: #1a1204;
  border-radius: 50%;
  animation: reg-spin 0.65s linear infinite;
  margin: 0 auto;
}

@keyframes reg-spin {
  to { transform: rotate(360deg); }
}

.btn-reg-submit.loading .btn-text   { display: none; }
.btn-reg-submit.loading .btn-spinner { display: block; }

/* Алерты */
.reg-alert {
  border-radius: 10px;
  padding: 0.8rem 1rem;
  margin-bottom: 1.1rem;
  font-size: 0.88rem;
  line-height: 1.5;
  border: 1px solid;
  display: none;
}

.reg-alert.on { display: block; }

.reg-alert--err {
  background: rgba(255, 107, 107, 0.09);
  border-color: rgba(255, 107, 107, 0.35);
  color: #ff9999;
}

.reg-alert--ok {
  background: rgba(92, 255, 154, 0.08);
  border-color: rgba(92, 255, 154, 0.3);
  color: #7dffc5;
}

/* Ссылка внизу карточки */
.reg-footer-link {
  text-align: center;
  font-size: 0.84rem;
  color: var(--text-muted);
  margin-top: 1.1rem;
}

.reg-footer-link a {
  color: var(--gold);
  font-weight: 600;
}

.reg-footer-link a:hover {
  color: var(--ice);
}

/* Экран успеха */
.reg-success {
  display: none;
  text-align: center;
  padding: 1rem 0 0.5rem;
  animation: reg-fadein 0.35s ease both;
}

.reg-success.on { display: block; }

@keyframes reg-fadein {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.reg-success-icon {
  font-size: 3rem;
  margin-bottom: 0.85rem;
  animation: reg-popin 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes reg-popin {
  from { transform: scale(0); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

.reg-success-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--gold);
  margin: 0 0 0.5rem;
}

.reg-success-msg {
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 1.25rem;
}

.reg-success-msg strong {
  color: var(--text);
}

@media (max-width: 560px) {
  .register-card {
    padding: 1.75rem 1.15rem;
  }
}

/* Топы: иконки расы/класса */
.wow-icon-cell {
  text-align: center;
  vertical-align: middle;
  width: 8.75rem;
  padding: 0.35rem 0.25rem;
}

.wow-icon-img {
  display: inline-block;
  vertical-align: middle;
  border-radius: 4px;
  border: 1px solid rgba(232, 197, 71, 0.25);
  background: rgba(0, 0, 0, 0.35);
}

.wow-icon-img--lg {
  width: 65px;
  height: 65px;
  max-width: 65px;
  max-height: 65px;
  object-fit: contain;
}

.tops-empty {
  text-align: center;
  color: var(--text-muted);
  padding: 1.5rem 1rem;
}

.subtabs--tops {
  flex-wrap: wrap;
}

.leaderboard--home-top .wow-icon-img--home {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.leaderboard--home-top .wow-icon-cell {
  width: auto;
  padding: 0.2rem;
}

/* Connect: launcher vs manual */
.connect-split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}

.connect-card-highlight {
  border-color: rgba(126, 184, 255, 0.45);
}

.realmlist-hero {
  text-align: center;
  margin-bottom: 1.5rem;
}

.realmlist-hero .code-block {
  display: inline-block;
  text-align: left;
  min-width: min(100%, 28rem);
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  justify-content: center;
  margin-top: 0.75rem;
}

.footer-social a {
  font-weight: 600;
  font-size: 0.88rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  justify-content: center;
  margin-top: 0.9rem;
}

/*.payment-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem;
  margin-top: 0.85rem;
}

.pay-pill {
  border: 1px solid rgba(201, 162, 39, 0.3);
  color: var(--text-muted);
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
  font-size: 0.72rem;
}*/

/* Global live status */
.global-live {
  padding: 1.15rem 0 0;
}

.global-live--side {
  position: fixed;
  right: 1rem;
  top: 9.4rem;
  width: min(320px, 28vw);
  z-index: 30;
  padding: 0;
}

@media (min-width: 1280px) {
  main {
    padding-right: min(330px, 30vw);
  }
}

.global-live-grid {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: 1fr;
}

.live-card h2 {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--gold);
}

.live-row {
  margin-top: 0.5rem;
}

.live-row-top {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  margin-bottom: 0.35rem;
}

.live-progress {
  height: 8px;
  width: 100%;
  border: none;
  border-radius: 999px;
  overflow: hidden;
  appearance: none;
  -webkit-appearance: none;
  background: rgba(255, 255, 255, 0.08);
}

.live-progress::-webkit-progress-bar {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
}

.live-progress::-webkit-progress-value {
  background: linear-gradient(90deg, #67ffb8, #b4ffd4);
  border-radius: 999px;
}

.live-progress::-moz-progress-bar {
  background: linear-gradient(90deg, #67ffb8, #b4ffd4);
  border-radius: 999px;
}

.live-progress--ice::-webkit-progress-value {
  background: linear-gradient(90deg, #69b3ff, #c7e2ff);
}

.live-progress--ice::-moz-progress-bar {
  background: linear-gradient(90deg, #69b3ff, #c7e2ff);
}

.section-title--compact {
  font-size: 1.25rem;
}

.note--top0 {
  margin-top: 0;
}

.note--bottom0 {
  margin-bottom: 0;
}

.hero-actions--left {
  justify-content: flex-start;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 0.4rem;
}

.status-dot--pending {
  background: #bba56a;
}

.status-dot--up {
  background: #4ce07b;
  box-shadow: 0 0 10px rgba(76, 224, 123, 0.65);
}

.status-dot--down {
  background: #d86464;
  box-shadow: 0 0 10px rgba(216, 100, 100, 0.55);
}

.discord-mini p {
  margin: 0.35rem 0;
}

/* Home blocks */
.steps-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.step-item {
  position: relative;
  padding-left: 2.2rem;
}

.step-num {
  position: absolute;
  left: 0;
  top: 0;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  background: rgba(232, 197, 71, 0.2);
  border: 1px solid rgba(232, 197, 71, 0.45);
  color: var(--gold);
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.feature-media {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(201, 162, 39, 0.3);
  margin-bottom: 0.75rem;
}

.news-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.news-list li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.65rem 0;
}

.news-list li:last-child {
  border-bottom: none;
}

.news-date {
  color: var(--gold-dim);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.news-slider {
  position: relative;
}

.news-slider-viewport {
  position: relative;
  min-height: 320px;
}

.news-slide {
  display: none;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(201, 162, 39, 0.32);
  background: rgba(6, 10, 16, 0.82);
}

.news-slide.is-active {
  display: block;
}

.news-slide-media {
  width: 100%;
  height: 210px;
  object-fit: cover;
  display: block;
  background: #05070a;
}

.news-slide-body {
  padding: 0.85rem 0.95rem 1rem;
}

.news-slide-body h3 {
  margin: 0.25rem 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.08rem;
  color: var(--gold);
}

.news-slide-body p {
  margin: 0;
  color: var(--text-muted);
}

.news-slider-dots {
  display: flex;
  gap: 0.4rem;
  margin-top: 0.7rem;
  justify-content: center;
}

.news-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  padding: 0;
}

.news-dot.is-active {
  background: var(--gold);
  box-shadow: 0 0 8px rgba(232, 197, 71, 0.6);
}

@media (max-width: 980px) {
  .global-live--side {
    position: static;
    width: auto;
    padding: 1.15rem 0 0;
  }

  main {
    padding-right: 0;
  }

  .steps-grid {
    grid-template-columns: 1fr;
  }
}

/* Compact mode (manual + mobile overlap) */
html.is-compact .hero,
html.is-compact .hero--backdrop {
  padding: 2.5rem 0 2rem;
}

html.is-compact section.page-section {
  padding: 1.6rem 0;
}

html.is-compact .panel {
  padding: 1.1rem;
}

html.is-compact .brand {
  font-size: 0.85rem;
}

html.is-compact .nav-main a {
  font-size: 0.82rem;
  padding: 0.4rem 0.65rem;
}

@media (max-width: 640px) {
  html {
    font-size: 94%;
  }

  .hero,
  .hero--backdrop {
    padding: 2.5rem 0 2rem;
  }

  section.page-section {
    padding: 1.75rem 0;
  }

  .prefs-inner {
    justify-content: center;
  }
}

main {
  position: relative;
  z-index: 2;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Mobile nav */
@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .nav-main {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    padding: 0.5rem 0 0;
  }

  .nav-main.is-open {
    display: flex;
  }

  .nav-main a {
    padding: 0.65rem 0;
 border-radius: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }
}

/* ---- Image CAPTCHA ---- */
.captcha-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}

#captcha-img {
  border-radius: 8px;
  border: 1px solid rgba(168, 120, 255, 0.35);
  box-shadow: 0 0 12px rgba(140, 80, 255, 0.2);
  display: block;
  cursor: pointer;
  user-select: none;
  width: 160px;
  height: 52px;
}

#captcha-img:hover {
  border-color: rgba(168, 120, 255, 0.7);
  box-shadow: 0 0 18px rgba(140, 80, 255, 0.4);
}

.captcha-refresh {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(168, 120, 255, 0.4);
  border-radius: 8px;
  color: var(--gold);
  font-size: 1.4rem;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, transform 0.3s;
  flex-shrink: 0;
}

.captcha-refresh:hover {
  background: rgba(168, 120, 255, 0.15);
  transform: rotate(180deg);
}
