/* Shared compact player world selector. */
#words.tw-world-selector, #tw-world-popup.tw-world-selector {
  box-sizing: border-box;
  width: 264px;
  max-width: calc(100vw - 24px);
  max-height: 60vh;
  overflow: auto;
  padding: 10px;
  border: 2px solid #804000;
  border-radius: 4px;
  background: #efe6c9;
  color: #000;
  box-shadow: 0 3px 8px #0005;
  font: 12px Verdana, Arial, sans-serif;
  z-index: 10000;
}
#words.tw-world-selector { left: min(821px, max(12px, calc(100vw - 276px))); }
#tw-world-popup.tw-world-selector { position: fixed; bottom: 34px; right: 3%; }
#tw-world-popup[hidden] { display: none; }
.tw-world-selector .tw-world-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 4px; }
.tw-world-selector .tw-world-choice { min-width: 0; text-align: left; }
.tw-world-selector .tw-world-button {
  box-sizing: border-box; display: block; width: 100%; min-width: 0;
  margin: 0; padding: 1px 6px; border: 1px solid #523112; border-radius: 3px;
  color: #804000; font: bold 13px Verdana, Arial, sans-serif;
  text-align: center; text-transform: uppercase; text-decoration: none;
  overflow-wrap: anywhere; line-height: 16px;
}
.tw-world-selector .tw-world-button.green { background: #80aa35 url('../graphic/layout/button_green.jpg') repeat-x center top; text-shadow: 0 1px 0 #7fc734; }
.tw-world-selector a.tw-world-button:hover { background-position: center -30px; }
.tw-world-selector .tw-world-button[aria-current] { cursor: default; }
.tw-world-selector small { display: block; margin-top: 1px; font-size: 10px; overflow-wrap: anywhere; }
.tw-world-selector .tw-world-close-row { margin-top: 4px; text-align: center; }
.tw-world-selector .tw-world-close {
  display: inline; border: 0; padding: 0; background: transparent;
  color: #804000; font: bold 14px Georgia, 'Times New Roman', serif;
  cursor: pointer; text-decoration: none;
}
.tw-world-selector a:focus-visible, .tw-world-selector button:focus-visible { outline: 2px solid #804000; outline-offset: 2px; }
.tw-world-selector .tw-world-empty { grid-column: 1 / -1; margin: 0; }
