/* Sảnh (lobby) and the Create World dialog. */
.lobby {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  overflow: auto;
  padding: 24px 16px 12px;
}
.lobby__inner {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 520px) minmax(0, 460px);
  gap: 28px;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
}
.lobby__main,
.lobby__side {
  display: grid;
  gap: 16px;
  min-width: 0;
}
@media (max-width: 1000px) {
  .lobby__inner {
    grid-template-columns: minmax(0, 520px);
    align-items: start;
  }
}
.plaque {
  position: relative;
  display: grid;
  justify-items: center;
  padding: 18px 24px 16px;
  border: 1px solid var(--then-900);
  border-radius: 10px;
  overflow: hidden;
  text-align: center;
  box-shadow: inset 0 0 0 4px var(--son-600), inset 0 0 0 5px var(--vang-400), inset 0 0 0 8px var(--son-600), inset 0 0 0 9px rgba(239, 200, 112, 0.5), var(--shadow);
}
.plaque__drum {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 300px;
  height: 300px;
  transform: translate(-50%, -50%);
  color: var(--vang-300);
  opacity: 0.12;
  pointer-events: none;
}
.plaque__cloud {
  position: absolute;
  bottom: 10px;
  width: 64px;
  color: var(--vang-400);
  opacity: 0.8;
}
.plaque__cloud--l {
  left: 16px;
}
.plaque__cloud--r {
  right: 16px;
  transform: scaleX(-1);
}
.plaque__title {
  position: relative;
  margin: 0;
  color: var(--vang-300);
  font-family: var(--font-display);
  font-size: clamp(46px, 9vw, 72px);
  font-weight: 400;
  line-height: 1.12;
  text-shadow: 0 2px 0 var(--son-700), 0 0 18px rgba(237, 184, 82, 0.25);
}
.plaque__year {
  position: relative;
  margin-top: -4px;
  color: var(--vang-200);
  font-family: var(--font-title);
  font-size: clamp(22px, 4vw, 30px);
  font-weight: 700;
  letter-spacing: 0.32em;
  padding-left: 0.32em;
}
.plaque__sub {
  position: relative;
  margin-top: 4px;
  color: var(--paper-100);
  font-size: 13px;
  letter-spacing: 0.04em;
}
.lobby-card {
  position: relative;
  display: grid;
  gap: 14px;
  padding: 18px 18px 18px;
}
.field {
  display: grid;
  gap: 5px;
}
.field__label {
  color: var(--text-2);
  font-size: 12.5px;
  font-weight: 700;
}
.field__hint {
  color: var(--text-muted);
  font-size: 12px;
}
.field__input {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--paper-400);
  border-radius: 7px;
  background: var(--paper-50);
  color: var(--text-2);
  box-shadow: inset 0 1px 2px rgba(36, 27, 18, 0.12);
}
.field__input input {
  flex: 1;
  min-width: 0;
  min-height: 42px;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 15px;
  outline: none;
}
.field__input:focus-within {
  outline: 2px solid var(--focus-paper);
  outline-offset: 1px;
}
.field__row {
  display: flex;
  gap: 8px;
}
.field__row .btn {
  min-height: 44px;
}
.lobby-actions {
  display: grid;
  gap: 10px;
}
.big-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 64px;
  padding: 10px 16px;
  border: 1px solid var(--paper-400);
  border-radius: 9px;
  background: linear-gradient(180deg, var(--paper-50), var(--paper-200));
  color: var(--text);
  text-decoration: none;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset, 0 2px 4px rgba(36, 27, 18, 0.18);
}
.big-btn .glyph {
  color: var(--text-title);
}
.big-btn span {
  display: grid;
  gap: 1px;
  min-width: 0;
}
.big-btn b {
  font-family: var(--font-title);
  font-size: 19px;
  font-weight: 700;
}
.big-btn small {
  color: var(--text-muted);
  font-size: 12.5px;
}
.big-btn--primary {
  border-color: var(--then-900);
  background: var(--lacquer-red);
  color: var(--paper-50);
  box-shadow: inset 0 0 0 1px var(--vang-500), inset 0 0 0 3px var(--son-600), inset 0 0 0 4px rgba(239, 200, 112, 0.45), 0 3px 8px rgba(9, 8, 6, 0.35);
}
.big-btn--primary .glyph,
.big-btn--primary b {
  color: var(--vang-200);
}
.big-btn--primary small {
  color: var(--paper-200);
}
.lobby-h {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--text-title);
  font-family: var(--font-title);
  font-size: 19px;
}
.world-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}
.world-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  padding: 6px 2px;
  border-bottom: 1px solid var(--paper-300);
}
.world-row__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--paper-50);
  color: var(--text-title);
  box-shadow: inset 0 0 0 1px var(--paper-400);
}
.world-row__text {
  flex: 1;
  min-width: 0;
  display: grid;
  line-height: 1.25;
}
.world-row__text b {
  font-size: 14.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.world-row__text small {
  color: var(--text-muted);
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.world-row__stats {
  display: grid;
  justify-items: end;
  color: var(--text-2);
  font-size: 12px;
  line-height: 1.3;
  white-space: nowrap;
}
.world-row__stats .coin {
  display: inline-block;
  vertical-align: -2px;
}
.world-row .btn {
  min-height: 40px;
  min-width: 56px;
}
.lobby__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4px 10px;
  padding-top: 12px;
}
.lobby__link {
  color: var(--paper-50);
  background: rgba(9, 8, 6, 0.45);
  border-color: transparent;
}
.lobby__ver {
  color: rgba(246, 232, 197, 0.9);
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 4px;
  background: rgba(9, 8, 6, 0.4);
}
.create-modal {
  width: min(520px, 100%);
}
.create-facts {
  display: grid;
  gap: 6px;
  padding: 10px 12px;
  border-radius: 7px;
  background: rgba(213, 183, 143, 0.35);
  color: var(--text-2);
  font-size: 12.5px;
}
.create-facts span {
  display: flex;
  align-items: center;
  gap: 8px;
}
:root[data-input='touch'] .world-row .btn,
:root[data-input='touch'] .lobby__link {
  min-height: 44px;
}
.world-row__text small {
  white-space: normal;
}
@media (min-width: 1600px) and (min-height: 960px) {
  .lobby__inner {
    zoom: 1.22;
  }
}
@media (max-height: 520px) {
  .plaque {
    padding: 10px 20px 10px;
  }
  .plaque__title {
    font-size: 40px;
  }
  .plaque__year {
    font-size: 20px;
  }
  .lobby {
    padding-top: 12px;
  }
}
