:root {
  --bg: #06164a;
  --panel: rgba(8, 24, 78, 0.86);
  --panel-soft: rgba(255, 255, 255, 0.08);
  --line: rgba(255, 255, 255, 0.2);
  --line-strong: rgba(252, 209, 22, 0.58);
  --text: #fffaf0;
  --muted: #d8e2ff;
  --dim: #95a7df;
  --blue: #0038a8;
  --red: #ce1126;
  --gold: #fcd116;
  --white: #fffaf0;
  --green: #fcd116;
  --amber: #fcd116;
  --rose: #ff6d78;
  --shadow: rgba(0, 7, 32, 0.56);
}

* {
  box-sizing: border-box;
  scrollbar-color: rgba(244, 241, 238, 0.22) rgba(255, 255, 255, 0.04);
  scrollbar-width: thin;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 16% 12%, rgba(252, 209, 22, 0.2), transparent 15rem),
    linear-gradient(145deg, rgba(255, 250, 240, 0.16) 0 13%, transparent 13.2%),
    linear-gradient(180deg, #0038a8 0%, #06164a 52%, #8f0c22 100%);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
}

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

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

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

.site-shell {
  min-height: 100vh;
  overflow-x: hidden;
}

.site-shell::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(180deg, rgba(0, 18, 78, 0.72), rgba(103, 9, 25, 0.76)),
    url("evrima-backdrop.png") center / cover no-repeat;
  opacity: 0.32;
  filter: saturate(0.86) contrast(1.04);
}

.site-shell::after {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background:
    radial-gradient(circle at 8% 18%, rgba(252, 209, 22, 0.28), transparent 5rem),
    linear-gradient(90deg, transparent 0, rgba(255, 250, 240, 0.045) 1px, transparent 1px),
    linear-gradient(180deg, transparent 0, rgba(255, 250, 240, 0.032) 1px, transparent 1px);
  background-size: 4rem 4rem;
  mask-image: linear-gradient(180deg, black, transparent 72%);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: grid;
  grid-template-columns: minmax(14rem, 18rem) minmax(0, 1fr) auto;
  align-items: center;
  min-height: 5.1rem;
  padding: 0 1rem;
  border-bottom: 1px solid var(--line);
  background: rgba(0, 31, 112, 0.86);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  min-width: 0;
}

.brand.mini {
  max-width: 20rem;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 2.95rem;
  height: 2.95rem;
  flex: 0 0 auto;
  overflow: hidden;
  border: 1px solid rgba(252, 209, 22, 0.8);
  border-radius: 1.15rem;
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(0, 56, 168, 0.26), 0 10px 28px rgba(0, 7, 32, 0.32);
}

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

.brand strong,
.brand small {
  display: block;
  min-width: 0;
  max-width: 15rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand strong {
  color: var(--text);
  font-size: 0.95rem;
}

.brand small {
  margin-top: 0.25rem;
  color: var(--muted);
  font-size: 0.76rem;
}

.main-nav {
  display: flex;
  justify-content: center;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.main-nav::-webkit-scrollbar {
  display: none;
}

.main-nav a,
.steam-button,
.action-grid a,
.inline-action,
.live-source-form button,
.live-refresh,
.ghost-action,
.segmented-control button,
.coord-form button,
.sidebar-action,
.legend-actions button,
.friend-form button {
  min-height: 3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 1.35rem;
  background: rgba(255, 250, 240, 0.08);
  color: var(--text);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.main-nav a {
  border: 0;
  min-height: 2.7rem;
  padding: 0 0.75rem;
  color: var(--muted);
  white-space: nowrap;
  text-transform: none;
}

.main-nav a:hover,
.main-nav a:focus-visible,
.main-nav a[aria-current="page"],
.steam-button:hover,
.steam-button:focus-visible,
.action-grid a:hover,
.action-grid a:focus-visible,
.inline-action:hover,
.inline-action:focus-visible,
.live-source-form button:hover,
.live-source-form button:focus-visible,
.live-refresh:hover,
.live-refresh:focus-visible,
.ghost-action:hover,
.ghost-action:focus-visible,
.segmented-control button:hover,
.segmented-control button:focus-visible,
.segmented-control button.is-active,
.coord-form button:hover,
.coord-form button:focus-visible,
.sidebar-action:hover,
.sidebar-action:focus-visible,
.legend-actions button:hover,
.legend-actions button:focus-visible,
.friend-form button:hover,
.friend-form button:focus-visible {
  border-color: var(--line-strong);
  background: rgba(252, 209, 22, 0.16);
  outline: 0;
}

.steam-button {
  padding: 0 1.45rem;
  white-space: nowrap;
  border-color: rgba(252, 209, 22, 0.6);
  background: linear-gradient(135deg, rgba(252, 209, 22, 0.95), rgba(255, 250, 240, 0.22));
  color: #071348;
}

.steam-button.is-signed-in {
  gap: 0.55rem;
  max-width: min(15rem, 36vw);
  padding: 0 0.9rem 0 0.65rem;
  border-color: rgba(255, 250, 240, 0.46);
  background: linear-gradient(135deg, rgba(255, 250, 240, 0.92), rgba(0, 56, 168, 0.22));
  color: #0038a8;
  text-transform: none;
}

.steam-button img {
  width: 1.75rem;
  height: 1.75rem;
  flex: 0 0 auto;
  border: 1px solid rgba(0, 56, 168, 0.25);
  border-radius: 50%;
  object-fit: cover;
}

.steam-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.control-shell {
  position: relative;
  width: min(73rem, calc(100% - 2rem));
  margin: 1.6rem auto 2.5rem;
  padding: clamp(1.2rem, 3vw, 2rem);
  border: 1px solid var(--line);
  border-radius: 2.1rem;
  background:
    linear-gradient(150deg, rgba(255, 250, 240, 0.08), transparent 18rem),
    linear-gradient(180deg, rgba(0, 56, 168, 0.7), rgba(6, 22, 74, 0.82) 55%, rgba(206, 17, 38, 0.34));
  box-shadow: 0 28px 90px var(--shadow), inset 0 0 0 1px rgba(255, 250, 240, 0.08);
  backdrop-filter: blur(16px);
}

.control-shell::before {
  position: absolute;
  left: 2rem;
  right: 2rem;
  top: 0;
  height: 0.28rem;
  border-radius: 0 0 999px 999px;
  background: linear-gradient(90deg, var(--blue) 0 39%, var(--white) 39% 52%, var(--red) 52% 84%, var(--gold) 84%);
  content: "";
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 2.1rem;
}

.pill-row span {
  min-height: 2rem;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: rgba(255, 250, 240, 0.1);
  color: var(--white);
  padding: 0 1rem;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
}

.intro-panel {
  max-width: 54rem;
  margin-bottom: 2rem;
}

.intro-panel h1 {
  margin: 0;
  color: var(--text);
  font-size: 2.1rem;
  line-height: 1.12;
}

.intro-copy {
  max-width: 50rem;
  margin: 1.25rem 0 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.9;
}

.action-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: 2rem;
}

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

.feature-card,
.server-strip,
.live-source-panel {
  border: 1px solid var(--line);
  border-radius: 1.65rem;
  background:
    linear-gradient(150deg, rgba(255, 250, 240, 0.1), rgba(255, 250, 240, 0.035)),
    rgba(0, 28, 96, 0.42);
  box-shadow: inset 0 0 0 1px rgba(255, 250, 240, 0.05);
}

.feature-card {
  min-height: 12rem;
  padding: 1.4rem;
}

.feature-card h2,
.live-source-panel h2 {
  margin: 0;
  color: var(--text);
  font-size: 1.35rem;
  line-height: 1.2;
}

.feature-card:nth-child(2n) {
  background:
    linear-gradient(150deg, rgba(206, 17, 38, 0.18), rgba(255, 250, 240, 0.035)),
    rgba(0, 28, 96, 0.42);
}

.feature-card:nth-child(3n) {
  border-color: rgba(252, 209, 22, 0.34);
}

.feature-card p:not(.eyebrow) {
  margin: 0.75rem 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.inline-action {
  width: fit-content;
  margin-top: 1rem;
  padding: 0 1rem;
}

.map-card {
  grid-column: span 2;
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(16rem, 1fr);
  gap: 1rem;
  min-height: 20rem;
}

.live-card {
  grid-row: span 2;
}

.mini-map {
  position: relative;
  min-height: 17rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  background:
    radial-gradient(circle at 62% 34%, rgba(252, 209, 22, 0.28), transparent 12rem),
    linear-gradient(135deg, rgba(0, 56, 168, 0.34), rgba(206, 17, 38, 0.2)),
    url("evrima-backdrop.png") center / cover no-repeat;
  filter: saturate(0.9);
}

.mini-map::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(255, 250, 240, 0.18) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 250, 240, 0.18) 1px, transparent 1px);
  background-size: 4.5rem 4.5rem;
  opacity: 0.48;
}

.map-line,
.map-marker {
  position: absolute;
  z-index: 1;
  display: block;
}

.map-line {
  background: rgba(252, 209, 22, 0.28);
}

.map-line.x1 {
  left: 22%;
  top: 0;
  bottom: 0;
  width: 1px;
}

.map-line.x2 {
  left: 68%;
  top: 0;
  bottom: 0;
  width: 1px;
}

.map-line.y1 {
  left: 0;
  right: 0;
  top: 31%;
  height: 1px;
}

.map-line.y2 {
  left: 0;
  right: 0;
  top: 72%;
  height: 1px;
}

.map-marker {
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 50%;
  box-shadow: 0 0 0 0.45rem rgba(255, 255, 255, 0.08);
}

.map-marker.carno {
  left: 31%;
  top: 43%;
  background: var(--red);
}

.map-marker.nest {
  left: 68%;
  top: 27%;
  background: var(--gold);
}

.map-marker.water {
  left: 76%;
  top: 67%;
  background: var(--white);
}

.status-stack {
  display: grid;
  gap: 0.7rem;
  margin-top: 1.1rem;
}

.status-card {
  min-height: 4.5rem;
  padding: 0.8rem;
  border: 1px solid var(--line);
  border-radius: 1.1rem;
  background: rgba(0, 20, 77, 0.5);
}

.status-card.live {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.5rem 0.75rem;
  align-items: center;
}

.status-card.live strong {
  grid-column: 2;
}

.status-card[data-state="offline"] {
  border-color: rgba(206, 17, 38, 0.72);
  background: rgba(206, 17, 38, 0.16);
}

.status-card p,
.status-card span {
  margin: 0;
}

.status-card p {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
}

.status-card strong {
  display: block;
  margin-top: 0.3rem;
  color: var(--text);
  font-size: 1.18rem;
}

.status-card span {
  display: block;
  margin-top: 0.2rem;
  color: var(--dim);
  font-size: 0.78rem;
}

.map-status-box {
  min-height: 4.8rem;
  padding: 0.85rem;
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  background: rgba(0, 20, 77, 0.5);
}

.map-status-box p,
.map-status-box span {
  margin: 0;
}

.map-status-box p {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
}

.map-status-box strong {
  display: block;
  margin-top: 0.3rem;
  color: var(--text);
  font-size: 1.08rem;
}

.map-status-box span {
  display: block;
  margin-top: 0.25rem;
  color: var(--dim);
  font-size: 0.78rem;
}

.pulse {
  width: 0.58rem;
  height: 0.58rem;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 18px rgba(252, 209, 22, 0.78);
}

.server-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: end;
  margin-top: 1rem;
  padding: 1.2rem;
}

.ghost-action {
  max-width: 100%;
  justify-content: flex-start;
  cursor: pointer;
  padding: 0 1rem;
  text-align: left;
  text-transform: none;
}

.online-pill {
  min-height: 3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  border: 1px solid rgba(155, 225, 143, 0.28);
  border-radius: 1.35rem;
  background: rgba(252, 209, 22, 0.12);
  color: var(--text);
  padding: 0 1rem;
  white-space: nowrap;
}

.online-pill[data-state="offline"] {
  border-color: rgba(206, 17, 38, 0.62);
  background: rgba(206, 17, 38, 0.18);
}

.livemap-shell {
  width: min(96rem, calc(100% - 1.25rem));
  margin: 1rem auto 2.5rem;
}

.livemap-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: end;
  margin-bottom: 1rem;
  padding: clamp(1rem, 2vw, 1.35rem);
  border: 1px solid var(--line);
  border-radius: 1rem;
  background:
    linear-gradient(150deg, rgba(255, 250, 240, 0.1), rgba(255, 250, 240, 0.035)),
    rgba(0, 28, 96, 0.58);
  box-shadow: inset 0 0 0 1px rgba(255, 250, 240, 0.05);
}

.livemap-toolbar h1 {
  margin: 0;
  color: var(--text);
  font-size: clamp(2rem, 4vw, 3.65rem);
  line-height: 1;
}

.map-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(8rem, 1fr));
  gap: 0.65rem;
}

.map-stat {
  min-height: 4.35rem;
  padding: 0.85rem;
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  background: rgba(0, 20, 77, 0.48);
}

.map-stat span {
  display: block;
  color: var(--dim);
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
}

.map-stat strong {
  display: flex;
  justify-content: flex-start;
  margin-top: 0.3rem;
  color: var(--text);
  font-size: 1.05rem;
}

.map-stat .online-pill {
  min-height: auto;
  width: fit-content;
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 1.05rem;
}

.map-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(19rem, 23rem);
  gap: 1rem;
  align-items: start;
}

.map-panel,
.operator-card {
  border: 1px solid var(--line);
  border-radius: 1rem;
  background:
    linear-gradient(150deg, rgba(255, 250, 240, 0.1), rgba(255, 250, 240, 0.035)),
    rgba(0, 28, 96, 0.58);
  box-shadow: inset 0 0 0 1px rgba(255, 250, 240, 0.05);
}

.map-panel {
  overflow: hidden;
}

.map-control-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(22rem, 34rem);
  gap: 0.75rem;
  align-items: center;
  padding: 0.85rem;
  border-bottom: 1px solid var(--line);
}

.segmented-control {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.segmented-control button {
  min-height: 2.55rem;
  cursor: pointer;
  padding: 0 0.8rem;
}

.coord-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 0.45rem;
}

.coord-form input {
  min-width: 0;
  min-height: 2.55rem;
  border: 1px solid var(--line);
  border-radius: 1.1rem;
  background: rgba(0, 0, 0, 0.24);
  color: var(--text);
  padding: 0 0.8rem;
}

.coord-form input::placeholder {
  color: var(--dim);
}

.coord-form button {
  min-height: 2.55rem;
  cursor: pointer;
  padding: 0 0.85rem;
}

.live-map-surface {
  position: relative;
  min-height: clamp(28rem, 62vh, 45rem);
  isolation: isolate;
  overflow: hidden;
  cursor: crosshair;
  background:
    radial-gradient(circle at 28% 26%, rgba(252, 209, 22, 0.28), transparent 12rem),
    linear-gradient(135deg, rgba(0, 56, 168, 0.7), rgba(6, 22, 74, 0.9) 48%, rgba(206, 17, 38, 0.44)),
    url("evrima-backdrop.png") center / cover no-repeat;
}

.live-map-surface::before,
.live-map-surface::after,
.map-raster {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
}

.live-map-surface::before {
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(255, 250, 240, 0.18) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 250, 240, 0.18) 1px, transparent 1px);
  background-size: 10% 10%;
  opacity: 0.55;
}

.live-map-surface::after {
  z-index: 2;
  background:
    radial-gradient(circle at 64% 38%, rgba(252, 209, 22, 0.24), transparent 10rem),
    radial-gradient(circle at 30% 68%, rgba(0, 56, 168, 0.34), transparent 12rem),
    linear-gradient(180deg, rgba(0, 7, 32, 0.08), rgba(0, 7, 32, 0.38));
}

.map-raster {
  z-index: 0;
  opacity: 0.42;
  filter: saturate(0.7) contrast(1.08);
}

.gateway-outline {
  position: absolute;
  inset: 3% 4%;
  z-index: 3;
  width: 92%;
  height: 94%;
  overflow: visible;
  pointer-events: none;
}

.map-coast {
  fill: rgba(255, 250, 240, 0.08);
  stroke: rgba(252, 209, 22, 0.62);
  stroke-width: 3;
}

.map-river,
.map-ridge {
  fill: none;
  stroke-linecap: round;
}

.map-river {
  stroke: rgba(149, 167, 223, 0.72);
  stroke-width: 6;
}

.map-ridge {
  stroke: rgba(255, 250, 240, 0.24);
  stroke-width: 3;
  stroke-dasharray: 12 12;
}

.map-axis {
  position: absolute;
  z-index: 4;
  color: rgba(255, 250, 240, 0.72);
  font-size: 0.68rem;
  font-weight: 800;
  pointer-events: none;
  text-shadow: 0 1px 8px rgba(0, 7, 32, 0.8);
}

.x-min,
.x-mid,
.x-max {
  bottom: 0.7rem;
}

.x-min {
  left: 0.75rem;
}

.x-mid {
  left: 50%;
  transform: translateX(-50%);
}

.x-max {
  right: 0.75rem;
}

.y-max,
.y-mid,
.y-min {
  left: 0.75rem;
}

.y-max {
  top: 0.75rem;
}

.y-mid {
  top: 50%;
  transform: translateY(-50%);
}

.y-min {
  bottom: 2.05rem;
}

.heat-zone {
  position: absolute;
  z-index: 4;
  display: none;
  border: 1px solid rgba(206, 17, 38, 0.62);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(206, 17, 38, 0.42), rgba(206, 17, 38, 0.04) 68%, transparent);
  box-shadow: 0 0 32px rgba(206, 17, 38, 0.22);
  pointer-events: none;
}

.live-map-surface.show-heatmap .heat-zone {
  display: block;
}

.heat-zone.north {
  left: 48%;
  top: 21%;
  width: 17%;
  height: 18%;
}

.heat-zone.marsh {
  left: 23%;
  top: 57%;
  width: 18%;
  height: 17%;
}

.heat-zone.coast {
  left: 67%;
  top: 47%;
  width: 20%;
  height: 20%;
}

.live-marker {
  position: absolute;
  left: var(--x);
  top: var(--y);
  z-index: 6;
  width: 1.15rem;
  height: 1.15rem;
  margin: -0.575rem 0 0 -0.575rem;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  background: transparent;
  padding: 0;
}

.live-marker span {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(255, 250, 240, 0.95);
  background: var(--gold);
  box-shadow: 0 0 0 0.5rem rgba(252, 209, 22, 0.14), 0 0 24px rgba(252, 209, 22, 0.48);
}

.live-marker::after {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 0.45rem);
  min-width: max-content;
  transform: translateX(-50%);
  border: 1px solid var(--line);
  border-radius: 0.55rem;
  background: rgba(0, 20, 77, 0.92);
  color: var(--text);
  padding: 0.25rem 0.45rem;
  font-size: 0.68rem;
  font-weight: 800;
  opacity: 0;
  pointer-events: none;
  content: attr(aria-label);
}

.live-marker:hover::after,
.live-marker:focus-visible::after,
.live-marker.is-selected::after {
  opacity: 1;
}

.live-marker:focus-visible {
  outline: 3px solid rgba(252, 209, 22, 0.56);
  outline-offset: 0.35rem;
}

.live-marker.is-selected span {
  transform: scale(1.22);
  box-shadow: 0 0 0 0.65rem rgba(255, 250, 240, 0.18), 0 0 30px rgba(252, 209, 22, 0.68);
}

.marker-friend span {
  background: var(--gold);
}

.marker-egg span {
  background: var(--red);
}

.marker-water span {
  background: #8fc7ff;
}

.marker-patrol span {
  background: var(--white);
}

.marker-ping span {
  background: #35e27a;
}

.is-hidden,
.is-filtered-out {
  display: none;
}

.coord-readout {
  position: absolute;
  right: 0.8rem;
  bottom: 0.8rem;
  z-index: 7;
  min-width: 10.5rem;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: rgba(0, 20, 77, 0.82);
  color: var(--text);
  padding: 0.55rem 0.7rem;
  font-size: 0.78rem;
  font-weight: 800;
  text-align: center;
}

.map-sidebar {
  display: grid;
  gap: 1rem;
}

.operator-card {
  padding: 1rem;
}

.operator-card h2 {
  margin: 0;
  color: var(--text);
  font-size: 1.35rem;
}

.selected-marker dl {
  display: grid;
  gap: 0.75rem;
  margin: 1rem 0;
}

.selected-marker dl div {
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255, 250, 240, 0.14);
}

.selected-marker dl div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.selected-marker dt {
  color: var(--dim);
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
}

.selected-marker dd {
  margin: 0.24rem 0 0;
  color: var(--text);
  font-weight: 800;
}

.sidebar-action {
  width: 100%;
  cursor: pointer;
}

.layer-list,
.map-feed {
  display: grid;
  gap: 0.75rem;
  margin: 1rem 0 0;
}

.layer-list span {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--muted);
  font-weight: 800;
}

.legend-dot {
  display: inline-block;
  width: 0.8rem;
  height: 0.8rem;
  border: 2px solid rgba(255, 250, 240, 0.9);
  border-radius: 50%;
}

.legend-dot.friend {
  background: var(--gold);
}

.legend-dot.heat {
  border-color: rgba(206, 17, 38, 0.9);
  background: var(--red);
}

.legend-dot.egg {
  background: var(--red);
}

.legend-dot.water {
  background: #8fc7ff;
}

.legend-dot.patrol {
  background: var(--white);
}

.map-feed {
  padding: 0;
  color: var(--muted);
  line-height: 1.5;
  list-style: none;
}

.map-feed li {
  border-left: 2px solid rgba(252, 209, 22, 0.42);
  padding-left: 0.7rem;
}

.map-feed strong {
  color: var(--gold);
}

.livemap-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: start;
  margin-bottom: 1rem;
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid var(--line);
  border-radius: 1rem;
  background:
    linear-gradient(150deg, rgba(255, 250, 240, 0.1), rgba(255, 250, 240, 0.025)),
    rgba(0, 8, 28, 0.82);
  box-shadow: inset 0 0 0 1px rgba(255, 250, 240, 0.04);
}

.livemap-hero h1 {
  max-width: 56rem;
  margin: 0;
  color: var(--text);
  font-size: clamp(2.1rem, 3.8vw, 3.45rem);
  line-height: 1;
}

.livemap-hero p:not(.eyebrow) {
  max-width: 62rem;
  margin: 1.25rem 0 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.8;
}

.access-badge,
.map-card-header > span {
  min-height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 250, 240, 0.08);
  color: var(--muted);
  padding: 0 1rem;
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
  white-space: nowrap;
}

.map-card-header > a {
  min-height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 250, 240, 0.08);
  color: var(--muted);
  padding: 0 1rem;
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
  white-space: nowrap;
}

.map-card-header > a:hover,
.map-card-header > a:focus-visible {
  border-color: var(--line-strong);
  background: rgba(252, 209, 22, 0.16);
  outline: 0;
}

.reference-layout {
  grid-template-columns: minmax(0, 1fr) minmax(19rem, 22rem);
  align-items: start;
}

.reference-map-card {
  background: rgba(0, 8, 28, 0.82);
}

.map-card-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding: 1.05rem 1.2rem;
  border-bottom: 1px solid rgba(255, 250, 240, 0.1);
}

.map-card-header h2 {
  margin: 0;
  color: var(--text);
  font-size: 1.45rem;
}

.reference-map-card .live-map-surface {
  min-height: clamp(31rem, 61vh, 46rem);
  background:
    linear-gradient(180deg, rgba(0, 8, 28, 0.05), rgba(0, 8, 28, 0.1)),
    url("gateway-map-texture.png") center / cover no-repeat;
}

.reference-map-card .live-map-surface::before {
  z-index: 2;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.16) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.16) 1px, transparent 1px);
  background-size: 9.09% 9.09%;
  opacity: 0.24;
}

.reference-map-card .live-map-surface::after {
  z-index: 3;
  background:
    linear-gradient(180deg, rgba(0, 8, 28, 0.04), rgba(0, 8, 28, 0.18));
}

.zoom-control {
  position: absolute;
  left: 1rem;
  top: 1rem;
  z-index: 9;
  overflow: hidden;
  border: 1px solid rgba(0, 8, 28, 0.28);
  border-radius: 0.35rem;
  background: rgba(255, 250, 240, 0.94);
  color: #071348;
  box-shadow: 0 8px 22px rgba(0, 8, 28, 0.28);
}

.zoom-control span {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  font-size: 1.2rem;
  font-weight: 900;
}

.zoom-control span + span {
  border-top: 1px solid rgba(0, 8, 28, 0.18);
}

.reference-map-card .gateway-outline {
  inset: 0;
  z-index: 5;
  width: 100%;
  height: 100%;
}

.reference-map-card .map-raster {
  background: transparent;
  opacity: 0;
}

.zone-shape {
  fill: rgba(60, 213, 255, 0.12);
  stroke: rgba(60, 213, 255, 0.78);
  stroke-width: 3;
  pointer-events: none;
}

.zone-shape[data-zone-group="migration"] {
  fill: rgba(163, 224, 61, 0.13);
  stroke: rgba(163, 224, 61, 0.86);
}

.zone-shape[data-zone-group="north-plains"] {
  fill: rgba(252, 209, 22, 0.15);
  stroke: rgba(252, 209, 22, 0.88);
}

.zone-label {
  position: absolute;
  z-index: 8;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid rgba(60, 213, 255, 0.6);
  border-radius: 0.75rem;
  background: rgba(0, 20, 45, 0.74);
  color: var(--text);
  padding: 0.55rem 0.8rem;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
  box-shadow: 0 10px 28px rgba(0, 8, 28, 0.34);
  pointer-events: none;
}

.zone-label::before {
  width: 0.42rem;
  height: 0.42rem;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #5ce1ff;
  box-shadow: 0 0 12px rgba(92, 225, 255, 0.72);
  content: "";
}

.zone-label small {
  color: var(--muted);
  font-size: 0.58rem;
  letter-spacing: 0.08em;
}

.zone-label.delta {
  left: 63%;
  top: 72%;
}

.zone-label.west-rail {
  left: 15%;
  top: 71%;
}

.zone-label.water-access {
  left: 45%;
  top: 35%;
}

.zone-label.east-lake {
  left: 76%;
  top: 43%;
}

.zone-label.north-plains {
  left: 70%;
  top: 13%;
}

[data-zone-hidden="true"] {
  display: none;
}

.reference-sidebar {
  gap: 1rem;
}

.live-status-card h2 {
  margin: 0 0 1rem;
}

.live-status-card .sidebar-action {
  margin-top: 1rem;
}

.map-legend-panel .legend-title {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: start;
}

.legend-title p:not(.eyebrow) {
  margin: 0.25rem 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.legend-title strong {
  color: var(--muted);
  font-size: 0.72rem;
  text-transform: uppercase;
  white-space: nowrap;
}

.legend-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
  margin-top: 1rem;
}

.legend-actions button,
.friend-form button {
  min-height: 2.6rem;
  cursor: pointer;
  padding: 0 0.75rem;
}

.legend-actions.compact {
  margin-top: 0;
}

.legend-groups,
.map-tools-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.zone-group header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: start;
}

.zone-group header strong {
  color: var(--muted);
  font-size: 0.82rem;
  text-transform: uppercase;
}

.zone-toggle-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  margin-top: 1rem;
}

.zone-toggle-grid.single {
  grid-template-columns: 1fr;
}

.zone-toggle-grid label {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.55rem;
  align-items: center;
  min-height: 3rem;
  border: 1px solid rgba(255, 250, 240, 0.16);
  border-radius: 0.8rem;
  background: rgba(0, 20, 77, 0.38);
  color: var(--text);
  padding: 0.55rem 0.65rem;
  font-size: 0.82rem;
  font-weight: 800;
}

.zone-toggle-grid input {
  accent-color: var(--gold);
}

.zone-toggle-grid span {
  grid-column: 2;
  color: var(--dim);
  font-size: 0.64rem;
  font-weight: 900;
  text-transform: uppercase;
}

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

.operator-card > p:not(.eyebrow),
.tool-note {
  color: var(--muted);
  line-height: 1.6;
}

.operator-card code {
  border: 1px solid rgba(252, 209, 22, 0.34);
  border-radius: 0.45rem;
  background: rgba(0, 20, 77, 0.58);
  color: var(--gold);
  padding: 0.12rem 0.34rem;
}

.tool-metric {
  margin-top: 1rem;
  padding: 0.8rem;
  border: 1px solid rgba(255, 250, 240, 0.14);
  border-radius: 0.75rem;
  background: rgba(0, 20, 77, 0.42);
}

.tool-metric span {
  display: block;
  color: var(--dim);
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.tool-metric strong {
  display: block;
  margin-top: 0.25rem;
}

.friend-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.55rem;
  margin-top: 1rem;
}

.friend-form input {
  min-width: 0;
  min-height: 2.7rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: rgba(0, 0, 0, 0.24);
  color: var(--text);
  padding: 0 0.8rem;
}

.coord-form.stacked {
  grid-template-columns: minmax(0, 1fr);
  margin-top: 1rem;
}

.coord-form.stacked button {
  width: 100%;
}

.tracked-card {
  grid-column: 1 / -1;
}

#toggle-heatmap.is-active {
  border-color: rgba(206, 17, 38, 0.76);
  background: rgba(206, 17, 38, 0.2);
}

.islemaps-layout {
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 22rem);
}

.islemaps-card {
  overflow: hidden;
}

.islemaps-embed {
  min-height: clamp(34rem, 72vh, 56rem);
  overflow: hidden;
  background: #0f1723;
}

.islemaps-embed iframe {
  display: block;
  width: 100%;
  height: clamp(34rem, 72vh, 56rem);
  border: 0;
  background: #0f1723;
}

.profile-shell {
  width: min(73rem, calc(100% - 2rem));
  margin: 1.6rem auto 2.5rem;
}

.profile-empty-stage,
.profile-card {
  border: 1px solid var(--line);
  border-radius: 1.65rem;
  background:
    linear-gradient(150deg, rgba(255, 250, 240, 0.1), rgba(255, 250, 240, 0.035)),
    rgba(0, 28, 96, 0.54);
  box-shadow: inset 0 0 0 1px rgba(255, 250, 240, 0.05);
}

.profile-empty-stage {
  position: relative;
  min-height: clamp(26rem, 55vh, 39rem);
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 2rem;
  text-align: center;
}

.profile-empty-stage::before {
  position: absolute;
  inset: 7%;
  border: 1px solid rgba(252, 209, 22, 0.08);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(206, 17, 38, 0.14), transparent 54%),
    radial-gradient(circle, rgba(252, 209, 22, 0.08), transparent 62%);
  content: "";
}

.dino-silhouette {
  position: absolute;
  left: 50%;
  top: 45%;
  width: min(32rem, 70vw);
  aspect-ratio: 2.2;
  transform: translate(-50%, -50%);
  opacity: 0.16;
  filter: blur(0.5px);
  background:
    radial-gradient(ellipse at 42% 48%, #fffaf0 0 20%, transparent 21%),
    radial-gradient(ellipse at 58% 43%, #fffaf0 0 11%, transparent 12%),
    linear-gradient(30deg, transparent 0 68%, #fffaf0 69% 74%, transparent 75%),
    linear-gradient(155deg, transparent 0 55%, #fffaf0 56% 60%, transparent 61%);
}

.profile-empty-stage > .eyebrow,
.profile-warning {
  position: relative;
  z-index: 1;
}

.profile-empty-stage > .eyebrow {
  margin-top: 6rem;
  color: var(--muted);
  letter-spacing: 0.32em;
}

.profile-warning {
  width: min(34rem, 100%);
  border: 1px solid rgba(206, 17, 38, 0.42);
  border-radius: 1.35rem;
  background: rgba(206, 17, 38, 0.08);
  padding: 1.25rem;
}

.profile-warning p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.profile-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 24rem);
  gap: 1rem;
  align-items: start;
  margin-top: 1rem;
}

.profile-card {
  padding: 1.25rem;
}

.profile-identity-card {
  display: grid;
  grid-template-columns: 5rem minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
}

.profile-avatar {
  width: 5rem;
  height: 5rem;
  overflow: hidden;
  border: 1px solid rgba(252, 209, 22, 0.44);
  border-radius: 1.2rem;
  background: #070913;
}

.profile-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-card h1,
.profile-card h2 {
  margin: 0;
  color: var(--text);
  line-height: 1.15;
}

.profile-card h1 {
  font-size: clamp(2rem, 4vw, 3rem);
}

.profile-card h2 {
  font-size: 1.45rem;
}

.profile-card p:not(.eyebrow),
.profile-facts dd {
  color: var(--muted);
  line-height: 1.6;
}

.profile-status-card {
  display: grid;
  gap: 0.9rem;
}

.profile-facts {
  display: grid;
  gap: 0.85rem;
  margin: 1rem 0 0;
}

.profile-facts div {
  padding-bottom: 0.85rem;
  border-bottom: 1px solid rgba(255, 250, 240, 0.12);
}

.profile-facts div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.profile-facts dt {
  color: var(--dim);
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.profile-facts dd {
  margin: 0.25rem 0 0;
  font-weight: 800;
}

.profile-error-card {
  border-color: rgba(206, 17, 38, 0.38);
  background:
    linear-gradient(150deg, rgba(206, 17, 38, 0.16), rgba(252, 209, 22, 0.035)),
    rgba(0, 28, 96, 0.54);
}

.streamer-shell {
  width: min(73rem, calc(100% - 2rem));
  margin: 1.6rem auto 2.5rem;
}

.streamer-hero,
.stream-empty-card,
.stream-guide-card {
  border: 1px solid var(--line);
  border-radius: 1.65rem;
  background:
    linear-gradient(150deg, rgba(255, 250, 240, 0.1), rgba(255, 250, 240, 0.035)),
    rgba(0, 28, 96, 0.54);
  box-shadow: inset 0 0 0 1px rgba(255, 250, 240, 0.05);
}

.streamer-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 26rem);
  gap: 1rem;
  align-items: start;
  padding: clamp(1.25rem, 3vw, 2rem);
}

.streamer-hero h1 {
  max-width: 46rem;
  margin: 0;
  color: var(--text);
  font-size: clamp(2rem, 4vw, 3.45rem);
  line-height: 1.05;
}

.streamer-tags {
  margin: 1.35rem 0 0;
}

.streamer-summary {
  display: grid;
  gap: 0.8rem;
}

.stream-stat-card,
.stream-filter-card {
  border-radius: 1.25rem;
}

.stream-stat-card strong {
  display: block;
  color: var(--text);
  font-size: 3rem;
  line-height: 1;
}

.stream-stat-card span,
.stream-filter-card p {
  color: var(--muted);
  line-height: 1.55;
}

.stream-filter-card strong {
  display: block;
  color: var(--text);
  font-size: 1.55rem;
}

.stream-filter-card code,
.stream-empty-card code,
.stream-guide-card code {
  border: 1px solid rgba(252, 209, 22, 0.34);
  border-radius: 0.45rem;
  background: rgba(0, 20, 77, 0.58);
  color: var(--gold);
  padding: 0.12rem 0.34rem;
}

.stream-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 26rem);
  gap: 1rem;
  align-items: start;
  margin-top: 1rem;
}

.stream-empty-card,
.stream-guide-card {
  padding: 1.25rem;
}

.stream-empty-card h2,
.stream-guide-card h2 {
  margin: 0;
  color: var(--text);
  font-size: 1.55rem;
  line-height: 1.2;
}

.stream-empty-card p:not(.eyebrow),
.stream-guide-card li {
  color: var(--muted);
  line-height: 1.6;
}

.stream-empty-card p:not(.eyebrow) {
  margin: 0.85rem 0 0;
}

.stream-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.stream-actions a {
  min-height: 3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 1.35rem;
  background: rgba(255, 250, 240, 0.08);
  color: var(--text);
  padding: 0 1rem;
  font-size: 0.72rem;
  font-weight: 800;
  text-align: center;
  text-transform: uppercase;
}

.stream-actions a:hover,
.stream-actions a:focus-visible {
  border-color: var(--line-strong);
  background: rgba(252, 209, 22, 0.16);
  outline: 0;
}

.stream-guide-card ul {
  display: grid;
  gap: 0.75rem;
  padding: 0;
  margin: 1rem 0 0;
  list-style: none;
}

.stream-guide-card li {
  position: relative;
  padding-left: 1.1rem;
}

.stream-guide-card li::before {
  position: absolute;
  left: 0;
  top: 0.62rem;
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: var(--gold);
  content: "";
}

.live-source-panel {
  margin-top: 1rem;
  padding: 1.25rem;
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.live-source-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.7rem;
}

.live-source-form input {
  min-width: 0;
  min-height: 3rem;
  border: 1px solid var(--line);
  border-radius: 1.35rem;
  background: rgba(0, 0, 0, 0.28);
  color: var(--text);
  padding: 0 1rem;
}

.live-source-form input::placeholder {
  color: var(--dim);
}

.live-source-form button,
.live-refresh {
  cursor: pointer;
  padding: 0 1rem;
}

.source-status {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.6rem;
  align-items: start;
  margin-top: 0.9rem;
}

.source-status p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.source-dot {
  width: 0.62rem;
  height: 0.62rem;
  margin-top: 0.25rem;
  border-radius: 50%;
  background: var(--dim);
}

.source-dot[data-tone="online"] {
  background: var(--green);
  box-shadow: 0 0 14px rgba(155, 225, 143, 0.75);
}

.source-dot[data-tone="syncing"],
.source-dot[data-tone="warning"] {
  background: var(--amber);
  box-shadow: 0 0 14px rgba(217, 177, 115, 0.72);
}

.source-dot[data-tone="error"] {
  background: var(--rose);
  box-shadow: 0 0 14px rgba(255, 143, 131, 0.75);
}

.site-footer {
  width: min(73rem, calc(100% - 2rem));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 auto;
  padding: 1.25rem 0 2.25rem;
  color: var(--muted);
  font-size: 0.82rem;
}

.site-footer p {
  max-width: 38rem;
  margin: 0;
  text-align: right;
}

.tutorial-shell {
  width: min(73rem, calc(100% - 2rem));
  margin: 1.6rem auto 2.5rem;
}

.tutorial-hero,
.step-card,
.guide-panel,
.important-panel {
  border: 1px solid var(--line);
  border-radius: 1.65rem;
  background:
    linear-gradient(150deg, rgba(255, 250, 240, 0.1), rgba(255, 250, 240, 0.035)),
    rgba(0, 28, 96, 0.54);
  box-shadow: inset 0 0 0 1px rgba(255, 250, 240, 0.05);
}

.tutorial-hero {
  position: relative;
  padding: clamp(1.25rem, 3vw, 2rem);
  overflow: hidden;
}

.tutorial-hero::before {
  position: absolute;
  left: 2rem;
  right: 2rem;
  top: 0;
  height: 0.28rem;
  border-radius: 0 0 999px 999px;
  background: linear-gradient(90deg, var(--blue) 0 39%, var(--white) 39% 52%, var(--red) 52% 84%, var(--gold) 84%);
  content: "";
}

.tutorial-hero h1 {
  max-width: 48rem;
  margin: 0;
  color: var(--text);
  font-size: 2.5rem;
  line-height: 1.1;
}

.tutorial-hero p:not(.eyebrow) {
  max-width: 48rem;
  margin: 1.2rem 0 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.85;
}

.tutorial-actions {
  max-width: 38rem;
}

.tutorial-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(17rem, 23rem);
  gap: 1rem;
  align-items: start;
  margin-top: 1rem;
}

.step-list {
  display: grid;
  gap: 1rem;
}

.step-card {
  display: grid;
  grid-template-columns: 4rem minmax(0, 1fr);
  gap: 1rem;
  min-height: 9rem;
  padding: 1.25rem;
}

.step-number {
  display: grid;
  place-items: center;
  width: 4rem;
  height: 4rem;
  border: 1px solid rgba(252, 209, 22, 0.42);
  border-radius: 1.25rem;
  background: rgba(255, 250, 240, 0.09);
  color: var(--gold);
  font-size: 1.35rem;
  font-weight: 900;
}

.step-card h2,
.guide-panel h2,
.important-panel h2 {
  margin: 0;
  color: var(--text);
  font-size: 1.35rem;
  line-height: 1.25;
}

.step-card p,
.guide-panel li,
.important-panel li {
  color: var(--muted);
  line-height: 1.6;
}

.step-card p {
  margin: 0.7rem 0 0;
}

.step-card code {
  border: 1px solid rgba(252, 209, 22, 0.34);
  border-radius: 0.45rem;
  background: rgba(0, 20, 77, 0.58);
  color: var(--gold);
  padding: 0.12rem 0.34rem;
}

.guide-panel,
.important-panel {
  padding: 1.25rem;
}

.guide-panel {
  position: sticky;
  top: 6.25rem;
}

.guide-panel ul,
.important-panel ul {
  display: grid;
  gap: 0.75rem;
  padding: 0;
  margin: 1rem 0 0;
  list-style: none;
}

.guide-panel li,
.important-panel li {
  position: relative;
  padding-left: 1.1rem;
}

.guide-panel li::before,
.important-panel li::before {
  position: absolute;
  left: 0;
  top: 0.62rem;
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: var(--gold);
  content: "";
}

.important-panel {
  margin-top: 1rem;
  border-color: rgba(252, 209, 22, 0.38);
  background:
    linear-gradient(150deg, rgba(252, 209, 22, 0.14), rgba(206, 17, 38, 0.16)),
    rgba(0, 28, 96, 0.54);
}

@media (max-width: 1060px) {
  .topbar {
    grid-template-columns: 1fr auto;
  }

  .main-nav {
    grid-column: 1 / -1;
    order: 3;
    justify-content: flex-start;
    padding-top: 0.65rem;
  }

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

  .livemap-toolbar,
  .livemap-hero,
  .map-workspace,
  .map-control-bar,
  .reference-layout,
  .legend-groups,
  .map-tools-grid,
  .profile-grid,
  .streamer-hero,
  .stream-grid {
    grid-template-columns: 1fr;
  }

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

  .map-card,
  .live-card {
    grid-column: 1 / -1;
    grid-row: auto;
  }
}

@media (max-width: 760px) {
  .topbar,
  .server-strip,
  .section-title {
    grid-template-columns: 1fr;
  }

  .topbar {
    gap: 0.8rem;
    padding: 1rem;
  }

  .steam-button {
    width: 100%;
  }

  .steam-button.is-signed-in {
    max-width: 100%;
    justify-content: flex-start;
  }

  .control-shell {
    width: calc(100% - 1rem);
    margin-top: 0.7rem;
    border-radius: 1.55rem;
  }

  .intro-panel h1 {
    font-size: 1.8rem;
  }

  .action-grid,
  .feature-grid,
  .map-card,
  .map-stats,
  .coord-form,
  .friend-form,
  .live-source-form {
    grid-template-columns: 1fr;
  }

  .livemap-hero {
    align-items: start;
  }

  .livemap-shell {
    width: calc(100% - 1rem);
    margin-top: 0.7rem;
  }

  .streamer-shell {
    width: calc(100% - 1rem);
    margin-top: 0.7rem;
  }

  .profile-shell {
    width: calc(100% - 1rem);
    margin-top: 0.7rem;
  }

  .live-map-surface {
    min-height: 32rem;
  }

  .coord-readout {
    left: 0.8rem;
    right: 0.8rem;
    width: auto;
  }

  .server-strip,
  .site-footer {
    align-items: flex-start;
  }

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

  .guide-panel {
    position: static;
  }

  .site-footer {
    flex-direction: column;
  }

  .site-footer p {
    text-align: left;
  }

  .zone-toggle-grid,
  .map-legend-panel .legend-title,
  .stream-actions {
    grid-template-columns: 1fr;
  }

  .zone-label {
    max-width: 10rem;
    white-space: normal;
  }
}

@media (max-width: 430px) {
  .pill-row span,
  .action-grid a,
  .live-source-form button,
  .live-refresh {
    width: 100%;
  }

  .mini-map {
    min-height: 13rem;
  }

  .livemap-toolbar h1 {
    font-size: 1.85rem;
  }

  .livemap-hero h1 {
    font-size: 2rem;
  }

  .streamer-hero h1 {
    font-size: 2rem;
  }

  .segmented-control button,
  .coord-form button,
  .legend-actions button,
  .friend-form button,
  .inline-action {
    width: 100%;
  }

  .livemap-hero,
  .streamer-hero,
  .profile-card,
  .profile-empty-stage,
  .stream-empty-card,
  .stream-guide-card,
  .operator-card,
  .map-card-header {
    padding: 1rem;
  }

  .map-card-header,
  .zone-group header {
    align-items: flex-start;
    flex-direction: column;
  }

  .live-map-surface {
    min-height: 28rem;
  }

  .tutorial-hero h1 {
    font-size: 2rem;
  }

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

/* Dark Philippines horror pass. */
body {
  background:
    radial-gradient(circle at 12% 8%, rgba(252, 209, 22, 0.15), transparent 12rem),
    radial-gradient(circle at 86% 72%, rgba(206, 17, 38, 0.28), transparent 18rem),
    linear-gradient(145deg, rgba(255, 250, 240, 0.07) 0 10%, transparent 10.2%),
    linear-gradient(180deg, #02040e 0%, #050b24 42%, #17020a 100%);
}

.site-shell::before {
  background:
    linear-gradient(180deg, rgba(0, 4, 16, 0.9), rgba(35, 2, 12, 0.88)),
    url("evrima-backdrop.png") center / cover no-repeat;
  opacity: 0.45;
  filter: saturate(0.58) contrast(1.24) brightness(0.58);
}

.site-shell::after {
  background:
    radial-gradient(circle at 8% 18%, rgba(252, 209, 22, 0.18), transparent 4.5rem),
    radial-gradient(circle at 78% 12%, rgba(206, 17, 38, 0.22), transparent 10rem),
    linear-gradient(90deg, transparent 0, rgba(255, 250, 240, 0.032) 1px, transparent 1px),
    linear-gradient(180deg, transparent 0, rgba(255, 250, 240, 0.022) 1px, transparent 1px),
    linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.62));
  background-size: auto, auto, 4rem 4rem, 4rem 4rem, auto;
}

.topbar {
  border-bottom-color: rgba(252, 209, 22, 0.22);
  background:
    linear-gradient(90deg, rgba(0, 24, 84, 0.68), rgba(22, 2, 10, 0.9)),
    rgba(2, 5, 18, 0.96);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.44);
}

.brand-mark {
  background: #070913;
  box-shadow: 0 0 0 2px rgba(252, 209, 22, 0.28), 0 12px 34px rgba(0, 0, 0, 0.54);
}

.main-nav a,
.steam-button,
.action-grid a,
.inline-action,
.live-source-form button,
.live-refresh,
.ghost-action,
.segmented-control button,
.coord-form button,
.sidebar-action,
.legend-actions button,
.friend-form button {
  border-color: rgba(252, 209, 22, 0.2);
  background: rgba(255, 250, 240, 0.045);
  box-shadow: inset 0 0 0 1px rgba(255, 250, 240, 0.025);
}

.main-nav a:hover,
.main-nav a:focus-visible,
.main-nav a[aria-current="page"],
.action-grid a:hover,
.action-grid a:focus-visible,
.inline-action:hover,
.inline-action:focus-visible,
.sidebar-action:hover,
.sidebar-action:focus-visible,
.legend-actions button:hover,
.legend-actions button:focus-visible {
  border-color: rgba(252, 209, 22, 0.62);
  background:
    linear-gradient(135deg, rgba(252, 209, 22, 0.14), rgba(206, 17, 38, 0.16)),
    rgba(255, 250, 240, 0.045);
}

.steam-button,
.steam-button.is-signed-in {
  border-color: rgba(252, 209, 22, 0.72);
  background:
    linear-gradient(135deg, rgba(252, 209, 22, 0.88), rgba(139, 0, 26, 0.32)),
    #f8e784;
  color: #070913;
  box-shadow: 0 0 24px rgba(252, 209, 22, 0.18);
}

.control-shell,
.livemap-hero,
.streamer-hero,
.profile-empty-stage,
.profile-card,
.tutorial-hero,
.feature-card,
.server-strip,
.live-source-panel,
.map-panel,
.operator-card,
.stream-empty-card,
.stream-guide-card,
.step-card,
.guide-panel,
.important-panel {
  border-color: rgba(252, 209, 22, 0.18);
  background:
    linear-gradient(150deg, rgba(252, 209, 22, 0.05), transparent 18rem),
    linear-gradient(180deg, rgba(0, 14, 50, 0.74), rgba(3, 7, 20, 0.92) 54%, rgba(73, 0, 16, 0.34)),
    rgba(2, 5, 18, 0.9);
  box-shadow:
    0 26px 80px rgba(0, 0, 0, 0.58),
    inset 0 0 0 1px rgba(255, 250, 240, 0.035),
    inset 0 0 44px rgba(206, 17, 38, 0.08);
}

.control-shell::before,
.tutorial-hero::before {
  background: linear-gradient(90deg, #001f61 0 38%, #fffaf0 38% 50%, #8a0018 50% 82%, #fcd116 82%);
  box-shadow: 0 0 18px rgba(206, 17, 38, 0.28);
}

.livemap-hero,
.reference-map-card,
.islemaps-card {
  background:
    linear-gradient(150deg, rgba(255, 250, 240, 0.045), transparent 22rem),
    linear-gradient(180deg, rgba(1, 5, 18, 0.94), rgba(8, 4, 15, 0.96));
}

.pill-row span,
.access-badge,
.map-card-header > span,
.map-card-header > a,
.zone-toggle-grid label,
.map-status-box,
.status-card,
.tool-metric {
  border-color: rgba(252, 209, 22, 0.16);
  background: rgba(0, 8, 28, 0.64);
}

.intro-panel h1,
.livemap-hero h1,
.streamer-hero h1,
.profile-card h1,
.profile-card h2,
.tutorial-hero h1,
.feature-card h2,
.operator-card h2,
.map-card-header h2,
.stream-empty-card h2,
.stream-guide-card h2,
.step-card h2,
.guide-panel h2,
.important-panel h2 {
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.62), 0 0 18px rgba(206, 17, 38, 0.18);
}

.eyebrow,
.brand small,
.main-nav a,
.feature-card p:not(.eyebrow),
.operator-card > p:not(.eyebrow),
.profile-card p:not(.eyebrow),
.profile-warning p,
.stream-empty-card p:not(.eyebrow),
.stream-guide-card li,
.step-card p,
.guide-panel li,
.important-panel li,
.site-footer {
  color: #c8d0e6;
}

.feature-card:nth-child(2n) {
  background:
    linear-gradient(150deg, rgba(139, 0, 26, 0.24), rgba(252, 209, 22, 0.04)),
    rgba(3, 7, 20, 0.88);
}

.feature-card:nth-child(3n),
.important-panel {
  border-color: rgba(252, 209, 22, 0.32);
}

.mini-map {
  background:
    radial-gradient(circle at 62% 34%, rgba(252, 209, 22, 0.16), transparent 12rem),
    linear-gradient(135deg, rgba(0, 20, 78, 0.48), rgba(95, 0, 19, 0.34)),
    url("evrima-backdrop.png") center / cover no-repeat;
  filter: saturate(0.7) contrast(1.2) brightness(0.62);
}

.status-card,
.map-status-box,
.coord-form input,
.friend-form input,
.live-source-form input {
  background: rgba(0, 0, 0, 0.34);
}

.stream-actions a {
  border-color: rgba(252, 209, 22, 0.2);
  background: rgba(255, 250, 240, 0.045);
}

.stream-actions a:hover,
.stream-actions a:focus-visible {
  border-color: rgba(252, 209, 22, 0.62);
  background:
    linear-gradient(135deg, rgba(252, 209, 22, 0.14), rgba(206, 17, 38, 0.16)),
    rgba(255, 250, 240, 0.045);
}

.islemaps-embed,
.islemaps-embed iframe {
  background: #050812;
}

.site-footer {
  border-top: 1px solid rgba(252, 209, 22, 0.12);
}
