:root {
  --bg: #02080b;
  --panel: #051a22;
  --panel-deep: #020d12;
  --panel-raised: #082832;
  --cyan: #00d9ff;
  --cyan-soft: #18a9c6;
  --cyan-dim: #176777;
  --line: rgba(39, 145, 169, 0.58);
  --line-soft: rgba(45, 132, 151, 0.3);
  --text: #d9e9ed;
  --muted: #9fb9c0;
  --gold: #d9c99d;
  --ui-font: "Arial Narrow", "Roboto Condensed", Arial, sans-serif;
  --body-font: Arial, Helvetica, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--text);
  font-family: var(--body-font);
  font-size: 16px;
  line-height: 1.35;
  background:
    repeating-linear-gradient(0deg, rgba(53, 103, 113, 0.025) 0 1px, transparent 1px 4px),
    var(--bg);
}

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

button {
  font: inherit;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  white-space: nowrap;
  border: 0;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
}

.page-bg {
  display: flex;
  box-sizing: border-box;
  min-height: 100vh;
  padding: 8px;
}

.site-shell {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  width: min(1448px, 100%);
  margin: 0 auto;
}

.site-frame,
.frame-inner {
  position: relative;
}

.site-frame,
.frame-inner {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
}

.hero-wrap {
  position: relative;
  min-height: 308px;
  overflow: hidden;
  border-top: 1px solid #2d5159;
  border-bottom: 1px solid #2d5159;
  background:
    repeating-linear-gradient(0deg, rgba(74, 130, 140, 0.035) 0 1px, transparent 1px 4px),
    #020b0f;
}

.header-game-brand {
  position: absolute;
  z-index: 3;
  top: 2px;
  left: 11px;
  display: grid;
  width: 68px;
  height: 64px;
  place-items: center;
}

.header-game-brand img {
  display: block;
  width: 62px;
  height: 62px;
  object-fit: contain;
  transition: filter 120ms ease;
}

.header-game-brand:hover img,
.header-game-brand:focus-visible img {
  filter: brightness(1.14);
}

.header-game-brand:focus-visible {
  outline: 1px solid var(--cyan);
  outline-offset: -1px;
}

.launcher-bar {
  display: flex;
  justify-content: flex-end;
  min-height: 30px;
  border-bottom: 1px solid #294e56;
  background: #030f14;
}

.hero-brand {
  position: absolute;
  top: 34px;
  left: 42px;
  width: 210px;
}

.hero-brand img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.hero-utility {
  display: flex;
  flex: 1 1 auto;
  align-items: stretch;
  justify-content: flex-end;
  min-width: 0;
  padding-left: 86px;
}

.hero-utility a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 13px;
  border-right: 1px solid #1d3940;
  color: #aec5ca;
  font: 700 0.7rem var(--ui-font);
  white-space: nowrap;
}

.hero-utility i {
  color: #5da1af;
}

.status-word.is-offline {
  color: #dd685d;
}

.hero-primary {
  display: flex;
  min-height: 38px;
  padding-left: 86px;
  border-bottom: 1px solid #294e56;
  background: #04141a;
}

.hero-primary a {
  display: flex;
  flex: 0 1 150px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 0;
  border-right: 1px solid #1d3c44;
  color: #c6d8dc;
  font: 800 0.78rem var(--ui-font);
  text-transform: uppercase;
}

.hero-primary i {
  color: #4b9cab;
}

.hero-utility a:hover,
.hero-utility a:focus-visible,
.hero-primary a:hover,
.hero-primary a:focus-visible,
.hero-primary a.is-current {
  color: #fff;
  background: #0a2831;
  box-shadow: inset 0 -2px #00aeca;
  outline: 0;
}

.launcher-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  min-height: 280px;
  background:
    linear-gradient(rgba(1, 9, 12, 0.56), rgba(1, 9, 12, 0.56)),
    url("../assets/images/uprising-hero-background-desert-duel-wide.png") center 28% / 100% auto no-repeat;
}

.launcher-copy {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 16px 42px;
  text-shadow: 0 1px 2px #000;
}

.launcher-copy p,
.launcher-copy h1,
.launcher-copy > span {
  margin: 0;
  text-transform: uppercase;
}

.launcher-copy p {
  margin-top: 120px;
  color: #a8b370;
  font: 700 0.72rem var(--ui-font);
  letter-spacing: 0.16em;
}

.launcher-copy h1 {
  margin-top: 4px;
  color: #e8e4d8;
  font: 800 2rem var(--ui-font);
}

.launcher-copy > span {
  color: #17b7d2;
  font: 800 0.76rem var(--ui-font);
  letter-spacing: 0.14em;
}

.hero-join {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 9px;
  min-height: 38px;
  margin-top: 12px;
  padding: 0 18px;
  border: 1px solid #3b7987;
  color: #e0edf0;
  font: 800 0.78rem var(--ui-font);
  text-transform: uppercase;
  background: #08232b;
}

.hero-join i {
  color: #49adbf;
}

.hero-join:hover,
.hero-join:focus-visible {
  border-color: #64a8b5;
  color: #fff;
  background: #0b3039;
  outline: 0;
}

.launcher-side {
  display: grid;
  grid-template-rows: 1fr auto;
  padding: 20px 26px;
  border-left: 1px solid #294e56;
  background: rgba(3, 16, 21, 0.72);
}

.hero-status {
  color: #d8e8eb;
}

.status-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-bottom: 10px;
  border-bottom: 1px solid #294e56;
}

.hero-status h2 {
  margin: 0;
  color: #80bac5;
  font: 800 0.72rem var(--ui-font);
  text-transform: uppercase;
}

.status-word {
  color: #68dc43;
  font: 800 0.9rem var(--ui-font);
  text-transform: uppercase;
}

.hero-status dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 13px 0 0;
}

.hero-status dl div {
  padding: 0 12px;
  border-left: 1px solid #1d3940;
}

.hero-status dl div:first-child {
  padding-left: 0;
  border-left: 0;
}

.hero-status dt,
.hero-status dd {
  margin: 0;
  font: 700 0.58rem var(--ui-font);
  text-transform: uppercase;
  white-space: nowrap;
}

.hero-status dt {
  color: #78939a;
}

.hero-status dd {
  margin-top: 4px;
  color: #eef5f6;
  font-size: 0.78rem;
}

.hero-promo {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding-top: 12px;
  border-top: 1px solid #294e56;
  color: #cbdde1;
}

.hero-promo > i:first-child {
  color: #769ea6;
  font-size: 1.55rem;
  text-align: center;
}

.hero-promo span {
  display: grid;
}

.hero-promo strong {
  font: 800 0.76rem var(--ui-font);
  text-transform: uppercase;
}

.hero-promo small {
  margin-top: 2px;
  color: #7f9ca2;
  font-size: 0.62rem;
}

.hero-promo > i:last-child {
  color: #12b5d2;
  font-size: 0.68rem;
}

.hero-promo:hover,
.hero-promo:focus-visible {
  color: #fff;
  outline: 0;
}

.anchor-targets {
  position: relative;
  height: 0;
}

.anchor-targets span {
  position: absolute;
  top: -8px;
  width: 1px;
  height: 1px;
}

.content-region {
  position: relative;
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
  margin-top: -1px;
  border-top: 1px solid #376d78;
  background: #020b0f;
}

.content-region::after {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  content: "";
  border-top: 1px solid rgba(132, 181, 189, 0.22);
  background: repeating-linear-gradient(0deg, rgba(56, 111, 122, 0.018) 0 1px, transparent 1px 4px);
}

.content-layout,
.site-footer {
  position: relative;
  z-index: 1;
}

.content-layout {
  display: grid;
  flex: 1 1 auto;
  grid-template-columns: 281px minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;
  padding: 7px 0 8px;
}

.sci-panel {
  min-width: 0;
}

.sidebar {
  align-self: stretch;
  padding: 11px 10px 10px;
  border: 1px solid #244d56;
  background: #06151b;
  box-shadow:
    inset 1px 1px 0 rgba(102, 157, 168, 0.18),
    inset -1px -1px 0 #010507;
}

.nav-panel,
.social-panel {
  padding: 0;
  background: transparent;
}

.side-nav,
.side-nav ul,
.info-panel ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.side-nav > li {
  margin: 0;
}

.side-nav > li > a,
.nav-row {
  display: flex;
  align-items: center;
  min-height: 34px;
  margin: 0 0 2px;
  border: 1px solid #173943;
  color: #f0f8fa;
  font: 700 0.92rem Verdana, Arial, sans-serif;
  background: linear-gradient(#0b2730, #06151b 48%, #041015 52%, #071b22);
  box-shadow:
    inset 1px 1px 0 rgba(126, 176, 185, 0.13),
    inset -1px -1px 0 #010608;
}

.side-nav > li > a,
.nav-row > a {
  gap: 9px;
}

.side-nav > li > a {
  padding-right: 10px;
}

.nav-row {
  padding-right: 2px;
}

.nav-row > a {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  min-width: 0;
}

.side-nav > li > a:hover,
.side-nav > li > a:focus-visible,
.side-nav > li > a.is-current,
.nav-row:hover,
.nav-row:focus-within {
  border-color: #2a8ca1;
  color: #fff;
  background: #0a2d37;
  box-shadow:
    inset 2px 0 0 #00aeca,
    inset 1px 1px 0 rgba(137, 203, 213, 0.2),
    inset -1px -1px 0 #010608;
  outline: 0;
}

.side-nav > li > a:focus-visible,
.nav-row:focus-within {
  box-shadow: inset 0 0 0 1px rgba(0, 216, 255, 0.7);
}

.nav-icon {
  display: grid;
  place-items: center;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  border-right: 1px solid #1b4650;
  color: #72b6c4;
  font-size: 0.82rem;
}

.menu-toggle {
  display: grid;
  place-items: center;
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  color: var(--cyan);
  background: transparent;
  cursor: pointer;
}

.menu-toggle > i {
  font-size: 0.72rem;
  transition: transform 180ms ease;
}

.nav-group:not(.is-open) .menu-toggle > i {
  transform: rotate(180deg);
}

.side-nav ul {
  max-height: 152px;
  overflow: hidden;
  padding: 4px 8px 6px 47px;
  opacity: 1;
  transition:
    max-height 200ms ease,
    padding 200ms ease,
    opacity 150ms ease;
}

.nav-group:not(.is-open) > ul {
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  opacity: 0;
}

.side-nav ul a {
  display: block;
  padding: 3px 0;
  color: #c9dce1;
  font-size: 0.86rem;
}

.side-nav ul a::before {
  margin-right: 7px;
  color: var(--cyan-soft);
  content: "\2022";
}

.side-nav ul a:hover,
.side-nav ul a:focus-visible,
.side-nav ul a.is-current {
  color: #fff;
  text-shadow: 0 0 8px rgba(0, 216, 255, 0.55);
  outline: 0;
}

.social-panel {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid #28535d;
}

.social-panel h2 {
  display: block;
  margin: 0 0 7px;
  color: #8dbfc9;
  font: 700 0.72rem Verdana, Arial, sans-serif;
  letter-spacing: 0;
  text-align: left;
  text-transform: uppercase;
}

.social-links {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 4px;
  width: 100%;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 28px;
  min-width: 0;
  border: 1px solid #1d4650;
  color: #b8d4da;
  font: 700 0.68rem Verdana, Arial, sans-serif;
  text-transform: uppercase;
  background: linear-gradient(#0b2730, #05141a);
  box-shadow: inset 1px 1px 0 rgba(140, 187, 195, 0.12);
}

.social-links i {
  color: #72b6c4;
  font-size: 0.78rem;
}

.social-links a:hover,
.social-links a:focus-visible {
  border-color: #3b8796;
  color: #fff;
  background: #0b303a;
  box-shadow: inset 2px 0 0 #00a9c3;
  outline: 0;
}

.main-content {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
}

.content-overview,
.detail-view {
  view-transition-name: portal-content;
}

.content-overview:not([hidden]),
.detail-view:not([hidden]) {
  flex: 1 1 auto;
  width: 100%;
  animation: portal-panel-in 180ms ease-out;
}

.content-overview:not([hidden]) {
  display: grid;
  grid-template-rows: auto minmax(211px, 1fr);
}

.detail-view {
  height: clamp(480px, 62vh, 650px);
  min-height: 0;
  overflow: hidden;
  border: 1px solid #285660;
  background:
    linear-gradient(rgba(7, 25, 31, 0.94), rgba(2, 11, 15, 0.98)),
    repeating-linear-gradient(0deg, transparent 0 3px, rgba(68, 117, 126, 0.04) 3px 4px);
  box-shadow:
    inset 1px 1px 0 rgba(130, 183, 193, 0.14),
    inset -1px -1px 0 #010507;
}

.detail-view:not([hidden]) {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}

.detail-header {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  min-height: 78px;
  border-bottom: 1px solid #2c5c66;
  background: linear-gradient(#0c2a33, #06161c);
  box-shadow: inset 0 1px 0 rgba(135, 188, 198, 0.12);
}

.detail-back {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 0;
  border: 0;
  border-right: 1px solid #28525c;
  border-radius: 0;
  color: #9fc5cd;
  font: 700 0.7rem Verdana, Arial, sans-serif;
  text-transform: uppercase;
  background: #071a20;
  cursor: pointer;
}

.detail-back:hover,
.detail-back:focus-visible {
  color: #fff;
  background: #0b3039;
  box-shadow: inset 3px 0 0 var(--cyan);
  outline: 0;
}

.detail-back i {
  color: var(--cyan-soft);
}

.detail-heading {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
  padding: 11px 16px;
}

.detail-icon {
  display: grid;
  place-items: center;
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  border: 1px solid #34717d;
  color: #77bdca;
  background: #031116;
  box-shadow: inset 1px 1px 0 rgba(130, 190, 201, 0.13);
}

.detail-icon i {
  font-size: 1.25rem;
}

.detail-heading p {
  margin: 0 0 3px;
  color: var(--gold);
  font: 700 0.62rem Verdana, Arial, sans-serif;
  text-transform: uppercase;
}

.detail-heading h2 {
  margin: 0;
  color: #e8f3f5;
  font: 800 1.28rem var(--ui-font);
  letter-spacing: 0;
  text-transform: uppercase;
}

.detail-content {
  min-height: 0;
  padding: 22px 26px 30px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-color: #34717d #031015;
  scrollbar-width: thin;
}

.detail-content:focus-visible {
  box-shadow: inset 0 0 0 1px rgba(79, 167, 184, 0.48);
  outline: 0;
}

.detail-content::-webkit-scrollbar {
  width: 11px;
}

.detail-content::-webkit-scrollbar-track {
  border-left: 1px solid #173a42;
  background: #031015;
}

.detail-content::-webkit-scrollbar-thumb {
  border: 2px solid #031015;
  border-radius: 0;
  background: #285c67;
}

.detail-content::-webkit-scrollbar-thumb:hover {
  background: #347b89;
}

.detail-view[data-route="grey-jedi"] .detail-content {
  background-color: #02090c;
  background-image:
    linear-gradient(
      90deg,
      rgba(2, 11, 15, 0.99) 0%,
      rgba(2, 11, 15, 0.98) 58%,
      rgba(2, 11, 15, 0.9) 66%,
      rgba(2, 11, 15, 0.56) 80%,
      rgba(2, 11, 15, 0.24) 100%
    ),
    url("../assets/images/grey-jedi-backdrop.png");
  background-repeat: no-repeat;
  background-position: center, right center;
  background-size: 100% 100%, auto 100%;
}

.detail-view[data-route="grey-jedi"] .detail-content > * {
  max-width: 68%;
}

.detail-view[data-route="grey-jedi"] .detail-intro {
  color: #eef3f3;
  text-shadow: 0 1px 2px #000;
}

.detail-image {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  margin-bottom: 18px;
  border: 1px solid #2e6470;
  filter: saturate(0.88) contrast(1.06);
}

.detail-intro {
  max-width: 860px;
  margin: 0 0 22px;
  color: #e1ecef;
  font-size: 1rem;
  line-height: 1.5;
}

.detail-section,
.detail-entry {
  display: grid;
  grid-template-columns: minmax(160px, 220px) minmax(0, 1fr);
  column-gap: 24px;
  padding: 16px 4px;
  border-top: 1px solid rgba(83, 139, 150, 0.34);
}

.detail-section h3,
.detail-entry-heading h3 {
  margin: 0;
  color: #78bdca;
  font: 800 0.86rem var(--ui-font);
  letter-spacing: 0;
  line-height: 1.25;
  text-transform: uppercase;
}

.detail-section h3 {
  grid-row: 1 / span 8;
}

.detail-section p,
.detail-entry p {
  grid-column: 2;
  margin: 0 0 10px;
  color: #c7dade;
  font-size: 0.86rem;
  line-height: 1.5;
}

.detail-list {
  grid-column: 2;
  margin: 0;
  padding: 0;
  color: #cbdde2;
  font-size: 0.84rem;
  line-height: 1.55;
  list-style: none;
}

.detail-list li {
  position: relative;
  padding-left: 14px;
}

.detail-list li::before {
  position: absolute;
  left: 0;
  color: var(--cyan-soft);
  content: ">";
}

.detail-actions {
  grid-column: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.detail-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid #2e7f8e;
  background: #06252c;
  color: #dff7fa;
  font: 800 0.76rem var(--ui-font);
  text-transform: uppercase;
}

.detail-action:hover,
.detail-action:focus-visible {
  border-color: var(--cyan);
  background: #0a3440;
  color: #fff;
}

.detail-entry-heading {
  grid-row: 1 / span 8;
}

.detail-entry-heading span {
	display: block;
	margin-top: 5px;
	color: var(--gold);
	font: 700 0.72rem Verdana, Arial, sans-serif;
	text-transform: uppercase;
}

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

.acknowledgement-card {
  display: flex;
  min-width: 0;
  min-height: 360px;
  flex-direction: column;
  padding: 12px;
  border: 1px solid #28545e;
  background: #041218;
  box-shadow: inset 1px 1px 0 rgba(112, 163, 173, 0.1);
}

.acknowledgement-brand {
  position: relative;
  display: grid;
  height: 166px;
  margin: -12px -12px 14px;
  place-items: center;
  overflow: hidden;
  border-bottom: 1px solid #28545e;
  background: #020a0e;
}

.acknowledgement-brand img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  padding: 18px;
  object-fit: contain;
  transition: filter 120ms ease;
}

.acknowledgement-brand-compact img {
  padding: 26px;
}

.acknowledgement-brand:hover img,
.acknowledgement-brand:focus-visible img {
  filter: brightness(1.12);
}

.acknowledgement-card h3 {
  margin: 0 0 8px;
  color: #81c5d2;
  font: 800 0.9rem var(--ui-font);
  text-transform: uppercase;
}

.acknowledgement-card p {
  margin: 0 0 16px;
  color: #c7dade;
  font-size: 0.84rem;
  line-height: 1.5;
}

.acknowledgement-links {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 12px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid rgba(83, 139, 150, 0.28);
}

.acknowledgement-links a {
  color: var(--cyan);
  font: 800 0.72rem var(--ui-font);
  text-transform: uppercase;
}

.acknowledgement-links i {
  margin-left: 5px;
  font-size: 0.75em;
}

.acknowledgement-links a:hover,
.acknowledgement-links a:focus-visible {
  color: #fff;
  outline: 0;
}

.acknowledgements-note {
  margin: 18px 0 0;
  padding: 12px 14px;
  border-left: 2px solid var(--gold);
  color: #9db8be;
  font-size: 0.78rem;
  line-height: 1.5;
  background: rgba(2, 10, 14, 0.64);
}

.live-data-state {
  display: flex;
  min-height: 180px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1px solid #214852;
  color: #8db5bd;
  background: rgba(1, 10, 14, 0.5);
}

.live-data-state i {
  color: var(--cyan-soft);
  font-size: 1.05rem;
}

.live-data-state p {
  margin: 0;
  font: 700 0.78rem var(--ui-font);
  text-transform: uppercase;
}

.account-form {
  max-width: 720px;
  border-top: 1px solid rgba(83, 139, 150, 0.34);
  padding-top: 18px;
}

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

.account-field:first-child {
  grid-column: 1 / -1;
}

.account-field {
  display: grid;
  gap: 7px;
  color: #7fb4be;
  font: 700 0.68rem var(--ui-font);
  text-transform: uppercase;
}

.account-field input {
  width: 100%;
  min-width: 0;
  height: 38px;
  border: 1px solid #285a64;
  border-radius: 0;
  padding: 0 11px;
  color: #edf7f8;
  background: #031217;
  box-shadow: inset 1px 1px 0 #01080a;
  font: 400 0.9rem Verdana, Arial, sans-serif;
}

.account-field input:focus {
  border-color: #51a8b7;
  box-shadow: 0 0 0 1px rgba(62, 157, 174, 0.32);
  outline: 0;
}

.account-form-actions {
  margin-top: 18px;
}

.account-submit {
  min-height: 38px;
  border: 1px solid #377986;
  border-radius: 0;
  padding: 0 18px;
  color: #f3f8f9;
  background: #08262d;
  font: 800 0.73rem var(--ui-font);
  text-transform: uppercase;
  cursor: pointer;
}

.account-submit i {
  margin-right: 9px;
  color: var(--cyan-soft);
}

.account-submit:hover,
.account-submit:focus-visible {
  border-color: #68bdca;
  background: #0c343d;
  outline: 0;
}

.account-submit:disabled {
  opacity: 0.55;
  cursor: wait;
}

.account-form-message {
  min-height: 20px;
  margin: 14px 0 0;
  color: #93adb2;
  font-size: 0.8rem;
}

.account-form-message.is-error {
  color: #e17d72;
}

.account-form-message.is-success {
  color: #7bd45b;
}

.account-form.is-complete {
  display: grid;
  gap: 16px;
}

.account-form.is-complete .account-form-message,
.account-form.is-complete .account-form-actions {
  margin-top: 0;
}

.account-success-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.account-redirect-countdown {
  color: #d5f4cb;
  font-weight: 700;
}

.directory-toolbar {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(220px, 340px);
  align-items: stretch;
  margin-bottom: 14px;
  border: 1px solid #2c5c66;
  background: #06171d;
}

.directory-total {
  display: flex;
  align-items: baseline;
  gap: 10px;
  min-width: 0;
  padding: 12px 15px;
}

.directory-total strong {
  color: var(--gold);
  font: 800 1.25rem var(--ui-font);
}

.directory-total span {
  color: #9fc1c8;
  font: 700 0.68rem var(--ui-font);
  text-transform: uppercase;
}

.directory-search {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  align-items: center;
  border-left: 1px solid #2c5c66;
  background: #020c10;
}

.directory-search i {
  text-align: center;
  color: #5795a1;
}

.directory-search input {
  width: 100%;
  min-width: 0;
  height: 100%;
  border: 0;
  border-radius: 0;
  color: #e1eef0;
  font: 700 0.78rem Verdana, Arial, sans-serif;
  background: transparent;
  outline: 0;
}

.directory-search:focus-within {
  box-shadow: inset 0 -2px 0 var(--cyan);
}

.guild-directory {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid #2b5c66;
  border-left: 1px solid #2b5c66;
}

.guild-row {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  align-items: center;
  min-height: 52px;
  border-right: 1px solid #2b5c66;
  border-bottom: 1px solid #2b5c66;
  background: rgba(4, 20, 25, 0.72);
}

.guild-row:hover {
  background: #0a252d;
  box-shadow: inset 3px 0 0 #2c96a9;
}

.guild-crest {
  display: grid;
  width: 76px;
  height: 100%;
  place-items: center;
  overflow: hidden;
  border-right: 1px solid #27535d;
  color: var(--gold);
  font: 800 0.72rem var(--ui-font);
  text-transform: uppercase;
}

.guild-row strong {
  min-width: 0;
  padding: 9px 12px;
  overflow: hidden;
  color: #d8e7ea;
  font: 700 0.8rem Verdana, Arial, sans-serif;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.leaderboard-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid #2f626d;
  border-left: 1px solid #2f626d;
}

.leaderboard-tab {
  display: flex;
  min-width: 0;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-right: 1px solid #2f626d;
  border-bottom: 1px solid #2f626d;
  border-radius: 0;
  color: #8eb4bc;
  font: 800 0.7rem var(--ui-font);
  text-transform: uppercase;
  background: #041318;
  cursor: pointer;
}

.leaderboard-tab:hover,
.leaderboard-tab:focus-visible {
  color: #edf7f8;
  background: #0a2931;
  outline: 0;
}

.leaderboard-tab.is-active {
  color: #fff;
  background: #0b3039;
  box-shadow: inset 0 -3px 0 var(--cyan);
}

.leaderboard-tab i {
  color: #55aabd;
}

.leaderboard-table {
  border-right: 1px solid #28545e;
  border-bottom: 1px solid #28545e;
  border-left: 1px solid #28545e;
}

.leaderboard-row {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) minmax(130px, 220px);
  align-items: center;
  min-height: 42px;
  border-bottom: 1px solid rgba(61, 111, 121, 0.42);
  color: #bed3d7;
  background: rgba(2, 12, 16, 0.54);
}

.leaderboard-row:last-child {
  border-bottom: 0;
}

.leaderboard-row > span,
.leaderboard-row > strong {
  min-width: 0;
  padding: 9px 13px;
}

.leaderboard-row > :not(:last-child) {
  border-right: 1px solid rgba(61, 111, 121, 0.35);
}

.leaderboard-heading {
  min-height: 34px;
  color: #719da6;
  font: 700 0.62rem var(--ui-font);
  text-transform: uppercase;
  background: #071c22;
}

.leaderboard-rank {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #70b8c5;
  font: 800 0.78rem var(--ui-font);
}

.leaderboard-rank i {
  color: #b8a66a;
}

.leaderboard-row:nth-child(3) .leaderboard-rank i {
  color: #aeb8bd;
}

.leaderboard-row:nth-child(4) .leaderboard-rank i {
  color: #9c7054;
}

.leaderboard-name {
  overflow: hidden;
  color: #deebed;
  font: 700 0.8rem Verdana, Arial, sans-serif;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.leaderboard-value {
  color: var(--gold);
  font: 800 0.76rem var(--ui-font);
  text-align: right;
}

@media (max-width: 680px) {
  .directory-toolbar {
    grid-template-columns: 1fr;
  }

  .directory-search {
    min-height: 44px;
    border-top: 1px solid #2c5c66;
    border-left: 0;
  }

  .guild-directory {
    grid-template-columns: 1fr;
  }

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

  .leaderboard-row {
    grid-template-columns: 54px minmax(0, 1fr) minmax(104px, 140px);
  }

  .leaderboard-row > span,
  .leaderboard-row > strong {
    padding: 8px 9px;
  }
}

.changelog-release {
  position: relative;
  padding: 0 5px 22px;
}

.changelog-release + .changelog-release {
  margin-top: 6px;
}

.changelog-release-header {
  position: sticky;
  z-index: 2;
  top: -22px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
  margin: 0 -5px 13px;
  border-top: 1px solid #34717d;
  border-bottom: 1px solid #28545e;
  background: #071c23;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.34);
}

.changelog-release-header h3 {
  margin: 0;
  padding: 10px 12px;
  color: #80c5d1;
  font: 800 0.85rem var(--ui-font);
  letter-spacing: 0;
  line-height: 1.3;
  text-transform: uppercase;
}

.changelog-release-header time {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  border-left: 1px solid #28545e;
  color: var(--gold);
  font: 700 0.68rem Verdana, Arial, sans-serif;
  white-space: nowrap;
  background: #031116;
}

.changelog-subheading {
  margin: 15px 0 8px;
  padding-bottom: 5px;
  border-bottom: 1px solid rgba(83, 139, 150, 0.24);
  color: var(--gold);
  font: 700 0.76rem Verdana, Arial, sans-serif;
  text-transform: uppercase;
}

.changelog-list {
  margin: 0 4px 10px;
}

.changelog-list li {
  margin-bottom: 6px;
}

.changelog-loading {
  margin: 28px 0;
  color: var(--cyan-soft);
  font: 700 0.76rem Verdana, Arial, sans-serif;
  text-align: center;
  text-transform: uppercase;
}

.changelog-loading.is-error {
  color: #d98378;
}

@keyframes portal-panel-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

::view-transition-old(portal-content) {
  animation: 120ms ease-in both portal-content-out;
}

::view-transition-new(portal-content) {
  animation: 180ms ease-out both portal-panel-in;
}

@keyframes portal-content-out {
  to {
    opacity: 0;
    transform: translateY(-4px);
  }
}

.featured-news {
  padding: 0 9px 10px;
  border: 1px solid #244d56;
  background: #041116;
  box-shadow:
    inset 1px 1px 0 rgba(107, 158, 168, 0.13),
    inset -1px -1px 0 #010507;
}

.section-title {
  position: relative;
  min-height: 36px;
  margin: 0 -9px 9px;
  padding: 8px 12px 7px;
  border-bottom: 1px solid #2a5a65;
  color: #80c1ce;
  font: 700 0.88rem Verdana, Arial, sans-serif;
  letter-spacing: 0;
  text-transform: uppercase;
  background: linear-gradient(#0c2b34, #06171d);
  box-shadow: inset 0 1px 0 rgba(128, 181, 191, 0.12);
}

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

.news-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #24515b;
  background: #020d11;
  transition:
    border-color 150ms ease,
    box-shadow 150ms ease;
}

.news-card:hover {
  border-color: #3c8493;
  box-shadow: inset 2px 0 0 #00aac5;
}

.news-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 329 / 157;
  border-bottom: 1px solid rgba(0, 216, 255, 0.5);
  background: #020d11;
}

.news-image img {
  position: absolute;
  inset: -5px;
  width: calc(100% + 10px);
  height: calc(100% + 10px);
  max-width: none;
  object-fit: cover;
  filter: saturate(0.88) contrast(1.05);
}

.video-thumbnail {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: #020d11;
  cursor: pointer;
}

.video-thumbnail img {
  z-index: 0;
  transition: transform 180ms ease, filter 180ms ease;
}

.video-thumbnail::after {
  position: absolute;
  z-index: 1;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, rgba(0, 12, 16, 0.35), transparent 52%, rgba(0, 12, 16, 0.2));
  pointer-events: none;
}

.video-thumbnail:hover img,
.video-thumbnail:focus-visible img {
  transform: scale(1.035);
  filter: saturate(1) contrast(1.1) brightness(1.08);
}

.video-thumbnail:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: -4px;
}

.video-play-badge {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 11px;
  border: 1px solid #78c9d6;
  background: rgba(2, 25, 32, 0.86);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.5), 0 0 18px rgba(0, 216, 255, 0.3);
  color: #f4feff;
  font: 800 0.72rem var(--ui-font);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  transform: translate(-50%, -50%);
}

.video-play-badge i {
  color: var(--cyan);
  font-size: 0.82em;
}

.news-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: #000;
}

.news-card-grey-jedi .news-image img {
  object-position: center 28%;
  filter: saturate(0.74) contrast(1.08) brightness(0.9);
}

.card-body {
  padding: 7px 10px 9px;
}

.news-card h3,
.info-panel h3 {
  margin: 0;
  color: #eef7f9;
  font: 800 1.06rem var(--ui-font);
  line-height: 1.08;
  letter-spacing: 0;
  text-transform: uppercase;
}

.news-card time {
  display: block;
  margin: 2px 0 7px;
  color: var(--gold);
  font-size: 0.8rem;
}

.news-card p {
  min-height: 78px;
  margin: 0;
  color: #c8dce1;
  font-size: 0.85rem;
  line-height: 1.3;
}

.news-card a,
.info-panel > a {
  display: inline-block;
  margin-top: 8px;
  color: var(--cyan);
  font: 800 0.84rem var(--ui-font);
  letter-spacing: 0;
  text-transform: uppercase;
}

.news-card a i,
.info-panel > a i {
  margin-left: 3px;
  font-size: 0.7em;
}

.news-card a:hover,
.news-card a:focus-visible,
.info-panel > a:hover,
.info-panel > a:focus-visible,
.site-footer a:hover,
.site-footer a:focus-visible {
  color: #fff;
  text-shadow: 0 0 9px rgba(0, 216, 255, 0.7);
  outline: 0;
}

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

.info-panel {
  position: relative;
  min-width: 0;
  min-height: 211px;
  padding: 48px 12px 10px 88px;
  overflow: hidden;
  border: 1px solid #244d56;
  background: #051319;
  box-shadow:
    inset 1px 1px 0 rgba(106, 155, 164, 0.12),
    inset -1px -1px 0 #010507;
}

.info-panel h2 {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  min-height: 36px;
  margin: 0;
  padding: 7px 10px;
  border-bottom: 1px solid #28545e;
  color: #80c1ce;
  font: 700 0.78rem Verdana, Arial, sans-serif;
  letter-spacing: 0;
  text-align: center;
  text-transform: uppercase;
  background: linear-gradient(#0b2831, #06161c);
  box-shadow: inset 0 1px 0 rgba(127, 177, 187, 0.1);
}

.panel-icon {
  position: absolute;
  display: grid;
  place-items: center;
  left: 13px;
  top: 52px;
  width: 64px;
  height: 70px;
  border: 1px solid #23515b;
  background-color: #031015;
  box-shadow:
    inset 1px 1px 0 rgba(110, 168, 178, 0.13),
    inset -1px -1px 0 #000;
}

.panel-icon i {
  color: #5ba8b8;
  font-size: 2rem;
}

.info-panel h3 {
  font-size: 0.93rem;
}

.info-panel ul {
  color: #cbdde2;
  font-size: 0.8rem;
  line-height: 1.25;
}

.info-panel li {
  margin: 2px 0;
}

.info-panel li::before {
  color: var(--cyan-soft);
  content: "\2022 ";
}

.patch-panel [data-latest-patch-items] li {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.event-list li {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 4px 0;
  border-bottom: 1px solid rgba(143, 181, 192, 0.12);
}

.event-list li::before {
  content: "";
}

.event-list time {
  flex: 0 0 auto;
  color: var(--gold);
  font-size: 0.74rem;
  white-space: nowrap;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 22px;
  align-items: center;
  min-height: 43px;
  margin: 0 3px;
  padding: 8px 14px;
  border-top: 1px solid #28515a;
  color: var(--muted);
  font-size: 0.78rem;
  background: #031015;
  box-shadow: inset 0 1px 0 rgba(112, 163, 173, 0.1);
}

.site-footer p {
  margin: 0;
}

.site-footer nav {
  display: flex;
  gap: 9px;
}

.site-footer a + a::before {
  margin-right: 9px;
  color: var(--cyan-dim);
  content: "|";
}

@media (max-width: 1120px) {
  .hero-utility a {
    padding-inline: 8px;
  }

  .launcher-main {
    grid-template-columns: minmax(0, 1fr) 350px;
  }

  .content-layout {
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 8px;
  }

  .news-card p {
    min-height: 96px;
  }

  .info-panel {
    padding-left: 72px;
  }

  .panel-icon {
    width: 50px;
    left: 11px;
  }
}

@media (max-width: 900px) {
  .acknowledgements-grid {
    grid-template-columns: 1fr;
  }

  .acknowledgement-card {
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr);
    min-height: 0;
    column-gap: 16px;
  }

  .acknowledgement-brand {
    grid-row: 1 / span 3;
    width: 190px;
    height: 160px;
    margin: -12px 0 -12px -12px;
    border-right: 1px solid #28545e;
    border-bottom: 0;
  }

  .acknowledgement-links {
    align-self: end;
  }

  .header-game-brand {
    left: 7px;
    width: 58px;
  }

  .header-game-brand img {
    width: 54px;
    height: 54px;
  }

  .hero-utility,
  .hero-primary {
    padding-left: 68px;
  }

  .hero-utility a {
    padding-inline: 7px;
    font-size: 0.64rem;
  }

  .hero-utility a:nth-child(3),
  .hero-utility a:nth-child(5) {
    display: none;
  }

  .hero-primary a {
    flex-basis: 120px;
  }

  .launcher-main {
    grid-template-columns: minmax(0, 1fr) 320px;
  }

  .launcher-copy {
    padding-inline: 30px;
  }

  .hero-status dl div {
    padding-inline: 8px;
  }

  .page-bg {
    padding: 4px;
  }

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

  .sidebar {
    padding: 8px;
  }

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

  .nav-group {
    position: relative;
  }

  .side-nav ul {
    padding-left: 38px;
  }

  .social-panel {
    max-width: 281px;
    margin-inline: auto;
  }

  .site-footer {
    grid-template-columns: 1fr;
    gap: 5px;
    text-align: center;
  }

  .site-footer nav {
    justify-content: center;
    flex-wrap: wrap;
  }
}

@media (max-width: 700px) {
  .header-game-brand {
    display: none;
  }

  .launcher-bar {
    flex-wrap: wrap;
  }

  .hero-utility {
    order: 2;
    flex-basis: 100%;
    justify-content: stretch;
    min-height: 36px;
    padding-left: 0;
    border-top: 1px solid #1d3940;
  }

  .hero-utility a {
    flex: 1 1 auto;
    justify-content: center;
  }

  .hero-primary {
    padding-left: 0;
  }

  .hero-primary a {
    flex: 1 1 20%;
  }

  .launcher-main {
    grid-template-columns: 1fr;
    background-position: center, center top;
    background-size: auto, 100% auto;
  }

  .launcher-copy {
    min-height: 230px;
  }

  .hero-brand {
    top: 18px;
    left: 22px;
    width: 180px;
  }

  .launcher-copy p {
    margin-top: 105px;
  }

  .launcher-side {
    min-height: 170px;
    border-top: 1px solid #294e56;
    border-left: 0;
  }

  body {
    font-size: 15px;
  }

  .content-layout {
    padding-inline: 0;
  }

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

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

  .news-card {
    display: grid;
    grid-template-columns: minmax(150px, 38%) 1fr;
  }

  .news-image {
    height: 100%;
    min-height: 170px;
    aspect-ratio: auto;
    border-right: 1px solid rgba(0, 216, 255, 0.5);
    border-bottom: 0;
  }

  .news-card p {
    min-height: 0;
  }

  .info-panel {
    min-height: 190px;
  }

  .detail-section,
  .detail-entry {
    grid-template-columns: 1fr;
    row-gap: 8px;
  }

  .detail-section h3,
  .detail-entry-heading {
    grid-row: auto;
  }

  .detail-section p,
  .detail-entry p,
  .detail-list,
  .detail-actions {
    grid-column: 1;
  }

  .account-form-fields {
    grid-template-columns: 1fr;
  }

  .account-field:first-child {
    grid-column: auto;
  }

}

@media (max-width: 500px) {
  .acknowledgement-card {
    display: flex;
  }

  .acknowledgement-brand {
    width: auto;
    height: 150px;
    margin: -12px -12px 14px;
    border-right: 0;
    border-bottom: 1px solid #28545e;
  }

  .hero-utility a {
    gap: 4px;
    padding-inline: 6px;
    font-size: 0.58rem;
  }

  .hero-utility a i {
    display: none;
  }

  .hero-primary a {
    gap: 3px;
    font-size: 0.6rem;
  }

  .hero-primary i {
    display: none;
  }

  .launcher-copy {
    min-height: 220px;
    padding: 22px;
  }

  .hero-brand {
    left: 22px;
    width: 160px;
  }

  .launcher-copy p {
    margin-top: 92px;
  }

  .launcher-copy h1 {
    font-size: 1.6rem;
  }

  .launcher-side {
    padding: 18px;
  }

  .hero-status dl {
    gap: 0;
  }

  .hero-status dl div {
    padding-inline: 6px;
  }

  .hero-status dt {
    font-size: 0.5rem;
  }

  .hero-promo small {
    display: none;
  }

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

  .news-card {
    display: block;
  }

  .news-image {
    width: 100%;
    height: auto;
    min-height: 0;
    aspect-ratio: 329 / 157;
    border-right: 0;
    border-bottom: 1px solid rgba(0, 216, 255, 0.5);
  }

  .section-title {
    min-height: 39px;
    padding: 7px 14px;
    font-size: 1.05rem;
  }

  .info-panel {
    padding-left: 78px;
  }

  .site-footer {
    margin-inline: 0;
  }

  .detail-header {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .detail-back {
    gap: 0;
  }

  .detail-back span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .detail-content {
    padding: 18px 15px 24px;
  }

  .changelog-release-header {
    grid-template-columns: 1fr;
  }

  .changelog-release-header time {
    padding: 0 12px 8px;
    border-left: 0;
    background: transparent;
  }
}

@media (prefers-reduced-motion: reduce) {
  .content-overview:not([hidden]),
  .detail-view:not([hidden]) {
    animation: none;
  }
}

@media (max-width: 980px) {
  .detail-view[data-route="grey-jedi"] .detail-content {
    background-image:
      linear-gradient(rgba(2, 11, 15, 0.9), rgba(2, 11, 15, 0.96)),
      url("../assets/images/grey-jedi-backdrop.png");
    background-position: center, center top;
    background-size: 100% 100%, auto 100%;
  }

  .detail-view[data-route="grey-jedi"] .detail-content > * {
    max-width: none;
  }
}


/* Searchable player guide; other detail routes retain their existing layout. */
.feature-guide-controls {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 12px;
}
.feature-guide-search {
  display: grid;
  gap: 7px;
  flex: 1 1 240px;
  min-width: 0;
  color: #cbdde2;
  font-size: 0.84rem;
}
.feature-guide-search input {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid #527a83;
  border-radius: 2px;
  background: #081820;
  color: #e1ecef;
  font: inherit;
}
.feature-guide-search input::placeholder { color: #a5bbc2; }
.feature-guide-toggle {
  min-height: 42px;
  padding: 10px 16px;
  border: 1px solid #527a83;
  border-radius: 2px;
  background: #17323d;
  color: #e1ecef;
  font: 700 0.82rem var(--ui-font);
  cursor: pointer;
}
.feature-guide-toggle:hover { background: #244653; }
.feature-guide-toggle:disabled { opacity: 0.5; cursor: default; }
.feature-guide-search input:focus-visible,
.feature-guide-toggle:focus-visible,
.feature-guide-section summary:focus-visible {
  outline: 2px solid #95d5e2;
  outline-offset: 3px;
}
.feature-guide-count {
  margin: 12px 0 18px;
  color: #adc7ce;
  font-size: 0.8rem;
}
.feature-guide-section { border-top: 1px solid rgba(83, 139, 150, 0.45); }
.feature-guide-section:last-child { border-bottom: 1px solid rgba(83, 139, 150, 0.45); }
.feature-guide-section summary {
  padding: 16px 4px;
  color: #8fcbd7;
  cursor: pointer;
  font: 800 0.9rem var(--ui-font);
  line-height: 1.5;
}
.feature-guide-section summary::marker { color: #e0ac53; }
.feature-guide-section summary:hover { color: #dcf4f8; }
.feature-guide-section-count {
  margin-left: 10px;
  color: #abc2c9;
  font-size: 0.76rem;
  font-weight: 400;
  white-space: nowrap;
}
.feature-guide .detail-list { padding: 0 8px 16px; font-size: 0.88rem; }
.feature-guide .detail-list li { margin-bottom: 12px; }
.feature-guide .detail-list li:last-child { margin-bottom: 0; }
.feature-guide .detail-list strong { color: #edf4f5; font-weight: 700; }
.feature-guide-empty { color: #cbdde2; font-size: 0.9rem; line-height: 1.6; }

/* Skill planner uses the same restrained terminal language as the launcher UI. */
.detail-view[data-route="skill-planner"] .detail-content {
  padding: 14px;
}

.skill-planner {
  color: #cbdde2;
  overflow-anchor: none;
}

.skill-planner-toolbar {
  display: grid;
  grid-template-columns: minmax(150px, 0.8fr) minmax(210px, 1.2fr) auto auto;
  gap: 8px;
  align-items: end;
  padding: 10px;
  border: 1px solid #2c5c66;
  background: #06171d;
}

.planner-field {
  display: grid;
  gap: 5px;
  min-width: 0;
  color: #76b4c0;
  font: 700 0.62rem var(--ui-font);
  text-transform: uppercase;
}

.planner-field select {
  width: 100%;
  min-width: 0;
  height: 36px;
  border: 1px solid #34717d;
  border-radius: 0;
  padding: 0 30px 0 9px;
  color: #edf7f8;
  background: #031217;
  font: 700 0.76rem Verdana, Arial, sans-serif;
}

.planner-field select:focus-visible,
.planner-actions button:focus-visible,
.skill-box:focus-visible,
.planner-profession-chip:focus-visible {
  border-color: #73c3d0;
  outline: 2px solid rgba(74, 175, 193, 0.45);
  outline-offset: 1px;
}

.planner-points {
  display: grid;
  grid-template-columns: auto auto;
  gap: 1px 10px;
  align-items: baseline;
  min-width: 150px;
  min-height: 36px;
  padding: 5px 10px;
  border-left: 2px solid var(--cyan-dim);
  background: #020d11;
}

.planner-points span {
  color: #74a6af;
  font: 700 0.55rem var(--ui-font);
  text-transform: uppercase;
}

.planner-points strong {
  justify-self: end;
  color: var(--gold);
  font: 800 0.9rem var(--ui-font);
}

.planner-points.is-over strong:last-child {
  color: #e67c70;
}

.planner-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(84px, 1fr));
  gap: 3px;
}

.planner-actions button,
.planner-profession-chip {
  min-height: 31px;
  border: 1px solid #34717d;
  border-radius: 0;
  color: #d9ebee;
  background: #08242b;
  font: 700 0.63rem var(--ui-font);
  text-transform: uppercase;
  cursor: pointer;
}

.planner-actions button {
  padding: 0 9px;
}

.planner-actions button i {
  width: 15px;
  margin-right: 5px;
  color: #60b4c4;
}

.planner-actions button:hover,
.planner-profession-chip:hover {
  border-color: #61adbb;
  color: #fff;
  background: #0d343d;
}

.planner-message {
  min-height: 22px;
  margin: 0;
  padding: 6px 4px 2px;
  color: #83b8c2;
  font-size: 0.72rem;
}

.planner-message.is-error {
  color: #e58a7e;
}

.planner-selection {
  display: flex;
  gap: 4px;
  min-height: 34px;
  align-items: center;
  overflow-x: auto;
  padding: 3px 0 7px;
  scrollbar-width: thin;
}

.planner-profession-chip {
  flex: 0 0 auto;
  min-height: 27px;
  padding: 0 9px;
  color: #bcd6db;
}

.planner-selection-empty {
  color: #688d95;
  font: 700 0.62rem var(--ui-font);
  text-transform: uppercase;
}

.planner-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(245px, 30%);
  min-height: 510px;
  border: 1px solid #2c5c66;
  background: #020c10;
  overflow-anchor: none;
}

.planner-tree-panel {
  min-width: 0;
  padding: 14px;
  border-right: 1px solid #2c5c66;
}

.planner-tree-heading {
  min-height: 64px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(83, 139, 150, 0.34);
}

.planner-tree-heading h3,
.planner-skill-detail > h3 {
  margin: 0;
  color: #83c9d5;
  font: 800 0.84rem var(--ui-font);
  text-transform: uppercase;
}

.planner-tree-heading p {
  max-width: 780px;
  margin: 6px 0 0;
  color: #91aeb4;
  font-size: 0.73rem;
  line-height: 1.45;
}

.planner-profession-paths {
  display: grid;
  gap: 7px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(83, 139, 150, 0.34);
}

.planner-profession-paths[hidden] {
  display: none;
}

.planner-profession-path-group {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
}

.planner-profession-path-label {
  padding-top: 6px;
  color: #739ca5;
  font: 700 0.59rem var(--ui-font);
  text-transform: uppercase;
}

.planner-profession-path-links {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.planner-profession-path {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  min-height: 27px;
  border: 1px solid #315b64;
  border-radius: 0;
  padding: 4px 8px;
  color: #b9dce2;
  background: #06151a;
  font: 700 0.61rem var(--ui-font);
  text-transform: uppercase;
  cursor: pointer;
}

.planner-profession-path i {
  color: #48bdd2;
  font-size: 0.58rem;
}

.planner-profession-path:hover,
.planner-profession-path:focus-visible {
  border-color: #54c9de;
  color: #fff;
  background: #0b2b33;
  outline: none;
}

.skill-tree {
  display: grid;
  gap: 13px;
  padding: 16px 0 2px;
  overflow-anchor: none;
}

.skill-tree-cap {
  display: flex;
  justify-content: center;
}

.skill-tree-cap .skill-box {
  width: min(230px, 100%);
}

.skill-tree-master::after,
.skill-tree-novice::before,
.skill-track .skill-box + .skill-box::before {
  position: absolute;
  left: 50%;
  width: 1px;
  height: 13px;
  background: #2e6c77;
  content: "";
}

.skill-tree-novice,
.skill-tree-master,
.skill-track .skill-box {
  position: relative;
}

.skill-tree-master::after {
  bottom: -13px;
}

.skill-tree-novice::before {
  top: -13px;
}

.skill-track-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(125px, 1fr));
  gap: 8px;
  align-items: end;
}

.skill-track-grid[data-track-count="1"] {
  grid-template-columns: minmax(125px, 276px);
  width: 100%;
  justify-content: center;
}

.skill-tree.is-force-rank {
  justify-items: center;
}

.force-rank-row {
  position: relative;
  display: grid;
  grid-template-columns: repeat(var(--force-rank-columns, 1), minmax(0, 190px));
  justify-content: center;
  gap: 8px;
  width: 100%;
}

.force-rank-row[data-rank-count="2"] {
  --force-rank-columns: 2;
}

.force-rank-row[data-rank-count="3"] {
  --force-rank-columns: 3;
}

.force-rank-row[data-rank-count="4"] {
  --force-rank-columns: 4;
}

.force-rank-row::before,
.force-rank-row::after {
  position: absolute;
  left: 50%;
  width: 1px;
  height: 13px;
  background: #2e6c77;
  content: "";
}

.force-rank-row::before {
  top: -13px;
}

.force-rank-row::after {
  bottom: -13px;
}

.skill-tree.is-force-rank .skill-tree-master::after,
.skill-tree.is-force-rank .skill-tree-novice::before {
  content: none;
}

.skill-track {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.skill-track .skill-box + .skill-box::before {
  top: -13px;
}

.skill-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 7px;
  align-items: center;
  width: 100%;
  min-height: 48px;
  border: 1px solid #315b64;
  border-radius: 0;
  padding: 7px 8px;
  color: #b9cdd1;
  text-align: left;
  background: #06151a;
  box-shadow: inset 3px 0 0 #173d45;
  cursor: pointer;
}

.skill-box strong {
  min-width: 0;
  font: 700 0.66rem var(--ui-font);
  line-height: 1.3;
  overflow-wrap: anywhere;
  text-transform: uppercase;
}

.skill-box span {
  color: #d2aa64;
  font: 700 0.59rem Verdana, Arial, sans-serif;
  white-space: nowrap;
}

.skill-box:hover {
  border-color: #579eab;
  color: #eef8fa;
  background: #0a252c;
}

.skill-box.is-selected {
  border-color: #5ab7c7;
  color: #fff;
  background: #0a3038;
  box-shadow: inset 4px 0 0 var(--cyan), inset 0 0 16px rgba(0, 190, 225, 0.08);
}

.skill-box.is-selected span {
  color: #f0c979;
}

.planner-skill-detail {
  min-width: 0;
  height: 510px;
  padding: 14px;
  align-self: start;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-color: #34717d #031015;
  scrollbar-width: thin;
  background: #041217;
  overflow-anchor: none;
}

.planner-skill-detail > h3 {
  min-height: 36px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(83, 139, 150, 0.34);
}

.planner-detail-body {
  padding-top: 11px;
}

.planner-detail-description,
.planner-detail-empty {
  margin: 0 0 13px;
  color: #b8cdd1;
  font-size: 0.75rem;
  line-height: 1.5;
}

.planner-detail-empty {
  color: #7699a0;
}

.planner-detail-facts {
  display: grid;
  grid-template-columns: minmax(90px, 1fr) auto;
  gap: 5px 10px;
  margin: 0 0 14px;
  padding: 9px;
  border: 1px solid #214852;
  background: #020b0e;
}

.planner-detail-facts dt,
.planner-detail-facts dd {
  margin: 0;
  font-size: 0.68rem;
}

.planner-detail-facts dt {
  color: #749da5;
  text-transform: uppercase;
}

.planner-detail-facts dd {
  color: #e4bd70;
  text-align: right;
}

.planner-detail-section {
  padding: 10px 0;
  border-top: 1px solid rgba(83, 139, 150, 0.25);
}

.planner-detail-section h4 {
  margin: 0 0 6px;
  color: #79b9c5;
  font: 800 0.65rem var(--ui-font);
  text-transform: uppercase;
}

.planner-detail-section ul {
  margin: 0;
  padding: 0;
  color: #afc5c9;
  font-size: 0.7rem;
  line-height: 1.45;
  list-style: none;
}

.planner-detail-section li {
  overflow-wrap: anywhere;
}

.planner-detail-section li::before {
  margin-right: 5px;
  color: var(--cyan-soft);
  content: ">";
}

@media (max-width: 1100px) {
  .skill-planner-toolbar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .planner-workspace {
    grid-template-columns: minmax(0, 1fr) 240px;
  }

  .skill-track-grid {
    grid-template-columns: repeat(2, minmax(140px, 1fr));
  }
}

@media (max-width: 700px) {
  .detail-view[data-route="skill-planner"] .detail-content {
    padding: 9px;
  }

  .skill-planner-toolbar,
  .planner-workspace {
    grid-template-columns: 1fr;
  }

  .planner-tree-panel {
    border-right: 0;
    border-bottom: 1px solid #2c5c66;
  }

  .planner-profession-path-group {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .planner-profession-path-label {
    padding-top: 0;
  }

  .planner-skill-detail {
    height: 360px;
  }
}

@media (max-width: 440px) {
  .skill-track-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .feature-guide-controls { align-items: stretch; }
  .feature-guide-search { flex-basis: 100%; }
  .feature-guide .detail-list { padding-left: 0; padding-right: 0; }
}
