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

:root {
  --bg: #e9eef9;
  --bg2: #f2f6ff;
  --bg3: #ffffff;
  --bg4: #e4ebfb;
  --accent: #3e8bff;
  --accent2: #2563eb;
  --text: #1f2a40;
  --text-soft: #3f4d69;
  --text-muted: #6d7894;
  --line: rgba(42, 70, 120, 0.2);
  --discord: #5865f2;
  --facebook: #1877f2;
  --ok: #3ba55c;
  --bad: #ed4245;
  --radius: 14px;
  --radius-sm: 10px;
  --nav-h: 112px;
  --logo-size: 104px;
  --footer-logo-size: 118px;
  --float-logo-size: 112px;
  --inner-w: 1200px;
  --font-head: 'Cinzel', serif;
  --font-body: 'Nunito', sans-serif;
}

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

html {
  scroll-behavior: smooth;
}

body {
  background: radial-gradient(circle at top right, #d8e3ff 0%, var(--bg) 55%);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: #1f5fcb;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.hidden-form {
  display: none;
}

.notice,
.message,
.error {
  margin: 0 0 18px;
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}

.notice {
  background: rgba(88, 101, 242, 0.12);
  border: 1px solid rgba(88, 101, 242, 0.35);
}

.message,
.modern-message {
  background: rgba(62, 139, 255, 0.12);
  border: 1px solid rgba(62, 139, 255, 0.36);
  color: #1b3d74;
}

body.module-donate .modern-message,
body.module-donate .message,
body.module-purchase .modern-message,
body.module-purchase .message,
body.module-account.action-login .modern-message,
body.module-account.action-login .message {
  background: linear-gradient(180deg, rgba(105, 171, 255, 0.16), rgba(62, 139, 255, 0.1));
  border-color: rgba(62, 139, 255, 0.42);
  color: #164078;
  font-weight: 700;
}

.error,
.red {
  color: #ffd8d8;
  background: rgba(237, 66, 69, 0.14);
  border: 1px solid rgba(237, 66, 69, 0.42);
}

.green {
  color: #91ffb3;
}

.anchor {
  cursor: pointer;
}

#main-nav {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--nav-h);
  z-index: 1500;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(62, 139, 255, 0.34);
  transition: background 0.25s ease, border-color 0.25s ease;
}

#main-nav.scrolled {
  background: rgba(0, 0, 0, 0.96);
  border-bottom-color: var(--line);
}

.nav-inner {
  width: min(var(--inner-w), 100% - 32px);
  height: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 0;
  justify-self: start;
  max-height: var(--nav-h);
}

.nav-logo-img {
  width: auto;
  height: calc(var(--nav-h) - 10px);
  max-height: calc(var(--nav-h) - 8px);
  max-width: min(460px, 48vw);
  object-fit: contain;
  flex-shrink: 0;
  transform-origin: center center;
  will-change: transform, filter;
  transition: filter 0.25s ease;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.08);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  padding: 0;
}

.nav-toggle span {
  width: 18px;
  height: 2px;
  background: #fff;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  grid-column: 2;
  justify-self: center;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ecf0ff;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.07em;
  border-radius: 999px;
  padding: 8px 14px;
  border: 1px solid transparent;
}

.nav-links a.active,
.nav-links a:hover {
  color: var(--accent);
  border-color: rgba(62, 139, 255, 0.55);
  background: rgba(62, 139, 255, 0.2);
}

.nav-status-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  grid-column: 3;
  justify-self: end;
}

.nav-status {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  font-size: 12px;
  color: #c4cade;
}

.status-sep {
  opacity: 0.5;
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  display: inline-block;
  flex-shrink: 0;
}

.status-dot.checking {
  background: #8e96ac;
  box-shadow: 0 0 8px rgba(142, 150, 172, 0.55);
}

.status-dot.online {
  background: var(--ok);
  box-shadow: 0 0 10px rgba(59, 165, 92, 0.8);
}

.status-dot.offline {
  background: var(--bad);
  box-shadow: 0 0 10px rgba(237, 66, 69, 0.6);
}

.server-switch {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--text-muted);
}

.server-switch select {
  background: rgba(18, 21, 30, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #eef2ff;
  border-radius: 8px;
  padding: 4px 8px;
  font-size: 12px;
}

#page-content {
  min-height: 80vh;
  padding-top: var(--nav-h);
}

.flux-inner {
  width: min(1020px, 100% - 32px);
  margin: 0 auto;
  padding: 34px 0 56px;
}

body.inner-context.core-module #page-content.is-inner {
  background: linear-gradient(180deg, rgba(233, 238, 249, 0.92), rgba(236, 242, 255, 0.96));
}

body.inner-context.core-module #page-content.is-inner .flux-inner {
  width: min(1120px, 100% - 28px);
}

.module-shell {
  width: min(980px, 100%);
  margin: 0 auto 24px;
  display: grid;
  gap: 14px;
}

.module-card {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(56, 84, 136, 0.16);
  border-radius: 16px;
  box-shadow: 0 12px 28px rgba(42, 70, 120, 0.12);
  padding: 18px 18px 16px;
}

.auth-module-card {
  width: min(700px, 100%);
  margin: 0 auto;
}

.module-card h2,
.module-card h3 {
  margin-top: 0;
}

.module-title {
  margin: 0;
  font-family: var(--font-head);
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  color: #122545;
  line-height: 1.2;
}

.module-subtitle {
  margin: 6px 0 0;
  color: var(--text-soft);
  font-size: 14px;
}

.module-note {
  margin: 10px 0 0;
  border-radius: 10px;
  background: rgba(230, 238, 255, 0.72);
  border: 1px solid rgba(56, 84, 136, 0.14);
  color: var(--text-soft);
  padding: 10px 12px;
  font-size: 13px;
}

.module-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.module-actions a {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(180deg, var(--accent), var(--accent2));
  border: 1px solid rgba(62, 139, 255, 0.5);
}

.module-table-shell {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(56, 84, 136, 0.14);
  border-radius: 14px;
  overflow: hidden;
}

.module-table-shell table {
  margin: 0;
}

.module-table-shell img {
  display: inline-block;
  vertical-align: middle;
  margin-right: 6px;
}

.ranking-filter-form {
  margin: 4px 0 14px;
  padding: 12px 12px 10px;
  border-radius: 11px;
  border: 1px solid rgba(56, 84, 136, 0.16);
  background: rgba(247, 250, 255, 0.86);
}

.ranking-filter-form p {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.ranking-filter-form label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-soft);
}

.ranking-filter-form select {
  width: auto;
  min-width: 220px;
}

.module-ranking h3 {
  margin: 6px 0 10px;
  font-family: var(--font-head);
  font-size: 1.2rem;
  color: #17305d;
}

/* Ranking table color system override (replaces legacy black rows from flux.css) */
.module-ranking .module-table-shell .horizontal-table {
  border-collapse: separate;
  border-spacing: 0;
}

.module-ranking .module-table-shell .horizontal-table th {
  background: linear-gradient(180deg, #edf4ff, #dce9ff);
  color: #1f4fa8;
  border-color: rgba(54, 94, 165, 0.2);
  font-size: 11px;
  letter-spacing: 0.06em;
}

.module-ranking .module-table-shell .horizontal-table tbody tr td,
.module-ranking .module-table-shell .horizontal-table tr td {
  background: #f8fbff;
  color: #223756;
  border-color: rgba(54, 94, 165, 0.14);
}

.module-ranking .module-table-shell .horizontal-table tbody tr:nth-child(even) td {
  background: #eef4ff;
}

.module-ranking .module-table-shell .horizontal-table tbody tr:hover td {
  background: #e4efff;
}

.module-ranking .module-table-shell .horizontal-table a {
  color: #1f5fc8;
  font-weight: 700;
}

.module-ranking .module-table-shell .horizontal-table a:hover {
  color: #184ca4;
}

.module-ranking .module-table-shell .horizontal-table td:first-child {
  font-weight: 800;
  color: #173f8f;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.module-ranking .module-table-shell .horizontal-table td[align='right'] {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.module-ranking .module-table-shell .horizontal-table td[align='center'] {
  text-align: center;
}

.module-ranking .module-table-shell .horizontal-table td img {
  margin-right: 0;
  vertical-align: middle;
  border-radius: 4px;
}

.module-ranking .module-table-shell .horizontal-table tr.top-ranked td {
  background: linear-gradient(180deg, #fff8df, #f5ecd0);
  color: #2a250f;
}

.module-ranking .module-table-shell .horizontal-table tr.top-ranked a {
  color: #2a250f;
}

.module-ranking .module-table-shell .horizontal-table tr.empty-row {
  visibility: visible;
}

.module-ranking .module-table-shell .horizontal-table tr.empty-row td {
  color: transparent;
  background: #f2f6ff;
}

.module-downloads .download-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 12px;
}

.module-downloads .download-card {
  border-radius: 12px;
  border: 1px solid rgba(56, 84, 136, 0.16);
  background: rgba(247, 250, 255, 0.86);
  padding: 14px 14px 12px;
}

.module-downloads .download-card h3 {
  margin: 0 0 6px;
  font-family: var(--font-head);
  color: #17305d;
}

.module-downloads .download-card p {
  margin: 0 0 10px;
  font-size: 13px;
  color: var(--text-soft);
}

.module-downloads .download-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.module-downloads .download-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: #fff;
  background: linear-gradient(180deg, var(--accent), var(--accent2));
  border: 1px solid rgba(62, 139, 255, 0.45);
}

.module-downloads .download-grid.single-group {
  grid-template-columns: 1fr;
  max-width: 640px;
  margin-inline: auto;
}

.module-downloads .download-card.single-card {
  text-align: center;
  padding: 16px 16px 14px;
}

.module-downloads .download-card.single-card .download-links {
  justify-content: center;
}

.module-pages-content .feature-layout,
.module-features-page .feature-layout {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.module-pages-content .feature-layout-single {
  grid-template-columns: 1fr;
  max-width: 760px;
  margin-inline: auto;
}

.module-pages-content .feature-card,
.module-features-page .feature-card {
  border-radius: 12px;
  border: 1px solid rgba(56, 84, 136, 0.16);
  background: rgba(247, 250, 255, 0.86);
  padding: 14px;
}

.module-pages-content .feature-card h3,
.module-features-page .feature-card h3 {
  margin: 0 0 8px;
  font-family: var(--font-head);
  color: #17305d;
}

.feature-bullet-list {
  display: grid;
  gap: 6px;
}

.feature-bullet-list li {
  position: relative;
  padding-left: 22px;
  color: var(--text-soft);
  line-height: 1.45;
}

.feature-bullet-list li::before {
  content: '🔹';
  position: absolute;
  left: 0;
  top: 0;
}

.module-features-page .feature-section {
  margin-top: 16px;
}

.module-features-page .feature-section + .feature-section {
  margin-top: 18px;
}

.module-features-page .feature-heading {
  margin: 0 0 10px;
  font-family: var(--font-head);
  font-size: 1.12rem;
  color: #17305d;
}

.module-features-page .feature-highlight-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.module-features-page .feature-highlight-card {
  position: relative;
  border-radius: 12px;
  border: 1px solid rgba(56, 84, 136, 0.16);
  background: linear-gradient(180deg, rgba(247, 250, 255, 0.95), rgba(235, 243, 255, 0.92));
  padding: 11px 12px 11px 34px;
  color: #25365a;
  font-weight: 700;
  line-height: 1.35;
  box-shadow: 0 8px 18px rgba(42, 70, 120, 0.08);
}

.module-features-page .feature-highlight-card::before {
  content: '✦';
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent2);
  font-size: 13px;
  text-shadow: 0 0 12px rgba(62, 139, 255, 0.45);
}

.cms-content-body {
  margin-top: 10px;
  color: var(--text-soft);
  line-height: 1.7;
}

.module-empty {
  margin: 0;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(56, 84, 136, 0.14);
  background: rgba(255, 255, 255, 0.75);
  color: var(--text-soft);
}

body.inner-context.core-module #page-content.is-inner > .flux-inner > h2 {
  margin: 0 0 14px;
  font-family: var(--font-head);
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  color: #122545;
}

body.inner-context.core-module #page-content.is-inner > .flux-inner > h3 {
  margin: 12px 0 10px;
  font-family: var(--font-head);
  color: #17305d;
}

body.inner-context.core-module #page-content.is-inner .search-form {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(56, 84, 136, 0.16);
  border-radius: 12px;
  padding: 14px;
}

body.inner-context.core-module #page-content.is-inner table.horizontal-table,
body.inner-context.core-module #page-content.is-inner table.vertical-table,
body.inner-context.core-module #page-content.is-inner table.generic-form-table {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(56, 84, 136, 0.14);
  border-radius: 12px;
  overflow: hidden;
}

body.inner-context.core-module #page-content.is-inner table.horizontal-table th,
body.inner-context.core-module #page-content.is-inner table.vertical-table th,
body.inner-context.core-module #page-content.is-inner table.generic-form-table th {
  position: sticky;
  top: 0;
  z-index: 1;
}

body.inner-context.core-module #page-content.is-inner .module-captcha {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  justify-items: start;
}

body.inner-context.core-module #page-content.is-inner .module-captcha img {
  width: 145px;
  height: 50px;
  max-width: 145px;
  border-radius: 8px;
  border: 1px solid rgba(56, 84, 136, 0.3);
  background: #fff;
}

#submenu,
#pagemenu {
  margin-bottom: 16px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(56, 84, 136, 0.16);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  color: var(--text-soft);
  font-size: 14px;
}

#submenu a,
#pagemenu a {
  color: var(--accent);
}

#hero {
  position: relative;
  min-height: clamp(650px, calc(100vh - var(--nav-h) + 44px), 790px);
  padding: 36px 0 36px;
  overflow: hidden;
  background:
    radial-gradient(circle at top left, rgba(241, 247, 255, 0.72) 0%, rgba(241, 247, 255, 0.06) 54%, rgba(241, 247, 255, 0) 72%),
    var(--hero-bg-image) center 60% / cover no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(92deg, rgba(238, 245, 255, 0.68) 0%, rgba(238, 245, 255, 0.3) 36%, rgba(238, 245, 255, 0.09) 60%, rgba(238, 245, 255, 0.02) 100%),
    linear-gradient(180deg, rgba(225, 236, 255, 0.19) 0%, rgba(225, 236, 255, 0.1) 52%, rgba(225, 236, 255, 0.2) 74%, rgba(225, 236, 255, 0.32) 100%);
}

.hero-shell {
  width: min(var(--inner-w), 100% - 32px);
  min-height: inherit;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 0;
  position: relative;
  z-index: 2;
}

body.page-home .hero-scroll-dock {
  position: absolute;
  left: 50%;
  bottom: 10px;
  transform: translateX(-50%);
  z-index: 4;
  width: min(var(--inner-w), 100% - 32px);
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.hero-content {
  width: min(560px, 100%);
  justify-self: start;
  margin-right: auto;
  padding: 12px 0;
  position: relative;
  z-index: 3;
}

.hero-kicker {
  margin: 0 0 8px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #274986;
  font-weight: 900;
}

.hero-title {
  margin: 0 0 14px;
  font-family: var(--font-head);
  font-size: clamp(2.1rem, 4.3vw, 3.5rem);
  line-height: 1.15;
  color: var(--text);
  text-shadow: 0 2px 9px rgba(245, 250, 255, 0.46);
}

.hero-title span {
  color: var(--accent);
}

.hero-sub {
  margin: 0 0 26px;
  color: var(--text-soft);
  font-weight: 800;
  text-shadow: 0 1px 6px rgba(245, 250, 255, 0.4);
}

body.page-home #hero::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 84px;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(233, 238, 249, 0) 0%, rgba(233, 238, 249, 0.42) 60%, rgba(233, 238, 249, 0.76) 100%);
}

body.page-home .hero-content {
  background: linear-gradient(180deg, rgba(248, 252, 255, 0.74) 0%, rgba(236, 244, 255, 0.58) 100%);
  border: 1px solid rgba(84, 114, 170, 0.28);
  border-radius: 20px;
  padding: 20px 22px 22px;
  box-shadow: 0 16px 34px rgba(24, 46, 90, 0.2);
  backdrop-filter: blur(6px);
}

body.page-home .hero-kicker {
  color: #1a3f7d;
}

body.page-home .hero-title {
  color: #0f2b57;
  text-shadow: 0 2px 8px rgba(255, 255, 255, 0.42);
}

body.page-home .hero-sub {
  color: #1f3657;
  text-shadow: 0 1px 4px rgba(255, 255, 255, 0.35);
}

body.page-home .hero-scroll-hint {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: #21437d;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 12px;
  background: rgba(246, 250, 255, 0.58);
  border: 1px solid rgba(84, 114, 170, 0.22);
  box-shadow: 0 8px 18px rgba(24, 46, 90, 0.14);
  pointer-events: auto;
}

body.page-home .hero-scroll-hint:hover {
  color: #174083;
  background: rgba(246, 250, 255, 0.72);
}

body.page-home .hero-scroll-chevron {
  width: 12px;
  height: 12px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  animation: heroScrollChevronBounce 1.5s ease-in-out infinite;
}

body.page-home #home-intro .section-inner {
  padding: 52px 0 58px;
}

body.page-home #news-section .section-inner,
body.page-home #home-quicklinks .section-inner {
  padding: 62px 0;
}

body.page-home #home-cta .home-cta-inner {
  padding: 72px 0;
}

@media (min-width: 921px) and (max-height: 980px) {
  #hero {
    min-height: clamp(560px, calc(100vh - var(--nav-h) - 8px), 650px);
    padding: 24px 0 22px;
  }

  .hero-shell {
    min-height: auto;
  }

  .hero-overlay {
    background:
      linear-gradient(92deg, rgba(238, 245, 255, 0.56) 0%, rgba(238, 245, 255, 0.22) 36%, rgba(238, 245, 255, 0.07) 60%, rgba(238, 245, 255, 0.01) 100%),
      linear-gradient(180deg, rgba(225, 236, 255, 0.12) 0%, rgba(225, 236, 255, 0.07) 52%, rgba(225, 236, 255, 0.16) 74%, rgba(225, 236, 255, 0.24) 100%);
  }

  .hero-content {
    width: min(470px, 100%);
  }

  body.page-home .hero-content {
    padding: 14px 16px 16px;
    border-radius: 16px;
  }

  .hero-title {
    font-size: clamp(1.78rem, 3.4vw, 2.75rem);
    margin-bottom: 8px;
  }

  .hero-sub {
    font-size: 14px;
    margin-bottom: 18px;
  }

  body.page-home #hero::after {
    height: 52px;
  }

  body.page-home .hero-scroll-dock {
    position: relative;
    left: auto;
    bottom: auto;
    transform: none;
    margin: 8px auto 0;
    justify-content: flex-start;
    pointer-events: auto;
  }

  body.page-home .hero-scroll-hint {
    margin-top: 0;
  }
}

@keyframes heroScrollHintFloat {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
}

@keyframes heroScrollChevronBounce {
  0%, 100% {
    transform: rotate(45deg) translate(0, 0);
  }
  50% {
    transform: rotate(45deg) translate(2px, 2px);
  }
}

.hero-btns {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-primary,
.btn-secondary,
.btn-discord,
.btn-facebook {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: transform 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary,
.btn-discord,
.btn-facebook {
  color: #fff;
}

.btn-primary {
  background: linear-gradient(180deg, var(--accent), var(--accent2));
  color: #f6faff;
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.38);
}

.btn-secondary {
  border-color: rgba(56, 84, 136, 0.28);
  color: var(--text);
  background: rgba(255, 255, 255, 0.9);
}

.btn-discord {
  background: var(--discord);
  box-shadow: 0 10px 22px rgba(88, 101, 242, 0.35);
}

.btn-facebook {
  background: var(--facebook);
  box-shadow: 0 10px 22px rgba(24, 119, 242, 0.35);
}

.btn-primary:hover,
.btn-secondary:hover,
.btn-discord:hover,
.btn-facebook:hover {
  transform: translateY(-2px);
  filter: brightness(1.07);
}

.emoji-btn {
  text-transform: none !important;
  letter-spacing: 0.02em !important;
  gap: 6px;
}

.icon-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.icon-inline {
  width: 16px;
  height: 16px;
  object-fit: contain;
  display: inline-block;
  flex-shrink: 0;
}

#ro-discord-btn .icon-inline {
  width: 15px;
  height: 15px;
}

.btn-sprite {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

#home-intro {
  background: linear-gradient(180deg, #f3f7ff 0%, #eef3ff 100%);
  border-top: 1px solid rgba(56, 84, 136, 0.16);
  border-bottom: 1px solid rgba(56, 84, 136, 0.12);
}

.home-intro-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 280px;
  gap: 26px;
  align-items: center;
}

.home-intro-copy h2 {
  margin: 0 0 12px;
  font-family: var(--font-head);
  color: #17305d;
  font-size: clamp(2rem, 3.6vw, 2.9rem);
  line-height: 1.1;
}

.home-intro-copy p {
  margin: 0;
  color: var(--text-soft);
  font-size: 15px;
}

.home-intro-cta {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.home-intro-info {
  display: grid;
  gap: 12px;
}

.home-info-card {
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(58, 84, 133, 0.16);
  box-shadow: 0 8px 20px rgba(33, 56, 104, 0.1);
  padding: 14px 15px;
}

.home-info-card h3 {
  margin: 0 0 8px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #3769c5;
}

.home-info-card p {
  margin: 0;
  color: #304364;
  font-weight: 700;
  line-height: 1.45;
}

.home-intro-emblem {
  display: flex;
  justify-content: center;
}

.home-intro-emblem img {
  width: min(100%, 250px);
  aspect-ratio: 1 / 1;
  object-fit: contain;
  filter: drop-shadow(0 18px 24px rgba(35, 58, 108, 0.22));
}

.section-inner {
  width: min(var(--inner-w), 100% - 32px);
  margin: 0 auto;
  padding: 60px 0;
}

.section-title {
  margin: 0 0 30px;
  font-family: var(--font-head);
  text-align: center;
  color: var(--text);
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
}

.section-title span {
  color: var(--accent);
}

.section-subtitle {
  margin: -14px auto 26px;
  max-width: 720px;
  color: var(--text-soft);
  text-align: center;
}

#news-section {
  background: #f8faff;
  border-top: 1px solid rgba(56, 84, 136, 0.12);
  border-bottom: 1px solid rgba(56, 84, 136, 0.12);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.news-card {
  background: linear-gradient(180deg, #ffffff 0%, #f6f9ff 100%);
  border: 1px solid rgba(56, 84, 136, 0.2);
  border-radius: var(--radius);
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.2s ease, border-color 0.2s ease;
  box-shadow: 0 10px 24px rgba(33, 56, 104, 0.08);
}

.news-card:hover {
  transform: translateY(-3px);
  border-color: rgba(62, 139, 255, 0.46);
}

.news-icon {
  width: 50px;
  height: 50px;
  object-fit: contain;
  margin-bottom: 6px;
}

.news-date {
  margin-bottom: 8px;
  color: var(--accent);
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.news-card-title {
  margin: 0 0 8px;
  color: var(--text);
  font-family: var(--font-head);
  font-size: 1.3rem;
  min-height: 2.2em;
}

.news-card p {
  margin: 0 0 16px;
  color: var(--text-soft);
  flex: 1;
}

.read-more {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #f8fbff;
  background: #1c2334;
  border-radius: 8px;
  padding: 8px 12px;
  border: 1px solid #202a40;
}

.read-more:hover {
  color: #f8fbff;
  background: #172133;
}

.no-news {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--text-muted);
}

#home-cta {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(246, 250, 255, 0.9), rgba(236, 242, 255, 0.94)),
    var(--home-cta-bg) center / cover no-repeat;
  border-bottom: 1px solid rgba(56, 84, 136, 0.12);
}

.home-cta-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(62, 139, 255, 0.16), transparent 56%);
}

.home-cta-inner {
  position: relative;
  width: min(760px, 100% - 32px);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 80px 0;
}

.home-cta-inner h2 {
  margin: 0 0 10px;
  color: var(--text);
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
}

.home-cta-inner p {
  margin: 0 0 24px;
  color: var(--text-soft);
}

#home-quicklinks {
  background: #f4f8ff;
}

.quicklinks-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.quicklinks-col {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(58, 84, 133, 0.16);
  border-radius: 14px;
  box-shadow: 0 8px 20px rgba(33, 56, 104, 0.08);
  padding: 18px 16px;
}

.quicklinks-col h3 {
  margin: 0 0 10px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #2b54a0;
}

.quicklinks-col a {
  display: block;
  padding: 8px 0;
  font-weight: 700;
  color: #2f456b;
  border-top: 1px solid rgba(58, 84, 133, 0.12);
}

.quicklinks-col a:first-of-type {
  border-top: 0;
}

.quicklinks-col a:hover {
  color: #1e5fcc;
}

.quicklinks-highlight ul {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.quicklinks-highlight li {
  position: relative;
  padding-left: 14px;
  color: #2f456b;
  font-weight: 700;
}

.quicklinks-highlight li::before {
  content: '•';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
  font-weight: 900;
}

#main-footer {
  background: var(--bg4);
  border-top: 1px solid var(--line);
  padding: 60px 0 24px;
}

.footer-top {
  width: min(var(--inner-w), 100% - 32px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 34px;
}

.footer-logo-text {
  margin: 0;
  color: var(--text);
  font-family: var(--font-head);
}

.footer-brand-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.footer-logo-img {
  width: var(--footer-logo-size);
  height: var(--footer-logo-size);
  object-fit: contain;
  flex-shrink: 0;
  transform-origin: center center;
  will-change: transform, filter;
  transition: filter 0.25s ease;
}

.footer-col h4 {
  margin: 0 0 14px;
  color: var(--accent);
  font-family: var(--font-head);
  text-transform: uppercase;
  font-size: 14px;
  letter-spacing: 0.08em;
}

.footer-col li {
  margin-bottom: 8px;
}

.footer-col li a,
.footer-brand p {
  color: var(--text-muted);
}

.footer-socials {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 8px 14px;
  color: #fff;
}

.social-btn.discord {
  background: var(--discord);
}

.social-btn.facebook {
  background: var(--facebook);
}

.footer-bottom {
  width: min(var(--inner-w), 100% - 32px);
  margin: 28px auto 0;
  padding-top: 18px;
  border-top: 1px solid rgba(56, 84, 136, 0.18);
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
}

.footer-bottom strong {
  color: var(--accent);
}

.footer-countdown {
  margin: 8px 0 0;
  color: var(--accent);
  font-weight: 800;
  letter-spacing: 0.04em;
}

.footer-meta {
  margin: 6px 0 0;
}

#ro-float-widget {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 1600;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

#ro-float-logo {
  width: var(--float-logo-size);
  height: var(--float-logo-size);
  border-radius: 0;
  overflow: visible;
  border: 0;
  box-shadow: none;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
}

.float-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0;
  transform-origin: center center;
  will-change: transform, filter;
  transition: filter 0.25s ease;
  filter: drop-shadow(0 10px 20px rgba(21, 78, 186, 0.34));
}

.logo-hover {
  filter: drop-shadow(0 0 18px rgba(62, 139, 255, 0.52));
}

.badge-fallback {
  color: var(--text);
  font-family: var(--font-head);
  font-size: 18px;
}

#ro-discord-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  padding: 10px 18px;
  color: #fff;
  background: var(--discord);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 800;
  font-size: 12px;
  box-shadow: 0 8px 18px rgba(88, 101, 242, 0.4);
}

.search-form {
  display: none;
  margin: 12px 0;
  padding: 12px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(56, 84, 136, 0.16);
}

.search-form.is-open {
  display: block;
}

.toggler {
  margin: 0 0 10px;
}

.td-action,
.action {
  white-space: nowrap;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 14px;
}

table th,
table td {
  border-bottom: 1px solid rgba(56, 84, 136, 0.14);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}

table th {
  color: var(--accent);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: rgba(230, 238, 255, 0.75);
}

table td {
  color: var(--text-soft);
}

input[type='text'],
input[type='password'],
input[type='email'],
input[type='number'],
input[type='file'],
select,
textarea {
  width: 100%;
  border-radius: 9px;
  border: 1px solid rgba(56, 84, 136, 0.28);
  background: #fff;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14px;
  padding: 10px 12px;
}

textarea {
  min-height: 120px;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
}

input[type='submit'],
button[type='submit'],
input[type='button'],
input[type='reset'] {
  width: auto;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--accent), var(--accent2));
  color: #f6faff;
  font-weight: 800;
  padding: 10px 18px;
  cursor: pointer;
}

input[type='submit']:hover,
button[type='submit']:hover,
input[type='button']:hover,
input[type='reset']:hover {
  filter: brightness(1.08);
}

.not-applicable {
  color: var(--text-muted);
  font-style: italic;
}

/* Registration Page */
.register-page {
  width: min(760px, 100%);
  margin: 4px auto 36px;
  padding: 0;
}

.register-quick-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
  color: var(--text-soft);
  font-weight: 700;
}

.register-quick-label {
  font-size: 15px;
}

.register-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 8px 15px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: #fff;
  background: linear-gradient(180deg, var(--accent), var(--accent2));
  border: 1px solid rgba(62, 139, 255, 0.45);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.25);
}

.register-chip:hover,
.register-chip.active {
  color: #fff;
  filter: brightness(1.08);
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.34);
}

.register-card {
  width: min(700px, 100%);
  margin: 0 auto;
  padding: 26px 22px 22px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(62, 139, 255, 0.26);
  box-shadow: 0 16px 36px rgba(42, 70, 120, 0.15);
}

.register-card-head {
  text-align: center;
  margin-bottom: 14px;
}

.register-card-head h2 {
  margin: 0;
  font-family: var(--font-body);
  font-size: clamp(32px, 3.5vw, 44px);
  line-height: 1.1;
  font-weight: 800;
  color: #0f1c35;
}

.register-card-head p {
  margin: 8px 0 0;
  color: var(--text-soft);
}

.register-card-head p a {
  color: #0d2f67;
  text-decoration: underline;
  font-weight: 800;
}

.register-notes {
  margin: 0 0 14px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(230, 238, 255, 0.72);
  border: 1px solid rgba(56, 84, 136, 0.16);
}

.register-notes li {
  position: relative;
  padding-left: 14px;
  color: #3f4d69;
  font-size: 13px;
  line-height: 1.4;
}

.register-notes li + li {
  margin-top: 4px;
}

.register-notes li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--accent);
  position: absolute;
  top: 7px;
  left: 0;
}

.register-error {
  margin: 0 0 12px;
  border-radius: 10px;
  padding: 10px 12px;
  background: rgba(237, 66, 69, 0.16);
  border: 1px solid rgba(237, 66, 69, 0.34);
  color: #8f1f28;
  font-weight: 800;
}

.register-form {
  display: grid;
  gap: 13px;
}

.register-row {
  display: grid;
  gap: 7px;
}

.register-row > label,
.register-row-label {
  font-size: 13px;
  font-weight: 800;
  color: #1f2a40;
}

.register-row input[type='text'],
.register-row input[type='password'],
.register-row select {
  min-height: 46px;
  border-radius: 10px;
}

.password-input-wrap {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: stretch;
  gap: 8px;
}

.password-toggle-btn {
  min-width: 88px;
  border: 1px solid rgba(56, 84, 136, 0.3);
  border-radius: 10px;
  background: #f6f9ff;
  color: #12203d;
  font-weight: 800;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.password-toggle-btn:hover,
.password-toggle-btn:focus-visible {
  background: #e9f1ff;
  border-color: rgba(62, 139, 255, 0.55);
}

.password-toggle-btn.is-active {
  background: rgba(62, 139, 255, 0.16);
  border-color: rgba(62, 139, 255, 0.5);
}

.register-gender {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding-top: 2px;
}

.register-gender label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--text-soft);
  font-weight: 700;
}

.register-date-selects {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.register-date-col {
  display: grid;
  gap: 6px;
}

.register-date-col label {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 800;
}

.register-date-col select {
  font-size: 14px;
  min-height: 46px;
}

.register-captcha-wrap {
  display: grid;
  grid-template-columns: 1fr;
  justify-items: start;
  align-items: start;
  justify-content: start;
  gap: 8px;
}

.register-captcha-wrap img {
  width: 145px;
  height: 50px;
  max-width: 145px;
  border-radius: 8px;
  border: 1px solid rgba(56, 84, 136, 0.3);
  background: #fff;
  display: block;
}

.captcha-refresh-btn {
  border: 1px solid rgba(56, 84, 136, 0.26);
  border-radius: 8px;
  background: #f6f9ff;
  color: #0f2f68;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  padding: 8px 12px;
  min-height: 34px;
  width: auto;
  cursor: pointer;
}

.captcha-refresh-btn:hover,
.captcha-refresh-btn:focus-visible {
  background: #e8f0ff;
  border-color: rgba(62, 139, 255, 0.55);
}

.register-agreement {
  margin: 2px 0 0;
  font-size: 13px;
  color: var(--text-soft);
  line-height: 1.5;
}

.register-submit-btn {
  margin-top: 4px;
  min-height: 50px;
  width: 100%;
  border-radius: 12px;
  border: 0;
  background: linear-gradient(180deg, var(--accent), var(--accent2));
  color: #fff;
  font-size: 20px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(37, 99, 235, 0.32);
}

.register-submit-btn:hover {
  filter: brightness(1.07);
}

.module-account-view .module-card {
  padding: 26px 24px;
}

.module-account-view .module-title {
  margin-bottom: 14px;
}

.module-account-view .account-view-alert {
  margin-bottom: 14px;
}

.module-account-view .account-view-subtitle {
  margin: 26px 0 12px;
  font-size: 30px;
  line-height: 1.05;
}

.module-account-view .account-view-note {
  margin: 10px 0 12px;
  color: var(--text-muted);
  font-size: 14px;
}

.module-account-view .account-summary-table,
.module-account-view .account-banlog-table,
.module-account-view .account-char-table,
.module-account-view .account-storage-table {
  margin: 0;
}

.module-account-view .account-summary-table td,
.module-account-view .account-char-table td,
.module-account-view .account-storage-table td {
  color: #21345d;
}

.module-account-view .account-summary-table th,
.module-account-view .account-char-table th,
.module-account-view .account-storage-table th {
  color: #1f4a9f;
}

.module-account-view .online {
  color: #1f8f53;
  font-weight: 700;
}

.module-account-view .offline {
  color: #7f8a9f;
  font-weight: 700;
}

.module-account-view .block-link {
  font-weight: 700;
}

@media (max-width: 1080px) {
  .server-switch {
    display: none;
  }

  #hero {
    min-height: clamp(650px, calc(100vh - var(--nav-h) + 86px), 820px);
    padding: 34px 0 54px;
    background-size: cover;
    background-position: 54% 60%;
  }

  .hero-overlay {
    background:
      linear-gradient(92deg, rgba(238, 245, 255, 0.63) 0%, rgba(238, 245, 255, 0.28) 36%, rgba(238, 245, 255, 0.09) 60%, rgba(238, 245, 255, 0.01) 100%),
      linear-gradient(180deg, rgba(225, 236, 255, 0.16) 0%, rgba(225, 236, 255, 0.09) 52%, rgba(225, 236, 255, 0.2) 74%, rgba(225, 236, 255, 0.3) 100%);
  }

  .hero-content {
    width: min(520px, 100%);
  }

  body.page-home .hero-content {
    padding: 18px 20px 20px;
  }

  body.page-home #hero::after {
    height: 96px;
  }

  body.page-home #home-intro .section-inner {
    padding: 48px 0 54px;
  }

  body.page-home #news-section .section-inner,
  body.page-home #home-quicklinks .section-inner {
    padding: 56px 0;
  }

  body.page-home #home-cta .home-cta-inner {
    padding: 64px 0;
  }

  .home-intro-grid {
    grid-template-columns: 1fr 1fr;
    gap: 18px;
  }

  .home-intro-emblem {
    grid-column: 1 / -1;
  }

  .quicklinks-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 920px) {
  :root {
    --nav-h: 96px;
    --logo-size: 82px;
  }

  .nav-inner {
    grid-template-columns: 1fr auto;
  }

  .nav-logo {
    grid-column: 1;
    min-width: 0;
    gap: 0;
  }

  .nav-logo-img {
    height: calc(var(--nav-h) - 14px);
    max-height: calc(var(--nav-h) - 12px);
    max-width: min(340px, 58vw);
  }

  .nav-toggle {
    display: inline-flex;
    margin-left: 0;
    grid-column: 2;
    justify-self: end;
  }

  .nav-links {
    position: absolute;
    top: var(--nav-h);
    left: 12px;
    right: 12px;
    margin: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 12px 14px;
    background: rgba(0, 0, 0, 0.97);
    border-bottom: 1px solid var(--line);
    border-radius: 0 0 12px 12px;
  }

  .nav-open .nav-links {
    display: flex;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    width: 100%;
    justify-content: flex-start;
    border-radius: 9px;
  }

  .nav-status-wrap {
    display: none;
  }

  .hero-shell {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  #hero {
    min-height: clamp(560px, calc(100vh - var(--nav-h) + 58px), 740px);
    padding: 26px 0 44px;
    background-size: cover;
    background-position: 50% 57%;
  }

  .hero-overlay {
    background:
      linear-gradient(92deg, rgba(238, 245, 255, 0.58) 0%, rgba(238, 245, 255, 0.24) 36%, rgba(238, 245, 255, 0.08) 60%, rgba(238, 245, 255, 0.01) 100%),
      linear-gradient(180deg, rgba(225, 236, 255, 0.14) 0%, rgba(225, 236, 255, 0.08) 52%, rgba(225, 236, 255, 0.18) 74%, rgba(225, 236, 255, 0.27) 100%);
  }

  .hero-content {
    width: min(440px, 100%);
    justify-self: center;
    margin: 0 auto;
  }

  body.page-home .hero-content {
    padding: 16px 16px 18px;
    border-radius: 16px;
  }

  body.page-home .hero-scroll-hint {
    font-size: 11px;
    letter-spacing: 0.07em;
  }

  body.page-home .hero-scroll-dock {
    position: relative;
    left: auto;
    bottom: auto;
    transform: none;
    margin: 10px auto 0;
    justify-content: center;
    pointer-events: auto;
  }

  body.page-home #hero::after {
    height: 84px;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .news-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .register-card {
    width: min(680px, 100%);
  }

  .module-downloads .download-grid,
  .module-pages-content .feature-layout,
  .module-features-page .feature-layout,
  .module-features-page .feature-highlight-grid {
    grid-template-columns: 1fr;
  }

  .home-intro-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .home-intro-emblem {
    grid-column: auto;
  }
}

@media (max-width: 640px) {
  :root {
    --nav-h: 86px;
  }

  .nav-logo-img {
    height: calc(var(--nav-h) - 16px);
    max-height: calc(var(--nav-h) - 14px);
    max-width: min(280px, 62vw);
  }

  .section-inner {
    padding: 60px 0;
  }

  #hero {
    min-height: clamp(500px, calc(100vh - var(--nav-h) + 32px), 660px);
    padding: 18px 0 34px;
    background-size: cover;
    background-position: 50% 58%;
  }

  .hero-overlay {
    background:
      linear-gradient(92deg, rgba(238, 245, 255, 0.54) 0%, rgba(238, 245, 255, 0.22) 36%, rgba(238, 245, 255, 0.08) 60%, rgba(238, 245, 255, 0.01) 100%),
      linear-gradient(180deg, rgba(225, 236, 255, 0.12) 0%, rgba(225, 236, 255, 0.08) 50%, rgba(225, 236, 255, 0.17) 74%, rgba(225, 236, 255, 0.25) 100%);
  }

  .hero-content {
    width: min(330px, 100%);
    padding: 8px 0;
    text-align: left;
    justify-self: center;
    margin: 0 auto;
  }

  body.page-home .hero-content {
    width: min(334px, 100%);
    padding: 11px 11px 13px;
    border-radius: 14px;
  }

  body.page-home #hero::after {
    height: 60px;
  }

  .hero-kicker {
    font-size: 11px;
  }

  .hero-title {
    font-size: clamp(1.9rem, 8.8vw, 2.4rem);
  }

  .home-intro-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  body.page-home #home-intro .section-inner {
    padding: 40px 0 44px;
  }

  .home-intro-cta .btn-primary,
  .home-intro-cta .btn-secondary {
    width: 100%;
  }

  .news-grid,
  .quicklinks-grid {
    grid-template-columns: 1fr;
  }

  .home-cta-inner {
    padding: 48px 0;
  }

  body.page-home .hero-scroll-hint {
    margin-top: 0;
    padding: 6px 10px;
    gap: 2px;
  }

  body.page-home .hero-scroll-dock {
    margin-top: 8px;
  }

  .footer-top {
    grid-template-columns: 1fr;
  }

  #ro-float-widget {
    right: 12px;
    bottom: 12px;
  }

  .register-page {
    margin-top: 0;
  }

  .register-quick-menu {
    justify-content: flex-start;
    gap: 6px;
  }

  .register-quick-label {
    width: 100%;
  }

  .register-card {
    padding: 18px 14px 16px;
    border-radius: 14px;
  }

  .register-card-head h2 {
    font-size: clamp(28px, 8vw, 36px);
  }

  .password-input-wrap {
    grid-template-columns: 1fr;
  }

  .password-toggle-btn {
    min-height: 42px;
  }

  .register-date-selects {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .ranking-filter-form p {
    align-items: stretch;
  }

  .ranking-filter-form select {
    width: 100%;
    min-width: 0;
  }

  .register-captcha-wrap img {
    width: 145px;
    max-width: 145px;
  }

  .module-account-view .module-card {
    padding: 18px 14px;
  }

  .module-account-view .account-view-subtitle {
    font-size: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.page-home .hero-scroll-hint,
  body.page-home .hero-scroll-chevron {
    animation: none !important;
  }
}
