:root {
  --bg: #151236;
  --bg-soft: #211c49;
  --panel: #2c274f;
  --panel-2: #382f66;
  --gold: #f2bf43;
  --text: #ffffff;
  --muted: #b9b6d7;
  --line: rgba(255, 255, 255, 0.1);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --touch-target: 44px;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100dvh;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Roboto, Arial, sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

img,
video {
  display: block;
  max-width: 100%;
}

.page-shell {
  position: relative;
  min-height: 100dvh;
  background:
    linear-gradient(180deg, rgba(23, 16, 56, 0.12) 0%, #151236 700px),
    #151236;
}

.hero-video-bg,
.hero-wash {
  position: absolute;
  inset: 0 0 auto;
  width: 100%;
  height: 860px;
  object-fit: cover;
  pointer-events: none;
}

.hero-video-bg {
  opacity: 0.5;
  mix-blend-mode: screen;
}

.hero-wash {
  background:
    radial-gradient(circle at 50% 15%, rgba(95, 78, 211, 0.36), transparent 35%),
    linear-gradient(180deg, rgba(9, 7, 23, 0.35), #151236 82%);
}

.site-header {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 34px;
  min-height: 86px;
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

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

.lfgpal-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 104px;
  height: 34px;
  padding: 0 13px;
  border: 1px solid rgba(242, 191, 67, 0.42);
  border-radius: 6px;
  background: linear-gradient(135deg, rgba(84, 234, 162, 0.18), rgba(242, 191, 67, 0.16));
  color: #ffffff;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.05);
}

.home-logo {
  height: 38px;
  min-width: 116px;
  font-size: 18px;
}

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

.brand-word {
  width: 138px;
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: 26px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 15px;
  font-weight: 700;
}

.site-nav a {
  transition: color 160ms ease;
}

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

.header-socials {
  display: flex;
  gap: 10px;
  color: #736e9d;
  font-weight: 900;
  text-transform: uppercase;
}

.header-socials a {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  font-size: 11px;
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  padding: 10px;
}

.menu-button span {
  display: block;
  height: 2px;
  margin: 6px 0;
  background: white;
}

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

.section-inner {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.hero-inner {
  min-height: 570px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 74px 0 46px;
}

.hero h1 {
  max-width: 980px;
  margin: 0;
  font-family: Oswald, Impact, sans-serif;
  font-size: clamp(46px, 6.2vw, 90px);
  line-height: 0.98;
  letter-spacing: 0;
  text-transform: uppercase;
  text-shadow: 0 8px 34px rgba(0, 0, 0, 0.35);
}

.hero h1 span,
.section-title span,
.big-tile h2 span,
.footer-message-holder span {
  color: var(--gold);
}

.hero p {
  max-width: 620px;
  margin: 24px 0 28px;
  color: #d7d5e8;
  font-size: 19px;
}

.download-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 28px;
  border-radius: 3px;
  background: var(--gold);
  color: #171238;
  font-weight: 900;
  box-shadow: 0 18px 44px rgba(242, 191, 67, 0.23);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.download-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 54px rgba(242, 191, 67, 0.33);
}

.windows-icon {
  width: 16px;
  height: 16px;
  background:
    linear-gradient(90deg, currentColor 46%, transparent 46% 54%, currentColor 54%) 0 0 / 100% 100%,
    linear-gradient(0deg, transparent 46%, currentColor 46% 54%, transparent 54%) 0 0 / 100% 100%;
}

.choose-game {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
  color: rgba(255, 255, 255, 0.86);
  font-weight: 700;
  font-size: 14px;
}

.down-arrow {
  width: 10px;
  height: 16px;
  border-left: 2px solid white;
  border-bottom: 2px solid white;
  transform: rotate(-45deg);
}

.games {
  padding: 16px 0 64px;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  width: min(100%, 680px);
  margin: 0 auto;
}

.game-card {
  position: relative;
  aspect-ratio: 1 / 1;
  min-height: 0;
  overflow: hidden;
  background-color: #151329;
  background-image:
    linear-gradient(135deg, rgba(255, 214, 84, 0.26), rgba(92, 72, 205, 0.16) 42%, rgba(12, 10, 28, 0.94) 100%);
  border-radius: 3px;
  border: 1px solid rgba(255, 214, 84, 0.24);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.09),
    inset 0 0 24px rgba(255, 213, 84, 0.07),
    0 18px 30px rgba(8, 5, 24, 0.26);
  isolation: isolate;
  transition: transform 180ms ease, filter 180ms ease;
}

.game-card::before {
  content: "";
  position: absolute;
  inset: 8px;
  z-index: 0;
  border-radius: 5px;
  background: var(--game-card-image) var(--game-image-position, center) / var(--game-image-size, cover) no-repeat;
  box-shadow:
    0 0 0 1px rgba(255, 225, 130, 0.12),
    0 0 22px rgba(255, 212, 84, 0.08),
    inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.game-card::after {
  content: "";
  position: absolute;
  inset: 8px;
  z-index: 1;
  border-radius: 5px;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(5, 4, 12, 0.06) 22%, rgba(5, 4, 12, 0.5) 100%),
    linear-gradient(90deg, rgba(5, 4, 12, 0.36), rgba(5, 4, 12, 0) 18%, rgba(5, 4, 12, 0) 82%, rgba(5, 4, 12, 0.44));
  box-shadow:
    inset 20px 0 26px rgba(6, 5, 15, 0.34),
    inset -20px 0 26px rgba(6, 5, 15, 0.42),
    inset 0 18px 24px rgba(6, 5, 15, 0.28),
    inset 0 -22px 30px rgba(6, 5, 15, 0.58);
}

.game-card:hover {
  transform: translateY(-5px);
  filter: saturate(1.12);
}

.home-page {
  background:
    radial-gradient(circle at 50% 0%, rgba(91, 77, 217, 0.24), transparent 34%),
    linear-gradient(180deg, #151236 0%, #0e0d22 100%);
}

.home-shell {
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 100dvh;
  background:
    linear-gradient(180deg, rgba(12, 9, 30, 0.24), rgba(12, 9, 30, 0.78)),
    #151236;
}

.home-page .site-header {
  grid-template-columns: auto 1fr;
}

.home-page .site-nav {
  justify-self: end;
}

.home-main {
  display: grid;
  align-items: center;
  min-height: calc(100dvh - 86px);
  padding:
    max(30px, var(--safe-top))
    0
    max(64px, var(--safe-bottom));
}

.home-games {
  width: 100%;
  padding: 0;
}

.home-section-head {
  display: grid;
  justify-items: center;
  gap: 10px;
  margin-bottom: 26px;
  text-align: center;
}

.home-section-head span {
  color: var(--gold);
  font-family: "Oswald", "Roboto", sans-serif;
  font-size: clamp(46px, 9vw, 104px);
  line-height: 0.9;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
  text-shadow: 0 10px 30px rgba(252, 211, 77, 0.18);
}

.home-section-head h1 {
  margin: 0;
  color: white;
  font-family: "Oswald", "Roboto", sans-serif;
  font-size: clamp(42px, 8vw, 86px);
  line-height: 0.94;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.home-page .games-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: min(100%, 1180px);
  gap: 18px;
}

.home-page .game-card {
  border-radius: 8px;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.09),
    inset 0 0 24px rgba(255, 213, 84, 0.07),
    0 28px 70px rgba(5, 4, 16, 0.36);
}

.game-card-arc {
  --game-image-position: center 7%;
}

.game-card-marathon {
  --game-image-position: center;
}

.game-card-subnautica {
  --game-image-position: 50% 50%;
  border-color: rgba(54, 224, 249, 0.28);
  background-image:
    linear-gradient(135deg, rgba(54, 224, 249, 0.22), rgba(92, 72, 205, 0.15) 44%, rgba(9, 24, 35, 0.96) 100%);
}

.game-card-subnautica::before {
  box-shadow:
    0 0 0 1px rgba(96, 232, 255, 0.13),
    0 0 24px rgba(54, 224, 249, 0.1),
    inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.game-card-nte {
  --game-image-position: center 35%;
  --game-image-size: auto 130%;
  background-color: #080611;
  background-image:
    linear-gradient(135deg, rgba(255, 132, 189, 0.24), rgba(92, 72, 205, 0.16) 44%, rgba(20, 14, 39, 0.96) 100%);
}

.game-card-nte::before {
  background: var(--game-card-image) var(--game-image-position) / var(--game-image-size) no-repeat;
}

/* Home game portal */
.home-page {
  --home-bg: #060912;
  --home-panel: rgba(9, 13, 24, 0.78);
  --home-line: rgba(173, 190, 224, 0.14);
  --home-purple: #8b5cf6;
  --home-purple-2: #5f46e8;
  background:
    linear-gradient(180deg, rgba(15, 20, 36, 0.92), rgba(4, 7, 14, 0.98)),
    var(--home-bg);
}

.home-shell {
  overflow: hidden;
  background:
    linear-gradient(rgba(133, 108, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(92, 214, 255, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(8, 11, 22, 0.12), rgba(4, 7, 14, 0.92)),
    #060912;
  background-size: 96px 96px, 96px 96px, auto, auto;
}

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

.home-shell::before {
  background:
    linear-gradient(115deg, transparent 0 34%, rgba(122, 94, 255, 0.08) 34.2% 34.6%, transparent 34.8% 100%),
    linear-gradient(64deg, transparent 0 66%, rgba(47, 230, 205, 0.07) 66.2% 66.6%, transparent 66.8% 100%);
  opacity: 0.7;
}

.home-shell::after {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.72));
}

.home-page .site-header.home-header {
  position: relative;
  z-index: 4;
  grid-template-columns: auto auto 1fr auto;
  gap: clamp(16px, 2.1vw, 34px);
  width: min(100% - 28px, 1600px);
  min-height: 92px;
  margin-top: 2px;
  padding: 0 clamp(16px, 2vw, 32px);
  border: 1px solid rgba(165, 185, 224, 0.17);
  border-radius: 0 0 24px 24px;
  background:
    linear-gradient(180deg, rgba(12, 16, 30, 0.9), rgba(7, 10, 18, 0.78)),
    rgba(6, 9, 18, 0.78);
  box-shadow:
    0 18px 70px rgba(0, 0, 0, 0.28),
    inset 0 -1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(18px);
}

.home-brand {
  min-width: 224px;
  padding-right: clamp(18px, 2vw, 34px);
  border-right: 1px solid rgba(255, 255, 255, 0.16);
}

.home-wordmark {
  color: #fff;
  font-size: clamp(32px, 3vw, 48px);
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.home-wordmark span {
  color: transparent;
  background: linear-gradient(135deg, #9a7bff, #6e4cff 54%, #bb8cff);
  -webkit-background-clip: text;
  background-clip: text;
}

.home-page .site-nav {
  justify-self: start;
  justify-content: flex-start;
  gap: clamp(18px, 3vw, 54px);
  color: rgba(236, 242, 255, 0.84);
}

.home-page .site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0;
  border-radius: 12px;
  color: rgba(238, 242, 250, 0.84);
  font-size: 16px;
  font-weight: 700;
  transition: color 160ms ease, transform 160ms ease;
}

.home-page .site-nav a:hover {
  color: #fff;
  transform: translateY(-1px);
}

.home-actions {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 18px;
}

.home-find,
.home-profile,
.home-value-strip aside button {
  min-height: 48px;
  border: 1px solid rgba(194, 171, 255, 0.56);
  color: #fff;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.home-find {
  min-width: 168px;
  padding: 0 24px;
  border-radius: 15px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.92), rgba(97, 70, 232, 0.98));
  font-weight: 900;
  box-shadow:
    0 12px 28px rgba(110, 76, 255, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.home-find:hover,
.home-value-strip aside button:hover {
  transform: translateY(-2px);
  border-color: rgba(224, 212, 255, 0.9);
  box-shadow: 0 18px 38px rgba(110, 76, 255, 0.36);
}

.home-profile {
  position: relative;
  width: 54px;
  padding: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.035);
}

.home-profile span,
.home-profile span::before {
  position: absolute;
  left: 50%;
  border: 2px solid rgba(236, 242, 255, 0.76);
  transform: translateX(-50%);
}

.home-profile span {
  top: 27px;
  width: 20px;
  height: 11px;
  border-radius: 10px 10px 4px 4px;
  border-bottom: 0;
}

.home-profile span::before {
  content: "";
  top: -16px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.home-main {
  position: relative;
  z-index: 2;
  min-height: calc(100dvh - 94px);
  padding: clamp(42px, 5vh, 70px) 0 max(34px, var(--safe-bottom));
}

.home-portal-inner {
  width: min(100% - 48px, 1460px);
}

.home-section-head {
  gap: 10px;
  margin-bottom: clamp(24px, 3.4vh, 36px);
}

.home-section-head h1 {
  color: #fff;
  font-family: Roboto, Arial, sans-serif;
  font-size: clamp(48px, 5.8vw, 82px);
  line-height: 1.02;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: none;
  text-shadow: 0 16px 54px rgba(111, 83, 255, 0.2);
}

.home-section-head h1 span {
  color: transparent;
  font: inherit;
  text-transform: none;
  background: linear-gradient(135deg, #ffffff 0%, #b8a6ff 42%, #805cff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  text-shadow: none;
}

.home-section-head p {
  margin: 0;
  color: rgba(235, 239, 250, 0.72);
  font-size: clamp(16px, 1.35vw, 21px);
  font-weight: 500;
}

.home-section-head i {
  display: block;
  width: 30px;
  height: 4px;
  margin-top: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, #8b5cf6, transparent);
  box-shadow: 0 0 14px rgba(139, 92, 246, 0.9);
}

.home-page .games-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: 100%;
  gap: clamp(16px, 1.55vw, 24px);
}

.home-page .game-card {
  --card-accent: #f4b349;
  --card-accent-rgb: 244, 179, 73;
  display: block;
  aspect-ratio: 0.82 / 1;
  min-height: 360px;
  padding: 0;
  border: 1px solid rgba(var(--card-accent-rgb), 0.42);
  border-radius: 22px;
  background: rgba(9, 13, 24, 0.9);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.32),
    0 0 34px rgba(var(--card-accent-rgb), 0.08),
    inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.home-page .game-card::before {
  inset: 0;
  border-radius: inherit;
  background: var(--game-card-image) var(--game-image-position, center) / var(--game-image-size, cover) no-repeat;
  box-shadow: none;
  transform: scale(1.001);
  transition: transform 220ms ease, filter 220ms ease;
}

.home-page .game-card::after {
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(180deg, rgba(2, 4, 10, 0.03) 0%, rgba(2, 4, 10, 0.12) 48%, rgba(2, 4, 10, 0.34) 100%),
    linear-gradient(0deg, rgba(var(--card-accent-rgb), 0.15), transparent 38%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    inset 0 -72px 78px rgba(0, 0, 0, 0.48);
}

.home-page .game-card:hover {
  transform: translateY(-8px);
  border-color: rgba(var(--card-accent-rgb), 0.78);
  filter: saturate(1.08);
  box-shadow:
    0 26px 80px rgba(0, 0, 0, 0.42),
    0 0 44px rgba(var(--card-accent-rgb), 0.2),
    inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.home-page .game-card:hover::before {
  transform: scale(1.045);
}

.home-card-arrow {
  position: absolute;
  right: clamp(16px, 1.35vw, 24px);
  bottom: clamp(16px, 1.35vw, 24px);
  z-index: 2;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.46);
  border-radius: 50%;
  background: rgba(7, 10, 18, 0.36);
  color: #fff;
  font-size: 30px;
  line-height: 1;
  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.game-card:hover .home-card-arrow {
  transform: translateX(4px);
  border-color: rgba(var(--card-accent-rgb), 0.9);
  background: rgba(var(--card-accent-rgb), 0.18);
}

.game-card-arc {
  --card-accent: #f6b13f;
  --card-accent-rgb: 246, 177, 63;
  --game-image-position: center 8%;
}

.game-card-marathon {
  --card-accent: #baf90f;
  --card-accent-rgb: 186, 249, 15;
  --game-image-position: center;
}

.game-card-subnautica {
  --card-accent: #36e0f9;
  --card-accent-rgb: 54, 224, 249;
  --game-image-position: 50% 50%;
  background: rgba(8, 21, 31, 0.92);
}

.game-card-nte {
  --card-accent: #ff65b2;
  --card-accent-rgb: 255, 101, 178;
  --game-image-position: center 35%;
  --game-image-size: auto 130%;
}

.home-value-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(220px, 0.9fr);
  align-items: stretch;
  gap: 0;
  margin-top: clamp(28px, 4.6vh, 46px);
  padding: 18px;
  border: 1px solid rgba(165, 185, 224, 0.15);
  border-radius: 22px;
  background:
    linear-gradient(90deg, rgba(13, 18, 32, 0.86), rgba(10, 14, 25, 0.72)),
    rgba(8, 11, 19, 0.72);
  box-shadow:
    0 22px 70px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(16px);
}

.home-value-strip article,
.home-value-strip aside {
  min-width: 0;
  padding: 16px 22px;
}

.home-value-strip article {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 14px;
  align-content: center;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.home-value-strip article span {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: #9f7cff;
  font-size: 36px;
  font-weight: 900;
  line-height: 1;
  text-shadow: 0 0 20px rgba(139, 92, 246, 0.64);
}

.home-value-strip strong {
  color: #d8ccff;
  font-size: 15px;
  line-height: 1.15;
  font-weight: 900;
  text-transform: uppercase;
}

.home-value-strip p {
  margin: 6px 0 0;
  color: rgba(226, 232, 244, 0.68);
  font-size: 14px;
  line-height: 1.35;
}

.home-value-strip aside {
  display: grid;
  align-content: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.025);
}

.home-value-strip aside button {
  width: 100%;
  min-height: 34px;
  border-radius: 7px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.34), rgba(89, 60, 185, 0.5));
  font-size: 14px;
  font-weight: 900;
}

.subnautica-page {
  --game-accent: #41e4ff;
  --game-accent-rgb: 65, 228, 255;
  --game-accent-2: #73ffd8;
  --game-topbar-bg: rgba(4, 13, 24, 0.94);
  --game-rail-bg: #06111d;
  --game-rail-surface: rgba(10, 31, 49, 0.78);
  --game-rail-surface-hover: rgba(14, 54, 73, 0.9);
  --game-rail-text: #b8d7df;
  --marathon-accent: #41e4ff;
  --marathon-lime: #73ffd8;
  --subnautica-deep: #04101c;
  --subnautica-surface: #06243a;
  --subnautica-panel: rgba(8, 22, 36, 0.82);
  --subnautica-line: rgba(107, 233, 255, 0.2);
  --subnautica-green: #73ffd8;
  background:
    radial-gradient(circle at 20% 12%, rgba(115, 255, 216, 0.15), transparent 32%),
    radial-gradient(circle at 76% 8%, rgba(54, 224, 249, 0.2), transparent 36%),
    linear-gradient(180deg, #081827 0%, #04101c 48%, #020711 100%);
  color: #f3fbff;
}

.subnautica-main {
  display: grid;
  gap: clamp(18px, 3vw, 34px);
  padding-bottom: max(70px, calc(56px + var(--safe-bottom)));
}

.subnautica-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 380px);
  gap: clamp(22px, 4vw, 56px);
  align-items: center;
  min-height: calc(100dvh - 86px);
  box-sizing: border-box;
  padding:
    max(34px, var(--safe-top))
    clamp(20px, 4vw, 56px)
    max(56px, var(--safe-bottom));
}

.subnautica-hero-full {
  position: relative;
  isolation: isolate;
  min-height: min(780px, calc(100dvh - 74px));
}

.subnautica-hero-full::before,
.subnautica-hero-full::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.subnautica-hero-full::before {
  inset: 20px 0 0;
  z-index: 0;
  border: 1px solid rgba(107, 233, 255, 0.12);
  border-radius: 10px;
  background:
    linear-gradient(90deg, rgba(4, 16, 28, 0.92), rgba(4, 16, 28, 0.48) 45%, rgba(4, 16, 28, 0.18)),
    linear-gradient(180deg, rgba(4, 16, 28, 0.04), rgba(4, 16, 28, 0.58)),
    url("https://shared.akamai.steamstatic.com/store_item_assets/steam/apps/1962700/header.jpg") center right / cover no-repeat;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.04),
    inset 0 -180px 160px rgba(2, 7, 17, 0.8),
    0 34px 90px rgba(0, 0, 0, 0.36);
}

.subnautica-hero-full::after {
  left: 5%;
  right: 5%;
  bottom: 28px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(65, 228, 255, 0.72), transparent);
  opacity: 0.55;
}

.subnautica-hero-copy {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 18px;
  align-content: center;
  max-width: min(100%, 680px);
}

.subnautica-kicker {
  width: fit-content;
  color: #73ffd8;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
}

.subnautica-hero h1 {
  margin: 0;
  color: white;
  font-family: "Oswald", "Roboto", sans-serif;
  font-size: clamp(44px, 6.2vw, 88px);
  line-height: 0.96;
  max-width: 11.5ch;
  text-transform: uppercase;
  text-wrap: balance;
  text-shadow: 0 18px 50px rgba(0, 0, 0, 0.42);
}

.subnautica-hero p {
  max-width: 660px;
  margin: 0;
  color: rgba(229, 244, 255, 0.78);
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.6;
}

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

.subnautica-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid rgba(65, 228, 255, 0.28);
  border-radius: 6px;
  background: rgba(65, 228, 255, 0.12);
  color: white;
  font-weight: 900;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.subnautica-actions a:first-child {
  background: linear-gradient(135deg, #73ffd8, #41e4ff);
  color: #04111d;
}

.subnautica-actions a:hover {
  transform: translateY(-2px);
  border-color: rgba(115, 255, 216, 0.54);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.22), 0 0 24px rgba(65, 228, 255, 0.16);
}

.subnautica-cover {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border: 1px solid rgba(65, 228, 255, 0.24);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(4, 10, 20, 0.02), rgba(4, 10, 20, 0.42)),
    url("https://shared.akamai.steamstatic.com/store_item_assets/steam/apps/1962700/library_600x900.jpg") center / cover no-repeat;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    0 28px 72px rgba(0, 8, 20, 0.5);
}

.subnautica-mission-card,
.subnautica-panel,
.subnautica-data-card,
.subnautica-creature-grid article,
.subnautica-tool-grid article,
.subnautica-quick-grid a {
  border: 1px solid var(--subnautica-line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), transparent),
    var(--subnautica-panel);
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.06),
    0 26px 70px rgba(0, 0, 0, 0.22);
}

.subnautica-mission-card {
  position: relative;
  z-index: 1;
  align-self: center;
  display: grid;
  gap: 14px;
  min-height: 320px;
  padding: clamp(20px, 3vw, 28px);
  backdrop-filter: blur(16px);
}

.subnautica-mission-card span,
.subnautica-data-card span,
.subnautica-creature-grid span,
.subnautica-quick-grid span {
  color: var(--subnautica-green);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.subnautica-mission-card strong {
  color: #fff;
  font-family: "Oswald", "Roboto", sans-serif;
  font-size: clamp(36px, 4vw, 54px);
  line-height: 0.94;
  text-transform: uppercase;
}

.subnautica-mission-card p,
.subnautica-panel p,
.subnautica-data-card p,
.subnautica-creature-grid p,
.subnautica-tool-grid p {
  margin: 0;
  color: rgba(229, 244, 255, 0.78);
  line-height: 1.5;
}

.subnautica-mission-card div,
.subnautica-base-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.subnautica-mission-card em,
.subnautica-base-grid span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid rgba(115, 255, 216, 0.2);
  border-radius: 999px;
  background: rgba(115, 255, 216, 0.08);
  color: #dffcff;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.subnautica-quick-grid,
.subnautica-card-grid,
.subnautica-creature-grid,
.subnautica-tool-grid {
  display: grid;
  gap: 14px;
}

.subnautica-quick-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.subnautica-quick-grid a {
  display: grid;
  align-content: space-between;
  min-height: 146px;
  padding: 18px;
  color: white;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.subnautica-quick-grid a:hover,
.subnautica-data-card:hover,
.subnautica-creature-grid article:hover,
.subnautica-tool-grid article:hover {
  transform: translateY(-3px);
  border-color: rgba(115, 255, 216, 0.42);
  background:
    radial-gradient(circle at 24% 12%, rgba(115, 255, 216, 0.11), transparent 36%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), transparent),
    rgba(8, 22, 36, 0.92);
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.075),
    0 30px 72px rgba(0, 0, 0, 0.3),
    0 0 26px rgba(65, 228, 255, 0.1);
}

.subnautica-quick-grid strong {
  color: rgba(229, 244, 255, 0.84);
  font-size: 14px;
  line-height: 1.4;
}

.subnautica-panel,
.subnautica-database,
.subnautica-crafting {
  padding: clamp(20px, 3vw, 28px);
}

.subnautica-section-head {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.subnautica-section-head h2,
.subnautica-base-panel h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.05;
}

.subnautica-section-head p,
.subnautica-base-panel p {
  max-width: 850px;
}

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

.subnautica-route article {
  display: grid;
  gap: 10px;
  min-height: 176px;
  padding: 18px;
  border: 1px solid rgba(107, 233, 255, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(65, 228, 255, 0.08), transparent),
    rgba(3, 11, 22, 0.72);
}

.subnautica-route b,
.subnautica-tool-grid b,
.subnautica-leviathan {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(115, 255, 216, 0.95), rgba(65, 228, 255, 0.9));
  color: #04111d;
  font-size: 13px;
  font-weight: 900;
}

.subnautica-route span {
  color: var(--subnautica-green);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.subnautica-route strong {
  color: #fff;
  font-size: 18px;
  line-height: 1.25;
}

.subnautica-card-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.subnautica-data-card {
  display: grid;
  gap: 11px;
  min-height: 100%;
  overflow: hidden;
  padding: 12px;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.subnautica-data-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.05);
}

.subnautica-data-card strong,
.subnautica-creature-grid strong,
.subnautica-tool-grid strong {
  color: #fff;
  font-size: 19px;
  line-height: 1.15;
}

.subnautica-data-card em {
  align-self: end;
  color: rgba(115, 255, 216, 0.86);
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.subnautica-creature-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.subnautica-creature-grid article,
.subnautica-tool-grid article {
  display: grid;
  gap: 10px;
  min-height: 210px;
  padding: 18px;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.subnautica-creature-grid img {
  width: 100%;
  height: 92px;
  object-fit: contain;
  object-position: center;
  border-radius: 8px;
  background: rgba(65, 228, 255, 0.06);
}

.subnautica-leviathan {
  width: 76px;
  height: 92px;
  border-radius: 12px;
  font-size: 22px;
}

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

.subnautica-tool-grid article {
  min-height: 190px;
}

.subnautica-base-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 22px;
  align-items: center;
  background:
    linear-gradient(90deg, rgba(8, 22, 36, 0.94), rgba(8, 22, 36, 0.62)),
    url("https://prod-wstatic.subnautica.com/web/live/main_f93873e/_nuxt/main-section-bg-4.wu2xqGaf.png") center / cover no-repeat;
}

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

.subnautica-base-grid span {
  justify-content: center;
  min-height: 46px;
  border-radius: 8px;
}

.video-feature {
  padding: 24px 0 88px;
}

.video-card {
  position: relative;
  overflow: hidden;
  min-height: 390px;
  background: var(--panel);
  border-radius: 0;
  box-shadow: 0 38px 90px rgba(0, 0, 0, 0.24);
}

.video-card video,
.video-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.video-card video {
  object-fit: cover;
}

.video-overlay {
  background: linear-gradient(90deg, rgba(44, 39, 79, 0.96), rgba(44, 39, 79, 0.62));
}

.video-copy,
.play-button {
  position: relative;
  z-index: 1;
}

.video-copy {
  display: grid;
  place-items: center;
  min-height: 390px;
  padding-top: 92px;
  text-align: center;
}

.video-copy h2 {
  margin: 0;
  font-family: Oswald, Impact, sans-serif;
  font-size: clamp(30px, 4.2vw, 58px);
  line-height: 1;
  text-transform: uppercase;
}

.video-copy span {
  margin-top: -74px;
  color: var(--gold);
  font-weight: 900;
}

.play-button {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 82px;
  height: 82px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  transform: translate(-50%, -38%);
  cursor: pointer;
}

.win-more,
.loop,
.tiles,
.testimonials,
.partners {
  padding: 76px 0;
}

.section-title {
  margin: 0 auto 34px;
  max-width: 820px;
  text-align: center;
  font-family: Oswald, Impact, sans-serif;
  font-size: clamp(34px, 4.4vw, 60px);
  line-height: 1.04;
  text-transform: uppercase;
}

.section-lede {
  max-width: 650px;
  margin: -14px auto 44px;
  color: var(--muted);
  text-align: center;
  font-size: 18px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 42px;
  text-align: center;
}

.feature-grid article {
  padding: 10px 16px;
}

.feature-grid img {
  height: 150px;
  margin: 0 auto 24px;
  object-fit: contain;
}

.feature-grid h3 {
  margin: 0 0 12px;
  font-size: 22px;
}

.feature-grid p,
.big-tile p,
.testimonial-grid p,
.partner-card p {
  color: var(--muted);
}

.loop {
  background: linear-gradient(180deg, rgba(32, 27, 70, 0.2), rgba(32, 27, 70, 0.78));
}

.loop-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 54px;
  align-items: center;
}

.loop-steps {
  display: grid;
  gap: 16px;
}

.loop-step {
  display: block;
  width: 100%;
  padding: 22px 24px;
  border: 1px solid var(--line);
  background: rgba(44, 39, 79, 0.72);
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease;
}

.loop-step.active {
  border-color: rgba(242, 191, 67, 0.5);
  background: #312a65;
}

.loop-step strong {
  display: block;
  margin-bottom: 8px;
  font-family: Oswald, Impact, sans-serif;
  font-size: 26px;
  text-transform: uppercase;
}

.loop-step span {
  color: var(--muted);
}

.loop-image-panel {
  position: relative;
  min-height: 450px;
}

.loop-image {
  position: absolute;
  inset: 0;
  width: 100%;
  max-height: 450px;
  margin: auto;
  object-fit: contain;
  opacity: 0;
  transform: translateY(18px) scale(0.98);
  transition: opacity 260ms ease, transform 260ms ease;
  filter: drop-shadow(0 28px 50px rgba(0, 0, 0, 0.38));
}

.loop-image.active {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.download-strip {
  padding: 36px 0 56px;
  text-align: center;
}

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

.big-tile {
  min-height: 390px;
  padding: 50px 46px;
  background-position: center;
  background-size: cover;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.research-tile {
  background-image:
    linear-gradient(180deg, rgba(89, 59, 216, 0.42), rgba(89, 59, 216, 0.98)),
    url("https://cdnportal.mobalytics.gg/production/2021/06/55cf74d1-read-the-research.png");
}

.esports-tile {
  background-image:
    linear-gradient(180deg, rgba(32, 28, 62, 0.44), rgba(32, 28, 62, 1)),
    url("https://cdnportal.mobalytics.gg/production/2021/06/a421e9b4-esports.png");
}

.big-tile h2 {
  margin: 0;
  font-family: Oswald, Impact, sans-serif;
  font-size: clamp(28px, 3vw, 46px);
  line-height: 1.06;
  text-transform: uppercase;
}

.big-tile h2 > span:first-child {
  display: block;
  font-size: clamp(70px, 9vw, 118px);
}

.big-tile a {
  display: inline-flex;
  width: fit-content;
  margin-top: 18px;
  padding: 12px 18px;
  background: #2b244f;
  color: white;
  font-weight: 800;
}

.tile-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.big-tile a.text-link {
  background: transparent;
  color: var(--gold);
  padding-inline: 0;
}

.map-panel {
  padding: 58px;
  background:
    linear-gradient(180deg, rgba(21, 18, 54, 0.48), rgba(21, 18, 54, 0.95)),
    url("https://cdnportal.mobalytics.gg/production/2021/06/c9ae3afe-map.png") center / cover;
}

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

.testimonial-grid article {
  min-height: 280px;
  padding: 26px 22px;
  background: rgba(44, 39, 79, 0.9);
  border: 1px solid var(--line);
}

.testimonial-grid img {
  width: 74px;
  height: 74px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 20px;
}

.testimonial-grid strong {
  color: var(--gold);
}

.partner-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 36px;
  margin-bottom: 34px;
  flex-wrap: wrap;
}

.partner-logos button {
  display: grid;
  place-items: center;
  width: 130px;
  height: 62px;
  border: 0;
  border-bottom: 3px solid transparent;
  background: transparent;
  opacity: 0.5;
  cursor: pointer;
  transition: opacity 160ms ease, border-color 160ms ease;
}

.partner-logos button.active {
  opacity: 1;
  border-color: var(--gold);
}

.partner-logos img {
  max-height: 42px;
  object-fit: contain;
}

.partner-card {
  display: grid;
  grid-template-columns: 1fr 0.92fr;
  min-height: 430px;
  background: #211c49;
  overflow: hidden;
}

.partner-card > div:first-child {
  padding: 58px;
}

.partner-card h3 {
  margin: 0 0 18px;
  font-family: Oswald, Impact, sans-serif;
  font-size: 42px;
  text-transform: uppercase;
}

.partner-card strong {
  color: var(--gold);
}

.partner-art {
  min-height: 430px;
  background-position: center;
  background-size: cover;
}

.app-ad {
  padding: 92px 0;
  text-align: center;
  background: linear-gradient(0deg, rgba(86, 68, 216, 0.05), rgba(86, 68, 216, 0.72));
}

.site-footer {
  background: #100d2a;
  color: #aaa7ca;
  padding: 62px 0 50px;
}

.footer-inner {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-columns h3 {
  margin: 0 0 16px;
  color: white;
  font-size: 15px;
}

.footer-columns a {
  display: block;
  margin: 9px 0;
  font-size: 14px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  padding-top: 30px;
}

.footer-bottom p {
  color: white;
  margin: 0 0 8px;
}

.footer-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  align-content: start;
  justify-content: flex-end;
}

.cookie-bar {
  position: fixed;
  z-index: 20;
  right: 18px;
  bottom: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 520px;
  padding: 14px 18px;
  background: white;
  color: #241f43;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.24);
  font-size: 14px;
}

.cookie-bar.hidden {
  display: none;
}

.cookie-bar button {
  border: 0;
  background: var(--gold);
  color: #171238;
  padding: 8px 14px;
  font-weight: 900;
  cursor: pointer;
}

.cookie-bar a {
  color: #5b4dd9;
  font-weight: 800;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: auto auto;
    justify-content: space-between;
  }

  .home-page .site-header {
    grid-template-columns: auto auto;
  }

  .menu-button {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 18px;
    background: rgba(21, 18, 54, 0.98);
    border: 1px solid var(--line);
  }

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

  .site-nav a {
    padding: 12px;
  }

  .header-socials {
    display: none;
  }

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

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

  .subnautica-hero {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .subnautica-cover {
    width: min(100%, 340px);
  }

  .feature-grid,
  .testimonial-grid,
  .footer-columns {
    grid-template-columns: repeat(2, 1fr);
  }

  .loop-layout,
  .partner-card,
  .tile-grid {
    grid-template-columns: 1fr;
  }

  .partner-art {
    min-height: 320px;
  }
}

@media (max-width: 640px) {
  .section-inner,
  .site-header,
  .footer-inner {
    width: min(100% - 28px, 1180px);
  }

  .brand-word {
    width: 118px;
  }

  .hero-inner {
    min-height: 500px;
  }

  .download-button {
    width: 100%;
    padding-inline: 16px;
  }

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

  .home-main {
    align-items: start;
    padding-top: 42px;
  }

  .home-page .games-grid {
    grid-template-columns: 1fr;
    max-width: 360px;
  }

  .game-card {
    min-height: 0;
  }

  .video-card,
  .video-copy {
    min-height: 310px;
  }

  .feature-grid,
  .testimonial-grid,
  .footer-columns {
    grid-template-columns: 1fr;
  }

  .map-panel,
  .partner-card > div:first-child,
  .big-tile {
    padding: 30px 22px;
  }

  .loop-image-panel {
    min-height: 310px;
  }

  .footer-bottom,
  .cookie-bar {
    flex-direction: column;
    align-items: flex-start;
  }

  .cookie-bar {
    left: 14px;
    right: 14px;
    bottom: 14px;
  }
}

/* Neverness to Everness page */
.nte-page {
  --nte-bg: #151128;
  --nte-panel: #27214c;
  --nte-panel-2: #30295b;
  --nte-panel-3: #3b336b;
  --nte-pink: #ff6caf;
  --nte-gold: #f2bf43;
  --nte-text: #f6f3ff;
  --nte-muted: #b9b3d4;
  background: var(--nte-bg);
  color: var(--nte-text);
  font-family: Roboto, Arial, sans-serif;
}

.nte-topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  min-height: 40px;
  background: #120e27;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nte-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 180px;
  padding: 0 22px;
}

.nte-logo img {
  width: 132px;
  height: 24px;
  object-fit: contain;
}

.nte-menu {
  display: none;
  width: 40px;
  height: 40px;
  margin-left: 12px;
  border: 0;
  border-radius: 6px;
  background: #50497b;
  padding: 11px;
}

.nte-menu span {
  display: block;
  height: 2px;
  margin: 4px 0;
  background: white;
}

.nte-gamebar {
  display: flex;
  align-items: center;
  height: 40px;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}

.nte-gamebar::-webkit-scrollbar {
  display: none;
}

.nte-gamebar a {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 34px;
  padding: 0 10px;
  color: #bdb7d5;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  border-radius: 5px;
}

.nte-gamebar a.active {
  background: #241d44;
  color: var(--nte-gold);
}

.nte-gamebar img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  filter: brightness(0) saturate(100%) invert(80%) sepia(11%) saturate(483%) hue-rotate(200deg) brightness(91%) contrast(85%);
}

.nte-gamebar .active img {
  filter: brightness(0) saturate(100%) invert(92%) sepia(58%) saturate(2719%) hue-rotate(318deg) brightness(94%) contrast(102%);
}

.nte-gamebar span {
  padding: 1px 5px;
  border-radius: 3px;
  background: var(--nte-gold);
  color: #151128;
  font-size: 10px;
}

.nte-gamebar .download-mini {
  margin-left: auto;
  background: var(--nte-gold);
  color: #151128;
}

.nte-help {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  color: #d8d3ea;
  font-weight: 900;
  cursor: pointer;
}

.nte-layout {
  display: grid;
  grid-template-columns: 76px 1fr;
  min-height: calc(100vh - 40px);
}

.nte-sidebar {
  position: sticky;
  top: 40px;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: calc(100vh - 40px);
  padding: 18px 8px;
  background: #110d25;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.nte-sidebar a {
  display: grid;
  place-items: center;
  min-height: 44px;
  padding: 7px 4px;
  border-radius: 8px;
  color: #9f98bd;
  font-size: 11px;
  font-weight: 800;
  text-align: center;
}

.nte-sidebar a.active,
.nte-sidebar a:hover {
  background: #28214a;
  color: white;
}

.nte-main {
  width: min(100%, 1180px);
  margin: 0 auto;
  padding: 20px 24px 80px;
}

.nte-app-banner {
  display: none;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding: 14px 16px;
  background: #211b40;
  color: #d9d4eb;
  font-size: 13px;
  font-weight: 700;
}

.nte-app-banner img {
  width: 110px;
}

.nte-app-banner button,
.nte-app-banner a,
.nte-drawer-panel button:not(.nte-close),
.nte-modal-actions button,
.nte-code-list button,
.nte-guide-list button {
  border: 0;
  border-radius: 5px;
  background: var(--nte-gold);
  color: #151128;
  padding: 10px 14px;
  font-weight: 900;
  cursor: pointer;
}

.nte-hero {
  min-height: 332px;
  display: flex;
  align-items: flex-end;
  padding: 38px 40px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(34, 27, 68, 0.98) 0%, rgba(39, 33, 76, 0.86) 42%, rgba(39, 33, 76, 0.18) 100%),
    url("https://cdn.mobalytics.gg/assets/neverness-to-everness/images/st-splashes/home-page-splash.webp") center / cover;
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.08);
}

.nte-hero-copy {
  max-width: 650px;
}

.nte-badge {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  margin-bottom: 18px;
  border-radius: 7px;
  background: var(--nte-pink);
  color: #1b1532;
  font-weight: 900;
}

.nte-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.14;
  letter-spacing: 0;
}

.nte-hero p {
  max-width: 590px;
  margin: 0;
  color: #ded9ef;
  font-size: 17px;
}

.nte-section {
  padding: 34px 0 0;
}

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

.nte-section-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.nte-section h2,
.nte-section-head h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.2;
}

.nte-section-head a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid rgba(242, 191, 67, 0.24);
  border-radius: 6px;
  color: var(--nte-gold);
  font-weight: 900;
  text-decoration: none;
}

.nte-section-head a:hover,
.nte-tier-shortcut {
  border-color: rgba(242, 191, 67, 0.45);
  background: rgba(242, 191, 67, 0.1);
}

.nte-tier-shortcut {
  color: #151128 !important;
  background: linear-gradient(135deg, var(--nte-gold), #ff9aca);
}

.nte-character-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 12px;
}

.nte-character-card {
  display: flex;
  flex-direction: column;
  min-height: 126px;
  overflow: hidden;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 7px;
  background: var(--nte-panel);
  color: inherit;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease;
}

.nte-character-card:hover {
  transform: translateY(-3px);
  border-color: rgba(242, 191, 67, 0.45);
}

.nte-character-card img {
  display: block;
  width: min(52%, 82px);
  height: 82px;
  margin: 14px auto 8px;
  aspect-ratio: 1;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  object-fit: cover;
  object-position: var(--face-position, center);
  background: rgba(24, 19, 49, 0.82);
}

.nte-character-card span {
  display: grid;
  place-items: center;
  min-height: 34px;
  padding: 5px;
  color: #f5f2ff;
  font-size: 13px;
  font-weight: 900;
}

.nte-character-card em {
  display: block;
  padding: 0 8px 10px;
  color: var(--nte-muted);
  font-style: normal;
  font-size: 11px;
  font-weight: 800;
  text-align: center;
}

.nte-character-card.pulse {
  animation: ntePulse 800ms ease;
}

@keyframes ntePulse {
  50% {
    border-color: var(--nte-gold);
    box-shadow: 0 0 0 3px rgba(242, 191, 67, 0.18);
  }
}

.nte-card-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding-top: 34px;
}

.nte-feature-card {
  min-height: 190px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  padding: 24px;
  border-radius: 8px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  box-shadow: inset 0 -120px 90px rgba(18, 14, 39, 0.86);
}

.nte-feature-card.tier {
  background-image: linear-gradient(180deg, rgba(39, 33, 76, 0.22), rgba(39, 33, 76, 0.94)), url("https://cdn.mobalytics.gg/assets/neverness-to-everness/images/st-splashes/tierlist-splash.webp");
}

.nte-feature-card.codes {
  background-image: linear-gradient(180deg, rgba(39, 33, 76, 0.22), rgba(39, 33, 76, 0.94)), url("https://cdn.mobalytics.gg/assets/neverness-to-everness/images/st-splashes/generic-3-splash.webp");
}

.nte-feature-card.guides {
  background-image: linear-gradient(180deg, rgba(39, 33, 76, 0.22), rgba(39, 33, 76, 0.94)), url("https://cdn.mobalytics.gg/assets/neverness-to-everness/images/st-splashes/guides-splash.webp");
}

.nte-feature-card span {
  font-size: 21px;
  font-weight: 900;
}

.nte-feature-card strong {
  color: #d9d4eb;
  font-size: 14px;
}

.nte-feature-card em {
  width: fit-content;
  margin-top: 8px;
  padding: 9px 12px;
  border-radius: 4px;
  background: var(--nte-gold);
  color: #151128;
  font-style: normal;
  font-size: 13px;
  font-weight: 900;
}

.nte-drawer,
.nte-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
  background: rgba(8, 6, 19, 0.72);
}

.nte-drawer.open,
.nte-modal.open {
  display: block;
}

.nte-drawer-panel {
  width: min(330px, 86vw);
  min-height: 100%;
  padding: 22px;
  background: #181331;
  box-shadow: 24px 0 60px rgba(0, 0, 0, 0.36);
}

.nte-drawer-panel img {
  width: 142px;
  margin-bottom: 24px;
}

.nte-drawer-panel .lfgpal-logo {
  margin-bottom: 24px;
}

.nte-drawer-panel a {
  display: block;
  padding: 13px 12px;
  border-radius: 7px;
  color: #c9c3dd;
  font-weight: 900;
}

.nte-drawer-panel a.active,
.nte-drawer-panel a:hover {
  background: #2a2350;
  color: white;
}

.nte-drawer-panel button:not(.nte-close),
.nte-drawer-panel .drawer-download {
  width: 100%;
  margin-top: 18px;
}

.nte-close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 7px;
  background: #3b336b;
  color: white;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.nte-modal {
  padding: 24px;
  overflow-y: auto;
}

.nte-modal-card {
  position: relative;
  width: min(760px, 100%);
  margin: 8vh auto;
  padding: 34px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  background: #211b40;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.45);
}

.nte-character-detail {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 28px;
  align-items: center;
}

.nte-character-detail > img {
  width: 220px;
  aspect-ratio: 1;
  border-radius: 8px;
  object-fit: cover;
  background: #3b336b;
}

.nte-character-detail h2,
.nte-panel-detail h2 {
  margin: 12px 0;
  font-size: 30px;
  line-height: 1.12;
}

.nte-character-detail p,
.nte-panel-detail p {
  color: var(--nte-muted);
}

.nte-badge.small {
  display: inline-grid;
  width: auto;
  height: auto;
  min-height: 30px;
  padding: 6px 10px;
  margin: 0;
}

.nte-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 18px 0;
}

.nte-stat-grid span {
  display: grid;
  gap: 5px;
  padding: 12px;
  border-radius: 7px;
  background: #30295b;
  color: white;
  font-weight: 800;
}

.nte-stat-grid strong {
  color: var(--nte-muted);
  font-size: 12px;
  text-transform: uppercase;
}

.nte-modal-actions,
.nte-guide-list {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.nte-tier-table {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.nte-tier-table div {
  display: grid;
  grid-template-columns: 54px 1fr;
  overflow: hidden;
  border-radius: 7px;
  background: #30295b;
}

.nte-tier-table strong {
  display: grid;
  place-items: center;
  background: var(--nte-pink);
  color: #151128;
  font-size: 24px;
}

.nte-tier-table span {
  padding: 16px;
  color: #eeeafd;
}

.nte-code-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.nte-code-list button {
  display: grid;
  gap: 5px;
  background: #30295b;
  color: white;
  border: 1px dashed rgba(242, 191, 67, 0.55);
}

.nte-code-list button span {
  color: var(--nte-gold);
  font-size: 12px;
}

.nte-code-updated {
  max-width: 680px;
  margin: 8px 0 0;
  color: #c9c5d9;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.55;
}

.nte-code-card {
  min-height: 250px;
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 18px;
  background:
    radial-gradient(circle at 18% 12%, rgba(var(--game-accent-rgb), 0.18), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018)),
    #1b1b25;
}

.nte-code-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.nte-code-card-head span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(var(--game-accent-rgb), 0.32);
  border-radius: 999px;
  background: rgba(var(--game-accent-rgb), 0.12);
  color: var(--game-accent);
  font-size: 11px;
  font-weight: 1000;
  text-transform: uppercase;
}

.nte-code-list .nte-code-card-head button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(var(--game-accent-rgb), 0.38);
  border-radius: 9px;
  background: linear-gradient(180deg, var(--game-accent), var(--game-accent-2));
  color: #151128;
  box-shadow: 0 10px 24px rgba(var(--game-accent-rgb), 0.2);
}

.nte-code-list .nte-code-card-head button:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
}

.nte-code-card code {
  display: block;
  width: 100%;
  padding: 14px 12px;
  border: 1px dashed rgba(var(--game-accent-rgb), 0.38);
  border-radius: 11px;
  background: rgba(5, 5, 12, 0.38);
  color: #fff;
  font-size: clamp(16px, 2vw, 22px);
  font-weight: 1000;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.nte-code-card ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nte-code-card li {
  position: relative;
  padding-left: 18px;
  color: #e9e6f4;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
}

.nte-code-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 7px;
  height: 7px;
  border-radius: 99px;
  background: var(--game-accent);
  box-shadow: 0 0 12px rgba(var(--game-accent-rgb), 0.55);
}

.nte-code-card footer {
  display: grid;
  gap: 5px;
  margin-top: auto;
  color: #aaa5bb;
  font-size: 12px;
  font-weight: 800;
}

.nte-code-help-panel {
  margin-top: 18px;
}

.nte-code-help-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 18px 0 20px;
}

.nte-code-help-grid article {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 15px;
}

.nte-code-help-grid strong {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(180deg, var(--game-accent), var(--game-accent-2));
  color: #151128;
  font-size: 18px;
  font-weight: 1000;
}

.nte-code-help-grid span {
  color: #e6e2f1;
  font-size: 13px;
  font-weight: 850;
  line-height: 1.45;
}

.nte-toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 80;
  max-width: 360px;
  padding: 14px 18px;
  border-radius: 8px;
  background: var(--nte-gold);
  color: #151128;
  font-weight: 900;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
}

.nte-toast.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1100px) {
  .nte-topbar {
    grid-template-columns: auto 1fr auto;
    min-height: 78px;
  }

  .nte-menu {
    display: block;
  }

  .nte-logo {
    width: auto;
  }

  .nte-logo img {
    width: 42px;
    height: 42px;
    content: url("https://cdn.mobalytics.gg/assets/common/icons/mobalytics-logo/logo-mobalytics-collapsed-fixed.svg");
  }

  .nte-gamebar,
  .nte-help,
  .nte-sidebar,
  .nte-app-banner {
    display: none;
  }

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

  .nte-main {
    padding: 0 0 56px;
  }

  .nte-hero {
    min-height: 286px;
    padding: 74px 20px 22px;
    background:
      linear-gradient(90deg, rgba(45, 39, 84, 0.96) 0%, rgba(45, 39, 84, 0.72) 48%, rgba(45, 39, 84, 0.08) 100%),
      url("https://cdn.mobalytics.gg/assets/neverness-to-everness/images/st-splashes/home-page-splash.webp") center / cover;
  }

  .nte-section,
  .nte-card-row {
    padding-left: 20px;
    padding-right: 20px;
  }

  .nte-character-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

@media (max-width: 760px) {
  .nte-card-row {
    grid-template-columns: 1fr;
  }

  .nte-character-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  .nte-hero h1 {
    font-size: 24px;
  }

  .nte-hero p {
    font-size: 14px;
  }

  .nte-modal {
    padding: 12px;
  }

  .nte-modal-card {
    padding: 22px;
    margin: 5vh auto;
  }

  .nte-character-detail,
  .nte-stat-grid,
  .nte-code-list,
  .nte-code-help-grid {
    grid-template-columns: 1fr;
  }

  .nte-character-detail > img {
    width: 100%;
    max-width: 260px;
    margin: 0 auto;
  }
}

.simple-page {
  width: min(1040px, calc(100% - 64px));
  margin: 0 auto;
  padding: 70px 0;
}

.simple-page h1 {
  margin: 24px 0 12px;
  font-size: 48px;
  line-height: 1.08;
}

.simple-page p {
  max-width: 760px;
  color: var(--nte-muted);
  font-size: 18px;
}

.simple-back {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--nte-gold);
  font-weight: 900;
}

.simple-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 28px;
}

.simple-grid a {
  min-height: 88px;
  display: flex;
  align-items: center;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: var(--nte-panel);
  color: white;
  font-weight: 900;
}

.guide-main {
  max-width: 1180px;
}

.guide-breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--nte-muted);
  font-size: 13px;
  font-weight: 800;
}

.guide-breadcrumb a {
  color: var(--nte-gold);
}

.guide-shell {
  display: grid;
  gap: 24px;
}

.guide-hero {
  min-height: 370px;
  display: grid;
  grid-template-columns: 1fr 260px;
  align-items: end;
  gap: 24px;
  padding: 44px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background-position: center;
  background-size: cover;
}

.guide-hero h1 {
  margin: 10px 0 12px;
  font-size: 54px;
  line-height: 1.02;
}

.guide-hero p {
  max-width: 620px;
  color: #ddd8ee;
  font-size: 18px;
}

.guide-hero > img {
  display: block;
  width: 220px;
  aspect-ratio: 1;
  padding: 12px;
  object-fit: contain;
  object-position: var(--face-position, 50% 22%);
  border-radius: 8px;
  background: #30295b;
}

.guide-hero > img[data-character-art="portrait"],
.guide-hero > img[data-character-art="splash"] {
  padding: 0;
  object-fit: cover;
}

.guide-kicker {
  display: inline-flex;
  padding: 7px 10px;
  border-radius: 5px;
  background: var(--nte-pink);
  color: #151128;
  font-weight: 900;
}

.guide-meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--nte-muted);
  font-size: 14px;
  font-weight: 800;
}

.guide-meta a {
  color: var(--nte-gold);
}

.guide-content-layout {
  display: grid;
  grid-template-columns: 1fr 270px;
  gap: 24px;
  align-items: start;
}

.guide-content {
  display: grid;
  gap: 18px;
}

.guide-content section {
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: #211b40;
}

.guide-content h2 {
  margin: 0 0 18px;
  font-size: 28px;
}

.guide-content h3 {
  color: var(--nte-muted);
}

.profile-card {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 20px;
  align-items: center;
}

.profile-card img,
.portrait-wide {
  border-radius: 8px;
  background: #30295b;
  object-position: var(--face-position, 50% 22%);
}

.profile-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.profile-card img[data-character-art="avatar"],
.portrait-wide[data-character-art="avatar"] {
  padding: 12px;
  object-fit: contain;
}

.portrait-wide[data-character-art="avatar"] {
  width: min(100%, 280px);
  aspect-ratio: 1;
}

.profile-card p,
.guide-content p {
  color: var(--nte-muted);
  font-size: 16px;
}

.guide-stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 20px;
}

.guide-stat-row span,
.skill-grid a,
.coming-box,
.guide-pill {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: 8px;
  background: #30295b;
  color: white;
  font-weight: 900;
}

.guide-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.guide-pill {
  width: fit-content;
  min-height: 52px;
}

.guide-stat-row img,
.skill-grid img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

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

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

.skill-grid a {
  min-height: 86px;
}

.skill-grid strong {
  display: block;
}

.coming-box {
  min-height: 72px;
  color: var(--nte-muted);
}

.portrait-wide {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
}

.guide-toc {
  position: sticky;
  top: 58px;
  display: grid;
  gap: 8px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: #211b40;
}

.guide-toc h2 {
  margin: 0 0 10px;
  font-size: 20px;
}

.guide-toc a {
  padding: 8px 0;
  color: var(--nte-muted);
  font-size: 13px;
  font-weight: 800;
}

.guide-toc a:hover {
  color: var(--nte-gold);
}

.hub-main {
  max-width: 1180px;
}

.hub-hero {
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 12px;
  padding: 36px 40px;
  margin-bottom: 22px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(90deg, rgba(27, 22, 55, 0.98), rgba(42, 34, 78, 0.78), rgba(42, 34, 78, 0.2)),
    url("https://cdn.mobalytics.gg/assets/neverness-to-everness/images/st-splashes/guides-splash.webp") center / cover;
}

.hub-hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.05;
}

.hub-hero p {
  max-width: 700px;
  margin: 0;
  color: #ded9ef;
  font-size: 17px;
}

.hub-panel,
.hub-featured {
  margin-top: 18px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: #211b40;
}

.hub-featured {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 24px;
  align-items: center;
}

.nte-tier-entry {
  position: relative;
  overflow: hidden;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 300px);
  background:
    linear-gradient(135deg, rgba(242, 191, 67, 0.14), rgba(79, 224, 196, 0.08)),
    var(--nte-panel);
}

.nte-tier-entry::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 78% 18%, rgba(242, 191, 67, 0.2), transparent 34%),
    linear-gradient(90deg, rgba(13, 15, 21, 0), rgba(13, 15, 21, 0.38));
}

.nte-tier-entry > * {
  position: relative;
  z-index: 1;
}

.hub-featured h2,
.hub-panel h2 {
  margin: 0 0 10px;
  font-size: 26px;
  line-height: 1.15;
}

.hub-featured p,
.hub-panel p {
  color: var(--nte-muted);
}

.hub-kicker {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 10px;
  padding: 6px 9px;
  border-radius: 5px;
  background: rgba(255, 108, 175, 0.18);
  color: #ff9aca;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.hub-primary,
.text-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 40px;
  padding: 0 14px;
  border: 0;
  border-radius: 5px;
  background: var(--nte-gold);
  color: #151128;
  font-weight: 900;
  cursor: pointer;
}

.hub-primary.ghost,
.text-action {
  border: 1px solid rgba(242, 191, 67, 0.35);
  background: rgba(242, 191, 67, 0.08);
  color: var(--nte-gold);
}

.nte-tier-entry-button {
  min-width: 180px;
  min-height: 46px;
  margin-top: 8px;
  box-shadow: 0 12px 34px rgba(242, 191, 67, 0.18);
}

.nte-tier-entry-stack {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  align-self: stretch;
}

.nte-tier-entry-stack span {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 138px;
  overflow: hidden;
  border: 1px solid rgba(242, 191, 67, 0.18);
  border-radius: 8px;
  background: rgba(15, 18, 26, 0.72);
}

.nte-tier-entry-stack img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--face-position, center);
}

.nte-tier-entry-stack b {
  position: absolute;
  right: 7px;
  bottom: 7px;
  display: grid;
  place-items: center;
  min-width: 28px;
  height: 28px;
  border-radius: 6px;
  background: var(--nte-gold);
  color: #151128;
  font-size: 14px;
  font-weight: 900;
}

.featured-character-art {
  display: block;
  overflow: hidden;
  border-radius: 8px;
  background: #30295b;
}

.featured-character-art img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: var(--face-position, 50% 22%);
}

.hub-section-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.hub-toolbar {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
}

.hub-filter-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.hub-filter-group > span,
.hub-search span {
  color: var(--nte-muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.filter-chip {
  min-height: 32px;
  padding: 0 11px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  background: #30295b;
  color: #e9e5f7;
  font-weight: 900;
  cursor: pointer;
}

.filter-chip.active,
.filter-chip:hover {
  border-color: rgba(242, 191, 67, 0.52);
  color: var(--nte-gold);
}

.hub-search {
  display: grid;
  gap: 7px;
  width: min(320px, 100%);
}

.hub-search input,
.profile-lookup input {
  width: 100%;
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 6px;
  background: #151128;
  color: white;
  padding: 0 12px;
  font: inherit;
}

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

.hub-character-card,
.mini-character-card,
.guide-card,
.database-card,
.team-card,
.support-card {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: #2b2451;
  transition: transform 160ms ease, border-color 160ms ease;
}

.hub-character-card:hover,
.mini-character-card:hover,
.guide-card:hover,
.database-card:hover,
.team-card:hover,
.support-card:hover {
  transform: translateY(-2px);
  border-color: rgba(242, 191, 67, 0.42);
}

.hub-character-card {
  overflow: hidden;
  background: #2b2451;
}

.hub-character-card img {
  display: block;
  width: min(54%, 96px);
  height: 96px;
  margin: 16px auto 10px;
  aspect-ratio: 1;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  object-fit: cover;
  object-position: var(--face-position, center);
  background: rgba(24, 19, 49, 0.8);
}

.nte-character-card img[data-character-art="splash"],
.hub-character-card img[data-character-art="splash"],
.featured-character-art img[data-character-art="splash"],
.moba-hover-img[data-character-art="splash"] {
  transform: none;
  transform-origin: var(--face-position, center);
}

.hub-character-card strong,
.hub-character-card span,
.mini-character-card strong,
.mini-character-card span {
  display: block;
  padding-inline: 12px;
}

.hub-character-card strong,
.mini-character-card strong {
  padding-top: 10px;
  font-weight: 900;
}

.hub-character-card span,
.mini-character-card span {
  padding-bottom: 12px;
  color: var(--nte-muted);
  font-size: 12px;
  font-weight: 800;
}

.mini-character-grid,
.schedule-list,
.commentary-list {
  display: grid;
  gap: 10px;
}

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

.mini-character-card,
.schedule-list a,
.commentary-list a,
.linked-users a {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 10px;
  align-items: center;
  padding: 10px;
}

.mini-character-card img,
.schedule-list img,
.commentary-list img,
.linked-users img {
  width: 46px;
  height: 46px;
  border-radius: 6px;
  padding: 0;
  object-fit: cover;
  object-position: var(--face-position, center);
  background: #30295b;
}

.schedule-list a,
.commentary-list a {
  border-radius: 8px;
  background: #2b2451;
  color: white;
  font-weight: 900;
}

.schedule-list span,
.commentary-list span {
  display: block;
  color: var(--nte-muted);
  font-size: 12px;
  font-weight: 800;
}

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

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

.tier-row {
  display: grid;
  grid-template-columns: 72px 1fr;
  min-height: 96px;
  overflow: hidden;
  border-radius: 8px;
  background: #30295b;
}

.tier-row > strong {
  display: grid;
  place-items: center;
  background: #ff6caf;
  color: #151128;
  font-size: 30px;
  font-weight: 900;
}

.tier-row > div {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 12px;
}

.tier-avatar {
  display: grid;
  gap: 5px;
  justify-items: center;
  width: 76px;
  color: white;
  font-size: 11px;
  font-weight: 900;
}

.tier-avatar img {
  width: 62px;
  height: 62px;
  border-radius: 7px;
  padding: 0;
  object-fit: cover;
  object-position: var(--face-position, center);
  background: #211b40;
}

.tier-empty {
  color: var(--nte-muted);
  font-weight: 800;
}

.database-list,
.guide-grid,
.team-grid,
.support-grid {
  display: grid;
  gap: 14px;
}

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

.database-card {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 14px;
  align-items: start;
  padding: 16px;
}

.data-card-icon {
  display: grid;
  place-items: center;
  width: 70px;
  height: 70px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(255, 108, 175, 0.24), rgba(84, 234, 162, 0.18));
  color: var(--nte-gold);
  font-size: 28px;
  font-weight: 900;
}

.data-card-media {
  display: grid;
  grid-template-columns: repeat(2, 32px);
  justify-content: center;
  align-content: start;
  gap: 6px;
  width: 112px;
}

.data-card-image {
  grid-column: 1 / -1;
  width: 96px;
  height: 96px;
  justify-self: center;
  padding: 9px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: radial-gradient(circle at 50% 26%, rgba(84, 234, 162, 0.16), #181331 66%);
  object-fit: contain;
}

.data-card-media span {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  background: #181331;
}

.data-card-media span img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.database-card h3,
.team-card h3,
.guide-card h3 {
  margin: 0 0 8px;
  font-size: 20px;
  line-height: 1.15;
}

.hub-card-meta,
.hub-link-row,
.linked-users {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hub-card-meta span {
  padding: 5px 8px;
  border-radius: 5px;
  background: #181331;
  color: #d7d1ea;
  font-size: 12px;
  font-weight: 900;
}

.linked-users {
  margin: 12px 0;
}

.linked-users a {
  grid-template-columns: 28px auto;
  padding: 6px 8px;
  border-radius: 6px;
  background: #181331;
  color: #f3f0ff;
  font-size: 12px;
  font-weight: 900;
}

.linked-users img {
  width: 28px;
  height: 28px;
  padding: 2px;
}

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

.guide-card {
  display: grid;
  grid-template-columns: minmax(136px, 38%) 1fr;
  gap: 0;
  overflow: hidden;
  padding: 0;
}

.guide-card > div {
  padding: 18px;
}

.guide-card-image {
  width: 100%;
  height: 100%;
  min-height: 178px;
  background: #181331;
  object-fit: cover;
}

.guide-card p {
  margin: 0;
}

.guide-card em {
  color: var(--nte-muted);
  font-style: normal;
  font-size: 12px;
  font-weight: 800;
}

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

.team-card {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.team-member-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.team-member-list a {
  display: grid;
  justify-items: center;
  gap: 5px;
  width: 62px;
  color: white;
  font-size: 11px;
  font-weight: 900;
}

.team-member-list img {
  width: 54px;
  height: 54px;
  border-radius: 7px;
  padding: 0;
  object-fit: cover;
  object-position: var(--face-position, center);
  background: #181331;
}

.reaction-sections {
  display: grid;
  gap: 12px;
}

.reaction-sections article,
.vehicle-preview,
.download-panel,
.profile-result {
  padding: 18px;
  border-radius: 8px;
  background: #30295b;
}

.vehicle-preview {
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background:
    linear-gradient(180deg, rgba(33, 27, 64, 0.2), rgba(33, 27, 64, 0.92)),
    url("https://cdn.mobalytics.gg/assets/neverness-to-everness/images/st-splashes/cars-splash.webp") center / cover;
}

.vehicle-preview span,
.vehicle-preview strong {
  display: block;
}

.vehicle-preview strong {
  font-size: 28px;
}

.profile-lookup {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: end;
  margin-bottom: 18px;
}

.profile-lookup label {
  display: grid;
  gap: 7px;
}

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

.support-card {
  display: grid;
  gap: 8px;
  padding: 18px;
  color: white;
  text-align: left;
  cursor: pointer;
}

.support-card span {
  color: var(--nte-muted);
}

.support-card em {
  color: var(--nte-gold);
  font-style: normal;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.article-hero {
  padding: 34px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(33, 27, 64, 0.98), rgba(33, 27, 64, 0.72)),
    url("https://cdn.mobalytics.gg/assets/neverness-to-everness/images/st-splashes/guides-splash.webp") center / cover;
}

.article-hero h1 {
  margin: 10px 0 14px;
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1.04;
}

.article-cover {
  display: block;
  width: 100%;
  max-height: 360px;
  margin-bottom: 24px;
  border-radius: 8px;
  background: #181331;
  object-fit: cover;
}

.show-more {
  margin-top: 18px;
}

@media (max-width: 1100px) {
  .nte-topbar {
    grid-template-columns: auto 1fr auto;
    min-height: 58px;
  }

  .nte-logo {
    width: auto;
    padding-left: 14px;
  }

  .nte-gamebar {
    justify-content: flex-start;
    padding-right: 10px;
  }

  .nte-gamebar a {
    min-width: fit-content;
  }

  .nte-help {
    display: grid;
  }

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

  .nte-sidebar {
    display: none;
  }

  .nte-main {
    width: 100%;
    padding: 16px 16px 56px;
  }

  .nte-hero {
    min-height: 300px;
    padding: 30px;
  }

  .nte-character-grid {
    grid-template-columns: repeat(4, 1fr);
  }

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

  .guide-toc {
    position: static;
    order: -1;
  }

  .guide-hero {
    grid-template-columns: 1fr 180px;
    padding: 32px;
  }

  .guide-hero h1 {
    font-size: 44px;
  }

  .simple-grid,
  .skill-grid.compact {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .database-list,
  .team-grid,
  .support-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  body {
    overflow-x: hidden;
  }

  .nte-topbar {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 10px 12px;
  }

  .nte-logo {
    justify-content: flex-start;
    padding: 0;
  }

  .nte-gamebar {
    width: 100%;
    overflow-x: auto;
    padding: 0 0 2px;
  }

  .download-mini,
  .nte-help {
    display: none !important;
  }

  .nte-main {
    padding: 12px 12px 44px;
  }

  .nte-hero {
    min-height: 280px;
    padding: 22px;
    background-position: center;
  }

  .nte-hero h1 {
    font-size: 28px;
  }

  .nte-hero p {
    font-size: 14px;
  }

  .nte-section-head {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .nte-card-row,
  .simple-grid,
  .skill-grid,
  .skill-grid.compact,
  .guide-stat-row {
    grid-template-columns: 1fr;
  }

  .guide-breadcrumb {
    overflow-x: auto;
    white-space: nowrap;
  }

  .guide-hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 22px;
  }

  .guide-hero h1 {
    font-size: 34px;
  }

  .guide-hero > img {
    width: 160px;
  }

  .guide-content section {
    padding: 18px;
  }

  .profile-card {
    grid-template-columns: 1fr;
  }

  .simple-page {
    width: calc(100% - 28px);
    padding: 38px 0;
  }

  .simple-page h1 {
    font-size: 34px;
  }

  .hub-hero,
  .hub-panel,
  .hub-featured,
  .article-hero {
    padding: 18px;
  }

  .hub-featured,
  .hub-section-title,
  .hub-two-col,
  .database-list,
  .guide-grid,
  .team-grid,
  .support-grid,
  .profile-lookup {
    grid-template-columns: 1fr;
  }

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

  .database-card {
    grid-template-columns: 82px 1fr;
    padding: 12px;
  }

  .data-card-icon {
    width: 54px;
    height: 54px;
    font-size: 22px;
  }

  .data-card-media {
    grid-template-columns: repeat(2, 26px);
    width: 82px;
  }

  .data-card-image {
    width: 74px;
    height: 74px;
    padding: 7px;
  }

  .data-card-media span {
    width: 26px;
    height: 26px;
  }

  .data-card-media span img {
    width: 19px;
    height: 19px;
  }

  .guide-card {
    grid-template-columns: 1fr;
  }

  .guide-card-image {
    height: 172px;
    min-height: 0;
  }

  .tier-row {
    grid-template-columns: 48px 1fr;
  }

  .tier-avatar {
    width: 64px;
  }

  .tier-avatar img {
    width: 52px;
    height: 52px;
  }

  .moba-hover-card {
    display: none;
  }
}

.moba-hover-card {
  position: fixed;
  z-index: 999;
  width: 340px;
  max-width: calc(100vw - 28px);
  padding: 14px 16px;
  border: 1px solid rgba(242, 191, 67, 0.32);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(49, 42, 101, 0.98), rgba(24, 19, 49, 0.98));
  color: #f8f5ff;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.46);
  opacity: 0;
  transform: translateY(6px) scale(0.98);
  pointer-events: none;
  transition: opacity 120ms ease, transform 120ms ease;
}

.moba-hover-inner {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 12px;
  align-items: center;
}

.moba-hover-img {
  width: 58px;
  height: 58px;
  border-radius: 7px;
  padding: 3px;
  object-fit: contain;
  object-position: var(--face-position, center);
  background: #211b40;
}

.moba-hover-img[data-character-art="portrait"],
.moba-hover-img[data-character-art="splash"] {
  padding: 0;
  object-fit: cover;
}

.moba-hover-img[hidden] {
  display: none;
}

.moba-hover-img[hidden] + div {
  grid-column: 1 / -1;
}

.moba-hover-card.show {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.moba-hover-card::before {
  content: "";
  position: absolute;
  left: 18px;
  top: -7px;
  width: 12px;
  height: 12px;
  transform: rotate(45deg);
  border-left: 1px solid rgba(242, 191, 67, 0.32);
  border-top: 1px solid rgba(242, 191, 67, 0.32);
  background: rgba(49, 42, 101, 0.98);
}

.moba-hover-card strong {
  display: block;
  margin-bottom: 6px;
  color: var(--nte-gold);
  font-size: 14px;
  line-height: 1.25;
}

.moba-hover-card span {
  display: block;
  color: #d5d0e8;
  font-size: 13px;
  line-height: 1.45;
}

.moba-hover-card em {
  display: block;
  margin-top: 8px;
  color: #8f88b7;
  font-style: normal;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

/* Marathon page */
.marathon-page {
  --marathon-bg: #151128;
  --marathon-rail: #110d25;
  --marathon-panel: #211b40;
  --marathon-panel-2: #2b2451;
  --marathon-panel-3: #332b5d;
  --marathon-accent: #f2bf43;
  --marathon-lime: #c7fe0c;
  --marathon-teal: #54eaa2;
  --marathon-muted: #b9b3d4;
  --nte-gold: var(--marathon-accent);
  margin: 0;
  background:
    linear-gradient(180deg, rgba(21, 17, 40, 0.9), #151128 420px),
    #151128;
  color: #f6f3ff;
  font-family: Roboto, Arial, sans-serif;
}

.marathon-page::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(135deg, rgba(199, 254, 12, 0.06), transparent 32%),
    linear-gradient(315deg, rgba(84, 234, 162, 0.05), transparent 36%);
  pointer-events: none;
}

.marathon-topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  min-height: 40px;
  background: #120e27;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.marathon-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 180px;
  padding: 0 22px;
}

.marathon-menu {
  display: none;
  width: 40px;
  height: 40px;
  margin-left: 12px;
  border: 0;
  border-radius: 6px;
  background: #50497b;
  padding: 11px;
  cursor: pointer;
}

.marathon-menu span {
  display: block;
  height: 2px;
  margin: 4px 0;
  background: white;
}

.marathon-gamebar {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 40px;
  overflow-x: auto;
  scrollbar-width: none;
}

.marathon-gamebar::-webkit-scrollbar {
  display: none;
}

.marathon-gamebar a {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: fit-content;
  height: 34px;
  padding: 0 10px;
  border-radius: 5px;
  color: #bdb7d5;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
  transition: background 160ms ease, color 160ms ease;
}

.marathon-gamebar a:hover,
.marathon-gamebar a.active {
  background: #241d44;
  color: var(--marathon-accent);
}

.marathon-gamebar img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  filter: brightness(0) saturate(100%) invert(80%) sepia(11%) saturate(483%) hue-rotate(200deg) brightness(91%) contrast(85%);
}

.marathon-gamebar a:hover img,
.marathon-gamebar a.active img {
  filter: brightness(0) saturate(100%) invert(92%) sepia(58%) saturate(2719%) hue-rotate(318deg) brightness(94%) contrast(102%);
}

.marathon-gamebar span {
  padding: 1px 5px;
  border-radius: 3px;
  background: var(--marathon-accent);
  color: #151128;
  font-size: 10px;
}

.marathon-download-mini {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 34px;
  margin: 0 8px;
  padding: 0 12px;
  border-radius: 5px;
  background: var(--marathon-accent);
  color: #151128;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.marathon-download-mini span {
  width: 14px;
  height: 14px;
  color: currentColor;
  background:
    linear-gradient(90deg, currentColor 46%, transparent 46% 54%, currentColor 54%) 0 0 / 100% 100%,
    linear-gradient(0deg, transparent 46%, currentColor 46% 54%, transparent 54%) 0 0 / 100% 100%;
}

.marathon-help {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: #d8d3ea;
  font-weight: 900;
}

.marathon-shell {
  display: grid;
  grid-template-columns: 76px 1fr;
  min-height: calc(100vh - 40px);
}

.marathon-sidebar {
  position: sticky;
  top: 40px;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: calc(100vh - 40px);
  padding: 18px 8px;
  background: var(--marathon-rail);
  border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.marathon-sidebar a {
  display: grid;
  place-items: center;
  gap: 4px;
  min-height: 50px;
  padding: 7px 4px;
  border-radius: 8px;
  color: #9f98bd;
  font-size: 10px;
  font-weight: 900;
  text-align: center;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.marathon-sidebar a span {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: #211b40;
  color: var(--marathon-accent);
  font-size: 11px;
}

.marathon-sidebar a:hover,
.marathon-sidebar a.active {
  background: #28214a;
  color: white;
  transform: translateY(-1px);
}

.marathon-main {
  width: min(100%, 1064px);
  margin: 0 auto;
  padding: 20px 24px 84px;
}

.marathon-app-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 54px;
  margin-bottom: 16px;
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: #211b40;
  color: #d9d4eb;
  font-size: 13px;
  font-weight: 800;
}

.marathon-app-banner > span:nth-child(2) {
  flex: 1;
}

.marathon-app-banner a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 13px;
  border-radius: 5px;
  background: var(--marathon-accent);
  color: #151128;
  font-weight: 900;
}

.marathon-hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 352px;
  overflow: hidden;
  padding: 42px 44px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(90deg, rgba(19, 15, 35, 0.98) 0%, rgba(30, 25, 53, 0.8) 42%, rgba(21, 17, 40, 0.08) 100%),
    url("https://cdn.mobalytics.gg/cdn-cgi/image/format=auto,width=2000/assets/marathon/images/pages/general/marathon-cover-1.png") center / cover;
}

.marathon-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  background: linear-gradient(180deg, transparent, rgba(21, 17, 40, 0.86));
  pointer-events: none;
}

.marathon-hero-copy {
  position: relative;
  z-index: 1;
  max-width: 670px;
}

.marathon-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  margin-bottom: 18px;
  padding: 0 12px;
  border-radius: 7px;
  background: rgba(199, 254, 12, 0.14);
  color: var(--marathon-lime);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.marathon-badge img {
  width: 20px;
  height: 20px;
  filter: brightness(0) saturate(100%) invert(88%) sepia(91%) saturate(670%) hue-rotate(15deg) brightness(103%) contrast(104%);
}

.marathon-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(34px, 4.5vw, 58px);
  line-height: 1.02;
  letter-spacing: 0;
}

.marathon-hero p {
  max-width: 590px;
  margin: 0;
  color: #ded9ef;
  font-size: 17px;
  font-weight: 700;
}

.marathon-section {
  padding: 34px 0 0;
}

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

.marathon-section-head h2 {
  margin: 0 0 8px;
  font-size: 26px;
  line-height: 1.15;
}

.marathon-section-head p {
  max-width: 760px;
  margin: 0;
  color: var(--marathon-muted);
  font-size: 15px;
  font-weight: 700;
}

.marathon-section-head a {
  color: var(--marathon-accent);
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

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

.runner-shell-card {
  display: grid;
  justify-items: center;
  gap: 8px;
  min-height: 148px;
  padding: 16px 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(51, 43, 93, 0.9), rgba(33, 27, 64, 0.96));
  color: white;
  font-size: 13px;
  font-weight: 900;
  text-align: center;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.runner-shell-card:hover {
  transform: translateY(-3px);
  border-color: rgba(199, 254, 12, 0.42);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.28);
}

.runner-shell-card img {
  width: 76px;
  height: 76px;
  object-fit: contain;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.32));
}

.runner-shell-card span {
  display: block;
  color: var(--marathon-muted);
  font-size: 11px;
}

.marathon-card-grid {
  display: grid;
  gap: 16px;
}

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

.marathon-feature-card,
.marathon-build-card,
.marathon-guide-card,
.marathon-tool-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 246px;
  overflow: hidden;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(23, 18, 43, 0.18), rgba(23, 18, 43, 0.94)),
    var(--card-bg) center / cover;
  color: white;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.marathon-feature-card::before,
.marathon-build-card::before,
.marathon-guide-card::before,
.marathon-tool-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(21, 17, 40, 0.02), rgba(21, 17, 40, 0.64)),
    linear-gradient(90deg, rgba(21, 17, 40, 0.72), rgba(21, 17, 40, 0.08));
  pointer-events: none;
}

.marathon-feature-card:hover,
.marathon-build-card:hover,
.marathon-guide-card:hover,
.marathon-tool-card:hover {
  transform: translateY(-3px);
  border-color: rgba(242, 191, 67, 0.48);
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.32);
}

.marathon-feature-card > *,
.marathon-build-card > *,
.marathon-guide-card > *,
.marathon-tool-card > * {
  position: relative;
  z-index: 1;
}

.marathon-card-kicker {
  width: fit-content;
  margin-bottom: 10px;
  padding: 6px 9px;
  border-radius: 5px;
  background: rgba(199, 254, 12, 0.14);
  color: var(--marathon-lime);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.marathon-feature-card strong,
.marathon-build-card strong,
.marathon-guide-card strong,
.marathon-tool-card span {
  display: block;
  max-width: 560px;
  margin: 0 0 8px;
  font-size: 23px;
  line-height: 1.12;
  font-weight: 900;
}

.marathon-feature-card em,
.marathon-build-card em,
.marathon-guide-card em {
  display: block;
  color: #cfc9e6;
  font-style: normal;
  font-size: 12px;
  font-weight: 800;
}

.marathon-chip-row,
.marathon-build-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.marathon-chip-row span,
.marathon-build-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 0 9px;
  border-radius: 5px;
  background: rgba(18, 14, 39, 0.9);
  color: #efeafa;
  font-size: 12px;
  font-weight: 900;
}

.marathon-build-meta img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.marathon-tool-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  padding: 34px 0 0;
}

.marathon-tool-card {
  min-height: 232px;
  background:
    linear-gradient(180deg, rgba(20, 16, 38, 0.06), rgba(20, 16, 38, 0.92)),
    var(--tool-bg) center / cover;
}

.marathon-tool-card strong {
  margin: 0;
  color: #ddd8ef;
  font-size: 14px;
  line-height: 1.4;
}

.marathon-tool-card em {
  width: fit-content;
  margin-top: 16px;
  padding: 9px 12px;
  border-radius: 4px;
  background: var(--marathon-accent);
  color: #151128;
  font-style: normal;
  font-size: 13px;
  font-weight: 900;
}

.marathon-guide-card {
  min-height: 230px;
}

.marathon-drawer {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: none;
  background: rgba(8, 6, 19, 0.72);
}

.marathon-drawer.open {
  display: block;
}

.marathon-drawer-panel {
  position: relative;
  width: min(330px, 86vw);
  min-height: 100%;
  padding: 22px;
  background: #181331;
  box-shadow: 24px 0 60px rgba(0, 0, 0, 0.36);
}

.marathon-drawer-panel .lfgpal-logo {
  margin-bottom: 24px;
}

.marathon-drawer-panel a {
  display: block;
  padding: 13px 12px;
  border-radius: 7px;
  color: #c9c3dd;
  font-weight: 900;
}

.marathon-drawer-panel a:hover,
.marathon-drawer-panel a.active {
  background: #2a2350;
  color: white;
}

.marathon-close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 7px;
  background: #3b336b;
  color: white;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.marathon-page .moba-hover-card {
  display: block;
}

@media (max-width: 1100px) {
  .marathon-topbar {
    grid-template-columns: auto auto minmax(0, 1fr) auto;
    min-height: 58px;
  }

  .marathon-menu {
    display: block;
  }

  .marathon-logo {
    width: auto;
    padding-left: 14px;
  }

  .marathon-gamebar {
    padding-right: 8px;
  }

  .marathon-help,
  .marathon-sidebar {
    display: none;
  }

  .marathon-shell {
    grid-template-columns: 1fr;
  }

  .marathon-main {
    width: 100%;
    padding: 16px 16px 56px;
  }

  .runner-shell-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

@media (max-width: 760px) {
  .marathon-topbar {
    grid-template-columns: auto 1fr;
    gap: 8px;
    padding: 10px 12px;
  }

  .marathon-logo {
    justify-content: flex-start;
    padding: 0;
  }

  .marathon-gamebar {
    grid-column: 1 / -1;
    width: 100%;
    height: 36px;
    padding: 0;
  }

  .marathon-download-mini {
    display: none;
  }

  .marathon-main {
    padding: 12px 12px 44px;
  }

  .marathon-app-banner {
    align-items: flex-start;
    flex-direction: column;
  }

  .marathon-app-banner a {
    width: 100%;
  }

  .marathon-hero {
    min-height: 300px;
    padding: 24px;
    background-position: center;
  }

  .marathon-hero h1 {
    font-size: 34px;
  }

  .marathon-hero p {
    font-size: 14px;
  }

  .marathon-section-head {
    flex-direction: column;
  }

  .runner-shell-grid,
  .marathon-card-grid.two,
  .marathon-tool-grid {
    grid-template-columns: 1fr;
  }

  .runner-shell-card {
    grid-template-columns: 76px 1fr;
    justify-items: start;
    align-items: center;
    min-height: 96px;
    text-align: left;
  }

  .marathon-feature-card,
  .marathon-build-card,
  .marathon-guide-card,
  .marathon-tool-card {
    min-height: 226px;
    padding: 18px;
  }

  .marathon-hover-card {
    width: min(320px, calc(100vw - 24px));
  }
}

/* Marathon source-aligned overrides */
.marathon-top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  position: fixed;
  top: 40px;
  left: 64px;
  right: 0;
  z-index: 38;
  height: 52px;
  padding: 0 28px 0 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: #120e27;
}

.marathon-main {
  padding-top: 72px;
}

.marathon-news {
  display: grid;
  place-items: center;
  min-height: 34px;
  padding: 0 10px;
  border-radius: 5px;
  color: #d8d3ea;
  font-size: 12px;
  font-weight: 900;
}

.marathon-signin-top {
  display: grid;
  place-items: center;
  min-height: 34px;
  margin-left: auto;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 5px;
  background: #2c274f;
  color: white;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.marathon-signin-top:hover {
  border-color: rgba(242, 191, 67, 0.45);
  color: var(--marathon-accent);
}

.marathon-news:hover {
  background: #241d44;
  color: var(--marathon-accent);
}

.marathon-gamebar > a:nth-of-type(n+10) {
  display: none;
}

.marathon-more-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding-right: 8px;
}

.marathon-more-games {
  display: grid;
  place-items: center;
  min-width: 38px;
  height: 34px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #d8d3ea;
  font: inherit;
  font-size: 18px;
  font-weight: 900;
  cursor: pointer;
}

.marathon-more-games:hover,
.marathon-more-wrap.open .marathon-more-games {
  background: #241d44;
  color: var(--marathon-accent);
}

.marathon-top-games-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 8px;
  z-index: 1002;
  display: none;
  width: 280px;
  max-height: min(520px, calc(100vh - 64px));
  overflow-y: auto;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: #211b40;
  box-shadow: 0 24px 58px rgba(0, 0, 0, 0.36);
}

.marathon-more-wrap.open .marathon-top-games-menu {
  display: grid;
}

.marathon-top-games-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  padding: 0 10px;
  border-radius: 6px;
  color: #d7d1ea;
  font-size: 13px;
  font-weight: 900;
}

.marathon-top-games-menu a:hover {
  background: #30295b;
  color: white;
}

.marathon-top-games-menu img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  filter: brightness(0) saturate(100%) invert(80%) sepia(11%) saturate(483%) hue-rotate(200deg) brightness(91%) contrast(85%);
}

.marathon-top-games-menu span {
  margin-left: auto;
  padding: 1px 6px;
  border-radius: 4px;
  background: #54eaa2;
  color: #151128;
  font-size: 11px;
}

.marathon-help-wrap {
  position: relative;
}

.marathon-help {
  border: 0;
  border-radius: 5px;
  background: transparent;
}

.marathon-help:hover,
.marathon-help-wrap.open .marathon-help {
  background: #241d44;
  color: var(--marathon-accent);
}

.marathon-support-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 1002;
  display: none;
  width: 230px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: #211b40;
  box-shadow: 0 24px 58px rgba(0, 0, 0, 0.36);
}

.marathon-help-wrap:hover .marathon-support-menu,
.marathon-help-wrap.open .marathon-support-menu {
  display: grid;
}

.marathon-support-menu a {
  padding: 10px 12px;
  border-radius: 6px;
  color: #d7d1ea;
  font-size: 13px;
  font-weight: 800;
}

.marathon-support-menu a:hover {
  background: #30295b;
  color: white;
}

.marathon-sidebar a {
  grid-template-rows: 24px auto;
}

.marathon-sidebar a img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  filter: brightness(0) saturate(100%) invert(76%) sepia(11%) saturate(496%) hue-rotate(205deg) brightness(96%) contrast(87%);
}

.marathon-sidebar a:hover img,
.marathon-sidebar a.active img {
  filter: brightness(0) saturate(100%) invert(92%) sepia(58%) saturate(2719%) hue-rotate(318deg) brightness(94%) contrast(102%);
}

.marathon-shell {
  grid-template-columns: 64px 1fr;
}

.marathon-sidebar {
  top: 40px;
  min-height: calc(100vh - 40px);
  padding: 12px 8px;
}

.marathon-sidebar a {
  min-height: 52px;
  font-size: 0;
  gap: 0;
  padding: 0;
}

.marathon-sidebar a img {
  width: 24px;
  height: 24px;
}

.marathon-app-banner {
  display: none;
}

.marathon-hero {
  width: 100%;
  color: white;
  font: inherit;
  text-align: left;
  cursor: pointer;
  min-height: 300px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
}

.marathon-badge {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  min-height: 0;
  margin-bottom: 0;
  padding: 0;
  border-radius: 7px;
  background: var(--marathon-lime);
}

.marathon-badge img {
  width: 26px;
  height: 26px;
  filter: brightness(0) saturate(100%) invert(9%) sepia(28%) saturate(1751%) hue-rotate(222deg) brightness(92%) contrast(97%);
}

.marathon-hero-copy {
  display: block;
  margin-top: auto;
}

.marathon-hero-title {
  display: block;
  max-width: 760px;
  margin: 0 0 10px;
  font-size: clamp(24px, 2.4vw, 30px);
  line-height: 1.08;
  font-weight: 900;
}

.marathon-hero-text {
  display: block;
  max-width: 640px;
  color: #ded9ef;
  font-size: 14px;
  font-weight: 700;
}

.marathon-section {
  margin-top: 20px;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  background: #2b2451;
}

.marathon-section-head {
  display: block;
  margin: 0;
  padding: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.marathon-section-head h2 {
  margin: 0 0 10px;
  font-size: 20px;
}

.marathon-section-head p {
  max-width: 900px;
  color: #d4cee8;
  font-size: 16px;
  line-height: 1.45;
}

.marathon-section-head a {
  color: var(--marathon-accent);
  white-space: normal;
}

.runner-shell-grid {
  padding: 20px;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.runner-shell-card {
  min-height: 134px;
  background: #3a3266;
}

.runner-shell-card img {
  width: 54px;
  height: 54px;
  border-radius: 5px;
  object-fit: cover;
}

.marathon-feed {
  display: grid;
  gap: 12px;
  padding: 20px;
}

.marathon-feed-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 126px;
  overflow: hidden;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  background:
    linear-gradient(90deg, rgba(56, 48, 96, 0.98) 0%, rgba(56, 48, 96, 0.82) 42%, rgba(56, 48, 96, 0.04) 100%),
    var(--card-bg) center / cover;
  color: white;
  transition: transform 160ms ease, border-color 160ms ease, filter 160ms ease;
}

.marathon-feed-card:hover {
  transform: translateY(-2px);
  border-color: rgba(242, 191, 67, 0.45);
  filter: saturate(1.08);
}

.marathon-feed-card strong {
  display: block;
  max-width: 620px;
  margin-bottom: 8px;
  font-size: 17px;
  line-height: 1.2;
  font-weight: 900;
}

.marathon-feed-card span {
  color: #cfc9e6;
  font-size: 14px;
  font-weight: 800;
}

.marathon-feed-card em {
  color: var(--marathon-accent);
  font-style: normal;
  font-weight: 900;
}

.marathon-feed-card small,
.marathon-tag-row small {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  min-height: 26px;
  margin-top: 12px;
  padding: 0 9px;
  border-radius: 5px;
  background: #211b40;
  color: #cfc9e6;
  font-size: 12px;
  font-weight: 900;
}

.marathon-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.marathon-tag-row small {
  margin-top: 12px;
}

.marathon-tag-row img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.marathon-view-all {
  display: grid;
  place-items: center;
  min-height: 34px;
  border-radius: 6px;
  background: #494174;
  color: white;
  font-weight: 900;
  transition: background 160ms ease, color 160ms ease;
}

.marathon-view-all:hover {
  background: var(--marathon-accent);
  color: #151128;
}

.marathon-tool-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  padding-top: 20px;
}

.marathon-tool-card {
  min-height: 192px;
  padding: 22px 20px;
  border-radius: 6px;
  background:
    linear-gradient(90deg, rgba(56, 48, 96, 0.94), rgba(56, 48, 96, 0.52)),
    var(--tool-bg) center / cover;
}

.marathon-tool-card span {
  font-size: 22px;
}

.marathon-tool-card strong {
  font-size: 16px;
}

.marathon-tool-card em {
  background: var(--marathon-lime);
  color: #151128;
}

.marathon-drawer-panel {
  overflow: hidden;
}

.marathon-drawer-pane {
  display: none;
  padding-bottom: 86px;
  overflow-y: auto;
  max-height: calc(100vh - 84px);
}

.marathon-drawer-pane.is-active {
  display: grid;
  gap: 0;
}

.marathon-drawer-panel .lfgpal-logo {
  display: flex;
}

.marathon-drawer-panel a,
.marathon-current-game,
.marathon-drawer-back {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 52px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #d4cee8;
  padding: 0 4px;
  font: inherit;
  font-weight: 900;
  text-align: left;
  cursor: pointer;
}

.marathon-drawer-panel a img,
.marathon-current-game img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  filter: brightness(0) saturate(100%) invert(76%) sepia(11%) saturate(496%) hue-rotate(205deg) brightness(96%) contrast(87%);
}

.marathon-drawer-panel a:hover,
.marathon-drawer-panel a.active,
.marathon-current-game:hover {
  background: #28214a;
  color: white;
}

.marathon-drawer-panel a.active img,
.marathon-current-game img {
  filter: brightness(0) saturate(100%) invert(92%) sepia(58%) saturate(2719%) hue-rotate(318deg) brightness(94%) contrast(102%);
}

.marathon-current-game {
  width: calc(100% + 44px);
  min-height: 52px;
  margin: 0 -22px 6px;
  padding: 0 22px;
  background: #494174;
  color: white;
}

.marathon-current-game span {
  margin-left: auto;
  font-size: 24px;
}

.marathon-drawer-back::before {
  content: "<";
}

.marathon-drawer-pane a span {
  margin-left: auto;
  padding: 2px 8px;
  border-radius: 5px;
  background: #54eaa2;
  color: #151128;
  font-size: 12px;
}

.marathon-drawer-bottom {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.marathon-drawer-bottom button,
.marathon-drawer-bottom a {
  display: grid;
  place-items: center;
  min-width: 40px;
  height: 40px;
  border: 0;
  border-radius: 6px;
  background: #50497b;
  color: white;
  font-weight: 900;
}

.marathon-drawer-bottom .marathon-signin {
  margin-left: auto;
  min-width: 77px;
  padding: 0 18px;
  background: var(--marathon-accent);
  color: #151128;
}

@media (min-width: 900px) {
  .marathon-feed {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .marathon-view-all {
    grid-column: 1 / -1;
  }
}

@media (max-width: 1100px) {
  .marathon-topbar {
    grid-template-columns: auto 1fr;
    min-height: 74px;
    padding: 0 16px;
  }

  .marathon-logo {
    justify-content: center;
    padding: 0;
  }

  .marathon-gamebar,
  .marathon-more-wrap,
  .marathon-top-actions {
    display: none;
  }

  .marathon-drawer-panel {
    width: 100%;
  }

  .marathon-app-banner {
    display: none;
  }
}

@media (max-width: 760px) {
  .marathon-topbar {
    display: grid;
    grid-template-columns: auto 1fr;
    padding: 0 16px;
  }

  .marathon-main {
    padding: 16px 16px 44px;
  }

  .marathon-hero {
    min-height: 182px;
    padding: 20px;
  }

  .marathon-hero-title {
    font-size: 26px;
  }

  .marathon-section-head {
    padding: 18px 20px;
  }

  .runner-shell-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
  }

  .runner-shell-card {
    display: grid;
    grid-template-columns: 1fr;
    justify-items: center;
    min-height: 134px;
    text-align: center;
  }

  .marathon-tool-grid {
    grid-template-columns: 1fr;
  }

  .marathon-feed {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .runner-shell-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .runner-shell-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .marathon-feed-card {
    min-height: 150px;
  }
}

.has-moba-tip {
  cursor: inherit;
}

/* Marathon local detail routes */
.marathon-crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  color: var(--marathon-muted);
  font-size: 13px;
  font-weight: 900;
}

.marathon-crumb a,
.marathon-crumb span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 5px;
  background: rgba(33, 27, 64, 0.78);
  color: #d7d1eb;
}

.marathon-crumb a:hover {
  background: #494174;
  color: var(--marathon-accent);
  transform: translateY(-1px);
}

.marathon-crumb a::after {
  content: ">";
  margin-left: 8px;
  color: #7d76a6;
}

.marathon-detail-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 300px);
  gap: 24px;
  min-height: 320px;
  overflow: hidden;
  margin-bottom: 20px;
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 6px;
  background:
    linear-gradient(90deg, rgba(19, 14, 40, 0.98) 0%, rgba(40, 33, 74, 0.9) 48%, rgba(40, 33, 74, 0.36) 100%),
    var(--detail-bg) center / cover;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.26);
}

.marathon-detail-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(199, 254, 12, 0.08), transparent 36%, rgba(0, 0, 0, 0.18));
  pointer-events: none;
}

.marathon-detail-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.marathon-detail-copy > span:first-child,
.marathon-author {
  color: var(--marathon-lime);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.marathon-detail-copy h1 {
  margin: 8px 0 12px;
  color: white;
  font-size: 42px;
  line-height: 1.02;
  font-weight: 900;
  letter-spacing: 0;
}

.marathon-detail-copy h1 small {
  display: block;
  margin-top: 4px;
  color: #d4cee8;
  font-size: 20px;
  line-height: 1.2;
}

.marathon-detail-copy p {
  max-width: 720px;
  margin: 0;
  color: #d7d1eb;
  font-size: 16px;
  line-height: 1.62;
  font-weight: 700;
}

.marathon-detail-art {
  display: grid;
  place-items: center;
}

.marathon-detail-summary {
  align-self: center;
  justify-items: start;
  gap: 10px;
  min-height: 220px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(21, 17, 40, 0.62);
  box-shadow: inset 0 0 0 1px rgba(242, 191, 67, 0.08), 0 20px 44px rgba(0, 0, 0, 0.2);
}

.marathon-detail-summary strong {
  color: white;
  font-size: 30px;
  line-height: 1.05;
  font-weight: 900;
}

.marathon-detail-summary span {
  color: var(--marathon-lime);
  font-size: 14px;
  line-height: 1.35;
  font-weight: 900;
}

.marathon-detail-summary em {
  align-self: end;
  color: #d7d1eb;
  font-size: 13px;
  line-height: 1.4;
  font-style: normal;
  font-weight: 900;
}

.marathon-detail-art img,
.marathon-detail-portrait {
  width: min(220px, 100%);
  aspect-ratio: 1;
  object-fit: contain;
  border-radius: 8px;
  background: rgba(21, 17, 40, 0.54);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.09), 0 20px 44px rgba(0, 0, 0, 0.28);
}

.marathon-detail-portrait {
  display: block;
  background-color: rgba(21, 17, 40, 0.54);
  background-image: var(--portrait);
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

.weapon-hero .marathon-detail-art img,
.marathon-detail-portrait.weapon {
  aspect-ratio: 4 / 3;
  padding: 18px;
}

.marathon-detail-summary img.marathon-summary-image {
  width: 104px;
  height: 104px;
  aspect-ratio: 1;
  padding: 10px;
  object-fit: contain;
  border-radius: 8px;
  background: rgba(21, 17, 40, 0.7);
  box-shadow: inset 0 0 0 1px rgba(242, 191, 67, 0.18), 0 12px 28px rgba(0, 0, 0, 0.22);
}

.marathon-detail-summary img.marathon-summary-image.weapon {
  width: 150px;
  height: 104px;
}

.marathon-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.marathon-hero-actions a,
.marathon-hero-actions button,
.marathon-save-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 16px;
  border: 0;
  border-radius: 5px;
  background: var(--marathon-accent);
  color: #151128;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  transition: transform 160ms ease, filter 160ms ease, background 160ms ease;
}

.marathon-hero-actions a:nth-child(2),
.marathon-hero-actions button:nth-child(2) {
  background: #494174;
  color: white;
}

.marathon-hero-actions a:hover,
.marathon-hero-actions button:hover,
.marathon-save-button:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
}

.marathon-page-section {
  margin-top: 20px;
}

.marathon-data-grid,
.marathon-stat-grid,
.marathon-ability-grid,
.marathon-slot-grid,
.marathon-map-grid {
  display: grid;
  gap: 12px;
  padding: 20px;
}

.marathon-data-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.marathon-data-grid.compact {
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.marathon-data-card,
.marathon-ability-card,
.marathon-slot-card {
  display: grid;
  align-content: start;
  gap: 10px;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  background: #2b2451;
  color: white;
  text-align: left;
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.marathon-data-card {
  min-height: 190px;
  padding: 18px;
}

.marathon-data-card:hover,
.marathon-ability-card:hover,
.marathon-slot-card:hover {
  transform: translateY(-3px);
  border-color: rgba(242, 191, 67, 0.48);
  background: #352c62;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.18);
}

.marathon-data-card img {
  width: 58px;
  height: 58px;
  object-fit: contain;
  border-radius: 6px;
  background: #211b40;
}

.marathon-token {
  display: inline-grid;
  place-items: center;
  width: 58px;
  height: 58px;
  flex: 0 0 auto;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--marathon-lime), var(--marathon-accent));
  color: #151128;
  font-size: 16px;
  line-height: 1;
  font-weight: 900;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28), 0 8px 18px rgba(0, 0, 0, 0.18);
}

.marathon-data-card > span {
  min-height: 16px;
  color: var(--marathon-lime);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.marathon-data-card strong {
  color: white;
  font-size: 18px;
  line-height: 1.18;
  font-weight: 900;
}

.marathon-data-card p {
  margin: 0;
  color: #cfc9e6;
  font-size: 14px;
  line-height: 1.42;
  font-weight: 700;
}

.marathon-stat-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.marathon-stat {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 16px;
  border-radius: 6px;
  background: #2b2451;
}

.marathon-stat span {
  color: #cfc9e6;
  font-size: 13px;
  font-weight: 900;
}

.marathon-stat strong {
  color: white;
  font-size: 24px;
  font-weight: 900;
}

.marathon-stat i {
  position: relative;
  height: 7px;
  overflow: hidden;
  border-radius: 99px;
  background: #18132f;
}

.marathon-stat i::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--value);
  border-radius: inherit;
  background: linear-gradient(90deg, var(--marathon-accent), var(--marathon-lime));
}

.marathon-ability-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.marathon-ability-card {
  min-height: 180px;
  padding: 18px;
  border: 0;
  font: inherit;
  cursor: pointer;
}

.marathon-ability-card img {
  width: 58px;
  height: 58px;
  object-fit: contain;
  border-radius: 5px;
  background: #151128;
}

.marathon-ability-card strong {
  color: white;
  font-size: 16px;
  font-weight: 900;
}

.marathon-ability-card span {
  color: #cfc9e6;
  font-size: 13px;
  line-height: 1.42;
  font-weight: 700;
}

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

.marathon-info-panel,
.marathon-article {
  min-width: 0;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  background: #211b40;
}

.marathon-info-panel h2,
.marathon-article h2 {
  margin: 0 0 14px;
  color: white;
  font-size: 20px;
  line-height: 1.2;
  font-weight: 900;
}

.marathon-info-panel ul,
.marathon-tip-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0 0 0 20px;
  color: #d7d1eb;
  font-weight: 700;
  line-height: 1.5;
}

.marathon-info-panel a,
.marathon-info-panel button {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border: 0;
  border-radius: 5px;
  background: #332b5d;
  color: var(--marathon-accent);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.marathon-info-panel a:hover,
.marathon-info-panel button:hover {
  transform: translateY(-1px);
  background: #494174;
}

.marathon-tip-list {
  padding: 20px 24px 20px 42px;
}

.marathon-slot-grid {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.marathon-slot-grid.slim {
  grid-template-columns: 1fr;
  padding: 0;
}

.marathon-slot-card {
  min-height: 138px;
  padding: 14px;
}

.marathon-slot-card img {
  width: 58px;
  height: 58px;
  object-fit: contain;
  border-radius: 6px;
  background: #151128;
}

.marathon-slot-card span {
  color: var(--marathon-lime);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.marathon-slot-card strong {
  color: white;
  font-size: 15px;
  line-height: 1.2;
  font-weight: 900;
}

.marathon-tier-table {
  display: grid;
  gap: 10px;
  padding: 20px;
}

.marathon-tier-row {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;
}

.marathon-tier-row > strong {
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: var(--marathon-accent);
  color: #151128;
  font-size: 22px;
  font-weight: 900;
}

.marathon-tier-row > div {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  min-width: 0;
  padding: 12px;
  border-radius: 6px;
  background: #2b2451;
}

.marathon-tier-row a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 5px;
  background: #211b40;
  color: white;
  font-weight: 900;
}

.marathon-tier-row a:hover {
  transform: translateY(-2px);
  background: #494174;
}

.marathon-tier-row img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.marathon-tier-row .marathon-token {
  width: 28px;
  height: 28px;
  font-size: 10px;
}

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

.marathon-map-card {
  position: relative;
  isolation: isolate;
  display: flex;
  min-height: 250px;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  background:
    linear-gradient(180deg, rgba(21, 17, 40, 0.12), rgba(21, 17, 40, 0.92)),
    var(--map-bg) center / cover;
  color: white;
  transition: transform 160ms ease, border-color 160ms ease, filter 160ms ease;
}

.marathon-map-card:hover {
  transform: translateY(-3px);
  border-color: rgba(242, 191, 67, 0.48);
  filter: saturate(1.08);
}

.marathon-map-card span,
.marathon-map-card em {
  color: var(--marathon-lime);
  font-size: 13px;
  font-style: normal;
  font-weight: 900;
}

.marathon-map-card strong {
  margin: 8px 0;
  font-size: 26px;
  font-weight: 900;
}

.marathon-map-card p {
  margin: 0 0 12px;
  color: #d7d1eb;
  font-weight: 700;
  line-height: 1.45;
}

.marathon-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 20px;
}

.marathon-filter-row button,
.marathon-option-row button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 5px;
  background: #211b40;
  color: #d7d1eb;
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease;
}

.marathon-filter-row button:hover,
.marathon-filter-row button.active,
.marathon-option-row button:hover,
.marathon-option-row button.active {
  transform: translateY(-1px);
  background: var(--marathon-accent);
  color: #151128;
}

.marathon-planner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
  gap: 20px;
}

.marathon-planner-options,
.marathon-planner-preview {
  min-width: 0;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  background: #211b40;
}

.marathon-planner-options h2,
.marathon-planner-preview h2 {
  margin: 0 0 12px;
  color: white;
  font-size: 18px;
  font-weight: 900;
}

.marathon-planner-options h2:not(:first-child) {
  margin-top: 22px;
}

.marathon-option-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.marathon-option-row img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.marathon-option-row .marathon-token {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  font-size: 10px;
}

.runner-shell-card .marathon-token {
  width: 54px;
  height: 54px;
  font-size: 15px;
}

.marathon-planner-preview {
  position: sticky;
  top: 92px;
  align-self: start;
  display: grid;
  gap: 16px;
}

.marathon-article {
  display: grid;
  gap: 18px;
  margin-bottom: 20px;
}

.marathon-article section {
  display: grid;
  gap: 8px;
}

.marathon-article p {
  margin: 0;
  color: #d7d1eb;
  font-size: 16px;
  line-height: 1.62;
  font-weight: 700;
}

.marathon-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  place-items: center;
  padding: 20px;
  background: rgba(6, 5, 14, 0.72);
  backdrop-filter: blur(8px);
}

.marathon-modal.open {
  display: grid;
}

.marathon-modal-panel {
  position: relative;
  width: min(420px, 100%);
  padding: 24px;
  border: 1px solid rgba(242, 191, 67, 0.28);
  border-radius: 6px;
  background: #211b40;
  color: white;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.4);
}

.marathon-modal-panel > button:first-child {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 5px;
  background: #494174;
  color: white;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.marathon-modal-panel h2 {
  margin: 0 40px 10px 0;
  color: white;
  font-size: 22px;
  line-height: 1.2;
  font-weight: 900;
}

.marathon-modal-panel p {
  margin: 0 0 20px;
  color: #d7d1eb;
  line-height: 1.55;
  font-weight: 700;
}

@media (max-width: 900px) {
  .marathon-detail-hero,
  .marathon-planner,
  .marathon-split {
    grid-template-columns: 1fr;
  }

  .marathon-detail-hero {
    min-height: 0;
    padding: 24px;
  }

  .marathon-detail-art {
    justify-items: start;
  }

  .marathon-stat-grid,
  .marathon-ability-grid,
  .marathon-map-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .marathon-planner-preview {
    position: static;
  }
}

@media (max-width: 560px) {
  .marathon-detail-copy h1 {
    font-size: 32px;
  }

  .marathon-data-grid,
  .marathon-data-grid.compact,
  .marathon-stat-grid,
  .marathon-ability-grid,
  .marathon-map-grid,
  .marathon-slot-grid {
    grid-template-columns: 1fr;
  }

  .marathon-tier-row {
    grid-template-columns: 1fr;
  }

  .marathon-tier-row > strong {
    min-height: 46px;
  }
}

/* Web-app readiness: safe-area, touch targets, and narrow viewport polish. */
.site-header,
.nte-topbar,
.marathon-topbar {
  padding-left: max(0px, var(--safe-left));
  padding-right: max(0px, var(--safe-right));
}

.nte-topbar,
.marathon-topbar {
  padding-top: var(--safe-top);
}

.page-shell,
.nte-main,
.marathon-main {
  padding-bottom: max(44px, var(--safe-bottom));
}

.site-nav a,
.nav-actions a,
.nav-actions button,
.games-grid a,
.feature-card,
.loop-step,
.partner-logos button,
.cookie-bar button,
.nte-topbar a,
.nte-topbar button,
.nte-sidebar a,
.nte-drawer-panel a,
.nte-drawer-panel button,
.marathon-topbar a,
.marathon-topbar button,
.marathon-sidebar a,
.marathon-drawer-panel a,
.marathon-drawer-panel button,
.marathon-filter-row button,
.marathon-option-row button,
.marathon-save-button,
.marathon-slot-card {
  touch-action: manipulation;
}

.nav-actions a,
.nav-actions button,
.site-nav a,
.nte-topbar button,
.nte-topbar a,
.marathon-topbar button,
.marathon-topbar a,
.marathon-filter-row button,
.marathon-option-row button,
.marathon-save-button,
.marathon-slot-card,
.cookie-bar button {
  min-height: var(--touch-target);
}

.nte-drawer-panel,
.marathon-drawer-panel {
  padding-bottom: max(24px, var(--safe-bottom));
}

.nte-drawer-panel .drawer-download,
.marathon-drawer-bottom {
  bottom: max(16px, var(--safe-bottom));
}

.marathon-modal {
  padding:
    max(20px, var(--safe-top))
    max(20px, var(--safe-right))
    max(20px, var(--safe-bottom))
    max(20px, var(--safe-left));
}

@media (display-mode: standalone) {
  .cookie-bar {
    bottom: max(18px, var(--safe-bottom));
  }
}

@media (max-width: 1100px) {
  .nte-shell,
  .marathon-shell {
    grid-template-columns: 1fr;
  }

  .nte-sidebar,
  .marathon-sidebar,
  .marathon-top-actions {
    display: none;
  }

  .nte-main,
  .marathon-main {
    grid-column: 1;
    width: 100%;
  }
}

@media (max-width: 900px) {
  .marathon-detail-hero,
  .marathon-planner,
  .marathon-split {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .page-shell,
  .nte-main,
  .marathon-main {
    padding-left: max(16px, var(--safe-left));
    padding-right: max(16px, var(--safe-right));
  }

  .site-header {
    min-height: calc(72px + var(--safe-top));
    padding-top: var(--safe-top);
  }

  .hero {
    padding-top: 18px;
  }

  .games-grid {
    gap: 14px;
  }

  .cookie-bar {
    left: max(14px, var(--safe-left));
    right: max(14px, var(--safe-right));
    bottom: max(14px, var(--safe-bottom));
    width: auto;
  }

  .marathon-planner-options,
  .marathon-planner-preview,
  .marathon-info-panel {
    padding: 16px;
  }

  .marathon-option-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  }

  .marathon-option-row button {
    justify-content: flex-start;
    width: 100%;
  }
}

@media (max-width: 420px) {
  .site-header,
  .nte-topbar,
  .marathon-topbar {
    width: 100%;
  }

  .marathon-detail-hero,
  .marathon-planner-options,
  .marathon-planner-preview,
  .marathon-info-panel,
  .nte-detail-hero,
  .nte-info-panel {
    border-radius: 6px;
  }

  .marathon-hero-actions,
  .nte-hero-actions {
    grid-template-columns: 1fr;
  }

  .marathon-hero-actions a,
  .marathon-hero-actions button,
  .nte-hero-actions a,
  .nte-hero-actions button {
    width: 100%;
  }
}

/* ARC Raiders section */
.arc-page {
  --marathon-accent: #f6b13f;
  --arc-bg: #11131a;
  --arc-panel: #1c202b;
  --arc-panel-2: #242a36;
  --arc-line: rgba(246, 177, 63, 0.16);
  --arc-teal: #4fe0c4;
  background:
    radial-gradient(circle at 74% 10%, rgba(246, 177, 63, 0.16), transparent 32%),
    radial-gradient(circle at 12% 24%, rgba(79, 224, 196, 0.1), transparent 28%),
    var(--arc-bg);
}

.arc-page .marathon-topbar,
.arc-page .marathon-top-actions {
  background: rgba(15, 17, 23, 0.94);
}

.arc-page .marathon-logo .lfgpal-logo {
  border-color: rgba(246, 177, 63, 0.48);
  background: linear-gradient(135deg, rgba(246, 177, 63, 0.18), rgba(79, 224, 196, 0.12));
}

.arc-page .marathon-gamebar a.active,
.arc-page .marathon-gamebar a:hover {
  color: var(--marathon-accent);
}

.arc-page .marathon-gamebar a span {
  background: var(--arc-teal);
  color: #0f1319;
}

.arc-page .marathon-sidebar {
  background: #11131a;
}

.arc-page .marathon-sidebar a {
  display: grid;
  grid-template-rows: 1fr;
  place-items: center;
  min-height: 54px;
  padding: 6px 4px;
  color: #bfc7c7;
  font-size: 11px;
  line-height: 1.1;
}

.arc-page .marathon-sidebar a:hover,
.arc-page .marathon-sidebar a.active {
  background: #252a36;
  color: white;
}

.arc-page .marathon-main {
  max-width: 1120px;
}

.arc-home-skeleton,
.arc-hero,
.arc-detail,
.arc-article {
  border: 1px solid var(--arc-line);
  border-radius: 8px;
  background: var(--arc-panel);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.22);
}

.arc-home-skeleton {
  padding: 24px;
}

.arc-kicker,
.arc-data-card > span,
.arc-guide-card > span,
.arc-article > em {
  color: var(--marathon-accent);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.arc-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  min-height: 430px;
  margin-bottom: 22px;
  padding: 34px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(17, 19, 26, 0.96) 0%, rgba(17, 19, 26, 0.68) 52%, rgba(17, 19, 26, 0.2) 100%),
    var(--arc-hero-image, url("/assets/arc-raiders/official/library-hero.jpg")) center / cover;
}

.arc-hero-copy,
.arc-detail > div {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: center;
  gap: 14px;
  min-width: 0;
}

.arc-hero h1,
.arc-detail h1,
.arc-article h1 {
  margin: 0;
  color: white;
  font-size: clamp(36px, 5vw, 58px);
  line-height: 0.98;
  font-weight: 900;
}

.arc-hero p,
.arc-detail p,
.arc-article p,
.arc-section-head p,
.arc-data-card p,
.arc-guide-card p,
.arc-info-grid p,
.arc-skill-card p {
  margin: 0;
  color: #c9d0d0;
  font-size: 15px;
  line-height: 1.56;
  font-weight: 700;
}

.arc-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.arc-chip-row span {
  padding: 6px 9px;
  border: 1px solid rgba(79, 224, 196, 0.25);
  border-radius: 5px;
  background: rgba(79, 224, 196, 0.08);
  color: #e8f5f0;
  font-size: 12px;
  font-weight: 900;
}

.arc-actions {
  display: flex;
  flex-wrap: wrap;
  margin-top: 6px;
}

.arc-hero-panel {
  position: relative;
  z-index: 1;
  align-self: end;
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(17, 19, 26, 0.78);
  backdrop-filter: blur(10px);
}

.arc-hero-panel img {
  width: 100%;
  max-height: 420px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 6px;
}

.arc-hero-panel strong {
  color: white;
  font-size: 18px;
  font-weight: 900;
}

.arc-hero-panel span {
  color: #c9d0d0;
  font-size: 13px;
  font-weight: 800;
}

.arc-section {
  display: grid;
  gap: 16px;
  margin: 0 0 22px;
}

.arc-section-head {
  display: grid;
  gap: 6px;
}

.arc-section-head h2,
.arc-skill-card h2,
.arc-article h2 {
  margin: 0;
  color: white;
  font-size: 22px;
  font-weight: 900;
}

.arc-grid,
.arc-guide-grid,
.arc-info-grid,
.arc-skill-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
}

.arc-map-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
}

.arc-data-card,
.arc-guide-card,
.arc-info-grid article,
.arc-skill-card {
  display: grid;
  gap: 10px;
  min-width: 0;
  min-height: 100%;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: var(--arc-panel);
  color: white;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.arc-data-card:hover,
.arc-guide-card:hover,
.arc-skill-card:hover,
.arc-info-grid article:hover {
  transform: translateY(-3px);
  border-color: rgba(246, 177, 63, 0.42);
  background: var(--arc-panel-2);
}

.arc-skill-builder {
  display: grid;
  gap: 16px;
}

.arc-skill-builder-head,
.arc-skill-summary,
.arc-skill-workbench,
.arc-skill-presets {
  border: 1px solid var(--arc-line);
  border-radius: 8px;
  background: var(--arc-panel);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.2);
}

.arc-skill-builder-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  padding: 22px;
}

.arc-skill-builder-head h1,
.arc-skill-board-head h2,
.arc-skill-detail h2 {
  margin: 0;
  color: white;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1;
  font-weight: 900;
}

.arc-skill-builder-head p,
.arc-skill-board-head p,
.arc-skill-detail p,
.arc-skill-preset p {
  margin: 8px 0 0;
  color: #c9d0d0;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 800;
}

.arc-skill-builder-head button,
.arc-skill-detail-actions button,
.arc-skill-summary button,
.arc-skill-preset {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 7px;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.arc-skill-builder-head button {
  min-height: 44px;
  padding: 0 16px;
  background: rgba(246, 177, 63, 0.14);
  color: #ffd27c;
  font-weight: 900;
}

.arc-skill-summary {
  display: grid;
  grid-template-columns: minmax(150px, 1.1fr) repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 12px;
}

.arc-skill-total,
.arc-skill-summary button {
  display: grid;
  gap: 4px;
  min-height: 76px;
  padding: 12px;
  background: rgba(15, 19, 25, 0.78);
  color: white;
  text-align: left;
}

.arc-skill-summary button {
  position: relative;
  overflow: hidden;
}

.arc-skill-summary button::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, color-mix(in srgb, var(--branch-color) 24%, transparent), transparent 62%);
  opacity: 0.85;
}

.arc-skill-summary button > * {
  position: relative;
}

.arc-skill-total span,
.arc-skill-summary button span,
.arc-skill-preset span {
  color: #8bded0;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.arc-skill-total strong,
.arc-skill-summary button strong {
  color: white;
  font-size: 30px;
  line-height: 1;
  font-weight: 900;
}

.arc-skill-total em {
  color: #abb6b4;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.arc-skill-summary button.active,
.arc-skill-summary button:hover,
.arc-skill-builder-head button:hover,
.arc-skill-detail-actions button:hover:not(:disabled),
.arc-skill-preset:hover {
  transform: translateY(-2px);
  border-color: rgba(246, 177, 63, 0.48);
  background: #242937;
}

.arc-skill-workbench {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
  gap: 16px;
  padding: 16px;
  align-items: start;
}

.arc-skill-tree-shell {
  position: relative;
  min-height: clamp(640px, 62vw, 860px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 96%, rgba(255, 213, 45, 0.18), transparent 20%),
    radial-gradient(circle at 20% 82%, rgba(89, 244, 122, 0.14), transparent 24%),
    radial-gradient(circle at 82% 82%, rgba(255, 69, 61, 0.14), transparent 24%),
    linear-gradient(180deg, rgba(7, 10, 18, 0.98), rgba(8, 11, 19, 0.99));
  box-shadow: inset 0 -140px 180px rgba(0, 0, 0, 0.34);
}

.arc-skill-map-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(circle at 50% 52%, black, transparent 74%);
  mask-image: radial-gradient(circle at 50% 52%, black, transparent 74%);
  opacity: 0.34;
  pointer-events: none;
}

.arc-skill-forest {
  position: absolute;
  inset: 0;
}

.arc-skill-backdrop {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.arc-skill-backdrop-lane,
.arc-skill-backdrop-link {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.arc-skill-backdrop-lane {
  stroke-width: 18;
  stroke-opacity: 0.075;
  filter: blur(0.2px);
}

.arc-skill-backdrop-link {
  stroke-width: 10;
  stroke-opacity: 0.04;
}

.arc-skill-backdrop-socket {
  display: none;
}

.arc-skill-backdrop-socket.is-root {
  width: 116px;
  height: 116px;
  border-color: color-mix(in srgb, var(--node-color) 34%, rgba(255, 255, 255, 0.08));
  background:
    radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--node-color) 13%, transparent), transparent 58%),
    color-mix(in srgb, var(--node-color) 6%, transparent);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.035),
    0 0 30px color-mix(in srgb, var(--node-color) 12%, transparent);
}

.arc-skill-backdrop-socket.is-gated {
  border-style: dashed;
  border-color: color-mix(in srgb, var(--node-color) 28%, rgba(255, 255, 255, 0.08));
  background:
    radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--node-color) 8%, transparent), transparent 58%),
    color-mix(in srgb, var(--node-color) 4%, transparent);
}

.arc-skill-forest-lines {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.arc-skill-forest-lines path {
  fill: none;
  stroke: rgba(153, 164, 178, 0.26);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.arc-skill-forest-lines path.is-reachable {
  stroke: rgba(238, 242, 246, 0.42);
  stroke-dasharray: 5 9;
}

.arc-skill-forest-lines path.is-active {
  stroke: var(--node-color, #ffd27c);
}

.arc-skill-forest-lines path[data-branch-line="conditioning"].is-active,
.arc-skill-forest-lines path[data-branch-line="conditioning"].is-reachable {
  stroke: #59f47a;
}

.arc-skill-forest-lines path[data-branch-line="mobility"].is-active,
.arc-skill-forest-lines path[data-branch-line="mobility"].is-reachable {
  stroke: #ffd52d;
}

.arc-skill-forest-lines path[data-branch-line="survival"].is-active,
.arc-skill-forest-lines path[data-branch-line="survival"].is-reachable {
  stroke: #ff453d;
}

.arc-skill-forest-lines .arc-skill-trunk {
  stroke-width: 6;
  opacity: 0.55;
}

.arc-skill-forest-lines .arc-skill-trunk.is-active {
  opacity: 0.95;
  filter: drop-shadow(0 0 14px currentColor);
}

.arc-skill-gate-marker {
  position: absolute;
  z-index: 10;
  display: grid;
  place-items: center;
  width: 42px;
  height: 24px;
  transform: translate(-50%, -50%);
  border: 1px solid color-mix(in srgb, var(--node-color) 54%, rgba(255, 255, 255, 0.14));
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), transparent),
    color-mix(in srgb, var(--node-color) 22%, rgba(5, 7, 12, 0.96));
  color: color-mix(in srgb, var(--node-color) 82%, white);
  font-size: 11px;
  font-weight: 900;
  box-shadow:
    0 0 0 3px rgba(5, 7, 12, 0.82),
    0 12px 28px rgba(0, 0, 0, 0.42),
    0 0 16px color-mix(in srgb, var(--node-color) 22%, transparent);
  pointer-events: none;
}

.arc-skill-branch-title {
  position: absolute;
  z-index: 4;
  display: grid;
  gap: 4px;
  min-width: 126px;
  transform: translate(-50%, -50%);
  border: 0;
  background: transparent;
  color: var(--node-color);
  cursor: pointer;
  text-align: center;
  text-transform: uppercase;
  transition: transform 150ms ease, filter 150ms ease;
}

.arc-skill-branch-title span {
  font-size: 13px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0;
}

.arc-skill-branch-title strong {
  color: var(--node-color);
  font-size: 16px;
  line-height: 1;
  font-weight: 900;
}

.arc-skill-branch-title:hover,
.arc-skill-branch-title.is-active {
  transform: translate(-50%, -52%);
  filter: drop-shadow(0 0 12px color-mix(in srgb, var(--node-color) 65%, transparent));
}

.arc-skill-node {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 5px;
  min-width: 0;
  min-height: 96px;
  padding: 8px 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(22, 26, 36, 0.96);
  color: white;
  cursor: pointer;
  text-align: center;
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.2);
  transition: transform 150ms ease, border-color 150ms ease, background 150ms ease, opacity 150ms ease;
}

.arc-skill-tree-node {
  position: absolute;
  z-index: 5;
  display: grid;
  place-items: center;
  width: 104px;
  min-height: 92px;
  padding: 0;
  transform: translate(-50%, -50%);
  border: 0;
  border-radius: 999px;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

.arc-skill-node strong {
  min-width: 0;
  color: white;
  font-size: 11px;
  line-height: 1.12;
  font-weight: 900;
}

.arc-skill-node em,
.arc-skill-node small {
  color: #abb6b4;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

.arc-skill-node small {
  color: var(--node-color);
  font-size: 9px;
  text-transform: uppercase;
}

.arc-skill-tree-node strong {
  position: absolute;
  top: calc(100% - 10px);
  left: 50%;
  width: 118px;
  transform: translateX(-50%);
  color: rgba(228, 233, 235, 0.82);
  font-size: 10px;
  line-height: 1.1;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.72);
}

.arc-skill-tree-node small {
  display: none;
}

.arc-skill-emblem {
  position: relative;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 25%, rgba(255, 255, 255, 0.28), transparent 32%),
    color-mix(in srgb, var(--node-color) 36%, #12161f);
  color: white;
  font-size: 13px;
  font-weight: 900;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}

.arc-skill-emblem::before,
.arc-skill-emblem::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.arc-skill-tree-node .arc-skill-emblem {
  width: clamp(46px, 5.4vw, 68px);
  height: clamp(46px, 5.4vw, 68px);
  border: 0;
  background:
    radial-gradient(circle at 34% 22%, rgba(255, 255, 255, 0.34), transparent 25%),
    radial-gradient(circle at 50% 46%, rgba(255, 255, 255, 0.08), transparent 42%),
    radial-gradient(circle at 50% 62%, color-mix(in srgb, var(--node-color) 18%, transparent), transparent 67%),
    linear-gradient(145deg, #313842 0%, #161b24 46%, #080a10 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    inset 0 -12px 24px rgba(0, 0, 0, 0.58),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    0 14px 28px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.08);
  isolation: isolate;
}

.arc-skill-tree-node .arc-skill-emblem::before {
  inset: -7px;
  z-index: -2;
  border-radius: inherit;
  background:
    conic-gradient(from 210deg,
      rgba(255, 255, 255, 0.1),
      color-mix(in srgb, var(--node-color) 60%, #f8fbff) 18%,
      rgba(5, 7, 12, 0.92) 32%,
      rgba(255, 255, 255, 0.12) 50%,
      color-mix(in srgb, var(--node-color) 44%, transparent) 68%,
      rgba(5, 7, 12, 0.96) 84%,
      rgba(255, 255, 255, 0.1)),
    linear-gradient(145deg, #28303a, #070910);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.1),
    inset 0 -10px 20px rgba(0, 0, 0, 0.56),
    0 10px 28px rgba(0, 0, 0, 0.56);
}

.arc-skill-tree-node .arc-skill-emblem::after {
  inset: 5px;
  z-index: -1;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.11);
  background:
    radial-gradient(circle at 32% 20%, rgba(255, 255, 255, 0.22), transparent 22%),
    radial-gradient(circle at 52% 62%, rgba(0, 0, 0, 0.48), transparent 74%);
  box-shadow:
    inset 0 0 18px rgba(255, 255, 255, 0.035),
    inset 0 -16px 22px rgba(0, 0, 0, 0.42);
}

.arc-skill-emblem img {
  position: relative;
  z-index: 2;
  width: 36px;
  height: 36px;
  object-fit: contain;
  filter:
    brightness(1.18)
    contrast(1.05)
    drop-shadow(0 4px 7px rgba(0, 0, 0, 0.62))
    drop-shadow(0 0 9px color-mix(in srgb, var(--node-color) 24%, transparent));
}

.arc-skill-tree-node .arc-skill-emblem img {
  width: clamp(28px, 3.5vw, 44px);
  height: clamp(28px, 3.5vw, 44px);
}

.arc-skill-emblem b {
  position: absolute;
  inset: auto 2px 0;
  display: none;
  color: white;
  font-size: 8px;
}

.arc-skill-node.is-available {
  border-color: color-mix(in srgb, var(--node-color) 58%, rgba(255, 255, 255, 0.1));
}

.arc-skill-tree-node.is-available .arc-skill-emblem {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.34),
    inset 0 -12px 24px rgba(0, 0, 0, 0.54),
    inset 0 0 0 1px color-mix(in srgb, var(--node-color) 26%, rgba(255, 255, 255, 0.1)),
    0 16px 32px rgba(0, 0, 0, 0.58),
    0 0 22px color-mix(in srgb, var(--node-color) 22%, transparent);
}

.arc-skill-tree-node.is-available .arc-skill-emblem::before {
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--node-color) 28%, rgba(255, 255, 255, 0.1)),
    inset 0 -10px 20px rgba(0, 0, 0, 0.54),
    0 10px 28px rgba(0, 0, 0, 0.56),
    0 0 22px color-mix(in srgb, var(--node-color) 22%, transparent);
}

.arc-skill-node.is-unlocked {
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--node-color) 24%, transparent), rgba(22, 26, 36, 0.96) 60%),
    rgba(22, 26, 36, 0.96);
}

.arc-skill-tree-node.is-unlocked {
  background: transparent;
}

.arc-skill-tree-node.is-unlocked .arc-skill-emblem {
  background:
    radial-gradient(circle at 31% 19%, rgba(255, 255, 255, 0.46), transparent 24%),
    radial-gradient(circle at 50% 42%, color-mix(in srgb, white 12%, var(--node-color)), transparent 58%),
    linear-gradient(145deg,
      color-mix(in srgb, var(--node-color) 88%, white) 0%,
      color-mix(in srgb, var(--node-color) 58%, #11151d) 56%,
      #10131a 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.42),
    inset 0 -14px 24px rgba(0, 0, 0, 0.36),
    inset 0 0 0 1px color-mix(in srgb, var(--node-color) 56%, rgba(255, 255, 255, 0.2)),
    0 18px 34px rgba(0, 0, 0, 0.58),
    0 0 24px color-mix(in srgb, var(--node-color) 34%, transparent);
}

.arc-skill-node.is-maxed .arc-skill-emblem {
  background: var(--node-color);
  color: #10131a;
}

.arc-skill-node.is-maxed .arc-skill-emblem img {
  filter:
    brightness(0.18)
    contrast(1.2)
    drop-shadow(0 4px 7px rgba(255, 255, 255, 0.16));
}

.arc-skill-node.is-locked {
  opacity: 0.74;
}

.arc-skill-tree-node.is-locked .arc-skill-emblem {
  background:
    radial-gradient(circle at 34% 22%, rgba(255, 255, 255, 0.16), transparent 25%),
    linear-gradient(145deg, #252b32 0%, #141922 48%, #090b11 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    inset 0 -12px 24px rgba(0, 0, 0, 0.64),
    inset 0 0 0 1px rgba(255, 255, 255, 0.055),
    0 14px 28px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.045);
}

.arc-skill-tree-node.is-locked .arc-skill-emblem::before {
  background:
    conic-gradient(from 210deg,
      rgba(255, 255, 255, 0.07),
      rgba(111, 121, 129, 0.24) 18%,
      rgba(5, 7, 12, 0.92) 32%,
      rgba(255, 255, 255, 0.08) 50%,
      rgba(111, 121, 129, 0.2) 68%,
      rgba(5, 7, 12, 0.96) 84%,
      rgba(255, 255, 255, 0.07)),
    linear-gradient(145deg, #202731, #070910);
}

.arc-skill-tree-node.is-locked .arc-skill-emblem img {
  filter:
    grayscale(1)
    brightness(0.82)
    contrast(0.9)
    opacity(0.72)
    drop-shadow(0 5px 9px rgba(0, 0, 0, 0.5));
}

.arc-skill-node.is-selected,
.arc-skill-node:hover {
  transform: translateY(-2px);
  border-color: var(--node-color);
}

.arc-skill-tree-node.is-selected,
.arc-skill-tree-node:hover {
  transform: translate(-50%, calc(-50% - 3px));
  border-color: transparent;
}

.arc-skill-tree-node.is-selected .arc-skill-emblem,
.arc-skill-tree-node:hover .arc-skill-emblem {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.42),
    inset 0 -14px 24px rgba(0, 0, 0, 0.42),
    inset 0 0 0 1px color-mix(in srgb, var(--node-color) 48%, rgba(255, 255, 255, 0.16)),
    0 0 0 7px color-mix(in srgb, var(--node-color) 16%, transparent),
    0 24px 48px rgba(0, 0, 0, 0.58),
    0 0 36px color-mix(in srgb, var(--node-color) 54%, transparent);
}

.arc-skill-tree-node.is-selected .arc-skill-emblem::before,
.arc-skill-tree-node:hover .arc-skill-emblem::before {
  filter: brightness(1.16);
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--node-color) 38%, rgba(255, 255, 255, 0.14)),
    inset 0 -10px 20px rgba(0, 0, 0, 0.54),
    0 12px 30px rgba(0, 0, 0, 0.62),
    0 0 32px color-mix(in srgb, var(--node-color) 42%, transparent);
}

.arc-skill-tree-node.is-selected strong,
.arc-skill-tree-node:hover strong {
  color: white;
}

.arc-skill-tree-node em {
  position: absolute;
  right: 2px;
  bottom: 12px;
  display: grid;
  place-items: center;
  min-width: 34px;
  min-height: 18px;
  padding: 0 6px;
  border: 1px solid color-mix(in srgb, var(--node-color) 48%, rgba(255, 255, 255, 0.14));
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent),
    color-mix(in srgb, var(--node-color) 13%, rgba(7, 9, 14, 0.94));
  color: color-mix(in srgb, var(--node-color) 86%, white);
  font-size: 9px;
  line-height: 1;
  font-style: normal;
  font-weight: 900;
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.08),
    0 7px 16px rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(8px);
}

.arc-skill-tree-node.is-locked em {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(7, 9, 14, 0.74);
  color: color-mix(in srgb, var(--node-color) 50%, #a9b0b7);
  opacity: 0.72;
}

.arc-skill-tree-node.is-available em,
.arc-skill-tree-node.is-unlocked em,
.arc-skill-tree-node:hover em,
.arc-skill-tree-node.is-selected em {
  border-color: color-mix(in srgb, var(--node-color) 68%, rgba(255, 255, 255, 0.18));
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--node-color) 22%, rgba(255, 255, 255, 0.1)), transparent),
    color-mix(in srgb, var(--node-color) 22%, rgba(7, 9, 14, 0.94));
  color: color-mix(in srgb, var(--node-color) 92%, white);
  opacity: 1;
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.12),
    0 8px 18px rgba(0, 0, 0, 0.42),
    0 0 14px color-mix(in srgb, var(--node-color) 22%, transparent);
}

.arc-skill-watermark {
  position: absolute;
  left: 50%;
  top: 57%;
  transform: translate(-50%, -50%);
  color: rgba(255, 255, 255, 0.08);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
  pointer-events: none;
}

.arc-skill-detail {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 14px;
  align-self: start;
  min-width: 0;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--branch-color) 12%, transparent), transparent 42%),
    #171b25;
}

.arc-skill-detail-title {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.arc-skill-detail-title img {
  width: 72px;
  height: 72px;
  padding: 13px;
  border: 1px solid color-mix(in srgb, var(--branch-color) 52%, rgba(255, 255, 255, 0.08));
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 25%, rgba(255, 255, 255, 0.25), transparent 34%),
    color-mix(in srgb, var(--branch-color) 22%, #151923);
  object-fit: contain;
}

.arc-skill-rank {
  display: grid;
  gap: 8px;
}

.arc-skill-rank span {
  color: #dfe8e4;
  font-size: 13px;
  font-weight: 900;
}

.arc-skill-rank strong {
  color: var(--branch-color);
  font-size: 34px;
}

.arc-skill-rank i {
  display: block;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.arc-skill-rank b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--branch-color);
}

.arc-skill-detail-list {
  display: grid;
  gap: 8px;
}

.arc-skill-detail-list span {
  display: grid;
  gap: 4px;
  padding: 10px;
  border-radius: 7px;
  background: rgba(15, 19, 25, 0.74);
  color: #dfe8e4;
  font-size: 13px;
  line-height: 1.42;
  font-weight: 800;
}

.arc-skill-detail-list strong {
  color: #8bded0;
  font-size: 11px;
  text-transform: uppercase;
}

.arc-skill-detail-actions {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 8px;
}

.arc-skill-detail-actions button {
  min-height: 46px;
  background: #222838;
  color: white;
  font-weight: 900;
}

.arc-skill-detail-actions button:last-child {
  background: var(--branch-color);
  color: #11131a;
}

.arc-skill-detail-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.arc-skill-presets {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 12px;
}

.arc-skill-preset {
  display: grid;
  gap: 7px;
  min-height: 118px;
  padding: 14px;
  background: rgba(15, 19, 25, 0.78);
  color: white;
  text-align: left;
}

.arc-skill-preset strong {
  color: white;
  font-size: 17px;
  line-height: 1.15;
  font-weight: 900;
}

.arc-skill-immersive {
  gap: 12px;
  margin: -6px -6px 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 90%, rgba(246, 177, 63, 0.1), transparent 34%),
    linear-gradient(180deg, #080b14 0%, #05070d 100%);
  overflow: hidden;
}

.arc-skill-immersive .arc-skill-appbar {
  position: relative;
  z-index: 8;
  display: grid;
  grid-template-columns: minmax(220px, auto) minmax(120px, 1fr) minmax(360px, auto);
  gap: 14px;
  align-items: center;
  min-height: 76px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(9, 11, 17, 0.92);
}

.arc-skill-appbar-actions,
.arc-skill-branch-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.arc-skill-appbar-actions a,
.arc-skill-appbar-actions button,
.arc-skill-zoomless-controls button {
  display: grid;
  place-items: center;
  min-width: 44px;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: #11151d;
  color: #f1f4f2;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.arc-skill-appbar-actions a:hover,
.arc-skill-appbar-actions button:hover,
.arc-skill-zoomless-controls button:hover {
  transform: translateY(-2px);
  border-color: rgba(246, 177, 63, 0.48);
  background: #1d2230;
}

.arc-skill-pointbar {
  justify-self: center;
  display: grid;
  grid-template-columns: auto auto;
  column-gap: 5px;
  row-gap: 0;
  align-items: end;
  min-width: 84px;
  text-align: center;
}

.arc-skill-pointbar strong {
  color: #f6b13f;
  font-size: 28px;
  line-height: 1;
  font-weight: 900;
}

.arc-skill-pointbar span {
  color: #f3f0e8;
  font-size: 16px;
  line-height: 1.05;
  font-weight: 900;
}

.arc-skill-pointbar em {
  grid-column: 1 / -1;
  color: #7e858c;
  font-size: 10px;
  line-height: 1;
  font-style: normal;
  font-weight: 900;
  text-transform: uppercase;
}

.arc-skill-branch-tabs {
  justify-content: flex-end;
}

.arc-skill-branch-tabs button {
  display: grid;
  min-width: 96px;
  padding: 9px 12px;
  border: 1px solid color-mix(in srgb, var(--branch-color) 36%, rgba(255, 255, 255, 0.08));
  border-radius: 8px;
  background: color-mix(in srgb, var(--branch-color) 12%, #10141d);
  color: white;
  cursor: pointer;
  text-align: left;
}

.arc-skill-branch-tabs span {
  color: var(--branch-color);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.arc-skill-branch-tabs strong {
  color: white;
  font-size: 20px;
  line-height: 1;
  font-weight: 900;
}

.arc-skill-branch-tabs button.active,
.arc-skill-branch-tabs button:hover {
  border-color: var(--branch-color);
  background: color-mix(in srgb, var(--branch-color) 22%, #10141d);
}

.arc-skill-immersive .arc-skill-workbench {
  display: block;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.arc-skill-stage {
  position: relative;
  min-height: min(920px, calc(100vh - 88px));
}

.arc-skill-immersive .arc-skill-tree-shell {
  min-height: inherit;
  height: min(920px, calc(100vh - 88px));
  border: 0;
  border-radius: 0;
  background:
    radial-gradient(circle at 50% 98%, rgba(255, 213, 45, 0.24), transparent 23%),
    radial-gradient(circle at 25% 88%, rgba(89, 244, 122, 0.16), transparent 28%),
    radial-gradient(circle at 76% 88%, rgba(255, 69, 61, 0.16), transparent 28%),
    radial-gradient(circle at 50% 35%, rgba(54, 90, 140, 0.12), transparent 42%),
    #070a12;
  box-shadow: none;
}

.arc-skill-immersive .arc-skill-tree-node .arc-skill-emblem {
  width: clamp(42px, 5.5vw, 72px);
  height: clamp(42px, 5.5vw, 72px);
}

.arc-skill-immersive .arc-skill-tree-node .arc-skill-emblem img {
  width: clamp(26px, 3.35vw, 44px);
  height: clamp(26px, 3.35vw, 44px);
}

.arc-skill-immersive .arc-skill-tree-node strong {
  display: none;
}

.arc-skill-immersive .arc-skill-detail {
  position: absolute;
  right: clamp(14px, 2vw, 28px);
  bottom: clamp(14px, 2vw, 28px);
  z-index: 10;
  width: min(420px, calc(100% - 28px));
  max-height: min(520px, calc(100% - 120px));
  overflow: auto;
  border-color: color-mix(in srgb, var(--branch-color) 38%, rgba(255, 255, 255, 0.1));
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--branch-color) 12%, transparent), transparent 48%),
    rgba(18, 21, 30, 0.95);
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.46);
}

.arc-skill-detail-close {
  position: absolute;
  right: 12px;
  top: 10px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: white;
  cursor: pointer;
  font-size: 15px;
  font-weight: 900;
}

.arc-skill-detail.is-hidden {
  display: none;
}

.arc-skill-zoomless-controls {
  position: absolute;
  right: 18px;
  top: 18px;
  z-index: 7;
  display: grid;
  gap: 8px;
}

.arc-skill-immersive .arc-skill-presets {
  position: relative;
  z-index: 8;
  border-width: 1px 0 0;
  border-radius: 0;
  background: rgba(9, 11, 17, 0.92);
  box-shadow: none;
}

/* ARC skill builder: compact Metaforge-style tree pass. */
.arc-skill-immersive {
  background:
    radial-gradient(ellipse at 50% 92%, rgba(246, 177, 63, 0.12), transparent 34%),
    linear-gradient(180deg, #080b13 0%, #05070d 100%);
}

.arc-skill-immersive .arc-skill-appbar {
  min-height: 68px;
  border-bottom-color: rgba(255, 255, 255, 0.07);
  background: rgba(10, 12, 18, 0.96);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.26);
}

.arc-skill-appbar-actions a,
.arc-skill-appbar-actions button,
.arc-skill-zoomless-controls button {
  min-height: 38px;
  border-radius: 10px;
  background: rgba(16, 19, 28, 0.92);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.05);
}

.arc-skill-appbar-actions button[data-skill-reset] {
  border-color: rgba(255, 69, 61, 0.42);
  color: #ff625b;
}

.arc-skill-pointbar strong {
  color: #f0a736;
}

.arc-skill-branch-tabs button {
  min-width: 88px;
  padding: 7px 11px;
  border-radius: 8px;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--branch-color) 10%, rgba(255, 255, 255, 0.03)), transparent),
    rgba(15, 18, 26, 0.86);
}

.arc-skill-branch-tabs button.active,
.arc-skill-branch-tabs button:hover {
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--branch-color) 18%, rgba(255, 255, 255, 0.04)), transparent),
    rgba(18, 21, 30, 0.95);
}

.arc-skill-immersive .arc-skill-tree-shell {
  background:
    radial-gradient(ellipse at 50% 46%, rgba(45, 63, 92, 0.18), transparent 45%),
    radial-gradient(circle at 50% 64.2%, rgba(255, 213, 45, 0.16), transparent 15%),
    radial-gradient(circle at 25.4% 64.2%, rgba(89, 244, 122, 0.14), transparent 17%),
    radial-gradient(circle at 74.6% 64.2%, rgba(255, 69, 61, 0.14), transparent 17%),
    linear-gradient(180deg, #070a13 0%, #05070f 100%);
}

.arc-skill-map-bg {
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.09) 0 1px, transparent 1.4px),
    linear-gradient(rgba(255, 255, 255, 0.026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
  background-size: 30px 30px, 96px 96px, 96px 96px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 48%, black 0 42%, transparent 72%);
  mask-image: radial-gradient(ellipse at 50% 48%, black 0 42%, transparent 72%);
  opacity: 0.1;
}

.arc-skill-forest-lines path {
  stroke: rgba(131, 139, 150, 0.34);
  stroke-width: 1.45;
  stroke-dasharray: none;
}

.arc-skill-forest-lines path.is-reachable {
  stroke: color-mix(in srgb, var(--node-color, #d5dce5) 34%, rgba(214, 222, 232, 0.42));
  stroke-dasharray: 4 8;
}

.arc-skill-forest-lines path.is-active {
  stroke-width: 2.2;
  filter: drop-shadow(0 0 9px color-mix(in srgb, var(--node-color, #ffd52d) 52%, transparent));
}

.arc-skill-forest-lines .arc-skill-trunk {
  stroke-width: 5;
  opacity: 0.5;
}

.arc-skill-forest-lines .arc-skill-trunk.is-active {
  opacity: 0.9;
}

.arc-skill-tree-node {
  width: 68px;
  min-height: 68px;
  isolation: isolate;
}

.arc-skill-tree-node::before {
  display: none;
}

.arc-skill-tree-node.is-root::before {
  display: none;
}

.arc-skill-tree-node.is-gated::before {
  display: none;
}

.arc-skill-immersive .arc-skill-tree-node .arc-skill-emblem,
.arc-skill-tree-node .arc-skill-emblem {
  z-index: 2;
  width: clamp(42px, 4vw, 54px);
  height: clamp(42px, 4vw, 54px);
  box-sizing: border-box;
  border: 2px solid rgba(126, 134, 146, 0.76);
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.08), transparent 42%),
    linear-gradient(180deg, #151923 0%, #090c13 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.04),
    0 0 0 4px rgba(5, 7, 12, 0.84),
    0 0 0 5px color-mix(in srgb, var(--node-color) 15%, rgba(132, 141, 154, 0.2)),
    0 12px 22px rgba(0, 0, 0, 0.42);
}

.arc-skill-tree-node .arc-skill-emblem::before {
  display: none;
}

.arc-skill-tree-node .arc-skill-emblem::after {
  display: none;
}

.arc-skill-immersive .arc-skill-tree-node .arc-skill-emblem img,
.arc-skill-tree-node .arc-skill-emblem img {
  width: clamp(23px, 2.5vw, 32px);
  height: clamp(23px, 2.5vw, 32px);
  filter:
    grayscale(0.35)
    brightness(0.92)
    contrast(1.08)
    drop-shadow(0 4px 7px rgba(0, 0, 0, 0.58));
}

.arc-skill-tree-node.is-root .arc-skill-emblem {
  width: clamp(54px, 4.7vw, 66px);
  height: clamp(54px, 4.7vw, 66px);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.055),
    0 0 0 5px rgba(5, 7, 12, 0.86),
    0 0 0 7px color-mix(in srgb, var(--node-color) 32%, transparent),
    0 16px 30px rgba(0, 0, 0, 0.5),
    0 0 24px color-mix(in srgb, var(--node-color) 28%, transparent);
}

.arc-skill-tree-node.is-root .arc-skill-emblem img {
  width: clamp(29px, 3vw, 38px);
  height: clamp(29px, 3vw, 38px);
}

.arc-skill-tree-node.is-available .arc-skill-emblem,
.arc-skill-tree-node.is-unlocked .arc-skill-emblem {
  border-color: var(--node-color);
  background:
    radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--node-color) 15%, transparent), transparent 55%),
    linear-gradient(180deg, #171c25 0%, #080b12 100%);
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--node-color) 22%, rgba(255, 255, 255, 0.06)),
    0 0 0 4px rgba(5, 7, 12, 0.88),
    0 0 0 6px color-mix(in srgb, var(--node-color) 26%, transparent),
    0 14px 28px rgba(0, 0, 0, 0.48),
    0 0 18px color-mix(in srgb, var(--node-color) 28%, transparent);
}

.arc-skill-tree-node.is-unlocked .arc-skill-emblem img,
.arc-skill-tree-node.is-available .arc-skill-emblem img {
  filter:
    brightness(1.08)
    contrast(1.08)
    drop-shadow(0 4px 7px rgba(0, 0, 0, 0.6))
    drop-shadow(0 0 7px color-mix(in srgb, var(--node-color) 30%, transparent));
}

.arc-skill-node.is-maxed .arc-skill-emblem {
  background:
    radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--node-color) 36%, transparent), transparent 58%),
    #080b12;
  color: white;
}

.arc-skill-node.is-maxed .arc-skill-emblem img {
  filter:
    brightness(1.24)
    contrast(1.12)
    drop-shadow(0 0 9px color-mix(in srgb, var(--node-color) 46%, transparent));
}

.arc-skill-tree-node.is-locked {
  opacity: 0.58;
}

.arc-skill-tree-node.is-locked .arc-skill-emblem {
  border-color: rgba(128, 136, 148, 0.48);
  background: linear-gradient(180deg, #151923 0%, #090b11 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.035),
    0 0 0 4px rgba(5, 7, 12, 0.74),
    0 0 0 5px rgba(126, 134, 146, 0.12),
    0 10px 20px rgba(0, 0, 0, 0.34);
}

.arc-skill-tree-node.is-locked .arc-skill-emblem::before {
  display: none;
}

.arc-skill-tree-node.is-locked .arc-skill-emblem img {
  filter:
    grayscale(1)
    brightness(0.68)
    contrast(0.9)
    opacity(0.86);
}

.arc-skill-tree-node.is-selected,
.arc-skill-tree-node:hover {
  transform: translate(-50%, -50%);
}

.arc-skill-tree-node.is-selected .arc-skill-emblem,
.arc-skill-tree-node:hover .arc-skill-emblem {
  border-color: color-mix(in srgb, var(--node-color) 88%, white);
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--node-color) 30%, rgba(255, 255, 255, 0.08)),
    0 0 0 4px rgba(5, 7, 12, 0.9),
    0 0 0 7px color-mix(in srgb, var(--node-color) 28%, transparent),
    0 18px 32px rgba(0, 0, 0, 0.54),
    0 0 24px color-mix(in srgb, var(--node-color) 42%, transparent);
}

.arc-skill-tree-node em {
  z-index: 4;
  left: 50%;
  right: auto;
  bottom: 4px;
  min-width: 29px;
  min-height: 15px;
  padding: 0 5px;
  transform: translateX(-50%);
  border-color: color-mix(in srgb, var(--node-color) 54%, rgba(255, 255, 255, 0.12));
  background: rgba(5, 7, 12, 0.94);
  color: var(--node-color);
  font-size: 8px;
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.05),
    0 4px 10px rgba(0, 0, 0, 0.44);
  backdrop-filter: none;
}

.arc-skill-tree-node strong {
  z-index: 3;
}

.arc-skill-tree-node.is-available em,
.arc-skill-tree-node.is-unlocked em,
.arc-skill-tree-node:hover em,
.arc-skill-tree-node.is-selected em {
  background: rgba(5, 7, 12, 0.96);
  color: var(--node-color);
}

.arc-skill-gate-marker {
  width: 34px;
  height: 20px;
  background: rgba(5, 7, 12, 0.9);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.34);
}

.arc-skill-branch-title span {
  font-size: 12px;
  text-shadow: 0 0 11px color-mix(in srgb, var(--node-color) 34%, transparent);
}

.arc-skill-branch-title strong {
  font-size: 15px;
}

.arc-skill-watermark {
  top: 58%;
  color: rgba(255, 255, 255, 0.06);
  font-size: 10px;
}

.arc-skill-immersive .arc-skill-detail {
  border-radius: 10px;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--branch-color) 10%, transparent), transparent 48%),
    rgba(13, 16, 24, 0.96);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}

.arc-page .marathon-main.arc-main-wide {
  max-width: 1280px;
}

.arc-market-page {
  display: grid;
  gap: 16px;
}

.arc-market-hero,
.arc-market-toolbar,
.arc-market-create,
.arc-market-board > div,
.arc-market-local-note,
.arc-market-insights-head,
.arc-market-table-panel,
.arc-market-overview {
  border: 1px solid var(--arc-line);
  border-radius: 8px;
  background: rgba(18, 22, 30, 0.9);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.22);
}

.arc-market-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 36%);
  gap: 18px;
  align-items: end;
  min-height: 210px;
  padding: 24px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(10, 12, 18, 0.98), rgba(10, 12, 18, 0.78), rgba(10, 12, 18, 0.58)),
    var(--arc-market-image) center / cover;
}

.arc-market-hero h1,
.arc-market-insights-head h1,
.arc-market-create h2 {
  margin: 0;
  color: white;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1;
  font-weight: 900;
}

.arc-market-hero p,
.arc-market-create p,
.arc-market-board-head p,
.arc-market-local-note p,
.arc-market-insights-head p,
.arc-market-overview p {
  margin: 0;
  color: #c9d0d0;
  font-size: 13px;
  line-height: 1.45;
  font-weight: 800;
}

.arc-market-verify {
  display: grid;
  gap: 8px;
  padding: 16px;
  border: 1px solid rgba(246, 177, 63, 0.24);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(246, 177, 63, 0.2), rgba(79, 224, 196, 0.08)),
    rgba(10, 12, 18, 0.78);
}

.arc-market-verify strong,
.arc-market-board-head h2,
.arc-market-local-note strong,
.arc-market-overview h2 {
  margin: 0;
  color: white;
  font-size: 20px;
  line-height: 1.1;
  font-weight: 900;
}

.arc-market-verify span,
.arc-market-board-head h2 span {
  color: var(--marathon-accent);
}

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

.arc-market-stat {
  display: grid;
  gap: 4px;
  min-height: 88px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(13, 16, 23, 0.86);
  color: white;
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.arc-market-stat:hover {
  transform: translateY(-2px);
  border-color: rgba(246, 177, 63, 0.42);
  background: rgba(24, 29, 39, 0.95);
}

.arc-market-stat span {
  color: var(--marathon-accent);
  font-size: 30px;
  line-height: 1;
  font-weight: 900;
}

.arc-market-stat strong {
  color: #dfe8e4;
  font-size: 12px;
  text-transform: uppercase;
}

.arc-market-toolbar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  gap: 12px;
  padding: 14px;
}

.arc-market-toolbar > .arc-market-search {
  grid-column: 1;
  grid-row: 1;
}

.arc-market-search,
.arc-market-filters label,
.arc-market-create label {
  display: grid;
  gap: 7px;
  color: #dfe8e4;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.arc-market-search input,
.arc-market-filters select,
.arc-market-create input,
.arc-market-create select,
.arc-market-create textarea {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(7, 10, 15, 0.88);
  color: white;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
}

.arc-market-create textarea {
  min-height: 84px;
  padding: 12px;
  resize: vertical;
}

.arc-market-picker {
  position: relative;
  grid-column: span 2;
  min-width: 0;
}

.arc-market-picker:focus-within {
  z-index: 24;
}

.arc-market-picker-preview {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  min-height: 48px;
  padding: 7px 9px;
  border: 1px solid rgba(79, 224, 196, 0.16);
  border-radius: 8px;
  background: rgba(12, 17, 23, 0.82);
  text-transform: none;
}

.arc-market-picker-preview img,
.arc-market-picker-preview b {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 7px;
  background: #10141c;
  object-fit: contain;
}

.arc-market-picker-preview b {
  padding: 0;
  color: var(--marathon-accent);
  font-size: 18px;
}

.arc-market-picker-preview strong,
.arc-market-picker-option strong {
  display: block;
  overflow: hidden;
  color: white;
  font-size: 12px;
  line-height: 1.15;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.arc-market-picker-preview em,
.arc-market-picker-option em {
  display: block;
  overflow: hidden;
  color: #8d98a1;
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.arc-market-picker-results {
  position: absolute;
  right: 0;
  left: 0;
  top: calc(100% + 7px);
  display: none;
  max-height: min(360px, 54vh);
  padding: 7px;
  border: 1px solid rgba(246, 177, 63, 0.22);
  border-radius: 8px;
  background: rgba(7, 10, 15, 0.98);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.42);
  overflow-y: auto;
}

.arc-market-picker:focus-within.has-results .arc-market-picker-results {
  display: grid;
  gap: 5px;
}

.arc-market-picker[data-match-count="0"] .arc-market-picker-results {
  display: none;
}

.arc-market-picker-option {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  min-height: 48px;
  width: 100%;
  padding: 6px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: rgba(18, 22, 30, 0.66);
  color: white;
  cursor: pointer;
  text-align: left;
  transition: transform 140ms ease, border-color 140ms ease, background 140ms ease;
}

.arc-market-picker-option:hover,
.arc-market-picker-option:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(79, 224, 196, 0.34);
  background: rgba(25, 31, 40, 0.96);
  outline: none;
}

.arc-market-picker-option img {
  width: 38px;
  height: 38px;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 7px;
  background: #10141c;
  object-fit: contain;
}

.arc-market-filters {
  grid-column: 1 / -1;
  grid-row: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(130px, 1fr));
  gap: 10px;
  align-items: end;
}

.arc-market-toolbar > .arc-market-insights-button {
  grid-column: 2;
  grid-row: 1;
  align-self: end;
}

.arc-market-insights-button,
.arc-market-insights-head a,
.arc-market-create > form > button,
.arc-market-auth-gate button,
.arc-market-card-actions button,
.arc-market-card-actions a {
  display: grid;
  place-items: center;
  min-height: 44px;
  padding: 0 15px;
  border: 1px solid rgba(246, 177, 63, 0.44);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(246, 177, 63, 0.95), rgba(238, 132, 61, 0.9));
  color: #10131a;
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
  transition: transform 160ms ease, filter 160ms ease;
}

.arc-market-insights-button:hover,
.arc-market-insights-head a:hover,
.arc-market-create > form > button:hover,
.arc-market-auth-gate button:hover,
.arc-market-card-actions button:hover,
.arc-market-card-actions a:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
}

.arc-market-create {
  display: grid;
  grid-template-columns: minmax(240px, 0.46fr) minmax(0, 1fr);
  gap: 18px;
  padding: 16px;
}

.arc-market-create > div {
  display: grid;
  align-content: start;
  gap: 10px;
}

.arc-market-create form {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.arc-market-auth-gate {
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 12px;
  min-height: 190px;
  padding: 20px;
  border: 1px solid rgba(246, 177, 63, 0.2);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(246, 177, 63, 0.12), rgba(79, 224, 196, 0.05)),
    rgba(7, 10, 15, 0.78);
}

.arc-market-auth-gate strong {
  color: white;
  font-size: 20px;
  line-height: 1.1;
  font-weight: 900;
}

.arc-market-auth-gate p {
  max-width: 560px;
}

.arc-market-auth-gate button {
  min-width: 160px;
}

.arc-market-note-field {
  grid-column: span 3;
}

.arc-market-create > form > button {
  align-self: end;
  min-height: 84px;
}

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

.arc-market-board > div {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 14px;
}

.arc-market-board-head {
  display: grid;
  gap: 4px;
}

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

.arc-market-card {
  display: grid;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(8, 10, 15, 0.78);
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.arc-market-card:hover,
.arc-market-card.is-local {
  transform: translateY(-2px);
  border-color: rgba(246, 177, 63, 0.34);
  background: rgba(15, 18, 26, 0.92);
}

.arc-market-card.is-closed {
  opacity: 0.58;
}

.arc-market-card-head {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.arc-market-avatar {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 20%, rgba(255, 255, 255, 0.3), transparent 30%),
    linear-gradient(135deg, rgba(246, 177, 63, 0.42), rgba(79, 224, 196, 0.18));
  color: white;
  font-weight: 900;
}

.arc-market-card-head strong,
.arc-market-item-pill strong,
.arc-market-offer-pill strong,
.arc-market-recent-card strong {
  color: white;
  font-size: 14px;
  line-height: 1.18;
  font-weight: 900;
}

.arc-market-card-head em,
.arc-market-item-pill em,
.arc-market-offer-pill em,
.arc-market-recent-card em {
  color: #8d98a1;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}

.arc-market-card-head b {
  color: #dfe8e4;
  font-size: 12px;
  text-transform: uppercase;
}

.arc-market-trade-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 24px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
}

.arc-market-trade-line > i {
  color: #79848a;
  font-style: normal;
  font-weight: 900;
  text-align: center;
}

.arc-market-item-pill,
.arc-market-offer-pill {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 4px 10px;
  align-items: center;
  min-width: 0;
  min-height: 80px;
  padding: 9px;
  border-radius: 8px;
  background: rgba(18, 22, 30, 0.88);
}

.arc-market-item-pill span,
.arc-market-offer-pill span,
.arc-market-recent-card span {
  grid-column: 1 / -1;
  justify-self: start;
  padding: 3px 8px;
  border-radius: 5px;
  background: rgba(246, 177, 63, 0.18);
  color: var(--marathon-accent);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.arc-market-card[data-order="buy"] .arc-market-item-pill span,
.arc-market-card[data-order="buy"] .arc-market-offer-pill span,
.arc-market-recent-card span {
  background: rgba(79, 224, 196, 0.14);
  color: #74f2d8;
}

.arc-market-item-pill img,
.arc-market-offer-pill img,
.arc-market-recent-card img {
  grid-row: span 2;
  width: 44px;
  height: 44px;
  padding: 5px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 7px;
  background: #10141c;
  object-fit: contain;
}

.arc-market-offer-pill b {
  display: grid;
  grid-row: span 2;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 7px;
  background: rgba(246, 177, 63, 0.16);
  color: var(--marathon-accent);
  font-size: 20px;
  font-weight: 900;
}

.arc-market-card p {
  margin: 0;
  color: #c9d0d0;
  font-size: 12px;
  line-height: 1.42;
  font-weight: 800;
}

.arc-market-card-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 74px;
  gap: 8px;
}

.arc-market-card-actions a {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(24, 29, 39, 0.92);
  color: white;
}

.arc-market-card-actions button:disabled {
  cursor: not-allowed;
  filter: grayscale(1);
  opacity: 0.5;
}

.arc-market-empty {
  margin: 0;
  padding: 18px;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: #8d98a1;
  text-align: center;
  font-size: 13px;
  font-weight: 900;
}

.arc-market-local-note {
  display: grid;
  gap: 10px;
  padding: 16px;
}

.arc-market-insights-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 18px;
}

.arc-market-recent-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.arc-market-recent-card {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  gap: 4px 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(13, 16, 23, 0.86);
}

.arc-market-recent-card span {
  grid-column: 1 / -1;
}

.arc-market-recent-card p {
  margin: 0;
  color: #c9d0d0;
  font-size: 12px;
  font-weight: 800;
}

.arc-market-insight-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 14px;
}

.arc-market-table-panel,
.arc-market-overview {
  padding: 16px;
}

.arc-market-table {
  width: 100%;
  margin-top: 14px;
  border-collapse: collapse;
  color: #dfe8e4;
  font-size: 13px;
  font-weight: 800;
}

.arc-market-table th,
.arc-market-table td {
  padding: 12px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
}

.arc-market-table th {
  color: #8d98a1;
  font-size: 11px;
  text-transform: uppercase;
}

.arc-market-table td:first-child {
  display: flex;
  gap: 10px;
  align-items: center;
  color: white;
}

.arc-market-table td:first-child span {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.arc-market-table td:first-child strong {
  overflow: hidden;
  color: white;
  font-size: 13px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.arc-market-table td:first-child em {
  overflow: hidden;
  color: #8d98a1;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.arc-market-table img {
  width: 38px;
  height: 38px;
  padding: 5px;
  border-radius: 6px;
  background: #10141c;
  object-fit: contain;
}

.arc-market-overview {
  display: grid;
  align-content: start;
  gap: 10px;
}

.arc-market-overview h2 small {
  display: block;
  margin-top: 4px;
  color: #8d98a1;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.arc-market-overview h3 {
  margin: 8px 0 0;
  color: white;
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
}

.arc-market-overview span {
  display: grid;
  gap: 2px;
  padding: 10px;
  border-radius: 7px;
  background: rgba(8, 11, 16, 0.72);
  color: #8d98a1;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.arc-market-overview span strong {
  color: var(--marathon-accent);
  font-size: 28px;
  line-height: 1;
}

.arc-market-breakdown {
  display: grid;
  gap: 8px;
  padding: 11px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(8, 11, 16, 0.72);
}

.arc-market-breakdown i {
  display: block;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(246, 177, 63, 0.95) 0 var(--seed-share), rgba(79, 224, 196, 0.8) var(--seed-share) 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.arc-market-breakdown p {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin: 0;
  color: #c9d0d0;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.arc-market-breakdown b {
  color: var(--marathon-accent);
}

.arc-market-top-list {
  display: grid;
  gap: 7px;
}

.arc-market-top-card {
  display: grid;
  grid-template-columns: 24px 38px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  min-height: 52px;
  padding: 7px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(13, 16, 23, 0.86);
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.arc-market-top-card:hover {
  transform: translateY(-1px);
  border-color: rgba(246, 177, 63, 0.28);
  background: rgba(20, 25, 33, 0.94);
}

.arc-market-top-card b {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: rgba(246, 177, 63, 0.16);
  color: var(--marathon-accent);
  font-size: 12px;
  font-weight: 900;
}

.arc-market-top-card img {
  width: 38px;
  height: 38px;
  padding: 4px;
  border-radius: 7px;
  background: #10141c;
  object-fit: contain;
}

.arc-market-top-card span {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.arc-market-top-card strong,
.arc-market-top-card em {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.arc-market-top-card strong {
  color: white;
  font-size: 12px;
  font-weight: 900;
}

.arc-market-top-card em {
  color: #8d98a1;
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
}

.arc-interactive-map-card {
  display: grid;
  grid-template-columns: minmax(120px, 38%) minmax(0, 1fr);
  gap: 14px;
  min-height: 206px;
  padding: 12px;
  border: 1px solid var(--arc-line);
  border-radius: 8px;
  background: var(--arc-panel);
  color: white;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.arc-interactive-map-card:hover {
  transform: translateY(-3px);
  border-color: rgba(246, 177, 63, 0.42);
  background: var(--arc-panel-2);
}

.arc-interactive-map-section {
  scroll-margin-top: 104px;
}

.arc-interactive-map-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 14px;
  align-items: stretch;
}

.arc-interactive-map-card img {
  width: 100%;
  height: 100%;
  min-height: 160px;
  border-radius: 6px;
  object-fit: cover;
  filter: saturate(0.9) contrast(1.08);
}

.arc-interactive-map-card div {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  gap: 8px;
  min-width: 0;
  height: 100%;
}

.arc-interactive-map-card span {
  color: #8bded0;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.arc-interactive-map-card strong {
  color: white;
  font-size: 22px;
  line-height: 1.05;
  font-weight: 900;
}

.arc-interactive-map-card p {
  margin: 0;
  color: #c9d0d0;
  font-size: 13px;
  line-height: 1.4;
  font-weight: 800;
}

.arc-interactive-map-card a {
  display: inline-grid;
  place-items: center;
  justify-self: stretch;
  align-self: end;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 7px;
  border: 1px solid rgba(246, 177, 63, 0.52);
  background: linear-gradient(135deg, rgba(246, 177, 63, 0.95), rgba(238, 132, 61, 0.9));
  color: #11131a;
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 12px 30px rgba(246, 177, 63, 0.12);
  transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}

.arc-interactive-map-card a:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
  box-shadow: 0 16px 34px rgba(246, 177, 63, 0.2);
}

.arc-map-app {
  min-height: calc(100vh - 86px);
  margin: -18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: #05070c;
}

.arc-map-topbar {
  position: relative;
  z-index: 8;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 72px;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(8, 10, 16, 0.96);
}

.arc-map-topbar > a,
.arc-map-top-actions button,
.arc-map-controls button {
  display: grid;
  place-items: center;
  min-height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: #10151d;
  color: white;
  cursor: pointer;
  font-weight: 900;
  text-decoration: none;
}

.arc-map-topbar h1 {
  margin: 0;
  color: white;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1;
  font-weight: 900;
}

.arc-map-top-actions {
  display: flex;
  gap: 8px;
}

.arc-map-top-actions button {
  padding: 0 12px;
}

.arc-map-top-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.46;
}

.arc-map-layer-actions {
  position: relative;
  z-index: 7;
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 8px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(8, 10, 16, 0.9);
  overflow-x: auto;
}

.arc-map-layer-actions button {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 7px;
  background: rgba(16, 21, 29, 0.86);
  color: #aeb9b6;
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.arc-map-layer-actions button.active,
.arc-map-layer-actions button:hover {
  border-color: rgba(255, 217, 86, 0.5);
  background: rgba(255, 217, 86, 0.14);
  color: #fff3b0;
}

.arc-map-layout {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  min-height: calc(100vh - 158px);
}

.arc-map-filter-panel {
  position: relative;
  z-index: 5;
  overflow: auto;
  max-height: calc(100vh - 158px);
  padding: 14px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(8, 11, 16, 0.94);
}

.arc-map-filter-head {
  display: grid;
  gap: 3px;
  margin-bottom: 8px;
}

.arc-map-filter-head strong {
  color: white;
  font-size: 20px;
  line-height: 1.05;
  font-weight: 900;
}

.arc-map-filter-head span,
.arc-map-filter-head em,
.arc-map-filter-panel p {
  color: #8d98a1;
  font-size: 12px;
  line-height: 1.35;
  font-weight: 800;
}

.arc-map-filter-head em {
  color: #67f28c;
  font-style: normal;
}

.arc-map-filter-panel details {
  margin-top: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(17, 21, 29, 0.72);
}

.arc-map-filter-panel summary {
  display: flex;
  justify-content: space-between;
  padding: 11px 12px;
  color: white;
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
}

.arc-map-filter-panel summary span {
  color: var(--marathon-accent);
}

.arc-map-filter-panel details div {
  display: grid;
  gap: 7px;
  padding: 0 10px 10px;
}

.arc-map-filter-panel button {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  min-height: 36px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: rgba(8, 11, 16, 0.7);
  color: #dfe8e4;
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
  text-align: left;
}

.arc-map-filter-panel button i {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--pin-color);
  color: #10131a;
  font-style: normal;
}

.arc-map-filter-panel button i svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.arc-map-filter-panel button i img {
  width: 17px;
  height: 17px;
  object-fit: contain;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.72));
}

.arc-map-filter-panel button b {
  color: #8d98a1;
}

.arc-map-filter-panel button.is-visible,
.arc-map-filter-panel button:hover {
  border-color: color-mix(in srgb, var(--pin-color) 58%, rgba(255, 255, 255, 0.08));
  background: color-mix(in srgb, var(--pin-color) 13%, #10151d);
}

.arc-map-filter-panel button:not(.is-visible) {
  opacity: 0.64;
}

.arc-map-filter-panel button.is-selected {
  opacity: 1;
  border-color: color-mix(in srgb, var(--pin-color) 80%, white 8%);
  background: color-mix(in srgb, var(--pin-color) 22%, #10151d);
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--pin-color) 34%, transparent),
    0 0 20px color-mix(in srgb, var(--pin-color) 20%, transparent);
}

.arc-map-filter-panel button.is-selected b {
  color: white;
}

.arc-map-canvas-wrap {
  position: relative;
  overflow: hidden;
  background: #05070c;
  cursor: grab;
  touch-action: none;
  user-select: none;
}

.arc-map-canvas-wrap.is-dragging {
  cursor: grabbing;
}

.arc-map-canvas-wrap.is-dragging .arc-map-layer {
  transition: none;
}

.arc-map-canvas-wrap.is-moving .arc-map-pin,
.arc-map-canvas-wrap.is-moving .arc-map-label,
.arc-map-canvas-wrap.is-moving .arc-map-zone {
  transition: none;
}

.arc-map-layer {
  --map-scale: 1;
  --map-x: 0px;
  --map-y: 0px;
  --map-width: 100%;
  --map-height: 100%;
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--map-width);
  height: var(--map-height);
  transform: translate3d(calc(-50% + var(--map-x)), calc(-50% + var(--map-y)), 0) scale(var(--map-scale));
  transform-origin: center;
  transition: transform 120ms ease;
  will-change: transform;
  contain: layout paint;
}

.arc-map-canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
}

.arc-map-canvas > img {
  width: 100%;
  height: 100%;
  object-fit: fill;
  filter: saturate(1.03) contrast(1.04) brightness(0.88);
}

.arc-map-canvas::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 50%, transparent 28%, rgba(0, 0, 0, 0.16) 78%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.06), rgba(0, 0, 0, 0.2));
  pointer-events: none;
}

.arc-map-tiles {
  position: absolute;
  inset: 0;
}

.arc-map-tile {
  position: absolute;
  display: block;
  object-fit: fill;
  user-select: none;
  -webkit-user-drag: none;
}

.arc-map-tile[hidden] {
  display: none;
}

.arc-map-zone-layer {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  overflow: visible;
  contain: layout paint;
}

.arc-map-zone {
  fill: color-mix(in srgb, var(--zone-fill) 42%, transparent);
  stroke: var(--zone-color);
  stroke-width: 0.18;
  stroke-dasharray: 0.85 0.42;
  vector-effect: non-scaling-stroke;
  cursor: pointer;
  transition: fill 140ms ease, stroke-width 140ms ease, opacity 140ms ease;
}

.arc-map-zone:hover {
  fill: color-mix(in srgb, var(--zone-fill) 62%, transparent);
  stroke-width: 0.28;
}

.arc-map-labels {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  contain: layout paint;
}

.arc-map-labels span,
.arc-map-label {
  position: absolute;
  transform: translate(-50%, -50%);
  padding: 2px 5px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  background: rgba(5, 7, 12, 0.38);
  color: rgba(255, 255, 255, 0.7);
  font-size: 10px;
  font-weight: 900;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.95);
  white-space: nowrap;
}

.arc-map-label {
  background: color-mix(in srgb, var(--pin-color) 15%, rgba(5, 7, 12, 0.52));
  color: rgba(255, 255, 255, 0.82);
  cursor: pointer;
  pointer-events: auto;
  letter-spacing: 0.02em;
}

.arc-map-label-region {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.9);
}

.arc-map-label:hover {
  z-index: 8;
  border-color: color-mix(in srgb, var(--pin-color) 58%, rgba(255, 255, 255, 0.1));
  background: color-mix(in srgb, var(--pin-color) 28%, rgba(5, 7, 12, 0.74));
}

.arc-map-pin-layer {
  position: absolute;
  inset: 0;
  z-index: 4;
  contain: layout paint;
}

.arc-map-pin {
  position: absolute;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  transform: translate(-50%, -50%);
  border: 2px solid rgba(255, 255, 255, 0.88);
  border-radius: 50%;
  background: var(--pin-color);
  color: #12141a;
  cursor: pointer;
  font-size: 10px;
  font-weight: 900;
  box-shadow: 0 7px 18px rgba(0, 0, 0, 0.42);
  transition: transform 140ms ease, filter 140ms ease;
}

.arc-map-pin:hover {
  z-index: 6;
  transform: translate(-50%, -50%) scale(1.28);
  filter: brightness(1.12);
}

.arc-map-pin-icon {
  display: grid;
  place-items: center;
  width: 17px;
  height: 17px;
  pointer-events: none;
}

.arc-map-pin-icon svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.25;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.arc-map-pin-icon img {
  width: 19px;
  height: 19px;
  object-fit: contain;
  filter:
    drop-shadow(0 1px 1px rgba(0, 0, 0, 0.85))
    drop-shadow(0 0 2px rgba(0, 0, 0, 0.45));
}

.arc-map-pin[hidden],
.arc-map-label[hidden],
.arc-map-label.is-hidden,
.arc-map-zone[hidden],
.arc-map-zone.is-hidden,
.arc-map-pin.is-hidden {
  display: none;
}

.arc-map-controls {
  position: absolute;
  right: 18px;
  top: 18px;
  z-index: 6;
  display: grid;
  gap: 8px;
}

.arc-map-controls button {
  width: 42px;
  min-height: 42px;
  background: rgba(246, 247, 242, 0.92);
  color: #11131a;
  font-size: 18px;
}

.arc-map-controls span {
  display: grid;
  place-items: center;
  min-height: 28px;
  border-radius: 999px;
  background: rgba(9, 12, 18, 0.82);
  color: white;
  font-size: 11px;
  font-weight: 900;
}

.arc-map-feature-tip {
  position: absolute;
  z-index: 9;
  display: grid;
  gap: 4px;
  max-width: min(260px, calc(100% - 24px));
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent),
    rgba(8, 11, 18, 0.94);
  color: #fff;
  pointer-events: none;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.38);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 100ms ease, transform 100ms ease;
}

.arc-map-feature-tip.show {
  opacity: 1;
  transform: translateY(0);
}

.arc-map-feature-tip[hidden],
.arc-map-canvas-wrap.is-moving .arc-map-feature-tip,
.arc-map-canvas-wrap.is-dragging .arc-map-feature-tip {
  display: none;
}

.arc-map-feature-tip strong {
  font-size: 13px;
  line-height: 1.2;
}

.arc-map-feature-tip span {
  color: rgba(238, 240, 232, 0.74);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.arc-data-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  object-fit: cover;
  background: #151821;
}

.arc-data-card img[src*="/items-hd/"] {
  object-fit: contain;
  padding: 14px;
}

.arc-data-card strong,
.arc-guide-card strong,
.arc-info-grid strong {
  color: white;
  font-size: 18px;
  line-height: 1.18;
  font-weight: 900;
}

.arc-data-card em,
.arc-guide-card em {
  color: #8bded0;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.arc-info-grid article ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 18px;
  color: #c9d0d0;
  font-size: 13px;
  line-height: 1.45;
  font-weight: 700;
}

.arc-info-grid article ul a {
  color: #8bded0;
  text-decoration: none;
}

.arc-info-grid article ul a:hover {
  color: var(--marathon-accent);
}

.arc-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
  gap: 8px;
}

.arc-stat-grid span {
  display: grid;
  gap: 4px;
  min-height: 62px;
  padding: 9px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 7px;
  background: rgba(15, 19, 25, 0.72);
  color: #dfe8e4;
  font-size: 12px;
  font-weight: 800;
}

.arc-stat-grid span strong {
  color: var(--marathon-accent);
  font-size: 11px;
  text-transform: uppercase;
}

.arc-crumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
}

.arc-crumb a,
.arc-crumb span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 5px;
  background: #222838;
  color: #dfe8e4;
  font-size: 12px;
  font-weight: 900;
}

.arc-crumb a::after {
  content: ">";
  margin-left: 8px;
  color: var(--marathon-accent);
}

.arc-detail {
  display: grid;
  grid-template-columns: minmax(280px, 42%) minmax(0, 1fr);
  gap: 24px;
  margin-bottom: 22px;
  padding: 22px;
}

.arc-detail > img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  border-radius: 6px;
  object-fit: cover;
}

.arc-condition-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.arc-map-events {
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(28, 32, 43, 0.98), rgba(17, 19, 26, 0.98)),
    var(--arc-panel);
}

.arc-event-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
}

.arc-event-head > div:first-child {
  min-width: 0;
}

.arc-event-head h2 {
  margin: 4px 0 6px;
  color: white;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1;
  font-weight: 900;
}

.arc-event-head-actions {
  display: grid;
  grid-template-columns: minmax(190px, 230px) minmax(190px, auto);
  gap: 10px;
  align-items: stretch;
}

.arc-event-map-jump {
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 4px;
  min-height: 72px;
  padding: 12px 14px;
  border: 1px solid rgba(246, 177, 63, 0.42);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(246, 177, 63, 0.2), rgba(79, 224, 196, 0.07)),
    rgba(15, 19, 25, 0.82);
  color: white;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.arc-event-map-jump:hover {
  transform: translateY(-2px);
  border-color: rgba(246, 177, 63, 0.7);
  background:
    linear-gradient(135deg, rgba(246, 177, 63, 0.28), rgba(79, 224, 196, 0.1)),
    rgba(20, 24, 33, 0.92);
}

.arc-event-map-jump span {
  color: #f6b13f;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.arc-event-map-jump strong {
  color: white;
  font-size: 16px;
  line-height: 1.1;
  font-weight: 900;
}

.arc-event-status {
  display: grid;
  justify-items: end;
  gap: 4px;
  min-width: 190px;
  padding: 12px;
  border: 1px solid rgba(79, 224, 196, 0.18);
  border-radius: 8px;
  background: rgba(15, 19, 25, 0.72);
  text-align: right;
}

.arc-event-status span,
.arc-event-card span,
.arc-event-map-card span,
.arc-event-row span {
  color: #8bded0;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.arc-event-status strong {
  color: white;
  font-size: 20px;
  line-height: 1;
}

.arc-event-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
  margin-bottom: 14px;
}

.arc-event-filters {
  margin: 0;
}

.arc-event-refresh {
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid rgba(246, 177, 63, 0.34);
  border-radius: 6px;
  background: rgba(246, 177, 63, 0.12);
  color: white;
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.arc-event-refresh:hover {
  background: var(--marathon-accent);
  color: #11131a;
}

.arc-event-active,
.arc-event-map-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 12px;
}

.arc-event-map-grid {
  margin-top: 12px;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.arc-event-card,
.arc-event-map-card,
.arc-event-row,
.arc-event-empty {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(15, 19, 25, 0.78);
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.arc-event-card:hover,
.arc-event-map-card:hover,
.arc-event-row:hover {
  transform: translateY(-2px);
  border-color: rgba(246, 177, 63, 0.42);
  background: rgba(29, 34, 46, 0.94);
}

.arc-event-card {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  gap: 12px;
  padding: 14px;
}

.arc-event-card.live,
.arc-event-map-card.live,
.arc-event-row.live {
  border-color: rgba(79, 224, 196, 0.34);
  box-shadow: inset 0 1px 0 rgba(79, 224, 196, 0.16);
}

.arc-event-card.major {
  border-left: 3px solid #f6b13f;
}

.arc-event-card.minor {
  border-left: 3px solid #4fe0c4;
}

.arc-event-card img,
.arc-event-row img,
.arc-event-initial {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.06);
}

.arc-event-initial {
  display: grid;
  place-items: center;
  color: var(--marathon-accent);
  font-size: 28px;
  font-weight: 900;
}

.arc-event-card div,
.arc-event-map-card,
.arc-event-row div,
.arc-event-empty {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.arc-event-card strong,
.arc-event-map-card strong,
.arc-event-row strong,
.arc-event-empty strong {
  color: white;
  font-size: 18px;
  line-height: 1.12;
  font-weight: 900;
}

.arc-event-card p,
.arc-event-map-card p,
.arc-event-empty p {
  margin: 0;
  color: #c9d0d0;
  font-size: 13px;
  line-height: 1.42;
  font-weight: 700;
}

.arc-event-card em,
.arc-event-map-card em,
.arc-event-row em {
  color: #e8f5f0;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.arc-event-card b,
.arc-event-map-card b,
.arc-event-row b,
.arc-event-empty b {
  color: var(--marathon-accent);
}

.arc-event-map-card {
  padding: 13px;
}

.arc-event-map-card div {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
}

.arc-event-timeline {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.arc-event-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
}

.arc-event-row img,
.arc-event-row .arc-event-initial {
  width: 44px;
  height: 44px;
}

.arc-event-empty {
  padding: 16px;
}

.arc-filter-row {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
  margin-bottom: 14px;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
}

.arc-condition-row button,
.arc-filter-row button,
.arc-skill-card button {
  min-height: 42px;
  padding: 0 12px;
  border: 0;
  border-radius: 6px;
  background: var(--marathon-accent);
  color: #11131a;
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.arc-filter-row button {
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #171b25;
  color: #dfe8e4;
}

.arc-filter-row button:hover,
.arc-filter-row button.active {
  background: var(--marathon-accent);
  color: #11131a;
}

.arc-item-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 12px;
}

.arc-item-card {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 12px;
  min-height: 132px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: #171b25;
  color: white;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.arc-item-card:hover {
  transform: translateY(-2px);
  border-color: rgba(246, 177, 63, 0.42);
  background: #232936;
}

.arc-item-card img {
  width: 96px;
  height: 96px;
  object-fit: contain;
  border-radius: 7px;
  background: #0f1319;
}

.arc-item-card div {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.arc-item-card span {
  color: var(--marathon-accent);
  font-size: 12px;
  font-weight: 900;
}

.arc-item-card strong {
  color: white;
  font-size: 17px;
  line-height: 1.12;
  font-weight: 900;
}

.arc-item-card p {
  margin: 0;
  color: #c9d0d0;
  font-size: 13px;
  line-height: 1.35;
  font-weight: 700;
}

.arc-item-card em {
  color: #8bded0;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

.arc-item-detail > img {
  object-fit: contain;
  padding: 28px;
  background: #10141c;
}

.arc-skill-card {
  border-top: 3px solid var(--skill-color);
}

.arc-skill-card span {
  color: var(--skill-color);
  font-size: 12px;
  font-weight: 900;
}

.arc-skill-card button {
  width: fit-content;
  margin-top: auto;
}

.arc-search {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
  color: #dfe8e4;
  font-size: 12px;
  font-weight: 900;
}

.arc-search input {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 7px;
  background: #171b25;
  color: white;
  font: inherit;
  font-weight: 800;
}

.arc-article {
  display: grid;
  gap: 16px;
  padding: 24px;
}

.arc-article section {
  display: grid;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.arc-page .marathon-modal-panel {
  border-color: rgba(246, 177, 63, 0.34);
  background: #1c202b;
}

.arc-page .moba-hover-card {
  display: block;
}

.arc-page .marathon-drawer-panel {
  background: #141821;
}

@media (max-width: 900px) {
  .arc-hero,
  .arc-detail {
    grid-template-columns: 1fr;
  }

  .arc-hero {
    min-height: 0;
    padding: 24px;
  }

  .arc-skill-builder-head,
  .arc-skill-workbench {
    display: grid;
    grid-template-columns: 1fr;
  }

  .arc-skill-builder-head {
    align-items: stretch;
  }

  .arc-skill-summary,
  .arc-skill-presets {
    grid-template-columns: 1fr;
  }

  .arc-skill-tree-shell {
    min-height: clamp(600px, 124vw, 760px);
  }

  .arc-skill-detail {
    position: static;
  }

  .arc-skill-immersive .arc-skill-appbar {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: stretch;
  }

  .arc-skill-appbar-actions {
    justify-content: stretch;
    overflow-x: auto;
  }

  .arc-skill-branch-tabs {
    display: none;
  }

  .arc-skill-branch-tabs button {
    min-width: 110px;
  }

  .arc-skill-stage,
  .arc-skill-immersive .arc-skill-tree-shell {
    height: 760px;
    min-height: 760px;
  }

  .arc-skill-immersive .arc-skill-detail {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 12px;
    width: auto;
    max-height: 310px;
  }

  .arc-map-app {
    margin: -12px;
  }

  .arc-map-topbar,
  .arc-map-layout {
    grid-template-columns: 1fr;
  }

  .arc-map-topbar {
    gap: 8px;
  }

  .arc-map-topbar > a {
    position: absolute;
    left: 12px;
    top: 12px;
    width: 44px;
  }

  .arc-map-topbar > div:nth-child(2) {
    padding-left: 54px;
  }

  .arc-map-top-actions {
    overflow-x: auto;
  }

  .arc-map-filter-panel {
    display: none;
    max-height: 240px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .arc-map-app.filters-open .arc-map-filter-panel {
    display: block;
  }

  .arc-map-canvas-wrap {
    min-height: 620px;
  }

  .arc-event-head {
    display: grid;
    grid-template-columns: 1fr;
  }

  .arc-event-head-actions {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .arc-market-hero,
  .arc-market-create,
  .arc-market-board,
  .arc-market-insight-layout {
    grid-template-columns: 1fr;
  }

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

  .arc-market-toolbar {
    grid-template-columns: 1fr;
  }

  .arc-market-filters {
    grid-column: 1;
    grid-row: auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .arc-market-toolbar > .arc-market-insights-button {
    grid-column: 1;
    grid-row: auto;
  }

  .arc-market-create form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .arc-market-picker {
    grid-column: 1 / -1;
  }

  .arc-market-note-field {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  .arc-hero,
  .arc-detail,
  .arc-article {
    padding: 16px;
  }

  .arc-hero h1,
  .arc-detail h1,
  .arc-article h1 {
    font-size: 34px;
  }

  .arc-grid,
  .arc-guide-grid,
  .arc-info-grid,
  .arc-skill-grid,
  .arc-item-grid,
  .arc-map-strip,
  .arc-interactive-map-grid {
    grid-template-columns: 1fr;
  }

  .arc-skill-builder-head,
  .arc-skill-workbench {
    padding: 12px;
  }

  .arc-skill-tree-shell {
    min-height: 690px;
  }

  .arc-skill-immersive {
    margin: -12px;
    border-radius: 0;
  }

  .arc-skill-appbar-actions button:nth-child(2),
  .arc-skill-appbar-actions button:nth-child(3) {
    display: none;
  }

  .arc-skill-pointbar {
    justify-self: end;
  }

  .arc-skill-forest-lines path {
    stroke-width: 1.4;
  }

  .arc-skill-forest-lines .arc-skill-trunk {
    stroke-width: 4;
  }

  .arc-skill-tree-node {
    width: 54px;
    min-height: 54px;
    padding: 0;
  }

  .arc-skill-tree-node .arc-skill-emblem {
    width: 40px;
    height: 40px;
  }

  .arc-skill-tree-node .arc-skill-emblem img {
    width: 25px;
    height: 25px;
  }

  .arc-skill-tree-node strong {
    display: none;
  }

  .arc-skill-tree-node em {
    right: -1px;
    bottom: 0;
    min-width: 24px;
    min-height: 14px;
    padding: 0 3px;
    font-size: 8px;
  }

  .arc-skill-gate-marker {
    width: 30px;
    height: 18px;
    font-size: 9px;
  }

  .arc-skill-branch-title {
    min-width: 92px;
  }

  .arc-skill-branch-title span {
    font-size: 10px;
  }

  .arc-skill-branch-title strong {
    font-size: 14px;
  }

  .arc-skill-watermark {
    font-size: 9px;
  }

  .arc-interactive-map-card {
    grid-template-columns: 1fr;
  }

  .arc-interactive-map-card img {
    height: 170px;
  }

  .arc-map-pin {
    width: 26px;
    height: 26px;
    border-width: 2px;
    font-size: 9px;
  }

  .arc-map-labels span {
    font-size: 9px;
  }

  .arc-item-card {
    grid-template-columns: 74px minmax(0, 1fr);
  }

  .arc-item-card img {
    width: 74px;
    height: 74px;
  }

  .arc-event-head,
  .arc-event-toolbar {
    grid-template-columns: 1fr;
    display: grid;
  }

  .arc-event-status {
    justify-items: start;
    min-width: 0;
    text-align: left;
  }

  .arc-event-head-actions {
    grid-template-columns: 1fr;
  }

  .arc-event-row {
    grid-template-columns: 40px minmax(0, 1fr);
  }

  .arc-event-row em {
    grid-column: 2;
  }

  .arc-market-stats,
  .arc-market-recent-grid,
  .arc-market-filters,
  .arc-market-create form {
    grid-template-columns: 1fr;
  }

  .arc-market-hero,
  .arc-market-create,
  .arc-market-board > div,
  .arc-market-local-note,
  .arc-market-insights-head,
  .arc-market-table-panel,
  .arc-market-overview {
    padding: 12px;
  }

  .arc-market-insights-head {
    display: grid;
  }

  .arc-market-trade-line {
    grid-template-columns: 1fr;
  }

  .arc-market-trade-line > i {
    transform: rotate(90deg);
  }

  .arc-market-card-actions {
    grid-template-columns: 1fr;
  }

  .arc-market-table {
    min-width: 760px;
  }

  .arc-market-table-panel {
    overflow-x: auto;
  }
}

/* Unified game app chrome */
.nte-page {
  --nte-bg: #11131a;
  --nte-panel: #1c202b;
  --nte-panel-2: #242a36;
  --nte-panel-3: #303746;
  --nte-pink: #f6b13f;
  --nte-gold: #f6b13f;
  --nte-text: #f7f3e8;
  --nte-muted: #c4cbcb;
  --game-accent: #f6b13f;
  --game-accent-2: #4fe0c4;
  --game-accent-rgb: 246, 177, 63;
  --marathon-accent: #f6b13f;
  --game-topbar-bg: rgba(13, 15, 21, 0.92);
  --game-rail-bg: #0e1118;
  --game-rail-surface: rgba(31, 36, 48, 0.78);
  --game-rail-surface-hover: rgba(43, 50, 64, 0.9);
  --game-rail-text: #c4cbcb;
}

.marathon-page {
  --game-accent: var(--marathon-lime);
  --game-accent-2: var(--marathon-accent);
  --game-accent-rgb: 199, 254, 12;
  --game-topbar-bg: rgba(16, 12, 35, 0.9);
  --game-rail-bg: #100d22;
  --game-rail-surface: rgba(42, 35, 80, 0.72);
  --game-rail-surface-hover: rgba(58, 49, 103, 0.86);
  --game-rail-text: #bdb7d5;
}

.arc-page {
  --game-accent: #f6b13f;
  --game-accent-2: var(--arc-teal);
  --game-accent-rgb: 246, 177, 63;
  --game-topbar-bg: rgba(13, 15, 21, 0.92);
  --game-rail-bg: #0e1118;
  --game-rail-surface: rgba(31, 36, 48, 0.78);
  --game-rail-surface-hover: rgba(43, 50, 64, 0.9);
  --game-rail-text: #c4cbcb;
}

.nte-topbar,
.marathon-topbar {
  min-height: 48px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent),
    var(--game-topbar-bg);
  border-bottom: 1px solid rgba(255, 255, 255, 0.075);
  box-shadow: 0 14px 42px rgba(3, 2, 10, 0.24);
  backdrop-filter: blur(16px);
}

.nte-topbar {
  grid-template-columns: auto auto minmax(0, 1fr) auto;
}

.nte-top-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  justify-self: end;
  grid-column: -2 / -1;
  padding: 0 20px 0 12px;
}

.nte-page .marathon-signin-top {
  margin-left: 0;
  min-width: 96px;
  background: var(--game-rail-surface);
}

.nte-page .marathon-signin-top:hover {
  border-color: rgba(var(--game-accent-rgb), 0.45);
  color: var(--game-accent);
}

.nte-page .nte-modal-card,
.nte-page .nte-drawer-panel {
  background: var(--nte-panel);
  border-color: rgba(var(--game-accent-rgb), 0.18);
}

.nte-page .nte-drawer-panel {
  position: relative;
  padding-bottom: max(92px, calc(76px + var(--safe-bottom)));
}

.nte-page .nte-drawer-panel a:hover,
.nte-page .nte-drawer-panel a.active {
  background: var(--game-rail-surface-hover);
  color: #fff;
}

.nte-page .nte-hero,
.nte-page .hub-hero {
  border-color: rgba(var(--game-accent-rgb), 0.16);
  background:
    linear-gradient(90deg, rgba(13, 15, 21, 0.98), rgba(28, 32, 43, 0.82), rgba(28, 32, 43, 0.24)),
    url("https://cdn.mobalytics.gg/assets/neverness-to-everness/images/st-splashes/home-page-splash.webp") center / cover;
}

.nte-page .hub-hero {
  background:
    linear-gradient(90deg, rgba(13, 15, 21, 0.98), rgba(28, 32, 43, 0.78), rgba(28, 32, 43, 0.2)),
    url("https://cdn.mobalytics.gg/assets/neverness-to-everness/images/st-splashes/guides-splash.webp") center / cover;
}

.nte-page .nte-badge,
.nte-page .guide-kicker {
  background: var(--game-accent);
  color: #11131a;
}

.nte-page .hub-kicker {
  background: rgba(79, 224, 196, 0.14);
  color: #86f4dd;
}

.nte-page .nte-section,
.nte-page .hub-panel,
.nte-page .hub-featured,
.nte-page .guide-content section,
.nte-page .guide-toc,
.nte-page .hub-character-card,
.nte-page .mini-character-card,
.nte-page .guide-card,
.nte-page .database-card,
.nte-page .team-card,
.nte-page .support-card,
.nte-page .profile-card img,
.nte-page .portrait-wide,
.nte-page .featured-character-art,
.nte-page .guide-hero > img,
.nte-page .nte-character-card {
  border-color: rgba(var(--game-accent-rgb), 0.13);
  background-color: var(--nte-panel);
}

.nte-page .filter-chip,
.nte-page .guide-stat-row span,
.nte-page .guide-pill,
.nte-page .nte-stat-grid span,
.nte-page .tier-row,
.nte-page .tier-avatar img,
.nte-page .data-card-media span,
.nte-page .data-card-image,
.nte-page .hub-card-meta span,
.nte-page .linked-users a,
.nte-page .profile-lookup input,
.nte-page .hub-search input {
  background: var(--nte-panel-2);
  border-color: rgba(var(--game-accent-rgb), 0.12);
}

.nte-page .tier-row > strong {
  background: linear-gradient(135deg, var(--game-accent), #ffcc6b);
  color: #11131a;
}

.nte-page .tier-row:nth-child(even) > strong {
  background: linear-gradient(135deg, var(--game-accent-2), #9ff7e5);
}

.nte-page .tier-row > div {
  background: linear-gradient(90deg, rgba(var(--game-accent-rgb), 0.12), rgba(36, 42, 54, 0.88));
}

.nte-page .filter-chip.active,
.nte-page .filter-chip:hover,
.nte-page .hub-character-card:hover,
.nte-page .mini-character-card:hover,
.nte-page .guide-card:hover,
.nte-page .database-card:hover,
.nte-page .team-card:hover,
.nte-page .support-card:hover,
.nte-page .nte-character-card:hover {
  border-color: rgba(var(--game-accent-rgb), 0.46);
}

.nte-page .nte-feature-card {
  box-shadow: inset 0 -120px 90px rgba(13, 15, 21, 0.88);
}

.nte-page .nte-card-row {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.nte-page .nte-feature-card.tier {
  background-image: linear-gradient(180deg, rgba(28, 32, 43, 0.18), rgba(13, 15, 21, 0.94)), url("https://cdn.mobalytics.gg/assets/neverness-to-everness/images/st-splashes/tierlist-splash.webp");
}

.nte-page .nte-feature-card.codes {
  background-image: linear-gradient(180deg, rgba(28, 32, 43, 0.18), rgba(13, 15, 21, 0.94)), url("https://cdn.mobalytics.gg/assets/neverness-to-everness/images/st-splashes/generic-3-splash.webp");
}

.nte-page .nte-feature-card.guides {
  background-image: linear-gradient(180deg, rgba(28, 32, 43, 0.18), rgba(13, 15, 21, 0.94)), url("https://cdn.mobalytics.gg/assets/neverness-to-everness/images/st-splashes/guides-splash.webp");
}

.nte-page .nte-feature-card.maps {
  background-image:
    linear-gradient(180deg, rgba(28, 32, 43, 0.16), rgba(13, 15, 21, 0.95)),
    url("https://cdn.mobalytics.gg/assets/neverness-to-everness/images/st-splashes/home-page-splash.webp");
}

.nte-map-launch {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 85% 8%, rgba(79, 224, 196, 0.18), transparent 34%),
    linear-gradient(135deg, rgba(36, 42, 54, 0.98), rgba(13, 15, 21, 0.98));
}

.nte-map-launch h2 {
  margin: 8px 0 8px;
  color: #fff;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 0.98;
  font-weight: 900;
}

.nte-map-launch p {
  max-width: 760px;
  margin: 0;
  color: #cfd8d6;
  font-size: 15px;
  line-height: 1.55;
  font-weight: 700;
}

.nte-map-stat-grid,
.nte-map-region-grid,
.nte-map-source-grid {
  display: grid;
  gap: 14px;
}

.nte-map-stat-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.nte-map-region-grid {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.nte-map-source-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.nte-map-stat,
.nte-map-region-card,
.nte-map-source-card {
  display: grid;
  gap: 8px;
  min-height: 154px;
  padding: 18px;
  border: 1px solid rgba(var(--game-accent-rgb), 0.13);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(36, 42, 54, 0.86), rgba(18, 22, 32, 0.96));
  color: #fff;
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.nte-map-region-card {
  border-color: color-mix(in srgb, var(--region-color) 32%, rgba(var(--game-accent-rgb), 0.13));
  background:
    radial-gradient(circle at 100% 0, color-mix(in srgb, var(--region-color) 18%, transparent), transparent 44%),
    linear-gradient(180deg, rgba(36, 42, 54, 0.88), rgba(18, 22, 32, 0.98));
}

.nte-map-stat:hover,
.nte-map-region-card:hover,
.nte-map-source-card:hover {
  transform: translateY(-2px);
  border-color: rgba(var(--game-accent-rgb), 0.44);
  box-shadow: 0 16px 36px rgba(3, 2, 10, 0.28);
}

.nte-map-stat span,
.nte-map-region-card span,
.nte-map-source-card span {
  color: var(--game-accent);
  font-size: 12px;
  font-weight: 900;
}

.nte-map-stat strong,
.nte-map-region-card strong,
.nte-map-source-card strong {
  color: #fff;
  font-size: 28px;
  line-height: 1;
  font-weight: 900;
}

.nte-map-region-card strong,
.nte-map-source-card strong {
  font-size: 20px;
  line-height: 1.12;
}

.nte-map-stat p,
.nte-map-region-card p,
.nte-map-source-card p {
  margin: 0;
  color: #aeb9b6;
  font-size: 13px;
  line-height: 1.42;
  font-weight: 700;
}

.nte-map-app {
  min-height: calc(100vh - 86px);
  margin: -18px;
  overflow: hidden;
  border: 1px solid rgba(var(--game-accent-rgb), 0.18);
  border-radius: 8px;
  background: #05070c;
}

.nte-map-topbar {
  position: relative;
  z-index: 8;
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 74px;
  padding: 11px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at 100% 0, rgba(var(--game-accent-rgb), 0.16), transparent 36%),
    rgba(8, 10, 16, 0.96);
}

.nte-map-topbar > a,
.nte-map-top-actions button,
.nte-map-controls button {
  display: grid;
  place-items: center;
  min-height: 40px;
  border: 1px solid rgba(var(--game-accent-rgb), 0.16);
  border-radius: 8px;
  background: #10151d;
  color: white;
  cursor: pointer;
  font-weight: 900;
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.nte-map-topbar > a:hover,
.nte-map-top-actions button:hover,
.nte-map-controls button:hover {
  transform: translateY(-1px);
  border-color: rgba(var(--game-accent-rgb), 0.46);
  background: rgba(var(--game-accent-rgb), 0.16);
  color: #fff;
}

.nte-map-topbar h1 {
  margin: 0;
  color: white;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1;
  font-weight: 900;
}

.nte-map-topbar em {
  display: block;
  margin-top: 4px;
  color: #8df1dc;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
  letter-spacing: 0;
}

.nte-map-top-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.nte-map-top-actions button {
  padding: 0 12px;
}

.nte-map-layout {
  display: grid;
  grid-template-columns: 318px minmax(0, 1fr);
  min-height: calc(100vh - 160px);
  transition: grid-template-columns 180ms ease;
}

.nte-map-filter-panel {
  position: relative;
  z-index: 5;
  overflow: auto;
  max-height: calc(100vh - 160px);
  padding: 14px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(var(--game-accent-rgb), 0.08), transparent 140px),
    rgba(8, 11, 16, 0.96);
  transition: opacity 160ms ease, padding 160ms ease, border-color 160ms ease;
}

.nte-map-filter-head {
  display: grid;
  gap: 4px;
  margin-bottom: 8px;
}

.nte-map-filter-head strong {
  color: white;
  font-size: 21px;
  line-height: 1.05;
  font-weight: 900;
}

.nte-map-filter-head span,
.nte-map-filter-panel p {
  margin: 0;
  color: #8d98a1;
  font-size: 12px;
  line-height: 1.42;
  font-weight: 800;
}

.nte-map-filter-panel details {
  margin-top: 12px;
  border: 1px solid rgba(var(--game-accent-rgb), 0.12);
  border-radius: 8px;
  background: rgba(17, 21, 29, 0.74);
}

.nte-map-filter-panel summary {
  display: flex;
  justify-content: space-between;
  padding: 11px 12px;
  color: white;
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
}

.nte-map-filter-panel summary span {
  color: var(--game-accent);
}

.nte-map-filter-panel details div {
  display: grid;
  gap: 7px;
  padding: 0 10px 10px;
}

.nte-map-filter-panel button {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  min-height: 38px;
  padding: 0 8px 0 6px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: rgba(8, 11, 16, 0.72);
  color: #dfe8e4;
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
  text-align: left;
}

.nte-map-filter-panel button i {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 0;
  background: transparent;
  color: var(--pin-color);
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
  box-shadow: none;
}

.nte-map-filter-panel button i img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  filter:
    drop-shadow(0 2px 2px rgba(0, 0, 0, 0.86))
    drop-shadow(0 0 3px rgba(0, 0, 0, 0.7));
}

.nte-map-filter-panel button i svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter:
    drop-shadow(0 2px 2px rgba(0, 0, 0, 0.86))
    drop-shadow(0 0 3px rgba(0, 0, 0, 0.7));
}

.nte-map-filter-panel button b {
  color: #8d98a1;
}

.nte-map-filter-panel button.active,
.nte-map-filter-panel button:hover {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
}

.nte-map-filter-panel button:not(.active) {
  opacity: 0.48;
}

.nte-map-canvas-wrap {
  position: relative;
  overflow: hidden;
  min-height: calc(100vh - 160px);
  background:
    radial-gradient(circle at 50% 40%, rgba(var(--game-accent-rgb), 0.1), transparent 38%),
    #05070c;
  cursor: grab;
  touch-action: none;
  user-select: none;
}

.nte-map-canvas-wrap.is-dragging {
  cursor: grabbing;
}

.nte-map-canvas-wrap.is-dragging .nte-map-layer {
  transition: none;
}

.nte-map-layer {
  --map-scale: 1;
  --map-x: 0px;
  --map-y: 0px;
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(1520px, 98%);
  aspect-ratio: 16 / 10;
  transform: translate3d(calc(-50% + var(--map-x)), calc(-50% + var(--map-y)), 0) scale(var(--map-scale));
  transform-origin: center;
  transition: transform 120ms ease;
}

.nte-map-canvas,
.nte-map-zone-layer,
.nte-map-labels,
.nte-map-pin-layer {
  position: absolute;
  inset: 0;
}

.nte-map-canvas {
  z-index: 1;
  overflow: hidden;
  border: 1px solid rgba(var(--game-accent-rgb), 0.16);
  border-radius: 12px;
  background:
    radial-gradient(circle at 52% 48%, rgba(79, 224, 196, 0.08), transparent 38%),
    #07101a;
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.08),
    0 28px 70px rgba(0, 0, 0, 0.46);
}

.nte-map-city-svg {
  display: block;
  width: 100%;
  height: 100%;
  filter: saturate(1.08) contrast(1.04) brightness(0.92);
}

.nte-map-canvas::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 50%, transparent 34%, rgba(0, 0, 0, 0.2) 78%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(0, 0, 0, 0.26));
  pointer-events: none;
}

.nte-map-zone-layer {
  z-index: 2;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.nte-map-zone {
  fill: color-mix(in srgb, var(--zone-fill) 22%, transparent);
  stroke: var(--zone-color);
  stroke-width: 0.22;
  stroke-dasharray: 0.9 0.45;
  vector-effect: non-scaling-stroke;
  cursor: pointer;
  transition: fill 140ms ease, stroke-width 140ms ease, opacity 140ms ease;
}

.nte-map-zone:hover,
.nte-map-zone:focus {
  fill: color-mix(in srgb, var(--zone-fill) 44%, transparent);
  stroke-width: 0.34;
  outline: none;
}

.nte-map-labels {
  z-index: 3;
  pointer-events: none;
}

.nte-map-label {
  position: absolute;
  transform: translate(-50%, -50%);
  padding: 3px 7px;
  border: 1px solid color-mix(in srgb, var(--pin-color) 32%, rgba(255, 255, 255, 0.1));
  border-radius: 5px;
  background: color-mix(in srgb, var(--pin-color) 13%, rgba(5, 7, 12, 0.66));
  color: rgba(255, 255, 255, 0.84);
  cursor: pointer;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.95);
  white-space: nowrap;
  pointer-events: auto;
}

.nte-map-label-region {
  padding: 4px 8px;
  background: color-mix(in srgb, var(--pin-color) 19%, rgba(5, 7, 12, 0.72));
  color: white;
  font-size: 12px;
}

.nte-map-label:hover,
.nte-map-label:focus {
  z-index: 9;
  border-color: color-mix(in srgb, var(--pin-color) 68%, rgba(255, 255, 255, 0.18));
  background: color-mix(in srgb, var(--pin-color) 26%, rgba(5, 7, 12, 0.8));
  outline: none;
}

.nte-map-pin-layer {
  z-index: 4;
}

.nte-map-pin {
  position: absolute;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  transform: translate(-50%, -50%);
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 10px 10px 10px 3px;
  background: var(--pin-color);
  color: #11131a;
  cursor: pointer;
  font-size: 9px;
  font-weight: 900;
  box-shadow:
    0 8px 18px rgba(0, 0, 0, 0.44),
    0 0 0 4px color-mix(in srgb, var(--pin-color) 18%, transparent);
  transition: transform 140ms ease, filter 140ms ease, box-shadow 140ms ease;
}

.nte-map-pin span {
  pointer-events: none;
}

.nte-map-pin img {
  width: 23px;
  height: 23px;
  object-fit: contain;
  pointer-events: none;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.42));
}

.nte-map-pin:hover,
.nte-map-pin:focus {
  z-index: 8;
  transform: translate(-50%, -50%) scale(1.22);
  filter: brightness(1.1);
  outline: none;
  box-shadow:
    0 12px 24px rgba(0, 0, 0, 0.5),
    0 0 0 6px color-mix(in srgb, var(--pin-color) 24%, transparent);
}

.nte-map-pin[hidden],
.nte-map-pin.is-hidden,
.nte-map-label[hidden],
.nte-map-label.is-hidden,
.nte-map-zone[hidden],
.nte-map-zone.is-hidden {
  display: none;
}

.nte-map-controls {
  position: absolute;
  right: 18px;
  top: 18px;
  z-index: 6;
  display: grid;
  gap: 8px;
}

.nte-map-controls button {
  width: 44px;
  min-height: 44px;
  background: rgba(246, 247, 242, 0.94);
  color: #11131a;
  font-size: 18px;
}

.nte-map-controls span {
  display: grid;
  place-items: center;
  min-height: 28px;
  border-radius: 999px;
  background: rgba(9, 12, 18, 0.82);
  color: white;
  font-size: 11px;
  font-weight: 900;
}

@media (min-width: 981px) {
  .nte-map-app.filters-collapsed .nte-map-layout {
    grid-template-columns: 0 minmax(0, 1fr);
  }

  .nte-map-app.filters-collapsed .nte-map-filter-panel {
    overflow: hidden;
    padding-right: 0;
    padding-left: 0;
    border-right-color: transparent;
    opacity: 0;
    pointer-events: none;
  }
}

.nte-map-leaflet-wrap {
  cursor: default;
  touch-action: auto;
}

.nte-leaflet-map {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 48%, rgba(79, 224, 196, 0.12), transparent 36%),
    #05070c;
}

.nte-leaflet-map::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 420;
  background:
    radial-gradient(circle at 50% 50%, transparent 36%, rgba(0, 0, 0, 0.18) 76%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(0, 0, 0, 0.18));
  pointer-events: none;
}

.nte-leaflet-map .leaflet-tile-pane {
  filter: saturate(1.1) contrast(1.06) brightness(0.94);
}

.nte-leaflet-map .leaflet-tile {
  image-rendering: auto;
}

.nte-leaflet-map .leaflet-control-container,
.nte-leaflet-map .leaflet-attribution-flag {
  display: none;
}

.nte-leaflet-marker-wrap,
.nte-leaflet-label-wrap {
  background: transparent;
  border: 0;
}

.nte-leaflet-pin,
.nte-leaflet-label {
  border: 0;
  font-family: inherit;
}

.nte-leaflet-pin {
  position: relative;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  background: transparent;
  color: #11131a;
  cursor: pointer;
  transform: translateZ(0);
  transition: transform 140ms ease, filter 140ms ease;
}

.nte-leaflet-pin::before {
  display: none;
}

.nte-leaflet-pin::after {
  display: none;
}

.nte-leaflet-pin img,
.nte-leaflet-pin span {
  position: relative;
  z-index: 2;
  width: 28px;
  height: 28px;
  object-fit: contain;
  pointer-events: none;
  filter:
    drop-shadow(0 2px 2px rgba(0, 0, 0, 0.95))
    drop-shadow(0 0 4px rgba(0, 0, 0, 0.75));
}

.nte-leaflet-pin span {
  display: grid;
  place-items: center;
  border-radius: 6px;
  color: #11131a;
  font-size: 9px;
  font-weight: 900;
}

.nte-leaflet-pin:hover,
.nte-leaflet-pin:focus {
  z-index: 20;
  transform: translateY(-2px) scale(1.2);
  filter: brightness(1.12);
  outline: none;
}

.nte-leaflet-label {
  position: relative;
  transform: translate(-50%, -50%);
  padding: 4px 8px;
  border: 1px solid color-mix(in srgb, var(--pin-color) 34%, rgba(255, 255, 255, 0.1));
  border-radius: 6px;
  background: color-mix(in srgb, var(--pin-color) 14%, rgba(5, 7, 12, 0.76));
  color: rgba(255, 255, 255, 0.88);
  cursor: pointer;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.95);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22);
}

.nte-leaflet-label.is-region {
  padding: 6px 10px;
  border-color: color-mix(in srgb, var(--pin-color) 50%, rgba(255, 255, 255, 0.18));
  background: color-mix(in srgb, var(--pin-color) 24%, rgba(5, 7, 12, 0.82));
  color: #fff;
  font-size: 12px;
  text-transform: uppercase;
}

.nte-leaflet-label:hover,
.nte-leaflet-label:focus {
  border-color: color-mix(in srgb, var(--pin-color) 70%, rgba(255, 255, 255, 0.28));
  background: color-mix(in srgb, var(--pin-color) 30%, rgba(5, 7, 12, 0.88));
  outline: none;
}

.nte-page .moba-hover-card {
  border-color: rgba(var(--game-accent-rgb), 0.34);
  background:
    linear-gradient(180deg, rgba(28, 32, 43, 0.98), rgba(13, 15, 21, 0.98));
}

.nte-page .moba-hover-card::before {
  border-color: rgba(var(--game-accent-rgb), 0.34);
  background: rgba(28, 32, 43, 0.98);
}

.nte-page .moba-hover-img {
  background: var(--nte-panel-2);
}

.nte-page .moba-hover-card em {
  color: #96a0a0;
}

@media (max-width: 980px) {
  .nte-map-launch,
  .nte-map-topbar,
  .nte-map-layout {
    grid-template-columns: 1fr;
  }

  .nte-map-launch .hub-primary {
    justify-self: stretch;
  }

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

  .nte-map-app {
    margin: -12px;
  }

  .nte-map-topbar {
    gap: 8px;
  }

  .nte-map-topbar > a {
    position: absolute;
    left: 12px;
    top: 12px;
    width: 52px;
  }

  .nte-map-topbar > div:nth-child(2) {
    padding-left: 62px;
  }

  .nte-map-top-actions {
    overflow-x: auto;
  }

  .nte-map-filter-panel {
    display: none;
    max-height: 260px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .nte-map-app.filters-open .nte-map-filter-panel {
    display: block;
  }

  .nte-map-canvas-wrap {
    min-height: 660px;
  }
}

@media (max-width: 560px) {
  .nte-map-launch,
  .nte-map-stat,
  .nte-map-region-card,
  .nte-map-source-card {
    padding: 14px;
  }

  .nte-map-stat-grid,
  .nte-map-source-grid {
    grid-template-columns: 1fr;
  }

  .nte-map-canvas-wrap {
    min-height: 620px;
  }

  .nte-map-label {
    font-size: 9px;
  }

  .nte-map-label-region {
    font-size: 10px;
  }

  .nte-map-pin {
    width: 27px;
    height: 27px;
    border-radius: 9px 9px 9px 3px;
    font-size: 8px;
  }
}

@media (max-width: 1100px) {
  .nte-topbar {
    grid-template-columns: auto 1fr;
  }

  .nte-top-actions {
    display: none;
  }
}

.nte-logo,
.marathon-logo {
  width: 164px;
  min-height: 48px;
}

.nte-gamebar,
.marathon-gamebar {
  height: 48px;
  gap: 6px;
  padding-right: 8px;
}

.nte-gamebar a,
.marathon-gamebar a {
  position: relative;
  height: 36px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #c8c2dc;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease, transform 160ms ease;
}

.nte-gamebar a:hover,
.nte-gamebar a.active,
.marathon-gamebar a:hover,
.marathon-gamebar a.active {
  background: rgba(42, 35, 80, 0.74);
  border-color: rgba(var(--game-accent-rgb), 0.28);
  color: var(--game-accent);
  transform: translateY(-1px);
}

.nte-gamebar span,
.marathon-gamebar span {
  background: var(--game-accent-2);
  color: #11101a;
}

.nte-layout,
.marathon-shell {
  grid-template-columns: 82px minmax(0, 1fr);
}

.nte-sidebar,
.marathon-sidebar {
  top: 48px;
  min-height: calc(100vh - 48px);
  width: 82px;
  gap: 9px;
  padding: 12px 9px 18px;
  background:
    linear-gradient(180deg, rgba(var(--game-accent-rgb), 0.09), transparent 150px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.026), transparent 48%),
    var(--game-rail-bg);
  border-right: 1px solid rgba(255, 255, 255, 0.075);
  box-shadow:
    inset -1px 0 rgba(255, 255, 255, 0.026),
    16px 0 42px rgba(3, 2, 10, 0.2);
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: none;
}

.nte-sidebar::-webkit-scrollbar,
.marathon-sidebar::-webkit-scrollbar {
  display: none;
}

.nte-sidebar a,
.marathon-sidebar a {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 64px;
  padding: 8px 5px;
  border: 1px solid transparent;
  border-radius: 14px;
  background: transparent;
  color: var(--game-rail-text);
  font-size: 10px;
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: 0;
  text-align: center;
  text-transform: none;
  box-shadow: none;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease,
    color 160ms ease,
    box-shadow 160ms ease,
    filter 160ms ease;
}

.nte-sidebar a::after,
.marathon-sidebar a::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 50%;
  width: 3px;
  height: 24px;
  border-radius: 99px;
  background: linear-gradient(180deg, var(--game-accent), var(--game-accent-2));
  box-shadow: 0 0 16px rgba(var(--game-accent-rgb), 0.54);
  opacity: 0;
  transform: translateY(-50%) scaleY(0.6);
  transition: opacity 160ms ease, transform 160ms ease;
}

.nte-sidebar a::before,
.arc-sidebar a::before {
  content: "";
  width: 25px;
  height: 25px;
  background: var(--nav-icon, url("https://cdn.mobalytics.gg/assets/common/icons/side-menu-icon/dashboard.svg")) center / contain no-repeat;
  filter: brightness(0) saturate(100%) invert(78%) sepia(10%) saturate(561%) hue-rotate(202deg) brightness(94%) contrast(89%);
  opacity: 0.94;
  transition: filter 160ms ease, opacity 160ms ease, transform 160ms ease;
}

.marathon-sidebar a img {
  width: 25px;
  height: 25px;
  object-fit: contain;
  filter: brightness(0) saturate(100%) invert(78%) sepia(10%) saturate(561%) hue-rotate(202deg) brightness(94%) contrast(89%);
  opacity: 0.94;
  transition: filter 160ms ease, opacity 160ms ease, transform 160ms ease;
}

.nte-sidebar a:hover,
.nte-sidebar a.active,
.marathon-sidebar a:hover,
.marathon-sidebar a.active {
  background:
    radial-gradient(circle at 50% 22%, rgba(var(--game-accent-rgb), 0.2), transparent 48%),
    var(--game-rail-surface-hover);
  border-color: rgba(var(--game-accent-rgb), 0.3);
  color: #fff;
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.08),
    0 10px 26px rgba(3, 2, 10, 0.26),
    0 0 0 1px rgba(var(--game-accent-rgb), 0.07);
  transform: translateY(-2px);
}

.nte-sidebar a.active::after,
.nte-sidebar a:hover::after,
.marathon-sidebar a.active::after,
.marathon-sidebar a:hover::after {
  opacity: 1;
  transform: translateY(-50%) scaleY(1);
}

.nte-sidebar a:hover::before,
.nte-sidebar a.active::before,
.arc-sidebar a:hover::before,
.arc-sidebar a.active::before,
.marathon-sidebar a:hover img,
.marathon-sidebar a.active img {
  filter: brightness(0) saturate(100%) invert(91%) sepia(77%) saturate(775%) hue-rotate(341deg) brightness(104%) contrast(101%);
  opacity: 1;
  transform: translateY(-1px);
}

.marathon-sidebar a span {
  width: auto;
  height: auto;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font-size: inherit;
}

.nte-main,
.marathon-main {
  padding-top: 24px;
}

.nte-sidebar a[href*="profile"],
.nte-drawer-panel a[href*="profile"] {
  --nav-icon: url("https://cdn.mobalytics.gg/assets/common/icons/side-menu-icon/profile.svg");
}

.nte-sidebar a[href*="characters"],
.nte-drawer-panel a[href*="characters"] {
  --nav-icon: url("https://cdn.mobalytics.gg/assets/common/icons/side-menu-icon/champions.svg");
}

.nte-sidebar a[href*="tier-list"],
.nte-drawer-panel a[href*="tier-list"] {
  --nav-icon: url("https://cdn.mobalytics.gg/assets/common/icons/side-menu-icon/meta-tier-list.svg");
}

.nte-sidebar a[href*="maps"],
.nte-drawer-panel a[href*="maps"] {
  --nav-icon: url("https://cdn.mobalytics.gg/assets/common/icons/side-menu-icon/map.svg");
}

.nte-sidebar a[href*="items"],
.nte-drawer-panel a[href*="items"],
.nte-sidebar a[href*="weapons"],
.nte-drawer-panel a[href*="weapons"] {
  --nav-icon: url("https://cdn.mobalytics.gg/assets/common/icons/side-menu-icon/items.svg");
}

.nte-sidebar a[href*="cartridges"],
.nte-drawer-panel a[href*="cartridges"] {
  --nav-icon: url("https://cdn.mobalytics.gg/assets/common/icons/side-menu-icon/items.svg");
}

.nte-sidebar a[href*="codes"],
.nte-drawer-panel a[href*="codes"] {
  --nav-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 7.5A2.5 2.5 0 0 1 6.5 5h11A2.5 2.5 0 0 1 20 7.5v2a2.5 2.5 0 0 0 0 5v2A2.5 2.5 0 0 1 17.5 19h-11A2.5 2.5 0 0 1 4 16.5v-2a2.5 2.5 0 0 0 0-5z'/%3E%3Cpath d='M9 8.5h6M9 12h6M9 15.5h3.5'/%3E%3C/svg%3E");
}

.nte-sidebar a[href*="teams"],
.nte-drawer-panel a[href*="teams"] {
  --nav-icon: url("https://cdn.mobalytics.gg/assets/common/icons/side-menu-icon/team-builder.svg");
}

.nte-sidebar a[href*="cars"],
.nte-sidebar a[href*="vehicles"],
.nte-drawer-panel a[href*="cars"],
.nte-drawer-panel a[href*="vehicles"] {
  --nav-icon: url("https://cdn.mobalytics.gg/assets/common/icons/side-menu-icon/map.svg");
}

.nte-sidebar a[href*="guides"],
.nte-drawer-panel a[href*="guides"] {
  --nav-icon: url("https://cdn.mobalytics.gg/assets/common/icons/side-menu-icon/guides.svg");
}

.arc-sidebar a[href*="#/maps"],
.arc-drawer a[href*="#/maps"] {
  --nav-icon: url("https://cdn.mobalytics.gg/assets/common/icons/side-menu-icon/map.svg");
}

.arc-sidebar a[href*="#/skills"],
.arc-drawer a[href*="#/skills"] {
  --nav-icon: url("https://cdn.mobalytics.gg/assets/common/icons/side-menu-icon/team-builder.svg");
}

.arc-sidebar a[href*="#/items"],
.arc-drawer a[href*="#/items"] {
  --nav-icon: url("https://cdn.mobalytics.gg/assets/common/icons/side-menu-icon/items.svg");
}

.arc-sidebar a[href*="#/market"],
.arc-drawer a[href*="#/market"] {
  --nav-icon: url("https://cdn.mobalytics.gg/assets/common/icons/side-menu-icon/comparison.svg");
}

.arc-sidebar a[href*="#/weapons"],
.arc-drawer a[href*="#/weapons"] {
  --nav-icon: url("https://cdn.mobalytics.gg/assets/common/icons/side-menu-icon/champions.svg");
}

.arc-sidebar a[href*="#/machines"],
.arc-drawer a[href*="#/machines"] {
  --nav-icon: url("https://cdn.mobalytics.gg/assets/common/icons/side-menu-icon/comparison.svg");
}

.arc-sidebar a[href*="#/guides"],
.arc-drawer a[href*="#/guides"] {
  --nav-icon: url("https://cdn.mobalytics.gg/assets/common/icons/side-menu-icon/guides.svg");
}

.nte-drawer,
.marathon-drawer {
  background:
    radial-gradient(circle at 0 0, rgba(var(--game-accent-rgb), 0.16), transparent 32%),
    rgba(5, 4, 13, 0.72);
  backdrop-filter: blur(10px);
}

.nte-drawer-panel,
.marathon-drawer-panel {
  width: min(360px, calc(100vw - 18px));
  padding: 20px 18px max(24px, var(--safe-bottom));
  background:
    linear-gradient(180deg, rgba(var(--game-accent-rgb), 0.1), transparent 170px),
    #181331;
  border-right: 1px solid rgba(var(--game-accent-rgb), 0.2);
  box-shadow: 28px 0 80px rgba(0, 0, 0, 0.42);
}

.arc-page .marathon-drawer-panel {
  background:
    linear-gradient(180deg, rgba(var(--game-accent-rgb), 0.11), transparent 170px),
    #11151e;
}

.nte-drawer-panel .lfgpal-logo,
.marathon-drawer-panel .lfgpal-logo {
  margin-bottom: 18px;
}

.nte-drawer-panel a,
.marathon-drawer-panel a,
.marathon-current-game,
.marathon-drawer-back {
  min-height: 54px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 12px;
  color: #d4cee8;
  font-weight: 900;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.nte-drawer-panel a {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nte-drawer-panel a::before,
.arc-drawer .marathon-drawer-panel a::before {
  content: "";
  width: 23px;
  height: 23px;
  flex: 0 0 auto;
  background: var(--nav-icon, url("https://cdn.mobalytics.gg/assets/common/icons/side-menu-icon/dashboard.svg")) center / contain no-repeat;
  filter: brightness(0) saturate(100%) invert(78%) sepia(10%) saturate(561%) hue-rotate(202deg) brightness(94%) contrast(89%);
}

.nte-drawer-panel a:hover,
.nte-drawer-panel a.active,
.marathon-drawer-panel a:hover,
.marathon-drawer-panel a.active,
.marathon-current-game:hover {
  background: rgba(42, 35, 80, 0.72);
  border-color: rgba(var(--game-accent-rgb), 0.28);
  color: #fff;
  transform: translateX(3px);
}

.marathon-current-game {
  width: 100%;
  margin: 0 0 8px;
  background:
    radial-gradient(circle at 18% 18%, rgba(var(--game-accent-rgb), 0.22), transparent 44%),
    rgba(42, 35, 80, 0.78);
}

.nte-close,
.marathon-close {
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.09);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.nte-close:hover,
.marathon-close:hover {
  background: rgba(var(--game-accent-rgb), 0.2);
}

@media (max-width: 1100px) {
  .nte-layout,
  .marathon-shell {
    grid-template-columns: 1fr;
  }

  .nte-sidebar,
  .marathon-sidebar {
    display: none;
  }

  .nte-menu,
  .marathon-menu {
    display: block;
  }

  .nte-logo,
  .marathon-logo {
    width: auto;
  }
}

@media (max-width: 760px) {
  .nte-topbar,
  .marathon-topbar {
    min-height: 58px;
  }

  .nte-gamebar,
  .marathon-gamebar {
    height: 38px;
  }

  .nte-gamebar a,
  .marathon-gamebar a {
    height: 34px;
    padding: 0 10px;
  }
}

/* Topbar alignment repair: keep game hubs on one predictable desktop row. */
.nte-topbar,
.marathon-topbar {
  grid-template-columns: auto minmax(0, 1fr) auto;
}

.marathon-top-actions {
  position: static;
  inset: auto;
  z-index: auto;
  justify-self: end;
  align-self: stretch;
  height: 48px;
  min-width: max-content;
  padding: 0 max(20px, var(--safe-right)) 0 12px;
  border: 0;
  background: transparent;
}

.arc-page .marathon-top-actions {
  background: transparent;
}

.marathon-main {
  padding-top: 24px;
}

.subnautica-page .site-header {
  grid-template-columns: auto minmax(0, 1fr) auto;
}

.subnautica-top-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  justify-self: end;
  align-self: stretch;
}

.site-nav-signin,
.marathon-signin-top,
.subnautica-signin-top {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 38px;
  min-width: 108px;
  padding: 0 18px;
  border: 1px solid rgba(var(--game-accent-rgb, 242, 191, 67), 0.34);
  border-radius: 7px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0)),
    rgba(var(--game-accent-rgb, 242, 191, 67), 0.12);
  color: #fff;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
  white-space: nowrap;
  cursor: pointer;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.045),
    0 10px 24px rgba(0, 0, 0, 0.18);
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.site-nav-signin::before,
.marathon-signin-top::before,
.subnautica-signin-top::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgb(var(--game-accent-rgb, 242, 191, 67));
  box-shadow: 0 0 14px rgba(var(--game-accent-rgb, 242, 191, 67), 0.72);
}

.site-nav-signin:hover,
.marathon-signin-top:hover,
.subnautica-signin-top:hover {
  border-color: rgba(var(--game-accent-rgb, 242, 191, 67), 0.62);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0)),
    rgba(var(--game-accent-rgb, 242, 191, 67), 0.18);
  color: rgb(var(--game-accent-rgb, 242, 191, 67));
  transform: translateY(-1px);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.06),
    0 14px 30px rgba(0, 0, 0, 0.24),
    0 0 24px rgba(var(--game-accent-rgb, 242, 191, 67), 0.14);
}

.site-nav-signin {
  display: none;
}

.marathon-drawer-bottom {
  gap: 0;
}

.marathon-drawer-bottom .marathon-signin {
  width: 100%;
  min-height: 44px;
  margin-left: 0;
  border: 1px solid rgba(var(--game-accent-rgb, 242, 191, 67), 0.38);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0)),
    rgba(var(--game-accent-rgb, 242, 191, 67), 0.16);
  color: #fff;
}

@media (max-width: 1100px) {
  .nte-topbar,
  .marathon-topbar {
    grid-template-columns: auto auto minmax(0, 1fr);
  }

  .marathon-top-actions {
    display: none;
  }
}

@media (max-width: 980px) {
  .subnautica-page .site-header {
    grid-template-columns: auto auto;
  }

  .subnautica-top-actions {
    display: none;
  }

  .site-nav-signin {
    display: inline-flex;
    width: 100%;
    margin-top: 8px;
  }
}

/* Final game-theme alignment overrides */
.marathon-page {
  --marathon-bg: #080c12;
  --marathon-rail: #0d1118;
  --marathon-panel: #121821;
  --marathon-panel-2: #171f2a;
  --marathon-panel-3: #1f2a36;
  --marathon-accent: #f6b13f;
  --marathon-lime: #4fe0c4;
  --marathon-teal: #4fe0c4;
  --marathon-muted: #aeb9bf;
  --game-accent: #f6b13f;
  --game-accent-2: #4fe0c4;
  --game-accent-rgb: 246, 177, 63;
  --game-topbar-bg: rgba(13, 15, 21, 0.94);
  --game-rail-bg: #0e1118;
  --game-rail-surface: rgba(31, 36, 48, 0.78);
  --game-rail-surface-hover: rgba(43, 50, 64, 0.92);
  --game-rail-text: #c4cbcb;
  background:
    radial-gradient(circle at 22% 12%, rgba(246, 177, 63, 0.12), transparent 32%),
    radial-gradient(circle at 84% 18%, rgba(79, 224, 196, 0.08), transparent 34%),
    linear-gradient(180deg, #0c1118, #080c12 46%, #05080d);
  color: #f4f6f7;
}

.marathon-page::before {
  background:
    linear-gradient(135deg, rgba(246, 177, 63, 0.055), transparent 32%),
    linear-gradient(315deg, rgba(79, 224, 196, 0.055), transparent 36%);
}

.marathon-page .marathon-topbar,
.marathon-page .marathon-sidebar,
.marathon-page .marathon-drawer-panel,
.marathon-page .marathon-top-games-menu,
.marathon-page .marathon-support-menu {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent),
    var(--game-topbar-bg);
  border-color: rgba(255, 255, 255, 0.075);
}

.marathon-page .marathon-sidebar {
  background:
    linear-gradient(180deg, rgba(246, 177, 63, 0.09), transparent 150px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.026), transparent 48%),
    var(--game-rail-bg);
}

.marathon-page .marathon-gamebar a:hover,
.marathon-page .marathon-gamebar a.active,
.marathon-page .marathon-sidebar a:hover,
.marathon-page .marathon-sidebar a.active,
.marathon-page .marathon-drawer-panel a:hover,
.marathon-page .marathon-drawer-panel a.active,
.marathon-page .marathon-current-game:hover {
  background:
    radial-gradient(circle at 50% 22%, rgba(246, 177, 63, 0.18), transparent 48%),
    var(--game-rail-surface-hover);
  border-color: rgba(246, 177, 63, 0.3);
  color: #fff;
}

.marathon-page .marathon-sidebar a:hover img,
.marathon-page .marathon-sidebar a.active img,
.marathon-page .marathon-drawer-panel a.active img,
.marathon-page .marathon-current-game img,
.marathon-page .marathon-gamebar a:hover img,
.marathon-page .marathon-gamebar a.active img {
  filter: brightness(0) saturate(100%) invert(78%) sepia(71%) saturate(763%) hue-rotate(346deg) brightness(101%) contrast(93%);
}

.marathon-page .marathon-hero,
.marathon-page .marathon-section,
.marathon-page .runner-shell-card,
.marathon-page .marathon-feed-card,
.marathon-page .marathon-tool-card,
.marathon-page .marathon-guide-callout,
.marathon-page .marathon-map-launch,
.marathon-page .marathon-map-side,
.marathon-page .marathon-map-board,
.marathon-page .marathon-map-poi,
.marathon-page .marathon-data-card,
.marathon-page .marathon-ability-card,
.marathon-page .marathon-slot-card,
.marathon-page .marathon-info-panel,
.marathon-page .marathon-article,
.marathon-page .marathon-planner-options,
.marathon-page .marathon-planner-preview,
.marathon-page .marathon-map-card {
  border-color: rgba(255, 255, 255, 0.08);
  background-color: var(--marathon-panel);
}

.marathon-page .marathon-section,
.marathon-page .runner-shell-card,
.marathon-page .marathon-guide-callout,
.marathon-page .marathon-map-launch,
.marathon-page .marathon-map-side,
.marathon-page .marathon-map-board,
.marathon-page .marathon-map-poi,
.marathon-page .marathon-data-card,
.marathon-page .marathon-ability-card,
.marathon-page .marathon-slot-card,
.marathon-page .marathon-info-panel,
.marathon-page .marathon-article,
.marathon-page .marathon-planner-options,
.marathon-page .marathon-planner-preview {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent),
    var(--marathon-panel);
}

.marathon-page .marathon-feed-card {
  background:
    linear-gradient(90deg, rgba(18, 24, 33, 0.97) 0%, rgba(18, 24, 33, 0.82) 45%, rgba(18, 24, 33, 0.08) 100%),
    var(--card-bg) center / cover;
}

.marathon-page .marathon-tool-card {
  background:
    linear-gradient(90deg, rgba(18, 24, 33, 0.94), rgba(18, 24, 33, 0.56)),
    var(--tool-bg) center / cover;
}

.marathon-page .marathon-map-tabs a,
.marathon-page .marathon-map-filters button,
.marathon-page .marathon-map-controls button,
.marathon-page .marathon-map-layer-buttons button,
.marathon-page .marathon-current-game,
.marathon-page .marathon-drawer-bottom button {
  border-color: rgba(255, 255, 255, 0.08);
  background: var(--marathon-panel-2);
  color: #d7dedf;
}

.marathon-page .marathon-map-tabs a.active,
.marathon-page .marathon-map-tabs a:hover,
.marathon-page .marathon-map-filters button.active,
.marathon-page .marathon-map-filters button:hover,
.marathon-page .marathon-map-controls button:hover,
.marathon-page .marathon-map-layer-buttons button.active,
.marathon-page .marathon-map-layer-buttons button:hover {
  background: var(--marathon-accent);
  color: #10141b;
}

.marathon-page .marathon-map-viewport {
  background: radial-gradient(circle at 50% 45%, rgba(246, 177, 63, 0.12), transparent 34%), #05080d;
}

.marathon-page .marathon-map-layer {
  background: linear-gradient(135deg, #111820, #05080d);
}

.marathon-page .marathon-section-head,
.marathon-page .marathon-map-status {
  border-color: rgba(255, 255, 255, 0.075);
}

.marathon-page .marathon-section-head p,
.marathon-page .marathon-feed-card span,
.marathon-page .marathon-tag-row small,
.marathon-page .runner-shell-card span,
.marathon-page .marathon-data-card p,
.marathon-page .marathon-info-panel p,
.marathon-page .marathon-article p {
  color: var(--marathon-muted);
}

.marathon-page .marathon-feed-card:hover,
.marathon-page .marathon-tool-card:hover,
.marathon-page .runner-shell-card:hover,
.marathon-page .marathon-data-card:hover,
.marathon-page .marathon-ability-card:hover,
.marathon-page .marathon-slot-card:hover,
.marathon-page .marathon-map-card:hover {
  border-color: rgba(246, 177, 63, 0.48);
  box-shadow:
    0 24px 58px rgba(0, 0, 0, 0.34),
    0 0 24px rgba(246, 177, 63, 0.08);
}

.marathon-page .marathon-badge {
  background: rgba(246, 177, 63, 0.14);
  color: var(--marathon-accent);
}

.marathon-page .marathon-badge img {
  filter: brightness(0) saturate(100%) invert(78%) sepia(71%) saturate(763%) hue-rotate(346deg) brightness(101%) contrast(93%);
}

.marathon-page .marathon-view-all,
.marathon-page .marathon-tool-card em,
.marathon-page .marathon-drawer-bottom .marathon-signin {
  background: var(--marathon-accent);
  color: #10141b;
}

.subnautica-page .subnautica-topbar,
.subnautica-page .subnautica-sidebar,
.subnautica-page .subnautica-drawer .marathon-drawer-panel {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent),
    var(--game-topbar-bg);
  border-color: rgba(107, 233, 255, 0.13);
}

.subnautica-page .subnautica-topbar {
  box-shadow:
    0 18px 46px rgba(0, 6, 16, 0.28),
    inset 0 -1px rgba(115, 255, 216, 0.04);
}

.subnautica-page .subnautica-logo .lfgpal-logo {
  border-color: rgba(65, 228, 255, 0.42);
  background: linear-gradient(135deg, rgba(65, 228, 255, 0.16), rgba(115, 255, 216, 0.12));
}

.subnautica-page .subnautica-gamebar a {
  color: #b8d7df;
}

.subnautica-page .subnautica-gamebar a:hover,
.subnautica-page .subnautica-gamebar a.active,
.subnautica-page .subnautica-sidebar a:hover,
.subnautica-page .subnautica-sidebar a.active,
.subnautica-page .subnautica-drawer .marathon-drawer-panel a:hover,
.subnautica-page .subnautica-drawer .marathon-drawer-panel a.active {
  background:
    radial-gradient(circle at 50% 22%, rgba(65, 228, 255, 0.2), transparent 48%),
    var(--game-rail-surface-hover);
  border-color: rgba(65, 228, 255, 0.32);
  color: #fff;
}

.subnautica-page .subnautica-gamebar a.active {
  color: var(--subnautica-green);
}

.subnautica-page .subnautica-gamebar span {
  background: linear-gradient(135deg, var(--subnautica-green), var(--game-accent));
  color: #04111d;
}

.subnautica-page .subnautica-sidebar {
  background:
    radial-gradient(circle at 50% 0, rgba(65, 228, 255, 0.14), transparent 42%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.026), transparent 48%),
    var(--game-rail-bg);
}

.subnautica-page .subnautica-sidebar a img,
.subnautica-page .subnautica-drawer .marathon-drawer-panel a img {
  width: 25px;
  height: 25px;
  object-fit: contain;
  filter: brightness(0) saturate(100%) invert(78%) sepia(16%) saturate(604%) hue-rotate(147deg) brightness(97%) contrast(91%);
  opacity: 0.95;
  transition: filter 160ms ease, transform 160ms ease, opacity 160ms ease;
}

.subnautica-page .subnautica-sidebar a:hover img,
.subnautica-page .subnautica-sidebar a.active img,
.subnautica-page .subnautica-drawer .marathon-drawer-panel a:hover img,
.subnautica-page .subnautica-drawer .marathon-drawer-panel a.active img {
  filter: brightness(0) saturate(100%) invert(91%) sepia(63%) saturate(698%) hue-rotate(99deg) brightness(102%) contrast(101%);
  transform: translateY(-1px);
  opacity: 1;
}

.subnautica-page .subnautica-menu {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), transparent),
    rgba(65, 228, 255, 0.16);
  box-shadow: inset 0 0 0 1px rgba(65, 228, 255, 0.18);
}

.subnautica-page .subnautica-shell {
  grid-template-columns: 82px minmax(0, 1fr);
  min-height: calc(100vh - 48px);
}

.subnautica-page .subnautica-main {
  width: min(100%, 1120px);
  margin: 0 auto;
  padding: 24px 24px max(84px, calc(60px + var(--safe-bottom)));
}

.subnautica-page .subnautica-main .section-inner {
  width: 100%;
}

.subnautica-page .subnautica-hero {
  min-height: min(740px, calc(100dvh - 72px));
}

.subnautica-page .subnautica-drawer .marathon-drawer-panel {
  background:
    linear-gradient(180deg, rgba(65, 228, 255, 0.13), transparent 180px),
    #06111d;
}

.subnautica-page .subnautica-drawer .marathon-drawer-panel a {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #d5f5fa;
}

.subnautica-page .marathon-drawer-bottom .marathon-signin {
  background: linear-gradient(135deg, var(--subnautica-green), var(--game-accent));
  color: #04111d;
}

@media (max-width: 1100px) {
  .subnautica-page .subnautica-shell {
    grid-template-columns: 1fr;
  }

  .subnautica-page .subnautica-main {
    width: 100%;
    padding: 18px 16px max(64px, calc(48px + var(--safe-bottom)));
  }
}

@media (max-width: 980px) {
  .subnautica-hero {
    padding-inline: clamp(18px, 5vw, 34px);
  }

  .subnautica-hero-full {
    min-height: auto;
    padding-top: 34px;
  }

  .subnautica-hero h1 {
    max-width: 100%;
    font-size: clamp(42px, 11vw, 72px);
  }

  .subnautica-hero-full::before {
    inset: 0;
  }

  .subnautica-quick-grid,
  .subnautica-route,
  .subnautica-card-grid,
  .subnautica-creature-grid,
  .subnautica-tool-grid,
  .subnautica-base-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .subnautica-base-panel > div:first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 620px) {
  .subnautica-main {
    gap: 16px;
  }

  .subnautica-hero h1 {
    font-size: clamp(38px, 13vw, 58px);
    line-height: 1;
  }

  .subnautica-quick-grid,
  .subnautica-route,
  .subnautica-card-grid,
  .subnautica-creature-grid,
  .subnautica-tool-grid,
  .subnautica-base-panel,
  .subnautica-base-grid {
    grid-template-columns: 1fr;
  }

  .subnautica-panel,
  .subnautica-database,
  .subnautica-crafting,
  .subnautica-mission-card {
    padding: 16px;
  }
}

@media (max-width: 1180px) {
  .home-page .site-header.home-header {
    grid-template-columns: auto auto 1fr auto;
    gap: 14px;
  }

  .home-brand {
    min-width: 190px;
  }

  .home-page .site-nav {
    gap: 18px;
  }

  .home-page .site-nav a {
    font-size: 14px;
  }

  .home-page .games-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 760px;
  }

  .home-value-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 760px;
    margin-inline: auto;
  }

  .home-value-strip article:nth-child(2n) {
    border-right: 0;
  }

  .home-value-strip article:nth-child(-n + 2) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .home-value-strip aside {
    grid-column: 1 / -1;
    margin-top: 14px;
  }
}

@media (max-width: 980px) {
  .home-page .site-header.home-header {
    grid-template-columns: auto auto 1fr;
    min-height: 78px;
    border-radius: 0 0 18px 18px;
  }

  .home-brand {
    min-width: 0;
    padding-right: 16px;
  }

  .home-wordmark {
    font-size: clamp(28px, 7vw, 40px);
  }

  .home-page .menu-button {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border: 1px solid rgba(165, 185, 224, 0.16);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.035);
  }

  .home-page .menu-button span {
    width: 18px;
    height: 2px;
    margin: 0;
    background: rgba(255, 255, 255, 0.92);
  }

  .home-page .site-nav {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    display: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 12px;
    border: 1px solid rgba(165, 185, 224, 0.16);
    border-radius: 18px;
    background: rgba(7, 10, 18, 0.96);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.42);
  }

  .home-page.nav-open .site-nav {
    display: grid;
  }

  .home-page .site-nav a {
    min-height: 52px;
    padding: 0 12px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    background: rgba(255, 255, 255, 0.035);
  }

  .home-actions {
    justify-self: end;
  }

  .home-find {
    min-width: 142px;
    padding-inline: 16px;
  }

  .home-profile {
    display: none;
  }

  .home-main {
    align-items: start;
    padding-top: clamp(32px, 5vw, 48px);
  }

  .home-section-head h1 {
    font-size: clamp(42px, 9vw, 64px);
  }
}

@media (min-width: 681px) and (max-width: 980px) {
  .home-page .site-header.home-header {
    grid-template-columns: auto 1fr auto;
    gap: 14px;
    padding-inline: 14px;
  }

  .home-page .menu-button {
    display: none;
  }

  .home-brand {
    min-width: 150px;
    padding-right: 14px;
    border-right: 1px solid rgba(255, 255, 255, 0.14);
  }

  .home-wordmark {
    font-size: clamp(28px, 4vw, 36px);
  }

  .home-page .site-nav {
    position: static;
    display: flex;
    flex-direction: row;
    align-items: center;
    grid-template-columns: none;
    justify-self: center;
    gap: 8px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .home-page .site-nav a {
    min-height: 44px;
    padding: 0 4px;
    border: 0;
    background: transparent;
    font-size: 12px;
  }

  .home-find {
    min-width: 132px;
    min-height: 44px;
    padding-inline: 12px;
    border-radius: 13px;
    font-size: 13px;
  }
}

@media (max-width: 680px) {
  .home-portal-inner {
    width: min(100% - 28px, 1460px);
  }

  .home-page .site-header.home-header {
    width: min(100% - 18px, 1600px);
    padding-inline: 10px;
  }

  .home-brand {
    border-right: 0;
    padding-right: 0;
  }

  .home-actions {
    display: none;
  }

  .home-page .site-header.home-header {
    grid-template-columns: auto 1fr;
  }

  .home-page .menu-button {
    justify-self: end;
  }

  .home-page .site-nav {
    grid-template-columns: 1fr;
  }

  .home-page .games-grid {
    grid-template-columns: 1fr;
    max-width: 390px;
  }

  .home-page .game-card {
    min-height: 420px;
  }

  .home-value-strip {
    grid-template-columns: 1fr;
    max-width: 390px;
    padding: 14px;
  }

  .home-value-strip article,
  .home-value-strip article:nth-child(-n + 2),
  .home-value-strip article:nth-child(2n) {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .home-value-strip aside {
    grid-column: auto;
    margin-top: 14px;
  }
}

@media (max-width: 420px) {
  .home-wordmark {
    font-size: 27px;
  }

  .home-section-head h1 {
    font-size: 38px;
  }

  .home-section-head p {
    font-size: 15px;
  }

  .home-page .game-card {
    min-height: 390px;
  }
}

/* Unified game hub chrome: consistent LFGPAL brand, game switcher, and account actions. */
body:is(.arc-page, .marathon-page, .nte-page, .subnautica-page) :is(.marathon-topbar, .nte-topbar) {
  position: sticky;
  top: 0;
  z-index: 70;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(16px, 2vw, 30px);
  min-height: calc(64px + var(--safe-top));
  padding: var(--safe-top) max(22px, var(--safe-right)) 0 max(22px, var(--safe-left));
  border-bottom: 1px solid rgba(196, 210, 236, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), transparent 70%),
    linear-gradient(90deg, rgba(var(--game-accent-rgb, 246, 177, 63), 0.085), transparent 32%),
    rgba(7, 10, 16, 0.9);
  box-shadow:
    0 18px 54px rgba(0, 0, 0, 0.34),
    inset 0 -1px 0 rgba(255, 255, 255, 0.045);
  backdrop-filter: blur(18px);
}

body:is(.arc-page, .marathon-page, .nte-page, .subnautica-page) :is(.marathon-menu, .nte-menu) {
  display: none;
}

body:is(.arc-page, .marathon-page, .nte-page, .subnautica-page) :is(.marathon-logo, .nte-logo) {
  width: auto;
  min-width: 0;
  min-height: 64px;
  padding: 0;
  justify-content: flex-start;
  border-right: 0;
}

body:is(.arc-page, .marathon-page, .nte-page, .subnautica-page) .lfgpal-logo {
  min-width: 0;
  height: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  color: transparent;
  font-family: Roboto, Arial, sans-serif;
  font-size: 0;
  line-height: 1;
  letter-spacing: 0;
  text-shadow: 0 12px 34px rgba(108, 83, 255, 0.24);
}

body.arc-page .marathon-logo .lfgpal-logo,
body.marathon-page .marathon-logo .lfgpal-logo,
body.nte-page .nte-logo .lfgpal-logo,
body.subnautica-page .subnautica-logo .lfgpal-logo,
body:is(.arc-page, .marathon-page, .nte-page, .subnautica-page) :is(.marathon-drawer-panel, .nte-drawer-panel) .lfgpal-logo {
  border: 0;
  background: none;
  box-shadow: none;
}

body:is(.arc-page, .marathon-page, .nte-page, .subnautica-page) .lfgpal-logo::before,
body:is(.arc-page, .marathon-page, .nte-page, .subnautica-page) .lfgpal-logo::after {
  display: inline-block;
  font-size: clamp(32px, 3vw, 48px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
}

body:is(.arc-page, .marathon-page, .nte-page, .subnautica-page) .lfgpal-logo::before {
  content: "LFG";
  color: #fff;
}

body:is(.arc-page, .marathon-page, .nte-page, .subnautica-page) .lfgpal-logo::after {
  content: "PAL";
  color: transparent;
  background: linear-gradient(135deg, #a58bff 0%, #7052ff 48%, rgb(var(--game-accent-rgb, 246, 177, 63)) 140%);
  -webkit-background-clip: text;
  background-clip: text;
}

body:is(.arc-page, .marathon-page, .nte-page, .subnautica-page) :is(.marathon-gamebar, .nte-gamebar) {
  justify-self: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: min(100%, 720px);
  height: auto;
  min-height: 44px;
  padding: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

body:is(.arc-page, .marathon-page, .nte-page, .subnautica-page) :is(.marathon-gamebar, .nte-gamebar)::-webkit-scrollbar {
  display: none;
}

body:is(.arc-page, .marathon-page, .nte-page, .subnautica-page) :is(.marathon-gamebar, .nte-gamebar) a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: max-content;
  min-height: 38px;
  height: 38px;
  padding: 0 15px;
  border: 1px solid transparent;
  border-radius: 11px;
  background: transparent;
  color: rgba(232, 238, 248, 0.72);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  white-space: nowrap;
  box-shadow: none;
  transition:
    transform 160ms ease,
    color 160ms ease,
    background 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

body:is(.arc-page, .marathon-page, .nte-page, .subnautica-page) :is(.marathon-gamebar, .nte-gamebar) a:hover,
body:is(.arc-page, .marathon-page, .nte-page, .subnautica-page) :is(.marathon-gamebar, .nte-gamebar) a.active {
  transform: translateY(-1px);
  border-color: rgba(var(--game-accent-rgb, 246, 177, 63), 0.36);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent),
    rgba(var(--game-accent-rgb, 246, 177, 63), 0.14);
  color: #fff;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.04),
    0 12px 24px rgba(0, 0, 0, 0.18),
    0 0 26px rgba(var(--game-accent-rgb, 246, 177, 63), 0.12);
}

body:is(.arc-page, .marathon-page, .nte-page, .subnautica-page) :is(.marathon-gamebar, .nte-gamebar) :is(img, span) {
  display: none;
}

body:is(.arc-page, .marathon-page, .nte-page, .subnautica-page) :is(.marathon-top-actions, .nte-top-actions, .subnautica-top-actions, .arc-top-actions) {
  position: static;
  inset: auto;
  z-index: auto;
  justify-self: end;
  align-self: center;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 118px;
  height: auto;
  padding: 0;
  border: 0;
  background: transparent;
}

body:is(.arc-page, .marathon-page, .nte-page, .subnautica-page) :is(.marathon-signin-top, .nte-signin-top, .subnautica-signin-top) {
  min-width: 112px;
  min-height: 40px;
  padding: 0 18px;
  border-radius: 12px;
  border-color: rgba(var(--game-accent-rgb, 246, 177, 63), 0.38);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), transparent),
    rgba(var(--game-accent-rgb, 246, 177, 63), 0.13);
  color: #fff;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.05),
    0 12px 26px rgba(0, 0, 0, 0.2);
}

body:is(.arc-page, .marathon-page, .nte-page, .subnautica-page) :is(.marathon-signin-top, .nte-signin-top, .subnautica-signin-top):hover {
  border-color: rgba(var(--game-accent-rgb, 246, 177, 63), 0.64);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), transparent),
    rgba(var(--game-accent-rgb, 246, 177, 63), 0.2);
  color: #fff;
}

body:is(.arc-page, .marathon-page, .nte-page, .subnautica-page) :is(.marathon-main, .nte-main) {
  padding-top: 24px;
}

@media (max-width: 1100px) {
  body:is(.arc-page, .marathon-page, .nte-page, .subnautica-page) :is(.marathon-topbar, .nte-topbar) {
    grid-template-columns: auto auto minmax(0, 1fr) auto;
    gap: 12px;
    min-height: calc(64px + var(--safe-top));
    padding: var(--safe-top) max(16px, var(--safe-right)) 0 max(16px, var(--safe-left));
  }

  body:is(.arc-page, .marathon-page, .nte-page, .subnautica-page) :is(.marathon-menu, .nte-menu) {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    margin: 0;
    padding: 0;
    border: 1px solid rgba(165, 185, 224, 0.2);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.035);
    box-shadow:
      inset 0 0 0 1px rgba(255, 255, 255, 0.04),
      0 10px 24px rgba(0, 0, 0, 0.18);
    cursor: pointer;
  }

  body:is(.arc-page, .marathon-page, .nte-page, .subnautica-page) :is(.marathon-menu, .nte-menu) span {
    width: 18px;
    height: 2px;
    margin: 2px 0;
    border-radius: 999px;
    background: #fff;
  }

  body:is(.arc-page, .marathon-page, .nte-page, .subnautica-page) :is(.marathon-logo, .nte-logo) {
    width: auto;
    min-width: 0;
    min-height: 64px;
    padding: 0;
    border-right: 0;
    justify-content: flex-start;
  }

  body:is(.arc-page, .marathon-page, .nte-page, .subnautica-page) :is(.marathon-gamebar, .nte-gamebar) {
    display: flex;
    justify-self: center;
    width: 100%;
    gap: 5px;
  }

  body:is(.arc-page, .marathon-page, .nte-page, .subnautica-page) :is(.marathon-gamebar, .nte-gamebar) a {
    min-height: 36px;
    height: 36px;
    padding: 0 10px;
    border-radius: 9px;
    font-size: 12px;
  }

  body:is(.arc-page, .marathon-page, .nte-page, .subnautica-page) :is(.marathon-top-actions, .nte-top-actions, .subnautica-top-actions, .arc-top-actions) {
    display: flex;
    min-width: 104px;
  }

  body:is(.arc-page, .marathon-page, .nte-page, .subnautica-page) :is(.marathon-signin-top, .nte-signin-top, .subnautica-signin-top) {
    min-width: 104px;
    padding: 0 14px;
  }
}

@media (max-width: 760px) {
  body:is(.arc-page, .marathon-page, .nte-page, .subnautica-page) :is(.marathon-topbar, .nte-topbar) {
    grid-template-columns: auto minmax(0, 1fr);
  }

  body:is(.arc-page, .marathon-page, .nte-page, .subnautica-page) :is(.marathon-logo, .nte-logo) {
    width: auto;
    min-width: 0;
    padding: 0;
    border-right: 0;
  }

  body:is(.arc-page, .marathon-page, .nte-page, .subnautica-page) :is(.marathon-gamebar, .nte-gamebar, .marathon-top-actions, .nte-top-actions, .subnautica-top-actions, .arc-top-actions) {
    display: none;
  }
}

@media (max-width: 520px) {
  body:is(.arc-page, .marathon-page, .nte-page, .subnautica-page) :is(.marathon-topbar, .nte-topbar) {
    min-height: calc(58px + var(--safe-top));
    padding-inline: max(12px, var(--safe-left));
  }

  body:is(.arc-page, .marathon-page, .nte-page, .subnautica-page) .lfgpal-logo::before,
  body:is(.arc-page, .marathon-page, .nte-page, .subnautica-page) .lfgpal-logo::after {
    font-size: 27px;
  }
}

body:is(.arc-page, .marathon-page, .nte-page, .subnautica-page) .lfgpal-game-switcher {
  display: grid;
  gap: 8px;
  margin: 0 0 18px;
  padding: 8px;
  border: 1px solid rgba(var(--game-accent-rgb, 246, 177, 63), 0.2);
  border-radius: 15px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), transparent),
    rgba(255, 255, 255, 0.035);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.035);
}

body:is(.arc-page, .marathon-page, .nte-page, .subnautica-page) :is(.nte-drawer-panel, .marathon-drawer-panel) .lfgpal-game-switcher-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 50px;
  padding: 0 12px;
  border: 1px solid rgba(var(--game-accent-rgb, 246, 177, 63), 0.22);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.065), transparent),
    rgba(var(--game-accent-rgb, 246, 177, 63), 0.1);
  color: #fff;
  cursor: pointer;
  text-align: left;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

body:is(.arc-page, .marathon-page, .nte-page, .subnautica-page) .lfgpal-game-switcher-toggle:hover {
  border-color: rgba(var(--game-accent-rgb, 246, 177, 63), 0.4);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.075), transparent),
    rgba(var(--game-accent-rgb, 246, 177, 63), 0.15);
}

body:is(.arc-page, .marathon-page, .nte-page, .subnautica-page) .lfgpal-game-switcher-toggle span {
  display: grid;
  gap: 2px;
}

body:is(.arc-page, .marathon-page, .nte-page, .subnautica-page) .lfgpal-game-switcher-toggle small {
  color: rgba(232, 238, 248, 0.58);
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

body:is(.arc-page, .marathon-page, .nte-page, .subnautica-page) .lfgpal-game-switcher-toggle strong {
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
}

body:is(.arc-page, .marathon-page, .nte-page, .subnautica-page) .lfgpal-game-switcher-toggle i {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
  color: rgb(var(--game-accent-rgb, 246, 177, 63));
  font-style: normal;
  font-size: 12px;
  font-weight: 900;
  transition: transform 160ms ease;
}

body:is(.arc-page, .marathon-page, .nte-page, .subnautica-page) .lfgpal-game-switcher.open .lfgpal-game-switcher-toggle i {
  transform: rotate(180deg);
}

body:is(.arc-page, .marathon-page, .nte-page, .subnautica-page) .lfgpal-game-switcher-list {
  display: grid;
  gap: 6px;
  padding-top: 2px;
}

body:is(.arc-page, .marathon-page, .nte-page, .subnautica-page) .lfgpal-game-switcher-list[hidden] {
  display: none;
}

body:is(.arc-page, .marathon-page, .nte-page, .subnautica-page) :is(.nte-drawer-panel, .marathon-drawer-panel) .lfgpal-game-switcher a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 11px;
  color: rgba(238, 242, 250, 0.82);
  font-size: 13px;
  font-weight: 900;
}

body:is(.arc-page, .marathon-page, .nte-page, .subnautica-page) .lfgpal-game-switcher a::before {
  content: none;
  display: none;
}

body:is(.arc-page, .marathon-page, .nte-page, .subnautica-page) .lfgpal-game-switcher a.active {
  border-color: rgba(var(--game-accent-rgb, 246, 177, 63), 0.34);
  background: rgba(var(--game-accent-rgb, 246, 177, 63), 0.15);
  color: #fff;
}

body:is(.arc-page, .marathon-page, .nte-page, .subnautica-page) .lfgpal-game-switcher a.active::after {
  content: "Current";
  color: rgb(var(--game-accent-rgb, 246, 177, 63));
  font-size: 10px;
  text-transform: uppercase;
}

/* Shared LFGPAL image logo */
:root {
  --lfgpal-brand-logo: url("/assets/icons/lfgpal-logo.png");
}

.home-wordmark,
.lfgpal-logo,
body:is(.arc-page, .marathon-page, .nte-page, .subnautica-page) .lfgpal-logo,
body.arc-page .marathon-logo .lfgpal-logo,
body.marathon-page .marathon-logo .lfgpal-logo,
body.nte-page .nte-logo .lfgpal-logo,
body.subnautica-page .subnautica-logo .lfgpal-logo,
body:is(.arc-page, .marathon-page, .nte-page, .subnautica-page) :is(.marathon-drawer-panel, .nte-drawer-panel) > .lfgpal-logo {
  display: inline-block !important;
  width: 96px !important;
  height: 70px !important;
  min-width: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: var(--lfgpal-brand-logo) center / contain no-repeat !important;
  box-shadow: none !important;
  color: transparent !important;
  font-size: 0 !important;
  line-height: 1;
  letter-spacing: 0;
  text-shadow: none !important;
}

.home-wordmark {
  width: 104px !important;
  height: 72px !important;
}

.home-wordmark span,
body:is(.arc-page, .marathon-page, .nte-page, .subnautica-page) .lfgpal-logo::before,
body:is(.arc-page, .marathon-page, .nte-page, .subnautica-page) .lfgpal-logo::after {
  content: none;
  display: none !important;
}

.home-brand {
  min-width: 190px;
}

body:is(.arc-page, .marathon-page, .nte-page, .subnautica-page) :is(.marathon-logo, .nte-logo) {
  min-height: 64px;
  align-items: center;
}

body:is(.arc-page, .marathon-page, .nte-page, .subnautica-page) :is(.marathon-drawer-panel, .nte-drawer-panel) > .lfgpal-logo {
  width: 132px !important;
  height: 68px !important;
  margin-bottom: 14px;
}

@media (max-width: 980px) {
  .home-wordmark {
    width: 104px !important;
    height: 72px !important;
  }

  .home-brand {
    min-width: 150px;
  }
}

@media (max-width: 520px) {
  .home-wordmark,
  .lfgpal-logo,
  body:is(.arc-page, .marathon-page, .nte-page, .subnautica-page) .lfgpal-logo,
  body.arc-page .marathon-logo .lfgpal-logo,
  body.marathon-page .marathon-logo .lfgpal-logo,
  body.nte-page .nte-logo .lfgpal-logo,
  body.subnautica-page .subnautica-logo .lfgpal-logo {
    width: 78px !important;
    height: 56px !important;
  }

  .home-brand {
    min-width: 110px;
  }
}
