/* Population: put the countries in order. Builds on ../ww.css. */
.pop-wrap { max-width: 640px; }
.pop-end { margin: 0.3rem 0; font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.02em; opacity: 0.7; }
.pop-end--bottom { margin-top: 0.4rem; }
.pop-list { margin: 0; padding: 0; list-style: none; border-top: 2px solid #330000; }
.pop-row { display: flex; align-items: center; gap: 0.6rem; padding: 0.3rem 0.4rem 0.3rem 0; background: #EDEAE3; border-bottom: 1px solid rgba(51, 0, 0, 0.3); font-weight: 800; user-select: none; }
.pop-row .rk { flex: none; width: 1.7rem; text-align: right; font-size: 1.15rem; font-weight: 900; font-variant-numeric: tabular-nums; }
.pop-row .handle { flex: none; width: 2.2rem; height: 2.4rem; display: grid; place-items: center; font-size: 1.5rem; line-height: 1; cursor: grab; touch-action: none; border-radius: 0; opacity: 0.6; }
.pop-row img { flex: none; width: 36px; height: 27px; object-fit: contain; background: #fff; border: 1px solid rgba(51, 0, 0, 0.4); }
.pop-row .nm { flex: 1 1 auto; min-width: 0; font-size: 1.05rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pop-row .mv { flex: none; display: flex; gap: 0.25rem; }
.pop-row .mv button { width: 2.2rem; height: 2.2rem; padding: 0; font: 900 1.1rem/1 "Archivo", Arial, sans-serif; color: #330000; background: transparent; border: 2px solid #330000; border-radius: 0; cursor: pointer; }
.pop-row .mv button:disabled { opacity: 0.25; cursor: default; }
.pop-row .mv button:focus-visible { background: #330000; color: #EDEAE3; }
@media (hover: hover) { .pop-row .mv button:hover:not(:disabled) { background: #330000; color: #EDEAE3; } }
.pop-row.is-dragging { background: #fff; box-shadow: 0 4px 14px rgba(51, 0, 0, 0.35); position: relative; z-index: 2; cursor: grabbing; }
.pop-row.is-dragging .handle { cursor: grabbing; opacity: 1; }

/* result lines add the population and where the player had put the country */
.ww-review .pop-figure { margin-left: 0.5rem; font-weight: 700; opacity: 0.7; }
.ww-review .you { margin-left: auto; flex: none; font-size: 0.8rem; font-weight: 800; color: #E72604; white-space: nowrap; }
.ww-review .tx { flex: 0 1 auto; }

@media (max-width: 640px) {
  .pop-row { gap: 0.4rem; padding-block: 0.2rem; }
  .pop-row .rk { width: 1.4rem; font-size: 1rem; }
  .pop-row .handle { width: 1.8rem; height: 2.2rem; }
  .pop-row .nm { font-size: 0.98rem; }
  .pop-row .mv button { width: 2.1rem; height: 2.1rem; }
  .ww-review .pop-figure { margin-left: 0.35rem; font-size: 0.78rem; }
  .ww-review .tx { flex-wrap: nowrap; white-space: nowrap; }
  .ww-review li { gap: 0.45rem; }
}
