/* C: compact miniature-city interfaces, with jade enamel, ivory and brass. */
body[data-ui] #lobby,
body[data-ui] #room-panel {
  --menu-ink: #163f47;
  --menu-muted: #52706c;
  --lobby-navy: #164c52;
  color: var(--menu-ink);
  font-family: var(--v35-font, system-ui, -apple-system, 'PingFang SC', 'Microsoft YaHei', sans-serif);
  background: linear-gradient(135deg, #367c79, #226764 45%, #175257);
  border: 2px solid #17494d;
  border-image: none;
  border-radius: 7px;
  box-shadow: inset 0 0 0 1px #bbd9c1, inset 0 0 0 4px #598f83, 0 3px 0 #103d41, 0 8px 20px #102f3c35;
  clip-path: none;
  padding: 14px;
  scrollbar-color: #b8d0bc #235c5f;
}
body[data-ui] #lobby::before,
body[data-ui] #room-panel::before {
  content: '';
  position: absolute;
  inset: 3px;
  pointer-events: none;
  z-index: 1;
  border-radius: 3px;
  background: linear-gradient(135deg, #f6e7a7 0 5px, #b49555 5px 7px, transparent 7px) top left / 18px 18px no-repeat,
    linear-gradient(225deg, #f6e7a7 0 5px, #b49555 5px 7px, transparent 7px) top right / 18px 18px no-repeat,
    linear-gradient(45deg, #c5a95f 0 5px, #f6e7a7 5px 7px, transparent 7px) bottom left / 18px 18px no-repeat,
    linear-gradient(315deg, #c5a95f 0 5px, #f6e7a7 5px 7px, transparent 7px) bottom right / 18px 18px no-repeat;
}
body[data-ui] #lobby {
  left: 24px;
  bottom: 22px;
  width: 420px;
  max-height: calc(100dvh - 174px);
}
body[data-ui] #lobby .city-picker { margin: 0 0 9px; }
body[data-ui] #lobby .city-picker-head {
  min-height: 26px;
  padding: 0 2px 6px;
  color: #faf1d8;
  font-size: 13px;
  font-weight: 750;
  text-shadow: 0 1px #174d51;
}
body[data-ui] #lobby .city-picker-head > span { gap: 6px; }
body[data-ui] #lobby .city-picker-head > span::before {
  width: 9px;
  height: 11px;
  background: linear-gradient(135deg, #ffedaa, #d1aa52);
  border: 1px solid #e5d291;
  border-radius: 1px;
  box-shadow: 1px 2px #16464b;
}
body[data-ui] #lobby .city-picker-head button {
  width: 27px;
  height: 25px;
  background: linear-gradient(#fffdf1, #e7e6d6);
  color: #24585b;
  border: 1px solid #103f46;
  border-radius: 3px;
  box-shadow: inset 0 1px #fff, 0 2px #143f43;
  font-size: 23px;
  line-height: 19px;
}
body[data-ui] #lobby .city-strip {
  gap: 8px;
  padding: 3px 3px 5px;
  scroll-padding: 3px;
  scroll-snap-type: x mandatory;
}
body[data-ui] #lobby .city-strip.dragging { scroll-snap-type: none; }
body[data-ui] #lobby .city-slide {
  flex: 0 0 44%;
  height: 110px;
  border: 1px solid #668c83;
  border-radius: 4px;
  box-shadow: 0 2px 0 #123e43;
  background: #dfede1;
  scroll-snap-align: start;
}
body[data-ui] #lobby .city-slide img {
  object-fit: cover;
  object-position: center;
  image-rendering: auto;
}
body[data-ui] #lobby .city-slide[aria-pressed='true'] {
  border: 1px solid #ffe1a0;
  box-shadow: 0 0 0 2px #d1b060, 0 3px 0 #143f43;
}
body[data-ui] #lobby .city-slide::after {
  height: 27px;
  border-top: 1px solid #8caca0;
  background: linear-gradient(#fffdf0f5, #e8e7d5f5);
}
body[data-ui] #lobby .city-slide span {
  bottom: 6px;
  left: 8px;
  right: 6px;
  font-size: 13px;
  line-height: 1.2;
  font-weight: 750;
  letter-spacing: 0;
  color: #16474b;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-shadow: none;
}
body[data-ui] #lobby .profile-row { margin: 0 0 8px; gap: 7px; }
body[data-ui] #lobby .profile-row input,
body[data-ui] #lobby .seed-input {
  min-height: 32px;
  padding: 6px 9px;
  font-size: 12px;
  font-weight: 550;
  color: #1c4e50;
  background: #f5f3e6;
  border: 1px solid #174b4f;
  border-radius: 3px;
  box-shadow: inset 0 2px 3px #7b998829, 0 1px #8fae9d;
}
body[data-ui] #lobby .profile-row input::placeholder,
body[data-ui] #lobby .seed-input::placeholder { color: #667c70; opacity: 1; }
body[data-ui] #lobby .profile-row > span {
  padding: 5px;
  background: #dccc91;
  border: 1px solid #8a8257;
  border-radius: 3px;
  color: #3b523f;
  font-size: 11px;
}
body[data-ui] #lobby .character-choice {
  min-height: 62px;
  margin: 0 0 9px;
  padding: 3px 9px 3px 7px;
  gap: 10px;
  border: 1px solid #184e52;
  border-radius: 4px;
  background: linear-gradient(90deg, #cce0d1 0 66px, #f3f1e4 66px);
  box-shadow: inset 0 1px #fff9e8, inset 0 -2px #b8c8b7, 0 2px #163e44;
}
body[data-ui] #lobby .character-choice img {
  width: 49px;
  height: 54px;
  background: transparent;
  filter: drop-shadow(1px 2px 0 #486c6630);
}
body[data-ui] #lobby .character-choice-copy { gap: 3px; }
body[data-ui] #lobby .character-choice-copy small { font-size: 10px; font-weight: 550; color: #587569; }
body[data-ui] #lobby .character-choice-copy strong { font-size: 15px; font-weight: 750; color: #16474b; }
body[data-ui] #lobby .character-choice > span:last-child {
  padding: 4px 5px;
  font-size: 11px;
  font-weight: 650;
  color: #285f5b;
  background: #d7e2d1;
  border: 1px solid #a9c1af;
  border-radius: 3px;
}
body[data-ui] #lobby .tier-list { margin: 0 0 9px; gap: 7px; }
body[data-ui] #lobby .tier {
  --tier-main: #63a287;
  --tier-pale: #e1ecdc;
  --tier-deep: #34634b;
  min-height: 71px;
  padding: 6px 3px;
  gap: 3px;
  border: 1px solid #234f50;
  border-top: 4px solid var(--tier-main);
  border-radius: 4px;
  color: #234e4d;
  background: linear-gradient(#fff9e6aa, transparent), var(--tier-pale);
  box-shadow: inset 0 1px #fff7e9, inset 0 -2px #77917d38, 0 2px #164249;
}
body[data-ui] #lobby .tier[data-tier='standard'] { --tier-main: #9a87b5; --tier-pale: #e9e2e9; --tier-deep: #655278; }
body[data-ui] #lobby .tier[data-tier='expert'] { --tier-main: #cca74f; --tier-pale: #f0e6be; --tier-deep: #846b29; }
body[data-ui] #lobby .tier > span:first-child { font-size: 12px; font-weight: 750; }
body[data-ui] #lobby .tier strong { font-size: 16px; line-height: 1.25; font-weight: 750; color: #16464b; }
body[data-ui] #lobby .tier small { font-size: 9px; color: #5b7568; }
body[data-ui] #lobby .tier span:last-child { font-size: 9px; line-height: 1.35; color: #5b7166; }
body[data-ui] #lobby .tier[aria-pressed='true'] {
  border-color: #ecd08c;
  border-top-color: var(--tier-main);
  background: linear-gradient(#fff9e6aa, transparent), var(--tier-pale);
  box-shadow: 0 0 0 1px #c8a656, inset 0 -2px #c6b77770, 0 2px #153e43;
}
body[data-ui] #lobby .tier[aria-pressed='true'] > span:first-child { color: var(--tier-deep); }
body[data-ui] #lobby .v25-mode-picker { gap: 7px; margin: 0 0 9px; }
body[data-ui] #lobby .v25-mode-picker button {
  min-height: 34px;
  padding: 5px 7px;
  color: #325c55;
  border: 1px solid #174e50;
  border-radius: 3px;
  background: linear-gradient(#f2f2e3, #d8e1d0);
  box-shadow: inset 0 1px #fffbe9, 0 2px #153f43;
}
body[data-ui] #lobby .v25-mode-picker button[aria-pressed='true'] {
  color: #465730;
  border-color: #d6b966;
  background: linear-gradient(#f7edc6, #e5d394);
  box-shadow: inset 0 1px #fff7da, 0 2px #16444a;
}
body[data-ui] #lobby .v25-mode-picker button strong { font-size: 11px; font-weight: 750; }
body[data-ui] #lobby .v25-mode-picker button small { font-size: 9px; color: #547064; }
body[data-ui] #lobby .v25-mode-picker button[aria-pressed='true'] small { color: #697044; }
body[data-ui] #lobby .seed-field { gap: 5px; margin: 0 0 9px; }
body[data-ui] #lobby .seed-field > span { font-size: 10px; font-weight: 550; color: #e8e9d2; text-shadow: none; }
body[data-ui] #lobby .seed-input { min-height: 30px; font-size: 11px; }
body[data-ui] #lobby #quick-btn,
body[data-ui] #room-panel .gold-btn {
  min-height: 44px;
  padding: 7px 10px 9px;
  color: #214846;
  border: 1px solid #887031;
  border-radius: 4px;
  background: linear-gradient(135deg, #ffe391, #f6cb5c);
  box-shadow: inset 0 2px #fff3c4, inset 2px 0 #fff0bc, inset 0 -3px #c69c42, 0 2px #123e44;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: .4px;
  text-shadow: 0 1px #ffeaa4;
}
body[data-ui] #lobby #quick-btn:hover:not(:disabled), body[data-ui] #room-panel .gold-btn:hover:not(:disabled) { background: linear-gradient(135deg, #ffeaa8, #f5d47e); }
body[data-ui] #lobby .lobby-row { gap: 8px; margin: 9px 0 0; }
body[data-ui] #lobby .lobby-row .quiet-btn,
body[data-ui] #lobby #resume-btn,
body[data-ui] #room-panel .quiet-btn {
  min-height: 34px;
  padding: 7px;
  color: #24544f;
  border: 1px solid #194e52;
  border-radius: 3px;
  background: linear-gradient(#f4f3e6, #dbe2d1);
  box-shadow: inset 0 1px #fffcec, inset 0 -2px #bbcbb7, 0 2px #153f43;
  font-size: 12px;
  font-weight: 650;
}
body[data-ui] #lobby #resume-btn { margin-top: 8px; }
body[data-ui] #lobby #connection-status { padding: 5px 7px; font-size: 11px; background: #f4e7b8; border: 1px solid #bba25d; border-radius: 3px; color: #804e35; }
body[data-ui] #room-panel {
  top: 160px;
  right: 24px;
  width: 360px;
  max-height: calc(100dvh - 186px);
  padding: 16px;
}
body[data-ui] #room-panel h2 {
  margin: 0 0 8px;
  padding: 8px 10px;
  color: #204e50;
  background: linear-gradient(#fcfaed, #e9e8d7);
  border: 1px solid #1c5053;
  border-radius: 4px;
  box-shadow: inset 0 1px #fffbed, inset 0 -2px #c1cfba, 0 2px #173d42;
  font-size: 20px;
  font-weight: 750;
}
body[data-ui] #room-panel p.v25-room-mode { margin: 7px 0; font-size: 12px; color: #ede9cf; font-weight: 600; text-shadow: none; }
body[data-ui] #room-panel .room-code {
  padding: 5px 10px;
  color: #294e43;
  background: linear-gradient(#f9e6a3, #dcc37f);
  border: 1px solid #b49a54;
  border-radius: 3px;
  box-shadow: inset 0 1px #fff2c3, inset 0 -2px #baa466;
  font-size: 23px;
  font-weight: 750;
}
body[data-ui] #room-panel .match-time { margin: 15px 0; font-size: 19px; color: #f4dfa0; font-weight: 750; text-shadow: none; }
body[data-ui] #room-panel [data-room-copy] { margin: 0 0 3px 8px; padding: 7px 3px; color: #f2e3ad; font-size: 12px; font-weight: 600; }
body[data-ui] #room-panel .seat-row {
  --seat: #59a580;
  min-height: 54px;
  padding: 4px 8px;
  margin: 8px 0;
  gap: 9px;
  border: 1px solid #234f53;
  border-left: 4px solid var(--seat);
  border-radius: 3px;
  background: linear-gradient(#faf7e9, #eae8d8);
  box-shadow: inset 0 1px #fffbed, inset 0 -2px #c6ceb9, 0 2px #184248;
}
body[data-ui] #room-panel .seat-row:nth-child(2 of .seat-row) { --seat: #d7817c; }
body[data-ui] #room-panel .seat-row:nth-child(3 of .seat-row) { --seat: #9f8abe; }
body[data-ui] #room-panel .seat-row:nth-child(4 of .seat-row) { --seat: #dbb34e; }
body[data-ui] #room-panel .avatar.character-avatar { width: 37px; height: 41px; border: 1px solid #8fac97; border-radius: 2px; background: #d2e0cd; box-shadow: 0 1px #adc0a6; }
body[data-ui] #room-panel .seat-row > strong { font-size: 14px; font-weight: 700; }
body[data-ui] #room-panel .seat-row > span:last-child { color: #577265; font-size: 11px; font-weight: 600; }
body[data-ui] #room-panel [data-room-leave] { margin-top: 8px; padding: 8px 3px; color: #e9ead5; font-size: 12px; font-weight: 600; }
body[data-ui] :is(#lobby, #room-panel) :is(button, input):focus-visible { outline: 2px solid #fff0b7; outline-offset: 3px; }

/* Show the full game's catalogue without changing the Demo's playable scope. */
body[data-ui] #lobby .is-demo-locked,
body[data-ui] #lobby .is-demo-locked:disabled { opacity: 1; cursor: default; }
body[data-ui] #lobby .city-availability {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 3;
  max-width: calc(100% - 12px);
  padding: 3px 6px;
  color: #fff2ca;
  background: #245c5bed;
  border: 1px solid #d6bc77;
  border-radius: 3px;
  box-shadow: 0 1px 3px #173f4333;
  font-size: 10px;
  line-height: 1.2;
  font-weight: 650;
  white-space: nowrap;
  pointer-events: none;
}
body[data-ui] #lobby .demo-availability {
  justify-self: center;
  color: #315b54;
  background: #f8f0d5;
  border: 1px solid #c5b375;
  border-radius: 3px;
  padding: 2px 5px;
  font-size: 10px;
  line-height: 1.2;
  font-weight: 650;
  white-space: nowrap;
}
body[data-ui] #lobby .tier.is-demo-locked > span:nth-of-type(2) {
  font-size: 9px;
  line-height: 1.35;
  color: #5b7166;
}
body[data-ui] #lobby .v25-mode-picker .demo-availability { font-size: 10px; color: #315b54; }

@media (max-height: 850px) and (min-width: 701px) {
  body[data-ui] #lobby { left: 20px; bottom: 18px; width: 400px; max-height: calc(100dvh - 142px); padding: 13px; }
  body[data-ui] #lobby .city-slide { height: 96px; }
  body[data-ui] #lobby .character-choice { min-height: 56px; }
  body[data-ui] #lobby .character-choice img { height: 48px; }
  body[data-ui] #lobby .tier { min-height: 66px; }
  body[data-ui] #room-panel { top: 132px; max-height: calc(100dvh - 154px); }
}
@media (max-width: 700px) {
  body[data-ui] #lobby { left: 10px; right: 10px; bottom: 12px; width: auto; max-height: calc(100dvh - 139px); padding: 12px; border-width: 2px; }
  body[data-ui] #lobby .city-picker-head { font-size: 12px; min-height: 25px; }
  body[data-ui] #lobby .city-slide { height: 100px; }
  body[data-ui] #lobby .city-slide::after { height: 26px; }
  body[data-ui] #lobby .city-slide span { font-size: 12px; bottom: 6px; }
  body[data-ui] #lobby .character-choice { min-height: 57px; padding: 3px 7px; gap: 8px; background: linear-gradient(90deg, #cce0d1 0 61px, #f3f1e4 61px); }
  body[data-ui] #lobby .character-choice img { width: 45px; height: 49px; }
  body[data-ui] #lobby .character-choice-copy strong { font-size: 14px; }
  body[data-ui] #lobby .character-choice > span:last-child { font-size: 10px; padding: 4px; }
  body[data-ui] #lobby .tier { min-height: 68px; }
  body[data-ui] #lobby .tier strong { font-size: 15px; }
  body[data-ui] #lobby .tier > span:first-child { font-size: 11px; }
  body[data-ui] #lobby .v25-mode-picker button { padding: 5px; }
  body[data-ui] #lobby #quick-btn { min-height: 43px; font-size: 18px; }
  body[data-ui] #lobby .lobby-row .quiet-btn { font-size: 12px; }
  body[data-ui] #room-panel { left: 10px; right: 10px; top: 126px; width: auto; max-height: calc(100dvh - 142px); padding: 13px; border-width: 2px; }
  body[data-ui] #room-panel h2 { font-size: 18px; }
  body[data-ui] #room-panel .seat-row { gap: 7px; }
}
@media (max-height: 480px) and (min-width: 480px) {
  body[data-ui] #lobby {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    align-content: start;
    align-items: start;
    gap: 6px 9px;
    left: 10px;
    right: 10px;
    bottom: 9px;
    width: auto;
    max-height: calc(100dvh - 76px);
    padding: 11px;
  }
  body[data-ui] #lobby .city-picker-head { min-height: 22px; padding-bottom: 4px; font-size: 11px; }
  body[data-ui] #lobby .city-picker-head button { width: 24px; height: 22px; font-size: 20px; }
  body[data-ui] #lobby .city-strip { padding: 3px 3px 5px; gap: 7px; }
  body[data-ui] #lobby .city-slide { height: 99px; flex-basis: 44%; }
  body[data-ui] #lobby .city-slide span { left: 5px; right: 4px; font-size: 11px; }
  body[data-ui] #lobby .profile-row { margin: 0; }
  body[data-ui] #lobby .profile-row input { min-height: 27px; padding: 4px 7px; font-size: 11px; }
  body[data-ui] #lobby .character-choice { min-height: 44px; margin: 0; padding: 1px 5px; gap: 6px; background: linear-gradient(90deg, #cce0d1 0 48px, #f3f1e4 48px); }
  body[data-ui] #lobby .character-choice img { width: 36px; height: 38px; }
  body[data-ui] #lobby .character-choice-copy { gap: 1px; }
  body[data-ui] #lobby .character-choice-copy small { font-size: 9px; }
  body[data-ui] #lobby .character-choice-copy strong { font-size: 12px; }
  body[data-ui] #lobby .character-choice > span:last-child { font-size: 9px; padding: 3px; }
  body[data-ui] #lobby .v25-mode-picker { margin: 0; gap: 5px; }
  body[data-ui] #lobby .v25-mode-picker button { min-height: 28px; padding: 4px; gap: 2px; }
  body[data-ui] #lobby .v25-mode-picker button strong { font-size: 10px; }
  body[data-ui] #lobby .v25-mode-picker button small { font-size: 8px; }
  body[data-ui] #lobby .tier-list { margin: 0; gap: 5px; }
  body[data-ui] #lobby .tier { min-height: 64px; padding: 4px 2px; gap: 3px; }
  body[data-ui] #lobby .tier > span:first-child { font-size: 10px; }
  body[data-ui] #lobby .tier strong { font-size: 13px; }
  body[data-ui] #lobby .tier strong small { font-size: 8px; }
  body[data-ui] #lobby .tier span:last-child { font-size: 8px; }
  body[data-ui] #lobby .seed-field { margin: 0; gap: 4px; }
  body[data-ui] #lobby .seed-field > span { font-size: 9px; }
  body[data-ui] #lobby .seed-input { min-height: 25px; padding: 4px 6px; font-size: 10px; }
  body[data-ui] #lobby #quick-btn { min-height: 34px; padding: 4px 8px 6px; font-size: 16px; }
  body[data-ui] #lobby .lobby-row { margin: 0; }
  body[data-ui] #lobby .lobby-row .quiet-btn { min-height: 28px; padding: 5px; font-size: 11px; }
  body[data-ui] #lobby #resume-btn, body[data-ui] #lobby #connection-status { margin: 0; }
  body[data-ui] #room-panel { top: 68px; bottom: 9px; left: auto; right: 10px; width: min(370px, calc(100vw - 20px)); max-height: calc(100dvh - 77px); padding: 11px; }
  body[data-ui] #room-panel h2 { font-size: 16px; padding: 6px 8px; }
  body[data-ui] #room-panel .seat-row { min-height: 45px; margin: 6px 0; padding: 3px 6px; }
  body[data-ui] #room-panel .avatar.character-avatar { width: 32px; height: 34px; }
}
