@charset "UTF-8";
/* Royal orders. Button roles are explicit so map-city hit targets stay intact. */
:root {
  --r14-ink: #102e32;
  --r14-panel: #163c3f;
  --r14-copper: #bd8d4b;
  --r14-gold: #e7cb86;
  --r14-paper: #f3e8ce;
  --r14-muted: #b3c3b9;
  --r14-serif: "Songti SC", "STSong", "SimSun", serif;
}

#app .command-button {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 52px;
  min-width: 44px;
  padding: 10px 22px;
  border: 1px solid #f3d791;
  border-radius: 3px;
  background: linear-gradient(100deg, #d4ac67, #ead29b 48%, #c79a54);
  box-shadow: inset 0 1px #fff0c0, inset 0 -3px #9b6f3b, 0 3px 0 #62472b, 0 6px 12px #071c2738;
  color: #183532;
  font-family: var(--r14-serif);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: .03em;
  text-shadow: 0 1px #fff3cc80;
  cursor: pointer;
  overflow: visible;
  clip-path: none;
  transition: transform 100ms ease-out, box-shadow 100ms ease-out, background-color 100ms;
}
#app .command-button::before {
  content: "";
  display: block;
  position: absolute;
  inset: 4px;
  width: auto;
  height: auto;
  margin: 0;
  border: 1px solid #70512555;
  border-radius: 1px;
  pointer-events: none;
  background: none;
  transform: none;
}
#app .command-button::after { display: none; }
#app .command-button .command-seal {
  position: relative;
  display: grid;
  place-items: center;
  flex: 0 0 34px;
  width: 34px;
  height: 38px;
  color: #f2d69b;
  background: #36504a;
  box-shadow: inset 0 1px #0c2d2d, 0 1px #fff0b7;
  clip-path: polygon(0 0,100% 0,100% 76%,50% 100%,0 76%);
  pointer-events: none;
}
#app .command-button .command-seal .r9-icon { width: 23px; height: 26px; }
#app .command-button .command-arrow { margin-left: auto; display: flex; }
#app .command-button .command-arrow .r9-icon { width: 24px; height: 24px; }
#app .command-button:active:not(:disabled) {
  transform: translateY(2px);
  box-shadow: inset 0 2px 3px #65452140, inset 0 -1px #9b6f3b, 0 1px 0 #62472b;
}
#app .command-button:disabled {
  background: #485b58;
  border-color: #82938a;
  color: #d2d9cf;
  box-shadow: inset 0 1px #ffffff12;
  text-shadow: none;
  cursor: default;
}
#app .command-button:disabled .command-seal { color: #b7c2b4; background: #354c49; }
#app .command-button:focus-visible,
#app .order-tool:focus-visible {
  outline: 2px solid #fff5ce;
  outline-offset: 4px;
}

#app .order-tool {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 44px;
  min-height: 44px;
  padding: 8px 13px;
  border: 1px solid #9bb3a24d;
  border-bottom-color: #bea77580;
  border-radius: 3px;
  background: #12383c;
  box-shadow: inset 0 1px #d8e3c712;
  color: var(--r14-paper);
  font: 500 13px/1.3 "PingFang SC", "Microsoft YaHei", sans-serif;
  letter-spacing: .02em;
  transition: background-color 100ms, transform 100ms;
}
#app .order-tool .r9-icon { width: 19px; height: 21px; flex-shrink: 0; }
#app .order-tool:active:not(:disabled) { background: #2b5452; transform: translateY(1px); }
#app .order-tool.is-muted { color: #bbc1ad; border-style: dashed; }
#app .order-tool:disabled { color: #9daea4; background: #263e3c; border-color: #647f7366; cursor: default; box-shadow: none; }
#app .danger-button {
  background: #743c35;
  border-color: #c58e70;
  color: #fff0d7;
  box-shadow: inset 0 1px #ffdca721, 0 2px #402627;
  min-height: 44px;
  border-radius: 3px;
  padding: 10px 16px;
  font: 600 14px/1.4 "PingFang SC", "Microsoft YaHei", sans-serif;
}

#enter-continent.command-button { width: min(340px,100%); justify-content: flex-start; padding: 10px 17px; }
#lobby-screen .lobby-entry.casual.command-button { justify-content: flex-start; padding: 14px 19px; gap: 16px; }
#lobby-screen .lobby-entry.casual.command-button b { font: 700 30px/1.2 var(--r14-serif); letter-spacing: .08em; }
#lobby-screen .lobby-entry.casual.command-button small { font: 500 11px/1.3 "PingFang SC","Microsoft YaHei",sans-serif; letter-spacing: .03em; opacity: .9; margin-top: 5px; }
#lobby-screen .lobby-entry.casual.command-button .command-seal { width: 42px; height: 48px; flex-basis: 42px; }
#lobby-screen .lobby-entry.ranked {
  position: relative;
  background: linear-gradient(100deg,#102e35,#20474a);
  border: 1px solid #91a69999;
  border-left: 3px solid #94b2ad;
  box-shadow: inset 0 1px #b4d3ba24, 0 3px 8px #071c2738;
  border-radius: 3px;
  padding: 12px 19px;
  gap: 16px;
  transition: transform 100ms;
}
#lobby-screen .lobby-entry.ranked .entry-icon { color: #b3cfca; width: 42px; }
#lobby-screen .lobby-entry.ranked b { font-size: 17px; letter-spacing: .06em; }
#lobby-screen .lobby-entry.ranked small { opacity: 1; color: #bac8be; letter-spacing: 0; }
#lobby-screen .lobby-entry.ranked:active { transform: translateY(1px); }
#lobby-screen .commander-change { min-width: 44px; padding: 7px 9px; border: 0; background: transparent; box-shadow: none; }

.r8-dialog .r8-modal-card,
#pause-overlay > div { border-radius: 5px; background: #15383d; color: #f3e8ce; border: 1px solid #8a9783; box-shadow: inset 0 3px #b78c50,0 12px 48px #061e2799; }
.r8-dialog .r8-modal-card p,
#pause-overlay > div > p { color: #c1cbbb; }
.r8-dialog .settings-actions > .order-tool,
#pause-overlay .settings-actions > .order-tool { min-height: 48px; }
#exit-dialog .exit-actions { flex-direction: column; }
#exit-dialog .exit-actions > button { width: 100%; }
.ranked-card button:disabled { background: #d9ded0; border-color: #b7c2ae; color: #566759; box-shadow: none; cursor: default; }

@media (hover:hover) {
  #app .command-button:hover:not(:disabled) { background: linear-gradient(100deg,#dfbc7b,#f1deab 48%,#d3a862); }
  #app .order-tool:hover { background-color: #2a4f50; }
}
@media (max-height:520px) and (orientation:landscape) {
  #lobby-screen .lobby-entry.casual.command-button { min-height: 70px; padding: 9px 14px; gap: 12px; }
  #lobby-screen .lobby-entry.casual.command-button b { font-size: 27px; }
  #lobby-screen .lobby-entry.casual.command-button .command-seal { height: 41px; width: 34px; flex-basis: 34px; }
  #lobby-screen .lobby-entry.ranked { min-height: 57px; padding: 7px 14px; gap: 12px; }
  #lobby-screen .lobby-entry.ranked .entry-icon { width: 34px; }
  #app .command-button { font-size: 20px; gap: 10px; }
  #app .command-button .command-seal { width: 29px; height: 33px; flex-basis: 29px; }
  .r8-lobby-header .order-tool { padding: 8px 10px; }
}
@media (prefers-reduced-motion:reduce) {
  #app .command-button, #app .order-tool, #lobby-screen .lobby-entry.ranked { transition: none; }
}
