/* BALKANOPOLY — friends: the mail drop-down, pop-ups, friends' status.
   (Split out of the one big base.css in v9.7; files load in the order listed in index.html.) */
/* ---- v9.4: mail drop-down, pop-ups, friends' status ---- */
#topbar .mailbtn,
#lobby .mailbtn {
  flex: none;
  width: 36px;
  height: 34px;
}
#topbar .mailbtn .ii,
#lobby .mailbtn .ii {
  width: 20px;
  height: 20px;
}
#topbar .mailbtn .acbadge,
#lobby .mailbtn .acbadge {
  top: -3px;
  right: -7px;
  min-width: 17px;
  line-height: 17px;
  font-size: 11px;
}
#lobby .mailbtn {
  margin-right: 8px;
}
.mailpanel {
  position: fixed;
  z-index: 135;
  max-height: min(70vh, 560px);
  display: flex;
  flex-direction: column;
  background: var(--paper3);
  border: 1.5px solid var(--ink);
  box-shadow: 0 10px 28px rgba(59, 45, 29, 0.3);
  font-family: var(--body);
  color: var(--ink);
}
.mailpanel .mhead {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 9px 12px 7px;
  border-bottom: 1px solid var(--rule);
}
.mailpanel .mhead b {
  font: 22px/1 var(--disp);
}
.mailpanel .mbody {
  overflow-y: auto;
  padding: 2px 12px 10px;
}
.mailpanel h5 {
  margin: 10px 0 2px;
  font: 600 12px var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.mrow {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 6px 0;
  border-bottom: 1px dotted var(--light);
}
.mrow .acav,
.mpop .acav {
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
}
.mrow .mtxt {
  flex: 1;
  min-width: 0;
  font-size: 14.5px;
  line-height: 1.25;
}
.mrow .mtxt .linkish {
  display: block;
  text-align: left;
}
.mrow .rq,
.mpop .rq {
  display: flex;
  gap: 5px;
  flex: none;
}
.mempty,
.mnote {
  padding: 8px 0 2px;
  font-size: 14px;
  font-style: italic;
  color: var(--muted);
}
.mnote {
  border-top: 1px dotted var(--light);
  margin-top: 6px;
}
.mailpops {
  position: fixed;
  left: 12px;
  bottom: 12px;
  z-index: 134;
  display: grid;
  gap: 8px;
  width: min(340px, calc(100vw - 24px));
}
.mpop {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 10px 10px 12px;
  background: var(--paper3);
  border: 1.5px solid var(--ink);
  border-left: 5px solid var(--good);
  box-shadow: 0 8px 22px rgba(59, 45, 29, 0.32);
  font-size: 15px;
  animation: mpopIn 0.25s ease-out;
}
.mpop .mtxt {
  flex: 1;
  min-width: 0;
}
.mpop .rq {
  margin-top: 7px;
}
.mpop .xbtn {
  flex: none;
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 15px;
  cursor: pointer;
}
@keyframes mpopIn {
  from {
    transform: translateY(12px);
    opacity: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .mpop {
    animation: none;
  }
}
.fwho {
  flex: 1;
  min-width: 0;
}
.fwho .linkish {
  display: block;
  text-align: left;
}
.fst {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12.5px;
  color: var(--muted);
}
.fdot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #a89a80;
  flex: none;
}
.fst.on .fdot {
  background: var(--good);
}
.fst.away .fdot {
  background: var(--gold, #b8862f);
}
.fst.busy .fdot {
  background: var(--accent);
}
.fst.on,
.fst.busy {
  color: var(--ink);
}
.ffull {
  color: var(--muted);
  font-style: italic;
  align-self: center;
}

/* mail: friends' new stamps */
.mrow .mnstamp,
.mpop .mnstamp {
  flex: none;
  display: grid;
  place-items: center;
}
.mrow.mnew .mtxt {
  font-weight: 600;
}
.mpop.ink-gold,
.mpop.ink-legend {
  border-left-color: #a87b1f;
}
.mpop.ink-red {
  border-left-color: #a8392a;
}
