/* ---------- 1. Fonts & resets ---------- */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700&family=Exo+2:wght=300;500&display=swap');

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
  height: 100%;
  overscroll-behavior-y: none;
}
:root {
  --topbar-height: 64px;
  --bottom-tab-height: 60px;
}
body {
  height: 100%;
  min-height: 100vh;
  font-family: 'Exo 2', sans-serif;
  background: radial-gradient(ellipse at center, #1b0f1a 0%, #000 100%);
  color: #fff;
  overflow-x: hidden;
  line-height: 1.4;
  overscroll-behavior-y: none;
  touch-action: manipulation;
}

/* ---------- 2. Typography that scales ---------- */
.title {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(2.2rem, 7vw + 1rem, 6rem);   /* 22px → 60px */
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: linear-gradient(90deg, #ff0000, #aa0000);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: glow 2s ease-in-out infinite alternate;
}
@keyframes glow {
  from { text-shadow: 0 0 8px #ff0000, 0 0 16px #ff0000; }
  to   { text-shadow: 0 0 20px #ff0000, 0 0 30px #aa0000; }
}
@keyframes fade-in {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes pulse-progress {
  0% { box-shadow: 0 0 0 rgba(255, 0, 0, 0.6); }
  50% { box-shadow: 0 0 12px rgba(255, 0, 0, 0.8); }
  100% { box-shadow: 0 0 0 rgba(255, 0, 0, 0); }
}
.subtitle {
  margin-top: 0.5em;
  font-size: clamp(0.9rem, 2vw + 0.2rem, 1.5rem);
  font-weight: 300;
  opacity: 0.75;
  letter-spacing: 0.15em;
}

/* ---------- 3. Background & particles ---------- */
.background,
#particles-js {
  position: fixed;
  inset: 0;                     /* top/right/bottom/left 0 */
  width: 100%;
  height: 100%;
  z-index: -3;
}
#particles-js { z-index: -2; }

/* ---------- 4. Center content always ---------- */
.content {
  position: relative;
  z-index: 1;
  padding: 1rem;
  max-width: 90vw;
}

/* ---------- 5. Mental-health clouds (background) ---------- */
.pep-cloud {
  position: fixed;
  font-size: clamp(0.8rem, 1.5vw, 1.3rem);
  font-weight: 500;
  color: #ff0000;
  opacity: 0;
  filter: blur(1px);
  text-shadow: 0 0 12px #ff000044;
  pointer-events: none;
  z-index: -1;
  transition: opacity 1.2s ease, transform 1.2s ease-out, filter 0.8s ease;
}
.pep-cloud.show {
  opacity: 0.04;
  transform: translateY(-20px);
  filter: blur(1.5px);
}
.pep-cloud.in-hotspot {
  opacity: 0.22;
  filter: blur(0.4px);
}
.pep-cloud.vanish { opacity: 0; transform: translateY(-40px) scale(0.95); }

/* ---------- Instagram icon (bottom-center) ---------- */
.ig-link {
  position: fixed;
  bottom: max(15px, 2vh);
  left: 50%;
  transform: translateX(-50%);
  font-size: clamp(20px, 4vw, 28px);
  color: #ff0000;
  text-shadow: 0 0 8px #ff0000;
  transition: transform 0.3s ease, text-shadow 0.3s ease;
  z-index: 300;
}
.ig-link:hover {
  transform: translateX(-50%) scale(1.15);
  text-shadow: 0 0 15px #ff0000;
}
/* ---------- Support tip-jar ---------- */
#support-btn {
  position: fixed;
  bottom: max(15px, 2vh);
  left: max(15px, 2vw);
  background: #ff0000;
  color: #fff;
  border: none;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: clamp(0.75rem, 1.8vw, 0.95rem);
  cursor: pointer;
  box-shadow: 0 0 10px #ff000088;
  transition: background .3s;
  z-index: 299;
}
#support-btn:hover { background: #cc0000; }

#support-popup {
  position: fixed;
  inset: 0;
  background: #00000099;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 400;
}
#support-popup.hidden { display: none; }

.support-card {
  background: #0a0a0acc;
  border: 1px solid #ff000044;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  max-width: 90vw;
  width: 320px;
  backdrop-filter: blur(6px);
}
.support-card img {
  width: 160px;
  margin: 12px auto;
  border-radius: 8px;
}
.addr {
  font-size: 0.9rem;
  word-break: break-all;
  margin: 10px 0;
  color: #ff0000;
}
.copy-btn {
  background: #ff0000;
  color: #fff;
  border: none;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
}
.copy-btn:hover { background: #cc0000; }
#support-close {
  float: right;
  font-size: 1.4rem;
  color: #ff0000;
  cursor: pointer;
}

/* ---------- 7. Chat-widget responsive ---------- */
#lc-widget {
  position: fixed;
  bottom: max(15px, 2vh);
  right: max(15px, 2vw);
  z-index: 200;
  font-family: 'Exo 2', sans-serif;
}
#lc-btn {
  background: #ff0000;
  color: #fff;
  border: none;
  padding: clamp(8px, 1.5vw, 11px) clamp(12px, 2vw, 18px);
  font-size: clamp(0.75rem, 1.8vw, 0.95rem);
  border-radius: 6px;
  cursor: pointer;
  box-shadow: 0 0 10px #ff000088;
  transition: background .3s;
}
#lc-btn:hover { background: #cc0000; }

#lc-panel {
  position: absolute;
  bottom: calc(100% + 10px);
  right: 0;
  width: clamp(280px, 90vw, 360px);
  height: clamp(300px, 60vh, 420px);
  background: #0a0a0acc;
  border: 1px solid #ff000044;
  border-radius: 8px;
  display: none;
  flex-direction: column;
  backdrop-filter: blur(4px);
}
#lc-panel.open { display: flex; }

#lc-header {
  background: #ff0000;
  color: #fff;
  padding: 10px 12px;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
#lc-close { cursor: pointer; }

#lc-messages {
  flex: 1;
  padding: 12px;
  overflow-y: auto;
  font-size: clamp(0.8rem, 1.8vw, 0.95rem);
}
#lc-messages .user { text-align: right; color: #ff0000; }
#lc-messages .bot  { text-align: left;  color: #ffffff; }

#lc-input-area {
  display: flex;
  border-top: 1px solid #ff000033;
}
#lc-input {
  flex: 1;
  border: none;
  padding: 10px 12px;
  background: transparent;
  color: #fff;
  outline: none;
  font-size: clamp(0.8rem, 1.8vw, 0.95rem);
}
#lc-send {
  background: #ff0000;
  color: #fff;
  border: none;
  padding: 0 14px;
  cursor: pointer;
  font-size: clamp(0.9rem, 2vw, 1rem);
}
#lc-send:disabled { background: #660000; cursor: not-allowed; }

/* ---------- 8. Favicon safe ---------- */
link[rel="icon"] { display: none; }   /* optional reset */

/* ---------- 9. Tiny screens (≤ 320 px) ---------- */
@media (max-width: 350px) {
  .title { font-size: 1.8rem; }
  .subtitle { font-size: 0.8rem; }
  #lc-panel {
    width: 96vw;
    height: 65vh;
    right: 2vw;
  }
}

/* ---------- 10. Landscape phones ---------- */
@media (max-height: 450px) and (orientation: landscape) {
  .title { font-size: 2rem; }
  #lc-panel { height: 75vh; }
}
/* ====== MOBILE TITLE CENTER ====== */
@media (max-width: 600px){
  .title{
    text-align: center !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    letter-spacing: 0.05em;   /* optional – tighter on small screens */
  }
}
/* ---------- Login Form ---------- */
/* ====== CENTER LOGIN FORM ====== */
.login-form{
  margin: 1.5rem auto 0;
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: clamp(1rem, 4vw, 1.5rem);
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 0, 0, 0.25);
  border-radius: 18px;
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.35);
}

.login-form input {
  padding: 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 0, 0, 0.35);
  color: #fff;
  width: 100%;
  font-size: 0.95rem;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.login-form input:focus {
  outline: none;
  border-color: rgba(255, 0, 0, 0.6);
  box-shadow: 0 0 0 3px rgba(255, 0, 0, 0.18);
}

.password-field {
  display: flex;
  align-items: center;
  width: 100%;
  border-radius: 10px;
  border: 1px solid rgba(255, 0, 0, 0.35);
  background: rgba(255, 255, 255, 0.08);
}
.password-field input {
  border: none;
  background: transparent;
  padding-right: 0;
}
.password-field:focus-within {
  border-color: rgba(255, 0, 0, 0.6);
  box-shadow: 0 0 0 3px rgba(255, 0, 0, 0.18);
}
.password-field .ghost-btn.tiny {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  border: none;
  background: transparent;
  color: #ff0000;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.4rem 0.75rem;
}
.password-field .ghost-btn.tiny i {
  font-size: 0.85rem;
}
.password-field .ghost-btn.tiny:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.6);
  outline-offset: 2px;
}


.glow-track {
  position: relative;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
  --glow-opacity: 0;
  --glow-x: 50%;
  --glow-y: 50%;
  will-change: transform, box-shadow;
}
.glow-track::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(circle at var(--glow-x, 50%) var(--glow-y, 50%), rgba(255, 0, 0, 0.9) 0%, rgba(255, 0, 0, 0.45) 4%, rgba(255, 0, 0, 0.2) 8%, transparent 12%);
  opacity: var(--glow-opacity, 0);
  filter: blur(2px);
  mix-blend-mode: screen;
  transition: opacity 0.1s ease, transform 0.15s ease;
}
@media (hover: hover) {
  .glow-track:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 30px rgba(255, 0, 0, 0.2);
  }
}

.launch-grid {
  display: grid;
  gap: 0.8rem;
}
.launch-card {
  border: 1px solid rgba(255, 0, 0, 0.25);
  border-radius: 16px;
  padding: 0.75rem 1rem;
  background: rgba(10, 10, 10, 0.55);
  display: grid;
  gap: 0.3rem;
  cursor: pointer;
  transition: border 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  will-change: transform;
}
.launch-card:hover,
.launch-card:focus-visible {
  border-color: rgba(255, 0, 0, 0.6);
  transform: translateY(-1px);
  outline: none;
}
.launch-card h4 {
  margin: 0;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ff0000;
}
.launch-card p {
  margin: 0;
  font-size: 0.8rem;
  color: #ff0000ee;
}
.launch-card span {
  font-size: 0.75rem;
  color: #ff0000aa;
}

.login-form input::placeholder {
  color: #ff0000;
}

.register-form .human-check {
  margin: 0.75rem 0 1rem;
  text-align: left;
  font-size: 0.85rem;
  color: #ff0000;
}
.register-form .human-check label {
  display: block;
  margin-bottom: 0.35rem;
}
.register-form .human-check input {
  width: 100%;
  padding: 10px;
  border-radius: 6px;
  border: 1px solid #ff000044;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

#register-submit {
  background: #ff0000;
  color: white;
  border: none;
  padding: 12px;
  border-radius: 6px;
  cursor: pointer;
  font-family: 'Orbitron', sans-serif;
  font-weight: 600;
  transition: background 0.3s;
  width: 100%;
}
#register-submit:hover { background: #cc0000; }
#register-submit:disabled {
  opacity: 0.7;
  cursor: wait;
}

.form-msg {
  margin-top: 0.8rem;
  font-size: 0.85rem;
  text-align: left;
}
.form-msg.msg-info { color: #ff0000; }
.form-msg.msg-error { color: #ff1a1a; }
.form-msg.msg-success { color: #77ffb7; }

.remember-row {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.85rem;
  color: #ff0000ee;
  margin: 0.35rem 0 0.15rem;
  background: rgba(255, 0, 0, 0.08);
  border: 1px solid rgba(255, 0, 0, 0.25);
  padding: 0.5rem 0.75rem;
  border-radius: 999px;
  align-self: flex-start;
}
.remember-row input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #ff0000;
}
.remember-row span {
  display: inline-flex;
  align-items: center;
  letter-spacing: 0.04em;
}
#login-btn {
  background: #ff0000;
  color: white;
  border: none;
  padding: 12px;
  border-radius: 6px;
  cursor: pointer;
  font-family: 'Orbitron', sans-serif;
  font-weight: 600;
  transition: background 0.3s;
  width: 100%;
}

#login-btn:hover {
  background: #cc0000;
}

.register {
  margin-top: 1rem;
  font-size: 0.9rem;
}

.register a {
  color: #ff0000;
  text-decoration: none;
}

.register a:hover {
  text-decoration: underline;
}
/* ====== Mobile Login Stack & Center ====== */
@media (max-width: 600px) {
  .login-form {
    margin: 1.2rem auto 0;
    width: 92%;
    max-width: 320px;
    padding: 1rem;
    gap: 0.65rem;
  }
  .login-form input,
  #login-btn,
  #register-submit {
    width: 100%;                  /* same width for all */
    box-sizing: border-box;       /* include padding/border */
  }
  #login-btn,
  #register-submit {
    margin-top: 0.35rem;
  }
  .remember-row {
    align-self: stretch;
    justify-content: flex-start;
  }
}
.link-btn {
  background: none;
  border: none;
  color: #ff0000;
  cursor: pointer;
  text-decoration: underline;
  font-size: inherit;
}

/* ====== Troll: butoanele fug ====== */
.troll-flee {
  transition: transform .25s ease-out;
}
.flee-left  { transform: translateX(-120px); }
.flee-right { transform: translateX(120px); }
.flee-up    { transform: translateY(-80px); }
.hidden { display: none; }

/* ---------- Atlas (post-login) layout ---------- */
body.main-page {
  align-items: stretch;
  justify-content: flex-start;
  text-align: left;
  padding-top: 0;
  overscroll-behavior-y: contain;
  scroll-padding-top: var(--topbar-height);
  overflow-x: hidden;
  overflow-y: auto;
  min-height: 100vh;
}

body:not(.main-page) {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.connectivity-banner {
  position: sticky;
  top: 0;
  z-index: 15;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 1rem;
  background: linear-gradient(120deg, rgba(255, 0, 0, 0.9), rgba(255, 0, 0, 0.85));
  color: #fff;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}
.connectivity-banner.hidden { display: none; }
.connectivity-banner i {
  font-size: 1rem;
}

.atlas-topbar {
  position: sticky;
  top: 0;
  z-index: 240;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0 clamp(1rem, 3vw, 2rem);
  height: var(--topbar-height);
  min-height: var(--topbar-height);
  flex-shrink: 0;
  backdrop-filter: blur(10px);
  background: linear-gradient(120deg, rgba(20, 10, 28, 0.92), rgba(40, 12, 28, 0.7));
  border-bottom: 1px solid rgba(255, 0, 0, 0.2);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
}

.brand-mark {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #ff0000;
}

.actions-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 0, 0, 0.3);
  background: rgba(0, 0, 0, 0.35);
  font-family: 'Orbitron', sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ff0000;
  transition: background 0.2s ease, border 0.2s ease;
}
.actions-toggle i {
  font-size: 0.85rem;
}
.actions-toggle span {
  display: none;
}
.actions-toggle:hover,
.actions-toggle:focus-visible {
  background: rgba(255, 0, 0, 0.18);
  border-color: rgba(255, 0, 0, 0.45);
  outline: none;
}

.search-field {
  flex: 1;
  position: relative;
  max-width: 420px;
}

.search-field input {
  width: 100%;
  padding: 0.65rem 3rem 0.65rem 2.5rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 0, 0, 0.3);
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  box-shadow: inset 0 0 12px rgba(255, 0, 0, 0.15);
}
.search-field input::placeholder { color: #ff0000aa; }
.search-field i {
  position: absolute;
  top: 50%;
  left: 1rem;
  transform: translateY(-50%);
  color: #ff0000;
  font-size: 0.95rem;
}

.ghost-btn,
.icon-btn,
.pill-btn {
  border: none;
  background: none;
  color: #ff0000ee;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-family: 'Exo 2', sans-serif;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.ghost-btn {
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 0, 0, 0.25);
  background: rgba(255, 0, 0, 0.08);
}
.ghost-btn:hover { background: rgba(255, 0, 0, 0.15); }
.ghost-btn.tiny {
  padding: 0.2rem 0.6rem;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
}

.icon-btn {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255, 0, 0, 0.25);
  background: rgba(255, 0, 0, 0.08);
}
.icon-btn .dot {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff0000;
  box-shadow: 0 0 8px #ff0000;
}

.pill-btn {
  padding: 0.6rem 1.25rem;
  border-radius: 999px;
  background: linear-gradient(120deg, #ff0000, #aa0000);
  color: #fff;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
}
.pill-btn:hover { transform: translateY(-1px); }
.pill-btn.ghost {
  background: none;
  border: 1px solid rgba(255, 0, 0, 0.35);
  color: #ff0000;
}
.pill-btn.ghost:hover { background: rgba(255, 0, 0, 0.08); }

.foot-card #launch-mission-btn {
  width: 100%;
  justify-content: center;
}

.account-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

#account-tray {
  display: none;
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  width: min(260px, 80vw);
  padding: 1rem;
  border-radius: 18px;
  background: rgba(10, 10, 10, 0.92);
  border: 1px solid rgba(255, 0, 0, 0.35);
  box-shadow: 0 20px 35px rgba(0, 0, 0, 0.5);
  text-align: center;
  z-index: 230;
}
#account-tray .avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 0, 0, 0.15);
  color: #ff0000;
  font-size: 1.1rem;
}
#account-tray .chip-label {
  font-family: 'Orbitron', sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ff0000;
  font-size: 0.75rem;
}
#account-tray .handle {
  font-family: 'Exo 2', sans-serif;
  font-size: 0.75rem;
  color: #ff0000;
  opacity: 0.85;
  word-break: break-word;
}
#account-tray button {
  width: 100%;
  justify-content: center;
}

body.account-open #account-tray {
  display: flex;
  animation: fade-in 0.18s ease;
}

body.actions-open {
  overflow: hidden;
  touch-action: none;
}

.sheet-scrim {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 330;
  display: none;
}
.sheet-scrim.visible {
  opacity: 1;
  pointer-events: auto;
  display: block;
}

.actions-sheet {
  position: fixed;
  left: 50%;
  bottom: -100%;
  transform: translate(-50%, 24px);
  width: min(480px, 92vw);
  border-radius: 24px 24px 0 0;
  background: rgba(10, 10, 10, 0.95);
  border: 1px solid rgba(255, 0, 0, 0.35);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.55);
  padding: 1.2rem 1.4rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.28s ease, opacity 0.28s ease;
  z-index: 340;
  display: none;
}
.actions-sheet.open {
  bottom: 0;
  transform: translate(-50%, 0);
  opacity: 1;
  pointer-events: auto;
  display: flex;
}

.sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.sheet-header h2 {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ff0000;
}
.sheet-close {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 0, 0, 0.3);
  background: rgba(255, 0, 0, 0.1);
  color: #ff0000;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: background 0.2s ease, border 0.2s ease;
}
.sheet-close:hover,
.sheet-close:focus-visible {
  background: rgba(255, 0, 0, 0.2);
  border-color: rgba(255, 0, 0, 0.45);
  outline: none;
}

.sheet-content {
  display: grid;
  gap: 0.75rem;
}
.sheet-action {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.9rem;
  padding: 0.85rem 1rem;
  border-radius: 18px;
  border: 1px solid rgba(255, 0, 0, 0.25);
  background: rgba(30, 10, 20, 0.85);
  font-size: 1rem;
  letter-spacing: 0.04em;
  color: #ff0000;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border 0.2s ease;
}
.sheet-action i {
  font-size: 1.1rem;
  color: #ff0000;
}
.sheet-action:hover,
.sheet-action:focus-visible {
  transform: translateY(-2px);
  background: rgba(255, 0, 0, 0.18);
  border-color: rgba(255, 0, 0, 0.45);
  outline: none;
}
.sheet-action.secondary {
  border-style: dashed;
  background: rgba(10, 10, 10, 0.7);
}
.sheet-action.active {
  border-color: #ff0000;
}

.sheet-advanced {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.sheet-advanced .hidden {
  display: none;
}

.search-field.compact {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid rgba(255, 0, 0, 0.25);
  border-radius: 14px;
  padding: 0.55rem 0.75rem;
  background: rgba(255, 255, 255, 0.05);
}
.search-field.compact input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 0.9rem;
}
.search-field.compact input:focus {
  outline: none;
}

.optimize-tools {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.chip-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 0, 0, 0.3);
  background: rgba(0, 0, 0, 0.45);
  color: #ff0000;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  cursor: pointer;
}
.chip-btn i {
  font-size: 0.85rem;
}

.mobile-tabbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--bottom-tab-height);
  background: rgba(10, 10, 10, 0.9);
  border-top: 1px solid rgba(255, 0, 0, 0.2);
  display: none;
  align-items: center;
  justify-content: space-between;
  padding: 0 0.5rem;
  z-index: 210;
  backdrop-filter: blur(8px);
}
.mobile-tabbar .tab-btn {
  flex: 1 1 33%;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  color: #ff0000;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: none;
  background: none;
  height: 100%;
  cursor: pointer;
  transition: color 0.2s ease;
}
.mobile-tabbar .tab-btn i {
  font-size: 1.1rem;
}
.mobile-tabbar .tab-btn--add {
  border: 1px solid rgba(255, 0, 0, 0.4);
  border-radius: 18px;
  background: rgba(255, 0, 0, 0.18);
  color: #fff;
  font-weight: 600;
}
.mobile-tabbar .tab-btn--add i {
  font-size: 1.2rem;
}
.mobile-tabbar .tab-btn.active {
  color: #fff;
}
.mobile-tabbar .tab-btn:focus-visible {
  outline: 2px solid rgba(255, 0, 0, 0.5);
  outline-offset: 2px;
}

.atlas-shell {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 1rem;
  width: 100%;
  padding: 1.2rem clamp(1rem, 3vw, 2rem) 1.5rem;
  min-height: max(540px, calc(100vh - var(--topbar-height)));
  align-items: stretch;
  position: relative;
  z-index: 1;
  overscroll-behavior: contain;
}

.atlas-rail {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 0.85rem;
  gap: 0.6rem;
  border-radius: 20px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 0, 0, 0.2);
  overflow-y: auto;
  max-height: 100%;
  height: 100%;
  z-index: 380;
  scrollbar-width: none;
}
.atlas-rail::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.rail-group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.rail-item {
  width: 100%;
  text-align: left;
  padding: 0.65rem 0.9rem;
  border-radius: 16px;
  background: rgba(255, 0, 0, 0.08);
  color: #ff0000ee;
  border: 1px solid transparent;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  transition: background 0.2s ease, border 0.2s ease;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.rail-item i {
  font-size: 1rem;
}
.rail-item span {
  flex: 1;
}
.rail-item:hover { background: rgba(255, 0, 0, 0.18); }
.rail-item.active {
  background: rgba(255, 0, 0, 0.25);
  border-color: rgba(255, 0, 0, 0.45);
  color: #fff;
}


.atlas-main {
  display: flex;
  flex-direction: column;
  border-radius: 24px;
  background: rgba(10, 10, 10, 0.55);
  border: 1px solid rgba(255, 0, 0, 0.2);
  overflow: hidden;
  backdrop-filter: blur(6px);
  min-height: 0;
}

.capture-queue {
  border: 1px solid rgba(255, 0, 0, 0.2);
  border-radius: 16px;
  padding: 0.9rem;
  background: rgba(10, 10, 10, 0.55);
}
.capture-queue h3 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.6rem;
  color: #ff0000;
}
.capture-queue ul {
  display: grid;
  gap: 0.6rem;
  max-height: 180px;
  overflow-y: auto;
}
.capture-queue li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
  padding: 0.6rem 0.75rem;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 0, 0, 0.2);
  font-size: 0.8rem;
  color: #ff0000ee;
  transition: transform 0.2s ease, background 0.2s ease;
  will-change: transform;
}
.capture-queue li.empty {
  justify-content: center;
  color: #ff0000;
}
.capture-info {
  display: grid;
  gap: 0.35rem;
  max-width: calc(100% - 36px);
}
.capture-info span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.capture-meta {
  color: #ff0000aa;
}
.capture-preview {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  color: #ff0000ee;
}
.capture-preview img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid rgba(255, 0, 0, 0.35);
}
.capture-note {
  width: 100%;
  min-height: 60px;
  resize: vertical;
  border-radius: 12px;
  padding: 0.4rem 0.6rem;
  border: 1px solid rgba(255, 0, 0, 0.25);
  background: rgba(0, 0, 0, 0.35);
  color: #ff0000;
}
.capture-queue li span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.capture-queue li button {
  border: none;
  background: none;
  color: #ff1a1a;
  cursor: pointer;
  font-size: 0.8rem;
  padding: 0.25rem;
  border-radius: 50%;
  transition: background 0.2s ease;
}
.capture-queue li button:hover {
  background: rgba(255, 0, 0, 0.15);
}

@media (max-width: 768px) {
  .atlas-shell {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.8rem;
  }
  .map-card-grid {
    grid-template-columns: 1fr;
  }
  .crime-grid {
    grid-template-columns: 1fr;
  }
}

.atlas-map-pane {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}

.layer-toggle {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  font-size: 0.8rem;
  color: #ff0000;
}

.layer-toggle label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(0, 0, 0, 0.35);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  border: 1px solid rgba(255, 0, 0, 0.25);
  position: relative;
}
.layer-toggle label[data-previewing="true"] {
  border-color: rgba(255, 0, 0, 0.7);
  background: rgba(255, 0, 0, 0.18);
  color: #ff2222;
}
.layer-toggle input {
  accent-color: #ff0000;
}

.map-brief {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  padding: 1.1rem 1.4rem 1.4rem;
  border-bottom: 1px solid rgba(255, 0, 0, 0.15);
}
.map-headline {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: flex-start;
}
.map-brief h2 { display: none; }
.map-brief p {
  margin-top: 0.2rem;
  font-size: 0.85rem;
  color: #ff0000;
  max-width: 420px;
}
.map-status {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.8rem;
  color: #ff0000ee;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 0, 0, 0.25);
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
}
.map-status span:first-child {
  font-weight: 600;
  color: #fff;
}
.map-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}
.daily-mission-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
}
.daily-mission-copy {
  font-size: 0.9rem;
  color: #ff0000;
  line-height: 1.5;
  margin-bottom: 0.4rem;
}

#atlas-map {
  position: relative;
  flex: 1;
  background: radial-gradient(circle at top, rgba(255, 0, 0, 0.18), transparent 55%), rgba(0, 0, 0, 0.55);
  overflow: hidden;
  padding: clamp(0.8rem, 2vw, 1.2rem);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.layer-preview {
  align-self: center;
  display: grid;
  gap: 0.4rem;
  min-width: min(420px, 100%);
  padding: 0.9rem 1rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 0, 0, 0.6);
  background: rgba(0, 0, 0, 0.55);
  color: #ff0000;
  backdrop-filter: blur(8px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}
.layer-preview.hidden { display: none; }
.layer-preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ff2a2a;
}
.layer-preview-header button {
  border: none;
  background: none;
  color: #ff2a2a;
  cursor: pointer;
  font-size: 1rem;
  padding: 0.2rem;
  border-radius: 50%;
}
.layer-preview-header button:hover {
  background: rgba(255, 0, 0, 0.15);
}
.layer-preview p {
  font-size: 0.85rem;
  line-height: 1.5;
  color: #ff2222;
}
.layer-preview-tip {
  font-size: 0.75rem;
  color: #ff2a2a;
  letter-spacing: 0.06em;
}

.map-pins {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  max-width: min(640px, 100%);
  margin: 0 auto;
  justify-content: center;
  align-items: center;
  padding: 0.4rem 0;
}

.map-pin {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  padding: 0.55rem 0.9rem;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 0, 0, 0.25);
  cursor: pointer;
  transition: transform 0.2s ease, border 0.2s ease;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: #ff0000;
}
.map-pin strong {
  font-weight: 600;
  display: inline-flex;
  align-items: center;
}
.map-pin span {
  font-size: 0.78rem;
  color: #ff0000;
  display: inline-flex;
  align-items: center;
}
.map-pin span::before {
  content: '•';
  margin: 0 0.35rem;
  color: #ff1a1a;
}
.map-pin:hover { transform: translateY(-3px); border-color: rgba(255, 0, 0, 0.6); }
.map-pin.active {
  background: rgba(255, 0, 0, 0.3);
  border-color: rgba(255, 0, 0, 0.6);
  color: #fff;
}

.atlas-footer {
  border-top: 1px solid rgba(255, 0, 0, 0.18);
  background: rgba(0, 0, 0, 0.4);
  padding: 1.2rem 1.4rem;
}

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

.foot-card {
  background: rgba(255, 0, 0, 0.08);
  border-radius: 16px;
  padding: 1rem;
  border: 1px solid rgba(255, 0, 0, 0.25);
  color: #ff0000;
  backdrop-filter: blur(6px);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  will-change: transform;
}
.launch-card:active,
.foot-card:active,
.capture-queue li:active,
.map-pins .map-pin:active {
  transform: translateY(3px) scale(0.99);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}
.foot-card h3 {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.6rem;
  color: #ff0000;
}

.foot-card-crime {
  display: grid;
  gap: 0.85rem;
}
.crime-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.8rem;
}
.crime-card-header p {
  margin: 0;
  font-size: 0.78rem;
  color: #ff0000;
}
.crime-status {
  font-size: 0.7rem;
  padding: 0.15rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(119, 255, 183, 0.5);
  color: #77ffb7;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}
.crime-status.error {
  border-color: rgba(255, 0, 0, 0.6);
  color: #ff2d2d;
}
.crime-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.8rem;
}
.crime-metric {
  display: grid;
  gap: 0.2rem;
}
.crime-metric span {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #aa0000;
}
.crime-metric strong {
  font-size: 1.6rem;
  font-family: 'Orbitron', sans-serif;
  color: #fff;
}
.crime-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #ff0000;
}
.crime-note {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #77ffb7;
  margin: 0;
}
.crime-note.error {
  color: #ff2d2d;
}
.foot-card-dataset {
  display: grid;
  gap: 0.6rem;
}
.foot-card-dataset .dataset-stat {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
}
.foot-card-dataset .dataset-stat strong {
  font-size: 2rem;
  font-family: 'Orbitron', sans-serif;
  color: #fff;
}
.foot-card-dataset .dataset-stat span {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #aa0000;
}
.foot-card-dataset .dataset-note {
  font-size: 0.78rem;
  color: #ff0000;
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 0, 0, 0.25);
  border: 1px solid rgba(255, 0, 0, 0.35);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}
.rail-item span {
  display: inline;
}

@media (min-width: 769px) {
  .atlas-rail .rail-item span {
    display: none;
  }
}

@media (max-width: 768px) {
  .atlas-rail .rail-item span {
    display: inline;
  }
}
.pill[data-state="verified"] {
  background: rgba(119, 255, 183, 0.2);
  border-color: rgba(119, 255, 183, 0.45);
  color: #77ffb7;
}
.pill[data-state="verified"]::before {
  content: '✓';
  margin-right: 0.4rem;
  font-weight: 700;
}
.pill[data-state="inprogress"] {
  background: rgba(255, 0, 0, 0.18);
  border-color: rgba(255, 0, 0, 0.35);
  color: #aa0000;
}

.progress {
  margin-top: 0.6rem;
  display: grid;
  gap: 0.35rem;
}
.progress-bar {
  display: block;
  height: 6px;
  background: rgba(255, 0, 0, 0.2);
  border-radius: 999px;
  overflow: hidden;
}
.progress-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(120deg, #ff0000, #aa0000);
  border-radius: 999px;
  width: 0%;
  transition: width 0.4s ease;
}
.progress-bar span.pulse {
  animation: pulse-progress 0.6s ease;
}
.progress-label {
  font-size: 0.75rem;
  color: #ff0000;
}
.mission-actions {
  margin-top: 0.9rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.mission-actions .pill-btn {
  min-width: 150px;
  justify-content: center;
}


.atlas-context {
  display: flex;
  flex-direction: column;
  border-radius: 24px;
  background: rgba(10, 10, 10, 0.55);
  border: 1px solid rgba(255, 0, 0, 0.2);
  backdrop-filter: blur(6px);
  overflow: hidden;
  position: fixed;
  top: calc(var(--topbar-height) + 16px);
  right: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1rem, 3vh, 2rem);
  width: min(360px, 92vw);
  transform: translateX(110%);
  transition: transform 0.3s ease;
  z-index: 300;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

body.show-context .atlas-context {
  transform: translateX(0);
}

.context-header,
.context-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.2rem;
  border-bottom: 1px solid rgba(255, 0, 0, 0.18);
}
.context-footer {
  border-top: 1px solid rgba(255, 0, 0, 0.18);
  border-bottom: none;
  gap: 0.6rem;
}

#context-title {
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ff0000;
}


.context-form {
  display: grid;
  gap: 0.75rem;
}
.context-form label,
.context-form .context-form-label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.85rem;
  color: #ff0000ee;
}
.context-form input,
.context-form textarea,
.context-form select {
  border-radius: 10px;
  border: 1px solid rgba(255, 0, 0, 0.35);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  padding: 10px;
  font-size: 0.9rem;
}
.context-form textarea {
  resize: vertical;
  min-height: 90px;
}
.context-form .form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.6rem;
}
.share-row {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
}
.share-row input {
  flex: 1;
}

.context-body {
  flex: 1;
  padding: 1.2rem;
  overflow-y: auto;
  display: grid;
  gap: 1rem;
}

.context-empty {
  margin: auto;
  text-align: center;
  color: #ff0000ee;
  font-size: 0.9rem;
  line-height: 1.6;
}
.search-results ul {
  list-style: none;
  display: grid;
  gap: 0.75rem;
  padding: 0;
}
.search-results li {
  border: 1px solid rgba(255, 0, 0, 0.2);
  border-radius: 14px;
  padding: 0.75rem;
  background: rgba(0, 0, 0, 0.35);
  display: grid;
  gap: 0.35rem;
}
.search-results li strong {
  font-family: 'Orbitron', sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ff0000;
  font-size: 0.85rem;
}
.search-results li span {
  font-size: 0.75rem;
  color: #aa0000;
  letter-spacing: 0.06em;
}
.search-results li p {
  font-size: 0.8rem;
  color: #ff0000;
  line-height: 1.4;
}

.community-roster {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  height: 100%;
}
.community-roster ul {
  list-style: none;
  display: grid;
  gap: 0.7rem;
  padding: 0;
  margin: 0;
  flex: 1;
  overflow-y: auto;
  padding-right: 0.25rem;
}
.community-loading,
.community-empty {
  text-align: center;
  color: #ff0000ee;
  font-size: 0.9rem;
  padding: 1.5rem;
  border: 1px dashed rgba(255, 0, 0, 0.3);
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.25);
}
.community-member {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1rem;
  border-radius: 18px;
  border: 1px solid rgba(255, 0, 0, 0.25);
  background: rgba(0, 0, 0, 0.35);
}
.community-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0b0b0b;
  background: linear-gradient(135deg, #ff0000, #aa0000);
  box-shadow: 0 0 14px rgba(255, 0, 0, 0.3);
}
.community-details {
  flex: 1;
  display: grid;
  gap: 0.2rem;
}
.community-details strong {
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ff0000;
}
.community-email {
  font-size: 0.78rem;
  color: #ff0000;
}
.community-joined {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #aa0000;
}
.community-pill {
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  padding: 0.2rem 0.8rem;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #77ffb7;
  background: rgba(255, 255, 255, 0.08);
}
.community-subtext {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #aa0000;
  text-align: center;
}
.community-subtext + .community-subtext {
  margin-top: -0.4rem;
}
.community-subtext-error {
  color: #ff2d2d;
}
.community-roster ul::-webkit-scrollbar {
  width: 6px;
}
.community-roster ul::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.35);
  border-radius: 999px;
}

.feed-list {
  list-style: none;
  display: grid;
  gap: 0.9rem;
  padding: 0;
  margin: 0;
}
.feed-entry {
  border: 1px solid rgba(255, 0, 0, 0.25);
  border-radius: 16px;
  padding: 0.85rem;
  background: rgba(0, 0, 0, 0.35);
  display: grid;
  gap: 0.4rem;
}
.feed-entry header {
  display: flex;
  justify-content: space-between;
  gap: 0.6rem;
  font-size: 0.78rem;
  color: #ff0000ee;
}
.feed-entry p {
  margin: 0;
  font-size: 0.9rem;
  color: #ff0000;
  line-height: 1.5;
}
.feed-entry img {
  width: 100%;
  max-height: 180px;
  object-fit: cover;
  border-radius: 12px;
}
.feed-composer {
  display: grid;
  gap: 0.6rem;
}
.feed-composer textarea {
  border-radius: 14px;
  border: 1px solid rgba(255, 0, 0, 0.3);
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  padding: 0.75rem;
  resize: vertical;
  min-height: 90px;
}
.feed-composer button {
  justify-content: center;
}
.journal-panel {
  display: grid;
  gap: 1rem;
}
.journal-panel > p {
  font-size: 0.85rem;
  color: #ff0000;
  line-height: 1.4;
}
.gear-grid {
  display: grid;
  gap: 1rem;
}
.badge-list {
  list-style: none;
  display: grid;
  gap: 0.6rem;
  padding: 0;
  margin: 0;
}
.badge-list li {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  border: 1px solid rgba(255, 0, 0, 0.25);
  border-radius: 14px;
  padding: 0.6rem 0.8rem;
  background: rgba(0, 0, 0, 0.35);
}
.badge-list li span {
  font-size: 1.4rem;
}
.badge-list li div {
  display: grid;
  gap: 0.15rem;
  color: #ff0000;
  font-size: 0.85rem;
}
.account-panel {
  display: grid;
  gap: 0.8rem;
}
.account-panel label {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #aa0000;
}
.account-panel input,
.account-panel textarea {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(255, 0, 0, 0.3);
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  padding: 0.75rem;
  font-size: 0.9rem;
}
.account-panel textarea {
  resize: vertical;
  min-height: 100px;
}
.account-panel .form-actions {
  display: flex;
  justify-content: flex-end;
}

.entity-overview {
  display: grid;
  gap: 1rem;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 0, 0, 0.2);
  border-radius: 18px;
  padding: 1rem;
}
.entity-overview h3 {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #ff0000;
}
.entity-meta {
  display: grid;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: #ff0000;
}
.meta-label {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #ff0000;
}
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.tag {
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 0, 0, 0.25);
  background: rgba(255, 0, 0, 0.12);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}

.checklist {
  display: grid;
  gap: 0.4rem;
  font-size: 0.85rem;
}
.checklist li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.checklist i { color: #77ffb7; }

/* ---------- Responsive tweaks ---------- */
@media (max-width: 1200px) {
  .atlas-shell {
    grid-template-columns: 100px minmax(0, 1fr);
  }
  .atlas-rail {
    padding: 0.8rem;
  }
  .rail-item {
    font-size: 0.85rem;
    padding: 0.6rem 0.75rem;
  }
}

@media (min-width: 769px) {
  .actions-toggle span {
    display: inline;
  }
  .mobile-tabbar {
    display: none;
  }
  .actions-sheet {
    top: calc(var(--topbar-height) + 12px);
    right: clamp(1rem, 3vw, 2.5rem);
    left: auto;
    bottom: auto;
    transform: translateY(-16px);
    border-radius: 18px;
    width: min(340px, 28vw);
  }
  .actions-sheet.open {
    bottom: auto;
    transform: translateY(0);
  }
}

@media (max-width: 1024px) {
  .atlas-shell {
    grid-template-columns: minmax(0, 1fr);
    padding: 1rem clamp(0.8rem, 3vw, 1.4rem) 1.4rem;
  }
  .topbar-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
  }
  .layer-toggle {
    width: 100%;
    justify-content: center;
  }
  .layer-toggle label {
    flex: 1 1 45%;
    min-width: 130px;
    justify-content: center;
  }
  .atlas-rail {
    position: fixed;
    top: var(--topbar-height);
    left: 0;
    bottom: 0;
    width: min(310px, 78vw);
    transform: translateX(-105%);
    border-radius: 0 18px 18px 0;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.55);
    padding: clamp(1rem, 4vw, 1.35rem);
    padding-top: clamp(1.2rem, 5vw, 1.8rem);
    background: rgba(6, 6, 6, 0.92);
    border-color: rgba(255, 0, 0, 0.3);
    z-index: 240;
    height: calc(100% - var(--topbar-height));
  }
  body.nav-open {
    overflow: hidden;
  }
  body.nav-open .atlas-rail {
    transform: translateX(0);
  }
  .layer-preview {
    position: fixed;
    left: 50%;
    bottom: 120px;
    transform: translateX(-50%);
    width: min(480px, 90vw);
    z-index: 20;
  }
}

@media (max-width: 768px) {
  body.main-page {
    padding-bottom: calc(var(--bottom-tab-height) + 1.2rem);
  }
  .atlas-topbar {
    padding: 0 clamp(0.8rem, 5vw, 1.2rem);
  }
  .topbar-actions {
    gap: 0.35rem;
  }
  .atlas-shell {
    grid-template-columns: minmax(0, 1fr);
    padding: 1rem clamp(0.85rem, 5vw, 1.4rem) calc(var(--bottom-tab-height) + 1.6rem);
    height: auto;
    min-height: calc(100vh - var(--topbar-height) - var(--bottom-tab-height));
  }
  .map-card-grid {
    grid-template-columns: 1fr;
  }
  .rail-item {
    flex: 0 0 auto;
    width: 100%;
    min-width: 0;
    justify-content: flex-start;
  }
  .layer-toggle {
    width: 100%;
    overflow-x: auto;
    gap: 0.5rem;
    padding-bottom: 0.3rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }
  .layer-toggle label {
    flex: 0 0 auto;
    min-width: 130px;
    justify-content: center;
  }
  .atlas-context {
    left: 14px;
    right: 14px;
    top: calc(var(--topbar-height) + 12px);
    bottom: calc(var(--bottom-tab-height) + 12px);
    width: auto;
    z-index: 320;
  }
  .account-btn {
    display: inline-flex;
  }
  #account-tray {
    width: min(220px, 75vw);
    max-height: min(70vh, 340px);
    overflow-y: auto;
  }
  .mobile-tabbar {
    display: flex;
  }
  .layer-preview {
    bottom: calc(var(--bottom-tab-height) + 90px);
    width: min(460px, 92vw);
  }
  .map-status {
    width: 100%;
    justify-content: space-between;
  }
  .map-pins {
    max-width: 100%;
    justify-content: center;
  }
  .map-pin {
    width: 100%;
    justify-content: space-between;
    white-space: normal;
    align-items: flex-start;
  }
}
.nav-scrim {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
  backdrop-filter: none;
  z-index: 220;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  display: none;
}
body.nav-open .nav-scrim {
  opacity: 1;
  pointer-events: auto;
  display: block;
}
.toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: clamp(1rem, 3vw, 2rem);
  display: grid;
  gap: 0.6rem;
  z-index: 250;
  pointer-events: none;
}
.toast {
  min-width: 240px;
  max-width: min(320px, 80vw);
  background: rgba(0, 0, 0, 0.75);
  border: 1px solid rgba(255, 0, 0, 0.35);
  border-radius: 14px;
  padding: 0.8rem 1rem;
  color: #ff0000;
  font-size: 0.85rem;
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.45);
  animation: fade-in 0.2s ease;
  pointer-events: auto;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.toast strong {
  display: block;
  margin-bottom: 0.2rem;
  font-family: 'Orbitron', sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ff0000;
}
.toast button {
  margin-top: 0.45rem;
  border: none;
  background: none;
  color: #ff0000;
  cursor: pointer;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}
.toast.fade-out {
  opacity: 0;
  transform: translateY(8px);
}
/* ===== show particles, hide page overlays ===== */

/* kill scrims/masks */
.nav-scrim,
.sheet-scrim { display: none !important; }  /* element exists in main.html */  /*  [oai_citation:1‡main.html](sediment://file_0000000042e47243aa670c7933cfe3fe) */

/* remove the large dark base behind everything */
.atlas-main {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

/* remove the dark panel inside the map area */
#atlas-map { background: transparent !important; }  /* was rgba + radial gradient */

/* optional: make the top bar transparent too */
.atlas-topbar {
  background: transparent !important;
  border-bottom: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

/* keep particles fully behind UI */
.background, #particles-js { z-index: -3 !important; }
