/* NeuroState — base stylesheet (layout & structure) */

:root {
  --color-bg: #1B263B;
  --color-surface: #243447;
  --color-text: #FFFFFF;
  --color-muted: #A9B4C4;
  --color-accent: #00CFC1;
  --color-accent-bright: #18FFFF;
  --font-base: system-ui, -apple-system, "Segoe UI", sans-serif;

  --glass-bg: rgba(36, 52, 71, 0.55);
  --glass-bg-strong: rgba(36, 52, 71, 0.78);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glow-accent: rgba(24, 255, 255, 0.45);
  --glow-accent-soft: rgba(0, 207, 193, 0.25);
  --radius: 10px;
  --radius-lg: 16px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-base);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.5;
  position: relative;
}

/* Fixed ambient background: soft glows + faint grid, pure CSS, no images */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(720px circle at 12% -10%, rgba(0, 207, 193, 0.14), transparent 60%),
    radial-gradient(640px circle at 100% 20%, rgba(24, 255, 255, 0.08), transparent 55%),
    radial-gradient(900px circle at 50% 110%, rgba(0, 207, 193, 0.08), transparent 60%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(ellipse 100% 60% at 50% 0%, #000 40%, transparent 90%);
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

.skip-link {
  position: absolute;
  top: -3rem;
  left: 1rem;
  z-index: 999;
  background: var(--color-accent);
  color: var(--color-bg);
  padding: 0.6rem 1rem;
  border-radius: 0 0 6px 6px;
  font-weight: 600;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 0;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  background: var(--glass-bg-strong);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--glass-border);
  position: sticky;
  top: 0;
  z-index: 50;
  transition: box-shadow 0.3s ease, background 0.3s ease;
}

.site-header.is-scrolled {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35), 0 1px 0 var(--glow-accent-soft);
}

.site-header img.logo {
  height: 40px;
  transition: filter 0.3s ease, transform 0.3s ease;
}

.site-header img.logo:hover {
  filter: drop-shadow(0 0 10px var(--glow-accent));
  transform: translateY(-1px);
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-text);
  transition: transform 0.25s var(--ease-out), opacity 0.2s ease, background 0.2s ease;
}

.nav-toggle:hover span {
  background: var(--color-accent-bright);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.site-nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--glass-bg-strong);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--glass-border);
  display: block;
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.3s var(--ease-out);
}

.site-nav.open {
  max-height: 32rem;
}

.site-nav ul {
  display: flex;
  flex-direction: column;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0.5rem 0;
}

.site-nav ul li a {
  display: block;
  padding: 0.75rem 1.25rem;
  position: relative;
}

main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.25rem;
}

.hero {
  position: relative;
  background: var(--color-surface);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 2.5rem 1.25rem;
  text-align: center;
  margin-bottom: 2rem;
  overflow: hidden;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(560px circle at 50% -10%, var(--glow-accent-soft), transparent 65%);
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-accent-bright), transparent);
  opacity: 0.7;
}

.hero img {
  max-width: 100%;
  border-radius: var(--radius);
  box-shadow: 0 0 0 1px var(--glass-border), 0 12px 32px rgba(0, 0, 0, 0.4);
  transition: box-shadow 0.4s ease, transform 0.4s ease;
}

.hero img:hover {
  box-shadow: 0 0 0 1px var(--glow-accent), 0 16px 40px rgba(0, 0, 0, 0.45), 0 0 32px var(--glow-accent-soft);
  transform: translateY(-2px);
}

.hero h1 {
  text-shadow: 0 0 24px var(--glow-accent-soft);
}

.hero .tagline {
  color: var(--color-muted);
  max-width: 600px;
  margin: 0.5rem auto 1.5rem;
}

.hero-features {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 0.75rem;
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  color: var(--color-muted);
  font-size: 0.85rem;
}

.hero-features li {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  padding: 0.3rem 0.75rem;
  transition: border-color 0.2s ease, transform 0.2s ease, color 0.2s ease;
}

.hero-features li:hover {
  border-color: var(--glow-accent-soft);
  color: var(--color-text);
  transform: translateY(-1px);
}

.hero-features li::before {
  content: "\2713";
  color: var(--color-accent);
  margin-right: 0.35rem;
}

.hero-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

.video-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  overflow: hidden;
  background: var(--color-surface);
}

.video-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.btn {
  position: relative;
  display: inline-block;
  padding: 0.7rem 1.5rem;
  border-radius: 6px;
  font-weight: 600;
  border: none;
  font-size: 1rem;
  cursor: pointer;
  font-family: inherit;
  overflow: hidden;
  isolation: isolate;
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(115deg, transparent 20%, rgba(255, 255, 255, 0.35) 50%, transparent 80%);
  transform: translateX(-120%);
}

.btn:hover::before {
  transform: translateX(120%);
  transition: transform 0.6s var(--ease-out);
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-bright));
  color: var(--color-bg);
}

.btn-secondary {
  background: var(--glass-bg);
  border: 1px solid var(--color-accent);
  color: var(--color-accent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.section {
  margin-bottom: 3rem;
}

.section h2 {
  position: relative;
  margin-bottom: 1.25rem;
  padding-left: 0.9rem;
}

.section h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.15em;
  bottom: 0.15em;
  width: 4px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--color-accent-bright), var(--color-accent));
  box-shadow: 0 0 10px var(--glow-accent-soft);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}

.grid + .btn,
.grid + .tip,
.timeline + .tip {
  margin-top: 1.5rem;
}

.grid-departments {
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
}

.card {
  position: relative;
  background: linear-gradient(180deg, var(--glass-bg-strong), rgba(36, 52, 71, 0.4));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, var(--glow-accent), transparent 40%);
  opacity: 0;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(220px circle at var(--mx, 50%) var(--my, 50%), rgba(24, 255, 255, 0.12), transparent 70%);
  opacity: 0;
  pointer-events: none;
}

.card h3 {
  margin-top: 0;
}

.card h4 {
  margin: 1rem 0 0.5rem;
  font-size: 0.8125rem;
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.card-meta {
  margin: 0.25rem 0 0;
  font-size: 0.875rem;
  color: var(--color-muted);
}

.card-meta strong {
  color: var(--color-text);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.tag-list li {
  background: rgba(0, 207, 193, 0.12);
  color: var(--color-accent);
  border-radius: 999px;
  padding: 0.2rem 0.6rem;
  font-size: 0.75rem;
  font-weight: 600;
}

.card-icon {
  display: block;
  font-size: 1.75rem;
  line-height: 1;
  margin-bottom: 0.5rem;
}

/* Numbered step badge (e.g. beginner-guide step cards) */
.step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  margin-bottom: 0.75rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-bright));
  color: var(--color-bg);
  font-weight: 700;
  font-size: 0.9375rem;
}

/* Staff profile cards */
.profile-card {
  text-align: center;
}

.profile-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4.5rem;
  height: 4.5rem;
  margin: 0 auto 0.75rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-bright));
  color: var(--color-bg);
  font-weight: 700;
  font-size: 1.5rem;
}

.profile-card .card-meta {
  text-align: left;
}

.profile-card p:not(.card-meta) {
  text-align: left;
}

.profile-role {
  display: block;
  color: var(--color-muted);
  font-size: 0.875rem;
  margin-top: -0.25rem;
  margin-bottom: 0.5rem;
}

.steps {
  padding-left: 1.25rem;
}

.steps li {
  margin-bottom: 0.5rem;
}

.steps li p {
  margin: 0.15rem 0 0;
  color: var(--color-muted);
}

.thumb {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--color-surface);
  border-radius: var(--radius);
  border: 1px solid var(--glass-border);
  padding: 0;
  margin: 0 0 0.75rem;
  cursor: pointer;
  overflow: hidden;
}

/* FAQ accordion */
.accordion-item {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.accordion-item.open,
.accordion-item:hover {
  border-color: var(--glow-accent-soft);
}

.accordion-trigger {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  background: none;
  border: none;
  color: var(--color-text);
  font-size: 1rem;
  font-family: inherit;
  font-weight: 600;
  text-align: left;
  padding: 1rem 1.25rem;
  cursor: pointer;
}

.accordion-icon {
  color: var(--color-accent);
  font-size: 1.25rem;
}

.accordion-panel {
  display: grid;
  grid-template-rows: 0fr;
}

.accordion-panel > p {
  overflow: hidden;
  margin: 0;
  padding: 0 1.25rem;
}

.accordion-item.open .accordion-panel {
  grid-template-rows: 1fr;
}

.accordion-item.open .accordion-panel > p {
  padding: 0 1.25rem 1rem;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(6, 10, 18, 0.85);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 2rem;
  z-index: 100;
}

.lightbox[hidden] {
  display: none;
}

.lightbox img {
  max-width: 100%;
  max-height: 75vh;
  border-radius: var(--radius);
  box-shadow: 0 0 0 1px var(--glass-border), 0 20px 60px rgba(0, 0, 0, 0.55);
}

.lightbox-caption {
  color: var(--color-text);
}

.lightbox-close {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: var(--color-text);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

.cta {
  position: relative;
  text-align: center;
  background: var(--color-surface);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 3rem 2rem;
  overflow: hidden;
}

.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(480px circle at 50% 0%, var(--glow-accent-soft), transparent 65%);
  pointer-events: none;
}

/* Server statistics */
.stats-note {
  color: var(--color-muted);
  font-size: 0.875rem;
  margin-top: -0.5rem;
}

.grid-stats .stat {
  background: linear-gradient(180deg, var(--glass-bg-strong), rgba(36, 52, 71, 0.4));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.grid-stats .stat:hover {
  transform: translateY(-3px);
  border-color: var(--glow-accent-soft);
}

.stat-number {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-accent);
  text-shadow: 0 0 18px var(--glow-accent-soft);
}

.stat-label {
  color: var(--color-muted);
  font-size: 0.875rem;
}

/* Recruitment status badges */
.status {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.status-open {
  background: rgba(76, 199, 116, 0.15);
  color: #4cc774;
}

.status-limited {
  background: rgba(240, 180, 60, 0.15);
  color: #f0b43c;
}

.status-closed {
  background: rgba(220, 80, 80, 0.15);
  color: #dc5050;
}

/* Generic tag pill (e.g. career style tags) */
.pill {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(0, 207, 193, 0.15);
  color: var(--color-accent);
}

/* Recent updates log */
.update-log {
  list-style: none;
  margin: 0;
  padding: 0;
}

.update-log li {
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.update-date {
  color: var(--color-accent);
  font-weight: 600;
  margin-right: 0.5rem;
}

/* Patch notes: version badges, category tags, update cards */
.version-badge {
  display: inline-block;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  font-family: "Courier New", ui-monospace, monospace;
  font-weight: 700;
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-bright));
  color: var(--color-bg);
}

.version-badge-latest {
  box-shadow: 0 0 0 4px var(--glow-accent-soft);
}

.patch-tag {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 6px;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-right: 0.5rem;
  flex-shrink: 0;
}

.patch-tag-added {
  background: rgba(76, 199, 116, 0.15);
  color: #4cc774;
}

.patch-tag-changed {
  background: rgba(240, 180, 60, 0.15);
  color: #f0b43c;
}

.patch-tag-fixed {
  background: rgba(0, 207, 193, 0.15);
  color: var(--color-accent);
}

.patch-tag-removed {
  background: rgba(220, 80, 80, 0.15);
  color: #dc5050;
}

.patch-list {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.patch-list li {
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.patch-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.patch-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

/* Interactive map */
.city-map {
  position: relative;
  width: 100%;
  border-radius: 8px;
  background: var(--color-surface);
  margin-bottom: 1.5rem;
  overflow: hidden;
  line-height: 0;
}

.city-map img {
  width: 100%;
  height: auto;
  display: block;
}

.map-pin {
  position: absolute;
  width: 16px;
  height: 16px;
  margin: -8px 0 0 -8px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--color-accent);
  cursor: pointer;
  padding: 0;
  box-shadow: 0 0 0 0 var(--glow-accent);
}

.filter-bar {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.filter-btn {
  background: var(--glass-bg);
  color: var(--color-text);
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.4rem 1rem;
  cursor: pointer;
  font-size: 0.875rem;
  transition: border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.filter-btn.active {
  border-color: var(--color-accent);
  color: var(--color-accent);
  box-shadow: 0 0 12px var(--glow-accent-soft);
}

.location-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.location-item {
  background: var(--color-surface);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 1rem;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.location-item:hover {
  transform: translateY(-3px);
  border-color: var(--glow-accent-soft);
}

.location-item .tag {
  color: var(--color-muted);
  font-size: 0.75rem;
  text-transform: uppercase;
}

.site-footer {
  position: relative;
  text-align: center;
  padding: 2rem 1.5rem 1.5rem;
  color: var(--color-muted);
  font-size: 0.875rem;
  border-top: 1px solid var(--glass-border);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: min(320px, 60%);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-accent-bright), transparent);
  opacity: 0.6;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.25rem;
  margin-bottom: 1rem;
  font-size: 0.8125rem;
}

.footer-nav a {
  color: var(--color-muted);
}

/* Social media footer icons */
.social-footer {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  color: var(--color-muted);
  transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.social-icon svg {
  width: 1.1rem;
  height: 1.1rem;
  fill: currentColor;
}

.social-icon:hover,
.social-icon:focus-visible {
  color: var(--color-accent-bright);
  border-color: var(--glow-accent-soft);
  transform: translateY(-2px);
}

.social-icon.placeholder {
  opacity: 0.45;
}

.social-icon.placeholder:hover,
.social-icon.placeholder:focus-visible {
  opacity: 0.7;
  transform: none;
}

/* Creator / content-partner cards (media kit) */
.creator-card {
  text-align: center;
}

.creator-card .social-footer {
  margin: 0.75rem 0 0;
}

/* Back to top */
.back-to-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--glass-border);
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-bright));
  color: var(--color-bg);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  z-index: 50;
}

/* Darker theme variant (e.g. criminal progression) — same brand vars, deeper background */
body.theme-underworld {
  --color-bg: #0B121F;
  --color-surface: #141E30;
}

body.theme-underworld .card {
  border-color: rgba(255, 255, 255, 0.05);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45);
}

body.theme-underworld .hero {
  background: linear-gradient(180deg, #141E30 0%, #0B121F 100%);
  border: 1px solid rgba(0, 207, 193, 0.08);
}

/* Difficulty badges — reuses status color language, adds an extreme tier */
.difficulty {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.difficulty-easy {
  background: rgba(76, 199, 116, 0.15);
  color: #4cc774;
}

.difficulty-medium {
  background: rgba(240, 180, 60, 0.15);
  color: #f0b43c;
}

.difficulty-hard {
  background: rgba(220, 80, 80, 0.15);
  color: #dc5050;
}

.difficulty-extreme {
  background: rgba(217, 43, 90, 0.18);
  color: #ff4d7a;
}

/* Performance tier badges (vehicle showcase) */
.tier {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.tier-street {
  background: rgba(76, 199, 116, 0.15);
  color: #4cc774;
}

.tier-sport {
  background: rgba(240, 180, 60, 0.15);
  color: #f0b43c;
}

.tier-super {
  background: rgba(220, 80, 80, 0.15);
  color: #dc5050;
}

.tier-hyper {
  background: rgba(217, 43, 90, 0.18);
  color: #ff4d7a;
}

/* Risk / reward meters */
.meter-group {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.meter-row {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  align-items: center;
  gap: 0.6rem;
}

.meter-label {
  font-size: 0.75rem;
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.meter {
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.meter-fill {
  height: 100%;
  border-radius: 999px;
}

.meter-fill.risk {
  background: linear-gradient(90deg, #f0b43c, #dc5050);
}

.meter-fill.reward {
  background: linear-gradient(90deg, var(--color-accent), var(--color-accent-bright));
}

/* Tip callouts (e.g. player guides) */
.tip {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  background: rgba(0, 207, 193, 0.08);
  border: 1px solid rgba(0, 207, 193, 0.2);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  margin-top: 1rem;
}

.tip-icon {
  font-size: 1.25rem;
  line-height: 1.4;
}

.tip p {
  margin: 0;
  color: var(--color-text);
}

.tip strong {
  color: var(--color-accent);
}

/* Static map preview (links out to the interactive map) */
.map-preview {
  display: block;
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  margin-top: 1rem;
}

.map-preview img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 7;
  object-fit: cover;
  background: var(--color-surface);
}

.map-preview-label {
  position: absolute;
  right: 0.75rem;
  bottom: 0.75rem;
  background: rgba(11, 18, 31, 0.85);
  color: var(--color-text);
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
}

.map-preview:hover .map-preview-label,
.map-preview:focus-visible .map-preview-label {
  color: var(--color-accent);
}

/* Cinematic artwork panel (large decorative section break — lore pages) */
.art-panel {
  position: relative;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 3.5rem 1.5rem;
  margin: 2rem 0;
  text-align: center;
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(160deg, var(--color-surface), var(--color-bg));
}

.art-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, #000 40%, transparent 90%);
}

.art-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(480px circle at 50% 30%, var(--glow-accent-soft), transparent 70%);
}

.art-panel h2 {
  margin: 0 auto;
  max-width: 640px;
  padding-left: 0;
  text-shadow: 0 0 24px var(--glow-accent-soft);
}

.art-panel h2::before {
  display: none;
}

.art-panel p {
  margin: 0.75rem auto 0;
  max-width: 560px;
  color: var(--color-muted);
}

.art-panel--underworld::after {
  background: radial-gradient(480px circle at 50% 30%, rgba(217, 43, 90, 0.18), transparent 70%);
}

.art-panel--underworld h2 {
  text-shadow: 0 0 24px rgba(217, 43, 90, 0.25);
}

.art-panel--ems::after {
  background: radial-gradient(480px circle at 50% 30%, rgba(76, 199, 116, 0.16), transparent 70%);
}

.art-panel--ems h2 {
  text-shadow: 0 0 24px rgba(76, 199, 116, 0.2);
}

/* Timeline (e.g. city history) */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 2rem 1fr;
  gap: 1rem;
  align-items: start;
}

.timeline-item:not(:last-child)::before {
  content: "";
  position: absolute;
  left: calc(1rem - 1px);
  top: 1.5rem;
  bottom: -1.5rem;
  width: 2px;
  background: linear-gradient(180deg, var(--color-accent), var(--glass-border));
}

.timeline-marker {
  justify-self: center;
  width: 16px;
  height: 16px;
  margin-top: 0.3rem;
  border-radius: 50%;
  background: var(--color-bg);
  border: 2px solid var(--color-accent);
  box-shadow: 0 0 0 4px var(--glow-accent-soft);
}

.timeline-content {
  background: linear-gradient(180deg, var(--glass-bg-strong), rgba(36, 52, 71, 0.4));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 1.25rem;
}

.timeline-year {
  display: inline-block;
  color: var(--color-accent);
  font-weight: 700;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.35rem;
}

.timeline-content h3 {
  margin: 0 0 0.35rem;
}

.timeline-content p {
  margin: 0;
  color: var(--color-muted);
}

/* Scoped dark variant for lore sections that need underworld tone without
   overriding the whole page theme (reuses the theme-underworld palette) */
.lore-underworld {
  --color-bg: #0B121F;
  --color-surface: #141E30;
  background: var(--color-bg);
  border: 1px solid rgba(0, 207, 193, 0.08);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
}

.lore-underworld .card {
  border-color: rgba(255, 255, 255, 0.05);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45);
}
