* {
  box-sizing: border-box;
}
html {
  color-scheme: dark;
}
body {
  margin: 0;
  background: #090f12;
  color: #e7f0ef;
  font:
    500 16px Barlow,
    Arial,
    sans-serif;
  --mint: #8af3c6;
  --edge: #29353a;
  --muted: #90a2a7;
  --head: "Barlow Condensed", Arial, sans-serif;
  background-image: radial-gradient(ellipse at 39% 8%, #142123 0, transparent 56%);
}
button,
input,
select {
  font: inherit;
}
button {
  color: inherit;
  cursor: pointer;
  border: 0;
  background: none;
}
button:hover {
  filter: brightness(1.14);
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 2px;
}
button:disabled {
  opacity: 0.48;
  cursor: default;
}
button:active:not(:disabled) {
  transform: translateY(1px);
}
[hidden] {
  display: none !important;
}
i[data-icon] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-style: normal;
  flex: none;
}
svg.ico {
  width: 1.12em;
  height: 1.12em;
  vertical-align: -0.16em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
h1,
h2,
h3,
p {
  margin: 0;
}
.topbar {
  min-height: 76px;
  border-bottom: 1px solid #293437;
  background: #0d1417;
  display: flex;
  align-items: center;
  gap: clamp(30px, 6vw, 96px);
  padding: 0 max(3.15vw, calc((100vw - 1536px) / 2));
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  white-space: nowrap;
}
.brandmark {
  width: 42px;
  height: 42px;
  transform: rotate(-5deg);
  filter: drop-shadow(0 0 9px #78edb524);
}
.brandmark svg {
  display: block;
}
.brand b {
  display: block;
  line-height: 0.98;
  font: 800 24px/0.96 var(--head);
  font-style: italic;
  letter-spacing: 0.5px;
}
.brand em {
  color: var(--mint);
  font-style: inherit;
}
.brand small {
  display: block;
  color: #a8b8b9;
  letter-spacing: 3.9px;
  font: 700 10px Barlow;
  margin-top: 5px;
}
.main-nav {
  align-self: stretch;
  display: flex;
  align-items: stretch;
  gap: 24px;
}
.nav {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: #a1adb1;
  font-size: 15px;
  padding: 0 6px;
}
.nav.active {
  color: var(--mint);
}
.nav.active:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 1px;
  right: 1px;
  height: 3px;
  background: var(--mint);
}
.toptools {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 13px;
}
.iconbtn,
.small {
  background: #192227;
  border: 1px solid #344148;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.iconbtn {
  width: 35px;
  height: 35px;
  color: #b8c6c8;
}
.tooldivider {
  height: 24px;
  border-right: 1px solid #344046;
}
.userpic {
  background: linear-gradient(135deg, #88763e, #3a4937);
  border: 1px solid #9c9665;
  width: 37px;
  height: 37px;
  border-radius: 50%;
  overflow: hidden;
}
.userpic img {
  width: 125%;
  height: 125%;
  object-fit: contain;
  transform: translate(-5%, 4%);
}
main {
  max-width: 1632px;
  margin: auto;
  padding: 0 3.15vw 18px;
}
.plain {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #9bafb4;
  font-size: 13px;
  padding: 2px 0;
}
.action,
.primarybtn {
  background: var(--mint);
  color: #0a2721;
  border: 1px solid #c1ffdf;
  border-radius: 5px;
  font-weight: 700;
  padding: 9px 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
}
h2 {
  font: 600 23px/1.1 var(--head);
  letter-spacing: 0.1px;
}
.small {
  padding: 5px 10px;
  min-height: 31px;
  font-size: 13px;
  color: #ccdadc;
}
.small.on {
  color: var(--mint);
  border-color: #67a88c;
}
.coin {
  display: inline-flex;
  color: #efd184;
  align-items: center;
  gap: 3px;
}
#toast {
  position: fixed;
  left: 50%;
  bottom: 25px;
  transform: translate(-50%, 15px);
  opacity: 0;
  pointer-events: none;
  z-index: 30;
  background: #18332d;
  border: 1px solid #82b99e;
  color: #dbf5e8;
  border-radius: 8px;
  padding: 10px 18px;
  transition: 0.18s;
  text-align: center;
  max-width: 90vw;
}
#toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
dialog {
  color: #e9f1ef;
  background: #121e23;
  border: 1px solid #425a5c;
  border-radius: 10px;
  width: min(670px, 94vw);
  max-height: 85vh;
  padding: 0;
  box-shadow: 0 30px 90px #0009;
}
dialog::backdrop {
  background: #03090bc4;
  backdrop-filter: blur(4px);
}
#modalBody {
  padding: 24px;
}
.modalhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 15px;
}
.modalhead h2 {
  font-size: 28px;
}
.modalhead .iconbtn {
  flex: none;
}
.muted,
.desc {
  color: #afc0c4;
  font-size: 15px;
  line-height: 1.45;
}
.menuopts {
  display: grid;
  gap: 8px;
  margin-top: 13px;
}
.menubtn,
.augchoice,
.traitline {
  padding: 12px 14px;
  background: #1c2a2e;
  border: 1px solid #384a50;
  border-radius: 6px;
  text-align: left;
}
.menubtn {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.menubtn span,
.augchoice p {
  color: #b5c5c8;
  font-size: 14px;
}
.dlgbuttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 12px 0;
}
.modalgrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}
.augchoice {
  display: grid;
  gap: 6px;
}
.augchoice h3 {
  font: 700 23px var(--head);
}
.augchoice p {
  line-height: 1.35;
}
.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border-radius: 3px;
  padding: 2px 6px;
  background: #283a3d;
  color: #c9dcdb;
  font-size: 12px;
}
.unitdetail {
  display: grid;
  grid-template-columns: 32% 1fr;
  gap: 18px;
  align-items: center;
}
.detailart {
  width: 100%;
  height: 155px;
  object-fit: contain;
  filter: drop-shadow(0 7px 7px #0006);
}
.evoline {
  display: flex;
  align-items: stretch;
  gap: 5px;
  margin: 12px 0;
}
.evoline button {
  flex: 1;
  min-width: 0;
  text-align: center;
  color: #bbcacd;
  font-size: 12px;
  background: #1e2d32;
  border: 1px solid #33464c;
  border-radius: 5px;
  padding: 5px;
}
.evoline img {
  width: 100%;
  height: 57px;
  object-fit: contain;
}
.evoline b {
  display: block;
}
.dexhead {
  display: flex;
  justify-content: space-between;
  align-items: end;
  padding: 28px 0 18px;
  gap: 12px;
}
.dexhead h1 {
  font: 700 43px var(--head);
  text-transform: uppercase;
}
.dexcontrols {
  display: flex;
  gap: 7px;
  align-items: center;
}
input,
select {
  max-width: 100%;
  background: #172529;
  color: #eaf3f1;
  border: 1px solid #3a4e50;
  border-radius: 5px;
  padding: 8px;
}
.dexgrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
}
.dexcard {
  position: relative;
  overflow: hidden;
  min-height: 184px;
  border: 1px solid #3b514e;
  border-bottom: 3px solid var(--rarity);
  border-radius: 7px;
  background: radial-gradient(ellipse at 50% 35%, #344a46, #152227 73%);
  text-align: left;
  padding: 10px;
}
.dexcard img {
  width: 100%;
  height: 117px;
  object-fit: contain;
}
.dexcard b {
  display: block;
  font: 700 22px var(--head);
}
.dexcard small {
  color: #afc2bd;
}
.traitline {
  margin: 7px 0;
  font-size: 14px;
}
.traitline p {
  margin-top: 4px;
  color: #b9c9c8;
}
.reportimg {
  height: 88px;
  object-fit: contain;
  float: right;
}
.reportlist {
  display: grid;
  gap: 7px;
  margin: 12px 0;
}
.rewardrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 5px;
  padding: 8px 10px;
  background: #20312e;
}
.eventicon {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  background: #365047;
  color: var(--mint);
  border-radius: 50%;
}
.dexcontrols label {
  font-size: 12px;
}
.creditlinks a {
  display: block;
  margin: 6px 0;
  color: #98eac2;
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
  }
}

.eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
}
.dexcard .price {
  position: absolute;
  top: 8px;
  right: 8px;
  border-radius: 4px;
  background: #10191bda;
  padding: 3px 6px;
}
.maplabel {
  color: var(--mint);
}
@media (max-width: 650px) {
  .dexhead {
    display: block;
  }
  .dexcontrols {
    flex-wrap: wrap;
  }
  .dexgrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  #modalBody {
    padding: 16px;
  }
  .modalgrid {
    grid-template-columns: 1fr;
  }
  .unitdetail {
    grid-template-columns: 28% 1fr;
  }
  .unitdetail img {
    height: 110px;
  }
}

.trait-index {display:block;width:100%;cursor:pointer}
.trait-members-title {margin:18px 0 10px}
.trait-members {list-style:none;padding:0;margin:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,175px),1fr));gap:8px}
.trait-member {display:flex;align-items:center;gap:10px;width:100%;height:100%;text-align:left;padding:8px;background:#17272d;color:#eff6f3;border:1px solid #37494d;border-left:3px solid var(--rarity);border-radius:5px;cursor:pointer}
.trait-member img {width:44px;height:46px;object-fit:contain;flex:none}
.trait-member span {display:grid;gap:2px;overflow-wrap:anywhere}
.trait-member small {color:#b8cdca;font-size:13px}
.trait-member:hover,.trait-member:focus-visible,.trait-index:hover,.trait-index:focus-visible {background:#263739;border-color:#d9bf86}

.benchslot .city-orb { display:block; width:64%; height:90%; object-fit:contain; margin:auto; }
