@font-face {
  font-family: "Baloo 2";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/game/assets/baloo-2-600-vietnamese.fb54af34d6.woff2) format("woff2");
}
@font-face {
  font-family: "Be Vietnam Pro";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/game/assets/be-vietnam-pro-400-vietnamese.dc085e2fba.woff2)
    format("woff2");
}
body {
  margin: 0;
}
:root {
  --leaf: #13261b;
  --leaf-2: #1c3627;
  --leaf-3: #27503a;
  --soil: #7a321f;
  --cherry: #e0362c;
  --gold: #f4b73a;
  --text: #f2ead7;
  --muted: #b9c4b4;
  --line: rgba(242, 234, 215, 0.14);
  --display: "Baloo 2", "Trebuchet MS", system-ui, sans-serif;
  --body: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: dark;
}
* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
html,
body {
  background: var(--leaf);
  color: var(--text);
}
body {
  font-family: var(--body);
  font-size: 15px;
  line-height: 1.5;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  padding-block: 14px 28px;
}
.wrap {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px 20px;
}
h1 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(30px, 5vw, 46px);
  line-height: 1;
  margin: 0;
  letter-spacing: -0.5px;
  text-wrap: balance;
}
h1 span {
  color: var(--cherry);
}
.sub {
  color: var(--muted);
  margin: 4px 0 0;
  font-size: 14px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
}
.chip i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--muted);
}
.chip.on i {
  background: #58d27d;
  box-shadow: 0 0 0 3px #58d27d33;
}
.main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 14px;
  align-items: start;
}
@media (max-width: 900px) {
  .main {
    grid-template-columns: minmax(0, 1fr);
  }
}
.stage {
  position: relative;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.canvasBox {
  position: relative;
}
canvas {
  display: block;
  width: 100%;
  aspect-ratio: 960/600;
  max-width: 100%;
  border-radius: 14px;
  background: #6fa8dc;
  touch-action: none;
  cursor: pointer;
  box-shadow: 0 10px 30px #00000059;
}
.hud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.stat {
  display: flex;
  flex-direction: column;
  padding: 6px 12px;
  border-radius: 10px;
  background: var(--leaf-2);
  min-width: 80px;
}
.stat b {
  font-family: var(--display);
  font-size: 22px;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.stat small {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.stat.cherry b {
  color: var(--cherry);
}
.stat.gold b {
  color: var(--gold);
}
.me {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px 6px 12px;
  border-radius: 10px;
  background: var(--leaf-2);
  min-width: 0;
}
.me .dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  flex: none;
}
.me .who {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.15;
}
.me b {
  font-family: var(--display);
  font-size: 18px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 180px;
}
.me .who small {
  color: var(--gold);
  font-size: 12px;
}
.small {
  font-size: 12px;
  background: var(--leaf-3);
  padding: 4px 10px;
  border-radius: 999px;
}
.spacer {
  flex: 1;
}
button {
  font: inherit;
  color: inherit;
  cursor: pointer;
  border: none;
}
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
.pick {
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  font-family: var(--display);
  font-weight: 800;
  font-size: 20px;
  background: var(--cherry);
  color: #fff;
  padding: 10px 26px;
  border-radius: 12px;
  box-shadow: 0 4px #8f1c16;
}
.pick:active {
  transform: translateY(3px);
  box-shadow: 0 1px #8f1c16;
}
.chatBox {
  background: var(--leaf-2);
  border-radius: 14px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.chatBox h2 {
  font-family: var(--display);
  font-size: 18px;
  margin: 0;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}
.chatBox h2 small {
  font-family: var(--body);
  font-size: 12px;
  color: var(--muted);
  font-weight: 400;
}
#chatLog {
  height: 150px;
  overflow-y: auto;
  font-size: 14px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding-right: 4px;
}
#chatLog li {
  overflow-wrap: anywhere;
}
#chatLog .who {
  font-weight: 700;
  margin-right: 6px;
}
#chatLog .npc .who:after {
  content: attr(data-r);
  font-weight: 500;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-left: 5px;
  vertical-align: 1px;
}
#chatLog .sys {
  color: var(--muted);
  font-size: 13px;
  font-style: italic;
}
.chatForm {
  display: flex;
  gap: 8px;
}
.chatForm input {
  flex: 1;
  min-width: 0;
  font: inherit;
  padding: 9px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--leaf);
  color: var(--text);
}
.chatForm button {
  background: var(--gold);
  color: #3a2306;
  font-weight: 700;
  padding: 0 16px;
  border-radius: 10px;
}
.quick {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.quick button {
  background: var(--leaf);
  border: 1px solid var(--line);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12.5px;
}
.quick button:hover {
  background: var(--leaf-3);
}
.help {
  color: var(--muted);
  font-size: 13px;
  margin: 0;
  max-width: 80ch;
}
.help kbd {
  font-family: var(--body);
  background: var(--leaf-2);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 0 5px;
  font-size: 12px;
}
aside {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}
.panel {
  background: var(--leaf-2);
  border-radius: 14px;
  padding: 12px 14px;
}
.panel h2 {
  font-family: var(--display);
  font-size: 18px;
  margin: 0 0 6px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
}
.panel h2 small {
  font-family: var(--body);
  font-size: 12px;
  color: var(--muted);
  font-weight: 400;
}
ol,
ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 0;
  border-top: 1px solid var(--line);
  font-size: 14px;
}
.row:first-child {
  border-top: none;
}
.row .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex: none;
}
.row .nm {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.row .nm em {
  font-style: normal;
  color: var(--gold);
  font-size: 12px;
  margin-left: 4px;
}
.row .nm small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.row .sc {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}
.row button.talk {
  font-size: 12px;
  background: var(--leaf-3);
  padding: 3px 9px;
  border-radius: 999px;
}
.rank {
  width: 20px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  font-size: 13px;
}
.empty {
  color: var(--muted);
  font-size: 13px;
  padding: 4px 0;
}
#feed {
  max-height: 200px;
  overflow: auto;
  font-size: 13px;
}
#feed li {
  padding: 4px 0;
  border-top: 1px solid var(--line);
}
#feed li:first-child {
  border-top: none;
}
#feed li.bad {
  color: #ff9a8f;
}
#feed li.good {
  color: #ffd77a;
}
.overlay {
  position: absolute;
  inset: 0;
  z-index: 7;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0a140eb8;
  border-radius: 14px;
  padding: 12px;
  overflow: auto;
}
.card {
  background: var(--leaf-2);
  border-radius: 16px;
  padding: 18px;
  max-width: 390px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.card h3 {
  font-family: var(--display);
  font-size: 26px;
  margin: 0;
  line-height: 1.1;
}
.card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}
.card label {
  font-size: 13px;
  color: var(--muted);
}
.nickRow {
  display: flex;
  gap: 8px;
}
.card input {
  flex: 1;
  min-width: 0;
  font: inherit;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--leaf);
  color: var(--text);
}
.dice {
  background: var(--leaf-3);
  padding: 0 12px;
  border-radius: 10px;
  font-size: 13px;
  white-space: nowrap;
}
.hats {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.hats button {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 3px solid transparent;
}
.hats button[aria-pressed="true"] {
  border-color: var(--text);
}
.go {
  font-family: var(--display);
  font-weight: 800;
  font-size: 20px;
  background: var(--gold);
  color: #3a2306;
  padding: 10px;
  border-radius: 12px;
}
.toast {
  position: absolute;
  left: 50%;
  top: 48px;
  transform: translate(-50%);
  background: #13261beb;
  border: 1px solid var(--line);
  padding: 6px 14px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  pointer-events: none;
  white-space: nowrap;
  max-width: 94%;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dlg {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: #f2ead7f7;
  color: #22170e;
  border-radius: 14px;
  padding: 12px 14px;
  box-shadow: 0 8px 24px #0006;
}
.dlg canvas {
  width: 56px;
  height: 56px;
  aspect-ratio: auto;
  flex: none;
  border-radius: 12px;
  background: #e3cfa3;
  box-shadow: none;
  cursor: default;
}
.dlg .tx {
  flex: 1;
  min-width: 0;
}
.dlg b {
  font-family: var(--display);
  font-size: 18px;
  line-height: 1.1;
}
.dlg small {
  color: #6d5a44;
  margin-left: 6px;
  font-size: 12px;
}
.dlg p {
  margin: 2px 0 8px;
  font-size: 15px;
}
.dlg .acts {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.dlg .acts button {
  background: #22170e;
  color: #f2ead7;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 13px;
}
.dlg .acts button.ghost {
  background: transparent;
  color: #22170e;
  border: 1px solid rgba(34, 23, 14, 0.3);
}
@media (max-width: 560px) {
  .dlg {
    left: 6px;
    right: 6px;
    bottom: 6px;
    padding: 8px 10px;
  }
  .dlg canvas {
    width: 42px;
    height: 42px;
  }
  .dlg p {
    font-size: 13px;
  }
}
.touchUI {
  position: absolute;
  inset: 0;
  pointer-events: none;
  display: none;
}
.touchUI > * {
  pointer-events: auto;
}
@media (pointer: coarse), (max-width: 720px) {
  .touchUI {
    display: block;
  }
}
.canvasBox:fullscreen .touchUI {
  display: block;
}
.tStats {
  position: absolute;
  left: 8px;
  top: 8px;
  background: #13261bd1;
  border-radius: 10px;
  padding: 4px 10px;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  gap: 10px;
  font-variant-numeric: tabular-nums;
}
.tStats b {
  color: var(--cherry);
}
.tStats i {
  font-style: normal;
  color: var(--gold);
}
.tTop {
  position: absolute;
  right: 8px;
  top: 8px;
  display: flex;
  gap: 6px;
}
.tTop .tBtn {
  opacity: 0.92;
}
.tBtn {
  background: #13261bd1;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 5px 10px;
  font-size: 12.5px;
  font-weight: 700;
}
.tBtn[aria-pressed="true"] {
  background: var(--gold);
  color: #3a2306;
}
.tPick {
  position: absolute;
  right: max(14px, env(safe-area-inset-right, 0px));
  bottom: 16px;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--cherry);
  color: #fff;
  font-family: var(--display);
  font-weight: 800;
  font-size: 20px;
  box-shadow:
    0 5px #8f1c16,
    0 8px 18px #0006;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}
.tPick.held {
  transform: translateY(4px);
  box-shadow: 0 1px #8f1c16;
}
.tChatBtn {
  position: absolute;
  right: max(14px, env(safe-area-inset-right, 0px));
  bottom: 104px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #13261be0;
  border: 1px solid var(--line);
  font-weight: 700;
  font-size: 12px;
}
.tChat {
  position: absolute;
  left: 8px;
  right: 8px;
  top: 44px;
  display: flex;
  gap: 6px;
}
.tChat input {
  flex: 1;
  min-width: 0;
  font: inherit;
  font-size: 16px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #13261bf2;
  color: var(--text);
}
.tChat button {
  background: var(--gold);
  color: #3a2306;
  font-weight: 700;
  padding: 0 12px;
  border-radius: 10px;
}
.canvasBox:fullscreen {
  background: #0b160f;
  display: flex;
  align-items: center;
  justify-content: center;
}
.canvasBox:fullscreen canvas {
  width: 100vw;
  height: 100vh;
  aspect-ratio: auto;
  border-radius: 0;
  box-shadow: none;
}
.canvasBox:fullscreen .toast,
.canvasBox .toast {
  max-width: 90%;
}
@media (pointer: coarse), (max-width: 720px) {
  .hud .pick {
    display: none;
  }
  .toast {
    top: 42%;
    font-size: 13px;
  }
}
@media (max-width: 520px) {
  .tTop {
    top: 38px;
    flex-wrap: wrap;
    justify-content: flex-end;
    max-width: 80%;
  }
  .tChat {
    top: 72px;
  }
}
@media (max-width: 520px) {
  .tPick {
    width: 70px;
    height: 70px;
    font-size: 18px;
    bottom: 14px;
  }
  .tChatBtn {
    bottom: 94px;
    width: 44px;
    height: 44px;
  }
  .tBtn {
    padding: 3px 7px;
    font-size: 11px;
  }
  .tStats {
    font-size: 11.5px;
    padding: 3px 8px;
  }
  .joy {
    width: 104px;
    height: 104px;
  }
}
.joy {
  position: absolute;
  left: max(14px, env(safe-area-inset-left, 0px));
  bottom: 14px;
  width: 118px;
  height: 118px;
  border-radius: 50%;
  background: radial-gradient(circle, #13261b59, #13261b99);
  border: 2px solid rgba(242, 234, 215, 0.4);
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}
.joy:before {
  content: "";
  position: absolute;
  inset: 22%;
  border-radius: 50%;
  border: 1px dashed rgba(242, 234, 215, 0.3);
}
.knob {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 50px;
  height: 50px;
  margin: -25px 0 0 -25px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff8e6, #d9cba8);
  box-shadow: 0 3px 8px #00000073;
  pointer-events: none;
}
@media (orientation: portrait) and (max-width: 720px) {
  canvas {
    aspect-ratio: auto;
    height: min(74svh, 700px);
  }
}
.rotateTip {
  display: none;
  margin: 0;
  font-size: 13px;
  color: var(--gold);
}
@media (orientation: portrait) and (max-width: 720px) {
  .rotateTip {
    display: block;
  }
}
@media (orientation: landscape) and (max-height: 520px) {
  header {
    display: none;
  }
  .main {
    grid-template-columns: minmax(0, 1fr);
  }
  canvas {
    aspect-ratio: auto;
    height: calc(100dvh - 12px);
  }
}
.mapDlg {
  position: absolute;
  inset: 0;
  background: #0a140ec7;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  border-radius: 14px;
  z-index: 6;
}
.mapDlg[hidden] {
  display: none;
}
.mapCard {
  background: #f2ead7;
  color: #22170e;
  border-radius: 14px;
  padding: 12px 14px;
  width: min(560px, 100%);
  max-height: 100%;
  overflow: auto;
  box-shadow: 0 10px 30px #00000073;
}
.mapCard .mh {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.mapCard h3 {
  margin: 0;
  font-family: var(--display);
  font-size: 22px;
  flex: 1;
}
.mapCard .mh button {
  background: #22170e;
  color: #f2ead7;
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 13px;
}
.mapCard svg {
  width: 100%;
  height: auto;
  max-height: 58vh;
  display: block;
  border-radius: 10px;
  background: #a9d6ea;
}
#mapDlg .mapCard {
  width: min(720px, 100%);
}
.mapCard svg g[data-to] {
  cursor: pointer;
}
.mapGo {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 8px;
}
.mapGo button {
  background: #fff8ea;
  border: 2px solid rgba(34, 23, 14, 0.18);
  border-radius: 12px;
  padding: 8px 6px;
  text-align: left;
  color: #22170e;
  font-size: 12px;
  line-height: 1.3;
}
.mapGo button b {
  display: block;
  font-size: 14px;
  font-family: var(--display);
}
.mapGo button.here {
  border-color: #c8322a;
  background: #ffe9e2;
}
.mapGo button:disabled {
  opacity: 0.6;
}
.mapNote {
  font-size: 11.5px;
  color: #6d5a44;
  margin: 8px 0 0;
}
.mapBig {
  width: min(780px, 100%);
}
.mapCard {
  max-height: 100%;
  overflow: auto;
}
.mapCard svg g[data-grp] {
  cursor: pointer;
}
#mapGo {
  display: block !important;
}
.mapH {
  margin: 10px 0 5px;
  font-size: 13px;
  color: #6b3f1f;
}
.mapGrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 6px;
}
.mapGrid button {
  background: #fff8ea;
  border: 2px solid rgba(34, 23, 14, 0.18);
  border-radius: 12px;
  padding: 6px 8px;
  text-align: left;
  color: #22170e;
  font-size: 11.5px;
  line-height: 1.3;
}
.mapGrid button b {
  display: block;
  font-size: 13.5px;
  font-family: var(--display);
}
.mapGrid button small {
  color: #6d5a44;
}
.mapGrid button.here {
  border-color: #c8322a;
  background: #ffe9e2;
}
.frBox h4 {
  margin: 10px 0 6px;
  font-size: 13px;
  color: var(--gold);
}
.frRow {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 0;
  border-bottom: 1px solid var(--line);
}
.frRow .nm {
  flex: 1;
  min-width: 0;
  font-weight: 700;
  font-size: 13.5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.frRow .nm small {
  font-weight: 400;
  opacity: 0.7;
}
.frBtn {
  background: var(--gold);
  color: #3a2306;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12.5px;
  font-weight: 700;
  white-space: nowrap;
}
.frBtn.ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
}
.frBtn:disabled {
  opacity: 0.6;
}
.frDot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #777;
  margin-right: 6px;
}
.frDot.on {
  background: #6fcf7f;
}
.frNote {
  font-size: 12.5px;
  opacity: 0.75;
  margin: 4px 0;
}
.frHead {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.frHead small {
  opacity: 0.7;
}
.frMsgs {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: min(46vh, 360px);
  overflow: auto;
  padding: 4px 0;
}
.frMsg {
  align-self: flex-start;
  max-width: 85%;
  background: #ffffff14;
  border-radius: 12px 12px 12px 4px;
  padding: 6px 10px;
  font-size: 13.5px;
}
.frMsg.me {
  align-self: flex-end;
  background: var(--gold);
  color: #3a2306;
  border-radius: 12px 12px 4px;
}
.frMsg small {
  display: block;
  font-size: 10px;
  opacity: 0.6;
}
.frForm {
  display: flex;
  gap: 6px;
  margin-top: 8px;
}
.frForm input {
  flex: 1;
  min-width: 0;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #ffffff0f;
  color: var(--text);
  font-size: 15px;
}
.mapGo {
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}
.mgCard canvas {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  background: #1d2a20;
  touch-action: manipulation;
}
.mgHit {
  display: block;
  width: 100%;
  margin-top: 8px;
  background: #c8322a;
  color: #fff;
  font-family: var(--display);
  font-size: 22px;
  padding: 10px;
  border-radius: 14px;
  box-shadow: 0 4px #8a1f19;
  touch-action: manipulation;
}
.mgHit:active {
  transform: translateY(2px);
  box-shadow: 0 2px #8a1f19;
}
@media (max-width: 520px) {
  .mapGo {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .mapGo button {
    font-size: 11px;
    padding: 6px;
  }
  .mapGo button b {
    font-size: 13px;
  }
  .mapCard h3 {
    font-size: 18px;
  }
  .mapCard {
    padding: 10px;
  }
}
.quests {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
  max-height: 340px;
  overflow: auto;
}
.qrow {
  position: relative;
  padding: 6px 8px 9px;
  border-radius: 10px;
  background: #f2ead70f;
  font-size: 13px;
}
.qrow .qt {
  display: block;
  font-weight: 700;
}
.qrow small {
  opacity: 0.75;
  font-size: 11.5px;
}
.qrow i {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 4px;
  height: 3px;
  border-radius: 3px;
  background: #ffffff1f;
  overflow: hidden;
}
.qrow i:after {
  content: "";
  position: absolute;
  inset: 0;
  width: var(--p, 0%);
  background: #f4b73a;
}
.qrow.done {
  opacity: 0.6;
}
.qrow.done i:after {
  background: #6fcf7f;
}
.histCard {
  width: min(620px, 100%);
}
.histBody p {
  margin: 0 0 8px;
  font-size: 14px;
  line-height: 1.55;
}
.hqh {
  margin: 10px 0 6px;
  font-size: 14px;
}
.hq {
  margin: 0 0 8px;
}
.hq b {
  display: block;
  font-size: 13.5px;
  margin-bottom: 4px;
}
.hqa {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.hqa button {
  background: #fff8ea;
  border: 1px solid rgba(34, 23, 14, 0.25);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 13px;
  color: #22170e;
}
.hqa button.right {
  background: #2f7a3f;
  color: #fff;
  border-color: #2f7a3f;
}
.hqa button.wrong {
  background: #f3d0c8;
  text-decoration: line-through;
}
.hqa button:disabled {
  cursor: default;
}
.flist {
  display: grid;
  gap: 8px;
  margin-top: 6px;
}
.fitem {
  display: flex;
  gap: 10px;
  align-items: center;
  background: #fff8ea;
  border: 1px solid rgba(34, 23, 14, 0.15);
  border-radius: 12px;
  padding: 8px 10px;
}
.fic {
  font-size: 30px;
  line-height: 1;
}
.ftx {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.ftx b {
  font-size: 14.5px;
}
.ftx small {
  font-size: 12px;
  color: #6d5a44;
}
.ftx em {
  font-style: normal;
  font-size: 12px;
  color: #2f7a3f;
  font-weight: 700;
}
.fitem button {
  background: #c8322a;
  color: #fff;
  font-weight: 800;
  border-radius: 999px;
  padding: 7px 12px;
  white-space: nowrap;
}
.fitem button.poor {
  background: #c9bba0;
}
.mgCtl {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}
.mgCtl[hidden] {
  display: none;
}
.mgCtl button {
  flex: 1;
  background: #c8322a;
  color: #fff;
  font-weight: 800;
  padding: 12px 6px;
  border-radius: 12px;
  font-size: 15px;
  touch-action: none;
  user-select: none;
}
.mgCtl .mgDone {
  background: #3f8a3a;
}
.chuaCard {
  width: min(660px, 100%);
}
.chuaGrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
@media (max-width: 560px) {
  .chuaGrid {
    grid-template-columns: 1fr;
  }
}
.cbox {
  background: #fff8ea;
  border: 1px solid rgba(34, 23, 14, 0.15);
  border-radius: 12px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
  position: relative;
  color: #22170e;
}
.cbox small {
  font-size: 11px;
  color: #6d5a44;
}
.cbtn {
  background: #c8322a;
  color: #fff;
  font-weight: 800;
  border-radius: 999px;
  padding: 8px 12px;
}
.cbtn:disabled {
  background: #c9bba0;
}
.altar {
  position: relative;
  width: 90px;
  height: 70px;
}
.altar:after {
  content: "";
  position: absolute;
  left: 15px;
  right: 15px;
  bottom: 0;
  height: 22px;
  background: linear-gradient(#e1b84a, #a77b1e);
  border-radius: 0 0 30px 30px;
}
.incense {
  position: absolute;
  bottom: 18px;
  width: 3px;
  height: 40px;
  background: linear-gradient(#e0362c 0 6px, #8a3a1a 6px);
}
.incense:nth-child(1) {
  left: 36px;
  transform: rotate(-8deg);
}
.incense:nth-child(2) {
  left: 44px;
}
.incense:nth-child(3) {
  left: 52px;
  transform: rotate(8deg);
}
.smoke {
  position: absolute;
  left: 28px;
  top: -14px;
  width: 34px;
  height: 44px;
  opacity: 0;
  background: radial-gradient(circle, #d2d2d2d9, #d2d2d200 70%);
}
.smoke.on {
  animation: smk 3s ease-out;
}
@keyframes smk {
  0% {
    opacity: 0.9;
    transform: translateY(20px) scale(0.6);
  }
  to {
    opacity: 0;
    transform: translateY(-34px) scale(1.7);
  }
}
.mo {
  width: 96px;
  height: 68px;
  border-radius: 50% 50% 44% 44%;
  background: radial-gradient(circle at 40% 32%, #e0ac62, #8a4a1a);
  color: #3a1a08;
  font-weight: 800;
  font-size: 13px;
  box-shadow: inset 0 -7px #00000040;
  position: relative;
  padding-top: 30px;
}
.mo:before {
  content: "";
  position: absolute;
  left: 20px;
  right: 20px;
  top: 22px;
  height: 6px;
  border-radius: 6px;
  background: #3a1a08;
}
.mo.hit {
  animation: moh 0.15s;
}
@keyframes moh {
  50% {
    transform: scale(0.9);
  }
}
.cdPop {
  position: absolute;
  top: 8px;
  color: #c8322a;
  font-weight: 800;
  animation: cdp 0.8s forwards;
  pointer-events: none;
}
@keyframes cdp {
  to {
    transform: translateY(-30px);
    opacity: 0;
  }
}
.xam {
  font-size: 13px;
  margin: 0;
  min-height: 18px;
}
.wishList {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
  display: grid;
  gap: 4px;
  max-height: 170px;
  overflow: auto;
  font-size: 13px;
}
.wishList li {
  background: #fff8ea;
  border-radius: 8px;
  padding: 5px 8px;
  color: #22170e;
}
.wEmpty {
  opacity: 0.7;
}
.chuaCard .frForm input {
  background: #fff;
  color: #22170e;
  border: 1px solid rgba(34, 23, 14, 0.3);
}
.chuaCard .frBtn {
  background: #c8322a;
  color: #fff;
}
.bagCard {
  width: min(720px, 100%);
}
.xpBar {
  height: 10px;
  border-radius: 99px;
  background: #22170e26;
  overflow: hidden;
}
.xpBar i {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #f4b73a, #3f8a3a);
  transition: width 0.3s;
}
.bagGrid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 12px;
}
@media (max-width: 620px) {
  .bagGrid {
    grid-template-columns: 1fr;
  }
}
.stRow {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff8ea;
  border: 1px solid rgba(34, 23, 14, 0.12);
  border-radius: 10px;
  padding: 6px 8px;
  margin-bottom: 6px;
}
.stIc {
  font-size: 22px;
}
.stTx {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.stTx b {
  font-size: 14px;
}
.stTx small {
  font-size: 11.5px;
  color: #6d5a44;
}
.stPlus {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #3f8a3a;
  color: #fff;
  font-weight: 900;
  font-size: 18px;
}
.stPlus:disabled {
  background: #c9bba0;
}
.eqRow {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin-bottom: 6px;
  font-size: 13px;
}
.eqRow small {
  color: #6d5a44;
}
.eqRow button {
  background: #fff8ea;
  border: 1px solid rgba(34, 23, 14, 0.25);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  color: #22170e;
}
.eqRow button.eqOn {
  background: #2f6fb3;
  color: #fff;
  border-color: #2f6fb3;
}
.fitem .takeBtn {
  background: #2f6fb3;
}
.dotNew {
  position: relative;
}
.dotNew:after {
  content: "";
  position: absolute;
  top: 4px;
  right: 4px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #e0362c;
  box-shadow: 0 0 0 2px #fff;
}
.mapCard .frForm input {
  background: #fff !important;
  color: #22170e !important;
  border: 1.5px solid rgba(34, 23, 14, 0.35) !important;
  caret-color: #c8322a;
}
.mapCard .frForm input::placeholder {
  color: #8a7a66 !important;
}
.mapCard .frForm .frBtn {
  background: #c8322a;
  color: #fff;
}
.dzoBtn {
  position: absolute;
  right: 18px;
  bottom: 90px;
  z-index: 6;
  background: linear-gradient(#ffcf4a, #f0a020);
  color: #3a1a06;
  font-weight: 900;
  font-size: 17px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 3px solid #fff;
  box-shadow: 0 6px 18px #00000059;
}
.dzoBtn:active {
  transform: scale(0.94);
}
.dzoBtn[hidden] {
  display: none;
}
.rentGrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 8px 0;
}
.rentGrid button {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: #fff8ea;
  border: 2px solid #f29ab8;
  border-radius: 12px;
  padding: 10px;
  font-weight: 800;
  color: #22170e;
  text-align: left;
}
.rentGrid small {
  font-weight: 500;
  font-size: 11px;
  color: #6d5a44;
}
.otherTg {
  background: #fff1e0 !important;
  border-style: dashed !important;
}
.otherList {
  margin-top: 6px;
  padding: 6px;
  border-radius: 12px;
  background: #c8322a0f;
}
.lkOpts {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  min-width: 0;
}
.lkRow b {
  display: block;
  font-size: 12px;
  margin-bottom: 4px;
}
.lkBtns {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.lkBtn {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 5px 8px;
  border-radius: 9px;
  border: 1.5px solid rgba(0, 0, 0, 0.15);
  background: #fff8ea;
  color: #3a2306;
  font:
    700 12px Be Vietnam Pro,
    sans-serif;
  cursor: pointer;
}
.lkBtn.on {
  border-color: #e08a1a;
  background: #ffe2a8;
  box-shadow: 0 0 0 2px #e08a1a40;
}
.lkSw {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.25);
  display: inline-block;
}
.bagTabs {
  display: flex;
  gap: 6px;
  margin: 0 0 10px;
  flex-wrap: wrap;
}
.bagTabs button {
  background: #fff8ea;
  border: 2px solid rgba(34, 23, 14, 0.15);
  border-radius: 999px;
  padding: 6px 12px;
  font-weight: 800;
  font-size: 13px;
  color: #22170e;
}
.bagTabs button.on {
  background: #c8322a;
  border-color: #c8322a;
  color: #fff;
}
.bagTabs small {
  font-weight: 600;
}
.wdTop {
  display: flex;
  gap: 12px;
  align-items: center;
}
.wdTop canvas {
  width: 150px;
  height: 172px;
  background: radial-gradient(circle, #fff8ea, #e8dcc0);
  border-radius: 12px;
  flex: none;
}
.wdSlots {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.wdSlot {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  background: #fff8ea;
  border: 2px solid rgba(34, 23, 14, 0.15);
  border-radius: 12px;
  padding: 8px 10px;
  text-align: left;
  color: #22170e;
}
.wdSlot.on {
  border-color: #c8322a;
  background: #fff1e0;
}
.wdIc {
  font-size: 20px;
}
.wdSlot small {
  font-size: 11px;
  color: #6d5a44;
}
.wdSlot b {
  font-size: 13px;
}
.wdItems {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 8px;
  margin-top: 10px;
  max-height: 40vh;
  overflow: auto;
}
.wdItem {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  background: #fff8ea;
  border: 2px solid rgba(34, 23, 14, 0.12);
  border-radius: 12px;
  padding: 8px;
  text-align: left;
  color: #22170e;
}
.wdItem.on {
  border-color: #3f8a3a;
  background: #eef7e6;
}
.wdItem b {
  font-size: 13px;
}
.wdItem small {
  font-size: 11px;
  color: #6d5a44;
}
.wdSw {
  width: 26px;
  height: 10px;
  border-radius: 5px;
  border: 1px solid rgba(0, 0, 0, 0.2);
}
@media (max-width: 520px) {
  .wdTop {
    flex-direction: column;
  }
}
.lg {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin: 8px 0 0;
}
.lg input {
  display: block;
  width: 100%;
  margin-top: 4px;
  padding: 9px 10px;
  border-radius: 10px;
  border: 1px solid rgba(34, 23, 14, 0.3);
  font-size: 16px;
  background: #fff;
  color: #22170e;
}
.lgErr {
  color: #a1271f;
  font-size: 13px;
  min-height: 18px;
  margin: 6px 0 0;
}
.dlg .acts.quiz button {
  background: #fff8ea;
  color: #22170e;
  border: 1px solid rgba(34, 23, 14, 0.3);
}
.shop {
  position: absolute;
  inset: 0;
  background: #0a140ec7;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  border-radius: 14px;
  z-index: 6;
}
.shopCard {
  background: #f6efdc;
  color: #2a1b0e;
  border-radius: 16px;
  width: 100%;
  max-width: 760px;
  max-height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 10px 30px #00000080;
}
.shopHead {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: #c8322a;
  color: #fff;
}
.shopHead h3 {
  font-family: var(--display);
  font-size: 22px;
  margin: 0;
  flex: 1;
  line-height: 1.1;
}
.wallet {
  background: #fff3c4;
  color: #5a3a06;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.shopHead button {
  background: #fff3;
  color: #fff;
  padding: 4px 10px;
  border-radius: 8px;
  font-weight: 700;
}
.shopBody {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 12px;
  padding: 12px;
  overflow: auto;
  min-height: 0;
}
.shopBody canvas {
  width: 100%;
  max-width: 200px;
  height: auto;
  aspect-ratio: 200/230;
  background: radial-gradient(circle at 50% 40%, #fff9e8, #e9d9b0);
  border-radius: 12px;
  box-shadow: none;
  cursor: default;
}
.prevNote {
  font-size: 12px;
  color: #6d5a44;
  margin: 6px 0 0;
  text-align: center;
}
.tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.tabs button {
  padding: 5px 12px;
  border-radius: 999px;
  background: #eadfc2;
  font-weight: 700;
  font-size: 13px;
  color: #2a1b0e;
}
.tabs button[aria-pressed="true"] {
  background: #2a1b0e;
  color: #f6efdc;
}
.items {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 8px;
}
.item {
  background: #fffaf0;
  border: 2px solid transparent;
  border-radius: 12px;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  text-align: left;
  color: #2a1b0e;
}
.item.sel {
  border-color: #c8322a;
}
.item b {
  font-size: 14px;
}
.item small {
  color: #6d5a44;
  font-size: 12px;
  line-height: 1.3;
}
.item .row2 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 4px;
  gap: 6px;
}
.item .price {
  font-weight: 800;
  color: #a0620a;
  font-variant-numeric: tabular-nums;
  font-size: 13px;
}
.item .act {
  white-space: nowrap;
  font-size: 12px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 999px;
  background: #c8322a;
  color: #fff;
}
.item .act.own {
  background: #2fae8f;
}
.item .act.on {
  background: #2a1b0e;
}
.item .act:disabled {
  background: #c9bba0;
  cursor: not-allowed;
}
@media (max-width: 560px) {
  .shopBody {
    grid-template-columns: minmax(0, 1fr);
  }
  .shopBody canvas {
    max-width: 130px;
    margin: 0 auto;
    display: block;
  }
  .items {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  }
  .shopHead h3 {
    font-size: 18px;
  }
}
.assets {
  display: flex;
  gap: 10px;
  align-items: center;
}
.assets canvas {
  width: 110px;
  height: auto;
  aspect-ratio: 240/170;
  flex: none;
  border-radius: 10px;
  background: linear-gradient(#bfe0f5, #e9f3ea);
  box-shadow: none;
  cursor: default;
}
.assets ul {
  font-size: 13px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.assets li b {
  color: var(--gold);
  font-weight: 700;
}
.acct {
  background: var(--leaf);
  border-radius: 12px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.acct code {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--gold);
  background: none;
}
.acct small {
  color: var(--muted);
  font-size: 12px;
}
.shopBtn {
  background: var(--gold);
  color: #3a2306;
  font-weight: 800;
  padding: 10px 16px;
  border-radius: 12px;
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
}
html,
body {
  height: 100%;
  overflow: hidden;
}
body {
  padding: 0 !important;
  margin: 0;
}
.wrap {
  max-width: none;
  height: 100vh;
  height: 100dvh;
  gap: 6px;
  padding: 6px max(10px, env(safe-area-inset-right, 0px)) 8px
    max(10px, env(safe-area-inset-left, 0px));
}
header {
  flex: none;
  align-items: center;
  flex-wrap: nowrap;
}
h1 {
  font-size: 24px;
}
.sub {
  margin: 0;
  font-size: 12px;
}
header > div {
  display: flex;
  align-items: baseline;
  gap: 10px;
  min-width: 0;
}
.main {
  flex: 1;
  min-height: 0;
  grid-template-columns: minmax(0, 1fr) 330px;
  align-items: stretch;
  gap: 10px;
}
.stage {
  min-height: 0;
  gap: 6px;
}
.canvasBox {
  flex: 1;
  min-height: 0;
}
#cv {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
}
.hud {
  flex: none;
  flex-wrap: nowrap;
  gap: 6px;
  overflow: hidden;
}
.hud .stat {
  padding: 3px 10px;
  min-width: 64px;
}
.hud .stat b {
  font-size: 18px;
}
.hud .stat small {
  font-size: 10px;
}
.hud .me b {
  font-size: 16px;
  max-width: 130px;
}
.hud .shopBtn {
  padding: 8px 12px;
  font-size: 14px;
  white-space: nowrap;
}
.hud .pick {
  padding: 8px 18px;
  font-size: 17px;
  white-space: nowrap;
}
.side {
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: var(--leaf-2);
  border-radius: 14px;
  overflow: hidden;
}
.sideTabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 6px;
  border-bottom: 1px solid var(--line);
  flex: none;
}
.sideTabs button {
  flex: 1 1 auto;
  font-size: 12.5px;
  padding: 5px 8px;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--line);
  white-space: nowrap;
}
.sideTabs button[aria-selected="true"] {
  background: var(--gold);
  color: #3a2306;
  border-color: var(--gold);
  font-weight: 700;
}
.sideTabs button.dotNew:after {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cherry);
  margin-left: 5px;
  vertical-align: 1px;
}
.sideX {
  display: none;
}
.panes {
  flex: 1;
  min-height: 0;
  position: relative;
}
.pane {
  position: absolute;
  inset: 0;
  overflow: auto;
  padding: 8px 10px;
}
.pane:not(.on) {
  display: none;
}
.pane .panel {
  background: transparent;
  padding: 0;
  margin: 0 0 12px;
  box-shadow: none;
  border: 0;
}
.pane[data-pane="chat"] {
  display: flex;
  flex-direction: column;
}
.pane[data-pane="chat"]:not(.on) {
  display: none;
}
.pane .chatBox {
  flex: 1;
  min-height: 0;
  background: transparent;
  padding: 0;
}
.pane #chatLog {
  flex: 1;
  height: auto;
  min-height: 60px;
}
.quests {
  max-height: none;
}
.helpTxt p {
  font-size: 13.5px;
  margin: 0 0 8px;
  color: var(--text);
}
.rotateTip,
.help {
  display: none !important;
}
.hud .small {
  white-space: nowrap;
}
.hud .me {
  flex: 0 1 auto;
}
@media (max-width: 1440px) {
  .hud .stat:has(#hGreen),
  .hud .stat:has(#hBest) {
    display: none;
  }
}
.tStats .gold {
  color: var(--gold);
}
#tMenu {
  display: none;
}
@media (max-width: 900px), (pointer: coarse) and (max-height: 520px) {
  .wrap {
    padding: 4px 6px 6px;
  }
  header {
    display: none;
  }
  .main {
    grid-template-columns: minmax(0, 1fr);
  }
  .canvasBox canvas#cv {
    border-radius: 10px;
  }
  .hud .stat:not(:has(#hMoney)),
  .hud #pickBtn,
  .hud #sndBtn2,
  .hud #travelBtn {
    display: none;
  }
  #tMenu {
    display: inline-block;
  }
  .side {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    height: min(72dvh, 560px);
    z-index: 60;
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -10px 30px #00000080;
    transform: translateY(105%);
    transition: transform 0.22s ease;
  }
  .side.open {
    transform: none;
  }
  .sideX {
    display: inline-block;
    flex: 0 0 auto !important;
    background: var(--leaf-3) !important;
    color: var(--text) !important;
  }
}
@media (orientation: portrait) and (max-width: 720px) {
  canvas {
    height: auto;
  }
}
@media (orientation: landscape) and (max-height: 520px) {
  .hud {
    display: none;
  }
  .wrap {
    padding: 3px 6px;
  }
}
:root {
  --fsIco: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M4 9V4h5M15 4h5v5M20 15v5h-5M9 20H4v-5'/%3E%3C/svg%3E");
}
.hud .me {
  flex: 1 1 auto;
  min-width: 0;
}
.hud .me .who {
  min-width: 0;
  flex: 0 1 auto;
}
.hud .me b {
  max-width: none;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hud .me .who small {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hud .me .small {
  flex: none;
  white-space: nowrap;
}
.hud .stat,
.hud .shopBtn,
.hud .pick {
  flex: none;
}
.tBtn {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
#tMenu:before,
#tTravel:before,
#zoomBtn:before,
#fsBtn:before {
  font-size: 15px;
  line-height: 1;
}
@media (min-width: 901px) and (max-width: 1365px) {
  .hud .me {
    flex: 0 0 auto;
  }
  .main {
    grid-template-columns: minmax(0, 1fr) 270px;
  }
  .hud .shopBtn {
    padding: 7px 10px;
    font-size: 13px;
  }
  .hud #bagBtn,
  .hud #sotayBtn {
    font-size: 0 !important;
    padding: 7px 11px;
  }
  .hud #bagBtn:before {
    content: "\1f392";
    font-size: 17px;
  }
  .hud #sotayBtn:before {
    content: "\1f4d2";
    font-size: 17px;
  }
  .hud .stat {
    min-width: 56px;
    padding: 3px 8px;
  }
  .sideTabs button {
    font-size: 12px;
    padding: 4px 7px;
  }
}
@media (pointer: coarse), (max-width: 900px) {
  .touchUI {
    display: block;
  }
  .hud #sotayBtn,
  .hud #wheelBtn,
  .hud #bagBtn,
  .hud #travelBtn,
  .hud #sndBtn2,
  .hud #pickBtn {
    display: none !important;
  }
}
@media (pointer: coarse) and (min-width: 700px) and (min-height: 600px) {
  .joy {
    width: 148px;
    height: 148px;
    left: max(20px, env(safe-area-inset-left, 0px));
    bottom: 20px;
  }
  .knob {
    width: 62px;
    height: 62px;
    margin: -31px 0 0 -31px;
  }
  .tPick {
    width: 100px;
    height: 100px;
    font-size: 24px;
    right: max(22px, env(safe-area-inset-right, 0px));
    bottom: 22px;
  }
  .tChatBtn {
    width: 54px;
    height: 54px;
    bottom: 136px;
    right: max(44px, env(safe-area-inset-right, 0px));
  }
  .tTop {
    top: 10px;
    right: 10px;
    gap: 6px;
  }
  .tTop .tBtn {
    min-height: 40px;
    padding: 6px 12px;
    font-size: 14px;
  }
  .tStats {
    top: 10px;
    left: 10px;
    font-size: 15px;
    padding: 7px 14px;
  }
  #evBar {
    top: 58px !important;
  }
  #fxRace {
    top: 62px !important;
  }
  #tutBox {
    top: 96px;
  }
}
@media (max-width: 600px), (max-height: 500px) and (pointer: coarse) {
  .tTop {
    top: 8px !important;
    right: 6px;
    gap: 4px;
    flex-wrap: nowrap !important;
    max-width: none !important;
  }
  .tTop .tBtn {
    min-width: 36px;
    height: 36px;
    padding: 0 6px;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
  }
  #tMenu,
  #tTravel,
  #zoomBtn,
  #fsBtn {
    font-size: 0 !important;
  }
  #tMenu:before {
    content: "\2630";
    font-size: 18px;
  }
  #tTravel:before {
    content: "\1f5fa\fe0f";
    font-size: 16px;
  }
  #zoomBtn:before {
    content: "\1f50d";
    font-size: 15px;
  }
  #fsBtn:before {
    content: "";
    width: 18px;
    height: 18px;
    background: currentColor;
    -webkit-mask: var(--fsIco) center/contain no-repeat;
    mask: var(--fsIco) center/contain no-repeat;
  }
  .tStats {
    top: 8px;
    left: 6px;
    font-size: 12px;
    padding: 4px 9px;
    gap: 8px;
  }
  .tChat {
    top: 52px;
  }
  #tutBox {
    top: 52px;
    left: 6px;
    width: min(300px, calc(100% - 12px));
    padding: 6px 9px;
    font-size: 12px;
    border-radius: 12px;
    border-width: 1.5px;
  }
  #tutBox b {
    font-size: 13px;
  }
  #tutBox p {
    font-size: 11.5px;
    margin: 2px 0 4px;
    line-height: 1.3;
  }
  #tutBox button {
    font-size: 10.5px;
    padding: 1px 7px;
  }
  #tutBox .st {
    display: none;
  }
  #evBar {
    top: 52px !important;
    max-width: 70%;
  }
  #fxRace {
    top: 52px !important;
    right: 6px !important;
    min-width: 120px !important;
    font-size: 10.5px !important;
    padding: 4px 7px !important;
  }
  .toast {
    font-size: 12.5px;
    max-width: 92%;
    white-space: normal;
    text-align: center;
  }
}
@media (max-width: 600px) and (orientation: portrait) {
  .tTop {
    top: 44px !important;
    left: 6px;
    right: 6px;
    justify-content: flex-end;
  }
  .tChat {
    top: 88px;
  }
  #tutBox,
  #evBar,
  #fxRace {
    top: 88px !important;
  }
  .hud {
    gap: 6px;
  }
  .hud .me {
    padding: 4px 6px 4px 10px;
    gap: 6px;
  }
  .hud .me b {
    font-size: 15px;
  }
  .hud .me .who small {
    font-size: 11px;
  }
  .hud .me .small {
    font-size: 11px;
    padding: 3px 8px;
  }
  .hud .stat {
    min-width: 48px;
    padding: 3px 8px;
  }
  .hud .stat b {
    font-size: 16px;
  }
  .wrap {
    padding-bottom: max(6px, env(safe-area-inset-bottom, 0px));
  }
}
@media (max-width: 360px) {
  .tTop {
    gap: 3px;
  }
  .tTop .tBtn {
    min-width: 30px;
    width: 30px;
    height: 32px;
    padding: 0;
    font-size: 14px;
  }
  #tMenu:before {
    font-size: 16px;
  }
  #tTravel:before {
    font-size: 14px;
  }
  #zoomBtn:before {
    font-size: 13px;
  }
  #fsBtn:before {
    width: 15px;
    height: 15px;
  }
  .tStats {
    font-size: 11px;
    gap: 6px;
  }
  .joy {
    width: 100px;
    height: 100px;
  }
  .knob {
    width: 44px;
    height: 44px;
    margin: -22px 0 0 -22px;
  }
  .tPick {
    width: 66px;
    height: 66px;
    font-size: 17px;
  }
  .tChatBtn {
    bottom: 88px;
  }
}
@media (orientation: landscape) and (max-height: 500px) and (pointer: coarse) {
  .wrap {
    padding: 3px max(6px, env(safe-area-inset-right, 0px))
      max(3px, env(safe-area-inset-bottom, 0px))
      max(6px, env(safe-area-inset-left, 0px));
  }
  .joy {
    width: 112px;
    height: 112px;
    bottom: max(10px, env(safe-area-inset-bottom, 0px));
  }
  .tPick {
    width: 76px;
    height: 76px;
    bottom: max(12px, env(safe-area-inset-bottom, 0px));
  }
  .tChatBtn {
    bottom: calc(max(12px, env(safe-area-inset-bottom, 0px)) + 86px);
  }
  #tutBox {
    width: min(320px, 45%);
  }
  .side {
    inset: 0 0 0 auto !important;
    width: min(380px, 62vw) !important;
    height: 100dvh !important;
    border-radius: 16px 0 0 16px !important;
    transform: translate(105%) !important;
    padding-right: env(safe-area-inset-right, 0px);
  }
  .side.open {
    transform: none !important;
  }
  .mapCard {
    max-height: calc(100dvh - 16px);
  }
}
@media (max-width: 600px), (max-height: 500px) and (pointer: coarse) {
  #fbErr {
    top: auto !important;
    bottom: max(12px, env(safe-area-inset-bottom, 0px)) !important;
    font-size: 11.5px !important;
    padding: 6px 10px !important;
  }
}
@media (max-width: 600px) {
  .mapDlg {
    padding: 6px;
  }
  .mapCard {
    padding: 10px 11px;
    border-radius: 12px;
  }
  .mapCard h3 {
    font-size: 19px;
  }
}
@media (max-width: 900px) {
  .hud .spacer {
    display: none;
  }
  .hud .stat {
    margin-left: auto;
  }
}
.fitem {
  flex-wrap: wrap;
}
.fitem .ftx {
  flex: 1 1 150px;
  min-width: 0;
}
.fitem .ftx small,
.fitem .ftx em {
  overflow-wrap: anywhere;
}
.overlay {
  align-items: flex-start;
}
.overlay > * {
  margin: auto;
}
.mgCard canvas {
  width: auto;
  max-width: 100%;
  max-height: calc(100dvh - 170px);
  margin: 0 auto;
}
.mapDlg .mapCard.whCard canvas {
  width: min(280px, calc(100dvh - 150px));
  height: auto;
  aspect-ratio: 1;
}
@media (orientation: landscape) and (max-height: 500px) {
  #evBar span:nth-child(n + 3) {
    display: none;
  }
}
.overlay #goBtn {
  position: sticky;
  bottom: 0;
  z-index: 1;
  box-shadow: 0 0 0 12px var(--leaf-2);
}
#chatIn {
  text-overflow: ellipsis;
}
header > div {
  align-items: center;
}
h1 {
  display: flex;
  align-items: center;
  gap: 0.3em;
}
.brandLogo {
  width: 1em;
  height: 1em;
  border-radius: 0.22em;
  flex: none;
}
.rotHint {
  display: none;
}
@media (orientation: portrait) {
  html.phone .rotHint:not(.off) {
    position: fixed;
    inset: 0;
    z-index: 99;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 24px;
    text-align: center;
    background: #0a140ef0;
    color: #f6ecd8;
  }
}
.rotHint b {
  font-family: var(--display);
  font-size: 22px;
  color: var(--gold);
}
.rotHint p {
  margin: 0;
  font-size: 14px;
  max-width: 280px;
  opacity: 0.9;
}
.rotHint .rotGo {
  width: min(280px, 100%);
  white-space: nowrap;
  font-size: 16px;
  padding-left: 10px;
  padding-right: 10px;
}
.rotHint .rotStay {
  background: none;
  border: 0;
  color: #cfe3d4;
  text-decoration: underline;
  font-size: 14px;
  padding: 8px;
}
.rotHint .rotTip {
  font-size: 12.5px;
  opacity: 0.75;
}
.rotHint .rotTip b {
  font: inherit;
  font-weight: 700;
  color: var(--gold);
}
.rotPhone {
  font-size: 56px;
  animation: rotPhone 2.2s ease-in-out infinite;
}
@keyframes rotPhone {
  0%,
  20% {
    transform: rotate(0);
  }
  50%,
  80% {
    transform: rotate(-90deg);
  }
  to {
    transform: rotate(0);
  }
}
@media (prefers-reduced-motion: reduce) {
  .rotPhone {
    animation: none;
    transform: rotate(-90deg);
  }
}
@media (pointer: coarse) {
  input,
  select,
  textarea {
    font-size: 16px !important;
  }
}
.canvasBox #fxBan {
  left: 8px !important;
  right: auto !important;
  bottom: auto !important;
  transform: none !important;
  align-items: flex-start !important;
  width: auto !important;
  max-width: min(62%, 380px) !important;
}
.canvasBox #fxBan .b {
  font-size: 12.5px;
  padding: 3px 10px;
  gap: 6px;
  line-height: 1.25;
}
.canvasBox #fxBan .b button {
  font-size: 11px;
  padding: 2px 8px;
}
#evBar {
  max-width: min(55%, 330px) !important;
}
@media (pointer: coarse) and (max-width: 900px),
  (pointer: coarse) and (max-height: 500px) {
  .toast {
    top: auto !important;
    bottom: calc(14px + env(safe-area-inset-bottom, 0px));
    max-width: min(52%, 420px) !important;
    font-size: 12.5px;
  }
}
@media (pointer: coarse) and (orientation: portrait) and (max-width: 600px) {
  .toast {
    max-width: 66% !important;
    font-size: 12px;
    padding: 5px 10px;
  }
}
html.phone .canvasBox #fxBan,
html.phone #evBar {
  max-width: min(72%, 340px) !important;
}
html.phone .canvasBox #fxBan .b span,
html.phone #evBar span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  display: block;
}
html.phone .canvasBox #fxBan .b {
  max-width: 100%;
}
html.phone #evBar span:nth-child(n + 3) {
  display: none;
}
#dlg.dlg {
  left: 12px;
  right: auto;
  bottom: 12px;
  width: min(440px, calc(100% - 24px));
  padding: 10px 12px;
  gap: 10px;
  border-radius: 14px;
}
#dlg.dlg canvas {
  width: 44px;
  height: 44px;
  border-radius: 10px;
}
#dlg.dlg b {
  font-size: 16px;
}
#dlg.dlg small {
  font-size: 11.5px;
}
#dlg.dlg p {
  font-size: 14px;
  margin: 2px 0 7px;
  line-height: 1.35;
}
#dlg.dlg .acts {
  gap: 6px;
}
#dlg.dlg .acts button {
  padding: 4px 11px;
  font-size: 12.5px;
}
html.phone #dlg.dlg {
  left: 50%;
  right: auto;
  transform: translate(-50%);
  bottom: 8px;
  width: min(400px, calc(100% - 270px));
  min-width: 250px;
  padding: 8px 10px;
  gap: 8px;
}
html.phone #dlg.dlg canvas {
  width: 34px;
  height: 34px;
  border-radius: 8px;
}
html.phone #dlg.dlg b {
  font-size: 14px;
}
html.phone #dlg.dlg small {
  font-size: 10.5px;
}
html.phone #dlg.dlg p {
  font-size: 12.5px;
  margin: 1px 0 6px;
}
html.phone #dlg.dlg .acts button {
  padding: 3px 9px;
  font-size: 11.5px;
}
@media (orientation: portrait) {
  html.phone #dlg.dlg {
    width: calc(100% - 16px);
    max-width: 420px;
    min-width: 0;
    bottom: 150px;
  }
}
.cgDlg {
  position: fixed;
  inset: max(12px, 4vh) max(12px, 4vw);
  z-index: 70;
  display: flex;
  flex-direction: column;
  background: #1a120a;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 12px 40px #0000008c;
}
.cgBar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 10px;
  background: #3a2306;
  color: #ffd77a;
  font-size: 14px;
}
.cgBar button {
  background: #ffd23a;
  color: #3a2306;
  border: 0;
  border-radius: 10px;
  padding: 5px 12px;
  font-weight: 700;
}
.cgDlg iframe {
  flex: 1;
  width: 100%;
  border: 0;
  background: #2b1a0e;
}
html.phone .cgDlg {
  inset: 0;
  border-radius: 0;
}
:root {
  --navy: #1d2b4a;
  --navy-2: #2b3f6b;
  --wood: #6b3f1f;
  --wood-d: #3a2010;
  --ink: #2a1208;
  --cream: #fbf3e2;
  --cream-2: #fff9ee;
  --sand: #efe0bf;
  --gold: #f4b73a;
  --gold-d: #a8620a;
  --cherry: #e0362c;
  --grass: #3f8a3a;
  --leaf: #fffaf0;
  --leaf-2: #fbf3e2;
  --leaf-3: #efdcb4;
  --text: #2a1a0e;
  --muted: #7a6248;
  --line: rgba(60, 35, 15, 0.16);
  color-scheme: light;
}
html,
body {
  background: #e9dcbd;
  color: var(--text);
}
body {
  background:
    radial-gradient(
        circle at 12% 18%,
        rgba(255, 255, 255, 0.45) 0 2px,
        transparent 3px
      )
      0 0/34px 34px,
    linear-gradient(#f3e8cf, #e6d5b0);
}
.wrap {
  gap: 10px;
}
header.dktHead {
  position: relative;
  height: 74px;
  flex: none;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 14px;
  border-radius: 14px;
  overflow: hidden;
  border: 3px solid var(--ink);
  box-shadow: 0 4px 0 var(--wood-d);
}
.dktScene {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}
.dktBrand {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.dktLogo {
  height: 70px;
  width: auto;
  flex: none;
  filter: drop-shadow(0 3px 0 rgba(0, 0, 0, 0.25));
}
.dktMas {
  height: 66px;
  width: auto;
  flex: none;
  margin-top: 4px;
}
.dktHead:hover .dktMas {
  animation: dktBob 1.6s ease-in-out infinite;
}
@keyframes dktBob {
  50% {
    transform: translateY(-4px) rotate(-3deg);
  }
}
.dktSlogan {
  margin: 0 0 0 4px;
  font:
    800 19px/1.05 "Baloo 2",
    sans-serif;
  color: #fff;
  transform: rotate(-6deg);
  text-shadow:
    0 2px 0 var(--navy),
    2px 0 0 var(--navy),
    -2px 0 0 var(--navy),
    0 -2px 0 var(--navy),
    2px 2px 0 var(--navy);
}
.dktSigns {
  position: relative;
  z-index: 1;
  margin-left: auto;
  display: flex;
  gap: 6px;
  align-items: center;
}
.dktSigns span {
  background: linear-gradient(#a8703f, #7a4a24);
  color: #fff3d6;
  font:
    800 13px "Baloo 2",
    sans-serif;
  padding: 3px 12px 2px;
  border: 2px solid var(--ink);
  border-radius: 6px;
  box-shadow: 0 3px 0 var(--wood-d);
  transform: rotate(-2deg);
  white-space: nowrap;
}
.dktSigns span:nth-child(2) {
  transform: rotate(2deg);
}
header.dktHead .chip {
  position: relative;
  z-index: 1;
  background: #1d2b4ae6;
  color: #fff;
  border: 2px solid var(--gold);
  font-weight: 700;
  white-space: nowrap;
}
@media (max-width: 1180px) {
  .dktSigns {
    display: none;
  }
  header.dktHead .chip {
    margin-left: auto;
  }
}
@media (max-width: 1020px) {
  .dktSlogan {
    display: none;
  }
}
.dktFoot {
  flex: none;
  display: flex;
  align-items: center;
  gap: 18px;
  background: var(--navy);
  color: #fff;
  border-radius: 12px;
  padding: 6px 16px;
  font-size: 13px;
  border: 2px solid var(--ink);
}
.dktFoot b {
  display: flex;
  align-items: center;
  gap: 8px;
  font:
    800 16px "Baloo 2",
    sans-serif;
  letter-spacing: 0.5px;
}
.dktFoot b svg {
  width: 22px;
  height: 22px;
}
.dktFoot i {
  flex: 1;
  text-align: center;
  opacity: 0.9;
}
.dktFoot span {
  opacity: 0.9;
  white-space: nowrap;
}
@media (max-width: 900px), (max-height: 700px) {
  .dktFoot {
    display: none;
  }
}
.canvasBox {
  border-radius: 16px;
  box-shadow:
    0 0 0 3px var(--ink),
    0 0 0 6px var(--gold),
    0 0 0 9px var(--wood),
    0 10px 24px #3a201066;
  margin: 9px 9px 3px;
}
canvas,
#cv {
  border-radius: 13px;
  box-shadow: none;
}
.canvasBox:fullscreen {
  box-shadow: none;
  margin: 0;
}
@media (max-width: 900px) {
  .canvasBox {
    margin: 4px;
    box-shadow:
      0 0 0 3px var(--ink),
      0 0 0 5px var(--gold);
  }
}
.shopBtn,
.go,
.mgHit,
.cbtn,
.stBtn,
.frBtn,
.chatForm button,
.tChat button {
  border: 2.5px solid var(--ink) !important;
  box-shadow: 0 3px 0 var(--ink);
  font-weight: 800;
}
.shopBtn:active,
.go:active,
.mgHit:active,
.cbtn:active,
.stBtn:active,
.frBtn:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 var(--ink);
}
.go {
  background: linear-gradient(#ffd75a, #f4a51e);
  color: var(--ink);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
}
.mgHit {
  background: linear-gradient(#ef4a3c, #c8322a);
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.35);
}
.mgHit:disabled {
  background: #c2b49a;
  box-shadow: none;
}
.frBtn {
  background: var(--gold);
  color: var(--ink);
}
.frBtn.ghost {
  background: var(--cream-2);
  color: var(--text);
  box-shadow: 0 2px 0 var(--ink);
}
.stBtn.ghost {
  background: var(--cream-2);
  color: var(--text);
}
.hud {
  background: linear-gradient(#7a4a24, #55311a);
  border: 3px solid var(--ink);
  border-radius: 14px;
  padding: 6px 8px;
  box-shadow:
    inset 0 2px #ffdca059,
    0 3px 0 var(--wood-d);
}
.hud .me {
  background: var(--cream);
  border: 2.5px solid var(--ink);
  color: var(--text);
  border-radius: 12px;
}
.hud .me b {
  color: var(--navy);
}
.hud .me .who small {
  color: var(--gold-d);
  font-weight: 700;
}
.hud .small {
  background: var(--navy);
  color: #fff;
  border: 2px solid var(--ink);
  font-weight: 700;
}
.hud .stat {
  background: var(--navy);
  border: 2.5px solid var(--gold);
  border-radius: 12px;
  color: #fff;
  position: relative;
  padding-left: 30px !important;
}
.hud .stat small {
  color: #c9d4ee;
  letter-spacing: 0.04em;
}
.hud .stat b {
  color: #fff;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.35);
}
.hud .stat.cherry b {
  color: #ff8a7a;
}
.hud .stat.gold b {
  color: #ffd75a;
}
.hud .stat:before {
  position: absolute;
  left: 7px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  line-height: 1;
}
.hud .stat:has(#hBasket):before {
  content: "\1f352";
}
.hud .stat:has(#hGreen):before {
  content: "\1f7e2";
  font-size: 12px;
}
.hud .stat:has(#hScore):before {
  content: "\2696\fe0f";
}
.hud .stat:has(#hMoney):before {
  content: "\1fa99";
}
.hud .stat:has(#hBest):before {
  content: "\1f3c6";
}
.hud .shopBtn {
  padding: 7px 11px;
  background: linear-gradient(#3a5590, #24365e);
  color: #fff;
  border-color: var(--ink) !important;
  border-radius: 12px;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.4);
}
.hud .shopBtn:hover {
  background: linear-gradient(#4766a8, #2b3f6b);
}
.hud .pick,
.pick {
  background: linear-gradient(#f05040, #c8322a);
  color: #fff;
  border: 3px solid var(--ink);
  border-radius: 14px;
  box-shadow: 0 4px 0 var(--ink);
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.35);
}
.pick:active {
  box-shadow: 0 1px 0 var(--ink);
}
.side {
  background: var(--cream) !important;
  border: 3px solid var(--ink);
  border-radius: 14px;
  box-shadow: 0 4px 0 var(--wood-d);
  color: var(--text);
}
.sideTabs {
  background: linear-gradient(#7a4a24, #55311a);
  border-bottom: 3px solid var(--ink);
  padding: 7px;
  gap: 5px;
}
.sideTabs button {
  background: var(--cream);
  color: var(--navy);
  border: 2px solid var(--ink);
  border-radius: 9px;
  font-weight: 800;
  box-shadow: 0 2px 0 var(--ink);
}
.sideTabs button:hover {
  background: #fff;
}
.sideTabs button[aria-selected="true"] {
  background: var(--gold);
  color: var(--ink);
  border-color: var(--ink);
}
.sideX {
  background: var(--cherry) !important;
  color: #fff !important;
}
.pane .panel h2,
.chatBox h2 {
  display: flex;
  background: var(--navy);
  color: #fff;
  border-radius: 10px;
  padding: 4px 12px;
  font-size: 16px;
  letter-spacing: 0.3px;
  margin: 0 0 8px;
  border: 2px solid var(--ink);
  box-shadow: 0 2px 0 var(--ink);
}
.pane .panel h2 small,
.chatBox h2 small {
  color: #c9d4ee;
}
.chatForm input,
.card input,
.frForm input {
  background: #fff !important;
  color: var(--text) !important;
  border: 2px solid rgba(42, 18, 8, 0.35) !important;
}
.chatForm button {
  background: var(--gold);
  color: var(--ink);
}
.quick button {
  background: var(--cream-2);
  border: 1.5px solid rgba(42, 18, 8, 0.3);
  color: var(--text);
  font-weight: 600;
}
.quick button:hover {
  background: #ffeec8;
}
#chatLog {
  background: var(--cream-2);
  border: 2px solid rgba(42, 18, 8, 0.15);
  border-radius: 10px;
  padding: 6px 8px;
}
#chatLog .who {
  display: inline-block;
  background: var(--navy);
  border-radius: 6px;
  padding: 0 7px;
  font-size: 12.5px;
  line-height: 1.55;
}
#chatLog .npc .who:after {
  color: #c9d4ee;
}
.row .nm em,
.assets li b,
.acct code {
  color: var(--gold-d);
}
.row button.talk {
  background: var(--gold);
  color: var(--ink);
  border: 1.5px solid var(--ink);
  font-weight: 700;
}
#feed li.bad {
  color: #b32a20;
}
#feed li.good {
  color: var(--gold-d);
  font-weight: 600;
}
.frBox h4 {
  color: var(--navy);
}
.frMsg {
  background: var(--sand);
}
.frMsg.me {
  background: var(--gold);
}
.qrow {
  background: var(--cream-2);
  border: 2px solid rgba(42, 18, 8, 0.14);
}
.qrow i {
  background: #2a12081f;
}
.helpTxt p {
  color: var(--text);
}
.helpTxt kbd {
  background: var(--navy);
  color: #fff;
  border-radius: 5px;
  padding: 0 5px;
  font-size: 12px;
}
#tutHelp .gd {
  background: var(--cream-2);
  border: 2px solid rgba(42, 18, 8, 0.14);
}
#tutHelp .gd h3 {
  color: var(--navy);
}
#tutHelp .gd li::marker {
  color: var(--cherry);
}
#tutHelp .gdBar {
  background: #2a12081f;
}
#tutHelp .tutUL div {
  background: #2a12080d;
}
.acct {
  background: var(--sand);
  border: 2px dashed rgba(42, 18, 8, 0.25);
}
.dice {
  background: var(--navy);
  color: #fff;
  border: 2px solid var(--ink);
  font-weight: 700;
}
.assets canvas {
  border: 2px solid var(--ink);
}
.overlay {
  background: radial-gradient(circle at 50% 40%, #2b3f6b8c, #141c32d1);
}
.card {
  background: var(--cream);
  border: 3px solid var(--ink);
  box-shadow:
    0 6px 0 var(--wood-d),
    0 18px 40px #0006;
  border-radius: 18px;
}
.card h3 {
  color: var(--navy);
}
.dktStart {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: -6px 0 2px;
}
.dktStart svg {
  width: 62px;
  height: auto;
  flex: none;
  animation: dktBob 1.6s ease-in-out infinite;
}
.dktStart b {
  font:
    800 26px/1 "Baloo 2",
    sans-serif;
  color: #ffb21e;
  -webkit-text-stroke: 1.5px var(--ink);
  text-shadow: 0 3px 0 var(--ink);
}
.dktStart b i {
  font-style: normal;
  color: #fff;
  -webkit-text-stroke: 1.5px var(--navy);
  text-shadow: 0 3px 0 var(--navy);
}
.hats button {
  border: 3px solid var(--ink) !important;
  box-shadow: 0 2px 0 var(--ink);
}
.hats button[aria-pressed="true"] {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}
.mapDlg,
.shop {
  background: radial-gradient(circle at 50% 40%, #2b3f6b73, #141c32cc);
}
.mapCard {
  background: var(--cream);
  border: 3px solid var(--ink);
  border-radius: 16px;
  box-shadow:
    0 6px 0 var(--wood-d),
    0 16px 36px #00000073;
}
.mapCard .mh {
  padding-bottom: 8px;
  margin-bottom: 8px;
  border-bottom: 2px dashed rgba(42, 18, 8, 0.2);
}
.mapCard h3 {
  flex: 0 1 auto !important;
  background: var(--navy);
  color: #fff;
  padding: 2px 14px;
  border-radius: 10px;
  border: 2px solid var(--ink);
  box-shadow: 0 2px 0 var(--ink);
  font-size: 19px;
}
.mapCard .mh button {
  margin-left: auto;
  background: var(--cherry);
  color: #fff;
  border: 2px solid var(--ink);
  box-shadow: 0 2px 0 var(--ink);
  font-weight: 800;
}
.mapCard svg {
  border: 2px solid var(--ink);
}
.mapH {
  color: var(--navy) !important;
  font-weight: 800;
}
.mapGrid button,
.mapGo button,
.fitem,
.cbox,
.stRow,
.wdSlot,
.wdItem,
.dayBox,
.evItem,
.ach,
.qTier,
#hpBody .hpCard,
#actBody .sr,
.item,
.rentGrid button,
#btAv button {
  border: 2px solid rgba(42, 18, 8, 0.22);
  box-shadow: 0 2px #2a120833;
}
.mapGrid button:hover,
.mapGo button:hover,
.wdItem:hover,
.item:hover {
  border-color: var(--ink);
  background: #fff;
}
.mapGrid button.here,
.mapGo button.here {
  border-color: var(--cherry);
  background: #ffe9e2;
}
.fitem button,
.item .act,
.cbtn,
.stBtn {
  border: 2px solid var(--ink);
  box-shadow: 0 2px 0 var(--ink);
}
.bagTabs button {
  border: 2px solid var(--ink);
  box-shadow: 0 2px 0 var(--ink);
  background: var(--cream-2);
}
.bagTabs button.on {
  background: var(--navy);
  border-color: var(--ink);
  color: #fff;
}
.xpBar,
.bar {
  border: 2px solid var(--ink);
  background: #e2d3b2;
}
.xpBar i,
.bar i {
  background: linear-gradient(90deg, #ffd75a, #3f8a3a);
}
.hqh,
.stCard h4 {
  color: var(--navy) !important;
}
.stPlus {
  border: 2px solid var(--ink);
  box-shadow: 0 2px 0 var(--ink);
}
.mgCard canvas,
.wdTop canvas,
.shopBody canvas {
  border: 2px solid var(--ink);
}
.shopCard {
  background: var(--cream);
  border: 3px solid var(--ink);
  border-radius: 16px;
  box-shadow:
    0 6px 0 var(--wood-d),
    0 16px 36px #00000073;
}
.shopHead {
  background: linear-gradient(#7a4a24, #55311a);
  border-bottom: 3px solid var(--ink);
}
.shopHead h3 {
  text-shadow: 0 2px 0 var(--ink);
}
.wallet {
  background: var(--navy);
  color: #ffd75a;
  border: 2px solid var(--gold);
}
.shopHead button {
  background: var(--cherry);
  border: 2px solid var(--ink);
  box-shadow: 0 2px 0 var(--ink);
}
.tabs button {
  background: var(--cream-2);
  border: 2px solid var(--ink);
  box-shadow: 0 2px 0 var(--ink);
  color: var(--navy);
}
.tabs button[aria-pressed="true"] {
  background: var(--navy);
  color: #fff;
}
.item {
  background: var(--cream-2);
}
.item.sel {
  border-color: var(--cherry);
  background: #fff1e0;
}
.dlg {
  background: var(--cream);
  border: 3px solid var(--ink);
  box-shadow:
    0 5px 0 var(--wood-d),
    0 10px 24px #00000059;
  color: var(--text);
}
.dlg canvas {
  border: 2.5px solid var(--ink);
  background: #f6e2b4;
}
.dlg b {
  display: inline-block;
  background: var(--navy);
  color: #fff;
  padding: 0 10px;
  border-radius: 8px;
  font-size: 16px;
}
.dlg .acts button {
  background: var(--navy);
  border: 2px solid var(--ink);
  box-shadow: 0 2px 0 var(--ink);
  font-weight: 700;
}
.dlg .acts button.ghost {
  background: var(--cream-2);
  color: var(--text);
  border: 2px solid rgba(42, 18, 8, 0.4);
}
.dlg .acts.quiz button {
  border: 2px solid rgba(42, 18, 8, 0.4);
}
.toast {
  background: var(--navy);
  color: #fff;
  border: 2.5px solid var(--gold);
  box-shadow: 0 3px 0 var(--ink);
  border-radius: 12px;
}
.tStats {
  background: linear-gradient(#7a4a24, #55311a);
  color: #fff3d6;
  border: 2.5px solid var(--ink);
  box-shadow: 0 2px 0 var(--ink);
}
.tStats b {
  color: #ff9a8a;
}
.tBtn {
  background: var(--navy);
  color: #fff;
  border: 2px solid var(--gold);
  box-shadow: 0 2px 0 var(--ink);
}
.tBtn[aria-pressed="true"] {
  background: var(--gold);
  color: var(--ink);
  border-color: var(--ink);
}
.tChatBtn {
  background: var(--navy);
  color: #fff;
  border: 2.5px solid var(--gold);
  box-shadow: 0 3px 0 var(--ink);
}
.tChat input {
  background: #fff;
  color: var(--text);
  border: 2px solid var(--ink);
}
.tPick {
  background: radial-gradient(circle at 40% 30%, #ff6a55, #c8322a);
  border: 3.5px solid var(--ink);
  box-shadow:
    0 5px 0 var(--ink),
    0 8px 18px #0006;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.4);
}
.tPick.held {
  box-shadow: 0 1px 0 var(--ink);
}
.joy {
  background: radial-gradient(circle, #1d2b4a40, #1d2b4a8c);
  border: 3px solid rgba(255, 215, 90, 0.75);
}
.knob {
  background: radial-gradient(circle at 35% 30%, #fff3b0, #f4b73a);
  border: 2.5px solid var(--ink);
}
#tutBox,
#pvTip,
#tugBox {
  background: #1d2b4af0 !important;
  border-color: var(--gold) !important;
  box-shadow:
    0 4px 0 var(--ink),
    0 8px 20px #00000059;
}
#evBar span {
  background: var(--navy);
  border: 2px solid var(--gold);
  color: #ffd75a;
}
#fxRace {
  background: #1d2b4af0;
}
.dzoBtn {
  border-color: var(--ink);
  box-shadow: 0 4px 0 var(--ink);
}
.mapCard,
.shopCard {
  max-height: calc(100dvh - 16px) !important;
  overflow-y: auto !important;
}
@media (min-width: 701px) {
  .canvasBox .mapDlg,
  .canvasBox .shop {
    position: fixed !important;
    inset: 0 !important;
    z-index: 80 !important;
  }
}
.mapCard[data-fitw] > svg,
.mapCard[data-fitw] .mapSvg,
.mapCard[data-fitw] > div > svg {
  max-height: 32vh;
  width: 100%;
}
.side,
.mapCard,
.shopCard,
.dlg,
.card {
  font-size: 15px;
}
.mapNote,
.mapCard p,
.shopCard p {
  font-size: 14px;
}
.mapCard small,
.shopCard small,
.side small {
  font-size: max(12px, 1em * 0.82);
}
#chatLog {
  font-size: 15.5px;
}
.quick button {
  font-size: 14px;
}
.hud .stat small {
  font-size: 11px;
}
.hud .stat b {
  font-size: 20px;
}
.tStats {
  font-size: 14px;
}
.toast {
  font-size: 16px;
}
.qTabs {
  display: flex;
  gap: 6px;
  margin: 0 0 8px;
}
.qTabs button {
  flex: 1;
  background: var(--cream-2);
  border: 2px solid var(--ink);
  border-radius: 10px;
  padding: 6px 4px;
  font-weight: 800;
  font-size: 14px;
  color: var(--navy);
  box-shadow: 0 2px 0 var(--ink);
}
.qTabs button.on {
  background: var(--navy);
  color: #fff;
}
.pane.qWeek #dqBox {
  display: none !important;
}
.pane.qDay h2:has(#qCount),
.pane.qDay #qTier,
.pane.qDay #quests,
.pane.qDay #quests + .qPager {
  display: none !important;
}
.enNow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 10px;
}
.enNow span {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--navy);
  color: #fff;
  border: 2px solid var(--ink);
  border-radius: 12px;
  padding: 6px 4px;
  font-size: 18px;
}
.enNow b {
  font:
    800 20px "Baloo 2",
    sans-serif;
  color: #ffd75a;
}
.enNow small {
  font-size: 12px;
  color: #c9d4ee;
}
.enRules {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.enRules div {
  background: var(--cream-2);
  border: 2px solid rgba(42, 18, 8, 0.18);
  border-radius: 10px;
  padding: 7px 9px;
}
.enRules h4 {
  margin: 0 0 3px;
  font:
    800 15px "Baloo 2",
    sans-serif;
  color: var(--navy);
}
.enRules p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.4;
}
@media (max-width: 600px) {
  .enNow {
    grid-template-columns: repeat(2, 1fr);
  }
  .enRules {
    grid-template-columns: 1fr;
  }
}
ul.quests {
  display: flex;
  flex-direction: column;
}
.side .qrow {
  padding: 4px 9px 7px !important;
  margin: 0 0 4px !important;
  position: relative;
  line-height: 1.25;
}
.side .qrow .qt {
  display: block;
  font-size: 14.5px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.side .qrow small {
  display: block;
  font-size: 12.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.side .qrow i {
  position: absolute !important;
  left: 9px;
  right: 9px;
  bottom: 3px;
  height: 3px !important;
  margin: 0 !important;
}
.side .pane .panel h2 {
  font-size: 16px;
  padding: 4px 10px;
  margin-bottom: 6px;
}
.side .mapNote {
  font-size: 13px;
  margin: 4px 0;
}
.side #dqBox .mapNote {
  display: none;
}
.side .qTier {
  padding: 5px 8px !important;
  font-size: 11px;
}
.qPager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 4px 0 8px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--navy);
  grid-column: 1/-1;
}
.qPager button {
  background: var(--navy);
  color: #fff;
  border: 2px solid var(--ink);
  border-radius: 8px;
  width: 36px;
  height: 30px;
  font-weight: 800;
  box-shadow: 0 2px 0 var(--ink);
  padding: 0;
}
.qPager button:disabled {
  background: #d8ccb0;
  color: var(--muted);
  box-shadow: none;
  border-color: #2a12084d;
}
.hud .stat.en:before {
  content: "\26a1";
}
.hud .stat.en b {
  color: #9fe0ff;
}
.hud .stat.en .enBar {
  position: absolute;
  left: 30px;
  right: 8px;
  bottom: 4px;
  height: 4px;
  border-radius: 3px;
  background: #ffffff2e;
  overflow: hidden;
}
.hud .stat.en .enBar u {
  display: block;
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, #ff6a4a, #ffd23f 35%, #5fd0ff);
  transition: width 0.3s;
}
.hud .stat.en.low {
  border-color: #ff6a4a;
  animation: enPulse 1s ease-in-out infinite;
}
.hud .stat.en.low b {
  color: #ff9a8a;
}
@keyframes enPulse {
  50% {
    box-shadow: 0 0 0 3px #ff6a4a73;
  }
}
.tStats .low {
  color: #ff9a8a;
  font-weight: 800;
}
#tEn {
  color: #9fe0ff;
}
.skPane {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.skTop {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--navy);
  color: #fff;
  border: 2px solid var(--ink);
  border-radius: 12px;
  padding: 6px 10px;
  box-shadow: 0 2px 0 var(--ink);
}
.skPts {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 64px;
  line-height: 1;
}
.skPts b {
  font:
    800 26px "Baloo 2",
    sans-serif;
  color: #ffd75a;
}
.skPts small {
  font-size: 10.5px;
  color: #c9d4ee;
}
.skInfo {
  margin: 0;
  flex: 1;
  font-size: 13.5px;
  color: #dfe6f5;
  line-height: 1.35;
}
.skReset {
  background: var(--cream-2);
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 9px;
  padding: 5px 9px;
  font-weight: 800;
  font-size: 12px;
  box-shadow: 0 2px 0 var(--ink);
  white-space: nowrap;
}
.skGrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.skCol {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: #2a12080d;
  border: 2px solid rgba(42, 18, 8, 0.12);
  border-radius: 12px;
  padding: 6px;
}
.skCol h4 {
  margin: 0;
  font:
    800 16px "Baloo 2",
    sans-serif;
  color: var(--navy);
}
.skCol h4 small {
  font:
    600 12.5px Be Vietnam Pro,
    sans-serif;
  color: var(--muted);
}
.skCard {
  position: relative;
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 2px 7px;
  align-items: start;
  background: var(--cream-2);
  border: 2px solid rgba(42, 18, 8, 0.22);
  border-radius: 10px;
  padding: 6px 7px;
  box-shadow: 0 2px #2a12082e;
}
.skCard:before {
  content: "";
  position: absolute;
  left: 21px;
  top: -8px;
  width: 3px;
  height: 8px;
  background: #2a120840;
}
.skCol h4 + .skCard:before {
  display: none;
}
.skCard.has {
  border-color: var(--ink);
  background: #fff6dc;
}
.skCard.lock {
  opacity: 0.62;
}
.skIc {
  grid-row: span 2;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  font-size: 17px;
  background: var(--navy);
  border: 2px solid var(--ink);
  border-radius: 9px;
}
.skCard.has .skIc {
  background: var(--gold);
}
.skTx {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.skTx b {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  color: var(--navy);
}
.skTx small {
  font-size: 13px;
  line-height: 1.3;
  color: var(--text);
}
.skTx em {
  font-size: 12px;
  line-height: 1.25;
  color: var(--muted);
  font-style: normal;
}
.skPips {
  display: inline-flex;
  gap: 2px;
}
.skPips i {
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: #2a12082e;
  border: 1px solid rgba(42, 18, 8, 0.35);
}
.skPips i.on {
  background: var(--gold);
  border-color: var(--ink);
}
.skUp {
  grid-column: 2;
  justify-self: start;
  margin-top: 3px;
  background: var(--gold);
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 8px;
  padding: 3px 12px;
  font-weight: 800;
  font-size: 13px;
  box-shadow: 0 2px 0 var(--ink);
}
.skUp:disabled {
  background: #e2d3b2;
  color: var(--muted);
  box-shadow: none;
  border-color: #2a12084d;
}
@media (max-width: 700px) {
  .skGrid {
    grid-template-columns: 1fr;
  }
  .skInfo {
    display: none;
  }
}
.skBrTabs {
  display: flex;
  gap: 5px;
}
.skBrTabs button {
  flex: 1;
  background: var(--cream-2);
  border: 2px solid var(--ink);
  border-radius: 9px;
  padding: 5px 4px;
  font-weight: 800;
  font-size: 12px;
  color: var(--navy);
  box-shadow: 0 2px 0 var(--ink);
}
.skBrTabs button.on {
  background: var(--navy);
  color: #fff;
}
.mgSpd {
  display: inline-block;
  margin: 2px 0 4px;
  padding: 2px 10px;
  border-radius: 999px;
  border: 2px solid var(--ink);
  background: #e8f4d8;
  color: var(--ink);
  font-weight: 800;
  font-size: 13px;
}
.mgSpd:empty {
  display: none;
}
.mgSpd[data-lv="3"] {
  background: #fff0b8;
}
.mgSpd[data-lv="4"] {
  background: #ffd6a8;
}
.mgSpd[data-lv="5"] {
  background: #ffb0a0;
}
.skSec {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.mapCard .skSec h3 {
  background: none !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  color: var(--navy) !important;
  border-radius: 0 !important;
}
.skSec h3 {
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
  font:
    800 17px "Baloo 2",
    sans-serif;
  color: var(--navy);
}
.skSec h3 small {
  font:
    600 12.5px Be Vietnam Pro,
    sans-serif;
  color: var(--muted);
}
.skSec.act {
  background: linear-gradient(#fff1d6, #ffe7bd);
  border: 2px solid var(--ink);
  border-radius: 12px;
  padding: 7px;
  box-shadow: 0 2px 0 var(--ink);
}
.skActGrid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
}
.skCard.act:before {
  display: none;
}
.skCard.act .skIc {
  background: #c8322a;
  border-radius: 50%;
}
.skCard.act.has .skIc {
  background: linear-gradient(#ff7a4a, #c8322a);
}
.skMeta {
  font-size: 12px;
  font-weight: 700;
  color: #a8620a;
}
@media (max-width: 900px) {
  .skActGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 700px) {
  .skActGrid {
    grid-template-columns: 1fr;
  }
}
.skBar {
  position: absolute;
  right: 12px;
  bottom: 14px;
  z-index: 6;
  display: flex;
  gap: 8px;
}
.skBtn {
  position: relative;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 3px solid var(--ink);
  background: radial-gradient(circle at 40% 30%, #3a5590, #1d2b4a);
  box-shadow:
    0 4px 0 var(--ink),
    0 6px 14px #00000059;
  padding: 0;
  cursor: pointer;
  touch-action: none;
}
.skBtn .ic {
  font-size: 24px;
  line-height: 46px;
  display: block;
}
.skBtn .key {
  position: absolute;
  left: -4px;
  top: -4px;
  width: 18px;
  height: 18px;
  border-radius: 6px;
  background: var(--gold);
  border: 2px solid var(--ink);
  font:
    800 11px/14px Be Vietnam Pro,
    sans-serif;
  color: var(--ink);
  font-style: normal;
}
.skBtn .en {
  position: absolute;
  right: -6px;
  bottom: -5px;
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: 8px;
  padding: 0 3px;
  font:
    800 9.5px/13px Be Vietnam Pro,
    sans-serif;
  color: #1d6fa8;
  font-style: normal;
}
.skBtn:after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(
    rgba(10, 14, 28, 0.72) var(--cd, 0deg),
    transparent 0
  );
  pointer-events: none;
}
.skBtn .cd {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 1;
  font:
    800 17px "Baloo 2",
    sans-serif;
  color: #fff;
  text-shadow: 0 2px 0 var(--ink);
}
.skBtn.noen:not(.cool) {
  filter: grayscale(0.8) brightness(0.8);
}
.skBtn.off {
  opacity: 0.45;
}
.skBtn:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 var(--ink);
}
body.mob .skBar {
  --r: 150px;
  --b: 48px;
  position: absolute;
  display: block;
  width: 0;
  height: 0;
  top: auto;
  transform: none;
  gap: 0;
  right: calc(max(16px, env(safe-area-inset-right, 0px)) + 44px);
  bottom: calc(max(16px, env(safe-area-inset-bottom, 0px)) + 44px);
}
body.mob .skBtn {
  position: absolute;
  width: var(--b);
  height: var(--b);
  margin: calc(var(--b) / -2) 0 0 calc(var(--b) / -2);
  left: calc(-1 * var(--r) * var(--c));
  top: calc(-1 * var(--r) * var(--s));
}
body.mob .skBtn:nth-child(1) {
  --c: 0.961;
  --s: 0.276;
}
body.mob .skBtn:nth-child(2) {
  --c: 0.719;
  --s: 0.695;
}
body.mob .skBtn:nth-child(3) {
  --c: 0.309;
  --s: 0.951;
}
body.mob .skBtn:nth-child(4) {
  --c: -0.174;
  --s: 0.985;
}
body.mob .skBtn .ic {
  line-height: calc(var(--b) - 6px);
  font-size: calc(var(--b) * 0.46);
}
body.mob .skBtn .key {
  display: none;
}
body.mob .skBtn .en {
  font-size: 9px;
  line-height: 12px;
  right: -8px;
  bottom: -6px;
}
body.mob .skBtn:active {
  transform: scale(0.9);
  box-shadow: 0 1px 0 var(--ink);
}
@media (max-height: 400px) {
  body.mob .skBar {
    --b: 44px;
  }
}
@media (min-width: 700px) and (min-height: 700px) {
  body.mob .skBar {
    --r: 164px;
    --b: 54px;
  }
}
.mscGrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(64px, 1fr));
  gap: 6px;
}
.mscGrid.sm {
  grid-template-columns: repeat(11, minmax(0, 1fr));
  gap: 4px;
}
.mscBtn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  padding: 3px 2px 4px;
  border-radius: 10px;
  background: var(--cream-2);
  border: 2px solid rgba(42, 18, 8, 0.2);
  box-shadow: 0 2px #2a12082e;
  color: var(--text);
}
.mscBtn canvas {
  display: block;
  aspect-ratio: auto !important;
  max-width: 100%;
  height: auto !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 0;
  cursor: pointer;
}
.mscBtn small {
  font-size: 11.5px;
  font-weight: 800;
  line-height: 1.1;
  text-align: center;
  color: var(--navy);
}
.mscBtn:hover {
  border-color: var(--ink);
  background: #fff;
}
.mscBtn.on {
  border-color: var(--ink);
  background: #ffe7a8;
  box-shadow:
    0 0 0 2px var(--gold),
    0 2px 0 var(--ink);
}
.mscGrid.sm .mscBtn {
  padding: 2px 0;
  border-radius: 8px;
}
.mscInfo {
  margin: 6px 0 0 !important;
  font-size: 14px !important;
  color: var(--muted);
}
.mscInfo b {
  display: inline !important;
  font-size: 12.5px !important;
  margin: 0 !important;
  color: var(--navy);
}
.mscRow {
  margin-bottom: 4px;
}
@media (max-width: 480px) {
  .mscGrid.sm {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}
@media (max-width: 900px),
  (pointer: coarse) and (max-height: 520px),
  (orientation: landscape) and (max-height: 520px) {
  header.dktHead {
    display: none;
  }
}
@media (max-width: 900px), (pointer: coarse) and (max-height: 520px) {
  .side {
    border-radius: 18px 18px 0 0;
    border-bottom: 0;
  }
  .hud {
    padding: 4px 6px;
    border-width: 2.5px;
  }
}
header.dktHead,
.dktFoot {
  display: none !important;
}
html,
body {
  overflow: hidden;
}
.wrap {
  padding: env(safe-area-inset-top, 0px) env(safe-area-inset-right, 0px)
    env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px) !important;
  gap: 0 !important;
  height: 100dvh !important;
  max-width: none !important;
}
.main {
  gap: 0 !important;
  grid-template-columns: minmax(0, 1fr) clamp(260px, 21vw, 330px) !important;
}
.stage {
  gap: 0 !important;
}
.canvasBox {
  margin: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
canvas,
#cv {
  border-radius: 0 !important;
}
.hud {
  border-radius: 0 !important;
  border-width: 2px 0 0 !important;
  padding: 3px 6px !important;
  box-shadow: none !important;
  gap: 5px !important;
}
.side {
  border-radius: 0 !important;
  border: 0 !important;
  border-left: 3px solid var(--ink) !important;
  box-shadow: none !important;
}
.sideTabs {
  padding: 4px !important;
  gap: 4px !important;
  border-bottom-width: 2px !important;
}
.sideTabs button {
  padding: 4px 6px !important;
  font-size: 13px !important;
  box-shadow: 0 1px 0 var(--ink) !important;
}
.chatBox h2 {
  display: none !important;
}
.pane {
  padding: 6px 8px !important;
}
#chatLog {
  border: 0 !important;
  border-radius: 6px !important;
  margin: 0 !important;
}
#conn.connOv {
  position: absolute;
  top: 6px;
  right: 8px;
  z-index: 5;
  font-size: 12px;
  padding: 3px 9px;
  background: #1d2b4ae0;
  color: #fff;
  border: 2px solid var(--gold);
  border-radius: 999px;
  pointer-events: none;
}
@media (max-width: 900px), (pointer: coarse) {
  #conn.connOv {
    display: none;
  }
}
@media (max-width: 900px), (pointer: coarse) and (max-height: 520px) {
  .main {
    grid-template-columns: minmax(0, 1fr) !important;
  }
  .side {
    border-left: 0 !important;
    border-top: 3px solid var(--ink) !important;
  }
}
#mapDlg .mapCard {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  column-gap: 14px;
  row-gap: 6px;
  width: min(1320px, 98vw) !important;
  max-width: 98vw !important;
  height: calc(100dvh - 16px);
  max-height: calc(100dvh - 16px) !important;
  overflow: hidden !important;
  padding: 10px 12px !important;
}
#mapDlg .mapCard > .mh {
  grid-column: 1/-1;
  margin: 0 !important;
  padding-bottom: 6px !important;
}
#mapDlg .mapCard > p.mapNote:first-of-type {
  grid-column: 1;
  grid-row: 2;
  margin: 0 !important;
  font-size: 13px;
}
#mapDlg .mapCard > svg {
  grid-column: 1;
  grid-row: 3;
  width: 100% !important;
  height: 100% !important;
  max-height: none !important;
  min-height: 0;
  align-self: stretch;
}
#mapDlg .mapCard > #pvMapProg {
  grid-column: 1;
  grid-row: 4;
  margin: 0 !important;
  font-size: 13px;
  align-self: end;
}
#mapDlg .mapCard > #mapGo {
  grid-column: 2;
  grid-row: 2/4;
  overflow-y: auto !important;
  max-height: none !important;
  min-height: 0;
  padding: 0 6px 6px 0;
  overscroll-behavior: contain;
}
#mapDlg .mapCard > .pvShops {
  grid-column: 2;
  grid-row: 4;
  margin: 0 !important;
  align-self: end;
}
#mapDlg .mapCard > p.mapNote:last-of-type {
  display: none;
}
#mapDlg .mapCard > * {
  zoom: 1 !important;
}
#mapDlg .mapH {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--cream);
  margin: 0 !important;
  padding: 6px 0 4px !important;
  font-size: 15px !important;
}
#mapDlg .mapGrid {
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)) !important;
  gap: 7px !important;
  margin-bottom: 6px;
}
#mapDlg .mapGrid button {
  padding: 9px 10px !important;
  font-size: 12.5px !important;
  min-height: 52px;
  cursor: pointer;
}
#mapDlg .mapGrid button b {
  font-size: 15px !important;
}
#mapDlg .mapGrid button:hover:not(:disabled) {
  transform: translateY(-1px);
  border-color: var(--ink);
}
#mapDlg .mapGrid button:disabled {
  opacity: 0.55;
}
#mapDlg svg [data-to] {
  cursor: pointer;
}
#mapDlg svg [data-to]:hover circle {
  stroke: #ffd75a;
  stroke-width: 4;
}
#mapDlg .qPager {
  display: none !important;
}
@media (max-width: 760px) {
  #mapDlg .mapCard {
    grid-template-columns: 1fr;
    grid-template-rows: auto 0 24vh minmax(0, 1fr) auto;
    padding: 8px !important;
  }
  #mapDlg .mapCard > p.mapNote:first-of-type {
    display: none;
  }
  #mapDlg .pvShops .mapH {
    display: none;
  }
  #mapDlg .pvShops .mapGrid button {
    min-height: 40px !important;
    padding: 6px 8px !important;
  }
  #mapDlg .mapCard > p.mapNote:first-of-type {
    grid-row: 2;
  }
  #mapDlg .mapCard > svg {
    grid-row: 3;
  }
  #mapDlg .mapCard > #pvMapProg {
    display: none;
  }
  #mapDlg .mapCard > #mapGo {
    grid-column: 1;
    grid-row: 4;
  }
  #mapDlg .mapCard > .pvShops {
    grid-column: 1;
    grid-row: 5;
  }
  #mapDlg .mapGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}
html {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.canvasBox,
.hud,
.sideTabs,
.skBar,
.touchUI {
  -webkit-user-select: none;
  user-select: none;
}
button {
  touch-action: manipulation;
}
.ambBtn {
  position: absolute;
  left: 50%;
  top: 56px;
  transform: translate(-50%);
  z-index: 7;
  background: linear-gradient(#ff5a4a, #c8322a);
  color: #fff;
  border: 3px solid var(--ink);
  border-radius: 999px;
  padding: 10px 20px;
  font:
    800 16px "Baloo 2",
    sans-serif;
  box-shadow: 0 4px 0 var(--ink);
  animation: enPulse 1s infinite;
}
.hud .stat.en[data-st="weak"] {
  border-color: #f2c230;
}
.hud .stat.en[data-st="exh"] {
  border-color: #ff8a2a;
  animation: enPulse 1s infinite;
}
.hud .stat.en[data-st="sick"] {
  border-color: #e0362c;
  animation: enPulse 0.8s infinite;
}
.hud .stat.en[data-st="dead"] {
  border-color: #8a7cff;
}
.hud .stat.en[data-st="sick"] b,
.hud .stat.en[data-st="exh"] b {
  color: #ffb0a0;
}
.tStats [data-st="sick"],
.tStats [data-st="exh"] {
  color: #ff9a8a;
}
.ndList {
  list-style: none;
  margin: 6px 0;
  padding: 0;
}
.ndList li {
  background: var(--cream-2);
  border: 2px solid rgba(42, 18, 8, 0.15);
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 15px;
}
@media (pointer: coarse) {
  .hud .shopBtn,
  .hud .pick,
  .tBtn,
  .mapCard .mh button,
  .shopHead button,
  .chatForm button,
  .frBtn,
  .stBtn,
  .cbtn,
  .go,
  .mgHit {
    min-height: 44px;
  }
  .tBtn {
    min-width: 44px;
  }
  .sideTabs button,
  .bagTabs button,
  .tabs button,
  .qTabs button,
  .skBrTabs button {
    min-height: 42px;
  }
  .fitem button,
  .item .act,
  .skUp,
  .lkBtn,
  .mscBtn,
  .wdItem,
  .quick button {
    min-height: 40px;
  }
  .qPager button {
    width: 44px;
    height: 40px;
  }
  .mapGrid button {
    min-height: 56px;
  }
  #chatIn,
  .chatForm input {
    min-height: 44px;
    font-size: 16px;
  }
  .skBtn {
    width: 56px;
    height: 56px;
  }
  .skBtn .ic {
    line-height: 50px;
    font-size: 26px;
  }
}
.hud {
  background: #3a2210 !important;
  border: 0 !important;
  border-top: 2px solid #2a1208 !important;
  border-radius: 0 !important;
  padding: 2px 4px !important;
  gap: 4px !important;
  box-shadow: none !important;
  align-items: center !important;
}
.hud > * {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}
.hud .stat small {
  display: none !important;
}
.hud .stat {
  height: 28px;
  min-height: 0 !important;
  min-width: 0 !important;
  padding: 0 8px 0 25px !important;
  justify-content: center;
  border-width: 2px !important;
  border-radius: 8px !important;
}
.hud .stat b {
  font-size: 15.5px !important;
  line-height: 1;
}
.hud .stat:before {
  left: 6px;
  font-size: 14px;
}
.hud .stat.en .enBar {
  left: 25px;
  bottom: 2px;
  height: 3px;
}
.hud .me {
  height: 28px;
  padding: 0 4px 0 6px !important;
  border-width: 2px !important;
  border-radius: 8px !important;
  gap: 6px !important;
}
.hud .me .who {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  line-height: 1;
}
.hud .me .who b {
  font-size: 13px;
}
.hud .me .who small {
  font-size: 10.5px;
}
.hud .small {
  height: 22px;
  min-height: 0 !important;
  padding: 0 7px !important;
  font-size: 11.5px !important;
  border-radius: 6px !important;
}
.hud .shopBtn {
  display: inline-flex !important;
  align-items: center;
  white-space: nowrap;
  height: 28px;
  min-height: 0 !important;
  padding: 0 8px !important;
  font-size: 12.5px !important;
  border-width: 2px !important;
  border-radius: 8px !important;
  box-shadow: 0 2px 0 var(--ink) !important;
}
.hud .pick {
  height: 28px;
  min-height: 0 !important;
  padding: 0 14px !important;
  font-size: 14px !important;
  border-width: 2px !important;
  border-radius: 8px !important;
  box-shadow: 0 2px 0 var(--ink) !important;
}
.hud [hidden] {
  display: none !important;
}
.hud .me {
  flex: 0 0 auto !important;
}
.hud .me .who b {
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hud .me .who small {
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hud .me .hudXp {
  width: 48px !important;
  flex: none !important;
  position: static !important;
}
.toast,
#fxBan .b,
#evBar {
  background: linear-gradient(#b07a52, #8a5636) !important;
  color: #fff6e6 !important;
  border: 2px solid rgba(255, 236, 210, 0.9) !important;
  border-radius: 999px !important;
  box-shadow: 0 3px 8px #6e3c1447 !important;
  font-family:
    "Baloo 2",
    Be Vietnam Pro,
    sans-serif !important;
  font-weight: 700 !important;
  text-shadow: 0 1px 0 rgba(80, 30, 10, 0.3);
}
#fxBan .b button {
  border-radius: 999px !important;
}
@media (min-width: 901px) and (pointer: fine) {
  .stage {
    position: relative;
  }
  .hud {
    position: absolute !important;
    left: 6px;
    right: 6px;
    bottom: 4px;
    z-index: 6;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
    pointer-events: none;
  }
  .hud > * {
    pointer-events: auto;
    box-shadow: 0 2px 6px #28140559;
  }
  .hud .spacer {
    pointer-events: none;
    box-shadow: none;
  }
  .hud {
    z-index: 8 !important;
  }
  .canvasBox > .overlay {
    padding-bottom: 44px !important;
  }
}
body.mob .side {
  will-change: transform;
  transition: transform 0.22s cubic-bezier(0.2, 0.8, 0.2, 1) !important;
  display: flex;
  flex-direction: column;
}
body.mob .side .pane.on {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  contain: layout paint;
}
body.mob .mapCard,
body.mob .shopCard,
body.mob .overlay > .card {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}
.toast {
  height: auto !important;
  max-height: 30vh;
  overflow: hidden;
}
.newVer {
  position: fixed;
  left: 50%;
  top: calc(env(safe-area-inset-top, 0px) + 8px);
  transform: translate(-50%);
  z-index: 100000;
  font:
    700 14px "Baloo 2",
    Be Vietnam Pro,
    sans-serif;
  color: #6b3410;
  background: linear-gradient(#ffe592, #ffb84d);
  border: 2px solid #fff6d6;
  border-radius: 999px;
  padding: 7px 16px;
  box-shadow: 0 3px 10px #6e3c1459;
}
.side {
  background: linear-gradient(#fff9ef, #fdf0dc) !important;
  border-left: 0 !important;
  box-shadow: -4px 0 14px #6e3c1429 !important;
  font-family:
    "Baloo 2",
    Be Vietnam Pro,
    sans-serif;
}
.sideTabs {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background: linear-gradient(#a06a44, #8a5636) !important;
  border-bottom: 0 !important;
  padding: 6px !important;
  gap: 5px !important;
}
.sideTabs button {
  position: relative;
  background: #fff6e624 !important;
  color: #fff3df !important;
  border: 1.5px solid rgba(255, 236, 210, 0.35) !important;
  border-radius: 999px !important;
  box-shadow: none !important;
  font:
    700 13px "Baloo 2",
    Be Vietnam Pro,
    sans-serif !important;
  padding: 4px 6px !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: background 0.15s;
}
.sideTabs button:hover {
  background: #fff6e647 !important;
}
.sideTabs button[aria-selected="true"] {
  background: linear-gradient(#ffe592, #ffb84d) !important;
  color: #6b3410 !important;
  border-color: #fff6d6 !important;
  box-shadow: 0 2px 6px #3c190547 !important;
}
.sideX {
  background: linear-gradient(#ff9a88, #ef5b4c) !important;
  border-color: #ffe6df !important;
}
.pane .panel h2,
.chatBox h2 {
  background: linear-gradient(#b07a52, #8a5636) !important;
  color: #fff6e6 !important;
  border: 0 !important;
  border-radius: 999px !important;
  box-shadow: 0 2px 6px #6e3c1433 !important;
  font-family:
    "Baloo 2",
    Be Vietnam Pro,
    sans-serif;
}
.pane .panel h2 small,
.chatBox h2 small {
  color: #ffe6c4 !important;
}
#chatLog {
  background: #fffdf8 !important;
  border: 1.5px solid #f6dcc0 !important;
  border-radius: 14px !important;
  margin: 6px 6px 4px !important;
  padding: 8px 10px !important;
  font-family:
    Be Vietnam Pro,
    sans-serif;
  color: #4a2c16;
}
#chatLog li {
  margin: 3px 0;
  line-height: 1.45;
}
#chatLog li.sys {
  color: #6d4c33;
  font-style: normal;
  font-size: 12.5px;
  font-weight: 600;
  opacity: 0.85;
}
#chatLog li:not(.npc) .who {
  color: #fff !important;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.3);
}
#chatLog li:not(.npc) .who:before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--pc, #ffd77a);
  border: 1.5px solid #fff;
  margin-right: 5px;
  vertical-align: 0;
}
#chatLog .who {
  background: linear-gradient(#8a5636, #5e3a22) !important;
  border-radius: 999px !important;
  padding: 0 9px !important;
  margin-right: 5px;
  font:
    700 12.5px/1.6 "Baloo 2",
    Be Vietnam Pro,
    sans-serif !important;
}
#chatLog .npc .who {
  background: linear-gradient(#fffaf0, #ffe9c6) !important;
  color: #7a4a28 !important;
  border: 1px solid #f0d2a8;
}
#chatLog .npc .who:after {
  color: #4f9a55 !important;
}
.chatForm {
  gap: 6px !important;
  padding: 0 6px !important;
  align-items: center;
}
.chatForm input {
  border-radius: 999px !important;
  border: 1.5px solid #f0cfa8 !important;
  background: #fff !important;
  padding: 0 14px !important;
  min-height: 38px;
  font-family:
    Be Vietnam Pro,
    sans-serif;
}
.chatForm input:focus {
  outline: 0;
  border-color: #ffb84d !important;
  box-shadow: 0 0 0 3px #ffb84d4d;
}
.chatForm button {
  border: 1.5px solid #fff6d6 !important;
  border-radius: 999px !important;
  box-shadow: 0 2px 5px #6e3c1440 !important;
  background: linear-gradient(#ffe592, #ffb84d) !important;
  color: #6b3410 !important;
  font:
    700 14px "Baloo 2",
    Be Vietnam Pro,
    sans-serif !important;
  min-height: 38px;
  padding: 0 14px !important;
}
.chatForm button:not([type="submit"]) {
  background: #fff6e6 !important;
  border-color: #f0cfa8 !important;
  padding: 0 !important;
  width: 38px;
  flex: none;
}
.quick {
  display: flex !important;
  flex-wrap: wrap;
  gap: 5px !important;
  padding: 4px 6px 8px !important;
  max-height: 92px;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.quick button {
  background: #fff !important;
  border: 1.5px solid #f6d3ad !important;
  color: #6b3f20 !important;
  border-radius: 999px !important;
  padding: 3px 10px !important;
  font:
    600 13px "Baloo 2",
    Be Vietnam Pro,
    sans-serif !important;
  box-shadow: none !important;
  min-height: 0 !important;
  transition:
    background 0.15s,
    border-color 0.15s;
}
.quick button:hover {
  background: #fff1dc !important;
  border-color: #ffb84d !important;
}
body.mob .quick button {
  min-height: 34px !important;
}
@media (min-width: 901px) {
  .main {
    grid-template-columns: minmax(0, 1fr) clamp(292px, 22vw, 340px) !important;
  }
  .sideTabs button {
    font-size: 12.5px !important;
    padding: 4px 3px !important;
  }
}
.quick button {
  width: auto !important;
  flex: 0 0 auto !important;
  display: inline-block !important;
}
@media (min-width: 901px) {
  .sideTabs {
    display: flex !important;
    flex-wrap: wrap;
  }
  .sideTabs button {
    flex: 1 1 auto;
    text-overflow: clip;
    padding: 4px 7px !important;
    min-width: 0;
  }
}
.foodEn {
  margin: 0 0 8px;
  padding: 8px 10px;
  border-radius: 14px;
  background: #fffdf6;
  border: 1.5px solid #f6dcc0;
  font-family:
    "Baloo 2",
    Be Vietnam Pro,
    sans-serif;
  color: #5a3418;
}
.foodEn .feTop {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}
.foodEn .feTop b {
  font-size: 17px;
  color: #2f7fc0;
}
.foodEn .feTop small {
  font-size: 12.5px;
  color: #a0784f;
}
.foodEn .feTop small:last-child {
  margin-left: auto;
  font-weight: 700;
  color: #6b3410;
}
.foodEn .feBar {
  position: relative;
  display: block;
  height: 9px;
  margin: 5px 0 8px;
  border-radius: 9px;
  background: #f3e3cf;
  overflow: hidden;
}
.foodEn .feBar u {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  background: linear-gradient(90deg, #ff8a6a, #ffd23f 40%, #5fc0f0);
  border-radius: 9px;
}
.foodEn .feBar s {
  position: absolute;
  top: 0;
  bottom: 0;
  background: repeating-linear-gradient(45deg, #bfe6ff 0 5px, #e3f4ff 5px 10px);
}
.foodEn .feAuto {
  width: 100%;
  min-height: 36px;
  border-radius: 999px;
  border: 1.5px solid #fff6d6;
  background: linear-gradient(#ffe592, #ffb84d);
  color: #6b3410;
  font:
    800 14px "Baloo 2",
    Be Vietnam Pro,
    sans-serif;
  box-shadow: 0 2px 6px #6e3c1440;
  cursor: pointer;
}
.foodEn .feAuto:disabled {
  opacity: 0.6;
  cursor: default;
}
.fitem .feGain {
  display: inline-block !important;
  width: auto !important;
  align-self: flex-start;
  margin-top: 3px;
  padding: 0 8px;
  border-radius: 999px;
  background: #fff0e6;
  color: #c0603a;
  font:
    700 12px "Baloo 2",
    Be Vietnam Pro,
    sans-serif;
  font-style: normal;
}
.fitem .feGain[hidden] {
  display: none !important;
}
@media (min-width: 901px) and (pointer: fine) {
  .dlg {
    bottom: 46px !important;
  }
  .skBar {
    bottom: 48px;
  }
}
#startForm {
  position: relative;
  overflow: hidden;
  background: radial-gradient(
    120% 75% at 50% 0%,
    #3f8a4a,
    #2b6236 48%,
    #1d4527
  ) !important;
  border: 2px solid rgba(200, 240, 170, 0.45) !important;
  border-radius: 24px !important;
  box-shadow:
    0 12px 32px #00000073,
    inset 0 1px #fff3 !important;
  color: #eef6e4;
}
#startForm:before {
  content: "\1f352";
  position: absolute;
  right: 14px;
  top: 10px;
  font-size: 26px;
  transform: rotate(18deg);
  opacity: 0.9;
  pointer-events: none;
}
#startForm:after {
  content: "\1f33f";
  position: absolute;
  left: -6px;
  bottom: -8px;
  font-size: 44px;
  transform: rotate(-20deg);
  opacity: 0.35;
  pointer-events: none;
}
#startForm h3 {
  color: #fff6d6 !important;
  font-family:
    "Baloo 2",
    Be Vietnam Pro,
    sans-serif;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.25);
}
#startForm p,
#startForm label,
#startForm summary {
  color: #d6ebc6 !important;
}
#startForm #nick,
#startForm #acctCode {
  background: #163a22 !important;
  color: #fff6e6 !important;
  border: 1.5px solid rgba(200, 240, 170, 0.4) !important;
  border-radius: 999px !important;
  padding-left: 16px !important;
}
#startForm #nick:focus,
#startForm #acctCode:focus {
  outline: 0;
  border-color: #ffd23f !important;
  box-shadow: 0 0 0 3px #ffd23f4d;
}
#startForm .dice {
  background: linear-gradient(#6cbc55, #3f8a3a) !important;
  color: #fff !important;
  border: 1.5px solid rgba(255, 255, 255, 0.4) !important;
  border-radius: 999px !important;
  box-shadow: 0 2px #00000040 !important;
}
#startForm .go {
  background: linear-gradient(#ffe592, #ffb84d) !important;
  color: #6b3410 !important;
  border: 2px solid #fff6d6 !important;
  border-radius: 999px !important;
  box-shadow:
    0 4px #b7791f,
    0 8px 16px #00000040 !important;
  font-family:
    "Baloo 2",
    Be Vietnam Pro,
    sans-serif;
}
#startForm .moreOpt {
  border-color: #c8f0aa66 !important;
  background: #0000001f !important;
  border-radius: 16px !important;
}
#startForm .acct {
  background: #00000026 !important;
  border: 0 !important;
  border-radius: 14px !important;
  color: #eef6e4;
}
.mscStage {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 2px 0 8px;
  padding: 6px 14px 6px 6px;
  border-radius: 20px;
  background:
    radial-gradient(circle at 22% 62%, #fff0aa6b, #fff0aa00 46%), #00000029;
  border: 1.5px solid rgba(200, 240, 170, 0.25);
}
.mscStage .msBox {
  flex: none;
  width: 96px;
  height: 112px;
  display: grid;
  place-items: center;
  animation: msBob 1.5s ease-in-out infinite;
  filter: drop-shadow(0 6px 4px rgba(0, 0, 0, 0.3));
}
.mscStage .msBox.pop {
  animation:
    msPop 0.4s cubic-bezier(0.3, 1.6, 0.5, 1),
    msBob 1.5s ease-in-out 0.4s infinite;
}
.mscStage .msTx {
  min-width: 0;
}
.mscStage .msTx b {
  display: block;
  font:
    800 20px/1.15 "Baloo 2",
    Be Vietnam Pro,
    sans-serif;
  color: #ffe45c;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.3);
}
.mscStage .msTx small {
  display: block;
  margin-top: 3px;
  font-size: 13.5px;
  line-height: 1.35;
  color: #d6ebc6;
}
@keyframes msBob {
  0%,
  to {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}
@keyframes msPop {
  0% {
    transform: scale(0.6) rotate(-8deg);
  }
  70% {
    transform: scale(1.12) rotate(3deg);
  }
  to {
    transform: scale(1);
  }
}
#startForm .mscGrid .mscBtn {
  background: #ffffff24 !important;
  border: 1.5px solid rgba(200, 240, 170, 0.3) !important;
  border-radius: 12px !important;
  box-shadow: none !important;
  transition:
    transform 0.15s,
    background 0.15s;
}
#startForm .mscGrid .mscBtn:hover {
  background: #ffffff42 !important;
  transform: translateY(-2px);
}
#startForm .mscGrid .mscBtn.on {
  background: #fff6d6 !important;
  border-color: #ffd23f !important;
  box-shadow:
    0 0 0 3px #ffd23f,
    0 4px 8px #0000004d !important;
  transform: translateY(-3px);
}
.mscStage canvas {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}
body.mob .mscStage {
  padding: 4px 12px 4px 4px;
  margin: 0 0 6px;
}
body.mob .mscStage .msBox {
  width: 62px;
  height: 72px;
}
body.mob .mscStage canvas {
  width: 62px !important;
  height: 72px !important;
}
body.mob .mscStage .msTx b {
  font-size: 17px;
}
body.mob .mscStage .msTx small {
  font-size: 12.5px;
}
.campusBox {
  position: absolute;
  inset: 0;
  z-index: 5;
}
.campusBox.on {
  background: #8fcf6a;
}
.campusBox iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  position: relative;
  opacity: 0;
  transition: opacity 0.25s;
}
.campusBox.on iframe {
  opacity: 1;
}
.campusSnap {
  position: absolute;
  pointer-events: none;
}
body.inCampus #joy,
body.inCampus .joy,
body.inCampus #tPick,
body.inCampus .tPick {
  display: none !important;
}
body.mob #mapDlg .mapCard {
  display: block !important;
  overflow-y: auto !important;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 0 10px 12px !important;
}
body.mob #mapDlg .mapCard > .mh {
  position: sticky;
  top: 0;
  z-index: 3;
  background: var(--cream);
  padding: 8px 0 6px !important;
  margin: 0 !important;
}
body.mob #mapDlg .mapCard > .mqRow {
  position: sticky;
  top: 52px;
  z-index: 3;
  background: var(--cream);
  margin: 0 0 4px !important;
  padding: 2px 0 6px !important;
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}
body.mob #mapDlg .mqRow::-webkit-scrollbar {
  display: none;
}
body.mob #mapDlg .mqRow > b {
  display: none;
}
body.mob #mapDlg .mqRow button {
  flex: 0 0 auto;
  min-height: 36px !important;
  padding: 4px 14px !important;
  font-size: 14px !important;
  border-radius: 999px !important;
}
body.mob #mapDlg .mapCard > svg,
body.mob #mapDlg .mapCard > p.mapNote,
body.mob #mapDlg .mapCard > #pvMapProg {
  display: none !important;
}
body.mob #mapDlg .mapCard > #mapGo,
body.mob #mapDlg .mapCard > .mapGo {
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
  margin: 0 0 6px !important;
  padding: 0 !important;
}
body.mob #mapDlg .mapH {
  position: static !important;
  padding: 8px 2px 4px !important;
  font-size: 15px !important;
}
body.mob #mapDlg .pvShops .mapH,
body.mob #mapDlg .cgSec .mapH {
  display: block !important;
}
body.mob #mapDlg .mapGrid {
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)) !important;
  gap: 6px !important;
}
body.mob #mapDlg .mapGrid button {
  min-height: 44px !important;
  padding: 7px 10px !important;
  text-align: left;
}
body.mob #mapDlg .mapGrid button b {
  font-size: 14px !important;
  line-height: 1.25;
  display: block;
  white-space: normal;
}
body.mob #mapDlg .mapGrid button small {
  font-size: 12px !important;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
body.mob #mapDlg .pvShops .mapGrid {
  display: flex !important;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  padding-bottom: 4px;
}
body.mob #mapDlg .pvShops .mapGrid button {
  flex: 0 0 min(210px, 62vw);
  scroll-snap-align: start;
  min-height: 44px !important;
  font-size: 13px !important;
  line-height: 1.25;
}
body.mob #mapDlg .cgSec,
body.mob #mapDlg .pvShops {
  display: block !important;
}
.evAnn {
  position: absolute;
  left: 50%;
  top: calc(env(safe-area-inset-top, 0px) + 10px);
  transform: translate(-50%);
  z-index: 7;
  max-width: min(560px, 92%);
  font:
    700 14px "Baloo 2",
    Be Vietnam Pro,
    sans-serif;
  color: #6b3410;
  background: linear-gradient(#ffe592, #ffb84d);
  border: 2px solid #fff6d6;
  border-radius: 999px;
  padding: 7px 16px;
  box-shadow: 0 4px 12px #6e3c1459;
  cursor: pointer;
  animation: evPulse 1.4s ease-in-out infinite;
}
.evAnn u {
  color: #c0392b;
}
@keyframes evPulse {
  0%,
  to {
    transform: translate(-50%) scale(1);
  }
  50% {
    transform: translate(-50%) scale(1.04);
  }
}
body.mob body.inCampus #mapDlg .mqRow,
#mapDlg .mapH[hidden],
#mapDlg .mapGrid[hidden],
#mapDlg #mapGo button[hidden] {
  display: none !important;
}
#mapDlg .recentGrid button {
  background: linear-gradient(#fff6d6, #ffe9b0) !important;
  border-color: #ffb84d !important;
}
#mapDlg .mapLockNote {
  margin: 10px 2px 4px;
  padding: 8px 12px;
  border-radius: 14px;
  background: #fff6e6;
  border: 1.5px dashed #e0b98a;
  color: #7a4a28;
  font:
    700 13.5px "Baloo 2",
    Be Vietnam Pro,
    sans-serif;
  text-align: center;
}
#mapDlg .mapShare {
  margin-left: auto;
  margin-right: 8px;
  font:
    700 13px "Baloo 2",
    Be Vietnam Pro,
    sans-serif;
  color: #6b3410 !important;
  background: #fff6e6 !important;
  border: 1.5px solid #f0cfa8 !important;
  border-radius: 999px !important;
  padding: 4px 12px !important;
  box-shadow: none !important;
  cursor: pointer;
}
#mapDlg .mapShare:hover {
  background: #ffe9c6 !important;
}
#mapDlg .mapShare[hidden] {
  display: none !important;
}
body.mob #mapDlg .mapShare {
  padding: 0 !important;
  width: 38px;
  height: 38px;
  font-size: 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
body.mob #mapDlg .mapShare span {
  display: none;
}
body.mob #mapDlg .mapCard > .mqRow,
#mapDlg .mapCard > .mqRow {
  display: none !important;
}
#mapDlg .mh {
  justify-content: flex-start !important;
}
body.mob #mapDlg .mapShare {
  width: 40px !important;
  min-width: 0 !important;
  height: 40px !important;
  flex: none;
}
body.mob #mapDlg .mapCard > .mh {
  display: flex !important;
  justify-content: flex-start !important;
  align-items: center;
}
body.mob #mapDlg .mapShare {
  margin-left: auto !important;
  margin-right: 8px !important;
}
#mapDlg .mh > .mapShare ~ button {
  margin-left: 0 !important;
}
.dotG {
  position: relative;
}
.dotG:after {
  content: "";
  position: absolute;
  top: 3px;
  right: 3px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #3fbf4a;
  box-shadow: 0 0 0 2px #fff;
  animation: dotG 1.6s ease-in-out infinite;
}
@keyframes dotG {
  50% {
    transform: scale(1.25);
  }
}
.gRules .mapCard {
  max-height: min(88vh, 640px);
  overflow: auto;
}
.gRules .grList {
  list-style: none;
  margin: 8px 0;
  padding: 0;
  display: grid;
  gap: 6px;
}
.gRules .grList li {
  display: flex;
  gap: 10px;
  align-items: center;
  background: #fff8e8;
  border: 1px solid #f0dfbf;
  border-radius: 14px;
  padding: 7px 11px;
}
.gRules .grList span {
  font-size: 20px;
  line-height: 1;
  flex: none;
  width: 24px;
  text-align: center;
}
.gRules .grList p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.4;
  color: #4a2e18;
}
.gCard {
  position: absolute;
  left: 50%;
  bottom: 64px;
  transform: translate(-50%);
  z-index: 30;
  width: min(272px, calc(100% - 24px));
  background: #fffaf0;
  border: 2px solid #f0d9b0;
  border-radius: 18px;
  box-shadow: 0 8px 24px #3c230a40;
  padding: 10px 12px 11px;
  font:
    500 12px/1.4 Be Vietnam Pro,
    sans-serif;
  color: #5a3a22;
  animation: gPop 0.18s ease-out;
}
@keyframes gPop {
  0% {
    transform: translate(-50%) translateY(8px) scale(0.96);
    opacity: 0;
  }
}
.gCard .gx {
  position: absolute;
  top: 6px;
  right: 7px;
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 50%;
  background: #f6e6c8;
  color: #8a5a32;
  font-size: 11px;
  cursor: pointer;
}
.gCard .gh {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 4px;
}
.gCard .gh i {
  font-style: normal;
  font-size: 18px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #dff3cf;
}
.gCard .gh b {
  display: block;
  font-size: 13px;
  color: #4a2e18;
}
.gCard .gh small {
  font-size: 10.5px;
  color: #a07a52;
}
.gCard .gs {
  margin: 2px 0 5px;
}
.gCard .gs b {
  color: #c0392b;
}
.gCard .gbar {
  height: 7px;
  border-radius: 7px;
  background: #f0e2c6;
  overflow: hidden;
}
.gCard .gbar s {
  display: block;
  height: 100%;
  border-radius: 7px;
  background: linear-gradient(90deg, #8be36a, #4fae4a);
  text-decoration: none;
}
.gCard .gchips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 7px 0 4px;
}
.gCard .gchips span {
  font-size: 10.5px;
  padding: 2px 8px;
  border-radius: 10px;
  background: #f3ead8;
  color: #9a7a5a;
}
.gCard .gchips span.on {
  background: #e3f5d6;
  color: #3d7a2a;
}
.gCard .gchips span.bad {
  background: #ffe0dc;
  color: #c0392b;
  font-weight: 700;
}
.gCard .gy {
  margin: 3px 0 0;
  font-size: 11px;
  color: #8a6a4a;
}
.gCard .gbtn {
  display: flex;
  gap: 6px;
  margin-top: 8px;
  flex-wrap: wrap;
}
.gCard .gbtn button {
  flex: 1;
  min-width: 76px;
  border: 0;
  border-radius: 12px;
  padding: 7px 8px;
  font:
    700 12px Be Vietnam Pro,
    sans-serif;
  background: #f6e6c8;
  color: #6b3f1f;
  cursor: pointer;
}
.gCard .gbtn button.main {
  background: #5bbf4a;
  color: #fff;
  box-shadow: 0 2px #3d9a3c;
}
.gSeed .mapCard {
  width: min(360px, 100%) !important;
  padding: 12px 14px !important;
  border-radius: 20px !important;
}
.gSeed .mh h3 {
  font-size: 15px;
}
.gSeed .fitem {
  padding: 7px 9px;
  gap: 8px;
  border-radius: 14px;
}
.gSeed .fitem .fic {
  font-size: 20px;
}
.gSeed .ftx b {
  font-size: 12.5px;
}
.gSeed .ftx small,
.gSeed .ftx em {
  font-size: 10.5px;
  line-height: 1.35;
}
.gSeed .fitem button {
  font-size: 11.5px;
  padding: 6px 10px;
  border-radius: 12px;
}
.gSeed .mapNote {
  font-size: 10.5px;
}
#pvTip {
  pointer-events: none;
}
#pvTip button {
  pointer-events: auto;
}
.gCard .gbtn button {
  white-space: nowrap;
}
@media (pointer: coarse), (max-height: 520px) {
  .gCard {
    bottom: 6px;
    width: min(236px, calc(100% - 300px));
    min-width: 210px;
    padding: 7px 10px 8px;
    font-size: 11px;
    border-radius: 16px;
  }
  .gCard .gh {
    margin-bottom: 2px;
  }
  .gCard .gh i {
    width: 26px;
    height: 26px;
    font-size: 15px;
  }
  .gCard .gh b {
    font-size: 12px;
  }
  .gCard .gh small {
    font-size: 9.5px;
  }
  .gCard .gbar {
    height: 5px;
  }
  .gCard .gchips {
    margin: 4px 0 2px;
  }
  .gCard .gchips span {
    font-size: 9.5px;
    padding: 1px 6px;
  }
  .gCard .gy {
    font-size: 10px;
  }
  .gCard .gbtn {
    margin-top: 5px;
    gap: 4px;
  }
  .gCard .gbtn button {
    min-width: 0;
    padding: 5px 6px;
    font-size: 10.5px;
    border-radius: 10px;
  }
  .gCard .gx {
    width: 20px;
    height: 20px;
    font-size: 10px;
  }
}
.odv {
  z-index: 70 !important;
  background: #141e328c !important;
  backdrop-filter: blur(3px);
}
.odv .mapCard {
  width: min(320px, 100%);
  text-align: center;
  padding: 18px 18px 16px;
  border-radius: 22px;
}
.odv .odIc {
  font-size: 34px;
  line-height: 1;
  margin-bottom: 4px;
}
.odv h3 {
  margin: 4px 0 6px;
  font-size: 16px;
}
.odv p {
  font-size: 12.5px;
  line-height: 1.5;
  margin: 0 0 12px;
  color: #5a3a22;
}
.odv button {
  display: block;
  width: 100%;
  border: 0;
  border-radius: 14px;
  padding: 10px;
  font:
    800 13.5px Be Vietnam Pro,
    sans-serif;
  cursor: pointer;
}
.odv .odGo {
  background: #5bbf4a;
  color: #fff;
  box-shadow: 0 3px #3d9a3c;
  margin-bottom: 8px;
}
.odv .odSafe {
  background: transparent;
  color: #a05a3a;
  font-weight: 600;
  font-size: 12px;
  padding: 6px;
}
.devDlg .mapCard {
  width: min(340px, 100%);
}
.devDlg .dvList {
  list-style: none;
  padding: 0;
  margin: 8px 0;
  display: grid;
  gap: 6px;
}
.devDlg .dvList li {
  background: #fff8e8;
  border: 1px solid #f0dfbf;
  border-radius: 12px;
  padding: 7px 11px;
}
.devDlg .dvList b {
  display: block;
  font-size: 13px;
}
.devDlg .dvList small {
  font-size: 11px;
  color: #9a7a5a;
}
.devDlg .dvNow {
  font-size: 12px;
  color: #3d7a2a;
  margin: 2px 0 8px;
}
.devDlg .dvOut {
  width: 100%;
  border: 0;
  border-radius: 12px;
  padding: 9px;
  background: #f6e6c8;
  color: #8a3a22;
  font:
    800 12.5px Be Vietnam Pro,
    sans-serif;
  cursor: pointer;
}
.devBtn {
  margin-top: 6px;
}
#mapDlg button[data-to="hoangloc"],
#mapDlg button[data-to="hoangloc_s"],
#mapDlg button[data-to="lythuongkiet"],
#mapDlg button[data-to="ywang"],
#mapDlg button[data-to="chuvanan"],
#mapDlg .pvShops {
  display: none !important;
}
.gCard,
body .gCard {
  bottom: auto !important;
  transform: none !important;
  animation: gPop2 0.16s ease-out;
}
@keyframes gPop2 {
  0% {
    opacity: 0;
    margin-top: 6px;
  }
}
.gCard:after,
.gTip:after {
  content: "";
  position: absolute;
  left: var(--ax, 50%);
  bottom: -8px;
  width: 14px;
  height: 14px;
  margin-left: -7px;
  background: inherit;
  border: inherit;
  border-top: 0;
  border-left: 0;
  transform: rotate(45deg);
  border-radius: 0 0 4px;
}
.gCard.dn:after,
.gTip.dn:after {
  bottom: auto;
  top: -8px;
  transform: rotate(225deg);
}
.gTip {
  position: absolute;
  z-index: 32;
  max-width: min(240px, calc(100% - 24px));
  background: #fffaf0;
  color: #5a3a22;
  border: 2px solid #f0d9b0;
  border-radius: 14px;
  padding: 6px 11px;
  font:
    700 12px/1.35 Be Vietnam Pro,
    sans-serif;
  text-align: center;
  box-shadow: 0 6px 16px #3c230a38;
  pointer-events: none;
}
.gTip.pop {
  animation: gPop2 0.16s ease-out;
}
.trCard {
  display: flex;
  gap: 8px;
  align-items: center;
  pointer-events: auto !important;
}
.trCard b {
  font-size: 12.5px;
}
.trCard button,
.trInv button {
  border: 0;
  border-radius: 12px;
  padding: 5px 11px;
  font:
    800 12px Be Vietnam Pro,
    sans-serif;
  background: #f6e6c8;
  color: #6b3f1f;
  cursor: pointer;
}
.trCard button,
.trInv button.trGo {
  background: #5bbf4a;
  color: #fff;
  box-shadow: 0 2px #3d9a3c;
}
.trInv {
  pointer-events: auto !important;
  min-width: 190px;
}
.trInv p {
  margin: 0 0 2px;
  font-weight: 800;
}
.trInv small {
  display: block;
  color: #a07a52;
  font-size: 10.5px;
  margin-bottom: 6px;
}
.trInv .trRow {
  display: flex;
  gap: 6px;
  justify-content: center;
}
.trDlg {
  z-index: 40 !important;
}
.trCardBox {
  width: min(720px, 100%) !important;
  max-height: min(92vh, 760px);
  overflow: auto;
}
.trDlg .mh {
  display: flex;
  align-items: center;
  gap: 8px;
}
.trDlg .mh h3 {
  flex: 1;
  margin: 0;
}
.trTime {
  font:
    800 12px Be Vietnam Pro,
    sans-serif;
  color: #c0392b;
}
.trState {
  margin: 6px 0 10px;
  font-size: 12.5px;
  color: #7a5a3a;
}
.trState.ok {
  color: #2f8a3a;
  font-weight: 800;
  font-size: 14px;
}
.trCols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.trSide {
  background: #fff8e8;
  border: 1px solid #f0dfbf;
  border-radius: 16px;
  padding: 10px 11px;
}
.trSide.trMine {
  background: #f2fbe9;
  border-color: #cfe8bd;
}
.trSide h4 {
  margin: 0 0 8px;
  font-size: 13px;
}
.trItems {
  display: grid;
  gap: 5px;
  margin-bottom: 6px;
}
.trItems em {
  font-size: 11.5px;
  color: #a08a6a;
}
.trItem {
  display: flex;
  align-items: center;
  gap: 7px;
  background: #fff;
  border: 1px solid #eadcc0;
  border-radius: 10px;
  padding: 5px 8px;
  font-size: 12.5px;
}
.trItem i {
  font-style: normal;
  font-size: 16px;
}
.trItem span {
  flex: 1;
  font-weight: 700;
}
.trItem small {
  font-size: 10.5px;
  color: #a07a52;
}
.trX {
  border: 0;
  background: #ffe0dc;
  color: #c0392b;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  font-size: 10px;
  cursor: pointer;
}
.trAdd summary {
  cursor: pointer;
  font:
    700 12px Be Vietnam Pro,
    sans-serif;
  color: #3d7a2a;
  margin: 2px 0 6px;
}
.trPick {
  display: grid;
  gap: 4px;
  max-height: 180px;
  overflow: auto;
}
.trPick button {
  display: flex;
  align-items: center;
  gap: 7px;
  border: 1px dashed #cfe8bd;
  background: #fff;
  border-radius: 10px;
  padding: 5px 8px;
  font:
    600 12px Be Vietnam Pro,
    sans-serif;
  cursor: pointer;
  text-align: left;
}
.trPick button span {
  flex: 1;
}
.trPick button small {
  color: #a07a52;
  font-size: 10.5px;
}
.trPick button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.trXu {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin-top: 6px;
}
.trXu label {
  font-size: 12px;
  font-weight: 700;
}
.trXu input {
  width: 110px;
  border: 1px solid #e0cfa8;
  border-radius: 10px;
  padding: 5px 8px;
  font:
    700 13px Be Vietnam Pro,
    sans-serif;
}
.trXu select {
  border: 1px solid #e0cfa8;
  border-radius: 10px;
  padding: 5px 6px;
  font:
    600 11.5px Be Vietnam Pro,
    sans-serif;
  background: #fff;
}
.trXuRo {
  margin: 6px 0 0;
  font-size: 12px;
}
.trFlag {
  display: block;
  margin-top: 6px;
  font-size: 11px;
  color: #7a5a3a;
  font-weight: 700;
}
.trSum {
  margin: 10px 0 6px;
  background: #fff;
  border: 1px solid #f0dfbf;
  border-radius: 12px;
  padding: 7px 11px;
}
.trSum p {
  margin: 2px 0;
  font-size: 12.5px;
}
.trAct {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
}
.trAct button {
  border: 0;
  border-radius: 14px;
  padding: 9px 16px;
  font:
    800 13px Be Vietnam Pro,
    sans-serif;
  background: #f6e6c8;
  color: #6b3f1f;
  cursor: pointer;
}
.trAct button.trGo {
  background: #5bbf4a;
  color: #fff;
  box-shadow: 0 3px #3d9a3c;
}
.trAct button:disabled {
  opacity: 0.55;
  cursor: default;
}
.trChk {
  display: flex;
  gap: 6px;
  align-items: center;
  font-size: 12px;
  flex: 1;
}
.trRc {
  margin: 0;
  font-size: 12px;
  color: #3d7a2a;
  font-weight: 700;
}
@media (max-width: 640px), (max-height: 520px) {
  .trCols {
    grid-template-columns: 1fr;
  }
  .trCardBox {
    padding: 10px !important;
  }
}
#mapDlg #mapGo button:focus-visible,
#mapDlg #mapGo button:focus {
  outline: 3px solid #ffd400;
  outline-offset: 2px;
  box-shadow: 0 0 0 6px #ffd40040;
  position: relative;
  z-index: 1;
}
.item .act.sellV {
  align-self: stretch;
  text-align: center;
  margin-top: 4px;
  background: #fff1d6;
  color: #7a2e12;
  cursor: pointer;
}
#pvTip button {
  min-height: 38px !important;
  padding: 6px 16px !important;
  font-size: 14px !important;
}
body.mobP #pvTip {
  font-size: 13px !important;
  line-height: 1.4 !important;
}
