:root {
  --bg: #0a120e;
  --panel: #121a16;
  --line: #2f4538;
  --text: #eef3ea;
  --muted: #9aafa0;
  --accent: rgba(214, 168, 74, 0.9);
  --accent-solid: #d6a84a;
  --you: rgba(214, 168, 74, 0.8);
  --friend: #e0a040;
  --other: #6eb6ff;
  --rail: #070c09;
  --ink: #06100b;
  --font-display: "Bebas Neue", "Arial Narrow", sans-serif;
  --font-body: "Barlow", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  min-height: 100vh;
  background-color: var(--ink);
  background-image:
    linear-gradient(180deg, rgba(6, 14, 10, 0.55) 0%, rgba(6, 12, 10, 0.82) 45%, rgba(5, 10, 8, 0.94) 100%),
    url("/dino-freaks-bg.png");
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

body[data-view="home"] {
  background-image:
    linear-gradient(105deg, rgba(4, 10, 7, 0.35) 0%, rgba(4, 10, 7, 0.72) 48%, rgba(4, 8, 6, 0.9) 100%),
    url("/dino-freaks-bg.png");
}

.site-rail {
  position: fixed;
  inset: 0 auto 0 0;
  width: 76px;
  z-index: 40;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 0.55rem 1rem;
  background: linear-gradient(180deg, rgba(7, 12, 9, 0.96), rgba(5, 9, 7, 0.98));
  border-right: 1px solid rgba(214, 168, 74, 0.18);
}

.rail-brand {
  text-decoration: none;
  color: inherit;
}

.rail-brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: block;
  object-fit: cover;
  background: #000;
  box-shadow: 0 0 0 1px rgba(255, 80, 160, 0.35);
}

.app-logo {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  flex-shrink: 0;
  background: #000;
  box-shadow: 0 0 0 1px rgba(255, 80, 160, 0.35);
}

.rail-nav {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  width: 100%;
  flex: 1;
}

.rail-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  display: grid;
  justify-items: center;
  gap: 0.2rem;
  padding: 0.55rem 0.2rem;
  border-radius: 10px;
  cursor: pointer;
  font: inherit;
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.rail-btn svg {
  width: 22px;
  height: 22px;
  opacity: 0.85;
}

.rail-btn:hover,
.rail-btn.is-active {
  color: var(--text);
  background: rgba(214, 168, 74, 0.12);
}

.rail-btn.is-active {
  color: var(--accent-solid);
  box-shadow: inset 0 0 0 1px rgba(214, 168, 74, 0.28);
}

.rail-discord {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  color: #dbe7ff;
  background: rgba(88, 101, 242, 0.22);
  border: 1px solid rgba(140, 155, 255, 0.28);
  text-decoration: none;
}

.rail-discord svg { width: 20px; height: 20px; }

.site-main {
  margin-left: 76px;
  min-height: 100vh;
  position: relative;
  z-index: 1;
}

.view { display: none; min-height: 100vh; }
.view.is-active { display: block; }

.home-hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  align-content: center;
  padding: clamp(2rem, 6vw, 4.5rem) clamp(1.25rem, 5vw, 4rem);
  overflow: hidden;
}

.home-hero-veil {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 55% at 18% 42%, rgba(214, 168, 74, 0.12), transparent 60%),
    linear-gradient(90deg, rgba(4, 10, 7, 0.55) 0%, transparent 55%);
  animation: homeVeil 8s ease-in-out infinite alternate;
}

@keyframes homeVeil {
  from { opacity: 0.75; }
  to { opacity: 1; }
}

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

.home-kicker {
  margin: 0 0 0.55rem;
  font-size: 0.85rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent-solid);
  animation: homeRise 0.8s ease both;
}

.home-brand {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(4.4rem, 12vw, 8.5rem);
  line-height: 0.88;
  letter-spacing: 0.02em;
  color: #f4f1e6;
  text-shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
  animation: homeRise 0.95s ease both 0.08s;
}

.home-tagline {
  margin: 1.1rem 0 0;
  max-width: 34rem;
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.45;
  color: rgba(238, 243, 234, 0.82);
  animation: homeRise 1.05s ease both 0.16s;
}

.home-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.6rem;
  animation: homeRise 1.1s ease both 0.24s;
}

.home-cta {
  appearance: none;
  border: 1px solid transparent;
  border-radius: 4px;
  padding: 0.85rem 1.35rem;
  font: inherit;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.home-cta.primary {
  color: #1a1206;
  background: linear-gradient(180deg, #e6c36f, #c89435);
}

.home-cta.ghost {
  color: var(--text);
  background: rgba(8, 14, 11, 0.45);
  border-color: rgba(238, 243, 234, 0.28);
}

.home-cta:hover { transform: translateY(-1px); }

.home-status {
  position: absolute;
  right: clamp(1rem, 4vw, 3rem);
  bottom: clamp(1.25rem, 4vh, 2.75rem);
  z-index: 2;
  width: min(320px, calc(100% - 2rem));
  padding: 1.1rem 1.15rem 1rem;
  background: rgba(6, 12, 9, 0.72);
  border: 1px solid rgba(214, 168, 74, 0.28);
  backdrop-filter: blur(10px);
  animation: homeRise 1.15s ease both 0.3s;
}

.home-status-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.home-pulse {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #7a8a7e;
  box-shadow: 0 0 0 0 rgba(122, 138, 126, 0.4);
}

.home-pulse.is-online {
  background: #6fd08a;
  animation: pulseOnline 1.6s ease-out infinite;
}

.home-pulse.is-offline { background: #ef6b6b; }

@keyframes pulseOnline {
  0% { box-shadow: 0 0 0 0 rgba(111, 208, 138, 0.55); }
  70% { box-shadow: 0 0 0 12px rgba(111, 208, 138, 0); }
  100% { box-shadow: 0 0 0 0 rgba(111, 208, 138, 0); }
}

.home-status-label,
.home-metric-label {
  margin: 0;
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.home-status-region {
  margin: 0.1rem 0 0;
  font-family: var(--font-display);
  font-size: 1.8rem;
  letter-spacing: 0.08em;
  line-height: 1;
}

.home-status-metrics {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.home-status-metrics strong {
  display: block;
  margin-top: 0.2rem;
  font-size: 1.05rem;
  font-weight: 600;
}

.home-scan {
  margin: 0;
  min-height: 1.2em;
  font-size: 0.86rem;
  color: rgba(214, 168, 74, 0.95);
  letter-spacing: 0.04em;
  border-top: 1px solid rgba(214, 168, 74, 0.18);
  padding-top: 0.7rem;
}

@keyframes homeRise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

/* —— Home server dashboard —— */
.view.view-home.is-active {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100vh;
  padding: 1.25rem 0 2rem;
}

.home-dash {
  --home-lime: #9dff6a;
  --home-gold: #e8c85a;
  --home-panel: rgba(14, 16, 14, 0.82);
  position: relative;
  z-index: 2;
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  animation: homeRise 0.7s ease both;
}

.home-brand-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 0.35rem 0 1.1rem;
  text-align: left;
}

.home-brand-logo {
  width: clamp(72px, 12vw, 96px);
  height: clamp(72px, 12vw, 96px);
  border-radius: 50%;
  object-fit: cover;
  display: block;
  flex-shrink: 0;
  background: #000;
  box-shadow:
    0 0 0 1px rgba(255, 80, 160, 0.4),
    0 14px 36px rgba(0, 0, 0, 0.45);
}

.home-brand-copy {
  min-width: 0;
}

.home-brand-bar .home-kicker {
  margin: 0 0 0.2rem;
  font-size: 0.72rem;
  letter-spacing: 0.28em;
}

.home-brand-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 7vw, 4.2rem);
  line-height: 0.9;
  letter-spacing: 0.03em;
  color: #f4f1e6;
  text-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
}

.home-brand-tag {
  margin: 0.4rem 0 0;
  color: rgba(238, 243, 234, 0.72);
  font-size: 0.92rem;
}

.home-region-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  margin-bottom: 0.85rem;
}

.home-region-label {
  font-size: 0.7rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(238, 243, 234, 0.5);
}

.home-region-toggle {
  display: inline-flex;
  gap: 0.3rem;
  padding: 0.22rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.home-region-btn {
  appearance: none;
  border: 0;
  border-radius: 999px;
  min-width: 3.5rem;
  padding: 0.42rem 1rem;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: rgba(238, 243, 234, 0.5);
  background: rgba(40, 44, 40, 0.85);
  cursor: pointer;
}

.home-region-btn.is-active {
  color: #0c140c;
  background: var(--home-lime);
  box-shadow: 0 0 16px rgba(157, 255, 106, 0.35);
}

.home-region-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.home-dash-shell {
  padding: 0.9rem;
  border-radius: 22px;
  background: rgba(8, 10, 9, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.home-dash-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
  align-items: stretch;
}

.home-panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 1rem 1.05rem 1.05rem;
  border-radius: 16px;
  background: var(--home-panel);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.home-panel-head {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.55rem;
  margin-bottom: 0.9rem;
}

.home-panel-head h2 {
  margin: 0;
  font-family: "Press Start 2P", var(--font-display), monospace;
  font-size: clamp(0.58rem, 1.35vw, 0.78rem);
  line-height: 1.35;
  letter-spacing: 0.04em;
  font-weight: 400;
  color: var(--home-gold);
  text-shadow: 0 0 18px rgba(232, 200, 90, 0.25);
}

.home-panel-icon {
  display: grid;
  place-items: center;
  color: var(--home-lime);
  font-size: 1.2rem;
  line-height: 1;
  filter: drop-shadow(0 0 10px rgba(157, 255, 106, 0.4));
}

.home-panel-icon.status-signal { color: #6ec8ff; filter: drop-shadow(0 0 10px rgba(110, 200, 255, 0.45)); }

.home-event {
  padding: 0.85rem 0.9rem 0.95rem;
  margin-bottom: 0.85rem;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(24, 52, 30, 0.88), rgba(12, 28, 18, 0.92));
  border: 1px solid rgba(110, 190, 120, 0.28);
}

.home-event-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.7rem;
}

.home-event-top strong {
  font-family: "Press Start 2P", var(--font-display), monospace;
  font-size: 0.62rem;
  letter-spacing: 0.04em;
  font-weight: 400;
  color: #e8f5e4;
}

.home-event-badge {
  padding: 0.22rem 0.55rem;
  border-radius: 7px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #0c140c;
  background: var(--home-lime);
}

.home-countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.45rem;
}

.home-countdown > div {
  display: grid;
  justify-items: center;
  gap: 0.2rem;
  padding: 0.6rem 0.2rem 0.5rem;
  border-radius: 10px;
  background: rgba(6, 10, 8, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.home-countdown strong {
  font-size: 1.35rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  color: #f4f7f0;
}

.home-countdown span {
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  color: rgba(238, 243, 234, 0.48);
}

.home-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
  margin-bottom: 1rem;
  flex: 1;
}

.home-stat-card {
  padding: 0.7rem 0.75rem 0.75rem;
  border-radius: 12px;
  background: rgba(22, 26, 22, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.home-stat-card span {
  display: block;
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  color: rgba(238, 243, 234, 0.42);
  margin-bottom: 0.35rem;
}

.home-stat-card strong {
  display: block;
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.15;
  color: #f2f5ef;
}

.home-stat-card strong.is-online {
  color: var(--home-lime);
  text-shadow: 0 0 14px rgba(157, 255, 106, 0.4);
}

.home-stat-card strong.is-offline { color: #ef6b6b; }

.home-capacity-title {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  color: rgba(238, 243, 234, 0.5);
}

.home-capacity-track {
  height: 11px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.home-capacity-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #e2952e, #f2c44a);
  box-shadow: 0 0 14px rgba(242, 196, 74, 0.4);
  transition: width 0.45s ease;
}

.home-capacity-label {
  margin: 0.5rem 0 0;
  text-align: center;
  font-size: 0.95rem;
  font-weight: 600;
  color: #f0c24a;
}

.home-species-cat {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
  margin-bottom: 0.75rem;
}

.home-species-tab {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0.15rem 0.2rem;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(238, 243, 234, 0.4);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.home-species-tab.is-active {
  color: #f0f4ec;
}

.home-species-list {
  flex: 1;
  min-height: 300px;
  max-height: 460px;
  overflow: auto;
  display: grid;
  gap: 0.42rem;
  padding-right: 0.25rem;
  scrollbar-width: thin;
  scrollbar-color: #d4b24a transparent;
}

.home-species-list::-webkit-scrollbar { width: 5px; }
.home-species-list::-webkit-scrollbar-thumb {
  background: #d4b24a;
  border-radius: 999px;
}

.home-species-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.7rem;
  padding: 0.78rem 0.9rem;
  border-radius: 12px;
  background: rgba(22, 26, 22, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.home-species-row.is-full {
  background: rgba(78, 24, 24, 0.55);
  border-color: rgba(220, 80, 80, 0.32);
}

.home-species-row.is-restricted {
  opacity: 0.7;
  border-color: rgba(160, 160, 160, 0.18);
}

.home-species-name {
  font-weight: 600;
  letter-spacing: 0.02em;
}

.home-species-count {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: rgba(238, 243, 234, 0.82);
}

.home-species-legend {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.1rem;
  margin-top: 0.9rem;
  padding-top: 0.8rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.78rem;
  color: rgba(238, 243, 234, 0.6);
}

.home-species-legend span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.home-dash-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
  margin-top: 1rem;
}

.home-dash-actions .home-cta {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

#homeDownloadApp {
  min-width: 11rem;
}

.view-update {
  padding: 1.25rem 1.25rem 2.5rem;
}

.update-page {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.25rem 1.3rem 1.4rem;
  border: 1px solid rgba(214, 168, 74, 0.22);
  border-radius: 16px;
  background:
    linear-gradient(160deg, rgba(18, 16, 12, 0.78), rgba(8, 12, 10, 0.72)),
    rgba(8, 12, 10, 0.55);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28);
  text-align: left;
  animation: homeRise 0.55s ease both;
}

.home-updates {
  margin-top: 1.75rem;
  padding: 1.15rem 1.2rem 1.25rem;
  border: 1px solid rgba(214, 168, 74, 0.22);
  border-radius: 16px;
  background:
    linear-gradient(160deg, rgba(18, 16, 12, 0.78), rgba(8, 12, 10, 0.72)),
    rgba(8, 12, 10, 0.55);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28);
  text-align: left;
}

.home-updates-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.9rem;
}

.home-updates-title {
  margin: 0.15rem 0 0.35rem;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  letter-spacing: 0.06em;
  color: #f4f1e6;
}

.home-updates-version-pill {
  flex-shrink: 0;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(230, 195, 111, 0.45);
  background: rgba(200, 148, 53, 0.16);
  color: #f0d48a;
  font-weight: 700;
  letter-spacing: 0.06em;
  font-size: 0.85rem;
}

.home-updates-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.home-updates-actions .home-cta {
  min-width: 8.5rem;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

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

.home-updates-card {
  padding: 0.85rem 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.22);
  min-height: 9.5rem;
}

.home-updates-card h3 {
  margin: 0 0 0.55rem;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(230, 195, 111, 0.9);
}

.home-updates-card ul {
  margin: 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.35rem;
  font-size: 0.86rem;
  line-height: 1.35;
  color: rgba(238, 243, 234, 0.88);
}

.home-updates-meta {
  margin: 0;
  display: grid;
  gap: 0.45rem;
}

.home-updates-meta > div {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: 0.4rem;
  font-size: 0.86rem;
}

.home-updates-meta dt {
  margin: 0;
  color: rgba(238, 243, 234, 0.5);
  font-weight: 600;
}

.home-updates-meta dd {
  margin: 0;
  color: rgba(238, 243, 234, 0.92);
}

.home-updates-history {
  margin-top: 0.9rem;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding-top: 0.65rem;
}

.home-updates-history > summary {
  cursor: pointer;
  color: rgba(230, 195, 111, 0.95);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  list-style: none;
}

.home-updates-history > summary::-webkit-details-marker { display: none; }

.home-updates-changelog {
  margin-top: 0.65rem;
  display: grid;
  gap: 0.45rem;
}

.home-updates-entry {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.18);
  padding: 0.55rem 0.7rem;
}

.home-updates-entry summary {
  cursor: pointer;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.75rem;
  font-size: 0.84rem;
  color: rgba(238, 243, 234, 0.88);
}

.home-updates-entry ul {
  margin: 0.5rem 0 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.3rem;
  font-size: 0.84rem;
  color: rgba(238, 243, 234, 0.82);
}

.home-updates-entry li.bug {
  color: rgba(255, 196, 170, 0.95);
}

@media (max-width: 960px) {
  .home-updates-board { grid-template-columns: 1fr; }
}

.dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #7a8a7e;
}

.dot.available { background: var(--home-lime); box-shadow: 0 0 8px rgba(157, 255, 106, 0.45); }
.dot.full { background: #ef5b5b; box-shadow: 0 0 8px rgba(239, 91, 91, 0.4); }
.dot.restricted { background: #8a8f8b; }

@media (max-width: 960px) {
  .home-dash-grid { grid-template-columns: 1fr; }
  .home-species-list { max-height: 340px; min-height: 220px; }
  .home-panel-head h2 { font-size: 0.62rem; }
}

@media (max-width: 560px) {
  .home-stat-grid { grid-template-columns: 1fr 1fr; }
  .home-countdown { grid-template-columns: repeat(2, 1fr); }
  .home-dash-shell { padding: 0.65rem; border-radius: 16px; }
}

/* —— Survivor dossier (profile) —— */
.view-profile {
  padding: 1rem 1.25rem 2.5rem;
}

.dossier {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  gap: 1rem;
  animation: homeRise 0.55s ease both;
}

.dossier-header {
  border: 1px solid rgba(214, 168, 74, 0.28);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(18, 16, 12, 0.82), rgba(8, 12, 10, 0.78)),
    rgba(8, 12, 10, 0.72);
  box-shadow: 0 0 0 1px rgba(255, 200, 100, 0.04), 0 18px 40px rgba(0, 0, 0, 0.35);
  padding: 1.15rem 1.25rem;
  backdrop-filter: blur(10px);
}

.dossier-identity {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem 1.25rem;
  align-items: start;
}

.dossier-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: rgba(214, 168, 74, 0.85);
  background: radial-gradient(circle at 35% 30%, rgba(40, 36, 28, 0.95), rgba(10, 12, 10, 0.98));
  border: 2px solid rgba(214, 168, 74, 0.55);
  box-shadow: 0 0 18px rgba(214, 168, 74, 0.25);
}

.dossier-avatar.is-signed-in {
  border-color: rgba(232, 180, 70, 0.9);
  box-shadow: 0 0 22px rgba(232, 180, 70, 0.4);
}

.dossier-avatar svg {
  width: 34px;
  height: 34px;
}

.dossier-name-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 0.85rem;
}

.dossier-name {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  letter-spacing: 0.04em;
  line-height: 0.95;
  font-weight: 400;
}

.dossier-level {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #1a1206;
  background: linear-gradient(180deg, #f0c266, #d48a2a);
  box-shadow: 0 0 12px rgba(214, 168, 74, 0.35);
}

.dossier-sub {
  margin: 0.35rem 0 0.85rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.dossier-xp-block {
  display: grid;
  gap: 0.4rem;
  max-width: 420px;
}

.dossier-xp-meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: rgba(238, 243, 234, 0.7);
  font-weight: 600;
}

.dossier-xp-track {
  height: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  border: 1px solid rgba(214, 168, 74, 0.15);
}

.dossier-xp-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #c8892a, #f0c266);
  box-shadow: 0 0 10px rgba(214, 168, 74, 0.45);
  transition: width 0.35s ease;
}

.dossier-reward {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--accent-solid);
}

.dossier-header-actions {
  display: grid;
  gap: 0.55rem;
  justify-items: end;
  align-content: start;
}

.dossier-login-btn {
  white-space: nowrap;
}

.dossier-layout {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 1rem;
  align-items: start;
}

.dossier-nav {
  display: grid;
  gap: 0.4rem;
  padding: 0.65rem;
  border-radius: 16px;
  border: 1px solid rgba(214, 168, 74, 0.2);
  background: rgba(8, 12, 10, 0.72);
  backdrop-filter: blur(8px);
}

.dossier-nav-btn {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  padding: 0.7rem 0.8rem;
  border-radius: 12px;
  border: 1px solid transparent;
  background: transparent;
  color: rgba(238, 243, 234, 0.78);
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.dossier-nav-btn svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  opacity: 0.85;
}

.dossier-nav-btn:hover {
  color: var(--text);
  background: rgba(214, 168, 74, 0.08);
}

.dossier-nav-btn.is-active {
  color: #fff8e8;
  border-color: rgba(214, 168, 74, 0.55);
  background: linear-gradient(90deg, rgba(214, 168, 74, 0.18), rgba(214, 168, 74, 0.05));
  box-shadow: 0 0 16px rgba(214, 168, 74, 0.18);
}

.dossier-main {
  min-width: 0;
}

.dossier-panel {
  display: grid;
  gap: 1rem;
  padding: 1.15rem 1.2rem 1.35rem;
  border-radius: 16px;
  border: 1px solid rgba(214, 168, 74, 0.2);
  background: rgba(8, 12, 10, 0.72);
  backdrop-filter: blur(8px);
}

.dossier-panel[hidden] {
  display: none !important;
}

.dossier-panel-head h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.85rem;
  letter-spacing: 0.06em;
  font-weight: 400;
}

.dossier-panel-head p {
  margin: 0.2rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.proximity-chat {
  display: grid;
  gap: 1rem;
}

.proximity-chat-status {
  display: grid;
  gap: 0.55rem;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(214, 168, 74, 0.18);
  border-radius: 12px;
  background: rgba(6, 12, 9, 0.55);
}

.proximity-chat-columns {
  display: grid;
  grid-template-columns: minmax(220px, 0.9fr) minmax(280px, 1.4fr);
  gap: 1rem;
  align-items: start;
}

.proximity-chat-col {
  display: grid;
  gap: 0.55rem;
  min-width: 0;
}

.proximity-chat .voice-settings {
  margin: 0;
  border-top: none;
  padding-top: 0;
}

.proximity-chat .voice-settings-grid {
  max-width: none;
}

.prox-subtabs {
  display: flex;
  gap: 0.35rem;
  padding: 0.2rem;
  border: 1px solid rgba(238, 243, 234, 0.14);
  border-radius: 10px;
  background: rgba(6, 12, 9, 0.55);
}

.prox-subtab {
  flex: 1;
  appearance: none;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.55rem 0.65rem;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.prox-subtab:hover {
  color: var(--text);
}

.prox-subtab.is-active {
  background: rgba(214, 168, 74, 0.18);
  color: var(--accent-solid);
}

.prox-subpanel {
  display: none;
  min-width: 0;
}

/* Beat UA [hidden]{display:none} when the Keybinds tab is active */
.prox-subpanel.is-active {
  display: block !important;
}

.proximity-chat .voice-keybinds-block {
  border: 1px solid rgba(214, 168, 74, 0.16);
  border-radius: 12px;
  background: rgba(6, 12, 9, 0.45);
  padding: 0.9rem 1rem;
  margin: 0;
}

.keybind-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.25rem;
}

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

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

.dossier-stat {
  display: grid;
  gap: 0.25rem;
  justify-items: start;
  padding: 0.85rem 0.75rem;
  border-radius: 14px;
  border: 1px solid rgba(214, 168, 74, 0.16);
  background: linear-gradient(180deg, rgba(20, 18, 14, 0.9), rgba(10, 12, 10, 0.92));
}

.dossier-stat-icon {
  font-size: 1rem;
  filter: grayscale(0.2) saturate(1.2);
}

.dossier-stat strong {
  font-family: var(--font-display);
  font-size: 2rem;
  line-height: 1;
  color: #f0c266;
  font-weight: 400;
  letter-spacing: 0.02em;
}

.dossier-stat span:last-child {
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: rgba(238, 243, 234, 0.62);
}

.dossier-dino-card {
  display: grid;
  gap: 0.85rem;
  padding: 1rem;
  border-radius: 14px;
  border: 1px solid rgba(214, 168, 74, 0.18);
  background: rgba(6, 10, 8, 0.55);
}

.dossier-dino-body {
  min-height: 160px;
  border-radius: 12px;
  border: 1px dashed rgba(214, 168, 74, 0.28);
  display: grid;
  place-items: center;
  padding: 1.25rem;
}

.dossier-dino-empty {
  text-align: center;
  color: var(--muted);
  display: grid;
  gap: 0.55rem;
  justify-items: center;
}

.dossier-dino-prints {
  font-size: 1.6rem;
  opacity: 0.7;
  letter-spacing: 0.4rem;
}

.dossier-dino-empty p,
.dossier-placeholder p {
  margin: 0;
  max-width: 28rem;
}

.dossier-dino-live {
  width: 100%;
  display: grid;
  gap: 0.85rem;
  justify-items: start;
}

.dossier-dino-species {
  font-family: var(--font-display);
  font-size: 2rem;
  letter-spacing: 0.04em;
  color: #f0c266;
}

.dossier-dino-vitals {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
  width: 100%;
}

.dossier-dino-vitals div {
  display: grid;
  gap: 0.2rem;
  padding: 0.55rem 0.65rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(214, 168, 74, 0.12);
}

.dossier-dino-vitals span {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 700;
}

.dossier-dino-vitals strong {
  font-size: 1.05rem;
}

.dossier-dino-pos {
  margin: 0;
  color: rgba(238, 243, 234, 0.8);
  font-variant-numeric: tabular-nums;
}

.dossier-placeholder {
  display: grid;
  gap: 0.85rem;
  padding: 1.25rem;
  border-radius: 12px;
  border: 1px dashed rgba(214, 168, 74, 0.25);
  color: var(--muted);
}

.dossier-allies-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.dossier-allies-list li {
  display: grid;
  gap: 0.1rem;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  border: 1px solid rgba(214, 168, 74, 0.14);
  background: rgba(0, 0, 0, 0.2);
}

.dossier-identity-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.85rem;
}

.dossier-info-card {
  display: grid;
  gap: 0.65rem;
  align-content: start;
  padding: 1rem;
  border-radius: 14px;
  border: 1px solid rgba(214, 168, 74, 0.18);
  background: rgba(6, 10, 8, 0.5);
}

.dossier-info-card h4 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.4rem;
  letter-spacing: 0.05em;
  font-weight: 400;
}

.profile-discord-panel {
  border-color: rgba(114, 137, 218, 0.4);
  background: linear-gradient(160deg, rgba(20, 24, 48, 0.78), rgba(8, 14, 11, 0.82));
}

.profile-discord-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  background: linear-gradient(180deg, #7289da, #5865f2) !important;
  color: #fff !important;
}

.profile-discord-url {
  margin: 0;
  letter-spacing: 0.04em;
}

@media (max-width: 960px) {
  .dossier-dino-vitals {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .dossier-identity {
    grid-template-columns: auto 1fr;
  }
  .dossier-header-actions {
    grid-column: 1 / -1;
    justify-items: stretch;
  }
  .dossier-layout {
    grid-template-columns: 1fr;
  }
  .dossier-nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .dossier-nav-btn {
    flex-direction: column;
    font-size: 0.75rem;
    padding: 0.55rem 0.35rem;
    text-align: center;
    gap: 0.3rem;
  }
}

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

.app {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1.25rem;
  position: relative;
  z-index: 1;
}

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

.brand {
  display: flex;
  gap: 0.85rem;
  align-items: center;
}

.logo-mark {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, rgba(80, 110, 70, 0.65), rgba(16, 24, 18, 0.9));
  border: 1px solid var(--line);
  color: var(--accent-solid);
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 400;
}

h1 { margin: 0; font-size: 1.45rem; }
.subtitle { margin: 0.15rem 0 0; color: var(--muted); font-size: 0.9rem; }

.status-group { display: flex; flex-wrap: wrap; gap: 0.4rem; }

.status-pill {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  font-size: 0.8rem;
  color: var(--muted);
}
.status-pill.online { color: var(--accent-solid); border-color: rgba(214, 168, 74, 0.45); }
.status-pill.offline { color: #ef6b6b; }

@media (max-width: 720px) {
  .site-rail {
    width: 100%;
    height: 64px;
    inset: auto 0 0 0;
    flex-direction: row;
    padding: 0.45rem 0.65rem;
    border-right: 0;
    border-top: 1px solid rgba(214, 168, 74, 0.18);
  }
  .rail-nav {
    flex-direction: row;
    justify-content: center;
    flex: 1;
  }
  .rail-btn span { display: none; }
  .rail-discord { width: 38px; height: 38px; }
  .site-main { margin-left: 0; padding-bottom: 72px; }
  .home-status {
    position: relative;
    right: auto;
    bottom: auto;
    margin-top: 2rem;
    width: min(100%, 360px);
  }
}

.card {
  background: rgba(28, 18, 42, 0.72);
  border: 1px solid rgba(200, 160, 255, 0.18);
  border-radius: 16px;
  padding: 1rem;
  margin-bottom: 1rem;
  backdrop-filter: blur(8px);
}

.card-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.5rem;
}

.card-head h2 { margin: 0; font-size: 1.1rem; }
.hint { color: var(--muted); font-size: 0.9rem; }

.steam-login-btn {
  background: #171a21;
  color: #fff;
  border: 1px solid #2a475e;
  border-radius: 10px;
  padding: 0.75rem 1rem;
  cursor: pointer;
  font-weight: 600;
}
.steam-login-btn:hover { border-color: #66c0f4; }

.user-bar {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.user-actions { display: flex; gap: 0.5rem; align-items: center; }

.role-pill, .chip {
  border: 1px solid rgba(200, 160, 255, 0.25);
  background: rgba(40, 28, 58, 0.85);
  color: var(--text);
  border-radius: 999px;
  padding: 0.3rem 0.7rem;
  font-size: 0.8rem;
}
.chip:hover {
  border-color: rgba(200, 160, 255, 0.55);
  color: var(--accent-solid);
}
.chip { cursor: pointer; }

.map-layout {
  display: grid;
  grid-template-columns: minmax(220px, 260px) minmax(0, 1fr) minmax(240px, 280px);
  gap: 1rem;
  align-items: start;
}

.map-controls,
.map-side {
  background: rgba(28, 18, 42, 0.72);
  border: 1px solid rgba(200, 160, 255, 0.18);
  border-radius: 12px;
  padding: 0.85rem 0.9rem;
  display: grid;
  gap: 0.85rem;
  max-height: min(960px, 85vh);
  overflow: auto;
}

.map-side {
  align-content: start;
}

.side-section {
  display: grid;
  gap: 0.45rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.map-side > .side-section:first-child {
  border-top: none;
  padding-top: 0;
}

.side-section h3,
.map-controls h3 {
  margin: 0;
  font-size: 0.95rem;
}

.side-section > summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--text);
  user-select: none;
}

.voice-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.voice-settings {
  margin-top: 0.35rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 0.55rem;
}

.voice-settings > summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--text);
  user-select: none;
}

.voice-settings-grid {
  display: grid;
  gap: 0.55rem;
  margin-top: 0.55rem;
}

.voice-settings-grid label {
  display: grid;
  gap: 0.25rem;
}

.voice-settings-grid select {
  width: 100%;
  background: rgba(40, 28, 58, 0.85);
  border: 1px solid rgba(200, 160, 255, 0.25);
  border-radius: 8px;
  color: var(--text);
  padding: 0.35rem 0.45rem;
  font-size: 0.85rem;
}

.voice-settings-grid input[type="range"] {
  flex: 1;
  min-width: 0;
  accent-color: var(--accent-solid);
}

.voice-cmd-block {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 0.55rem;
  margin-top: 0.15rem;
}

.voice-keybinds-block {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 0.55rem;
  margin-top: 0.15rem;
  display: grid;
  gap: 0.45rem;
}

.keybind-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text);
}

.keybind-row > span {
  flex: 1;
  min-width: 0;
}

.ptt-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.ptt-bind-btn.listening {
  border-color: var(--accent-solid);
  color: var(--accent-solid);
  animation: ptt-pulse 1s ease-in-out infinite;
}

@keyframes ptt-pulse {
  50% { opacity: 0.65; }
}

.voice-game-link.linked {
  color: var(--accent-solid);
}
.voice-game-link.waiting {
  color: #ef6b6b;
}

.voice-peers,
.player-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.25rem;
}

.voice-peers li,
.player-list li {
  padding: 0.35rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.85rem;
  color: var(--muted);
}

.voice-peers li:first-child,
.player-list li:first-child {
  border-top: none;
}

.voice-peers strong,
.player-list strong {
  color: var(--text);
}

.user-bar.compact {
  flex-direction: column;
  align-items: stretch;
}

.map-side .steam-login-btn {
  width: 100%;
}

.ctrl-block {
  display: grid;
  gap: 0.35rem;
  padding-top: 0.65rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.ctrl-block:first-of-type,
.map-controls > .hint + .ctrl-block {
  border-top: none;
  padding-top: 0;
}

.ctrl-label {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.ctrl-row {
  display: flex;
  gap: 0.35rem;
  align-items: center;
}

.ctrl-row input[type="text"] {
  flex: 1;
  min-width: 0;
  background: rgba(40, 28, 58, 0.85);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  padding: 0.4rem 0.5rem;
  font-size: 0.85rem;
}

.ctrl-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.map-main { min-width: 0; }

.map-wrap {
  position: relative;
  background: #0b100d;
  border-radius: 12px;
}

.map-wrap:fullscreen,
.map-wrap:-webkit-full-screen {
  width: 100%;
  height: 100%;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0b100d;
}

.map-wrap:fullscreen canvas,
.map-wrap:-webkit-full-screen canvas {
  max-height: 100vh;
  max-width: 100vw;
  width: auto;
  height: auto;
}

.friends-panel { display: grid; gap: 0.4rem; }
.friends-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.25rem;
}
.friends-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: var(--muted);
  padding: 0.25rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.friends-list li strong {
  color: var(--text);
  font-weight: 500;
  word-break: break-all;
}
.friends-list button {
  flex-shrink: 0;
}

.map-hint { margin: 0.35rem 0 0; }

canvas {
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #0b100d;
  touch-action: none;
  cursor: grab;
  display: block;
}
canvas.dragging { cursor: grabbing; }

.map-zoom {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  gap: 0.35rem;
  align-items: center;
  background: rgba(28, 18, 42, 0.82);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.35rem 0.45rem;
  backdrop-filter: blur(4px);
}
.map-zoom button {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: rgba(40, 28, 58, 0.85);
  color: var(--text);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
}
.map-zoom #zoomResetBtn {
  width: auto;
  min-width: 0;
  padding: 0 0.4rem;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.map-zoom button:hover { border-color: var(--accent-solid); color: var(--accent-solid); }
#zoomLabel {
  min-width: 2.6rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.8rem;
}

.map-legend {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  gap: 0.45rem;
  margin-top: 0;
  color: var(--muted);
  font-size: 0.85rem;
  align-items: flex-start;
}
.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 0.35rem;
}
.dot.you { background: var(--you); }
.dot.friend { background: var(--friend); }
.dot.other { background: var(--other); }

.zone-swatch {
  width: 14px;
  height: 10px;
  border-radius: 3px;
  display: inline-block;
  margin-right: 0.35rem;
  vertical-align: middle;
}
.zone-swatch.sanctuary {
  background: rgba(140, 70, 200, 0.75);
  border: 2px dashed #f5d76e;
}
.zone-swatch.patrol {
  background: rgba(210, 55, 55, 0.75);
  border: 2px solid #d23737;
}
.zone-swatch.migration {
  background: rgba(46, 170, 90, 0.75);
  border: 2px solid #2eaa5a;
}

.zone-adjust {
  margin-top: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  padding: 0.75rem 0 0;
}
.zone-adjust summary {
  cursor: pointer;
  color: var(--text);
  font-weight: 600;
  user-select: none;
}
.zone-adjust-grid {
  display: grid;
  gap: 0.65rem;
  margin-top: 0.65rem;
}
.zone-adjust label {
  display: grid;
  gap: 0.3rem;
  color: var(--muted);
  font-size: 0.82rem;
}
.zone-adjust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  align-items: center;
}
.zone-adjust-row input[type="number"] {
  width: 7rem;
  background: rgba(40, 28, 58, 0.85);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  padding: 0.35rem 0.45rem;
  font-size: 0.9rem;
}
.zone-adjust-row button {
  min-width: 2.4rem;
  height: 30px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: rgba(40, 28, 58, 0.85);
  color: var(--text);
  font-size: 0.78rem;
  cursor: pointer;
  padding: 0 0.4rem;
}
.zone-adjust-row button:hover {
  border-color: var(--accent-solid);
  color: var(--accent-solid);
}
.zone-adjust-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}
.zone-toggle {
  display: inline-flex !important;
  align-items: center;
  gap: 0.4rem;
  grid-template-columns: none !important;
  color: var(--text) !important;
  font-size: 0.85rem !important;
  cursor: pointer;
  user-select: none;
}
.zone-toggle input { accent-color: var(--accent-solid); }
.zone-adjust-row input[type="range"] {
  flex: 1;
  min-width: 120px;
}
.zone-edit-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  max-width: min(420px, calc(100% - 140px));
  background: rgba(180, 90, 30, 0.9);
  border: 1px solid #e0a060;
  color: #fff8ef;
  border-radius: 10px;
  padding: 0.4rem 0.65rem;
  font-size: 0.78rem;
  line-height: 1.3;
  pointer-events: none;
  z-index: 2;
}
canvas.zone-editing {
  cursor: crosshair;
  outline: 2px solid rgba(224, 160, 96, 0.65);
  outline-offset: -2px;
}
.zone-selected-bar {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.55rem 0.65rem;
  background: rgba(24, 34, 25, 0.7);
  display: grid;
  gap: 0.4rem;
}
.zone-selected-bar strong {
  color: var(--text);
  font-size: 0.9rem;
}

.zone-publish-btn {
  border-color: rgba(214, 168, 74, 0.55) !important;
  color: #1a1206 !important;
  background: linear-gradient(180deg, #e6c36f, #c89435) !important;
  font-weight: 700;
}

.hidden { display: none !important; }

@media (max-width: 1100px) {
  .map-layout {
    grid-template-columns: minmax(220px, 260px) minmax(0, 1fr);
  }
  .map-side {
    grid-column: 1 / -1;
    max-height: none;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  }
  .map-side > .side-section:first-child {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 0.75rem;
  }
}

@media (max-width: 900px) {
  .map-layout {
    grid-template-columns: 1fr;
  }
  .map-controls,
  .map-side {
    max-height: none;
  }
}

@media (max-width: 720px) {
  .header { flex-direction: column; align-items: flex-start; }
}

/* —— Skins gallery (NERF-style hub) —— */
.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;
}

.view-skins {
  padding: 1rem 1.25rem 2.5rem;
}

.skins-shell {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  gap: 1rem;
  animation: homeRise 0.5s ease both;
}

/* —— Phenotype lab —— */
.phenotype-hero .skins-title {
  font-size: clamp(1.8rem, 4.5vw, 3rem);
}

.phenotype-lab {
  --pheno-amber: #f0b43a;
  --pheno-amber-hot: #ffc94a;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 380px);
  gap: 0.9rem;
  align-items: stretch;
  min-height: min(72vh, 720px);
}

.pheno-viewport {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: radial-gradient(ellipse at 50% 40%, #1a1e1a 0%, #080a08 70%);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
  min-height: 480px;
}

.pheno-embers {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 20% 90%, rgba(240, 160, 40, 0.12), transparent 45%),
    radial-gradient(ellipse at 80% 95%, rgba(255, 80, 30, 0.08), transparent 40%);
}

.pheno-viewport canvas {
  position: relative;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  min-height: 480px;
}

.pheno-3d-status {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  text-align: center;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  color: rgba(238, 243, 234, 0.85);
  background: rgba(6, 8, 6, 0.72);
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.pheno-3d-status[hidden],
.pheno-3d-status.is-ready {
  opacity: 0;
  visibility: hidden;
}

.pheno-3d-status.is-error {
  opacity: 1;
  visibility: visible;
  color: #ffc9a0;
  pointer-events: auto;
}

.pheno-bg-control {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  z-index: 2;
  display: grid;
  gap: 0.25rem;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  color: rgba(238, 243, 234, 0.55);
}

.pheno-bg-control select,
.pheno-field select,
.pheno-anim-wrap select {
  appearance: none;
  background: rgba(10, 12, 10, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text);
  border-radius: 8px;
  padding: 0.45rem 0.65rem;
  font: inherit;
  font-size: 0.82rem;
  min-width: 120px;
}

.pheno-zoom-controls {
  position: absolute;
  right: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  pointer-events: auto;
}

.pheno-zoom-btn {
  width: 2.55rem;
  height: 2.55rem;
  padding: 0;
  display: grid;
  place-items: center;
  font-size: 1.35rem;
  line-height: 1;
  border-radius: 10px;
  backdrop-filter: blur(6px);
  pointer-events: auto;
  touch-action: manipulation;
}

.pheno-natural-skin {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0.65rem 0 0.35rem;
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  color: rgba(238, 243, 234, 0.85);
  cursor: pointer;
}

.pheno-natural-skin input {
  width: 1rem;
  height: 1rem;
  accent-color: var(--pheno-amber);
}

.pheno-skin-hint {
  margin: 0 0 0.75rem;
  font-size: 0.78rem;
  line-height: 1.35;
}

.pheno-skin-hint code {
  font-size: 0.72rem;
  color: var(--pheno-amber);
}

.pheno-stage-controls {
  position: absolute;
  left: 50%;
  bottom: 1rem;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  align-items: center;
}

.pheno-btn {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 0.65rem 1.1rem;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  color: var(--text);
  background: rgba(16, 18, 16, 0.88);
}

.pheno-btn.accent {
  color: #1a1206;
  background: linear-gradient(180deg, var(--pheno-amber-hot), var(--pheno-amber));
  border-color: transparent;
  box-shadow: 0 0 18px rgba(240, 180, 58, 0.35);
}

.pheno-btn.ghost:hover,
.pheno-btn.is-active {
  border-color: rgba(240, 180, 58, 0.45);
  background: rgba(240, 180, 58, 0.12);
}

.pheno-config {
  position: relative;
  z-index: 4;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  padding: 1rem 1.05rem 1.1rem;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(12, 14, 12, 0.88);
  backdrop-filter: blur(12px);
  max-height: min(72vh, 720px);
  overflow: auto;
  pointer-events: auto;
}

.pheno-config-head {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--pheno-amber);
}

.pheno-config-head h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.08em;
  font-weight: 400;
}

.pheno-growth {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.35rem;
  padding: 0.25rem;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.35);
}

.pheno-growth-btn {
  appearance: none;
  border: 0;
  border-radius: 8px;
  padding: 0.55rem 0.3rem;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: rgba(238, 243, 234, 0.55);
  background: transparent;
  cursor: pointer;
}

.pheno-growth-btn.is-active {
  color: #1a1206;
  background: var(--pheno-amber);
}

.pheno-field {
  display: grid;
  gap: 0.3rem;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  color: rgba(238, 243, 234, 0.5);
}

.pheno-field select { width: 100%; min-width: 0; }

.pheno-selected-badge {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  z-index: 2;
  padding: 0.4rem 0.7rem;
  border-radius: 8px;
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.06em;
  color: #1a1206;
  background: linear-gradient(180deg, #ffc94a, #f0b43a);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

.pheno-dino-select {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.5rem;
  padding: 0.65rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.28);
  pointer-events: auto;
}

.pheno-species-field select {
  width: 100%;
  min-width: 0;
  cursor: pointer;
  pointer-events: auto;
  position: relative;
  z-index: 2;
}

.pheno-growth-btn,
.pheno-diet-btn,
.pheno-sex-btn,
.pheno-dino-card,
.pheno-glitch,
.pheno-btn,
.pheno-swatch {
  position: relative;
  z-index: 2;
  pointer-events: auto !important;
  touch-action: manipulation;
  -webkit-user-select: none;
  user-select: none;
}

.pheno-hex {
  -webkit-user-select: text;
  user-select: text;
  touch-action: auto;
}

.pheno-dino-select-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  color: rgba(238, 243, 234, 0.5);
}

.pheno-dino-select-head strong {
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  color: var(--pheno-amber);
  font-weight: 700;
}

.pheno-diet-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.pheno-diet-btn {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  padding: 0.28rem 0.55rem;
  font: inherit;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(238, 243, 234, 0.55);
  background: rgba(12, 14, 12, 0.7);
  cursor: pointer;
}

.pheno-diet-btn.is-active {
  color: #1a1206;
  background: var(--pheno-amber);
  border-color: transparent;
}

.pheno-dino-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem;
  max-height: 210px;
  overflow: auto;
  padding-right: 0.15rem;
  scrollbar-width: thin;
  scrollbar-color: #d4b24a transparent;
}

.pheno-dino-card {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 0.45rem;
  row-gap: 0.1rem;
  align-items: center;
  padding: 0.5rem 0.55rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(18, 20, 18, 0.9);
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  pointer-events: auto;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.pheno-dino-card:hover {
  border-color: rgba(240, 180, 58, 0.4);
  transform: translateY(-1px);
}

.pheno-dino-card.is-active {
  border-color: rgba(240, 180, 58, 0.85);
  background: linear-gradient(135deg, rgba(240, 180, 58, 0.22), rgba(18, 20, 18, 0.95));
  box-shadow: 0 0 14px rgba(240, 180, 58, 0.18);
}

.pheno-dino-icon {
  grid-row: 1 / span 2;
  font-size: 1.15rem;
  line-height: 1;
}

.pheno-dino-name {
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.15;
}

.pheno-dino-diet {
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(238, 243, 234, 0.45);
}

.pheno-sex {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem;
}

.pheno-sex-btn {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 0.55rem;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: rgba(238, 243, 234, 0.55);
  background: rgba(0, 0, 0, 0.3);
  cursor: pointer;
}

.pheno-sex-btn.is-active {
  color: #1a1206;
  background: #e89a2a;
  border-color: transparent;
}

.pheno-slider {
  display: grid;
  gap: 0.35rem;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  color: rgba(238, 243, 234, 0.55);
}

.pheno-slider span {
  display: flex;
  justify-content: space-between;
}

.pheno-slider em {
  font-style: normal;
  color: var(--pheno-amber);
  letter-spacing: 0;
}

.pheno-slider input[type="range"] {
  width: 100%;
  accent-color: var(--pheno-amber);
}

.pheno-glitch {
  appearance: none;
  width: 100%;
  border-radius: 10px;
  padding: 0.7rem;
  font: inherit;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: #f4e8ff;
  cursor: pointer;
  background: rgba(20, 10, 28, 0.9);
  border: 1px solid #c44dff;
  box-shadow: 0 0 16px rgba(196, 77, 255, 0.35), inset 0 0 12px rgba(196, 77, 255, 0.12);
}

.pheno-glitch.is-on {
  box-shadow: 0 0 24px rgba(196, 77, 255, 0.65), inset 0 0 16px rgba(196, 77, 255, 0.25);
}

.pheno-pigment {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem;
}

.pheno-swatch {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.5rem 0.6rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.35);
  color: var(--text);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  text-align: left;
}

.pheno-swatch.is-active {
  border-color: rgba(240, 180, 58, 0.55);
  box-shadow: 0 0 12px rgba(240, 180, 58, 0.2);
}

.pheno-swatch[data-region="eyes"].is-active {
  border-color: rgba(255, 60, 60, 0.65);
  box-shadow: 0 0 16px rgba(255, 40, 40, 0.35);
}

.pheno-swatch-chip-wrap {
  position: relative;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  cursor: pointer;
}

.pheno-swatch-chip {
  display: block;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.pheno-swatch-chip-wrap input[type="color"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  border: 0;
  padding: 0;
}

.pheno-swatch-meta {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
  flex: 1;
}

.pheno-swatch-meta > span {
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

.pheno-hex {
  width: 100%;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.45);
  color: #f2f5ef;
  font: inherit;
  font-family: ui-monospace, Consolas, monospace;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.28rem 0.4rem;
}

.pheno-hex:focus {
  outline: none;
  border-color: rgba(240, 180, 58, 0.7);
  box-shadow: 0 0 0 2px rgba(240, 180, 58, 0.18);
}

.pheno-hex.is-invalid {
  border-color: rgba(239, 107, 107, 0.8);
  color: #ffb4b4;
}

.pheno-preset-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem;
}

.pheno-preset-actions .pheno-btn,
.pheno-save-new {
  padding: 0.55rem 0.5rem;
  font-size: 0.72rem;
}

.pheno-save-new { width: 100%; color: var(--pheno-amber); }

.pheno-apply {
  width: 100%;
  margin-top: 0.15rem;
  padding: 0.9rem 1rem;
  font-size: 0.92rem;
}

.pheno-toast {
  margin: 0;
  text-align: center;
  font-size: 0.82rem;
  color: var(--pheno-amber);
}

.skins-catalog-panel {
  border-radius: 16px;
  border: 1px solid rgba(214, 168, 74, 0.22);
  background: rgba(8, 12, 10, 0.65);
  padding: 0.75rem 1rem 1rem;
}

.skins-catalog-panel > summary {
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 1.4rem;
  letter-spacing: 0.06em;
  color: var(--accent-solid);
  list-style: none;
}

.skins-catalog-panel > summary::-webkit-details-marker { display: none; }

.skins-catalog-panel .catalog-filters {
  margin: 0.85rem 0;
}

.skins-catalog-panel[open] .skins-layout {
  margin-top: 0.25rem;
}

@media (max-width: 980px) {
  .phenotype-lab {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .pheno-viewport,
  .pheno-viewport canvas { min-height: 360px; }
  .pheno-config { max-height: none; }
}

.skins-hero {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  align-items: end;
  padding: 1.15rem 1.25rem;
  border-radius: 18px;
  border: 1px solid rgba(214, 168, 74, 0.28);
  background: rgba(8, 12, 10, 0.72);
  backdrop-filter: blur(10px);
}

.skins-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6vw, 4rem);
  letter-spacing: 0.05em;
  line-height: 0.95;
  font-weight: 400;
}

.skins-lead {
  margin: 0.4rem 0 0;
  color: var(--muted);
  max-width: 36rem;
}

.skins-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
}

.skins-search-wrap input,
.skins-diet-wrap select {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(214, 168, 74, 0.25);
  color: var(--text);
  border-radius: 10px;
  padding: 0.55rem 0.75rem;
  font: inherit;
  min-width: 160px;
}

.skins-layout {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr) 280px;
  gap: 0.85rem;
  align-items: start;
}

.skins-species {
  display: grid;
  gap: 0.3rem;
  padding: 0.55rem;
  border-radius: 16px;
  border: 1px solid rgba(214, 168, 74, 0.2);
  background: rgba(8, 12, 10, 0.72);
  max-height: min(70vh, 720px);
  overflow: auto;
}

.skins-species-btn {
  text-align: left;
  border: 1px solid transparent;
  background: transparent;
  color: rgba(238, 243, 234, 0.78);
  border-radius: 10px;
  padding: 0.5rem 0.65rem;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
}

.skins-species-btn:hover {
  background: rgba(214, 168, 74, 0.08);
  color: var(--text);
}

.skins-species-btn.is-active {
  border-color: rgba(214, 168, 74, 0.5);
  background: linear-gradient(90deg, rgba(214, 168, 74, 0.18), rgba(214, 168, 74, 0.05));
  color: #fff8e8;
}

.skins-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.75rem;
}

.skins-card {
  display: grid;
  gap: 0;
  padding: 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(214, 168, 74, 0.18);
  background: rgba(8, 12, 10, 0.8);
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.skins-card:hover {
  border-color: rgba(214, 168, 74, 0.45);
  transform: translateY(-2px);
}

.skins-card.is-selected {
  border-color: rgba(240, 194, 102, 0.85);
  box-shadow: 0 0 18px rgba(214, 168, 74, 0.22);
}

.skins-card-preview {
  height: 92px;
}

.skins-card-body {
  display: grid;
  gap: 0.4rem;
  padding: 0.7rem 0.75rem 0.8rem;
}

.skins-card-top {
  display: flex;
  justify-content: space-between;
  gap: 0.4rem;
  align-items: start;
}

.skins-card-top strong {
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: 0.03em;
  font-weight: 400;
}

.skins-badge {
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  font-weight: 700;
  color: rgba(238, 243, 234, 0.7);
  white-space: nowrap;
}

.skins-swatches {
  display: flex;
  gap: 0.3rem;
}

.skins-swatches .swatch {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  display: inline-block;
}

.skins-swatches.large .swatch {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}

.skins-card-price {
  font-size: 0.8rem;
  color: var(--accent-solid);
  font-weight: 700;
}

.skins-detail {
  display: grid;
  gap: 0.85rem;
  padding: 0.85rem;
  border-radius: 16px;
  border: 1px solid rgba(214, 168, 74, 0.22);
  background: rgba(8, 12, 10, 0.78);
  position: sticky;
  top: 1rem;
}

.skins-detail-preview {
  height: 120px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.skins-detail-copy {
  display: grid;
  gap: 0.55rem;
}

.skins-detail-copy h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.9rem;
  letter-spacing: 0.04em;
  font-weight: 400;
}

.skins-detail-kicker {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  font-weight: 700;
  color: var(--accent-solid);
}

.skins-detail-species {
  margin: 0;
  color: rgba(238, 243, 234, 0.78);
  font-size: 0.9rem;
}

.skins-regions {
  display: grid;
  gap: 0.35rem;
}

.skins-region {
  display: grid;
  grid-template-columns: 18px 1fr auto;
  gap: 0.5rem;
  align-items: center;
  font-size: 0.85rem;
}

.skins-region-swatch {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.skins-region code {
  color: var(--muted);
  font-size: 0.75rem;
}

.skins-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
  margin-top: 0.25rem;
}

.skins-detail-empty,
.skins-empty {
  color: var(--muted);
  margin: 0;
  padding: 1rem 0.25rem;
}

.rarity-common .skins-badge { color: #9aafa0; }
.rarity-uncommon .skins-badge { color: #6eb6ff; }
.rarity-rare .skins-badge { color: #b48cff; }
.rarity-epic .skins-badge { color: #f0a060; }
.rarity-legendary .skins-badge { color: #f0c266; }

@media (max-width: 1000px) {
  .skins-layout {
    grid-template-columns: 170px minmax(0, 1fr);
  }
  .skins-detail {
    grid-column: 1 / -1;
    position: static;
  }
}

@media (max-width: 720px) {
  .skins-layout {
    grid-template-columns: 1fr;
  }
  .skins-species {
    max-height: none;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .skins-species-btn {
    font-size: 0.75rem;
    padding: 0.45rem 0.4rem;
    text-align: center;
  }
}

/* —— NERF-style map page —— */
.map-app {
  max-width: 1400px;
}

.map-page-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  align-items: end;
  margin-bottom: 1rem;
}

.map-page-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6vw, 3.8rem);
  letter-spacing: 0.04em;
  line-height: 0.95;
  font-weight: 400;
}

.map-page-lead {
  margin: 0.45rem 0 0;
  max-width: 40rem;
  color: var(--muted);
  font-size: 0.98rem;
}

.map-status-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
  justify-content: flex-end;
}

.map-card > .card-head { display: none; }

.map-hint-overlay {
  position: absolute;
  left: 0.75rem;
  bottom: 0.65rem;
  margin: 0;
  padding: 0.3rem 0.55rem;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.45);
  color: rgba(238, 243, 234, 0.8);
  font-size: 0.75rem;
  pointer-events: none;
  z-index: 2;
}

.map-zoom button {
  min-width: 2rem;
}

.side-section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
}

.side-section-head strong {
  color: var(--accent-solid);
  font-variant-numeric: tabular-nums;
}

.visible-labels-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.15rem;
  max-height: 220px;
  overflow: auto;
}

.visible-label-btn {
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  color: rgba(238, 243, 234, 0.82);
  padding: 0.28rem 0.35rem;
  border-radius: 6px;
  font: inherit;
  font-size: 0.82rem;
  cursor: pointer;
}

.visible-label-btn:hover {
  background: rgba(214, 168, 74, 0.12);
  color: #fff8e8;
}

.marker-panel > summary {
  font-weight: 600;
}

.marker-panel[open] > summary {
  margin-bottom: 0.45rem;
}

.map-controls,
.map-side {
  background: rgba(8, 12, 10, 0.78);
  border-color: rgba(214, 168, 74, 0.2);
}

@media (max-width: 1100px) {
  .map-page-header {
    align-items: start;
  }
  .map-status-group {
    justify-content: flex-start;
  }
}

/* —— NERF screenshot map chrome —— */
.map-layout-nerf {
  grid-template-columns: minmax(280px, 320px) minmax(0, 1fr);
  gap: 0.85rem;
}

.map-controls-nerf {
  background: rgba(12, 14, 16, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 0.9rem 0.95rem 1rem;
  gap: 0.75rem;
  max-height: min(920px, 88vh);
}

.map-controls-title {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  color: rgba(238, 243, 234, 0.92);
}

.map-counts {
  margin: -0.35rem 0 0;
  font-size: 0.8rem;
}

.map-controls-nerf .ctrl-label {
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  font-weight: 600;
  color: rgba(238, 243, 234, 0.88);
}

.map-controls-nerf .ctrl-block {
  gap: 0.4rem;
  padding-top: 0.65rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.map-focus-btn {
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(30, 34, 38, 0.95);
  color: var(--text);
  border-radius: 8px;
  padding: 0.45rem 0.75rem;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.map-focus-btn:hover {
  border-color: rgba(214, 168, 74, 0.55);
  color: #f0c266;
}

.map-controls-nerf .ctrl-row input[type="text"] {
  flex: 1;
  min-width: 0;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: var(--text);
  padding: 0.5rem 0.65rem;
  font: inherit;
}

.switch-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}

.switch {
  position: relative;
  width: 44px;
  height: 24px;
  flex: 0 0 auto;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.switch-slider {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.12);
  cursor: pointer;
  transition: background 0.15s ease;
}

.switch-slider::before {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  left: 2px;
  top: 2px;
  border-radius: 50%;
  background: #e8ecef;
  transition: transform 0.15s ease;
}

.switch input:checked + .switch-slider {
  background: rgba(80, 180, 110, 0.55);
  border-color: rgba(120, 220, 150, 0.45);
}

.switch input:checked + .switch-slider::before {
  transform: translateX(20px);
}

.map-style-btn {
  width: 100%;
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(28, 32, 36, 0.95);
  color: var(--text);
  border-radius: 10px;
  padding: 0.65rem 0.8rem;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.map-style-btn.is-on {
  border-color: rgba(214, 168, 74, 0.55);
  background: rgba(40, 34, 22, 0.95);
  color: #f0c266;
}

.pill-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem;
}

.map-pill {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 36px;
  border-radius: 999px;
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.28);
  color: rgba(238, 243, 234, 0.88);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  user-select: none;
  transition: background 0.12s ease, border-color 0.12s ease, color 0.12s ease, opacity 0.12s ease;
}

.map-pill input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.map-pill span {
  pointer-events: none;
}

.map-pill:not(:has(input:checked)) {
  opacity: 0.45;
}

.pill-region { border-color: #3dce6e; color: #7dffab; }
.pill-region:has(input:checked) { background: rgba(61, 206, 110, 0.16); }

.pill-outpost { border-color: #e0b13a; color: #f0d07a; }
.pill-outpost:has(input:checked) { background: rgba(224, 177, 58, 0.16); }

.pill-landmark { border-color: #d46ad8; color: #f0a8f2; }
.pill-landmark:has(input:checked) { background: rgba(212, 106, 216, 0.16); }

.pill-water { border-color: #4eb6e8; color: #9edcff; }
.pill-water:has(input:checked) { background: rgba(78, 182, 232, 0.16); }

.map-pill.solid { color: #fff; border-color: transparent; }
.pill-patrol.solid { background: #8b2e2e; }
.pill-migration.solid { background: #3d6f9a; }
.pill-sanctuary.solid { background: #2f6b3a; }
.pill-spawns.solid { background: #a8843a; }
.map-pill.solid:not(:has(input:checked)) {
  opacity: 0.35;
  filter: grayscale(0.35);
}

.visible-labels-block {
  display: grid;
  gap: 0.4rem;
}

.map-controls-nerf .visible-labels-list {
  max-height: 180px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 0.25rem;
}

.map-controls-nerf .marker-panel > summary {
  cursor: pointer;
  font-weight: 600;
  color: rgba(238, 243, 234, 0.9);
}

.map-card-nerf {
  background: transparent;
  border: 0;
  padding: 0;
  box-shadow: none;
}

.map-main .map-wrap {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #0a1014;
}

.map-fullscreen-btn {
  position: absolute;
  top: 0.7rem;
  left: 0.7rem;
  z-index: 3;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(12, 14, 16, 0.82);
  color: var(--text);
  border-radius: 8px;
  padding: 0.45rem 0.7rem;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  backdrop-filter: blur(6px);
}

.map-top-right {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  z-index: 3;
  display: flex;
  gap: 0.45rem;
  align-items: center;
}

.map-user-search {
  width: min(200px, 34vw);
  background: rgba(12, 14, 16, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  color: var(--text);
  padding: 0.45rem 0.65rem;
  font: inherit;
  font-size: 0.82rem;
  backdrop-filter: blur(6px);
}

.map-layout-nerf .map-zoom {
  position: static;
  display: flex;
  gap: 0.3rem;
  background: rgba(12, 14, 16, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  padding: 0.2rem;
  backdrop-filter: blur(6px);
}

.map-layout-nerf .map-zoom button {
  border: 0;
  background: transparent;
  min-width: 2rem;
  height: 2rem;
  border-radius: 6px;
}

.map-layout-nerf .map-zoom #zoomResetBtn {
  width: auto;
  min-width: 0;
  padding: 0 0.35rem;
  font-size: 0.62rem;
  letter-spacing: 0.03em;
}

.map-layout-nerf .map-zoom button:hover {
  background: rgba(255, 255, 255, 0.08);
}

@media (max-width: 900px) {
  .map-layout-nerf {
    grid-template-columns: 1fr;
  }
  .map-controls-nerf {
    max-height: none;
  }
}

/* —— Admin —— */
.view-admin {
  min-height: 100vh;
  padding: clamp(1.5rem, 4vw, 3rem) clamp(1rem, 4vw, 2.5rem) 3rem;
  background:
    radial-gradient(ellipse 55% 40% at 12% 0%, rgba(214, 168, 74, 0.1), transparent 55%),
    linear-gradient(180deg, #0a120e 0%, #07100c 100%);
}

.admin-shell {
  max-width: 1100px;
  margin: 0 auto;
}

.admin-hero {
  margin-bottom: 1.5rem;
}

.admin-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6vw, 4rem);
  letter-spacing: 0.04em;
  color: #f4f1e6;
  line-height: 0.95;
}

.admin-lead {
  margin: 0.65rem 0 0;
  color: rgba(238, 243, 234, 0.72);
  max-width: 36rem;
}

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

.admin-card {
  border: 1px solid rgba(238, 243, 234, 0.14);
  background: rgba(8, 16, 12, 0.72);
  padding: 1.1rem 1.2rem;
  border-radius: 4px;
}

.admin-card-wide {
  grid-column: 1 / -1;
}

.admin-card h3 {
  margin: 0 0 0.65rem;
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-solid);
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.85rem;
}

.admin-event-form {
  display: grid;
  gap: 0.75rem;
}

.admin-field {
  display: grid;
  gap: 0.3rem;
  color: var(--muted);
  font-size: 0.82rem;
}

.admin-field input[type="text"],
.admin-field input[type="number"],
.admin-field input[type="datetime-local"] {
  width: 100%;
  max-width: 28rem;
  background: rgba(40, 28, 58, 0.35);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  padding: 0.5rem 0.65rem;
  font: inherit;
}

.admin-id-list {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
  line-height: 1.55;
  font-size: 0.88rem;
}

.admin-hint-ok { color: #8fd39a; }
.admin-hint-err { color: #e08a7a; }

.view-admin .zone-adjust {
  padding-top: 0.35rem;
  border-top: 1px solid rgba(238, 243, 234, 0.1);
}

.rail-btn-admin {
  color: var(--accent-solid);
}

@media (max-width: 800px) {
  .admin-grid {
    grid-template-columns: 1fr;
  }
  .admin-card-wide {
    grid-column: auto;
  }
}

/* —— Desktop app updates / sync —— */
.app-updates-dock {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 40;
  width: min(420px, calc(100vw - 5.5rem));
  padding: 0.85rem 1rem;
  border: 1px solid rgba(214, 168, 74, 0.28);
  border-radius: 12px;
  background: rgba(8, 14, 11, 0.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.app-updates-dock[hidden] {
  display: none !important;
}

.update-bar {
  display: flex;
  gap: 0.85rem;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
}

.update-title {
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--accent-solid);
  margin-bottom: 0.3rem;
}

.update-versions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
  font-size: 0.78rem;
  color: var(--muted);
}

.update-versions strong {
  color: var(--text);
}

.update-pill {
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
}

.update-pill.current {
  background: rgba(91, 209, 122, 0.14);
  border: 1px solid rgba(91, 209, 122, 0.4);
  color: #8ef0a8;
}

.update-pill.available {
  background: rgba(240, 160, 64, 0.16);
  border: 1px solid rgba(240, 160, 64, 0.45);
  color: #ffd27a;
}

.update-status {
  margin: 0.4rem 0 0;
  font-size: 0.8rem;
  line-height: 1.4;
  color: var(--muted);
}

.update-actions {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.update-primary-btn {
  border-color: rgba(214, 168, 74, 0.55) !important;
  color: #1a1206 !important;
  background: linear-gradient(180deg, #e6c36f, #c89435) !important;
  font-weight: 700;
}

.update-changelog {
  margin-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 0.65rem;
  max-height: 180px;
  overflow: auto;
}

.update-entry {
  margin: 0 0 0.5rem;
  font-size: 0.8rem;
}

.update-entry summary {
  cursor: pointer;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: baseline;
  color: var(--text);
}

.update-entry summary span {
  color: var(--muted);
}

.update-entry ul {
  margin: 0.35rem 0 0.15rem;
  padding-left: 1.1rem;
  color: var(--muted);
  line-height: 1.4;
}

.rail-btn-update {
  color: var(--accent-solid);
}

.rail-btn-market.is-active,
.rail-btn-market:hover {
  color: #e0b35a;
}

.coming-soon-banner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.25rem;
  justify-content: space-between;
  align-items: center;
  margin: 0 0 1rem;
  padding: 0.95rem 1.1rem;
  border-radius: 14px;
  border: 1px solid rgba(224, 179, 90, 0.35);
  background: linear-gradient(120deg, rgba(40, 32, 18, 0.92), rgba(14, 18, 16, 0.94));
}

.coming-soon-banner h3 {
  margin: 0.15rem 0 0.3rem;
  font-size: 1.05rem;
}

.coming-soon-pill {
  flex-shrink: 0;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(224, 179, 90, 0.55);
  background: rgba(224, 179, 90, 0.14);
  color: #ffd27a;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.view-market {
  padding: 1.25rem 1.4rem 2rem;
  max-width: 1100px;
}

.market-shell {
  display: grid;
  gap: 1rem;
}

.market-hero {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.25rem;
  justify-content: space-between;
  align-items: flex-start;
}

.market-title {
  margin: 0.15rem 0 0.35rem;
  font-family: "Bebas Neue", "Barlow", sans-serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
  letter-spacing: 0.04em;
}

.market-lead {
  margin: 0;
  max-width: 42rem;
  color: var(--muted);
  line-height: 1.45;
}

.market-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.market-tab {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.22);
  color: inherit;
  border-radius: 999px;
  padding: 0.55rem 0.95rem;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.market-tab.is-active {
  border-color: rgba(224, 179, 90, 0.55);
  background: rgba(224, 179, 90, 0.14);
  color: #ffd27a;
}

.market-panel[hidden] {
  display: none !important;
}

.market-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.85rem;
  margin-top: 0.85rem;
}

.market-card {
  padding: 1rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(12, 16, 14, 0.88);
}

.market-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
}

.market-card.is-locked {
  opacity: 0.92;
}

.market-card .chip[disabled] {
  opacity: 0.7;
  cursor: not-allowed;
}

.market-admin-org {
  margin-top: 1.15rem;
  padding: 1rem 1.1rem;
  border-radius: 14px;
  border: 1px dashed rgba(91, 209, 122, 0.35);
  background: rgba(12, 22, 16, 0.72);
}

.market-admin-head h3 {
  margin: 0.15rem 0 0.35rem;
}

.market-admin-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
  margin-top: 0.75rem;
}

.market-field {
  display: grid;
  gap: 0.3rem;
  font-size: 0.82rem;
  color: var(--muted);
}

.market-field-wide {
  grid-column: 1 / -1;
}

.market-field input,
.market-field textarea {
  width: 100%;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.28);
  color: inherit;
  font: inherit;
  padding: 0.55rem 0.7rem;
}

.market-admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.market-draft-list {
  list-style: none;
  margin: 0.85rem 0 0;
  padding: 0;
}

.market-draft-list li {
  display: flex;
  gap: 0.75rem;
  justify-content: space-between;
  align-items: flex-start;
  padding: 0.65rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.market-draft-empty {
  color: var(--muted);
  font-size: 0.88rem;
}

@media (max-width: 820px) {
  .market-admin-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .app-updates-dock {
    left: 0.75rem;
    right: 0.75rem;
    width: auto;
    bottom: 0.75rem;
  }
}

/* Prime progression under map */
.prime-progress-card {
  margin-top: 0.85rem;
  padding: 1rem 1.1rem 1.15rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(18, 24, 22, 0.96), rgba(10, 14, 12, 0.94));
}

.prime-progress-head {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.25rem;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 0.75rem;
}

.prime-progress-title {
  margin: 0.15rem 0 0.25rem;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}

.prime-select-label {
  display: grid;
  gap: 0.3rem;
  min-width: 14rem;
  color: var(--muted);
  font-size: 0.82rem;
}

.prime-select {
  width: 100%;
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.28);
  color: inherit;
  font: inherit;
}

.prime-panel h3 {
  margin: 0;
  font-size: 1.05rem;
}

.prime-panel h4 {
  margin: 0.85rem 0 0.35rem;
  font-size: 0.86rem;
  color: #e0b35a;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.prime-head {
  display: flex;
  gap: 0.75rem;
  justify-content: space-between;
  align-items: flex-start;
}

.prime-need-pill {
  flex-shrink: 0;
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
  background: rgba(240, 160, 64, 0.16);
  border: 1px solid rgba(240, 160, 64, 0.45);
  color: #ffd27a;
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
}

.prime-need-pill.prime-ready {
  background: rgba(91, 209, 122, 0.16);
  border-color: rgba(91, 209, 122, 0.5);
  color: #9ef0b4;
}

.prime-summary {
  margin: 0.55rem 0 0;
  font-size: 0.88rem;
  line-height: 1.4;
}

.prime-progress-bar {
  margin: 0.65rem 0 0.2rem;
  height: 0.45rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.prime-progress-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #c9a24a, #5bd17a);
  border-radius: inherit;
}

.prime-diet {
  margin: 0;
}

.prime-diet-row {
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  gap: 0.5rem;
  padding: 0.35rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.84rem;
}

.prime-diet-row dt {
  color: var(--muted);
  margin: 0;
}

.prime-diet-row dd {
  margin: 0;
}

.prime-checklist,
.prime-tips {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.84rem;
  line-height: 1.45;
}

.prime-checklist-interactive {
  list-style: none;
  padding-left: 0;
}

.prime-checklist-interactive li {
  margin: 0;
  padding: 0.35rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.prime-check {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  cursor: pointer;
}

.prime-check input {
  margin-top: 0.2rem;
  accent-color: #5bd17a;
}

.prime-checklist .prime-auto {
  color: #8ef0a8;
}

.prime-checklist .prime-auto em {
  font-style: normal;
  font-weight: 700;
}

.prime-checklist .prime-zone em {
  color: #8ebf9a;
  font-style: normal;
  font-weight: 500;
}

.prime-checklist .prime-muted {
  opacity: 0.45;
}

.prime-empty {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.4;
}

#primeAnnounceStatus {
  margin: 0.65rem 0 0;
}

#primeAnnounceStatus.prime-status-error {
  color: #ef8a8a;
}

@media (max-width: 720px) {
  .prime-progress-head {
    align-items: stretch;
  }
  .prime-select-label {
    min-width: 0;
    width: 100%;
  }
}
