:root {
  --bg: #090c12;
  --panel: rgba(17, 24, 39, 0.88);
  --panel-strong: rgba(8, 13, 24, 0.94);
  --line: rgba(148, 163, 184, 0.24);
  --text: #eef2f7;
  --muted: #a8b3c4;
  --soft: #d7dde8;
  --cyan: #38d3ee;
  --gold: #f6c65b;
  --green: #54d18a;
  --red: #fb7185;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
}

/* High-end WOW-style presentation layer */
body {
  background:
    radial-gradient(circle at 50% 0%, rgba(56, 211, 238, 0.18), transparent 32%),
    radial-gradient(circle at 20% 32%, rgba(246, 198, 91, 0.12), transparent 28%),
    linear-gradient(rgba(9, 12, 18, 0.82), rgba(9, 12, 18, 0.95)),
    url("showcase/teleport.png") center top / cover fixed no-repeat,
    #090c12;
  overflow-x: hidden;
}

body::before,
body::after {
  position: fixed;
  inset: 0;
  pointer-events: none;
  content: "";
  z-index: 0;
}

.site-header,
main,
.site-footer,
.back-top {
  position: relative;
  z-index: 1;
}

body::before {
  background-image:
    radial-gradient(circle, rgba(255,255,255,.34) 0 1px, transparent 1.5px),
    radial-gradient(circle, rgba(56,211,238,.26) 0 1px, transparent 1.6px);
  background-size: 120px 120px, 210px 210px;
  animation: starDrift 32s linear infinite;
  opacity: .25;
}

body::after {
  background: linear-gradient(120deg, transparent 10%, rgba(56, 211, 238, .08), transparent 42%);
  transform: translateX(-40%);
  animation: lightSweep 9s ease-in-out infinite;
  opacity: .75;
}

.server-strip a,
.site-footer a {
  padding: 9px 12px;
  border: 1px solid rgba(56, 211, 238, .45);
  border-radius: 8px;
  color: #dff8ff;
  text-decoration: none;
  background: rgba(56, 211, 238, .1);
}

.server-strip a:hover,
.site-footer a:hover {
  border-color: var(--gold);
  color: #fff4c7;
}

.quick-panel a,
.feature-card,
.version-node,
.showcase-card {
  transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.quick-panel a:hover,
.feature-card:hover,
.version-node:hover,
.showcase-card:hover {
  transform: translateY(-3px);
  border-color: rgba(246, 198, 91, .55);
  box-shadow: 0 18px 50px rgba(56, 211, 238, .12);
}

.section-block,
.register-card,
.log-hero,
.ranking-card,
.password-panel,
.showcase-card,
.system-index {
  position: relative;
  overflow: hidden;
}

.section-block::before,
.register-card::before,
.log-hero::before,
.ranking-card::before,
.password-panel::before,
.showcase-card::before {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(246,198,91,.18), transparent 24%, rgba(56,211,238,.12) 80%, transparent);
  opacity: .72;
}

.text-link {
  color: var(--cyan);
  font-weight: 800;
  text-decoration: none;
}

.version-map {
  background:
    linear-gradient(rgba(8, 13, 24, .86), rgba(8, 13, 24, .92)),
    url("showcase/xiuxian.png") center / cover no-repeat;
}

.intro-section {
  display: grid;
  gap: 18px;
  margin: 0 0 22px;
  padding: clamp(20px, 4vw, 34px);
  border: 1px solid rgba(246, 198, 91, .26);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(8, 13, 24, .92), rgba(8, 13, 24, .72)),
    url("showcase/world.png") center / cover no-repeat;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.intro-section::before {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 0%, rgba(246, 198, 91, .18), transparent 34%),
    linear-gradient(135deg, rgba(56, 211, 238, .1), transparent 45%);
}

.intro-section > * {
  position: relative;
  z-index: 1;
}

.intro-hero-copy {
  max-width: 880px;
}

.intro-hero-copy h2 {
  margin: 8px 0 12px;
  font-size: clamp(34px, 6vw, 64px);
  line-height: 1.03;
}

.intro-hero-copy p {
  margin: 0;
  color: var(--soft);
  font-size: 17px;
  line-height: 1.85;
}

.intro-highlight-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.intro-highlight-card {
  min-height: 170px;
  padding: 18px;
  border: 1px solid rgba(246, 198, 91, .24);
  border-radius: 8px;
  background: rgba(2, 6, 23, .72);
}

.intro-highlight-card h3,
.intro-bullet-panel h3 {
  margin: 0 0 10px;
  color: #ffe58f;
}

.intro-highlight-card p {
  margin: 0;
  color: var(--soft);
  line-height: 1.7;
}

.intro-bullet-panel {
  padding: 18px;
  border: 1px solid rgba(56, 211, 238, .28);
  border-radius: 8px;
  background: rgba(2, 6, 23, .64);
}

.intro-bullet-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.intro-bullet-grid span {
  padding: 11px 12px;
  border: 1px solid rgba(148, 163, 184, .22);
  border-radius: 8px;
  color: #d7efff;
  line-height: 1.6;
  background: rgba(255, 255, 255, .05);
}

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

.review-strip span {
  padding: 13px 14px;
  border: 1px solid rgba(246, 198, 91, .22);
  border-radius: 8px;
  color: #fff4c7;
  background: rgba(80, 44, 12, .28);
}

.version-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.version-node {
  min-height: 128px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(246, 198, 91, .26);
  border-radius: 8px;
  color: var(--soft);
  text-decoration: none;
  background: rgba(2, 6, 23, .72);
}

.version-node strong {
  color: #ffe58f;
  font-size: 21px;
}

.version-node span {
  color: #b9d9ee;
  line-height: 1.55;
}

.service-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 16px;
}

.service-links a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--soft);
  text-decoration: none;
  background: rgba(255, 255, 255, .05);
}

.systems-layout,
.service-layout {
  padding: 28px 0 46px;
}

.systems-hero {
  background:
    linear-gradient(90deg, rgba(8, 13, 24, .94), rgba(8, 13, 24, .68)),
    url("showcase/forge.png") center / cover no-repeat;
}

.system-index {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 8px;
  margin: 18px 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.system-index a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(246, 198, 91, .28);
  border-radius: 8px;
  color: #ffe58f;
  text-decoration: none;
  background: rgba(2, 6, 23, .6);
}

.showcase-grid {
  display: grid;
  gap: 18px;
}

.showcase-card {
  display: grid;
  grid-template-columns: minmax(320px, .95fr) minmax(280px, .7fr);
  gap: 24px;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.showcase-image {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid rgba(246, 198, 91, .28);
  border-radius: 8px;
  background: #020617;
}

.showcase-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.showcase-copy h2,
.password-copy h1 {
  margin: 6px 0 12px;
  font-size: clamp(34px, 6vw, 64px);
  line-height: 1;
}

.showcase-copy p,
.password-copy p {
  color: var(--soft);
  line-height: 1.8;
}

.ranking-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.ranking-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.ranking-card h2 {
  margin: 0 0 14px;
  color: #ffe58f;
}

.ranking-table {
  display: grid;
  gap: 10px;
}

.ranking-row {
  display: grid;
  grid-template-columns: 38px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(148, 163, 184, .22);
  border-radius: 8px;
  background: rgba(2, 6, 23, .56);
}

.rank-no {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #061014;
  font-weight: 900;
  background: var(--gold);
}

.ranking-row strong,
.ranking-row small {
  display: block;
}

.ranking-row small {
  color: var(--muted);
  margin-top: 3px;
}

.ranking-row b {
  color: var(--cyan);
  white-space: nowrap;
}

.password-panel {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) 420px;
  gap: 28px;
  align-items: center;
  min-height: calc(100vh - 150px);
  padding: clamp(22px, 4vw, 42px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(8, 13, 24, .95), rgba(8, 13, 24, .68)),
    url("showcase/vip.png") center / cover no-repeat;
  box-shadow: var(--shadow);
}

.security-note {
  display: grid;
  gap: 8px;
  max-width: 620px;
  margin-top: 22px;
  padding: 16px;
  border: 1px solid rgba(246, 198, 91, .28);
  border-radius: 8px;
  background: rgba(2, 6, 23, .58);
}

.security-note strong {
  color: #ffe58f;
}

.security-note span {
  color: var(--soft);
}

.password-form {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(2, 6, 23, .72);
}

.password-form label span {
  display: block;
  margin-bottom: 7px;
  color: var(--soft);
  font-weight: 800;
}

.password-form input {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid rgba(148, 163, 184, .34);
  border-radius: 8px;
  color: #fff;
  outline: none;
  background: rgba(2, 6, 23, .86);
}

.password-form input:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(56, 211, 238, .15);
}

.password-form button {
  min-height: 48px;
  border: 1px solid rgba(56, 211, 238, .5);
  border-radius: 8px;
  color: #061014;
  font-size: 16px;
  font-weight: 900;
  cursor: pointer;
  background: linear-gradient(135deg, var(--cyan), var(--gold));
}

@keyframes starDrift {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-120px, 120px, 0); }
}

@keyframes lightSweep {
  0%, 100% { transform: translateX(-55%); opacity: .25; }
  50% { transform: translateX(45%); opacity: .65; }
}

@media (max-width: 980px) {
  .showcase-card,
  .password-panel {
    grid-template-columns: 1fr;
  }

  .ranking-grid,
  .system-index,
  .version-grid,
  .intro-highlight-grid,
  .review-strip {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 680px) {
  .ranking-grid,
  .system-index,
  .version-grid,
  .service-links,
  .intro-highlight-grid,
  .intro-bullet-grid,
  .review-strip {
    grid-template-columns: 1fr;
  }
}

.portal-hero {
  position: relative;
}

.portal-hero::before {
  position: absolute;
  inset: 34px -20px auto auto;
  width: min(520px, 60vw);
  height: min(520px, 60vw);
  content: "";
  pointer-events: none;
  border: 1px solid rgba(246, 198, 91, .16);
  border-radius: 50%;
  background:
    repeating-conic-gradient(from 0deg, rgba(246,198,91,.1) 0 2deg, transparent 2deg 18deg),
    radial-gradient(circle, transparent 45%, rgba(56,211,238,.1) 46%, transparent 48%);
  animation: runeRotate 48s linear infinite;
  opacity: .72;
}

.hero-copy,
.hero-media {
  position: relative;
  z-index: 1;
}

.faction-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.faction-strip span {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid rgba(148, 163, 184, .25);
  border-radius: 8px;
  color: var(--soft);
  font-weight: 800;
  background: rgba(2, 6, 23, .56);
}

.alliance-mark {
  border-color: rgba(56, 211, 238, .55) !important;
  color: #bcefff !important;
}

.horde-mark {
  border-color: rgba(251, 113, 133, .55) !important;
  color: #ffd1d8 !important;
}

.neutral-mark {
  border-color: rgba(246, 198, 91, .55) !important;
  color: #ffe58f !important;
}

.showcase-card#商城 {
  background:
    linear-gradient(90deg, rgba(8, 13, 24, .92), rgba(8, 13, 24, .72)),
    url("showcase/shop.png") center / cover no-repeat;
}

.showcase-card#商城 .showcase-image {
  border-color: rgba(246, 198, 91, .48);
}

.showcase-card#大世界 {
  background:
    linear-gradient(90deg, rgba(8, 13, 24, .82), rgba(8, 13, 24, .62)),
    url("showcase/world.png") center / cover no-repeat;
}

.showcase-card#大世界 .showcase-image {
  border-color: rgba(125, 211, 252, .55);
}

.brand img,
.hero-media img,
.showcase-image {
  box-shadow:
    0 0 0 1px rgba(246, 198, 91, .22),
    0 20px 70px rgba(0, 0, 0, .48),
    0 0 42px rgba(56, 211, 238, .12);
}

.btn.primary,
.register-card button,
.password-form button {
  background-size: 180% 180%;
  animation: buttonGlow 5s ease infinite;
}

@keyframes runeRotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes buttonGlow {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@media (max-width: 680px) {
  .portal-hero::before {
    width: 320px;
    height: 320px;
    opacity: .34;
  }
}

.ranking-hero {
  background:
    linear-gradient(90deg, rgba(8, 13, 24, .95), rgba(8, 13, 24, .66)),
    url("showcase/xiuxian.png") center / cover no-repeat;
}

.ranking-board {
  display: grid;
  gap: 10px;
}

.ranking-board-head,
.ranking-board-row {
  display: grid;
  grid-template-columns: 70px minmax(150px, 1.1fr) minmax(170px, 1.2fr) minmax(110px, .8fr) minmax(90px, .7fr) minmax(70px, .6fr);
  gap: 12px;
  align-items: center;
}

.ranking-board-head {
  padding: 12px 16px;
  border: 1px solid rgba(246, 198, 91, .24);
  border-radius: 8px;
  color: #ffe58f;
  font-weight: 900;
  background: rgba(2, 6, 23, .7);
}

.ranking-board-row {
  padding: 14px 16px;
  border: 1px solid rgba(148, 163, 184, .22);
  border-radius: 8px;
  background: rgba(6, 10, 18, .74);
  box-shadow: 0 14px 40px rgba(0,0,0,.24);
}

.ranking-board-row:nth-child(2) {
  border-color: rgba(246, 198, 91, .65);
  background: linear-gradient(90deg, rgba(246, 198, 91, .16), rgba(6, 10, 18, .78));
}

.ranking-board-row:nth-child(3) {
  border-color: rgba(56, 211, 238, .48);
}

.ranking-board-row strong,
.ranking-board-row small {
  display: block;
}

.ranking-board-row small,
.muted-line {
  color: var(--muted);
}

.ranking-board-row b {
  color: var(--cyan);
}

@media (max-width: 900px) {
  .ranking-board-head {
    display: none;
  }

  .ranking-board-row {
    grid-template-columns: 52px 1fr;
  }

  .ranking-board-row > span:nth-child(n+3),
  .ranking-board-row > b {
    grid-column: 2;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: "Segoe UI", "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  background:
    linear-gradient(rgba(9, 12, 18, 0.86), rgba(9, 12, 18, 0.94)),
    url("logo1.png") center top / min(1100px, 130vw) auto no-repeat,
    #090c12;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid var(--line);
  background: rgba(9, 12, 18, 0.82);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-weight: 800;
  text-decoration: none;
}

.brand img {
  width: 42px;
  height: 42px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.brand span {
  white-space: nowrap;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.nav-links a,
.quick-panel a,
.btn {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
}

.nav-links a {
  padding: 8px 12px;
  color: var(--soft);
}

.nav-links a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

main {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
}

.hero-section {
  min-height: calc(100vh - 92px);
  display: grid;
  grid-template-columns: minmax(260px, 0.86fr) minmax(320px, 1.14fr);
  gap: clamp(24px, 5vw, 70px);
  align-items: center;
  padding: clamp(34px, 6vw, 82px) 0 28px;
}

.hero-media {
  display: flex;
  justify-content: center;
}

.hero-media img {
  width: min(410px, 82vw);
  aspect-ratio: 1;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hero-copy h1,
.log-hero h1 {
  margin: 8px 0 14px;
  font-size: clamp(48px, 8vw, 92px);
  line-height: 0.95;
  letter-spacing: 0;
}

.eyebrow {
  margin: 0;
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
}

.hero-text,
.log-hero p,
.register-head p,
.feature-card p,
.faq-grid p {
  color: var(--muted);
  line-height: 1.75;
}

.hero-text {
  max-width: 620px;
  margin: 0 0 24px;
  font-size: 17px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  padding: 0 18px;
  border: 1px solid var(--line);
}

.btn.primary,
.register-card button {
  border-color: rgba(56, 211, 238, 0.5);
  color: #061014;
  background: linear-gradient(135deg, var(--cyan), var(--gold));
  box-shadow: 0 14px 34px rgba(56, 211, 238, 0.18);
}

.btn.ghost {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.server-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.server-strip span,
.tag-cloud span,
.progress-list div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--soft);
}

.server-strip span {
  padding: 9px 12px;
}

.quick-panel {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 0 0 22px;
}

.quick-panel a {
  padding: 12px;
  border: 1px solid var(--line);
  background: var(--panel);
}

.quick-panel a:hover {
  border-color: rgba(56, 211, 238, 0.55);
  color: var(--cyan);
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 22px;
  align-items: start;
}

.main-column {
  display: grid;
  gap: 22px;
}

.section-block,
.register-card,
.faq-section,
.log-hero,
.log-sidebar,
.log-content {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.section-block,
.register-card,
.faq-section {
  padding: clamp(18px, 3vw, 28px);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.section-head h2,
.register-head h2,
.faq-section h2 {
  margin: 4px 0 0;
  font-size: clamp(24px, 4vw, 34px);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.feature-card {
  min-height: 160px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(6, 10, 18, 0.64);
}

.feature-card h3,
.faq-grid h3 {
  margin: 0 0 10px;
  color: #fff;
}

.feature-card p,
.faq-grid p {
  margin: 0;
}

.step-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.step-item {
  min-height: 130px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
}

.step-item span {
  display: inline-flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  border-radius: 50%;
  color: #061014;
  font-weight: 900;
  background: var(--gold);
}

.step-item p {
  margin: 0;
  color: var(--soft);
  line-height: 1.55;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag-cloud span,
.progress-list div {
  padding: 10px 12px;
}

.progress-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.register-card {
  position: sticky;
  top: 92px;
}

.register-head {
  margin-bottom: 18px;
}

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

.register-card label span {
  display: block;
  margin-bottom: 7px;
  color: var(--soft);
  font-weight: 700;
}

.register-card input {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid rgba(148, 163, 184, 0.34);
  border-radius: 8px;
  color: #fff;
  outline: none;
  background: rgba(2, 6, 23, 0.76);
}

.register-card input:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(56, 211, 238, 0.15);
}

.register-card button {
  min-height: 48px;
  border-radius: 8px;
  border-style: solid;
  font-size: 16px;
  font-weight: 900;
  cursor: pointer;
}

.msg {
  margin-bottom: 14px;
  padding: 11px 12px;
  border-radius: 8px;
  line-height: 1.5;
}

.msg.ok {
  border: 1px solid rgba(84, 209, 138, 0.35);
  color: #bbf7d0;
  background: rgba(22, 101, 52, 0.24);
}

.msg.err {
  border: 1px solid rgba(251, 113, 133, 0.35);
  color: #fecdd3;
  background: rgba(127, 29, 29, 0.24);
}

.faq-section {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 22px;
  margin: 22px 0 34px;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.faq-grid article {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(6, 10, 18, 0.64);
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  padding: 24px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.28);
}

.log-layout {
  padding: 28px 0 42px;
}

.log-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
  padding: clamp(20px, 4vw, 34px);
}

.log-hero p {
  max-width: 760px;
}

.log-grid {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.log-sidebar {
  position: sticky;
  top: 92px;
  max-height: calc(100vh - 112px);
  overflow: auto;
  padding: 16px;
}

.side-section {
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.side-section:last-child {
  margin-bottom: 0;
  border-bottom: 0;
}

.side-section h2 {
  margin: 0 0 10px;
  font-size: 18px;
}

.side-section a {
  display: block;
  padding: 8px 9px;
  border-radius: 8px;
  color: var(--soft);
  text-decoration: none;
}

.side-section a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.side-section pre {
  margin: 0;
  white-space: pre-wrap;
  color: var(--muted);
  line-height: 1.65;
  font-family: inherit;
  font-size: 13px;
}

.log-content {
  padding: 18px;
}

.log-entry {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.log-entry:first-child {
  padding-top: 0;
}

.log-entry:last-child {
  border-bottom: 0;
}

.log-entry h2 {
  margin: 0 0 12px;
  color: #fff;
  font-size: 24px;
}

.log-entry p {
  margin: 7px 0;
  color: var(--soft);
  line-height: 1.7;
  white-space: pre-wrap;
}

.log-spacer {
  height: 10px;
}

.back-top {
  position: fixed;
  right: 16px;
  bottom: 16px;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border: 1px solid rgba(56, 211, 238, 0.45);
  border-radius: 8px;
  color: #061014;
  font-weight: 800;
  text-decoration: none;
  background: var(--cyan);
}

@media (max-width: 980px) {
  .hero-section,
  .content-grid,
  .faq-section,
  .log-grid {
    grid-template-columns: 1fr;
  }

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

  .hero-media {
    order: -1;
  }

  .register-card,
  .log-sidebar {
    position: static;
    max-height: none;
  }

  .quick-panel,
  .step-list,
  .faq-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 680px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    justify-content: flex-start;
  }

  .nav-links a {
    padding: 8px 10px;
  }

  main {
    width: min(100% - 22px, 1200px);
  }

  .quick-panel,
  .feature-grid,
  .step-list,
  .progress-list,
  .faq-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy h1,
  .log-hero h1 {
    font-size: 48px;
  }

  .log-hero {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* Final visual overrides loaded after the original responsive rules. */
body {
  background:
    radial-gradient(circle at 50% 0%, rgba(56, 211, 238, 0.18), transparent 32%),
    radial-gradient(circle at 20% 32%, rgba(246, 198, 91, 0.12), transparent 28%),
    linear-gradient(rgba(9, 12, 18, 0.82), rgba(9, 12, 18, 0.95)),
    url("showcase/teleport.png") center top / cover fixed no-repeat,
    #090c12;
  overflow-x: hidden;
}

@media (max-width: 980px) {
  .showcase-card,
  .password-panel {
    grid-template-columns: 1fr;
  }

  .ranking-grid,
  .system-index,
  .version-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 680px) {
  .ranking-grid,
  .system-index,
  .version-grid,
  .service-links {
    grid-template-columns: 1fr;
  }
}
