:root {
  color-scheme: dark;
  --ink: #efe6d4;
  --muted: #a6b2aa;
  --line: #c6c0a425;
  --sage: #b3cfb6;
  --panel: #142326ed;
  --gold: #e7bd82;
  font-family: Arial, Helvetica, sans-serif;
}
.world-actions {
  position: absolute;
  top: 112px;
  left: 50%;
  transform: translateX(-50%);
  width: min(530px, calc(100vw - 32px));
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  justify-content: center;
  pointer-events: auto;
}
.world-actions > span {
  width: 100%;
  text-align: center;
  font-size: 10px;
  color: var(--sage);
  margin-bottom: 3px;
}
.world-actions button,
.social-actions button,
.guest-list button,
.quest-card button,
#dmForm button {
  background: #203b3b;
  border: 1px solid #b3cfb640;
  border-radius: 8px;
  padding: 11px 12px;
  font-size: 11px;
}
.social-actions {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin: 12px 0;
}
.social-actions button[aria-pressed="true"] {
  background: var(--sage);
  color: #142326;
}
.social-modal {
  width: min(540px, calc(100vw - 28px));
}
#personStatus {
  margin: 12px 0;
}
#dmMessages {
  height: 180px;
  overflow: auto;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  font-size: 12px;
  overflow-wrap: anywhere;
}
#dmMessages p {
  margin: 0 0 12px;
  line-height: 1.5;
}
#dmMessages strong {
  display: block;
  color: var(--gold);
  font-size: 11px;
}
#dmForm {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}
#dmForm input {
  margin: 0;
  flex: 1;
}
#dmForm button {
  min-width: 44px;
  font-size: 20px;
}
.quest-card {
  border-top: 1px solid var(--line);
  padding: 14px 0;
}
.quest-card h3 {
  font-size: 15px;
  margin: 0 0 8px;
  color: var(--gold);
}
.quest-card p {
  font-size: 12px;
  margin-bottom: 8px;
}
.quest-card progress {
  width: calc(100% - 65px);
  accent-color: var(--sage);
}
.quest-card > span {
  padding-left: 10px;
  font-size: 11px;
}
.quest-card button {
  display: block;
  width: 100%;
  margin-top: 10px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: #101923;
  color: var(--ink);
  overflow: hidden;
}
button,
input,
textarea {
  font: inherit;
}
button,
a,
input,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: default;
  opacity: 0.48;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}
[hidden] {
  display: none !important;
}
button {
  color: inherit;
}
button:hover:not(:disabled) {
  filter: brightness(1.15);
}
button,
input,
textarea {
  transition:
    background 0.2s,
    opacity 0.2s;
}
input,
textarea {
  color: var(--ink);
  background: #0c181a65;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px;
  min-width: 0;
}
input::placeholder,
textarea::placeholder {
  color: #96a49d;
}
button {
  border: 0;
}
h1,
h2,
p {
  margin-top: 0;
}
#scene,
.vignette {
  position: fixed;
  inset: 0;
}
#scene canvas {
  display: block;
  touch-action: none;
  width: 100%;
  height: 100%;
}
.vignette {
  pointer-events: none;
  background:
    linear-gradient(#07151880, transparent 27%, transparent 65%, #071518a8),
    radial-gradient(ellipse, transparent 42%, #07151855);
}
.topbar {
  position: fixed;
  z-index: 2;
  top: 0;
  left: 0;
  right: 0;
  height: 98px;
  padding: 24px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #e9d5b015;
  background: linear-gradient(#0a181bbb, #0a181b22);
}
.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  text-decoration: none;
  color: var(--ink);
  font-size: 23px;
  font-weight: 700;
  letter-spacing: 4px;
}
.brand-mark {
  font: 46px Georgia;
  color: var(--sage);
  line-height: 1;
  transform: rotate(-15deg);
}
.brand small {
  display: block;
  font-size: 8px;
  letter-spacing: 2.7px;
  margin-top: 7px;
  color: #b0b9ac;
}
.edition {
  font-size: 10px;
  letter-spacing: 1px;
  border: 1px solid #c6c0a455;
  border-radius: 5px;
  padding: 5px;
  align-self: flex-start;
  margin-top: 4px;
}
.top-status {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  color: #d1d6ca;
}
.separator {
  margin: 0 9px;
  opacity: 0.4;
}
.live-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #b7db9f;
  box-shadow: 0 0 10px #b7db9f55;
}
.wallet {
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: #16272b9c;
  padding: 10px 17px;
}
.wallet strong {
  font-size: 17px;
  font-weight: 500;
}
.wallet > span:last-child {
  font-size: 11px;
  color: var(--muted);
}
.coin {
  font-size: 24px;
  color: var(--gold);
  line-height: 1;
}
#ui {
  position: fixed;
  inset: 0;
  pointer-events: none;
}
.place-caption {
  position: absolute;
  top: 131px;
  left: 36px;
  text-shadow: 0 2px 18px #0009;
}
.eyebrow {
  display: block;
  font-size: 9px;
  letter-spacing: 2px;
  font-weight: 600;
  color: var(--sage);
}
.place-caption h1 {
  font:
    36px Georgia,
    serif;
  margin: 11px 0;
}
.place-caption p {
  font-size: 12px;
  color: #ccd4c7;
  letter-spacing: 0.3px;
}
.room-badge {
  position: absolute;
  right: 36px;
  top: 126px;
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 11px;
  letter-spacing: 0.5px;
}
.room-badge > span:last-child {
  border-left: 1px solid var(--line);
  padding-left: 12px;
  color: var(--muted);
}
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 15px;
  box-shadow: 0 16px 55px #0003;
  backdrop-filter: blur(20px);
  pointer-events: auto;
}
.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.panel h2 {
  font:
    24px Georgia,
    serif;
  margin: 8px 0 0;
}
.icon-button {
  display: grid;
  place-items: center;
  background: #b3cfb60a;
  border: 1px solid var(--line);
  border-radius: 50%;
  width: 28px;
  height: 28px;
  font-size: 19px;
  font-weight: 300;
  color: #b8c2b5;
  flex-shrink: 0;
}
.chat-panel {
  position: absolute;
  bottom: 105px;
  left: 28px;
  width: 322px;
  padding: 20px 18px 13px;
}
.chat-panel h2 {
  font-size: 21px;
}
.chat-dot {
  font: 8px Arial;
  color: var(--sage);
  vertical-align: middle;
  margin-left: 8px;
}
#messages {
  height: 184px;
  overflow: auto;
  overscroll-behavior: contain;
  margin: 18px 0 10px;
  scrollbar-width: thin;
  scrollbar-color: #627166 transparent;
  font-size: 12px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}
#messages p {
  margin: 0 0 12px;
}
#messages .system {
  font-size: 11px;
  color: #96a69d;
  font-style: italic;
  padding-left: 10px;
  border-left: 1px solid #b3cfb640;
}
#messages .message-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 3px;
}
#messages strong {
  font-size: 11px;
  color: var(--gold);
  font-weight: 500;
}
#messages time {
  font-size: 9px;
  color: #82968e;
}
.message-body {
  color: #e1e3d7;
}
.chat-empty {
  color: #afbcae;
  padding: 10px 0;
}
.chat-empty b {
  font: 19px Georgia;
  display: block;
  margin-bottom: 8px;
  color: #e1ddca;
}
#chatForm {
  display: flex;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 4px;
  background: #0d1d20;
}
#msg {
  width: 100%;
  border: 0;
  background: transparent;
  padding: 9px;
  font-size: 12px;
}
.send-button {
  width: 34px;
  flex-shrink: 0;
  border-radius: 6px;
  background: var(--sage);
  color: #1a322e;
  font-size: 22px;
}
.chat-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  font-size: 9px;
  color: #8e9f94;
}
.text-button {
  font-size: 9px;
  background: none;
  padding: 2px;
  color: #a9b8ad;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.menu-panel {
  position: absolute;
  right: 28px;
  top: 177px;
  width: 290px;
  padding: 23px 20px 15px;
}
.menu-description {
  font-size: 11px;
  color: #b0bbaf;
  margin: 14px 0 17px;
}
.drink {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  background: transparent;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}
.drink-icon {
  display: grid;
  place-items: center;
  width: 39px;
  height: 43px;
  font-size: 24px;
  background: #c99a6014;
  border-radius: 10px;
  color: var(--gold);
  flex-shrink: 0;
}
.drink-copy {
  flex: 1;
}
.drink-copy b {
  display: block;
  font-size: 12px;
  font-weight: 500;
}
.drink-copy small {
  display: block;
  margin-top: 6px;
  color: #9ead9f;
  font-size: 9px;
}
.drink-price {
  font-size: 13px;
  color: var(--gold);
  white-space: nowrap;
}
.menu-note {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 9px;
  color: var(--muted);
  margin: 17px 0;
}
.menu-note > span {
  border: 1px solid #a3c7a24a;
  border-radius: 4px;
  padding: 4px;
  color: var(--sage);
  font-size: 10px;
}
.bonus {
  display: flex;
  justify-content: space-between;
  width: 100%;
  padding: 13px 11px;
  background: #afc6a212;
  border: 1px solid #afc6a230;
  border-radius: 8px;
  color: var(--sage);
  font-size: 10px;
}
.bonus strong {
  font-size: 13px;
  font-weight: 500;
}
.virtual-note {
  font-size: 8px;
  color: #91a092;
  text-align: center;
  margin: 13px 0 0;
}
.dock {
  position: absolute;
  bottom: 27px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 3px;
  background: #122326eb;
  border: 1px solid #c6c0a438;
  border-radius: 12px;
  padding: 9px 10px;
  pointer-events: auto;
  white-space: nowrap;
  box-shadow: 0 8px 32px #0003;
  backdrop-filter: blur(18px);
}
.dock button {
  padding: 9px 12px;
  font-size: 11px;
  background: transparent;
  border-radius: 7px;
  color: #d6ddce;
}
.dock button[aria-expanded="true"] {
  background: #c9dfb917;
}
.dock button > span:first-child {
  font-size: 17px;
  vertical-align: middle;
  margin-right: 5px;
  color: var(--sage);
}
.dock-divider {
  height: 22px;
  width: 1px;
  background: var(--line);
  margin: 0 5px;
}
#volume {
  padding: 0;
  width: 65px;
  height: 16px;
  accent-color: var(--sage);
  margin: 0 9px 0 0;
}
.dock .help-button {
  border: 1px solid var(--line);
  border-radius: 50%;
  width: 25px;
  height: 25px;
  padding: 0;
  color: var(--sage);
}
.interaction {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 111px;
  pointer-events: auto;
}
.interaction-button {
  background: #122326ce;
  border: 1px solid #d4dbc22e;
  border-radius: 8px;
  padding: 9px 12px;
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 11px;
  white-space: nowrap;
  backdrop-filter: blur(10px);
}
kbd {
  display: inline-grid;
  place-items: center;
  font: 10px Arial;
  border: 1px solid #c3c9b950;
  border-radius: 4px;
  padding: 3px 5px;
  color: #e7e6d4;
  min-width: 20px;
}
.controls-hint {
  position: absolute;
  bottom: 29px;
  left: 30px;
  font-size: 9px;
  color: #c3cbbd;
  margin: 0;
  line-height: 1.8;
  max-width: 210px;
}
.controls-hint kbd {
  font-size: 8px;
  min-width: 15px;
  padding: 0 3px;
  margin-right: 2px;
}
.controls-hint span {
  margin: 0 5px;
}
#mobile {
  display: none;
}
#login {
  position: fixed;
  inset: 98px 0 0;
  pointer-events: none;
  background: linear-gradient(90deg, #0a1b23d9, transparent 78%);
}
.welcome-card {
  position: absolute;
  left: 8vw;
  top: 50%;
  transform: translateY(-54%);
  width: 355px;
  pointer-events: auto;
}
.welcome-card > .eyebrow {
  font-size: 8px;
  letter-spacing: 1.5px;
  display: flex;
  gap: 10px;
  align-items: center;
}
.welcome-card h1 {
  font:
    64px/1.06 Georgia,
    serif;
  letter-spacing: -2px;
  margin: 25px 0;
}
.welcome-card h1 em {
  font-weight: 400;
  color: #cbd9b8;
}
.welcome-card > p {
  font-size: 13px;
  line-height: 1.8;
  color: #bcc6b7;
  margin-bottom: 27px;
}
label {
  display: block;
  font-size: 11px;
  color: #c3ccbe;
  margin-bottom: 9px;
}
#loginForm {
  display: grid;
  gap: 0;
}
#nick {
  width: 100%;
  background: #182d32c9;
  border-color: #c6c0a440;
  font-size: 14px;
  padding: 15px 16px;
}
.primary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #c7d8b4;
  color: #19312c;
  padding: 16px 19px;
  width: 100%;
  border-radius: 8px;
  font-size: 13px;
  margin-top: 12px;
}
.primary > span {
  font-size: 22px;
}
.welcome-footer {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 10px;
  color: #aebcab;
  border-top: 1px solid var(--line);
  padding-top: 19px;
  margin-top: 23px;
}
.welcome-footer i {
  color: var(--gold);
  font-size: 19px;
}
.welcome-card #loginError {
  color: #e9bf95;
  font-size: 11px;
  margin: 8px 0;
  min-height: 14px;
}
.welcome-location {
  position: absolute;
  right: 5vw;
  bottom: 46px;
  text-align: right;
}
.welcome-location p {
  font: 24px Georgia;
  margin: 10px 0;
  color: #e9e2cc;
}
.welcome-location .eyebrow {
  font-size: 9px;
  color: #d0c4a8;
}
#toast {
  pointer-events: none;
  position: fixed;
  z-index: 30;
  top: 110px;
  left: 50%;
  transform: translateX(-50%);
  padding: 13px 22px;
  border: 1px solid #b5c6a758;
  border-radius: 10px;
  background: #18312ff5;
  box-shadow: 0 8px 40px #0005;
  font-size: 13px;
  max-width: 90vw;
  text-align: center;
}
.modal {
  color: var(--ink);
  width: min(460px, calc(100vw - 28px));
  padding: 32px;
  max-height: 85dvh;
}
.modal::backdrop {
  background: #061619a6;
  backdrop-filter: blur(5px);
}
.modal h2 {
  margin-bottom: 20px;
}
.modal p {
  font-size: 13px;
  line-height: 1.9;
}
.modal input,
.modal textarea {
  width: 100%;
  margin-bottom: 16px;
}
.modal-close {
  position: absolute;
  right: 16px;
  top: 16px;
}
.muted {
  color: var(--muted);
}
.fatal {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: #15272b;
  padding: 12vh 10vw;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}
.fatal h1 {
  font: 36px Georgia;
}
.fatal p {
  max-width: 500px;
  line-height: 1.7;
}
.fatal button {
  max-width: 240px;
}
@media (max-width: 1150px) {
  .controls-hint {
    display: none;
  }
  .place-caption h1 {
    font-size: 29px;
  }
  .chat-panel {
    width: 280px;
  }
  .menu-panel {
    width: 260px;
  }
  .interaction {
    bottom: 110px;
  }
  .interaction-button {
    font-size: 10px;
  }
  .interaction-button:disabled {
    visibility: hidden;
  }
}
@media (max-height: 760px) and (min-width: 761px) {
  .menu-panel {
    top: 145px;
    padding: 16px;
    width: 260px;
  }
  .drink {
    padding: 10px 0;
  }
  .menu-description {
    margin: 10px 0;
  }
  .menu-note {
    margin: 10px 0;
  }
  .chat-panel {
    bottom: 102px;
  }
  #messages {
    height: 138px;
  }
  .place-caption {
    top: 119px;
  }
  .room-badge {
    top: 116px;
  }
  .welcome-card h1 {
    font-size: 51px;
    margin: 15px 0;
  }
  .welcome-card > p {
    margin-bottom: 15px;
  }
  .welcome-footer {
    margin-top: 12px;
  }
  .interaction {
    bottom: 100px;
  }
}
@media (max-width: 760px) {
  .topbar {
    height: 78px;
    padding: 17px 18px;
  }
  .brand {
    font-size: 18px;
    gap: 8px;
    letter-spacing: 2px;
  }
  .brand-mark {
    font-size: 34px;
  }
  .brand small {
    font-size: 6px;
    letter-spacing: 1.4px;
  }
  .edition {
    font-size: 8px;
    padding: 3px;
    margin-top: 2px;
  }
  .top-status {
    position: absolute;
    top: 87px;
    left: 19px;
    font-size: 10px;
  }
  .top-status .separator {
    margin: 0 1px;
  }
  .wallet {
    padding: 7px 11px;
    gap: 6px;
  }
  .wallet strong {
    font-size: 14px;
  }
  .wallet > span:last-child {
    display: none;
  }
  .coin {
    font-size: 19px;
  }
  .place-caption {
    left: 19px;
    top: 124px;
  }
  .place-caption .eyebrow {
    font-size: 7px;
  }
  .place-caption h1 {
    font-size: 27px;
    margin: 9px 0;
  }
  .place-caption p {
    font-size: 10px;
  }
  .room-badge {
    top: 87px;
    right: 18px;
    font-size: 9px;
    gap: 7px;
  }
  .room-badge > span:last-child {
    display: none;
  }
  .chat-panel,
  .menu-panel {
    position: absolute;
    left: 12px;
    right: 12px;
    top: auto;
    bottom: 207px;
    width: auto;
    max-height: calc(100dvh - 313px);
    overflow: auto;
    padding: 17px;
    z-index: 4;
  }
  .chat-panel #messages {
    height: clamp(80px, 21dvh, 180px);
  }
  .menu-panel .drink {
    padding: 11px 0;
  }
  .menu-description {
    margin: 10px 0;
  }
  .menu-note {
    margin: 10px 0;
  }
  .menu-panel h2 {
    font-size: 23px;
  }
  .menu-panel .drink-icon {
    height: 32px;
    width: 36px;
    font-size: 21px;
  }
  .virtual-note {
    margin-top: 9px;
  }
  .dock {
    bottom: max(15px, env(safe-area-inset-bottom));
    padding: 8px;
    max-width: calc(100vw - 24px);
    gap: 0;
  }
  .dock button {
    padding: 8px;
    font-size: 10px;
  }
  .dock button > span:first-child {
    margin-right: 3px;
  }
  .dock-divider {
    margin: 0 3px;
  }
  .dock #soundLabel {
    font-size: 0;
  }
  .dock #soundLabel:after {
    content: "Музыка";
    font-size: 10px;
  }
  .dock #volume {
    width: 43px;
    margin-right: 7px;
  }
  .dock .help-button {
    width: 23px;
    height: 23px;
  }
  .interaction {
    left: auto;
    right: 18px;
    bottom: 116px;
    transform: none;
    max-width: calc(100vw - 176px);
  }
  .interaction-button {
    white-space: normal;
    text-align: left;
    font-size: 10px;
    padding: 10px;
    line-height: 1.5;
  }
  .interaction kbd {
    display: none;
  }
  #mobile {
    display: grid;
    position: absolute;
    bottom: 89px;
    left: 19px;
    grid-template-columns: repeat(3, 40px);
    grid-template-rows: repeat(2, 40px);
    gap: 5px;
    pointer-events: auto;
  }
  #mobile button {
    border: 1px solid #bfcdb347;
    background: #183032cc;
    color: #d6e2cc;
    border-radius: 10px;
    font-size: 21px;
    touch-action: none;
    user-select: none;
  }
  #mobile button:first-child {
    grid-column: 2;
  }
  #mobile button:nth-child(2) {
    grid-column: 1;
    grid-row: 2;
  }
  #mobile button:nth-child(3) {
    grid-column: 2;
    grid-row: 2;
  }
  #mobile button:nth-child(4) {
    grid-column: 3;
    grid-row: 2;
  }
  #mobile button:active {
    background: #638477;
  }
  #login {
    inset: 78px 0 0;
    background: linear-gradient(90deg, #0b2028e8, #0b202856);
  }
  .welcome-card {
    left: 25px;
    top: 50%;
    width: min(340px, calc(100vw - 50px));
    transform: translateY(-52%);
  }
  .welcome-card h1 {
    font-size: 54px;
  }
  .welcome-card > p {
    font-size: 12px;
  }
  .welcome-card > .eyebrow {
    font-size: 7px;
    letter-spacing: 1px;
  }
  .welcome-location {
    display: none;
  }
  .welcome-footer {
    gap: 13px;
    font-size: 9px;
  }
  #toast {
    top: 111px;
    font-size: 12px;
    width: max-content;
    max-width: calc(100vw - 30px);
  }
  .modal {
    padding: 27px 22px;
  }
  .modal p {
    font-size: 12px;
  }
}
@media (max-height: 540px) {
  .place-caption {
    display: none;
  }
  .welcome-card {
    top: 15px;
    transform: none;
    width: 330px;
  }
  .welcome-card h1 {
    font-size: 36px;
    margin: 10px 0;
  }
  .welcome-card > p,
  .welcome-footer {
    display: none;
  }
  .welcome-card #nick {
    padding: 10px;
  }
  .welcome-card .primary {
    padding: 10px;
  }
  .chat-panel,
  .menu-panel {
    bottom: 80px;
    max-height: calc(100dvh - 185px);
  }
  .interaction {
    bottom: 94px;
  }
  .menu-panel {
    left: auto;
    width: 270px;
  }
  .chat-panel {
    width: 280px;
    right: auto;
  }
  .topbar {
    height: 68px;
  }
  .top-status,
  .room-badge {
    top: 77px;
  }
  #login {
    top: 68px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
/* Guest profiles and the first Moscow meeting place. */
select {
  font: inherit;
  color: var(--ink);
  background: #182d32;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  min-width: 0;
  width: 100%;
  color-scheme: dark;
}
select:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}
.people-button {
  font: inherit;
  color: var(--ink);
  padding: 0 0 2px;
  background: transparent;
  border-bottom: 1px dashed #c6c0a470;
}
.city-label {
  margin-top: 16px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
}
.city-label span {
  font-size: 8px;
  color: var(--muted);
}
.profile-note {
  font-size: 9px !important;
  line-height: 1.6 !important;
  color: var(--muted);
  margin: 8px 0 12px;
}
.profile-edit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #b3cfb60d;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  text-align: left;
  font-size: 11px;
}
.profile-edit small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 9px;
}
.profile-edit > span:last-child {
  font-size: 10px;
  color: var(--sage);
}
#customCity {
  margin-top: 8px;
}
.welcome-card {
  width: 370px;
}
.welcome-card h1 {
  font-size: 54px;
  margin: 18px 0;
}
.welcome-card > p {
  margin-bottom: 16px;
}
.welcome-footer {
  margin-top: 12px;
  padding-top: 13px;
}
.profile-modal {
  width: min(630px, calc(100vw - 24px));
}
.profile-modal h2 {
  font-size: 25px;
  max-width: 410px;
}
.profile-layout {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 25px;
  align-items: center;
}
#avatarPreview {
  height: 330px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: radial-gradient(ellipse at 50% 35%, #68857b66, #12232622);
  overflow: hidden;
}
#avatarPreview canvas {
  display: block;
}
.profile-options label,
.option-label {
  display: block;
  margin-top: 15px;
  font-size: 11px;
  color: #c3ccbe;
  margin-bottom: 9px;
}
.profile-options select {
  font-size: 12px;
}
.turn-label {
  text-align: center;
  margin: 11px 0 5px;
  font-size: 9px;
  color: var(--muted);
}
#avatarTurn {
  width: 100%;
  padding: 0;
  accent-color: var(--sage);
}
#skinChoices {
  display: flex;
  gap: 10px;
  margin: 13px 0 20px;
}
.skin-choice {
  width: 31px;
  height: 31px;
  border-radius: 50%;
  border: 3px solid transparent;
  outline: 1px solid #b3cfb644;
}
.skin-choice[aria-pressed="true"] {
  outline: 2px solid var(--sage);
  border-color: #142326;
}
.skin-0 {
  background: #e8bd9c;
}
.skin-1 {
  background: #c99069;
}
.skin-2 {
  background: #a36c4e;
}
.skin-3 {
  background: #744d3c;
}
.guest-list {
  list-style: none;
  margin: 18px 0;
  padding: 0;
  max-height: 38dvh;
  overflow: auto;
}
.guest-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}
.guest-list strong {
  font-weight: 500;
  overflow-wrap: anywhere;
}
.guest-list span {
  font-size: 11px;
  color: var(--sage);
  overflow-wrap: anywhere;
  text-align: right;
}
@media (max-width: 760px) {
  #login {
    overflow-y: auto;
    pointer-events: auto;
  }
  .welcome-card {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    margin: 38px 25px 22px;
    width: calc(100vw - 50px);
    max-width: 370px;
  }
  .welcome-card h1 {
    font-size: 43px;
    margin: 13px 0;
  }
  .welcome-card > p {
    font-size: 11px;
    margin-bottom: 13px;
  }
  .welcome-card > .eyebrow {
    font-size: 6px;
  }
  .welcome-footer {
    font-size: 8px;
  }
  .profile-layout {
    grid-template-columns: 1fr 1fr;
    gap: 13px;
  }
  #avatarPreview {
    height: 250px;
  }
  .profile-modal {
    padding: 24px 18px;
  }
  .profile-modal h2 {
    font-size: 21px;
    padding-right: 14px;
  }
  .profile-options select {
    padding: 9px 7px;
    font-size: 11px;
  }
  .profile-options .primary {
    font-size: 11px;
    padding: 12px;
  }
  .skin-choice {
    width: 25px;
    height: 25px;
  }
  #skinChoices {
    gap: 7px;
    flex-wrap: wrap;
  }
  .profile-options .profile-note {
    font-size: 8px !important;
  }
  .room-badge {
    font-size: 8px;
  }
  .profile-edit {
    padding: 10px;
  }
  .city-label {
    margin-top: 13px;
  }
}
@media (max-height: 760px) and (min-width: 761px) {
  #login {
    overflow-y: auto;
    pointer-events: auto;
  }
  .welcome-card {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    margin: 24px 8vw;
    width: 355px;
  }
  .welcome-card h1 {
    font-size: 40px;
    margin: 12px 0;
  }
  .welcome-card > p {
    font-size: 11px;
    margin-bottom: 12px;
  }
  .welcome-footer {
    display: none;
  }
}
@media (max-height: 540px) {
  .welcome-card {
    margin-top: 14px;
  }
  .welcome-card h1 {
    font-size: 32px;
  }
  .welcome-card #nick {
    padding: 9px;
  }
  .welcome-card .primary {
    padding: 10px;
  }
  .city-label {
    margin-top: 10px;
  }
  #avatarPreview {
    height: 220px;
  }
}
.profile-layout {
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
}
.profile-layout > div {
  min-width: 0;
}
#avatarPreview canvas {
  max-width: 100%;
}
@media (max-width: 760px) {
  .profile-layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  .profile-options .primary {
    white-space: normal;
  }
}
/* Courtyard controls stay reachable above the scene and below the account bar. */
.menu-panel {
  max-height: calc(100dvh - 275px);
  overflow-y: auto;
}
.guest-list li {
  flex-wrap: wrap;
}
@media (max-width: 1150px) {
  .place-caption {
    display: none;
  }
  .room-badge {
    display: none;
  }
}
@media (max-width: 760px) {
  .world-actions {
    top: 116px;
    gap: 6px;
  }
  .world-actions > span {
    display: none;
  }
  .world-actions button {
    flex: 1 1 40%;
    min-height: 40px;
    padding: 8px;
    font-size: 10px;
  }
  .menu-panel {
    max-height: calc(100dvh - 430px);
  }
  .chat-panel {
    max-height: calc(100dvh - 430px);
  }
}
@media (max-height: 540px) {
  .world-actions {
    top: 101px;
    flex-wrap: nowrap;
    width: calc(100vw - 28px);
  }
  .world-actions > span {
    display: none;
  }
  .world-actions button {
    flex: 1;
    font-size: 10px;
    padding: 8px;
  }
}
/* Accounts and the first city map. */
#authFields {
  margin-top: 12px;
}
#authFields input {
  width: 100%;
  margin-bottom: 12px;
}
#authMode {
  margin-bottom: 10px;
}
#login {
  overflow-y: auto;
  pointer-events: auto;
}
.world-actions {
  width: min(660px, calc(100vw - 32px));
}
.map-modal {
  width: min(720px, calc(100vw - 28px));
}
#cityMap {
  position: relative;
  height: 230px;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background:
    repeating-linear-gradient(
      20deg,
      transparent 0 45px,
      #68847528 46px 52px,
      transparent 53px 95px
    ),
    #172c2e;
}
.map-river {
  position: absolute;
  inset: 0 44%;
  transform: rotate(30deg);
  background: #38647780;
  border: 10px solid #456e7550;
}
.map-pin {
  position: absolute;
  transform: translate(-50%, -50%);
  background: #234442;
  border: 1px solid var(--sage);
  padding: 10px;
  border-radius: 8px;
  font-size: 11px;
}
.map-pin-vydohni {
  left: 29%;
  top: 55%;
}
.map-pin-tram {
  left: 68%;
  top: 78%;
}
.map-pin-orbit {
  left: 68%;
  top: 23%;
}
.place-card {
  border-top: 1px solid var(--line);
  padding: 16px 0;
}
.place-card h3 {
  margin: 0 0 7px;
  color: var(--gold);
  font-size: 17px;
}
.place-card p {
  margin-bottom: 7px;
}
.place-card button {
  padding: 12px;
  border-radius: 8px;
  background: #254742;
  width: 100%;
}
.place-count {
  color: var(--sage);
}
#taxiOverlay {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: #10252cf2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px;
  text-align: center;
}
#taxiOverlay > span {
  color: var(--gold);
  letter-spacing: 4px;
  margin-bottom: 20px;
}
#botMessages {
  height: 200px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  overflow-wrap: anywhere;
}
#botMessages strong {
  display: block;
  font-size: 11px;
  color: var(--gold);
}
#botMessages p {
  font-size: 12px;
}
@media (min-width: 761px) {
  .welcome-card {
    position: relative;
    top: auto;
    transform: none;
    margin: 38px 8vw;
    left: auto;
  }
}
@media (max-width: 760px) {
  .chat-panel,
  .menu-panel {
    max-height: calc(100dvh - 475px);
  }
  .world-actions {
    width: calc(100vw - 32px);
  }
}
@media (max-height: 540px) {
  .world-actions {
    overflow-x: auto;
    justify-content: flex-start;
  }
  .world-actions button {
    flex: 0 0 auto;
  }
  .chat-panel,
  .menu-panel {
    max-height: calc(100dvh - 230px);
  }
}
