/* RO window treatment. Layout, tabs and game interactions match the base game. */
:root {
  color-scheme: light;
  --f-px: "Microsoft JhengHei", Tahoma, sans-serif;
  --f-ui: Tahoma, "Microsoft JhengHei", sans-serif;
  --text: #34475a;
  --muted: #7b8997;
  --ember: #497da2;
  --hp: #df6670;
  --wood: #5e7a94;
  --wood-ln: #9caebe;
  --paper: #f2f4f5;
  --paper-hi: #ffffff;
  --paper-dk: #ccd5df;
  --paper-btn: #edf2f6;
  --cell: #dce5ed;
  --grain: none;
  --fr-paper: none;
  --fr-well: none;
  --fr-wood: none;
  --dv: #8f79c2;
}
html,
body {
  background: #cedbe5;
  color: var(--text);
  font-family: Tahoma, "Microsoft JhengHei", sans-serif;
  font-size: 13px;
}
button,
input,
select {
  font: inherit;
}
button {
  transition:
    background 0.12s,
    box-shadow 0.12s;
}
button:focus-visible {
  outline: 2px solid #4b9dcb;
  outline-offset: 2px;
}
button:disabled {
  cursor: not-allowed;
}
#app {
  background: #d7e0e9;
}
#side {
  background: #f4f6f8;
  border-left: 1px solid #8298ad;
  box-shadow: -5px 0 15px #263e5925;
  z-index: 3;
}
#panel {
  background: #f4f6f8;
  padding: 16px;
  scrollbar-width: thin;
  scrollbar-color: #b6c6d4 #e9eef3;
}
#ro-brand {
  height: 47px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 13px;
  background: linear-gradient(#fcfdff, #e6edf4);
  border-bottom: 1px solid #b8c9d8;
  box-shadow: inset 0 1px #fff;
}
#ro-brand > div {
  display: flex;
  align-items: center;
  gap: 7px;
}
#ro-brand strong {
  font-size: 17px;
  color: #355978;
  letter-spacing: 2px;
}
#ro-brand small {
  font-size: 7px;
  letter-spacing: 1px;
  color: #8c9bac;
  max-width: 54px;
  line-height: 1.5;
}
#ro-save {
  font-size: 10px;
  color: #618c88;
  white-space: nowrap;
}
.ro-crest {
  font-size: 29px;
  color: #b39c61;
}
#tabs {
  gap: 1px;
  padding: 6px 6px 0;
  background: linear-gradient(#b2c8dc, #d9e4ed);
  border: 0;
  min-height: 57px;
}
#tabs button {
  border: 1px solid #a6bccf;
  border-image: none;
  background: linear-gradient(#f9fcfe, #dbe5ef);
  box-shadow: inset 0 1px #fff;
  border-radius: 5px 5px 0 0;
  color: #607b92;
  padding: 5px 1px;
  font:
    11px/18px Tahoma,
    "Microsoft JhengHei",
    sans-serif;
}
#tabs button[aria-selected="true"] {
  background: #f4f6f8;
  color: #356486;
  border-bottom-color: #f4f6f8;
  box-shadow: inset 0 3px #6e9fc1;
}
#tabs img {
  width: 22px;
  height: 22px;
  image-rendering: pixelated;
  margin: 0 auto 2px;
}
h2 {
  font:
    600 19px/1.6 Tahoma,
    "Microsoft JhengHei",
    sans-serif;
  color: #355c7c;
  border-bottom: 1px solid #cbd6df;
  padding-bottom: 7px;
  margin: 0 0 12px;
}
h3 {
  font-size: 13px;
  color: #5b7893;
  margin: 18px 0 8px;
  letter-spacing: 0.5px;
}
h3:before {
  color: #b49d67;
}
.px {
  font-family: Tahoma, "Microsoft JhengHei", sans-serif;
  font-variant-numeric: tabular-nums;
}
.note {
  color: #778a9b;
  line-height: 1.8;
}
.btn,
.box,
.li,
.gem,
.ware,
.cell,
.detail,
.artCard,
.ccard,
.mcard,
.gridWrap,
#sheet,
.seg {
  border: 1px solid #bdcbd7;
  border-image: none;
  box-shadow: 0 1px 3px #243b5210;
  border-radius: 4px;
  background: #fff;
  background-clip: padding-box;
}
.btn {
  color: #536d83;
  background: linear-gradient(#fff, #e7edf3);
  padding: 5px 10px;
  min-height: 28px;
  box-shadow:
    inset 0 1px #fff,
    0 1px 2px #29445e15;
}
.btn:hover:not(:disabled) {
  background: #e4f1f9;
  border-color: #82afce;
}
.btn.primary {
  background: linear-gradient(#7aa7c7, #5684a8);
  border-color: #426f92;
  color: #fff;
  text-shadow: none;
}
.btn.sm {
  font-size: 11px;
  min-height: 23px;
  padding: 2px 7px;
}
.btn:disabled {
  opacity: 0.45;
}
.box {
  padding: 12px;
  background: #fff;
}
.li {
  padding: 10px;
}
.li.cur {
  background: #edf6fc;
  box-shadow: inset 3px 0 #86b0cd;
}
.li .s {
  line-height: 1.6;
}
.seg {
  display: flex;
  gap: 2px;
  padding: 3px;
  background: #e6edf3;
}
.seg button {
  border: 0;
  border-image: none;
  border-radius: 3px;
  background: transparent;
  color: #7b8a98;
  padding: 5px 8px;
  box-shadow: none;
}
.seg button[aria-pressed="true"] {
  color: #3f6989;
  background: #fff;
  box-shadow: 0 1px 3px #35516e22;
}
.tag {
  background: #edf3f8;
  color: #5e7c96;
  border: 1px solid #d4dee7;
}
select,
.txt {
  border: 1px solid #b7c8d8;
  border-radius: 3px;
  background: #fff;
  color: #465e73;
  min-height: 28px;
  padding: 4px 8px;
}
input[type="range"] {
  accent-color: #6e9fbd;
}
input[type="range"]::-webkit-slider-runnable-track {
  background: #c8dbea;
  border: 1px solid #9ab6cb;
  border-radius: 4px;
  box-shadow: none;
}
input[type="range"]::-webkit-slider-thumb {
  background: #fff;
  border: 1px solid #7196b1;
  box-shadow: 0 1px 3px #0002;
  border-radius: 3px;
}
label.chk input {
  accent-color: #638eae;
}
.gridWrap {
  padding: 12px;
  background: linear-gradient(#e1eaf1, #d4e0ea);
  width: fit-content;
  margin: auto;
  border: 1px solid #aabfce;
  box-shadow: inset 0 1px #fff;
}
.sgrid {
  border: 1px solid #94adbf;
  background: #b9cad6;
  gap: 2px;
}
.sgrid button {
  border: 1px solid #bfccd7;
  background: #f3f7fa;
  box-shadow: inset 0 1px #fff;
}
.sgrid button.locked {
  background: repeating-linear-gradient(135deg, #b7c8d5 0 4px, #b1c2cf 4px 5px);
  border-color: #adbfcd;
  box-shadow: none;
  opacity: 0.7;
}
.sgrid .name {
  font:
    10px/1.1 Tahoma,
    "Microsoft JhengHei",
    sans-serif;
  text-shadow: 0 1px 2px #172b42;
}
.gem {
  padding: 8px;
  gap: 9px;
}
.gem small {
  font:
    11px/1.6 Tahoma,
    "Microsoft JhengHei",
    sans-serif;
  color: #8090a0;
}
.gem[aria-pressed="true"] {
  background: #edf6fd;
  box-shadow: inset 0 -2px #6299bf;
}
.tray {
  gap: 7px;
}
.gvar {
  background: #e9f0f5;
  border: 1px solid #becedc;
  border-image: none;
  border-radius: 4px;
}
.trayHd {
  color: #597b96;
}
.cell {
  background: linear-gradient(#fdfefe, #e5edf3);
  border-color: #becdda;
  box-shadow: inset 0 1px #fff;
}
.cell.sel {
  outline: 2px solid #719fc1;
  outline-offset: 1px;
}
.cell img {
  image-rendering: pixelated;
}
.cell.empty {
  opacity: 0.55;
  background: #e5ecf2;
}
.detail {
  padding: 12px;
  background: #fff;
}
.detail .stats {
  line-height: 1.7;
}
.rar,
.uniq {
  color: #ac8546;
}
.af {
  line-height: 1.7;
}
.cmp {
  border-color: #d9e2e9;
}
.ccard .cart {
  background: #dde7ee;
  height: 150px;
  overflow: hidden;
}
.ccard .cart img {
  width: 100% !important;
  height: 100%;
  object-fit: cover;
}
.ccard.back {
  background: linear-gradient(135deg, #547f9e, #8faec5);
  color: white;
}
.mcard .mfoot {
  background: #fff;
  color: #456a85;
  padding: 8px;
}
.mcard {
  overflow: hidden;
}
.mban {
  border: 0;
}
.mban img {
  filter: saturate(0.82);
}
.mpl {
  background: #ffffffd9;
  color: #40647d;
  text-shadow: none;
  border-radius: 3px;
}
.mbar,
.mini {
  background: #d9e5ee;
  box-shadow: none;
  border-radius: 3px;
}
.mbar i,
.mini i {
  background: #77a8c6;
}
.ware {
  padding: 8px;
}
.ware .wwell {
  background: #eef4f9;
  border: 1px solid #c3d4e1;
  border-image: none;
  border-radius: 3px;
}
.ware .own {
  color: #63829b;
  text-shadow: none;
}
.ware .btn {
  padding: 4px;
}
.wallet {
  color: #ad8e48;
}
.ashI {
  width: 18px;
  height: 18px;
}
#sheetBg {
  background: #27425b70;
  backdrop-filter: blur(3px);
}
#sheet {
  background: #f7f9fb;
  border: 1px solid #90a9bf;
  border-top: 5px solid #8eafc8;
  box-shadow: 0 14px 65px #13273d50;
  padding: 19px;
  animation: none;
  max-height: 90vh;
}
#sheet h2 {
  color: #416a89;
}
.x {
  color: #6e8699;
}
#tipBox {
  background: #f9fbfe;
  color: #405d76;
  border: 1px solid #a5bed1;
  border-radius: 4px;
  box-shadow: 0 3px 10px #20394b33;
}
#stageWrap {
  background: #6d8561;
  overflow: hidden;
  border: 6px solid #d5e0e9;
  border-right: 0;
  box-shadow: inset 0 0 0 1px #7f97ad;
}
#stage {
  image-rendering: auto;
}
.chip {
  background: #f8fbefeb;
  color: #4e6b75;
  border: 1px solid #a7b9b5;
  border-image: none;
  box-shadow: 0 2px 5px #23423822;
  text-shadow: none;
  border-radius: 3px;
  font:
    12px/1.55 Tahoma,
    "Microsoft JhengHei",
    sans-serif;
  padding: 6px 10px;
}
#bossBtn {
  background: linear-gradient(#fef8e9, #ded2ab);
  border-color: #9b8c63;
  color: #7d6134;
  font-size: 13px;
  font-weight: bold;
  padding: 12px;
  border-radius: 4px;
}
#bossBtn:disabled {
  opacity: 0.65;
}
.toast {
  border: 1px solid #b9cbd9 !important;
  border-image: none !important;
  background: #f8fcfff0 !important;
  color: #486a85 !important;
  box-shadow: 0 4px 12px #18324833 !important;
  border-radius: 4px;
  text-shadow: none !important;
  font:
    12px/1.6 Tahoma,
    "Microsoft JhengHei",
    sans-serif !important;
}
.ro-profile {
  display: flex;
  gap: 6px;
  align-items: center;
  background: linear-gradient(110deg, #e1edf5, #fafcfe);
  border: 1px solid #c4d5e2;
  border-radius: 5px;
  margin: 13px 0;
  padding: 0 9px;
}
.ro-profile img {
  width: 88px;
  height: 94px;
  object-fit: cover;
  image-rendering: pixelated;
}
.ro-profile small {
  font-size: 8px;
  letter-spacing: 1.5px;
  color: #99adbb;
}
.ro-profile h2 {
  font-size: 19px;
  border: 0;
  margin: 3px 0;
  padding: 0;
}
.ro-profile h2 span {
  font-size: 12px;
  color: #91a7b6;
  font-weight: normal;
}
.ro-profile p {
  font-size: 11px;
  color: #758f9f;
  margin: 5px 0;
}
.ro-section {
  display: flex;
  justify-content: space-between;
  margin: 12px 0 8px;
  color: #638199;
  font-size: 12px;
}
.ro-section span {
  font-size: 11px;
  color: #a98c4c;
}
.ro-stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.ro-stat-grid > div {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px;
  background: #fff;
  border: 1px solid #d7e1e9;
  border-radius: 3px;
  font-size: 11px;
}
.ro-stat-grid b {
  display: inline-block;
  color: #7698b1;
  font-size: 10px;
  width: 27px;
}
.ro-stat-grid strong {
  margin-left: auto;
  color: #4c6a82;
  font-size: 13px;
}
.ro-stat-grid button {
  border: 1px solid #c6d5e1;
  background: #edf3f8;
  color: #7d9ab1;
  border-radius: 3px;
  width: 22px;
  height: 22px;
  padding: 0;
}
.ro-stat-grid button:disabled {
  opacity: 0.35;
}
.ro-guide-class {
  display: flex;
  background: #fff;
  border: 1px solid #d0dde8;
  border-radius: 4px;
  margin: 10px 0;
  padding: 10px;
}
.ro-guide-class img {
  width: 75px;
  height: 85px;
  object-fit: cover;
}
.ro-guide-class > div {
  flex: 1;
}
.ro-guide-class p {
  font-size: 11px;
  line-height: 1.6;
  color: #8b9aa7;
}
.ro-guide-class strong {
  color: #5e7c95;
}
#pick {
  overflow: auto;
  background:
    linear-gradient(120deg, #dcecf5ee, #f3f7f4ee 55%, #d0e0e9ed),
    url("../../assets/ro-v3/maps/grass.jpg") center/cover;
  gap: 13px;
  padding: 30px 20px;
  justify-content: center;
}
#pick h1 {
  font-family: Georgia, "PMingLiU", serif;
  color: #426987;
  text-shadow: 0 2px #fff;
  font-size: 43px;
  letter-spacing: 9px;
  font-weight: 400;
}
#pick .pkTitle .en {
  font:
    9px/2 Tahoma,
    sans-serif;
  color: #8ba0ae;
  letter-spacing: 4px;
  text-shadow: none;
  margin-top: 7px;
}
#pick .sub {
  color: #7b95a5;
  text-shadow: none;
  font-size: 11px;
}
#pick .pkTitle .sub {
  margin: 6px 0;
}
#pick .pkName {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #7a92a4;
  font-size: 12px;
}
#pick .pkName input {
  background: #ffffffc9;
  border-color: #b9cdda;
  width: 180px;
}
#pick .pkErr:empty {
  display: none;
}
#pick .cls {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 900px;
  gap: 12px;
}
#pick .cls button {
  border: 1px solid #b7cbd9;
  border-image: none;
  background: linear-gradient(150deg, #ffffffec, #eef4f8e8);
  border-radius: 6px;
  box-shadow: 0 3px 8px #60819b12;
  padding: 10px 12px 12px 0;
  gap: 0;
  min-height: 158px;
}
#pick .cls button:hover {
  background: #fff;
  box-shadow: 0 5px 19px #5982a92b;
  transform: translateY(-2px);
  border-color: #84abc8;
}
#pick .cls button:after {
  display: none;
}
#pick .pkWell {
  width: 104px;
  height: 125px;
  background: radial-gradient(ellipse at 50% 80%, #cadce7, transparent 55%);
  border: 0;
  box-shadow: none;
  overflow: hidden;
}
#pick .pkWell img {
  width: 128px;
  height: 128px;
  image-rendering: pixelated;
}
#pick .cls b {
  font:
    500 22px/1.5 "Microsoft JhengHei",
    sans-serif;
  color: #456a84;
}
#pick .pkTags em {
  color: var(--job);
  font-size: 10px;
  background: transparent;
  border: 1px solid #dae3e9;
  border-radius: 3px;
  box-shadow: none;
  padding: 0 5px;
}
#pick .pkSt {
  font-size: 10px;
  color: #91a5b3;
  gap: 8px;
  line-height: 17px;
}
#pick .pips u {
  background: var(--job);
  box-shadow: none;
  width: 8px;
  height: 5px;
  border-radius: 1px;
}
#pick .pips s {
  background: #dde6ec;
  box-shadow: none;
  width: 8px;
  height: 5px;
  border-radius: 1px;
}
.ro-routes {
  font-size: 9px;
  color: #90a4b1;
  white-space: nowrap;
  margin-top: 5px;
}
#panel,
#sheet,
#pick .cls button,
#pick input.txt,
#pick > .btn {
  --text: #34475a;
  --muted: #7b8997;
  --ember: #497da2;
  --ok: #468b74;
  --bad: #c76565;
  --panel: #fff;
  --panel2: #e9f1f7;
  --edge: #afc3d3;
  --r0: #667d90;
  --r3: #b18a48;
  --r4: #568da3;
  color: var(--text);
}
#panel {
  border: 0;
  border-image: none;
  box-shadow: none;
  margin: 0;
  padding: 16px;
}
#sheet {
  border-image: none;
}
.gridWrap {
  width: 100%;
  max-width: 318px;
  padding: 9px;
  box-sizing: border-box;
}
.sgrid {
  width: 100%;
  box-sizing: border-box;
  box-shadow: none;
  padding: 5px;
}
.sgrid button.lock {
  background: repeating-linear-gradient(135deg, #b7c8d5 0 4px, #b1c2cf 4px 5px);
  border: 1px solid #adbfcd;
  box-shadow: none;
  opacity: 0.8;
}
.sgrid button.open {
  background: #f7faff;
  border: 1px solid #aabfce;
  box-shadow: inset 0 1px white;
}
.trayHd {
  background: #e6eef5;
  border: 1px solid #b9cddd;
  color: #607f98;
  border-radius: 3px;
  padding: 7px;
}
.help {
  border: 1px solid #c5d3df;
  border-image: none;
  background: #eef4f8;
  color: #7191aa;
  box-shadow: none;
}
.chip {
  font-size: 11px !important;
  line-height: 1.6 !important;
  padding: 5px 8px !important;
}
.chip .qk {
  color: #a98a50;
}
#lstack {
  gap: 5px !important;
}
#ssChip {
  font-size: 10px !important;
}
#questChip {
  background: #f9fcf2eb;
  opacity: 1 !important;
  color: #4e6b75 !important;
}
#bossBtn {
  font-size: 12px !important;
  padding: 10px !important;
}
@media (min-width: 700px) and (min-aspect-ratio: 5/4) {
  #side {
    width: 440px;
    max-width: 44vw;
    flex-shrink: 0;
  }
  #app {
    grid-template-columns: minmax(0, 1fr) min(440px, 44vw);
  }
}
@media (max-width: 800px) {
  #pick .cls {
    grid-template-columns: repeat(2, 1fr);
    max-width: 590px;
  }
  #pick {
    justify-content: flex-start;
    padding: 20px 12px;
  }
  #pick h1 {
    font-size: 32px;
  }
  #pick .cls button {
    min-height: 130px;
  }
  #pick .pkWell {
    width: 84px;
    height: 104px;
  }
  #pick .pkWell img {
    width: 112px;
    height: 112px;
  }
  #pick .cls b {
    font-size: 18px;
  }
  .ro-routes {
    font-size: 8px;
  }
  #ro-brand small {
    display: none;
  }
}
@media (max-width: 460px) {
  #panel {
    padding: 12px;
  }
  #pick .pkSt {
    display: none;
  }
  #pick .cls button {
    min-height: 132px;
    flex-direction: column;
    padding: 6px;
    gap: 0;
    text-align: center;
  }
  #pick .pkWell {
    height: 73px;
    width: 100%;
  }
  #pick .pkWell img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    object-position: center 75%;
  }
  #pick .pkInfo {
    align-items: center;
  }
  #pick .cls b {
    font-size: 17px;
  }
  #pick .pkTags {
    margin: 0;
  }
  .ro-routes {
    font-size: 8px;
  }
  #pick .cls {
    gap: 8px;
  }
  #pick .pkTitle .en {
    font-size: 8px;
  }
  #pick {
    gap: 10px;
  }
  .chip {
    font-size: 10px;
  }
  #stageWrap {
    border-width: 3px;
  }
}
.sgrid {
  padding: 6px;
  gap: 3px;
  border: 4px solid #a5bacb;
}
.gname {
  align-items: flex-end;
  padding-bottom: 3px;
  box-sizing: border-box;
}
.gname span {
  font-family: Tahoma, "Microsoft JhengHei", sans-serif;
  font-size: 10px;
}
.ro-gem-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
  image-rendering: pixelated;
  flex: none;
}
#panel select {
  background: #fff;
  color: #526d83;
  border: 1px solid #b7c8d8;
  border-image: none;
  box-shadow: none;
}
#stageWrap #bossBtn {
  background: linear-gradient(#fff5d8, #d8c695) !important;
  border: 1px solid #a28e5f !important;
  border-image: none !important;
  color: #72582d !important;
  box-shadow:
    inset 0 1px #fff8,
    0 2px 6px #243e5822 !important;
  text-shadow: none !important;
}

/* A quieter battlefield and a compact, readable equipment ledger. */
#stageWrap {
  border: 4px solid #c5d4dc;
  border-right: 0;
}
#stage {
  image-rendering: auto;
}
.ro-inventory .split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 12px;
  align-items: start;
}
@media (max-width: 720px) {
  .ro-inventory .split {
    display: block;
  }
}
.ro-inventory .doll {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}
.ro-inventory .doll .cell {
  width: 100%;
  aspect-ratio: 1;
}
.ro-inventory .bagScroll {
  max-height: 360px;
  min-height: 110px;
  overflow-y: auto;
  border: 1px solid #cedae1;
  border-radius: 7px;
}
.ro-inventory .bagScroll .grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding: 10px;
}
.cell.ro-item-slot {
  --ro-rarity: #82909e;
  width: 100%;
  min-width: 0;
  aspect-ratio: 1;
  height: auto;
  padding: 4px;
  position: relative;
  border: 2px solid var(--ro-rarity);
  border-image: none;
  border-radius: 6px;
  background: linear-gradient(#f9fbfd, #e5edf3);
  box-shadow: inset 0 0 0 1px #fff9;
  overflow: hidden;
}
.cell.ro-item-slot.r1 {
  --ro-rarity: #408ec0;
}
.cell.ro-item-slot.r2 {
  --ro-rarity: #b99a35;
}
.cell.ro-item-slot.r3 {
  --ro-rarity: #d17c3c;
}
.cell.ro-item-slot.r4 {
  --ro-rarity: #349d98;
}
.cell.ro-item-slot.ru {
  --ro-rarity: #9768bd;
}
.cell.ro-item-slot.rm {
  --ro-rarity: #bc4e7d;
  border-width: 3px;
  background: linear-gradient(#fbf2f6, #ecdae4);
}
.cell.ro-item-slot.rs,
.cell.ro-item-slot.ra {
  --ro-rarity: #697db8;
}
.cell.ro-item-slot.sel,
.cell.ro-item-slot.ms {
  outline: 2px solid #405c75;
  outline-offset: 2px;
  background: #dceaf4;
}
.cell.ro-item-slot img {
  width: 32px;
  height: 32px;
  max-width: 80%;
  max-height: 65%;
  object-fit: contain;
  margin-bottom: 8px;
  image-rendering: pixelated;
}
.cell.ro-item-slot .lv {
  top: 1px;
  right: 2px;
  bottom: auto;
  left: auto;
  font-size: 9px;
  color: #516779;
  background: #f7fafbcc;
  padding: 0 2px;
  border-radius: 2px;
}
.cell.ro-item-slot .ro-item-rarity {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  font:
    9px/1.5 Tahoma,
    "Microsoft JhengHei",
    sans-serif;
  background: var(--ro-rarity);
  color: #fff;
  text-align: center;
  white-space: nowrap;
  text-shadow: none;
}
.cell.ro-item-slot.my::before,
.cell.ro-item-slot.my::after {
  display: none;
}
.ro-inventory .bagScroll .grid .cell.new::after {
  top: 3px;
  left: 3px;
  right: auto;
  bottom: auto;
  width: 5px;
  height: 5px;
  content: "";
  border-radius: 50%;
  background: #d95663;
  box-shadow: 0 0 0 1px white;
}
.cell.ro-bag-row {
  width: 100%;
  min-height: 58px;
  height: auto;
  aspect-ratio: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  position: relative;
  padding: 10px 28px 10px 12px;
  border: 0;
  border-bottom: 1px solid #dce5e9;
  border-radius: 0;
  background: #fbfcfa;
  text-align: left;
  box-shadow: none;
}
.cell.ro-bag-row:nth-child(even) {
  background: #f1f5f5;
}
.cell.ro-bag-row:hover {
  background: #e7f0f5;
}
.cell.ro-bag-row.sel,
.cell.ro-bag-row.ms {
  background: #e1edf5;
  box-shadow: inset 3px 0 #557f9e;
}
.ro-bag-title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  font:
    600 13px/1.6 Tahoma,
    "Microsoft JhengHei",
    sans-serif;
}
.ro-rarity {
  font-size: 10px;
  padding: 0 5px;
  border: 1px solid currentColor;
  border-radius: 3px;
  white-space: nowrap;
}
.ro-bag-meta {
  margin-top: 3px;
  color: #647987;
  font:
    11px/1.5 Tahoma,
    "Microsoft JhengHei",
    sans-serif;
}
.ro-bag-arrow {
  position: absolute;
  right: 12px;
  color: #8b9daa;
  font-size: 21px;
}
.ro-bag-title.r0 {
  color: #526477;
}
.ro-bag-title.r1 {
  color: #206e9b;
}
.ro-bag-title.r2 {
  color: #8a681a;
}
.ro-bag-title.r3 {
  color: #a65126;
}
.ro-bag-title.r4 {
  color: #16727b;
}
.ro-bag-title.ru {
  color: #7951a0;
}
.ro-bag-title.rm {
  color: #a73062;
}
.ro-bag-title.rs,
.ro-bag-title.ra {
  color: #586ca0;
}
.ro-inventory .detail {
  margin-top: 0;
  padding: 14px;
  border: 1px solid #cedae1;
  border-radius: 7px;
  background: #f7fafb;
  position: sticky;
  top: 0;
}
@media (max-width: 720px) {
  .ro-inventory .detail {
    margin-top: 16px;
    position: static;
  }
}
.ro-empty-slot {
  color: #8b9ca8;
  font-size: 11px;
}
.ro-inventory .head:not(:has(img)) {
  min-height: 0;
}
.ro-bag-row.new:after {
  display: none;
}
.ro-inventory .bagScroll .more {
  background: #e8eff2;
  color: #647987;
  font:
    11px/2 Tahoma,
    "Microsoft JhengHei",
    sans-serif;
}
.ro-inventory .bagScroll {
  box-shadow: none;
  border-image: none;
}
.ro-inventory .doll .cell.new:after {
  display: none;
}

/* One calm visual system for the skill board, tray and live links. */
.ro-skills {
  color: #344f65;
}
.ro-skills h2 {
  margin-bottom: 12px;
}
.ro-skills .hbtn {
  width: 20px;
  height: 20px;
  border: 1px solid #b8cbd9;
  border-image: none;
  border-radius: 50%;
  background: #eef5f9;
  box-shadow: none;
  color: #6c8aa0;
  font:
    12px/18px Tahoma,
    sans-serif;
  vertical-align: middle;
}
.ro-skills .gridWrap {
  max-width: 292px;
  margin: 12px auto;
  padding: 0;
  background: none;
  border: 0;
  box-shadow: none;
}
.ro-skills .sgrid {
  width: 100%;
  padding: 6px;
  gap: 3px;
  border: 4px solid #b8ccd9;
  border-image: none;
  border-radius: 9px;
  background: #e5eef3;
  box-shadow: 0 4px 14px #48647b12;
}
.ro-skills .sgrid button.open {
  border: 1px solid #cedce5;
  border-radius: 4px;
  background: #f9fcfd;
  box-shadow: none;
}
.ro-skills .sgrid button.lock {
  background: #d9e2e8;
  border: 1px solid #cdd8df;
  border-radius: 4px;
}
.ro-skills .sgrid button.lock::after {
  content: "·";
  color: #9baeba;
}
.ro-skills .gov {
  filter: none;
}
.ro-skills .gov.sel {
  filter: drop-shadow(0 0 2px #316d98);
}
.ro-skills .sgrid button.link::after {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #4c926c;
  box-shadow: 0 0 0 1px #fff;
  right: 4px;
  bottom: 4px;
}
.ro-gem-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 14px;
  font-size: 11px;
  line-height: 1.7;
  color: #728593;
}
.ro-gem-legend span:first-child {
  color: #426c91;
}
.ro-gem-legend span:nth-child(2) {
  color: #7a608f;
}
.ro-gem-legend span:last-child {
  flex-basis: 100%;
}
.ro-equipped-gems {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}
.ro-gem-chip {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 8px;
  text-align: left;
  border: 1px solid #c7d8e3;
  border-radius: 5px;
  color: #3c5c73;
  background: #f4f9fc;
  min-width: 0;
  font:
    12px/1.4 Tahoma,
    "Microsoft JhengHei",
    sans-serif;
}
.ro-gem-chip.support {
  background: #faf7ef;
  border-color: #e1d6bf;
  color: #7e6c45;
}
.ro-gem-chip[aria-pressed="true"] {
  outline: 2px solid #6090ae;
  outline-offset: -2px;
}
.ro-gem-chip img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  flex: none;
  image-rendering: pixelated;
}
.ro-gem-chip small {
  display: block;
  font-size: 10px;
  opacity: 0.75;
  margin-top: 2px;
}
.ro-skills .ro-gem-tools {
  gap: 6px;
  flex-wrap: wrap;
}
.ro-skills .ro-gem-tools .btn {
  font-size: 12px;
  padding: 6px 9px;
}
.ro-skills .tray {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: none;
  padding: 0;
  border: 0;
  box-shadow: none;
}
.ro-skills .gem {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  width: 100%;
  padding: 10px;
  border: 1px solid #cedbe3;
  border-radius: 6px;
  background: #f8fbfd;
  box-shadow: none;
  color: #38546a;
  font-size: 12px;
}
.ro-skills .gem[aria-pressed="true"] {
  border-color: #638fab;
  background: #eaf3f9;
  box-shadow: inset 3px 0 #638fab;
}
.ro-skills .gem .shape {
  margin-left: auto;
  order: 3;
  flex: none;
  opacity: 0.85;
}
.ro-skills .gem > span:not(.shape) {
  flex: 1;
  min-width: 0;
}
.ro-skills .gem small {
  font-size: 11px;
  line-height: 1.65;
  color: #6d8291;
  margin-top: 3px;
}
.ro-skills .gvar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.ro-skills .gvar .gem {
  width: auto;
}
.ro-skills .trayHd {
  width: 100%;
  text-align: left;
  padding: 10px;
  margin-top: 12px;
  font-size: 12px;
}
.ro-skills .ro-link-heading {
  border-top: 1px solid #d2dfe6;
  padding-top: 18px;
  margin-top: 22px;
}
.ro-skills .li {
  padding: 12px 0;
  border-bottom: 1px solid #dde6eb;
}
.ro-skills .li .t {
  font-size: 13px;
}
.ro-skills .li .s {
  font-size: 12px;
  line-height: 1.8;
}

/* Selecting a bag row exposes both complete items immediately. */
#sheet.ro-compare {
  width: min(800px, 94vw);
  max-width: 800px;
  max-height: 90vh;
  padding: 20px;
  border: 1px solid #b7cbd9;
  border-radius: 12px;
  background: #f6f9fb;
  color: #365169;
  box-shadow: 0 16px 70px #102b4c55;
}
.ro-compare-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.ro-compare-header small {
  color: #718b9e;
}
.ro-compare-header h2 {
  margin: 5px 0 16px;
}
.ro-compare .cmpgrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
}
.ro-compare .cmpcol {
  min-width: 0;
  padding: 14px;
  background: #fff;
  border: 1px solid #d4e0e8;
  border-radius: 8px;
}
.ro-compare .cmpcol:last-child {
  border-color: #90b3cb;
  background: #f7fbff;
}
.ro-compare .lbl {
  font-size: 12px;
  font-weight: 700;
  color: #7790a1;
  margin-bottom: 12px;
}
.ro-compare .head {
  align-items: center;
  min-height: 70px;
  gap: 8px;
}
.ro-compare .head img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}
.ro-compare .iname {
  font-size: 15px;
  line-height: 1.6;
}
.ro-compare .isub {
  font-size: 11px;
  line-height: 1.6;
}
.ro-compare .base {
  flex-wrap: wrap;
  gap: 5px 12px;
}
.ro-compare .affix {
  font-size: 12px;
  line-height: 1.8;
}
.ro-compare-delta {
  margin: 0 0 16px;
  padding: 12px 16px;
  border: 1px solid #cfdee7;
  background: #eaf2f7;
  border-radius: 7px;
}
.ro-compare-delta .cmp {
  display: grid;
  grid-template-columns: repeat(4, auto 1fr);
  gap: 6px;
  margin: 0;
}
.ro-compare-delta .cmp > dt:first-child {
  margin-bottom: 4px;
}
.ro-compare-delta .cmp dd {
  margin: 0;
}
.ro-compare-delta .cmp {
  background: none;
  border: 0;
  box-shadow: none;
  padding: 0;
  font-size: 13px;
}
.ro-compare .head.myh {
  background: #f9edf3;
  border: 1px solid #ddb2c5;
  border-image: none;
  box-shadow: none;
  border-radius: 5px;
  padding: 10px;
  color: #7e3555;
}
.ro-compare .head.myh .iname {
  color: #9a345e;
  text-shadow: none;
  animation: none;
}
.ro-compare .head.myh .isub {
  color: #855a6c;
}
.ro-compare .head.myh .px {
  color: inherit;
  text-shadow: none;
}
.ro-compare .cmp .eq {
  background: transparent;
  color: #7b8d9a;
}
.ro-compare .uniq {
  font-size: 12px;
  line-height: 1.8;
  color: #8c6d34;
}
.ro-compare .btn {
  border-image: none;
  box-shadow: none;
  border: 1px solid #adc1d1;
  border-radius: 5px;
  padding: 8px 13px;
  font:
    13px/1.4 Tahoma,
    "Microsoft JhengHei",
    sans-serif;
  background: #fff;
  color: #496b83;
}
.ro-compare .btn.primary {
  background: #5d86a2;
  color: #fff;
  border-color: #5d86a2;
}
.ro-compare-delta .note {
  font-size: 11px;
  margin-bottom: 0;
}
.ro-compare-actions {
  position: sticky;
  bottom: -20px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px 0 0;
  background: #f6f9fbfa;
  margin-top: 14px;
}
@media (max-width: 600px) {
  .ro-compare .cmpgrid {
    grid-template-columns: 1fr;
  }
  .ro-compare-delta .cmp {
    grid-template-columns: auto 1fr auto 1fr;
  }
}

/* Shared constellation tree and equipment recommendations. */
.ro-tree-open {
  width: 100%;
  margin-top: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.ro-tree-open small {
  font-size: 11px;
  opacity: 0.85;
}
.ro-upgrade-filter {
  padding: 12px;
  margin-bottom: 12px;
  border: 1px solid #bccdd7;
  background: #edf5f4;
  border-radius: 7px;
}
.ro-upgrade-filter label {
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}
.ro-upgrade-filter select {
  flex: 1;
  min-width: 0;
  padding: 7px;
  background: #fff;
  border: 1px solid #b7c8d3;
  border-radius: 4px;
  color: #3f5f70;
}
.ro-upgrade-filter small {
  display: block;
  color: #70868f;
  font-size: 10px;
  margin-top: 7px;
}
.ro-upgrade-summary {
  padding: 12px;
  border-left: 3px solid #609a80;
  background: #e8f3ed;
  margin-bottom: 10px;
  display: grid;
  gap: 5px;
  color: #3c715b;
}
.ro-upgrade-summary small {
  font-size: 11px;
  color: #728379;
}
#sheet.ro-tree-sheet {
  width: min(1200px, 96vw);
  max-width: 1200px;
  height: 92vh;
  max-height: 92vh;
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: #f2f6f8;
}
.tree-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 20px 24px 12px;
  border-bottom: 1px solid #c7d4dc;
  background: #fbfcfd;
}
.tree-header small {
  font:
    10px Georgia,
    serif;
  letter-spacing: 2px;
  color: #8b9fae;
}
.tree-header h2 {
  font-size: 24px;
  margin: 4px 0 6px;
}
.tree-header p {
  margin: 0;
  color: #748998;
  font-size: 12px;
}
.tree-header p b {
  color: #3e6c86;
  font-size: 17px;
}
.tree-layout {
  min-height: 0;
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
}
.tree-map-wrap {
  position: relative;
  min-height: 0;
  overflow: hidden;
  background: radial-gradient(ellipse at center, #fffdf6, #e5eef2);
}
.tree-map {
  height: 100%;
  overflow: hidden;
  display: block;
  position: relative;
  touch-action: none;
  user-select: none;
  cursor: grab;
  overscroll-behavior: contain;
  overflow-anchor: none;
}
.tree-map.dragging,
.tree-map.dragging .tree-node {
  cursor: grabbing;
}
.tree-map svg {
  display: block;
  max-width: none;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  height: 100%;
  width: auto !important;
  min-width: 0 !important;
  min-height: 0;
  margin: 0;
  overflow: visible;
  will-change: transform;
}
.tree-tools {
  position: absolute;
  top: 12px;
  left: 14px;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #ffffffd9;
  border: 1px solid #c5d2da;
  border-radius: 6px;
  padding: 3px;
  color: #6c8290;
  font-size: 11px;
  max-width: calc(100% - 28px);
  flex-wrap: wrap;
}
.tree-pan-hint {
  padding: 0 4px;
}
@media (max-width: 900px) {
  .tree-pan-hint {
    display: none;
  }
}
.tree-tools .btn {
  padding: 3px 10px;
}
.tree-tools .btn[aria-pressed="true"] {
  background: #3e6076;
  border-color: #3e6076;
  color: #fff;
}
.tree-catalog {
  overflow-anchor: none;
  overscroll-behavior: contain;
  box-sizing: border-box;
  height: calc(100% - 50px);
  margin-top: 50px;
  overflow: auto;
  padding: 8px 20px 24px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-content: start;
}
.tree-catalog-intro {
  grid-column: 1 / -1;
  margin: 0;
  color: #60788a;
  font-size: 12px;
  line-height: 1.8;
}
.tree-catalog section {
  min-width: 0;
}
.tree-catalog h3 {
  margin: 0 0 10px;
  padding-left: 9px;
  border-left: 4px solid var(--route);
  color: #3c5869;
  font-size: 16px;
}
.tree-catalog h3 small {
  font-size: 11px;
  font-weight: 400;
  margin-left: 6px;
}
.tree-ultimate-card {
  display: block;
  width: 100%;
  text-align: left;
  white-space: normal;
  padding: 12px;
  margin-bottom: 9px;
  border: 1px solid #c6d4dc;
  border-radius: 8px;
  background: #fcfdfe;
  color: #596f7e;
  cursor: pointer;
  font-size: 12px;
  line-height: 1.7;
}
.tree-ultimate-card.on {
  border-left: 4px solid var(--route);
  background: #edf3ef;
}
.tree-ultimate-card.selected,
.tree-ultimate-card:focus-visible {
  outline: 2px solid #4d7087;
  outline-offset: 1px;
}
.tree-card-top {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  color: #354e60;
}
.tree-card-top b {
  font-size: 14px;
}
.tree-card-top small {
  color: #8e7956;
  white-space: nowrap;
}
.tree-ultimate-card em {
  display: block;
  margin: 5px 0;
  font-size: 11px;
  color: #627f8b;
  font-style: normal;
}
@media (max-width: 760px) {
  .tree-catalog {
    grid-template-columns: 1fr;
    padding: 8px 12px 20px;
  }
  .tree-tools {
    left: 8px;
    gap: 4px;
  }
  .tree-tools .btn {
    padding: 3px 7px;
  }
}
.tree-links line {
  stroke: #c3cfd5;
  stroke-width: 2;
}
.tree-links line.lit {
  stroke: #a98e54;
  stroke-width: 3;
}
.tree-center {
  fill: #f5f1e6;
  stroke: #bba87f;
  stroke-width: 1.5;
}
.tree-origin {
  font:
    600 16px "Microsoft JhengHei",
    sans-serif;
  fill: #7c7054;
  text-anchor: middle;
}
.tree-node {
  cursor: pointer;
  outline: none;
}
.tree-node circle {
  fill: #f7fafb;
  stroke: #b7c6ce;
  stroke-width: 1.5;
  transition: fill 0.15s;
}
.tree-node.available circle {
  stroke: var(--route);
  stroke-width: 2.5;
}
.tree-node.on circle {
  fill: var(--route);
  stroke: #fff7d6;
  stroke-width: 2.5;
}
.tree-node.selected circle,
.tree-node:focus circle {
  stroke: #334f62;
  stroke-width: 4;
}
.tree-node:hover circle {
  filter: brightness(0.95);
}
.tree-symbol {
  text-anchor: middle;
  font:
    bold 12px Tahoma,
    sans-serif;
  fill: #7e909d;
}
.tree-node.on .tree-symbol {
  fill: #fff;
}
.tree-label {
  text-anchor: middle;
  fill: #526a7b;
  font:
    600 13px "Microsoft JhengHei",
    sans-serif;
  paint-order: stroke;
  stroke: #f1f5f6;
  stroke-width: 3px;
  stroke-linejoin: round;
}
.tree-rank {
  text-anchor: middle;
  fill: #8b9da7;
  font:
    11px Tahoma,
    sans-serif;
}
.tree-node.on .tree-rank {
  fill: #7c6c47;
}
.tree-detail {
  overflow-anchor: none;
  overscroll-behavior: contain;
  padding: 20px;
  overflow: auto;
  border-left: 1px solid #c8d4dd;
  background: #fbfcfd;
  color: #536b7b;
  font-size: 12px;
  line-height: 1.8;
}
.tree-detail > small {
  font-weight: bold;
  letter-spacing: 1px;
}
.tree-detail h3 {
  margin: 7px 0 12px;
  font-size: 21px;
  color: #384f61;
}
.tree-detail h4 {
  margin: 20px 0 8px;
  font-size: 12px;
  color: #7c8f9c;
}
.tree-detail p {
  margin: 10px 0;
}
.tree-detail .row {
  flex-wrap: wrap;
  gap: 6px;
}
.tree-detail .btn {
  font-size: 12px;
  padding: 8px 10px;
}
.tree-cost {
  color: #9a8052;
}
.tree-status {
  min-height: 22px;
  font-size: 11px;
  color: #8a7c67;
}
.tree-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
}
.tree-stats span {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid #e5ebef;
  padding: 4px;
}
.tree-stats b {
  color: #3d6279;
}
.tree-migration {
  background: #f4efde;
  border: 1px solid #e1d6b6;
  padding: 10px;
  border-radius: 5px;
  font-size: 11px;
  color: #8c7849;
}
.tree-footer {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 14px 20px;
  border-top: 1px solid #c7d4dc;
  background: #fbfcfd;
}
.tree-footer span {
  flex: 1;
  color: #8b9aa5;
  font-size: 11px;
  text-align: right;
}
.ro-ecology article {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  background: #f6f9fa;
  border: 1px solid #d3dfe4;
  border-left: 3px solid var(--eco);
  border-radius: 6px;
  margin: 8px 0;
}
.ro-ecology img {
  width: 86px;
  height: 86px;
  object-fit: contain;
}
.ro-ecology b {
  display: block;
  color: #476273;
}
.ro-ecology p {
  font-size: 11px;
  line-height: 1.7;
  margin: 5px 0;
}
.ro-ecology small {
  font-size: 10px;
  color: #7f919c;
}
.gfr img {
  object-fit: contain;
}
@media (max-width: 760px) {
  #sheet.ro-tree-sheet {
    height: 96vh;
    max-height: 96vh;
  }
  .tree-layout {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(250px, 1fr) 235px;
  }
  .tree-detail {
    border-left: 0;
    border-top: 1px solid #c8d4dd;
    padding: 14px;
  }
  .tree-header {
    padding: 12px 15px;
  }
  .tree-header h2 {
    font-size: 20px;
  }
  .tree-footer {
    padding: 10px;
    flex-wrap: wrap;
  }
  .tree-footer span {
    display: none;
  }
  .tree-detail .tree-stats {
    grid-template-columns: repeat(6, 1fr);
  }
  .tree-detail .tree-stats span {
    display: block;
  }
  .tree-detail .tree-stats b {
    display: block;
  }
}
/* v3.7 交界小徑 */
.tree-links line.path {
  stroke-dasharray: 4 4;
}
.tree-links line.path.lit {
  stroke-dasharray: none;
}
.tree-node.path circle {
  stroke-width: 1.5;
}
.tree-card-path {
  display: block;
  margin-top: 4px;
  color: #6f7f8a;
}
.tree-start-ring {
  fill: none !important;
  stroke: #d2a94a !important;
  stroke-width: 2.5 !important;
  stroke-dasharray: 3 3;
}
.tree-start-tag {
  align-self: center;
  color: #a17a22;
  font-weight: 600;
}
.ro-mut-tag {
  display: block;
  margin-top: 2px;
  color: #8a4fc0;
  font-weight: 600;
}
/* v4 天賦樹 */
.tree-symbol.small {
  font-size: 9px;
  font-weight: 700;
}
.tree-node.attribute .tree-symbol {
  fill: #7e909d;
}
.tree-node.attribute.on .tree-symbol {
  fill: #fff;
}
.tree-node.notable circle {
  stroke-width: 2.5;
}
.ro-arena-card {
  margin: 0 0 14px;
  padding: 12px 14px;
  border: 1px solid #d8c9a0;
  border-radius: 8px;
  background: linear-gradient(180deg, #fbf6e8, #f3ead2);
}
.ro-arena-card h3 {
  margin: 0 0 4px;
  color: #8a5a1c;
}
.ro-arena-card .row {
  align-items: center;
  gap: 8px;
}
.tree-links line.hint {
  stroke: #d2a94a;
  stroke-width: 3;
  stroke-dasharray: 6 4;
}
.tree-node.hint circle {
  stroke: #d2a94a;
  stroke-width: 2.5;
}
.tree-node.big circle {
  stroke-width: 2;
}

/* v4.2: translucent BOSS button without the metal icon. */
#stageWrap #bossBtn {
  background: linear-gradient(#fff5d88c, #d8c6958c) !important;
  border-color: #a28e5f99 !important;
  box-shadow: 0 2px 6px #243e5814 !important;
  backdrop-filter: blur(1px);
  transition:
    background 0.15s,
    opacity 0.15s;
}
#stageWrap #bossBtn:hover:not(:disabled),
#stageWrap #bossBtn:focus-visible {
  background: linear-gradient(#fff5d8, #d8c695) !important;
  border-color: #a28e5f !important;
}
#stageWrap #bossBtn:disabled {
  opacity: 0.8;
}
#bossBtn img {
  display: none !important;
}

/* v4.2: bag cells read like autowanderer — big icon, rarity as frame colour
   and tint, small item level, green ▲ on suggested upgrades. */
.cell.ro-item-slot {
  padding: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 50% 55%, color-mix(in srgb, var(--ro-rarity) 22%, transparent), transparent 72%),
    linear-gradient(#f9fbfd, #e5edf3);
}
.cell.ro-item-slot.rm {
  background:
    radial-gradient(circle at 50% 55%, color-mix(in srgb, var(--ro-rarity) 30%, transparent), transparent 72%),
    linear-gradient(#fbf2f6, #ecdae4);
}
.cell.ro-item-slot img {
  width: 90%;
  height: 90%;
  max-width: none;
  max-height: none;
  margin: 0;
  object-fit: contain;
  image-rendering: pixelated;
  filter: drop-shadow(0 1px 1px #24354a40);
}
.cell.ro-item-slot .ro-item-rarity {
  display: none;
}
.cell.ro-item-slot .lv {
  top: 1px;
  right: 2px;
  font:
    bold 9px/1.2 Tahoma,
    sans-serif;
  color: #5b6f80;
  background: #ffffffb3;
  padding: 0 2px;
}
.cell.ro-item-slot .lv.no {
  color: #c2414f;
}
.cell.ro-item-slot .ro-up {
  position: absolute;
  right: 2px;
  bottom: 1px;
  font:
    bold 12px/1 Tahoma,
    sans-serif;
  color: #2f9e4f;
  text-shadow:
    0 0 2px #fff,
    0 0 2px #fff;
  pointer-events: none;
}

/* v4.2.1: wider bag column (about 6:4) so item cells are larger, closer to
   autowanderer's inventory; the panel itself keeps its width. */
.ro-inventory .split {
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 8px;
}
.ro-inventory .bagScroll {
  scrollbar-width: thin;
}
.ro-inventory .bagScroll .grid {
  gap: 5px;
  padding: 6px;
}
.ro-inventory .doll {
  gap: 5px;
}
.cell.ro-item-slot {
  padding: 1px;
}
.cell.ro-item-slot img {
  width: 94%;
  height: 94%;
}
.cell.ro-item-slot .lv {
  font-size: 10px;
}
.cell.ro-item-slot .ro-up {
  font-size: 13px;
}

/* v4.2.1: autowanderer-sized bag — bag and details about 1:1, four ~45px
   cells per row with tight 3px gaps. */
.ro-inventory .split {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px;
}
.ro-inventory .bagScroll {
  scrollbar-width: thin;
}
.ro-inventory .bagScroll .grid {
  gap: 3px;
  padding: 3px;
}
.ro-inventory .doll {
  gap: 3px;
  padding: 0 10px 0 4px;
}
.cell.ro-item-slot {
  padding: 1px;
}
.cell.ro-item-slot img {
  width: 92%;
  height: 92%;
}
.cell.ro-item-slot.sel,
.cell.ro-item-slot.ms {
  outline-offset: -1px;
}
.ro-inventory .bagScroll .more {
  z-index: 3;
}

/* v4.4: item cells inside list rows (alchemy, stash, compare…) keep a
   normal icon size instead of stretching to the row width. */
.li > .cell.ro-item-slot,
.arow > .cell.ro-item-slot {
  width: 48px;
  min-width: 48px;
  height: 48px;
  flex: none;
}
/* v4.4: ready-to-challenge state stays translucent; an amber ring replaces
   the brightness pulse that made it look opaque. */
#stageWrap #bossBtn.ready {
  animation: none;
  background: linear-gradient(#fff5d873, #d8c69573) !important;
  box-shadow: 0 0 0 2px #e89a5aaa !important;
}
#stageWrap #bossBtn.ready:hover {
  background: linear-gradient(#fff5d8, #d8c695) !important;
}

/* v4.4: colour-coded talent map. Every node shows its colour: attribute dots
   by stat, notables / junctions / ultimates by 取向 (see legend). */
.tree-node circle {
  fill: color-mix(in srgb, var(--route) 16%, #fbfcfd);
  stroke: color-mix(in srgb, var(--route) 70%, #fff);
  stroke-width: 2;
}
.tree-node.attribute circle {
  fill: color-mix(in srgb, var(--route) 30%, #fbfcfd);
  stroke: var(--route);
  stroke-width: 1.6;
}
.tree-node.notable circle,
.tree-node.junction circle,
.tree-node.ultimate circle {
  stroke: var(--route);
  stroke-width: 3;
}
.tree-node .tree-symbol,
.tree-node.attribute .tree-symbol {
  fill: var(--route);
  font:
    bold 13px "Microsoft JhengHei",
    sans-serif;
}
.tree-node.attribute .tree-symbol.small {
  font-size: 9px;
}
.tree-node.available circle {
  stroke-width: 3.5;
}
.tree-node.on circle,
.tree-node.attribute.on circle {
  fill: var(--route);
  stroke: #fff7d6;
}
.tree-node.on .tree-symbol {
  fill: #fff;
}
.tree-node .tree-label {
  fill: color-mix(in srgb, var(--route) 70%, #2b3b47);
}
.tree-ult-ring {
  fill: none !important;
  stroke: var(--route) !important;
  stroke-width: 1.5 !important;
  stroke-dasharray: 3 3;
  opacity: 0.8;
}
.tree-node.on .tree-ult-ring {
  stroke-dasharray: none;
}
.tree-legend {
  position: absolute;
  left: 8px;
  bottom: 8px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  max-width: calc(100% - 16px);
  padding: 6px 9px;
  border: 1px solid #d5e0e6;
  border-radius: 8px;
  background: #fbfdfdeb;
  font:
    12px "Microsoft JhengHei",
    sans-serif;
  color: #4f6575;
  pointer-events: none;
}
.tree-legend b {
  color: #7a6a45;
  font-size: 11px;
}
.tree-legend span {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.tree-legend i {
  display: inline-grid;
  place-items: center;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  border: 2px solid var(--c);
  background: color-mix(in srgb, var(--c) 16%, #fff);
  color: var(--c);
  font:
    bold 10px "Microsoft JhengHei",
    sans-serif;
  font-style: normal;
}
.tree-legend i.dot {
  width: 11px;
  height: 11px;
  border-width: 1.5px;
  background: color-mix(in srgb, var(--c) 30%, #fff);
}
.tree-ultimate-card {
  border-left: 4px solid var(--route, #c9d5dc) !important;
}
.tree-ultimate-card em {
  color: var(--route, #6f7f8a);
}

/* v4.6: 職業天賦 rows hold three choices. */
.talRow {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}
@media (max-width: 520px) {
  .talRow {
    grid-template-columns: 1fr !important;
  }
}

/* ===== v5：RO 插卡裝備、精煉、卡片、蒐藏 ===== */
.cell.ro-item-slot .v5rf {
  position: absolute;
  top: 1px;
  left: 2px;
  font: bold 9px/1.2 Tahoma, sans-serif;
  color: #b0561c;
  background: #ffffffc0;
  padding: 0 2px;
  border-radius: 2px;
}
.cell.ro-item-slot .v5cs {
  position: absolute;
  left: 2px;
  bottom: 2px;
  display: flex;
  gap: 1px;
  max-width: calc(100% - 14px);
  flex-wrap: wrap;
}
.cell.ro-item-slot .v5cs i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #ffffffd0;
  box-shadow: 0 0 0 1px #5b6f80a0;
}
.v5meta {
  display: flex;
  gap: 10px;
  font-size: 12px;
  color: var(--muted);
  margin: 2px 0 4px;
}
.v5meta b { color: var(--text); }
.v5bx .v5l {
  font-size: 12px;
  line-height: 1.55;
  color: #2f72c8;
}
.v5slots { display: flex; flex-direction: column; gap: 4px; margin-top: 6px; }
.v5slot {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 6px;
  border: 1px dashed var(--paper-dk);
  border-radius: 4px;
  background: #ffffff80;
  font-size: 12px;
}
.v5slot.on {
  border: 1px solid var(--tc);
  background: color-mix(in srgb, var(--tc) 8%, #fff);
}
.v5slot.pick { border-color: var(--ember); }
.v5slot img { width: 22px; height: 22px; image-rendering: pixelated; flex: none; }
.v5slot .s { color: var(--muted); font-size: 11px; }
.v5hole {
  width: 16px;
  height: 16px;
  flex: none;
  border-radius: 50%;
  border: 2px solid var(--paper-dk);
  background: #e9eef3;
  margin: 0 3px;
}
.v5cost { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 6px 0; }
.v5mt {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 12px;
  padding: 1px 6px 1px 2px;
  border-radius: 10px;
  background: var(--paper-btn);
  border: 1px solid var(--paper-dk);
}
.v5mt img { width: 18px; height: 18px; image-rendering: pixelated; }
.v5mt.no { color: var(--bad); border-color: #e6a0a8; }
.v5res { margin: 0 0 8px; padding: 5px 8px; border-radius: 4px; font-size: 13px; font-weight: bold; }
.v5res.ok { background: #e7f6e9; color: #2f7a3a; }
.v5res.fail { background: #fbe9eb; color: #b83a48; }
.v5tier {
  display: inline-block;
  font-size: 11px;
  line-height: 1.5;
  padding: 0 6px;
  border-radius: 8px;
  color: #fff;
  background: var(--tc);
  vertical-align: middle;
}
.v5cn { font-weight: bold; }
.v5row { cursor: pointer; }
.v5row.cur { outline: 2px solid var(--ember); outline-offset: -2px; }
.v5ic {
  width: 32px;
  height: 32px;
  image-rendering: pixelated;
  flex: none;
  border: 1px solid var(--rc, var(--paper-dk));
  border-radius: 3px;
  background: var(--cell);
}
.v5sel .head { margin-bottom: 4px; }
.v5fps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin: 4px 0 6px; }
.v5fp {
  min-height: 54px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  border: 1px dashed var(--paper-dk);
  border-radius: 6px;
  font-size: 11px;
  background: #ffffff80;
  color: var(--muted);
  padding: 4px;
}
.v5fp.on { border: 2px solid var(--tc); color: var(--text); cursor: pointer; background: #fff; }
.v5fp img { width: 24px; height: 24px; image-rendering: pixelated; }
.v5cgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 5px; margin-bottom: 8px; }
.v5mini {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  padding: 4px 6px;
  border: 1px solid var(--tc);
  border-left-width: 4px;
  border-radius: 4px;
  background: #fff;
  font-size: 11px;
  text-align: left;
  cursor: pointer;
  color: var(--text);
}
.v5mini b { font-size: 12px; color: var(--tc); line-height: 1.3; }
.v5mini small { color: var(--muted); }
.v5mini:disabled { opacity: 0.45; cursor: default; }
.v5codex { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; margin-bottom: 10px; }
.v5ccard {
  border: 1px solid var(--tc);
  border-top-width: 4px;
  border-radius: 6px;
  padding: 5px 7px;
  background: linear-gradient(#fff, color-mix(in srgb, var(--tc) 7%, #fff));
  font-size: 11px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.v5ccard.unk { filter: grayscale(1); opacity: 0.65; }
.v5chd { display: flex; align-items: center; gap: 4px; }
.v5chd img { width: 20px; height: 20px; image-rendering: pixelated; flex: none; }
.v5chd b { flex: 1; color: var(--tc); font-size: 12px; line-height: 1.3; }
.v5cpart { color: var(--muted); }
.v5ceff { color: var(--text); line-height: 1.45; }
.v5csrc { color: var(--muted); font-size: 10px; line-height: 1.4; }
.v5bar { height: 6px; margin-top: 6px; }
.v5resb { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12px; }
.v5pickl { margin-top: 6px; max-height: 320px; overflow-y: auto; }
/* v5.3 分支特性與天賦來源標籤 */
.v5trait { border-color: var(--gold, #d9b45a); background: rgba(217, 180, 90, 0.08); margin-bottom: 8px; }
.v5trait .tag { margin-left: 6px; }
.tal .v5src { display: inline-block; align-self: flex-start; width: max-content; margin: 2px 0 2px 0; padding: 0 5px; border-radius: 6px; font-size: 10px; line-height: 16px; color: var(--muted, #8a93a3); border: 1px solid currentColor; vertical-align: 1px; }

/* ===== v5.4：介面配色統一為 RO 視窗風格（白底、淡藍漸層、深藍文字） ===== */
:root {
  --ro54-bg: #ffffff;
  --ro54-bg2: #f1f6fa;
  --ro54-bg3: #e6eff7;
  --ro54-line: #b8c9d9;
  --ro54-line2: #d5e1eb;
  --ro54-title: #3c6a92;
  --ro54-accent: #4f86b8;
  --ro54-text: #34475a;
}
.board,
.board.v5sel,
#sheet .hlist,
.hlist {
  background: linear-gradient(var(--ro54-bg), var(--ro54-bg2)) !important;
  border: 1px solid var(--ro54-line) !important;
  border-radius: 6px !important;
  box-shadow: inset 0 1px 0 #fff, 0 1px 2px rgba(53, 81, 110, 0.12) !important;
  color: var(--ro54-text);
}
#sheet .hpt b,
.hlist .hpt b,
.hlist b { color: var(--ro54-title) !important; }
.hlist .hpt,
#sheet .hpt { border-color: var(--ro54-line2) !important; }
#sheet .hsec { color: var(--ro54-title) !important; border-color: var(--ro54-line2) !important; background: var(--ro54-bg3) !important; }
.tal {
  background: var(--ro54-bg) !important;
  border: 1px solid var(--ro54-line) !important;
  box-shadow: 0 1px 2px rgba(53, 81, 110, 0.1) !important;
}
.tal.on {
  background: linear-gradient(#f4f9ff, #e3eefa) !important;
  border: 2px solid var(--ro54-accent) !important;
}
.tal.locked { opacity: 0.62; }
.v5trait.board { background: linear-gradient(#f6fbff, #e7f1fb) !important; border: 1px solid var(--ro54-accent) !important; }
.ro-arena-card {
  background: linear-gradient(#ffffff, #edf4fa) !important;
  border: 1px solid #a9c0d6 !important;
  box-shadow: inset 0 1px 0 #fff, 0 1px 2px rgba(53, 81, 110, 0.12) !important;
}
.ro-arena-card h3 { color: var(--ro54-title) !important; }
.mcard.ss { background: linear-gradient(#f7fbff, #e5eff9) !important; border-color: #7aa3c9 !important; }
.gfr,
.dchip { background: var(--ro54-bg3) !important; border-color: var(--ro54-line) !important; color: var(--ro54-text) !important; }
.stile {
  background: linear-gradient(var(--ro54-bg), var(--ro54-bg2)) !important;
  color: var(--ro54-text) !important;
  box-shadow: inset 0 0 0 1px var(--ro54-line) !important;
}
.stile span { color: inherit !important; }
dl.cmp { background: var(--ro54-bg2) !important; border-color: var(--ro54-line) !important; }
/* 菁英詞條：RO 怪物名稱式的描邊文字 */
.etag {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  font-weight: bold;
  text-shadow: -1px 0 #13202e, 1px 0 #13202e, 0 -1px #13202e, 0 1px #13202e, 0 0 3px rgba(0, 0, 0, 0.6);
}
.v54ea { display: inline-block; min-width: 4.5em; color: var(--ro54-title); border-left: 4px solid var(--ec, #7aa3c9); padding-left: 6px; }
.v54q { flex-wrap: wrap; gap: 6px; align-items: center; border-top: 1px dashed var(--ro54-line2); padding-top: 6px; }
button.chip { background: linear-gradient(rgba(255, 255, 255, 0.72), rgba(222, 234, 245, 0.72)) !important; border-color: rgba(143, 172, 198, 0.9) !important; }
:root { --fr-red: none; --fr-wood: none; --fr-well: none; --fr-paper: none; }
.btn.primary { border-image: none !important; border: 1px solid rgb(66, 111, 146) !important; }
.hbtn {
  border: 1px solid var(--ro54-line) !important;
  border-radius: 4px !important;
  background: linear-gradient(#ffffff, var(--ro54-bg3)) !important;
  color: var(--ro54-title) !important;
  box-shadow: 0 1px 1px rgba(53, 81, 110, 0.15) !important;
}
.kg, .tut, .cfl, .fxt, .cdl, .mcell, input.num, input.txt, textarea.txt {
  border-width: 1px !important;
  border-color: var(--ro54-line) !important;
  box-shadow: none !important;
}
.kg, .tut, .cfl { background: linear-gradient(var(--ro54-bg), var(--ro54-bg2)) !important; border-radius: 6px; }
#stageWrap #bossBtn {
  background: linear-gradient(rgba(255, 255, 255, 0.78), rgba(222, 234, 245, 0.78)) !important;
  border-color: rgba(143, 172, 198, 0.9) !important;
  color: var(--ro54-title) !important;
}
button.chip .qk { color: #c47f12 !important; }
/* v5.5：地圖蒐藏卡片配色統一 */
.ccard .chd { background: linear-gradient(#6d97bf, #4d7aa3) !important; color: #fff !important; border-color: #3f6d94 !important; }
.ccard .chd .cno { color: #ffe9a8 !important; }
.ccard.ss { background: linear-gradient(#f7fbff, #e5eff9) !important; border-color: #7aa3c9 !important; box-shadow: inset 0 0 0 1px #fff, 0 1px 2px rgba(53, 81, 110, 0.15) !important; }
.ccard .cbon { background: var(--ro54-bg3, #e6eff7) !important; color: var(--ro54-text, #34475a) !important; }

/* v5.6 深淵階級選單 */
.mapRow .v56aby { margin: 4px 0 2px; gap: 6px; align-items: center; flex-wrap: nowrap; }
.mapRow .v56aby .note { flex: none; margin: 0; }
.mapRow .v56aby .sel { flex: 1; min-width: 0; }

/* v6.3：天賦樹標籤置頂、冒險者起點醒目 */
.tree-labels { pointer-events: none; }
.tree-labels .tree-label {
  fill: color-mix(in srgb, var(--route) 72%, #22313c);
  stroke: #f8fafb;
  stroke-width: 4px;
}
.tree-labels .tree-label.on { fill: color-mix(in srgb, var(--route) 85%, #1a242c); font-weight: 700; }
.tree-labels .tree-label.selected { fill: #1d2a33; font-weight: 700; }
.tree-center { stroke: #b88a2a; stroke-width: 3; filter: drop-shadow(0 0 6px #f0c45a); }
.tree-center-ring { fill: none; stroke: #e2b552; stroke-width: 2.5; stroke-dasharray: 6 5; animation: treeHubSpin 24s linear infinite; transform-origin: center; transform-box: fill-box; }
.tree-center-glow { fill: #ffd76a; opacity: 0.18; animation: treeHubPulse 2.6s ease-in-out infinite; transform-origin: center; transform-box: fill-box; }
.tree-origin { font: 800 19px "Microsoft JhengHei", sans-serif; fill: #6b4a10; text-anchor: middle; paint-order: stroke; stroke: #fff7dc; stroke-width: 3px; }
.tree-hub-sub { font: 600 11px "Microsoft JhengHei", sans-serif; fill: #8a6a2a; }
@keyframes treeHubPulse { 0%, 100% { opacity: 0.12; transform: scale(0.94); } 50% { opacity: 0.32; transform: scale(1.06); } }
@keyframes treeHubSpin { to { transform: rotate(360deg); } }

/* v6.3.2：一般地圖清單的地圖圖片縮小（裁切為橫幅） */
.mapRow .mcard .mban > img { height: 72px; object-fit: cover; object-position: center 45%; }

/* v6.4：MVP 武道場、傳說的魔力礦石 */
.ro-arena-card.v64mvp { background: linear-gradient(#fff8fd, #f6e6f3) !important; border-color: #d9a6cf !important; }
.v64mvps { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; margin: 8px 0; }
.v64mvp-i { display: grid; grid-template-columns: 1fr auto; gap: 1px 6px; padding: 6px 8px; border-radius: 6px; border: 1px solid #e3cde0; border-left: 4px solid var(--mc); background: #fff; font-size: 12px; }
.v64mvp-i b { color: var(--ro54-title, #4a3a6a); font-size: 13px; }
.v64mvp-i span { justify-self: end; color: var(--mc); font-weight: 700; filter: brightness(0.75); }
.v64mvp-i small { color: #6a5a7a; }
.v64mvp-i em { justify-self: end; font-style: normal; color: #8a7a96; }
.v64tk { width: 20px; height: 20px; image-rendering: pixelated; vertical-align: middle; margin-right: 4px; }
.chk.v64lg span { color: #a0306e; }

/* v6.5：煉金坊篩選、自動入場 */
.v65filt { flex-wrap: wrap; gap: 6px; margin: 0 0 6px; align-items: center; }
.v65filt .sel { width: auto; flex: 1 1 28%; min-width: 92px; }
.v65filt .chk { margin: 0; }
.v65filt .v65cnt { margin: 0 0 0 auto; white-space: nowrap; }
.chk.v65aa { margin: 0 0 0 4px; }
