/* Idle RPG content styles — lives inside IRCPlus .panel */
.idle-panel { padding-bottom: 0.5rem; }
.idle-head {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--line);
}
.idle-title {
  margin: 0 0 0.2rem;
  font-size: clamp(1.25rem, 2.5vw, 1.55rem);
}
.idle-sub { margin: 0; font-size: 0.88rem; }
.idle-subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.idle-nav-link {
  display: inline-block;
  padding: 7px 12px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--ink);
  font-weight: 700;
  font-size: 0.82rem;
  text-decoration: none;
}
.idle-nav-link:hover {
  background: var(--blue-soft);
  border-color: var(--blue);
  text-decoration: none;
}
.idle-nav-link.is-active {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}
.idle-body h1 { font-size: 1.35rem; margin: 0 0 0.75rem; }
.idle-body h2 { font-size: 1.1rem; margin: 1.25rem 0 0.5rem; }
.idle-body code, .idle-body pre {
  display: inline-block;
  background: var(--code-bg, #0d1520);
  color: var(--ink);
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.9em;
  border: 1px solid var(--line);
}
.idle-body pre {
  display: block;
  padding: 12px;
  overflow: auto;
}
.idle-foot {
  margin: 1.25rem 0 0;
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
}

/* Players */
.legend { font-size: 0.85rem; color: var(--muted); margin: 0 0 0.75rem; }
.online-dot {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: #81c784; margin-right: 4px; vertical-align: middle;
}
.offline-label { color: var(--muted); }
.player-list { padding-left: 1.25rem; }
.player-list li { margin: 0.35rem 0; }
.player-list li.empty { list-style: none; margin-left: -1.25rem; color: var(--muted); }
.player-list li.offline, .player-list a.offline { color: var(--muted); }
.player-list li.online { font-weight: 600; }

/* DB table */
.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line);
  border-radius: 10px;
  margin: 0.75rem 0 1rem;
}
.db-table {
  width: max-content;
  min-width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
  margin: 0;
}
.db-table th, .db-table td {
  padding: 0.45rem 0.55rem;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
  vertical-align: middle;
}
.db-table thead th {
  position: sticky; top: 0;
  background: var(--surface-2);
  z-index: 1;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--muted);
}
.db-table .th-label { margin-right: 0.35rem; }
.db-table .sort-links a {
  display: inline-block;
  padding: 0 0.15rem;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.7rem;
  line-height: 1;
}
.db-table .sort-links a:hover,
.db-table .sort-links a.sort-active { color: var(--blue); }
.db-table tbody tr:hover td { background: var(--surface-2); }
.db-table .mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.78rem;
}
.muted { color: var(--muted); }
.small { font-size: 0.82rem; }

#map {
  width: 500px; height: 500px; max-width: 100%;
  background-image: url(newmap.png); background-size: contain;
  border: 1px solid var(--line); border-radius: 8px;
}

@media (max-width: 720px) {
  .idle-head { flex-direction: column; }
}
/* Idle RPG interactive map */
.map-legend {
  font-size: 0.88rem;
  color: var(--muted);
  margin: 0 0 0.75rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.75rem;
}
.map-legend .dot,
.dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  vertical-align: middle;
}
.dot.online { background: #4aa3ff; box-shadow: 0 0 0 2px rgba(74,163,255,0.35); }
.dot.offline { background: #e05c5c; box-shadow: 0 0 0 2px rgba(224,92,92,0.3); }

.idle-map-wrap {
  display: inline-block;
  max-width: 100%;
  border-radius: 12px;
  border: 1px solid var(--line);
  overflow: auto;
  background: var(--surface-2);
  box-shadow: 0 4px 18px rgba(0,0,0,0.25);
}
.idle-map {
  position: relative;
  width: 500px;
  height: 500px;
  max-width: 100%;
  margin: 0;
}
.idle-map-bg {
  display: block;
  width: 500px;
  height: 500px;
  max-width: none;
  image-rendering: auto;
}
.map-pin {
  position: absolute;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.9);
  box-sizing: border-box;
  transform: translate(-50%, -50%);
  text-decoration: none;
  z-index: 2;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.map-pin.online {
  background: #3b9eff;
  box-shadow: 0 0 0 3px rgba(59,158,255,0.35);
}
.map-pin.offline {
  background: #d94c4c;
  box-shadow: 0 0 0 3px rgba(217,76,76,0.25);
}
.map-pin.self {
  width: 14px;
  height: 14px;
  background: #ff6b35;
  border-color: #ffe08a;
  box-shadow: 0 0 0 4px rgba(255,107,53,0.35), 0 0 12px rgba(255,200,80,0.5);
  z-index: 3;
  pointer-events: none;
}
.map-pin:hover {
  transform: translate(-50%, -50%) scale(1.35);
  z-index: 5;
}
