html {
    scroll-behavior: auto !important;
}

:root {
    --primary-bg: #000000;
    --secondary-bg: #000000;
    --accent-gold: #d4af37;
    --accent-teal: #00d4ff;
    --text-light: #e0e0e0;
    --text-dim: #a0a0a0;
    --border-color: #000000;
    --color-primary: var(--accent-teal);
    --color-secondary: rgba(19, 52, 59, 0.85);
    --color-secondary-hover: rgba(28, 73, 82, 0.95);
    --color-border: rgba(0, 212, 255, 0.4);
    --color-text: var(--text-light);
    --color-btn-primary-text: var(--text-light);
    --radius-base: 8px;
    --radius-lg: 16px;
    --shadow-md: 0 6px 18px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 12px 30px rgba(0, 0, 0, 0.45);
    --duration-fast: 0.2s;
    --duration-normal: 0.3s;
    --ease-standard: ease;
    --font-size-sm: 0.9rem;
    --font-weight-medium: 500;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    height: 100%;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, var(--primary-bg) 0%, #000000 100%);
    color: var(--text-light);
    overflow-x: hidden;
}

body {
    padding: 40px 20px;
}

.container {
    max-width: 1500px;
    min-height: 1100px;
    margin: 0 auto;
    background: var(--secondary-bg);
    border: 2px solid var(--accent-gold);
    border-radius: 12px;
    box-shadow: 0 0 30px green, inset 0 0 20px green;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.header {
    /* background-image: url('images/xmaslights.png');
  background-repeat: repeat-x;
  background-position: top center;
  background-size: auto 80px; */
    padding: 50px 45px 30px 45px;
    border-bottom: 2px solid var(--accent-gold);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    position: relative;
}

.header-center {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-width: 0;
}

.header h1 {
    font-size: 2.5em;
    font-weight: 300;
    letter-spacing: 3px;
    color: var(--accent-gold);
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
    margin: 0 0 10px 0;
}

.header p {
    color: var(--accent-teal);
    font-size: 0.95em;
    letter-spacing: 2px;
}

.header-link,
.header-link:visited,
.header-link:hover,
.header-link:active {
    all: unset;
    color: inherit;
    text-decoration: none;
    cursor: text;
    -webkit-tap-highlight-color: transparent;
}

.probe-toggle {
    position: absolute;
    top: 16px;
    right: 18px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border: 1px solid rgba(212, 175, 55, 0.85);
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.72);
    color: var(--accent-gold);
    font: 700 0.72rem/1 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(0, 128, 0, 0.45);
    transition: border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
    z-index: 5;
}

.probe-toggle:hover,
.probe-toggle:focus-visible {
    border-color: var(--accent-teal);
    color: var(--accent-teal);
    box-shadow: 0 0 14px rgba(0, 212, 255, 0.35);
}

.probe-toggle:focus-visible {
    outline: 2px solid var(--accent-teal);
    outline-offset: 3px;
}

.probe-toggle-status {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--accent-teal);
    box-shadow: 0 0 8px rgba(0, 212, 255, 0.8);
}

.probe-toggle[aria-pressed="false"] {
    color: rgba(212, 175, 55, 0.65);
    border-color: rgba(212, 175, 55, 0.45);
    box-shadow: none;
}

.probe-toggle[aria-pressed="false"] .probe-toggle-status {
    background: rgba(160, 160, 160, 0.75);
    box-shadow: none;
}

.heading-number {
    color: var(--accent-gold);
}

.heading-text {
    color: green;
}

.heading-link {
    margin-right: 8px;
    opacity: 0.4;
    transition: opacity 0.2s ease;
    cursor: pointer;
}

.heading-link:hover {
    opacity: 1 !important;
}

.marquee {
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    color: var(--accent-gold);
    font-size: 1.9rem;
    margin-top: 25px;
}

.marquee span {
    display: inline-block;
    padding-left: 100%;
    animation: borg-marquee 13s linear infinite;
}

.badge-sep {
    vertical-align: middle;
    margin: 0 2px;
    width: 28px;
    height: 28px;
    object-fit: contain;
    image-rendering: crisp-edges;
    display: inline-block;
}

@keyframes borg-marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-100%);
    }
}

.tabs-container {
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid var(--border-color);
    display: grid !important;
    grid-template-columns: repeat(6, max-content);
    grid-template-rows: repeat(2, auto);
    gap: 10px;
    justify-content: center;
    width: fit-content;
    margin: 0 auto;
    padding-top: 12px;
}

.tabs-container::after {
    content: '';
    flex: 0 0 calc((100% - 60px) / 6);
}

.tab-button {
    padding: 12px 30px;
    border: 2px solid var(--accent-gold);
    background: transparent;
    color: var(--text-light);
    cursor: pointer;
    flex: 0 0 auto;
    flex-basis: max-content;
    white-space: nowrap;
    box-sizing: border-box;
    font-size: 1em;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border-radius: 19px;
    font-weight: 500;
    text-decoration: none;
    text-align: center;
}

.tab-button.roster {
    border-color: var(--accent-teal);
}

.tab-button:hover {
    background: rgb(71, 166, 185);
    box-shadow: 0 0 15px var(--accent-gold);
}

.tab-button.active {
    background: green;
    color: var(--accent-gold);
    box-shadow: 0 0 20px var(--accent-gold);
}

.content {
    padding: 40px;
    min-height: 500px;
    display: flex;
    flex-direction: column;
    gap: 30px;
    flex: 1;
}

.tab-content {
    display: none;
    animation: fadeIn 0.4s ease-in;
}

.tab-content.active {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.content-section {
    border: 1px solid var(--accent-gold);
    padding: 20px;
    border-radius: 19px;
    margin-bottom: 20px;
    display: flex;
    gap: 30px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.content-image {
    flex: 0 0 auto;
    height: auto;
    max-width: 35%;
    border: 2px black;
    border-radius: 19px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9em;
    color: var(--primary-bg);
    text-align: center;
    padding: 0;
    font-weight: 500;
    overflow: hidden;
}

.battle-icons {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.content-text {
    flex: 1;
    min-width: 250px;
}

.content-text-left {
    text-align: left;
}

.content-text-center {
    text-align: center;
}

.content-text h2 {
    font-size: 1.8em;
    color: var(--accent-gold);
    margin-bottom: 15px;
    letter-spacing: 1px;
    text-align: center;
}

.content-text p {
    line-height: 1.8;
    color: var(--text-light);
    font-size: 1.3em;
}

.content-text .rank-title {
    margin-bottom: 5px;
    font-size: 2em;
}

.content-text .rank-name {
    color: green;
    margin-bottom: 20px;
    font-size: 1.5em;
}

.highlight {
    color: var(--accent-teal);
    font-weight: 500;
}

.content-image img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

.section-media-center {
    text-align: center;
}

.centered-media-row {
    display: flex;
    justify-content: center;
    gap: 100px;
    align-items: flex-start;
}

.centered-media-wrap {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.text-green {
    color: green !important;
}

.text-green-left {
    color: green !important;
    text-align: left;
}

.text-green-center {
    color: green !important;
    text-align: center;
}

.text-gold {
    color: var(--accent-gold) !important;
}

.text-gold-center {
    color: var(--accent-gold) !important;
    text-align: center;
}

.text-teal {
    color: var(--accent-teal) !important;
}

.gold-list-inline {
    margin: 15px 0 0 20px;
    line-height: 2;
    text-align: left;
    display: inline-block;
    color: var(--accent-gold);
}

.green-list-inline {
    margin: 15px 0 0 20px;
    line-height: 2;
    text-align: left;
    display: inline-block;
    color: green;
}

.link-gold,
.link-gold:visited,
.link-gold:hover,
.link-gold:active {
    color: var(--accent-gold) !important;
}

.links-disclaimer {
    color: green;
    text-align: center;
    font-size: large;
    display: block;
}

.links-directory {
    color: green !important;
}

.links-directory a,
.links-directory a:visited,
.links-directory a:hover,
.links-directory a:active {
    color: var(--accent-gold) !important;
}

.gold-list {
    margin: 15px 0 0 20px;
    line-height: 2;
    text-align: left;
    color: var(--accent-gold);
    font-size: 1.2em;
}

.gold-list-spacious {
    margin: 15px 0 0 20px;
    line-height: 3;
    text-align: left;
    color: var(--accent-gold);
    font-size: 1em;
}

.gold-list-inside {
    margin: 15px 0 0 20px;
    line-height: 2;
    text-align: left;
    display: inline-block;
    font-size: 1.2em;
    list-style-position: inside;
    padding-left: 0;
    color: var(--accent-gold);
}

.pvp-intro-copy {
    color: green !important;
    text-align: center;
    width: 100%;
    line-height: 1.8;
    font-size: 1.3em;
}

.section-heading-left {
    text-align: left !important;
}

.media-45 {
    width: 45% !important;
    max-width: 45% !important;
    height: auto !important;
    border-radius: 8px;
}

.media-35 {
    width: 35% !important;
    max-width: 35% !important;
    height: auto !important;
    border-radius: 8px;
}

.media-30 {
    width: 30% !important;
    max-width: 30% !important;
    height: auto !important;
    border-radius: 8px;
}

.media-25 {
    width: 25% !important;
    max-width: 25% !important;
    height: auto !important;
    border-radius: 8px;
}

.media-15 {
    width: 15% !important;
    max-width: 15% !important;
    height: auto !important;
}

.media-10 {
    width: 10% !important;
    max-width: 10% !important;
    height: auto !important;
}

.media-full {
    max-width: 100%;
    height: auto;
}

.media-75 {
    width: 75% !important;
    max-width: 75% !important;
    height: auto !important;
    border-radius: 8px;
}

.media-65 {
    width: 65% !important;
    max-width: 65% !important;
    height: auto !important;
    border-radius: 8px;
}

.media-tall {
    height: 500px;
    width: auto;
}

.media-wide {
    max-width: 75%;
    max-height: 80vh;
    width: auto;
    height: auto;
    display: block;
}

.media-token-left {
    width: 35%;
    cursor: pointer;
}

.media-token-right {
    width: 55%;
    cursor: pointer;
}

.content-image-end {
    display: flex;
    justify-content: flex-end;
    gap: 20px;
}

.content-text-offset-sm {
    margin-left: 13.5%;
}

.content-text-offset {
    margin-left: 14%;
}

.content-text-offset-md {
    margin-left: 16.7%;
}

.content-text-offset-lg {
    margin-left: 16.5%;
}

.content-stack-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.welcome-hero-image {
    filter: brightness(50%);
}

.rank-title-admiral {
    color: red;
}

.rank-title-commodore {
    color: gold;
}

.rank-title-premier {
    color: rgb(30, 30, 221);
}

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

#links a:visited {
    color: var(--accent-gold);
}

#links a:hover {
    color: var(--accent-teal);
    text-shadow: 0 0 15px rgb(242, 255, 0);
}

.links-console {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.links-quick-panel,
.links-search-panel,
.links-stage {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--accent-gold);
    border-radius: 19px;
    background:
        radial-gradient(circle at top right, rgba(212, 175, 55, 0.12), transparent 35%),
        linear-gradient(135deg, rgba(0, 0, 0, 0.96), rgba(4, 26, 8, 0.92));
    box-shadow: 0 0 24px rgba(0, 128, 0, 0.22), inset 0 0 16px rgba(0, 128, 0, 0.12);
}

.links-quick-panel::before,
.links-search-panel::before,
.links-stage::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: repeating-linear-gradient(180deg,
            rgba(0, 128, 0, 0.05) 0,
            rgba(0, 128, 0, 0.05) 1px,
            transparent 1px,
            transparent 4px);
}

.links-quick-panel,
.links-search-panel,
.links-stage {
    padding: 24px;
}

.links-panel-kicker,
.links-stage-kicker {
    color: green;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    font-size: 0.72rem;
    margin-bottom: 10px;
}

.links-panel-header,
.links-stage-header {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
}

.links-panel-title,
.links-stage-title {
    color: var(--accent-gold);
    margin: 0;
    letter-spacing: 0.06em;
}

.links-panel-copy,
.links-stage-copy {
    color: green;
    line-height: 1.7;
    margin-top: 10px;
    max-width: 780px;
}

.links-panel-badge,
.links-stage-pill,
.links-group-count {
    border-radius: 999px;
    border: 1px solid rgba(212, 175, 55, 0.55);
    background: rgba(0, 0, 0, 0.7);
    color: var(--accent-gold);
    box-shadow: inset 0 0 12px rgba(0, 128, 0, 0.15);
}

.links-panel-badge {
    padding: 10px 14px;
    white-space: nowrap;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-size: 0.78rem;
}

.links-quick-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 14px;
    margin-top: 22px;
}

.links-quick-link,
.links-quick-link:visited {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 100%;
    padding: 16px;
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.82), rgba(7, 40, 11, 0.65));
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.links-quick-link:hover {
    transform: translateY(-2px);
    border-color: rgba(212, 175, 55, 0.65);
    box-shadow: 0 0 18px rgba(0, 128, 0, 0.22);
}

.links-quick-eyebrow {
    color: green;
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.links-quick-title {
    color: var(--accent-gold);
    font-size: 1rem;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.links-quick-copy {
    color: var(--text-light);
    line-height: 1.6;
    font-size: 0.95rem;
}

.links-search-shell {
    position: relative;
    z-index: 1;
    display: flex;
    gap: 12px;
    align-items: center;
    margin-top: 22px;
}

.links-search-label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.links-search-input {
    flex: 1;
    min-width: 0;
    border: 1px solid rgba(212, 175, 55, 0.45);
    border-radius: 999px;
    padding: 14px 18px;
    background: rgba(0, 0, 0, 0.72);
    color: var(--text-light);
    font-size: 0.98rem;
    box-shadow: inset 0 0 12px rgba(0, 128, 0, 0.12);
}

.links-search-input::placeholder {
    color: rgba(224, 224, 224, 0.6);
}

.links-search-input:focus {
    outline: none;
    border-color: rgba(212, 175, 55, 0.75);
    box-shadow: 0 0 14px rgba(0, 128, 0, 0.18), inset 0 0 12px rgba(0, 128, 0, 0.12);
}

.links-search-clear {
    border: 1px solid rgba(212, 175, 55, 0.52);
    border-radius: 999px;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.68);
    color: var(--accent-gold);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.72rem;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.links-search-clear:hover:not(:disabled) {
    border-color: rgba(212, 175, 55, 0.82);
    box-shadow: 0 0 12px rgba(0, 128, 0, 0.18);
}

.links-search-clear:disabled {
    opacity: 0.45;
    cursor: default;
}

.links-search-status {
    position: relative;
    z-index: 1;
    margin-top: 14px;
    color: green;
    line-height: 1.7;
}

.links-layout {
    display: grid;
    grid-template-columns: minmax(0, 230px) minmax(0, 1fr);
    gap: 20px;
    align-items: start;
}

.links-nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: sticky;
    top: 20px;
}

.links-nav-button {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    width: 100%;
    border: 1px solid rgba(212, 175, 55, 0.45);
    border-radius: 999px;
    padding: 12px 16px;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.92), rgba(12, 56, 18, 0.78));
    color: var(--accent-gold);
    cursor: pointer;
    text-align: left;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.links-nav-button:hover {
    transform: translateX(2px);
    border-color: rgba(212, 175, 55, 0.7);
    box-shadow: 0 0 15px rgba(0, 128, 0, 0.25);
}

.links-nav-button.active {
    border-color: #a30000;
    box-shadow: 0 0 18px rgba(163, 0, 0, 0.28), inset 0 0 12px rgba(163, 0, 0, 0.14);
}

.links-nav-label {
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-size: 0.84rem;
}

.links-nav-count {
    min-width: 34px;
    border-radius: 999px;
    padding: 4px 8px;
    background: rgba(0, 0, 0, 0.6);
    color: green;
    text-align: center;
    font-weight: 600;
}

.links-stage {
    padding: 24px;
}

.links-stage-copy-wrap {
    max-width: 820px;
}

.links-stage-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.links-stage-pill {
    padding: 9px 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-size: 0.72rem;
}

.links-groups {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 22px;
}

.links-group {
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-radius: 16px;
    background: rgba(0, 0, 0, 0.52);
    overflow: hidden;
}

.links-group[open] {
    border-color: rgba(212, 175, 55, 0.42);
    box-shadow: inset 0 0 16px rgba(0, 128, 0, 0.08);
}

.links-group summary {
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    cursor: pointer;
}

.links-group summary::-webkit-details-marker {
    display: none;
}

.links-group-heading {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.links-group-title {
    color: var(--accent-gold);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.86rem;
}

.links-group-copy {
    color: green;
    line-height: 1.6;
}

.links-group-count {
    min-width: 42px;
    padding: 7px 10px;
    text-align: center;
    font-weight: 600;
}

.links-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 14px;
    padding: 0 20px 20px;
}

.links-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 14px;
    min-height: 100%;
    padding: 16px;
    border-radius: 16px;
    border: 1px solid rgba(0, 128, 0, 0.45);
    background: linear-gradient(145deg, rgba(0, 0, 0, 0.82), rgba(8, 36, 12, 0.64));
    box-shadow: inset 0 0 12px rgba(0, 128, 0, 0.08);
}

.links-card-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.links-card-eyebrow {
    color: green;
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.links-card-title,
.links-card-title:visited {
    color: var(--accent-gold) !important;
    font-size: 1.03rem;
    line-height: 1.4;
    letter-spacing: 0.04em;
    text-decoration: none;
}

.links-card-title:hover {
    color: var(--accent-gold) !important;
}

.links-card-copy {
    color: var(--text-light);
    line-height: 1.7;
}

.links-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 14px;
    margin-top: auto;
}

.links-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.links-card-tag {
    border-radius: 999px;
    border: 1px solid rgba(212, 175, 55, 0.38);
    padding: 5px 8px;
    font-size: 0.68rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: green;
    background: rgba(0, 0, 0, 0.65);
}

.links-card-open,
.links-card-open:visited {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid rgba(212, 175, 55, 0.52);
    background: rgba(0, 0, 0, 0.5);
    color: var(--accent-gold) !important;
    letter-spacing: 0.16em;
    font-size: 0.7rem;
    text-transform: uppercase;
    text-decoration: none;
}

.links-card-open:hover {
    color: var(--accent-gold) !important;
    box-shadow: 0 0 12px rgba(0, 128, 0, 0.2);
}

.links-empty-state {
    position: relative;
    z-index: 1;
    margin-top: 22px;
    padding: 22px;
    border-radius: 16px;
    border: 1px solid rgba(212, 175, 55, 0.25);
    background: rgba(0, 0, 0, 0.48);
}

.links-empty-title {
    color: var(--accent-gold);
    margin: 0 0 10px;
}

.links-empty-copy {
    color: green;
    line-height: 1.7;
}

.lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    animation: fadeIn 0.3s ease-in;
}

.lightbox.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90vh;
    position: relative;
    border-radius: 8px;
}

.lightbox-content img,
#lightbox-image.lightbox-content {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    border-radius: 8px;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: var(--accent-teal);
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
}

.lightbox-close:hover {
    color: var(--accent-gold);
}

.page-footer {
    text-align: center;
    color: var(--accent-gold);
    margin-top: auto;
    padding-bottom: 10px;
    font-size: 0.9em;
}

.roe-title {
    color: var(--accent-gold);
    text-align: center;
    margin-bottom: 0px;
}

.roe-subtitle {
    color: var(--accent-gold);
    text-align: center;
    margin-top: 0;
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(5, 150px);
    gap: 15px;
    margin-bottom: 20px;
}

.tips-cell {
    border: 1px solid var(--accent-gold);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    text-align: center;
}

.tips-icon {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.tips-text {
    color: var(--text-light);
    font-size: 0.9em;
    line-height: 1.6;
}

.tips-title {
    color: var(--accent-gold);
}

.tips-desc {
    color: var(--accent-teal);
    text-align: center;
}

.tips-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
}

.tips-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.tips-modal-content {
    background: var(--secondary-bg);
    border: 2px solid var(--accent-gold);
    border-radius: 12px;
    padding: 30px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}

.tips-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    color: var(--accent-teal);
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.tips-modal-close:hover {
    color: var(--accent-gold);
}

.tips-modal-boxes {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

.tips-modal-box {
    border: 1px solid var(--accent-gold);
    padding: 15px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.3);
}

#probe-layer {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    visibility: hidden;
}

body.probes-ready #probe-layer {
    visibility: visible;
}

body.probes-disabled #probe-layer {
    display: none;
}

.probe {
    position: absolute;
    width: 125px;
    height: auto;
}

.ship-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 100%;
    margin-left: 280px;
    margin-right: 20px;
}

.content-image .shipimgages {
    width: 10%;
    height: auto;
    max-width: 10%;
    max-height: none;
    object-fit: contain;
    margin-right: 265px;
}

.image-text-pair {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    flex: 1;
    min-width: 250px;
}

.image-text-pair h3 {
    color: var(--accent-gold);
    text-align: center;
    margin: 0;
    font-size: 1.4em;
    letter-spacing: 1px;
}

.image-text-pair-content {
    padding: 20px;
    display: flex;
    flex-direction: row;
    gap: 30px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.content-image-native {
    flex: 0 0 auto;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    overflow: hidden;
}

.content-image-native img {
    width: auto;
    height: 250px;
    border-radius: 8px;
}

.image-text-pair h3:nth-of-type(2) {
    margin-top: 45px;
}

.terminology-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.term-tooltip {
    position: relative;
    padding: 8px 12px;
    background-color: var(--color-secondary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-base);
    cursor: help;
    font-weight: var(--font-weight-medium);
    color: var(--accent-gold);
    text-align: center;
    transition: all var(--duration-fast) var(--ease-standard);
}

.term-tooltip:hover {
    background-color: var(--color-secondary-hover);
    box-shadow: var(--shadow-md);
}

.tooltip-text {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    z-index: 1000;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(19, 52, 59, 0.95);
    color: var(--accent-gold);
    text-align: center;
    padding: 12px 16px;
    border-radius: var(--radius-base);
    white-space: normal;
    width: 250px;
    font-size: var(--font-size-sm);
    font-weight: normal;
    transition: opacity var(--duration-normal) var(--ease-standard);
    box-shadow: var(--shadow-lg);
    border: 2px solid var(--color-primary);
}

.term-tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

.term-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.term-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: rgba(19, 52, 59, 0.95);
    padding: 24px;
    border-radius: var(--radius-lg);
    max-width: 400px;
    width: 90%;
    box-shadow: var(--shadow-lg);
    position: relative;
    border: 2px solid var(--color-primary);
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--color-text);
}

.modal-content h3 {
    margin-top: 0;
    color: var(--accent-gold);
}

.modal-content p {
    color: var(--accent-gold);
    text-align: center;
}

.landscape-prompt {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(19, 52, 59, 0.95);
    color: var(--color-btn-primary-text);
    padding: 16px;
    text-align: center;
    z-index: 9999;
    box-shadow: var(--shadow-lg);
    border-bottom: 3px solid var(--color-primary);
}

.landscape-prompt.active {
    display: block;
}

.landscape-prompt-content {
    position: relative;
}

.landscape-prompt p {
    margin: 0;
    font-weight: var(--font-weight-medium);
    color: var(--accent-gold);
}

.landscape-prompt-close {
    position: absolute;
    top: 50%;
    right: 16px;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--accent-gold);
    font-size: 24px;
    cursor: pointer;
    padding: 0;
}

.video-container {
    width: 100%;
    max-width: 640px;
    margin: 20px auto 0;
}

.video-container iframe {
    display: block;
    width: 100%;
    max-width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    border-radius: 19px;
}

#pvpfinder .pvp-root {
    --borg-black: #000000;
    --borg-green: #d4af37;
    --borg-dark-green: green;
    --borg-medium-green: green;
    --borg-gray: #000000;
    --borg-grid: #003300;
    --text-green: green;
    --text-dim-green: green;
}

#pvpfinder .pvp-wrapper {
    font-family: 'Courier New', monospace;
    background: var(--borg-black);
    color: var(--text-green);
    padding: 20px;
    width: 100%;
    display: flex;
    justify-content: center;
}

#pvpfinder .lcars-container {
    background: var(--borg-black);
    border: 2px solid var(--borg-green);
    border-radius: 8px;
    padding: 25px;
    max-width: 400px;
    width: 100%;
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.2), inset 0 0 15px rgba(0, 170, 34, 0.1);
    position: relative;
}

#pvpfinder .lcars-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(0deg,
            rgba(0, 255, 65, 0.03) 0px,
            rgba(0, 255, 65, 0.03) 1px,
            transparent 1px,
            transparent 2px);
    pointer-events: none;
    border-radius: 8px;
}

#pvpfinder .pvp-header {
    text-align: center;
    margin-bottom: 30px;
    border-bottom: 2px solid var(--borg-green);
    padding-bottom: 15px;
}

#pvpfinder .pvp-header h2 {
    font-size: 18px;
    letter-spacing: 3px;
    color: var(--borg-green);
    text-shadow: 0 0 8px var(--borg-green);
    margin-bottom: 5px;
}

#pvpfinder .pvp-header p {
    font-size: 10px;
    color: var(--text-dim-green);
    letter-spacing: 2px;
}

#pvpfinder .display-panel {
    background: var(--borg-grid);
    border: 1px solid var(--borg-dark-green);
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 20px;
    box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.8);
}

#pvpfinder .display-label {
    font-size: 9px;
    color: var(--text-dim-green);
    letter-spacing: 2px;
    margin-bottom: 6px;
    text-transform: uppercase;
}

#pvpfinder .level-display {
    font-size: 32px;
    font-weight: bold;
    color: var(--borg-green);
    text-align: center;
    text-shadow: 0 0 8px var(--borg-green);
    margin-bottom: 15px;
    min-height: 45px;
    font-family: 'Courier New', monospace;
    letter-spacing: 4px;
}

#pvpfinder .results-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 10px;
}

#pvpfinder .result-card {
    background: var(--borg-black);
    border: 1px solid var(--text-dim-green);
    border-radius: 4px;
    padding: 8px;
    text-align: center;
    box-shadow: 0 0 6px rgba(0, 170, 34, 0.3);
}

#pvpfinder .result-label {
    font-size: 8px;
    color: var(--text-dim-green);
    letter-spacing: 1px;
    margin-bottom: 4px;
    text-transform: uppercase;
}

#pvpfinder .result-value {
    font-size: 22px;
    color: var(--borg-green);
    font-weight: bold;
    text-shadow: 0 0 6px var(--borg-green);
    font-family: 'Courier New', monospace;
    letter-spacing: 2px;
}

#pvpfinder .keypad {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 6px;
    margin-bottom: 15px;
}

#pvpfinder .key {
    aspect-ratio: 1;
    border: 1px solid var(--borg-green);
    background: var(--borg-gray);
    color: var(--borg-green);
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.1s ease;
    box-shadow: 0 0 6px rgba(0, 255, 65, 0.1);
    font-family: 'Courier New', monospace;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
    min-height: 32px;
}

#pvpfinder .key:hover {
    background: var(--borg-dark-green);
    color: var(--borg-green);
    box-shadow: 0 0 12px rgba(0, 255, 65, 0.4);
    transform: scale(1.05);
}

#pvpfinder .key:active {
    transform: scale(0.98);
    box-shadow: 0 0 15px rgba(0, 255, 65, 0.6);
}

#pvpfinder .key.disabled {
    opacity: 0.3;
    cursor: not-allowed;
    background: var(--borg-gray);
    border-color: var(--borg-gray);
}

#pvpfinder .key.disabled:hover {
    background: var(--borg-gray);
    color: var(--text-dim-green);
    box-shadow: 0 0 6px rgba(0, 255, 65, 0.05);
    transform: scale(1);
}

#pvpfinder .control-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}

#pvpfinder .btn-control {
    padding: 8px;
    border: 1px solid var(--borg-green);
    background: var(--borg-gray);
    color: var(--borg-green);
    font-size: 10px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 0 6px rgba(0, 255, 65, 0.1);
    font-family: 'Courier New', monospace;
}

#pvpfinder .btn-control:hover {
    background: var(--borg-dark-green);
    color: var(--borg-green);
    box-shadow: 0 0 12px rgba(0, 255, 65, 0.4);
}

#pvpfinder .btn-control:active {
    transform: scale(0.98);
}

#pvpfinder .status-bar {
    font-size: 8px;
    color: var(--text-dim-green);
    text-align: center;
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px solid var(--borg-dark-green);
    letter-spacing: 1px;
}

#pvpfinder .status-indicator {
    display: inline-block;
    width: 6px;
    height: 6px;
    background: var(--borg-green);
    border-radius: 50%;
    margin-right: 8px;
    animation: pvp-pulse 1.5s infinite;
}

@keyframes pvp-pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

#pvpfinder .range-indicator {
    display: none;
    margin-top: 8px;
    padding: 8px;
    background: var(--borg-black);
    border-left: 2px solid var(--borg-green);
    font-size: 9px;
    color: var(--text-green);
    border-radius: 3px;
    text-align: center;
}

#pvpfinder .range-text {
    letter-spacing: 1px;
}

@media (max-width: 480px) {
    #pvpfinder .lcars-container {
        padding: 15px;
    }

    #pvpfinder .pvp-header h2 {
        font-size: 14px;
    }

    #pvpfinder .level-display {
        font-size: 24px;
    }

    #pvpfinder .result-value {
        font-size: 16px;
    }

    #pvpfinder .key {
        font-size: 12px;
        min-height: 28px;
    }

    .links-quick-panel,
    .links-search-panel,
    .links-stage {
        padding: 18px;
    }

    .links-panel-header,
    .links-stage-header,
    .links-card-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .links-search-shell {
        flex-direction: column;
        align-items: stretch;
    }

    .links-group summary {
        padding: 16px;
    }

    .links-card-grid {
        padding: 0 16px 16px;
    }
}

@media (orientation: landscape) {
    .landscape-prompt.active {
        display: none;
    }
}

@media (max-width: 768px) {

    .video-container {
        width: 100%;
        max-width: 100%;
        margin: 20px auto 0;
    }

    #icons .content-section {
        flex-direction: row;
        align-items: flex-start;
    }

    #icons .content-image {
        max-width: 25%;
        justify-content: flex-start;
    }

    #icons .content-text {
        flex: 1;
    }

    #icons .content-text h2 {
        text-align: center;
    }

    .header h1 {
        font-size: 1.8em;
        text-align: center;
    }

    .content {
        padding: 20px;
        min-height: auto;
    }

    .content-section {
        flex-direction: column-reverse;
    }

    .content-image {
        flex: 0 0 auto;
        width: 100%;
        height: auto;
    }

    .tabs-container {
        gap: 5px;
        grid-template-columns: repeat(3, max-content);
        grid-template-rows: repeat(4, auto);
        gap: 8px;
    }

    .tab-button {
        padding: 10px 20px;
        font-size: 0.9em;
    }

    .header {
        padding: 80px 20px 20px 20px;
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .probe-toggle {
        top: 14px;
        right: 14px;
        padding: 5px 8px;
        font-size: 0.65rem;
    }

    .header img {
        width: 110px;
        opacity: 0.5;
    }

    .marquee {
        width: 100%;
        margin-left: 0;
        margin-top: 10px;
        font-size: 1.2rem;
    }

    .marquee span {
        padding-left: 100%;
    }

    .container img {
        max-width: 50%;
        height: auto;
    }

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

    .links-nav {
        position: static;
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 4px;
    }

    .links-nav-button {
        min-width: 150px;
    }

    .links-stage-header,
    .links-panel-header,
    .links-card-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .links-search-shell {
        flex-direction: column;
        align-items: stretch;
    }

    .links-stage-stats {
        justify-content: flex-start;
    }

    .links-quick-grid,
    .links-card-grid {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .header {
        display: flex;
        justify-content: center;
        align-items: flex-start;
    }

    .header h1 {
        flex: 0 1 auto;
        text-align: center;
        width: 100%;
    }
}

@media (hover: none) and (pointer: coarse) {
    .term-tooltip:hover {
        background-color: var(--color-secondary);
        box-shadow: none;
    }

    .term-tooltip:hover .tooltip-text {
        visibility: hidden;
        opacity: 0;
    }
}

@media (max-width: 768px) and (orientation: portrait) {
    .marquee .badge-sep {
        margin: 0;
        width: 30px;
        height: 30px;
    }
}

.mapcontainer {
    --bs-gutter-x: 1.5rem;
    --bs-gutter-y: 0;
    width: 100%;
    padding-right: calc(var(--bs-gutter-x) * .5);
    padding-left: calc(var(--bs-gutter-x) * .5);
    margin-right: auto;
    margin-left: auto
}

@media (min-width:1200px) {

    .mapcontainer,
    .mapcontainer-lg,
    .mapcontainer-md,
    .mapcontainer-sm,
    .mapcontainer-xl {
        max-width: 1140px
    }
}

.map-note {
    color: var(--accent-gold);
    text-align: center;
}

.map-stage {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.territory-map-svg {
    width: 100%;
    height: 900px;
    display: block;
}

svg {
    background-color: transparent;
}

line,
circle,
path {
    pointer-events: none;
}

.svgSystem {
    stroke: black;
    stroke-width: 3;
    fill: rgb(187, 179, 179);
    fill-opacity: 0.7;
    stroke-linejoin: round;
    stroke-dasharray: 0;
}

.svgSystemConnection {
    stroke: rgb(0, 0, 0);
    stroke-width: 2;
}

.svgSystemCircle {
    fill: rgb(0, 0, 0);
}

.svgIsoIcon {
    fill: rgb(0, 0, 0);
    fill-opacity: 0.4;
}

.territory-name-tag {
    pointer-events: none;
    font-size: 21px;
    fill: white;
    text-shadow: rgba(0, 0, 0, 0.8) 3px 3px 2px;
}

.territory-fill-snow {
    fill: rgb(1, 75, 61);
}

.territory-fill-tag {
    fill: rgb(68, 25, 163);
}

.territory-fill-mc {
    fill: rgb(187, 125, 10);
}

.territory-fill-tdi {
    fill: rgb(38, 210, 141);
}

.territory-fill-borg {
    fill: #8157a9;
}

.territory-fill-nwo {
    fill: rgb(64, 132, 8);
}

.territory-fill-gang {
    fill: yellow;
}

.territory-fill-ua {
    fill: rgb(204, 255, 0);
}

.territory-fill-rif {
    fill: rgb(55, 188, 28);
}

.territory-fill-sh {
    fill: brown;
}

@keyframes pulse-glow {

    0%,
    100% {
        stroke-opacity: 1;
    }

    50% {
        stroke-opacity: 0.3;
    }
}

.svgSystem.glow-system {
    stroke: #00ff00;
    stroke-width: 3;
    filter: url(#green-glow);
    animation: pulse-glow 1.5s ease-in-out infinite;
}
