@font-face {
  font-family: 'Press Start 2P';
  src: url('../assets/fonts/Press_Start_2P/PressStart2P-Regular.ttf') format('truetype');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  --mapsmith-navy: #1a1d22;
  --mapsmith-panel: #2a2d33;
  --mapsmith-panel-2: #21242a;
  --mapsmith-text: #edf0f4;
  --mapsmith-muted: #b2b8c0;
  --mapsmith-yellow: #fecc44;
  --mapsmith-yellow-deep: #dfac21;
  --mapsmith-green: #95d86d;
  --mapsmith-lime: #c8ff89;
  --mapsmith-cyan: #9cb4ce;
  --mapsmith-outline: rgba(254, 204, 68, 0.24);
  --mapsmith-panel-line: rgba(178, 184, 191, 0.28);
  --mapsmith-shadow: 0 0 0 1px rgba(10, 11, 14, 0.92), 0 14px 30px rgba(0, 0, 0, 0.38);
}

body.mapsmith-redesign {
  background: #14171b;
  color: var(--mapsmith-text);
}

body.mapsmith-redesign.light {
  --mapsmith-navy: #f1f2f4;
  --mapsmith-panel: #ffffff;
  --mapsmith-panel-2: #f5f6f8;
  --mapsmith-text: #1f2630;
  --mapsmith-muted: #5f6671;
  --mapsmith-outline: rgba(31, 38, 48, 0.2);
  --mapsmith-panel-line: rgba(71, 79, 92, 0.24);
  --mapsmith-shadow: 0 0 0 1px rgba(31, 38, 48, 0.11), 0 14px 28px rgba(18, 22, 29, 0.09);
  background: #f1f2f4;
}

body.mapsmith-redesign .site-header {
  background: rgba(18, 20, 24, 0.9);
  border-bottom: 1px solid var(--mapsmith-outline);
  padding: 0.85rem 0;
}

body.mapsmith-redesign.light .site-header {
  background: rgba(242, 243, 246, 0.92);
}

body.mapsmith-redesign nav a {
  font-family: 'Press Start 2P', 'Inter', sans-serif;
  font-size: 0.58rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

body.mapsmith-redesign nav a.active,
body.mapsmith-redesign nav a:hover {
  color: var(--mapsmith-yellow);
}

body.mapsmith-redesign .theme-toggle button {
  border-radius: 4px;
  border-color: var(--mapsmith-outline);
  background: var(--mapsmith-panel-2);
}

.mapsmith-redesign-page {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 0;
  flex: 1 0 auto;
  padding-top: 104px;
  padding-bottom: 2.5rem;
  background: linear-gradient(180deg, #171b20 0%, #15181d 62%, #181c21 100%);
}

body.mapsmith-redesign.light .mapsmith-redesign-page {
  background: linear-gradient(180deg, #f1f2f4 0%, #eceef2 100%);
}

.mapsmith-redesign-page::before {
  content: '';
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  height: calc(100vh + 160px);
  background:
    linear-gradient(180deg, rgba(14, 17, 22, 0.68) 0%, rgba(14, 17, 22, 0.5) 64%, rgba(14, 17, 22, 0.1) 100%),
    url('../assets/background.jpg') center top / cover no-repeat;
  filter: grayscale(0.32) contrast(1.02) brightness(0.84);
  opacity: 0.58;
  z-index: -2;
  pointer-events: none;
}

body.mapsmith-redesign.light .mapsmith-redesign-page::before {
  opacity: 0.3;
  filter: grayscale(0.18) contrast(0.97) brightness(1.16);
}

.mapsmith-redesign-page::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(140, 174, 211, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(140, 174, 211, 0.09) 1px, transparent 1px),
    linear-gradient(rgba(140, 174, 211, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(140, 174, 211, 0.04) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 30px 30px, 30px 30px;
  background-position: center;
  z-index: -1;
  pointer-events: none;
}

.mapsmith-redesign-page .container {
  position: relative;
  z-index: 1;
}

#generationControls {
  scroll-margin-top: 108px;
}

.pixel-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.2rem;
  margin-bottom: 1.3rem;
}

.pixel-hero-copy,
.generator-grid,
.generator-bottom {
  animation: panelRise 620ms cubic-bezier(0.21, 1, 0.34, 1) both;
}

.generator-grid {
  animation-delay: 230ms;
}

.generator-bottom {
  animation-delay: 300ms;
}

.pixel-hero-copy {
  background: linear-gradient(160deg, rgba(39, 42, 48, 0.98), rgba(27, 30, 35, 0.98));
  border: 1px solid var(--mapsmith-outline);
  box-shadow: var(--mapsmith-shadow);
  border-radius: 8px;
  padding: 1.5rem 1.5rem 1.45rem;
}

body.mapsmith-redesign.light .pixel-hero-copy {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.97), rgba(246, 247, 249, 0.99));
}

.pixel-hero-heading {
  font-family: 'Press Start 2P', 'Inter', sans-serif;
  font-size: clamp(0.85rem, 4vw, 1.9rem);
  line-height: 1.45;
  letter-spacing: 0.02em;
  color: #f3f7ff;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.35);
  margin-bottom: 0.95rem;
}

body.mapsmith-redesign.light .pixel-hero-heading {
  color: #162338;
  text-shadow: none;
}

.pixel-accent-gold {
  color: var(--mapsmith-yellow);
}

.pixel-hero-toggle {
  display: none;
}

.pixel-accent-green {
  color: var(--mapsmith-lime);
}

.pixel-subtitle {
  font-family: 'Press Start 2P', 'Inter', sans-serif;
  font-size: 0.55rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mapsmith-cyan);
  margin-bottom: 0.95rem;
}

.pixel-hero-description {
  color: var(--mapsmith-muted);
  max-width: none;
  margin-bottom: 0.75rem;
}

.pixel-detail-note {
  color: var(--mapsmith-muted);
  max-width: none;
  margin-bottom: 0;
  font-size: 0.94rem;
}

.pixel-detail-note a {
  color: var(--mapsmith-yellow);
  text-decoration: none;
  border-bottom: 1px solid rgba(254, 204, 68, 0.45);
}

.pixel-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-bottom: 1.15rem;
}

body.mapsmith-redesign .btn {
  border-radius: 5px;
  padding: 0.78rem 1.2rem;
  font-size: 0.86rem;
  font-weight: 700;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

body.mapsmith-redesign .btn:hover {
  transform: translateY(-2px);
}

body.mapsmith-redesign .btn-primary {
  color: #161108;
  background: linear-gradient(180deg, #ffe173 0%, #fecc44 62%, #e2af22 100%);
  border-color: rgba(255, 224, 127, 0.52);
  box-shadow: 0 5px 0 #7c5f11, 0 10px 20px rgba(0, 0, 0, 0.35);
}

body.mapsmith-redesign .btn-primary:hover {
  color: #161108;
  box-shadow: 0 4px 0 #7c5f11, 0 14px 22px rgba(0, 0, 0, 0.35);
}

body.mapsmith-redesign .btn-secondary {
  border-color: var(--mapsmith-panel-line);
  color: var(--mapsmith-text);
  background: rgba(37, 40, 46, 0.8);
}

body.mapsmith-redesign.light .btn-secondary {
  background: rgba(246, 247, 249, 0.95);
  color: #252b34;
}

.server-pills {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.server-pill {
  border-radius: 6px;
  border: 1px solid rgba(142, 186, 227, 0.3);
  background: rgba(10, 21, 34, 0.72);
  padding: 0.72rem 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.32rem;
}

body.mapsmith-redesign.light .server-pill {
  background: rgba(255, 255, 255, 0.94);
}

.server-pill .pill-label {
  font-family: 'Press Start 2P', 'Inter', sans-serif;
  font-size: 0.54rem;
  text-transform: uppercase;
  color: var(--mapsmith-yellow);
}

.server-pill .pill-value {
  font-size: 0.78rem;
  color: var(--mapsmith-muted);
}

.server-pill.bedrock .pill-label {
  color: var(--mapsmith-cyan);
}

.map-picker-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 1rem;
  margin-bottom: 1.25rem;
  border-radius: 8px;
  border: 1px solid var(--mapsmith-outline);
  background: linear-gradient(140deg, rgba(18, 28, 43, 0.95), rgba(13, 22, 34, 0.95));
  box-shadow: var(--mapsmith-shadow);
  padding: 1rem;
}

body.mapsmith-redesign.light .map-picker-intro {
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.98), rgba(248, 252, 255, 0.98));
}

.intro-tag {
  font-family: 'Press Start 2P', 'Inter', sans-serif;
  text-transform: uppercase;
  color: var(--mapsmith-green);
  letter-spacing: 0.08em;
  font-size: 0.5rem;
  margin-bottom: 0.55rem;
}

.map-picker-intro h3 {
  font-family: 'Press Start 2P', 'Inter', sans-serif;
  line-height: 1.5;
  font-size: clamp(0.86rem, 1.35vw, 1.05rem);
  margin-bottom: 0.55rem;
  color: #f2f7ff;
}

body.mapsmith-redesign.light .map-picker-intro h3 {
  color: #16243a;
}

.map-picker-helper {
  margin: 0;
  max-width: 62ch;
  color: var(--mapsmith-muted);
}

.intro-preview {
  margin: 0;
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid rgba(167, 183, 201, 0.24);
  min-height: 180px;
}

.intro-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.2) saturate(0.85) contrast(1.02);
}

.intro-preview figcaption {
  position: absolute;
  right: 0.65rem;
  bottom: 0.65rem;
  background: rgba(10, 17, 27, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #deecff;
  padding: 0.34rem 0.48rem;
  border-radius: 4px;
  font-family: 'Press Start 2P', 'Inter', sans-serif;
  font-size: 0.43rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

body.mapsmith-redesign .generator-grid {
  gap: 1rem;
  grid-template-columns: minmax(0, 1fr) 395px;
  align-items: stretch;
}

body.mapsmith-redesign .map-wrapper {
  height: 100%;
}

body.mapsmith-redesign .controls {
  height: 100%;
  max-height: none;
}

body.mapsmith-redesign #map {
  height: 100%;
}

body.mapsmith-redesign .map-wrapper,
body.mapsmith-redesign .card,
body.mapsmith-redesign .generator-bottom {
  border-radius: 8px;
  border-color: var(--mapsmith-outline);
  background: linear-gradient(160deg, rgba(37, 40, 46, 0.98), rgba(26, 29, 34, 0.98));
  box-shadow: var(--mapsmith-shadow);
}

body.mapsmith-redesign.light .map-wrapper,
body.mapsmith-redesign.light .card,
body.mapsmith-redesign.light .generator-bottom {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.97), rgba(246, 247, 249, 0.99));
  border-color: var(--mapsmith-panel-line);
}

body.mapsmith-redesign.light .generator-bottom > .card {
  border-right-color: rgba(71, 79, 92, 0.2);
}

body.mapsmith-redesign .map-search {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 650;
  width: min(420px, calc(100% - 110px));
  max-width: 420px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body.mapsmith-redesign .map-search-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  background: rgba(11, 19, 30, 0.95);
  border: 1px solid rgba(167, 183, 201, 0.32);
  border-radius: 6px;
  box-shadow: 0 0 0 1px rgba(10, 11, 14, 0.55), 0 8px 22px rgba(0, 0, 0, 0.45);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

body.mapsmith-redesign.light .map-search-input-wrap {
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(27, 41, 60, 0.28);
  box-shadow: 0 0 0 1px rgba(31, 38, 48, 0.08), 0 8px 22px rgba(18, 22, 29, 0.16);
}

body.mapsmith-redesign .map-search-input-wrap:focus-within {
  border-color: rgba(254, 204, 68, 0.78);
  box-shadow: 0 0 0 1px rgba(254, 204, 68, 0.55), 0 0 0 4px rgba(254, 204, 68, 0.16), 0 8px 22px rgba(0, 0, 0, 0.45);
}

body.mapsmith-redesign .map-search-icon {
  flex: 0 0 auto;
  margin: 0 4px 0 10px;
  color: var(--mapsmith-yellow);
  opacity: 0.85;
}

body.mapsmith-redesign .map-search-input {
  flex: 1 1 auto;
  min-width: 0;
  background: transparent;
  border: none;
  outline: none;
  color: var(--mapsmith-text);
  font-size: 0.92rem;
  padding: 0.62rem 0.5rem;
  font-family: inherit;
}

body.mapsmith-redesign .map-search-input::placeholder {
  color: var(--mapsmith-muted);
  opacity: 0.85;
}

body.mapsmith-redesign .map-search-input::-webkit-search-cancel-button,
body.mapsmith-redesign .map-search-input::-webkit-search-decoration {
  -webkit-appearance: none;
  appearance: none;
}

body.mapsmith-redesign .map-search-spinner {
  display: none;
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  margin-right: 10px;
  border: 2px solid rgba(254, 204, 68, 0.28);
  border-top-color: var(--mapsmith-yellow);
  border-radius: 50%;
  animation: mapSearchSpin 0.7s linear infinite;
}

body.mapsmith-redesign .map-search.loading .map-search-spinner {
  display: inline-block;
}

body.mapsmith-redesign .map-search-clear {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  margin-right: 6px;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 4px;
  color: var(--mapsmith-muted);
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

body.mapsmith-redesign .map-search-clear:hover {
  background: rgba(254, 204, 68, 0.14);
  color: var(--mapsmith-yellow);
}

body.mapsmith-redesign .map-search.loading .map-search-clear {
  display: none;
}

body.mapsmith-redesign .map-search-results {
  list-style: none;
  margin: 6px 0 0;
  padding: 4px;
  background: rgba(11, 19, 30, 0.97);
  border: 1px solid rgba(167, 183, 201, 0.32);
  border-radius: 6px;
  box-shadow: 0 0 0 1px rgba(10, 11, 14, 0.55), 0 14px 28px rgba(0, 0, 0, 0.5);
  max-height: 320px;
  overflow-y: auto;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

body.mapsmith-redesign.light .map-search-results {
  background: rgba(255, 255, 255, 0.98);
  border-color: rgba(27, 41, 60, 0.22);
  box-shadow: 0 0 0 1px rgba(31, 38, 48, 0.08), 0 14px 28px rgba(18, 22, 29, 0.18);
}

body.mapsmith-redesign .map-search-results li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 4px;
  cursor: pointer;
  color: var(--mapsmith-text);
  font-size: 0.9rem;
  line-height: 1.35;
  transition: background-color 0.12s ease;
}

body.mapsmith-redesign .map-search-results li + li {
  margin-top: 2px;
}

body.mapsmith-redesign .map-search-results li:hover,
body.mapsmith-redesign .map-search-results li.active {
  background: rgba(254, 204, 68, 0.14);
}

body.mapsmith-redesign.light .map-search-results li:hover,
body.mapsmith-redesign.light .map-search-results li.active {
  background: rgba(254, 204, 68, 0.22);
}

body.mapsmith-redesign .map-search-results .result-icon {
  flex: 0 0 auto;
  margin-top: 2px;
  color: var(--mapsmith-yellow);
  opacity: 0.85;
}

body.mapsmith-redesign .map-search-results .result-text {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

body.mapsmith-redesign .map-search-results .result-title {
  font-weight: 600;
  color: var(--mapsmith-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.mapsmith-redesign .map-search-results .result-subtitle {
  color: var(--mapsmith-muted);
  font-size: 0.78rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.mapsmith-redesign .map-search-empty {
  padding: 14px 12px;
  text-align: center;
  color: var(--mapsmith-muted);
  font-family: 'Press Start 2P', 'Inter', sans-serif;
  font-size: 0.5rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

body.mapsmith-redesign .map-search-attribution {
  padding: 6px 10px 4px;
  border-top: 1px solid rgba(178, 184, 191, 0.18);
  margin-top: 4px;
  font-size: 0.7rem;
  color: var(--mapsmith-muted);
  text-align: right;
}

body.mapsmith-redesign .map-search-attribution a {
  color: var(--mapsmith-yellow);
  text-decoration: none;
}

@keyframes mapSearchSpin {
  to { transform: rotate(360deg); }
}

@media (max-width: 768px) {
  body.mapsmith-redesign .map-search {
    width: calc(100% - 70px);
    max-width: none;
    left: 50px;
    transform: none;
  }

  body.mapsmith-redesign .map-search-input {
    font-size: 0.86rem;
  }
}

body.mapsmith-redesign .map-overlay {
  border-radius: 5px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  font-family: 'Press Start 2P', 'Inter', sans-serif;
  font-size: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: rgba(8, 14, 22, 0.84);
  color: #eaf1fb;
}

body.mapsmith-redesign.light .map-overlay {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(16, 32, 52, 0.26);
  color: #1b2d42;
}

body.mapsmith-redesign .controls {
  gap: 0.85rem;
}

body.mapsmith-redesign .spawn-controls {
  display: flex;
  gap: 0.45rem;
  align-items: center;
}

body.mapsmith-redesign #setSpawnBtn,
body.mapsmith-redesign #clearSpawnBtn {
  white-space: nowrap;
  width: 124px;
  min-width: 124px;
  justify-content: center;
}

body.mapsmith-redesign #setSpawnBtn.spawn-attention {
  background: linear-gradient(180deg, #ffe173 0%, #fecc44 60%, #e2af22 100%);
  border-color: rgba(255, 225, 133, 0.86);
  color: #1a1204;
  box-shadow: 0 0 0 1px rgba(124, 95, 17, 0.4), 0 0 0 4px rgba(254, 204, 68, 0.18);
  animation: spawnAttentionPulse 1.8s ease-in-out infinite;
}

body.mapsmith-redesign.light #setSpawnBtn.spawn-attention {
  box-shadow: 0 0 0 1px rgba(124, 95, 17, 0.35), 0 0 0 4px rgba(254, 204, 68, 0.24);
}

@keyframes spawnAttentionPulse {
  0%, 100% {
    box-shadow: 0 0 0 1px rgba(124, 95, 17, 0.4), 0 0 0 4px rgba(254, 204, 68, 0.18);
  }

  50% {
    box-shadow: 0 0 0 1px rgba(124, 95, 17, 0.4), 0 0 0 8px rgba(254, 204, 68, 0.08);
  }
}

body.mapsmith-redesign.light #setSpawnBtn.spawn-attention {
  animation: spawnAttentionPulse 1.8s ease-in-out infinite;
}

body.mapsmith-redesign .card {
  padding: 1rem;
}

body.mapsmith-redesign .card h3 {
  font-family: 'Press Start 2P', 'Inter', sans-serif;
  font-size: 0.56rem;
  letter-spacing: 0.08em;
  margin-bottom: 0.85rem;
  color: var(--mapsmith-yellow);
}

body.mapsmith-redesign .card h4 {
  color: var(--mapsmith-muted);
  font-family: 'Press Start 2P', 'Inter', sans-serif;
  font-size: 0.5rem;
  letter-spacing: 0.06em;
}

body.mapsmith-redesign .preset,
body.mapsmith-redesign .format-btn {
  border-radius: 5px;
  border-color: var(--mapsmith-panel-line);
  background: rgba(29, 32, 37, 0.82);
  font-weight: 700;
}

body.mapsmith-redesign.light .preset,
body.mapsmith-redesign.light .format-btn {
  background: rgba(255, 255, 255, 0.92);
}

body.mapsmith-redesign .preset:hover,
body.mapsmith-redesign .preset.active,
body.mapsmith-redesign .format-btn:hover,
body.mapsmith-redesign .format-btn.active {
  background: linear-gradient(180deg, #ffe173 0%, #fecc44 60%, #e2af22 100%);
  border-color: rgba(255, 225, 133, 0.78);
  color: #1a1204;
}

body.mapsmith-redesign .setting-row {
  border-bottom-color: rgba(178, 184, 191, 0.2);
}

body.mapsmith-redesign .setting-row label,
body.mapsmith-redesign .checkbox-label {
  color: var(--mapsmith-muted);
}

body.mapsmith-redesign .setting-row select {
  border-radius: 5px;
  border-color: var(--mapsmith-panel-line);
  background: rgba(29, 32, 37, 0.82);
}

body.mapsmith-redesign.light .setting-row select {
  background: rgba(255, 255, 255, 0.92);
}

body.mapsmith-redesign .toggle-slider {
  border-color: var(--mapsmith-panel-line);
  background: rgba(29, 32, 37, 0.82);
}

body.mapsmith-redesign.light .toggle-slider {
  background: rgba(255, 255, 255, 0.85);
}

body.mapsmith-redesign .toggle-switch input:checked + .toggle-slider {
  background: linear-gradient(180deg, #ffe173 0%, #fecc44 60%, #e2af22 100%);
  border-color: rgba(255, 225, 133, 0.7);
}

body.mapsmith-redesign .price-display,
body.mapsmith-redesign .job-item,
body.mapsmith-redesign .jobs-list li {
  background: rgba(27, 30, 35, 0.78);
  border-color: rgba(178, 184, 191, 0.24);
}

body.mapsmith-redesign.light .price-display,
body.mapsmith-redesign.light .job-item,
body.mapsmith-redesign.light .jobs-list li {
  background: rgba(255, 255, 255, 0.92);
}

body.mapsmith-redesign .price-display .value,
body.mapsmith-redesign .job-price,
body.mapsmith-redesign .status-text {
  color: var(--mapsmith-yellow);
}

body.mapsmith-redesign .generator-bottom {
  margin-top: 1rem;
}

body.mapsmith-redesign .generator-bottom > .card {
  border-right: 1px solid rgba(178, 184, 191, 0.2);
}

body.mapsmith-redesign .checkbox-label a,
body.mapsmith-redesign .site-footer a,
body.mapsmith-redesign .leaflet-control-attribution a {
  color: var(--mapsmith-yellow) !important;
}

body.mapsmith-redesign .site-footer {
  background: #121418;
  border-top: 1px solid var(--mapsmith-outline);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

body.mapsmith-redesign.light .site-footer {
  background: #f2f3f6;
}

body.mapsmith-redesign .site-footer small,
body.mapsmith-redesign .site-footer a {
  color: var(--mapsmith-muted);
}

body.mapsmith-redesign .mapsmith-static-card {
  max-width: 860px;
  margin: 1.5rem auto;
}

body.mapsmith-redesign .mapsmith-static-card h2 {
  font-family: 'Press Start 2P', 'Inter', sans-serif;
  font-size: clamp(0.86rem, 1.35vw, 1.02rem);
  line-height: 1.5;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mapsmith-yellow);
  margin-bottom: 0.85rem;
}

body.mapsmith-redesign .mapsmith-static-card h3 {
  margin-top: 1.3rem;
  margin-bottom: 0.6rem;
  color: var(--mapsmith-text);
}

body.mapsmith-redesign .mapsmith-static-card p,
body.mapsmith-redesign .mapsmith-static-card li,
body.mapsmith-redesign .mapsmith-status-intro {
  color: var(--mapsmith-muted);
  line-height: 1.7;
}

body.mapsmith-redesign .mapsmith-static-card a:not(.btn) {
  color: var(--mapsmith-yellow);
}

body.mapsmith-redesign .mapsmith-legal-list {
  margin: 0.35rem 0 0.65rem 1.25rem;
}

body.mapsmith-redesign .mapsmith-legal-meta {
  margin-top: 0.45rem;
  color: var(--mapsmith-muted);
}

body.mapsmith-redesign .mapsmith-status-title {
  font-family: 'Press Start 2P', 'Inter', sans-serif;
  font-size: clamp(0.86rem, 1.7vw, 1.14rem);
  line-height: 1.5;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
  color: #f3f7ff;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.35);
  margin-bottom: 0.7rem;
}

body.mapsmith-redesign.light .mapsmith-status-title {
  color: #162338;
  text-shadow: none;
}

body.mapsmith-redesign .mapsmith-status-page .status-actions {
  margin-top: 1.1rem;
}

body.mapsmith-redesign .mapsmith-status-page .status-actions .btn {
  width: auto;
}

body.mapsmith-redesign .leaflet-geolocate-btn,
body.mapsmith-redesign .leaflet-draw-section,
body.mapsmith-redesign .leaflet-draw-actions,
body.mapsmith-redesign .leaflet-draw-actions a {
  background: rgba(11, 19, 30, 0.95) !important;
  border-color: rgba(167, 183, 201, 0.32) !important;
  color: #e6edf7 !important;
}

body.mapsmith-redesign .leaflet-control-zoom a,
body.mapsmith-redesign .leaflet-control-layers-toggle {
  background: rgba(11, 19, 30, 0.95) !important;
  border-color: rgba(167, 183, 201, 0.32) !important;
  color: #e6edf7 !important;
}

body.mapsmith-redesign .leaflet-draw-toolbar a {
  background-image: linear-gradient(transparent, transparent), url('../vendor/leaflet-draw/images/spritesheet.svg') !important;
  background-repeat: no-repeat !important;
  background-size: 300px 30px !important;
  background-clip: padding-box !important;
}

body.mapsmith-redesign:not(.light) .leaflet-draw-toolbar a {
  filter: invert(100%) brightness(200%) !important;
  background-color: #e9e9e9 !important;
  border-color: #ededed !important;
}

body.mapsmith-redesign:not(.light) .leaflet-draw-toolbar a:hover {
  background-color: #e4e4e4 !important;
}

body.mapsmith-redesign.light .leaflet-geolocate-btn,
body.mapsmith-redesign.light .leaflet-draw-section,
body.mapsmith-redesign.light .leaflet-draw-actions,
body.mapsmith-redesign.light .leaflet-draw-actions a {
  background: rgba(255, 255, 255, 0.96) !important;
  color: #18273d !important;
}

body.mapsmith-redesign.light .leaflet-control-zoom a,
body.mapsmith-redesign.light .leaflet-control-layers-toggle {
  background: rgba(255, 255, 255, 0.96) !important;
  color: #18273d !important;
}

body.mapsmith-redesign.light .leaflet-draw-toolbar a {
  filter: none !important;
  background-color: rgba(255, 255, 255, 0.96) !important;
  border-color: rgba(27, 41, 60, 0.32) !important;
}

body.mapsmith-redesign.light .leaflet-draw-toolbar a:hover {
  background-color: rgba(243, 248, 255, 0.98) !important;
}

@keyframes panelRise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1120px) {
  .mapsmith-redesign-page::before {
    height: calc(100vh + 120px);
  }

  .pixel-hero {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 920px) {
  body.mapsmith-redesign .spawn-controls {
    justify-content: flex-start;
  }
}

@media (max-width: 1024px) {
  body.mapsmith-redesign .generator-grid {
    grid-template-columns: 1fr;
  }

  body.mapsmith-redesign .controls {
    max-height: none;
  }
}

@media (max-width: 768px) {
  .mapsmith-redesign-page {
    padding-top: 88px;
  }

  body.mapsmith-redesign nav {
    display: none;
  }

  .pixel-hero-copy,
  body.mapsmith-redesign .card {
    padding: 0.92rem;
  }

  body.mapsmith-redesign .map-wrapper {
    padding: 0;
  }

  .pixel-subtitle,
  body.mapsmith-redesign .card h3,
  body.mapsmith-redesign .card h4,
  .server-pill .pill-label {
    font-size: 0.47rem;
  }

  body.mapsmith-redesign .pixel-hero-heading {
    font-size: clamp(0.7rem, 3.4vw, 0.9rem);
    line-height: 1.5;
    letter-spacing: 0;
    padding-right: 38px;
  }

  .pixel-hero-copy {
    position: relative;
  }

  .pixel-hero-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 0.65rem;
    right: 0.65rem;
    width: 30px;
    height: 30px;
    padding: 0;
    background: rgba(254, 204, 68, 0.1);
    border: 1px solid rgba(254, 204, 68, 0.32);
    border-radius: 6px;
    color: var(--mapsmith-yellow);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: background-color 0.2s ease, border-color 0.2s ease;
    z-index: 1;
  }

  .pixel-hero-toggle:hover,
  .pixel-hero-toggle:focus-visible {
    background: rgba(254, 204, 68, 0.2);
    border-color: rgba(254, 204, 68, 0.55);
    outline: none;
  }

  .pixel-hero-chevron {
    transform: rotate(180deg);
    transition: transform 0.25s ease;
  }

  .pixel-hero-copy.is-collapsed .pixel-hero-chevron {
    transform: rotate(0deg);
  }

  .pixel-hero-body {
    overflow: hidden;
    max-height: 600px;
    opacity: 1;
    transition: max-height 0.32s ease, opacity 0.22s ease, margin-top 0.32s ease;
  }

  .pixel-hero-copy.is-collapsed .pixel-hero-body {
    max-height: 0;
    opacity: 0;
    margin-top: 0;
  }

  .server-pills {
    grid-template-columns: 1fr;
  }

  body.mapsmith-redesign .btn {
    width: 100%;
  }

  .pixel-hero-actions {
    flex-direction: column;
  }

  body.mapsmith-redesign .spawn-controls {
    justify-content: flex-start;
    gap: 0.5rem;
  }

  body.mapsmith-redesign #map {
    height: 48vh;
  }

  body.mapsmith-redesign .mapsmith-status-page .status-actions .btn {
    width: 100%;
  }
}
