/* mobs/styles.css */

:root{
  --bg-x: 0px;
  --bg-y: 0px;
  --zoom: 1;

  --panel: rgba(10, 12, 16, 0.78);
  --panel2: rgba(10, 12, 16, 0.88);
  --line: rgba(255,255,255,0.12);
  --line2: rgba(255,255,255,0.18);
  --txt: rgba(255,255,255,0.92);
  --muted: rgba(255,255,255,0.66);
  --hover: rgba(255,255,255,0.06);

  /* ✅ Dark overlay on the background image */
  --bg-overlay: rgba(0,0,0,0.58);

  /* sticky col must be basically opaque so text behind never bleeds through */
  --stickybg: rgba(8, 10, 13, 0.985);
  --stickybg-hover: rgba(12, 14, 18, 0.985);

  /* ✅ Scrollbar theme (table horizontal scrollbar) */
  --scrollbar-size: 12px;
  --scroll-track: rgba(0,0,0,0.40);
  --scroll-track-border: rgba(255,255,255,0.10);

  --scroll-thumb: rgba(255,255,255,0.16);
  --scroll-thumb-border: rgba(255,255,255,0.14);

  --scroll-thumb-hover: rgba(255,255,255,0.24);
  --scroll-thumb-hover-border: rgba(255,255,255,0.20);

  --scroll-thumb-active: rgba(34,197,94,0.28);
  --scroll-thumb-active-border: rgba(34,197,94,0.38);
}


html,body{
  height:100%;
  margin:0;
  background: #05070a;
}

body{
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

  color: var(--txt);
  background: transparent;
  image-rendering: pixelated;
  position: relative;
}

/* Fixed background layer (doesn't scroll) */
.bg{
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: url("https://myfo2.com/zones/noob-island.png");
  background-repeat: no-repeat;

  /* keep image at "true size" relative to initial zoom by compensating with --zoom */
  background-size: calc(4096px / var(--zoom)) calc(3072px / var(--zoom));
  background-position: var(--bg-x) var(--bg-y);
  background-color: #05070a;
  image-rendering: pixelated;
}

/* ✅ Overlay sits on top of the bg image */
.bg::after{
  content:"";
  position:absolute;
  inset:0;
  background: var(--bg-overlay);
  pointer-events:none;
}

.wrap{
  margin: 0 auto;
  padding: 14px;
  position: relative;
  z-index: 1; /* above background */
}

#fo2-mobs-app {
    width: 100%;
}

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

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

* {
  scrollbar-width: thin;
  scrollbar-color: rgba(100,116,139,0.7) transparent;
}
*::-webkit-scrollbar { width: 8px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb {
  background: rgba(100,116,139,0.7);
  border-radius: 999px;
}
*::-webkit-scrollbar-thumb:hover {
  background: rgba(148,163,184,0.95);
}

/* FRAME */
.app-frame {
  width: 100%;
  background:
    radial-gradient(circle at top left, rgba(56,189,248,0.16), transparent 55%),
    radial-gradient(circle at top right, rgba(34,197,94,0.14), transparent 55%),
    rgba(15,23,42,0.96);
  border: var(--pixel-border) solid rgba(148,163,184,0.35);
  box-shadow:
    0 0 0 1px rgba(15,23,42,0.8),
    var(--shadow-soft);
  backdrop-filter: blur(22px);
  overflow: hidden;      /* ✅ put this back */
  display: flex;
  flex-direction: column;
  position: relative;
  isolation: isolate;
  animation: frameIn 420ms cubic-bezier(0.2, 0.9, 0.3, 1.1);
}




@keyframes frameIn {
  from {
    transform: scale(0.985);
    opacity: 0;
  }
  to {
    transform: none; /* IMPORTANT: no transform at rest */
    opacity: 1;
  }
}


.app-frame::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  border: 1px solid rgba(34,197,94,0.14);
  pointer-events: none;
  opacity: 0.7;
}

.app-inner {
    min-height: 0;
    display: flex;
    flex-direction: column;
    background-image: linear-gradient(135deg, rgba(15,23,42,0.97), rgba(34,197,94,0.12));
    background-repeat: no-repeat;
    background-position: top left;
    background-size: 100% 100vh;
    background-attachment: fixed;
	border-radius: 10px;
}



/* NAV / FILTER BAR */
.tool-bar{
  padding: 8px 18px 6px;
  border-bottom: 1px solid var(--border-subtle);

  /* ✅ 2-column layout: search fills leftover space, filters stay auto-width */
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}


.tool-left{
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

/* search container stretches */
.search-wrap{
  position: relative;
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
}


.tool-right{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
  font-size: 0.8rem;
  color: var(--text-faint);
}




/* ✅ input becomes “full width until dropdowns” */
.search-input {
    background: rgb(255 255 255 / 11%);
    border-radius: 10px;
    border: 1px solid var(--border-subtle);
    padding: 6px 10px 6px 26px;
    font-size: 1rem;
    color: var(--text-main);
    outline: none;
    min-width: 200px;
    transition: border-color var(--transition-fast),
    box-shadow var(--transition-fast),
    background var(--transition-fast),
    transform var(--transition-fast);
	width:90%;
}

.search-input::placeholder{
  color: var(--text-faint);
}


.search-wrap::before{
  content: "⌕";
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
  color: var(--text-faint);
}

.search-input:focus{
  border-color: rgba(34,197,94,0.7);
  box-shadow:
    0 0 0 1px rgba(34,197,94,0.45),
    0 0 20px rgba(34,197,94,0.3);
  background: var(--surface-soft);
  transform: translateY(-1px);
}


.select-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.select-wrap select {
  background: rgba(15,23,42,0.96);
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  padding: 5px 26px 5px 10px;
  font-size: 1rem;
  color: var(--text-main);
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
  min-width: 140px;
  transition:
    border-color var(--transition-fast),
    box-shadow var(--transition-fast),
    background var(--transition-fast),
    transform var(--transition-fast);
}

.select-wrap::after {
  content: "";
  position: absolute;
  right: 9px;
  width: 9px;
  height: 9px;
  border-radius: 2px;
  border: 2px solid var(--text-faint);
  border-top-color: transparent;
  border-left-color: transparent;
  transform: translateY(-1px) rotate(45deg);
  pointer-events: none;
  transition: border-color var(--transition-fast), transform var(--transition-fast);
}

.select-wrap select:focus {
  border-color: rgba(34,197,94,0.7);
  box-shadow:
    0 0 0 1px rgba(34,197,94,0.45),
    0 0 20px rgba(34,197,94,0.3);
  background: var(--surface-soft);
  transform: translateY(-1px);
}

.select-wrap:focus-within::after {
  border-color: var(--accent);
  transform: translateY(-1px) rotate(45deg) scale(1.04);
}

/* ✅ on smaller screens, stack */
@media (max-width: 900px){
  .tool-bar{
    grid-template-columns: 1fr;
  }
  .tool-right{
    width: 100%;
    justify-content: flex-start;
  }
}


.tool-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  color: var(--text-faint);
}

/* MAIN */
.app-main {
  padding: 10px 18px 14px;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.summary-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text-faint);
}

.breadcrumb {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.breadcrumb span {
  color: var(--accent);
}

.summary-badge {
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: rgba(15,23,42,0.95);
}

/* MOB LIST */
.mob-list-shell {
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  padding: 8px 10px;
  position: relative;
  /* was: overflow: hidden; */
  overflow: visible;
}


.mob-list-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(148,163,184,0.04), transparent 70%);
  pointer-events: none;
}

.mob-list-header {
  display: grid;
  grid-template-columns: minmax(0, 2.4fr) minmax(0, 1.4fr) minmax(0, 0.9fr) minmax(0, 2.2fr);
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text-faint);
  padding: 4px 4px 6px;
  border-bottom: 1px solid rgba(15,23,42,0.9);
}


.mob-list-header span {
  text-transform: uppercase;
  letter-spacing: 0.08em;
}


@media (max-width: 768px) {
  .mob-list-header {
    display: none;
  }
}

.mob-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mob-row {
  display: grid;
  grid-template-columns: minmax(0, 2.4fr) minmax(0, 1.4fr) minmax(0, 0.9fr) minmax(0, 2.2fr);
  gap: 8px;
  padding: 6px 4px;
  align-items: center;
  font-size: 12px;
  color: var(--text-dim);
  cursor: pointer;
  position: relative;
  overflow: visible;
  background: transparent;
  transition:
    background var(--transition-fast),
    transform var(--transition-fast),
    box-shadow var(--transition-fast),
    border-color var(--transition-fast);
}




.mob-row:last-child {
  border-bottom: none;
}

.mob-main-cell {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

/* 96x192 sheet → 3 cols (32px) × 4 rows (48px) */
/* 96x192 sheet → 3 cols × 4 rows
   Each cell ≈ 32×48
   ~13px blank space above sprite ⇒ sprite top ≈ rowStart + 13
   We want to crop that blank area and show the sprite cleanly.
*/

/* LIST SWATCHES (idle = row 3, col 2 at 1x) */
.mob-swatch {
  width: 26px;
  height: 26px;
  image-rendering: pixelated;
  flex-shrink: 0;

  background-repeat: no-repeat;

  /* full sheet size (96x192, 3x4) */
  background-size: 96px 192px;

  /* Idle frame: row 3, middle column → x=-36, y=-114 */
  background-position: -36px -114px;
}


/* MODAL SWATCH (2x sheet scale, idle = row 3, col 2) */
.modal-swatch {
    width: 40px;
    height: 40px;
    background-position: 52% 66%;
    background-repeat: no-repeat;
    background-size: 300%;
    image-rendering: pixelated;
    transform: translateY(-10px) scale(2.0);
    filter: drop-shadow(0 12px 18px rgba(0,0,0,0.75));
}



/* Hover animation — LIST (1x) — 12 frames, 0.5s each, jump cuts */
.mob-row:hover .mob-swatch {
  animation-name: mobSpriteWalk;
  animation-duration: 6s;          /* 12 × 0.5s */
  animation-timing-function: steps(1, end);
  animation-iteration-count: infinite;
}







.mob-name-wrap {
  min-width: 0;
}

.mob-name {
  font-size: 1.2rem;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mob-subline {
  font-size: 1rem;
  color: var(--text-faint);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mob-col {
  font-size: 1rem;
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ADD THIS override somewhere after the .mob-col rule */
.mob-col.mob-drops {
  overflow: visible;
}


.mob-col.mob-faction{
  overflow: visible;
  display: flex;
  align-items: center;
}

.mob-faction-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    border-radius: 999px;
    border: 1px solid rgba(148,163,184,0.45);
    background: rgb(255 255 255 / 27%);
    position: relative;
    z-index: 3;
    white-space: nowrap;
}

.mob-faction-pill img{
  width: 18px;
  height: 18px;
  image-rendering: pixelated;
  flex-shrink: 0;
  filter: drop-shadow(0 6px 10px rgba(0,0,0,0.65));
}

.mob-faction-placeholder{
  width: 18px;
  height: 18px;
  border-radius: 4px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(148,163,184,0.25);
  flex-shrink: 0;
}

.mob-faction-xp{
  font-size: 1rem;
  color: var(--text-main);
}

/* Hover tooltip (faction name) */
.mob-faction-pill[data-tip]::after{
  content: attr(data-tip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translateX(-50%) translateY(4px);

  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  white-space: nowrap;
  padding: 6px 8px;
  border-radius: 10px;

  background:
    radial-gradient(circle at top left, rgba(34,197,94,0.16), transparent 60%),
    rgba(15,23,42,0.98);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  font-size: 0.8rem;

  box-shadow: 0 16px 40px rgba(0,0,0,0.8);

  transition:
    opacity 0.14s ease-out,
    transform 0.14s ease-out,
    visibility 0s linear 0.14s;
}

.mob-faction-pill[data-tip]::before{
  content: "";
  position: absolute;
  left: 50%;
  bottom: calc(100% + 2px);
  transform: translateX(-50%);

  border-width: 5px;
  border-style: solid;
  border-color: rgba(15,23,42,0.98) transparent transparent transparent;

  opacity: 0;
  visibility: hidden;

  transition: opacity 0.14s ease-out, visibility 0s linear 0.14s;
}

.mob-faction-pill[data-tip]:hover::after{
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  transition-delay: 0s;
}

.mob-faction-pill[data-tip]:hover::before{
  opacity: 1;
  visibility: visible;
  transition-delay: 0s;
}


.mob-row:hover {
    background: rgb(255 255 255 / 6%);
    transform: translateY(-1px);
    /* box-shadow: 0 0 0 1px rgba(34,197,94,0.4),
    0 10px 22px rgba(0,0,0,0.8); */
    /* border-color: rgba(15,23,42,1); */
    scale: 1.02;
    transition: 0.2s;
    border-radius: 7px;
}

.mob-row:hover::before {
  opacity: 1;
}

.mob-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-faint);
  padding: 2px 6px;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.45);
  background: rgba(15,23,42,0.98);
}

@media (max-width: 768px) {
  .mob-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 4px;
  }

  .mob-main-cell {
    flex: 1 1 auto;
    min-width: 0;
  }

  /* Zone column: float right, inline, vertically centered */
  .mob-col.mob-location {
    flex: 0 0 auto;
    margin-left: auto;
    text-align: right;
    font-size: 0.8rem;
    max-width: 45%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* Still hide drops column on mobile */
  .mob-col.mob-drops {
    display: none;
  }
  
    .mob-col.mob-faction{
    flex: 0 0 auto;
    margin-left: 8px;
  }

  .mob-col.mob-location{
    max-width: 38%;
  }

  .mob-faction-pill{
    padding: 2px 6px;
  }

  .mob-faction-pill img,
  .mob-faction-placeholder{
    width: 16px;
    height: 16px;
  }


}



/* EMPTY STATE */
.empty-state {
  padding: 16px 4px 10px;
  text-align: center;
  font-size: 12px;
  color: var(--text-faint);
}

/* MODAL */
.modal-backdrop {
    position: fixed;
    inset: 0;
    backdrop-filter: blur(10px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 50;
}

.modal-backdrop.open {
  display: flex;
  animation: backdropFade 180ms ease-out;
}

@keyframes backdropFade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.modal {
    width: 100%;
    max-width: 640px;
    border-radius: 18px;
    background: radial-gradient(circle at top left, rgba(34,197,94,0.18), transparent 65%),
    radial-gradient(circle at bottom right, rgba(59,130,246,0.16), transparent 70%),
    #020617;
    border: var(--pixel-border) solid rgba(148,163,184,0.45);
    box-shadow: 0 0 0 1px rgba(15,23,42,0.9),
    0 28px 70px rgba(0,0,0,0.9);
    overflow: visible;
    animation: modalIn 200ms cubic-bezier(0.25, 0.9, 0.3, 1.2);
}

@keyframes modalIn {
  from { opacity: 0; transform: translateY(10px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-header {
    padding: 10px 14px 8px;
    border-bottom: 1px solid rgba(15,23,42,0.95);
    display: flex;
    align-items: center;
    gap: 10px;
    border-top-right-radius: 16px;
    border-top-left-radius: 16px;
    border-bottom: 1px solid #ffffff3b;
    margin-bottom: 10px;
    padding-bottom: 14px;
}



.modal-title-wrap {
  flex: 1;
  min-width: 0;
}

.modal-title {
    font-size: 1.5rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.modal-sub {
  font-size: 1.2rem;
  color: var(--text-faint);
}

.modal-close {
  border: 0;
  background: rgba(15,23,42,0.95);
  color: var(--text-dim);
  border-radius: 999px;
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 15px;
  padding: 0;
  transition:
    background var(--transition-fast),
    color var(--transition-fast),
    transform var(--transition-fast),
    box-shadow var(--transition-fast);
}

.modal-close:hover {
  background: rgba(248,113,113,0.1);
  color: var(--danger);
  transform: translateY(-1px);
  box-shadow: 0 0 0 1px rgba(248,113,113,0.4);
}

.modal-body {
  padding: 10px 14px 12px;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.2fr);
  gap: 10px;
  font-size: 12px;
  color: var(--text-dim);
  background: radial-gradient(circle at bottom, rgba(15,23,42,0.6), transparent 60%);
}

@media (max-width: 640px) {
  .modal-body {
    grid-template-columns: 1fr;
  }
  

}

.modal-section-title {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #93d9a3;
    margin-bottom: 4px;
}

.modal-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  font-size: 0.8rem;
}

.stat-box {
  border-radius: 8px;
  background: var(--surface-soft);
  border: 1px solid var(--border-subtle);
  padding: 4px 6px;
}

.stat-label {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-faint);
}

.stat-value {
  font-size: 1rem;
  color: var(--text-main);
}

.modal-description {
  border-radius: 8px;
  background: var(--surface-soft);
  border: 1px solid var(--border-subtle);
  padding: 6px 7px;
  font-size: 12px;
  color: var(--text-dim);
  line-height: 1.5;
}

.modal-pills {
  margin-top: 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.modal-pill {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 2px 6px;
    border-radius: 6px;
    border: 1px solid rgba(148,163,184,0.5);
    background: rgba(15,23,42,0.95);
    color: var(--text-faint);
}

.modal-rows {
  margin-top: 4px;
  font-size: 0.8rem;
}

.modal-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 2px 0;
  border-bottom: 1px dotted rgba(15,23,42,0.95);
}

.modal-row:last-child {
  border-bottom: none;
}

.modal-row-label {
  color: var(--text-faint);
  font-size: 1rem;
}

.modal-row-value {
  text-align: right;
  color: var(--text-main);
  white-space: nowrap;
  font-size: 1rem;
}

.modal-footer {
  padding: 8px 14px 10px;
  border-top: 1px solid rgba(15,23,42,0.95);
  font-size: 0.8rem;
  color: var(--text-faint);
  display: flex;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

/* FOOTER */
.app-footer {
  padding: 8px 18px 10px;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.8rem;
  color: var(--text-faint);
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  background: linear-gradient(to top, rgba(15,23,42,0.95), rgba(15,23,42,0.9));
}

.app-footer span:last-child {
  text-align: right;
}

@media (max-width: 640px) {
  .app-header {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .header-meta {
    margin-left: 0;
  }
  .tool-bar {
    flex-direction: column;
    align-items: flex-start;
  }
  .tool-right {
    width: 100%;
  }
  .app-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}


.mob-drops-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  justify-content: flex-start;
}








.mob-drop-placeholder {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
  background: rgba(15,23,42,0.9);
}



.mob-drop-icon img,
.mob-drop-placeholder {
  position: relative;
  z-index: 2;
}


/* ✅ make the actual icon scale up to fill the new box */
.mob-drop-icon img{
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  image-rendering: pixelated;
}



.mob-drop-icon {
  position: relative;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  background: rgba(15,23,42,0.96);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  text-decoration: none;
  z-index: 0;
}


/* Real tooltip element */
.mob-tooltip {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translateX(-50%) translateY(4px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  min-width: 220px;
  max-width: 260px;
  padding: 8px 10px;
  border-radius: 10px;
  background:
    radial-gradient(circle at top left, rgba(34,197,94,0.16), transparent 60%),
    rgba(15,23,42,0.98);
  border: 1px solid var(--border-subtle);
  font-size: 0.8rem;
  color: var(--text-main);
  box-shadow: 0 16px 40px rgba(0,0,0,0.8);

  z-index: 1; /* bump this up */

  transition:
    opacity 0.14s ease-out,
    transform 0.14s ease-out,
    visibility 0s linear 0.14s;
}


/* Arrow under tooltip */
.mob-tooltip::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  transform: translateX(-50%);
  border-width: 5px;
  border-style: solid;
  border-color: rgba(15,23,42,0.98) transparent transparent transparent;
}

/* Show tooltip on hover/focus */
.mob-drop-icon:hover .mob-tooltip,
.mob-drop-icon:focus-visible .mob-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  transition-delay: 0s;
}

/* Tooltip content styling */
.mob-tooltip-name {
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 4px;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mob-tooltip-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.mob-tooltip-pill {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 2px 6px;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.6);
  background: rgba(15,23,42,0.98);
  color: var(--text-faint);
}



/* Ensure drop tooltips can spill out of rows/shell */
.mob-list-shell,
.mob-list,
.mob-row,
.mob-drops-wrap,
.mob-drop-icon {
  overflow: visible !important;
}




/* Header auth section (match items page look) */
.brand-icon-link {
  display: inline-flex;
}

.header-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-left: auto;
  position: relative;
  z-index: 1;
  white-space: nowrap;
  flex-wrap: wrap;
}

.header-user {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.header-user-name {
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Shared header button style (Sign in / Log out) */
.header-btn {
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.7);
  background: rgba(15,23,42,0.95);
  font-size: 0.8rem;
  color: var(--text-main);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  text-decoration: none;
  transition:
    background var(--transition-fast),
    border-color var(--transition-fast),
    box-shadow var(--transition-fast),
    transform var(--transition-fast);
}

.header-btn:hover {
  background: rgba(34,197,94,0.18);
  border-color: rgba(34,197,94,0.95);
  box-shadow:
    0 0 0 1px rgba(34,197,94,0.8),
    0 8px 20px rgba(0,0,0,0.7);
  transform: translateY(-1px);
}

.header-btn-ghost {
  background: transparent;
  border-color: rgba(148,163,184,0.6);
  color: var(--text-dim);
}

.header-btn-ghost:hover {
  background: rgba(15,23,42,0.96);
  border-color: rgba(248,250,252,0.6);
}

body.has-mob-modal {
  overflow: hidden;
}


/* PAGER (top + bottom, matches items vibe) */
.pager-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 4px 4px 6px;
  font-size: 0.8rem;
  color: var(--text-faint);
}

.pager-bottom {
  margin-top: 6px;
  border-top: 1px solid rgba(15,23,42,0.9);
  padding-top: 6px;
}

.pager-count {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pager-controls {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.pager-label {
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.pager-select select {
  min-width: 80px;
}

.pager-btn {
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: rgba(15,23,42,0.96);
  font-size: 0.8rem;
  color: var(--text-main);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition:
    background var(--transition-fast),
    border-color var(--transition-fast),
    box-shadow var(--transition-fast),
    transform var(--transition-fast),
    color var(--transition-fast);
}

.pager-btn:hover:not(.pager-btn-disabled):not(:disabled) {
  background: rgba(34,197,94,0.18);
  border-color: rgba(34,197,94,0.9);
  box-shadow:
    0 0 0 1px rgba(34,197,94,0.7),
    0 8px 18px rgba(0,0,0,0.8);
  transform: translateY(-1px);
}

.pager-btn-disabled,
.pager-btn:disabled {
  opacity: 0.45;
  cursor: default;
  box-shadow: none;
}

.mob-tooltip-meta {
  margin-top: 6px;
  padding-top: 4px;
  border-top: 1px dashed rgba(148,163,184,0.4);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mob-tooltip-meta-row {
  display: flex;
  justify-content: space-between;
  gap: 6px;
}

.mob-tooltip-meta-label {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-faint);
}

.mob-tooltip-meta-value {
  font-size: 1rem;
  color: var(--text-main);
  white-space: nowrap;
}

.mob-tooltip-coin {
  width: 18px!important;
  image-rendering: pixelated!important;
  display: inline-block!important;
  vertical-align: middle;
  margin-left: 4px;
}

.modal-link {
  color: var(--accent);
  text-decoration: none;
}

.modal-link:hover {
  text-decoration: underline;
}



.modal-zone-pill,
.modal-zone-pill:hover,
.modal-zone-pill:focus,
.modal-zone-pill:active {
  text-decoration: none !important;
}



.quest-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  background: radial-gradient(circle at top left, rgb(194 197 34 / 20%), rgba(15, 23, 42, 0.96));
  font-size: 0.8rem;
  color: var(--text-main);
  text-decoration: none;
  white-space: nowrap;
  box-shadow:
    0 10px 22px rgba(15,23,42,0.75),
    0 0 0 1px rgba(15,23,42,0.8);
  transition:
    transform var(--transition-fast),
    box-shadow var(--transition-fast),
    border-color var(--transition-fast),
    background var(--transition-fast);
  width: 90%;
}

.quest-pill + .quest-pill {
  margin-top: 4px;
}

.quest-pill:hover {
  transform: translateY(-1px);
  box-shadow:
    0 12px 26px rgba(15,23,42,0.9),
    0 0 0 1px rgba(250,250,250,0.14);
  border-color: rgba(250,250,250,0.3);
  background: radial-gradient(circle at top left, rgb(234 179 8 / 30%), rgba(15, 23, 42, 0.98));
  text-decoration: none;
}

.quest-pill-icon {
    width: 25px;
    height: 25px;
    flex-shrink: 0;
    image-rendering: pixelated;
}

.quest-pill-name {
  font-weight: 600;
}

.quest-pill-level {
  opacity: 0.85;
  font-size: 0.8rem;
}


.modal-pill.modal-pill-faction {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding-right: 8px;
}

.modal-pill-faction-icon {
  width: 18px;
  height: 18px;
  image-rendering: pixelated;
  flex-shrink: 0;
}

.modal-pill-faction-label {
  white-space: nowrap;
}


.modal-row-quests {
  align-items: flex-start;
  justify-content: flex-start; /* make the row content hug the left */
}

.modal-row-value-quests {
  text-align: left;
  color: var(--text-main);
  white-space: normal;
  flex: 1 1 auto; /* let it take the row width */
}



.modal-footer-btn {
  margin-left: auto;
  padding: 4px 12px;
  border-radius: 5px;
    border: 1px solid rgba(148,163,184,0.7);
    background: rgba(15,23,42,0.96);
  font-size: 0.8rem;
  color: var(--text-main);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition:
    background var(--transition-fast),
    border-color var(--transition-fast),
    box-shadow var(--transition-fast),
    transform var(--transition-fast),
    color var(--transition-fast);
}


.modal-footer-btn:hover {
  background: rgba(34,197,94,0.18);
  border-color: rgba(34,197,94,0.9);
  box-shadow:
    0 0 0 1px rgba(34,197,94,0.7),
    0 8px 18px rgba(0,0,0,0.8);
  transform: translateY(-1px);
}


/* -----------------------------
   Toast
----------------------------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%) translateY(12px);
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid rgba(148,163,184,0.6);
  background:
    radial-gradient(circle at top left, rgba(34,197,94,0.25), transparent 60%),
    rgba(15,23,42,0.98);
  color: #f9fafb;
  font-size: 1rem;
  line-height: 1.3;
  box-shadow: 0 18px 45px rgba(0,0,0,0.85);
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
  z-index: 80;
  transition:
    opacity 180ms ease-out,
    transform 180ms ease-out;
}

.toast-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.toast-show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.toast-hide {
  opacity: 0;
  transform: translateX(-50%) translateY(100%);
}


.select-wrap{
  position: relative;
  display: inline-flex;
  align-items: center;
}

/* ✅ filter dropdown “pill” itself */
.select-wrap select{
  background: rgba(0,0,0,0.55);      /* black + a bit transparent */
  border-radius: 10px;
  border: 1px solid rgba(148,163,184,0.35);
  padding: 5px 26px 5px 10px;
  font-size: 1rem;
  color: rgba(255,255,255,0.92);
  outline: none;

  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;

  cursor: pointer;
  min-width: 140px;

  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);

  transition:
    border-color var(--transition-fast),
    box-shadow var(--transition-fast),
    background var(--transition-fast),
    transform var(--transition-fast);
}

/* ✅ arrow stays visible */
.select-wrap::after{
  content: "";
  position: absolute;
  right: 9px;
  width: 9px;
  height: 9px;
  border-radius: 2px;
  border: 2px solid rgba(255,255,255,0.55);
  border-top-color: transparent;
  border-left-color: transparent;
  transform: translateY(-1px) rotate(45deg);
  pointer-events: none;
  transition: border-color var(--transition-fast), transform var(--transition-fast);
}

.select-wrap select:focus{
  border-color: rgba(34,197,94,0.7);
  box-shadow:
    0 0 0 1px rgba(34,197,94,0.45),
    0 0 20px rgba(34,197,94,0.3);
  background: rgba(0,0,0,0.68);     /* a touch darker on focus */
  transform: translateY(-1px);
}

.select-wrap:focus-within::after{
  border-color: rgba(34,197,94,0.8);
  transform: translateY(-1px) rotate(45deg) scale(1.04);
}

/* ✅ dropdown list background (browser support varies) */
.select-wrap select option,
.select-wrap select optgroup{
  background-color: rgba(0,0,0,0.92);
  color: rgba(255,255,255,0.92);
}

/* ✅ Spawn locations list (one pill per line) */
.modal-zone-list{
  margin-top: 4px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.modal-zone-empty{
  font-size: 1rem;
  color: var(--text-faint);
}

@media (max-width: 640px){
  .modal-zone-list{
    align-items: flex-start; /* nicer on mobile */
  }
}


/* ✅ Modal Zones — nice hover/focus pill styling */
.modal-zone-pill,
.modal-zone-pill:hover,
.modal-zone-pill:focus,
.modal-zone-pill:active{
  text-decoration: none !important;
}

/* Base */
.modal-zone-pill{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: 90%;                 /* looks great in your column list */
  justify-content: space-between;

  padding: 6px 10px;
  border-radius: 10px;
  border: 1px solid rgba(148,163,184,0.40);

  background:
    radial-gradient(circle at top left, rgba(56,189,248,0.08), transparent 60%),
    rgba(15,23,42,0.92);

  color: rgba(255,255,255,0.92);
  cursor: pointer;

  position: relative;
  overflow: hidden;

  box-shadow:
    0 10px 22px rgba(0,0,0,0.55),
    0 0 0 1px rgba(15,23,42,0.85);

  transition:
    transform 140ms ease-out,
    box-shadow 160ms ease-out,
    border-color 160ms ease-out,
    background 160ms ease-out,
    filter 160ms ease-out;
}

/* Subtle sheen sweep */
.modal-zone-pill::before{
  content:"";
  position:absolute;
  inset:-1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255,255,255,0.10) 45%,
    rgba(255,255,255,0.18) 50%,
    rgba(255,255,255,0.10) 55%,
    transparent 100%
  );
  transform: translateX(-120%);
  opacity: 0;
  pointer-events:none;
  transition: transform 520ms ease-out, opacity 200ms ease-out;
}

.modal-zone-pill:hover{
  transform: translateY(-1px);
  border-color: rgba(34,197,94,0.85);

  background:
    radial-gradient(circle at top left, rgba(34,197,94,0.18), transparent 65%),
    radial-gradient(circle at bottom right, rgba(59,130,246,0.12), transparent 70%),
    rgba(15,23,42,0.96);

  box-shadow:
    0 0 0 1px rgba(34,197,94,0.55),
    0 16px 34px rgba(0,0,0,0.75);

  filter: brightness(1.06);
}

.modal-zone-pill:hover::before{
  transform: translateX(120%);
  opacity: 1;
}

/* Keyboard focus */
.modal-zone-pill:focus-visible{
  outline: none;
  border-color: rgba(34,197,94,0.9);
  box-shadow:
    0 0 0 2px rgba(34,197,94,0.55),
    0 0 0 1px rgba(15,23,42,0.85),
    0 16px 34px rgba(0,0,0,0.75);
}

/* Pressed */
.modal-zone-pill:active{
  transform: translateY(0px);
  filter: brightness(1.02);
}

/* Optional: make any "meta" text on the right look muted */
.modal-zone-pill .zone-meta,
.modal-zone-pill small{
  color: rgba(255,255,255,0.66);
  font-size: 0.9rem;
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce){
  .modal-zone-pill,
  .modal-zone-pill::before{
    transition: none !important;
  }
}


/* ✅ Keep the mob-list-shell overlay BEHIND the actual content */
.mob-list-shell{
  position: relative; /* (you already have this) */
}

.mob-list-shell::after{
  z-index: 0;         /* force overlay layer */
}

/* everything inside the shell sits above the overlay */
.mob-list-shell > *{
  position: relative;
  z-index: 1;
}


/* ✅ Let the hovered row (and its tooltips) render above neighboring rows */
.mob-row{
  position: relative; /* (you already have this) */
  z-index: 1;
}

.mob-row:hover,
.mob-row:focus-within{
  z-index: 50;
}


/* ✅ Make sure the faction tooltip itself is on top */
.mob-faction-pill{
  position: relative; /* (you already have this) */
  z-index: 2;
}

.mob-faction-pill[data-tip]::after,
.mob-faction-pill[data-tip]::before{
  z-index: 9999;
}


@media (max-width: 1355px){
  .mob-drop-icon{
    position: relative;
    width: 30px;
    height: 30px;
    border-radius: 7px;
    border: 1px solid var(--border-subtle);
    background: rgba(15,23,42,0.96);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    text-decoration: none;
    z-index: 0;
  }
}
