:root {
  color-scheme: dark;
  --bg: #0d1114;
  --bg-2: #13181d;
  --panel: #181f25;
  --panel-2: #202831;
  --line: #33404a;
  --text: #f4f1e8;
  --muted: #aeb8bf;
  --gold: #d8ad56;
  --gold-2: #f0cf7a;
  --red: #a7433e;
  --red-2: #7e221f;
  --teal: #4aa7ac;
  --green: #3bd18f;
  --danger: #ef766e;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.36);
  --button-radius: 7px;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--bg);
  scroll-behavior: smooth;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(110deg, transparent 0 48%, rgba(216, 173, 86, 0.06) 49%, transparent 51%),
    repeating-linear-gradient(135deg, rgba(240, 207, 122, 0.025) 0 1px, transparent 1px 18px),
    linear-gradient(180deg, rgba(13, 17, 20, 0), rgba(126, 34, 31, 0.16) 62%, rgba(13, 17, 20, 0.9));
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    linear-gradient(180deg, rgba(13, 17, 20, 0.12), var(--bg) 680px),
    repeating-linear-gradient(90deg, rgba(216, 173, 86, 0.04) 0 1px, transparent 1px 90px),
    var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

body,
button,
input,
select {
  font: inherit;
}

a {
  color: inherit;
}

button,
a.button {
  -webkit-tap-highlight-color: transparent;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 76px;
  padding: 12px clamp(16px, 4vw, 42px);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  border-bottom: 1px solid rgba(216, 173, 86, 0.22);
  background:
    linear-gradient(90deg, rgba(126, 34, 31, 0.20), transparent 26%, rgba(216, 173, 86, 0.08)),
    rgba(13, 17, 20, 0.94);
  backdrop-filter: blur(18px);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.32);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  position: relative;
  width: 48px;
  height: 48px;
  display: block;
  overflow: hidden;
  border: 1px solid rgba(240, 207, 122, 0.88);
  border-radius: 50%;
  background: #080a0d;
  box-shadow:
    0 0 0 2px rgba(240, 207, 122, 0.10),
    0 0 18px rgba(216, 173, 86, 0.18);
}

.brand-mark::after {
  content: none;
}

.brand-mark img,
.crest-orb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 1.08rem;
  color: var(--text);
  text-shadow: 0 0 16px rgba(216, 173, 86, 0.18);
}

.brand small {
  color: var(--muted);
}

.top-nav {
  display: flex;
  justify-content: center;
  gap: 4px;
  flex-wrap: wrap;
}

.top-nav a {
  min-height: 38px;
  padding: 9px 12px;
  display: inline-flex;
  align-items: center;
  border: 1px solid transparent;
  border-radius: var(--button-radius);
  color: var(--muted);
  text-decoration: none;
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.top-nav a:hover,
.top-nav a.is-active {
  border-color: rgba(216, 173, 86, 0.42);
  color: var(--gold-2);
  background:
    linear-gradient(180deg, rgba(216, 173, 86, 0.12), rgba(126, 34, 31, 0.10));
  box-shadow: inset 0 1px 0 rgba(240, 207, 122, 0.12), 0 10px 24px rgba(0, 0, 0, 0.18);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.status-pill {
  min-width: 92px;
  min-height: 34px;
  padding: 8px 10px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--button-radius);
  color: var(--muted);
  background: rgba(24, 31, 37, 0.8);
}

.status-pill.online {
  border-color: rgba(59, 209, 143, 0.46);
  color: var(--green);
}

.status-pill.offline {
  border-color: rgba(239, 118, 110, 0.46);
  color: var(--danger);
}

main {
  width: min(1440px, 100%);
  margin: 0 auto;
  padding: 26px clamp(16px, 4vw, 42px) 52px;
}

.view {
  display: none;
}

.view.is-visible {
  display: block;
}

.hero {
  position: relative;
  min-height: min(720px, calc(100vh - 118px));
  overflow: hidden;
  border: 1px solid rgba(216, 173, 86, 0.25);
  background: #10161a;
  box-shadow: var(--shadow);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 12px;
  pointer-events: none;
  border: 1px solid rgba(240, 207, 122, 0.16);
  box-shadow: inset 0 0 0 1px rgba(126, 34, 31, 0.16);
}

.hero-embers {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(100deg, transparent 0 18%, rgba(216, 173, 86, 0.10) 19%, transparent 23%),
    linear-gradient(112deg, transparent 0 62%, rgba(126, 34, 31, 0.18) 64%, transparent 69%);
  opacity: 0.58;
  animation: heroSweep 8s ease-in-out infinite alternate;
}

@keyframes heroSweep {
  from {
    transform: translateX(-2%);
    opacity: 0.42;
  }
  to {
    transform: translateX(2%);
    opacity: 0.70;
  }
}

.hero-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(13, 17, 20, 0.96), rgba(13, 17, 20, 0.76) 45%, rgba(13, 17, 20, 0.30)),
    linear-gradient(0deg, rgba(13, 17, 20, 0.84), transparent 42%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(760px, 100%);
  min-height: min(720px, calc(100vh - 118px));
  padding: clamp(28px, 5vw, 64px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 22px;
}

.eyebrow {
  margin: 0;
  color: var(--gold-2);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  font-weight: 800;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  font-size: clamp(2.4rem, 6vw, 5.5rem);
  line-height: 0.96;
}

h2 {
  font-size: clamp(1.35rem, 2vw, 2rem);
  line-height: 1.15;
}

h3 {
  font-size: 1.05rem;
}

.hero-copy {
  max-width: 640px;
  color: #d7ddd9;
  font-size: clamp(1rem, 1.45vw, 1.24rem);
  line-height: 1.62;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.hero-badges span {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 7px 10px;
  border: 1px solid rgba(216, 173, 86, 0.32);
  background:
    linear-gradient(180deg, rgba(216, 173, 86, 0.10), rgba(126, 34, 31, 0.12)),
    rgba(13, 17, 20, 0.58);
  color: #f2e7ca;
  font-size: 0.88rem;
  font-weight: 760;
}

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

.button {
  position: relative;
  min-height: 42px;
  overflow: hidden;
  padding: 10px 18px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border: 1px solid transparent;
  border-radius: var(--button-radius);
  text-decoration: none;
  cursor: pointer;
  font-weight: 850;
  isolation: isolate;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease, color 160ms ease;
}

.button::before {
  content: "";
  position: absolute;
  inset: 1px;
  z-index: -1;
  border-radius: calc(var(--button-radius) - 2px);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.20), transparent 48%);
  opacity: 0.62;
  pointer-events: none;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  border-color: rgba(255, 231, 163, 0.74);
  background:
    linear-gradient(180deg, #ffe59a 0%, var(--gold-2) 45%, var(--gold) 100%);
  color: #15110a;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.34),
    inset 0 -1px 0 rgba(76, 45, 14, 0.28),
    0 12px 28px rgba(216, 173, 86, 0.24);
}

.button.primary:hover {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.42),
    inset 0 -1px 0 rgba(76, 45, 14, 0.28),
    0 16px 34px rgba(216, 173, 86, 0.30);
}

.button.secondary {
  border-color: rgba(74, 167, 172, 0.5);
  background:
    linear-gradient(180deg, rgba(84, 188, 194, 0.24), rgba(74, 167, 172, 0.10)),
    rgba(13, 17, 20, 0.46);
  color: #dff7f8;
  box-shadow: inset 0 1px 0 rgba(210, 252, 255, 0.10), 0 10px 24px rgba(74, 167, 172, 0.10);
}

.button.ghost {
  border-color: var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0)),
    rgba(24, 31, 37, 0.78);
  color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 10px 24px rgba(0, 0, 0, 0.14);
}

.button.ghost:hover {
  border-color: rgba(216, 173, 86, 0.42);
  color: var(--gold-2);
}

.hero-panel {
  position: absolute;
  right: clamp(18px, 4vw, 42px);
  bottom: clamp(18px, 4vw, 42px);
  z-index: 2;
  width: min(560px, calc(100% - 36px));
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid rgba(216, 173, 86, 0.32);
  background:
    linear-gradient(135deg, rgba(126, 34, 31, 0.14), transparent 50%),
    rgba(16, 22, 26, 0.90);
  backdrop-filter: blur(14px);
}

.hero-panel div {
  min-height: 92px;
  padding: 16px;
  border-right: 1px solid rgba(216, 173, 86, 0.16);
}

.hero-panel div:last-child {
  border-right: 0;
}

.hero-panel span,
.metric-strip span,
.detail-list span,
.card-kicker,
.panel-head span {
  display: block;
  color: var(--muted);
  font-size: 0.86rem;
}

.hero-panel strong,
.metric-strip strong,
.detail-list strong {
  display: block;
  margin-top: 8px;
  color: var(--text);
  font-size: 1.28rem;
  overflow-wrap: anywhere;
}

#heroPatch {
  font-size: 1.02rem;
  line-height: 1.35;
}

.section-band,
.split-section,
.page-title,
.event-layout,
.chat-layout {
  margin-top: 28px;
}

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

.text-link {
  color: var(--gold-2);
  text-decoration: none;
  border-bottom: 1px solid rgba(216, 173, 86, 0.45);
}

.feature-grid,
.guide-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.feature-grid.compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-card,
.panel,
.guide-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  background:
    linear-gradient(150deg, rgba(216, 173, 86, 0.055), transparent 34%),
    linear-gradient(330deg, rgba(126, 34, 31, 0.09), transparent 38%),
    rgba(24, 31, 37, 0.90);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.18);
}

.feature-card::before,
.panel::before,
.guide-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: linear-gradient(90deg, var(--red-2), var(--gold), transparent);
  opacity: 0.72;
}

.feature-card,
.guide-card {
  min-height: 190px;
  padding: 18px;
}

.feature-card p,
.guide-card p,
.panel p {
  color: var(--muted);
  line-height: 1.58;
}

.feature-card h3,
.guide-card h3 {
  margin: 10px 0 10px;
}

.card-kicker {
  color: var(--gold-2);
  font-weight: 800;
}

.identity-strip {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 1.15fr 0.9fr 0.9fr;
  gap: 14px;
}

.identity-card {
  min-height: 126px;
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 16px;
  border: 1px solid rgba(216, 173, 86, 0.28);
  background:
    linear-gradient(135deg, rgba(216, 173, 86, 0.12), rgba(126, 34, 31, 0.12)),
    rgba(17, 22, 26, 0.92);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
}

.crest-orb {
  width: 78px;
  aspect-ratio: 1;
  flex: 0 0 auto;
  display: block;
  overflow: hidden;
  border: 1px solid rgba(240, 207, 122, 0.86);
  border-radius: 50%;
  background: #080a0d;
  box-shadow:
    0 0 0 3px rgba(240, 207, 122, 0.10),
    0 0 28px rgba(216, 173, 86, 0.20);
}

.visual-card {
  position: relative;
  overflow: hidden;
  display: grid;
  align-content: end;
  isolation: isolate;
}

.visual-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: url("/assets/linkmania-hero-v2.jpg") center / cover;
  filter: saturate(1.08) contrast(1.08);
}

.visual-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(13, 17, 20, 0.18), rgba(13, 17, 20, 0.88));
}

.arena-card::before {
  background-position: 80% center;
}

.character-card-mini::before {
  background-position: 32% center;
}

.visual-card span {
  color: var(--gold-2);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  font-weight: 850;
}

.visual-card strong {
  margin-top: 8px;
  font-size: 1.05rem;
}

.server-pulse {
  margin-top: 14px;
  display: grid;
  grid-template-columns: 0.7fr 1.05fr 1.05fr 0.9fr 0.86fr;
  gap: 14px;
}

.pulse-card {
  position: relative;
  min-height: 118px;
  overflow: hidden;
  padding: 16px;
  display: grid;
  align-content: end;
  border: 1px solid rgba(51, 64, 74, 0.82);
  background:
    linear-gradient(150deg, rgba(216, 173, 86, 0.09), transparent 45%),
    rgba(17, 22, 26, 0.88);
}

.pulse-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
}

.pulse-card.live::before {
  background: linear-gradient(90deg, var(--green), var(--gold), transparent);
}

.pulse-card span,
.pulse-card small {
  color: var(--muted);
  font-size: 0.82rem;
}

.pulse-card span {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 850;
}

.pulse-card strong {
  display: block;
  margin: 9px 0 4px;
  color: var(--text);
  font-size: clamp(1.28rem, 2vw, 2rem);
  line-height: 1.08;
  overflow-wrap: anywhere;
}

.spotlight-section {
  margin-top: 22px;
}

.route-section {
  margin-top: 28px;
}

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

.path-step {
  position: relative;
  min-height: 176px;
  padding: 18px;
  border: 1px solid rgba(51, 64, 74, 0.82);
  background:
    linear-gradient(180deg, rgba(216, 173, 86, 0.08), transparent 56%),
    rgba(13, 17, 20, 0.52);
}

.path-step::after {
  content: "";
  position: absolute;
  top: 31px;
  right: -15px;
  width: 30px;
  height: 1px;
  background: linear-gradient(90deg, rgba(216, 173, 86, 0.65), transparent);
}

.path-step:last-child::after {
  display: none;
}

.path-step span {
  color: var(--gold-2);
  font-size: 0.82rem;
  font-weight: 900;
}

.path-step h3 {
  margin: 12px 0 10px;
}

.path-step p {
  color: var(--muted);
  line-height: 1.55;
}

.split-section {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.panel {
  padding: 20px;
}

.highlight-panel {
  background: linear-gradient(135deg, rgba(216, 173, 86, 0.18), rgba(24, 31, 37, 0.92) 44%);
}

.stack-list {
  display: grid;
  gap: 10px;
}

.stack-item,
.chat-message,
.timeline-item {
  border: 1px solid rgba(51, 64, 74, 0.78);
  background: rgba(13, 17, 20, 0.52);
  padding: 13px;
}

.character-layout {
  margin-top: 18px;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(300px, 0.88fr);
  gap: 18px;
  align-items: start;
}

.character-layout > .character-lookup-panel {
  grid-row: span 2;
}

.featured-panel {
  min-height: 100%;
}

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

.character-overview-grid div {
  min-height: 78px;
  padding: 13px;
  border: 1px solid rgba(51, 64, 74, 0.75);
  background:
    linear-gradient(145deg, rgba(216, 173, 86, 0.06), transparent),
    rgba(13, 17, 20, 0.46);
}

.character-overview-grid span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
}

.character-overview-grid strong {
  display: block;
  margin-top: 8px;
  color: var(--text);
  font-size: 1.18rem;
}

.lookup-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.character-result {
  margin-top: 14px;
}

.character-card-result {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.compact-result .character-card-result {
  grid-template-columns: 72px minmax(0, 1fr);
}

.character-avatar {
  width: 96px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid rgba(240, 207, 122, 0.55);
  background:
    linear-gradient(145deg, rgba(216, 173, 86, 0.22), rgba(126, 34, 31, 0.22)),
    #11161a;
  color: var(--gold-2);
  font-size: 1.35rem;
  font-weight: 950;
}

.compact-result .character-avatar {
  width: 72px;
}

.character-title-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
}

.character-title-row h3 {
  margin-top: 6px;
  font-size: clamp(1.4rem, 2vw, 2rem);
}

.character-stats {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.character-stats div {
  padding: 11px;
  border: 1px solid rgba(51, 64, 74, 0.72);
  background: rgba(13, 17, 20, 0.44);
}

.character-stats span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
}

.character-stats strong {
  display: block;
  margin-top: 5px;
  color: var(--text);
}

.character-note {
  margin-top: 12px;
  font-size: 0.9rem;
}

.character-grid {
  display: grid;
  gap: 8px;
}

.character-mini-card {
  width: 100%;
  min-height: 64px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  border: 1px solid rgba(51, 64, 74, 0.72);
  background: rgba(13, 17, 20, 0.42);
  color: var(--text);
  text-align: left;
  cursor: pointer;
  padding: 10px;
}

.character-mini-card:hover {
  border-color: rgba(216, 173, 86, 0.56);
}

.character-mini-card span {
  grid-row: span 2;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(216, 173, 86, 0.48);
  color: var(--gold-2);
}

.character-mini-card strong,
.character-mini-card small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.character-mini-card small {
  color: var(--muted);
}

.stack-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.stack-item strong,
.stack-item span {
  display: block;
}

.stack-item span {
  color: var(--muted);
  font-size: 0.9rem;
}

.tag {
  min-height: 28px;
  padding: 5px 8px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  color: var(--muted);
  background: rgba(32, 40, 49, 0.62);
  font-size: 0.82rem;
  white-space: nowrap;
}

.tag.working,
.tag.active,
.tag.enabled {
  border-color: rgba(59, 209, 143, 0.4);
  color: var(--green);
}

.tag.partial,
.tag.testing,
.tag.preview {
  border-color: rgba(216, 173, 86, 0.44);
  color: var(--gold-2);
}

.tag.missing,
.tag.disabled,
.tag.offline {
  border-color: rgba(239, 118, 110, 0.4);
  color: var(--danger);
}

.page-title {
  padding: clamp(22px, 4vw, 40px);
  border: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(24, 31, 37, 0.98), rgba(24, 31, 37, 0.76)),
    url("/assets/linkmania-hero-v2.jpg") center / cover;
}

.character-title {
  background:
    linear-gradient(90deg, rgba(13, 17, 20, 0.98), rgba(126, 34, 31, 0.64)),
    url("/assets/linkmania-hero-v2.jpg") 35% center / cover;
}

.page-title h1 {
  width: min(900px, 100%);
  margin-top: 10px;
  font-size: clamp(2rem, 4vw, 4.2rem);
}

.page-lead {
  width: min(780px, 100%);
  margin: 12px 0 0;
  color: #dbe8ff;
  font-size: clamp(1rem, 1.8vw, 1.16rem);
  line-height: 1.55;
}

.play-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 1.2fr 1.1fr 0.8fr;
  gap: 18px;
}

.register-layout {
  margin-top: 18px;
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(280px, 0.72fr);
  gap: 18px;
  align-items: start;
}

.register-panel {
  overflow: hidden;
  border-color: rgba(255, 211, 58, 0.38);
  background:
    linear-gradient(140deg, rgba(0, 61, 134, 0.22), transparent 48%),
    linear-gradient(180deg, rgba(24, 31, 37, 0.98), rgba(11, 18, 27, 0.98));
}

.register-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 211, 58, 0.22);
}

.register-panel-head h2 {
  margin-top: 6px;
  color: #fff;
  font-size: clamp(1.45rem, 2.8vw, 2.28rem);
  line-height: 1.06;
}

.register-badge,
.field-note {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  border: 1px solid rgba(255, 211, 58, 0.54);
  background: linear-gradient(180deg, #ffd83d, #d99a08);
  color: #050505;
  font-weight: 900;
  text-transform: uppercase;
  text-shadow: 0 1px rgba(255, 255, 255, 0.42);
  white-space: nowrap;
}

.register-badge {
  padding: 5px 10px;
  font-size: 0.75rem;
}

.field-note {
  margin-left: 6px;
  padding: 3px 7px;
  min-height: 22px;
  font-size: 0.64rem;
}

.register-steps {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.register-steps span {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(72, 152, 255, 0.5);
  background: linear-gradient(180deg, #0757ad, #032a61);
  color: #fff;
  font-weight: 900;
  text-align: center;
  text-shadow: 1px 1px 0 #001022;
}

.register-form {
  margin-top: 18px;
  display: grid;
  gap: 16px;
}

.form-section {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.register-form label {
  display: grid;
  gap: 7px;
  color: #f4f7fb;
  font-weight: 850;
}

.register-form label small {
  color: #aebdca;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.42;
}

.form-label-line {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.register-form input {
  border-color: rgba(85, 104, 119, 0.95);
  background: #070c12;
  color: #fff;
}

.register-form input::placeholder {
  color: #7890a5;
}

.security-explainer,
.captcha-card {
  border: 1px solid rgba(255, 211, 58, 0.28);
  background:
    linear-gradient(120deg, rgba(255, 211, 58, 0.10), transparent 44%),
    rgba(4, 19, 39, 0.72);
}

.security-explainer {
  padding: 14px 16px;
}

.security-explainer strong {
  color: #ffd33a;
  font-weight: 950;
}

.security-explainer p {
  margin: 6px 0 0;
  color: #d8e4f2;
}

.captcha-card {
  padding: 14px;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(160px, 0.72fr) auto;
  gap: 12px;
  align-items: end;
}

.captcha-copy {
  display: grid;
  gap: 7px;
}

.captcha-copy span {
  color: #9eb8d3;
  text-transform: uppercase;
  font-size: 0.75rem;
  font-weight: 900;
}

.captcha-copy small {
  color: #b8c7d6;
  line-height: 1.4;
}

.captcha-answer {
  min-width: 0;
}

.register-submit {
  min-height: 50px;
  font-size: 1.02rem;
}

.register-aside {
  display: grid;
  gap: 18px;
}

.browser-panel {
  border-color: rgba(72, 152, 255, 0.32);
}

.form-grid {
  margin-top: 14px;
  display: grid;
  gap: 12px;
}

.form-grid label {
  display: grid;
  gap: 7px;
  color: var(--muted);
}

input,
select {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--button-radius);
  background: #10161a;
  color: var(--text);
  padding: 9px 10px;
}

input:focus,
select:focus,
button:focus-visible,
a:focus-visible {
  outline: 2px solid rgba(216, 173, 86, 0.65);
  outline-offset: 2px;
}

.form-message {
  min-height: 32px;
  margin-top: 10px;
  color: var(--muted);
}

.form-message.success {
  color: var(--green);
}

.form-message.error {
  color: var(--danger);
}

.detail-list,
.metric-strip {
  display: grid;
  gap: 10px;
}

.detail-list div,
.metric-strip div {
  min-height: 66px;
  padding: 13px;
  border: 1px solid rgba(51, 64, 74, 0.75);
  background: rgba(13, 17, 20, 0.42);
}

.metric-strip {
  margin-top: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 11px 10px;
  border-bottom: 1px solid rgba(51, 64, 74, 0.65);
  text-align: left;
}

th {
  color: var(--gold-2);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

td {
  color: #dce2df;
}

.event-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 18px;
}

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

.event-card {
  min-height: 158px;
  padding: 15px;
  border: 1px solid rgba(51, 64, 74, 0.78);
  background: rgba(13, 17, 20, 0.48);
}

.event-card h3 {
  margin-bottom: 8px;
}

.event-card p {
  font-size: 0.92rem;
}

.event-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.guide-search {
  margin-top: 18px;
}

.guide-grid {
  margin-top: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.guide-card ul {
  margin: 12px 0 0;
  padding-left: 18px;
  color: #d9dfdc;
  line-height: 1.55;
}

.guide-card.is-hidden {
  display: none;
}

.chat-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 18px;
}

.chat-panel {
  min-height: 520px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 14px;
}

.muren-story {
  padding: 16px;
  border: 1px solid rgba(255, 211, 58, 0.34);
  background:
    linear-gradient(135deg, rgba(255, 211, 58, 0.12), transparent 42%),
    linear-gradient(180deg, rgba(4, 32, 74, 0.78), rgba(3, 12, 28, 0.82));
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.08);
}

.muren-story span {
  display: block;
  color: #ffd83d;
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.muren-story p {
  margin: 8px 0 0;
  color: #e6eef8;
  line-height: 1.56;
}

.chat-messages {
  min-height: 320px;
  max-height: 56vh;
  overflow: auto;
  display: grid;
  align-content: start;
  gap: 12px;
  padding-right: 4px;
}

.chat-message {
  max-width: 84%;
}

.chat-message.user {
  justify-self: end;
  border-color: rgba(74, 167, 172, 0.42);
  background: rgba(74, 167, 172, 0.12);
}

.chat-message.assistant {
  justify-self: start;
  border-color: rgba(216, 173, 86, 0.35);
}

.chat-message strong {
  display: block;
  margin-bottom: 6px;
  color: var(--gold-2);
}

.chat-message p {
  white-space: pre-wrap;
}

.chat-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.quick-questions {
  display: grid;
  gap: 9px;
  margin-top: 14px;
}

.quick-questions button {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--button-radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), transparent),
    rgba(13, 17, 20, 0.45);
  color: var(--text);
  text-align: left;
  cursor: pointer;
  padding: 10px;
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.quick-questions button:hover {
  border-color: rgba(216, 173, 86, 0.5);
  color: var(--gold-2);
  transform: translateY(-1px);
}

.timeline {
  margin-top: 18px;
  display: grid;
  gap: 12px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 16px;
}

.timeline-item time {
  color: var(--gold-2);
  font-weight: 800;
}

.admin-grid {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
}

.admin-snapshot {
  margin-top: 14px;
}

.site-footer {
  width: min(1440px, 100%);
  margin: 0 auto;
  padding: 24px clamp(16px, 4vw, 42px) 42px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: var(--muted);
  border-top: 1px solid rgba(51, 64, 74, 0.55);
}

.site-footer strong {
  color: var(--text);
}

.empty {
  min-height: 72px;
  display: grid;
  place-items: center;
  color: var(--muted);
  border: 1px dashed rgba(51, 64, 74, 0.8);
}

@media (min-width: 761px) and (max-width: 900px) {
  .site-header {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 10px 16px;
    gap: 10px;
  }

  .brand-mark {
    width: 42px;
    height: 42px;
  }

  .top-nav {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
    justify-content: stretch;
  }

  .top-nav a {
    justify-content: center;
    min-height: 32px;
    padding: 6px 8px;
    font-size: 0.82rem;
  }

  .header-actions {
    justify-content: start;
  }

  main {
    padding: 14px 16px 34px;
  }

  .hero {
    min-height: 0;
  }

  .hero-content {
    width: min(620px, 100%);
    min-height: 0;
    padding: 28px;
    gap: 16px;
  }

  .hero-content h1 {
    font-size: clamp(2rem, 6vw, 3rem);
    line-height: 1.02;
  }

  .hero-copy {
    font-size: 1rem;
    line-height: 1.52;
  }

  .hero-actions .button {
    min-width: 178px;
  }

  .hero-panel {
    position: relative;
    right: auto;
    bottom: auto;
    width: auto;
    margin: 0 18px 18px;
  }

  .identity-strip,
  .server-pulse,
  .feature-grid,
  .path-grid,
  .split-section,
  .event-layout,
  .play-grid,
  .character-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .register-layout {
    grid-template-columns: 1fr;
  }

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

  .browser-panel {
    grid-column: 1 / -1;
  }

  .captcha-card {
    grid-template-columns: minmax(0, 1fr) minmax(160px, 0.74fr);
  }

  .captcha-card .compact-button {
    grid-column: 1 / -1;
  }

  .path-step::after {
    display: none;
  }
}

@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
  body {
    background: #0d1114;
    color: #f4f1e8;
  }

  body::before,
  .hero-embers,
  .hero-shade,
  .visual-card::before,
  .visual-card::after,
  .feature-card::before,
  .panel::before,
  .guide-card::before,
  .button::before {
    display: none;
  }

  .site-header {
    position: relative;
    display: block;
    min-height: 0;
    padding: 12px 16px;
    border-bottom: 1px solid #5b4930;
    background: #101419;
  }

  .brand {
    display: block;
  }

  .brand-mark {
    display: inline-block;
    width: 42px;
    height: 42px;
    margin-right: 10px;
    line-height: 42px;
    vertical-align: middle;
    border: 1px solid #f0cf7a;
    background: #2a2114;
    color: #f0cf7a;
    text-align: center;
  }

  .brand strong,
  .brand small {
    display: inline-block;
    vertical-align: middle;
  }

  .brand strong {
    color: #f4f1e8;
    font-size: 19px;
  }

  .brand small {
    margin-left: 8px;
    color: #aeb8bf;
  }

  .top-nav,
  .header-actions {
    display: block;
    margin-top: 10px;
  }

  .top-nav a,
  .button,
  .status-pill,
  .quick-questions button {
    display: inline-block;
    min-height: 0;
    margin: 3px 5px 3px 0;
    padding: 9px 14px;
    border: 1px solid #45525e;
    border-radius: 6px;
    background: #1b232b;
    color: #f4f1e8;
    text-decoration: none;
    font-weight: 700;
  }

  .top-nav a:hover,
  .top-nav a.is-active,
  .button.ghost:hover {
    border-color: #d8ad56;
    color: #f0cf7a;
    background: #241d16;
  }

  .button.primary {
    border-color: #f0cf7a;
    background: #d8ad56;
    color: #15110a;
  }

  .button.secondary {
    border-color: #4aa7ac;
    background: #163137;
    color: #dff7f8;
  }

  .button.ghost,
  .status-pill {
    background: #181f25;
    color: #f4f1e8;
  }

  .status-pill.online {
    border-color: #3bd18f;
    color: #3bd18f;
  }

  main {
    width: auto;
    padding: 14px 16px 30px;
  }

  .hero {
    min-height: 0;
    border: 1px solid #5b4930;
    background: #10161a;
  }

  .hero-media,
  .hero::after {
    display: none;
  }

  .hero-content {
    display: block;
    width: auto;
    min-height: 0;
    padding: 24px;
  }

  h1 {
    font-size: 42px;
    line-height: 1.05;
  }

  h2 {
    font-size: 24px;
  }

  .hero-copy,
  .feature-card p,
  .guide-card p,
  .panel p,
  .path-step p {
    color: #c4ccd1;
  }

  .eyebrow,
  .card-kicker,
  .visual-card span,
  .timeline-item time {
    color: #f0cf7a;
  }

  .hero-badges span {
    display: inline-block;
    margin: 4px 6px 4px 0;
    padding: 7px 10px;
    border: 1px solid #5b4930;
    background: #181f25;
    color: #f2e7ca;
  }

  .hero-panel {
    position: static;
    display: block;
    width: auto;
    margin: 0 24px 24px;
    border: 1px solid #5b4930;
    background: #10161a;
  }

  .hero-panel div {
    display: inline-block;
    width: 30%;
    min-height: 0;
    padding: 12px;
    border-right: 1px solid #33404a;
    vertical-align: top;
  }

  .section-band,
  .route-section,
  .spotlight-section,
  .split-section,
  .page-title,
  .event-layout,
  .chat-layout {
    margin-top: 18px;
  }

  .identity-strip,
  .server-pulse,
  .feature-grid,
  .path-grid,
  .split-section,
  .play-grid,
  .event-layout,
  .event-grid,
  .guide-grid,
  .character-layout,
  .metric-strip {
    display: block;
  }

  .identity-card,
  .pulse-card,
  .feature-card,
  .path-step,
  .panel,
  .guide-card,
  .event-card {
    display: block;
    min-height: 0;
    margin: 0 0 12px;
    padding: 16px;
    border: 1px solid #33404a;
    background: #181f25;
  }

  .crest-orb,
  .character-avatar,
  .character-mini-card span {
    border: 1px solid #d8ad56;
    background: #17110d;
    color: #f0cf7a;
  }

  .lookup-row,
  .chat-form,
  .admin-grid {
    display: block;
  }

  input,
  select {
    min-height: 38px;
    margin-bottom: 8px;
    border: 1px solid #33404a;
    border-radius: 6px;
    background: #10161a;
    color: #f4f1e8;
  }

  .stack-item,
  .chat-message,
  .timeline-item,
  .character-stats div,
  .detail-list div,
  .metric-strip div {
    display: block;
    margin-bottom: 8px;
    border: 1px solid #33404a;
    background: #10161a;
  }

  .site-footer {
    display: block;
    width: auto;
    padding: 20px 16px;
  }
}

@media (max-width: 1100px) {
  .site-header {
    grid-template-columns: 1fr;
  }

  .top-nav {
    justify-content: start;
  }

  .header-actions {
    justify-content: space-between;
  }

  .feature-grid,
  .feature-grid.compact,
  .guide-grid,
  .server-pulse,
  .path-grid,
  .play-grid,
  .event-layout,
  .identity-strip,
  .character-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .path-step::after {
    display: none;
  }

  .character-layout > .character-lookup-panel {
    grid-row: auto;
  }

  .chat-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  main {
    padding-inline: 12px;
    padding-top: 14px;
  }

  .site-header {
    padding-inline: 12px;
    padding-block: 10px;
    gap: 10px;
    min-height: 0;
  }

  .brand {
    gap: 10px;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
    font-size: 0.92rem;
  }

  .brand strong {
    font-size: 1rem;
  }

  .brand small {
    font-size: 0.82rem;
  }

  .top-nav {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
    overflow: visible;
    padding-bottom: 0;
  }

  .top-nav a {
    justify-content: center;
    min-height: 32px;
    padding: 6px 4px;
    text-align: center;
    font-size: 0.8rem;
  }

  .header-actions {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 8px;
  }

  .header-actions .button {
    min-width: 0;
    min-height: 36px;
    padding: 8px 10px;
  }

  .status-pill {
    min-width: 0;
    min-height: 36px;
    padding: 7px 10px;
  }

  .hero {
    width: 100%;
    max-width: calc(100vw - 24px);
    min-height: 0;
  }

  .hero-content {
    width: 100%;
    max-width: calc(100vw - 50px);
    min-height: 0;
    padding: 22px;
    justify-content: start;
  }

  .hero-content h1 {
    font-size: clamp(1.72rem, 8.6vw, 2.35rem);
    line-height: 1.04;
    overflow-wrap: break-word;
  }

  .hero-copy {
    max-width: 100%;
    font-size: 1rem;
  }

  .hero-actions .button {
    width: 100%;
    min-height: 42px;
  }

  .hero-panel {
    position: relative;
    right: auto;
    bottom: auto;
    width: auto;
    max-width: calc(100vw - 58px);
    margin: 0 16px 16px;
    grid-template-columns: 1fr;
  }

  .hero-panel div {
    min-height: 72px;
    border-right: 0;
    border-bottom: 1px solid rgba(216, 173, 86, 0.16);
  }

  .split-section,
  .feature-grid,
  .feature-grid.compact,
  .guide-grid,
  .server-pulse,
  .path-grid,
  .play-grid,
  .event-layout,
  .event-grid,
  .metric-strip,
  .identity-strip,
  .character-layout {
    grid-template-columns: 1fr;
  }

  .identity-card {
    min-height: 112px;
  }

  .lookup-row,
  .character-card-result,
  .compact-result .character-card-result {
    grid-template-columns: 1fr;
  }

  .character-avatar,
  .compact-result .character-avatar {
    width: 74px;
  }

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

  .character-overview-grid {
    grid-template-columns: 1fr;
  }

  .section-heading,
  .panel-head,
  .site-footer {
    align-items: start;
    flex-direction: column;
  }

  .timeline-item {
    grid-template-columns: 1fr;
  }

  .chat-form,
  .admin-grid {
    grid-template-columns: 1fr;
  }
}

/* U-033: Linkmania nostalgic yellow/blue/black theme. */
:root {
  --bg: #020202;
  --bg-2: #05070b;
  --panel: #07101d;
  --panel-2: #0b1c35;
  --line: #1c477a;
  --text: #fff7d6;
  --muted: #b8c9df;
  --gold: #ffbf00;
  --gold-2: #ffe45a;
  --red: #ff6b16;
  --red-2: #db4f00;
  --teal: #1478d4;
  --green: #35db78;
  --danger: #ff6b5f;
  --shadow: 0 20px 58px rgba(0, 0, 0, 0.66);
  --button-radius: 6px;
}

html,
body {
  background: #000;
  overflow-x: hidden;
}

body {
  color: var(--text);
  background:
    radial-gradient(circle at 50% 0, rgba(8, 69, 134, 0.34), transparent 34rem),
    linear-gradient(180deg, #03080f, #000 38rem);
}

body::before {
  background:
    repeating-linear-gradient(0deg, rgba(255, 191, 0, 0.035) 0 1px, transparent 1px 13px),
    linear-gradient(180deg, rgba(0, 74, 154, 0.18), rgba(0, 0, 0, 0.88));
}

.site-header {
  min-height: 36px;
  padding: 4px clamp(10px, 3vw, 38px);
  border-bottom: 2px solid #ffbf00;
  background:
    linear-gradient(180deg, #ffd93c 0, #ffbd00 48%, #d88900 100%);
  color: #050505;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.55);
}

.brand strong,
.brand small,
.top-nav a,
.header-actions .button,
.status-pill {
  color: #050505;
}

.brand strong {
  text-shadow: none;
}

.brand small {
  color: #1b1b1b;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-color: #080808;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.28);
}

.brand {
  gap: 8px;
}

.brand strong {
  font-size: 0.95rem;
  line-height: 1;
}

.brand small {
  font-size: 0.72rem;
  line-height: 1;
}

.top-nav {
  gap: 2px;
}

.top-nav a {
  min-height: 24px;
  padding: 3px 8px;
  border-radius: 2px;
  border-color: transparent;
  font-weight: 800;
  text-shadow: 0 1px rgba(255, 255, 255, 0.36);
}

.top-nav a:hover,
.top-nav a.is-active {
  border-color: #071a35;
  color: #fff;
  background: linear-gradient(180deg, #0757ad, #032c67);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.28);
}

.top-nav a.top-register {
  min-height: 30px;
  margin: -3px 6px;
  padding: 5px 18px;
  border: 1px solid #061832;
  border-radius: 4px;
  background:
    linear-gradient(180deg, rgba(255, 231, 94, 0.20), transparent 38%),
    linear-gradient(180deg, #0a66cf 0, #063b8f 54%, #031b45 100%);
  color: #fff;
  font-size: 0.92rem;
  font-weight: 950;
  letter-spacing: 0;
  text-shadow: 1px 1px 0 #00132e;
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.38),
    0 0 0 1px rgba(255, 221, 64, 0.62),
    0 6px 14px rgba(0, 31, 79, 0.42);
}

.top-nav a.top-register:hover,
.top-nav a.top-register.is-active {
  border-color: #000;
  background:
    linear-gradient(180deg, rgba(255, 239, 120, 0.28), transparent 36%),
    linear-gradient(180deg, #1378ed 0, #074aa9 56%, #03265c 100%);
  color: #fff;
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.42),
    0 0 0 1px rgba(255, 221, 64, 0.86),
    0 0 16px rgba(255, 191, 0, 0.32);
}

.header-actions .button,
.status-pill {
  min-height: 28px;
  padding: 5px 12px;
  border-color: #0d2f62;
  background: rgba(255, 255, 255, 0.26);
}

main {
  background: #000;
}

.hero,
.page-title,
.character-title,
.play-title {
  border-color: rgba(255, 191, 0, 0.55);
  background:
    linear-gradient(90deg, rgba(0, 44, 99, 0.96), rgba(4, 26, 58, 0.82)),
    #041733;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(0, 17, 38, 0.94), rgba(0, 31, 80, 0.68) 48%, rgba(0, 0, 0, 0.24)),
    linear-gradient(180deg, rgba(255, 191, 0, 0.10), rgba(0, 0, 0, 0.34));
}

.hero-content h1,
.page-title h1 {
  color: #fff;
  text-shadow:
    0 2px 0 #001b45,
    0 0 18px rgba(33, 127, 255, 0.38);
}

.eyebrow,
.card-kicker,
.panel-head span {
  color: var(--gold-2);
}

.panel,
.feature-card,
.guide-card,
.event-card,
.pulse-card,
.identity-card,
.path-step,
.metric-strip div,
.hero-panel,
.stack-item,
.chat-message,
.timeline-item,
.character-overview-grid div {
  border-color: rgba(255, 191, 0, 0.32);
  background:
    linear-gradient(180deg, rgba(0, 57, 124, 0.28), rgba(0, 0, 0, 0.18)),
    #050b13;
}

.button.primary {
  border-color: #fff06b;
  background: linear-gradient(180deg, #fff476 0, #ffc400 44%, #c47d00 100%);
  color: #050505;
}

.button.secondary {
  border-color: #41a9ff;
  background: linear-gradient(180deg, rgba(31, 137, 255, 0.50), rgba(4, 51, 111, 0.88));
  color: #f4fbff;
}

.button.ghost {
  border-color: rgba(255, 191, 0, 0.42);
  background: linear-gradient(180deg, rgba(10, 45, 93, 0.86), rgba(3, 11, 22, 0.92));
  color: #f8edbb;
}

.button.ghost:hover {
  border-color: #ffe45a;
  color: #fff;
  background: linear-gradient(180deg, #0757ad, #031f49);
}

.legacy-rank-shell {
  width: min(1040px, calc(100vw - 28px));
  margin: 0 auto 26px;
  border: 1px solid rgba(255, 191, 0, 0.48);
  background: #000;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.78);
}

.legacy-login-strip,
.legacy-subnav {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 6px 12px;
  background:
    linear-gradient(180deg, #ffe75b 0, #ffc400 48%, #c57b00 100%);
  color: #050505;
  font: 800 0.88rem Verdana, Arial, sans-serif;
  text-shadow: 0 1px rgba(255, 255, 255, 0.44);
}

.legacy-login-strip {
  justify-content: center;
  background: #020202;
  color: #fff;
  border-bottom: 1px dotted rgba(255, 191, 0, 0.56);
  text-shadow: none;
}

.legacy-login-strip i {
  width: min(160px, 16vw);
  height: 18px;
  display: block;
  background: #f7f7f7;
  border: 1px solid #808080;
}

.legacy-login-strip b {
  padding: 3px 12px;
  background: #f7f7f7;
  color: #050505;
  border: 1px solid #808080;
}

.legacy-rank-hero {
  min-height: 150px;
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 26px clamp(20px, 7vw, 92px);
  border-block: 1px solid rgba(255, 191, 0, 0.46);
  background:
    linear-gradient(90deg, rgba(0, 28, 71, 0.96), rgba(0, 84, 180, 0.75) 46%, rgba(0, 21, 56, 0.94)),
    url("/assets/linkmania-hero-v2.jpg") center / cover;
}

.legacy-rank-hero img {
  width: 104px;
  height: 104px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid #ffcf1a;
  background: #000;
  box-shadow: 0 0 24px rgba(255, 196, 0, 0.34);
}

.legacy-rank-hero strong {
  display: block;
  color: #fff;
  font: 900 clamp(2.4rem, 7vw, 4.6rem) Georgia, "Times New Roman", serif;
  line-height: 0.92;
  text-shadow:
    0 3px 0 #00245c,
    0 0 24px rgba(47, 140, 255, 0.54);
}

.legacy-rank-hero span {
  display: block;
  margin-top: 10px;
  color: #ffe45a;
  font: 800 1rem Verdana, Arial, sans-serif;
  letter-spacing: 0;
}

.legacy-subnav {
  gap: 38px;
  justify-content: center;
}

.legacy-subnav a {
  color: #050505;
  text-decoration: none;
  padding: 3px 8px;
  border: 1px solid transparent;
}

.legacy-subnav a:hover,
.legacy-subnav a:focus-visible,
.legacy-subnav a.is-active {
  color: #001b44;
  border-color: rgba(0, 0, 0, 0.32);
  background: rgba(255, 255, 255, 0.28);
  outline: 0;
}

.legacy-ranking-title {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 10px;
  align-items: end;
  width: min(850px, calc(100% - 44px));
  margin: 26px auto 8px;
  color: #fff;
  text-align: center;
}

.legacy-ranking-title h1 {
  margin: 0;
  color: #fff;
  font: 900 2rem/0.92 Verdana, Arial, sans-serif;
  text-shadow: 0 2px 0 #003d86;
}

.legacy-ranking-title div {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  border: 1px dotted #777;
  background: #202020;
}

.legacy-ranking-title .legacy-sort-filter {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.legacy-ranking-title .legacy-class-filter {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.legacy-ranking-title span {
  grid-column: 1 / -1;
  padding: 5px;
  color: #cfd7e3;
  font-size: 0.75rem;
  font-weight: 800;
}

.legacy-ranking-title b,
.legacy-ranking-title button {
  width: 100%;
  min-width: 0;
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 8px;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  font: 800 0.74rem Verdana, Arial, sans-serif;
  font-size: 0.74rem;
  line-height: 1.1;
  overflow: hidden;
  text-overflow: clip;
  white-space: nowrap;
}

.legacy-ranking-title .legacy-sort-filter button {
  font-size: 0.69rem;
}

.legacy-ranking-title .legacy-sort-filter [data-ranking-sort="name"] {
  font-size: 0.62rem;
}

.legacy-ranking-title b.is-active,
.legacy-ranking-title button.is-active {
  background: linear-gradient(180deg, #ff7b22 0, #ff5a16 54%, #d94100 100%);
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.28),
    inset 0 -1px rgba(0, 0, 0, 0.35);
}

.legacy-ranking-title button:hover,
.legacy-ranking-title button:focus-visible {
  color: #ffe45a;
  outline: 1px solid rgba(255, 228, 90, 0.76);
  outline-offset: -2px;
}

.legacy-metrics {
  width: min(850px, calc(100% - 44px));
  margin: 0 auto 8px;
}

.legacy-metrics div {
  display: grid;
  place-items: center;
  text-align: center;
}

.legacy-metrics span,
.legacy-metrics strong {
  text-align: center;
}

.legacy-ranking-panel {
  width: min(850px, calc(100% - 44px));
  margin: 0 auto 32px;
  padding: 0;
  background: transparent;
  border: 0;
}

.legacy-ranking-panel .panel-head {
  padding: 7px 10px;
  border: 1px solid #425b78;
  border-bottom: 0;
  background: linear-gradient(180deg, #0b4b92, #052a58);
}

.legacy-ranking-panel .panel-head h2 {
  color: #fff;
  font-size: 1rem;
}

.legacy-hidden-ranking {
  display: none;
}

.legacy-table-wrap {
  border: 1px solid #000;
  background: #ddd;
}

.legacy-ranking-table {
  min-width: 880px;
  width: 100%;
  border-collapse: collapse;
  font-family: Verdana, Arial, sans-serif;
  font-size: 0.86rem;
}

.legacy-ranking-table th {
  padding: 7px 6px;
  border: 2px solid #000;
  background: #a9c2df;
  color: #000;
  font-size: 0.84rem;
  letter-spacing: 0;
  text-align: center;
  text-transform: none;
}

.legacy-ranking-table th small {
  color: #061224;
  font-size: 0.72rem;
}

.legacy-ranking-table td {
  padding: 3px 6px;
  border: 2px solid #000;
  background: #e8e8e8;
  color: #000;
  text-align: center;
  line-height: 1.15;
}

.legacy-ranking-table tbody tr:nth-child(even) td {
  background: #dcdcdc;
}

.legacy-ranking-table td:nth-child(2) {
  text-align: left;
}

.legacy-ranking-table a {
  color: #001eff;
  font-weight: 800;
  text-decoration: underline;
}

.legacy-ranking-table td:nth-child(n+6) {
  color: #007c1e;
}

.legacy-pager {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0;
  margin-top: 20px;
  border: 1px dotted #777;
  background: #202020;
  color: #fff;
  font: 800 0.82rem Verdana, Arial, sans-serif;
}

.legacy-pager > * {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-right: 1px dotted #777;
  background: transparent;
  color: #fff;
  padding: 8px;
}

.legacy-pager > *:nth-child(3),
.legacy-pager > *:last-child {
  border-right: 0;
}

.legacy-pager label:nth-of-type(2) {
  grid-column: 1 / 3;
}

.legacy-pager input,
.legacy-pager select {
  height: 24px;
  border: 1px solid #aaa;
  background: #fff;
  color: #000;
}

.legacy-search-button {
  color: #ff6b16;
  text-transform: uppercase;
}

.captcha-field {
  gap: 8px;
}

.captcha-question {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 12px;
  border: 1px solid rgba(255, 211, 58, 0.62);
  background:
    linear-gradient(180deg, rgba(0, 62, 132, 0.72), rgba(0, 16, 31, 0.92)),
    #001f44;
  color: #ffd33a;
  font-weight: 800;
  text-shadow: 1px 1px 0 #000;
}

.captcha-question[data-state="ready"] {
  border-color: rgba(59, 209, 143, 0.6);
  color: #7ef3b2;
}

.captcha-question[data-state="error"] {
  border-color: rgba(239, 118, 110, 0.72);
  color: #ff9a94;
}

.compact-button {
  min-height: 38px;
  padding: 8px 14px;
  font-size: 0.86rem;
}

#rankings > .panel {
  width: min(1040px, calc(100vw - 28px));
  margin: 0 auto 28px;
}

@media (max-width: 760px) {
  .site-header {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    overflow: hidden;
    padding: 4px 14px;
  }

  .brand {
    justify-content: flex-start;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
  }

  .brand strong {
    font-size: 0.95rem;
  }

  .brand small {
    font-size: 0.72rem;
  }

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

  .top-nav a {
    min-width: 0;
    justify-content: center;
    padding: 4px 6px;
    font-size: 0.78rem;
  }

  .top-nav a.top-register {
    grid-column: 1 / -1;
    min-height: 32px;
    margin: 0;
    font-size: 0.9rem;
  }

  .header-actions {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 8px;
  }

  .header-actions .button,
  .status-pill {
    width: 100%;
    min-width: 0;
    justify-content: center;
    white-space: nowrap;
    padding: 5px 8px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .legacy-rank-shell {
    width: min(360px, calc(100vw - 24px));
    max-width: calc(100vw - 24px);
    margin-left: 12px;
    margin-right: auto;
  }

  .legacy-login-strip {
    display: none;
  }

  .legacy-rank-hero {
    min-height: 120px;
    grid-template-columns: 64px minmax(0, 1fr);
    display: grid;
    padding: 16px;
    gap: 14px;
  }

  .legacy-rank-hero img {
    width: 64px;
    height: 64px;
  }

  .legacy-rank-hero strong {
    font-size: clamp(1.65rem, 8vw, 2rem);
    overflow-wrap: anywhere;
  }

  .legacy-rank-hero span {
    font-size: 0.88rem;
    line-height: 1.25;
  }

  .legacy-subnav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
  }

  .legacy-subnav a {
    display: flex;
    justify-content: center;
    min-width: 0;
    padding: 8px 4px;
    text-align: center;
  }

  .legacy-ranking-title {
    grid-template-columns: 1fr;
    width: calc(100% - 20px);
    max-width: calc(100% - 20px);
  }

  .legacy-ranking-title div {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    min-width: 0;
  }

  .legacy-ranking-title .legacy-sort-filter {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .legacy-ranking-title .legacy-class-filter {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .legacy-ranking-title b,
  .legacy-ranking-title button {
    font-size: 0.68rem;
    overflow-wrap: anywhere;
    white-space: normal;
  }

  .legacy-ranking-title .legacy-sort-filter button {
    min-height: 30px;
    padding: 7px 3px;
    font-size: 0.6rem;
    white-space: nowrap;
  }

  .legacy-ranking-title .legacy-sort-filter [data-ranking-sort="name"] {
    font-size: 0.53rem;
  }

  .legacy-metrics,
  .legacy-ranking-panel {
    width: calc(100% - 20px);
    max-width: calc(100% - 20px);
  }

  .legacy-table-wrap {
    overflow-x: auto;
  }

  .legacy-pager {
    grid-template-columns: 1fr;
  }

  .legacy-pager label:nth-of-type(2) {
    grid-column: auto;
  }
}

@media (min-width: 761px) and (max-width: 900px) {
  .site-header {
    min-height: 34px;
    padding: 3px 12px;
    gap: 8px;
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .brand {
    gap: 7px;
  }

  .brand-mark {
    width: 30px;
    height: 30px;
  }

  .brand strong {
    font-size: 0.82rem;
    line-height: 1;
  }

  .brand small {
    font-size: 0.64rem;
    line-height: 1;
  }

  .top-nav {
    flex-wrap: nowrap;
    justify-content: center;
    gap: 2px;
    overflow: hidden;
  }

  .top-nav a {
    min-height: 24px;
    min-width: 0;
    padding: 3px 5px;
    font-size: 0.72rem;
    line-height: 1;
  }

  .top-nav a.top-register {
    min-height: 28px;
    margin: -2px 4px;
    padding: 4px 12px;
    font-size: 0.82rem;
  }

  .header-actions {
    gap: 6px;
  }

  .header-actions .button,
  .status-pill {
    min-height: 24px;
    min-width: 0;
    padding: 3px 7px;
    font-size: 0.72rem;
    line-height: 1;
  }

  .legacy-rank-shell {
    width: calc(100% - 24px);
    margin-top: 10px;
  }

  .legacy-login-strip {
    height: 30px;
    grid-template-columns: auto 104px 102px auto 104px auto auto;
    gap: 8px;
    padding: 4px 12px;
    font-size: 0.8rem;
  }

  .legacy-rank-hero {
    min-height: 92px;
    grid-template-columns: 70px minmax(0, 1fr);
    gap: 14px;
    padding: 12px 26px;
  }

  .legacy-rank-hero img {
    width: 66px;
    height: 66px;
  }

  .legacy-rank-hero strong {
    font-size: clamp(2rem, 7vw, 3rem);
  }

  .legacy-rank-hero span {
    font-size: 0.86rem;
  }

  .legacy-subnav {
    min-height: 28px;
    gap: 22px;
    font-size: 0.8rem;
  }

  .legacy-ranking-title,
  .legacy-metrics,
  .legacy-ranking-panel {
    width: calc(100% - 44px);
  }

  .legacy-ranking-title {
    gap: 10px;
    margin-top: 22px;
  }

  .legacy-ranking-title h1 {
    font-size: 1.9rem;
  }
}

@media (max-width: 760px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .site-header,
  main,
  .site-footer,
  .view,
  .page-title,
  .panel,
  .play-grid,
  .section-band,
  .identity-strip,
  .server-pulse,
  .feature-grid,
  .path-grid,
  .event-layout,
  .character-layout {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  main {
    padding: 20px 12px 42px;
  }

  .site-header {
    padding: 4px 14px;
  }

  .top-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: hidden;
  }

  .top-nav a {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .page-title {
    padding: 20px;
  }

  .page-title h1 {
    max-width: 100%;
    font-size: clamp(1.85rem, 9vw, 2.55rem);
    line-height: 1.08;
    overflow-wrap: anywhere;
  }

  .play-grid,
  .register-layout,
  .feature-grid,
  .path-grid,
  .event-layout,
  .character-layout,
  .metric-strip {
    grid-template-columns: 1fr;
  }

  .register-panel-head,
  .register-aside,
  .captcha-card,
  .form-section {
    grid-template-columns: 1fr;
  }

  .register-panel-head {
    display: grid;
  }

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

  .captcha-card {
    align-items: stretch;
  }

  .panel {
    padding: 20px;
  }

  .button-row {
    display: grid;
    grid-template-columns: 1fr;
  }

  .button-row .button,
  .form-grid .button,
  .register-form .button,
  .register-submit,
  .compact-button {
    width: 100%;
    max-width: 100%;
  }

  .form-grid input,
  .register-form input,
  .form-grid select,
  .captcha-question {
    width: 100%;
    max-width: 100%;
  }
}

@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
  .site-header {
    background: #f5bd00;
    color: #050505;
  }

  .brand strong,
  .brand small {
    color: #050505;
    text-shadow: none;
  }

  .top-nav a {
    border: 1px solid #54a8ff !important;
    background: #073b82 !important;
    color: #ffffff !important;
    text-shadow: 1px 1px 0 #001022 !important;
  }

  .top-nav a:hover,
  .top-nav a.is-active {
    border-color: #ffe66b !important;
    background: #031f49 !important;
    color: #ffd33a !important;
  }

  .header-actions .button {
    border-color: #54a8ff !important;
    background: #121c29 !important;
    color: #ffffff !important;
    text-shadow: 1px 1px 0 #000000 !important;
  }

  .status-pill {
    border-color: #ffd33a !important;
    background: #071426 !important;
    color: #3bd18f !important;
    text-shadow: 1px 1px 0 #000000 !important;
  }
}

.site-header .status-pill {
  min-width: 142px;
  min-height: 30px;
  padding: 5px 12px;
  gap: 8px;
  border: 1px solid #08172a;
  border-radius: 999px;
  background:
    linear-gradient(180deg, #0d223a 0, #071426 100%);
  color: #ffffff;
  font-size: 0;
  font-weight: 900;
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.18),
    0 2px 0 rgba(0, 0, 0, 0.55);
  text-shadow: none;
}

.site-header .status-pill::before {
  content: "";
  width: 9px;
  height: 9px;
  display: inline-block;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #ffd33a;
  box-shadow: 0 0 0 2px rgba(255, 211, 58, 0.20);
}

.site-header .status-pill::after {
  content: "Checking";
  display: inline-block;
  color: #ffffff;
  font-size: 0.78rem;
  line-height: 1;
  letter-spacing: 0;
  text-transform: uppercase;
  white-space: nowrap;
}

.site-header .status-pill.online {
  border-color: #3bd18f;
  background:
    linear-gradient(180deg, #0d3a2b 0, #061f19 100%);
}

.site-header .status-pill.online::before {
  background: #3bff9a;
  box-shadow:
    0 0 0 2px rgba(59, 255, 154, 0.22),
    0 0 12px rgba(59, 255, 154, 0.88);
}

.site-header .status-pill.online::after {
  content: "Server Online";
  color: #e7fff2;
}

.site-header .status-pill.offline {
  border-color: #ff6f61;
  background:
    linear-gradient(180deg, #401914 0, #220b08 100%);
}

.site-header .status-pill.offline::before {
  background: #ff6f61;
  box-shadow:
    0 0 0 2px rgba(255, 111, 97, 0.22),
    0 0 12px rgba(255, 111, 97, 0.72);
}

.site-header .status-pill.offline::after {
  content: "Server Offline";
  color: #ffe8e4;
}

@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
  .site-header {
    position: relative !important;
    padding: 10px 14px 12px !important;
  }

  .site-header .header-actions {
    position: absolute !important;
    top: 10px !important;
    right: 14px !important;
    width: auto !important;
    display: block !important;
    margin-top: 0 !important;
    text-align: right !important;
  }

  .site-header .status-pill {
    display: inline-block !important;
    width: auto !important;
    min-width: 142px !important;
    padding: 7px 12px !important;
    border-color: #3bd18f !important;
    background: #071426 !important;
    color: #ffffff !important;
    font-size: 0 !important;
    line-height: 1 !important;
    vertical-align: middle !important;
  }

  .site-header .status-pill::before {
    margin-right: 7px !important;
    background: #3bff9a !important;
    vertical-align: middle !important;
  }

  .site-header .status-pill::after {
    color: #e7fff2 !important;
    font-size: 12px !important;
    vertical-align: middle !important;
  }

  .site-header .header-actions .button {
    display: inline-block !important;
    width: auto !important;
    min-width: 78px !important;
    margin: 0 0 0 6px !important;
    padding: 7px 12px !important;
    vertical-align: middle !important;
  }
}
